@esri/hub-common 13.17.2 → 13.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/associations/addAssociation.js +16 -0
- package/dist/esm/associations/addAssociation.js.map +1 -0
- package/dist/esm/associations/index.js +5 -0
- package/dist/esm/associations/index.js.map +1 -0
- package/dist/esm/associations/internal/getTargetEntityFromAssociationType.js +18 -0
- package/dist/esm/associations/internal/getTargetEntityFromAssociationType.js.map +1 -0
- package/dist/esm/associations/internal/getTypeByIdsQuery.js +28 -0
- package/dist/esm/associations/internal/getTypeByIdsQuery.js.map +1 -0
- package/dist/esm/associations/internal/getTypeFromAssociationType.js +18 -0
- package/dist/esm/associations/internal/getTypeFromAssociationType.js.map +1 -0
- package/dist/esm/associations/internal/getTypeWithKeywordQuery.js +27 -0
- package/dist/esm/associations/internal/getTypeWithKeywordQuery.js.map +1 -0
- package/dist/esm/associations/internal/getTypeWithoutKeywordQuery.js +27 -0
- package/dist/esm/associations/internal/getTypeWithoutKeywordQuery.js.map +1 -0
- package/dist/esm/associations/listAssociations.js +17 -0
- package/dist/esm/associations/listAssociations.js.map +1 -0
- package/dist/esm/associations/removeAssociation.js +17 -0
- package/dist/esm/associations/removeAssociation.js.map +1 -0
- package/dist/esm/associations/types.js +2 -0
- package/dist/esm/associations/types.js.map +1 -0
- package/dist/esm/content/_internal/ContentSchema.js +16 -0
- package/dist/esm/content/_internal/ContentSchema.js.map +1 -0
- package/dist/esm/content/_internal/ContentUiSchemaEdit.js +148 -0
- package/dist/esm/content/_internal/ContentUiSchemaEdit.js.map +1 -0
- package/dist/esm/content/_internal/ContentUiSchemaSettings.js +59 -0
- package/dist/esm/content/_internal/ContentUiSchemaSettings.js.map +1 -0
- package/dist/esm/content/_internal/computeProps.js +57 -0
- package/dist/esm/content/_internal/computeProps.js.map +1 -0
- package/dist/esm/content/hostedServiceUtils.js +91 -0
- package/dist/esm/content/hostedServiceUtils.js.map +1 -0
- package/dist/esm/core/EntityEditor.js +56 -0
- package/dist/esm/core/EntityEditor.js.map +1 -0
- package/dist/esm/core/behaviors/IWIthAssociationBehavior.js +1 -0
- package/dist/esm/core/behaviors/IWIthAssociationBehavior.js.map +1 -0
- package/dist/esm/core/behaviors/IWithFollowersBehavior.js +1 -0
- package/dist/esm/core/behaviors/IWithFollowersBehavior.js.map +1 -0
- package/dist/esm/core/enrichEntity.js +66 -0
- package/dist/esm/core/enrichEntity.js.map +1 -0
- package/dist/esm/core/schemas/getEditorConfig.js +13 -0
- package/dist/esm/core/schemas/getEditorConfig.js.map +1 -0
- package/dist/esm/core/schemas/internal/ConfigurableEntity.js +1 -0
- package/dist/esm/core/schemas/internal/ConfigurableEntity.js.map +1 -0
- package/dist/esm/core/schemas/internal/configOptionHelpers.js +88 -0
- package/dist/esm/core/schemas/internal/configOptionHelpers.js.map +1 -0
- package/dist/esm/core/schemas/internal/getCategoryItems.js +34 -0
- package/dist/esm/core/schemas/internal/getCategoryItems.js.map +1 -0
- package/dist/esm/core/schemas/internal/getConfigOptions.js +15 -0
- package/dist/esm/core/schemas/internal/getConfigOptions.js.map +1 -0
- package/dist/esm/core/schemas/internal/getEditorConfigOptions.js +37 -0
- package/dist/esm/core/schemas/internal/getEditorConfigOptions.js.map +1 -0
- package/dist/esm/core/schemas/internal/getEntityEditorSchemas.js +93 -0
- package/dist/esm/core/schemas/internal/getEntityEditorSchemas.js.map +1 -0
- package/dist/esm/core/schemas/internal/getFeaturedContentCatalogs.js +21 -0
- package/dist/esm/core/schemas/internal/getFeaturedContentCatalogs.js.map +1 -0
- package/dist/esm/core/schemas/internal/getFeaturedImageUrl.js +11 -0
- package/dist/esm/core/schemas/internal/getFeaturedImageUrl.js.map +1 -0
- package/dist/esm/core/schemas/internal/getLocationExtent.js +11 -0
- package/dist/esm/core/schemas/internal/getLocationExtent.js.map +1 -0
- package/dist/esm/core/schemas/internal/getLocationOptions.js +64 -0
- package/dist/esm/core/schemas/internal/getLocationOptions.js.map +1 -0
- package/dist/esm/core/schemas/internal/getSharableGroupsComboBoxItems.js +27 -0
- package/dist/esm/core/schemas/internal/getSharableGroupsComboBoxItems.js.map +1 -0
- package/dist/esm/core/schemas/internal/getTagItems.js +61 -0
- package/dist/esm/core/schemas/internal/getTagItems.js.map +1 -0
- package/dist/esm/core/traits/IWithAssociations.js +1 -0
- package/dist/esm/core/traits/IWithAssociations.js.map +1 -0
- package/dist/esm/core/traits/IWithFollowers.js +1 -0
- package/dist/esm/core/traits/IWithFollowers.js.map +1 -0
- package/dist/esm/core/types/HubEntityEditor.js +1 -0
- package/dist/esm/core/types/HubEntityEditor.js.map +1 -0
- package/dist/esm/core/types/IHubGroup.js +1 -0
- package/dist/esm/core/types/IHubGroup.js.map +1 -0
- package/dist/esm/discussions/api/channels/channels.js +14 -0
- package/dist/esm/discussions/api/channels/channels.js.map +1 -0
- package/dist/esm/discussions/api/channels/index.js +2 -0
- package/dist/esm/discussions/api/channels/index.js.map +1 -0
- package/dist/esm/discussions/api/index.js +3 -0
- package/dist/esm/discussions/api/index.js.map +1 -0
- package/dist/esm/discussions/api/request.js +20 -0
- package/dist/esm/discussions/api/request.js.map +1 -0
- package/dist/esm/discussions/api/types.js +245 -0
- package/dist/esm/discussions/api/types.js.map +1 -0
- package/dist/esm/discussions/api/utils/request.js +77 -0
- package/dist/esm/discussions/api/utils/request.js.map +1 -0
- package/dist/esm/features/_internal/checkCapabilityAccess.js +54 -0
- package/dist/esm/features/_internal/checkCapabilityAccess.js.map +1 -0
- package/dist/esm/features/_internal/checkFeatureAccess.js +99 -0
- package/dist/esm/features/_internal/checkFeatureAccess.js.map +1 -0
- package/dist/esm/features/_internal/index.js +3 -0
- package/dist/esm/features/_internal/index.js.map +1 -0
- package/dist/esm/features/checkFeature.js +107 -0
- package/dist/esm/features/checkFeature.js.map +1 -0
- package/dist/esm/features/index.js +5 -0
- package/dist/esm/features/index.js.map +1 -0
- package/dist/esm/features/types.js +28 -0
- package/dist/esm/features/types.js.map +1 -0
- package/dist/esm/groups/HubGroup.js +258 -0
- package/dist/esm/groups/HubGroup.js.map +1 -0
- package/dist/esm/groups/_internal/AddOrInviteUsersToGroupUtils.js +195 -0
- package/dist/esm/groups/_internal/AddOrInviteUsersToGroupUtils.js.map +1 -0
- package/dist/esm/groups/_internal/GroupBusinessRules.js +94 -0
- package/dist/esm/groups/_internal/GroupBusinessRules.js.map +1 -0
- package/dist/esm/groups/_internal/GroupSchema.js +31 -0
- package/dist/esm/groups/_internal/GroupSchema.js.map +1 -0
- package/dist/esm/groups/_internal/GroupUiSchemaEdit.js +62 -0
- package/dist/esm/groups/_internal/GroupUiSchemaEdit.js.map +1 -0
- package/dist/esm/groups/_internal/GroupUiSchemaSettings.js +46 -0
- package/dist/esm/groups/_internal/GroupUiSchemaSettings.js.map +1 -0
- package/dist/esm/groups/_internal/autoAddUsersAsAdmins.js +24 -0
- package/dist/esm/groups/_internal/autoAddUsersAsAdmins.js.map +1 -0
- package/dist/esm/groups/_internal/computeProps.js +45 -0
- package/dist/esm/groups/_internal/computeProps.js.map +1 -0
- package/dist/esm/groups/_internal/convertGroupToHubGroup.js +14 -0
- package/dist/esm/groups/_internal/convertGroupToHubGroup.js.map +1 -0
- package/dist/esm/groups/_internal/convertHubGroupToGroup.js +26 -0
- package/dist/esm/groups/_internal/convertHubGroupToGroup.js.map +1 -0
- package/dist/esm/groups/_internal/getPropertyMap.js +40 -0
- package/dist/esm/groups/_internal/getPropertyMap.js.map +1 -0
- package/dist/esm/groups/_internal/processAutoAddUsers.js +62 -0
- package/dist/esm/groups/_internal/processAutoAddUsers.js.map +1 -0
- package/dist/esm/groups/_internal/processEmailUsers.js +50 -0
- package/dist/esm/groups/_internal/processEmailUsers.js.map +1 -0
- package/dist/esm/groups/_internal/processInviteUsers.js +51 -0
- package/dist/esm/groups/_internal/processInviteUsers.js.map +1 -0
- package/dist/esm/groups/addOrInviteUsersToGroup.js +67 -0
- package/dist/esm/groups/addOrInviteUsersToGroup.js.map +1 -0
- package/dist/esm/groups/addOrInviteUsersToGroups.js +51 -0
- package/dist/esm/groups/addOrInviteUsersToGroups.js.map +1 -0
- package/dist/esm/groups/autoAddUsers.js +24 -0
- package/dist/esm/groups/autoAddUsers.js.map +1 -0
- package/dist/esm/groups/defaults.js +21 -0
- package/dist/esm/groups/defaults.js.map +1 -0
- package/dist/esm/groups/deleteGroupThumbnail.js +14 -0
- package/dist/esm/groups/deleteGroupThumbnail.js.map +1 -0
- package/dist/esm/groups/emailOrgUsers.js +29 -0
- package/dist/esm/groups/emailOrgUsers.js.map +1 -0
- package/dist/esm/groups/inviteUsers.js +30 -0
- package/dist/esm/groups/inviteUsers.js.map +1 -0
- package/dist/esm/groups/setGroupThumbnail.js +32 -0
- package/dist/esm/groups/setGroupThumbnail.js.map +1 -0
- package/dist/esm/groups/types/types.js +1 -0
- package/dist/esm/groups/types/types.js.map +1 -0
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaCreate.js +134 -0
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaCreate.js.map +1 -0
- package/dist/esm/initiatives/view.js +81 -0
- package/dist/esm/initiatives/view.js.map +1 -0
- package/dist/esm/items/deleteItemThumbnail.js +14 -0
- package/dist/esm/items/deleteItemThumbnail.js.map +1 -0
- package/dist/esm/pages/HubPage.js +201 -0
- package/dist/esm/pages/HubPage.js.map +1 -0
- package/dist/esm/pages/_internal/PageSchema.js +31 -0
- package/dist/esm/pages/_internal/PageSchema.js.map +1 -0
- package/dist/esm/pages/_internal/PageUiSchemaEdit.js +126 -0
- package/dist/esm/pages/_internal/PageUiSchemaEdit.js.map +1 -0
- package/dist/esm/pages/_internal/computeProps.js +45 -0
- package/dist/esm/pages/_internal/computeProps.js.map +1 -0
- package/dist/esm/pages/_internal/getPropertyMap.js +20 -0
- package/dist/esm/pages/_internal/getPropertyMap.js.map +1 -0
- package/dist/esm/pages/defaults.js +41 -0
- package/dist/esm/pages/defaults.js.map +1 -0
- package/dist/esm/permissions/PlatformPermissionPolicies.js +711 -0
- package/dist/esm/permissions/PlatformPermissionPolicies.js.map +1 -0
- package/dist/esm/permissions/_internal/PermissionCheckFunction.js +1 -0
- package/dist/esm/permissions/_internal/PermissionCheckFunction.js.map +1 -0
- package/dist/esm/permissions/_internal/checkAvailability.js +46 -0
- package/dist/esm/permissions/_internal/checkAvailability.js.map +1 -0
- package/dist/esm/permissions/_internal/checkEntityFeature.js +29 -0
- package/dist/esm/permissions/_internal/checkEntityFeature.js.map +1 -0
- package/dist/esm/permissions/_internal/checkEnvironment.js +28 -0
- package/dist/esm/permissions/_internal/checkEnvironment.js.map +1 -0
- package/dist/esm/permissions/_internal/checkFeature.js +65 -0
- package/dist/esm/permissions/_internal/checkFeature.js.map +1 -0
- package/dist/esm/permissions/_internal/checkFeatures.js +42 -0
- package/dist/esm/permissions/_internal/checkFeatures.js.map +1 -0
- package/dist/esm/permissions/_internal/checkParents.js +23 -0
- package/dist/esm/permissions/_internal/checkParents.js.map +1 -0
- package/dist/esm/permissions/_internal/checkServiceStatus.js +24 -0
- package/dist/esm/permissions/_internal/checkServiceStatus.js.map +1 -0
- package/dist/esm/permissions/_internal/processEntityFeatures.js +26 -0
- package/dist/esm/permissions/_internal/processEntityFeatures.js.map +1 -0
- package/dist/esm/projects/_internal/getProjectEditorConfigOptions.js +63 -0
- package/dist/esm/projects/_internal/getProjectEditorConfigOptions.js.map +1 -0
- package/dist/esm/search/_internal/commonHelpers/getDiscussionsApiDefinition.js +10 -0
- package/dist/esm/search/_internal/commonHelpers/getDiscussionsApiDefinition.js.map +1 -0
- package/dist/esm/search/_internal/commonHelpers/shouldUseDiscussionsApi.js +13 -0
- package/dist/esm/search/_internal/commonHelpers/shouldUseDiscussionsApi.js.map +1 -0
- package/dist/esm/search/_internal/explainFilter.js +34 -0
- package/dist/esm/search/_internal/explainFilter.js.map +1 -0
- package/dist/esm/search/_internal/explainHelpers.js +193 -0
- package/dist/esm/search/_internal/explainHelpers.js.map +1 -0
- package/dist/esm/search/_internal/explainPredicate.js +35 -0
- package/dist/esm/search/_internal/explainPredicate.js.map +1 -0
- package/dist/esm/search/_internal/getEntityTypeFromType.js +21 -0
- package/dist/esm/search/_internal/getEntityTypeFromType.js.map +1 -0
- package/dist/esm/search/_internal/hubSearchChannels.js +137 -0
- package/dist/esm/search/_internal/hubSearchChannels.js.map +1 -0
- package/dist/esm/search/_internal/negateGroupPredicates.js +28 -0
- package/dist/esm/search/_internal/negateGroupPredicates.js.map +1 -0
- package/dist/esm/search/_internal/portalSearchGroupMembers.js +10 -1
- package/dist/esm/search/_internal/portalSearchGroupMembers.js.map +1 -1
- package/dist/esm/search/explainQueryResult.js +53 -0
- package/dist/esm/search/explainQueryResult.js.map +1 -0
- package/dist/esm/sites/HubSite.js +2 -1
- package/dist/esm/sites/HubSite.js.map +1 -1
- package/dist/esm/sites/_internal/SiteUiSchemaFollowers.js +56 -0
- package/dist/esm/sites/_internal/SiteUiSchemaFollowers.js.map +1 -0
- package/dist/esm/sites/_internal/_migrate-summary-stat-card-configs.js +188 -0
- package/dist/esm/sites/_internal/_migrate-summary-stat-card-configs.js.map +1 -0
- package/dist/esm/sites/_internal/applyCatalogStructureMigration.js +39 -0
- package/dist/esm/sites/_internal/applyCatalogStructureMigration.js.map +1 -0
- package/dist/esm/sites/_internal/applyDefaultCollectionMigration.js +92 -0
- package/dist/esm/sites/_internal/applyDefaultCollectionMigration.js.map +1 -0
- package/dist/esm/sites/_internal/capabilities/capabilityToFeatureMap.js +31 -0
- package/dist/esm/sites/_internal/capabilities/capabilityToFeatureMap.js.map +1 -0
- package/dist/esm/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.js +46 -0
- package/dist/esm/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.js.map +1 -0
- package/dist/esm/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.js +34 -0
- package/dist/esm/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.js.map +1 -0
- package/dist/esm/sites/_internal/capabilities/types.js +1 -0
- package/dist/esm/sites/_internal/capabilities/types.js.map +1 -0
- package/dist/esm/sites/_internal/convertCatalogToLegacyFormat.js +33 -0
- package/dist/esm/sites/_internal/convertCatalogToLegacyFormat.js.map +1 -0
- package/dist/esm/sites/_internal/reflectCollectionsToSearchCategories.js +55 -0
- package/dist/esm/sites/_internal/reflectCollectionsToSearchCategories.js.map +1 -0
- package/dist/esm/sites/_internal/types.js +11 -0
- package/dist/esm/sites/_internal/types.js.map +1 -0
- package/dist/esm/urls/cacheBustUrl.js +13 -0
- package/dist/esm/urls/cacheBustUrl.js.map +1 -0
- package/dist/esm/urls/getCardModelUrl.js +76 -0
- package/dist/esm/urls/getCardModelUrl.js.map +1 -0
- package/dist/esm/users/view.js +71 -0
- package/dist/esm/users/view.js.map +1 -0
- package/dist/esm/utils/getEnvironmentFromPortalUrl.js +20 -0
- package/dist/esm/utils/getEnvironmentFromPortalUrl.js.map +1 -0
- package/dist/node/associations/addAssociation.js +20 -0
- package/dist/node/associations/addAssociation.js.map +1 -0
- package/dist/node/associations/index.js +8 -0
- package/dist/node/associations/index.js.map +1 -0
- package/dist/node/associations/internal/getTargetEntityFromAssociationType.js +22 -0
- package/dist/node/associations/internal/getTargetEntityFromAssociationType.js.map +1 -0
- package/dist/node/associations/internal/getTypeByIdsQuery.js +32 -0
- package/dist/node/associations/internal/getTypeByIdsQuery.js.map +1 -0
- package/dist/node/associations/internal/getTypeFromAssociationType.js +22 -0
- package/dist/node/associations/internal/getTypeFromAssociationType.js.map +1 -0
- package/dist/node/associations/internal/getTypeWithKeywordQuery.js +31 -0
- package/dist/node/associations/internal/getTypeWithKeywordQuery.js.map +1 -0
- package/dist/node/associations/internal/getTypeWithoutKeywordQuery.js +31 -0
- package/dist/node/associations/internal/getTypeWithoutKeywordQuery.js.map +1 -0
- package/dist/node/associations/listAssociations.js +21 -0
- package/dist/node/associations/listAssociations.js.map +1 -0
- package/dist/node/associations/removeAssociation.js +21 -0
- package/dist/node/associations/removeAssociation.js.map +1 -0
- package/dist/node/associations/types.js +4 -0
- package/dist/node/associations/types.js.map +1 -0
- package/dist/node/content/_internal/ContentSchema.js +19 -0
- package/dist/node/content/_internal/ContentSchema.js.map +1 -0
- package/dist/node/content/_internal/ContentUiSchemaEdit.js +151 -0
- package/dist/node/content/_internal/ContentUiSchemaEdit.js.map +1 -0
- package/dist/node/content/_internal/ContentUiSchemaSettings.js +62 -0
- package/dist/node/content/_internal/ContentUiSchemaSettings.js.map +1 -0
- package/dist/node/content/_internal/computeProps.js +62 -0
- package/dist/node/content/_internal/computeProps.js.map +1 -0
- package/dist/node/content/hostedServiceUtils.js +98 -0
- package/dist/node/content/hostedServiceUtils.js.map +1 -0
- package/dist/node/core/EntityEditor.js +60 -0
- package/dist/node/core/EntityEditor.js.map +1 -0
- package/dist/node/core/behaviors/IWIthAssociationBehavior.js +3 -0
- package/dist/node/core/behaviors/IWIthAssociationBehavior.js.map +1 -0
- package/dist/node/core/behaviors/IWithFollowersBehavior.js +3 -0
- package/dist/node/core/behaviors/IWithFollowersBehavior.js.map +1 -0
- package/dist/node/core/enrichEntity.js +69 -0
- package/dist/node/core/enrichEntity.js.map +1 -0
- package/dist/node/core/schemas/getEditorConfig.js +17 -0
- package/dist/node/core/schemas/getEditorConfig.js.map +1 -0
- package/dist/node/core/schemas/internal/ConfigurableEntity.js +3 -0
- package/dist/node/core/schemas/internal/ConfigurableEntity.js.map +1 -0
- package/dist/node/core/schemas/internal/configOptionHelpers.js +91 -0
- package/dist/node/core/schemas/internal/configOptionHelpers.js.map +1 -0
- package/dist/node/core/schemas/internal/getCategoryItems.js +38 -0
- package/dist/node/core/schemas/internal/getCategoryItems.js.map +1 -0
- package/dist/node/core/schemas/internal/getConfigOptions.js +19 -0
- package/dist/node/core/schemas/internal/getConfigOptions.js.map +1 -0
- package/dist/node/core/schemas/internal/getEditorConfigOptions.js +41 -0
- package/dist/node/core/schemas/internal/getEditorConfigOptions.js.map +1 -0
- package/dist/node/core/schemas/internal/getEntityEditorSchemas.js +97 -0
- package/dist/node/core/schemas/internal/getEntityEditorSchemas.js.map +1 -0
- package/dist/node/core/schemas/internal/getFeaturedContentCatalogs.js +25 -0
- package/dist/node/core/schemas/internal/getFeaturedContentCatalogs.js.map +1 -0
- package/dist/node/core/schemas/internal/getFeaturedImageUrl.js +15 -0
- package/dist/node/core/schemas/internal/getFeaturedImageUrl.js.map +1 -0
- package/dist/node/core/schemas/internal/getLocationExtent.js +15 -0
- package/dist/node/core/schemas/internal/getLocationExtent.js.map +1 -0
- package/dist/node/core/schemas/internal/getLocationOptions.js +68 -0
- package/dist/node/core/schemas/internal/getLocationOptions.js.map +1 -0
- package/dist/node/core/schemas/internal/getSharableGroupsComboBoxItems.js +31 -0
- package/dist/node/core/schemas/internal/getSharableGroupsComboBoxItems.js.map +1 -0
- package/dist/node/core/schemas/internal/getTagItems.js +65 -0
- package/dist/node/core/schemas/internal/getTagItems.js.map +1 -0
- package/dist/node/core/traits/IWithAssociations.js +3 -0
- package/dist/node/core/traits/IWithAssociations.js.map +1 -0
- package/dist/node/core/traits/IWithFollowers.js +3 -0
- package/dist/node/core/traits/IWithFollowers.js.map +1 -0
- package/dist/node/core/types/HubEntityEditor.js +3 -0
- package/dist/node/core/types/HubEntityEditor.js.map +1 -0
- package/dist/node/core/types/IHubGroup.js +3 -0
- package/dist/node/core/types/IHubGroup.js.map +1 -0
- package/dist/node/discussions/api/channels/channels.js +18 -0
- package/dist/node/discussions/api/channels/channels.js.map +1 -0
- package/dist/node/discussions/api/channels/index.js +5 -0
- package/dist/node/discussions/api/channels/index.js.map +1 -0
- package/dist/node/discussions/api/index.js +6 -0
- package/dist/node/discussions/api/index.js.map +1 -0
- package/dist/node/discussions/api/request.js +24 -0
- package/dist/node/discussions/api/request.js.map +1 -0
- package/dist/node/discussions/api/types.js +248 -0
- package/dist/node/discussions/api/types.js.map +1 -0
- package/dist/node/discussions/api/utils/request.js +83 -0
- package/dist/node/discussions/api/utils/request.js.map +1 -0
- package/dist/node/features/_internal/checkCapabilityAccess.js +54 -0
- package/dist/node/features/_internal/checkCapabilityAccess.js.map +1 -0
- package/dist/node/features/_internal/checkFeatureAccess.js +99 -0
- package/dist/node/features/_internal/checkFeatureAccess.js.map +1 -0
- package/dist/node/features/_internal/index.js +3 -0
- package/dist/node/features/_internal/index.js.map +1 -0
- package/dist/node/features/checkFeature.js +111 -0
- package/dist/node/features/checkFeature.js.map +1 -0
- package/dist/node/features/index.js +8 -0
- package/dist/node/features/index.js.map +1 -0
- package/dist/node/features/types.js +32 -0
- package/dist/node/features/types.js.map +1 -0
- package/dist/node/groups/HubGroup.js +262 -0
- package/dist/node/groups/HubGroup.js.map +1 -0
- package/dist/node/groups/_internal/AddOrInviteUsersToGroupUtils.js +205 -0
- package/dist/node/groups/_internal/AddOrInviteUsersToGroupUtils.js.map +1 -0
- package/dist/node/groups/_internal/GroupBusinessRules.js +97 -0
- package/dist/node/groups/_internal/GroupBusinessRules.js.map +1 -0
- package/dist/node/groups/_internal/GroupSchema.js +34 -0
- package/dist/node/groups/_internal/GroupSchema.js.map +1 -0
- package/dist/node/groups/_internal/GroupUiSchemaEdit.js +65 -0
- package/dist/node/groups/_internal/GroupUiSchemaEdit.js.map +1 -0
- package/dist/node/groups/_internal/GroupUiSchemaSettings.js +49 -0
- package/dist/node/groups/_internal/GroupUiSchemaSettings.js.map +1 -0
- package/dist/node/groups/_internal/autoAddUsersAsAdmins.js +28 -0
- package/dist/node/groups/_internal/autoAddUsersAsAdmins.js.map +1 -0
- package/dist/node/groups/_internal/computeProps.js +49 -0
- package/dist/node/groups/_internal/computeProps.js.map +1 -0
- package/dist/node/groups/_internal/convertGroupToHubGroup.js +18 -0
- package/dist/node/groups/_internal/convertGroupToHubGroup.js.map +1 -0
- package/dist/node/groups/_internal/convertHubGroupToGroup.js +30 -0
- package/dist/node/groups/_internal/convertHubGroupToGroup.js.map +1 -0
- package/dist/node/groups/_internal/getPropertyMap.js +44 -0
- package/dist/node/groups/_internal/getPropertyMap.js.map +1 -0
- package/dist/node/groups/_internal/processAutoAddUsers.js +66 -0
- package/dist/node/groups/_internal/processAutoAddUsers.js.map +1 -0
- package/dist/node/groups/_internal/processEmailUsers.js +54 -0
- package/dist/node/groups/_internal/processEmailUsers.js.map +1 -0
- package/dist/node/groups/_internal/processInviteUsers.js +55 -0
- package/dist/node/groups/_internal/processInviteUsers.js.map +1 -0
- package/dist/node/groups/addOrInviteUsersToGroup.js +71 -0
- package/dist/node/groups/addOrInviteUsersToGroup.js.map +1 -0
- package/dist/node/groups/addOrInviteUsersToGroups.js +55 -0
- package/dist/node/groups/addOrInviteUsersToGroups.js.map +1 -0
- package/dist/node/groups/autoAddUsers.js +28 -0
- package/dist/node/groups/autoAddUsers.js.map +1 -0
- package/dist/node/groups/defaults.js +24 -0
- package/dist/node/groups/defaults.js.map +1 -0
- package/dist/node/groups/deleteGroupThumbnail.js +18 -0
- package/dist/node/groups/deleteGroupThumbnail.js.map +1 -0
- package/dist/node/groups/emailOrgUsers.js +33 -0
- package/dist/node/groups/emailOrgUsers.js.map +1 -0
- package/dist/node/groups/inviteUsers.js +34 -0
- package/dist/node/groups/inviteUsers.js.map +1 -0
- package/dist/node/groups/setGroupThumbnail.js +36 -0
- package/dist/node/groups/setGroupThumbnail.js.map +1 -0
- package/dist/node/groups/types/types.js +3 -0
- package/dist/node/groups/types/types.js.map +1 -0
- package/dist/node/initiatives/_internal/InitiativeUiSchemaCreate.js +137 -0
- package/dist/node/initiatives/_internal/InitiativeUiSchemaCreate.js.map +1 -0
- package/dist/node/initiatives/view.js +84 -0
- package/dist/node/initiatives/view.js.map +1 -0
- package/dist/node/items/deleteItemThumbnail.js +18 -0
- package/dist/node/items/deleteItemThumbnail.js.map +1 -0
- package/dist/node/pages/HubPage.js +205 -0
- package/dist/node/pages/HubPage.js.map +1 -0
- package/dist/node/pages/_internal/PageSchema.js +34 -0
- package/dist/node/pages/_internal/PageSchema.js.map +1 -0
- package/dist/node/pages/_internal/PageUiSchemaEdit.js +129 -0
- package/dist/node/pages/_internal/PageUiSchemaEdit.js.map +1 -0
- package/dist/node/pages/_internal/computeProps.js +49 -0
- package/dist/node/pages/_internal/computeProps.js.map +1 -0
- package/dist/node/pages/_internal/getPropertyMap.js +24 -0
- package/dist/node/pages/_internal/getPropertyMap.js.map +1 -0
- package/dist/node/pages/defaults.js +44 -0
- package/dist/node/pages/defaults.js.map +1 -0
- package/dist/node/permissions/PlatformPermissionPolicies.js +714 -0
- package/dist/node/permissions/PlatformPermissionPolicies.js.map +1 -0
- package/dist/node/permissions/_internal/PermissionCheckFunction.js +3 -0
- package/dist/node/permissions/_internal/PermissionCheckFunction.js.map +1 -0
- package/dist/node/permissions/_internal/checkAvailability.js +50 -0
- package/dist/node/permissions/_internal/checkAvailability.js.map +1 -0
- package/dist/node/permissions/_internal/checkEntityFeature.js +33 -0
- package/dist/node/permissions/_internal/checkEntityFeature.js.map +1 -0
- package/dist/node/permissions/_internal/checkEnvironment.js +32 -0
- package/dist/node/permissions/_internal/checkEnvironment.js.map +1 -0
- package/dist/node/permissions/_internal/checkFeature.js +69 -0
- package/dist/node/permissions/_internal/checkFeature.js.map +1 -0
- package/dist/node/permissions/_internal/checkFeatures.js +46 -0
- package/dist/node/permissions/_internal/checkFeatures.js.map +1 -0
- package/dist/node/permissions/_internal/checkParents.js +27 -0
- package/dist/node/permissions/_internal/checkParents.js.map +1 -0
- package/dist/node/permissions/_internal/checkServiceStatus.js +28 -0
- package/dist/node/permissions/_internal/checkServiceStatus.js.map +1 -0
- package/dist/node/permissions/_internal/processEntityFeatures.js +30 -0
- package/dist/node/permissions/_internal/processEntityFeatures.js.map +1 -0
- package/dist/node/projects/_internal/getProjectEditorConfigOptions.js +67 -0
- package/dist/node/projects/_internal/getProjectEditorConfigOptions.js.map +1 -0
- package/dist/node/search/_internal/commonHelpers/getDiscussionsApiDefinition.js +14 -0
- package/dist/node/search/_internal/commonHelpers/getDiscussionsApiDefinition.js.map +1 -0
- package/dist/node/search/_internal/commonHelpers/shouldUseDiscussionsApi.js +17 -0
- package/dist/node/search/_internal/commonHelpers/shouldUseDiscussionsApi.js.map +1 -0
- package/dist/node/search/_internal/explainFilter.js +38 -0
- package/dist/node/search/_internal/explainFilter.js.map +1 -0
- package/dist/node/search/_internal/explainHelpers.js +202 -0
- package/dist/node/search/_internal/explainHelpers.js.map +1 -0
- package/dist/node/search/_internal/explainPredicate.js +39 -0
- package/dist/node/search/_internal/explainPredicate.js.map +1 -0
- package/dist/node/search/_internal/getEntityTypeFromType.js +25 -0
- package/dist/node/search/_internal/getEntityTypeFromType.js.map +1 -0
- package/dist/node/search/_internal/hubSearchChannels.js +140 -0
- package/dist/node/search/_internal/hubSearchChannels.js.map +1 -0
- package/dist/node/search/_internal/negateGroupPredicates.js +32 -0
- package/dist/node/search/_internal/negateGroupPredicates.js.map +1 -0
- package/dist/node/search/_internal/portalSearchGroupMembers.js +10 -1
- package/dist/node/search/_internal/portalSearchGroupMembers.js.map +1 -1
- package/dist/node/search/explainQueryResult.js +57 -0
- package/dist/node/search/explainQueryResult.js.map +1 -0
- package/dist/node/sites/HubSite.js +2 -1
- package/dist/node/sites/HubSite.js.map +1 -1
- package/dist/node/sites/_internal/SiteUiSchemaFollowers.js +59 -0
- package/dist/node/sites/_internal/SiteUiSchemaFollowers.js.map +1 -0
- package/dist/node/sites/_internal/_migrate-summary-stat-card-configs.js +192 -0
- package/dist/node/sites/_internal/_migrate-summary-stat-card-configs.js.map +1 -0
- package/dist/node/sites/_internal/applyCatalogStructureMigration.js +43 -0
- package/dist/node/sites/_internal/applyCatalogStructureMigration.js.map +1 -0
- package/dist/node/sites/_internal/applyDefaultCollectionMigration.js +96 -0
- package/dist/node/sites/_internal/applyDefaultCollectionMigration.js.map +1 -0
- package/dist/node/sites/_internal/capabilities/capabilityToFeatureMap.js +34 -0
- package/dist/node/sites/_internal/capabilities/capabilityToFeatureMap.js.map +1 -0
- package/dist/node/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.js +49 -0
- package/dist/node/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.js.map +1 -0
- package/dist/node/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.js +37 -0
- package/dist/node/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.js.map +1 -0
- package/dist/node/sites/_internal/capabilities/types.js +3 -0
- package/dist/node/sites/_internal/capabilities/types.js.map +1 -0
- package/dist/node/sites/_internal/convertCatalogToLegacyFormat.js +37 -0
- package/dist/node/sites/_internal/convertCatalogToLegacyFormat.js.map +1 -0
- package/dist/node/sites/_internal/reflectCollectionsToSearchCategories.js +59 -0
- package/dist/node/sites/_internal/reflectCollectionsToSearchCategories.js.map +1 -0
- package/dist/node/sites/_internal/types.js +14 -0
- package/dist/node/sites/_internal/types.js.map +1 -0
- package/dist/node/urls/cacheBustUrl.js +16 -0
- package/dist/node/urls/cacheBustUrl.js.map +1 -0
- package/dist/node/urls/getCardModelUrl.js +81 -0
- package/dist/node/urls/getCardModelUrl.js.map +1 -0
- package/dist/node/users/view.js +74 -0
- package/dist/node/users/view.js.map +1 -0
- package/dist/node/utils/getEnvironmentFromPortalUrl.js +24 -0
- package/dist/node/utils/getEnvironmentFromPortalUrl.js.map +1 -0
- package/dist/types/associations/addAssociation.d.ts +9 -0
- package/dist/types/associations/index.d.ts +4 -0
- package/dist/types/associations/internal/getTargetEntityFromAssociationType.d.ts +8 -0
- package/dist/types/associations/internal/getTypeByIdsQuery.d.ts +10 -0
- package/dist/types/associations/internal/getTypeFromAssociationType.d.ts +7 -0
- package/dist/types/associations/internal/getTypeWithKeywordQuery.d.ts +10 -0
- package/dist/types/associations/internal/getTypeWithoutKeywordQuery.d.ts +10 -0
- package/dist/types/associations/listAssociations.d.ts +8 -0
- package/dist/types/associations/removeAssociation.d.ts +9 -0
- package/dist/types/associations/types.d.ts +19 -0
- package/dist/types/content/_internal/ContentSchema.d.ts +7 -0
- package/dist/types/content/_internal/ContentUiSchemaEdit.d.ts +10 -0
- package/dist/types/content/_internal/ContentUiSchemaSettings.d.ts +10 -0
- package/dist/types/content/_internal/computeProps.d.ts +9 -0
- package/dist/types/content/hostedServiceUtils.d.ts +35 -0
- package/dist/types/core/EntityEditor.d.ts +13 -0
- package/dist/types/core/behaviors/IWIthAssociationBehavior.d.ts +23 -0
- package/dist/types/core/behaviors/IWithFollowersBehavior.d.ts +15 -0
- package/dist/types/core/enrichEntity.d.ts +16 -0
- package/dist/types/core/schemas/getEditorConfig.d.ts +13 -0
- package/dist/types/core/schemas/internal/ConfigurableEntity.d.ts +4 -0
- package/dist/types/core/schemas/internal/configOptionHelpers.d.ts +6 -0
- package/dist/types/core/schemas/internal/getCategoryItems.d.ts +11 -0
- package/dist/types/core/schemas/internal/getConfigOptions.d.ts +12 -0
- package/dist/types/core/schemas/internal/getEditorConfigOptions.d.ts +11 -0
- package/dist/types/core/schemas/internal/getEntityEditorSchemas.d.ts +15 -0
- package/dist/types/core/schemas/internal/getFeaturedContentCatalogs.d.ts +8 -0
- package/dist/types/core/schemas/internal/getFeaturedImageUrl.d.ts +3 -0
- package/dist/types/core/schemas/internal/getLocationExtent.d.ts +7 -0
- package/dist/types/core/schemas/internal/getLocationOptions.d.ts +16 -0
- package/dist/types/core/schemas/internal/getSharableGroupsComboBoxItems.d.ts +7 -0
- package/dist/types/core/schemas/internal/getTagItems.d.ts +12 -0
- package/dist/types/core/traits/IWithAssociations.d.ts +4 -0
- package/dist/types/core/traits/IWithFollowers.d.ts +7 -0
- package/dist/types/core/types/HubEntityEditor.d.ts +11 -0
- package/dist/types/core/types/IHubGroup.d.ts +109 -0
- package/dist/types/discussions/api/channels/channels.d.ts +10 -0
- package/dist/types/discussions/api/channels/index.d.ts +1 -0
- package/dist/types/discussions/api/index.d.ts +2 -0
- package/dist/types/discussions/api/request.d.ts +11 -0
- package/dist/types/discussions/api/types.d.ts +1007 -0
- package/dist/types/discussions/api/utils/request.d.ts +25 -0
- package/dist/types/features/_internal/checkCapabilityAccess.d.ts +0 -0
- package/dist/types/features/_internal/checkFeatureAccess.d.ts +0 -0
- package/dist/types/features/_internal/index.d.ts +0 -0
- package/dist/types/features/checkFeature.d.ts +10 -0
- package/dist/types/features/index.d.ts +2 -0
- package/dist/types/features/types.d.ts +31 -0
- package/dist/types/groups/HubGroup.d.ts +114 -0
- package/dist/types/groups/_internal/AddOrInviteUsersToGroupUtils.d.ts +82 -0
- package/dist/types/groups/_internal/GroupBusinessRules.d.ts +12 -0
- package/dist/types/groups/_internal/GroupSchema.d.ts +7 -0
- package/dist/types/groups/_internal/GroupUiSchemaEdit.d.ts +10 -0
- package/dist/types/groups/_internal/GroupUiSchemaSettings.d.ts +10 -0
- package/dist/types/groups/_internal/autoAddUsersAsAdmins.d.ts +13 -0
- package/dist/types/groups/_internal/computeProps.d.ts +12 -0
- package/dist/types/groups/_internal/convertGroupToHubGroup.d.ts +9 -0
- package/dist/types/groups/_internal/convertHubGroupToGroup.d.ts +7 -0
- package/dist/types/groups/_internal/getPropertyMap.d.ts +8 -0
- package/dist/types/groups/_internal/processAutoAddUsers.d.ts +15 -0
- package/dist/types/groups/_internal/processEmailUsers.d.ts +14 -0
- package/dist/types/groups/_internal/processInviteUsers.d.ts +13 -0
- package/dist/types/groups/addOrInviteUsersToGroup.d.ts +18 -0
- package/dist/types/groups/addOrInviteUsersToGroups.d.ts +30 -0
- package/dist/types/groups/autoAddUsers.d.ts +14 -0
- package/dist/types/groups/defaults.d.ts +11 -0
- package/dist/types/groups/deleteGroupThumbnail.d.ts +9 -0
- package/dist/types/groups/emailOrgUsers.d.ts +15 -0
- package/dist/types/groups/inviteUsers.d.ts +17 -0
- package/dist/types/groups/setGroupThumbnail.d.ts +9 -0
- package/dist/types/groups/types/types.d.ts +72 -0
- package/dist/types/initiatives/_internal/InitiativeUiSchemaCreate.d.ts +13 -0
- package/dist/types/initiatives/view.d.ts +19 -0
- package/dist/types/items/deleteItemThumbnail.d.ts +9 -0
- package/dist/types/pages/HubPage.d.ts +71 -0
- package/dist/types/pages/_internal/PageSchema.d.ts +7 -0
- package/dist/types/pages/_internal/PageUiSchemaEdit.d.ts +10 -0
- package/dist/types/pages/_internal/computeProps.d.ts +12 -0
- package/dist/types/pages/_internal/getPropertyMap.d.ts +8 -0
- package/dist/types/pages/defaults.d.ts +13 -0
- package/dist/types/permissions/PlatformPermissionPolicies.d.ts +9 -0
- package/dist/types/permissions/_internal/PermissionCheckFunction.d.ts +7 -0
- package/dist/types/permissions/_internal/checkAvailability.d.ts +13 -0
- package/dist/types/permissions/_internal/checkEntityFeature.d.ts +4 -0
- package/dist/types/permissions/_internal/checkEnvironment.d.ts +13 -0
- package/dist/types/permissions/_internal/checkFeature.d.ts +16 -0
- package/dist/types/permissions/_internal/checkFeatures.d.ts +10 -0
- package/dist/types/permissions/_internal/checkParents.d.ts +12 -0
- package/dist/types/permissions/_internal/checkServiceStatus.d.ts +4 -0
- package/dist/types/permissions/_internal/processEntityFeatures.d.ts +9 -0
- package/dist/types/projects/_internal/getProjectEditorConfigOptions.d.ts +10 -0
- package/dist/types/search/_internal/commonHelpers/getDiscussionsApiDefinition.d.ts +2 -0
- package/dist/types/search/_internal/commonHelpers/shouldUseDiscussionsApi.d.ts +11 -0
- package/dist/types/search/_internal/explainFilter.d.ts +11 -0
- package/dist/types/search/_internal/explainHelpers.d.ts +38 -0
- package/dist/types/search/_internal/explainPredicate.d.ts +12 -0
- package/dist/types/search/_internal/getEntityTypeFromType.d.ts +9 -0
- package/dist/types/search/_internal/hubSearchChannels.d.ts +30 -0
- package/dist/types/search/_internal/negateGroupPredicates.d.ts +9 -0
- package/dist/types/search/_internal/portalSearchGroupMembers.d.ts +2 -1
- package/dist/types/search/explainQueryResult.d.ts +102 -0
- package/dist/types/sites/_internal/SiteUiSchemaFollowers.d.ts +11 -0
- package/dist/types/sites/_internal/_migrate-summary-stat-card-configs.d.ts +9 -0
- package/dist/types/sites/_internal/applyCatalogStructureMigration.d.ts +11 -0
- package/dist/types/sites/_internal/applyDefaultCollectionMigration.d.ts +21 -0
- package/dist/types/sites/_internal/capabilities/capabilityToFeatureMap.d.ts +14 -0
- package/dist/types/sites/_internal/capabilities/convertFeaturesToLegacyCapabilities.d.ts +19 -0
- package/dist/types/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.d.ts +12 -0
- package/dist/types/sites/_internal/capabilities/types.d.ts +29 -0
- package/dist/types/sites/_internal/convertCatalogToLegacyFormat.d.ts +11 -0
- package/dist/types/sites/_internal/reflectCollectionsToSearchCategories.d.ts +11 -0
- package/dist/types/sites/_internal/types.d.ts +8 -0
- package/dist/types/urls/cacheBustUrl.d.ts +5 -0
- package/dist/types/urls/getCardModelUrl.d.ts +21 -0
- package/dist/types/users/view.d.ts +9 -0
- package/dist/types/utils/getEnvironmentFromPortalUrl.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IHubInitiative } from "../core";
|
|
2
|
+
import { EntityToCardModelFn, ResultToCardModelFn } from "../core/types/IHubCardViewModel";
|
|
3
|
+
/**
|
|
4
|
+
* Convert an initiative entity in a card view model
|
|
5
|
+
* that can be consumed by the suite of hub gallery components
|
|
6
|
+
*
|
|
7
|
+
* @param initiative initiative entity
|
|
8
|
+
* @param context auth & portal information
|
|
9
|
+
* @param opts view model options
|
|
10
|
+
*/
|
|
11
|
+
export declare const initiativeToCardModel: EntityToCardModelFn<IHubInitiative>;
|
|
12
|
+
/**
|
|
13
|
+
* Conver an initiative search result into a card view model
|
|
14
|
+
* that can be consumed by the suite of hub gallery components
|
|
15
|
+
*
|
|
16
|
+
* @param searchResult hub initiative search result
|
|
17
|
+
* @param opts view model options
|
|
18
|
+
*/
|
|
19
|
+
export declare const initiativeResultToCardModel: ResultToCardModelFn;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
|
+
/**
|
|
3
|
+
* Delete an item's thumbnail
|
|
4
|
+
* @param id
|
|
5
|
+
* @param owner
|
|
6
|
+
* @param requestOptions
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function deleteItemThumbnail(id: string, owner: string, requestOptions: IUserRequestOptions): Promise<any>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { IHubPage, IWithStoreBehavior, IWithSharingBehavior, IHubPageEditor, IEntityEditorContext } from "../core";
|
|
2
|
+
import { IArcGISContext } from "../ArcGISContext";
|
|
3
|
+
import { HubItemEntity } from "../core/HubItemEntity";
|
|
4
|
+
import { IEditorConfig, IWithEditorBehavior } from "../core/behaviors/IWithEditorBehavior";
|
|
5
|
+
import { PageEditorType } from "./_internal/PageSchema";
|
|
6
|
+
/**
|
|
7
|
+
* Hub Page Class
|
|
8
|
+
* NOTE: This is a minimal implementation.
|
|
9
|
+
*/
|
|
10
|
+
export declare class HubPage extends HubItemEntity<IHubPage> implements IWithStoreBehavior<IHubPage>, IWithSharingBehavior, IWithEditorBehavior {
|
|
11
|
+
/**
|
|
12
|
+
* Private constructor so we don't have `new` all over the place. Allows for
|
|
13
|
+
* more flexibility in how we create the HubPageManager over time.
|
|
14
|
+
* @param context
|
|
15
|
+
*/
|
|
16
|
+
private constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Create an instance from an IHubPage object
|
|
19
|
+
* @param json - JSON object to create a HubPage from
|
|
20
|
+
* @param context - ArcGIS context
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
static fromJson(json: Partial<IHubPage>, context: IArcGISContext): HubPage;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* Create a new HubPage, returning a HubPage instance.
|
|
27
|
+
* By default, this does not save the page to the backing store.
|
|
28
|
+
* @param partialPage
|
|
29
|
+
* @param context
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
static create(partialPage: Partial<IHubPage>, context: IArcGISContext, save?: boolean): Promise<HubPage>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a Page from the backing store and return a HubPage instance.
|
|
35
|
+
* @param identifier - Identifier of the page to load
|
|
36
|
+
* @param context
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
static fetch(identifier: string, context: IArcGISContext): Promise<HubPage>;
|
|
40
|
+
private static applyDefaults;
|
|
41
|
+
/**
|
|
42
|
+
* Apply a new state to the instance
|
|
43
|
+
* @param changes
|
|
44
|
+
*/
|
|
45
|
+
update(changes: Partial<IHubPage>): void;
|
|
46
|
+
/**
|
|
47
|
+
* Save the HubPage to the backing store.
|
|
48
|
+
* Currently Pages are stored as Items in Portal
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
save(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Delete the HubPage from the store
|
|
54
|
+
* set a flag to indicate that it is destroyed
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
delete(): Promise<void>;
|
|
58
|
+
getEditorConfig(i18nScope: string, type: PageEditorType): Promise<IEditorConfig>;
|
|
59
|
+
/**
|
|
60
|
+
* Return the project as an editor object
|
|
61
|
+
* @param editorContext
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubPageEditor>;
|
|
65
|
+
/**
|
|
66
|
+
* Load the project from the editor object
|
|
67
|
+
* @param editor
|
|
68
|
+
* @returns
|
|
69
|
+
*/
|
|
70
|
+
fromEditor(editor: IHubPageEditor): Promise<IHubPage>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IConfigurationSchema } from "../../core";
|
|
2
|
+
export declare const PageEditorTypes: readonly ["hub:page:edit"];
|
|
3
|
+
export declare type PageEditorType = (typeof PageEditorTypes)[number];
|
|
4
|
+
/**
|
|
5
|
+
* defines the JSON schema for a Hub Site's editable fields
|
|
6
|
+
*/
|
|
7
|
+
export declare const PageSchema: IConfigurationSchema;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IUiSchema } from "../../core/schemas/types";
|
|
2
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
3
|
+
import { IHubPage } from "../../core/types";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the complete edit uiSchema for Hub Pages.
|
|
7
|
+
* This defines how the schema properties should be
|
|
8
|
+
* rendered in the page editing experience
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildUiSchema: (i18nScope: string, entity: IHubPage, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { IModel } from "../../types";
|
|
3
|
+
import { IHubPage } from "../../core/types/IHubPage";
|
|
4
|
+
/**
|
|
5
|
+
* Given a model and a page, set various computed properties that can't be directly mapped
|
|
6
|
+
* @private
|
|
7
|
+
* @param model
|
|
8
|
+
* @param page
|
|
9
|
+
* @param requestOptions
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function computeProps(model: IModel, page: Partial<IHubPage>, requestOptions: IRequestOptions): IHubPage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPropertyMap } from "../../core/_internal/PropertyMapper";
|
|
2
|
+
/**
|
|
3
|
+
* Returns an Array of IPropertyMap objects
|
|
4
|
+
* that define the projection of properties from a IModel to an IHubPage
|
|
5
|
+
* @returns
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export declare function getPropertyMap(): IPropertyMap[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IHubPage } from "../core";
|
|
2
|
+
import { IModel } from "../types";
|
|
3
|
+
export declare const HUB_PAGE_ITEM_TYPE = "Hub Page";
|
|
4
|
+
export declare const ENTERPRISE_PAGE_ITEM_TYPE = "Site Page";
|
|
5
|
+
export declare const PAGE_TYPE_KEYWORD = "hubPage";
|
|
6
|
+
/**
|
|
7
|
+
* Default values of a IHubPage
|
|
8
|
+
*/
|
|
9
|
+
export declare const DEFAULT_PAGE: Partial<IHubPage>;
|
|
10
|
+
/**
|
|
11
|
+
* Default values for a new HubPage Model
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEFAULT_PAGE_MODEL: IModel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPermissionPolicy } from "./types/IPermissionPolicy";
|
|
2
|
+
/**
|
|
3
|
+
* All the permission policies for the Hub
|
|
4
|
+
*/
|
|
5
|
+
export declare const PlatformPermissions: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Platform Permission policies which delegate to Platform Privileges
|
|
8
|
+
*/
|
|
9
|
+
export declare const PlatformPermissionPolicies: IPermissionPolicy[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IPermissionPolicy } from "../types/IPermissionPolicy";
|
|
3
|
+
import { IPolicyCheck } from "../types/IPolicyCheck";
|
|
4
|
+
/**
|
|
5
|
+
* Type signature for Permission Check Functions
|
|
6
|
+
*/
|
|
7
|
+
export declare type PermissionCheckFunction = (policy: IPermissionPolicy, context: IArcGISContext, entity?: Record<string, any>) => IPolicyCheck[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IPermissionPolicy } from "../types/IPermissionPolicy";
|
|
3
|
+
import { IPolicyCheck } from "../types/IPolicyCheck";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* Verify that the policy.availability requirement is met.
|
|
7
|
+
* If a value is specified in the policy, the current context must be one of those values.
|
|
8
|
+
* @param policy
|
|
9
|
+
* @param context
|
|
10
|
+
* @param entity
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function checkAvailability(policy: IPermissionPolicy, context: IArcGISContext, _entity?: Record<string, any>): IPolicyCheck[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IPermissionPolicy } from "../types/IPermissionPolicy";
|
|
3
|
+
import { IPolicyCheck } from "../types/IPolicyCheck";
|
|
4
|
+
export declare function checkEntityFeature(policy: IPermissionPolicy, _entitycontext: IArcGISContext, entity?: Record<string, any>): IPolicyCheck[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IPermissionPolicy } from "../types/IPermissionPolicy";
|
|
3
|
+
import { IPolicyCheck } from "../types/IPolicyCheck";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* Verify that the policy.environment requirement is met.
|
|
7
|
+
*
|
|
8
|
+
* @param policy
|
|
9
|
+
* @param context
|
|
10
|
+
* @param entity
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function checkEnvironment(policy: IPermissionPolicy, context: IArcGISContext, _entity?: Record<string, any>): IPolicyCheck[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IPermissionPolicy, IPolicyCheck } from "../types";
|
|
3
|
+
declare const validFeatures: string[];
|
|
4
|
+
export declare type HubFeature = (typeof validFeatures)[number];
|
|
5
|
+
export declare type HubFeatures = {
|
|
6
|
+
[key in HubFeature]: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Validate entityOwner policy
|
|
10
|
+
* @param policy
|
|
11
|
+
* @param context
|
|
12
|
+
* @param entity
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare function checkFeatures(policy: IPermissionPolicy, context: IArcGISContext, entity?: Record<string, any>): IPolicyCheck[];
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IPermissionPolicy, IPolicyCheck } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Validate entityOwner policy
|
|
5
|
+
* @param policy
|
|
6
|
+
* @param context
|
|
7
|
+
* @param entity
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare function checkFeature(policy: IPermissionPolicy, context: IArcGISContext, entity?: Record<string, any>): IPolicyCheck[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IPermissionPolicy } from "../types/IPermissionPolicy";
|
|
3
|
+
import { IPolicyCheck } from "../types/IPolicyCheck";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* Check the parent policies for the given policy
|
|
7
|
+
* @param policy
|
|
8
|
+
* @param context
|
|
9
|
+
* @param entity
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function checkParents(policy: IPermissionPolicy, context: IArcGISContext, entity?: Record<string, any>): IPolicyCheck[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IPermissionPolicy } from "../types/IPermissionPolicy";
|
|
3
|
+
import { IPolicyCheck } from "../types/IPolicyCheck";
|
|
4
|
+
export declare function checkServiceStatus(policy: IPermissionPolicy, context: IArcGISContext, _entity?: Record<string, any>): IPolicyCheck[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFeatureFlags } from "../types/IPermissionPolicy";
|
|
2
|
+
/**
|
|
3
|
+
* Take an entity's features and merge them with the default features ensuring
|
|
4
|
+
* that only the featires defined in the business rules are allowed through.
|
|
5
|
+
* @param entityFeatures
|
|
6
|
+
* @param defaultFeatures
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function processEntityFeatures(entityFeatures: IFeatureFlags, defaultFeatures: IFeatureFlags): IFeatureFlags;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { UiSchemaElementOptions } from "../../core/schemas/types";
|
|
3
|
+
import { IHubProject } from "../../core/types/IHubProject";
|
|
4
|
+
/**
|
|
5
|
+
* Construct the Project Editor configuration options
|
|
6
|
+
* @param entity
|
|
7
|
+
* @param context
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare function getProjectEditorConfigOptions(entity: IHubProject, context: IArcGISContext): Promise<UiSchemaElementOptions[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntityType } from "../../types/IHubCatalog";
|
|
2
|
+
import { IHubSearchOptions } from "../../types/IHubSearchOptions";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Determines if the Discussions API can be targeted with the given
|
|
6
|
+
* search parameters
|
|
7
|
+
* @param targetEntity
|
|
8
|
+
* @param options
|
|
9
|
+
* @returns boolean
|
|
10
|
+
*/
|
|
11
|
+
export declare function shouldUseDiscussionsApi(targetEntity: EntityType, options: IHubSearchOptions): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { GenericResult, IFilterExplanation } from "../explainQueryResult";
|
|
3
|
+
import { IFilter } from "../types/IHubCatalog";
|
|
4
|
+
/**
|
|
5
|
+
* Generate an explanation if a specific result passes the filter's criteria
|
|
6
|
+
* @param filter
|
|
7
|
+
* @param result
|
|
8
|
+
* @param requestOptions
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function explainFilter(filter: IFilter, result: GenericResult, requestOptions: IRequestOptions): Promise<IFilterExplanation>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { GenericResult, IMatchReason, IPredicateExplanation } from "../explainQueryResult";
|
|
3
|
+
import { IMatchOptions } from "../types";
|
|
4
|
+
export declare function explainDatePredicate(predicate: Record<string, IMatchOptions>, result: GenericResult, requestOptions: IRequestOptions): Promise<IPredicateExplanation>;
|
|
5
|
+
export declare function explainPropPredicate(predicate: Record<string, IMatchOptions>, result: GenericResult, requestOptions: IRequestOptions): Promise<IPredicateExplanation>;
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
* Create explanation for an IMatchOptions predicate
|
|
9
|
+
* @param predicate
|
|
10
|
+
* @param result
|
|
11
|
+
* @param requestOptions
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function explainMatchOptionPredicate(predicate: Record<string, IMatchOptions>, result: GenericResult, requestOptions: IRequestOptions): Promise<IPredicateExplanation>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns information about the match between a result value and the .any property of an IMatchOptions predicate
|
|
17
|
+
* @param attribute
|
|
18
|
+
* @param option
|
|
19
|
+
* @param resultValue
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare function checkAny(attribute: string, option: string | string[], resultValue: string | string[]): IMatchReason;
|
|
23
|
+
/**
|
|
24
|
+
* * Returns information about the match between a result value and the .all property of an IMatchOptions predicate
|
|
25
|
+
* @param attribute
|
|
26
|
+
* @param option
|
|
27
|
+
* @param resultValue
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
export declare function checkAll(attribute: string, option: string | string[], resultValue: string | string[]): IMatchReason;
|
|
31
|
+
/**
|
|
32
|
+
* * Returns information about the match between a result value and the .not property of an IMatchOptions predicate
|
|
33
|
+
* @param attribute
|
|
34
|
+
* @param option
|
|
35
|
+
* @param resultValue
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
export declare function checkNot(attribute: string, option: string | string[], resultValue: string | string[]): IMatchReason;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { GenericResult, IPredicateExplanation } from "../explainQueryResult";
|
|
3
|
+
import { IMatchOptions } from "../types";
|
|
4
|
+
/**
|
|
5
|
+
* Geneate an explanation if a specific result passes the predicate's criteria
|
|
6
|
+
* This will delegate to more specific functions based on the predicate's key
|
|
7
|
+
* @param predicate
|
|
8
|
+
* @param result
|
|
9
|
+
* @param requestOptions
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function explainPredicate(predicate: Record<string, IMatchOptions>, result: GenericResult, requestOptions: IRequestOptions): Promise<IPredicateExplanation>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityType } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Given a type (e.g. Hub Site Application) return the appropriate entity type
|
|
5
|
+
* that can be used as a `targetEntity` in an `IQuery`
|
|
6
|
+
* @param type
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function getEntityTypeFromType(type: string): EntityType;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IHubSearchOptions, IHubSearchResponse, IHubSearchResult, IQuery } from "../types";
|
|
2
|
+
import { IChannel, IPagedResponse, ISearchChannelsParams } from "../../discussions";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Convert hubSearch IHubSearchOptions and IQuery interfaces to a
|
|
6
|
+
* ISearchChannelsParams structure that is needed for the Discussions API
|
|
7
|
+
* searchChannels(searchOptions: ISearchCHannelsParams) function
|
|
8
|
+
* @param {IHubSearchOptions} options
|
|
9
|
+
* @param {IQuery} query
|
|
10
|
+
* @returns ISearchChannelParams
|
|
11
|
+
*/
|
|
12
|
+
export declare const processSearchParams: (options: IHubSearchOptions, query: IQuery) => ISearchChannelsParams;
|
|
13
|
+
/**
|
|
14
|
+
* @private
|
|
15
|
+
* Convert the Discussions API searchChannels response into an
|
|
16
|
+
* IHubSearchResponse necessary for supporting hubSearch results
|
|
17
|
+
* @param {IPagedResponse{IChannel}} channelsResponse
|
|
18
|
+
* @param {IQuery} query
|
|
19
|
+
* @param {IHubSearchOptions} options
|
|
20
|
+
* @returns IHubSearchResponse<IHubSearchResult>
|
|
21
|
+
*/
|
|
22
|
+
export declare const toHubSearchResult: (channelsResponse: IPagedResponse<IChannel>, query: IQuery, options: IHubSearchOptions) => Promise<IHubSearchResponse<IHubSearchResult>>;
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
* Execute channel search against the Discussions API
|
|
26
|
+
* @param query
|
|
27
|
+
* @param options
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
export declare const hubSearchChannels: (query: IQuery, options: IHubSearchOptions) => Promise<IHubSearchResponse<IHubSearchResult>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IQuery } from "../types/IHubCatalog";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Helper function that locates group predicates and "negates" them
|
|
5
|
+
* so we get a query that is `not in groups ...` vs `in groups ...`
|
|
6
|
+
* @param query
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function negateGroupPredicates(query: IQuery): IQuery;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IHubSearchOptions, IHubSearchResponse, IHubSearchResult, IQuery } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* Search for members of a group.
|
|
4
|
-
* The
|
|
4
|
+
* The groupId is specified via a `group` predicate.
|
|
5
|
+
* Any `term` predicate will be re-mapped to `name`.
|
|
5
6
|
*
|
|
6
7
|
* The backing API is very limited in what
|
|
7
8
|
* it returns so this method executes the search and then tries to fetch
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { IFilter, IPredicate, IQuery } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Explanation of why a result matched a query
|
|
5
|
+
*/
|
|
6
|
+
export interface IQueryExplanation {
|
|
7
|
+
/**
|
|
8
|
+
* Copy of result; Useful when doing bulk calls
|
|
9
|
+
*/
|
|
10
|
+
result: GenericResult;
|
|
11
|
+
/**
|
|
12
|
+
* Copy of query; Useful when doing bulk calls
|
|
13
|
+
*/
|
|
14
|
+
query: IQuery;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the result matched the query
|
|
17
|
+
*/
|
|
18
|
+
matched: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Array of explanations for each filter
|
|
21
|
+
*/
|
|
22
|
+
reasons: IFilterExplanation[];
|
|
23
|
+
/**
|
|
24
|
+
* Summary of all reasons for the result matching the query
|
|
25
|
+
*/
|
|
26
|
+
summary: IMatchReason[];
|
|
27
|
+
}
|
|
28
|
+
export interface IQueryExplanationDetails {
|
|
29
|
+
value: string;
|
|
30
|
+
description: string;
|
|
31
|
+
details: [];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Explanation of why a filter matched a query
|
|
35
|
+
*/
|
|
36
|
+
export interface IFilterExplanation {
|
|
37
|
+
/**
|
|
38
|
+
* Copy of the Filter
|
|
39
|
+
*/
|
|
40
|
+
filter: IFilter;
|
|
41
|
+
/**
|
|
42
|
+
* Did the filter match the query?
|
|
43
|
+
*/
|
|
44
|
+
matched: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Array of explanations for each predicate in the Filter
|
|
47
|
+
*/
|
|
48
|
+
reasons: IPredicateExplanation[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Explanation of why a predicate matched a query
|
|
52
|
+
*/
|
|
53
|
+
export interface IPredicateExplanation {
|
|
54
|
+
/**
|
|
55
|
+
* Copy of the Predicate
|
|
56
|
+
*/
|
|
57
|
+
predicate: IPredicate;
|
|
58
|
+
/**
|
|
59
|
+
* Did the predicate match the query?
|
|
60
|
+
*/
|
|
61
|
+
matched: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Array of reasons why the predicate matched the query
|
|
64
|
+
*/
|
|
65
|
+
reasons: IMatchReason[];
|
|
66
|
+
/**
|
|
67
|
+
* Additional information about the predicate which can be useful
|
|
68
|
+
* when preparing a UI to display the explanation
|
|
69
|
+
*/
|
|
70
|
+
meta?: Record<string, any>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Match condition
|
|
74
|
+
*/
|
|
75
|
+
export declare type MatchCondition = "IN" | "NOT_IN" | "ALL";
|
|
76
|
+
/**
|
|
77
|
+
* Reason why a result matched a query
|
|
78
|
+
*/
|
|
79
|
+
export interface IMatchReason {
|
|
80
|
+
attribute: string;
|
|
81
|
+
values?: string;
|
|
82
|
+
condition?: MatchCondition;
|
|
83
|
+
matched: boolean;
|
|
84
|
+
requirement?: string;
|
|
85
|
+
message?: string;
|
|
86
|
+
meta?: Record<string, any>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Wide type allowing any object to be passed in as a result
|
|
90
|
+
*/
|
|
91
|
+
export declare type GenericResult = Record<string, any>;
|
|
92
|
+
/**
|
|
93
|
+
* Explain why a specific result was included in a Query.
|
|
94
|
+
*
|
|
95
|
+
* NOTE: This only works for entityType: "item" queries and does not
|
|
96
|
+
* cover all possible permutations.
|
|
97
|
+
* @param queryResult
|
|
98
|
+
* @param query
|
|
99
|
+
* @param requestOptions
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
export declare function explainQueryResult(queryResult: GenericResult, query: IQuery, requestOptions: IRequestOptions): Promise<IQueryExplanation>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IUiSchema } from "../../core/schemas/types";
|
|
3
|
+
import { IHubSite } from "../../core/types";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the followers uiSchema for Hub Sites.
|
|
7
|
+
* This defines how the schema properties should
|
|
8
|
+
* be rendered in the site followers > settings
|
|
9
|
+
* experience
|
|
10
|
+
*/
|
|
11
|
+
export declare const buildUiSchema: (i18nScope: string, entity: IHubSite, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IModel, IDraft } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Reconfigure summary stat card properties to align with the
|
|
4
|
+
* new web component card.
|
|
5
|
+
* @private
|
|
6
|
+
* @param {Object} model Site Model
|
|
7
|
+
* @returns {Object}
|
|
8
|
+
*/
|
|
9
|
+
export declare function _migrateSummaryStatCardConfigs<T extends IModel | IDraft>(model: T): T;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IModel } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Add the default catalog structure to the Site model
|
|
4
|
+
* Note: This in-memory migration is only applies via `fetchSite(..):IHubSite` and not
|
|
5
|
+
* the older `getSiteById(...):IModel`. Changes made in this migration will not be
|
|
6
|
+
* persisted to AGO until all other parts of the application stop relying on the legacy
|
|
7
|
+
* catalog implementation
|
|
8
|
+
* @param model
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function applyCatalogStructureMigration(model: IModel): IModel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IModel } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* In-Memory migration that adds default collections to site models that have the
|
|
4
|
+
* new catalog structure. These default collections will have the same names and
|
|
5
|
+
* display order found in `site.data.values.searchCategories`
|
|
6
|
+
*
|
|
7
|
+
* This migration simplifies display logic, as consuming components no longer
|
|
8
|
+
* have to merge `catalog.collections` with the default collection definitions.
|
|
9
|
+
*
|
|
10
|
+
* This migration also lays the foundation for customization, since editors will
|
|
11
|
+
* be able to modify these persisted default objects. For example, editors can
|
|
12
|
+
* change the default labels, display order, or mark a default as "hidden" so the
|
|
13
|
+
* public can't see it.
|
|
14
|
+
*
|
|
15
|
+
* NOTE: The changes made in this migration will not be persisted to AGO at this time
|
|
16
|
+
*
|
|
17
|
+
* @param model site model to migrate
|
|
18
|
+
* @returns a migrated model with default `IHubCollectionPersistance` objects added
|
|
19
|
+
* to the catalog
|
|
20
|
+
*/
|
|
21
|
+
export declare function applyDefaultCollectionMigration(model: IModel): IModel;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICapabilityToFeatureMap } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Returns an array of ICapabilityToFeatureMap objects
|
|
4
|
+
* that define the projection of legacy capabilities
|
|
5
|
+
* to permission features.
|
|
6
|
+
*
|
|
7
|
+
* We use this map to manage foward and backard conversions
|
|
8
|
+
* and migration of legacy capablities to features when a
|
|
9
|
+
* site is fetched or updated
|
|
10
|
+
*
|
|
11
|
+
* NOTE: if you are porting a legacy capability over to
|
|
12
|
+
* workspaces, add it to this map
|
|
13
|
+
*/
|
|
14
|
+
export declare const capabilityToFeatureMap: ICapabilityToFeatureMap[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IModel } from "../../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Site capabilities are currently saved as an array on the
|
|
4
|
+
* site.data.values.capabilities. We want to migragte these
|
|
5
|
+
* legacy capabilities over to features in the new permissions
|
|
6
|
+
* system; however, we must continue persisting updates to
|
|
7
|
+
* these features in the legacy capabilities array until the
|
|
8
|
+
* existing site capabilities in our application are plumbed
|
|
9
|
+
* to work off of permissions
|
|
10
|
+
*
|
|
11
|
+
* This function is called within updateSite to ensure
|
|
12
|
+
* the legacy capabilities array is kept up-to-date
|
|
13
|
+
*
|
|
14
|
+
* TODO: Remove once site capabilities use permissions
|
|
15
|
+
*
|
|
16
|
+
* @param modelToUpdate
|
|
17
|
+
* @param currentModel
|
|
18
|
+
*/
|
|
19
|
+
export declare const convertFeaturesToLegacyCapabilities: (modelToUpdate: IModel, currentModel: IModel) => IModel;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IModel } from "../../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Site capabilities are currently saved as an array on the
|
|
4
|
+
* site.data.values.capabilities. We want to migragte these
|
|
5
|
+
* legacy capabilities over to features in the new permissions
|
|
6
|
+
* system and expose them on the entity
|
|
7
|
+
*
|
|
8
|
+
* This function is called within fetchSite to ensure all
|
|
9
|
+
* sites have features that are kept up-to-date with the
|
|
10
|
+
* legacy capabilities array
|
|
11
|
+
*/
|
|
12
|
+
export declare const migrateLegacyCapabilitiesToFeatures: (model: IModel) => IModel;
|