@takeshape/schema 9.43.0 → 9.46.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/schema-util.js +5 -5
- package/es/schema-util.js +5 -5
- package/examples/latest/shape-editor-schema-edited.json +1009 -0
- package/examples/latest/shape-editor-schema-initial.json +411 -0
- package/examples/source/shape-editor-schema-edited.json +1009 -0
- package/examples/source/shape-editor-schema-initial.json +411 -0
- package/package.json +5 -5
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectId": "project-id",
|
|
3
|
+
"defaultLocale": "en-us",
|
|
4
|
+
"locales": [
|
|
5
|
+
"en-us"
|
|
6
|
+
],
|
|
7
|
+
"queries": {
|
|
8
|
+
"getSimpleModelShape": {
|
|
9
|
+
"shape": "SimpleModelShape",
|
|
10
|
+
"resolver": {
|
|
11
|
+
"name": "shapedb:get",
|
|
12
|
+
"service": "shapedb",
|
|
13
|
+
"shapeName": "SimpleModelShape"
|
|
14
|
+
},
|
|
15
|
+
"description": "Get a SimpleModelShape by ID",
|
|
16
|
+
"args": "TSGetArgs<SimpleModelShape>"
|
|
17
|
+
},
|
|
18
|
+
"getSimpleModelShapeList": {
|
|
19
|
+
"shape": "PaginatedList<SimpleModelShape>",
|
|
20
|
+
"resolver": {
|
|
21
|
+
"name": "shapedb:list",
|
|
22
|
+
"service": "shapedb",
|
|
23
|
+
"shapeName": "SimpleModelShape"
|
|
24
|
+
},
|
|
25
|
+
"description": "Returns a list SimpleModelShape in natural order.",
|
|
26
|
+
"args": "TSListArgs<SimpleModelShape>"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"mutations": {
|
|
30
|
+
"updateSimpleModelShape": {
|
|
31
|
+
"shape": "UpdateResult<SimpleModelShape>",
|
|
32
|
+
"resolver": {
|
|
33
|
+
"name": "shapedb:update",
|
|
34
|
+
"service": "shapedb",
|
|
35
|
+
"shapeName": "SimpleModelShape"
|
|
36
|
+
},
|
|
37
|
+
"description": "Update SimpleModelShape",
|
|
38
|
+
"args": "UpdateArgs<SimpleModelShape>"
|
|
39
|
+
},
|
|
40
|
+
"createSimpleModelShape": {
|
|
41
|
+
"shape": "CreateResult<SimpleModelShape>",
|
|
42
|
+
"resolver": {
|
|
43
|
+
"name": "shapedb:create",
|
|
44
|
+
"service": "shapedb",
|
|
45
|
+
"shapeName": "SimpleModelShape"
|
|
46
|
+
},
|
|
47
|
+
"description": "Create SimpleModelShape",
|
|
48
|
+
"args": "CreateArgs<SimpleModelShape>"
|
|
49
|
+
},
|
|
50
|
+
"duplicateSimpleModelShape": {
|
|
51
|
+
"shape": "DuplicateResult<SimpleModelShape>",
|
|
52
|
+
"resolver": {
|
|
53
|
+
"name": "shapedb:duplicate",
|
|
54
|
+
"service": "shapedb",
|
|
55
|
+
"shapeName": "SimpleModelShape"
|
|
56
|
+
},
|
|
57
|
+
"description": "Duplicate SimpleModelShape",
|
|
58
|
+
"args": "DuplicateArgs<SimpleModelShape>"
|
|
59
|
+
},
|
|
60
|
+
"deleteSimpleModelShape": {
|
|
61
|
+
"shape": "DeleteResult<SimpleModelShape>",
|
|
62
|
+
"resolver": {
|
|
63
|
+
"name": "shapedb:delete",
|
|
64
|
+
"service": "shapedb",
|
|
65
|
+
"shapeName": "SimpleModelShape"
|
|
66
|
+
},
|
|
67
|
+
"description": "Delete SimpleModelShape",
|
|
68
|
+
"args": "DeleteArgs<SimpleModelShape>"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"shapes": {
|
|
72
|
+
"SimpleModelShape": {
|
|
73
|
+
"id": "i-vXlSXcy",
|
|
74
|
+
"name": "SimpleModelShape",
|
|
75
|
+
"title": "Simple Model Shape",
|
|
76
|
+
"model": {
|
|
77
|
+
"type": "multiple"
|
|
78
|
+
},
|
|
79
|
+
"schema": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"string": {
|
|
83
|
+
"title": "String",
|
|
84
|
+
"@mapping": "shapedb:SimpleModelShape.lQD21lQqU",
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"AnotherModelShape": {
|
|
91
|
+
"id": "ddpiQuK-q",
|
|
92
|
+
"name": "AnotherModelShape",
|
|
93
|
+
"title": "Another Model Shape",
|
|
94
|
+
"schema": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"string": {
|
|
98
|
+
"title": "String",
|
|
99
|
+
"@mapping": "shapedb:AnotherModelShape.RaZoSYFedN",
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"ShapeName": {
|
|
106
|
+
"id": "ue503SXd0",
|
|
107
|
+
"name": "ShapeName",
|
|
108
|
+
"title": "Shape Name",
|
|
109
|
+
"description": "Shape Description",
|
|
110
|
+
"schema": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"string": {
|
|
114
|
+
"description": "String Property Description",
|
|
115
|
+
"title": "String",
|
|
116
|
+
"@mapping": "shapedb:ShapeName.WVfvfgbgd",
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"stringArray": {
|
|
120
|
+
"description": "String Array Property Description",
|
|
121
|
+
"title": "String Array",
|
|
122
|
+
"@mapping": "shapedb:ShapeName.oQD4ein6E",
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"oneOf": [
|
|
127
|
+
{
|
|
128
|
+
"title": "Option 1",
|
|
129
|
+
"enum": [
|
|
130
|
+
"option1"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"title": "Option 2",
|
|
135
|
+
"enum": [
|
|
136
|
+
"option2"
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"number": {
|
|
143
|
+
"description": "Number Property Description",
|
|
144
|
+
"title": "Number",
|
|
145
|
+
"@mapping": "shapedb:ShapeName.xPCinkAW_",
|
|
146
|
+
"type": "number"
|
|
147
|
+
},
|
|
148
|
+
"numberArray": {
|
|
149
|
+
"description": "Number Array Property Description",
|
|
150
|
+
"title": "Number Array",
|
|
151
|
+
"@mapping": "shapedb:ShapeName.QOrnD6cO2",
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": {
|
|
154
|
+
"type": "number",
|
|
155
|
+
"oneOf": [
|
|
156
|
+
{
|
|
157
|
+
"title": "Option 1",
|
|
158
|
+
"enum": [
|
|
159
|
+
1
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"title": "Option 2",
|
|
164
|
+
"enum": [
|
|
165
|
+
2
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"boolean": {
|
|
172
|
+
"description": "Boolean Property Description",
|
|
173
|
+
"title": "Boolean",
|
|
174
|
+
"@mapping": "shapedb:ShapeName.XcXeUywkw",
|
|
175
|
+
"type": "boolean"
|
|
176
|
+
},
|
|
177
|
+
"booleanArray": {
|
|
178
|
+
"description": "Boolean Array Property Description",
|
|
179
|
+
"title": "Boolean Array",
|
|
180
|
+
"@mapping": "shapedb:ShapeName.6u6CBFKhm",
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "boolean",
|
|
184
|
+
"oneOf": [
|
|
185
|
+
{
|
|
186
|
+
"title": "Option 1",
|
|
187
|
+
"enum": [
|
|
188
|
+
true
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"title": "Option 2",
|
|
193
|
+
"enum": [
|
|
194
|
+
false
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"objectInline": {
|
|
201
|
+
"title": "Object Inline",
|
|
202
|
+
"description": "Object (Inline) Property Description",
|
|
203
|
+
"@mapping": "shapedb:ShapeName.Xk7oyCNyL",
|
|
204
|
+
"@ref": "local:ShapeName"
|
|
205
|
+
},
|
|
206
|
+
"objectColor": {
|
|
207
|
+
"title": "Object Color",
|
|
208
|
+
"description": "Object (Color) Property Description",
|
|
209
|
+
"@mapping": "shapedb:ShapeName.GroCYl79P",
|
|
210
|
+
"@ref": "local:TSColor"
|
|
211
|
+
},
|
|
212
|
+
"objectRelationship": {
|
|
213
|
+
"title": "Object Relationship",
|
|
214
|
+
"description": "Object (Relationship) Property Description",
|
|
215
|
+
"@args": "TSRelationshipArgs",
|
|
216
|
+
"@resolver": {
|
|
217
|
+
"name": "shapedb:getRelated",
|
|
218
|
+
"service": "shapedb",
|
|
219
|
+
"options": {
|
|
220
|
+
"nullable": true
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"@ref": "local:SimpleModelShape",
|
|
224
|
+
"@input": {
|
|
225
|
+
"@ref": "local:TSRelationship"
|
|
226
|
+
},
|
|
227
|
+
"@mapping": "shapedb:ShapeName.dfcWGFReW"
|
|
228
|
+
},
|
|
229
|
+
"objectArrayInline": {
|
|
230
|
+
"title": "Object Array Inline",
|
|
231
|
+
"description": "Object Array (Inline) Property Description",
|
|
232
|
+
"@mapping": "shapedb:ShapeName.5lim_VWk0",
|
|
233
|
+
"type": "array",
|
|
234
|
+
"items": {
|
|
235
|
+
"@ref": "local:ShapeName"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"objectArrayColor": {
|
|
239
|
+
"title": "Object Array Color",
|
|
240
|
+
"description": "Object Array (Color) Property Description",
|
|
241
|
+
"@mapping": "shapedb:ShapeName.7ViqKYMBd",
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"@ref": "local:TSColor"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"objectArrayRelationship": {
|
|
248
|
+
"title": "Object Array Relationship",
|
|
249
|
+
"description": "Object Array (Relationship) Property Description",
|
|
250
|
+
"@args": "TSRelationshipArgs",
|
|
251
|
+
"@resolver": {
|
|
252
|
+
"name": "shapedb:getRelated",
|
|
253
|
+
"service": "shapedb",
|
|
254
|
+
"options": {
|
|
255
|
+
"nullable": true
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"type": "array",
|
|
259
|
+
"items": {
|
|
260
|
+
"@ref": "local:SimpleModelShape"
|
|
261
|
+
},
|
|
262
|
+
"@input": {
|
|
263
|
+
"type": "array",
|
|
264
|
+
"items": {
|
|
265
|
+
"@ref": "local:TSRelationship"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"@mapping": "shapedb:ShapeName.jmvFNnBcL"
|
|
269
|
+
},
|
|
270
|
+
"asset": {
|
|
271
|
+
"title": "Asset",
|
|
272
|
+
"description": "Asset Property Description",
|
|
273
|
+
"@args": "TSRelationshipArgs",
|
|
274
|
+
"@resolver": {
|
|
275
|
+
"name": "shapedb:getRelated",
|
|
276
|
+
"service": "shapedb",
|
|
277
|
+
"options": {
|
|
278
|
+
"nullable": true
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"@ref": "local:Asset",
|
|
282
|
+
"@input": {
|
|
283
|
+
"@ref": "local:TSRelationship"
|
|
284
|
+
},
|
|
285
|
+
"@mapping": "shapedb:ShapeName.XL_Q4-PSv"
|
|
286
|
+
},
|
|
287
|
+
"assetArray": {
|
|
288
|
+
"title": "Asset Array",
|
|
289
|
+
"description": "Asset Array Property Description",
|
|
290
|
+
"@args": "TSRelationshipArgs",
|
|
291
|
+
"@resolver": {
|
|
292
|
+
"name": "shapedb:getRelated",
|
|
293
|
+
"service": "shapedb",
|
|
294
|
+
"options": {
|
|
295
|
+
"nullable": true
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"type": "array",
|
|
299
|
+
"items": {
|
|
300
|
+
"@ref": "local:Asset"
|
|
301
|
+
},
|
|
302
|
+
"@input": {
|
|
303
|
+
"type": "array",
|
|
304
|
+
"items": {
|
|
305
|
+
"@ref": "local:TSRelationship"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"@mapping": "shapedb:ShapeName.6xdYCAdKu"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"workflows": {},
|
|
315
|
+
"forms": {
|
|
316
|
+
"SimpleModelShape": {
|
|
317
|
+
"default": {
|
|
318
|
+
"properties": {
|
|
319
|
+
"string": {
|
|
320
|
+
"widget": "singleLineText"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"order": [
|
|
324
|
+
"string"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"AnotherModelShape": {
|
|
329
|
+
"default": {
|
|
330
|
+
"properties": {
|
|
331
|
+
"string": {
|
|
332
|
+
"widget": "singleLineText"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"order": [
|
|
336
|
+
"string"
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"ShapeName": {
|
|
341
|
+
"default": {
|
|
342
|
+
"properties": {
|
|
343
|
+
"string": {
|
|
344
|
+
"widget": "singleLineText"
|
|
345
|
+
},
|
|
346
|
+
"stringArray": {
|
|
347
|
+
"widget": "checkboxes"
|
|
348
|
+
},
|
|
349
|
+
"number": {
|
|
350
|
+
"widget": "number"
|
|
351
|
+
},
|
|
352
|
+
"numberArray": {
|
|
353
|
+
"widget": "numberCheckboxes"
|
|
354
|
+
},
|
|
355
|
+
"boolean": {
|
|
356
|
+
"widget": "checkbox"
|
|
357
|
+
},
|
|
358
|
+
"booleanArray": {
|
|
359
|
+
"widget": "booleanCheckboxes"
|
|
360
|
+
},
|
|
361
|
+
"objectInline": {
|
|
362
|
+
"widget": "shapeObject"
|
|
363
|
+
},
|
|
364
|
+
"objectColor": {
|
|
365
|
+
"widget": "color"
|
|
366
|
+
},
|
|
367
|
+
"objectRelationship": {
|
|
368
|
+
"widget": "relationship"
|
|
369
|
+
},
|
|
370
|
+
"objectArrayInline": {
|
|
371
|
+
"widget": "shapeArray"
|
|
372
|
+
},
|
|
373
|
+
"objectArrayColor": {
|
|
374
|
+
"items": {
|
|
375
|
+
"widget": "color"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"objectArrayRelationship": {
|
|
379
|
+
"widget": "relationship"
|
|
380
|
+
},
|
|
381
|
+
"asset": {
|
|
382
|
+
"widget": "image"
|
|
383
|
+
},
|
|
384
|
+
"assetArray": {
|
|
385
|
+
"items": {
|
|
386
|
+
"widget": "image"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"order": [
|
|
391
|
+
"string",
|
|
392
|
+
"stringArray",
|
|
393
|
+
"number",
|
|
394
|
+
"numberArray",
|
|
395
|
+
"boolean",
|
|
396
|
+
"booleanArray",
|
|
397
|
+
"objectInline",
|
|
398
|
+
"objectColor",
|
|
399
|
+
"objectRelationship",
|
|
400
|
+
"objectArrayInline",
|
|
401
|
+
"objectArrayColor",
|
|
402
|
+
"objectArrayRelationship",
|
|
403
|
+
"asset",
|
|
404
|
+
"assetArray"
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"schemaVersion": "3.33.0",
|
|
410
|
+
"apiVersion": "2"
|
|
411
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.46.0",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"p-reduce": "^2.1.0",
|
|
29
29
|
"semver": "^7.3.2",
|
|
30
30
|
"tiny-invariant": "^1.2.0",
|
|
31
|
-
"@takeshape/
|
|
32
|
-
"@takeshape/
|
|
33
|
-
"@takeshape/
|
|
31
|
+
"@takeshape/json-schema": "9.46.0",
|
|
32
|
+
"@takeshape/util": "9.46.0",
|
|
33
|
+
"@takeshape/errors": "9.46.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"meow": "^9.0.0",
|
|
47
47
|
"p-map": "^5.0.0",
|
|
48
48
|
"shortid": "^2.2.15",
|
|
49
|
-
"@takeshape/typescript-jest-junit-reporter": "9.
|
|
49
|
+
"@takeshape/typescript-jest-junit-reporter": "9.46.0"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=16"
|