/* Copyright (c) 2024 Environmental Systems Research Institute, Inc.
 * Apache-2.0 */
/* istanbul ignore file */
import HubError from "./HubError";
import OperationError from "./OperationError";
import OperationStack from "./OperationStack";
// Re-exports
export { atob, btoa } from "abab";
export { canEditEvent } from "./access/can-edit-event";
export { canEditItem } from "./access/can-edit-item";
export { canEditSite } from "./access/can-edit-site";
export { canEditSiteContent, REQUIRED_PRIVS, } from "./access/can-edit-site-content";
export { compareAccess } from "./access/compareAccess";
export { hasBasePriv } from "./access/has-base-priv";
export { getHubApiUrl } from "./api";
export { ArcGISContext, ENTERPRISE_HOME_SUBDOMAIN, ENTERPRISE_SITES_PATH, } from "./ArcGISContext";
export { ALPHA_ORGS, ArcGISContextManager, ENTERPRISE_SITES_SERVICE_STATUS, HUB_SERVICE_STATUS, } from "./ArcGISContextManager";
export { breakAssociation } from "./associations/breakAssociation";
export { getAssociatedEntitiesQuery } from "./associations/getAssociatedEntitiesQuery";
export { getAssociationStats } from "./associations/getAssociationStats";
export { getAvailableToRequestEntitiesQuery } from "./associations/getAvailableToRequestEntitiesQuery";
export { getPendingEntitiesQuery } from "./associations/getPendingEntitiesQuery";
export { getReferencedEntityIds } from "./associations/getReferencedEntityIds";
export { getRequestingEntitiesQuery } from "./associations/getRequestingEntitiesQuery";
// Note: we expose "requestAssociation" under 2 names.
// These actions are functionally equivalent, but we want
// to make the intent more clear to the consumer.
export { requestAssociation as acceptAssociation, requestAssociation, } from "./associations/requestAssociation";
export { setEntityAssociationGroup } from "./associations/setEntityAssociationGroup";
export { ASSOCIATION_REFERENCE_LIMIT, } from "./associations/types";
export { getAvailableToRequestAssociationCatalogs, getWellKnownAssociationsCatalog, } from "./associations/wellKnownAssociationCatalogs";
export { categories, isDownloadable } from "./categories";
export { createHubChannel, deleteHubChannel, updateHubChannel, } from "./channels/edit";
export { fetchHubChannel } from "./channels/fetch";
export { HubChannel } from "./channels/HubChannel";
export { composeContent, getContentTypeIcon, getItemHubId, getItemLayer, getItemLayerId, getLayerIdFromUrl, getPortalUrls, getProxyUrl, isFeatureService, isLayerView, normalizeItemType, parseItemCategories, } from "./content/compose";
export { composeHubContent } from "./content/composeHubContent";
export { datasetToContent, datasetToItem, getCategory, getContentIdentifier, getContentTypeLabel, getServiceStatus, getTypeCategories, getTypes, itemToContent, setContentType, } from "./content/contentUtils";
export { createContent, deleteContent, editorToContent, updateContent, } from "./content/edit";
export { JobRecordType } from "./content/enums/jobRecordType";
export { JobRecordStatus } from "./content/enums/jobRecordStatus";
export { ServiceCapabilities } from "./content/enums/serviceCapabilities";
export { UpdateFrequency } from "./content/enums/updateFrequency";
export { fetchContent } from "./content/fetchContent";
export { fetchHubContent } from "./content/fetchHubContent";
export { convertItemToContent } from "./content/convertItemToContent";
export { fetchItemJobRecords } from "./content/fetchItemJobRecords";
export { getFamily, getFamilyTypes } from "./content/get-family";
export { hasServiceCapability, isAGOFeatureServiceUrl, isHostedFeatureServiceMainEntity, isHostedFeatureServiceMainItem, isSecureProxyServiceUrl, toggleServiceCapability, } from "./content/hostedServiceUtils";
export { HubContent } from "./content/HubContent";
export { isSiteType } from "./content/isSiteType";
export { modelToHubEditableContent } from "./content/modelToHubEditableContent";
export { enrichContentSearchResult, enrichImageSearchResult, } from "./content/search";
export { addContextToSlug, isSlug, parseDatasetId, removeContextFromSlug, } from "./content/slugs";
export { catalogContains } from "./core/catalogContains";
export { deepCatalogContains } from "./core/deepCatalogContains";
export { EntityEditor } from "./core/EntityEditor";
export { ExpressionRelationships } from "./core/enums/expressionRelationships";
export { FeatureLayerStyle } from "./core/enums/featureLayerStyle";
export { MetricVisibility } from "./core/enums/metricVisibility";
export { TIMELINE_STAGE_STATUSES } from "./core/enums/timelineStageStatuses";
export { fetchHubEntity } from "./core/fetchHubEntity";
export { getEntityGroups } from "./core/getEntityGroups";
export { getEntityThumbnailUrl } from "./core/getEntityThumbnailUrl";
export { getEntityTypeFromHubEntityType } from "./core/getEntityTypeFromHubEntityType";
export { getHubTypeFromItemType } from "./core/getHubTypeFromItemType";
export { getRelativeWorkspaceUrl } from "./core/getRelativeWorkspaceUrl";
export { getTypeFromEntity } from "./core/getTypeFromEntity";
export { getTypesFromEntityType } from "./core/getTypesFromEntityType";
export { addHistoryEntry, removeHistoryEntry, } from "./core/hubHistory";
export { isValidEntityType } from "./core/isValidEntityType";
export { getHubEntityTypeFromPath, getPathForHubEntityType, parseContainmentPath, pathMap, } from "./core/parseContainmentPath";
export { processActionLink, processActionLinks, } from "./core/processActionLinks";
export { getEditorConfig } from "./core/schemas/getEditorConfig";
export { fetchCategoriesUiSchemaElement, } from "./core/schemas/internal/fetchCategoriesUiSchemaElement";
export { getTagItems } from "./core/schemas/internal/getTagItems";
export { CatalogSchema, CollectionSchema, FilterSchema, GalleryDisplayConfigSchema, PredicateSchema, QuerySchema, } from "./core/schemas/shared/CatalogSchema";
export { CARD_TITLE_TAGS } from "./core/schemas/shared/enums/cardTitleTags";
export { DISCUSSION_SETTINGS_SCHEMA, ENTERPRISE_SITE_ENTITY_NAME_SCHEMA, ENTITY_ACCESS_SCHEMA, ENTITY_CATALOG_SETUP_SCHEMA, ENTITY_CATEGORIES_SCHEMA, ENTITY_FEATURED_CONTENT_SCHEMA, ENTITY_IMAGE_SCHEMA, ENTITY_IS_DISCUSSABLE_SCHEMA, ENTITY_LAYOUT_SETUP_SCHEMA, ENTITY_LOCATION_SCHEMA, ENTITY_MAP_SCHEMA, ENTITY_NAME_SCHEMA, ENTITY_SUMMARY_SCHEMA, ENTITY_TAGS_SCHEMA, ENTITY_TIMELINE_SCHEMA, PRIVACY_CONFIG_SCHEMA, SITE_ENTITY_NAME_SCHEMA, SLUG_SCHEMA, } from "./core/schemas/shared/subschemas";
export { validCardEditorTypes, validDiscussionSettingsEditorTypes, validEditorTypes, validEmbedCardEditorTypes, validEntityEditorTypes, validEventGalleryCardEditorTypes, validFollowCardEditorTypes, validStatCardEditorTypes, } from "./core/schemas/types";
export { UiSchemaMessageTypes } from "./core/enums/uiSchemaMessageTypes";
export { UiSchemaSectionTypes } from "./core/enums/uiSchemaSectionTypes";
export { UiSchemaElementTypes } from "./core/enums/uiSchemaElementTypes";
export { UiSchemaRuleEffects } from "./core/enums/uiSchemaRuleEffects";
export { setEntityAccess } from "./core/setEntityAccess";
export { shareEntityWithGroups } from "./core/shareEntityWithGroups";
export { EmbedKind } from "./core/enums/embedKind";
export { HUB_ENTITY_TYPES, HUB_ITEM_ENTITY_TYPES, } from "./core/types/HubEntityType";
export { PublisherSource } from "./core/enums/publisherSource";
export { isHubService, } from "./core/types/ISystemStatus";
export { MAX_ENTITY_METRICS_ALLOWED, MAX_FEATURED_METRICS_ALLOWED, } from "./core/types/Metrics";
export { EntityResourceMap, } from "./core/types/types";
export { unshareEntityWithGroups } from "./core/unshareEntityWithGroups";
export { updateHubEntity } from "./core/updateHubEntity";
export { createChannelNotificationOptOutV2, createChannelV2, fetchChannelNotifcationOptOutV2, fetchChannelV2, removeChannelActivityV2, removeChannelNotificationOptOutV2, removeChannelV2, searchChannelsV2, updateChannelV2, } from "./discussions/api/channels/channels";
export { discussionsApiRequestV2 } from "./discussions/api/discussions-api-request";
export { AclCategory } from "./discussions/api/enums/aclCategory";
export { AclSubCategory } from "./discussions/api/enums/aclSubCategory";
export { ChannelFilter } from "./discussions/api/enums/channelFilter";
export { ChannelRelation } from "./discussions/api/enums/channelRelation";
export { ChannelSort } from "./discussions/api/enums/channelSort";
export { CommonSort } from "./discussions/api/enums/commonSort";
export { DiscussionSource } from "./discussions/api/enums/discussionSource";
export { DiscussionType } from "./discussions/api/enums/discussionType";
export { EntitySettingType } from "./discussions/api/enums/entitySettingsType";
export { PostReaction } from "./discussions/api/enums/postReaction";
export { PostRelation } from "./discussions/api/enums/postRelation";
export { PostSort } from "./discussions/api/enums/postSort";
export { PostStatus } from "./discussions/api/enums/postStatus";
export { PostType } from "./discussions/api/enums/postType";
export { ReactionRelation } from "./discussions/api/enums/reactionRelation";
export { Role } from "./discussions/api/enums/role";
export { SearchPostsFormat } from "./discussions/api/enums/searchPostsFormat";
export { SharingAccess } from "./discussions/api/enums/sharingAccess";
export { SortOrder } from "./discussions/api/enums/sortOrder";
export { createPostV2, createReplyV2, exportPostsV2, fetchPostV2, removePostV2, searchPostsV2, updatePostStatusV2, updatePostV2, } from "./discussions/api/posts/posts";
export { createReactionV2, removeReactionV2, } from "./discussions/api/reactions/reactions";
export { getDefaultEntitySettings } from "./discussions/api/settings/getDefaultEntitySettings";
export { createSettingV2, fetchSettingV2, removeSettingV2, updateSettingV2, } from "./discussions/api/settings/settings";
export { canCreateChannelV2 } from "./discussions/api/utils/channels/can-create-channel-v2";
export { canDeleteChannelV2 } from "./discussions/api/utils/channels/can-delete-channel-v2";
export { canEditChannelV2 } from "./discussions/api/utils/channels/can-edit-channel-v2";
export { canReadChannelV2 } from "./discussions/api/utils/channels/can-read-channel-v2";
export { deriveUserRoleV2 } from "./discussions/api/utils/channels/derive-user-role-v2";
export { isOrgAdmin, isOrgAdminInOrg, isUserInOrg, reduceByGroupMembership, userHasPrivilege, userHasPrivileges, } from "./discussions/api/utils/platform";
export { canCreatePostV2 } from "./discussions/api/utils/posts/can-create-post-v2";
export { canCreateReplyV2 } from "./discussions/api/utils/posts/can-create-reply-v2";
export { canDeletePostV2 } from "./discussions/api/utils/posts/can-delete-post-v2";
export { canEditPostStatusV2 } from "./discussions/api/utils/posts/can-edit-post-status-v2";
export { canEditPostV2 } from "./discussions/api/utils/posts/can-edit-post-v2";
export { cannotCreatePostGroupsBlockedV2 } from "./discussions/api/utils/posts/cannot-create-post-groups-blocked-v2";
export { parseDiscussionURI } from "./discussions/api/utils/posts/parse-discussion-uri";
export { parseMentionedUsers } from "./discussions/api/utils/posts/parse-mentioned-users";
export { canCreateReactionV2 } from "./discussions/api/utils/reactions/can-create-reaction-v2";
export { CANNOT_DISCUSS, MENTION_ATTRIBUTE } from "./discussions/constants";
export { createDiscussion, deleteDiscussion, updateDiscussion, } from "./discussions/edit";
export { convertItemToDiscussion, fetchDiscussion } from "./discussions/fetch";
export { HubDiscussion } from "./discussions/HubDiscussion";
export { channelToSearchResult, getChannelAccess, getChannelGroupIds, getChannelOrgIds, getChannelUsersQuery, getPostCSVFileName, isDiscussable, isOrgChannel, isPrivateChannel, isPublicChannel, setDiscussableKeyword, } from "./discussions/utils";
export { buildExistingExportsPortalQuery, getExportItemTypeKeyword, getExportLayerTypeKeyword, getSpatialRefTypeKeyword, serializeSpatialReference, WGS84_WKID, } from "./downloads/build-existing-exports-portal-query";
export { canUseCreateReplica } from "./downloads/canUseCreateReplica";
export { canUseHubDownloadApi } from "./downloads/canUseHubDownloadApi";
export { canUseHubDownloadSystem } from "./downloads/canUseHubDownloadSystem";
export { DownloadOperationStatus } from "./downloads/enums/downloadOperationStatus";
export { ServiceDownloadFormat } from "./downloads/enums/serviceDownloadFormat";
export { fetchDownloadFile } from "./downloads/fetchDownloadFile";
export { getDownloadConfiguration } from "./downloads/getDownloadConfiguration";
export { getDownloadFormats } from "./downloads/getDownloadFormats";
export { getHubDownloadApiFormats } from "./downloads/getHubDownloadApiFormats";
export { ArcgisHubDownloadError, ArcgisHubDownloadFileTooLargeError, PORTAL_EXPORT_TYPES, } from "./downloads/types";
export { createHubEvent, createHubEventRegistration, deleteHubEvent, deleteHubEventRegistration, updateHubEvent, } from "./events/edit";
export { HubEventAttendanceType } from "./events/enums/hubEventAttendanceType";
export { HubEventCapacityType } from "./events/enums/hubEventCapacityType";
export { convertClientEventToHubEvent, fetchEvent } from "./events/fetch";
export { getEventGroups } from "./events/getEventGroups";
export { HubEvent } from "./events/HubEvent";
export { allCoordinatesPossiblyWGS84, bBoxToExtent, bboxToString, createExtent, extentToBBox, extentToPolygon, GeoJSONPolygonToBBox, getExtentCenter, getOrgExtentAsBBox, GLOBAL_EXTENT, isBBox, isValidExtent, orgExtent, } from "./extent";
export { addUsersToGroup } from "./groups/add-users-workflow/add-users-to-group";
export { _consolidateResults } from "./groups/add-users-workflow/output-processors/_consolidate-results";
export { _formatAutoAddResponse } from "./groups/add-users-workflow/output-processors/_format-auto-add-response";
export { _processAutoAdd } from "./groups/add-users-workflow/output-processors/_process-auto-add";
export { _processInvite } from "./groups/add-users-workflow/output-processors/_process-invite";
export { _processPrimaryEmail } from "./groups/add-users-workflow/output-processors/_process-primary-email";
export { _processSecondaryEmail } from "./groups/add-users-workflow/output-processors/_process-secondary-email";
export { _canEmailUser } from "./groups/add-users-workflow/utils/_can-email-user";
export { _getAutoAddUsers } from "./groups/add-users-workflow/utils/_get-auto-add-users";
export { _getEmailUsers } from "./groups/add-users-workflow/utils/_get-email-users";
export { _getInviteUsers } from "./groups/add-users-workflow/utils/_get-invite-users";
export { _isOrgAdmin } from "./groups/add-users-workflow/utils/_is-org-admin";
export { addGroupMembers } from "./groups/addGroupMembers";
// TODO: The below are being used in hub-teams. When we deprecate that package we can move
// The below into _internal and remove the exports from here. They were previously in
// the add-users-workflow directory
export { autoAddUsers } from "./groups/autoAddUsers";
export { emailOrgUsers } from "./groups/emailOrgUsers";
export { enrichGroupSearchResult } from "./groups/enrichGroupSearchResult";
export { getWellKnownGroup } from "./groups/getWellKnownGroup";
export { HubGroup } from "./groups/HubGroup";
export { createHubGroup, deleteHubGroup, fetchHubGroup, updateHubGroup, } from "./groups/HubGroups";
export { inviteUsers } from "./groups/inviteUsers";
export { isOpenDataGroup } from "./groups/isOpenDataGroup";
// TODO: end
export { FileExtension } from "./enums/fileExtension";
export { HubEntityHero } from "./enums/hubEntityHero";
export { HubEntityStatus } from "./enums/hubEntityStatus";
export { ItemType } from "./enums/itemType";
export { _unprotectAndRemoveGroup } from "./groups/_unprotect-and-remove-group";
export { addCreateItemTypes, HubFamilies, } from "./hub-types";
export { convertToWellKnownLocale } from "./i18n/convert-to-well-known-locale";
export { fetchHubTranslation } from "./i18n/fetch-hub-translation";
export { getCulture } from "./i18n/get-culture";
export { HUB_LOCALES } from "./i18n/hub-locales";
export { createInitiativeTemplate, deleteInitiativeTemplate, updateInitiativeTemplate, } from "./initiative-templates/edit";
export { convertItemToInitiativeTemplate, enrichInitiativeTemplateSearchResult, fetchInitiativeTemplate, } from "./initiative-templates/fetch";
export { HubInitiativeTemplate } from "./initiative-templates/HubInitiativeTemplate";
export { initiativeTemplateResultToCardModel, initiativeTemplateToCardModel, } from "./initiative-templates/view";
export { HubInitiative } from "./initiatives/HubInitiative";
export { convertItemToInitiative, createInitiative, deleteInitiative, enrichInitiativeSearchResult, fetchInitiative, getPendingProjectsQuery, updateInitiative, } from "./initiatives/HubInitiatives";
export { initiativeResultToCardModel, initiativeToCardModel, } from "./initiatives/view";
export { _unprotectAndRemoveItem } from "./items/_unprotect-and-remove-item";
export { applyPropertiesToItems } from "./items/apply-properties-to-items";
export { createItemFromFile } from "./items/create-item-from-file";
export { createItemFromUrl } from "./items/create-item-from-url";
export { createItemFromUrlOrFile } from "./items/create-item-from-url-or-file";
export { deleteProp } from "./items/delete-prop";
export { deleteItemThumbnail } from "./items/deleteItemThumbnail";
export { doesItemExistWithTitle } from "./items/does-item-exist-with-title";
export { failSafeUpdate } from "./items/fail-safe-update";
export { fetchItem } from "./items/fetch";
export { fetchAllPages } from "./items/fetch-all-pages";
export { followEntity, getEntityFollowersGroupId, isUserFollowing, unfollowEntity, } from "./items/follow";
export { getModelFromOptions } from "./items/get-model-from-options";
export { getStructuredLicense, STANDARD_LICENSES, } from "./items/get-structured-license";
export { getUniqueItemTitle } from "./items/get-unique-item-title";
export { getItemIdentifier } from "./items/getItemIdentifier";
export { interpolate } from "./items/interpolate";
export { interpolateItemId } from "./items/interpolate-item-id";
export { isServicesDirectoryDisabled } from "./items/is-services-directory-disabled";
export { itemPropsNotInTemplates, normalizeSolutionTemplateItem, } from "./items/normalize-solution-template-item";
export { registerBrowserApp } from "./items/registerBrowserApp";
export { replaceItemId } from "./items/replace-item-id";
export { setItemThumbnail } from "./items/setItemThumbnail";
export { shareItemToGroups } from "./items/share-item-to-groups";
export { constructSlug, findItemsBySlug, getItemBySlug, getUniqueSlug, setSlugKeyword, } from "./items/slugs";
export { unprotectModel } from "./items/unprotect-model";
export { unshareItemFromGroups } from "./items/unshare-item-from-groups";
export { uploadImageResource } from "./items/uploadImageResource";
export { aggregateMetrics } from "./metrics/aggregateMetrics";
export { buildWhereClause, editorToMetric } from "./metrics/editorToMetric";
export { getEntityMetrics } from "./metrics/getEntityMetrics";
export { resolveMetric } from "./metrics/resolveMetric";
export { createModel } from "./models/createModel";
export { fetchModelFromItem } from "./models/fetchModelFromItem";
export { fetchModelResources } from "./models/fetchModelResource";
export { getModel } from "./models/getModel";
export { getModelBySlug } from "./models/getModelBySlug";
export { serializeModel } from "./models/serializeModel";
export { updateModel } from "./models/updateModel";
export { upsertModelResources } from "./models/upsertModelResource";
export { notify } from "./newsletters-scheduler/api/subscriptions";
export { SchedulerCadence, SchedulerDeliveryMethod, SchedulerSubscriptionAction, SchedulerSystemNotificationSpecNames, SubscriptionEntityType, } from "./newsletters-scheduler/api/types";
export { createSubscription, getSubscription, getSubscriptions, subscribe, updateSubscription, } from "./newsletters/api/subscriptions";
export { DeliveryMethod, NewsletterCadence, SubscriptionAction, SystemNotificationSpecNames, } from "./newsletters/api/types";
export { createUser, deleteUser, getUser, updateUser, } from "./newsletters/api/users";
export { _deepMapValues, _isDate, _isFunction, _isObject, _isRegExp, _isString, } from "./objects/_deep-map-values";
export { _mapValues } from "./objects/_map-values";
export { deepSet } from "./objects/deep-set";
export { deepStringReplace } from "./objects/deep-string-replace";
export { deepDeletePropByValue } from "./objects/deepDeletePropByValue";
export { deepEqual } from "./objects/deepEqual";
export { deepFilter } from "./objects/deepFilter";
export { deepFind, deepFindById } from "./objects/deepFind";
export { deepMerge } from "./objects/deepMerge";
export { ensureProp } from "./objects/ensure-prop";
export { getProp } from "./objects/get-prop";
export { getProps } from "./objects/get-props";
export { getWithDefault } from "./objects/get-with-default";
export { mergeObjects } from "./objects/merge-objects";
export { pickProps } from "./objects/pickProps";
export { removeEmptyProps } from "./objects/remove-empty-props";
export { resolveReferences } from "./objects/resolveReferences";
export { setProp } from "./objects/set-prop";
export { fetchOrganization, portalToOrganization, portalToSearchResult, } from "./org/fetch";
export { fetchOrg } from "./org/fetch-org";
export { fetchMaxNumUserGroupsLimit, fetchOrgLimits, } from "./org/fetchOrgLimits";
export { HubPage } from "./pages/HubPage";
export { convertItemToPage, convertModelToPage, createPage, deletePage, enrichPageSearchResult, fetchPage, updatePage, } from "./pages/HubPages";
export { checkPermission, } from "./permissions/checkPermission";
export { getPermissionPolicy, HubPermissionsPolicies, } from "./permissions/HubPermissionPolicies";
export { isPermission } from "./permissions/isPermission";
export { COLLABORATION_TYPES, } from "./permissions/types/IEntityPermissionPolicy";
export { addPermissionPolicy, removePermissionPolicy, } from "./permissions/utils";
export { createProject, deleteProject, updateProject } from "./projects/edit";
export { convertItemToProject, enrichProjectSearchResult, fetchProject, } from "./projects/fetch";
export { HubProject } from "./projects/HubProject";
export { projectResultToCardModel, projectToCardModel } from "./projects/view";
export { hubApiRequest, RemoteServerError } from "./request";
export { _addTokenToResourceUrl } from "./resources/_add-token-to-resource-url";
export { addSolutionResourceUrlToAssets } from "./resources/add-solution-resource-url-to-assets";
export { convertSolutionTemplateResourcesToAssets } from "./resources/convert-solution-template-resources-to-assets";
export { doesResourceExist } from "./resources/doesResourceExist";
export { fetchAndUploadResource } from "./resources/fetch-and-upload-resource";
export { fetchAndUploadThumbnail } from "./resources/fetch-and-upload-thumbnail";
export { fetchImageAsBlob } from "./resources/fetch-image-as-blob";
export { getItemAssets } from "./resources/get-item-assets";
export { getItemThumbnailUrl, } from "./resources/get-item-thumbnail-url";
export { getOrgThumbnailUrl } from "./resources/get-org-thumbnail-url";
export { isService } from "./resources/is-service";
export { objectToJsonBlob } from "./resources/object-to-json-blob";
export { removeResource } from "./resources/removeResource";
export { stringToBlob } from "./resources/string-to-blob";
export { uploadResourcesFromUrl } from "./resources/upload-resources-from-url";
export { upsertResource } from "./resources/upsertResource";
export { validateUrl } from "./resources/validate-url";
export { commitItemUpload, createItem, updateItem, } from "./rest/portal/wrappers";
export { Catalog } from "./search/Catalog";
export { Collection } from "./search/Collection";
export { combineQueries } from "./search/combineQueries";
export { explainQueryResult } from "./search/explainQueryResult";
export { getCatalogGroups } from "./search/getCatalogGroups";
export { getPredicateValues } from "./search/getPredicateValues";
export { getUserGroupsByMembership } from "./search/getUserGroupsByMembership";
export { getUserGroupsFromQuery } from "./search/getUserGroupsFromQuery";
export { hubSearch } from "./search/hubSearch";
export { negateGroupPredicates } from "./search/negateGroupPredicates";
export { relativeDateToDateRange } from "./search/relativeDateToDateRange";
export { searchAssociatedContent } from "./search/searchAssociatedContent";
export { searchCatalogs } from "./search/searchCatalogs";
export { searchEntityCatalogs } from "./search/searchEntityCatalogs";
export { serializeCatalogScope } from "./search/serializeCatalogScopeQuery";
export { serializeQueryForPortal } from "./search/serializeQueryForPortal";
export { targetEntities, } from "./search/types/IHubCatalog";
export { CATALOG_SETUP_TYPES, } from "./search/types/types";
export { CATALOG_SCHEMA_VERSION, upgradeCatalogSchema, } from "./search/upgradeCatalogSchema";
export { addDefaultItemSearchPredicates, expandPortalQuery, getGroupPredicate, getGroupThumbnailUrl, getKilobyteSizeOfQuery, getResultSiteRelativeLink, getScopeGroupPredicate, getUserThumbnailUrl, migrateToCollectionKey, } from "./search/utils";
export { valueToMatchOptions } from "./search/valueToMatchOptions";
export { dotifyString, getWellKnownCatalog, getWellKnownCatalogs, getWellknownCollection, getWellknownCollections, WELL_KNOWN_EVENT_CATALOGS, WELL_KNOWN_GROUP_CATALOGS, WELL_KNOWN_ITEM_CATALOGS, } from "./search/wellKnownCatalog";
export { migrateBadBasemap } from "./sites/_internal/migrateBadBasemap";
export { migrateEnsureHeaderComponentName } from "./sites/_internal/migrateEnsureHeaderComponentName";
export { migrateWebMappingApplicationSites } from "./sites/_internal/migrateWebMappingApplicationSites";
export { defaultSiteCollectionKeys } from "./sites/defaultSiteCollectionKeys";
export { _checkStatusAndParseJson } from "./sites/domains/_check-status-and-parse-json";
export { _ensureSafeDomainLength } from "./sites/domains/_ensure-safe-domain-length";
export { _getAuthHeader } from "./sites/domains/_get-auth-header";
export { _getDomainServiceUrl } from "./sites/domains/_get-domain-service-url";
export { _lookupPortal } from "./sites/domains/_lookup-portal";
export { addDomain } from "./sites/domains/add-domain";
export { addSiteDomains } from "./sites/domains/addSiteDomains";
export { domainExists } from "./sites/domains/domain-exists";
export { domainExistsPortal } from "./sites/domains/domain-exists-portal";
export { ensureUniqueDomainName } from "./sites/domains/ensure-unique-domain-name";
export { getDomainsForSite } from "./sites/domains/get-domains-for-site";
export { getUniqueDomainName } from "./sites/domains/get-unique-domain-name";
export { getUniqueDomainNamePortal } from "./sites/domains/get-unique-domain-name-portal";
export { isDomainForLegacySite } from "./sites/domains/is-domain-for-legacy-site";
export { isDomainUsedElsewhere } from "./sites/domains/is-domain-used-elsewhere";
export { isValidDomain } from "./sites/domains/is-valid-domain";
export { lookupDomain } from "./sites/domains/lookup-domain";
export { removeDomain } from "./sites/domains/remove-domain";
export { removeDomainsBySiteId } from "./sites/domains/remove-domains-by-site-id";
export { removeDomainByHostname } from "./sites/domains/removeDomainByHostname";
export { updateDomain } from "./sites/domains/update-domain";
export { buildDraft } from "./sites/drafts/build-draft";
export { getFeedConfiguration, setFeedConfiguration, } from "./sites/feed-configuration";
export { getFeedTemplate, } from "./sites/feeds/getFeedTemplate";
export { previewFeed } from "./sites/feeds/previewFeed";
export { setFeedTemplate, } from "./sites/feeds/setFeedTemplate";
export { fetchSiteModel } from "./sites/fetchSiteModel";
export { getCatalogFromSiteModel } from "./sites/get-catalog-from-site-model";
export { getSiteById } from "./sites/get-site-by-id";
export { HubSite } from "./sites/HubSite";
export { convertItemToSite, convertModelToSite, createSite, deleteSite, enrichSiteSearchResult, ENTERPRISE_SITE_ITEM_TYPE, fetchSite, HUB_SITE_ITEM_TYPE, updateSite, } from "./sites/HubSites";
export { reharvestSiteCatalog } from "./sites/reharvestSiteCatalog";
export { searchCategoriesToCollections } from "./sites/searchCategoriesToCollections";
export { SITE_SCHEMA_VERSION } from "./sites/site-schema-version";
export { DEFAULT_THEME, getOrgDefaultTheme } from "./sites/themes";
export { upgradeSiteSchema } from "./sites/upgrade-site-schema";
// Exporting these keys to access in the catalog builder so
// we can apply translated labels to default site collections
export { _ensureTelemetry } from "./sites/_internal/_ensure-telemetry";
export { _migrateEventListCardConfigs } from "./sites/_internal/_migrate-event-list-card-configs";
export { _migrateFeedConfig } from "./sites/_internal/_migrate-feed-config";
export { _migrateLinkUnderlinesCapability } from "./sites/_internal/_migrate-link-underlines-capability";
export { _migrateTelemetryConfig } from "./sites/_internal/_migrate-telemetry-config";
export { _migrateToV2Catalog } from "./sites/_internal/_migrate-to-v2-catalog";
export { getInputFeatureServiceModel } from "./surveys/utils/get-input-feature-service-model";
export { getS123EditUrl } from "./surveys/utils/get-s123-edit-url";
export { getS123ShareUrl } from "./surveys/utils/get-s123-share-url";
export { getSourceFeatureServiceModelFromFieldworker } from "./surveys/utils/get-source-feature-service-model-from-fieldworker";
export { getStakeholderModel } from "./surveys/utils/get-stakeholder-model";
export { getSurveyModels } from "./surveys/utils/get-survey-models";
export { isDraft } from "./surveys/utils/is-draft";
export { isFieldworkerView } from "./surveys/utils/is-fieldworker-view";
export { createTemplate, deleteTemplate, editorToTemplate, updateTemplate, } from "./templates/edit";
export { convertItemToTemplate, enrichTemplateSearchResult, fetchTemplate, } from "./templates/fetch";
export { HubTemplate } from "./templates/HubTemplate";
export { templateResultToCardModel, templateToCardModel, } from "./templates/view";
export { _getHttpAndHttpsUris } from "./urls/_get-http-and-https-uris";
export { _getLocation } from "./urls/_get-location";
export { buildUrl } from "./urls/build-url";
export { cacheBustUrl } from "./urls/cacheBustUrl";
export { convertUrlsToAnchorTags } from "./urls/convert-urls-to-anchor-tags";
export { getServiceTypeFromUrl, isMapOrFeatureServerUrl, } from "./urls/feature-service-urls";
export { getCampaignUrl } from "./urls/get-campaign-url";
export { getCdnAssetUrl } from "./urls/get-cdn-asset-url";
export { getHubApiUrlFromPortal } from "./urls/get-hub-api-url-from-portal";
export { getHubLocaleAssetUrl } from "./urls/get-hub-locale-asset-url";
export { getHubUrlFromPortal } from "./urls/get-hub-url-from-portal";
export { getItemApiUrl } from "./urls/get-item-api-url";
export { getItemDataUrl } from "./urls/get-item-data-url";
export { getItemHomeUrl } from "./urls/get-item-home-url";
export { getPortalApiUrl } from "./urls/get-portal-api-url";
export { getPortalUrl } from "./urls/get-portal-url";
export { getCardModelUrlFromEntity, getCardModelUrlFromResult, } from "./urls/getCardModelUrl";
export { getContentHomeUrl } from "./urls/getContentHomeUrl";
export { getGroupHomeUrl } from "./urls/getGroupHomeUrl";
export { getHubApiFromPortalUrl } from "./urls/getHubApiFromPortalUrl";
export { getPortalBaseFromOrgUrl } from "./urls/getPortalBaseFromOrgUrl";
export { getUserHomeUrl } from "./urls/getUserHomeUrl";
export { HUB_CDN_URLMAP } from "./urls/hub-cdn-urlmap";
export { isSafeRedirectUrl } from "./urls/is-safe-redirect-url";
export { isEnterprisePortalUrl } from "./urls/isEnterprisePortalUrl";
export { stripProtocol } from "./urls/strip-protocol";
export { upgradeProtocol } from "./urls/upgrade-protocol";
export { convertUserToHubUser, enrichUserSearchResult, fetchHubUser, } from "./users/HubUsers";
export { userResultToCardModel } from "./users/view";
export { addDays, arrayToObject, camelize, capitalize, chunkArray, cloneObject, compose, createId, extend, filterBy, findBy, flattenArray, isNil, last, maybeAdd, maybePush, objectToArray, unique, uniqueBy, without, } from "./util";
export { isArrayEqual } from "./utils/array";
export { asyncForEach } from "./utils/asyncForEach";
export { batch } from "./utils/batch";
export { createOperationPipeline, } from "./utils/create-operation-pipeline";
export { dasherize } from "./utils/dasherize";
export { getDatePickerDate } from "./utils/date/getDatePickerDate";
export { getTimePickerTime } from "./utils/date/getTimePickerTime";
export { guessTimeZone } from "./utils/date/guessTimeZone";
export { base64ToUnicode, unicodeToBase64 } from "./utils/encoding";
export { ensureUniqueString } from "./utils/ensure-unique-string";
export { failSafe } from "./utils/fail-safe";
export { generateRandomString } from "./utils/generate-random-string";
export { getHubProduct } from "./utils/get-hub-product";
export { getSubscriptionType } from "./utils/get-subscription-type";
export { getEnvironmentFromPortalUrl } from "./utils/getEnvironmentFromPortalUrl";
export { getEventThumbnail } from "./utils/getEventThumbnail";
export { getObjectSize } from "./utils/getObjectSize";
export { fetchUserHubSettings, fetchUserSiteSettings, updateUserHubSettings, updateUserSiteSettings, } from "./utils/hubUserAppResources";
export { includes } from "./utils/includes";
export { incrementString } from "./utils/increment-string";
export { isCuid } from "./utils/is-cuid";
export { isGuid } from "./utils/is-guid";
export { isUpdateGroup } from "./utils/is-update-group";
export { isComboboxItemSelected } from "./utils/isComboboxItemSelected";
export { Logger } from "./utils/logger";
export { mapBy } from "./utils/map-by";
export { clearMemoizedCache, memoize } from "./utils/memoize";
export { poll } from "./utils/poll";
export { propifyString } from "./utils/propify-string";
export { processRevertableTasks, runRevertableTask, } from "./utils/revertable-tasks";
export { slugify } from "./utils/slugify";
export { titleize } from "./utils/titleize";
export { wait } from "./utils/wait";
export { withoutByProp } from "./utils/without-by-prop";
export { createVersion } from "./versioning/createVersion";
export { deleteVersion } from "./versioning/deleteVersion";
export { getVersion } from "./versioning/getVersion";
export { searchVersions } from "./versioning/searchVersions";
export { updateVersion } from "./versioning/updateVersion";
export { updateVersionMetadata } from "./versioning/updateVersionMetadata";
export { applyVersion, checkForStaleVersion } from "./versioning/utils";
export { HubError, OperationError, OperationStack };
export { layoutNodeTags, } from "./layouts/layout-system-types";
//# sourceMappingURL=index.js.map