Version 15.17.0

@esri/hub-common

Common TypeScript types and utility functions for @esri/hub.js.

npm install:

npm install @esri/hub-common @esri/arcgis-rest-auth@^2.14.0 || 3  @esri/arcgis-rest-feature-layer@^3.2.0  @esri/arcgis-rest-portal@^2.18.0 || 3  @esri/arcgis-rest-request@^2.14.0 || 3  @esri/arcgis-rest-service-admin@^3.6.0  @esri/arcgis-rest-types@^2.15.0 || 3 

Module Import:

import {
  _getPortalSettings,
  _prepareUploadRequests,
  _waitForItemReady,
  addContextToSlug,
  addDays,
  addDefaultItemSearchPredicates,
  addDomain,
  addDynamicSlugValidation,
  addGroupMembers,
  addHistoryEntry,
  addPermissionPolicy,
  addSiteDomains,
  addSolutionResourceUrlToAssets,
  addUsersToGroup,
  aggregateMetrics,
  aggregateValues,
  allCoordinatesPossiblyWGS84,
  apiRequest,
  applyCatalogStructureMigration,
  applyDefaultCollectionMigration,
  applyHubSettingsMigrations,
  applyInitiativeMigrations,
  applyPermissionMigration,
  applyPropertiesToItems,
  applySiteSettingsMigrations,
  applyVersion,
  arrayToObject,
  asyncForEach,
  authenticateRequest,
  authenticateRequest,
  authenticateRequest,
  authenticateRequest,
  autoAddUsers,
  base64ToUnicode,
  batch,
  bBoxToExtent,
  bboxToString,
  breakAssociation,
  buildCatalog,
  buildDefaultEventEntity,
  buildDefaultEventRecord,
  buildDraft,
  buildEventAssociations,
  buildExistingExportsPortalQuery,
  buildReferencedContentSchema,
  buildSchema,
  buildWhereClause,
  cacheBustUrl,
  camelize,
  canEditEvent,
  canEditItem,
  canEditSite,
  canEditSiteContent,
  canUseCreateReplica,
  canUseHubDownloadApi,
  canUseHubDownloadSystem,
  capitalize,
  catalogContains,
  catalogToLegacy,
  channelToSearchResult,
  checkAll,
  checkAny,
  checkAssertion,
  checkAssertions,
  checkAuthentication,
  checkAvailability,
  checkDelete,
  checkEdit,
  checkEntityFeature,
  checkEntityPolicy,
  checkEnvironment,
  checkForStaleVersion,
  checkLicense,
  checkNot,
  checkOwner,
  checkParents,
  checkPermission,
  checkPrivileges,
  checkServiceStatus,
  chunkArray,
  clearMemoizedCache,
  cloneObject,
  combineQueries,
  completeOAuth2,
  compose,
  composeContent,
  composeHubContent,
  computeItemLinks,
  computeItemProps,
  computeLinks,
  computeLinks,
  computeLinks,
  computeLinks,
  computeLinks,
  computeLinks,
  computeLinks,
  computeLinks,
  computeProps,
  computeProps,
  configureBaseResources,
  constructSlug,
  convertCatalogToLegacyFormat,
  convertFeaturesToLegacyCapabilities,
  convertGroupToHubGroup,
  convertHubGroupToGroup,
  convertItemToSite,
  convertModelToPage,
  convertModelToSite,
  convertSolutionTemplateResourcesToAssets,
  convertToWellKnownLocale,
  convertUrlsToAnchorTags,
  convertUserToHubUser,
  createEvent,
  createEvent,
  createExtent,
  createHubGroup,
  createId,
  createItemFromFile,
  createItemFromUrl,
  createItemFromUrlOrFile,
  createModel,
  createNotificationSpec,
  createOperationPipeline,
  createRegistration,
  createRegistration,
  createSetting,
  createSite,
  createSubscription,
  createSubscription,
  createUser,
  createUser,
  createVersion,
  customClient,
  customClient,
  customClient,
  dasherize,
  datasetToContent,
  datasetToItem,
  decodeForm,
  deepCatalogContains,
  deepContains,
  deepDeletePropByValue,
  deepEqual,
  deepFilter,
  deepFind,
  deepFindById,
  deepGetPropValues,
  deepSet,
  deepStringReplace,
  deleteEvent,
  deleteEvent,
  deleteGroupThumbnail,
  deleteHubEvent,
  deleteItemThumbnail,
  deleteNotificationSpec,
  deleteProp,
  deleteRegistration,
  deleteRegistration,
  deleteSchedule,
  deleteSite,
  deleteSubscription,
  deleteUser,
  deleteUser,
  deleteVersion,
  deriveLocationFromItem,
  detectDataTypeFromExtension,
  detectDataTypeFromHeader,
  discussionsApiRequest,
  doesItemExistWithTitle,
  doesResourceExist,
  domainExists,
  domainExistsPortal,
  dotifyString,
  editorToContent,
  editorToEntity,
  editorToInitiative,
  editorToMetric,
  editorToProject,
  editorToTemplate,
  emailOrgUsers,
  enrichContentSearchResult,
  enrichEntity,
  enrichGroupSearchResult,
  enrichInitiativeTemplateSearchResult,
  enrichPageSearchResult,
  enrichSiteSearchResult,
  enrichUserSearchResult,
  ensureProp,
  ensureUniqueDomainName,
  ensureUniqueEntitySlug,
  ensureUniqueString,
  eventAttendeeToSearchResult,
  eventToSearchResult,
  expandPortalQuery,
  expandPredicates,
  expandQuery,
  explainDatePredicate,
  explainFilter,
  explainMatchOptionPredicate,
  explainPredicate,
  explainPropPredicate,
  explainQueryResult,
  extend,
  extentToBBox,
  extentToPolygon,
  failSafe,
  failSafeUpdate,
  fetchAllPages,
  fetchAndUploadResource,
  fetchAndUploadThumbnail,
  fetchCategoryItems,
  fetchContent,
  fetchDownloadFile,
  fetchEntityCatalog,
  fetchGroupEnrichments,
  fetchHubContent,
  fetchHubEntity,
  fetchHubGroup,
  fetchHubTranslation,
  fetchHubUser,
  fetchImageAsBlob,
  fetchInitiativeTemplate,
  fetchItem,
  fetchItemJobRecords,
  fetchMaxNumUserGroupsLimit,
  fetchModelFromItem,
  fetchModelResources,
  fetchOrg,
  fetchOrgLimits,
  fetchSetting,
  fetchSiteModel,
  fetchUserEnrichments,
  fetchUserHubSettings,
  fetchUserSiteSettings,
  filterBy,
  findBy,
  findItemsBySlug,
  flattenArray,
  followEntity,
  forceUpdateContent,
  formatFilterBlock,
  formatOgcAggregationsResponse,
  formatOgcItemsResponse,
  formatPredicate,
  generateRandomString,
  GeoJSONPolygonToBBox,
  getAddContentConfig,
  getAssociatedEntitiesQuery,
  getAssociationHierarchy,
  getAssociationStats,
  getAuthedImageUrl,
  getAvailableToRequestAssociationCatalogs,
  getAvailableToRequestEntitiesQuery,
  getBasePropertyMap,
  getCampaignUrl,
  getCardEditorSchemas,
  getCardModelUrlFromEntity,
  getCardModelUrlFromResult,
  getCardType,
  getCatalogGroups,
  getCategory,
  getCdnAssetUrl,
  getChannelAccess,
  getChannelGroupIds,
  getChannelOrgIds,
  getChannelUsersQuery,
  getContentEditUrl,
  getContentIdentifier,
  getContentTypeIcon,
  getContentTypeLabel,
  getCulture,
  getDatePickerDate,
  getDefaultCreateableTypes,
  getDefaultEntitySettings,
  getDefaultTemplates,
  getDeployedTemplateType,
  getDiscussionsApiDefinition,
  getDomainsForSite,
  getDownloadConfiguration,
  getDownloadFormats,
  getEditorConfig,
  getEditorSchemas,
  getEditorSlug,
  getEntityFollowersGroupId,
  getEntityGroups,
  getEntityMetrics,
  getEntityThumbnailUrl,
  getEntityTypeFromHubEntityType,
  getEnvironmentFromPortalUrl,
  getEvent,
  getEvent,
  getEventGroups,
  getEvents,
  getEvents,
  getEventSlug,
  getEventThumbnail,
  getExtentCenter,
  getExtentObject,
  getFamily,
  getFamilyTypes,
  getFeaturedContentCatalogs,
  getFeatureLayerItem,
  getFeatureServiceItem,
  getFeatureServiceTitle,
  getFeedConfiguration,
  getFeedTemplate,
  getFileName,
  getFilterQueryParam,
  getFormInfoJson,
  getFormJson,
  getGroupHomeUrl,
  getGroupPredicate,
  getGroupThumbnailUrl,
  getHubApiFromPortalUrl,
  getHubApiUrl,
  getHubApiUrlFromPortal,
  getHubApiUrlRoot,
  getHubDownloadApiFormats,
  getHubEntityTypeFromPath,
  getHubLocaleAssetUrl,
  getHubProduct,
  getHubTypeFromItemType,
  getHubUrlFromPortal,
  getIdsFromAssociationGroups,
  getIdsFromKeywords,
  getIncludeListFromItemType,
  getIncludesAndReferencesQuery,
  getIncludesDoesNotReferenceQuery,
  getInputFeatureServiceModel,
  getItemApiUrl,
  getItemAssets,
  getItemBySlug,
  getItemDataUrl,
  getItemHomeUrl,
  getItemHubId,
  getItemIdentifier,
  getItemLayerId,
  getItemOrgId,
  getItemThumbnailUrl,
  getKilobyteSizeOfQuery,
  getLayerIdFromUrl,
  getLocationExtent,
  getLocationFromEvent,
  getLocationOptions,
  getMapQuestion,
  getModel,
  getModelBySlug,
  getModelFromOptions,
  getNextOgcCallback,
  getNotificationSpec,
  getNotificationSpecs,
  getObjectSize,
  getOgcAggregationQueryParams,
  getOptionalPredicateStringsByKey,
  getOrgDefaultTheme,
  getOrgExtentAsBBox,
  getOrgThumbnailUrl,
  getPathForHubEntityType,
  getPendingEntitiesQuery,
  getPendingProjectsQuery,
  getPermissionPolicy,
  getPolicyResponseCode,
  getPortalApiUrl,
  getPortalBaseFromOrgUrl,
  getPortalSignInSettings,
  getPortalUrl,
  getPortalUrls,
  getPostCSVFileName,
  getPredicateValues,
  getPredicateValuesByKey,
  getProp,
  getPropertyMap,
  getProps,
  getProxyUrl,
  getPublisherInfo,
  getQQueryParam,
  getQueryString,
  getRecommendedTemplatesCatalog,
  getReferencedEntityIds,
  getReferencesDoesNotIncludeQuery,
  getRegistration,
  getRegistration,
  getRegistrations,
  getRegistrations,
  getRelativeWorkspaceUrl,
  getRequestingEntitiesQuery,
  getResultSiteRelativeLink,
  getS123EditUrl,
  getS123ShareUrl,
  getSchedule,
  getSchedulerApiUrl,
  getScopeGroupPredicate,
  getServiceStatus,
  getServiceTypeFromUrl,
  getSharableGroupsComboBoxItems,
  getShortenedCategories,
  getSiteById,
  getSiteSchema,
  getSlugMaxLength,
  getSlugSchemaElement,
  getSourceFeatureServiceModelFromFieldworker,
  getStakeholderModel,
  getStructuredLicense,
  getSubscription,
  getSubscription,
  getSubscriptions,
  getSubscriptions,
  getSubscriptionType,
  getSurveyModels,
  getTagItems,
  getTimePickerTime,
  getTopLevelPredicate,
  getTypeCategories,
  getTypeFromEntity,
  getTypes,
  getTypesFromEntityType,
  getUniqueDomainName,
  getUniqueDomainNamePortal,
  getUniqueItemTitle,
  getUniqueSlug,
  getUser,
  getUser,
  getUserGroupsByMembership,
  getUserGroupsFromQuery,
  getUserHomeUrl,
  getUsers,
  getUserThumbnailUrl,
  getVersion,
  getWellKnownAssociationsCatalog,
  getWellKnownCatalog,
  getWellknownCollection,
  getWellknownCollections,
  getWellKnownGroup,
  getWithDefault,
  getWorkflowForType,
  guessTimeZone,
  hasBasePriv,
  hasMapQuestion,
  hasServiceCapability,
  hubApiRequest,
  hubSearch,
  hubSearchEvents,
  includes,
  incrementString,
  initiativeResultToCardModel,
  initiativeTemplateResultToCardModel,
  initiativeTemplateToCardModel,
  initiativeToCardModel,
  interpolate,
  interpolateItemId,
  inviteUsers,
  isAGOFeatureServiceUrl,
  isAssociationSupported,
  isBBox,
  isComboboxItemSelected,
  isCuid,
  isDiscussable,
  isDomainForLegacySite,
  isDomainUsedElsewhere,
  isDownloadable,
  isDownloadSchedulingAvailable,
  isDraft,
  isFeatureLayer,
  isFeatureService,
  isFeatureService,
  isFieldworkerView,
  isFindable,
  isGuid,
  isHostedFeatureServiceMainEntity,
  isHostedFeatureServiceMainItem,
  isHubService,
  isMapOrFeatureServerUrl,
  isMapQuestion,
  isNil,
  isNilOrEmptyString,
  isOpenDataGroup,
  isOrgChannel,
  isPageQuestion,
  isPermission,
  isPrivateChannel,
  isPublicChannel,
  isSafeRedirectUrl,
  isSecureProxyServiceUrl,
  isService,
  isServicesDirectoryDisabled,
  isSiteType,
  isSlug,
  isSurvey123Connect,
  isUpdateGroup,
  isUrl,
  isUserFollowing,
  isValidDomain,
  isValidEntityType,
  isValidExtent,
  isWellKnownTypeFilter,
  itemToContent,
  itemToSearchResult,
  keywordSlugToUriSlug,
  last,
  lookupDomain,
  mapBy,
  mapEntityToStore,
  mapStoreToEntity,
  maybeAdd,
  maybePush,
  maybeUpdateSchedule,
  memoize,
  mergeObjects,
  metricToEditor,
  migrateLegacyCapabilitiesToFeatures,
  migrateToCollectionKey,
  modelToHubEditableContent,
  normalizeItemType,
  normalizeSolutionTemplateItem,
  notify,
  notify,
  objectToArray,
  objectToJsonBlob,
  ogcApiRequest,
  ogcItemToDiscussionPostResult,
  ogcItemToSearchResult,
  orgExtent,
  parseContainmentPath,
  parseDatasetId,
  parseIdentifier,
  parseInclude,
  pathToCatalogInfo,
  pickProps,
  pingFeatureService,
  pingUrl,
  poll,
  portalSearchGroupMembers,
  portalSearchItems,
  portalSearchItemsAsItems,
  previewFeed,
  processActionLink,
  processActionLinks,
  processAttendeeFilters,
  processAttendeeOptions,
  processEntityFeatures,
  processFilters,
  processOptions,
  processRevertableTasks,
  projectResultToCardModel,
  projectToCardModel,
  propifyString,
  reflectCollectionsToSearchCategories,
  reharvestSiteCatalog,
  removeAssociationKeyword,
  removeContextFromSlug,
  removeDomain,
  removeDomainByHostname,
  removeDomainsBySiteId,
  removeEmptyProps,
  removeHistoryEntry,
  removePermissionPolicy,
  removeResource,
  removeSetting,
  replaceItemId,
  requestAssociation,
  resolveDynamicValue,
  resolveDynamicValues,
  resolveItemQueryValues,
  resolveMetric,
  resolvePortalValues,
  resolveReferences,
  resolveServiceQueryValues,
  runRevertableTask,
  searchCatalogs,
  searchChannels,
  searchEntityCatalogs,
  searchOgcAggregations,
  searchOgcItems,
  searchVersions,
  serializeModel,
  serializeQueryForPortal,
  serializeSpatialReference,
  setAssociationKeyword,
  setContentType,
  setDiscussableKeyword,
  setDisplayMapKeyword,
  setEntityAccess,
  setEntityAssociationGroup,
  setEntityStatusKeyword,
  setFeedConfiguration,
  setFeedTemplate,
  setGroupThumbnail,
  setItemThumbnail,
  setMetricAndDisplay,
  setProp,
  setSchedule,
  setSlugKeyword,
  shareEntityWithGroups,
  shareEventWithGroups,
  shareItemToGroups,
  shouldDisplayMap,
  shouldHaveDataUrl,
  slugify,
  stringToBlob,
  stripProtocol,
  subscribe,
  subscribe,
  subsetSchema,
  templateResultToCardModel,
  templateToCardModel,
  titleize,
  toggleServiceCapability,
  truncateSlug,
  unfollowEntity,
  unicodeToBase64,
  unique,
  uniqueBy,
  unprotectModel,
  unshareEntityWithGroups,
  unshareEventWithGroups,
  unshareItemFromGroups,
  updateCommunityOrgSettings,
  updateDomain,
  updateEvent,
  updateEvent,
  updateHubEntity,
  updateModel,
  updateNotificationSpec,
  updatePortalOrgSettings,
  updateRegistration,
  updateRegistration,
  updateSetting,
  updateSite,
  updateSubscription,
  updateSubscription,
  updateUser,
  updateUser,
  updateUserHubSettings,
  updateUserSiteSettings,
  updateVersion,
  updateVersionMetadata,
  upgradeCatalogSchema,
  upgradeProtocol,
  upgradeSiteSchema,
  uploadImageResource,
  uploadResourcesFromUrl,
  upsertModelResources,
  upsertResource,
  uriSlugToKeywordSlug,
  userResultToCardModel,
  validateUrl,
  wait,
  without,
  withoutByProp,
  ArcGISContext,
  ArcGISContextManager,
  ArcgisHubDownloadError,
  Catalog,
  Collection,
  EntityEditor,
  Hub,
  HubContent,
  HubDiscussion,
  HubError,
  HubEvent,
  HubGroup,
  HubInitiative,
  HubInitiativeTemplate,
  HubItemEntity,
  HubPage,
  HubProject,
  HubSite,
  HubSurvey,
  HubTemplate,
  HubUser,
  Logger,
  OperationError,
  OperationStack,
  RemoteServerError,
  RemoteServerError,
} from "@esri/hub-common";