@esri/hub-common 14.18.0 → 14.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/content/HubContent.js +8 -5
- package/dist/esm/content/HubContent.js.map +1 -1
- package/dist/esm/core/EntityEditor.js +2 -2
- package/dist/esm/core/EntityEditor.js.map +1 -1
- package/dist/esm/core/enrichEntity.js +66 -0
- package/dist/esm/core/enrichEntity.js.map +1 -0
- package/dist/esm/discussions/HubDiscussion.js +8 -4
- package/dist/esm/discussions/HubDiscussion.js.map +1 -1
- package/dist/esm/groups/HubGroup.js +8 -3
- package/dist/esm/groups/HubGroup.js.map +1 -1
- package/dist/esm/initiatives/HubInitiative.js +8 -4
- package/dist/esm/initiatives/HubInitiative.js.map +1 -1
- package/dist/esm/pages/HubPage.js +8 -4
- package/dist/esm/pages/HubPage.js.map +1 -1
- package/dist/esm/permissions/types/Permission.js +2 -0
- package/dist/esm/permissions/types/Permission.js.map +1 -1
- package/dist/esm/projects/HubProject.js +8 -3
- package/dist/esm/projects/HubProject.js.map +1 -1
- package/dist/esm/sites/HubSite.js +8 -6
- package/dist/esm/sites/HubSite.js.map +1 -1
- package/dist/node/content/HubContent.js +8 -5
- package/dist/node/content/HubContent.js.map +1 -1
- package/dist/node/core/EntityEditor.js +2 -2
- package/dist/node/core/EntityEditor.js.map +1 -1
- package/dist/node/core/enrichEntity.js +69 -0
- package/dist/node/core/enrichEntity.js.map +1 -0
- package/dist/node/discussions/HubDiscussion.js +8 -4
- package/dist/node/discussions/HubDiscussion.js.map +1 -1
- package/dist/node/groups/HubGroup.js +8 -3
- package/dist/node/groups/HubGroup.js.map +1 -1
- package/dist/node/initiatives/HubInitiative.js +8 -4
- package/dist/node/initiatives/HubInitiative.js.map +1 -1
- package/dist/node/pages/HubPage.js +8 -4
- package/dist/node/pages/HubPage.js.map +1 -1
- package/dist/node/permissions/types/Permission.js +2 -0
- package/dist/node/permissions/types/Permission.js.map +1 -1
- package/dist/node/projects/HubProject.js +8 -3
- package/dist/node/projects/HubProject.js.map +1 -1
- package/dist/node/sites/HubSite.js +8 -6
- package/dist/node/sites/HubSite.js.map +1 -1
- package/dist/types/content/HubContent.d.ts +1 -1
- package/dist/types/core/EntityEditor.d.ts +1 -1
- package/dist/types/core/behaviors/IWithEditorBehavior.d.ts +1 -1
- package/dist/types/core/enrichEntity.d.ts +16 -0
- package/dist/types/core/types/IHubDiscussion.d.ts +2 -8
- package/dist/types/core/types/IHubEditableContent.d.ts +2 -8
- package/dist/types/core/types/IHubInitiative.d.ts +2 -8
- package/dist/types/core/types/IHubItemEntity.d.ts +3 -0
- package/dist/types/core/types/IHubPage.d.ts +2 -8
- package/dist/types/core/types/IHubProject.d.ts +2 -10
- package/dist/types/discussions/HubDiscussion.d.ts +1 -1
- package/dist/types/groups/HubGroup.d.ts +2 -1
- package/dist/types/initiatives/HubInitiative.d.ts +1 -1
- package/dist/types/pages/HubPage.d.ts +1 -1
- package/dist/types/permissions/types/Permission.d.ts +2 -1
- package/dist/types/projects/HubProject.d.ts +1 -1
- package/dist/types/sites/HubSite.d.ts +1 -1
- package/package.json +1 -1
|
@@ -81,7 +81,7 @@ export declare class HubInitiative extends HubItemEntity<IHubInitiative> impleme
|
|
|
81
81
|
* @param editorContext
|
|
82
82
|
* @returns
|
|
83
83
|
*/
|
|
84
|
-
toEditor(editorContext?: IEntityEditorContext): IHubInitiativeEditor
|
|
84
|
+
toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubInitiativeEditor>;
|
|
85
85
|
/**
|
|
86
86
|
* Load the project from the editor object
|
|
87
87
|
* @param editor
|
|
@@ -61,7 +61,7 @@ export declare class HubPage extends HubItemEntity<IHubPage> implements IWithSto
|
|
|
61
61
|
* @param editorContext
|
|
62
62
|
* @returns
|
|
63
63
|
*/
|
|
64
|
-
toEditor(editorContext?: IEntityEditorContext): IHubPageEditor
|
|
64
|
+
toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubPageEditor>;
|
|
65
65
|
/**
|
|
66
66
|
* Load the project from the editor object
|
|
67
67
|
* @param editor
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ProjectPermissions } from "../../projects/_internal/ProjectBusinessRules";
|
|
2
2
|
import { SitePermissions } from "../../sites/_internal/SiteBusinessRules";
|
|
3
3
|
import { InitiativePermissions } from "../../initiatives/_internal/InitiativeBusinessRules";
|
|
4
|
+
import { DiscussionPermissions } from "../../discussions/_internal/DiscussionBusinessRules";
|
|
4
5
|
import { ContentPermissions } from "../../content/_internal/ContentBusinessRules";
|
|
5
6
|
import { GroupPermissions } from "../../groups/_internal/GroupBusinessRules";
|
|
6
7
|
import { PagePermissions } from "../../pages/_internal/PageBusinessRules";
|
|
@@ -14,7 +15,7 @@ declare const TempPermissions: string[];
|
|
|
14
15
|
/**
|
|
15
16
|
* Defines the possible values for Permissions
|
|
16
17
|
*/
|
|
17
|
-
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];
|
|
18
|
+
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];
|
|
18
19
|
/**
|
|
19
20
|
* Validate a Permission
|
|
20
21
|
* @param permission
|
|
@@ -64,7 +64,7 @@ export declare class HubProject extends HubItemEntity<IHubProject> implements IW
|
|
|
64
64
|
* @param editorContext
|
|
65
65
|
* @returns
|
|
66
66
|
*/
|
|
67
|
-
toEditor(editorContext?: IEntityEditorContext): IHubProjectEditor
|
|
67
|
+
toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubProjectEditor>;
|
|
68
68
|
/**
|
|
69
69
|
* Load the project from the editor object
|
|
70
70
|
* @param editor
|
|
@@ -141,7 +141,7 @@ export declare class HubSite extends HubItemEntity<IHubSite> implements IWithSto
|
|
|
141
141
|
* @param editorContext
|
|
142
142
|
* @returns
|
|
143
143
|
*/
|
|
144
|
-
toEditor(editorContext?: IEntityEditorContext): IHubSiteEditor
|
|
144
|
+
toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubSiteEditor>;
|
|
145
145
|
/**
|
|
146
146
|
* Load the project from the editor object
|
|
147
147
|
* @param editor
|