@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.
Files changed (84) hide show
  1. package/dist/builtin-schema.js +20 -20
  2. package/dist/migration/index.d.ts +1 -0
  3. package/dist/migration/index.d.ts.map +1 -1
  4. package/dist/migration/index.js +4 -1
  5. package/dist/migration/to/v3.31.0.d.ts +5 -0
  6. package/dist/migration/to/v3.31.0.d.ts.map +1 -0
  7. package/dist/migration/to/v3.31.0.js +53 -0
  8. package/dist/project-schema/index.d.ts +4 -1
  9. package/dist/project-schema/index.d.ts.map +1 -1
  10. package/dist/project-schema/index.js +20 -3
  11. package/dist/project-schema/latest.d.ts +43 -18
  12. package/dist/project-schema/latest.d.ts.map +1 -1
  13. package/dist/project-schema/migrate.d.ts.map +1 -1
  14. package/dist/project-schema/migrate.js +4 -0
  15. package/dist/project-schema/v3.31.0.d.ts +1449 -0
  16. package/dist/project-schema/v3.31.0.d.ts.map +1 -0
  17. package/dist/project-schema/v3.31.0.js +5 -0
  18. package/dist/relationships.js +2 -2
  19. package/dist/schema-util.d.ts +2 -2
  20. package/dist/schema-util.d.ts.map +1 -1
  21. package/dist/schema-util.js +12 -12
  22. package/dist/schemas/index.d.ts +2 -2
  23. package/dist/schemas/index.d.ts.map +1 -1
  24. package/dist/schemas/index.js +6 -4
  25. package/dist/schemas/index.ts +4 -2
  26. package/dist/schemas/project-schema/latest.json +89 -32
  27. package/dist/schemas/project-schema/v3.31.0.json +3089 -0
  28. package/dist/schemas/project-schema.json +7 -1
  29. package/dist/types/types.d.ts +4 -4
  30. package/dist/types/types.d.ts.map +1 -1
  31. package/dist/types/utils.d.ts +4 -3
  32. package/dist/types/utils.d.ts.map +1 -1
  33. package/dist/types/utils.js +9 -3
  34. package/dist/validate.d.ts.map +1 -1
  35. package/dist/validate.js +13 -3
  36. package/es/builtin-schema.js +20 -20
  37. package/es/migration/index.js +3 -1
  38. package/es/migration/to/v3.31.0.js +38 -0
  39. package/es/project-schema/index.js +3 -1
  40. package/es/project-schema/migrate.js +5 -1
  41. package/es/project-schema/v3.31.0.js +1 -0
  42. package/es/relationships.js +2 -2
  43. package/es/schema-util.js +12 -12
  44. package/es/schemas/index.js +4 -3
  45. package/es/schemas/index.ts +4 -2
  46. package/es/schemas/project-schema/latest.json +89 -32
  47. package/es/schemas/project-schema/v3.31.0.json +3089 -0
  48. package/es/schemas/project-schema.json +7 -1
  49. package/es/types/utils.js +7 -3
  50. package/es/validate.js +13 -3
  51. package/examples/dependencies/stripe-starter-resolved.json +210 -210
  52. package/examples/latest/betzino.json +4383 -4383
  53. package/examples/latest/blog-schema.json +49 -49
  54. package/examples/latest/brewery-schema.json +39 -39
  55. package/examples/latest/complex-project-schema.json +412 -412
  56. package/examples/latest/complex-schema.json +1166 -1166
  57. package/examples/latest/fabric-ecommerce.json +17 -17
  58. package/examples/latest/frank-and-fred-schema.json +2242 -2242
  59. package/examples/latest/klirr-schema.json +3254 -3254
  60. package/examples/latest/massive-schema.json +785 -785
  61. package/examples/latest/mill-components-schema.json +215 -215
  62. package/examples/latest/one-earth.json +1394 -1394
  63. package/examples/latest/pet-oneof-array.json +33 -33
  64. package/examples/latest/post-schema.json +32 -32
  65. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  66. package/examples/latest/real-world-schema.json +94 -94
  67. package/examples/latest/recursive-repeater-schema.json +17 -17
  68. package/examples/latest/recursive-schema.json +17 -17
  69. package/examples/latest/rick-and-morty-ast.json +180 -180
  70. package/examples/latest/rick-and-morty-graphql.json +133 -133
  71. package/examples/latest/rick-and-morty-rest.json +1 -1
  72. package/examples/latest/schema-with-repeater-draftjs.json +48 -48
  73. package/examples/latest/shape-books-v3_2_0.json +137 -137
  74. package/examples/latest/shape-books.json +137 -137
  75. package/examples/latest/shopify-lookbook.json +41 -41
  76. package/examples/latest/shopify-product-2022-07.json +124 -124
  77. package/examples/latest/shopify-product-2023-04.json +125 -125
  78. package/examples/latest/shopify-store-with-widget.json +94 -94
  79. package/examples/latest/stripe-product-runtime-schema.json +127 -130
  80. package/examples/latest/stripe-starter-resolved.json +300 -509
  81. package/examples/latest/user-schema-no-required.json +22 -22
  82. package/examples/latest/user-schema-with-defaults.json +23 -23
  83. package/package.json +5 -5
  84. package/examples/latest/shopify-namespace-schema.json +0 -364
@@ -155,8 +155,8 @@
155
155
  "getProduct": {
156
156
  "args": "TSGetArgs<Product>",
157
157
  "resolver": {
158
- "name": "takeshape:get",
159
- "service": "takeshape:local",
158
+ "name": "shapedb:get",
159
+ "service": "shapedb",
160
160
  "shapeName": "Product"
161
161
  },
162
162
  "shape": "Product",
@@ -165,8 +165,8 @@
165
165
  "getProductList": {
166
166
  "args": "TSListArgs<Product>",
167
167
  "resolver": {
168
- "name": "takeshape:list",
169
- "service": "takeshape:local",
168
+ "name": "shapedb:list",
169
+ "service": "shapedb",
170
170
  "shapeName": "Product"
171
171
  },
172
172
  "shape": "PaginatedList<Product>",
@@ -175,8 +175,8 @@
175
175
  "getLook": {
176
176
  "args": "TSGetArgs<Look>",
177
177
  "resolver": {
178
- "name": "takeshape:get",
179
- "service": "takeshape:local",
178
+ "name": "shapedb:get",
179
+ "service": "shapedb",
180
180
  "shapeName": "Look"
181
181
  },
182
182
  "shape": "Look",
@@ -185,8 +185,8 @@
185
185
  "getLookList": {
186
186
  "args": "TSListArgs<Look>",
187
187
  "resolver": {
188
- "name": "takeshape:list",
189
- "service": "takeshape:local",
188
+ "name": "shapedb:list",
189
+ "service": "shapedb",
190
190
  "shapeName": "Look"
191
191
  },
192
192
  "shape": "PaginatedList<Look>",
@@ -324,8 +324,8 @@
324
324
  ]
325
325
  ]
326
326
  },
327
- "name": "takeshape:update",
328
- "service": "takeshape:local",
327
+ "name": "shapedb:update",
328
+ "service": "shapedb",
329
329
  "shapeName": "Product"
330
330
  },
331
331
  {
@@ -576,8 +576,8 @@
576
576
  ]
577
577
  ]
578
578
  },
579
- "name": "takeshape:create",
580
- "service": "takeshape:local",
579
+ "name": "shapedb:create",
580
+ "service": "shapedb",
581
581
  "shapeName": "Product"
582
582
  },
583
583
  {
@@ -593,8 +593,8 @@
593
593
  ]
594
594
  ]
595
595
  },
596
- "name": "takeshape:create",
597
- "service": "takeshape:local",
596
+ "name": "shapedb:create",
597
+ "service": "shapedb",
598
598
  "shapeName": "Product"
599
599
  }
600
600
  ],
@@ -621,8 +621,8 @@
621
621
  "duplicateProduct": {
622
622
  "args": "DuplicateArgs<Product>",
623
623
  "resolver": {
624
- "name": "takeshape:duplicate",
625
- "service": "takeshape:local",
624
+ "name": "shapedb:duplicate",
625
+ "service": "shapedb",
626
626
  "shapeName": "Product"
627
627
  },
628
628
  "shape": "DuplicateResult<Product>",
@@ -631,8 +631,8 @@
631
631
  "deleteProduct": {
632
632
  "args": "DeleteArgs<Product>",
633
633
  "resolver": {
634
- "name": "takeshape:delete",
635
- "service": "takeshape:local",
634
+ "name": "shapedb:delete",
635
+ "service": "shapedb",
636
636
  "shapeName": "Product"
637
637
  },
638
638
  "shape": "DeleteResult<Product>",
@@ -759,8 +759,8 @@
759
759
  ]
760
760
  ]
761
761
  },
762
- "name": "takeshape:create",
763
- "service": "takeshape:local",
762
+ "name": "shapedb:create",
763
+ "service": "shapedb",
764
764
  "shapeName": "Product"
765
765
  }
766
766
  ],
@@ -897,8 +897,8 @@
897
897
  ]
898
898
  ]
899
899
  },
900
- "name": "takeshape:update",
901
- "service": "takeshape:local",
900
+ "name": "shapedb:update",
901
+ "service": "shapedb",
902
902
  "shapeName": "Product"
903
903
  }
904
904
  ],
@@ -917,8 +917,8 @@
917
917
  "updateLook": {
918
918
  "args": "UpdateArgs<Look>",
919
919
  "resolver": {
920
- "name": "takeshape:update",
921
- "service": "takeshape:local",
920
+ "name": "shapedb:update",
921
+ "service": "shapedb",
922
922
  "shapeName": "Look"
923
923
  },
924
924
  "shape": "UpdateResult<Look>",
@@ -927,8 +927,8 @@
927
927
  "createLook": {
928
928
  "args": "CreateArgs<Look>",
929
929
  "resolver": {
930
- "name": "takeshape:create",
931
- "service": "takeshape:local",
930
+ "name": "shapedb:create",
931
+ "service": "shapedb",
932
932
  "shapeName": "Look"
933
933
  },
934
934
  "shape": "CreateResult<Look>",
@@ -937,8 +937,8 @@
937
937
  "duplicateLook": {
938
938
  "args": "DuplicateArgs<Look>",
939
939
  "resolver": {
940
- "name": "takeshape:duplicate",
941
- "service": "takeshape:local",
940
+ "name": "shapedb:duplicate",
941
+ "service": "shapedb",
942
942
  "shapeName": "Look"
943
943
  },
944
944
  "shape": "DuplicateResult<Look>",
@@ -947,8 +947,8 @@
947
947
  "deleteLook": {
948
948
  "args": "DeleteArgs<Look>",
949
949
  "resolver": {
950
- "name": "takeshape:delete",
951
- "service": "takeshape:local",
950
+ "name": "shapedb:delete",
951
+ "service": "shapedb",
952
952
  "shapeName": "Look"
953
953
  },
954
954
  "shape": "DeleteResult<Look>",
@@ -1005,11 +1005,11 @@
1005
1005
  "type": "string",
1006
1006
  "description": "",
1007
1007
  "title": "Name",
1008
- "@mapping": "takeshape:local:Product.Fv5HIHo4_"
1008
+ "@mapping": "shapedb:Product.Fv5HIHo4_"
1009
1009
  },
1010
1010
  "takeshapeIoShopId": {
1011
1011
  "type": "string",
1012
- "@mapping": "takeshape:local:Product.WOK1Xvcb5",
1012
+ "@mapping": "shapedb:Product.WOK1Xvcb5",
1013
1013
  "title": "takeshape-io-shop",
1014
1014
  "minLength": 1,
1015
1015
  "pattern": "(^gid://shopify/Product/\\d+$)"
@@ -1053,12 +1053,12 @@
1053
1053
  "type": "string",
1054
1054
  "description": "",
1055
1055
  "title": "Name",
1056
- "@mapping": "takeshape:local:Look.LDCYL9XU5"
1056
+ "@mapping": "shapedb:Look.LDCYL9XU5"
1057
1057
  },
1058
1058
  "photo": {
1059
1059
  "description": "",
1060
1060
  "title": "Photo",
1061
- "@mapping": "takeshape:local:Look.4WzSq3aHx",
1061
+ "@mapping": "shapedb:Look.4WzSq3aHx",
1062
1062
  "@backreference": {
1063
1063
  "enabled": true
1064
1064
  },
@@ -1068,8 +1068,8 @@
1068
1068
  },
1069
1069
  "@args": "TSRelationshipArgs",
1070
1070
  "@resolver": {
1071
- "name": "takeshape:getRelated",
1072
- "service": "takeshape:local",
1071
+ "name": "shapedb:getRelated",
1072
+ "service": "shapedb",
1073
1073
  "options": {
1074
1074
  "nullable": true
1075
1075
  }
@@ -1080,7 +1080,7 @@
1080
1080
  "@tag": "draftjs",
1081
1081
  "description": "",
1082
1082
  "title": "Text",
1083
- "@mapping": "takeshape:local:Look._qzcnRoKD"
1083
+ "@mapping": "shapedb:Look._qzcnRoKD"
1084
1084
  },
1085
1085
  "products": {
1086
1086
  "description": "",
@@ -1088,7 +1088,7 @@
1088
1088
  "@ref": "local:Product"
1089
1089
  },
1090
1090
  "title": "Products",
1091
- "@mapping": "takeshape:local:Look.dGVaGVDct",
1091
+ "@mapping": "shapedb:Look.dGVaGVDct",
1092
1092
  "@backreference": {
1093
1093
  "enabled": true,
1094
1094
  "name": "looks"
@@ -1102,8 +1102,8 @@
1102
1102
  },
1103
1103
  "@args": "TSRelationshipArgs",
1104
1104
  "@resolver": {
1105
- "name": "takeshape:getRelated",
1106
- "service": "takeshape:local",
1105
+ "name": "shapedb:getRelated",
1106
+ "service": "shapedb",
1107
1107
  "options": {
1108
1108
  "nullable": true
1109
1109
  }
@@ -1177,5 +1177,5 @@
1177
1177
  }
1178
1178
  }
1179
1179
  },
1180
- "schemaVersion": "3.30.0"
1180
+ "schemaVersion": "3.31.0"
1181
1181
  }