@takeshape/schema 9.36.4 → 9.37.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
package/es/schemas/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
|
-
export const CURRENT_SCHEMA_VERSION = '3.
|
|
2
|
+
export const CURRENT_SCHEMA_VERSION = '3.31.0';
|
|
3
3
|
export {default as anyProjectSchema} from './project-schema.json';
|
|
4
|
-
export {default as latestSchemaJson} from './project-schema/v3.
|
|
4
|
+
export {default as latestSchemaJson} from './project-schema/v3.31.0.json';
|
|
5
5
|
import metaSchemaV1_0_0 from './project-schema/meta-schema-v1.0.0.json';
|
|
6
6
|
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json';
|
|
7
7
|
import metaSchemaV3_0_0 from './project-schema/meta-schema-v3.0.0.json';
|
|
@@ -53,6 +53,7 @@ import projectSchemaV3_27_0 from './project-schema/v3.27.0.json';
|
|
|
53
53
|
import projectSchemaV3_28_0 from './project-schema/v3.28.0.json';
|
|
54
54
|
import projectSchemaV3_29_0 from './project-schema/v3.29.0.json';
|
|
55
55
|
import projectSchemaV3_30_0 from './project-schema/v3.30.0.json';
|
|
56
|
+
import projectSchemaV3_31_0 from './project-schema/v3.31.0.json';
|
|
56
57
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json';
|
|
57
58
|
export const allProjectSchemas = [
|
|
58
59
|
metaSchemaV1_0_0,
|
|
@@ -106,5 +107,6 @@ export const allProjectSchemas = [
|
|
|
106
107
|
projectSchemaV3_28_0,
|
|
107
108
|
projectSchemaV3_29_0,
|
|
108
109
|
projectSchemaV3_30_0,
|
|
110
|
+
projectSchemaV3_31_0,
|
|
109
111
|
projectSchemaV4_0_0
|
|
110
112
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://schema.takeshape.io/project-schema/v3.
|
|
3
|
+
"$id": "https://schema.takeshape.io/project-schema/v3.31.0#",
|
|
4
4
|
"title": "Project Schema",
|
|
5
5
|
"definitions": {
|
|
6
6
|
"schemaArray": {
|
|
@@ -1019,7 +1019,10 @@
|
|
|
1019
1019
|
"$ref": "#/definitions/takeshapeResolver"
|
|
1020
1020
|
},
|
|
1021
1021
|
{
|
|
1022
|
-
"$ref": "#/definitions/
|
|
1022
|
+
"$ref": "#/definitions/shapedbResolver"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"$ref": "#/definitions/shapedbResolverShapeNameNotRequired"
|
|
1023
1026
|
},
|
|
1024
1027
|
{
|
|
1025
1028
|
"$ref": "#/definitions/graphqlResolver"
|
|
@@ -1049,7 +1052,10 @@
|
|
|
1049
1052
|
"$ref": "#/definitions/takeshapeResolver"
|
|
1050
1053
|
},
|
|
1051
1054
|
{
|
|
1052
|
-
"$ref": "#/definitions/
|
|
1055
|
+
"$ref": "#/definitions/shapedbResolverShapeNameNotRequired"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"$ref": "#/definitions/shapedbResolver"
|
|
1053
1059
|
},
|
|
1054
1060
|
{
|
|
1055
1061
|
"$ref": "#/definitions/graphqlResolver"
|
|
@@ -1107,14 +1113,10 @@
|
|
|
1107
1113
|
"type": "string",
|
|
1108
1114
|
"description": "Name of the resolver function.",
|
|
1109
1115
|
"enum": [
|
|
1110
|
-
"
|
|
1116
|
+
"util:noop",
|
|
1111
1117
|
"util:wrap"
|
|
1112
1118
|
]
|
|
1113
1119
|
},
|
|
1114
|
-
"service": {
|
|
1115
|
-
"type": "string",
|
|
1116
|
-
"description": "Configuration for a service to use with this resolver."
|
|
1117
|
-
},
|
|
1118
1120
|
"options": {
|
|
1119
1121
|
"title": "UtilResolverOptions",
|
|
1120
1122
|
"type": "object",
|
|
@@ -1136,8 +1138,7 @@
|
|
|
1136
1138
|
}
|
|
1137
1139
|
},
|
|
1138
1140
|
"required": [
|
|
1139
|
-
"name"
|
|
1140
|
-
"service"
|
|
1141
|
+
"name"
|
|
1141
1142
|
],
|
|
1142
1143
|
"additionalProperties": false
|
|
1143
1144
|
},
|
|
@@ -1240,8 +1241,8 @@
|
|
|
1240
1241
|
],
|
|
1241
1242
|
"additionalProperties": false
|
|
1242
1243
|
},
|
|
1243
|
-
"
|
|
1244
|
-
"title": "
|
|
1244
|
+
"shapedbResolver": {
|
|
1245
|
+
"title": "ShapedbResolver",
|
|
1245
1246
|
"type": "object",
|
|
1246
1247
|
"properties": {
|
|
1247
1248
|
"if": {
|
|
@@ -1252,28 +1253,27 @@
|
|
|
1252
1253
|
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1253
1254
|
},
|
|
1254
1255
|
"name": {
|
|
1255
|
-
"title": "
|
|
1256
|
+
"title": "ShapedbResolverName",
|
|
1256
1257
|
"type": "string",
|
|
1257
1258
|
"description": "Name of the resolver function.",
|
|
1258
1259
|
"enum": [
|
|
1259
|
-
"
|
|
1260
|
-
"
|
|
1261
|
-
"
|
|
1262
|
-
"
|
|
1263
|
-
"
|
|
1264
|
-
"
|
|
1265
|
-
"takeshape:queryApiIndex"
|
|
1260
|
+
"shapedb:get",
|
|
1261
|
+
"shapedb:create",
|
|
1262
|
+
"shapedb:update",
|
|
1263
|
+
"shapedb:delete",
|
|
1264
|
+
"shapedb:duplicate",
|
|
1265
|
+
"shapedb:find"
|
|
1266
1266
|
]
|
|
1267
1267
|
},
|
|
1268
1268
|
"service": {
|
|
1269
1269
|
"type": "string",
|
|
1270
1270
|
"description": "Internal service identifier.",
|
|
1271
1271
|
"enum": [
|
|
1272
|
-
"
|
|
1272
|
+
"shapedb"
|
|
1273
1273
|
]
|
|
1274
1274
|
},
|
|
1275
1275
|
"options": {
|
|
1276
|
-
"title": "
|
|
1276
|
+
"title": "ShapedbResolverOptions",
|
|
1277
1277
|
"type": "object",
|
|
1278
1278
|
"additionalProperties": true
|
|
1279
1279
|
},
|
|
@@ -1304,8 +1304,8 @@
|
|
|
1304
1304
|
],
|
|
1305
1305
|
"additionalProperties": false
|
|
1306
1306
|
},
|
|
1307
|
-
"
|
|
1308
|
-
"title": "
|
|
1307
|
+
"shapedbResolverShapeNameNotRequired": {
|
|
1308
|
+
"title": "ShapedbResolverShapeNameNotRequired",
|
|
1309
1309
|
"type": "object",
|
|
1310
1310
|
"properties": {
|
|
1311
1311
|
"if": {
|
|
@@ -1316,22 +1316,79 @@
|
|
|
1316
1316
|
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1317
1317
|
},
|
|
1318
1318
|
"name": {
|
|
1319
|
-
"title": "
|
|
1319
|
+
"title": "ShapedbResolverShapeNameNotRequiredName",
|
|
1320
|
+
"type": "string",
|
|
1321
|
+
"description": "Name of the resolver function.",
|
|
1322
|
+
"enum": [
|
|
1323
|
+
"shapedb:list",
|
|
1324
|
+
"shapedb:taxonomySuggest",
|
|
1325
|
+
"shapedb:getRelated"
|
|
1326
|
+
]
|
|
1327
|
+
},
|
|
1328
|
+
"service": {
|
|
1329
|
+
"type": "string",
|
|
1330
|
+
"description": "Internal service identifier.",
|
|
1331
|
+
"enum": [
|
|
1332
|
+
"shapedb"
|
|
1333
|
+
]
|
|
1334
|
+
},
|
|
1335
|
+
"options": {
|
|
1336
|
+
"title": "ShapedbResolverShapeNameNotRequiredOptions",
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"additionalProperties": true
|
|
1339
|
+
},
|
|
1340
|
+
"shapeName": {
|
|
1341
|
+
"description": "An optional Shape name for the resolver.",
|
|
1342
|
+
"type": "string",
|
|
1343
|
+
"minLength": 1
|
|
1344
|
+
},
|
|
1345
|
+
"args": {
|
|
1346
|
+
"description": "Mapping and serialization configuration for args.",
|
|
1347
|
+
"$ref": "#/definitions/parameterConfigForJson"
|
|
1348
|
+
},
|
|
1349
|
+
"results": {
|
|
1350
|
+
"description": "Mapping configuration for the results of this resolver step.",
|
|
1351
|
+
"$ref": "#/definitions/parameterConfigForJson"
|
|
1352
|
+
},
|
|
1353
|
+
"argsMapping": {
|
|
1354
|
+
"$ref": "#/definitions/argsMapping"
|
|
1355
|
+
},
|
|
1356
|
+
"resultsMapping": {
|
|
1357
|
+
"$ref": "#/definitions/resultsMapping"
|
|
1358
|
+
}
|
|
1359
|
+
},
|
|
1360
|
+
"required": [
|
|
1361
|
+
"name",
|
|
1362
|
+
"service"
|
|
1363
|
+
],
|
|
1364
|
+
"additionalProperties": false
|
|
1365
|
+
},
|
|
1366
|
+
"takeshapeResolver": {
|
|
1367
|
+
"title": "TakeshapeResolver",
|
|
1368
|
+
"type": "object",
|
|
1369
|
+
"properties": {
|
|
1370
|
+
"if": {
|
|
1371
|
+
"type": "string"
|
|
1372
|
+
},
|
|
1373
|
+
"id": {
|
|
1374
|
+
"type": "string",
|
|
1375
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1376
|
+
},
|
|
1377
|
+
"name": {
|
|
1378
|
+
"title": "TakeshapeResolverName",
|
|
1320
1379
|
"type": "string",
|
|
1321
1380
|
"description": "Name of the resolver function.",
|
|
1322
1381
|
"enum": [
|
|
1323
|
-
"takeshape:getRelated",
|
|
1324
1382
|
"takeshape:getUser",
|
|
1325
|
-
"takeshape:
|
|
1326
|
-
"takeshape:
|
|
1327
|
-
"takeshape:search"
|
|
1383
|
+
"takeshape:search",
|
|
1384
|
+
"takeshape:queryApiIndex"
|
|
1328
1385
|
]
|
|
1329
1386
|
},
|
|
1330
1387
|
"service": {
|
|
1331
1388
|
"type": "string",
|
|
1332
1389
|
"description": "Internal service identifier.",
|
|
1333
1390
|
"enum": [
|
|
1334
|
-
"takeshape
|
|
1391
|
+
"takeshape"
|
|
1335
1392
|
]
|
|
1336
1393
|
},
|
|
1337
1394
|
"options": {
|
|
@@ -2958,7 +3015,7 @@
|
|
|
2958
3015
|
"schemaVersion": {
|
|
2959
3016
|
"type": "string",
|
|
2960
3017
|
"enum": [
|
|
2961
|
-
"3.
|
|
3018
|
+
"3.31.0"
|
|
2962
3019
|
],
|
|
2963
3020
|
"description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
|
|
2964
3021
|
},
|
|
@@ -3029,4 +3086,4 @@
|
|
|
3029
3086
|
"mutations",
|
|
3030
3087
|
"workflows"
|
|
3031
3088
|
]
|
|
3032
|
-
}
|
|
3089
|
+
}
|