@pintahub/shopify-api 2.0.5 → 2.0.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.
@@ -27,13 +27,15 @@ const handleErrors_1 = require("../../../utils/handleErrors");
27
27
  class GetProductMedia extends ActionBuilder_1.ActionBuilder {
28
28
  _formatMedia(media) {
29
29
  return media.map(item => {
30
- const _a = Object.assign({}, item), { preview } = _a, rest = __rest(_a, ["preview"]);
30
+ const _a = Object.assign({}, item), { preview, originalSource } = _a, rest = __rest(_a, ["preview", "originalSource"]);
31
31
  const { image } = Object.assign({}, preview);
32
32
  const { url, width, height, altText } = Object.assign({}, image);
33
+ const { fileSize } = Object.assign({}, originalSource);
33
34
  return Object.assign(Object.assign({}, rest), { url,
34
35
  width,
35
36
  height,
36
- altText });
37
+ altText,
38
+ fileSize });
37
39
  });
38
40
  }
39
41
  run(args) {
@@ -51,6 +53,9 @@ class GetProductMedia extends ActionBuilder_1.ActionBuilder {
51
53
  ... on MediaImage {
52
54
  id
53
55
  mimeType
56
+ originalSource {
57
+ fileSize
58
+ }
54
59
  preview {
55
60
  image {
56
61
  altText
@@ -41,6 +41,7 @@ class SearchProducts extends ActionBuilder_1.ActionBuilder {
41
41
  status
42
42
  productType
43
43
  vendor
44
+ updatedAt
44
45
  }
45
46
  pageInfo {
46
47
  hasNextPage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",