@pintahub/shopify-api 2.2.1 → 2.2.2

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.
@@ -28,8 +28,8 @@ class UpdateProduct extends ActionBuilder_1.ActionBuilder {
28
28
  run(args) {
29
29
  return __awaiter(this, void 0, void 0, function* () {
30
30
  const query = `
31
- mutation productUpdate($product: ProductUpdateInput!) {
32
- productUpdate(product: $product) {
31
+ mutation productUpdate($product: ProductUpdateInput!, $media: [CreateMediaInput!]) {
32
+ productUpdate(product: $product, media: $media) {
33
33
  product {
34
34
  id
35
35
  status
@@ -38,6 +38,15 @@ class UpdateProduct extends ActionBuilder_1.ActionBuilder {
38
38
  vendor
39
39
  productType
40
40
  tags
41
+ media(first: 100) {
42
+ nodes {
43
+ alt
44
+ mediaContentType
45
+ preview {
46
+ status
47
+ }
48
+ }
49
+ }
41
50
  }
42
51
  userErrors {
43
52
  field
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",