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