@longvansoftware/storefront-js-client 2.4.2 → 2.4.3

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.
@@ -568,13 +568,21 @@ exports.SEARCH_TOPIC = (0, graphql_tag_1.gql) `
568
568
  status
569
569
  name
570
570
  communicationChannel
571
- customerId
572
571
  accountableId
573
572
  accountableName
574
- customerName
575
573
  createdStamp
576
574
  threadId
577
575
  roomId
576
+ channelId
577
+ channelType
578
+ customer {
579
+ id
580
+ fullName
581
+ name
582
+ type
583
+ phone
584
+ email
585
+ }
578
586
  }
579
587
  }
580
588
  }
@@ -2,6 +2,5 @@ import { Service } from "../serviceSDK";
2
2
  export declare class ComhubService extends Service {
3
3
  constructor(endpoint: string, orgId: string, storeId: string);
4
4
  sendZns(dataTemplate: any, appId: string, messageType: string): Promise<any>;
5
- shareOrder(dataRequet: any, OAId: string, templateId: string): Promise<any>;
6
5
  sendMessage(OAId: string, content: string, contentType: string, senderPartyId: string, receivePartyIds: [string]): Promise<any>;
7
6
  }
@@ -28,19 +28,6 @@ class ComhubService extends serviceSDK_1.Service {
28
28
  }
29
29
  });
30
30
  }
31
- shareOrder(dataRequet, OAId, templateId) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- const endpoint = `/web-hook/message/send/social/app/${OAId}/template/${templateId}`;
34
- const method = "POST";
35
- try {
36
- const response = yield this.restApiCallWithNoHeader(endpoint, method, dataRequet);
37
- return response;
38
- }
39
- catch (error) {
40
- throw error;
41
- }
42
- });
43
- }
44
31
  sendMessage(OAId, content, contentType, senderPartyId, receivePartyIds) {
45
32
  return __awaiter(this, void 0, void 0, function* () {
46
33
  const endpoint = `/web-hook/message/send/social/app/${OAId}`;
@@ -43,7 +43,7 @@ class OmnigatewayService extends serviceSDK_1.Service {
43
43
  }
44
44
  getInfoChatApp() {
45
45
  return __awaiter(this, void 0, void 0, function* () {
46
- const endpoint = `/apps/partner/${this.orgId}`;
46
+ const endpoint = `/channels/partner/${this.orgId}/social`;
47
47
  const method = "GET";
48
48
  try {
49
49
  const response = yield this.restApiCallWithNoHeader(endpoint, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [