Version 3.6.0

@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,
  bboxToString,
  isBBox,
  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,
  getUserProperties,
  getUserTags,
  getUserUrl,
  acceptInvitation,
  declineInvitation,
  getUserInvitation,
  getUserInvitations,
  getUserNotifications,
  removeNotification,
  searchUsers,
  setUserProperties,
  updateUser,
  chunk,
  getPortal,
  getSelf,
  getPortalSettings,
  getPortalUrl,
  getSubscriptionInfo,
  scrubControlChars,
} from "@esri/arcgis-rest-portal";

CDN:

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

CDN with SRI:

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