@takeshape/schema 10.14.9 → 10.15.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 (74) 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 +3 -1
  4. package/dist/migration/to/v3.40.0.d.ts +5 -0
  5. package/dist/migration/to/v3.40.0.d.ts.map +1 -0
  6. package/dist/migration/to/v3.40.0.js +33 -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 +17 -3
  10. package/dist/project-schema/latest.d.ts +2 -1
  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 +3 -0
  14. package/dist/project-schema/v3.40.0.d.ts +1531 -0
  15. package/dist/project-schema/v3.40.0.d.ts.map +1 -0
  16. package/dist/project-schema/v3.40.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 +5 -4
  20. package/dist/schemas/index.ts +4 -2
  21. package/dist/schemas/project-schema/latest.json +6 -3
  22. package/dist/schemas/project-schema/v3.40.0.json +3221 -0
  23. package/dist/schemas/project-schema.json +3 -0
  24. package/es/migration/index.js +3 -1
  25. package/es/migration/to/v3.40.0.js +26 -0
  26. package/es/project-schema/index.js +3 -1
  27. package/es/project-schema/migrate.js +4 -1
  28. package/es/project-schema/v3.40.0.js +1 -0
  29. package/es/schemas/index.js +4 -3
  30. package/es/schemas/index.ts +4 -2
  31. package/es/schemas/project-schema/latest.json +6 -3
  32. package/es/schemas/project-schema/v3.40.0.json +3221 -0
  33. package/es/schemas/project-schema.json +3 -0
  34. package/examples/latest/all-fields-shapes-inline.json +1 -1
  35. package/examples/latest/all-fields-shapes.json +1 -1
  36. package/examples/latest/betzino.json +1 -1
  37. package/examples/latest/blog-schema.json +1 -1
  38. package/examples/latest/brewery-schema.json +1 -1
  39. package/examples/latest/complex-project-schema.json +1 -1
  40. package/examples/latest/complex-schema.json +1 -1
  41. package/examples/latest/edit-schema.json +1 -1
  42. package/examples/latest/fabric-ecommerce.json +1 -1
  43. package/examples/latest/frank-and-fred-schema.json +1 -1
  44. package/examples/latest/klirr-schema.json +1 -1
  45. package/examples/latest/massive-schema.json +1 -1
  46. package/examples/latest/mill-components-schema.json +1 -1
  47. package/examples/latest/nested-shape-arrays.json +1 -1
  48. package/examples/latest/one-earth.json +1 -1
  49. package/examples/latest/pet-oneof-array.json +1 -1
  50. package/examples/latest/post-schema.json +1 -1
  51. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  52. package/examples/latest/real-world-schema.json +1 -1
  53. package/examples/latest/recursive-repeater-schema.json +1 -1
  54. package/examples/latest/recursive-schema.json +1 -1
  55. package/examples/latest/rick-and-morty-ast.json +1 -1
  56. package/examples/latest/rick-and-morty-graphql.json +1 -1
  57. package/examples/latest/rick-and-morty-rest.json +1 -1
  58. package/examples/latest/schema-where-filter.json +136 -37
  59. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  60. package/examples/latest/schema-with-rick-and-morty.json +21 -7
  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/shapedb-crud-every-prop-type.json +96 -26
  66. package/examples/latest/shopify-lookbook.json +1 -1
  67. package/examples/latest/shopify-product-2022-07.json +1 -1
  68. package/examples/latest/shopify-product-2023-04.json +1 -1
  69. package/examples/latest/shopify-store-with-widget.json +1 -1
  70. package/examples/latest/stripe-product-runtime-schema.json +3 -2
  71. package/examples/latest/stripe-starter-resolved.json +1 -1
  72. package/examples/latest/user-schema-no-required.json +1 -1
  73. package/examples/latest/user-schema-with-defaults.json +1 -1
  74. package/package.json +6 -6
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "projectId": "projectId",
3
3
  "defaultLocale": "en-us",
4
- "locales": ["en-us"],
4
+ "locales": [
5
+ "en-us"
6
+ ],
5
7
  "queries": {
6
8
  "getTestShape": {
7
9
  "shape": "TestShape",
@@ -71,7 +73,9 @@
71
73
  "id": "AEWxH9hft",
72
74
  "name": "TestShape",
73
75
  "title": "Test Shape",
74
- "model": {"type": "multiple"},
76
+ "model": {
77
+ "type": "multiple"
78
+ },
75
79
  "schema": {
76
80
  "type": "object",
77
81
  "properties": {
@@ -86,8 +90,18 @@
86
90
  "items": {
87
91
  "type": "string",
88
92
  "oneOf": [
89
- {"title": "Option 1", "enum": ["option1"]},
90
- {"title": "Option 2", "enum": ["option2"]}
93
+ {
94
+ "title": "Option 1",
95
+ "enum": [
96
+ "option1"
97
+ ]
98
+ },
99
+ {
100
+ "title": "Option 2",
101
+ "enum": [
102
+ "option2"
103
+ ]
104
+ }
91
105
  ]
92
106
  },
93
107
  "title": "String Array"
@@ -103,8 +117,18 @@
103
117
  "items": {
104
118
  "type": "number",
105
119
  "oneOf": [
106
- {"title": "Option 1", "enum": [1]},
107
- {"title": "Option 2", "enum": [2]}
120
+ {
121
+ "title": "Option 1",
122
+ "enum": [
123
+ 1
124
+ ]
125
+ },
126
+ {
127
+ "title": "Option 2",
128
+ "enum": [
129
+ 2
130
+ ]
131
+ }
108
132
  ]
109
133
  },
110
134
  "title": "Number Array"
@@ -121,8 +145,18 @@
121
145
  "items": {
122
146
  "type": "boolean",
123
147
  "oneOf": [
124
- {"title": "Option 1", "enum": [true]},
125
- {"title": "Option 2", "enum": [false]}
148
+ {
149
+ "title": "Option 1",
150
+ "enum": [
151
+ true
152
+ ]
153
+ },
154
+ {
155
+ "title": "Option 2",
156
+ "enum": [
157
+ false
158
+ ]
159
+ }
126
160
  ]
127
161
  },
128
162
  "title": "Boolean Array"
@@ -136,7 +170,9 @@
136
170
  "title": "Object Array",
137
171
  "@mapping": "shapedb:TestShape.V7Yd1AMmc",
138
172
  "type": "array",
139
- "items": {"@ref": "local:TSColor"}
173
+ "items": {
174
+ "@ref": "local:TSColor"
175
+ }
140
176
  },
141
177
  "asset": {
142
178
  "title": "Asset",
@@ -144,10 +180,14 @@
144
180
  "@resolver": {
145
181
  "name": "shapedb:getRelated",
146
182
  "service": "shapedb",
147
- "options": {"nullable": true}
183
+ "options": {
184
+ "nullable": true
185
+ }
148
186
  },
149
187
  "@ref": "local:Asset",
150
- "@input": {"@ref": "local:TSRelationship"},
188
+ "@input": {
189
+ "@ref": "local:TSRelationship"
190
+ },
151
191
  "@mapping": "shapedb:TestShape.O6R84g-I7"
152
192
  },
153
193
  "assetArray": {
@@ -156,13 +196,19 @@
156
196
  "@resolver": {
157
197
  "name": "shapedb:getRelated",
158
198
  "service": "shapedb",
159
- "options": {"nullable": true}
199
+ "options": {
200
+ "nullable": true
201
+ }
160
202
  },
161
203
  "type": "array",
162
- "items": {"@ref": "local:Asset"},
204
+ "items": {
205
+ "@ref": "local:Asset"
206
+ },
163
207
  "@input": {
164
208
  "type": "array",
165
- "items": {"@ref": "local:TSRelationship"}
209
+ "items": {
210
+ "@ref": "local:TSRelationship"
211
+ }
166
212
  },
167
213
  "@mapping": "shapedb:TestShape.bkfNY1o8B"
168
214
  }
@@ -175,16 +221,40 @@
175
221
  "TestShape": {
176
222
  "default": {
177
223
  "properties": {
178
- "string": {"widget": "singleLineText"},
179
- "stringArray": {"widget": "checkboxes"},
180
- "number": {"widget": "number"},
181
- "numberArray": {"widget": "numberCheckboxes"},
182
- "boolean": {"widget": "checkbox"},
183
- "booleanArray": {"widget": "booleanCheckboxes"},
184
- "object": {"widget": "color"},
185
- "objectArray": {"items": {"widget": "color"}},
186
- "asset": {"widget": "image"},
187
- "assetArray": {"items": {"widget": "image"}}
224
+ "string": {
225
+ "widget": "singleLineText"
226
+ },
227
+ "stringArray": {
228
+ "widget": "checkboxes"
229
+ },
230
+ "number": {
231
+ "widget": "number"
232
+ },
233
+ "numberArray": {
234
+ "widget": "numberCheckboxes"
235
+ },
236
+ "boolean": {
237
+ "widget": "checkbox"
238
+ },
239
+ "booleanArray": {
240
+ "widget": "booleanCheckboxes"
241
+ },
242
+ "object": {
243
+ "widget": "color"
244
+ },
245
+ "objectArray": {
246
+ "items": {
247
+ "widget": "color"
248
+ }
249
+ },
250
+ "asset": {
251
+ "widget": "image"
252
+ },
253
+ "assetArray": {
254
+ "items": {
255
+ "widget": "image"
256
+ }
257
+ }
188
258
  },
189
259
  "order": [
190
260
  "string",
@@ -201,6 +271,6 @@
201
271
  }
202
272
  }
203
273
  },
204
- "schemaVersion": "3.39.0",
274
+ "schemaVersion": "3.40.0",
205
275
  "apiVersion": "2"
206
- }
276
+ }
@@ -1147,5 +1147,5 @@
1147
1147
  }
1148
1148
  }
1149
1149
  },
1150
- "schemaVersion": "3.39.0"
1150
+ "schemaVersion": "3.40.0"
1151
1151
  }
@@ -5,7 +5,7 @@
5
5
  "en-us"
6
6
  ],
7
7
  "apiVersion": "2",
8
- "schemaVersion": "3.39.0",
8
+ "schemaVersion": "3.40.0",
9
9
  "queries": {
10
10
  "getAsset": {
11
11
  "shape": "Asset",
@@ -49144,7 +49144,7 @@
49144
49144
  }
49145
49145
  }
49146
49146
  },
49147
- "schemaVersion": "3.39.0",
49147
+ "schemaVersion": "3.40.0",
49148
49148
  "apiVersion": "2",
49149
49149
  "services": {
49150
49150
  "shopify": {
@@ -12297,5 +12297,5 @@
12297
12297
  }
12298
12298
  }
12299
12299
  },
12300
- "schemaVersion": "3.39.0"
12300
+ "schemaVersion": "3.40.0"
12301
12301
  }
@@ -5,7 +5,7 @@
5
5
  "en-us"
6
6
  ],
7
7
  "apiVersion": "2",
8
- "schemaVersion": "3.39.0",
8
+ "schemaVersion": "3.40.0",
9
9
  "queries": {
10
10
  "getAsset": {
11
11
  "shape": "Asset",
@@ -960,7 +960,8 @@
960
960
  "cache": {
961
961
  "enabled": true,
962
962
  "fragment": {
963
- "maxDepth": 1
963
+ "maxDepth": 1,
964
+ "includeDeprecated": true
964
965
  },
965
966
  "triggers": [
966
967
  {
@@ -28916,5 +28916,5 @@
28916
28916
  }
28917
28917
  }
28918
28918
  },
28919
- "schemaVersion": "3.39.0"
28919
+ "schemaVersion": "3.40.0"
28920
28920
  }
@@ -165,6 +165,6 @@
165
165
  }
166
166
  }
167
167
  },
168
- "schemaVersion": "3.39.0",
168
+ "schemaVersion": "3.40.0",
169
169
  "services": {}
170
170
  }
@@ -190,6 +190,6 @@
190
190
  }
191
191
  }
192
192
  },
193
- "schemaVersion": "3.39.0",
193
+ "schemaVersion": "3.40.0",
194
194
  "services": {}
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "10.14.9",
3
+ "version": "10.15.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": "10.14.9",
32
- "@takeshape/json-schema": "10.14.9",
33
- "@takeshape/util": "10.14.9"
31
+ "@takeshape/json-schema": "10.15.0",
32
+ "@takeshape/util": "10.15.0",
33
+ "@takeshape/errors": "10.15.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@takeshape/json-schema-to-typescript": "^11.0.0",
@@ -46,8 +46,8 @@
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": "10.14.9",
50
- "@takeshape/infra": "10.14.9"
49
+ "@takeshape/typescript-jest-junit-reporter": "10.15.0",
50
+ "@takeshape/infra": "10.15.0"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=18"