@esri/hub-common 29.0.1 → 29.2.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/content/fetchContent.js +1 -4
- package/dist/esm/content/fetchContent.js.map +1 -1
- package/dist/esm/content/fetchContentPortal.js +39 -8
- package/dist/esm/content/fetchContentPortal.js.map +1 -1
- package/dist/esm/permissions/HubPermissionPolicies.js +8 -0
- package/dist/esm/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/esm/permissions/_internal/constants.js +1 -0
- package/dist/esm/permissions/_internal/constants.js.map +1 -1
- package/dist/node/content/fetchContent.js +1 -4
- package/dist/node/content/fetchContent.js.map +1 -1
- package/dist/node/content/fetchContentPortal.js +39 -8
- package/dist/node/content/fetchContentPortal.js.map +1 -1
- package/dist/node/permissions/HubPermissionPolicies.js +8 -0
- package/dist/node/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/node/permissions/_internal/constants.js +1 -0
- package/dist/node/permissions/_internal/constants.js.map +1 -1
- package/dist/types/content/fetchContent.d.ts +1 -4
- package/dist/types/content/fetchContentPortal.d.ts +2 -5
- package/dist/types/permissions/_internal/constants.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2,10 +2,7 @@ import { checkPermission } from "../permissions/checkPermission";
|
|
|
2
2
|
import { fetchContentHubIndex } from "./fetchContentHubIndex/fetchContentHubIndex";
|
|
3
3
|
import { fetchContentPortal } from "./fetchContentPortal";
|
|
4
4
|
/**
|
|
5
|
-
* Fetch Content by identifier, using
|
|
6
|
-
*
|
|
7
|
-
* Temporary facade while we transition to using the Portal API for content fetching.
|
|
8
|
-
* Depending on the gating permission, use either the Hub Indexer or Portal code path.
|
|
5
|
+
* Fetch Content by identifier, using Portal API
|
|
9
6
|
* @param identifier
|
|
10
7
|
* @param options
|
|
11
8
|
* @returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchContent.js","sourceRoot":"","sources":["../../../src/content/fetchContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D
|
|
1
|
+
{"version":3,"file":"fetchContent.js","sourceRoot":"","sources":["../../../src/content/fetchContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,UAAkB,EAClB,OAA8B,EACR,EAAE;IACxB,IAAI,QAAQ,GAAG,YAAY,CAAC;IAC5B,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE,CAAC;QACrB,MAAM,GAAG,GAAG,eAAe,CAAC,0BAA0B,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACzE,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACf,QAAQ,GAAG,QAAQ,CAAC;QACtB,CAAC;IACH,CAAC;IACD,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC1B,OAAO,kBAAkB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,OAAO,oBAAoB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -5,18 +5,30 @@ import { getContentEnrichments } from "./_fetch";
|
|
|
5
5
|
import { fetchItemEnrichments } from "../items/_enrichments";
|
|
6
6
|
import { composeContent } from "./compose";
|
|
7
7
|
import { maybeConcat } from "../utils/_array";
|
|
8
|
+
import { queryFeatures, } from "@esri/arcgis-rest-feature-service";
|
|
9
|
+
import { failSafe } from "../utils/fail-safe";
|
|
10
|
+
import { getWithDefault } from "../objects/get-with-default";
|
|
8
11
|
/**
|
|
9
|
-
* Fetch Content from ArcGIS Portal by id or slug
|
|
10
|
-
* Temporary function to support migration from Hub Index to portal
|
|
11
|
-
* Once released, this will be renamed fetchContent and the existing fetchContent facade
|
|
12
|
-
* function will be removed.
|
|
12
|
+
* Fetch Content from ArcGIS Portal by id (guid) or slug
|
|
13
13
|
* @param identifier
|
|
14
14
|
* @param options
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
export const fetchContentPortal = async (identifier, options
|
|
17
|
+
export const fetchContentPortal = async (identifier, options // extends IHubRequestOptions
|
|
18
|
+
) => {
|
|
18
19
|
// Resolve content using the same logic as any other entity
|
|
19
20
|
let item;
|
|
21
|
+
let layerId = null;
|
|
22
|
+
// if there's a _ in the identifier, that's a layer id, so we split on that and take the first part as the identifier
|
|
23
|
+
if (identifier.includes("_")) {
|
|
24
|
+
const parts = identifier.split("_");
|
|
25
|
+
identifier = parts[0];
|
|
26
|
+
layerId = parseInt(parts[1], 10);
|
|
27
|
+
}
|
|
28
|
+
// if options does not have a layerId, lets add it to options so it can be used in enrichments and content composition
|
|
29
|
+
if (layerId !== null && options && !options.layerId) {
|
|
30
|
+
options.layerId = layerId;
|
|
31
|
+
}
|
|
20
32
|
// if id is a guid, fetch item by id from portal
|
|
21
33
|
if (isGuid(identifier)) {
|
|
22
34
|
// get item by id
|
|
@@ -26,12 +38,18 @@ export const fetchContentPortal = async (identifier, options) => {
|
|
|
26
38
|
// if it is a slug, fetch item by typeKeyword slug, from portal
|
|
27
39
|
item = await getItemBySlug(identifier, options);
|
|
28
40
|
if (!item) {
|
|
41
|
+
// If the identifier has :: in it, use the post-prefix segment as the slug.
|
|
42
|
+
let slugFromIdentifier = identifier;
|
|
43
|
+
if (slugFromIdentifier.includes("::")) {
|
|
44
|
+
slugFromIdentifier = slugFromIdentifier.split("::")[1];
|
|
45
|
+
}
|
|
46
|
+
// Build a title-friendly version separately from the raw slug.
|
|
47
|
+
const titleFromSlug = slugFromIdentifier.replace(/-/g, " ");
|
|
29
48
|
// try searching for an item by title using the slugs as a fallback
|
|
30
|
-
const
|
|
31
|
-
const q = `title:"${titleFromSlug}"`;
|
|
49
|
+
const q = `title:"${titleFromSlug}" OR title:"${slugFromIdentifier}"`;
|
|
32
50
|
const searchResult = await searchItems({
|
|
33
51
|
q,
|
|
34
|
-
authentication: options
|
|
52
|
+
authentication: options.authentication,
|
|
35
53
|
num: 1,
|
|
36
54
|
});
|
|
37
55
|
if (searchResult.results.length > 0) {
|
|
@@ -51,6 +69,19 @@ export const fetchContentPortal = async (identifier, options) => {
|
|
|
51
69
|
const content = composeContent(item, Object.assign(Object.assign({ requestOptions: options }, enrichments), { layerId: (options && options.layerId) || null,
|
|
52
70
|
// merge error arrays
|
|
53
71
|
errors: maybeConcat([enrichments.errors]), usePortalAPIOnly: true }));
|
|
72
|
+
// Need to verify that content.url will always have the layer id attached
|
|
73
|
+
if (content.layer) {
|
|
74
|
+
// if we have a layerid, we should get the recordCount
|
|
75
|
+
const failSafeQueryFeatures = failSafe(queryFeatures, { count: 0 });
|
|
76
|
+
const opts = {
|
|
77
|
+
url: content.url,
|
|
78
|
+
where: "1=1",
|
|
79
|
+
returnCountOnly: true,
|
|
80
|
+
authentication: options.authentication,
|
|
81
|
+
};
|
|
82
|
+
const resp = (await failSafeQueryFeatures(opts));
|
|
83
|
+
content.recordCount = getWithDefault(resp, "count", 0);
|
|
84
|
+
}
|
|
54
85
|
return content;
|
|
55
86
|
};
|
|
56
87
|
//# sourceMappingURL=fetchContentPortal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchContentPortal.js","sourceRoot":"","sources":["../../../src/content/fetchContentPortal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAA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B,CAAC,CAAC"}
|
|
@@ -90,6 +90,8 @@ const SystemPermissionPolicies = [
|
|
|
90
90
|
// Use &pe=hub:gating:entity:slugs to enable fetching
|
|
91
91
|
// content from portal during development & testing
|
|
92
92
|
permission: "hub:gating:entity:slugs",
|
|
93
|
+
// limited to devext so we can verify in QA and PROD via query params
|
|
94
|
+
// without impacting normal QA/CI runs and PROD users
|
|
93
95
|
environments: ["devext"],
|
|
94
96
|
},
|
|
95
97
|
// AGO Release Permissions
|
|
@@ -300,6 +302,12 @@ const SystemPermissionPolicies = [
|
|
|
300
302
|
availability: ["alpha"],
|
|
301
303
|
licenses: ["hub-basic", "hub-premium"],
|
|
302
304
|
},
|
|
305
|
+
{
|
|
306
|
+
permission: "hub:feature:event:invite",
|
|
307
|
+
environments: ["devext", "qaext"],
|
|
308
|
+
availability: ["alpha"],
|
|
309
|
+
licenses: ["hub-basic", "hub-premium"],
|
|
310
|
+
},
|
|
303
311
|
// NOTE: only use this permission if necessary. Use the licenses check on a permission to check license when able instead of a separate permission.
|
|
304
312
|
// checks if using hub-premium
|
|
305
313
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubPermissionPolicies.js","sourceRoot":"","sources":["../../../src/permissions/HubPermissionPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OA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,UAAU,EAAE,oCAAoC;QAChD,YAAY,EAAE,CAAC,2BAA2B,CAAC;QAC3C,YAAY,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,OAAO,CAAC;KAChD;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAwB;IACzD,GAAG,uBAAuB;IAC1B,GAAG,yBAAyB;IAC5B,GAAG,4BAA4B;IAC/B,GAAG,4BAA4B;IAC/B,GAAG,yBAAyB;IAC5B,GAAG,yBAAyB;IAC5B,GAAG,uBAAuB;IAC1B,GAAG,sBAAsB;IACzB,GAAG,0BAA0B;IAC7B,GAAG,0BAA0B;IAC7B,GAAG,oCAAoC;IACvC,GAAG,wBAAwB;IAC3B,GAAG,uBAAuB;IAC1B,GAAG,sBAAsB;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAAsB;IACxD,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -43,6 +43,7 @@ export const SystemPermissions = [
|
|
|
43
43
|
"hub:feature:pagescatalog",
|
|
44
44
|
"hub:feature:discussions:subscription",
|
|
45
45
|
"hub:feature:event:thumbnail:upload",
|
|
46
|
+
"hub:feature:event:invite",
|
|
46
47
|
"hub:license:hub-premium",
|
|
47
48
|
"hub:license:hub-basic",
|
|
48
49
|
"hub:license:enterprise-sites",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/permissions/_internal/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MA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ClB,GAAG,kBAAkB;IACrB,GAAG,qBAAqB;IACxB,GAAG,kBAAkB;IACrB,GAAG,gBAAgB;IACnB,GAAG,eAAe;IAClB,GAAG,mBAAmB;IACtB,GAAG,qBAAqB;IACxB,GAAG,6BAA6B;IAChC,GAAG,mBAAmB;IACtB,GAAG,iBAAiB;IACpB,GAAG,gBAAgB;IACnB,GAAG,eAAe;IAClB,GAAG,kBAAkB;CACb,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/permissions/_internal/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oEAAoE,CAAC;AACnH,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAExE;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,+BAA+B;IAC/B,uCAAuC;IACvC,yBAAyB;IACzB,0BAA0B;IAC1B,2BAA2B;IAC3B,qBAAqB;IACrB,uBAAuB;IACvB,+BAA+B;IAC/B,8BAA8B;IAC9B,iBAAiB;IACjB,4BAA4B;IAC5B,2BAA2B;IAC3B,+BAA+B;IAC/B,2BAA2B;IAC3B,qBAAqB;IACrB,sBAAsB,EAAE,kDAAkD;IAC1E,sCAAsC;IACtC,qCAAqC;IACrC,8BAA8B;IAC9B,0BAA0B;IAC1B,sCAAsC;IACtC,oCAAoC;IACpC,0BAA0B;IAC1B,yBAAyB;IACzB,uBAAuB;IACvB,8BAA8B;IAC9B,wBAAwB;IACxB,uBAAuB;IACvB,0BAA0B;IAC1B,uBAAuB;IACvB,wBAAwB;IACxB,4BAA4B;IAC5B,4BAA4B;IAC5B,gBAAgB;IAChB,2BAA2B;IAC3B,oCAAoC;CAC5B,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,eAAe;IAClB,GAAG,kBAAkB;IACrB,GAAG,qBAAqB;IACxB,GAAG,kBAAkB;IACrB,GAAG,gBAAgB;IACnB,GAAG,eAAe;IAClB,GAAG,mBAAmB;IACtB,GAAG,qBAAqB;IACxB,GAAG,6BAA6B;IAChC,GAAG,mBAAmB;IACtB,GAAG,iBAAiB;IACpB,GAAG,gBAAgB;IACnB,GAAG,eAAe;IAClB,GAAG,kBAAkB;CACb,CAAC"}
|
|
@@ -5,10 +5,7 @@ const checkPermission_1 = require("../permissions/checkPermission");
|
|
|
5
5
|
const fetchContentHubIndex_1 = require("./fetchContentHubIndex/fetchContentHubIndex");
|
|
6
6
|
const fetchContentPortal_1 = require("./fetchContentPortal");
|
|
7
7
|
/**
|
|
8
|
-
* Fetch Content by identifier, using
|
|
9
|
-
*
|
|
10
|
-
* Temporary facade while we transition to using the Portal API for content fetching.
|
|
11
|
-
* Depending on the gating permission, use either the Hub Indexer or Portal code path.
|
|
8
|
+
* Fetch Content by identifier, using Portal API
|
|
12
9
|
* @param identifier
|
|
13
10
|
* @param options
|
|
14
11
|
* @returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchContent.js","sourceRoot":"","sources":["../../../src/content/fetchContent.ts"],"names":[],"mappings":";;;AACA,oEAAiE;AACjE,sFAAmF;AACnF,6DAA0D;AAG1D
|
|
1
|
+
{"version":3,"file":"fetchContent.js","sourceRoot":"","sources":["../../../src/content/fetchContent.ts"],"names":[],"mappings":";;;AACA,oEAAiE;AACjE,sFAAmF;AACnF,6DAA0D;AAG1D;;;;;GAKG;AACI,MAAM,YAAY,GAAG,KAAK,EAC/B,UAAkB,EAClB,OAA8B,EACR,EAAE;IACxB,IAAI,QAAQ,GAAG,YAAY,CAAC;IAC5B,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE,CAAC;QACrB,MAAM,GAAG,GAAG,IAAA,iCAAe,EAAC,0BAA0B,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACzE,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACf,QAAQ,GAAG,QAAQ,CAAC;QACtB,CAAC;IACH,CAAC;IACD,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC1B,OAAO,IAAA,uCAAkB,EAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,OAAO,IAAA,2CAAoB,EAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;AACH,CAAC,CAAC;AAhBW,QAAA,YAAY,gBAgBvB"}
|
|
@@ -8,18 +8,30 @@ const _fetch_1 = require("./_fetch");
|
|
|
8
8
|
const _enrichments_1 = require("../items/_enrichments");
|
|
9
9
|
const compose_1 = require("./compose");
|
|
10
10
|
const _array_1 = require("../utils/_array");
|
|
11
|
+
const arcgis_rest_feature_service_1 = require("@esri/arcgis-rest-feature-service");
|
|
12
|
+
const fail_safe_1 = require("../utils/fail-safe");
|
|
13
|
+
const get_with_default_1 = require("../objects/get-with-default");
|
|
11
14
|
/**
|
|
12
|
-
* Fetch Content from ArcGIS Portal by id or slug
|
|
13
|
-
* Temporary function to support migration from Hub Index to portal
|
|
14
|
-
* Once released, this will be renamed fetchContent and the existing fetchContent facade
|
|
15
|
-
* function will be removed.
|
|
15
|
+
* Fetch Content from ArcGIS Portal by id (guid) or slug
|
|
16
16
|
* @param identifier
|
|
17
17
|
* @param options
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
|
-
const fetchContentPortal = async (identifier, options
|
|
20
|
+
const fetchContentPortal = async (identifier, options // extends IHubRequestOptions
|
|
21
|
+
) => {
|
|
21
22
|
// Resolve content using the same logic as any other entity
|
|
22
23
|
let item;
|
|
24
|
+
let layerId = null;
|
|
25
|
+
// if there's a _ in the identifier, that's a layer id, so we split on that and take the first part as the identifier
|
|
26
|
+
if (identifier.includes("_")) {
|
|
27
|
+
const parts = identifier.split("_");
|
|
28
|
+
identifier = parts[0];
|
|
29
|
+
layerId = parseInt(parts[1], 10);
|
|
30
|
+
}
|
|
31
|
+
// if options does not have a layerId, lets add it to options so it can be used in enrichments and content composition
|
|
32
|
+
if (layerId !== null && options && !options.layerId) {
|
|
33
|
+
options.layerId = layerId;
|
|
34
|
+
}
|
|
23
35
|
// if id is a guid, fetch item by id from portal
|
|
24
36
|
if ((0, is_guid_1.isGuid)(identifier)) {
|
|
25
37
|
// get item by id
|
|
@@ -29,12 +41,18 @@ const fetchContentPortal = async (identifier, options) => {
|
|
|
29
41
|
// if it is a slug, fetch item by typeKeyword slug, from portal
|
|
30
42
|
item = await (0, slugs_1.getItemBySlug)(identifier, options);
|
|
31
43
|
if (!item) {
|
|
44
|
+
// If the identifier has :: in it, use the post-prefix segment as the slug.
|
|
45
|
+
let slugFromIdentifier = identifier;
|
|
46
|
+
if (slugFromIdentifier.includes("::")) {
|
|
47
|
+
slugFromIdentifier = slugFromIdentifier.split("::")[1];
|
|
48
|
+
}
|
|
49
|
+
// Build a title-friendly version separately from the raw slug.
|
|
50
|
+
const titleFromSlug = slugFromIdentifier.replace(/-/g, " ");
|
|
32
51
|
// try searching for an item by title using the slugs as a fallback
|
|
33
|
-
const
|
|
34
|
-
const q = `title:"${titleFromSlug}"`;
|
|
52
|
+
const q = `title:"${titleFromSlug}" OR title:"${slugFromIdentifier}"`;
|
|
35
53
|
const searchResult = await (0, arcgis_rest_portal_1.searchItems)({
|
|
36
54
|
q,
|
|
37
|
-
authentication: options
|
|
55
|
+
authentication: options.authentication,
|
|
38
56
|
num: 1,
|
|
39
57
|
});
|
|
40
58
|
if (searchResult.results.length > 0) {
|
|
@@ -54,6 +72,19 @@ const fetchContentPortal = async (identifier, options) => {
|
|
|
54
72
|
const content = (0, compose_1.composeContent)(item, Object.assign(Object.assign({ requestOptions: options }, enrichments), { layerId: (options && options.layerId) || null,
|
|
55
73
|
// merge error arrays
|
|
56
74
|
errors: (0, _array_1.maybeConcat)([enrichments.errors]), usePortalAPIOnly: true }));
|
|
75
|
+
// Need to verify that content.url will always have the layer id attached
|
|
76
|
+
if (content.layer) {
|
|
77
|
+
// if we have a layerid, we should get the recordCount
|
|
78
|
+
const failSafeQueryFeatures = (0, fail_safe_1.failSafe)(arcgis_rest_feature_service_1.queryFeatures, { count: 0 });
|
|
79
|
+
const opts = {
|
|
80
|
+
url: content.url,
|
|
81
|
+
where: "1=1",
|
|
82
|
+
returnCountOnly: true,
|
|
83
|
+
authentication: options.authentication,
|
|
84
|
+
};
|
|
85
|
+
const resp = (await failSafeQueryFeatures(opts));
|
|
86
|
+
content.recordCount = (0, get_with_default_1.getWithDefault)(resp, "count", 0);
|
|
87
|
+
}
|
|
57
88
|
return content;
|
|
58
89
|
};
|
|
59
90
|
exports.fetchContentPortal = fetchContentPortal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchContentPortal.js","sourceRoot":"","sources":["../../../src/content/fetchContentPortal.ts"],"names":[],"mappings":";;;AAAA,iEAAuE;AAEvE,8CAA0C;AAE1C,0CAA+C;AAC/C,qCAAiD;AACjD,wDAA6D;AAC7D,uCAA2C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AAI,IAAI;QAC7C,qBAAqB;QACrB,MAAM,EAAE,IAAA,oBAAW,EAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAA2B,EACnE,gBAAgB,EAAE,IAAI,IACtB,CAAC;IAEH,yEAAyE;IACzE,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAClB,sDAAsD;QACtD,MAAM,qBAAqB,GAAG,IAAA,oBAAQ,EAAC,2CAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QACpE,MAAM,IAAI,GAA0B;YAClC,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,KAAK;YACZ,eAAe,EAAE,IAAI;YACrB,cAAc,EAAE,OAAO,CAAC,cAAc;SACvC,CAAC;QAEF,MAAM,IAAI,GAAG,CAAC,MAAM,qBAAqB,CAAC,IAAI,CAAC,CAA2B,CAAC;QAC3E,OAAO,CAAC,WAAW,GAAG,IAAA,iCAAc,EAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAW,CAAC;IACnE,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAxFW,QAAA,kBAAkB,sBAwF7B"}
|
|
@@ -94,6 +94,8 @@ const SystemPermissionPolicies = [
|
|
|
94
94
|
// Use &pe=hub:gating:entity:slugs to enable fetching
|
|
95
95
|
// content from portal during development & testing
|
|
96
96
|
permission: "hub:gating:entity:slugs",
|
|
97
|
+
// limited to devext so we can verify in QA and PROD via query params
|
|
98
|
+
// without impacting normal QA/CI runs and PROD users
|
|
97
99
|
environments: ["devext"],
|
|
98
100
|
},
|
|
99
101
|
// AGO Release Permissions
|
|
@@ -304,6 +306,12 @@ const SystemPermissionPolicies = [
|
|
|
304
306
|
availability: ["alpha"],
|
|
305
307
|
licenses: ["hub-basic", "hub-premium"],
|
|
306
308
|
},
|
|
309
|
+
{
|
|
310
|
+
permission: "hub:feature:event:invite",
|
|
311
|
+
environments: ["devext", "qaext"],
|
|
312
|
+
availability: ["alpha"],
|
|
313
|
+
licenses: ["hub-basic", "hub-premium"],
|
|
314
|
+
},
|
|
307
315
|
// NOTE: only use this permission if necessary. Use the licenses check on a permission to check license when able instead of a separate permission.
|
|
308
316
|
// checks if using hub-premium
|
|
309
317
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubPermissionPolicies.js","sourceRoot":"","sources":["../../../src/permissions/HubPermissionPolicies.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"HubPermissionPolicies.js","sourceRoot":"","sources":["../../../src/permissions/HubPermissionPolicies.ts"],"names":[],"mappings":";;;AAsYA,kDAEC;AAxYD,8FAAgG;AAChG,qFAAuF;AACvF,4EAA+E;AAC/E,8FAAgG;AAChG,qFAAuF;AACvF,oFAAsF;AACtF,+EAAiF;AACjF,4EAA8E;AAC9E,6EAA0E;AAC1E,uHAAyH;AACzH,wFAA0F;AAC1F,+EAAiF;AACjF,4EAA8E;AAI9E,2CAA2C;AAC3C,8DAA8D;AAC9D,MAAM;AACN,gDAAgD;AAChD,2BAA2B;AAC3B,iCAAiC;AACjC,8CAA8C;AAC9C,OAAO;AACP,MAAM;AACN,uDAAuD;AACvD,2BAA2B;AAC3B,8CAA8C;AAC9C,oBAAoB;AACpB,UAAU;AACV,iDAAiD;AACjD,gCAAgC;AAChC,kCAAkC;AAClC,WAAW;AACX,UAAU;AACV,2CAA2C;AAC3C,uCAAuC;AACvC,oCAAoC;AACpC,WAAW;AACX,SAAS;AACT,OAAO;AACP,MAAM;AACN,gDAAgD;AAChD,iCAAiC;AACjC,2BAA2B;AAC3B,8CAA8C;AAC9C,oBAAoB;AACpB,UAAU;AACV,2CAA2C;AAC3C,gCAAgC;AAChC,kCAAkC;AAClC,WAAW;AACX,SAAS;AACT,OAAO;AACP,MAAM;AACN,6CAA6C;AAC7C,iCAAiC;AACjC,2BAA2B;AAC3B,8CAA8C;AAC9C,oBAAoB;AACpB,UAAU;AACV,2CAA2C;AAC3C,gCAAgC;AAChC,k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IACD,4JAA4J;IAC5J,qBAAqB;IACrB;QACE,UAAU,EAAE,wBAAwB;QACpC,YAAY,EAAE,CAAC,OAAO,CAAC;KACxB;IACD,4JAA4J;IAC5J,oBAAoB;IACpB;QACE,UAAU,EAAE,uBAAuB;QACnC,YAAY,EAAE,CAAC,MAAM,CAAC;KACvB;IACD,4JAA4J;IAC5J,uBAAuB;IACvB;QACE,UAAU,EAAE,0BAA0B;QACtC,YAAY,EAAE,CAAC,SAAS,CAAC;KAC1B;IACD,oGAAoG;IACpG;QACE,UAAU,EAAE,2BAA2B;QACvC,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,2HAA2H;IAC3H,yEAAyE;IACzE;QACE,UAAU,EAAE,oCAAoC;QAChD,YAAY,EAAE,CAAC,2BAA2B,CAAC;QAC3C,YAAY,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,OAAO,CAAC;KAChD;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,sBAAsB,GAAwB;IACzD,GAAG,2CAAuB;IAC1B,GAAG,gDAAyB;IAC5B,GAAG,sDAA4B;IAC/B,GAAG,sDAA4B;IAC/B,GAAG,gDAAyB;IAC5B,GAAG,gDAAyB;IAC5B,GAAG,4CAAuB;IAC1B,GAAG,0CAAsB;IACzB,GAAG,kDAA0B;IAC7B,GAAG,uDAA0B;IAC7B,GAAG,sEAAoC;IACvC,GAAG,wBAAwB;IAC3B,GAAG,4CAAuB;IAC1B,GAAG,0CAAsB;CAC1B,CAAC;AAEF;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,UAAsB;IACxD,OAAO,8BAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -46,6 +46,7 @@ exports.SystemPermissions = [
|
|
|
46
46
|
"hub:feature:pagescatalog",
|
|
47
47
|
"hub:feature:discussions:subscription",
|
|
48
48
|
"hub:feature:event:thumbnail:upload",
|
|
49
|
+
"hub:feature:event:invite",
|
|
49
50
|
"hub:license:hub-premium",
|
|
50
51
|
"hub:license:hub-basic",
|
|
51
52
|
"hub:license:enterprise-sites",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/permissions/_internal/constants.ts"],"names":[],"mappings":";;;AAAA,oFAAiF;AACjF,2EAAwE;AACxE,6FAA0F;AAC1F,+FAA2F;AAC3F,oFAAiF;AACjF,mFAAgF;AAChF,8EAA2E;AAC3E,2EAAwE;AACxE,gEAA6D;AAC7D,sHAAmH;AACnH,uFAAoF;AACpF,8EAA2E;AAC3E,2EAAwE;AAExE;;;;GAIG;AACU,QAAA,iBAAiB,GAAG;IAC/B,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,+BAA+B;IAC/B,uCAAuC;IACvC,yBAAyB;IACzB,0BAA0B;IAC1B,2BAA2B;IAC3B,qBAAqB;IACrB,uBAAuB;IACvB,+BAA+B;IAC/B,8BAA8B;IAC9B,iBAAiB;IACjB,4BAA4B;IAC5B,2BAA2B;IAC3B,+BAA+B;IAC/B,2BAA2B;IAC3B,qBAAqB;IACrB,sBAAsB,EAAE,kDAAkD;IAC1E,sCAAsC;IACtC,qCAAqC;IACrC,8BAA8B;IAC9B,0BAA0B;IAC1B,sCAAsC;IACtC,oCAAoC;IACpC,yBAAyB;IACzB,uBAAuB;IACvB,8BAA8B;IAC9B,wBAAwB;IACxB,uBAAuB;IACvB,0BAA0B;IAC1B,uBAAuB;IACvB,wBAAwB;IACxB,4BAA4B;IAC5B,4BAA4B;IAC5B,gBAAgB;IAChB,2BAA2B;IAC3B,oCAAoC;CAC5B,CAAC;AAEX;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,GAAG,iCAAe;IAClB,GAAG,uCAAkB;IACrB,GAAG,6CAAqB;IACxB,GAAG,uCAAkB;IACrB,GAAG,mCAAgB;IACnB,GAAG,iCAAe;IAClB,GAAG,yCAAmB;IACtB,GAAG,8CAAqB;IACxB,GAAG,6DAA6B;IAChC,GAAG,yCAAmB;IACtB,GAAG,yBAAiB;IACpB,GAAG,mCAAgB;IACnB,GAAG,iCAAe;IAClB,GAAG,uCAAkB;CACb,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/permissions/_internal/constants.ts"],"names":[],"mappings":";;;AAAA,oFAAiF;AACjF,2EAAwE;AACxE,6FAA0F;AAC1F,+FAA2F;AAC3F,oFAAiF;AACjF,mFAAgF;AAChF,8EAA2E;AAC3E,2EAAwE;AACxE,gEAA6D;AAC7D,sHAAmH;AACnH,uFAAoF;AACpF,8EAA2E;AAC3E,2EAAwE;AAExE;;;;GAIG;AACU,QAAA,iBAAiB,GAAG;IAC/B,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,+BAA+B;IAC/B,uCAAuC;IACvC,yBAAyB;IACzB,0BAA0B;IAC1B,2BAA2B;IAC3B,qBAAqB;IACrB,uBAAuB;IACvB,+BAA+B;IAC/B,8BAA8B;IAC9B,iBAAiB;IACjB,4BAA4B;IAC5B,2BAA2B;IAC3B,+BAA+B;IAC/B,2BAA2B;IAC3B,qBAAqB;IACrB,sBAAsB,EAAE,kDAAkD;IAC1E,sCAAsC;IACtC,qCAAqC;IACrC,8BAA8B;IAC9B,0BAA0B;IAC1B,sCAAsC;IACtC,oCAAoC;IACpC,0BAA0B;IAC1B,yBAAyB;IACzB,uBAAuB;IACvB,8BAA8B;IAC9B,wBAAwB;IACxB,uBAAuB;IACvB,0BAA0B;IAC1B,uBAAuB;IACvB,wBAAwB;IACxB,4BAA4B;IAC5B,4BAA4B;IAC5B,gBAAgB;IAChB,2BAA2B;IAC3B,oCAAoC;CAC5B,CAAC;AAEX;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,GAAG,iCAAe;IAClB,GAAG,uCAAkB;IACrB,GAAG,6CAAqB;IACxB,GAAG,uCAAkB;IACrB,GAAG,mCAAgB;IACnB,GAAG,iCAAe;IAClB,GAAG,yCAAmB;IACtB,GAAG,8CAAqB;IACxB,GAAG,6DAA6B;IAChC,GAAG,yCAAmB;IACtB,GAAG,yBAAiB;IACpB,GAAG,mCAAgB;IACnB,GAAG,iCAAe;IAClB,GAAG,uCAAkB;CACb,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { IHubContent } from "../core/types/IHubContent";
|
|
2
2
|
import { IFetchContentOptions } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
* Fetch Content by identifier, using
|
|
5
|
-
*
|
|
6
|
-
* Temporary facade while we transition to using the Portal API for content fetching.
|
|
7
|
-
* Depending on the gating permission, use either the Hub Indexer or Portal code path.
|
|
4
|
+
* Fetch Content by identifier, using Portal API
|
|
8
5
|
* @param identifier
|
|
9
6
|
* @param options
|
|
10
7
|
* @returns
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { IHubContent } from "../core/types/IHubContent";
|
|
2
2
|
import { IFetchContentOptions } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
* Fetch Content from ArcGIS Portal by id or slug
|
|
5
|
-
* Temporary function to support migration from Hub Index to portal
|
|
6
|
-
* Once released, this will be renamed fetchContent and the existing fetchContent facade
|
|
7
|
-
* function will be removed.
|
|
4
|
+
* Fetch Content from ArcGIS Portal by id (guid) or slug
|
|
8
5
|
* @param identifier
|
|
9
6
|
* @param options
|
|
10
7
|
* @returns
|
|
11
8
|
*/
|
|
12
|
-
export declare const fetchContentPortal: (identifier: string, options
|
|
9
|
+
export declare const fetchContentPortal: (identifier: string, options: IFetchContentOptions) => Promise<IHubContent>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* It's critical that the arrays defined in the modules use `as const`
|
|
4
4
|
* otherwise Permission devolves into just a string type
|
|
5
5
|
*/
|
|
6
|
-
export declare const SystemPermissions: readonly ["hub:release:2025R3", "hub:release:2026R1", "hub:release:2026R2", "hub:release:2026R3", "hub:gating:workspace:released", "hub:gating:configurableViews:released", "hub:gating:entity:slugs", "hub:feature:ai-assistant", "hub:platform:ai-assistant", "hub:feature:privacy", "hub:feature:workspace", "hub:feature:configurableViews", "hub:feature:user:preferences", "hub:card:follow", "hub:feature:workspace:user", "hub:feature:workspace:org", "hub:feature:keyboardshortcuts", "hub:feature:newentityview", "hub:feature:history", "hub:feature:catalogs", "hub:feature:catalogs:edit:appearance", "hub:feature:gallery-card:enterprise", "hub:feature:inline-workspace", "hub:feature:pagescatalog", "hub:feature:discussions:subscription", "hub:feature:event:thumbnail:upload", "hub:license:hub-premium", "hub:license:hub-basic", "hub:license:enterprise-sites", "hub:availability:alpha", "hub:availability:beta", "hub:availability:general", "hub:environment:qaext", "hub:environment:devext", "hub:environment:production", "hub:environment:enterprise", "hub:card:embed", "hub:feature:search:portal", "hub:feature:search:portal:crossOrg"];
|
|
6
|
+
export declare const SystemPermissions: readonly ["hub:release:2025R3", "hub:release:2026R1", "hub:release:2026R2", "hub:release:2026R3", "hub:gating:workspace:released", "hub:gating:configurableViews:released", "hub:gating:entity:slugs", "hub:feature:ai-assistant", "hub:platform:ai-assistant", "hub:feature:privacy", "hub:feature:workspace", "hub:feature:configurableViews", "hub:feature:user:preferences", "hub:card:follow", "hub:feature:workspace:user", "hub:feature:workspace:org", "hub:feature:keyboardshortcuts", "hub:feature:newentityview", "hub:feature:history", "hub:feature:catalogs", "hub:feature:catalogs:edit:appearance", "hub:feature:gallery-card:enterprise", "hub:feature:inline-workspace", "hub:feature:pagescatalog", "hub:feature:discussions:subscription", "hub:feature:event:thumbnail:upload", "hub:feature:event:invite", "hub:license:hub-premium", "hub:license:hub-basic", "hub:license:enterprise-sites", "hub:availability:alpha", "hub:availability:beta", "hub:availability:general", "hub:environment:qaext", "hub:environment:devext", "hub:environment:production", "hub:environment:enterprise", "hub:card:embed", "hub:feature:search:portal", "hub:feature:search:portal:crossOrg"];
|
|
7
7
|
/**
|
|
8
8
|
* An array of all valid/supported permissions
|
|
9
9
|
*/
|
|
10
|
-
export declare const ValidPermissions: readonly ["hub:site", "hub:site:create", "hub:site:delete", "hub:site:edit", "hub:site:view", "hub:site:owner", "hub:site:canChangeAccess", "hub:site:events", "hub:site:content", "hub:site:discussions", "hub:site:feature:follow", "hub:site:feature:discussions", "hub:site:workspace", "hub:site:workspace:overview", "hub:site:workspace:dashboard", "hub:site:workspace:details", "hub:site:workspace:settings", "hub:site:workspace:collaborators", "hub:site:workspace:catalog", "hub:site:workspace:catalog:content", "hub:site:workspace:catalog:events", "hub:site:workspace:catalog:upgrade", "hub:site:workspace:metrics", "hub:site:workspace:followers", "hub:site:workspace:followers:member", "hub:site:workspace:followers:manager", "hub:site:workspace:followers:create", "hub:site:workspace:pages", "hub:site:workspace:events", "hub:site:workspace:projects", "hub:site:workspace:initiatives", "hub:site:manage", "hub:site:workspace:feeds", "hub:site:workspace:assistant", "hub:site:workspace:settings:discussions", "hub:site:assistant:access", "hub:project", "hub:project:create", "hub:project:delete", "hub:project:edit", "hub:project:view", "hub:project:owner", "hub:project:canChangeAccess", "hub:project:events", "hub:project:content", "hub:project:discussions", "hub:project:associations", "hub:project:workspace", "hub:project:workspace:overview", "hub:project:workspace:dashboard", "hub:project:workspace:details", "hub:project:workspace:initiatives", "hub:project:workspace:settings", "hub:project:workspace:collaborators", "hub:project:workspace:events", "hub:project:workspace:metrics", "hub:project:workspace:catalog", "hub:project:workspace:catalog:content", "hub:project:workspace:catalog:events", "hub:project:manage", "hub:project:workspace:edit:cardProps", "hub:initiative", "hub:initiative:create", "hub:initiative:delete", "hub:initiative:edit", "hub:initiative:view", "hub:initiative:owner", "hub:initiative:canChangeAccess", "hub:initiative:events", "hub:initiative:content", "hub:initiative:discussions", "hub:initiative:workspace", "hub:initiative:workspace:overview", "hub:initiative:workspace:dashboard", "hub:initiative:workspace:details", "hub:initiative:workspace:metrics", "hub:initiative:workspace:projects", "hub:initiative:workspace:projects:member", "hub:initiative:workspace:projects:manager", "hub:initiative:workspace:settings", "hub:initiative:workspace:collaborators", "hub:initiative:workspace:metrics", "hub:initiative:workspace:catalogs", "hub:initiative:workspace:catalog", "hub:initiative:workspace:catalog:content", "hub:initiative:workspace:catalog:events", "hub:initiative:workspace:associationGroup:create", "hub:initiative:manage", "hub:content", "hub:content:create", "hub:content:delete", "hub:content:edit", "hub:content:view", "hub:content:view:related", "hub:content:view:connected", "hub:content:canChangeAccess", "hub:content:workspace", "hub:content:workspace:overview", "hub:content:workspace:dashboard", "hub:content:workspace:details", "hub:content:workspace:settings", "hub:content:workspace:settings:schedule", "hub:content:workspace:settings:discussions", "hub:content:workspace:collaborators", "hub:content:manage", "hub:content:canRecordDownloadErrors", "hub:content:downloads:displayErrors", "hub:content:document:create", "hub:content:fetch:portal", "hub:group", "hub:group:messaging", "hub:group:create", "hub:group:create:view", "hub:group:create:edit", "hub:group:delete", "hub:group:edit", "hub:group:view", "hub:group:view:messaging", "hub:group:owner", "hub:group:canChangeAccess", "hub:group:canAssignMembers", "hub:group:workspace", "hub:group:workspace:overview", "hub:group:workspace:dashboard", "hub:group:workspace:details", "hub:group:workspace:settings", "hub:group:settings:discussions", "hub:group:workspace:collaborators", "hub:group:workspace:content", "hub:group:workspace:members", "hub:group:workspace:members:messaging", "hub:group:workspace:events", "hub:group:shareContent", "hub:group:manage", "hub:group:opendata", "hub:page", "hub:page:create", "hub:page:delete", "hub:page:edit", "hub:page:view", "hub:page:canChangeAccess", "hub:page:workspace", "hub:page:workspace:overview", "hub:page:workspace:dashboard", "hub:page:workspace:details", "hub:page:workspace:settings", "hub:page:workspace:collaborators", "hub:page:manage", "platform:features:user:edit", "platform:features:user:fullEdit", "platform:features:user:manageVersions", "platform:marketplace:admin:manage", "platform:marketplace:admin:purchase", "platform:marketplace:admin:startTrial", "platform:opendata:user:designateGroup", "platform:opendata:user:openDataAdmin", "platform:portal:admin:assignToGroups", "platform:portal:admin:categorizeItems", "platform:portal:admin:changeUserRoles", "platform:portal:admin:createGPWebhook", "platform:portal:admin:createUpdateCapableGroup", "platform:portal:admin:createLeavingDisallowedGroup", "platform:portal:admin:deleteGroups", "platform:portal:admin:deleteItems", "platform:portal:admin:deleteUsers", "platform:portal:admin:disableUsers", "platform:portal:admin:inviteUsers", "platform:portal:admin:manageCollaborations", "platform:portal:admin:manageCredits", "platform:portal:admin:manageEnterpriseGroups", "platform:portal:admin:manageLicenses", "platform:portal:admin:manageRoles", "platform:portal:admin:manageSecurity", "platform:portal:admin:manageServers", "platform:portal:admin:manageUtilityServices", "platform:portal:admin:manageWebhooks", "platform:portal:admin:manageWebsite", "platform:portal:admin:reassignGroups", "platform:portal:admin:reassignItems", "platform:portal:admin:reassignUsers", "platform:portal:admin:shareToGroup", "platform:portal:admin:shareToOrg", "platform:portal:admin:shareToPublic", "platform:portal:admin:updateGroups", "platform:portal:admin:updateItemCategorySchema", "platform:portal:admin:updateItems", "platform:portal:admin:updateMemberCategorySchema", "platform:portal:admin:updateUsers", "platform:portal:admin:viewGroups", "platform:portal:admin:viewItems", "platform:portal:admin:viewUsers", "platform:portal:publisher:bulkPublishFromDataStores", "platform:portal:publisher:createDataPipelines", "platform:portal:publisher:createFeatureWebhook", "platform:portal:publisher:publishBigDataAnalytics", "platform:portal:publisher:publishDynamicImagery", "platform:portal:publisher:publishFeatures", "platform:portal:publisher:publishFeeds", "platform:portal:publisher:publishKnowledgeGraph", "platform:portal:publisher:publishRealTimeAnalytics", "platform:portal:publisher:publishScenes", "platform:portal:publisher:publishServerGPServices", "platform:portal:publisher:publishServerServices", "platform:portal:publisher:publishTiledImagery", "platform:portal:publisher:publishTiles", "platform:portal:publisher:registerDataStores", "platform:portal:user:addExternalMembersToGroup", "platform:portal:user:categorizeItems", "platform:portal:user:createGroup", "platform:portal:user:createItem", "platform:portal:user:invitePartneredCollaborationMembers", "platform:portal:user:joinGroup", "platform:portal:user:joinNonOrgGroup", "platform:portal:user:reassignItems", "platform:portal:user:receiveItems", "platform:portal:user:runWebTool", "platform:portal:user:shareGroupToOrg", "platform:portal:user:shareGroupToPublic", "platform:portal:user:shareToGroup", "platform:portal:user:shareToOrg", "platform:portal:user:shareToPublic", "platform:portal:user:viewHostedFeatureServices", "platform:portal:user:viewHostedTileServices", "platform:portal:user:viewOrgGroups", "platform:portal:user:viewOrgItems", "platform:portal:user:viewOrgUsers", "platform:portal:user:viewTracks", "platform:portal:user:useAIAssistants", "platform:premium:publisher:createAdvancedNotebooks", "platform:premium:publisher:createNotebooks", "platform:premium:publisher:geoanalytics", "platform:premium:publisher:rasteranalysis", "platform:premium:publisher:scheduleNotebooks", "platform:premium:user:demographics", "platform:premium:user:elevation", "platform:premium:user:featurereport", "platform:premium:user:geocode:stored", "platform:premium:user:geocode:temporary", "platform:premium:user:geocode", "platform:premium:user:geoenrichment", "platform:premium:user:networkanalysis:closestfacility", "platform:premium:user:networkanalysis:locationallocation", "platform:premium:user:networkanalysis:optimizedrouting", "platform:premium:user:networkanalysis:origindestinationcostmatrix", "platform:premium:user:networkanalysis:routing", "platform:premium:user:networkanalysis:servicearea", "platform:premium:user:networkanalysis:vehiclerouting", "platform:premium:user:networkanalysis", "platform:premium:user:places", "platform:premium:user:spatialanalysis", "hub:discussion", "hub:discussion:create", "hub:discussion:delete", "hub:discussion:edit", "hub:discussion:view", "hub:discussion:owner", "hub:discussion:canChangeAccess", "hub:discussion:workspace:overview", "hub:discussion:workspace:dashboard", "hub:discussion:workspace:details", "hub:discussion:workspace:settings", "hub:discussion:workspace:collaborators", "hub:discussion:workspace:metrics", "hub:discussion:workspace:settings:discussions", "hub:discussion:manage", "temp:hub:discussion:create", "hub:discussion:workspace:catalog", "hub:discussion:workspace:catalog:content", "hub:discussion:workspace:catalog:events", "hub:initiativeTemplate", "hub:initiativeTemplate:create", "hub:initiativeTemplate:delete", "hub:initiativeTemplate:edit", "hub:initiativeTemplate:view", "hub:initiativeTemplate:view:related", "hub:initiativeTemplate:canChangeAccess", "hub:initiativeTemplate:workspace", "hub:initiativeTemplate:workspace:dashboard", "hub:initiativeTemplate:workspace:details", "hub:initiativeTemplate:workspace:collaborators", "hub:initiativeTemplate:workspace:settings", "hub:initiativeTemplate:manage", "hub:template", "hub:template:create", "hub:template:delete", "hub:template:edit", "hub:template:manage", "hub:template:view", "hub:template:view:related", "hub:template:canChangeAccess", "hub:template:workspace", "hub:template:workspace:details", "hub:template:workspace:dashboard", "hub:template:workspace:collaborators", "hub:template:workspace:settings", "hub:release:2025R3", "hub:release:2026R1", "hub:release:2026R2", "hub:release:2026R3", "hub:gating:workspace:released", "hub:gating:configurableViews:released", "hub:gating:entity:slugs", "hub:feature:ai-assistant", "hub:platform:ai-assistant", "hub:feature:privacy", "hub:feature:workspace", "hub:feature:configurableViews", "hub:feature:user:preferences", "hub:card:follow", "hub:feature:workspace:user", "hub:feature:workspace:org", "hub:feature:keyboardshortcuts", "hub:feature:newentityview", "hub:feature:history", "hub:feature:catalogs", "hub:feature:catalogs:edit:appearance", "hub:feature:gallery-card:enterprise", "hub:feature:inline-workspace", "hub:feature:pagescatalog", "hub:feature:discussions:subscription", "hub:feature:event:thumbnail:upload", "hub:license:hub-premium", "hub:license:hub-basic", "hub:license:enterprise-sites", "hub:availability:alpha", "hub:availability:beta", "hub:availability:general", "hub:environment:qaext", "hub:environment:devext", "hub:environment:production", "hub:environment:enterprise", "hub:card:embed", "hub:feature:search:portal", "hub:feature:search:portal:crossOrg", "hub:event", "hub:event:create", "hub:event:edit", "hub:event:delete", "hub:event:view", "hub:event:owner", "hub:event:canChangeAccess", "hub:event:workspace", "hub:event:workspace:dashboard", "hub:event:workspace:details", "hub:event:workspace:settings", "hub:event:workspace:collaborators", "hub:event:workspace:manage", "hub:event:workspace:registrants", "hub:event:workspace:content", "hub:event:workspace:catalog", "hub:event:workspace:catalog:content", "hub:event:workspace:catalog:events", "hub:event:manage", "hub:user", "hub:user:view", "hub:user:edit", "hub:user:owner", "hub:user:workspace", "hub:user:workspace:overview", "hub:user:workspace:settings", "hub:user:workspace:content", "hub:user:workspace:groups", "hub:user:workspace:events", "hub:user:workspace:shared-with-me", "hub:user:workspace:members", "hub:user:manage", "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"];
|
|
10
|
+
export declare const ValidPermissions: readonly ["hub:site", "hub:site:create", "hub:site:delete", "hub:site:edit", "hub:site:view", "hub:site:owner", "hub:site:canChangeAccess", "hub:site:events", "hub:site:content", "hub:site:discussions", "hub:site:feature:follow", "hub:site:feature:discussions", "hub:site:workspace", "hub:site:workspace:overview", "hub:site:workspace:dashboard", "hub:site:workspace:details", "hub:site:workspace:settings", "hub:site:workspace:collaborators", "hub:site:workspace:catalog", "hub:site:workspace:catalog:content", "hub:site:workspace:catalog:events", "hub:site:workspace:catalog:upgrade", "hub:site:workspace:metrics", "hub:site:workspace:followers", "hub:site:workspace:followers:member", "hub:site:workspace:followers:manager", "hub:site:workspace:followers:create", "hub:site:workspace:pages", "hub:site:workspace:events", "hub:site:workspace:projects", "hub:site:workspace:initiatives", "hub:site:manage", "hub:site:workspace:feeds", "hub:site:workspace:assistant", "hub:site:workspace:settings:discussions", "hub:site:assistant:access", "hub:project", "hub:project:create", "hub:project:delete", "hub:project:edit", "hub:project:view", "hub:project:owner", "hub:project:canChangeAccess", "hub:project:events", "hub:project:content", "hub:project:discussions", "hub:project:associations", "hub:project:workspace", "hub:project:workspace:overview", "hub:project:workspace:dashboard", "hub:project:workspace:details", "hub:project:workspace:initiatives", "hub:project:workspace:settings", "hub:project:workspace:collaborators", "hub:project:workspace:events", "hub:project:workspace:metrics", "hub:project:workspace:catalog", "hub:project:workspace:catalog:content", "hub:project:workspace:catalog:events", "hub:project:manage", "hub:project:workspace:edit:cardProps", "hub:initiative", "hub:initiative:create", "hub:initiative:delete", "hub:initiative:edit", "hub:initiative:view", "hub:initiative:owner", "hub:initiative:canChangeAccess", "hub:initiative:events", "hub:initiative:content", "hub:initiative:discussions", "hub:initiative:workspace", "hub:initiative:workspace:overview", "hub:initiative:workspace:dashboard", "hub:initiative:workspace:details", "hub:initiative:workspace:metrics", "hub:initiative:workspace:projects", "hub:initiative:workspace:projects:member", "hub:initiative:workspace:projects:manager", "hub:initiative:workspace:settings", "hub:initiative:workspace:collaborators", "hub:initiative:workspace:metrics", "hub:initiative:workspace:catalogs", "hub:initiative:workspace:catalog", "hub:initiative:workspace:catalog:content", "hub:initiative:workspace:catalog:events", "hub:initiative:workspace:associationGroup:create", "hub:initiative:manage", "hub:content", "hub:content:create", "hub:content:delete", "hub:content:edit", "hub:content:view", "hub:content:view:related", "hub:content:view:connected", "hub:content:canChangeAccess", "hub:content:workspace", "hub:content:workspace:overview", "hub:content:workspace:dashboard", "hub:content:workspace:details", "hub:content:workspace:settings", "hub:content:workspace:settings:schedule", "hub:content:workspace:settings:discussions", "hub:content:workspace:collaborators", "hub:content:manage", "hub:content:canRecordDownloadErrors", "hub:content:downloads:displayErrors", "hub:content:document:create", "hub:content:fetch:portal", "hub:group", "hub:group:messaging", "hub:group:create", "hub:group:create:view", "hub:group:create:edit", "hub:group:delete", "hub:group:edit", "hub:group:view", "hub:group:view:messaging", "hub:group:owner", "hub:group:canChangeAccess", "hub:group:canAssignMembers", "hub:group:workspace", "hub:group:workspace:overview", "hub:group:workspace:dashboard", "hub:group:workspace:details", "hub:group:workspace:settings", "hub:group:settings:discussions", "hub:group:workspace:collaborators", "hub:group:workspace:content", "hub:group:workspace:members", "hub:group:workspace:members:messaging", "hub:group:workspace:events", "hub:group:shareContent", "hub:group:manage", "hub:group:opendata", "hub:page", "hub:page:create", "hub:page:delete", "hub:page:edit", "hub:page:view", "hub:page:canChangeAccess", "hub:page:workspace", "hub:page:workspace:overview", "hub:page:workspace:dashboard", "hub:page:workspace:details", "hub:page:workspace:settings", "hub:page:workspace:collaborators", "hub:page:manage", "platform:features:user:edit", "platform:features:user:fullEdit", "platform:features:user:manageVersions", "platform:marketplace:admin:manage", "platform:marketplace:admin:purchase", "platform:marketplace:admin:startTrial", "platform:opendata:user:designateGroup", "platform:opendata:user:openDataAdmin", "platform:portal:admin:assignToGroups", "platform:portal:admin:categorizeItems", "platform:portal:admin:changeUserRoles", "platform:portal:admin:createGPWebhook", "platform:portal:admin:createUpdateCapableGroup", "platform:portal:admin:createLeavingDisallowedGroup", "platform:portal:admin:deleteGroups", "platform:portal:admin:deleteItems", "platform:portal:admin:deleteUsers", "platform:portal:admin:disableUsers", "platform:portal:admin:inviteUsers", "platform:portal:admin:manageCollaborations", "platform:portal:admin:manageCredits", "platform:portal:admin:manageEnterpriseGroups", "platform:portal:admin:manageLicenses", "platform:portal:admin:manageRoles", "platform:portal:admin:manageSecurity", "platform:portal:admin:manageServers", "platform:portal:admin:manageUtilityServices", "platform:portal:admin:manageWebhooks", "platform:portal:admin:manageWebsite", "platform:portal:admin:reassignGroups", "platform:portal:admin:reassignItems", "platform:portal:admin:reassignUsers", "platform:portal:admin:shareToGroup", "platform:portal:admin:shareToOrg", "platform:portal:admin:shareToPublic", "platform:portal:admin:updateGroups", "platform:portal:admin:updateItemCategorySchema", "platform:portal:admin:updateItems", "platform:portal:admin:updateMemberCategorySchema", "platform:portal:admin:updateUsers", "platform:portal:admin:viewGroups", "platform:portal:admin:viewItems", "platform:portal:admin:viewUsers", "platform:portal:publisher:bulkPublishFromDataStores", "platform:portal:publisher:createDataPipelines", "platform:portal:publisher:createFeatureWebhook", "platform:portal:publisher:publishBigDataAnalytics", "platform:portal:publisher:publishDynamicImagery", "platform:portal:publisher:publishFeatures", "platform:portal:publisher:publishFeeds", "platform:portal:publisher:publishKnowledgeGraph", "platform:portal:publisher:publishRealTimeAnalytics", "platform:portal:publisher:publishScenes", "platform:portal:publisher:publishServerGPServices", "platform:portal:publisher:publishServerServices", "platform:portal:publisher:publishTiledImagery", "platform:portal:publisher:publishTiles", "platform:portal:publisher:registerDataStores", "platform:portal:user:addExternalMembersToGroup", "platform:portal:user:categorizeItems", "platform:portal:user:createGroup", "platform:portal:user:createItem", "platform:portal:user:invitePartneredCollaborationMembers", "platform:portal:user:joinGroup", "platform:portal:user:joinNonOrgGroup", "platform:portal:user:reassignItems", "platform:portal:user:receiveItems", "platform:portal:user:runWebTool", "platform:portal:user:shareGroupToOrg", "platform:portal:user:shareGroupToPublic", "platform:portal:user:shareToGroup", "platform:portal:user:shareToOrg", "platform:portal:user:shareToPublic", "platform:portal:user:viewHostedFeatureServices", "platform:portal:user:viewHostedTileServices", "platform:portal:user:viewOrgGroups", "platform:portal:user:viewOrgItems", "platform:portal:user:viewOrgUsers", "platform:portal:user:viewTracks", "platform:portal:user:useAIAssistants", "platform:premium:publisher:createAdvancedNotebooks", "platform:premium:publisher:createNotebooks", "platform:premium:publisher:geoanalytics", "platform:premium:publisher:rasteranalysis", "platform:premium:publisher:scheduleNotebooks", "platform:premium:user:demographics", "platform:premium:user:elevation", "platform:premium:user:featurereport", "platform:premium:user:geocode:stored", "platform:premium:user:geocode:temporary", "platform:premium:user:geocode", "platform:premium:user:geoenrichment", "platform:premium:user:networkanalysis:closestfacility", "platform:premium:user:networkanalysis:locationallocation", "platform:premium:user:networkanalysis:optimizedrouting", "platform:premium:user:networkanalysis:origindestinationcostmatrix", "platform:premium:user:networkanalysis:routing", "platform:premium:user:networkanalysis:servicearea", "platform:premium:user:networkanalysis:vehiclerouting", "platform:premium:user:networkanalysis", "platform:premium:user:places", "platform:premium:user:spatialanalysis", "hub:discussion", "hub:discussion:create", "hub:discussion:delete", "hub:discussion:edit", "hub:discussion:view", "hub:discussion:owner", "hub:discussion:canChangeAccess", "hub:discussion:workspace:overview", "hub:discussion:workspace:dashboard", "hub:discussion:workspace:details", "hub:discussion:workspace:settings", "hub:discussion:workspace:collaborators", "hub:discussion:workspace:metrics", "hub:discussion:workspace:settings:discussions", "hub:discussion:manage", "temp:hub:discussion:create", "hub:discussion:workspace:catalog", "hub:discussion:workspace:catalog:content", "hub:discussion:workspace:catalog:events", "hub:initiativeTemplate", "hub:initiativeTemplate:create", "hub:initiativeTemplate:delete", "hub:initiativeTemplate:edit", "hub:initiativeTemplate:view", "hub:initiativeTemplate:view:related", "hub:initiativeTemplate:canChangeAccess", "hub:initiativeTemplate:workspace", "hub:initiativeTemplate:workspace:dashboard", "hub:initiativeTemplate:workspace:details", "hub:initiativeTemplate:workspace:collaborators", "hub:initiativeTemplate:workspace:settings", "hub:initiativeTemplate:manage", "hub:template", "hub:template:create", "hub:template:delete", "hub:template:edit", "hub:template:manage", "hub:template:view", "hub:template:view:related", "hub:template:canChangeAccess", "hub:template:workspace", "hub:template:workspace:details", "hub:template:workspace:dashboard", "hub:template:workspace:collaborators", "hub:template:workspace:settings", "hub:release:2025R3", "hub:release:2026R1", "hub:release:2026R2", "hub:release:2026R3", "hub:gating:workspace:released", "hub:gating:configurableViews:released", "hub:gating:entity:slugs", "hub:feature:ai-assistant", "hub:platform:ai-assistant", "hub:feature:privacy", "hub:feature:workspace", "hub:feature:configurableViews", "hub:feature:user:preferences", "hub:card:follow", "hub:feature:workspace:user", "hub:feature:workspace:org", "hub:feature:keyboardshortcuts", "hub:feature:newentityview", "hub:feature:history", "hub:feature:catalogs", "hub:feature:catalogs:edit:appearance", "hub:feature:gallery-card:enterprise", "hub:feature:inline-workspace", "hub:feature:pagescatalog", "hub:feature:discussions:subscription", "hub:feature:event:thumbnail:upload", "hub:feature:event:invite", "hub:license:hub-premium", "hub:license:hub-basic", "hub:license:enterprise-sites", "hub:availability:alpha", "hub:availability:beta", "hub:availability:general", "hub:environment:qaext", "hub:environment:devext", "hub:environment:production", "hub:environment:enterprise", "hub:card:embed", "hub:feature:search:portal", "hub:feature:search:portal:crossOrg", "hub:event", "hub:event:create", "hub:event:edit", "hub:event:delete", "hub:event:view", "hub:event:owner", "hub:event:canChangeAccess", "hub:event:workspace", "hub:event:workspace:dashboard", "hub:event:workspace:details", "hub:event:workspace:settings", "hub:event:workspace:collaborators", "hub:event:workspace:manage", "hub:event:workspace:registrants", "hub:event:workspace:content", "hub:event:workspace:catalog", "hub:event:workspace:catalog:content", "hub:event:workspace:catalog:events", "hub:event:manage", "hub:user", "hub:user:view", "hub:user:edit", "hub:user:owner", "hub:user:workspace", "hub:user:workspace:overview", "hub:user:workspace:settings", "hub:user:workspace:content", "hub:user:workspace:groups", "hub:user:workspace:events", "hub:user:workspace:shared-with-me", "hub:user:workspace:members", "hub:user:manage", "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"];
|