@esri/hub-common 14.101.0 → 14.103.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/core/schemas/internal/getEditorSchemas.js +1 -0
- package/dist/esm/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/InitiativeUiSchemaMetrics.js +238 -0
- package/dist/esm/core/schemas/internal/metrics/InitiativeUiSchemaMetrics.js.map +1 -0
- package/dist/esm/core/schemas/internal/metrics/MetricSchema.js +5 -0
- package/dist/esm/core/schemas/internal/metrics/MetricSchema.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/ProjectUiSchemaMetrics.js +31 -31
- package/dist/esm/core/schemas/internal/metrics/ProjectUiSchemaMetrics.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/definitions.js +80 -0
- package/dist/esm/core/schemas/internal/metrics/definitions.js.map +1 -0
- package/dist/esm/core/schemas/internal/metrics/interfaces.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/rules.js +6 -0
- package/dist/esm/core/schemas/internal/metrics/rules.js.map +1 -1
- package/dist/esm/groups/_internal/getPropertyMap.js +1 -0
- package/dist/esm/groups/_internal/getPropertyMap.js.map +1 -1
- package/dist/esm/initiatives/HubInitiative.js +29 -43
- package/dist/esm/initiatives/HubInitiative.js.map +1 -1
- package/dist/esm/initiatives/HubInitiatives.js +25 -9
- package/dist/esm/initiatives/HubInitiatives.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js +5 -0
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeSchema.js +12 -1
- package/dist/esm/initiatives/_internal/InitiativeSchema.js.map +1 -1
- package/dist/esm/initiatives/defaults.js +2 -0
- package/dist/esm/initiatives/defaults.js.map +1 -1
- package/dist/esm/projects/HubProject.js +23 -63
- package/dist/esm/projects/HubProject.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectSchema.js +5 -24
- package/dist/esm/projects/_internal/ProjectSchema.js.map +1 -1
- package/dist/esm/projects/edit.js +24 -9
- package/dist/esm/projects/edit.js.map +1 -1
- package/dist/node/core/schemas/internal/getEditorSchemas.js +1 -0
- package/dist/node/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/InitiativeUiSchemaMetrics.js +241 -0
- package/dist/node/core/schemas/internal/metrics/InitiativeUiSchemaMetrics.js.map +1 -0
- package/dist/node/core/schemas/internal/metrics/MetricSchema.js +5 -0
- package/dist/node/core/schemas/internal/metrics/MetricSchema.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/ProjectUiSchemaMetrics.js +31 -31
- package/dist/node/core/schemas/internal/metrics/ProjectUiSchemaMetrics.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/definitions.js +83 -0
- package/dist/node/core/schemas/internal/metrics/definitions.js.map +1 -0
- package/dist/node/core/schemas/internal/metrics/interfaces.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/rules.js +6 -0
- package/dist/node/core/schemas/internal/metrics/rules.js.map +1 -1
- package/dist/node/groups/_internal/getPropertyMap.js +1 -0
- package/dist/node/groups/_internal/getPropertyMap.js.map +1 -1
- package/dist/node/initiatives/HubInitiative.js +28 -42
- package/dist/node/initiatives/HubInitiative.js.map +1 -1
- package/dist/node/initiatives/HubInitiatives.js +24 -8
- package/dist/node/initiatives/HubInitiatives.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js +5 -0
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeSchema.js +12 -1
- package/dist/node/initiatives/_internal/InitiativeSchema.js.map +1 -1
- package/dist/node/initiatives/defaults.js +2 -0
- package/dist/node/initiatives/defaults.js.map +1 -1
- package/dist/node/projects/HubProject.js +22 -62
- package/dist/node/projects/HubProject.js.map +1 -1
- package/dist/node/projects/_internal/ProjectSchema.js +5 -24
- package/dist/node/projects/_internal/ProjectSchema.js.map +1 -1
- package/dist/node/projects/edit.js +23 -8
- package/dist/node/projects/edit.js.map +1 -1
- package/dist/types/core/schemas/internal/metrics/InitiativeUiSchemaMetrics.d.ts +16 -0
- package/dist/types/core/schemas/internal/metrics/definitions.d.ts +92 -0
- package/dist/types/core/schemas/internal/metrics/rules.d.ts +7 -85
- package/dist/types/core/schemas/types.d.ts +2 -2
- package/dist/types/core/types/IHubGroup.d.ts +6 -0
- package/dist/types/initiatives/_internal/InitiativeBusinessRules.d.ts +1 -1
- package/dist/types/initiatives/_internal/InitiativeSchema.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export interface IEditorConfig {
|
|
|
12
12
|
* to the supported/defined uiSchema configurations
|
|
13
13
|
*/
|
|
14
14
|
export declare type EntityEditorType = (typeof validEntityEditorTypes)[number];
|
|
15
|
-
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings"];
|
|
15
|
+
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings"];
|
|
16
16
|
/** Defines the possible editor type values for a stat card. These
|
|
17
17
|
* correspond to the supported/defined uiSchema configurations. This should
|
|
18
18
|
* have its own signature in the getEditorConfig function.
|
|
@@ -36,7 +36,7 @@ export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:
|
|
|
36
36
|
* to defined schema/uiSchema configurations
|
|
37
37
|
*/
|
|
38
38
|
export declare type EditorType = (typeof validEditorTypes)[number];
|
|
39
|
-
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:card:stat", "hub:card:follow"];
|
|
39
|
+
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:card:stat", "hub:card:follow"];
|
|
40
40
|
/**
|
|
41
41
|
* An editor's module when dynamically imported depending on the EditorType. This
|
|
42
42
|
* will always have a buildUiSchema function, and sometimes it will have a
|
|
@@ -59,6 +59,12 @@ export interface IHubGroup extends IHubEntityBase, IWithPermissions, IWithDiscus
|
|
|
59
59
|
* Username of the owner of the group
|
|
60
60
|
*/
|
|
61
61
|
owner?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Id of the org that the group belongs to
|
|
64
|
+
* Depending who is fetching the group, and the owning org's settings
|
|
65
|
+
* this may not be returned from the Portal API
|
|
66
|
+
*/
|
|
67
|
+
orgId?: string;
|
|
62
68
|
/**
|
|
63
69
|
* Whether the group is protected or not
|
|
64
70
|
* the group cannot be deleted if protected
|
|
@@ -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", "hub:initiative:workspace:overview", "hub:initiative:workspace:dashboard", "hub:initiative:workspace:details", "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:content", "hub:initiative:workspace:metrics", "hub:initiative:workspace:associationGroup:create", "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: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:content", "hub:initiative:workspace:metrics", "hub:initiative:workspace:associationGroup:create", "hub:initiative:manage"];
|
|
12
12
|
/**
|
|
13
13
|
* Initiative permission policies
|
|
14
14
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IConfigurationSchema } from "../../core";
|
|
2
2
|
export declare type InitiativeEditorType = (typeof InitiativeEditorTypes)[number];
|
|
3
|
-
export declare const InitiativeEditorTypes: readonly ["hub:initiative:edit", "hub:initiative:create"];
|
|
3
|
+
export declare const InitiativeEditorTypes: readonly ["hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics"];
|
|
4
4
|
/**
|
|
5
5
|
* defines the JSON schema for a Hub Initiative's editable fields
|
|
6
6
|
*/
|