@pintahub/shopify-api 1.1.6 → 1.1.7

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.
@@ -34,16 +34,6 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
34
34
  productType
35
35
  title
36
36
  descriptionHtml
37
- priceRangeV2 {
38
- maxVariantPrice {
39
- amount
40
- currencyCode
41
- }
42
- minVariantPrice {
43
- amount
44
- currencyCode
45
- }
46
- }
47
37
  tags
48
38
  productCategory {
49
39
  productTaxonomyNode {
@@ -56,10 +46,6 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
56
46
  id
57
47
  }
58
48
  }
59
- options {
60
- values
61
- name
62
- }
63
49
  metafields(first: 100) {
64
50
  nodes {
65
51
  key
@@ -67,30 +53,6 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
67
53
  type
68
54
  }
69
55
  }
70
- images(first: 20) {
71
- nodes {
72
- id
73
- url(transform: {maxWidth: 1000, crop: CENTER, preferredContentType: WEBP})
74
- height
75
- altText
76
- width
77
- }
78
- }
79
- variants(first: 250) {
80
- nodes {
81
- id
82
- availableForSale
83
- selectedOptions {
84
- name
85
- value
86
- }
87
- price
88
- compareAtPrice
89
- image {
90
- id
91
- }
92
- }
93
- }
94
56
  }
95
57
  }
96
58
  `;
@@ -20,6 +20,9 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
20
20
  const query = `
21
21
  {
22
22
  product(id: "${globalId}") {
23
+ id
24
+ title
25
+ handle
23
26
  priceRange {
24
27
  maxVariantPrice {
25
28
  amount
@@ -81,7 +84,6 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
81
84
  }
82
85
  `;
83
86
  const { data } = yield this.client.request(query);
84
- console.log('data', data);
85
87
  const { product } = Object.assign({}, data);
86
88
  return Object.assign({}, product);
87
89
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",