@esri/hub-common 15.41.4 → 15.43.0
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/ArcGISContextManager.js.map +1 -1
- package/dist/esm/associations/internal/getIncludesAndReferencesQuery.js.map +1 -1
- package/dist/esm/channels/HubChannel.js +173 -0
- package/dist/esm/channels/HubChannel.js.map +1 -0
- package/dist/esm/channels/_internal/ChannelBusinessRules.js +39 -0
- package/dist/esm/channels/_internal/ChannelBusinessRules.js.map +1 -0
- package/dist/esm/channels/_internal/ChannelSchema.js +198 -0
- package/dist/esm/channels/_internal/ChannelSchema.js.map +1 -0
- package/dist/esm/channels/_internal/ChannelUiSchemaCreate.js +288 -0
- package/dist/esm/channels/_internal/ChannelUiSchemaCreate.js.map +1 -0
- package/dist/esm/channels/_internal/ChannelUiSchemaEdit.js +20 -0
- package/dist/esm/channels/_internal/ChannelUiSchemaEdit.js.map +1 -0
- package/dist/esm/channels/_internal/buildDefaultChannel.js +26 -0
- package/dist/esm/channels/_internal/buildDefaultChannel.js.map +1 -0
- package/dist/esm/channels/_internal/transformAclPermissionToEntityPermissionPolicy.js +49 -0
- package/dist/esm/channels/_internal/transformAclPermissionToEntityPermissionPolicy.js.map +1 -0
- package/dist/esm/channels/_internal/transformChannelToEntity.js +61 -0
- package/dist/esm/channels/_internal/transformChannelToEntity.js.map +1 -0
- package/dist/esm/channels/_internal/transformEditorToEntity.js +22 -0
- package/dist/esm/channels/_internal/transformEditorToEntity.js.map +1 -0
- package/dist/esm/channels/_internal/transformEntityPermissionPoliciesToFormValues.js +150 -0
- package/dist/esm/channels/_internal/transformEntityPermissionPoliciesToFormValues.js.map +1 -0
- package/dist/esm/channels/_internal/transformEntityToChannelData.js +69 -0
- package/dist/esm/channels/_internal/transformEntityToChannelData.js.map +1 -0
- package/dist/esm/channels/_internal/transformEntityToEditor.js +20 -0
- package/dist/esm/channels/_internal/transformEntityToEditor.js.map +1 -0
- package/dist/esm/channels/_internal/transformFormValuesToEntityPermissionPolicies.js +55 -0
- package/dist/esm/channels/_internal/transformFormValuesToEntityPermissionPolicies.js.map +1 -0
- package/dist/esm/channels/edit.js +35 -0
- package/dist/esm/channels/edit.js.map +1 -0
- package/dist/esm/channels/fetch.js +14 -0
- package/dist/esm/channels/fetch.js.map +1 -0
- package/dist/esm/channels/index.js +4 -0
- package/dist/esm/channels/index.js.map +1 -0
- package/dist/esm/collections.js +2 -2
- package/dist/esm/collections.js.map +1 -1
- package/dist/esm/content/_internal/computeProps.js.map +1 -1
- package/dist/esm/core/EntityEditor.js +4 -0
- package/dist/esm/core/EntityEditor.js.map +1 -1
- package/dist/esm/core/catalogContains.js +5 -2
- package/dist/esm/core/catalogContains.js.map +1 -1
- package/dist/esm/core/deepCatalogContains.js.map +1 -1
- package/dist/esm/core/fetchHubEntity.js +4 -0
- package/dist/esm/core/fetchHubEntity.js.map +1 -1
- package/dist/esm/core/getTypeFromEntity.js +3 -0
- package/dist/esm/core/getTypeFromEntity.js.map +1 -1
- package/dist/esm/core/schemas/internal/events/EventGalleryCardUiSchema.js +1 -1
- package/dist/esm/core/schemas/internal/events/EventGalleryCardUiSchema.js.map +1 -1
- package/dist/esm/core/schemas/internal/getCardEditorSchemas.js +2 -0
- package/dist/esm/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
- package/dist/esm/core/schemas/internal/getEditorSchemas.js +16 -0
- package/dist/esm/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/esm/core/schemas/internal/getTagItems.js.map +1 -1
- package/dist/esm/core/schemas/types.js +2 -0
- package/dist/esm/core/schemas/types.js.map +1 -1
- package/dist/esm/core/types/HubEntityType.js +1 -0
- package/dist/esm/core/types/HubEntityType.js.map +1 -1
- package/dist/esm/core/types/IHubChannel.js +1 -0
- package/dist/esm/core/types/IHubChannel.js.map +1 -0
- package/dist/esm/core/types/index.js +1 -0
- package/dist/esm/core/types/index.js.map +1 -1
- package/dist/esm/discussions/_internal/computeProps.js.map +1 -1
- package/dist/esm/discussions/api/settings/getDefaultEntitySettings.js +1 -0
- package/dist/esm/discussions/api/settings/getDefaultEntitySettings.js.map +1 -1
- package/dist/esm/discussions/api/types.js.map +1 -1
- package/dist/esm/discussions/utils.js +3 -3
- package/dist/esm/discussions/utils.js.map +1 -1
- package/dist/esm/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFile.js +1 -1
- package/dist/esm/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFile.js.map +1 -1
- package/dist/esm/downloads/_internal/getDownloadFlow.js.map +1 -1
- package/dist/esm/downloads/getHubDownloadApiFormats.js.map +1 -1
- package/dist/esm/events/_internal/EventUiSchemaEdit.js.map +1 -1
- package/dist/esm/events/_internal/PropertyMapper.js.map +1 -1
- package/dist/esm/groups/HubGroups.js.map +1 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreateFollowers.js +0 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreateFollowers.js.map +1 -1
- package/dist/esm/groups/_internal/GroupUiSchemaSettings.js +0 -1
- package/dist/esm/groups/_internal/GroupUiSchemaSettings.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/initiative-templates/_internal/computeProps.js.map +1 -1
- package/dist/esm/initiative-templates/edit.js +1 -1
- package/dist/esm/initiative-templates/edit.js.map +1 -1
- package/dist/esm/initiative-templates/fetch.js +1 -1
- package/dist/esm/initiative-templates/fetch.js.map +1 -1
- package/dist/esm/initiatives/HubInitiative.js.map +1 -1
- package/dist/esm/initiatives/_internal/computeProps.js.map +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/objects/deepFilter.js.map +1 -1
- package/dist/esm/pages/HubPage.js +0 -1
- package/dist/esm/pages/HubPage.js.map +1 -1
- package/dist/esm/pages/_internal/computeProps.js.map +1 -1
- package/dist/esm/permissions/checkPermission.js +0 -1
- package/dist/esm/permissions/checkPermission.js.map +1 -1
- package/dist/esm/permissions/types/IEntityPermissionPolicy.js +13 -0
- package/dist/esm/permissions/types/IEntityPermissionPolicy.js.map +1 -1
- package/dist/esm/permissions/types/Permission.js +2 -0
- package/dist/esm/permissions/types/Permission.js.map +1 -1
- package/dist/esm/projects/HubProject.js.map +1 -1
- package/dist/esm/projects/_internal/computeProps.js.map +1 -1
- package/dist/esm/projects/edit.js.map +1 -1
- package/dist/esm/projects/fetch.js.map +1 -1
- package/dist/esm/resources/_internal/_validate-url-helpers.js +1 -1
- package/dist/esm/resources/_internal/_validate-url-helpers.js.map +1 -1
- package/dist/esm/search/Catalog.js.map +1 -1
- package/dist/esm/search/_internal/explainHelpers.js +2 -2
- package/dist/esm/search/_internal/explainHelpers.js.map +1 -1
- package/dist/esm/search/_internal/getEntityTypeFromType.js +1 -1
- package/dist/esm/search/_internal/getEntityTypeFromType.js.map +1 -1
- package/dist/esm/search/_internal/hubEventsHelpers/eventAttendeeToSearchResult.js.map +1 -1
- package/dist/esm/search/_internal/hubSearchChannels.js +5 -3
- package/dist/esm/search/_internal/hubSearchChannels.js.map +1 -1
- package/dist/esm/search/_internal/hubSearchEventAttendees.js.map +1 -1
- package/dist/esm/search/_internal/hubSearchEvents.js.map +1 -1
- package/dist/esm/search/explainQueryResult.js.map +1 -1
- package/dist/esm/search/negateGroupPredicates.js +1 -1
- package/dist/esm/search/negateGroupPredicates.js.map +1 -1
- package/dist/esm/sites/HubSites.js.map +1 -1
- package/dist/esm/sites/_internal/computeLinks.js.map +1 -1
- package/dist/esm/sites/_internal/computeProps.js.map +1 -1
- package/dist/esm/sites/feeds/getFeedTemplate.js.map +1 -1
- package/dist/esm/surveys/HubSurvey.js.map +1 -1
- package/dist/esm/surveys/_internal/computeProps.js.map +1 -1
- package/dist/esm/templates/_internal/computeProps.js.map +1 -1
- package/dist/esm/templates/edit.js.map +1 -1
- package/dist/esm/urls/getCardModelUrl.js.map +1 -1
- package/dist/esm/users/view.js +1 -1
- package/dist/esm/users/view.js.map +1 -1
- package/dist/esm/utils/asyncForEach.js.map +1 -1
- package/dist/node/ArcGISContextManager.js.map +1 -1
- package/dist/node/associations/internal/getIncludesAndReferencesQuery.js.map +1 -1
- package/dist/node/channels/HubChannel.js +177 -0
- package/dist/node/channels/HubChannel.js.map +1 -0
- package/dist/node/channels/_internal/ChannelBusinessRules.js +42 -0
- package/dist/node/channels/_internal/ChannelBusinessRules.js.map +1 -0
- package/dist/node/channels/_internal/ChannelSchema.js +201 -0
- package/dist/node/channels/_internal/ChannelSchema.js.map +1 -0
- package/dist/node/channels/_internal/ChannelUiSchemaCreate.js +291 -0
- package/dist/node/channels/_internal/ChannelUiSchemaCreate.js.map +1 -0
- package/dist/node/channels/_internal/ChannelUiSchemaEdit.js +23 -0
- package/dist/node/channels/_internal/ChannelUiSchemaEdit.js.map +1 -0
- package/dist/node/channels/_internal/buildDefaultChannel.js +30 -0
- package/dist/node/channels/_internal/buildDefaultChannel.js.map +1 -0
- package/dist/node/channels/_internal/transformAclPermissionToEntityPermissionPolicy.js +52 -0
- package/dist/node/channels/_internal/transformAclPermissionToEntityPermissionPolicy.js.map +1 -0
- package/dist/node/channels/_internal/transformChannelToEntity.js +65 -0
- package/dist/node/channels/_internal/transformChannelToEntity.js.map +1 -0
- package/dist/node/channels/_internal/transformEditorToEntity.js +26 -0
- package/dist/node/channels/_internal/transformEditorToEntity.js.map +1 -0
- package/dist/node/channels/_internal/transformEntityPermissionPoliciesToFormValues.js +153 -0
- package/dist/node/channels/_internal/transformEntityPermissionPoliciesToFormValues.js.map +1 -0
- package/dist/node/channels/_internal/transformEntityToChannelData.js +73 -0
- package/dist/node/channels/_internal/transformEntityToChannelData.js.map +1 -0
- package/dist/node/channels/_internal/transformEntityToEditor.js +24 -0
- package/dist/node/channels/_internal/transformEntityToEditor.js.map +1 -0
- package/dist/node/channels/_internal/transformFormValuesToEntityPermissionPolicies.js +59 -0
- package/dist/node/channels/_internal/transformFormValuesToEntityPermissionPolicies.js.map +1 -0
- package/dist/node/channels/edit.js +41 -0
- package/dist/node/channels/edit.js.map +1 -0
- package/dist/node/channels/fetch.js +18 -0
- package/dist/node/channels/fetch.js.map +1 -0
- package/dist/node/channels/index.js +7 -0
- package/dist/node/channels/index.js.map +1 -0
- package/dist/node/collections.js +2 -2
- package/dist/node/collections.js.map +1 -1
- package/dist/node/content/_internal/computeProps.js.map +1 -1
- package/dist/node/core/EntityEditor.js +4 -0
- package/dist/node/core/EntityEditor.js.map +1 -1
- package/dist/node/core/catalogContains.js +5 -2
- package/dist/node/core/catalogContains.js.map +1 -1
- package/dist/node/core/deepCatalogContains.js.map +1 -1
- package/dist/node/core/fetchHubEntity.js +4 -0
- package/dist/node/core/fetchHubEntity.js.map +1 -1
- package/dist/node/core/getTypeFromEntity.js +3 -0
- package/dist/node/core/getTypeFromEntity.js.map +1 -1
- package/dist/node/core/schemas/internal/events/EventGalleryCardUiSchema.js.map +1 -1
- package/dist/node/core/schemas/internal/getCardEditorSchemas.js +2 -0
- package/dist/node/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
- package/dist/node/core/schemas/internal/getEditorSchemas.js +16 -0
- package/dist/node/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/node/core/schemas/internal/getTagItems.js.map +1 -1
- package/dist/node/core/schemas/types.js +2 -0
- package/dist/node/core/schemas/types.js.map +1 -1
- package/dist/node/core/types/HubEntityType.js +1 -0
- package/dist/node/core/types/HubEntityType.js.map +1 -1
- package/dist/node/core/types/IHubChannel.js +3 -0
- package/dist/node/core/types/IHubChannel.js.map +1 -0
- package/dist/node/core/types/index.js +1 -0
- package/dist/node/core/types/index.js.map +1 -1
- package/dist/node/discussions/_internal/computeProps.js.map +1 -1
- package/dist/node/discussions/api/settings/getDefaultEntitySettings.js +1 -0
- package/dist/node/discussions/api/settings/getDefaultEntitySettings.js.map +1 -1
- package/dist/node/discussions/api/types.js.map +1 -1
- package/dist/node/discussions/utils.js +3 -3
- package/dist/node/discussions/utils.js.map +1 -1
- package/dist/node/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFile.js +1 -1
- package/dist/node/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFile.js.map +1 -1
- package/dist/node/downloads/_internal/getDownloadFlow.js.map +1 -1
- package/dist/node/downloads/getHubDownloadApiFormats.js.map +1 -1
- package/dist/node/events/_internal/EventUiSchemaEdit.js.map +1 -1
- package/dist/node/events/_internal/PropertyMapper.js.map +1 -1
- package/dist/node/groups/HubGroups.js.map +1 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreateFollowers.js +0 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreateFollowers.js.map +1 -1
- package/dist/node/groups/_internal/GroupUiSchemaSettings.js +0 -1
- package/dist/node/groups/_internal/GroupUiSchemaSettings.js.map +1 -1
- package/dist/node/index.js +1 -0
- package/dist/node/index.js.map +1 -1
- package/dist/node/initiative-templates/_internal/computeProps.js.map +1 -1
- package/dist/node/initiative-templates/edit.js.map +1 -1
- package/dist/node/initiative-templates/fetch.js.map +1 -1
- package/dist/node/initiatives/HubInitiative.js.map +1 -1
- package/dist/node/initiatives/_internal/computeProps.js.map +1 -1
- package/dist/node/models/index.js.map +1 -1
- package/dist/node/objects/deepFilter.js.map +1 -1
- package/dist/node/pages/HubPage.js +0 -1
- package/dist/node/pages/HubPage.js.map +1 -1
- package/dist/node/pages/_internal/computeProps.js.map +1 -1
- package/dist/node/permissions/checkPermission.js +0 -1
- package/dist/node/permissions/checkPermission.js.map +1 -1
- package/dist/node/permissions/types/IEntityPermissionPolicy.js +14 -0
- package/dist/node/permissions/types/IEntityPermissionPolicy.js.map +1 -1
- package/dist/node/permissions/types/Permission.js +2 -0
- package/dist/node/permissions/types/Permission.js.map +1 -1
- package/dist/node/projects/HubProject.js.map +1 -1
- package/dist/node/projects/_internal/computeProps.js.map +1 -1
- package/dist/node/projects/edit.js.map +1 -1
- package/dist/node/projects/fetch.js.map +1 -1
- package/dist/node/resources/_internal/_validate-url-helpers.js +1 -1
- package/dist/node/resources/_internal/_validate-url-helpers.js.map +1 -1
- package/dist/node/search/Catalog.js.map +1 -1
- package/dist/node/search/_internal/explainHelpers.js +2 -2
- package/dist/node/search/_internal/explainHelpers.js.map +1 -1
- package/dist/node/search/_internal/getEntityTypeFromType.js +1 -1
- package/dist/node/search/_internal/getEntityTypeFromType.js.map +1 -1
- package/dist/node/search/_internal/hubEventsHelpers/eventAttendeeToSearchResult.js.map +1 -1
- package/dist/node/search/_internal/hubSearchChannels.js +4 -2
- package/dist/node/search/_internal/hubSearchChannels.js.map +1 -1
- package/dist/node/search/_internal/hubSearchEventAttendees.js.map +1 -1
- package/dist/node/search/_internal/hubSearchEvents.js.map +1 -1
- package/dist/node/search/explainQueryResult.js.map +1 -1
- package/dist/node/search/negateGroupPredicates.js +1 -1
- package/dist/node/search/negateGroupPredicates.js.map +1 -1
- package/dist/node/sites/HubSites.js.map +1 -1
- package/dist/node/sites/_internal/computeLinks.js.map +1 -1
- package/dist/node/sites/_internal/computeProps.js.map +1 -1
- package/dist/node/sites/feeds/getFeedTemplate.js.map +1 -1
- package/dist/node/surveys/HubSurvey.js.map +1 -1
- package/dist/node/surveys/_internal/computeProps.js.map +1 -1
- package/dist/node/templates/_internal/computeProps.js.map +1 -1
- package/dist/node/templates/edit.js.map +1 -1
- package/dist/node/urls/getCardModelUrl.js.map +1 -1
- package/dist/node/users/view.js +1 -1
- package/dist/node/users/view.js.map +1 -1
- package/dist/node/utils/asyncForEach.js.map +1 -1
- package/dist/types/channels/HubChannel.d.ts +105 -0
- package/dist/types/channels/_internal/ChannelBusinessRules.d.ts +19 -0
- package/dist/types/channels/_internal/ChannelSchema.d.ts +16 -0
- package/dist/types/channels/_internal/ChannelUiSchemaCreate.d.ts +10 -0
- package/dist/types/channels/_internal/ChannelUiSchemaEdit.d.ts +10 -0
- package/dist/types/channels/_internal/buildDefaultChannel.d.ts +8 -0
- package/dist/types/channels/_internal/transformAclPermissionToEntityPermissionPolicy.d.ts +11 -0
- package/dist/types/channels/_internal/transformChannelToEntity.d.ts +11 -0
- package/dist/types/channels/_internal/transformEditorToEntity.d.ts +8 -0
- package/dist/types/channels/_internal/transformEntityPermissionPoliciesToFormValues.d.ts +44 -0
- package/dist/types/channels/_internal/transformEntityToChannelData.d.ts +9 -0
- package/dist/types/channels/_internal/transformEntityToEditor.d.ts +9 -0
- package/dist/types/channels/_internal/transformFormValuesToEntityPermissionPolicies.d.ts +9 -0
- package/dist/types/channels/edit.d.ts +23 -0
- package/dist/types/channels/fetch.d.ts +9 -0
- package/dist/types/channels/index.d.ts +3 -0
- package/dist/types/content/_internal/internalContentUtils.d.ts +1 -1
- package/dist/types/content/get-family.d.ts +1 -1
- package/dist/types/core/EntityEditor.d.ts +1 -1
- package/dist/types/core/schemas/types.d.ts +2 -2
- package/dist/types/core/types/HubEntity.d.ts +3 -2
- package/dist/types/core/types/HubEntityType.d.ts +1 -1
- package/dist/types/core/types/IHubChannel.d.ts +91 -0
- package/dist/types/core/types/index.d.ts +1 -0
- package/dist/types/discussions/api/types.d.ts +4 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types/permissions/types/IEntityPermissionPolicy.d.ts +10 -2
- package/dist/types/permissions/types/Permission.d.ts +2 -1
- package/dist/types/utils/asyncForEach.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubSurvey.js","sourceRoot":"","sources":["../../../src/surveys/HubSurvey.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AAEtD,uDAAoD;AACpD,qEAAkE;
|
|
1
|
+
{"version":3,"file":"HubSurvey.js","sourceRoot":"","sources":["../../../src/surveys/HubSurvey.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AAEtD,uDAAoD;AACpD,qEAAkE;AAElE,yCAA4C;AAM5C,kCAAsC;AAEtC,iCAAoD;AACpD,mCAAsC;AAEtC;;GAEG;AACH,MAAa,SACX,SAAQ,6BAAyB;IAGjC;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CACb,IAAyB,EACzB,OAAuB;QAEvB,6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d,MAAuB,EACvB,aAAoC;;QAEpC,8CAA8C;QAC9C,wCAAwC;QACxC,IAAI,MAAM,CAAC,UAAU,EAAE;YACrB,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE;gBAC1B,IAAI,CAAC,cAAc,GAAG;oBACpB,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;oBAC5B,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ;oBACpC,KAAK,EAAE,KAAK;iBACb,CAAC;aACH;iBAAM;gBACL,IAAI,CAAC,cAAc,GAAG;oBACpB,KAAK,EAAE,IAAI;iBACZ,CAAC;aACH;SACF;QAED,OAAO,MAAM,CAAC,UAAU,CAAC;QAEzB,kEAAkE;QAClE,yBAAyB;QACzB,MAAM,MAAM,GAAG,kBAAW,CAAC,MAAM,CAAe,CAAC;QAEjD,wCAAwC;QACxC,MAAM,CAAC,MAAM,SAAG,MAAM,CAAC,QAAQ,0CAAE,MAAM,CAAC;QAExC,kDAAkD;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAElB,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAzLD,8BAyLC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeProps.js","sourceRoot":"","sources":["../../../../src/surveys/_internal/computeProps.ts"],"names":[],"mappings":";;;AAEA,4EAAyE;AAGzE,mFAA6E;
|
|
1
|
+
{"version":3,"file":"computeProps.js","sourceRoot":"","sources":["../../../../src/surveys/_internal/computeProps.ts"],"names":[],"mappings":";;;AAEA,4EAAyE;AAGzE,mFAA6E;AAC7E,gEAA2D;AAC3D,oEAA+D;AAE/D;;;;;;;GAOG;AACH,SAAgB,YAAY,CAC1B,KAAa,EACb,MAA2B,EAC3B,cAA+B;;IAE/B,IAAI,KAAa,CAAC;IAClB,IAAI,cAAc,CAAC,cAAc,EAAE;QACjC,MAAM,OAAO,GAAgB,cAAc,CAAC,cAA6B,CAAC;QAC1E,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;KACvB;IACD,2CAA2C;IAC3C,MAAM,GAAG,mCAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAE9C,gBAAgB;IAChB,MAAM,CAAC,YAAY,GAAG,4CAAmB,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;IAE7E,YAAY;IACZ,MAAM,CAAC,cAAc,GAAG,iCAAc,CAAC,OAAA,KAAK,CAAC,QAAQ,0CAAE,SAAS,KAAI,EAAE,CAAC,CAAC;IACxE,MAAM,CAAC,UAAU,GAAG,qCAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEjD,0DAA0D;IAC1D,OAAO,MAAoB,CAAC;AAC9B,CAAC;AAtBD,oCAsBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeProps.js","sourceRoot":"","sources":["../../../../src/templates/_internal/computeProps.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"computeProps.js","sourceRoot":"","sources":["../../../../src/templates/_internal/computeProps.ts"],"names":[],"mappings":";;;AACA,6FAA0F;AAE1F,mEAAkE;AAElE,iDAA8C;AAC9C,2CAAwC;AACxC,oCAAmD;AACnD,4EAAyE;AAEzE;;;;;;;;GAQG;AACH,SAAgB,YAAY,CAC1B,KAAa,EACb,QAA+B,EAC/B,cAA+B;IAE/B,yCAAyC;IACzC,QAAQ,GAAG,mCAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAElD,qCAAqC;IACrC,QAAQ,CAAC,KAAK,GAAG,2BAAY,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAE1D,0DAA0D;IAC1D,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC;IAEjD,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,GAAG,6CAAqB,CACvC,iBAAO,CAAC,KAAK,EAAE,wBAAwB,CAAC,IAAI,EAAE,EAC9C,+CAAuB,CACxB,CAAC;IAEF,qDAAqD;IACrD,QAAQ,CAAC,UAAU,GAAG,CAAC,iBAAO,CAAC,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,CACxE,UAAU,CACX,CAAC;IACF,QAAQ,CAAC,YAAY,GAAG,+BAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAE5D,+DAA+D;IAC/D,OAAO,QAAwB,CAAC;AAClC,CAAC;AA5BD,oCA4BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.js","sourceRoot":"","sources":["../../../src/templates/edit.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"edit.js","sourceRoot":"","sources":["../../../src/templates/edit.ts"],"names":[],"mappings":";;;AAEA,gDAAuD;AACvD,qEAAkE;AAElE,kCAAsC;AACtC,sCAAkD;AAClD,+DAA4D;AAC5D,2DAAwD;AACxD,iEAIkC;AAClC,sFAAmF;AAEnF;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAC5B,eAAsC,EACtC,cAAmC;IAEnC,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;AACJ,CAAC;AAPD,wCAOC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,cAAc,CAClC,QAAsB,EACtB,cAAmC;IAEnC,+DAA+D;IAC/D,MAAM,+CAAsB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAEvD,kCAAkC;IAClC,QAAQ,CAAC,YAAY,GAAG,mCAAqB,CAC3C,QAAQ,CAAC,YAAY,EACrB,QAAQ,CAAC,aAAa,CACvB,CAAC;IAEF,2CAA2C;IAC3C,MAAM,KAAK,GAAG,MAAM,iBAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;IAE1D,mDAAmD;IAC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CAAC;KACtB;SAAM;QACL,QAAQ,MAAM,CAAC,IAAI,EAAE;YACnB;gBACE,QAAQ,GAAG;oBACT,IAAI,QAAE,MAAM,CAAC,KAAK,0CAAE,IAAI;oBACxB,YAAY,EAAE,OAAO;wBACnB,CAAC,CAAC,GAAG,OAAO,GAAG,OAAA,MAAM,CAAC,KAAK,0CAAE,YAAY,KAAI,EAAE,EAAE;wBACjD,CAAC,OAAC,MAAM,CAAC,KAAK,0CAAE,YAAY;oBAC9B,iBAAiB,EAAE,OAAO;wBACxB,CAAC,CAAC,GAAG,OAAO,GAAG,OAAA,MAAM,CAAC,KAAK,0CAAE,iBAAiB,KAAI,EAAE,EAAE;wBACtD,CAAC,OAAC,MAAM,CAAC,KAAK,0CAAE,iBAAiB;iBACpC,CAAC,MAAM,CAAC,CAAC;gBACV,MAAM;YACR,KAAK,sBAAsB;gBACzB,QAAQ,SAAG,MAAM,CAAC,KAAK,0CAAE,IAAI,CAAC;gBAC9B,MAAM;SACT;KACF;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAhCD,8DAgCC"}
|
package/dist/node/users/view.js
CHANGED
|
@@ -10,7 +10,7 @@ const getCardModelUrl_1 = require("../urls/getCardModelUrl");
|
|
|
10
10
|
* @param opts view model options
|
|
11
11
|
*/
|
|
12
12
|
exports.userResultToCardModel = (searchResult, opts) => {
|
|
13
|
-
const { actionLinks = [], baseUrl = "",
|
|
13
|
+
const { actionLinks = [], baseUrl = "", target = "self" } = opts || {};
|
|
14
14
|
const titleUrl = getCardModelUrl_1.getCardModelUrlFromResult(searchResult, target, baseUrl);
|
|
15
15
|
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, getSharedUserCardModel(searchResult)), { actionLinks }), (!isNaN(searchResult.index) && { index: searchResult.index })), { titleUrl }), (searchResult.links.thumbnail && {
|
|
16
16
|
thumbnailUrl: searchResult.links.thumbnail,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/users/view.ts"],"names":[],"mappings":";;;AAOA,6DAAoE;AAEpE;;;;;;GAMG;AACU,QAAA,qBAAqB,GAAwB,CACxD,YAA8B,EAC9B,IAA8B,EACX,EAAE;IACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/users/view.ts"],"names":[],"mappings":";;;AAOA,6DAAoE;AAEpE;;;;;;GAMG;AACU,QAAA,qBAAqB,GAAwB,CACxD,YAA8B,EAC9B,IAA8B,EACX,EAAE;IACrB,MAAM,EAAE,WAAW,GAAG,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC;IAEvE,MAAM,QAAQ,GAAG,2CAAyB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1E,iFACK,sBAAsB,CAAC,YAAY,CAAC,KACvC,WAAW,KACR,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,EAAE,CAAC,KAChE,QAAQ,KACL,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,IAAI;QAClC,YAAY,EAAE,YAAY,CAAC,KAAK,CAAC,SAAS;KAC3C,CAAC,EACF;AACJ,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAG,CAAC,IAAsB,EAAqB,EAAE;IAC3E,MAAM,MAAM,GAAG,EAAoB,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IAEnC;;;;OAIG;IACH,IAAI,UAAU,EAAE;QACd,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,sBAAsB;gBAC/B,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;aAC7C,CAAC,CAAC;SACJ;aAAM,IAAI,UAAU,KAAK,OAAO,EAAE;YACjC,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,sBAAsB;gBAC/B,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;aAC7C,CAAC,CAAC;SACJ;aAAM;YACL,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,uBAAuB;gBAChC,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;aAC9C,CAAC,CAAC;SACJ;KACF;IAED,OAAO;QACL,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,MAAM;QACN,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS;QAC7C,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,EAAE,EAAE;QACjC,IAAI,EAAE,IAAI,CAAC,IAAI;KAChB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncForEach.js","sourceRoot":"","sources":["../../../src/utils/asyncForEach.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,KAAK,UAAU,YAAY,CAChC,KAAU,EACV,
|
|
1
|
+
{"version":3,"file":"asyncForEach.js","sourceRoot":"","sources":["../../../src/utils/asyncForEach.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,KAAK,UAAU,YAAY,CAChC,KAAU,EACV,QAA+D;IAE/D,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QACjD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;KAC5C;AACH,CAAC;AAPD,oCAOC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { IArcGISContext } from "../types";
|
|
2
|
+
import { IWithEditorBehavior } from "../core/behaviors/IWithEditorBehavior";
|
|
3
|
+
import { IWithStoreBehavior } from "../core/behaviors/IWithStoreBehavior";
|
|
4
|
+
import { IEditorConfig } from "../core/schemas/types";
|
|
5
|
+
import { IEntityEditorContext } from "../core/types/HubEntityEditor";
|
|
6
|
+
import { IHubChannel, IHubChannelEditor } from "../core/types/IHubChannel";
|
|
7
|
+
import { ChannelEditorType } from "./_internal/ChannelSchema";
|
|
8
|
+
import { IConvertToCardModelOpts, IHubCardViewModel } from "../core/types/IHubCardViewModel";
|
|
9
|
+
export declare class HubChannel implements IWithStoreBehavior<IHubChannel>, IWithEditorBehavior {
|
|
10
|
+
protected context: IArcGISContext;
|
|
11
|
+
protected entity: IHubChannel;
|
|
12
|
+
protected isDestroyed: boolean;
|
|
13
|
+
constructor(entity: IHubChannel, context: IArcGISContext);
|
|
14
|
+
/**
|
|
15
|
+
* Create an instance from an IHubChannel object
|
|
16
|
+
* @param json - JSON object to create a HubChannel from
|
|
17
|
+
* @param context - ArcGIS context
|
|
18
|
+
* @returns a HubChannel instance
|
|
19
|
+
*/
|
|
20
|
+
static fromJson(json: Partial<IHubChannel>, context: IArcGISContext): HubChannel;
|
|
21
|
+
/**
|
|
22
|
+
* Create a new HubChannel, returning a HubChannel instance.
|
|
23
|
+
* Note: This does not persist the Channel into the backing store
|
|
24
|
+
* @param partialChannel A partial IHubChannel object
|
|
25
|
+
* @param context ArcGIS Context
|
|
26
|
+
* @returns a HubChannel instance
|
|
27
|
+
*/
|
|
28
|
+
static create(partialChannel: Partial<IHubChannel>, context: IArcGISContext, save?: boolean): Promise<HubChannel>;
|
|
29
|
+
/**
|
|
30
|
+
* Fetch a Channel from the backing store and return a HubChannel instance.
|
|
31
|
+
* @param identifier - Identifier of the channel to load
|
|
32
|
+
* @param context - An IArcGISContext object
|
|
33
|
+
* @returns a HubChannel instance
|
|
34
|
+
*/
|
|
35
|
+
static fetch(identifier: string, context: IArcGISContext): Promise<HubChannel>;
|
|
36
|
+
/**
|
|
37
|
+
* Given a partial channel, apply defaults to it to ensure that a baseline of properties are set
|
|
38
|
+
* @param partialChannel A partial IHubChannel object
|
|
39
|
+
* @param context - ArcGIS Context
|
|
40
|
+
* @returns an IHubChannel object
|
|
41
|
+
*/
|
|
42
|
+
private static applyDefaults;
|
|
43
|
+
/**
|
|
44
|
+
* Can the current user edit the channel?
|
|
45
|
+
* @returns boolean
|
|
46
|
+
*/
|
|
47
|
+
get canEdit(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Can the current user delete the channel?
|
|
50
|
+
* @returns boolean
|
|
51
|
+
*/
|
|
52
|
+
get canDelete(): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The orgId of the channel
|
|
55
|
+
* @returns the orgId of the channel
|
|
56
|
+
*/
|
|
57
|
+
get orgId(): string;
|
|
58
|
+
/**
|
|
59
|
+
* Return the backing entity as an object literal
|
|
60
|
+
* @returns an IHubChannel
|
|
61
|
+
*/
|
|
62
|
+
toJson(): IHubChannel;
|
|
63
|
+
/**
|
|
64
|
+
* Apply a new state to the instance
|
|
65
|
+
* @param changes A partial IHubChannel object
|
|
66
|
+
*/
|
|
67
|
+
update(changes: Partial<IHubChannel>): void;
|
|
68
|
+
/**
|
|
69
|
+
* Save the HubChannel to the backing store.
|
|
70
|
+
* @returns a promise
|
|
71
|
+
*/
|
|
72
|
+
save(): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Delete the HubChannel from the store
|
|
75
|
+
* set a flag to indicate that it is destroyed
|
|
76
|
+
* @returns a promise
|
|
77
|
+
*/
|
|
78
|
+
delete(): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* TODO
|
|
81
|
+
* @param opts
|
|
82
|
+
* @returns
|
|
83
|
+
*/
|
|
84
|
+
convertToCardModel(opts?: IConvertToCardModelOpts): IHubCardViewModel;
|
|
85
|
+
/**
|
|
86
|
+
* Get a specifc editor config for the HubChannel entity.
|
|
87
|
+
* @param i18nScope A string representing the i18n scope for translated strings
|
|
88
|
+
* @param type One of the supported ChannelEditorType strings
|
|
89
|
+
* @returns a promise that resolves a IEditorConfig object
|
|
90
|
+
*/
|
|
91
|
+
getEditorConfig(i18nScope: string, type: ChannelEditorType): Promise<IEditorConfig>;
|
|
92
|
+
/**
|
|
93
|
+
* Return the channel as an editor object
|
|
94
|
+
* @param editorContext An IEntityEditorContext object
|
|
95
|
+
* @param include An optional array of includes
|
|
96
|
+
* @returns a promise that resolves an IHubChannelEditor object
|
|
97
|
+
*/
|
|
98
|
+
toEditor(editorContext: IEntityEditorContext, include?: string[]): Promise<IHubChannelEditor>;
|
|
99
|
+
/**
|
|
100
|
+
* Load the channel from the editor object
|
|
101
|
+
* @param editor An IHubChannelEditor object
|
|
102
|
+
* @returns a promise that resolves an IHubChannel
|
|
103
|
+
*/
|
|
104
|
+
fromEditor(editor: IHubChannelEditor): Promise<IHubChannel>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
* An array of all supported channel permissions
|
|
4
|
+
*/
|
|
5
|
+
export declare const ChannelPermissions: readonly ["hub:channel", "hub:channel:create", "hub:channel:delete", "hub:channel:edit", "hub:channel:view", "hub:channel:owner", "hub:channel:manage", "hub:channel:read", "hub:channel:write", "hub:channel:readWrite", "hub:channel:moderate"];
|
|
6
|
+
/**
|
|
7
|
+
* @private
|
|
8
|
+
* A union type representing all the supported channel permissions
|
|
9
|
+
*/
|
|
10
|
+
export declare type ChannelPermission = (typeof ChannelPermissions)[number];
|
|
11
|
+
/**
|
|
12
|
+
* A pseudo-permission used as a placeholder for the "None" permission option
|
|
13
|
+
*/
|
|
14
|
+
export declare const ChannelNonePermission = "hub:channel:none";
|
|
15
|
+
/**
|
|
16
|
+
* @private
|
|
17
|
+
* A map of all supported channel permissions
|
|
18
|
+
*/
|
|
19
|
+
export declare const CHANNEL_PERMISSIONS: Record<"channelRoot" | "channelCreate" | "channelDelete" | "channelEdit" | "channelView" | "channelOwner" | "channelManage" | "channelRead" | "channelWrite" | "channelReadWrite" | "channelModerate", ChannelPermission>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IConfigurationSchema } from "../../core/schemas/types";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* The supported channel editor types
|
|
5
|
+
*/
|
|
6
|
+
export declare const ChannelEditorTypes: readonly ["hub:channel:create", "hub:channel:edit"];
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
* The union of all supported channel editor types
|
|
10
|
+
*/
|
|
11
|
+
export declare type ChannelEditorType = (typeof ChannelEditorTypes)[number];
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
* The channel editor schema
|
|
15
|
+
*/
|
|
16
|
+
export declare const ChannelSchema: IConfigurationSchema;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IUiSchema } from "../../core/schemas/types";
|
|
2
|
+
import { IArcGISContext } from "../../types";
|
|
3
|
+
import { IHubChannel } from "../../core/types";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the complete create uiSchema for Hub Channels.
|
|
7
|
+
* This defines how the schema properties should be
|
|
8
|
+
* rendered in the channel editing experience
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildUiSchema: (i18nScope: string, _options: Partial<IHubChannel>, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IUiSchema } from "../../core/schemas/types";
|
|
2
|
+
import { IArcGISContext } from "../../types";
|
|
3
|
+
import { IHubChannel } from "../../core/types";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the complete edit uiSchema for Hub Channels.
|
|
7
|
+
* This defines how the schema properties should be
|
|
8
|
+
* rendered in the channel editing experience
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildUiSchema: (i18nScope: string, options: Partial<IHubChannel>, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IHubChannel } from "../../core/types/IHubChannel";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Builds a partial IHubChannel object with default values
|
|
5
|
+
* @param orgId the currently authenticated user's orgId
|
|
6
|
+
* @returns a partial IHubChannel object
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildDefaultChannel(orgId: string): Partial<IHubChannel>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IEntityPermissionPolicy } from "../../permissions/types/IEntityPermissionPolicy";
|
|
2
|
+
import { IChannelAclPermissionDefinition } from "../../discussions/api/types";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Transforms an IChannelAclPermission-like object to an IEntityPermissionPolicy object
|
|
6
|
+
* @param channelAclPermission An IChannelAclPermission-like object
|
|
7
|
+
* @returns an IEntityPermissionPolicy object
|
|
8
|
+
*/
|
|
9
|
+
export declare const transformAclPermissionToEntityPermissionPolicy: (channelAclPermission: IChannelAclPermissionDefinition & {
|
|
10
|
+
id?: string;
|
|
11
|
+
}) => IEntityPermissionPolicy;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IHubChannel } from "../../core/types/IHubChannel";
|
|
2
|
+
import { IChannel } from "../../discussions/api/types";
|
|
3
|
+
import { IUser } from "@esri/arcgis-rest-types";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* Transforms a given IChannel object to an IHubChannel object
|
|
7
|
+
* @param channel An IChannel object
|
|
8
|
+
* @param user The currently authenticated user
|
|
9
|
+
* @returns an IHubChannel object
|
|
10
|
+
*/
|
|
11
|
+
export declare function transformChannelToEntity(channel: IChannel, user: IUser): IHubChannel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IHubChannel, IHubChannelEditor } from "../../core/types/IHubChannel";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Transforms an IHubChannelEditor object to a partial IHubChannel object
|
|
5
|
+
* @param editor an IHubChannelEditor object
|
|
6
|
+
* @returns a partial IHubChannel object
|
|
7
|
+
*/
|
|
8
|
+
export declare function transformEditorToEntity(editor: IHubChannelEditor): Partial<IHubChannel>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HubEntityType } from "../../core/types";
|
|
2
|
+
import { IEntityPermissionPolicy } from "../../permissions/types/IEntityPermissionPolicy";
|
|
3
|
+
export interface IHubRoleConfigValue {
|
|
4
|
+
key: string;
|
|
5
|
+
entityId?: string;
|
|
6
|
+
entityType?: HubEntityType;
|
|
7
|
+
roles: Record<string, {
|
|
8
|
+
value: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
* Transforms an array of IEntityPermissionPolicy (Hub entity) objects to an array of IHubRoleConfigValue (entity editor) objects
|
|
15
|
+
* representing the channel's public (anonymous & authenticated) permissions
|
|
16
|
+
* @param permissionPolicies An array of IEntityPermissionPolicy objects
|
|
17
|
+
* @returns an array of IHubRoleConfigValue objects
|
|
18
|
+
*/
|
|
19
|
+
export declare const transformEntityPermissionPoliciesToPublicFormValues: (permissionPolicies: IEntityPermissionPolicy[]) => IHubRoleConfigValue[];
|
|
20
|
+
/**
|
|
21
|
+
* @private
|
|
22
|
+
* Transforms an array of IEntityPermissionPolicy (Hub entity) objects to an array of IHubRoleConfigValue (entity editor) objects
|
|
23
|
+
* representing the channel's group (member & admin) permissions
|
|
24
|
+
* @param permissionPolicies An array of IEntityPermissionPolicy objects
|
|
25
|
+
* @returns an array of IHubRoleConfigValue objects
|
|
26
|
+
*/
|
|
27
|
+
export declare const transformEntityPermissionPoliciesToGroupFormValues: (permissionPolicies: IEntityPermissionPolicy[]) => IHubRoleConfigValue[];
|
|
28
|
+
/**
|
|
29
|
+
* @private
|
|
30
|
+
* Transforms an array of IEntityPermissionPolicy (Hub entity) objects to an array of IHubRoleConfigValue (entity editor) objects
|
|
31
|
+
* representing the channel's org (member & admin) permissions
|
|
32
|
+
* @param permissionPolicies An array of IEntityPermissionPolicy objects
|
|
33
|
+
* @param defaultOrgId The current user's orgId
|
|
34
|
+
* @returns an array of IHubRoleConfigValue objects
|
|
35
|
+
*/
|
|
36
|
+
export declare const transformEntityPermissionPoliciesToOrgFormValues: (permissionPolicies: IEntityPermissionPolicy[], defaultOrgId?: string) => IHubRoleConfigValue[];
|
|
37
|
+
/**
|
|
38
|
+
* @private
|
|
39
|
+
* Transforms an array of IEntityPermissionPolicy (Hub entity) objects to an array of IHubRoleConfigValue (entity editor) objects
|
|
40
|
+
* representing the channel's individual user permissions
|
|
41
|
+
* @param permissionPolicies An array of IEntityPermissionPolicy objects
|
|
42
|
+
* @returns an array of IHubRoleConfigValue objects
|
|
43
|
+
*/
|
|
44
|
+
export declare const transformEntityPermissionPoliciesToUserFormValues: (permissionPolicies: IEntityPermissionPolicy[]) => IHubRoleConfigValue[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IHubChannel } from "../../core/types/IHubChannel";
|
|
2
|
+
import { IUpdateChannelV2, ICreateChannelV2 } from "../../discussions/api/types";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Transforms an IHubChannel entity pojo object to an object that can be passed V2 channel create and update methods
|
|
6
|
+
* @param entity an IHubChannel object
|
|
7
|
+
* @returns an object that can be passed to V2 channel create and update methods
|
|
8
|
+
*/
|
|
9
|
+
export declare function transformEntityToChannelData<T extends ICreateChannelV2 | IUpdateChannelV2>(entity: IHubChannel): T;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IHubChannel, IHubChannelEditor } from "../../core/types/IHubChannel";
|
|
2
|
+
import { IArcGISContext } from "../../types/IArcGISContext";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Transforms an IHubChannel entity pojo to an IHubChannelEditor object
|
|
6
|
+
* @param entity an IHubChannel object
|
|
7
|
+
* @returns an IHubChannelEditor object
|
|
8
|
+
*/
|
|
9
|
+
export declare function transformEntityToEditor(entity: IHubChannel, context: IArcGISContext): IHubChannelEditor;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEntityPermissionPolicy } from "../../permissions/types";
|
|
2
|
+
import { IHubRoleConfigValue } from "./transformEntityPermissionPoliciesToFormValues";
|
|
3
|
+
/**
|
|
4
|
+
* @private
|
|
5
|
+
* Transforms an array of IHubRoleConfigValue objects into an array of IEntityPermissionPolicy objects
|
|
6
|
+
* @param roleConfigs an array of IHubRoleConfigValue objects
|
|
7
|
+
* @returns an array of IEntityPermissionPolicy objects
|
|
8
|
+
*/
|
|
9
|
+
export declare function transformFormValuesToEntityPermissionPolicies(roleConfigs: IHubRoleConfigValue[]): IEntityPermissionPolicy[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IHubChannel } from "../core";
|
|
2
|
+
import { IArcGISContext } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new Channel from the given IHubChannel object
|
|
5
|
+
* @param entity An IHubChannel object
|
|
6
|
+
* @param context ArcGIS context
|
|
7
|
+
* @returns a promise that resolves an IHubChannel representing the newly created channel
|
|
8
|
+
*/
|
|
9
|
+
export declare function createHubChannel(entity: IHubChannel, context: IArcGISContext): Promise<IHubChannel>;
|
|
10
|
+
/**
|
|
11
|
+
* Updates an existing Channel from the given IHubChannel object
|
|
12
|
+
* @param entity An IHubChannel object
|
|
13
|
+
* @param context ArcGIS context
|
|
14
|
+
* @returns a promise that resolves an IHubChannel representing the updated channel
|
|
15
|
+
*/
|
|
16
|
+
export declare function updateHubChannel(entity: IHubChannel, context: IArcGISContext): Promise<IHubChannel>;
|
|
17
|
+
/**
|
|
18
|
+
* Updates an existing Channel from the given IHubChannel object
|
|
19
|
+
* @param channelId The ID of the channel to delete
|
|
20
|
+
* @param context ArcGIS context
|
|
21
|
+
* @returns a promise
|
|
22
|
+
*/
|
|
23
|
+
export declare function deleteHubChannel(channelId: string, context: IArcGISContext): Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IHubChannel } from "../core/types/IHubChannel";
|
|
2
|
+
import { IArcGISContext } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Fetches a Channel for the given channelId
|
|
5
|
+
* @param channelId The ID of the channel to fetch
|
|
6
|
+
* @param context ArcGIS context
|
|
7
|
+
* @returns a promise that resolves an IHubChannel for the given channelId
|
|
8
|
+
*/
|
|
9
|
+
export declare function fetchHubChannel(channelId: string, context: IArcGISContext): Promise<IHubChannel>;
|
|
@@ -44,7 +44,7 @@ export declare const setContentBoundary: (content: IHubContent, boundary: Geogra
|
|
|
44
44
|
control?: import("../../hub-types").AccessControl;
|
|
45
45
|
groups?: import("@esri/arcgis-rest-portal").IGroup[];
|
|
46
46
|
};
|
|
47
|
-
family?: "map" | "template" | "document" | "content" | "discussion" | "event" | "initiative" | "organization" | "project" | "site" | "app" | "dataset" | "feedback" | "people" | "team" | "
|
|
47
|
+
family?: "map" | "template" | "document" | "content" | "discussion" | "event" | "initiative" | "organization" | "project" | "site" | "channel" | "app" | "dataset" | "feedback" | "people" | "team" | "eventAttendee";
|
|
48
48
|
categories?: string[];
|
|
49
49
|
isDownloadable: boolean;
|
|
50
50
|
structuredLicense?: import("../..").IStructuredLicense;
|
|
@@ -4,7 +4,7 @@ import { HubFamily } from "../hub-types";
|
|
|
4
4
|
* @param type item type
|
|
5
5
|
* @returns Hub family
|
|
6
6
|
*/
|
|
7
|
-
export declare function getFamily(type: string): "map" | "template" | "document" | "content" | "discussion" | "event" | "initiative" | "organization" | "project" | "site" | "app" | "dataset" | "feedback" | "people" | "team" | "
|
|
7
|
+
export declare function getFamily(type: string): "map" | "template" | "document" | "content" | "discussion" | "event" | "initiative" | "organization" | "project" | "site" | "channel" | "app" | "dataset" | "feedback" | "people" | "team" | "eventAttendee";
|
|
8
8
|
/**
|
|
9
9
|
* return the types associated with a provided Hub Family
|
|
10
10
|
* Overrides are provided to match getFamily implementation
|
|
@@ -8,6 +8,6 @@ export declare class EntityEditor {
|
|
|
8
8
|
private constructor();
|
|
9
9
|
static fromEntity(entity: HubEntity, context: IArcGISContext): EntityEditor;
|
|
10
10
|
getConfig(i18nScope: string, type: EntityEditorType): Promise<IEditorConfig>;
|
|
11
|
-
toEditor(editorContext?: IEntityEditorContext, include?: string[]): HubEntityEditor
|
|
11
|
+
toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<HubEntityEditor>;
|
|
12
12
|
save(editor: HubEntityEditor, editorContext?: IEntityEditorContext): Promise<HubEntity>;
|
|
13
13
|
}
|
|
@@ -12,7 +12,7 @@ export interface IEditorConfig {
|
|
|
12
12
|
* to the supported/defined uiSchema configurations
|
|
13
13
|
*/
|
|
14
14
|
export declare type EntityEditorType = (typeof validEntityEditorTypes)[number];
|
|
15
|
-
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:registrants", "hub:user:settings"];
|
|
15
|
+
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:registrants", "hub:user:settings", "hub:channel:create", "hub:channel:edit"];
|
|
16
16
|
/** Defines the possible editor type values for a stat card. These
|
|
17
17
|
* correspond to the supported/defined uiSchema configurations. This should
|
|
18
18
|
* have its own signature in the getEditorConfig function.
|
|
@@ -42,7 +42,7 @@ export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:
|
|
|
42
42
|
* to defined schema/uiSchema configurations
|
|
43
43
|
*/
|
|
44
44
|
export declare type EditorType = (typeof validEditorTypes)[number];
|
|
45
|
-
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:registrants", "hub:user:settings", "hub:card:stat", "hub:card:follow", "hub:card:eventGallery"];
|
|
45
|
+
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:registrants", "hub:user:settings", "hub:channel:create", "hub:channel:edit", "hub:card:stat", "hub:card:follow", "hub:card:eventGallery"];
|
|
46
46
|
/**
|
|
47
47
|
* An editor's module when dynamically imported depending on the EditorType. This
|
|
48
48
|
* will always have a buildUiSchema function, and sometimes it will have a
|
|
@@ -8,5 +8,6 @@ import { IHubTemplate } from "./IHubTemplate";
|
|
|
8
8
|
import { IHubSurvey } from "./IHubSurvey";
|
|
9
9
|
import { IHubEvent } from "./IHubEvent";
|
|
10
10
|
import { IHubUser } from "./IHubUser";
|
|
11
|
-
import { IHubOrganization } from "
|
|
12
|
-
|
|
11
|
+
import { IHubOrganization } from "./IHubOrganization";
|
|
12
|
+
import { IHubChannel } from "./IHubChannel";
|
|
13
|
+
export declare type HubEntity = IHubDiscussion | IHubEvent | IHubGroup | IHubInitiative | IHubOrganization | IHubPage | IHubProject | IHubSite | IHubSurvey | IHubTemplate | IHubUser | IHubChannel;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const HUB_ENTITY_TYPES: readonly ["content", "discussion", "event", "group", "initiative", "initiativeTemplate", "org", "organization", "page", "project", "site", "survey", "template", "user"];
|
|
1
|
+
export declare const HUB_ENTITY_TYPES: readonly ["content", "discussion", "event", "group", "initiative", "initiativeTemplate", "org", "organization", "page", "project", "site", "survey", "template", "user", "channel"];
|
|
2
2
|
export declare type HubEntityType = (typeof HUB_ENTITY_TYPES)[number];
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { IChannel } from "../../discussions/api/types";
|
|
2
|
+
import { IEntityPermissionPolicy } from "../../permissions/types/IEntityPermissionPolicy";
|
|
3
|
+
import { IWithViewSettings } from "../traits/IWithViewSettings";
|
|
4
|
+
import { HubEntityType } from "./HubEntityType";
|
|
5
|
+
import { IHubEntityBase } from "./IHubEntityBase";
|
|
6
|
+
import { IHubLocation } from "./IHubLocation";
|
|
7
|
+
import { AccessLevel } from "./types";
|
|
8
|
+
/**
|
|
9
|
+
* Defines the properties of a Hub Channel object
|
|
10
|
+
*/
|
|
11
|
+
export interface IHubChannel extends IHubEntityBase {
|
|
12
|
+
/**
|
|
13
|
+
* An array of blocked words. Posts & replies created/edited containing these words will result in the post status being automatically set to blocked
|
|
14
|
+
*/
|
|
15
|
+
blockWords: string[];
|
|
16
|
+
/**
|
|
17
|
+
* An array of IEntityPermissionPolicy representing the configured permissions for the channel
|
|
18
|
+
*/
|
|
19
|
+
permissions: IEntityPermissionPolicy[];
|
|
20
|
+
/**
|
|
21
|
+
* True when authenticated users can post pseudo-anonymously, masking their identity
|
|
22
|
+
*/
|
|
23
|
+
allowAsAnonymous: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* True when the currently authenticated user can edit the channel
|
|
26
|
+
*/
|
|
27
|
+
canEdit: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* True when the currently authenticated user can delete the channel
|
|
30
|
+
*/
|
|
31
|
+
canDelete: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the organization the channel was created within
|
|
34
|
+
*/
|
|
35
|
+
orgId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The owner of the channel
|
|
38
|
+
*/
|
|
39
|
+
owner: string;
|
|
40
|
+
/**
|
|
41
|
+
* A reference to the underlying IChannel object
|
|
42
|
+
*/
|
|
43
|
+
channel: IChannel;
|
|
44
|
+
/**
|
|
45
|
+
* The access level of the channel
|
|
46
|
+
*/
|
|
47
|
+
access: AccessLevel;
|
|
48
|
+
/**
|
|
49
|
+
* Typekeywords applied to the channel
|
|
50
|
+
*/
|
|
51
|
+
typeKeywords: string[];
|
|
52
|
+
/**
|
|
53
|
+
* Thumbnail of the channel
|
|
54
|
+
*/
|
|
55
|
+
thumbnail?: string;
|
|
56
|
+
/**
|
|
57
|
+
* View settings of the channel
|
|
58
|
+
*/
|
|
59
|
+
view?: IWithViewSettings;
|
|
60
|
+
/**
|
|
61
|
+
* Description of the channel
|
|
62
|
+
*/
|
|
63
|
+
description?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Tags applied to the channel
|
|
66
|
+
*/
|
|
67
|
+
tags: string[];
|
|
68
|
+
/**
|
|
69
|
+
* The location of the channel
|
|
70
|
+
*/
|
|
71
|
+
location?: IHubLocation;
|
|
72
|
+
}
|
|
73
|
+
export interface IHubRoleConfigValue {
|
|
74
|
+
key: string;
|
|
75
|
+
entityId?: string;
|
|
76
|
+
entityType?: HubEntityType;
|
|
77
|
+
roles: Record<string, {
|
|
78
|
+
value: string;
|
|
79
|
+
id?: string;
|
|
80
|
+
}>;
|
|
81
|
+
}
|
|
82
|
+
export interface IHubChannelEditor {
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
blockWords: string;
|
|
86
|
+
publicConfigs: IHubRoleConfigValue[];
|
|
87
|
+
orgConfigs: IHubRoleConfigValue[];
|
|
88
|
+
groupConfigs: IHubRoleConfigValue[];
|
|
89
|
+
userConfigs: IHubRoleConfigValue[];
|
|
90
|
+
allowAsAnonymous: boolean;
|
|
91
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from "./IHubDiscussion";
|
|
|
10
10
|
export * from "./IHubEditableContent";
|
|
11
11
|
export * from "./IHubEntityBase";
|
|
12
12
|
export * from "./IHubEvent";
|
|
13
|
+
export * from "./IHubChannel";
|
|
13
14
|
export * from "./IHubSurvey";
|
|
14
15
|
export * from "./IHubGroup";
|
|
15
16
|
export * from "./IHubImage";
|
|
@@ -929,12 +929,13 @@ export interface IFetchChannel {
|
|
|
929
929
|
* @extends {Partial<IWithEditor>}
|
|
930
930
|
*/
|
|
931
931
|
export interface ISearchChannels extends Partial<IPagingParams>, Partial<IWithSorting<ChannelSort>>, Partial<IWithTimeQueries>, Partial<IWithFiltering<ChannelFilter>>, Partial<IWithAuthor>, Partial<IWithEditor> {
|
|
932
|
-
groups?: string[];
|
|
933
932
|
access?: SharingAccess[];
|
|
934
|
-
|
|
933
|
+
discussion?: string;
|
|
934
|
+
groups?: string[];
|
|
935
|
+
ids?: string[];
|
|
935
936
|
name?: string;
|
|
936
937
|
orgIds?: string[];
|
|
937
|
-
|
|
938
|
+
relations?: ChannelRelation[];
|
|
938
939
|
}
|
|
939
940
|
/**
|
|
940
941
|
* request params for creating a channel
|
package/dist/types/index.d.ts
CHANGED