@pintahub/shopify-api 1.1.1 → 1.1.3

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.
@@ -33,6 +33,7 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
33
33
  }
34
34
  productType
35
35
  title
36
+ descriptionHtml
36
37
  priceRangeV2 {
37
38
  maxVariantPrice {
38
39
  amount
@@ -62,10 +63,35 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
62
63
  type
63
64
  }
64
65
  }
66
+ images(first: 20) {
67
+ nodes {
68
+ id
69
+ url(transform: {maxWidth: 1000, crop: CENTER, preferredContentType: WEBP})
70
+ height
71
+ altText
72
+ width
73
+ }
74
+ }
75
+ variants(first: 250) {
76
+ nodes {
77
+ id
78
+ availableForSale
79
+ selectedOptions {
80
+ name
81
+ value
82
+ }
83
+ price
84
+ compareAtPrice
85
+ image {
86
+ id
87
+ }
88
+ }
89
+ }
65
90
  }
66
91
  }
67
92
  `;
68
93
  const { data } = yield this.client.request(query);
94
+ console.log('data', data);
69
95
  const { product } = Object.assign({}, data);
70
96
  return Object.assign({}, product);
71
97
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",