Version 2.0.3

@esri/arcgis-rest-portal

ArcGIS Online and Enterprise content and user helpers for @esri/arcgis-rest-request

npm install:

npm install @esri/arcgis-rest-portal @esri/arcgis-rest-auth@^2.0.0  @esri/arcgis-rest-request@^2.0.0 

Module Import:

import {
  SearchQueryBuilder,
  createGroup,
  getGroup,
  getGroupContent,
  getGroupUsers,
  joinGroup,
  leaveGroup,
  createGroupNotification,
  protectGroup,
  unprotectGroup,
  removeGroup,
  searchGroups,
  updateGroup,
  addItemData,
  addItemRelationship,
  addItemResource,
  createFolder,
  createItem,
  createItemInFolder,
  getItem,
  getItemData,
  getItemGroups,
  getItemResources,
  getRelatedItems,
  serializeItem,
  protectItem,
  unprotectItem,
  removeFolder,
  removeItem,
  removeItemRelationship,
  removeItemResource,
  searchItems,
  moveItem,
  updateItem,
  updateItemResource,
  setItemAccess,
  shareItemWithGroup,
  unshareItemWithGroup,
  getSharingUrl,
  getUserMembership,
  getUser,
  getUserUrl,
  acceptInvitation,
  declineInvitation,
  getUserInvitation,
  getUserInvitations,
  getUserNotifications,
  removeNotification,
  updateUser,
  getPortal,
  getSelf,
  getPortalUrl,
} from "@esri/arcgis-rest-portal";

CDN:

<script src="https://unpkg.com/@esri/arcgis-rest-portal@2.0.3/dist/umd/portal.umd.min.js"></script>

CDN with SRI:

<script src="https://unpkg.com/@esri/arcgis-rest-portal@2.0.3/dist/umd/portal.umd.min.js" integrity="sha384-srIOlQ+dsJWDkVIK5C59CWc33pJdW2JWIONGlTdey7sRPrSMXYaJr8hxN9WeNps+" crossorigin="anonymous"></script>