@esri/hub-common 14.42.0 → 14.42.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.
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HubItemEntitySchema } from "../../core/schemas/shared/HubItemEntitySchema";
|
|
2
2
|
export const PageEditorTypes = ["hub:page:edit"];
|
|
3
3
|
/**
|
|
4
4
|
* defines the JSON schema for a Hub Site's editable fields
|
|
5
5
|
*/
|
|
6
|
-
export const PageSchema = {
|
|
7
|
-
required: ["name"],
|
|
8
|
-
type: "object",
|
|
9
|
-
properties: {
|
|
10
|
-
name: ENTITY_NAME_SCHEMA,
|
|
11
|
-
summary: {
|
|
12
|
-
type: "string",
|
|
13
|
-
},
|
|
14
|
-
description: {
|
|
15
|
-
type: "string",
|
|
16
|
-
},
|
|
17
|
-
access: ENTITY_ACCESS_SCHEMA,
|
|
18
|
-
groups: {
|
|
19
|
-
type: "array",
|
|
20
|
-
items: {
|
|
21
|
-
type: "string",
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
location: {
|
|
25
|
-
type: "object",
|
|
26
|
-
},
|
|
27
|
-
tags: ENTITY_TAGS_SCHEMA,
|
|
28
|
-
categories: ENTITY_CATEGORIES_SCHEMA,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
6
|
+
export const PageSchema = Object.assign(Object.assign({}, HubItemEntitySchema), { properties: Object.assign({}, HubItemEntitySchema.properties) });
|
|
31
7
|
//# sourceMappingURL=PageSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageSchema.js","sourceRoot":"","sources":["../../../../src/pages/_internal/PageSchema.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"PageSchema.js","sourceRoot":"","sources":["../../../../src/pages/_internal/PageSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,eAAe,CAAU,CAAC;AAG1D;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAyB,gCAC3C,mBAAmB,KACtB,UAAU,oBACL,mBAAmB,CAAC,UAAU,IAED,CAAC"}
|
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PageSchema = exports.PageEditorTypes = void 0;
|
|
4
|
-
const
|
|
4
|
+
const HubItemEntitySchema_1 = require("../../core/schemas/shared/HubItemEntitySchema");
|
|
5
5
|
exports.PageEditorTypes = ["hub:page:edit"];
|
|
6
6
|
/**
|
|
7
7
|
* defines the JSON schema for a Hub Site's editable fields
|
|
8
8
|
*/
|
|
9
|
-
exports.PageSchema = {
|
|
10
|
-
required: ["name"],
|
|
11
|
-
type: "object",
|
|
12
|
-
properties: {
|
|
13
|
-
name: shared_1.ENTITY_NAME_SCHEMA,
|
|
14
|
-
summary: {
|
|
15
|
-
type: "string",
|
|
16
|
-
},
|
|
17
|
-
description: {
|
|
18
|
-
type: "string",
|
|
19
|
-
},
|
|
20
|
-
access: shared_1.ENTITY_ACCESS_SCHEMA,
|
|
21
|
-
groups: {
|
|
22
|
-
type: "array",
|
|
23
|
-
items: {
|
|
24
|
-
type: "string",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
location: {
|
|
28
|
-
type: "object",
|
|
29
|
-
},
|
|
30
|
-
tags: shared_1.ENTITY_TAGS_SCHEMA,
|
|
31
|
-
categories: shared_1.ENTITY_CATEGORIES_SCHEMA,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
9
|
+
exports.PageSchema = Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema), { properties: Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema.properties) });
|
|
34
10
|
//# sourceMappingURL=PageSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageSchema.js","sourceRoot":"","sources":["../../../../src/pages/_internal/PageSchema.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"PageSchema.js","sourceRoot":"","sources":["../../../../src/pages/_internal/PageSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAEvE,QAAA,eAAe,GAAG,CAAC,eAAe,CAAU,CAAC;AAG1D;;GAEG;AACU,QAAA,UAAU,GAAyB,gCAC3C,yCAAmB,KACtB,UAAU,oBACL,yCAAmB,CAAC,UAAU,IAED,CAAC"}
|