@takeshape/schema 9.36.4 → 9.38.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/builtin-schema.js +20 -20
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -1
- package/dist/migration/to/v3.31.0.d.ts +5 -0
- package/dist/migration/to/v3.31.0.d.ts.map +1 -0
- package/dist/migration/to/v3.31.0.js +53 -0
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.d.ts.map +1 -1
- package/dist/project-schema/index.js +20 -3
- package/dist/project-schema/latest.d.ts +43 -18
- package/dist/project-schema/latest.d.ts.map +1 -1
- package/dist/project-schema/migrate.d.ts.map +1 -1
- package/dist/project-schema/migrate.js +4 -0
- package/dist/project-schema/v3.31.0.d.ts +1449 -0
- package/dist/project-schema/v3.31.0.d.ts.map +1 -0
- package/dist/project-schema/v3.31.0.js +5 -0
- package/dist/relationships.js +2 -2
- package/dist/schema-util.d.ts +2 -2
- package/dist/schema-util.d.ts.map +1 -1
- package/dist/schema-util.js +12 -12
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +6 -4
- package/dist/schemas/index.ts +4 -2
- package/dist/schemas/project-schema/latest.json +89 -32
- package/dist/schemas/project-schema/v3.31.0.json +3089 -0
- package/dist/schemas/project-schema.json +7 -1
- package/dist/types/types.d.ts +4 -4
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +4 -3
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/types/utils.js +9 -3
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +13 -3
- package/es/builtin-schema.js +20 -20
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.31.0.js +38 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +5 -1
- package/es/project-schema/v3.31.0.js +1 -0
- package/es/relationships.js +2 -2
- package/es/schema-util.js +12 -12
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +89 -32
- package/es/schemas/project-schema/v3.31.0.json +3089 -0
- package/es/schemas/project-schema.json +7 -1
- package/es/types/utils.js +7 -3
- package/es/validate.js +13 -3
- package/examples/dependencies/stripe-starter-resolved.json +210 -210
- package/examples/latest/betzino.json +4383 -4383
- package/examples/latest/blog-schema.json +49 -49
- package/examples/latest/brewery-schema.json +39 -39
- package/examples/latest/complex-project-schema.json +412 -412
- package/examples/latest/complex-schema.json +1166 -1166
- package/examples/latest/fabric-ecommerce.json +17 -17
- package/examples/latest/frank-and-fred-schema.json +2242 -2242
- package/examples/latest/klirr-schema.json +3254 -3254
- package/examples/latest/massive-schema.json +785 -785
- package/examples/latest/mill-components-schema.json +215 -215
- package/examples/latest/one-earth.json +1394 -1394
- package/examples/latest/pet-oneof-array.json +33 -33
- package/examples/latest/post-schema.json +32 -32
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/real-world-schema.json +94 -94
- package/examples/latest/recursive-repeater-schema.json +17 -17
- package/examples/latest/recursive-schema.json +17 -17
- package/examples/latest/rick-and-morty-ast.json +180 -180
- package/examples/latest/rick-and-morty-graphql.json +133 -133
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +48 -48
- package/examples/latest/shape-books-v3_2_0.json +137 -137
- package/examples/latest/shape-books.json +137 -137
- package/examples/latest/shopify-lookbook.json +41 -41
- package/examples/latest/shopify-product-2022-07.json +124 -124
- package/examples/latest/shopify-product-2023-04.json +125 -125
- package/examples/latest/shopify-store-with-widget.json +94 -94
- package/examples/latest/stripe-product-runtime-schema.json +127 -130
- package/examples/latest/stripe-starter-resolved.json +300 -509
- package/examples/latest/user-schema-no-required.json +22 -22
- package/examples/latest/user-schema-with-defaults.json +23 -23
- package/package.json +5 -5
- package/examples/latest/shopify-namespace-schema.json +0 -364
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"getPost": {
|
|
18
18
|
"args": "TSGetArgs<Post>",
|
|
19
19
|
"resolver": {
|
|
20
|
-
"name": "
|
|
21
|
-
"service": "
|
|
20
|
+
"name": "shapedb:get",
|
|
21
|
+
"service": "shapedb",
|
|
22
22
|
"shapeName": "Post"
|
|
23
23
|
},
|
|
24
24
|
"shape": "Post",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"getPostList": {
|
|
28
28
|
"args": "TSListArgs<Post>",
|
|
29
29
|
"resolver": {
|
|
30
|
-
"name": "
|
|
31
|
-
"service": "
|
|
30
|
+
"name": "shapedb:list",
|
|
31
|
+
"service": "shapedb",
|
|
32
32
|
"shapeName": "Post"
|
|
33
33
|
},
|
|
34
34
|
"shape": "PaginatedList<Post>",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"updatePost": {
|
|
40
40
|
"args": "UpdateArgs<Post>",
|
|
41
41
|
"resolver": {
|
|
42
|
-
"name": "
|
|
43
|
-
"service": "
|
|
42
|
+
"name": "shapedb:update",
|
|
43
|
+
"service": "shapedb",
|
|
44
44
|
"shapeName": "Post"
|
|
45
45
|
},
|
|
46
46
|
"shape": "UpdateResult<Post>",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"createPost": {
|
|
50
50
|
"args": "CreateArgs<Post>",
|
|
51
51
|
"resolver": {
|
|
52
|
-
"name": "
|
|
53
|
-
"service": "
|
|
52
|
+
"name": "shapedb:create",
|
|
53
|
+
"service": "shapedb",
|
|
54
54
|
"shapeName": "Post"
|
|
55
55
|
},
|
|
56
56
|
"shape": "CreateResult<Post>",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"duplicatePost": {
|
|
60
60
|
"args": "DuplicateArgs<Post>",
|
|
61
61
|
"resolver": {
|
|
62
|
-
"name": "
|
|
63
|
-
"service": "
|
|
62
|
+
"name": "shapedb:duplicate",
|
|
63
|
+
"service": "shapedb",
|
|
64
64
|
"shapeName": "Post"
|
|
65
65
|
},
|
|
66
66
|
"shape": "DuplicateResult<Post>",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"deletePost": {
|
|
70
70
|
"args": "DeleteArgs<Post>",
|
|
71
71
|
"resolver": {
|
|
72
|
-
"name": "
|
|
73
|
-
"service": "
|
|
72
|
+
"name": "shapedb:delete",
|
|
73
|
+
"service": "shapedb",
|
|
74
74
|
"shapeName": "Post"
|
|
75
75
|
},
|
|
76
76
|
"shape": "DeleteResult<Post>",
|
|
@@ -95,16 +95,16 @@
|
|
|
95
95
|
"$ref": "#/shapes/PostFeatures/schema"
|
|
96
96
|
},
|
|
97
97
|
"maxItems": 4,
|
|
98
|
-
"@mapping": "
|
|
98
|
+
"@mapping": "shapedb:Post.BJYQ7yjXZ"
|
|
99
99
|
},
|
|
100
100
|
"contact": {
|
|
101
101
|
"title": "Contact",
|
|
102
|
-
"@mapping": "
|
|
102
|
+
"@mapping": "shapedb:Post.BkA2F-eNZ",
|
|
103
103
|
"$ref": "#/shapes/PostContact/schema"
|
|
104
104
|
},
|
|
105
105
|
"introductionImage": {
|
|
106
106
|
"title": "Introduction Image",
|
|
107
|
-
"@mapping": "
|
|
107
|
+
"@mapping": "shapedb:Post.Skl-AZomb",
|
|
108
108
|
"@backreference": {
|
|
109
109
|
"enabled": true
|
|
110
110
|
},
|
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
},
|
|
115
115
|
"@args": "TSRelationshipArgs",
|
|
116
116
|
"@resolver": {
|
|
117
|
-
"name": "
|
|
118
|
-
"service": "
|
|
117
|
+
"name": "shapedb:getRelated",
|
|
118
|
+
"service": "shapedb",
|
|
119
119
|
"options": {
|
|
120
120
|
"nullable": true
|
|
121
121
|
}
|
|
@@ -128,17 +128,17 @@
|
|
|
128
128
|
"$ref": "#/shapes/PostFeaturedLinks/schema"
|
|
129
129
|
},
|
|
130
130
|
"maxItems": 2,
|
|
131
|
-
"@mapping": "
|
|
131
|
+
"@mapping": "shapedb:Post.H1mXMyimb"
|
|
132
132
|
},
|
|
133
133
|
"whyAligned": {
|
|
134
134
|
"type": "object",
|
|
135
135
|
"title": "Why Aligned",
|
|
136
|
-
"@mapping": "
|
|
136
|
+
"@mapping": "shapedb:Post.H1-y8yoX-",
|
|
137
137
|
"@tag": "draftjs"
|
|
138
138
|
},
|
|
139
139
|
"resourcesBackground": {
|
|
140
140
|
"title": "Resources Background",
|
|
141
|
-
"@mapping": "
|
|
141
|
+
"@mapping": "shapedb:Post.S1fKBMjmW",
|
|
142
142
|
"@backreference": {
|
|
143
143
|
"enabled": true
|
|
144
144
|
},
|
|
@@ -148,8 +148,8 @@
|
|
|
148
148
|
},
|
|
149
149
|
"@args": "TSRelationshipArgs",
|
|
150
150
|
"@resolver": {
|
|
151
|
-
"name": "
|
|
152
|
-
"service": "
|
|
151
|
+
"name": "shapedb:getRelated",
|
|
152
|
+
"service": "shapedb",
|
|
153
153
|
"options": {
|
|
154
154
|
"nullable": true
|
|
155
155
|
}
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"introduction": {
|
|
159
159
|
"type": "object",
|
|
160
160
|
"title": "Introduction",
|
|
161
|
-
"@mapping": "
|
|
161
|
+
"@mapping": "shapedb:Post.BJBUbksXZ",
|
|
162
162
|
"@tag": "draftjs"
|
|
163
163
|
},
|
|
164
164
|
"resourceSection": {
|
|
@@ -167,11 +167,11 @@
|
|
|
167
167
|
"items": {
|
|
168
168
|
"$ref": "#/shapes/PostResourceSection/schema"
|
|
169
169
|
},
|
|
170
|
-
"@mapping": "
|
|
170
|
+
"@mapping": "shapedb:Post.HJUnO1j7W"
|
|
171
171
|
},
|
|
172
172
|
"callToAction": {
|
|
173
173
|
"title": "Call To Action",
|
|
174
|
-
"@mapping": "
|
|
174
|
+
"@mapping": "shapedb:Post.rkKCKnA7-",
|
|
175
175
|
"$ref": "#/shapes/PostCallToAction/schema"
|
|
176
176
|
}
|
|
177
177
|
},
|
|
@@ -191,11 +191,11 @@
|
|
|
191
191
|
"type": "string",
|
|
192
192
|
"title": "Title",
|
|
193
193
|
"minLength": 0,
|
|
194
|
-
"@mapping": "
|
|
194
|
+
"@mapping": "shapedb:PostFeatures.SJ24QkiXZ"
|
|
195
195
|
},
|
|
196
196
|
"image": {
|
|
197
197
|
"title": "Image",
|
|
198
|
-
"@mapping": "
|
|
198
|
+
"@mapping": "shapedb:PostFeatures.rJyNm1iQb",
|
|
199
199
|
"@backreference": {
|
|
200
200
|
"enabled": true
|
|
201
201
|
},
|
|
@@ -205,8 +205,8 @@
|
|
|
205
205
|
},
|
|
206
206
|
"@args": "TSRelationshipArgs",
|
|
207
207
|
"@resolver": {
|
|
208
|
-
"name": "
|
|
209
|
-
"service": "
|
|
208
|
+
"name": "shapedb:getRelated",
|
|
209
|
+
"service": "shapedb",
|
|
210
210
|
"options": {
|
|
211
211
|
"nullable": true
|
|
212
212
|
}
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"type": "string",
|
|
217
217
|
"title": "Copy",
|
|
218
218
|
"minLength": 0,
|
|
219
|
-
"@mapping": "
|
|
219
|
+
"@mapping": "shapedb:PostFeatures.BJHSmksm-"
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
@@ -232,13 +232,13 @@
|
|
|
232
232
|
"type": "string",
|
|
233
233
|
"title": "Button Copy",
|
|
234
234
|
"minLength": 0,
|
|
235
|
-
"@mapping": "
|
|
235
|
+
"@mapping": "shapedb:PostContact.ryHAtZlVW"
|
|
236
236
|
},
|
|
237
237
|
"link": {
|
|
238
238
|
"type": "string",
|
|
239
239
|
"title": "link",
|
|
240
240
|
"minLength": 0,
|
|
241
|
-
"@mapping": "
|
|
241
|
+
"@mapping": "shapedb:PostContact.HkSpYbx4Z"
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
}
|
|
@@ -254,19 +254,19 @@
|
|
|
254
254
|
"type": "string",
|
|
255
255
|
"title": "Category",
|
|
256
256
|
"minLength": 0,
|
|
257
|
-
"@mapping": "
|
|
257
|
+
"@mapping": "shapedb:PostFeaturedLinks.ByEVGJjQZ"
|
|
258
258
|
},
|
|
259
259
|
"title": {
|
|
260
260
|
"type": "string",
|
|
261
261
|
"title": "Title",
|
|
262
262
|
"minLength": 0,
|
|
263
|
-
"@mapping": "
|
|
263
|
+
"@mapping": "shapedb:PostFeaturedLinks.SkqEMJjXb"
|
|
264
264
|
},
|
|
265
265
|
"link": {
|
|
266
266
|
"type": "string",
|
|
267
267
|
"title": "link",
|
|
268
268
|
"minLength": 0,
|
|
269
|
-
"@mapping": "
|
|
269
|
+
"@mapping": "shapedb:PostFeaturedLinks.SyjBaWaE-"
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
}
|
|
@@ -282,25 +282,25 @@
|
|
|
282
282
|
"type": "string",
|
|
283
283
|
"title": "Link",
|
|
284
284
|
"minLength": 0,
|
|
285
|
-
"@mapping": "
|
|
285
|
+
"@mapping": "shapedb:PostResourceSectionGroupResource.r1GmKyjQ-"
|
|
286
286
|
},
|
|
287
287
|
"tooltip": {
|
|
288
288
|
"type": "string",
|
|
289
289
|
"title": "Tooltip",
|
|
290
290
|
"minLength": 0,
|
|
291
|
-
"@mapping": "
|
|
291
|
+
"@mapping": "shapedb:PostResourceSectionGroupResource.SJu4KysQb"
|
|
292
292
|
},
|
|
293
293
|
"new": {
|
|
294
294
|
"type": "boolean",
|
|
295
295
|
"default": false,
|
|
296
296
|
"title": "New",
|
|
297
|
-
"@mapping": "
|
|
297
|
+
"@mapping": "shapedb:PostResourceSectionGroupResource.B1KmFksm-"
|
|
298
298
|
},
|
|
299
299
|
"title": {
|
|
300
300
|
"type": "string",
|
|
301
301
|
"title": "Title",
|
|
302
302
|
"minLength": 0,
|
|
303
|
-
"@mapping": "
|
|
303
|
+
"@mapping": "shapedb:PostResourceSectionGroupResource.BJGMFks7b"
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
}
|
|
@@ -318,12 +318,12 @@
|
|
|
318
318
|
"items": {
|
|
319
319
|
"$ref": "#/shapes/PostResourceSectionGroupResource/schema"
|
|
320
320
|
},
|
|
321
|
-
"@mapping": "
|
|
321
|
+
"@mapping": "shapedb:PostResourceSectionGroup.r16btkoQZ"
|
|
322
322
|
},
|
|
323
323
|
"introduction": {
|
|
324
324
|
"type": "object",
|
|
325
325
|
"title": "Introduction",
|
|
326
|
-
"@mapping": "
|
|
326
|
+
"@mapping": "shapedb:PostResourceSectionGroup.SytkY1i7Z",
|
|
327
327
|
"@tag": "draftjs"
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"type": "string",
|
|
341
341
|
"title": "Title",
|
|
342
342
|
"minLength": 0,
|
|
343
|
-
"@mapping": "
|
|
343
|
+
"@mapping": "shapedb:PostResourceSection.B1aC_ko7-"
|
|
344
344
|
},
|
|
345
345
|
"group": {
|
|
346
346
|
"type": "array",
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
"items": {
|
|
349
349
|
"$ref": "#/shapes/PostResourceSectionGroup/schema"
|
|
350
350
|
},
|
|
351
|
-
"@mapping": "
|
|
351
|
+
"@mapping": "shapedb:PostResourceSection.BJLkK1o7-"
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
@@ -364,13 +364,13 @@
|
|
|
364
364
|
"type": "string",
|
|
365
365
|
"title": "Url",
|
|
366
366
|
"minLength": 0,
|
|
367
|
-
"@mapping": "
|
|
367
|
+
"@mapping": "shapedb:PostCallToActionButton.BkWG9n0X-"
|
|
368
368
|
},
|
|
369
369
|
"text": {
|
|
370
370
|
"type": "string",
|
|
371
371
|
"title": "Text",
|
|
372
372
|
"minLength": 0,
|
|
373
|
-
"@mapping": "
|
|
373
|
+
"@mapping": "shapedb:PostCallToActionButton.S1ay52CQ-"
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
}
|
|
@@ -384,19 +384,19 @@
|
|
|
384
384
|
"properties": {
|
|
385
385
|
"button": {
|
|
386
386
|
"title": "Button",
|
|
387
|
-
"@mapping": "
|
|
387
|
+
"@mapping": "shapedb:PostCallToAction.BJClc20XZ",
|
|
388
388
|
"$ref": "#/shapes/PostCallToActionButton/schema"
|
|
389
389
|
},
|
|
390
390
|
"heading": {
|
|
391
391
|
"type": "string",
|
|
392
392
|
"title": "Heading",
|
|
393
393
|
"minLength": 0,
|
|
394
|
-
"@mapping": "
|
|
394
|
+
"@mapping": "shapedb:PostCallToAction.HyVk52AXW"
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
},
|
|
400
|
-
"schemaVersion": "3.
|
|
400
|
+
"schemaVersion": "3.31.0",
|
|
401
401
|
"services": {}
|
|
402
402
|
}
|