@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
@@ -22,8 +22,8 @@
22
22
  "getPost": {
23
23
  "args": "TSGetArgs<Post>",
24
24
  "resolver": {
25
- "name": "takeshape:get",
26
- "service": "takeshape:local",
25
+ "name": "shapedb:get",
26
+ "service": "shapedb",
27
27
  "shapeName": "Post"
28
28
  },
29
29
  "shape": "Post",
@@ -32,8 +32,8 @@
32
32
  "getPostList": {
33
33
  "args": "TSListArgs<Post>",
34
34
  "resolver": {
35
- "name": "takeshape:list",
36
- "service": "takeshape:local",
35
+ "name": "shapedb:list",
36
+ "service": "shapedb",
37
37
  "shapeName": "Post"
38
38
  },
39
39
  "shape": "PaginatedList<Post>",
@@ -44,8 +44,8 @@
44
44
  "updatePost": {
45
45
  "args": "UpdateArgs<Post>",
46
46
  "resolver": {
47
- "name": "takeshape:update",
48
- "service": "takeshape:local",
47
+ "name": "shapedb:update",
48
+ "service": "shapedb",
49
49
  "shapeName": "Post"
50
50
  },
51
51
  "shape": "UpdateResult<Post>",
@@ -54,8 +54,8 @@
54
54
  "createPost": {
55
55
  "args": "CreateArgs<Post>",
56
56
  "resolver": {
57
- "name": "takeshape:create",
58
- "service": "takeshape:local",
57
+ "name": "shapedb:create",
58
+ "service": "shapedb",
59
59
  "shapeName": "Post"
60
60
  },
61
61
  "shape": "CreateResult<Post>",
@@ -64,8 +64,8 @@
64
64
  "duplicatePost": {
65
65
  "args": "DuplicateArgs<Post>",
66
66
  "resolver": {
67
- "name": "takeshape:duplicate",
68
- "service": "takeshape:local",
67
+ "name": "shapedb:duplicate",
68
+ "service": "shapedb",
69
69
  "shapeName": "Post"
70
70
  },
71
71
  "shape": "DuplicateResult<Post>",
@@ -74,8 +74,8 @@
74
74
  "deletePost": {
75
75
  "args": "DeleteArgs<Post>",
76
76
  "resolver": {
77
- "name": "takeshape:delete",
78
- "service": "takeshape:local",
77
+ "name": "shapedb:delete",
78
+ "service": "shapedb",
79
79
  "shapeName": "Post"
80
80
  },
81
81
  "shape": "DeleteResult<Post>",
@@ -99,7 +99,7 @@
99
99
  },
100
100
  "title": {
101
101
  "type": "string",
102
- "@mapping": "takeshape:local:Post.titleId"
102
+ "@mapping": "shapedb:Post.titleId"
103
103
  },
104
104
  "repeater": {
105
105
  "type": "array",
@@ -121,7 +121,7 @@
121
121
  "type": "object",
122
122
  "properties": {
123
123
  "relatedPost": {
124
- "@mapping": "takeshape:local:PostRepeater.relatedPostKey",
124
+ "@mapping": "shapedb:PostRepeater.relatedPostKey",
125
125
  "@backreference": {
126
126
  "enabled": true
127
127
  },
@@ -131,8 +131,8 @@
131
131
  },
132
132
  "@args": "TSRelationshipArgs",
133
133
  "@resolver": {
134
- "name": "takeshape:getRelated",
135
- "service": "takeshape:local",
134
+ "name": "shapedb:getRelated",
135
+ "service": "shapedb",
136
136
  "options": {
137
137
  "nullable": true
138
138
  }
@@ -142,6 +142,6 @@
142
142
  }
143
143
  }
144
144
  },
145
- "schemaVersion": "3.30.0",
145
+ "schemaVersion": "3.31.0",
146
146
  "services": {}
147
147
  }
@@ -22,8 +22,8 @@
22
22
  "getPost": {
23
23
  "args": "TSGetArgs<Post>",
24
24
  "resolver": {
25
- "name": "takeshape:get",
26
- "service": "takeshape:local",
25
+ "name": "shapedb:get",
26
+ "service": "shapedb",
27
27
  "shapeName": "Post"
28
28
  },
29
29
  "shape": "Post",
@@ -32,8 +32,8 @@
32
32
  "getPostList": {
33
33
  "args": "TSListArgs<Post>",
34
34
  "resolver": {
35
- "name": "takeshape:list",
36
- "service": "takeshape:local",
35
+ "name": "shapedb:list",
36
+ "service": "shapedb",
37
37
  "shapeName": "Post"
38
38
  },
39
39
  "shape": "PaginatedList<Post>",
@@ -44,8 +44,8 @@
44
44
  "updatePost": {
45
45
  "args": "UpdateArgs<Post>",
46
46
  "resolver": {
47
- "name": "takeshape:update",
48
- "service": "takeshape:local",
47
+ "name": "shapedb:update",
48
+ "service": "shapedb",
49
49
  "shapeName": "Post"
50
50
  },
51
51
  "shape": "UpdateResult<Post>",
@@ -54,8 +54,8 @@
54
54
  "createPost": {
55
55
  "args": "CreateArgs<Post>",
56
56
  "resolver": {
57
- "name": "takeshape:create",
58
- "service": "takeshape:local",
57
+ "name": "shapedb:create",
58
+ "service": "shapedb",
59
59
  "shapeName": "Post"
60
60
  },
61
61
  "shape": "CreateResult<Post>",
@@ -64,8 +64,8 @@
64
64
  "duplicatePost": {
65
65
  "args": "DuplicateArgs<Post>",
66
66
  "resolver": {
67
- "name": "takeshape:duplicate",
68
- "service": "takeshape:local",
67
+ "name": "shapedb:duplicate",
68
+ "service": "shapedb",
69
69
  "shapeName": "Post"
70
70
  },
71
71
  "shape": "DuplicateResult<Post>",
@@ -74,8 +74,8 @@
74
74
  "deletePost": {
75
75
  "args": "DeleteArgs<Post>",
76
76
  "resolver": {
77
- "name": "takeshape:delete",
78
- "service": "takeshape:local",
77
+ "name": "shapedb:delete",
78
+ "service": "shapedb",
79
79
  "shapeName": "Post"
80
80
  },
81
81
  "shape": "DeleteResult<Post>",
@@ -122,10 +122,10 @@
122
122
  },
123
123
  "title": {
124
124
  "type": "string",
125
- "@mapping": "takeshape:local:Post.titleId"
125
+ "@mapping": "shapedb:Post.titleId"
126
126
  },
127
127
  "relatedPost": {
128
- "@mapping": "takeshape:local:Post.relatedPostKey",
128
+ "@mapping": "shapedb:Post.relatedPostKey",
129
129
  "@backreference": {
130
130
  "enabled": true
131
131
  },
@@ -135,8 +135,8 @@
135
135
  },
136
136
  "@args": "TSRelationshipArgs",
137
137
  "@resolver": {
138
- "name": "takeshape:getRelated",
139
- "service": "takeshape:local",
138
+ "name": "shapedb:getRelated",
139
+ "service": "shapedb",
140
140
  "options": {
141
141
  "nullable": true
142
142
  }
@@ -149,6 +149,6 @@
149
149
  }
150
150
  }
151
151
  },
152
- "schemaVersion": "3.30.0",
152
+ "schemaVersion": "3.31.0",
153
153
  "services": {}
154
154
  }