@takeshape/schema 9.43.0 → 9.47.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.
Files changed (72) hide show
  1. package/dist/migration/index.d.ts +1 -0
  2. package/dist/migration/index.d.ts.map +1 -1
  3. package/dist/migration/index.js +4 -1
  4. package/dist/migration/to/v3.34.0.d.ts +7 -0
  5. package/dist/migration/to/v3.34.0.d.ts.map +1 -0
  6. package/dist/migration/to/v3.34.0.js +161 -0
  7. package/dist/project-schema/index.d.ts +4 -1
  8. package/dist/project-schema/index.d.ts.map +1 -1
  9. package/dist/project-schema/index.js +20 -3
  10. package/dist/project-schema/latest.d.ts +1 -1
  11. package/dist/project-schema/migrate.d.ts.map +1 -1
  12. package/dist/project-schema/migrate.js +4 -0
  13. package/dist/project-schema/v3.34.0.d.ts +1446 -0
  14. package/dist/project-schema/v3.34.0.d.ts.map +1 -0
  15. package/dist/project-schema/v3.34.0.js +5 -0
  16. package/dist/schema-util.js +5 -5
  17. package/dist/schemas/index.d.ts +2 -2
  18. package/dist/schemas/index.d.ts.map +1 -1
  19. package/dist/schemas/index.js +6 -4
  20. package/dist/schemas/index.ts +4 -2
  21. package/dist/schemas/project-schema/latest.json +3 -3
  22. package/dist/schemas/project-schema/v3.34.0.json +3088 -0
  23. package/dist/schemas/project-schema.json +3 -0
  24. package/dist/types/types.d.ts +2 -2
  25. package/dist/types/types.d.ts.map +1 -1
  26. package/es/migration/index.js +3 -1
  27. package/es/migration/to/v3.34.0.js +140 -0
  28. package/es/project-schema/index.js +3 -1
  29. package/es/project-schema/migrate.js +5 -1
  30. package/es/project-schema/v3.34.0.js +1 -0
  31. package/es/schema-util.js +5 -5
  32. package/es/schemas/index.js +4 -3
  33. package/es/schemas/index.ts +4 -2
  34. package/es/schemas/project-schema/latest.json +3 -3
  35. package/es/schemas/project-schema/v3.34.0.json +3088 -0
  36. package/es/schemas/project-schema.json +3 -0
  37. package/examples/latest/betzino.json +2012 -1756
  38. package/examples/latest/blog-schema.json +1 -1
  39. package/examples/latest/brewery-schema.json +31 -26
  40. package/examples/latest/complex-project-schema.json +645 -480
  41. package/examples/latest/complex-schema.json +866 -671
  42. package/examples/latest/fabric-ecommerce.json +7 -38
  43. package/examples/latest/frank-and-fred-schema.json +866 -671
  44. package/examples/latest/klirr-schema.json +1641 -1264
  45. package/examples/latest/massive-schema.json +897 -681
  46. package/examples/latest/mill-components-schema.json +1 -1
  47. package/examples/latest/one-earth.json +3012 -2462
  48. package/examples/latest/pet-oneof-array.json +1 -1
  49. package/examples/latest/post-schema.json +1 -1
  50. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  51. package/examples/latest/real-world-schema.json +19 -14
  52. package/examples/latest/recursive-repeater-schema.json +1 -1
  53. package/examples/latest/recursive-schema.json +1 -1
  54. package/examples/latest/rick-and-morty-ast.json +39 -226
  55. package/examples/latest/rick-and-morty-graphql.json +35 -222
  56. package/examples/latest/rick-and-morty-rest.json +1 -1
  57. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  58. package/examples/latest/shape-books-v3_2_0.json +19 -14
  59. package/examples/latest/shape-books.json +19 -14
  60. package/examples/latest/shape-editor-schema-edited.json +1009 -0
  61. package/examples/latest/shape-editor-schema-initial.json +411 -0
  62. package/examples/latest/shopify-lookbook.json +9 -39
  63. package/examples/latest/shopify-product-2022-07.json +21 -213
  64. package/examples/latest/shopify-product-2023-04.json +21 -213
  65. package/examples/latest/shopify-store-with-widget.json +97 -360
  66. package/examples/latest/stripe-product-runtime-schema.json +21 -213
  67. package/examples/latest/stripe-starter-resolved.json +21 -213
  68. package/examples/latest/user-schema-no-required.json +1 -1
  69. package/examples/latest/user-schema-with-defaults.json +1 -1
  70. package/examples/source/shape-editor-schema-edited.json +1009 -0
  71. package/examples/source/shape-editor-schema-initial.json +411 -0
  72. package/package.json +5 -5
@@ -81,255 +81,63 @@
81
81
  }
82
82
  }
83
83
  },
84
- "TSStaticSite": {
84
+ "TSStaticSiteEnvironmentVariables": {
85
85
  "default": {
86
+ "widget": "repeater",
86
87
  "order": [
87
- "title",
88
- "provider",
89
- "destination",
90
- "idKey",
91
- "secretKey",
92
- "environmentVariables"
88
+ "name",
89
+ "value"
93
90
  ],
91
+ "disabled": true,
94
92
  "properties": {
95
- "title": {
93
+ "name": {
96
94
  "widget": "singleLineText",
97
95
  "disabled": true
98
96
  },
99
- "provider": {
100
- "widget": "dropdown",
101
- "disabled": true
102
- },
103
- "destination": {
104
- "widget": "singleLineText",
105
- "instructions": "Deployment Bucket or FTP Host",
106
- "disabled": true
107
- },
108
- "idKey": {
97
+ "value": {
109
98
  "widget": "singleLineText",
110
- "instructions": "AWS Access Key ID or Google Cloud Storage Client Email or FTP Username",
111
- "disabled": true
112
- },
113
- "secretKey": {
114
- "widget": "sensitiveField",
115
- "instructions": "AWS Secret Access Key or Google Cloud Storage Private Key or FTP Password",
116
- "multiline": true,
117
99
  "disabled": true
118
- },
119
- "environmentVariables": {
120
- "widget": "repeater",
121
- "order": [
122
- "name",
123
- "value"
124
- ],
125
- "disabled": true,
126
- "properties": {
127
- "name": {
128
- "widget": "singleLineText",
129
- "disabled": true
130
- },
131
- "value": {
132
- "widget": "singleLineText",
133
- "disabled": true
134
- }
135
- }
136
100
  }
137
101
  }
138
- },
139
- "generalHeader": {
102
+ }
103
+ },
104
+ "TSStaticSite": {
105
+ "default": {
140
106
  "order": [
141
107
  "title",
142
108
  "provider",
143
- "baseUrl"
144
- ],
145
- "properties": {
146
- "title": {
147
- "widget": "singleLineText",
148
- "disabled": true
149
- },
150
- "provider": {
151
- "widget": "dropdown",
152
- "disabled": true
153
- },
154
- "baseUrl": {
155
- "widget": "singleLineText",
156
- "disabled": true
157
- }
158
- }
159
- },
160
- "generalFooter": {
161
- "order": [
162
- "environmentVariables",
163
- "triggers"
164
- ],
165
- "properties": {
166
- "environmentVariables": {
167
- "widget": "repeater",
168
- "order": [
169
- "name",
170
- "value"
171
- ],
172
- "disabled": true,
173
- "properties": {
174
- "name": {
175
- "widget": "singleLineText",
176
- "disabled": true
177
- },
178
- "value": {
179
- "widget": "singleLineText",
180
- "disabled": true
181
- }
182
- }
183
- },
184
- "triggers": {
185
- "widget": "repeater",
186
- "order": [
187
- "contentTypeId",
188
- "status"
189
- ],
190
- "disabled": true,
191
- "preview": "siteTriggerPreview",
192
- "properties": {
193
- "contentTypeId": {
194
- "widget": "dropdown",
195
- "disabled": true
196
- },
197
- "status": {
198
- "widget": "dropdown",
199
- "disabled": true
200
- }
201
- }
202
- }
203
- }
204
- },
205
- "s3": {
206
- "order": [
207
- "destination",
208
- "idKey",
209
- "secretKey",
210
- "privateAcl"
211
- ],
212
- "properties": {
213
- "destination": {
214
- "widget": "singleLineText",
215
- "instructions": "Deployment Bucket Name",
216
- "disabled": true
217
- },
218
- "idKey": {
219
- "widget": "singleLineText",
220
- "instructions": "AWS Access Key ID",
221
- "disabled": true
222
- },
223
- "secretKey": {
224
- "widget": "sensitiveField",
225
- "instructions": "AWS Secret Access Key",
226
- "multiline": true,
227
- "disabled": true
228
- },
229
- "privateAcl": {
230
- "widget": "checkbox",
231
- "instructions": "Disable public access to deployed files. This is useful when fronting S3 with CloudFront or with \"Block All Public Access\"",
232
- "disabled": true
233
- }
234
- }
235
- },
236
- "gcs": {
237
- "order": [
238
109
  "destination",
239
110
  "idKey",
240
111
  "secretKey",
241
- "privateAcl"
112
+ "environmentVariables"
242
113
  ],
243
114
  "properties": {
244
- "destination": {
245
- "widget": "singleLineText",
246
- "instructions": "Deployment Bucket Name",
247
- "disabled": true
248
- },
249
- "idKey": {
115
+ "title": {
250
116
  "widget": "singleLineText",
251
- "instructions": "Google Cloud Storage Client Email",
252
117
  "disabled": true
253
118
  },
254
- "secretKey": {
255
- "widget": "sensitiveField",
256
- "instructions": "Google Cloud Storage Private Key",
257
- "multiline": true,
119
+ "provider": {
120
+ "widget": "dropdown",
258
121
  "disabled": true
259
122
  },
260
- "privateAcl": {
261
- "widget": "checkbox",
262
- "instructions": "Disable public access to deployed files.",
263
- "disabled": true
264
- }
265
- }
266
- },
267
- "ftp": {
268
- "order": [
269
- "destination",
270
- "idKey",
271
- "secretKey"
272
- ],
273
- "properties": {
274
123
  "destination": {
275
124
  "widget": "singleLineText",
276
- "instructions": "FTP Host",
125
+ "instructions": "Deployment Bucket or FTP Host",
277
126
  "disabled": true
278
127
  },
279
128
  "idKey": {
280
129
  "widget": "singleLineText",
281
- "instructions": "FTP Username",
130
+ "instructions": "AWS Access Key ID or Google Cloud Storage Client Email or FTP Username",
282
131
  "disabled": true
283
132
  },
284
133
  "secretKey": {
285
134
  "widget": "sensitiveField",
286
- "instructions": "FTP Password",
135
+ "instructions": "AWS Secret Access Key or Google Cloud Storage Private Key or FTP Password",
287
136
  "multiline": true,
288
137
  "disabled": true
289
- }
290
- }
291
- },
292
- "azure": {
293
- "order": [
294
- "destination",
295
- "secretKey"
296
- ],
297
- "properties": {
298
- "destination": {
299
- "widget": "singleLineText",
300
- "instructions": "Storage Account Name",
301
- "disabled": true
302
138
  },
303
- "secretKey": {
304
- "widget": "sensitiveField",
305
- "instructions": "Access key",
306
- "multiline": true,
307
- "disabled": true
308
- }
309
- }
310
- },
311
- "netlify": {
312
- "order": [
313
- "destination"
314
- ],
315
- "properties": {
316
- "destination": {
317
- "widget": "publishTargets",
318
- "itemTemplate": "siteDropdownItem",
319
- "instructions": "Choose existing or create a new site.",
320
- "disabled": true
321
- }
322
- }
323
- },
324
- "vercel": {
325
- "order": [
326
- "destination"
327
- ],
328
- "properties": {
329
- "destination": {
330
- "widget": "publishTargets",
331
- "itemTemplate": "siteDropdownItem",
332
- "instructions": "Choose existing or create a new project.",
139
+ "environmentVariables": {
140
+ "widget": "shapeArray",
333
141
  "disabled": true
334
142
  }
335
143
  }
@@ -621,73 +429,78 @@
621
429
  ]
622
430
  }
623
431
  },
624
- "CollectionInObject": {
432
+ "CollectionInObjectObject": {
625
433
  "default": {
434
+ "widget": "object",
626
435
  "properties": {
627
- "object": {
628
- "widget": "object",
436
+ "collection": {
629
437
  "properties": {
630
- "collection": {
631
- "properties": {
632
- "descriptionHtml": {
633
- "widget": "serviceObjectProperty",
634
- "provider": "shopify"
635
- },
636
- "handle": {
637
- "widget": "serviceObjectProperty",
638
- "provider": "shopify"
639
- },
640
- "image": {
641
- "widget": "shopifyCollectionImage",
642
- "provider": "shopify"
643
- },
644
- "products": {
645
- "widget": "shopifyRelationshipSummary",
646
- "provider": "shopify"
647
- },
648
- "templateSuffix": {
649
- "widget": "serviceObjectProperty",
650
- "provider": "shopify"
651
- },
652
- "sortOrder": {
653
- "widget": "serviceObjectProperty",
654
- "provider": "shopify"
655
- },
656
- "title": {
657
- "widget": "serviceObjectProperty",
658
- "provider": "shopify"
659
- },
660
- "redirectNewHandle": {
661
- "widget": "serviceObjectProperty",
662
- "provider": "shopify"
663
- }
664
- },
665
- "widget": "shopify",
666
- "wrapper": "shopifyServiceWrapper",
667
- "order": [
668
- "title",
669
- "handle",
670
- "descriptionHtml",
671
- "products",
672
- "image",
673
- "templateSuffix",
674
- "sortOrder",
675
- "redirectNewHandle"
676
- ]
438
+ "descriptionHtml": {
439
+ "widget": "serviceObjectProperty",
440
+ "provider": "shopify"
441
+ },
442
+ "handle": {
443
+ "widget": "serviceObjectProperty",
444
+ "provider": "shopify"
445
+ },
446
+ "image": {
447
+ "widget": "shopifyCollectionImage",
448
+ "provider": "shopify"
449
+ },
450
+ "products": {
451
+ "widget": "shopifyRelationshipSummary",
452
+ "provider": "shopify"
677
453
  },
678
- "collectionId": {
679
- "instructions": "Format: gid://shopify/Collection/1111111111111",
680
- "label": "collection ID",
681
- "widget": "serviceObjectId",
682
- "provider": "shopify",
683
- "serviceObjectType": "collection",
684
- "service": "gregs-takeshape-store"
454
+ "templateSuffix": {
455
+ "widget": "serviceObjectProperty",
456
+ "provider": "shopify"
457
+ },
458
+ "sortOrder": {
459
+ "widget": "serviceObjectProperty",
460
+ "provider": "shopify"
461
+ },
462
+ "title": {
463
+ "widget": "serviceObjectProperty",
464
+ "provider": "shopify"
465
+ },
466
+ "redirectNewHandle": {
467
+ "widget": "serviceObjectProperty",
468
+ "provider": "shopify"
685
469
  }
686
470
  },
471
+ "widget": "shopify",
472
+ "wrapper": "shopifyServiceWrapper",
687
473
  "order": [
688
- "collectionId",
689
- "collection"
474
+ "title",
475
+ "handle",
476
+ "descriptionHtml",
477
+ "products",
478
+ "image",
479
+ "templateSuffix",
480
+ "sortOrder",
481
+ "redirectNewHandle"
690
482
  ]
483
+ },
484
+ "collectionId": {
485
+ "instructions": "Format: gid://shopify/Collection/1111111111111",
486
+ "label": "collection ID",
487
+ "widget": "serviceObjectId",
488
+ "provider": "shopify",
489
+ "serviceObjectType": "collection",
490
+ "service": "gregs-takeshape-store"
491
+ }
492
+ },
493
+ "order": [
494
+ "collectionId",
495
+ "collection"
496
+ ]
497
+ }
498
+ },
499
+ "CollectionInObject": {
500
+ "default": {
501
+ "properties": {
502
+ "object": {
503
+ "widget": "shapeObject"
691
504
  }
692
505
  },
693
506
  "order": [
@@ -880,7 +693,7 @@
880
693
  "description": "Delete TSStaticSite"
881
694
  },
882
695
  "updateProduct": {
883
- "args": "UpdateArgs<ProductInterface>",
696
+ "args": "UpdateArgs<Product>",
884
697
  "resolver": {
885
698
  "resultsMapping": [
886
699
  [
@@ -1022,7 +835,7 @@
1022
835
  "description": "Delete Product"
1023
836
  },
1024
837
  "createProductAndServiceObject": {
1025
- "args": "CreateArgs<ProductInterface>",
838
+ "args": "CreateArgs<Product>",
1026
839
  "resolver": {
1027
840
  "compose": [
1028
841
  {
@@ -1136,7 +949,7 @@
1136
949
  "description": "Create Product"
1137
950
  },
1138
951
  "updateProductAndCreateServiceObject": {
1139
- "args": "UpdateArgs<ProductInterface>",
952
+ "args": "UpdateArgs<Product>",
1140
953
  "resolver": {
1141
954
  "compose": [
1142
955
  {
@@ -2118,27 +1931,6 @@
2118
1931
  "required": []
2119
1932
  }
2120
1933
  },
2121
- "ProductInterface": {
2122
- "id": "ProductInterface",
2123
- "name": "ProductInterface",
2124
- "title": "ProductInterface",
2125
- "description": "ProductInterface",
2126
- "schema": {
2127
- "allOf": [
2128
- {
2129
- "@ref": "local:ProductInterfaceStub"
2130
- },
2131
- {
2132
- "type": "object",
2133
- "properties": {
2134
- "gregsTakeshapeStore": {
2135
- "@ref": "gregs-takeshape-store:ProductInput"
2136
- }
2137
- }
2138
- }
2139
- ]
2140
- }
2141
- },
2142
1934
  "Product": {
2143
1935
  "id": "-3U728po3",
2144
1936
  "name": "Product",
@@ -2181,6 +1973,9 @@
2181
1973
  ]
2182
1974
  },
2183
1975
  "fieldName": "product"
1976
+ },
1977
+ "@input": {
1978
+ "@ref": "gregs-takeshape-store:ProductInput"
2184
1979
  }
2185
1980
  },
2186
1981
  "_id": {
@@ -2270,38 +2065,6 @@
2270
2065
  }
2271
2066
  }
2272
2067
  },
2273
- "CollectionInterface": {
2274
- "id": "CollectionInterface",
2275
- "name": "CollectionInterface",
2276
- "title": "CollectionInterface",
2277
- "description": "CollectionInterface",
2278
- "schema": {
2279
- "type": "object",
2280
- "properties": {
2281
- "_id": {
2282
- "type": "string"
2283
- },
2284
- "_version": {
2285
- "type": "number"
2286
- },
2287
- "_status": {
2288
- "type": "string"
2289
- },
2290
- "title": {
2291
- "type": "string",
2292
- "title": "Title"
2293
- },
2294
- "gregsTakeshapeStoreId": {
2295
- "title": "Service ID",
2296
- "type": "string"
2297
- },
2298
- "gregsTakeshapeStore": {
2299
- "$ref": "#/shapes/Shopify_CollectionInput/schema"
2300
- }
2301
- },
2302
- "required": []
2303
- }
2304
- },
2305
2068
  "Collection": {
2306
2069
  "id": "vTqVPY-NC",
2307
2070
  "name": "Collection",
@@ -2344,6 +2107,9 @@
2344
2107
  ]
2345
2108
  },
2346
2109
  "fieldName": "collection"
2110
+ },
2111
+ "@input": {
2112
+ "@ref": "gregs-takeshape-store:CollectionInput"
2347
2113
  }
2348
2114
  },
2349
2115
  "_id": {
@@ -2433,38 +2199,6 @@
2433
2199
  }
2434
2200
  }
2435
2201
  },
2436
- "ProductVariantInterface": {
2437
- "id": "ProductVariantInterface",
2438
- "name": "ProductVariantInterface",
2439
- "title": "ProductVariantInterface",
2440
- "description": "ProductVariantInterface",
2441
- "schema": {
2442
- "type": "object",
2443
- "properties": {
2444
- "_id": {
2445
- "type": "string"
2446
- },
2447
- "_version": {
2448
- "type": "number"
2449
- },
2450
- "_status": {
2451
- "type": "string"
2452
- },
2453
- "title": {
2454
- "type": "string",
2455
- "title": "Title"
2456
- },
2457
- "gregsTakeshapeStoreId": {
2458
- "title": "Service ID",
2459
- "type": "string"
2460
- },
2461
- "gregsTakeshapeStore": {
2462
- "$ref": "#/shapes/Shopify_ProductVariantInput/schema"
2463
- }
2464
- },
2465
- "required": []
2466
- }
2467
- },
2468
2202
  "ProductVariant": {
2469
2203
  "id": "mS-D0PjUn",
2470
2204
  "name": "ProductVariant",
@@ -2507,6 +2241,9 @@
2507
2241
  ]
2508
2242
  },
2509
2243
  "fieldName": "productVariant"
2244
+ },
2245
+ "@input": {
2246
+ "@ref": "gregs-takeshape-store:ProductVariantInput"
2510
2247
  }
2511
2248
  },
2512
2249
  "_id": {
@@ -12560,5 +12297,5 @@
12560
12297
  }
12561
12298
  }
12562
12299
  },
12563
- "schemaVersion": "3.33.0"
12300
+ "schemaVersion": "3.34.0"
12564
12301
  }