@pintahub/shopify-api 1.8.7 → 1.8.9

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.
@@ -29,7 +29,7 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
29
29
  featuredImage {
30
30
  id
31
31
  altText
32
- url(transform: {preferredContentType: PNG, maxWidth: 1200})
32
+ url
33
33
  width
34
34
  height
35
35
  }
@@ -66,10 +66,10 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
66
66
  type
67
67
  }
68
68
  }
69
- images(first: 20) {
69
+ images(first: 100) {
70
70
  nodes {
71
71
  id
72
- url(transform: {maxWidth: 1200})
72
+ url
73
73
  height
74
74
  altText
75
75
  width
@@ -3,6 +3,7 @@ import { ActionBuilder } from "../../ActionBuilder";
3
3
  export interface SearchProductsInput extends Record<string, any> {
4
4
  limit?: number;
5
5
  after?: string;
6
+ query?: string;
6
7
  }
7
8
  export interface SearchProductsOutput extends Record<string, any> {
8
9
  items: any[];
@@ -15,7 +15,7 @@ const handleErrors_1 = require("../../../utils/handleErrors");
15
15
  class SearchProducts extends ActionBuilder_1.ActionBuilder {
16
16
  run(args) {
17
17
  return __awaiter(this, void 0, void 0, function* () {
18
- const { after, limit } = Object.assign({}, args);
18
+ const { after, limit, query: queryStr } = Object.assign({}, args);
19
19
  const vLimit = limit || 10;
20
20
  const query = `
21
21
  {
@@ -24,6 +24,7 @@ class SearchProducts extends ActionBuilder_1.ActionBuilder {
24
24
  sortKey: UPDATED_AT
25
25
  reverse: true
26
26
  ${after ? `after: "${after}"` : ''}
27
+ ${queryStr ? `query: "${queryStr}"` : ''}
27
28
  ) {
28
29
  nodes {
29
30
  id
@@ -48,10 +48,10 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
48
48
  values
49
49
  name
50
50
  }
51
- images(first: 20) {
51
+ images(first: 100) {
52
52
  nodes {
53
53
  id
54
- url(transform: {maxWidth: 1200})
54
+ url
55
55
  height
56
56
  altText
57
57
  width
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "1.8.7",
3
+ "version": "1.8.9",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",