@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.
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +3 -1
- package/dist/migration/to/v3.40.0.d.ts +5 -0
- package/dist/migration/to/v3.40.0.d.ts.map +1 -0
- package/dist/migration/to/v3.40.0.js +33 -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 +17 -3
- package/dist/project-schema/latest.d.ts +2 -1
- 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 +3 -0
- package/dist/project-schema/v3.40.0.d.ts +1531 -0
- package/dist/project-schema/v3.40.0.d.ts.map +1 -0
- package/dist/project-schema/v3.40.0.js +5 -0
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +5 -4
- package/dist/schemas/index.ts +4 -2
- package/dist/schemas/project-schema/latest.json +6 -3
- package/dist/schemas/project-schema/v3.40.0.json +3221 -0
- package/dist/schemas/project-schema.json +3 -0
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.40.0.js +26 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +4 -1
- package/es/project-schema/v3.40.0.js +1 -0
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +6 -3
- package/es/schemas/project-schema/v3.40.0.json +3221 -0
- package/es/schemas/project-schema.json +3 -0
- package/examples/latest/all-fields-shapes-inline.json +1 -1
- package/examples/latest/all-fields-shapes.json +1 -1
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/edit-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/nested-shape-arrays.json +1 -1
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/schema-where-filter.json +136 -37
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/schema-with-rick-and-morty.json +21 -7
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shape-editor-schema-edited.json +1 -1
- package/examples/latest/shape-editor-schema-initial.json +1 -1
- package/examples/latest/shapedb-crud-every-prop-type.json +96 -26
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-product-2022-07.json +1 -1
- package/examples/latest/shopify-product-2023-04.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- package/examples/latest/stripe-product-runtime-schema.json +3 -2
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"projectId": "projectId",
|
|
3
3
|
"defaultLocale": "en-us",
|
|
4
|
-
"locales": [
|
|
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": {
|
|
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
|
-
{
|
|
90
|
-
|
|
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
|
-
{
|
|
107
|
-
|
|
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
|
-
{
|
|
125
|
-
|
|
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": {
|
|
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": {
|
|
183
|
+
"options": {
|
|
184
|
+
"nullable": true
|
|
185
|
+
}
|
|
148
186
|
},
|
|
149
187
|
"@ref": "local:Asset",
|
|
150
|
-
"@input": {
|
|
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": {
|
|
199
|
+
"options": {
|
|
200
|
+
"nullable": true
|
|
201
|
+
}
|
|
160
202
|
},
|
|
161
203
|
"type": "array",
|
|
162
|
-
"items": {
|
|
204
|
+
"items": {
|
|
205
|
+
"@ref": "local:Asset"
|
|
206
|
+
},
|
|
163
207
|
"@input": {
|
|
164
208
|
"type": "array",
|
|
165
|
-
"items": {
|
|
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": {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
"
|
|
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.
|
|
274
|
+
"schemaVersion": "3.40.0",
|
|
205
275
|
"apiVersion": "2"
|
|
206
|
-
}
|
|
276
|
+
}
|
|
@@ -49144,7 +49144,7 @@
|
|
|
49144
49144
|
}
|
|
49145
49145
|
}
|
|
49146
49146
|
},
|
|
49147
|
-
"schemaVersion": "3.
|
|
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.
|
|
12300
|
+
"schemaVersion": "3.40.0"
|
|
12301
12301
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"en-us"
|
|
6
6
|
],
|
|
7
7
|
"apiVersion": "2",
|
|
8
|
-
"schemaVersion": "3.
|
|
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.
|
|
28919
|
+
"schemaVersion": "3.40.0"
|
|
28920
28920
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "10.
|
|
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/
|
|
32
|
-
"@takeshape/
|
|
33
|
-
"@takeshape/
|
|
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.
|
|
50
|
-
"@takeshape/infra": "10.
|
|
49
|
+
"@takeshape/typescript-jest-junit-reporter": "10.15.0",
|
|
50
|
+
"@takeshape/infra": "10.15.0"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=18"
|