@takeshape/schema 9.40.2 → 9.41.3

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 (30) hide show
  1. package/dist/builtin-schema.d.ts.map +1 -1
  2. package/dist/builtin-schema.js +48 -89
  3. package/dist/schema-util.js +1 -1
  4. package/dist/template-shapes/templates.d.ts +1 -1
  5. package/dist/template-shapes/templates.d.ts.map +1 -1
  6. package/dist/template-shapes/templates.js +16 -8
  7. package/dist/template-shapes/where.js +2 -2
  8. package/es/builtin-schema.js +48 -89
  9. package/es/schema-util.js +1 -1
  10. package/es/template-shapes/templates.js +15 -7
  11. package/es/template-shapes/where.js +3 -3
  12. package/examples/latest/betzino.json +51 -51
  13. package/examples/latest/real-world-schema.json +0 -240
  14. package/examples/latest/rick-and-morty-ast.json +51 -51
  15. package/examples/latest/rick-and-morty-graphql.json +51 -51
  16. package/examples/latest/shopify-product-2022-07.json +201 -201
  17. package/examples/latest/shopify-product-2023-04.json +201 -201
  18. package/examples/latest/shopify-store-with-widget.json +51 -51
  19. package/examples/latest/stripe-product-runtime-schema.json +201 -201
  20. package/examples/latest/stripe-starter-resolved.json +51 -51
  21. package/examples/source/betzino.json +52 -52
  22. package/examples/source/real-world-schema.json +4 -172
  23. package/examples/source/rick-and-morty-ast.json +302 -117
  24. package/examples/source/rick-and-morty-graphql.json +213 -92
  25. package/examples/source/shopify-product-2022-07.json +202 -202
  26. package/examples/source/shopify-product-2023-04.json +202 -202
  27. package/examples/source/shopify-store-with-widget.json +485 -135
  28. package/examples/source/stripe-product-runtime-schema.json +202 -202
  29. package/examples/source/stripe-starter-resolved.json +52 -52
  30. package/package.json +5 -5
@@ -85,7 +85,7 @@
85
85
  ]
86
86
  }
87
87
  },
88
- "TsStaticSite": {
88
+ "TSStaticSite": {
89
89
  "default": {
90
90
  "order": [
91
91
  "title",
@@ -538,25 +538,25 @@
538
538
  "shape": "PaginatedList<Asset>",
539
539
  "description": "Returns a list Asset in natural order."
540
540
  },
541
- "getTsStaticSite": {
542
- "args": "TSGetArgs<TsStaticSite>",
541
+ "getTSStaticSite": {
542
+ "args": "TSGetArgs<TSStaticSite>",
543
543
  "resolver": {
544
544
  "name": "shapedb:get",
545
545
  "service": "shapedb",
546
- "shapeName": "TsStaticSite"
546
+ "shapeName": "TSStaticSite"
547
547
  },
548
- "shape": "TsStaticSite",
549
- "description": "Get a TsStaticSite by ID"
548
+ "shape": "TSStaticSite",
549
+ "description": "Get a TSStaticSite by ID"
550
550
  },
551
- "getTsStaticSiteList": {
552
- "args": "TSListArgs<TsStaticSite>",
551
+ "getTSStaticSiteList": {
552
+ "args": "TSListArgs<TSStaticSite>",
553
553
  "resolver": {
554
554
  "name": "shapedb:list",
555
555
  "service": "shapedb",
556
- "shapeName": "TsStaticSite"
556
+ "shapeName": "TSStaticSite"
557
557
  },
558
- "shape": "PaginatedList<TsStaticSite>",
559
- "description": "Returns a list TsStaticSite in natural order."
558
+ "shape": "PaginatedList<TSStaticSite>",
559
+ "description": "Returns a list TSStaticSite in natural order."
560
560
  },
561
561
  "getGenre": {
562
562
  "args": "TSGetArgs<Genre>",
@@ -759,45 +759,45 @@
759
759
  "shape": "DeleteResult<Asset>",
760
760
  "description": "Delete Asset"
761
761
  },
762
- "updateTsStaticSite": {
763
- "args": "UpdateArgs<TsStaticSite>",
762
+ "updateTSStaticSite": {
763
+ "args": "UpdateArgs<TSStaticSite>",
764
764
  "resolver": {
765
765
  "name": "shapedb:update",
766
766
  "service": "shapedb",
767
- "shapeName": "TsStaticSite"
767
+ "shapeName": "TSStaticSite"
768
768
  },
769
- "shape": "UpdateResult<TsStaticSite>",
770
- "description": "Update TsStaticSite"
769
+ "shape": "UpdateResult<TSStaticSite>",
770
+ "description": "Update TSStaticSite"
771
771
  },
772
- "createTsStaticSite": {
773
- "args": "CreateArgs<TsStaticSite>",
772
+ "createTSStaticSite": {
773
+ "args": "CreateArgs<TSStaticSite>",
774
774
  "resolver": {
775
775
  "name": "shapedb:create",
776
776
  "service": "shapedb",
777
- "shapeName": "TsStaticSite"
777
+ "shapeName": "TSStaticSite"
778
778
  },
779
- "shape": "CreateResult<TsStaticSite>",
780
- "description": "Create TsStaticSite"
779
+ "shape": "CreateResult<TSStaticSite>",
780
+ "description": "Create TSStaticSite"
781
781
  },
782
- "duplicateTsStaticSite": {
783
- "args": "DuplicateArgs<TsStaticSite>",
782
+ "duplicateTSStaticSite": {
783
+ "args": "DuplicateArgs<TSStaticSite>",
784
784
  "resolver": {
785
785
  "name": "shapedb:duplicate",
786
786
  "service": "shapedb",
787
- "shapeName": "TsStaticSite"
787
+ "shapeName": "TSStaticSite"
788
788
  },
789
- "shape": "DuplicateResult<TsStaticSite>",
790
- "description": "Duplicate TsStaticSite"
789
+ "shape": "DuplicateResult<TSStaticSite>",
790
+ "description": "Duplicate TSStaticSite"
791
791
  },
792
- "deleteTsStaticSite": {
793
- "args": "DeleteArgs<TsStaticSite>",
792
+ "deleteTSStaticSite": {
793
+ "args": "DeleteArgs<TSStaticSite>",
794
794
  "resolver": {
795
795
  "name": "shapedb:delete",
796
796
  "service": "shapedb",
797
- "shapeName": "TsStaticSite"
797
+ "shapeName": "TSStaticSite"
798
798
  },
799
- "shape": "DeleteResult<TsStaticSite>",
800
- "description": "Delete TsStaticSite"
799
+ "shape": "DeleteResult<TSStaticSite>",
800
+ "description": "Delete TSStaticSite"
801
801
  },
802
802
  "updateGenre": {
803
803
  "args": "UpdateArgs<Genre>",
@@ -1306,9 +1306,9 @@
1306
1306
  ]
1307
1307
  }
1308
1308
  },
1309
- "TsStaticSite": {
1309
+ "TSStaticSite": {
1310
1310
  "id": "SITE",
1311
- "name": "TsStaticSite",
1311
+ "name": "TSStaticSite",
1312
1312
  "title": "Static Site",
1313
1313
  "model": {
1314
1314
  "type": "multiple"
@@ -1321,14 +1321,14 @@
1321
1321
  "title": "Title",
1322
1322
  "@l10n": false,
1323
1323
  "minLength": 1,
1324
- "@mapping": "shapedb:TsStaticSite.Ski9jLuXg"
1324
+ "@mapping": "shapedb:TSStaticSite.Ski9jLuXg"
1325
1325
  },
1326
1326
  "baseUrl": {
1327
1327
  "type": "string",
1328
1328
  "title": "Base URL",
1329
1329
  "@l10n": false,
1330
1330
  "minLength": 1,
1331
- "@mapping": "shapedb:TsStaticSite.Bk3tNmrfE"
1331
+ "@mapping": "shapedb:TSStaticSite.Bk3tNmrfE"
1332
1332
  },
1333
1333
  "provider": {
1334
1334
  "type": "string",
@@ -1373,14 +1373,14 @@
1373
1373
  "title": "Vercel"
1374
1374
  }
1375
1375
  ],
1376
- "@mapping": "shapedb:TsStaticSite.SkwbT2hqe"
1376
+ "@mapping": "shapedb:TSStaticSite.SkwbT2hqe"
1377
1377
  },
1378
1378
  "idKey": {
1379
1379
  "type": "string",
1380
1380
  "title": "Id Key",
1381
1381
  "@l10n": false,
1382
1382
  "minLength": 1,
1383
- "@mapping": "shapedb:TsStaticSite.SyRhi8_me"
1383
+ "@mapping": "shapedb:TSStaticSite.SyRhi8_me"
1384
1384
  },
1385
1385
  "secretKey": {
1386
1386
  "type": "string",
@@ -1388,43 +1388,43 @@
1388
1388
  "@l10n": false,
1389
1389
  "@sensitive": true,
1390
1390
  "minLength": 1,
1391
- "@mapping": "shapedb:TsStaticSite.BkIajLdXl"
1391
+ "@mapping": "shapedb:TSStaticSite.BkIajLdXl"
1392
1392
  },
1393
1393
  "destination": {
1394
1394
  "type": "string",
1395
1395
  "title": "Destination",
1396
1396
  "@l10n": false,
1397
1397
  "minLength": 1,
1398
- "@mapping": "shapedb:TsStaticSite.Hk6TsIdXl"
1398
+ "@mapping": "shapedb:TSStaticSite.Hk6TsIdXl"
1399
1399
  },
1400
1400
  "privateAcl": {
1401
1401
  "type": "boolean",
1402
1402
  "title": "Private ACL",
1403
1403
  "@l10n": false,
1404
- "@mapping": "shapedb:TsStaticSite.ByFe48wWU"
1404
+ "@mapping": "shapedb:TSStaticSite.ByFe48wWU"
1405
1405
  },
1406
1406
  "environmentVariables": {
1407
1407
  "type": "array",
1408
1408
  "title": "Environment Variables",
1409
1409
  "@l10n": false,
1410
1410
  "items": {
1411
- "$ref": "#/shapes/TsStaticSiteEnvironmentVariables/schema"
1411
+ "$ref": "#/shapes/TSStaticSiteEnvironmentVariables/schema"
1412
1412
  },
1413
- "@mapping": "shapedb:TsStaticSite.9fj4UiNxY"
1413
+ "@mapping": "shapedb:TSStaticSite.9fj4UiNxY"
1414
1414
  },
1415
1415
  "triggers": {
1416
1416
  "type": "array",
1417
1417
  "title": "Publish Triggers",
1418
1418
  "@l10n": false,
1419
1419
  "items": {
1420
- "$ref": "#/shapes/TsStaticSiteTriggers/schema"
1420
+ "$ref": "#/shapes/TSStaticSiteTriggers/schema"
1421
1421
  }
1422
1422
  },
1423
1423
  "templateHash": {
1424
1424
  "type": "string",
1425
1425
  "title": "Template Hash",
1426
1426
  "@l10n": false,
1427
- "@mapping": "shapedb:TsStaticSite.S1QA3GYI8"
1427
+ "@mapping": "shapedb:TSStaticSite.S1QA3GYI8"
1428
1428
  },
1429
1429
  "_id": {
1430
1430
  "title": "Id",
@@ -1518,9 +1518,9 @@
1518
1518
  ]
1519
1519
  }
1520
1520
  },
1521
- "TsStaticSiteEnvironmentVariables": {
1521
+ "TSStaticSiteEnvironmentVariables": {
1522
1522
  "id": "9fj4UiNxY",
1523
- "name": "TsStaticSiteEnvironmentVariables",
1523
+ "name": "TSStaticSiteEnvironmentVariables",
1524
1524
  "title": "Static Site EnvironmentVariables",
1525
1525
  "schema": {
1526
1526
  "type": "object",
@@ -1528,19 +1528,19 @@
1528
1528
  "name": {
1529
1529
  "type": "string",
1530
1530
  "title": "Name",
1531
- "@mapping": "shapedb:TsStaticSite.J8sbHgfdI"
1531
+ "@mapping": "shapedb:TSStaticSite.J8sbHgfdI"
1532
1532
  },
1533
1533
  "value": {
1534
1534
  "type": "string",
1535
1535
  "title": "Value",
1536
- "@mapping": "shapedb:TsStaticSite.ndhh88DvG"
1536
+ "@mapping": "shapedb:TSStaticSite.ndhh88DvG"
1537
1537
  }
1538
1538
  }
1539
1539
  }
1540
1540
  },
1541
- "TsStaticSiteTriggers": {
1542
- "id": "TsStaticSiteTriggers",
1543
- "name": "TsStaticSiteTriggers",
1541
+ "TSStaticSiteTriggers": {
1542
+ "id": "TSStaticSiteTriggers",
1543
+ "name": "TSStaticSiteTriggers",
1544
1544
  "title": "Static Site Triggers",
1545
1545
  "schema": {
1546
1546
  "type": "object",
@@ -81,7 +81,7 @@
81
81
  }
82
82
  }
83
83
  },
84
- "TsStaticSite": {
84
+ "TSStaticSite": {
85
85
  "default": {
86
86
  "order": [
87
87
  "title",
@@ -489,25 +489,25 @@
489
489
  "shape": "PaginatedList<Asset>",
490
490
  "description": "Returns a list Asset in natural order."
491
491
  },
492
- "getTsStaticSite": {
493
- "args": "TSGetArgs<TsStaticSite>",
492
+ "getTSStaticSite": {
493
+ "args": "TSGetArgs<TSStaticSite>",
494
494
  "resolver": {
495
495
  "name": "shapedb:get",
496
496
  "service": "shapedb",
497
- "shapeName": "TsStaticSite"
497
+ "shapeName": "TSStaticSite"
498
498
  },
499
- "shape": "TsStaticSite",
500
- "description": "Get a TsStaticSite by ID"
499
+ "shape": "TSStaticSite",
500
+ "description": "Get a TSStaticSite by ID"
501
501
  },
502
- "getTsStaticSiteList": {
503
- "args": "TSListArgs<TsStaticSite>",
502
+ "getTSStaticSiteList": {
503
+ "args": "TSListArgs<TSStaticSite>",
504
504
  "resolver": {
505
505
  "name": "shapedb:list",
506
506
  "service": "shapedb",
507
- "shapeName": "TsStaticSite"
507
+ "shapeName": "TSStaticSite"
508
508
  },
509
- "shape": "PaginatedList<TsStaticSite>",
510
- "description": "Returns a list TsStaticSite in natural order."
509
+ "shape": "PaginatedList<TSStaticSite>",
510
+ "description": "Returns a list TSStaticSite in natural order."
511
511
  },
512
512
  "getHomepage": {
513
513
  "args": "TSGetSingletonArgs<Homepage>",
@@ -670,45 +670,45 @@
670
670
  "shape": "DeleteResult<Asset>",
671
671
  "description": "Delete Asset"
672
672
  },
673
- "updateTsStaticSite": {
674
- "args": "UpdateArgs<TsStaticSite>",
673
+ "updateTSStaticSite": {
674
+ "args": "UpdateArgs<TSStaticSite>",
675
675
  "resolver": {
676
676
  "name": "shapedb:update",
677
677
  "service": "shapedb",
678
- "shapeName": "TsStaticSite"
678
+ "shapeName": "TSStaticSite"
679
679
  },
680
- "shape": "UpdateResult<TsStaticSite>",
681
- "description": "Update TsStaticSite"
680
+ "shape": "UpdateResult<TSStaticSite>",
681
+ "description": "Update TSStaticSite"
682
682
  },
683
- "createTsStaticSite": {
684
- "args": "CreateArgs<TsStaticSite>",
683
+ "createTSStaticSite": {
684
+ "args": "CreateArgs<TSStaticSite>",
685
685
  "resolver": {
686
686
  "name": "shapedb:create",
687
687
  "service": "shapedb",
688
- "shapeName": "TsStaticSite"
688
+ "shapeName": "TSStaticSite"
689
689
  },
690
- "shape": "CreateResult<TsStaticSite>",
691
- "description": "Create TsStaticSite"
690
+ "shape": "CreateResult<TSStaticSite>",
691
+ "description": "Create TSStaticSite"
692
692
  },
693
- "duplicateTsStaticSite": {
694
- "args": "DuplicateArgs<TsStaticSite>",
693
+ "duplicateTSStaticSite": {
694
+ "args": "DuplicateArgs<TSStaticSite>",
695
695
  "resolver": {
696
696
  "name": "shapedb:duplicate",
697
697
  "service": "shapedb",
698
- "shapeName": "TsStaticSite"
698
+ "shapeName": "TSStaticSite"
699
699
  },
700
- "shape": "DuplicateResult<TsStaticSite>",
701
- "description": "Duplicate TsStaticSite"
700
+ "shape": "DuplicateResult<TSStaticSite>",
701
+ "description": "Duplicate TSStaticSite"
702
702
  },
703
- "deleteTsStaticSite": {
704
- "args": "DeleteArgs<TsStaticSite>",
703
+ "deleteTSStaticSite": {
704
+ "args": "DeleteArgs<TSStaticSite>",
705
705
  "resolver": {
706
706
  "name": "shapedb:delete",
707
707
  "service": "shapedb",
708
- "shapeName": "TsStaticSite"
708
+ "shapeName": "TSStaticSite"
709
709
  },
710
- "shape": "DeleteResult<TsStaticSite>",
711
- "description": "Delete TsStaticSite"
710
+ "shape": "DeleteResult<TSStaticSite>",
711
+ "description": "Delete TSStaticSite"
712
712
  },
713
713
  "updateHomepage": {
714
714
  "args": "UpdateArgs<Homepage>",
@@ -1102,9 +1102,9 @@
1102
1102
  ]
1103
1103
  }
1104
1104
  },
1105
- "TsStaticSite": {
1105
+ "TSStaticSite": {
1106
1106
  "id": "SITE",
1107
- "name": "TsStaticSite",
1107
+ "name": "TSStaticSite",
1108
1108
  "title": "Static Site",
1109
1109
  "model": {
1110
1110
  "type": "multiple"
@@ -1117,14 +1117,14 @@
1117
1117
  "title": "Title",
1118
1118
  "@l10n": false,
1119
1119
  "minLength": 1,
1120
- "@mapping": "shapedb:TsStaticSite.Ski9jLuXg"
1120
+ "@mapping": "shapedb:TSStaticSite.Ski9jLuXg"
1121
1121
  },
1122
1122
  "baseUrl": {
1123
1123
  "type": "string",
1124
1124
  "title": "Base URL",
1125
1125
  "@l10n": false,
1126
1126
  "minLength": 1,
1127
- "@mapping": "shapedb:TsStaticSite.Bk3tNmrfE"
1127
+ "@mapping": "shapedb:TSStaticSite.Bk3tNmrfE"
1128
1128
  },
1129
1129
  "provider": {
1130
1130
  "type": "string",
@@ -1169,14 +1169,14 @@
1169
1169
  "title": "Vercel"
1170
1170
  }
1171
1171
  ],
1172
- "@mapping": "shapedb:TsStaticSite.SkwbT2hqe"
1172
+ "@mapping": "shapedb:TSStaticSite.SkwbT2hqe"
1173
1173
  },
1174
1174
  "idKey": {
1175
1175
  "type": "string",
1176
1176
  "title": "Id Key",
1177
1177
  "@l10n": false,
1178
1178
  "minLength": 1,
1179
- "@mapping": "shapedb:TsStaticSite.SyRhi8_me"
1179
+ "@mapping": "shapedb:TSStaticSite.SyRhi8_me"
1180
1180
  },
1181
1181
  "secretKey": {
1182
1182
  "type": "string",
@@ -1184,43 +1184,43 @@
1184
1184
  "@l10n": false,
1185
1185
  "@sensitive": true,
1186
1186
  "minLength": 1,
1187
- "@mapping": "shapedb:TsStaticSite.BkIajLdXl"
1187
+ "@mapping": "shapedb:TSStaticSite.BkIajLdXl"
1188
1188
  },
1189
1189
  "destination": {
1190
1190
  "type": "string",
1191
1191
  "title": "Destination",
1192
1192
  "@l10n": false,
1193
1193
  "minLength": 1,
1194
- "@mapping": "shapedb:TsStaticSite.Hk6TsIdXl"
1194
+ "@mapping": "shapedb:TSStaticSite.Hk6TsIdXl"
1195
1195
  },
1196
1196
  "privateAcl": {
1197
1197
  "type": "boolean",
1198
1198
  "title": "Private ACL",
1199
1199
  "@l10n": false,
1200
- "@mapping": "shapedb:TsStaticSite.ByFe48wWU"
1200
+ "@mapping": "shapedb:TSStaticSite.ByFe48wWU"
1201
1201
  },
1202
1202
  "environmentVariables": {
1203
1203
  "type": "array",
1204
1204
  "title": "Environment Variables",
1205
1205
  "@l10n": false,
1206
1206
  "items": {
1207
- "$ref": "#/shapes/TsStaticSiteEnvironmentVariables/schema"
1207
+ "$ref": "#/shapes/TSStaticSiteEnvironmentVariables/schema"
1208
1208
  },
1209
- "@mapping": "shapedb:TsStaticSite.9fj4UiNxY"
1209
+ "@mapping": "shapedb:TSStaticSite.9fj4UiNxY"
1210
1210
  },
1211
1211
  "triggers": {
1212
1212
  "type": "array",
1213
1213
  "title": "Publish Triggers",
1214
1214
  "@l10n": false,
1215
1215
  "items": {
1216
- "$ref": "#/shapes/TsStaticSiteTriggers/schema"
1216
+ "$ref": "#/shapes/TSStaticSiteTriggers/schema"
1217
1217
  }
1218
1218
  },
1219
1219
  "templateHash": {
1220
1220
  "type": "string",
1221
1221
  "title": "Template Hash",
1222
1222
  "@l10n": false,
1223
- "@mapping": "shapedb:TsStaticSite.S1QA3GYI8"
1223
+ "@mapping": "shapedb:TSStaticSite.S1QA3GYI8"
1224
1224
  },
1225
1225
  "_id": {
1226
1226
  "title": "Id",
@@ -1298,9 +1298,9 @@
1298
1298
  ]
1299
1299
  }
1300
1300
  },
1301
- "TsStaticSiteEnvironmentVariables": {
1301
+ "TSStaticSiteEnvironmentVariables": {
1302
1302
  "id": "9fj4UiNxY",
1303
- "name": "TsStaticSiteEnvironmentVariables",
1303
+ "name": "TSStaticSiteEnvironmentVariables",
1304
1304
  "title": "Static Site EnvironmentVariables",
1305
1305
  "schema": {
1306
1306
  "type": "object",
@@ -1308,19 +1308,19 @@
1308
1308
  "name": {
1309
1309
  "type": "string",
1310
1310
  "title": "Name",
1311
- "@mapping": "shapedb:TsStaticSite.J8sbHgfdI"
1311
+ "@mapping": "shapedb:TSStaticSite.J8sbHgfdI"
1312
1312
  },
1313
1313
  "value": {
1314
1314
  "type": "string",
1315
1315
  "title": "Value",
1316
- "@mapping": "shapedb:TsStaticSite.ndhh88DvG"
1316
+ "@mapping": "shapedb:TSStaticSite.ndhh88DvG"
1317
1317
  }
1318
1318
  }
1319
1319
  }
1320
1320
  },
1321
- "TsStaticSiteTriggers": {
1322
- "id": "TsStaticSiteTriggers",
1323
- "name": "TsStaticSiteTriggers",
1321
+ "TSStaticSiteTriggers": {
1322
+ "id": "TSStaticSiteTriggers",
1323
+ "name": "TSStaticSiteTriggers",
1324
1324
  "title": "Static Site Triggers",
1325
1325
  "schema": {
1326
1326
  "type": "object",