@takeshape/schema 9.70.0 → 9.71.2

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 (73) 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.39.0.d.ts +5 -0
  5. package/dist/migration/to/v3.39.0.d.ts.map +1 -0
  6. package/dist/migration/to/v3.39.0.js +62 -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 +9 -3
  11. package/dist/project-schema/latest.d.ts.map +1 -1
  12. package/dist/project-schema/migrate.d.ts.map +1 -1
  13. package/dist/project-schema/migrate.js +4 -0
  14. package/dist/project-schema/v3.39.0.d.ts +1530 -0
  15. package/dist/project-schema/v3.39.0.d.ts.map +1 -0
  16. package/dist/project-schema/v3.39.0.js +5 -0
  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 +11 -3
  22. package/dist/schemas/project-schema/v3.38.0.json +1 -1
  23. package/dist/schemas/project-schema/v3.39.0.json +3218 -0
  24. package/dist/schemas/project-schema.json +3 -0
  25. package/dist/validate.js +1 -1
  26. package/es/migration/index.js +3 -1
  27. package/es/migration/to/v3.39.0.js +54 -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.39.0.js +1 -0
  31. package/es/schemas/index.js +4 -3
  32. package/es/schemas/index.ts +4 -2
  33. package/es/schemas/project-schema/latest.json +11 -3
  34. package/es/schemas/project-schema/v3.38.0.json +1 -1
  35. package/es/schemas/project-schema/v3.39.0.json +3218 -0
  36. package/es/schemas/project-schema.json +3 -0
  37. package/es/validate.js +1 -1
  38. package/examples/latest/betzino.json +1 -1
  39. package/examples/latest/blog-schema.json +1 -1
  40. package/examples/latest/brewery-schema.json +1 -1
  41. package/examples/latest/complex-project-schema.json +1 -1
  42. package/examples/latest/complex-schema.json +1 -1
  43. package/examples/latest/edit-schema.json +1 -1
  44. package/examples/latest/fabric-ecommerce.json +1 -1
  45. package/examples/latest/frank-and-fred-schema.json +1 -1
  46. package/examples/latest/klirr-schema.json +1 -1
  47. package/examples/latest/massive-schema.json +1 -1
  48. package/examples/latest/mill-components-schema.json +1 -1
  49. package/examples/latest/nested-shape-arrays.json +66 -20
  50. package/examples/latest/one-earth.json +1 -1
  51. package/examples/latest/pet-oneof-array.json +1 -1
  52. package/examples/latest/post-schema.json +1 -1
  53. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  54. package/examples/latest/real-world-schema.json +1 -1
  55. package/examples/latest/recursive-repeater-schema.json +1 -1
  56. package/examples/latest/recursive-schema.json +1 -1
  57. package/examples/latest/rick-and-morty-ast.json +1 -1
  58. package/examples/latest/rick-and-morty-graphql.json +1 -1
  59. package/examples/latest/rick-and-morty-rest.json +1 -1
  60. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  61. package/examples/latest/shape-books-v3_2_0.json +1 -1
  62. package/examples/latest/shape-books.json +1 -1
  63. package/examples/latest/shape-editor-schema-edited.json +1 -1
  64. package/examples/latest/shape-editor-schema-initial.json +1 -1
  65. package/examples/latest/shopify-lookbook.json +1 -1
  66. package/examples/latest/shopify-product-2022-07.json +1 -1
  67. package/examples/latest/shopify-product-2023-04.json +1 -1
  68. package/examples/latest/shopify-store-with-widget.json +1 -1
  69. package/examples/latest/stripe-product-runtime-schema.json +1 -1
  70. package/examples/latest/stripe-starter-resolved.json +1 -1
  71. package/examples/latest/user-schema-no-required.json +1 -1
  72. package/examples/latest/user-schema-with-defaults.json +1 -1
  73. package/package.json +5 -5
@@ -144,6 +144,9 @@
144
144
  {
145
145
  "$ref": "https://schema.takeshape.io/project-schema/v3.38.0#"
146
146
  },
147
+ {
148
+ "$ref": "https://schema.takeshape.io/project-schema/v3.39.0#"
149
+ },
147
150
  {
148
151
  "$ref": "https://schema.takeshape.io/project-schema/v4.0.0#"
149
152
  }
package/es/validate.js CHANGED
@@ -141,7 +141,7 @@ function enumerateBasicResolvers(resolver, path) {
141
141
  const visit = (resolver, path) => {
142
142
  if (isComposeResolver(resolver)) {
143
143
  resolver.compose.forEach((resolver, i) => {
144
- visit(resolver, [...path, i]);
144
+ visit(resolver, [...path, 'compose', i]);
145
145
  });
146
146
  } else {
147
147
  results.push([resolver, path]);
@@ -52781,6 +52781,6 @@
52781
52781
  }
52782
52782
  }
52783
52783
  },
52784
- "schemaVersion": "3.38.0",
52784
+ "schemaVersion": "3.39.0",
52785
52785
  "services": {}
52786
52786
  }
@@ -399,6 +399,6 @@
399
399
  }
400
400
  }
401
401
  },
402
- "schemaVersion": "3.38.0",
402
+ "schemaVersion": "3.39.0",
403
403
  "services": {}
404
404
  }
@@ -387,6 +387,6 @@
387
387
  }
388
388
  }
389
389
  },
390
- "schemaVersion": "3.38.0",
390
+ "schemaVersion": "3.39.0",
391
391
  "services": {}
392
392
  }
@@ -4350,6 +4350,6 @@
4350
4350
  }
4351
4351
  }
4352
4352
  },
4353
- "schemaVersion": "3.38.0",
4353
+ "schemaVersion": "3.39.0",
4354
4354
  "services": {}
4355
4355
  }
@@ -15,7 +15,7 @@
15
15
  "apiVersion": "1",
16
16
  "queries": {},
17
17
  "mutations": {},
18
- "schemaVersion": "3.38.0",
18
+ "schemaVersion": "3.39.0",
19
19
  "shapes": {
20
20
  "DocumentUploadForm": {
21
21
  "id": "HJPFlRKkr",
@@ -97,6 +97,6 @@
97
97
  }
98
98
  }
99
99
  },
100
- "schemaVersion": "3.38.0",
100
+ "schemaVersion": "3.39.0",
101
101
  "apiVersion": "2"
102
102
  }
@@ -10474,5 +10474,5 @@
10474
10474
  }
10475
10475
  }
10476
10476
  },
10477
- "schemaVersion": "3.38.0"
10477
+ "schemaVersion": "3.39.0"
10478
10478
  }
@@ -23446,6 +23446,6 @@
23446
23446
  }
23447
23447
  }
23448
23448
  },
23449
- "schemaVersion": "3.38.0",
23449
+ "schemaVersion": "3.39.0",
23450
23450
  "services": {}
23451
23451
  }
@@ -35163,6 +35163,6 @@
35163
35163
  }
35164
35164
  }
35165
35165
  },
35166
- "schemaVersion": "3.38.0",
35166
+ "schemaVersion": "3.39.0",
35167
35167
  "services": {}
35168
35168
  }
@@ -8053,6 +8053,6 @@
8053
8053
  }
8054
8054
  }
8055
8055
  },
8056
- "schemaVersion": "3.38.0",
8056
+ "schemaVersion": "3.39.0",
8057
8057
  "services": {}
8058
8058
  }
@@ -1884,6 +1884,6 @@
1884
1884
  }
1885
1885
  }
1886
1886
  },
1887
- "schemaVersion": "3.38.0",
1887
+ "schemaVersion": "3.39.0",
1888
1888
  "services": {}
1889
1889
  }
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "projectId": "project-id",
3
3
  "defaultLocale": "en-us",
4
- "locales": ["en-us"],
4
+ "locales": [
5
+ "en-us"
6
+ ],
5
7
  "queries": {
6
8
  "getOuterShape": {
7
9
  "shape": "OuterShape",
@@ -80,10 +82,14 @@
80
82
  "@resolver": {
81
83
  "name": "shapedb:getRelated",
82
84
  "service": "shapedb",
83
- "options": {"nullable": true}
85
+ "options": {
86
+ "nullable": true
87
+ }
84
88
  },
85
89
  "@ref": "local:Asset",
86
- "@input": {"@ref": "local:TSRelationship"},
90
+ "@input": {
91
+ "@ref": "local:TSRelationship"
92
+ },
87
93
  "@mapping": "shapedb:Image.3gKHjLx4b"
88
94
  }
89
95
  }
@@ -100,7 +106,9 @@
100
106
  "title": "Media",
101
107
  "@mapping": "shapedb:ImageContainer.o0c8IltQD",
102
108
  "type": "array",
103
- "items": {"@ref": "local:Image"}
109
+ "items": {
110
+ "@ref": "local:Image"
111
+ }
104
112
  }
105
113
  }
106
114
  }
@@ -116,7 +124,9 @@
116
124
  "title": "Media Content",
117
125
  "@mapping": "shapedb:MediaContent.LKpMs3dQY",
118
126
  "type": "array",
119
- "items": {"@ref": "local:ImageContainer"}
127
+ "items": {
128
+ "@ref": "local:ImageContainer"
129
+ }
120
130
  }
121
131
  }
122
132
  }
@@ -132,7 +142,9 @@
132
142
  "title": "Section",
133
143
  "@mapping": "shapedb:MediaSection.11tXCwfDS",
134
144
  "type": "array",
135
- "items": {"@ref": "local:MediaContent"}
145
+ "items": {
146
+ "@ref": "local:MediaContent"
147
+ }
136
148
  }
137
149
  }
138
150
  }
@@ -141,7 +153,9 @@
141
153
  "id": "Qj6B-JW0D",
142
154
  "name": "OuterShape",
143
155
  "title": "Outer Shape",
144
- "model": {"type": "multiple"},
156
+ "model": {
157
+ "type": "multiple"
158
+ },
145
159
  "schema": {
146
160
  "type": "object",
147
161
  "properties": {
@@ -149,7 +163,9 @@
149
163
  "@mapping": "shapedb:OuterShape.2vwHVl5I7",
150
164
  "type": "array",
151
165
  "title": "Content",
152
- "items": {"@ref": "local:MediaSection"}
166
+ "items": {
167
+ "@ref": "local:MediaSection"
168
+ }
153
169
  }
154
170
  }
155
171
  }
@@ -159,35 +175,65 @@
159
175
  "forms": {
160
176
  "Image": {
161
177
  "default": {
162
- "properties": {"image": {"widget": "image"}},
163
- "order": ["image"]
178
+ "properties": {
179
+ "image": {
180
+ "widget": "image"
181
+ }
182
+ },
183
+ "order": [
184
+ "image"
185
+ ]
164
186
  }
165
187
  },
166
188
  "ImageContainer": {
167
189
  "default": {
168
- "properties": {"Media": {"widget": "shapeArray"}},
169
- "order": ["Media"]
190
+ "properties": {
191
+ "Media": {
192
+ "widget": "shapeArray"
193
+ }
194
+ },
195
+ "order": [
196
+ "Media"
197
+ ]
170
198
  }
171
199
  },
172
200
  "MediaContent": {
173
201
  "default": {
174
- "properties": {"mediaContent": {"widget": "shapeArray"}},
175
- "order": ["mediaContent"]
202
+ "properties": {
203
+ "mediaContent": {
204
+ "widget": "shapeArray"
205
+ }
206
+ },
207
+ "order": [
208
+ "mediaContent"
209
+ ]
176
210
  }
177
211
  },
178
212
  "MediaSection": {
179
213
  "default": {
180
- "properties": {"section": {"widget": "shapeArray"}},
181
- "order": ["section"]
214
+ "properties": {
215
+ "section": {
216
+ "widget": "shapeArray"
217
+ }
218
+ },
219
+ "order": [
220
+ "section"
221
+ ]
182
222
  }
183
223
  },
184
224
  "OuterShape": {
185
225
  "default": {
186
- "properties": {"content": {"widget": "shapeArray"}},
187
- "order": ["content"]
226
+ "properties": {
227
+ "content": {
228
+ "widget": "shapeArray"
229
+ }
230
+ },
231
+ "order": [
232
+ "content"
233
+ ]
188
234
  }
189
235
  }
190
236
  },
191
- "schemaVersion": "3.38.0",
237
+ "schemaVersion": "3.39.0",
192
238
  "apiVersion": "2"
193
- }
239
+ }
@@ -14766,6 +14766,6 @@
14766
14766
  }
14767
14767
  }
14768
14768
  },
14769
- "schemaVersion": "3.38.0",
14769
+ "schemaVersion": "3.39.0",
14770
14770
  "services": {}
14771
14771
  }
@@ -388,6 +388,6 @@
388
388
  }
389
389
  }
390
390
  },
391
- "schemaVersion": "3.38.0",
391
+ "schemaVersion": "3.39.0",
392
392
  "services": {}
393
393
  }
@@ -226,6 +226,6 @@
226
226
  }
227
227
  }
228
228
  },
229
- "schemaVersion": "3.38.0",
229
+ "schemaVersion": "3.39.0",
230
230
  "services": {}
231
231
  }
@@ -9756,5 +9756,5 @@
9756
9756
  }
9757
9757
  }
9758
9758
  },
9759
- "schemaVersion": "3.38.0"
9759
+ "schemaVersion": "3.39.0"
9760
9760
  }
@@ -806,6 +806,6 @@
806
806
  }
807
807
  }
808
808
  },
809
- "schemaVersion": "3.38.0",
809
+ "schemaVersion": "3.39.0",
810
810
  "services": {}
811
811
  }
@@ -142,6 +142,6 @@
142
142
  }
143
143
  }
144
144
  },
145
- "schemaVersion": "3.38.0",
145
+ "schemaVersion": "3.39.0",
146
146
  "services": {}
147
147
  }
@@ -149,6 +149,6 @@
149
149
  }
150
150
  }
151
151
  },
152
- "schemaVersion": "3.38.0",
152
+ "schemaVersion": "3.39.0",
153
153
  "services": {}
154
154
  }
@@ -2633,5 +2633,5 @@
2633
2633
  }
2634
2634
  }
2635
2635
  },
2636
- "schemaVersion": "3.38.0"
2636
+ "schemaVersion": "3.39.0"
2637
2637
  }
@@ -2105,5 +2105,5 @@
2105
2105
  }
2106
2106
  }
2107
2107
  },
2108
- "schemaVersion": "3.38.0"
2108
+ "schemaVersion": "3.39.0"
2109
2109
  }
@@ -91,5 +91,5 @@
91
91
  }
92
92
  }
93
93
  },
94
- "schemaVersion": "3.38.0"
94
+ "schemaVersion": "3.39.0"
95
95
  }
@@ -397,6 +397,6 @@
397
397
  }
398
398
  }
399
399
  },
400
- "schemaVersion": "3.38.0",
400
+ "schemaVersion": "3.39.0",
401
401
  "services": {}
402
402
  }
@@ -1129,6 +1129,6 @@
1129
1129
  }
1130
1130
  }
1131
1131
  },
1132
- "schemaVersion": "3.38.0",
1132
+ "schemaVersion": "3.39.0",
1133
1133
  "services": {}
1134
1134
  }
@@ -1129,6 +1129,6 @@
1129
1129
  }
1130
1130
  }
1131
1131
  },
1132
- "schemaVersion": "3.38.0",
1132
+ "schemaVersion": "3.39.0",
1133
1133
  "services": {}
1134
1134
  }
@@ -1004,6 +1004,6 @@
1004
1004
  }
1005
1005
  }
1006
1006
  },
1007
- "schemaVersion": "3.38.0",
1007
+ "schemaVersion": "3.39.0",
1008
1008
  "apiVersion": "2"
1009
1009
  }
@@ -406,6 +406,6 @@
406
406
  }
407
407
  }
408
408
  },
409
- "schemaVersion": "3.38.0",
409
+ "schemaVersion": "3.39.0",
410
410
  "apiVersion": "2"
411
411
  }
@@ -1147,5 +1147,5 @@
1147
1147
  }
1148
1148
  }
1149
1149
  },
1150
- "schemaVersion": "3.38.0"
1150
+ "schemaVersion": "3.39.0"
1151
1151
  }
@@ -5,7 +5,7 @@
5
5
  "en-us"
6
6
  ],
7
7
  "apiVersion": "2",
8
- "schemaVersion": "3.38.0",
8
+ "schemaVersion": "3.39.0",
9
9
  "queries": {
10
10
  "getAsset": {
11
11
  "shape": "Asset",
@@ -49144,7 +49144,7 @@
49144
49144
  }
49145
49145
  }
49146
49146
  },
49147
- "schemaVersion": "3.38.0",
49147
+ "schemaVersion": "3.39.0",
49148
49148
  "apiVersion": "2",
49149
49149
  "services": {
49150
49150
  "shopify": {
@@ -12297,5 +12297,5 @@
12297
12297
  }
12298
12298
  }
12299
12299
  },
12300
- "schemaVersion": "3.38.0"
12300
+ "schemaVersion": "3.39.0"
12301
12301
  }
@@ -5,7 +5,7 @@
5
5
  "en-us"
6
6
  ],
7
7
  "apiVersion": "2",
8
- "schemaVersion": "3.38.0",
8
+ "schemaVersion": "3.39.0",
9
9
  "queries": {
10
10
  "getAsset": {
11
11
  "shape": "Asset",
@@ -28916,5 +28916,5 @@
28916
28916
  }
28917
28917
  }
28918
28918
  },
28919
- "schemaVersion": "3.38.0"
28919
+ "schemaVersion": "3.39.0"
28920
28920
  }
@@ -165,6 +165,6 @@
165
165
  }
166
166
  }
167
167
  },
168
- "schemaVersion": "3.38.0",
168
+ "schemaVersion": "3.39.0",
169
169
  "services": {}
170
170
  }
@@ -190,6 +190,6 @@
190
190
  }
191
191
  }
192
192
  },
193
- "schemaVersion": "3.38.0",
193
+ "schemaVersion": "3.39.0",
194
194
  "services": {}
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "9.70.0",
3
+ "version": "9.71.2",
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.70.0",
32
- "@takeshape/util": "9.70.0",
33
- "@takeshape/json-schema": "9.70.0"
31
+ "@takeshape/errors": "9.71.2",
32
+ "@takeshape/json-schema": "9.71.2",
33
+ "@takeshape/util": "9.71.2"
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.70.0"
49
+ "@takeshape/typescript-jest-junit-reporter": "9.71.2"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=16"