@longvansoftware/storefront-js-client 1.1.3 → 1.1.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.
@@ -7,5 +7,5 @@ export declare class UserService extends Service {
7
7
  updateCompanyInfo(id: string, fieldName: string, valueUpdate: string, updatedBy: string): Promise<any>;
8
8
  updateCustomerV2(id: string, customerItem: updateCustomerRequest, updatedBy: string): Promise<any>;
9
9
  getCustomerById(id: string): Promise<any>;
10
- searchCompany(keyword: string): Promise<any>;
10
+ searchCompany(keyword: string, limit: number): Promise<any>;
11
11
  }
@@ -113,13 +113,13 @@ class UserService extends service_1.Service {
113
113
  }
114
114
  });
115
115
  }
116
- searchCompany(keyword) {
116
+ searchCompany(keyword, limit) {
117
117
  return __awaiter(this, void 0, void 0, function* () {
118
118
  const query = queries_1.SEARCH_COMPANY;
119
119
  const variables = {
120
120
  keyword,
121
121
  orgId: this.orgId,
122
- limit: 1,
122
+ limit,
123
123
  };
124
124
  try {
125
125
  const response = yield this.graphqlQuery(query, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [