@esri/hub-common 20.4.6 → 20.5.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/ArcGISContext.js.map +1 -1
- package/dist/esm/ArcGISContextManager.js.map +1 -1
- package/dist/esm/channels/_internal/ChannelBusinessRules.js +0 -17
- package/dist/esm/channels/_internal/ChannelBusinessRules.js.map +1 -1
- package/dist/esm/channels/_internal/ChannelPermissions.js +18 -0
- package/dist/esm/channels/_internal/ChannelPermissions.js.map +1 -0
- package/dist/esm/content/_internal/ContentBusinessRules.js +0 -27
- package/dist/esm/content/_internal/ContentBusinessRules.js.map +1 -1
- package/dist/esm/content/_internal/ContentPermissions.js +28 -0
- package/dist/esm/content/_internal/ContentPermissions.js.map +1 -0
- package/dist/esm/content/contentUtils.js +9 -2
- package/dist/esm/content/contentUtils.js.map +1 -1
- package/dist/esm/discussions/_internal/DiscussionBusinessRules.js +0 -26
- package/dist/esm/discussions/_internal/DiscussionBusinessRules.js.map +1 -1
- package/dist/esm/discussions/_internal/DiscussionsPermissions.js +27 -0
- package/dist/esm/discussions/_internal/DiscussionsPermissions.js.map +1 -0
- package/dist/esm/events/_internal/EventBusinessRules.js +0 -26
- package/dist/esm/events/_internal/EventBusinessRules.js.map +1 -1
- package/dist/esm/events/_internal/EventPermissions.js +27 -0
- package/dist/esm/events/_internal/EventPermissions.js.map +1 -0
- package/dist/esm/groups/_internal/GroupBusinessRules.js +0 -29
- package/dist/esm/groups/_internal/GroupBusinessRules.js.map +1 -1
- package/dist/esm/groups/_internal/GroupPermissions.js +30 -0
- package/dist/esm/groups/_internal/GroupPermissions.js.map +1 -0
- package/dist/esm/groups/_internal/GroupUiSchemaCreate.js +6 -6
- package/dist/esm/groups/_internal/GroupUiSchemaCreate.js.map +1 -1
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateBusinessRules.js +0 -20
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateBusinessRules.js.map +1 -1
- package/dist/esm/initiative-templates/_internal/InitiativeTemplatePermissions.js +21 -0
- package/dist/esm/initiative-templates/_internal/InitiativeTemplatePermissions.js.map +1 -0
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js +0 -34
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativePermissions.js +35 -0
- package/dist/esm/initiatives/_internal/InitiativePermissions.js.map +1 -0
- package/dist/esm/pages/_internal/PageBusinessRules.js +0 -20
- package/dist/esm/pages/_internal/PageBusinessRules.js.map +1 -1
- package/dist/esm/pages/_internal/PagePermissions.js +21 -0
- package/dist/esm/pages/_internal/PagePermissions.js.map +1 -0
- package/dist/esm/permissions/PlatformPermissionPolicies.js +0 -106
- package/dist/esm/permissions/PlatformPermissionPolicies.js.map +1 -1
- package/dist/esm/permissions/PlatformPermissions.js +107 -0
- package/dist/esm/permissions/PlatformPermissions.js.map +1 -0
- package/dist/esm/permissions/_internal/constants.js +68 -0
- package/dist/esm/permissions/_internal/constants.js.map +1 -0
- package/dist/esm/permissions/checkPermission.js +22 -2
- package/dist/esm/permissions/checkPermission.js.map +1 -1
- package/dist/esm/permissions/index.js +1 -0
- package/dist/esm/permissions/index.js.map +1 -1
- package/dist/esm/permissions/isPermission.js +10 -0
- package/dist/esm/permissions/isPermission.js.map +1 -0
- package/dist/esm/permissions/types/Permission.js +0 -72
- package/dist/esm/permissions/types/Permission.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectBusinessRules.js +0 -31
- package/dist/esm/projects/_internal/ProjectBusinessRules.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectPermissions.js +32 -0
- package/dist/esm/projects/_internal/ProjectPermissions.js.map +1 -0
- package/dist/esm/projects/_internal/getPropertyMap.js.map +1 -1
- package/dist/esm/sites/_internal/SiteBusinessRules.js +6 -41
- package/dist/esm/sites/_internal/SiteBusinessRules.js.map +1 -1
- package/dist/esm/sites/_internal/SitePermissions.js +43 -0
- package/dist/esm/sites/_internal/SitePermissions.js.map +1 -0
- package/dist/esm/sites/_internal/computeProps.js +2 -0
- package/dist/esm/sites/_internal/computeProps.js.map +1 -1
- package/dist/esm/templates/_internal/TemplateBusinessRules.js +0 -20
- package/dist/esm/templates/_internal/TemplateBusinessRules.js.map +1 -1
- package/dist/esm/templates/_internal/TemplatePermissions.js +21 -0
- package/dist/esm/templates/_internal/TemplatePermissions.js.map +1 -0
- package/dist/esm/users/_internal/UserBusinessRules.js +0 -19
- package/dist/esm/users/_internal/UserBusinessRules.js.map +1 -1
- package/dist/esm/users/_internal/UserPermissions.js +20 -0
- package/dist/esm/users/_internal/UserPermissions.js.map +1 -0
- package/dist/node/ArcGISContext.js.map +1 -1
- package/dist/node/ArcGISContextManager.js.map +1 -1
- package/dist/node/channels/_internal/ChannelBusinessRules.js +1 -18
- package/dist/node/channels/_internal/ChannelBusinessRules.js.map +1 -1
- package/dist/node/channels/_internal/ChannelPermissions.js +21 -0
- package/dist/node/channels/_internal/ChannelPermissions.js.map +1 -0
- package/dist/node/content/_internal/ContentBusinessRules.js +1 -28
- package/dist/node/content/_internal/ContentBusinessRules.js.map +1 -1
- package/dist/node/content/_internal/ContentPermissions.js +31 -0
- package/dist/node/content/_internal/ContentPermissions.js.map +1 -0
- package/dist/node/content/contentUtils.js +9 -2
- package/dist/node/content/contentUtils.js.map +1 -1
- package/dist/node/discussions/_internal/DiscussionBusinessRules.js +1 -27
- package/dist/node/discussions/_internal/DiscussionBusinessRules.js.map +1 -1
- package/dist/node/discussions/_internal/DiscussionsPermissions.js +30 -0
- package/dist/node/discussions/_internal/DiscussionsPermissions.js.map +1 -0
- package/dist/node/events/_internal/EventBusinessRules.js +1 -27
- package/dist/node/events/_internal/EventBusinessRules.js.map +1 -1
- package/dist/node/events/_internal/EventPermissions.js +30 -0
- package/dist/node/events/_internal/EventPermissions.js.map +1 -0
- package/dist/node/groups/_internal/GroupBusinessRules.js +1 -30
- package/dist/node/groups/_internal/GroupBusinessRules.js.map +1 -1
- package/dist/node/groups/_internal/GroupPermissions.js +33 -0
- package/dist/node/groups/_internal/GroupPermissions.js.map +1 -0
- package/dist/node/groups/_internal/GroupUiSchemaCreate.js +14 -14
- package/dist/node/groups/_internal/GroupUiSchemaCreate.js.map +1 -1
- package/dist/node/initiative-templates/_internal/InitiativeTemplateBusinessRules.js +1 -21
- package/dist/node/initiative-templates/_internal/InitiativeTemplateBusinessRules.js.map +1 -1
- package/dist/node/initiative-templates/_internal/InitiativeTemplatePermissions.js +24 -0
- package/dist/node/initiative-templates/_internal/InitiativeTemplatePermissions.js.map +1 -0
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js +1 -35
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativePermissions.js +38 -0
- package/dist/node/initiatives/_internal/InitiativePermissions.js.map +1 -0
- package/dist/node/pages/_internal/PageBusinessRules.js +1 -21
- package/dist/node/pages/_internal/PageBusinessRules.js.map +1 -1
- package/dist/node/pages/_internal/PagePermissions.js +24 -0
- package/dist/node/pages/_internal/PagePermissions.js.map +1 -0
- package/dist/node/permissions/PlatformPermissionPolicies.js +1 -107
- package/dist/node/permissions/PlatformPermissionPolicies.js.map +1 -1
- package/dist/node/permissions/PlatformPermissions.js +110 -0
- package/dist/node/permissions/PlatformPermissions.js.map +1 -0
- package/dist/node/permissions/_internal/constants.js +71 -0
- package/dist/node/permissions/_internal/constants.js.map +1 -0
- package/dist/node/permissions/checkPermission.js +25 -5
- package/dist/node/permissions/checkPermission.js.map +1 -1
- package/dist/node/permissions/index.js +1 -0
- package/dist/node/permissions/index.js.map +1 -1
- package/dist/node/permissions/isPermission.js +14 -0
- package/dist/node/permissions/isPermission.js.map +1 -0
- package/dist/node/permissions/types/Permission.js +0 -74
- package/dist/node/permissions/types/Permission.js.map +1 -1
- package/dist/node/projects/_internal/ProjectBusinessRules.js +1 -32
- package/dist/node/projects/_internal/ProjectBusinessRules.js.map +1 -1
- package/dist/node/projects/_internal/ProjectPermissions.js +35 -0
- package/dist/node/projects/_internal/ProjectPermissions.js.map +1 -0
- package/dist/node/projects/_internal/getPropertyMap.js.map +1 -1
- package/dist/node/sites/_internal/SiteBusinessRules.js +7 -42
- package/dist/node/sites/_internal/SiteBusinessRules.js.map +1 -1
- package/dist/node/sites/_internal/SitePermissions.js +46 -0
- package/dist/node/sites/_internal/SitePermissions.js.map +1 -0
- package/dist/node/sites/_internal/computeProps.js +2 -0
- package/dist/node/sites/_internal/computeProps.js.map +1 -1
- package/dist/node/templates/_internal/TemplateBusinessRules.js +1 -21
- package/dist/node/templates/_internal/TemplateBusinessRules.js.map +1 -1
- package/dist/node/templates/_internal/TemplatePermissions.js +24 -0
- package/dist/node/templates/_internal/TemplatePermissions.js.map +1 -0
- package/dist/node/users/_internal/UserBusinessRules.js +1 -20
- package/dist/node/users/_internal/UserBusinessRules.js.map +1 -1
- package/dist/node/users/_internal/UserPermissions.js +23 -0
- package/dist/node/users/_internal/UserPermissions.js.map +1 -0
- package/dist/types/channels/_internal/ChannelBusinessRules.d.ts +1 -5
- package/dist/types/channels/_internal/ChannelPermissions.d.ts +5 -0
- package/dist/types/content/_internal/ContentBusinessRules.d.ts +0 -6
- package/dist/types/content/_internal/ContentPermissions.d.ts +6 -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/types/IHubSite.d.ts +4 -0
- package/dist/types/discussions/_internal/DiscussionBusinessRules.d.ts +0 -6
- package/dist/types/discussions/_internal/DiscussionsPermissions.d.ts +6 -0
- package/dist/types/events/_internal/EventBusinessRules.d.ts +0 -6
- package/dist/types/events/_internal/EventPermissions.d.ts +6 -0
- package/dist/types/groups/_internal/GroupBusinessRules.d.ts +0 -6
- package/dist/types/groups/_internal/GroupPermissions.d.ts +6 -0
- package/dist/types/groups/_internal/GroupUiSchemaCreate.d.ts +1 -1
- package/dist/types/initiative-templates/_internal/InitiativeTemplateBusinessRules.d.ts +0 -6
- package/dist/types/initiative-templates/_internal/InitiativeTemplatePermissions.d.ts +6 -0
- package/dist/types/initiatives/_internal/InitiativeBusinessRules.d.ts +0 -6
- package/dist/types/initiatives/_internal/InitiativePermissions.d.ts +6 -0
- package/dist/types/pages/_internal/PageBusinessRules.d.ts +0 -6
- package/dist/types/pages/_internal/PagePermissions.d.ts +6 -0
- package/dist/types/permissions/PlatformPermissionPolicies.d.ts +0 -4
- package/dist/types/permissions/PlatformPermissions.d.ts +4 -0
- package/dist/types/permissions/_internal/constants.d.ts +10 -0
- package/dist/types/permissions/index.d.ts +1 -0
- package/dist/types/permissions/isPermission.d.ts +6 -0
- package/dist/types/permissions/types/IPermissionPolicy.d.ts +2 -1
- package/dist/types/permissions/types/Permission.d.ts +3 -28
- package/dist/types/projects/_internal/ProjectBusinessRules.d.ts +0 -6
- package/dist/types/projects/_internal/ProjectPermissions.d.ts +6 -0
- package/dist/types/sites/_internal/SiteBusinessRules.d.ts +0 -5
- package/dist/types/sites/_internal/SitePermissions.d.ts +5 -0
- package/dist/types/sites/_internal/capabilities/types.d.ts +2 -3
- package/dist/types/templates/_internal/TemplateBusinessRules.d.ts +0 -6
- package/dist/types/templates/_internal/TemplatePermissions.d.ts +6 -0
- package/dist/types/urls/getContentHomeUrl.d.ts +2 -2
- package/dist/types/users/_internal/UserBusinessRules.d.ts +0 -6
- package/dist/types/users/_internal/UserPermissions.d.ts +6 -0
- package/package.json +1 -1
- package/dist/esm/permissions/_internal/checkParents.js +0 -23
- package/dist/esm/permissions/_internal/checkParents.js.map +0 -1
- package/dist/node/permissions/_internal/checkParents.js +0 -27
- package/dist/node/permissions/_internal/checkParents.js.map +0 -1
- package/dist/types/permissions/_internal/checkParents.d.ts +0 -12
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SitePermissions = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Site Permissions
|
|
6
|
+
* This feeds into the Permissions type
|
|
7
|
+
*/
|
|
8
|
+
exports.SitePermissions = [
|
|
9
|
+
"hub:site",
|
|
10
|
+
"hub:site:create",
|
|
11
|
+
"hub:site:delete",
|
|
12
|
+
"hub:site:edit",
|
|
13
|
+
"hub:site:view",
|
|
14
|
+
"hub:site:owner",
|
|
15
|
+
"hub:site:canChangeAccess",
|
|
16
|
+
"hub:site:events",
|
|
17
|
+
"hub:site:content",
|
|
18
|
+
"hub:site:discussions",
|
|
19
|
+
"hub:site:feature:follow",
|
|
20
|
+
"hub:site:feature:discussions",
|
|
21
|
+
"hub:site:workspace",
|
|
22
|
+
"hub:site:workspace:overview",
|
|
23
|
+
"hub:site:workspace:dashboard",
|
|
24
|
+
"hub:site:workspace:details",
|
|
25
|
+
"hub:site:workspace:settings",
|
|
26
|
+
"hub:site:workspace:collaborators",
|
|
27
|
+
"hub:site:workspace:catalog",
|
|
28
|
+
"hub:site:workspace:catalog:content",
|
|
29
|
+
"hub:site:workspace:catalog:events",
|
|
30
|
+
"hub:site:workspace:catalog:upgrade",
|
|
31
|
+
"hub:site:workspace:metrics",
|
|
32
|
+
"hub:site:workspace:followers",
|
|
33
|
+
"hub:site:workspace:followers:member",
|
|
34
|
+
"hub:site:workspace:followers:manager",
|
|
35
|
+
"hub:site:workspace:followers:create",
|
|
36
|
+
"hub:site:workspace:pages",
|
|
37
|
+
"hub:site:workspace:events",
|
|
38
|
+
"hub:site:workspace:projects",
|
|
39
|
+
"hub:site:workspace:initiatives",
|
|
40
|
+
"hub:site:manage",
|
|
41
|
+
"hub:site:workspace:feeds",
|
|
42
|
+
"hub:site:workspace:assistant",
|
|
43
|
+
"hub:site:workspace:settings:discussions",
|
|
44
|
+
"hub:site:assistant:access",
|
|
45
|
+
];
|
|
46
|
+
//# sourceMappingURL=SitePermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SitePermissions.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SitePermissions.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,eAAe,GAAG;IAC7B,UAAU;IACV,iBAAiB;IACjB,iBAAiB;IACjB,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,0BAA0B;IAC1B,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,yBAAyB;IACzB,8BAA8B;IAC9B,oBAAoB;IACpB,6BAA6B;IAC7B,8BAA8B;IAC9B,4BAA4B;IAC5B,6BAA6B;IAC7B,kCAAkC;IAClC,4BAA4B;IAC5B,oCAAoC;IACpC,mCAAmC;IACnC,oCAAoC;IACpC,4BAA4B;IAC5B,8BAA8B;IAC9B,qCAAqC;IACrC,sCAAsC;IACtC,qCAAqC;IACrC,0BAA0B;IAC1B,2BAA2B;IAC3B,6BAA6B;IAC7B,gCAAgC;IAChC,iBAAiB;IACjB,0BAA0B;IAC1B,8BAA8B;IAC9B,yCAAyC;IACzC,2BAA2B;CACnB,CAAC"}
|
|
@@ -38,6 +38,8 @@ function computeProps(model, site, requestOptions) {
|
|
|
38
38
|
site.catalog = get_catalog_from_site_model_1.getCatalogFromSiteModel(model);
|
|
39
39
|
// Perform schema upgrades on the new catalog structure
|
|
40
40
|
site.catalog = upgradeCatalogSchema_1.upgradeCatalogSchema(site.catalog);
|
|
41
|
+
// Determine if the site is still using the legacy v1 catalog
|
|
42
|
+
site.isCatalogV1Enabled = !!model.data.catalog;
|
|
41
43
|
// cast b/c this takes a partial but returns a full site
|
|
42
44
|
return site;
|
|
43
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeProps.js","sourceRoot":"","sources":["../../../../src/sites/_internal/computeProps.ts"],"names":[],"mappings":";;;AAEA,+CAAsD;AAEtD,4EAAyE;AACzE,6FAA0F;AAC1F,2DAA0D;AAE1D,4EAAyE;AACzE,iDAA8C;AAC9C,gFAAyE;AAEzE;;;;;;;GAOG;AACH,SAAgB,YAAY,CAC1B,KAAa,EACb,IAAuB,EACvB,cAA+B;;IAE/B,IAAI,KAAa,CAAC;IAClB,IAAI,cAAc,CAAC,cAAc,EAAE;QACjC,MAAM,OAAO,GACX,cAAc,CAAC,cAAuC,CAAC;QACzD,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;KACvB;IACD,kCAAkC;IAClC,IAAI,GAAG,mCAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1C,gBAAgB;IAChB,MAAM,YAAY,GAAG,+BAAmB,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;IAC5E,4EAA4E;IAC5E,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACjC,IAAI,CAAC,KAAK,GAAG,2BAAY,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAEtD;;OAEG;IACH,IAAI,CAAC,QAAQ,GAAG,6CAAqB,CACnC,OAAA,KAAK,CAAC,IAAI,CAAC,QAAQ,0CAAE,QAAQ,KAAI,EAAE,EACnC,uCAAmB,CACpB,CAAC;IAEF,4BAA4B;IAC5B,IAAI,CAAC,OAAO,GAAG,qDAAuB,CAAC,KAAK,CAAC,CAAC;IAE9C,uDAAuD;IACvD,IAAI,CAAC,OAAO,GAAG,2CAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAElD,wDAAwD;IACxD,OAAO,IAAgB,CAAC;AAC1B,CAAC;
|
|
1
|
+
{"version":3,"file":"computeProps.js","sourceRoot":"","sources":["../../../../src/sites/_internal/computeProps.ts"],"names":[],"mappings":";;;AAEA,+CAAsD;AAEtD,4EAAyE;AACzE,6FAA0F;AAC1F,2DAA0D;AAE1D,4EAAyE;AACzE,iDAA8C;AAC9C,gFAAyE;AAEzE;;;;;;;GAOG;AACH,SAAgB,YAAY,CAC1B,KAAa,EACb,IAAuB,EACvB,cAA+B;;IAE/B,IAAI,KAAa,CAAC;IAClB,IAAI,cAAc,CAAC,cAAc,EAAE;QACjC,MAAM,OAAO,GACX,cAAc,CAAC,cAAuC,CAAC;QACzD,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;KACvB;IACD,kCAAkC;IAClC,IAAI,GAAG,mCAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1C,gBAAgB;IAChB,MAAM,YAAY,GAAG,+BAAmB,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;IAC5E,4EAA4E;IAC5E,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACjC,IAAI,CAAC,KAAK,GAAG,2BAAY,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAEtD;;OAEG;IACH,IAAI,CAAC,QAAQ,GAAG,6CAAqB,CACnC,OAAA,KAAK,CAAC,IAAI,CAAC,QAAQ,0CAAE,QAAQ,KAAI,EAAE,EACnC,uCAAmB,CACpB,CAAC;IAEF,4BAA4B;IAC5B,IAAI,CAAC,OAAO,GAAG,qDAAuB,CAAC,KAAK,CAAC,CAAC;IAE9C,uDAAuD;IACvD,IAAI,CAAC,OAAO,GAAG,2CAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAElD,6DAA6D;IAC7D,IAAI,CAAC,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;IAE/C,wDAAwD;IACxD,OAAO,IAAgB,CAAC;AAC1B,CAAC;AAtCD,oCAsCC"}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TemplatePermissionPolicies = exports.
|
|
3
|
+
exports.TemplatePermissionPolicies = exports.TemplateDefaultFeatures = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Default features for a Template. These are the features
|
|
6
6
|
* that can be enabled / disabled by the entity owner
|
|
7
7
|
*/
|
|
8
8
|
exports.TemplateDefaultFeatures = {};
|
|
9
|
-
/**
|
|
10
|
-
* @private
|
|
11
|
-
* Template permissions: these define the requirements
|
|
12
|
-
* any user must meet to perform related actions
|
|
13
|
-
*/
|
|
14
|
-
exports.TemplatePermissions = [
|
|
15
|
-
"hub:template",
|
|
16
|
-
"hub:template:create",
|
|
17
|
-
"hub:template:delete",
|
|
18
|
-
"hub:template:edit",
|
|
19
|
-
"hub:template:manage",
|
|
20
|
-
"hub:template:view",
|
|
21
|
-
"hub:template:view:related",
|
|
22
|
-
"hub:template:canChangeAccess",
|
|
23
|
-
"hub:template:workspace",
|
|
24
|
-
"hub:template:workspace:details",
|
|
25
|
-
"hub:template:workspace:dashboard",
|
|
26
|
-
"hub:template:workspace:collaborators",
|
|
27
|
-
"hub:template:workspace:settings",
|
|
28
|
-
];
|
|
29
9
|
/**
|
|
30
10
|
* @private
|
|
31
11
|
* Template permission policies
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateBusinessRules.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplateBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,uBAAuB,GAAkB,EAAE,CAAC;AAEzD
|
|
1
|
+
{"version":3,"file":"TemplateBusinessRules.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplateBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,uBAAuB,GAAkB,EAAE,CAAC;AAEzD;;;GAGG;AACU,QAAA,0BAA0B,GAAwB;IAC7D;QACE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD;QACE,UAAU,EAAE,qBAAqB;QACjC,YAAY,EAAE,CAAC,cAAc,CAAC;QAC9B,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,CAAC,wBAAwB,CAAC;KACvC;IACD;QACE,UAAU,EAAE,qBAAqB;QACjC,YAAY,EAAE,CAAC,cAAc,CAAC;QAC9B,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,IAAI;KACnB;IACD;QACE,UAAU,EAAE,mBAAmB;QAC/B,YAAY,EAAE,CAAC,cAAc,CAAC;KAC/B;IACD;QACE,UAAU,EAAE,2BAA2B;QACvC,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,UAAU,EAAE;YACV;gBACE,QAAQ,EAAE,eAAe;gBACzB,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,QAAQ;aAChB;SACF;KACF;IACD;QACE,UAAU,EAAE,mBAAmB;QAC/B,YAAY,EAAE,CAAC,cAAc,CAAC;QAC9B,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;IACD;QACE,UAAU,EAAE,qBAAqB;QACjC,YAAY,EAAE,CAAC,mBAAmB,CAAC;KACpC;IACD;QACE,UAAU,EAAE,8BAA8B;QAC1C,YAAY,EAAE,CAAC,cAAc,CAAC;QAC9B,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE;YACV;gBACE,QAAQ,EAAE,gCAAgC;gBAC1C,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE;oBACL,4BAA4B;oBAC5B,yBAAyB;oBACzB,2BAA2B;oBAC3B,wBAAwB;iBACzB;aACF;YACD;gBACE,QAAQ,EAAE,oBAAoB;gBAC9B,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,OAAO;aACf;SACF;KACF;IACD;QACE,UAAU,EAAE,wBAAwB;QACpC,YAAY,EAAE,CAAC,uBAAuB,CAAC;KACxC;IACD;QACE,UAAU,EAAE,gCAAgC;QAC5C,YAAY,EAAE,CAAC,wBAAwB,EAAE,qBAAqB,CAAC;KAChE;IACD;QACE,UAAU,EAAE,kCAAkC;QAC9C,YAAY,EAAE,CAAC,wBAAwB,EAAE,qBAAqB,CAAC;KAChE;IACD;QACE,UAAU,EAAE,sCAAsC;QAClD,YAAY,EAAE,CAAC,wBAAwB,EAAE,qBAAqB,CAAC;KAChE;IACD;QACE,UAAU,EAAE,iCAAiC;QAC7C,YAAY,EAAE,CAAC,wBAAwB,EAAE,qBAAqB,CAAC;KAChE;CACF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TemplatePermissions = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* Template permissions: these define the requirements
|
|
7
|
+
* any user must meet to perform related actions
|
|
8
|
+
*/
|
|
9
|
+
exports.TemplatePermissions = [
|
|
10
|
+
"hub:template",
|
|
11
|
+
"hub:template:create",
|
|
12
|
+
"hub:template:delete",
|
|
13
|
+
"hub:template:edit",
|
|
14
|
+
"hub:template:manage",
|
|
15
|
+
"hub:template:view",
|
|
16
|
+
"hub:template:view:related",
|
|
17
|
+
"hub:template:canChangeAccess",
|
|
18
|
+
"hub:template:workspace",
|
|
19
|
+
"hub:template:workspace:details",
|
|
20
|
+
"hub:template:workspace:dashboard",
|
|
21
|
+
"hub:template:workspace:collaborators",
|
|
22
|
+
"hub:template:workspace:settings",
|
|
23
|
+
];
|
|
24
|
+
//# sourceMappingURL=TemplatePermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplatePermissions.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplatePermissions.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACU,QAAA,mBAAmB,GAAG;IACjC,cAAc;IACd,qBAAqB;IACrB,qBAAqB;IACrB,mBAAmB;IACnB,qBAAqB;IACrB,mBAAmB;IACnB,2BAA2B;IAC3B,8BAA8B;IAC9B,wBAAwB;IACxB,gCAAgC;IAChC,kCAAkC;IAClC,sCAAsC;IACtC,iCAAiC;CACzB,CAAC"}
|
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserPermissionPolicies =
|
|
4
|
-
/**
|
|
5
|
-
* User Permission Policies
|
|
6
|
-
* These define the requirements any user must meet to perform related actions
|
|
7
|
-
* @private
|
|
8
|
-
*/
|
|
9
|
-
exports.UserPermissions = [
|
|
10
|
-
"hub:user",
|
|
11
|
-
"hub:user:view",
|
|
12
|
-
"hub:user:edit",
|
|
13
|
-
"hub:user:owner",
|
|
14
|
-
"hub:user:workspace",
|
|
15
|
-
"hub:user:workspace:overview",
|
|
16
|
-
"hub:user:workspace:settings",
|
|
17
|
-
"hub:user:workspace:content",
|
|
18
|
-
"hub:user:workspace:groups",
|
|
19
|
-
"hub:user:workspace:events",
|
|
20
|
-
"hub:user:workspace:shared-with-me",
|
|
21
|
-
"hub:user:manage",
|
|
22
|
-
];
|
|
3
|
+
exports.UserPermissionPolicies = void 0;
|
|
23
4
|
/**
|
|
24
5
|
* User permission policies
|
|
25
6
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserBusinessRules.js","sourceRoot":"","sources":["../../../../src/users/_internal/UserBusinessRules.ts"],"names":[],"mappings":";;;AAEA
|
|
1
|
+
{"version":3,"file":"UserBusinessRules.js","sourceRoot":"","sources":["../../../../src/users/_internal/UserBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,sBAAsB,GAAwB;IACzD;QACE,UAAU,EAAE,UAAU;QACtB,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD;QACE,UAAU,EAAE,eAAe;QAC3B,YAAY,EAAE,CAAC,UAAU,CAAC;QAC1B,aAAa,EAAE,KAAK;KACrB;IACD;QACE,UAAU,EAAE,gBAAgB;QAC5B,YAAY,EAAE,CAAC,UAAU,CAAC;QAC1B,aAAa,EAAE,IAAI;QACnB,WAAW,EAAE,IAAI;KAClB;IACD;QACE,UAAU,EAAE,eAAe;QAC3B,qDAAqD;QACrD,kEAAkE;QAClE,YAAY,EAAE,CAAC,gBAAgB,CAAC;KACjC;IACD;QACE,UAAU,EAAE,oBAAoB;QAChC,kDAAkD;QAClD,mCAAmC;QACnC,YAAY,EAAE,CAAC,uBAAuB,CAAC;KACxC;IACD;QACE,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,CAAC,oBAAoB,CAAC;KACrC;IACD;QACE,UAAU,EAAE,4BAA4B;QACxC,YAAY,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;KACvD;IACD;QACE,UAAU,EAAE,2BAA2B;QACvC,YAAY,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;KACvD;IACD;QACE,UAAU,EAAE,2BAA2B;QACvC,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,YAAY,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;QACtD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD;QACE,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC;QAC/C,YAAY,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;KACvD;IACD;QACE,UAAU,EAAE,iBAAiB;QAC7B,YAAY,EAAE,CAAC,eAAe,CAAC;KAChC;CACF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPermissions = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* User Permission Policies
|
|
6
|
+
* These define the requirements any user must meet to perform related actions
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
exports.UserPermissions = [
|
|
10
|
+
"hub:user",
|
|
11
|
+
"hub:user:view",
|
|
12
|
+
"hub:user:edit",
|
|
13
|
+
"hub:user:owner",
|
|
14
|
+
"hub:user:workspace",
|
|
15
|
+
"hub:user:workspace:overview",
|
|
16
|
+
"hub:user:workspace:settings",
|
|
17
|
+
"hub:user:workspace:content",
|
|
18
|
+
"hub:user:workspace:groups",
|
|
19
|
+
"hub:user:workspace:events",
|
|
20
|
+
"hub:user:workspace:shared-with-me",
|
|
21
|
+
"hub:user:manage",
|
|
22
|
+
];
|
|
23
|
+
//# sourceMappingURL=UserPermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserPermissions.js","sourceRoot":"","sources":["../../../../src/users/_internal/UserPermissions.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACU,QAAA,eAAe,GAAG;IAC7B,UAAU;IACV,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,6BAA6B;IAC7B,6BAA6B;IAC7B,4BAA4B;IAC5B,2BAA2B;IAC3B,2BAA2B;IAC3B,mCAAmC;IACnC,iBAAiB;CACT,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { IPermissionPolicy } from "../../permissions/types/IPermissionPolicy";
|
|
2
|
-
|
|
3
|
-
* @private
|
|
4
|
-
* An array of all supported channel permissions
|
|
5
|
-
*/
|
|
6
|
-
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"];
|
|
2
|
+
import { ChannelPermissions } from "./ChannelPermissions";
|
|
7
3
|
/**
|
|
8
4
|
* @private
|
|
9
5
|
* A union type representing all the supported channel permissions
|
|
@@ -0,0 +1,5 @@
|
|
|
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"];
|
|
@@ -3,12 +3,6 @@ import { IFeatureFlags, IPermissionPolicy } from "../../permissions";
|
|
|
3
3
|
* Default features for a Content item. Intentionally empty to prevent overriding and adding features
|
|
4
4
|
*/
|
|
5
5
|
export declare const ContentDefaultFeatures: IFeatureFlags;
|
|
6
|
-
/**
|
|
7
|
-
* Content Permission Policies
|
|
8
|
-
* These define the requirements any user must meet to perform related actions
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export declare const ContentPermissions: readonly ["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"];
|
|
12
6
|
/**
|
|
13
7
|
* Content permission policies
|
|
14
8
|
* No need to specify license for permissions that are available to all licenses
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content Permission Policies
|
|
3
|
+
* These define the requirements any user must meet to perform related actions
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare const ContentPermissions: readonly ["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"];
|
|
@@ -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" | "initiative" | "project" | "site" | "discussion" | "event" | "organization" | "channel" | "
|
|
47
|
+
family?: "map" | "template" | "document" | "content" | "initiative" | "project" | "site" | "discussion" | "event" | "organization" | "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" | "initiative" | "project" | "site" | "discussion" | "event" | "organization" | "channel" | "
|
|
7
|
+
export declare function getFamily(type: string): "map" | "template" | "document" | "content" | "initiative" | "project" | "site" | "discussion" | "event" | "organization" | "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
|
|
@@ -87,6 +87,10 @@ export interface IHubSite extends IHubItemEntity, IWithSlug, IWithCatalog, IWith
|
|
|
87
87
|
* True when the site is the "Umbrella" site for an environment (i.e. hub.arcgis.com)
|
|
88
88
|
*/
|
|
89
89
|
isUmbrella: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* True if the site is still using the legacy v1 catalog
|
|
92
|
+
*/
|
|
93
|
+
isCatalogV1Enabled?: boolean;
|
|
90
94
|
}
|
|
91
95
|
export declare type IHubSiteEditor = IHubItemEntityEditor<IHubSite> & {
|
|
92
96
|
_urlInfo?: IHubSiteUrlInfo;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { IPermissionPolicy } from "../../permissions";
|
|
2
|
-
/**
|
|
3
|
-
* Discussion Permission Policies
|
|
4
|
-
* These define the requirements any user must meet to perform related actions
|
|
5
|
-
* @private
|
|
6
|
-
*/
|
|
7
|
-
export declare const DiscussionPermissions: readonly ["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"];
|
|
8
2
|
/**
|
|
9
3
|
* Discussion permission policies
|
|
10
4
|
* @private
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Discussion Permission Policies
|
|
3
|
+
* These define the requirements any user must meet to perform related actions
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare const DiscussionPermissions: readonly ["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"];
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { IPermissionPolicy } from "../../permissions";
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
* Event Permission Policies
|
|
5
|
-
* These define the requirements any user must meet to perform related actions
|
|
6
|
-
*/
|
|
7
|
-
export declare const EventPermissions: readonly ["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"];
|
|
8
2
|
/**
|
|
9
3
|
* @private
|
|
10
4
|
* Event permission policies
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
* Event Permission Policies
|
|
4
|
+
* These define the requirements any user must meet to perform related actions
|
|
5
|
+
*/
|
|
6
|
+
export declare const EventPermissions: readonly ["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"];
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { IPermissionPolicy } from "../../permissions";
|
|
2
|
-
/**
|
|
3
|
-
* Group Permission Policies
|
|
4
|
-
* These define the requirements any user must meet to perform related actions
|
|
5
|
-
* @private
|
|
6
|
-
*/
|
|
7
|
-
export declare const GroupPermissions: readonly ["hub:group", "hub:group:create", "hub:group:create:view", "hub:group:create:edit", "hub:group:delete", "hub:group:edit", "hub:group:view", "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:events", "hub:group:shareContent", "hub:group:manage"];
|
|
8
2
|
/**
|
|
9
3
|
* Group permission policies
|
|
10
4
|
* @private
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Group Permission Policies
|
|
3
|
+
* These define the requirements any user must meet to perform related actions
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare const GroupPermissions: readonly ["hub:group", "hub:group:create", "hub:group:create:view", "hub:group:create:edit", "hub:group:delete", "hub:group:edit", "hub:group:view", "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:events", "hub:group:shareContent", "hub:group:manage"];
|
|
@@ -19,4 +19,4 @@ export declare const buildUiSchema: (i18nScope: string, options: Partial<IHubGro
|
|
|
19
19
|
* @param context
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
|
-
export declare const buildDefaults: (
|
|
22
|
+
export declare const buildDefaults: (_i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IConfigurationValues>;
|
|
@@ -3,12 +3,6 @@ import { IFeatureFlags, IPermissionPolicy } from "../../permissions";
|
|
|
3
3
|
* Default features for an Initiative Template. These are the features that can be enabled / disabled by the entity owner
|
|
4
4
|
*/
|
|
5
5
|
export declare const InitiativeTemplateDefaultFeatures: IFeatureFlags;
|
|
6
|
-
/**
|
|
7
|
-
* Initiative Template Permission Policies
|
|
8
|
-
* These define the requirements any user must meet to perform related actions
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export declare const InitiativeTemplatePermissions: readonly ["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"];
|
|
12
6
|
/**
|
|
13
7
|
* Initiative Template policies
|
|
14
8
|
* @private
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initiative Template Permission Policies
|
|
3
|
+
* These define the requirements any user must meet to perform related actions
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare const InitiativeTemplatePermissions: readonly ["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"];
|
|
@@ -3,12 +3,6 @@ import { IFeatureFlags, IPermissionPolicy } from "../../permissions";
|
|
|
3
3
|
* Default features for a Initiative. These are the features that can be enabled / disabled by the entity owner
|
|
4
4
|
*/
|
|
5
5
|
export declare const InitiativeDefaultFeatures: IFeatureFlags;
|
|
6
|
-
/**
|
|
7
|
-
* Initiative Permission Policies
|
|
8
|
-
* These define the requirements any user must meet to perform related actions
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export declare const InitiativePermissions: readonly ["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"];
|
|
12
6
|
/**
|
|
13
7
|
* Initiative permission policies
|
|
14
8
|
* @private
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initiative Permission Policies
|
|
3
|
+
* These define the requirements any user must meet to perform related actions
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare const InitiativePermissions: readonly ["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"];
|
|
@@ -3,12 +3,6 @@ import { IFeatureFlags, IPermissionPolicy } from "../../permissions";
|
|
|
3
3
|
* Default features for a Project. These are the features that can be enabled / disabled by the entity owner
|
|
4
4
|
*/
|
|
5
5
|
export declare const PageDefaultFeatures: IFeatureFlags;
|
|
6
|
-
/**
|
|
7
|
-
* Page Permission Policies
|
|
8
|
-
* These define the requirements any user must meet to perform related actions
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export declare const PagePermissions: readonly ["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"];
|
|
12
6
|
/**
|
|
13
7
|
* Page permission policies
|
|
14
8
|
* @private
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page Permission Policies
|
|
3
|
+
* These define the requirements any user must meet to perform related actions
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare const PagePermissions: readonly ["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"];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* All the permission policies for the Hub
|
|
3
|
+
*/
|
|
4
|
+
export declare const PlatformPermissions: readonly ["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: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"];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the values for Permissions
|
|
3
|
+
* It's critical that the arrays defined in the modules use `as const`
|
|
4
|
+
* otherwise Permission devolves into just a string type
|
|
5
|
+
*/
|
|
6
|
+
export declare const SystemPermissions: readonly ["hub:gating:workspace:released", "hub:feature:ai-assistant", "hub:platform:ai-assistant", "hub:feature:privacy", "hub:feature:workspace", "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:advanced", "hub:feature:catalogs:edit:appearance", "hub:feature:inline-workspace", "hub:feature:pagescatalog", "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"];
|
|
7
|
+
/**
|
|
8
|
+
* An array of all valid/supported permissions
|
|
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: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:group", "hub:group:create", "hub:group:create:view", "hub:group:create:edit", "hub:group:delete", "hub:group:edit", "hub:group:view", "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:events", "hub:group:shareContent", "hub:group:manage", "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: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:gating:workspace:released", "hub:feature:ai-assistant", "hub:platform:ai-assistant", "hub:feature:privacy", "hub:feature:workspace", "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:advanced", "hub:feature:catalogs:edit:appearance", "hub:feature:inline-workspace", "hub:feature:pagescatalog", "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: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: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"];
|
|
@@ -75,6 +75,7 @@ export interface IPermissionPolicy {
|
|
|
75
75
|
*/
|
|
76
76
|
flagValue?: boolean;
|
|
77
77
|
}
|
|
78
|
+
export declare type FeatureFlag = "settings" | "details";
|
|
78
79
|
/**
|
|
79
80
|
* Hash of permission:boolean, which is used in two contexts.
|
|
80
81
|
* First, it is used to control access to "features" are enabled for a particular entity
|
|
@@ -85,7 +86,7 @@ export interface IPermissionPolicy {
|
|
|
85
86
|
* access is denied under all conditions. If the value is set to true, licensing,
|
|
86
87
|
* privilege and services checks are run, and if those pass, access is granted.
|
|
87
88
|
*/
|
|
88
|
-
export interface IFeatureFlags extends Record<Permission, boolean
|
|
89
|
+
export interface IFeatureFlags extends Partial<Record<Permission | FeatureFlag, boolean>> {
|
|
89
90
|
}
|
|
90
91
|
/**
|
|
91
92
|
* Hash of service status overrides parsed from query params. This is
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SitePermissions } from "../../sites/_internal/SiteBusinessRules";
|
|
3
|
-
import { InitiativePermissions } from "../../initiatives/_internal/InitiativeBusinessRules";
|
|
4
|
-
import { DiscussionPermissions } from "../../discussions/_internal/DiscussionBusinessRules";
|
|
5
|
-
import { ChannelPermissions } from "../../channels/_internal/ChannelBusinessRules";
|
|
6
|
-
import { ContentPermissions } from "../../content/_internal/ContentBusinessRules";
|
|
7
|
-
import { GroupPermissions } from "../../groups/_internal/GroupBusinessRules";
|
|
8
|
-
import { PagePermissions } from "../../pages/_internal/PageBusinessRules";
|
|
9
|
-
import { PlatformPermissions } from "../PlatformPermissionPolicies";
|
|
10
|
-
import { InitiativeTemplatePermissions } from "../../initiative-templates/_internal/InitiativeTemplateBusinessRules";
|
|
11
|
-
import { TemplatePermissions } from "../../templates/_internal/TemplateBusinessRules";
|
|
12
|
-
import { EventPermissions } from "../../events/_internal/EventBusinessRules";
|
|
13
|
-
import { UserPermissions } from "../../users/_internal/UserBusinessRules";
|
|
1
|
+
import { ValidPermissions } from "../_internal/constants";
|
|
14
2
|
/**
|
|
15
|
-
*
|
|
16
|
-
* It's critical that the arrays defined in the modules use `as const`
|
|
17
|
-
* otherwise Permission devolves into just a string type
|
|
3
|
+
* A union type of all possible/supported permissions
|
|
18
4
|
*/
|
|
19
|
-
declare
|
|
20
|
-
/**
|
|
21
|
-
* Defines the possible values for Permissions
|
|
22
|
-
*/
|
|
23
|
-
export declare type Permission = (typeof SitePermissions)[number] | (typeof ProjectPermissions)[number] | (typeof InitiativePermissions)[number] | (typeof ContentPermissions)[number] | (typeof GroupPermissions)[number] | (typeof PagePermissions)[number] | (typeof PlatformPermissions)[number] | (typeof DiscussionPermissions)[number] | (typeof InitiativeTemplatePermissions)[number] | (typeof TemplatePermissions)[number] | (typeof SystemPermissions)[number] | (typeof EventPermissions)[number] | (typeof UserPermissions)[number] | (typeof ChannelPermissions)[number];
|
|
24
|
-
/**
|
|
25
|
-
* Validate a Permission
|
|
26
|
-
* @param permission
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
export declare function isPermission(maybePermission: string): boolean;
|
|
30
|
-
export {};
|
|
5
|
+
export declare type Permission = (typeof ValidPermissions)[number];
|
|
@@ -3,12 +3,6 @@ import { IFeatureFlags, IPermissionPolicy } from "../../permissions";
|
|
|
3
3
|
* Default features for a Project. These are the features that can be enabled / disabled by the entity owner
|
|
4
4
|
*/
|
|
5
5
|
export declare const ProjectDefaultFeatures: IFeatureFlags;
|
|
6
|
-
/**
|
|
7
|
-
* Project Permission Policies
|
|
8
|
-
* These define the requirements any user must meet to perform related actions
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export declare const ProjectPermissions: readonly ["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"];
|
|
12
6
|
/**
|
|
13
7
|
* Project permission policies
|
|
14
8
|
* @private
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project Permission Policies
|
|
3
|
+
* These define the requirements any user must meet to perform related actions
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare const ProjectPermissions: readonly ["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"];
|