@takeshape/schema 9.73.0 → 9.74.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/refs.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ export declare function propertyRefToArgs(projectSchema: ProjectSchemaJSON, ref:
|
|
|
208
208
|
* Get a ref to the given shape.
|
|
209
209
|
*/
|
|
210
210
|
export declare function shapeNameToRef(context: ServicesContext, shapeName: string): string;
|
|
211
|
+
export declare function normalizeLocalRefString(ref: string): string;
|
|
211
212
|
export declare function getAllPropertyRefs(projectSchema: ProjectSchemaJSON): PropertyRefItem[];
|
|
212
213
|
export interface QueryEntry {
|
|
213
214
|
name: string;
|
package/dist/refs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../src/refs.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,GAAG,EACH,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,KAAK,EAA4C,MAAM,iBAAiB,CAAC;AAoBjF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,QAAQ,CAAC,CAAC;AAEnF;;;;GAIG;AACH,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS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AG,MAAM,EAAE,CASjG;AAED,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,CAM9G;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAEzE;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,GAAG,eAAe,EAAE,CAatF;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,GAAG,EAAE,eAAe,CAAC;CACtB;AACD,wBAAgB,QAAQ,CAAC,aAAa,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,CAU9F;AAED,wBAAgB,WAAW,CAAC,aAAa,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO1F"}
|
package/dist/refs.js
CHANGED
|
@@ -25,6 +25,7 @@ exports.hasRef = hasRef;
|
|
|
25
25
|
exports.hasRefProperty = hasRefProperty;
|
|
26
26
|
exports.hasResolvableRef = hasResolvableRef;
|
|
27
27
|
exports.isRefItemWithPath = isRefItemWithPath;
|
|
28
|
+
exports.normalizeLocalRefString = normalizeLocalRefString;
|
|
28
29
|
exports.omitRefAndExtend = void 0;
|
|
29
30
|
exports.parseName = parseName;
|
|
30
31
|
exports.parsePropertyRef = parsePropertyRef;
|
|
@@ -740,6 +741,10 @@ function shapeNameToRef(context, shapeName) {
|
|
|
740
741
|
return refItemToAtRef(shapeNameToRefItem(context, shapeName));
|
|
741
742
|
}
|
|
742
743
|
|
|
744
|
+
function normalizeLocalRefString(ref) {
|
|
745
|
+
return ref.startsWith('local:') ? ref.substring(6) : ref;
|
|
746
|
+
}
|
|
747
|
+
|
|
743
748
|
function getAllPropertyRefs(projectSchema) {
|
|
744
749
|
const result = [];
|
|
745
750
|
(0, _util.visit)(projectSchema, ['to'], (value, path) => {
|
package/es/refs.js
CHANGED
|
@@ -620,6 +620,9 @@ export function propertyRefToArgs(projectSchema, ref) {
|
|
|
620
620
|
export function shapeNameToRef(context, shapeName) {
|
|
621
621
|
return refItemToAtRef(shapeNameToRefItem(context, shapeName));
|
|
622
622
|
}
|
|
623
|
+
export function normalizeLocalRefString(ref) {
|
|
624
|
+
return ref.startsWith('local:') ? ref.substring(6) : ref;
|
|
625
|
+
}
|
|
623
626
|
export function getAllPropertyRefs(projectSchema) {
|
|
624
627
|
const result = [];
|
|
625
628
|
visit(projectSchema, ['to'], (value, path) => {
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectId": "project-id",
|
|
3
|
+
"defaultLocale": "en-us",
|
|
4
|
+
"locales": ["en-us"],
|
|
5
|
+
"queries": {
|
|
6
|
+
"getObjectArrayShape": {
|
|
7
|
+
"shape": "ObjectArrayShape",
|
|
8
|
+
"resolver": {
|
|
9
|
+
"name": "shapedb:get",
|
|
10
|
+
"service": "shapedb",
|
|
11
|
+
"shapeName": "ObjectArrayShape"
|
|
12
|
+
},
|
|
13
|
+
"description": "Get a ObjectArrayShape by ID",
|
|
14
|
+
"args": "TSGetArgs<ObjectArrayShape>"
|
|
15
|
+
},
|
|
16
|
+
"getObjectArrayShapeList": {
|
|
17
|
+
"shape": "PaginatedList<ObjectArrayShape>",
|
|
18
|
+
"resolver": {
|
|
19
|
+
"name": "shapedb:list",
|
|
20
|
+
"service": "shapedb",
|
|
21
|
+
"shapeName": "ObjectArrayShape"
|
|
22
|
+
},
|
|
23
|
+
"description": "Returns a list ObjectArrayShape in natural order.",
|
|
24
|
+
"args": "TSListArgs<ObjectArrayShape>"
|
|
25
|
+
},
|
|
26
|
+
"getObjectShape": {
|
|
27
|
+
"shape": "ObjectShape",
|
|
28
|
+
"resolver": {
|
|
29
|
+
"name": "shapedb:get",
|
|
30
|
+
"service": "shapedb",
|
|
31
|
+
"shapeName": "ObjectShape"
|
|
32
|
+
},
|
|
33
|
+
"description": "Get a ObjectShape by ID",
|
|
34
|
+
"args": "TSGetArgs<ObjectShape>"
|
|
35
|
+
},
|
|
36
|
+
"getObjectShapeList": {
|
|
37
|
+
"shape": "PaginatedList<ObjectShape>",
|
|
38
|
+
"resolver": {
|
|
39
|
+
"name": "shapedb:list",
|
|
40
|
+
"service": "shapedb",
|
|
41
|
+
"shapeName": "ObjectShape"
|
|
42
|
+
},
|
|
43
|
+
"description": "Returns a list ObjectShape in natural order.",
|
|
44
|
+
"args": "TSListArgs<ObjectShape>"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"mutations": {
|
|
48
|
+
"updateObjectArrayShape": {
|
|
49
|
+
"shape": "UpdateResult<ObjectArrayShape>",
|
|
50
|
+
"resolver": {
|
|
51
|
+
"name": "shapedb:update",
|
|
52
|
+
"service": "shapedb",
|
|
53
|
+
"shapeName": "ObjectArrayShape"
|
|
54
|
+
},
|
|
55
|
+
"description": "Update ObjectArrayShape",
|
|
56
|
+
"args": "UpdateArgs<ObjectArrayShape>"
|
|
57
|
+
},
|
|
58
|
+
"createObjectArrayShape": {
|
|
59
|
+
"shape": "CreateResult<ObjectArrayShape>",
|
|
60
|
+
"resolver": {
|
|
61
|
+
"name": "shapedb:create",
|
|
62
|
+
"service": "shapedb",
|
|
63
|
+
"shapeName": "ObjectArrayShape"
|
|
64
|
+
},
|
|
65
|
+
"description": "Create ObjectArrayShape",
|
|
66
|
+
"args": "CreateArgs<ObjectArrayShape>"
|
|
67
|
+
},
|
|
68
|
+
"duplicateObjectArrayShape": {
|
|
69
|
+
"shape": "DuplicateResult<ObjectArrayShape>",
|
|
70
|
+
"resolver": {
|
|
71
|
+
"name": "shapedb:duplicate",
|
|
72
|
+
"service": "shapedb",
|
|
73
|
+
"shapeName": "ObjectArrayShape"
|
|
74
|
+
},
|
|
75
|
+
"description": "Duplicate ObjectArrayShape",
|
|
76
|
+
"args": "DuplicateArgs<ObjectArrayShape>"
|
|
77
|
+
},
|
|
78
|
+
"deleteObjectArrayShape": {
|
|
79
|
+
"shape": "DeleteResult<ObjectArrayShape>",
|
|
80
|
+
"resolver": {
|
|
81
|
+
"name": "shapedb:delete",
|
|
82
|
+
"service": "shapedb",
|
|
83
|
+
"shapeName": "ObjectArrayShape"
|
|
84
|
+
},
|
|
85
|
+
"description": "Delete ObjectArrayShape",
|
|
86
|
+
"args": "DeleteArgs<ObjectArrayShape>"
|
|
87
|
+
},
|
|
88
|
+
"updateObjectShape": {
|
|
89
|
+
"shape": "UpdateResult<ObjectShape>",
|
|
90
|
+
"resolver": {
|
|
91
|
+
"name": "shapedb:update",
|
|
92
|
+
"service": "shapedb",
|
|
93
|
+
"shapeName": "ObjectShape"
|
|
94
|
+
},
|
|
95
|
+
"description": "Update ObjectShape",
|
|
96
|
+
"args": "UpdateArgs<ObjectShape>"
|
|
97
|
+
},
|
|
98
|
+
"createObjectShape": {
|
|
99
|
+
"shape": "CreateResult<ObjectShape>",
|
|
100
|
+
"resolver": {
|
|
101
|
+
"name": "shapedb:create",
|
|
102
|
+
"service": "shapedb",
|
|
103
|
+
"shapeName": "ObjectShape"
|
|
104
|
+
},
|
|
105
|
+
"description": "Create ObjectShape",
|
|
106
|
+
"args": "CreateArgs<ObjectShape>"
|
|
107
|
+
},
|
|
108
|
+
"duplicateObjectShape": {
|
|
109
|
+
"shape": "DuplicateResult<ObjectShape>",
|
|
110
|
+
"resolver": {
|
|
111
|
+
"name": "shapedb:duplicate",
|
|
112
|
+
"service": "shapedb",
|
|
113
|
+
"shapeName": "ObjectShape"
|
|
114
|
+
},
|
|
115
|
+
"description": "Duplicate ObjectShape",
|
|
116
|
+
"args": "DuplicateArgs<ObjectShape>"
|
|
117
|
+
},
|
|
118
|
+
"deleteObjectShape": {
|
|
119
|
+
"shape": "DeleteResult<ObjectShape>",
|
|
120
|
+
"resolver": {
|
|
121
|
+
"name": "shapedb:delete",
|
|
122
|
+
"service": "shapedb",
|
|
123
|
+
"shapeName": "ObjectShape"
|
|
124
|
+
},
|
|
125
|
+
"description": "Delete ObjectShape",
|
|
126
|
+
"args": "DeleteArgs<ObjectShape>"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"shapes": {
|
|
130
|
+
"StringShape": {
|
|
131
|
+
"id": "xMudoRshw",
|
|
132
|
+
"name": "StringShape",
|
|
133
|
+
"title": "String Shape",
|
|
134
|
+
"schema": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"string": {
|
|
138
|
+
"@mapping": "shapedb:StringShape.vzpBKjWYf",
|
|
139
|
+
"type": "string",
|
|
140
|
+
"title": "String"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"NumberShape": {
|
|
146
|
+
"id": "mMX_rYqS3",
|
|
147
|
+
"name": "NumberShape",
|
|
148
|
+
"title": "Number Shape",
|
|
149
|
+
"schema": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"number": {
|
|
153
|
+
"@mapping": "shapedb:NumberShape.ip_3_W7H1",
|
|
154
|
+
"type": "number",
|
|
155
|
+
"title": "Number"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"BooleanShape": {
|
|
161
|
+
"id": "UIxzqVmvO",
|
|
162
|
+
"name": "BooleanShape",
|
|
163
|
+
"title": "Boolean Shape",
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"boolean": {
|
|
168
|
+
"default": true,
|
|
169
|
+
"@mapping": "shapedb:BooleanShape.kYoprpPFC",
|
|
170
|
+
"type": "boolean",
|
|
171
|
+
"title": "Boolean"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"NumberArrayShape": {
|
|
177
|
+
"id": "e5bZUWbjz",
|
|
178
|
+
"name": "NumberArrayShape",
|
|
179
|
+
"title": "Number Array Shape",
|
|
180
|
+
"schema": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"properties": {
|
|
183
|
+
"numberArray": {
|
|
184
|
+
"@mapping": "shapedb:NumberArrayShape.IumyMw9JE",
|
|
185
|
+
"type": "array",
|
|
186
|
+
"items": {
|
|
187
|
+
"type": "number",
|
|
188
|
+
"oneOf": [
|
|
189
|
+
{"title": "Option 1", "enum": [1]},
|
|
190
|
+
{"title": "Option 2", "enum": [2]}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"title": "Number Array"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"BooleanArrayShape": {
|
|
199
|
+
"id": "yI6cpWGYj",
|
|
200
|
+
"name": "BooleanArrayShape",
|
|
201
|
+
"title": "Boolean Array Shape",
|
|
202
|
+
"schema": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"properties": {
|
|
205
|
+
"booleanArray": {
|
|
206
|
+
"@mapping": "shapedb:BooleanArrayShape.QttNfT72Z",
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": {
|
|
209
|
+
"type": "boolean",
|
|
210
|
+
"oneOf": [
|
|
211
|
+
{"title": "Option 1", "enum": [true]},
|
|
212
|
+
{"title": "Option 2", "enum": [false]}
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"title": "Boolean Array"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"StringArrayShape": {
|
|
221
|
+
"id": "8zYlvw-UX",
|
|
222
|
+
"name": "StringArrayShape",
|
|
223
|
+
"title": "String Array Shape",
|
|
224
|
+
"schema": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"stringArray": {
|
|
228
|
+
"@mapping": "shapedb:StringArrayShape.on89GB8Pn",
|
|
229
|
+
"type": "array",
|
|
230
|
+
"items": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"oneOf": [
|
|
233
|
+
{"title": "Option 1", "enum": ["option1"]},
|
|
234
|
+
{"title": "Option 2", "enum": ["option2"]}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"title": "String Array"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"AssetShape": {
|
|
243
|
+
"id": "p-p1wiTdJ",
|
|
244
|
+
"name": "AssetShape",
|
|
245
|
+
"title": "Asset Shape",
|
|
246
|
+
"schema": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"asset": {
|
|
250
|
+
"@args": "TSRelationshipArgs",
|
|
251
|
+
"@resolver": {
|
|
252
|
+
"name": "shapedb:getRelated",
|
|
253
|
+
"service": "shapedb",
|
|
254
|
+
"options": {"nullable": true}
|
|
255
|
+
},
|
|
256
|
+
"@mapping": "shapedb:AssetShape.LJ-zq8YqQ",
|
|
257
|
+
"title": "Asset",
|
|
258
|
+
"@ref": "local:Asset",
|
|
259
|
+
"@input": {"@ref": "local:TSRelationship"}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"AssetArrayShape": {
|
|
265
|
+
"id": "8wSbqqc-H",
|
|
266
|
+
"name": "AssetArrayShape",
|
|
267
|
+
"title": "Asset Array Shape",
|
|
268
|
+
"schema": {
|
|
269
|
+
"type": "object",
|
|
270
|
+
"properties": {
|
|
271
|
+
"assetArray": {
|
|
272
|
+
"@args": "TSRelationshipArgs",
|
|
273
|
+
"@resolver": {
|
|
274
|
+
"name": "shapedb:getRelated",
|
|
275
|
+
"service": "shapedb",
|
|
276
|
+
"options": {"nullable": true}
|
|
277
|
+
},
|
|
278
|
+
"type": "array",
|
|
279
|
+
"@mapping": "shapedb:AssetArrayShape.WkzdxMYIe",
|
|
280
|
+
"title": "Asset Array",
|
|
281
|
+
"items": {"@ref": "local:Asset"},
|
|
282
|
+
"@input": {
|
|
283
|
+
"type": "array",
|
|
284
|
+
"items": {"@ref": "local:TSRelationship"}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"ObjectShape": {
|
|
291
|
+
"id": "JuazMflZQ",
|
|
292
|
+
"name": "ObjectShape",
|
|
293
|
+
"title": "Object Shape",
|
|
294
|
+
"model": {"type": "multiple"},
|
|
295
|
+
"schema": {
|
|
296
|
+
"type": "object",
|
|
297
|
+
"properties": {
|
|
298
|
+
"object": {
|
|
299
|
+
"@mapping": "shapedb:ObjectShape.VWL0IZj8d",
|
|
300
|
+
"title": "Object",
|
|
301
|
+
"type": "object"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"ObjectArrayShape": {
|
|
307
|
+
"id": "VOhVoCmEH",
|
|
308
|
+
"name": "ObjectArrayShape",
|
|
309
|
+
"title": "Object Array Shape",
|
|
310
|
+
"model": {"type": "multiple"},
|
|
311
|
+
"schema": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"properties": {
|
|
314
|
+
"objectArray": {
|
|
315
|
+
"@mapping": "shapedb:ObjectArrayShape.ibjPjelG_",
|
|
316
|
+
"type": "array",
|
|
317
|
+
"title": "Object Array",
|
|
318
|
+
"items": {"type": "object"}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"workflows": {},
|
|
325
|
+
"forms": {
|
|
326
|
+
"StringShape": {
|
|
327
|
+
"default": {
|
|
328
|
+
"properties": {"string": {"widget": "singleLineText"}},
|
|
329
|
+
"order": ["string"]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"NumberShape": {
|
|
333
|
+
"default": {
|
|
334
|
+
"properties": {"number": {"widget": "number"}},
|
|
335
|
+
"order": ["number"]
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"BooleanShape": {
|
|
339
|
+
"default": {
|
|
340
|
+
"properties": {"boolean": {"widget": "checkbox"}},
|
|
341
|
+
"order": ["boolean"]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"NumberArrayShape": {
|
|
345
|
+
"default": {
|
|
346
|
+
"properties": {"numberArray": {"widget": "numberCheckboxes"}},
|
|
347
|
+
"order": ["numberArray"]
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"BooleanArrayShape": {
|
|
351
|
+
"default": {
|
|
352
|
+
"properties": {"booleanArray": {"widget": "booleanCheckboxes"}},
|
|
353
|
+
"order": ["booleanArray"]
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"StringArrayShape": {
|
|
357
|
+
"default": {
|
|
358
|
+
"properties": {"stringArray": {"widget": "checkboxes"}},
|
|
359
|
+
"order": ["stringArray"]
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"AssetShape": {
|
|
363
|
+
"default": {
|
|
364
|
+
"properties": {"asset": {"widget": "image"}},
|
|
365
|
+
"order": ["asset"]
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"AssetArrayShape": {
|
|
369
|
+
"default": {
|
|
370
|
+
"properties": {"assetArray": {"items": {"widget": "image"}}},
|
|
371
|
+
"order": ["assetArray"]
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"ObjectShape": {
|
|
375
|
+
"default": {
|
|
376
|
+
"properties": {"object": {"widget": "shapeObject"}},
|
|
377
|
+
"order": ["object"]
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"ObjectArrayShape": {
|
|
381
|
+
"default": {
|
|
382
|
+
"properties": {"objectArray": {"widget": "shapeArray"}},
|
|
383
|
+
"order": ["objectArray"]
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"schemaVersion": "3.39.0",
|
|
388
|
+
"apiVersion": "2"
|
|
389
|
+
}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectId": "project-id",
|
|
3
|
+
"defaultLocale": "en-us",
|
|
4
|
+
"locales": ["en-us"],
|
|
5
|
+
"queries": {
|
|
6
|
+
"getObjectArrayShape": {
|
|
7
|
+
"shape": "ObjectArrayShape",
|
|
8
|
+
"resolver": {
|
|
9
|
+
"name": "shapedb:get",
|
|
10
|
+
"service": "shapedb",
|
|
11
|
+
"shapeName": "ObjectArrayShape"
|
|
12
|
+
},
|
|
13
|
+
"description": "Get a ObjectArrayShape by ID",
|
|
14
|
+
"args": "TSGetArgs<ObjectArrayShape>"
|
|
15
|
+
},
|
|
16
|
+
"getObjectArrayShapeList": {
|
|
17
|
+
"shape": "PaginatedList<ObjectArrayShape>",
|
|
18
|
+
"resolver": {
|
|
19
|
+
"name": "shapedb:list",
|
|
20
|
+
"service": "shapedb",
|
|
21
|
+
"shapeName": "ObjectArrayShape"
|
|
22
|
+
},
|
|
23
|
+
"description": "Returns a list ObjectArrayShape in natural order.",
|
|
24
|
+
"args": "TSListArgs<ObjectArrayShape>"
|
|
25
|
+
},
|
|
26
|
+
"getObjectShape": {
|
|
27
|
+
"shape": "ObjectShape",
|
|
28
|
+
"resolver": {
|
|
29
|
+
"name": "shapedb:get",
|
|
30
|
+
"service": "shapedb",
|
|
31
|
+
"shapeName": "ObjectShape"
|
|
32
|
+
},
|
|
33
|
+
"description": "Get a ObjectShape by ID",
|
|
34
|
+
"args": "TSGetArgs<ObjectShape>"
|
|
35
|
+
},
|
|
36
|
+
"getObjectShapeList": {
|
|
37
|
+
"shape": "PaginatedList<ObjectShape>",
|
|
38
|
+
"resolver": {
|
|
39
|
+
"name": "shapedb:list",
|
|
40
|
+
"service": "shapedb",
|
|
41
|
+
"shapeName": "ObjectShape"
|
|
42
|
+
},
|
|
43
|
+
"description": "Returns a list ObjectShape in natural order.",
|
|
44
|
+
"args": "TSListArgs<ObjectShape>"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"mutations": {
|
|
48
|
+
"updateObjectArrayShape": {
|
|
49
|
+
"shape": "UpdateResult<ObjectArrayShape>",
|
|
50
|
+
"resolver": {
|
|
51
|
+
"name": "shapedb:update",
|
|
52
|
+
"service": "shapedb",
|
|
53
|
+
"shapeName": "ObjectArrayShape"
|
|
54
|
+
},
|
|
55
|
+
"description": "Update ObjectArrayShape",
|
|
56
|
+
"args": "UpdateArgs<ObjectArrayShape>"
|
|
57
|
+
},
|
|
58
|
+
"createObjectArrayShape": {
|
|
59
|
+
"shape": "CreateResult<ObjectArrayShape>",
|
|
60
|
+
"resolver": {
|
|
61
|
+
"name": "shapedb:create",
|
|
62
|
+
"service": "shapedb",
|
|
63
|
+
"shapeName": "ObjectArrayShape"
|
|
64
|
+
},
|
|
65
|
+
"description": "Create ObjectArrayShape",
|
|
66
|
+
"args": "CreateArgs<ObjectArrayShape>"
|
|
67
|
+
},
|
|
68
|
+
"duplicateObjectArrayShape": {
|
|
69
|
+
"shape": "DuplicateResult<ObjectArrayShape>",
|
|
70
|
+
"resolver": {
|
|
71
|
+
"name": "shapedb:duplicate",
|
|
72
|
+
"service": "shapedb",
|
|
73
|
+
"shapeName": "ObjectArrayShape"
|
|
74
|
+
},
|
|
75
|
+
"description": "Duplicate ObjectArrayShape",
|
|
76
|
+
"args": "DuplicateArgs<ObjectArrayShape>"
|
|
77
|
+
},
|
|
78
|
+
"deleteObjectArrayShape": {
|
|
79
|
+
"shape": "DeleteResult<ObjectArrayShape>",
|
|
80
|
+
"resolver": {
|
|
81
|
+
"name": "shapedb:delete",
|
|
82
|
+
"service": "shapedb",
|
|
83
|
+
"shapeName": "ObjectArrayShape"
|
|
84
|
+
},
|
|
85
|
+
"description": "Delete ObjectArrayShape",
|
|
86
|
+
"args": "DeleteArgs<ObjectArrayShape>"
|
|
87
|
+
},
|
|
88
|
+
"updateObjectShape": {
|
|
89
|
+
"shape": "UpdateResult<ObjectShape>",
|
|
90
|
+
"resolver": {
|
|
91
|
+
"name": "shapedb:update",
|
|
92
|
+
"service": "shapedb",
|
|
93
|
+
"shapeName": "ObjectShape"
|
|
94
|
+
},
|
|
95
|
+
"description": "Update ObjectShape",
|
|
96
|
+
"args": "UpdateArgs<ObjectShape>"
|
|
97
|
+
},
|
|
98
|
+
"createObjectShape": {
|
|
99
|
+
"shape": "CreateResult<ObjectShape>",
|
|
100
|
+
"resolver": {
|
|
101
|
+
"name": "shapedb:create",
|
|
102
|
+
"service": "shapedb",
|
|
103
|
+
"shapeName": "ObjectShape"
|
|
104
|
+
},
|
|
105
|
+
"description": "Create ObjectShape",
|
|
106
|
+
"args": "CreateArgs<ObjectShape>"
|
|
107
|
+
},
|
|
108
|
+
"duplicateObjectShape": {
|
|
109
|
+
"shape": "DuplicateResult<ObjectShape>",
|
|
110
|
+
"resolver": {
|
|
111
|
+
"name": "shapedb:duplicate",
|
|
112
|
+
"service": "shapedb",
|
|
113
|
+
"shapeName": "ObjectShape"
|
|
114
|
+
},
|
|
115
|
+
"description": "Duplicate ObjectShape",
|
|
116
|
+
"args": "DuplicateArgs<ObjectShape>"
|
|
117
|
+
},
|
|
118
|
+
"deleteObjectShape": {
|
|
119
|
+
"shape": "DeleteResult<ObjectShape>",
|
|
120
|
+
"resolver": {
|
|
121
|
+
"name": "shapedb:delete",
|
|
122
|
+
"service": "shapedb",
|
|
123
|
+
"shapeName": "ObjectShape"
|
|
124
|
+
},
|
|
125
|
+
"description": "Delete ObjectShape",
|
|
126
|
+
"args": "DeleteArgs<ObjectShape>"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"shapes": {
|
|
130
|
+
"StringShape": {
|
|
131
|
+
"id": "xMudoRshw",
|
|
132
|
+
"name": "StringShape",
|
|
133
|
+
"title": "String Shape",
|
|
134
|
+
"schema": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"string": {
|
|
138
|
+
"@mapping": "shapedb:StringShape.vzpBKjWYf",
|
|
139
|
+
"type": "string",
|
|
140
|
+
"title": "String"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"NumberShape": {
|
|
146
|
+
"id": "mMX_rYqS3",
|
|
147
|
+
"name": "NumberShape",
|
|
148
|
+
"title": "Number Shape",
|
|
149
|
+
"schema": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"number": {
|
|
153
|
+
"@mapping": "shapedb:NumberShape.ip_3_W7H1",
|
|
154
|
+
"type": "number",
|
|
155
|
+
"title": "Number"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"BooleanShape": {
|
|
161
|
+
"id": "UIxzqVmvO",
|
|
162
|
+
"name": "BooleanShape",
|
|
163
|
+
"title": "Boolean Shape",
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"boolean": {
|
|
168
|
+
"default": true,
|
|
169
|
+
"@mapping": "shapedb:BooleanShape.kYoprpPFC",
|
|
170
|
+
"type": "boolean",
|
|
171
|
+
"title": "Boolean"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"NumberArrayShape": {
|
|
177
|
+
"id": "e5bZUWbjz",
|
|
178
|
+
"name": "NumberArrayShape",
|
|
179
|
+
"title": "Number Array Shape",
|
|
180
|
+
"schema": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"properties": {
|
|
183
|
+
"numberArray": {
|
|
184
|
+
"@mapping": "shapedb:NumberArrayShape.IumyMw9JE",
|
|
185
|
+
"type": "array",
|
|
186
|
+
"items": {
|
|
187
|
+
"type": "number",
|
|
188
|
+
"oneOf": [
|
|
189
|
+
{"title": "Option 1", "enum": [1]},
|
|
190
|
+
{"title": "Option 2", "enum": [2]}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"title": "Number Array"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"BooleanArrayShape": {
|
|
199
|
+
"id": "yI6cpWGYj",
|
|
200
|
+
"name": "BooleanArrayShape",
|
|
201
|
+
"title": "Boolean Array Shape",
|
|
202
|
+
"schema": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"properties": {
|
|
205
|
+
"booleanArray": {
|
|
206
|
+
"@mapping": "shapedb:BooleanArrayShape.QttNfT72Z",
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": {
|
|
209
|
+
"type": "boolean",
|
|
210
|
+
"oneOf": [
|
|
211
|
+
{"title": "Option 1", "enum": [true]},
|
|
212
|
+
{"title": "Option 2", "enum": [false]}
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"title": "Boolean Array"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"StringArrayShape": {
|
|
221
|
+
"id": "8zYlvw-UX",
|
|
222
|
+
"name": "StringArrayShape",
|
|
223
|
+
"title": "String Array Shape",
|
|
224
|
+
"schema": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"stringArray": {
|
|
228
|
+
"@mapping": "shapedb:StringArrayShape.on89GB8Pn",
|
|
229
|
+
"type": "array",
|
|
230
|
+
"items": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"oneOf": [
|
|
233
|
+
{"title": "Option 1", "enum": ["option1"]},
|
|
234
|
+
{"title": "Option 2", "enum": ["option2"]}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"title": "String Array"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"AssetShape": {
|
|
243
|
+
"id": "p-p1wiTdJ",
|
|
244
|
+
"name": "AssetShape",
|
|
245
|
+
"title": "Asset Shape",
|
|
246
|
+
"schema": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"asset": {
|
|
250
|
+
"@args": "TSRelationshipArgs",
|
|
251
|
+
"@resolver": {
|
|
252
|
+
"name": "shapedb:getRelated",
|
|
253
|
+
"service": "shapedb",
|
|
254
|
+
"options": {"nullable": true}
|
|
255
|
+
},
|
|
256
|
+
"@mapping": "shapedb:AssetShape.LJ-zq8YqQ",
|
|
257
|
+
"title": "Asset",
|
|
258
|
+
"@ref": "local:Asset",
|
|
259
|
+
"@input": {"@ref": "local:TSRelationship"}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"AssetArrayShape": {
|
|
265
|
+
"id": "8wSbqqc-H",
|
|
266
|
+
"name": "AssetArrayShape",
|
|
267
|
+
"title": "Asset Array Shape",
|
|
268
|
+
"schema": {
|
|
269
|
+
"type": "object",
|
|
270
|
+
"properties": {
|
|
271
|
+
"assetArray": {
|
|
272
|
+
"@args": "TSRelationshipArgs",
|
|
273
|
+
"@resolver": {
|
|
274
|
+
"name": "shapedb:getRelated",
|
|
275
|
+
"service": "shapedb",
|
|
276
|
+
"options": {"nullable": true}
|
|
277
|
+
},
|
|
278
|
+
"type": "array",
|
|
279
|
+
"@mapping": "shapedb:AssetArrayShape.WkzdxMYIe",
|
|
280
|
+
"title": "Asset Array",
|
|
281
|
+
"items": {"@ref": "local:Asset"},
|
|
282
|
+
"@input": {
|
|
283
|
+
"type": "array",
|
|
284
|
+
"items": {"@ref": "local:TSRelationship"}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"ObjectShape": {
|
|
291
|
+
"id": "JuazMflZQ",
|
|
292
|
+
"name": "ObjectShape",
|
|
293
|
+
"title": "Object Shape",
|
|
294
|
+
"model": {"type": "multiple"},
|
|
295
|
+
"schema": {
|
|
296
|
+
"type": "object",
|
|
297
|
+
"properties": {
|
|
298
|
+
"object": {
|
|
299
|
+
"@mapping": "shapedb:ObjectShape.VWL0IZj8d",
|
|
300
|
+
"title": "Object",
|
|
301
|
+
"type": "object"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"ObjectArrayShape": {
|
|
307
|
+
"id": "VOhVoCmEH",
|
|
308
|
+
"name": "ObjectArrayShape",
|
|
309
|
+
"title": "Object Array Shape",
|
|
310
|
+
"model": {"type": "multiple"},
|
|
311
|
+
"schema": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"properties": {
|
|
314
|
+
"objectArray": {
|
|
315
|
+
"@mapping": "shapedb:ObjectArrayShape.ibjPjelG_",
|
|
316
|
+
"type": "array",
|
|
317
|
+
"title": "Object Array",
|
|
318
|
+
"items": {"type": "object"}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"workflows": {},
|
|
325
|
+
"forms": {
|
|
326
|
+
"StringShape": {
|
|
327
|
+
"default": {
|
|
328
|
+
"properties": {"string": {"widget": "singleLineText"}},
|
|
329
|
+
"order": ["string"]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"NumberShape": {
|
|
333
|
+
"default": {
|
|
334
|
+
"properties": {"number": {"widget": "number"}},
|
|
335
|
+
"order": ["number"]
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"BooleanShape": {
|
|
339
|
+
"default": {
|
|
340
|
+
"properties": {"boolean": {"widget": "checkbox"}},
|
|
341
|
+
"order": ["boolean"]
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"NumberArrayShape": {
|
|
345
|
+
"default": {
|
|
346
|
+
"properties": {"numberArray": {"widget": "numberCheckboxes"}},
|
|
347
|
+
"order": ["numberArray"]
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"BooleanArrayShape": {
|
|
351
|
+
"default": {
|
|
352
|
+
"properties": {"booleanArray": {"widget": "booleanCheckboxes"}},
|
|
353
|
+
"order": ["booleanArray"]
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"StringArrayShape": {
|
|
357
|
+
"default": {
|
|
358
|
+
"properties": {"stringArray": {"widget": "checkboxes"}},
|
|
359
|
+
"order": ["stringArray"]
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"AssetShape": {
|
|
363
|
+
"default": {
|
|
364
|
+
"properties": {"asset": {"widget": "image"}},
|
|
365
|
+
"order": ["asset"]
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"AssetArrayShape": {
|
|
369
|
+
"default": {
|
|
370
|
+
"properties": {"assetArray": {"items": {"widget": "image"}}},
|
|
371
|
+
"order": ["assetArray"]
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"ObjectShape": {
|
|
375
|
+
"default": {
|
|
376
|
+
"properties": {"object": {"widget": "shapeObject"}},
|
|
377
|
+
"order": ["object"]
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"ObjectArrayShape": {
|
|
381
|
+
"default": {
|
|
382
|
+
"properties": {"objectArray": {"widget": "shapeArray"}},
|
|
383
|
+
"order": ["objectArray"]
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"schemaVersion": "3.39.0",
|
|
388
|
+
"apiVersion": "2"
|
|
389
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.74.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/errors": "9.
|
|
32
|
-
"@takeshape/util": "9.
|
|
33
|
-
"@takeshape/json-schema": "9.
|
|
31
|
+
"@takeshape/errors": "9.74.0",
|
|
32
|
+
"@takeshape/util": "9.74.0",
|
|
33
|
+
"@takeshape/json-schema": "9.74.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.74.0"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=16"
|