@esri/hub-common 14.109.0 → 14.110.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 +5 -0
- package/dist/esm/content/_internal/ContentBusinessRules.js.map +1 -1
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateSchema.js +3 -1
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateSchema.js.map +1 -1
- package/dist/esm/templates/_internal/TemplateSchema.js +3 -1
- package/dist/esm/templates/_internal/TemplateSchema.js.map +1 -1
- package/dist/node/content/_internal/ContentBusinessRules.js +5 -0
- package/dist/node/content/_internal/ContentBusinessRules.js.map +1 -1
- package/dist/node/initiative-templates/_internal/InitiativeTemplateSchema.js +3 -1
- package/dist/node/initiative-templates/_internal/InitiativeTemplateSchema.js.map +1 -1
- package/dist/node/templates/_internal/TemplateSchema.js +3 -1
- package/dist/node/templates/_internal/TemplateSchema.js.map +1 -1
- package/dist/types/content/_internal/ContentBusinessRules.d.ts +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export const ContentPermissions = [
|
|
|
23
23
|
"hub:content:workspace:settings",
|
|
24
24
|
"hub:content:workspace:collaborators",
|
|
25
25
|
"hub:content:manage",
|
|
26
|
+
"hub:content:canRecordDownloadErrors",
|
|
26
27
|
];
|
|
27
28
|
/**
|
|
28
29
|
* Content permission policies
|
|
@@ -112,5 +113,9 @@ export const ContentPermissionPolicies = [
|
|
|
112
113
|
permission: "hub:content:manage",
|
|
113
114
|
dependencies: ["hub:content:edit"],
|
|
114
115
|
},
|
|
116
|
+
{
|
|
117
|
+
permission: "hub:content:canRecordDownloadErrors",
|
|
118
|
+
environments: ["qaext", "devext"],
|
|
119
|
+
},
|
|
115
120
|
];
|
|
116
121
|
//# sourceMappingURL=ContentBusinessRules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentBusinessRules.js","sourceRoot":"","sources":["../../../../src/content/_internal/ContentBusinessRules.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAkB;AACnD,mEAAmE;CACpE,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,6BAA6B;IAC7B,uBAAuB;IACvB,gCAAgC;IAChC,iCAAiC;IACjC,+BAA+B;IAC/B,kCAAkC;IAClC,gCAAgC;IAChC,qCAAqC;IACrC,oBAAoB;
|
|
1
|
+
{"version":3,"file":"ContentBusinessRules.js","sourceRoot":"","sources":["../../../../src/content/_internal/ContentBusinessRules.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAkB;AACnD,mEAAmE;CACpE,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,6BAA6B;IAC7B,uBAAuB;IACvB,gCAAgC;IAChC,iCAAiC;IACjC,+BAA+B;IAC/B,kCAAkC;IAClC,gCAAgC;IAChC,qCAAqC;IACrC,oBAAoB;IACpB,qCAAqC;CAC7B,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAwB;IAC5D;QACE,UAAU,EAAE,aAAa;QACzB,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD;QACE,UAAU,EAAE,oBAAoB;QAChC,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,CAAC,wBAAwB,CAAC;KACvC;IACD;QACE,UAAU,EAAE,kBAAkB;QAC9B,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,aAAa,EAAE,KAAK;KACrB;IACD;QACE,UAAU,EAAE,kBAAkB;QAC9B,aAAa,EAAE,IAAI;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oBAAoB;QAChC,YAAY,EAAE,CAAC,kBAAkB,CAAC;KACnC;IACD;QACE,UAAU,EAAE,qCAAqC;QACjD,YAAY,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;KAClC;CACF,CAAC"}
|
|
@@ -5,7 +5,9 @@ export const InitiativeTemplateEditorTypes = [
|
|
|
5
5
|
export const InitiativeTemplateSchema = Object.assign(Object.assign({}, HubItemEntitySchema), { properties: Object.assign(Object.assign({}, HubItemEntitySchema.properties), { previewUrl: {
|
|
6
6
|
type: "string",
|
|
7
7
|
if: { minLength: 1 },
|
|
8
|
-
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
then: { format: "url" },
|
|
9
11
|
}, recommendedTemplates: {
|
|
10
12
|
type: "array",
|
|
11
13
|
items: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitiativeTemplateSchema.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAKpF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,6BAA6B;CACrB,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"InitiativeTemplateSchema.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAKpF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,6BAA6B;CACrB,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,mCAChC,mBAAmB,KACtB,UAAU,kCACL,mBAAmB,CAAC,UAAU,KACjC,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;YACpB,6DAA6D;YAC7D,aAAa;YACb,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SACxB,EACD,oBAAoB,EAAE;YACpB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;SACF,MAEJ,CAAC"}
|
|
@@ -3,6 +3,8 @@ export const TemplateEditorTypes = ["hub:template:edit"];
|
|
|
3
3
|
export const TemplateSchema = Object.assign(Object.assign({}, HubItemEntitySchema), { properties: Object.assign(Object.assign({}, HubItemEntitySchema.properties), { previewUrl: {
|
|
4
4
|
type: "string",
|
|
5
5
|
if: { minLength: 1 },
|
|
6
|
-
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
then: { format: "url" },
|
|
7
9
|
} }) });
|
|
8
10
|
//# sourceMappingURL=TemplateSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateSchema.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplateSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAIpF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,mBAAmB,CAAU,CAAC;AAElE,MAAM,CAAC,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"TemplateSchema.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplateSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAIpF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,mBAAmB,CAAU,CAAC;AAElE,MAAM,CAAC,MAAM,cAAc,mCACtB,mBAAmB,KACtB,UAAU,kCACL,mBAAmB,CAAC,UAAU,KACjC,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;YACpB,6DAA6D;YAC7D,aAAa;YACb,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SACxB,MAEJ,CAAC"}
|
|
@@ -26,6 +26,7 @@ exports.ContentPermissions = [
|
|
|
26
26
|
"hub:content:workspace:settings",
|
|
27
27
|
"hub:content:workspace:collaborators",
|
|
28
28
|
"hub:content:manage",
|
|
29
|
+
"hub:content:canRecordDownloadErrors",
|
|
29
30
|
];
|
|
30
31
|
/**
|
|
31
32
|
* Content permission policies
|
|
@@ -115,5 +116,9 @@ exports.ContentPermissionPolicies = [
|
|
|
115
116
|
permission: "hub:content:manage",
|
|
116
117
|
dependencies: ["hub:content:edit"],
|
|
117
118
|
},
|
|
119
|
+
{
|
|
120
|
+
permission: "hub:content:canRecordDownloadErrors",
|
|
121
|
+
environments: ["qaext", "devext"],
|
|
122
|
+
},
|
|
118
123
|
];
|
|
119
124
|
//# sourceMappingURL=ContentBusinessRules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentBusinessRules.js","sourceRoot":"","sources":["../../../../src/content/_internal/ContentBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,sBAAsB,GAAkB;AACnD,mEAAmE;CACpE,CAAC;AAEF;;;;GAIG;AACU,QAAA,kBAAkB,GAAG;IAChC,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,6BAA6B;IAC7B,uBAAuB;IACvB,gCAAgC;IAChC,iCAAiC;IACjC,+BAA+B;IAC/B,kCAAkC;IAClC,gCAAgC;IAChC,qCAAqC;IACrC,oBAAoB;
|
|
1
|
+
{"version":3,"file":"ContentBusinessRules.js","sourceRoot":"","sources":["../../../../src/content/_internal/ContentBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,sBAAsB,GAAkB;AACnD,mEAAmE;CACpE,CAAC;AAEF;;;;GAIG;AACU,QAAA,kBAAkB,GAAG;IAChC,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,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C;QAC5C,YAAY,EAAE,CAAC,OAAO,CAAC;QACvB,YAAY,EAAE,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;KAC5D;IACD;QACE,UAAU,EAAE,iCAAiC;QAC7C,YAAY,EAAE,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;KAC5D;IACD;QACE,UAAU,EAAE,+BAA+B;QAC3C,YAAY,EAAE,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;KAC5D;IACD;QACE,UAAU,EAAE,kCAAkC;QAC9C,YAAY,EAAE,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;KAC5D;IACD;QACE,UAAU,EAAE,gCAAgC;QAC5C,YAAY,EAAE,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;KAC5D;IACD;QACE,UAAU,EAAE,qCAAqC;QACjD,YAAY,EAAE,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;KAC5D;IACD;QACE,UAAU,EAAE,oBAAoB;QAChC,YAAY,EAAE,CAAC,kBAAkB,CAAC;KACnC;IACD;QACE,UAAU,EAAE,qCAAqC;QACjD,YAAY,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;KAClC;CACF,CAAC"}
|
|
@@ -8,7 +8,9 @@ exports.InitiativeTemplateEditorTypes = [
|
|
|
8
8
|
exports.InitiativeTemplateSchema = Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema), { properties: Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema.properties), { previewUrl: {
|
|
9
9
|
type: "string",
|
|
10
10
|
if: { minLength: 1 },
|
|
11
|
-
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
then: { format: "url" },
|
|
12
14
|
}, recommendedTemplates: {
|
|
13
15
|
type: "array",
|
|
14
16
|
items: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitiativeTemplateSchema.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAKvE,QAAA,6BAA6B,GAAG;IAC3C,6BAA6B;CACrB,CAAC;AAEE,QAAA,wBAAwB,
|
|
1
|
+
{"version":3,"file":"InitiativeTemplateSchema.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAKvE,QAAA,6BAA6B,GAAG;IAC3C,6BAA6B;CACrB,CAAC;AAEE,QAAA,wBAAwB,mCAChC,yCAAmB,KACtB,UAAU,kCACL,yCAAmB,CAAC,UAAU,KACjC,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;YACpB,6DAA6D;YAC7D,aAAa;YACb,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SACxB,EACD,oBAAoB,EAAE;YACpB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;SACF,OAEH"}
|
|
@@ -6,6 +6,8 @@ exports.TemplateEditorTypes = ["hub:template:edit"];
|
|
|
6
6
|
exports.TemplateSchema = Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema), { properties: Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema.properties), { previewUrl: {
|
|
7
7
|
type: "string",
|
|
8
8
|
if: { minLength: 1 },
|
|
9
|
-
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
then: { format: "url" },
|
|
10
12
|
} }) });
|
|
11
13
|
//# sourceMappingURL=TemplateSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateSchema.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplateSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAIvE,QAAA,mBAAmB,GAAG,CAAC,mBAAmB,CAAU,CAAC;AAErD,QAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"TemplateSchema.js","sourceRoot":"","sources":["../../../../src/templates/_internal/TemplateSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAIvE,QAAA,mBAAmB,GAAG,CAAC,mBAAmB,CAAU,CAAC;AAErD,QAAA,cAAc,mCACtB,yCAAmB,KACtB,UAAU,kCACL,yCAAmB,CAAC,UAAU,KACjC,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;YACpB,6DAA6D;YAC7D,aAAa;YACb,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SACxB,OAEH"}
|
|
@@ -8,7 +8,7 @@ export declare const ContentDefaultFeatures: IFeatureFlags;
|
|
|
8
8
|
* These define the requirements any user must meet to perform related actions
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
|
-
export declare const ContentPermissions: readonly ["hub:content:create", "hub:content:delete", "hub:content:edit", "hub:content:view", "hub:content:canChangeAccess", "hub:content:workspace", "hub:content:workspace:overview", "hub:content:workspace:dashboard", "hub:content:workspace:details", "hub:content:workspace:discussion", "hub:content:workspace:settings", "hub:content:workspace:collaborators", "hub:content:manage"];
|
|
11
|
+
export declare const ContentPermissions: readonly ["hub:content:create", "hub:content:delete", "hub:content:edit", "hub:content:view", "hub:content:canChangeAccess", "hub:content:workspace", "hub:content:workspace:overview", "hub:content:workspace:dashboard", "hub:content:workspace:details", "hub:content:workspace:discussion", "hub:content:workspace:settings", "hub:content:workspace:collaborators", "hub:content:manage", "hub:content:canRecordDownloadErrors"];
|
|
12
12
|
/**
|
|
13
13
|
* Content permission policies
|
|
14
14
|
* No need to specify license for permissions that are available to all licenses
|