@takeshape/schema 8.188.2 → 8.189.4
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/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.18.1.d.ts +5 -0
- package/dist/migration/to/v3.18.1.d.ts.map +1 -0
- package/dist/migration/to/v3.18.1.js +28 -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 +1 -2
- 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.18.1.d.ts +1333 -0
- package/dist/project-schema/v3.18.1.d.ts.map +1 -0
- package/dist/project-schema/v3.18.1.js +5 -0
- package/dist/schema-util.d.ts.map +1 -1
- package/dist/schema-util.js +13 -11
- 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 +4 -3
- package/dist/schemas/project-schema/v3.18.1.json +2351 -0
- package/dist/schemas/project-schema.json +3 -0
- package/dist/types/types.d.ts +2 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/util/has-arg.d.ts +4 -2
- package/dist/util/has-arg.d.ts.map +1 -1
- package/dist/util/has-arg.js +6 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +31 -2
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.18.1.js +16 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +5 -1
- package/es/project-schema/v3.18.1.js +1 -0
- package/es/schema-util.js +11 -9
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +4 -3
- package/es/schemas/project-schema/v3.18.1.json +2351 -0
- package/es/schemas/project-schema.json +3 -0
- package/es/util/has-arg.js +4 -1
- package/es/validate.js +28 -3
- package/examples/latest/betzino.json +2276 -2276
- package/examples/latest/blog-schema.json +44 -44
- package/examples/latest/brewery-schema.json +38 -38
- package/examples/latest/complex-project-schema.json +272 -272
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +23 -23
- package/examples/latest/frank-and-fred-schema.json +1616 -1616
- package/examples/latest/klirr-schema.json +1951 -1951
- package/examples/latest/massive-schema.json +428 -428
- package/examples/latest/mill-components-schema.json +200 -200
- package/examples/latest/one-earth.json +613 -613
- package/examples/latest/pet-oneof-array.json +38 -38
- package/examples/latest/post-schema.json +38 -38
- package/examples/latest/pruned-shopify-product-schema.json +8 -8
- package/examples/latest/real-world-schema.json +80 -80
- package/examples/latest/recursive-repeater-schema.json +20 -20
- package/examples/latest/recursive-schema.json +20 -20
- package/examples/latest/rick-and-morty-ast.json +150 -150
- package/examples/latest/rick-and-morty-graphql.json +114 -114
- package/examples/latest/rick-and-morty-rest.json +5 -5
- package/examples/latest/schema-with-repeater-draftjs.json +20 -20
- package/examples/latest/shape-books-v3_2_0.json +122 -122
- package/examples/latest/shape-books.json +122 -122
- package/examples/latest/shopify-lookbook.json +44 -44
- package/examples/latest/shopify-store-with-widget.json +80 -80
- package/examples/latest/stripe-starter-resolved.json +83 -83
- package/examples/latest/user-schema-no-required.json +20 -20
- package/examples/latest/user-schema-with-defaults.json +20 -20
- package/package.json +4 -4
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
},
|
|
141
141
|
"queries": {
|
|
142
142
|
"getShopifyProductDetails": {
|
|
143
|
-
"
|
|
143
|
+
"args": "ShopifyProductDetailsInput",
|
|
144
144
|
"resolver": {
|
|
145
145
|
"id": "product",
|
|
146
146
|
"name": "graphql:query",
|
|
@@ -160,35 +160,35 @@
|
|
|
160
160
|
},
|
|
161
161
|
"fieldName": "product"
|
|
162
162
|
},
|
|
163
|
-
"
|
|
164
|
-
"
|
|
163
|
+
"shape": "michaels-store-takeshape:Product",
|
|
164
|
+
"description": "Returns Shopify Details"
|
|
165
165
|
},
|
|
166
166
|
"getProduct": {
|
|
167
|
-
"
|
|
167
|
+
"args": "TSGetArgs<Product>",
|
|
168
168
|
"resolver": {
|
|
169
169
|
"name": "takeshape:get",
|
|
170
170
|
"service": "takeshape:local",
|
|
171
171
|
"options": {},
|
|
172
172
|
"shapeName": "Product"
|
|
173
173
|
},
|
|
174
|
-
"
|
|
175
|
-
"
|
|
174
|
+
"shape": "Product",
|
|
175
|
+
"description": "Get a Product by ID"
|
|
176
176
|
},
|
|
177
177
|
"getProductList": {
|
|
178
|
-
"
|
|
178
|
+
"args": "TSListArgs<Product>",
|
|
179
179
|
"resolver": {
|
|
180
180
|
"name": "takeshape:list",
|
|
181
181
|
"service": "takeshape:local",
|
|
182
182
|
"options": {},
|
|
183
183
|
"shapeName": "Product"
|
|
184
184
|
},
|
|
185
|
-
"
|
|
186
|
-
"
|
|
185
|
+
"shape": "PaginatedList<Product>",
|
|
186
|
+
"description": "Returns a list Product in natural order."
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
"mutations": {
|
|
190
190
|
"updateProduct": {
|
|
191
|
-
"
|
|
191
|
+
"args": "UpdateArgs<ProductInterface>",
|
|
192
192
|
"resolver": {
|
|
193
193
|
"compose": [
|
|
194
194
|
{
|
|
@@ -442,11 +442,11 @@
|
|
|
442
442
|
]
|
|
443
443
|
}
|
|
444
444
|
},
|
|
445
|
-
"
|
|
446
|
-
"
|
|
445
|
+
"shape": "UpdateResult<Product>",
|
|
446
|
+
"description": "Update Product. If the input has Shopify values and a Shopify ID, the Shopify product with that ID is updated.\nIf the input has Shopify values and no Shopify ID, a Shopify product is created."
|
|
447
447
|
},
|
|
448
448
|
"createProduct": {
|
|
449
|
-
"
|
|
449
|
+
"args": "CreateArgs<ProductInterface>",
|
|
450
450
|
"resolver": {
|
|
451
451
|
"compose": [
|
|
452
452
|
{
|
|
@@ -611,30 +611,30 @@
|
|
|
611
611
|
]
|
|
612
612
|
}
|
|
613
613
|
},
|
|
614
|
-
"
|
|
615
|
-
"
|
|
614
|
+
"shape": "CreateResult<Product>",
|
|
615
|
+
"description": "Create Product. If Shopify values are provided, a Shopify product is also created and the new product ID is saved."
|
|
616
616
|
},
|
|
617
617
|
"duplicateProduct": {
|
|
618
|
-
"
|
|
618
|
+
"args": "DuplicateArgs<Product>",
|
|
619
619
|
"resolver": {
|
|
620
620
|
"name": "takeshape:duplicate",
|
|
621
621
|
"service": "takeshape:local",
|
|
622
622
|
"options": {},
|
|
623
623
|
"shapeName": "Product"
|
|
624
624
|
},
|
|
625
|
-
"
|
|
626
|
-
"
|
|
625
|
+
"shape": "DuplicateResult<Product>",
|
|
626
|
+
"description": "Duplicate Product"
|
|
627
627
|
},
|
|
628
628
|
"deleteProduct": {
|
|
629
|
-
"
|
|
629
|
+
"args": "DeleteArgs<Product>",
|
|
630
630
|
"resolver": {
|
|
631
631
|
"name": "takeshape:delete",
|
|
632
632
|
"service": "takeshape:local",
|
|
633
633
|
"options": {},
|
|
634
634
|
"shapeName": "Product"
|
|
635
635
|
},
|
|
636
|
-
"
|
|
637
|
-
"
|
|
636
|
+
"shape": "DeleteResult<Product>",
|
|
637
|
+
"description": "Delete Product"
|
|
638
638
|
}
|
|
639
639
|
},
|
|
640
640
|
"shapes": {
|
|
@@ -10516,5 +10516,5 @@
|
|
|
10516
10516
|
}
|
|
10517
10517
|
}
|
|
10518
10518
|
},
|
|
10519
|
-
"schemaVersion": "3.18.
|
|
10520
|
-
}
|
|
10519
|
+
"schemaVersion": "3.18.1"
|
|
10520
|
+
}
|