@esri/hub-common 14.40.0 → 14.41.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/_internal/ContentBusinessRules.js +11 -6
- package/dist/esm/content/_internal/ContentBusinessRules.js.map +1 -1
- package/dist/esm/groups/_internal/GroupBusinessRules.js +10 -5
- package/dist/esm/groups/_internal/GroupBusinessRules.js.map +1 -1
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateBusinessRules.js +25 -5
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateBusinessRules.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js +13 -7
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/esm/pages/_internal/PageBusinessRules.js +10 -5
- package/dist/esm/pages/_internal/PageBusinessRules.js.map +1 -1
- package/dist/esm/permissions/HubPermissionPolicies.js +20 -1
- package/dist/esm/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/esm/permissions/types/Permission.js +2 -0
- package/dist/esm/permissions/types/Permission.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectBusinessRules.js +11 -7
- package/dist/esm/projects/_internal/ProjectBusinessRules.js.map +1 -1
- package/dist/esm/sites/_internal/SiteBusinessRules.js +15 -9
- package/dist/esm/sites/_internal/SiteBusinessRules.js.map +1 -1
- package/dist/esm/templates/_internal/TemplateBusinessRules.js +10 -5
- package/dist/esm/templates/_internal/TemplateBusinessRules.js.map +1 -1
- package/dist/node/content/_internal/ContentBusinessRules.js +11 -6
- package/dist/node/content/_internal/ContentBusinessRules.js.map +1 -1
- package/dist/node/groups/_internal/GroupBusinessRules.js +10 -5
- package/dist/node/groups/_internal/GroupBusinessRules.js.map +1 -1
- package/dist/node/initiative-templates/_internal/InitiativeTemplateBusinessRules.js +25 -5
- package/dist/node/initiative-templates/_internal/InitiativeTemplateBusinessRules.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js +13 -7
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/node/pages/_internal/PageBusinessRules.js +10 -5
- package/dist/node/pages/_internal/PageBusinessRules.js.map +1 -1
- package/dist/node/permissions/HubPermissionPolicies.js +20 -1
- package/dist/node/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/node/permissions/types/Permission.js +2 -0
- package/dist/node/permissions/types/Permission.js.map +1 -1
- package/dist/node/projects/_internal/ProjectBusinessRules.js +11 -7
- package/dist/node/projects/_internal/ProjectBusinessRules.js.map +1 -1
- package/dist/node/sites/_internal/SiteBusinessRules.js +15 -9
- package/dist/node/sites/_internal/SiteBusinessRules.js.map +1 -1
- package/dist/node/templates/_internal/TemplateBusinessRules.js +10 -5
- package/dist/node/templates/_internal/TemplateBusinessRules.js.map +1 -1
- package/dist/types/content/_internal/ContentBusinessRules.d.ts +1 -1
- package/dist/types/groups/_internal/GroupBusinessRules.d.ts +1 -1
- package/dist/types/initiative-templates/_internal/InitiativeTemplateBusinessRules.d.ts +1 -1
- package/dist/types/initiatives/_internal/InitiativeBusinessRules.d.ts +1 -1
- package/dist/types/pages/_internal/PageBusinessRules.d.ts +1 -1
- package/dist/types/permissions/types/Permission.d.ts +2 -1
- package/dist/types/projects/_internal/ProjectBusinessRules.d.ts +1 -1
- package/dist/types/sites/_internal/SiteBusinessRules.d.ts +1 -1
- package/dist/types/templates/_internal/TemplateBusinessRules.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export declare const InitiativeDefaultFeatures: IFeatureFlags;
|
|
|
8
8
|
* These define the requirements any user must meet to perform related actions
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
|
-
export declare const InitiativePermissions: readonly ["hub:initiative", "hub:initiative:create", "hub:initiative:delete", "hub:initiative:edit", "hub:initiative:view", "hub:initiative:events", "hub:initiative:content", "hub:initiative:discussions", "hub:initiative:workspace:overview", "hub:initiative:workspace:dashboard", "hub:initiative:workspace:details", "hub:initiative:workspace:settings", "hub:initiative:workspace:collaborators", "hub:initiative:workspace:content", "hub:initiative:workspace:metrics", "hub:initiative:manage"];
|
|
11
|
+
export declare const InitiativePermissions: readonly ["hub:initiative", "hub:initiative:create", "hub:initiative:delete", "hub:initiative:edit", "hub:initiative:view", "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:settings", "hub:initiative:workspace:collaborators", "hub:initiative:workspace:content", "hub:initiative:workspace:metrics", "hub:initiative:manage"];
|
|
12
12
|
/**
|
|
13
13
|
* Initiative permission policies
|
|
14
14
|
* @private
|
|
@@ -8,7 +8,7 @@ export declare const PageDefaultFeatures: IFeatureFlags;
|
|
|
8
8
|
* These define the requirements any user must meet to perform related actions
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
|
-
export declare const PagePermissions: readonly ["hub:page", "hub:page:create", "hub:page:delete", "hub:page:edit", "hub:page:view", "hub:page:workspace:overview", "hub:page:workspace:dashboard", "hub:page:workspace:details", "hub:page:workspace:settings", "hub:page:workspace:collaborators", "hub:page:manage"];
|
|
11
|
+
export declare const PagePermissions: readonly ["hub:page", "hub:page:create", "hub:page:delete", "hub:page:edit", "hub:page:view", "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
12
|
/**
|
|
13
13
|
* Page permission policies
|
|
14
14
|
* @private
|
|
@@ -14,10 +14,11 @@ import { TemplatePermissions } from "../../templates/_internal/TemplateBusinessR
|
|
|
14
14
|
* otherwise Permission devolves into just a string type
|
|
15
15
|
*/
|
|
16
16
|
declare const TempPermissions: string[];
|
|
17
|
+
declare const SystemPermissions: string[];
|
|
17
18
|
/**
|
|
18
19
|
* Defines the possible values for Permissions
|
|
19
20
|
*/
|
|
20
|
-
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 TempPermissions)[number] | (typeof DiscussionPermissions)[number] | (typeof InitiativeTemplatePermissions)[number] | (typeof TemplatePermissions)[number];
|
|
21
|
+
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 TempPermissions)[number] | (typeof DiscussionPermissions)[number] | (typeof InitiativeTemplatePermissions)[number] | (typeof TemplatePermissions)[number] | (typeof SystemPermissions)[number];
|
|
21
22
|
/**
|
|
22
23
|
* Validate a Permission
|
|
23
24
|
* @param permission
|
|
@@ -8,7 +8,7 @@ export declare const ProjectDefaultFeatures: IFeatureFlags;
|
|
|
8
8
|
* These define the requirements any user must meet to perform related actions
|
|
9
9
|
* @private
|
|
10
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:events", "hub:project:content", "hub:project:discussions", "hub:project:workspace:overview", "hub:project:workspace:dashboard", "hub:project:workspace:details", "hub:project:workspace:settings", "hub:project:workspace:collaborators", "hub:project:workspace:content", "hub:project:workspace:metrics", "hub:project:manage"];
|
|
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:events", "hub:project:content", "hub:project:discussions", "hub:project:workspace", "hub:project:workspace:overview", "hub:project:workspace:dashboard", "hub:project:workspace:details", "hub:project:workspace:settings", "hub:project:workspace:collaborators", "hub:project:workspace:content", "hub:project:workspace:metrics", "hub:project:manage"];
|
|
12
12
|
/**
|
|
13
13
|
* Project permission policies
|
|
14
14
|
* @private
|
|
@@ -7,7 +7,7 @@ export declare const SiteDefaultFeatures: IFeatureFlags;
|
|
|
7
7
|
* Site Permissions
|
|
8
8
|
* This feeds into the Permissions type
|
|
9
9
|
*/
|
|
10
|
-
export declare const SitePermissions: readonly ["hub:site", "hub:site:create", "hub:site:delete", "hub:site:edit", "hub:site:view", "hub:site:owner", "hub:site:events", "hub:site:content", "hub:site:discussions", "hub:site:feature:follow", "hub:site:feature:discussions", "hub:site:workspace:overview", "hub:site:workspace:dashboard", "hub:site:workspace:details", "hub:site:workspace:settings", "hub:site:workspace:collaborators", "hub:site:workspace:content", "hub:site:workspace:metrics", "hub:site:workspace:followers", "hub:site:workspace:followers:member", "hub:site:workspace:followers:manager", "hub:site:workspace:discussion", "hub:site:manage"];
|
|
10
|
+
export declare const SitePermissions: readonly ["hub:site", "hub:site:create", "hub:site:delete", "hub:site:edit", "hub:site:view", "hub:site:owner", "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:content", "hub:site:workspace:metrics", "hub:site:workspace:followers", "hub:site:workspace:followers:member", "hub:site:workspace:followers:manager", "hub:site:workspace:discussion", "hub:site:manage"];
|
|
11
11
|
/**
|
|
12
12
|
* Site permission policies
|
|
13
13
|
* @private
|
|
@@ -9,7 +9,7 @@ export declare const TemplateDefaultFeatures: IFeatureFlags;
|
|
|
9
9
|
* Template permissions: these define the requirements
|
|
10
10
|
* any user must meet to perform related actions
|
|
11
11
|
*/
|
|
12
|
-
export declare const TemplatePermissions: readonly ["hub:template", "hub:template:create", "hub:template:delete", "hub:template:edit", "hub:template:manage", "hub:template:view", "hub:template:workspace:overview", "hub:template:workspace:details", "hub:template:workspace:dashboard", "hub:template:workspace:collaborators", "hub:template:workspace:settings"];
|
|
12
|
+
export declare const TemplatePermissions: readonly ["hub:template", "hub:template:create", "hub:template:delete", "hub:template:edit", "hub:template:manage", "hub:template:view", "hub:template:workspace", "hub:template:workspace:overview", "hub:template:workspace:details", "hub:template:workspace:dashboard", "hub:template:workspace:collaborators", "hub:template:workspace:settings"];
|
|
13
13
|
/**
|
|
14
14
|
* @private
|
|
15
15
|
* Template permission policies
|