@salesforce/b2c-tooling-sdk 0.10.0 → 0.12.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/data/content-schemas/aspecttype.json +39 -0
- package/data/content-schemas/attributedefinition.json +283 -0
- package/data/content-schemas/attributedefinitiongroup.json +35 -0
- package/data/content-schemas/cmsrecord.json +45 -0
- package/data/content-schemas/common.json +27 -0
- package/data/content-schemas/componentconstructor.json +31 -0
- package/data/content-schemas/componenttype.json +24 -0
- package/data/content-schemas/componenttypeexclusion.json +11 -0
- package/data/content-schemas/componenttypeinclusion.json +11 -0
- package/data/content-schemas/contentassetcomponentconfig.json +32 -0
- package/data/content-schemas/contentassetpageconfig.json +14 -0
- package/data/content-schemas/contentassetstructuredcontentdata.json +5 -0
- package/data/content-schemas/customeditortype.json +28 -0
- package/data/content-schemas/databindingcontext.json +17 -0
- package/data/content-schemas/editordefinition.json +27 -0
- package/data/content-schemas/image.json +37 -0
- package/data/content-schemas/pagetype.json +38 -0
- package/data/content-schemas/regiondefinition.json +33 -0
- package/data/content-schemas/visibilityrule.json +70 -0
- package/dist/cjs/auth/oauth-implicit.d.ts +8 -0
- package/dist/cjs/auth/oauth-implicit.js +13 -7
- package/dist/cjs/auth/oauth-implicit.js.map +1 -1
- package/dist/cjs/operations/content/index.d.ts +15 -2
- package/dist/cjs/operations/content/index.js +14 -2
- package/dist/cjs/operations/content/index.js.map +1 -1
- package/dist/cjs/operations/content/validate.d.ts +64 -0
- package/dist/cjs/operations/content/validate.js +170 -0
- package/dist/cjs/operations/content/validate.js.map +1 -0
- package/dist/cjs/operations/mrt/bundle.js +13 -13
- package/dist/cjs/operations/mrt/bundle.js.map +1 -1
- package/dist/esm/auth/oauth-implicit.d.ts +8 -0
- package/dist/esm/auth/oauth-implicit.js +13 -7
- package/dist/esm/auth/oauth-implicit.js.map +1 -1
- package/dist/esm/operations/content/index.d.ts +15 -2
- package/dist/esm/operations/content/index.js +14 -2
- package/dist/esm/operations/content/index.js.map +1 -1
- package/dist/esm/operations/content/validate.d.ts +64 -0
- package/dist/esm/operations/content/validate.js +170 -0
- package/dist/esm/operations/content/validate.js.map +1 -0
- package/dist/esm/operations/mrt/bundle.js +13 -13
- package/dist/esm/operations/mrt/bundle.js.map +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"name": {"$ref":"common.json#/definitions/name"},
|
|
6
|
+
"description": {"$ref":"common.json#/definitions/description"},
|
|
7
|
+
"arch_type": {
|
|
8
|
+
"$ref": "common.json#/definitions/arch_type"
|
|
9
|
+
},
|
|
10
|
+
"attribute_definitions": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"oneOf": [
|
|
14
|
+
{ "$ref": "attributedefinition.json#/definitions/string" },
|
|
15
|
+
{ "$ref": "attributedefinition.json#/definitions/integer" },
|
|
16
|
+
{ "$ref": "attributedefinition.json#/definitions/product" },
|
|
17
|
+
{ "$ref": "attributedefinition.json#/definitions/category" },
|
|
18
|
+
{ "$ref": "attributedefinition.json#/definitions/page" },
|
|
19
|
+
{ "$ref": "attributedefinition.json#/definitions/enum_of_integer" },
|
|
20
|
+
{ "$ref": "attributedefinition.json#/definitions/enum_of_string" }
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"supported_object_types": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["category", "product"]
|
|
29
|
+
},
|
|
30
|
+
"uniqueItems": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"name",
|
|
35
|
+
"attribute_definitions",
|
|
36
|
+
"supported_object_types"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"type":"object",
|
|
5
|
+
|
|
6
|
+
"definitions": {
|
|
7
|
+
|
|
8
|
+
"attribute_base": {
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {"$ref":"common.json#/definitions/id"},
|
|
11
|
+
"name": {"$ref":"common.json#/definitions/name"},
|
|
12
|
+
"description": {"$ref":"common.json#/definitions/description"},
|
|
13
|
+
"type": {},
|
|
14
|
+
"editor_definition":{},
|
|
15
|
+
"values":{},
|
|
16
|
+
"required": {"type": "boolean","default": true},
|
|
17
|
+
"default_value":{},
|
|
18
|
+
"dynamic_lookup": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"aspect_attribute_alias": {"$ref":"common.json#/definitions/id"}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"aspect_attribute_alias"
|
|
25
|
+
],
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
},
|
|
28
|
+
"searching": {
|
|
29
|
+
"properties": {
|
|
30
|
+
"searchable": {"type": "boolean"},
|
|
31
|
+
"refinable": {"type": "boolean"},
|
|
32
|
+
"boost_factor": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"minimum": 0.01,
|
|
35
|
+
"maximum": 100
|
|
36
|
+
},
|
|
37
|
+
"sortable": {"type": "boolean","default": false}
|
|
38
|
+
},
|
|
39
|
+
"required": ["searchable", "refinable"],
|
|
40
|
+
"additionalProperties":false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": ["id","type"],
|
|
44
|
+
"additionalProperties":false
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
"string": {
|
|
48
|
+
"allOf": [
|
|
49
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
50
|
+
{ "properties": {
|
|
51
|
+
"type": { "enum":["string"] },
|
|
52
|
+
"editor_definition":{"not":{}},
|
|
53
|
+
"values":{"not":{}},
|
|
54
|
+
"default_value":{"type":"string"}
|
|
55
|
+
},
|
|
56
|
+
"required": ["type"]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"text": {
|
|
61
|
+
"allOf": [
|
|
62
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
63
|
+
{ "properties": {
|
|
64
|
+
"type": { "enum":["text"] },
|
|
65
|
+
"editor_definition":{"not":{}},
|
|
66
|
+
"values":{"not":{}},
|
|
67
|
+
"default_value":{"type":"string"}
|
|
68
|
+
},
|
|
69
|
+
"required": ["type"]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"markup": {
|
|
74
|
+
"allOf": [
|
|
75
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
76
|
+
{ "properties": {
|
|
77
|
+
"type": { "enum":["markup"] },
|
|
78
|
+
"editor_definition":{"not":{}},
|
|
79
|
+
"values":{"not":{}},
|
|
80
|
+
"default_value":{"type":"string"},
|
|
81
|
+
"searching": {
|
|
82
|
+
"properties": {
|
|
83
|
+
"searchable": {"type": "boolean"},
|
|
84
|
+
"refinable": {"type": "boolean"},
|
|
85
|
+
"sortable": {"enum": [false]}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["type"]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"integer": {
|
|
94
|
+
"allOf": [
|
|
95
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
96
|
+
{ "properties": {
|
|
97
|
+
"type": { "enum":["integer"] },
|
|
98
|
+
"editor_definition":{"not":{}},
|
|
99
|
+
"values":{"not":{}},
|
|
100
|
+
"default_value":{"type":"integer"},
|
|
101
|
+
"searching":{"not":{}}
|
|
102
|
+
},
|
|
103
|
+
"required": ["type"]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"boolean": {
|
|
108
|
+
"allOf": [
|
|
109
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
110
|
+
{ "properties": {
|
|
111
|
+
"type": { "enum":["boolean"] },
|
|
112
|
+
"editor_definition":{"not":{}},
|
|
113
|
+
"values":{"not":{}},
|
|
114
|
+
"default_value":{"type":"boolean"},
|
|
115
|
+
"searching":{"not":{}}
|
|
116
|
+
},
|
|
117
|
+
"required": ["type"]
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"product": {
|
|
122
|
+
"allOf": [
|
|
123
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
124
|
+
{ "properties": {
|
|
125
|
+
"type": { "enum":["product"] },
|
|
126
|
+
"editor_definition":{"not":{}},
|
|
127
|
+
"values":{"not":{}},
|
|
128
|
+
"default_value":{"type":"string"}
|
|
129
|
+
},
|
|
130
|
+
"required": ["type"]
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"category": {
|
|
135
|
+
"allOf": [
|
|
136
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
137
|
+
{ "properties": {
|
|
138
|
+
"type": { "enum":["category"] },
|
|
139
|
+
"editor_definition":{"not":{}},
|
|
140
|
+
"values":{"not":{}},
|
|
141
|
+
"default_value":{"type":"string"}
|
|
142
|
+
},
|
|
143
|
+
"required": ["type"]
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"file": {
|
|
148
|
+
"allOf": [
|
|
149
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
150
|
+
{ "properties": {
|
|
151
|
+
"type": { "enum":["file"] },
|
|
152
|
+
"editor_definition":{"not":{}},
|
|
153
|
+
"values":{"not":{}},
|
|
154
|
+
"default_value":{"type":"string"},
|
|
155
|
+
"searching":{"not":{}}
|
|
156
|
+
},
|
|
157
|
+
"required": ["type"]
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"page": {
|
|
162
|
+
"allOf": [
|
|
163
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
164
|
+
{ "properties": {
|
|
165
|
+
"type": { "enum":["page"] },
|
|
166
|
+
"editor_definition":{"not":{}},
|
|
167
|
+
"values":{"not":{}},
|
|
168
|
+
"default_value":{"type":"string"},
|
|
169
|
+
"searching":{"not":{}}
|
|
170
|
+
},
|
|
171
|
+
"required": ["type"]
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"image": {
|
|
176
|
+
"allOf": [
|
|
177
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
178
|
+
{ "properties": {
|
|
179
|
+
"type": { "enum":["image"] },
|
|
180
|
+
"editor_definition":{"not":{}},
|
|
181
|
+
"values":{"not":{}},
|
|
182
|
+
"default_value":{"not":{}},
|
|
183
|
+
"searching":{"not":{}}
|
|
184
|
+
},
|
|
185
|
+
"required": ["type"]
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"url": {
|
|
190
|
+
"allOf": [
|
|
191
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
192
|
+
{ "properties": {
|
|
193
|
+
"type": { "enum":["url"] },
|
|
194
|
+
"editor_definition":{"not":{}},
|
|
195
|
+
"values":{"not":{}},
|
|
196
|
+
"default_value":{"type":"string"},
|
|
197
|
+
"searching":{"not":{}}
|
|
198
|
+
},
|
|
199
|
+
"required": ["type"]
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"enum_of_integer": {
|
|
204
|
+
"allOf": [
|
|
205
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
206
|
+
{ "properties": {
|
|
207
|
+
"type": { "enum":["enum"] },
|
|
208
|
+
"editor_definition":{"not":{}},
|
|
209
|
+
"values": {
|
|
210
|
+
"type": "array",
|
|
211
|
+
"minItems":1,
|
|
212
|
+
"items": {"type": "integer"}
|
|
213
|
+
},
|
|
214
|
+
"default_value":{"type":"integer"},
|
|
215
|
+
"searching":{"not":{}}
|
|
216
|
+
},
|
|
217
|
+
"required": ["type", "values"]
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
"enum_of_string": {
|
|
222
|
+
"allOf": [
|
|
223
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
224
|
+
{ "properties": {
|
|
225
|
+
"type": { "enum":["enum"] },
|
|
226
|
+
"editor_definition":{"not":{}},
|
|
227
|
+
"values": {
|
|
228
|
+
"type": "array",
|
|
229
|
+
"minItems":1,
|
|
230
|
+
"items": {"type": "string"}
|
|
231
|
+
},
|
|
232
|
+
"default_value":{"type":"string"}
|
|
233
|
+
},
|
|
234
|
+
"required": ["type", "values"]
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"custom": {
|
|
239
|
+
"allOf": [
|
|
240
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
241
|
+
{ "properties": {
|
|
242
|
+
"type": { "enum":["custom"] },
|
|
243
|
+
"editor_definition": {"$ref":"editordefinition.json#/definitions/custom"},
|
|
244
|
+
"values":{"not":{}},
|
|
245
|
+
"default_value":{"not":{}},
|
|
246
|
+
"searching": {
|
|
247
|
+
"properties": {
|
|
248
|
+
"searchable": {"type": "boolean"},
|
|
249
|
+
"refinable": { "enum": [ false ] },
|
|
250
|
+
"sortable": { "enum": [ false ] }
|
|
251
|
+
},
|
|
252
|
+
"required": ["searchable", "refinable"],
|
|
253
|
+
"additionalProperties":false
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"required": ["type"]
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"cms_record": {
|
|
261
|
+
"allOf": [
|
|
262
|
+
{ "$ref": "#/definitions/attribute_base" },
|
|
263
|
+
{ "properties": {
|
|
264
|
+
"type": { "enum":["cms_record"] },
|
|
265
|
+
"editor_definition": {"$ref":"editordefinition.json#/definitions/cms_record"},
|
|
266
|
+
"values":{"not":{}},
|
|
267
|
+
"default_value":{"not":{}},
|
|
268
|
+
"searching": {
|
|
269
|
+
"properties": {
|
|
270
|
+
"searchable": {"type": "boolean"},
|
|
271
|
+
"refinable": { "enum": [ false ] },
|
|
272
|
+
"sortable": { "enum": [ false ] }
|
|
273
|
+
},
|
|
274
|
+
"required": ["searchable", "refinable"],
|
|
275
|
+
"additionalProperties":false
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"required": ["type"]
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"type":"object",
|
|
5
|
+
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {"$ref":"common.json#/definitions/id"},
|
|
8
|
+
"name": {"$ref":"common.json#/definitions/name"},
|
|
9
|
+
"description": {"$ref":"common.json#/definitions/description"},
|
|
10
|
+
"attribute_definitions": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"oneOf": [
|
|
14
|
+
{ "$ref": "attributedefinition.json#/definitions/string" },
|
|
15
|
+
{ "$ref": "attributedefinition.json#/definitions/text" },
|
|
16
|
+
{ "$ref": "attributedefinition.json#/definitions/markup" },
|
|
17
|
+
{ "$ref": "attributedefinition.json#/definitions/integer" },
|
|
18
|
+
{ "$ref": "attributedefinition.json#/definitions/boolean" },
|
|
19
|
+
{ "$ref": "attributedefinition.json#/definitions/product" },
|
|
20
|
+
{ "$ref": "attributedefinition.json#/definitions/category" },
|
|
21
|
+
{ "$ref": "attributedefinition.json#/definitions/file" },
|
|
22
|
+
{ "$ref": "attributedefinition.json#/definitions/page" },
|
|
23
|
+
{ "$ref": "attributedefinition.json#/definitions/image" },
|
|
24
|
+
{ "$ref": "attributedefinition.json#/definitions/url" },
|
|
25
|
+
{ "$ref": "attributedefinition.json#/definitions/enum_of_integer" },
|
|
26
|
+
{ "$ref": "attributedefinition.json#/definitions/enum_of_string" },
|
|
27
|
+
{ "$ref": "attributedefinition.json#/definitions/custom" },
|
|
28
|
+
{ "$ref": "attributedefinition.json#/definitions/cms_record" }
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": ["id","attribute_definitions"],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"type":"object",
|
|
5
|
+
|
|
6
|
+
"definitions": {
|
|
7
|
+
"cms_content_type": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"id" : {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"name" : {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"attribute_definitions": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {"$ref": "attributedefinition.json"}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["id", "attribute_definitions"],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"properties": {
|
|
27
|
+
"type": {"$ref": "#/definitions/cms_content_type"},
|
|
28
|
+
"id" : {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"name" : {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"publish_date" : {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": "date-time"
|
|
37
|
+
},
|
|
38
|
+
"attributes": {
|
|
39
|
+
"type": "object"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
"required": ["id", "type", "attributes"],
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"definitions": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"pattern": "^[\\w]+$"
|
|
8
|
+
},
|
|
9
|
+
"full_qualified_id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^[\\w\\.]+$"
|
|
12
|
+
},
|
|
13
|
+
"name": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"arch_type": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": ["controller", "headless"]
|
|
22
|
+
},
|
|
23
|
+
"route": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"type":"object",
|
|
5
|
+
|
|
6
|
+
"definitions": {
|
|
7
|
+
"region_component_constructor": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"region_id": {"$ref":"common.json#/definitions/id"},
|
|
11
|
+
"component_constructors": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {"$ref": "componentconstructor.json"}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["region_id", "component_constructors"],
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
"properties": {
|
|
22
|
+
"type_id": {"$ref":"common.json#/definitions/full_qualified_id"},
|
|
23
|
+
"name": {"$ref":"common.json#/definitions/name"},
|
|
24
|
+
"region_component_constructors": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": { "$ref": "#/definitions/region_component_constructor" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": ["type_id"],
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"type":"object",
|
|
5
|
+
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {"$ref":"common.json#/definitions/name"},
|
|
8
|
+
"description": {"$ref":"common.json#/definitions/description"},
|
|
9
|
+
"arch_type": {
|
|
10
|
+
"$ref": "common.json#/definitions/arch_type"
|
|
11
|
+
},
|
|
12
|
+
"group": {"$ref":"common.json#/definitions/id"},
|
|
13
|
+
"region_definitions": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {"$ref": "regiondefinition.json"}
|
|
16
|
+
},
|
|
17
|
+
"attribute_definition_groups": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {"$ref": "attributedefinitiongroup.json"}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": ["region_definitions","attribute_definition_groups", "group"],
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"type":"object",
|
|
5
|
+
|
|
6
|
+
"properties": {
|
|
7
|
+
"visibility":{
|
|
8
|
+
"type":"array",
|
|
9
|
+
"maxItems":1,
|
|
10
|
+
"items":{"$ref":"visibilityrule.json"}
|
|
11
|
+
},
|
|
12
|
+
"data_binding": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"expressions": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"context": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"maxItems": 1,
|
|
24
|
+
"items": {
|
|
25
|
+
"$ref": "databindingcontext.json"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"type":"object",
|
|
5
|
+
|
|
6
|
+
"definitions": {
|
|
7
|
+
"resources": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"properties": {
|
|
16
|
+
"name": {"$ref": "common.json#/definitions/name"},
|
|
17
|
+
"description": {"$ref": "common.json#/definitions/description"},
|
|
18
|
+
"resources": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"styles": {"$ref":"#/definitions/resources"},
|
|
22
|
+
"scripts": {"$ref":"#/definitions/resources"}
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"pattern": "^[\\w\\-~:\\[\\]@!'*,;=]+$"
|
|
8
|
+
},
|
|
9
|
+
"type": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": [
|
|
12
|
+
"content_asset"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
|
|
4
|
+
"definitions": {
|
|
5
|
+
"custom": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"type": {"$ref":"common.json#/definitions/full_qualified_id"},
|
|
9
|
+
"configuration": {
|
|
10
|
+
"type": "object"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": ["type"],
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
},
|
|
16
|
+
"cms_record": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"content_type": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": ["content_type"],
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|