@takeshape/schema 9.36.3 → 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
@@ -163,8 +163,8 @@
163
163
  "getProduct": {
164
164
  "args": "TSGetArgs<Product>",
165
165
  "resolver": {
166
- "name": "takeshape:get",
167
- "service": "takeshape:local",
166
+ "name": "shapedb:get",
167
+ "service": "shapedb",
168
168
  "shapeName": "Product"
169
169
  },
170
170
  "shape": "Product",
@@ -173,8 +173,8 @@
173
173
  "getProductList": {
174
174
  "args": "TSListArgs<Product>",
175
175
  "resolver": {
176
- "name": "takeshape:list",
177
- "service": "takeshape:local",
176
+ "name": "shapedb:list",
177
+ "service": "shapedb",
178
178
  "shapeName": "Product"
179
179
  },
180
180
  "shape": "PaginatedList<Product>",
@@ -312,8 +312,8 @@
312
312
  ]
313
313
  ]
314
314
  },
315
- "name": "takeshape:update",
316
- "service": "takeshape:local",
315
+ "name": "shapedb:update",
316
+ "service": "shapedb",
317
317
  "shapeName": "Product"
318
318
  },
319
319
  {
@@ -564,8 +564,8 @@
564
564
  ]
565
565
  ]
566
566
  },
567
- "name": "takeshape:create",
568
- "service": "takeshape:local",
567
+ "name": "shapedb:create",
568
+ "service": "shapedb",
569
569
  "shapeName": "Product"
570
570
  },
571
571
  {
@@ -581,8 +581,8 @@
581
581
  ]
582
582
  ]
583
583
  },
584
- "name": "takeshape:create",
585
- "service": "takeshape:local",
584
+ "name": "shapedb:create",
585
+ "service": "shapedb",
586
586
  "shapeName": "Product"
587
587
  }
588
588
  ],
@@ -609,8 +609,8 @@
609
609
  "duplicateProduct": {
610
610
  "args": "DuplicateArgs<Product>",
611
611
  "resolver": {
612
- "name": "takeshape:duplicate",
613
- "service": "takeshape:local",
612
+ "name": "shapedb:duplicate",
613
+ "service": "shapedb",
614
614
  "shapeName": "Product"
615
615
  },
616
616
  "shape": "DuplicateResult<Product>",
@@ -619,8 +619,8 @@
619
619
  "deleteProduct": {
620
620
  "args": "DeleteArgs<Product>",
621
621
  "resolver": {
622
- "name": "takeshape:delete",
623
- "service": "takeshape:local",
622
+ "name": "shapedb:delete",
623
+ "service": "shapedb",
624
624
  "shapeName": "Product"
625
625
  },
626
626
  "shape": "DeleteResult<Product>",
@@ -728,7 +728,7 @@
728
728
  "title": "Name",
729
729
  "type": "string",
730
730
  "description": "Initialized with title from shopify",
731
- "@mapping": "takeshape:local:Product.UAPS1KwbxZ"
731
+ "@mapping": "shapedb:Product.UAPS1KwbxZ"
732
732
  },
733
733
  "shopifyProduct": {
734
734
  "@ref": "michaels-store-takeshape:Product",
@@ -751,7 +751,7 @@
751
751
  },
752
752
  "shopifyProductId": {
753
753
  "type": "string",
754
- "@mapping": "takeshape:local:Product.shopifyProductId",
754
+ "@mapping": "shapedb:Product.shopifyProductId",
755
755
  "title": "shopify product",
756
756
  "minLength": 1,
757
757
  "pattern": "(^gid://shopify/Product/\\d+$)"
@@ -10505,5 +10505,5 @@
10505
10505
  }
10506
10506
  }
10507
10507
  },
10508
- "schemaVersion": "3.30.0"
10508
+ "schemaVersion": "3.31.0"
10509
10509
  }