@longvansoftware/storefront-js-client 2.0.6 → 2.0.7

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.
@@ -30,4 +30,5 @@ export declare class CrmService extends Service {
30
30
  removeTag(connectorId: string, tagId: string, removedBy: string): Promise<any>;
31
31
  searchTopic(accountTableId: string, pageSize: number, currentPage: number): Promise<any>;
32
32
  closeTopic(id: string, updatedBy: string): Promise<any>;
33
+ getTopicByCustomerId(filterTopicRequest: any, pageSize: number, currentPage: number): Promise<any>;
33
34
  }
@@ -506,5 +506,23 @@ class CrmService extends serviceSDK_1.Service {
506
506
  }
507
507
  });
508
508
  }
509
+ getTopicByCustomerId(filterTopicRequest, pageSize, currentPage) {
510
+ return __awaiter(this, void 0, void 0, function* () {
511
+ const query = queries_1.SEARCH_TOPIC;
512
+ const variables = {
513
+ filterTopicRequest,
514
+ partnerId: this.orgId,
515
+ pageSize,
516
+ currentPage,
517
+ };
518
+ try {
519
+ const response = yield this.graphqlMutationV2(query, variables);
520
+ return response.searchTopic;
521
+ }
522
+ catch (error) {
523
+ throw error;
524
+ }
525
+ });
526
+ }
509
527
  }
510
528
  exports.CrmService = CrmService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [