@longvansoftware/storefront-js-client 2.1.8 → 2.2.0

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.
@@ -17,7 +17,7 @@ class ComhubService extends serviceSDK_1.Service {
17
17
  }
18
18
  shareOrder(dataRequet, OAId) {
19
19
  return __awaiter(this, void 0, void 0, function* () {
20
- const endpoint = `/web-hook/zalo/zns/${OAId}`;
20
+ const endpoint = `/web-hook/zalo/zns/${OAId}/template/370402/zns`;
21
21
  const method = "POST";
22
22
  try {
23
23
  const response = yield this.restApiCallWithNoHeader(endpoint, method, dataRequet);
@@ -34,7 +34,6 @@ class ComhubService extends serviceSDK_1.Service {
34
34
  const method = "POST";
35
35
  const dataRequet = {
36
36
  content,
37
- contentType,
38
37
  senderPartyId,
39
38
  receivePartyIds,
40
39
  };
@@ -458,4 +458,5 @@ export declare class OrderService extends Service {
458
458
  deleteInfoReceiver(ownerId: string, receiverId: string, deletedBy: string): Promise<any>;
459
459
  enableProductDiary(orderId: string, orderItemId: string): Promise<any>;
460
460
  removeMemberDiscount(orderId: string): Promise<any>;
461
+ getInfoChatApp(attributesName: string): Promise<any>;
461
462
  }
@@ -1330,5 +1330,18 @@ class OrderService extends serviceSDK_1.Service {
1330
1330
  }
1331
1331
  });
1332
1332
  }
1333
+ getInfoChatApp(attributesName) {
1334
+ return __awaiter(this, void 0, void 0, function* () {
1335
+ const endpoint = `/store-channels/${this.orgId}/${this.storeId}/attributes/${attributesName}`;
1336
+ const method = "GET";
1337
+ try {
1338
+ const response = yield this.restApiCallWithToken(endpoint, method);
1339
+ return response;
1340
+ }
1341
+ catch (error) {
1342
+ throw error;
1343
+ }
1344
+ });
1345
+ }
1333
1346
  }
1334
1347
  exports.OrderService = OrderService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.1.8",
3
+ "version": "2.2.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [