@longvansoftware/storefront-js-client 1.1.2 → 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.
|
@@ -49,7 +49,7 @@ query GetCustomerById($id: String!){
|
|
|
49
49
|
}
|
|
50
50
|
`;
|
|
51
51
|
exports.SEARCH_COMPANY = (0, graphql_tag_1.gql) `
|
|
52
|
-
query SearchCompany($keyword: String, $orgId: String!, $limit:
|
|
52
|
+
query SearchCompany($keyword: String, $orgId: String!, $limit: Int){
|
|
53
53
|
searchCompany(keyword: $keyword, orgId: $orgId, limit: $limit) {
|
|
54
54
|
id
|
|
55
55
|
name
|
|
@@ -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
|
|
122
|
+
limit,
|
|
123
123
|
};
|
|
124
124
|
try {
|
|
125
125
|
const response = yield this.graphqlQuery(query, variables);
|