@longvansoftware/service-js-client 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.
@@ -181,6 +181,12 @@ exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
181
181
  level
182
182
  handle
183
183
  }
184
+ groups {
185
+ id
186
+ name
187
+ policy
188
+ image
189
+ }
184
190
  }
185
191
  }
186
192
  `;
@@ -598,6 +604,12 @@ exports.GET_PRODUCTS = (0, graphql_tag_1.gql) `
598
604
  featuredImage
599
605
  sku
600
606
  }
607
+ groups {
608
+ id
609
+ name
610
+ policy
611
+ image
612
+ }
601
613
  }
602
614
  }
603
615
  }
@@ -133,7 +133,7 @@ class ProductService extends serviceSDK_1.Service {
133
133
  const query = queries_1.GET_PRODUCTS;
134
134
  const variablesHandle = Object.assign({ partnerId: this.orgId, storeChannel: this.storeId }, param);
135
135
  try {
136
- const response = yield this.graphqlQuery(query, variablesHandle);
136
+ const response = yield this.graphqlQueryV2(query, variablesHandle);
137
137
  return response.getProducts;
138
138
  }
139
139
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [