@esri/hub-common 12.3.0 → 12.3.1
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 +2 -1
- package/dist/esm/ArcGISContextManager.js.map +1 -1
- package/dist/esm/capabilities/_internal/checkCapabilityAccess.js +1 -1
- package/dist/esm/capabilities/_internal/checkCapabilityAccess.js.map +1 -1
- package/dist/esm/capabilities/getWorkspaceCapabilities.js.map +1 -1
- package/dist/esm/core/_internal/PropertyMapper.js +2 -1
- package/dist/esm/core/_internal/PropertyMapper.js.map +1 -1
- package/dist/esm/core/_internal/deepContains.js +2 -2
- package/dist/esm/core/_internal/deepContains.js.map +1 -1
- package/dist/esm/core/fetchHubEntity.js.map +1 -1
- package/dist/esm/core/types/IHubContent.js.map +1 -1
- package/dist/esm/groups/_internal/enrichments.js.map +1 -1
- package/dist/esm/initiatives/HubInitiative.js +1 -1
- package/dist/esm/initiatives/HubInitiative.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/esm/items/_internal/_prepare-upload-requests.js.map +1 -1
- package/dist/esm/items/registerBrowserApp.js +1 -1
- package/dist/esm/items/registerBrowserApp.js.map +1 -1
- package/dist/esm/items/setItemThumbnail.js +1 -1
- package/dist/esm/items/setItemThumbnail.js.map +1 -1
- package/dist/esm/items/slugs.js +1 -1
- package/dist/esm/items/slugs.js.map +1 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/objects/deepGetPropValues.js +1 -1
- package/dist/esm/objects/deepGetPropValues.js.map +1 -1
- package/dist/esm/org/fetch-org.js +2 -2
- package/dist/esm/org/fetch-org.js.map +1 -1
- package/dist/esm/projects/HubProject.js +1 -1
- package/dist/esm/projects/HubProject.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectBusinessRules.js.map +1 -1
- package/dist/esm/request.js +1 -1
- package/dist/esm/request.js.map +1 -1
- package/dist/esm/search/Catalog.js +1 -1
- package/dist/esm/search/Catalog.js.map +1 -1
- package/dist/esm/search/Collection.js +1 -1
- package/dist/esm/search/Collection.js.map +1 -1
- package/dist/esm/search/_internal/hubSearchItems.js.map +1 -1
- package/dist/esm/search/_internal/portalSearchGroups.js +1 -1
- package/dist/esm/search/_internal/portalSearchGroups.js.map +1 -1
- package/dist/esm/search/_internal/portalSearchItems.js +3 -1
- package/dist/esm/search/_internal/portalSearchItems.js.map +1 -1
- package/dist/esm/search/hubSearch.js.map +1 -1
- package/dist/esm/search/index.js +1 -0
- package/dist/esm/search/index.js.map +1 -1
- package/dist/esm/search/types/ISearchResponseHash.js +1 -0
- package/dist/esm/search/types/ISearchResponseHash.js.map +1 -0
- package/dist/esm/search/types/index.js +1 -0
- package/dist/esm/search/types/index.js.map +1 -1
- package/dist/esm/sites/HubSite.js +1 -1
- package/dist/esm/sites/HubSite.js.map +1 -1
- package/dist/esm/sites/_internal/_enforce-lowercase-domains.js +2 -1
- package/dist/esm/sites/_internal/_enforce-lowercase-domains.js.map +1 -1
- package/dist/esm/sites/_internal/_ensure-catalog.js +2 -1
- package/dist/esm/sites/_internal/_ensure-catalog.js.map +1 -1
- package/dist/esm/sites/_internal/_ensure-telemetry.js +3 -1
- package/dist/esm/sites/_internal/_ensure-telemetry.js.map +1 -1
- package/dist/esm/sites/_internal/_migrate-feed-config.js +2 -1
- package/dist/esm/sites/_internal/_migrate-feed-config.js.map +1 -1
- package/dist/esm/sites/_internal/_purge-non-guids-from-catalog.js +3 -1
- package/dist/esm/sites/_internal/_purge-non-guids-from-catalog.js.map +1 -1
- package/dist/esm/sites/_internal/applyPermissionMigration.js +2 -1
- package/dist/esm/sites/_internal/applyPermissionMigration.js.map +1 -1
- package/dist/esm/sites/_internal/handleDomainChanges.js +2 -1
- package/dist/esm/sites/_internal/handleDomainChanges.js.map +1 -1
- package/dist/esm/sites/domains/addSiteDomains.js +2 -1
- package/dist/esm/sites/domains/addSiteDomains.js.map +1 -1
- package/dist/esm/sites/domains/ensure-unique-domain-name.js +1 -1
- package/dist/esm/sites/domains/ensure-unique-domain-name.js.map +1 -1
- package/dist/esm/sites/domains/is-valid-domain.js +1 -1
- package/dist/esm/sites/domains/is-valid-domain.js.map +1 -1
- package/dist/esm/sites/domains/removeDomainByHostname.js +4 -2
- package/dist/esm/sites/domains/removeDomainByHostname.js.map +1 -1
- package/dist/esm/sites/drafts/build-draft.js +1 -1
- package/dist/esm/sites/drafts/build-draft.js.map +1 -1
- package/dist/esm/sites/fetchSiteModel.js +4 -1
- package/dist/esm/sites/fetchSiteModel.js.map +1 -1
- package/dist/esm/sites/get-site-by-id.js +2 -2
- package/dist/esm/sites/get-site-by-id.js.map +1 -1
- package/dist/esm/sites/registerSiteAsApplication.js +2 -1
- package/dist/esm/sites/registerSiteAsApplication.js.map +1 -1
- package/dist/esm/sites/themes.js +2 -1
- package/dist/esm/sites/themes.js.map +1 -1
- package/dist/esm/users/_internal/enrichments.js +2 -1
- package/dist/esm/users/_internal/enrichments.js.map +1 -1
- package/dist/node/ArcGISContextManager.js +11 -10
- package/dist/node/ArcGISContextManager.js.map +1 -1
- package/dist/node/capabilities/_internal/checkCapabilityAccess.js +2 -2
- package/dist/node/capabilities/_internal/checkCapabilityAccess.js.map +1 -1
- package/dist/node/capabilities/getWorkspaceCapabilities.js.map +1 -1
- package/dist/node/core/_internal/PropertyMapper.js +9 -8
- package/dist/node/core/_internal/PropertyMapper.js.map +1 -1
- package/dist/node/core/_internal/deepContains.js +5 -5
- package/dist/node/core/_internal/deepContains.js.map +1 -1
- package/dist/node/core/fetchHubEntity.js.map +1 -1
- package/dist/node/core/types/IHubContent.js.map +1 -1
- package/dist/node/groups/_internal/enrichments.js.map +1 -1
- package/dist/node/initiatives/HubInitiative.js +3 -3
- package/dist/node/initiatives/HubInitiative.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/node/items/_internal/_prepare-upload-requests.js.map +1 -1
- package/dist/node/items/registerBrowserApp.js +2 -2
- package/dist/node/items/registerBrowserApp.js.map +1 -1
- package/dist/node/items/setItemThumbnail.js +4 -4
- package/dist/node/items/setItemThumbnail.js.map +1 -1
- package/dist/node/items/slugs.js +2 -2
- package/dist/node/items/slugs.js.map +1 -1
- package/dist/node/models/index.js +10 -8
- package/dist/node/models/index.js.map +1 -1
- package/dist/node/objects/deepGetPropValues.js +2 -2
- package/dist/node/objects/deepGetPropValues.js.map +1 -1
- package/dist/node/org/fetch-org.js +3 -2
- package/dist/node/org/fetch-org.js.map +1 -1
- package/dist/node/projects/HubProject.js +3 -3
- package/dist/node/projects/HubProject.js.map +1 -1
- package/dist/node/projects/_internal/ProjectBusinessRules.js.map +1 -1
- package/dist/node/request.js +2 -2
- package/dist/node/request.js.map +1 -1
- package/dist/node/search/Catalog.js +1 -1
- package/dist/node/search/Catalog.js.map +1 -1
- package/dist/node/search/Collection.js +3 -3
- package/dist/node/search/Collection.js.map +1 -1
- package/dist/node/search/_internal/hubSearchItems.js.map +1 -1
- package/dist/node/search/_internal/portalSearchGroups.js +2 -2
- package/dist/node/search/_internal/portalSearchGroups.js.map +1 -1
- package/dist/node/search/_internal/portalSearchItems.js +6 -4
- package/dist/node/search/_internal/portalSearchItems.js.map +1 -1
- package/dist/node/search/hubSearch.js.map +1 -1
- package/dist/node/search/index.js +1 -0
- package/dist/node/search/index.js.map +1 -1
- package/dist/node/search/types/ISearchResponseHash.js +3 -0
- package/dist/node/search/types/ISearchResponseHash.js.map +1 -0
- package/dist/node/search/types/index.js +1 -0
- package/dist/node/search/types/index.js.map +1 -1
- package/dist/node/sites/HubSite.js +3 -3
- package/dist/node/sites/HubSite.js.map +1 -1
- package/dist/node/sites/_internal/_enforce-lowercase-domains.js +4 -3
- package/dist/node/sites/_internal/_enforce-lowercase-domains.js.map +1 -1
- package/dist/node/sites/_internal/_ensure-catalog.js +7 -6
- package/dist/node/sites/_internal/_ensure-catalog.js.map +1 -1
- package/dist/node/sites/_internal/_ensure-telemetry.js +8 -6
- package/dist/node/sites/_internal/_ensure-telemetry.js.map +1 -1
- package/dist/node/sites/_internal/_migrate-feed-config.js +4 -3
- package/dist/node/sites/_internal/_migrate-feed-config.js.map +1 -1
- package/dist/node/sites/_internal/_purge-non-guids-from-catalog.js +7 -5
- package/dist/node/sites/_internal/_purge-non-guids-from-catalog.js.map +1 -1
- package/dist/node/sites/_internal/applyPermissionMigration.js +4 -3
- package/dist/node/sites/_internal/applyPermissionMigration.js.map +1 -1
- package/dist/node/sites/_internal/handleDomainChanges.js +6 -5
- package/dist/node/sites/_internal/handleDomainChanges.js.map +1 -1
- package/dist/node/sites/domains/addSiteDomains.js +4 -3
- package/dist/node/sites/domains/addSiteDomains.js.map +1 -1
- package/dist/node/sites/domains/ensure-unique-domain-name.js +2 -2
- package/dist/node/sites/domains/ensure-unique-domain-name.js.map +1 -1
- package/dist/node/sites/domains/is-valid-domain.js +2 -2
- package/dist/node/sites/domains/is-valid-domain.js.map +1 -1
- package/dist/node/sites/domains/removeDomainByHostname.js +7 -5
- package/dist/node/sites/domains/removeDomainByHostname.js.map +1 -1
- package/dist/node/sites/drafts/build-draft.js +2 -2
- package/dist/node/sites/drafts/build-draft.js.map +1 -1
- package/dist/node/sites/fetchSiteModel.js +8 -5
- package/dist/node/sites/fetchSiteModel.js.map +1 -1
- package/dist/node/sites/get-site-by-id.js +3 -3
- package/dist/node/sites/get-site-by-id.js.map +1 -1
- package/dist/node/sites/registerSiteAsApplication.js +4 -3
- package/dist/node/sites/registerSiteAsApplication.js.map +1 -1
- package/dist/node/sites/themes.js +6 -5
- package/dist/node/sites/themes.js.map +1 -1
- package/dist/node/users/_internal/enrichments.js +4 -3
- package/dist/node/users/_internal/enrichments.js.map +1 -1
- package/dist/types/ArcGISContextManager.d.ts +2 -1
- package/dist/types/capabilities/_internal/checkCapabilityAccess.d.ts +2 -1
- package/dist/types/capabilities/getWorkspaceCapabilities.d.ts +2 -1
- package/dist/types/content/_internal.d.ts +1 -8
- package/dist/types/core/_internal/PropertyMapper.d.ts +1 -1
- package/dist/types/core/_internal/deepContains.d.ts +1 -1
- package/dist/types/core/fetchHubEntity.d.ts +1 -1
- package/dist/types/core/types/IHubContent.d.ts +1 -1
- package/dist/types/core/types/IItemEnrichments.d.ts +1 -1
- package/dist/types/groups/_internal/enrichments.d.ts +1 -1
- package/dist/types/initiatives/HubInitiative.d.ts +1 -1
- package/dist/types/initiatives/_internal/InitiativeBusinessRules.d.ts +2 -1
- package/dist/types/items/_internal/_prepare-upload-requests.d.ts +1 -1
- package/dist/types/models/index.d.ts +1 -1
- package/dist/types/org/fetch-org.d.ts +1 -1
- package/dist/types/projects/HubProject.d.ts +1 -1
- package/dist/types/projects/_internal/ProjectBusinessRules.d.ts +2 -1
- package/dist/types/search/Catalog.d.ts +1 -8
- package/dist/types/search/Collection.d.ts +1 -1
- package/dist/types/search/_internal/hubSearchItems.d.ts +1 -1
- package/dist/types/search/index.d.ts +1 -0
- package/dist/types/search/types/IHubSearchOptions.d.ts +2 -1
- package/dist/types/search/types/IHubSearchResult.d.ts +1 -1
- package/dist/types/search/types/ISearchResponseHash.d.ts +7 -0
- package/dist/types/search/types/index.d.ts +1 -0
- package/dist/types/sites/HubSite.d.ts +1 -1
- package/dist/types/sites/_internal/SiteBusinessRules.d.ts +1 -1
- package/dist/types/sites/_internal/_enforce-lowercase-domains.d.ts +1 -1
- package/dist/types/sites/_internal/_ensure-catalog.d.ts +1 -1
- package/dist/types/sites/_internal/_ensure-telemetry.d.ts +1 -1
- package/dist/types/sites/_internal/_migrate-feed-config.d.ts +1 -1
- package/dist/types/sites/_internal/_purge-non-guids-from-catalog.d.ts +1 -1
- package/dist/types/sites/_internal/applyPermissionMigration.d.ts +1 -1
- package/dist/types/sites/_internal/handleDomainChanges.d.ts +1 -1
- package/dist/types/sites/domains/addSiteDomains.d.ts +1 -1
- package/dist/types/sites/drafts/build-draft.d.ts +1 -1
- package/dist/types/sites/fetchSiteModel.d.ts +2 -2
- package/dist/types/sites/get-site-by-id.d.ts +2 -2
- package/dist/types/sites/registerSiteAsApplication.d.ts +1 -1
- package/dist/types/sites/themes.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.js","sourceRoot":"","sources":["../../../src/sites/themes.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"themes.js","sourceRoot":"","sources":["../../../src/sites/themes.ts"],"names":[],"mappings":";;;AAEA,wCAAuD;AACvD,kCAA8C;AAE9C;;GAEG;AACU,QAAA,aAAa,GAAkB;IAC1C,MAAM,EAAE;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,SAAS;KAChB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;KAChB;IACD,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,IAAI,EAAE,MAAM;KACb;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,EAAE;KACV;IACD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,GAAG,EAAE,EAAE;YACP,MAAM,EAAE,aAAa;SACtB;QACD,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,MAAM,EAAE,aAAa;SACtB;KACF;CACF,CAAC;AAEF;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,UAAmB;IACpD,IAAI,YAAY,GAAG,kBAAW,CAAC,qBAAa,CAAC,CAAC;IAC9C,IAAI,WAAW,GAAG,iBAAO,CAAC,UAAU,EAAE,8BAA8B,CAAC,CAAC;IACtE,IAAI,WAAW,EAAE;QACf,WAAW,GAAG,0BAAgB,CAAC,WAAW,CAAC,CAAC;QAC5C,YAAY,GAAG,aAAM,CAAC,YAAY,EAAE,WAAW,CAAkB,CAAC;KACnE;IACD,OAAO,YAAY,CAAC;AACtB,CAAC;AARD,gDAQC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fetchUserEnrichments = void 0;
|
|
4
|
-
const
|
|
4
|
+
const fetch_org_1 = require("../../org/fetch-org");
|
|
5
5
|
const _enrichments_1 = require("../../items/_enrichments");
|
|
6
6
|
const OperationStack_1 = require("../../OperationStack");
|
|
7
|
+
const urls_1 = require("../../urls");
|
|
7
8
|
const utils_1 = require("../../utils");
|
|
8
9
|
const enrichUserOrg = (input) => {
|
|
9
10
|
const { data, stack, requestOptions } = input;
|
|
@@ -12,7 +13,7 @@ const enrichUserOrg = (input) => {
|
|
|
12
13
|
// In order to get the correct response, we must pass options.portal
|
|
13
14
|
// as a base portal url (e.g., www.arcgis.com, qaext.arcgis.com, etc)
|
|
14
15
|
// **not** an org portal (i.e. org.maps.arcgis.com).
|
|
15
|
-
portal: `${
|
|
16
|
+
portal: `${urls_1.getPortalBaseFromOrgUrl(requestOptions.portal)}/sharing/rest` });
|
|
16
17
|
// TODO: Add Caching
|
|
17
18
|
// Had implemented a simple caching system, but it leads to unstable
|
|
18
19
|
// tests because we can't deterministically clear it
|
|
@@ -20,7 +21,7 @@ const enrichUserOrg = (input) => {
|
|
|
20
21
|
// orgCache[data.user.orgId] = fetchOrg(data.user.orgId, options);
|
|
21
22
|
// }
|
|
22
23
|
// return (orgCache[data.user.orgId] as Promise<IPortal>)
|
|
23
|
-
return
|
|
24
|
+
return fetch_org_1.fetchOrg(data.user.orgId, options)
|
|
24
25
|
.then((results) => {
|
|
25
26
|
stack.finish(opId);
|
|
26
27
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enrichments.js","sourceRoot":"","sources":["../../../../src/users/_internal/enrichments.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"enrichments.js","sourceRoot":"","sources":["../../../../src/users/_internal/enrichments.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,2DAA+D;AAC/D,yDAAkD;AAElD,qCAAqD;AACrD,uCAAiE;AAgCjE,MAAM,aAAa,GAAG,CACpB,KAAqC,EACI,EAAE;IAC3C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,OAAO,mCACR,cAAc;QACjB,oEAAoE;QACpE,qEAAqE;QACrE,oDAAoD;QACpD,MAAM,EAAE,GAAG,8BAAuB,CAAC,cAAc,CAAC,MAAM,CAAC,eAAe,GACzE,CAAC;IACF,oBAAoB;IACpB,oEAAoE;IACpE,oDAAoD;IACpD,oCAAoC;IACpC,oEAAoE;IACpE,IAAI;IAEJ,yDAAyD;IACzD,OAAO,oBAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC;SACtC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;QAChB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACnB,OAAO;YACL,IAAI,kCACC,IAAI,GACJ;gBACD,GAAG,EAAE,OAAO;aACb,CACF;YACD,KAAK;YACL,cAAc;SACf,CAAC;IACJ,CAAC,CAAC;SACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACjE,CAAC,CAAC;AAEF;;;GAGG;AACH,2DAA2D;AAC3D,yDAAyD;AACzD,sCAAsC;AACtC,4CAA4C;AAE5C,uCAAuC;AACvC,wDAAwD;AACxD,8DAA8D;AAC9D,MAAM,qBAAqB,GAAG,CAC5B,KAAqB,EACrB,KAAqC,EACrC,IAAY,EACoB,EAAE;IAClC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC9C,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9B,OAAO;QACL,IAAI,kCACC,IAAI,KACP,MAAM,EAAE,kCAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,GAChD;QACD,KAAK;QACL,cAAc;KACf,CAAC;AACJ,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,0BAA0B,GAA8B;IAC5D,GAAG,EAAE,aAAa;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAClC,IAAW,EACX,WAA6B,EAC7B,cAAmC;IAEnC,6CAA6C;IAC7C,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE;QACxD,MAAM,SAAS,GAAG,0BAA0B,CAAC,UAAU,CAAC,CAAC;QACzD,yDAAyD;QACzD,SAAS,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,QAAQ,GAAG,+BAAuB,CAAsB,UAAU,CAAC,CAAC;IAC1E,uDAAuD;IACvD,OAAO,QAAQ,CAAC;QACd,IAAI,EAAE,EAAE,IAAI,EAAE;QACd,KAAK,EAAE,IAAI,wBAAc,EAAE;QAC3B,cAAc;KACf,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QACjB,6FAA6F;QAC7F,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,oDAsBC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IPortal } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { IUser, UserSession } from "@esri/arcgis-rest-auth";
|
|
3
3
|
import { IArcGISContext } from "./ArcGISContext";
|
|
4
|
-
import { Level
|
|
4
|
+
import { Level } from "./utils/logger";
|
|
5
|
+
import { HubSystemStatus } from "./core";
|
|
5
6
|
/**
|
|
6
7
|
* Options that can be passed into `ArcGISContextManager.create`
|
|
7
8
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { HubEntity } from "../../core";
|
|
2
3
|
import { ICapabilityAccessResponse, ICapabilityPermission } from "../types";
|
|
3
4
|
/**
|
|
4
5
|
* Check an individual capability access rule
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { HubEntity, IArcGISContext } from "..";
|
|
2
1
|
import { IWorkspaceCapabilityResponse, ICapabilityPermission } from "./types";
|
|
2
|
+
import { HubEntity } from "../core";
|
|
3
|
+
import { IArcGISContext } from "../ArcGISContext";
|
|
3
4
|
/**
|
|
4
5
|
* List of all the Capability Permissions in the Hub System
|
|
5
6
|
* These are defined in the entity specific modules files
|
|
@@ -52,14 +52,7 @@ export declare const setContentBoundary: (content: IHubContent, boundary: Geogra
|
|
|
52
52
|
publisher?: {
|
|
53
53
|
name?: string;
|
|
54
54
|
username?: string;
|
|
55
|
-
nameSource: PublisherSource;
|
|
56
|
-
* Get the relative URL to use for the item in a hub site
|
|
57
|
-
* @param type
|
|
58
|
-
* @param identifier
|
|
59
|
-
* @param typeKeywords
|
|
60
|
-
* @returns
|
|
61
|
-
* @private
|
|
62
|
-
*/
|
|
55
|
+
nameSource: PublisherSource;
|
|
63
56
|
organization?: string;
|
|
64
57
|
orgId?: string;
|
|
65
58
|
organizationSource: PublisherSource;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IArcGISContext } from "../ArcGISContext";
|
|
2
1
|
import { HubEntity } from "./types/HubEntity";
|
|
3
2
|
import { HubEntityType } from "./types/HubEntityType";
|
|
3
|
+
import { IArcGISContext } from "../ArcGISContext";
|
|
4
4
|
/**
|
|
5
5
|
* Fetch a Hub entity by identifier (id or slug)
|
|
6
6
|
* @param type
|
|
@@ -2,9 +2,9 @@ import { IItem, IGroup } from "@esri/arcgis-rest-portal";
|
|
|
2
2
|
import { ILayerDefinition } from "@esri/arcgis-rest-feature-layer";
|
|
3
3
|
import { AccessControl, HubFamily, IActionLink, Visibility } from "../../types";
|
|
4
4
|
import { IStructuredLicense } from "../../items/get-structured-license";
|
|
5
|
-
import { IHubItemEntity } from ".";
|
|
6
5
|
import { IHubContentEnrichments } from "./IHubContentEnrichments";
|
|
7
6
|
import { IHubAdditionalResource } from "./IHubAdditionalResource";
|
|
7
|
+
import { IHubItemEntity } from "./IHubItemEntity";
|
|
8
8
|
export declare enum PublisherSource {
|
|
9
9
|
CitationContact = "metadata.resource.citation.contact",
|
|
10
10
|
ResourceContact = "metadata.resource.contact",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IGroup } from "@esri/arcgis-rest-portal";
|
|
2
|
-
import { IGroupMembershipSummary } from "../..";
|
|
3
2
|
import { IEnrichmentErrorInfo, IHubRequestOptions } from "../../types";
|
|
3
|
+
import { IGroupMembershipSummary } from "../types";
|
|
4
4
|
/**
|
|
5
5
|
* Possible additional properties available through enrichments
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IHubInitiative, IWithPermissionBehavior, IWithCatalogBehavior, IWithStoreBehavior, IWithSharingBehavior, IWithCapabilityBehavior } from "../core";
|
|
2
|
-
import { Catalog } from "../search
|
|
2
|
+
import { Catalog } from "../search";
|
|
3
3
|
import { IArcGISContext } from "../ArcGISContext";
|
|
4
4
|
import { HubItemEntity } from "../core/HubItemEntity";
|
|
5
5
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EntityCapabilities, ICapabilityPermission
|
|
1
|
+
import { EntityCapabilities, ICapabilityPermission } from "../../capabilities";
|
|
2
|
+
import { IPermissionPolicy } from "../../permissions";
|
|
2
3
|
/**
|
|
3
4
|
* Default capabilities for a Initiative. If not listed here, the capability will not be available
|
|
4
5
|
* This hash is combined with the capabilities hash stored in the item data. Regardless of what
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
|
-
import { IBatch } from "
|
|
2
|
+
import { IBatch } from "../../types";
|
|
3
3
|
/**
|
|
4
4
|
* Takes a file, file owner, and file AGO item id along with a size limit
|
|
5
5
|
* Then chunks the file up based on that file limit.
|
|
@@ -2,7 +2,7 @@ export * from "./serializeModel";
|
|
|
2
2
|
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
3
3
|
import { IItem } from "@esri/arcgis-rest-portal";
|
|
4
4
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
5
|
-
import { IModel } from "
|
|
5
|
+
import { IModel } from "../types";
|
|
6
6
|
/**
|
|
7
7
|
* Gets the full item/data model for an item id
|
|
8
8
|
* @param {string} id
|
|
@@ -6,4 +6,4 @@ import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
|
6
6
|
* @param options request options
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
|
-
export declare
|
|
9
|
+
export declare function fetchOrg(orgId: string, options?: IRequestOptions): Promise<import("@esri/arcgis-rest-portal").IPortal>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IHubProject, IWithPermissionBehavior, IWithCatalogBehavior, IWithStoreBehavior, IWithSharingBehavior, UiSchemaElementOptions, IWithCapabilityBehavior } from "../core";
|
|
2
|
-
import { Catalog } from "../search
|
|
2
|
+
import { Catalog } from "../search";
|
|
3
3
|
import { IArcGISContext } from "../ArcGISContext";
|
|
4
4
|
import { HubItemEntity } from "../core/HubItemEntity";
|
|
5
5
|
import { EditorConfigType, IEditorConfig } from "../core/behaviors/IWithEditorBehavior";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EntityCapabilities, ICapabilityPermission
|
|
1
|
+
import { EntityCapabilities, ICapabilityPermission } from "../../capabilities";
|
|
2
|
+
import { IPermissionPolicy } from "../../permissions";
|
|
2
3
|
/**
|
|
3
4
|
* Default capabilities for a Project. If not listed here, the capability will not be available
|
|
4
5
|
* This hash is combined with the capabilities hash stored in the item data. Regardless of what
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { IArcGISContext } from "../ArcGISContext";
|
|
2
2
|
import { Collection } from "./Collection";
|
|
3
|
-
import { IContainsOptions, IContainsResponse, IHubSearchOptions, IHubSearchResponse, IHubSearchResult } from "./types";
|
|
4
|
-
import { EntityType, ICatalogScope, IHubCatalog, IQuery } from "./types/IHubCatalog";
|
|
5
|
-
/**
|
|
6
|
-
* Response from a Catalog search operation where the responses for different collections
|
|
7
|
-
* or entities are grouped into a single object.
|
|
8
|
-
*/
|
|
9
|
-
export interface ISearchResponseHash extends Record<string, IHubSearchResponse<IHubSearchResult>> {
|
|
10
|
-
}
|
|
3
|
+
import { EntityType, ISearchResponseHash, IContainsOptions, IContainsResponse, IHubSearchOptions, IHubSearchResponse, IHubSearchResult, ICatalogScope, IHubCatalog, IQuery } from "./types";
|
|
11
4
|
/**
|
|
12
5
|
* Catalog Class
|
|
13
6
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UserSession } from "@esri/arcgis-rest-auth";
|
|
2
|
-
import {
|
|
2
|
+
import { IHubRequestOptions } from "../../types";
|
|
3
|
+
import { EntityType } from "./IHubCatalog";
|
|
3
4
|
import { NamedApis, IApiDefinition } from "./types";
|
|
4
5
|
export declare type Enrichments = "data" | "metadata" | "org" | "service" | "layers";
|
|
5
6
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IHubSearchResponse, IHubSearchResult } from ".";
|
|
2
|
+
/**
|
|
3
|
+
* Response from a Catalog search operation where the responses for different collections
|
|
4
|
+
* or entities are grouped into a single object.
|
|
5
|
+
*/
|
|
6
|
+
export interface ISearchResponseHash extends Record<string, IHubSearchResponse<IHubSearchResult>> {
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IHubSite, IWithPermissionBehavior, IWithCatalogBehavior, IWithStoreBehavior, IWithSharingBehavior } from "../core";
|
|
2
|
-
import { Catalog } from "../search
|
|
2
|
+
import { Catalog } from "../search";
|
|
3
3
|
import { IArcGISContext } from "../ArcGISContext";
|
|
4
4
|
import { HubItemEntity } from "../core/HubItemEntity";
|
|
5
5
|
import { IContainsResponse, IDeepCatalogInfo } from "../search";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityCapabilities, ICapabilityPermission } from "../../
|
|
1
|
+
import { EntityCapabilities, ICapabilityPermission } from "../../capabilities";
|
|
2
2
|
import { IPermissionPolicy } from "../../permissions/types";
|
|
3
3
|
/**
|
|
4
4
|
* Default capabilities for a Site. If not listed here, the capability will not be available
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IHubRequestOptions } from "
|
|
1
|
+
import { IHubRequestOptions } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* Returns site model given various kinds of identifier
|
|
4
4
|
*
|
|
5
5
|
* @param identifier - a site item ID, site hostname, enterprise site slug, or full site URL
|
|
6
6
|
* @param hubRequestOptions
|
|
7
7
|
*/
|
|
8
|
-
export declare function fetchSiteModel(identifier: string, hubRequestOptions: IHubRequestOptions): Promise<import("
|
|
8
|
+
export declare function fetchSiteModel(identifier: string, hubRequestOptions: IHubRequestOptions): Promise<import("../types").IModel>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IHubRequestOptions } from "
|
|
1
|
+
import { IHubRequestOptions } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* Get a Site Model by it's Item Id, and apply schema upgrades
|
|
4
4
|
* @param {String} id Site Item Id
|
|
5
5
|
* @param {IHubRequestOptions} hubRequestOptions
|
|
6
6
|
*/
|
|
7
|
-
export declare function getSiteById(id: string, hubRequestOptions: IHubRequestOptions): Promise<import("
|
|
7
|
+
export declare function getSiteById(id: string, hubRequestOptions: IHubRequestOptions): Promise<import("../types").IModel>;
|