@pintahub/shopify-api 1.8.8 → 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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",