@longvansoftware/storefront-js-client 2.4.1 → 2.4.2

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,22 +568,13 @@ exports.SEARCH_TOPIC = (0, graphql_tag_1.gql) `
568
568
  status
569
569
  name
570
570
  communicationChannel
571
+ customerId
571
572
  accountableId
572
573
  accountableName
574
+ customerName
573
575
  createdStamp
574
576
  threadId
575
577
  roomId
576
- channelId
577
- channelType
578
- userContactName
579
- customer {
580
- id
581
- fullName
582
- name
583
- type
584
- phone
585
- email
586
- }
587
578
  }
588
579
  }
589
580
  }
@@ -2,5 +2,6 @@ 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>;
5
6
  sendMessage(OAId: string, content: string, contentType: string, senderPartyId: string, receivePartyIds: [string]): Promise<any>;
6
7
  }
@@ -28,6 +28,19 @@ 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
+ }
31
44
  sendMessage(OAId, content, contentType, senderPartyId, receivePartyIds) {
32
45
  return __awaiter(this, void 0, void 0, function* () {
33
46
  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 = `/channels/partner/${this.orgId}/social`;
46
+ const endpoint = `/apps/partner/${this.orgId}`;
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.1",
3
+ "version": "2.4.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [