@pintahub/shopify-api 1.4.3 → 1.4.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.
@@ -25,8 +25,17 @@ class SearchOrders extends ActionBuilder_1.ActionBuilder {
25
25
  updatedAt
26
26
  name
27
27
  shippingAddress {
28
+ name
28
29
  countryCodeV2
29
30
  }
31
+ displayFulfillmentStatus
32
+ displayFinancialStatus
33
+ totalPriceSet {
34
+ shopMoney {
35
+ amount
36
+ currencyCode
37
+ }
38
+ }
30
39
  }
31
40
  pageInfo {
32
41
  hasNextPage
@@ -35,7 +44,7 @@ class SearchOrders extends ActionBuilder_1.ActionBuilder {
35
44
  }
36
45
  }
37
46
  `;
38
- const { data, errors } = yield this.client.request(query);
47
+ const { data, errors, extensions } = yield this.client.request(query);
39
48
  yield (0, handleErrors_1.handleErrors)(errors);
40
49
  const { orders } = Object.assign({}, data);
41
50
  const { nodes, pageInfo } = Object.assign({}, orders);
@@ -14,11 +14,11 @@ const handleErrors = (errors) => __awaiter(void 0, void 0, void 0, function* ()
14
14
  if (!errors)
15
15
  return;
16
16
  const { message, graphQLErrors } = Object.assign({}, errors);
17
- if (message) {
18
- throw new Error(message);
19
- }
20
17
  if (graphQLErrors) {
21
18
  console.error('GraphQL Errors:', graphQLErrors);
22
19
  }
20
+ if (message) {
21
+ throw new Error(message);
22
+ }
23
23
  });
24
24
  exports.handleErrors = handleErrors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",