@pintahub/shopify-api 1.6.5 → 1.6.6

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.
@@ -15,11 +15,11 @@ const handleErrors_1 = require("../../../utils/handleErrors");
15
15
  class SearchMenus 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 { limit } = Object.assign({}, args);
19
19
  const vLimit = limit || 10;
20
20
  const query = `
21
21
  {
22
- menus(first: 10) {
22
+ menus(first: ${vLimit}) {
23
23
  nodes {
24
24
  handle
25
25
  id
@@ -3,11 +3,11 @@ import { APIBase } from "../../APIBase";
3
3
  import { SearchMenusInput, SearchMenusOutput } from "./SearchMenus";
4
4
  import { GetMenuInput, GetMenuOutput } from "./GetMenu";
5
5
  export interface AdminMenuAPIInterface {
6
- searchMenus(args: SearchMenusInput): Promise<SearchMenusOutput>;
6
+ search(args: SearchMenusInput): Promise<SearchMenusOutput>;
7
7
  get(args: GetMenuInput): Promise<GetMenuOutput>;
8
8
  }
9
9
  export declare class AdminMenuAPI extends APIBase<AdminApiClient> implements AdminMenuAPIInterface {
10
10
  private _runAction;
11
- searchMenus(args?: SearchMenusInput): Promise<SearchMenusOutput>;
11
+ search(args?: SearchMenusInput): Promise<SearchMenusOutput>;
12
12
  get(args?: GetMenuInput): Promise<GetMenuOutput>;
13
13
  }
@@ -20,7 +20,7 @@ class AdminMenuAPI extends APIBase_1.APIBase {
20
20
  return action.run(args);
21
21
  });
22
22
  }
23
- searchMenus(args) {
23
+ search(args) {
24
24
  return __awaiter(this, void 0, void 0, function* () {
25
25
  return this._runAction(SearchMenus_1.SearchMenus, args);
26
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",