Version 3.2.1

@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@^3.0.0  @esri/arcgis-rest-request@^3.0.0 

Module Import:

import {
  SearchQueryBuilder,
  addGroupUsers,
  createGroup,
  getGroup,
  getGroupCategorySchema,
  getGroupContent,
  getGroupUsers,
  searchGroupUsers,
  inviteGroupUsers,
  joinGroup,
  leaveGroup,
  createGroupNotification,
  protectGroup,
  unprotectGroup,
  removeGroup,
  removeGroupUsers,
  searchGroupContent,
  searchGroups,
  updateGroup,
  updateUserMemberships,
  addItemData,
  addItemRelationship,
  addItemResource,
  getUserContent,
  createFolder,
  createItem,
  createItemInFolder,
  exportItem,
  getItem,
  getItemBaseUrl,
  getItemData,
  getItemGroups,
  getItemInfo,
  getItemMetadata,
  getItemParts,
  getItemResource,
  getItemResources,
  getItemStatus,
  getRelatedItems,
  serializeItem,
  protectItem,
  unprotectItem,
  reassignItem,
  removeFolder,
  removeItem,
  removeItemRelationship,
  removeItemResource,
  searchItems,
  moveItem,
  updateItem,
  updateItemInfo,
  updateItemResource,
  addItemPart,
  cancelItemUpload,
  commitItemUpload,
  createOrgNotification,
  getUniqueServiceName,
  isServiceNameAvailable,
  setItemAccess,
  getSharingUrl,
  getUserMembership,
  isItemSharedWithGroup,
  ensureMembership,
  shareItemWithGroup,
  unshareItemWithGroup,
  getUser,
  getUserTags,
  getUserUrl,
  acceptInvitation,
  declineInvitation,
  getUserInvitation,
  getUserInvitations,
  getUserNotifications,
  removeNotification,
  searchUsers,
  updateUser,
  chunk,
  getPortal,
  getSelf,
  getPortalSettings,
  getPortalUrl,
  getSubscriptionInfo,
  scrubControlChars,
} from "@esri/arcgis-rest-portal";

CDN:

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

CDN with SRI:

<script src="https://unpkg.com/@esri/arcgis-rest-portal@3.2.1/dist/umd/portal.umd.min.js" integrity="sha384-C8erpn9IqBoQveJq2n7HnVpqi4Hq6sUGWlVbq5cPEcua4nawkykw/DmXigeyPYPJ" crossorigin="anonymous"></script>