@longvansoftware/storefront-js-client 2.4.7 → 2.4.9

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.
@@ -460,4 +460,5 @@ export declare class OrderService extends Service {
460
460
  removeMemberDiscount(orderId: string): Promise<any>;
461
461
  getInfoChatApp(attributesName: string): Promise<any>;
462
462
  validatePhoneNumber(phoneNumer: string): boolean;
463
+ updateExchangeOrder(exchangeOrder: string, returnOrder: string, sellOrder: string): Promise<any>;
463
464
  }
@@ -1348,5 +1348,18 @@ class OrderService extends serviceSDK_1.Service {
1348
1348
  const res = (0, validatePhoneNumber_1.validatePhoneNumber)(phoneNumer);
1349
1349
  return res;
1350
1350
  }
1351
+ updateExchangeOrder(exchangeOrder, returnOrder, sellOrder) {
1352
+ return __awaiter(this, void 0, void 0, function* () {
1353
+ const endpoint = `/orders/${this.orgId}/${exchangeOrder}/${returnOrder}/${sellOrder}/updateExchangeOrder`;
1354
+ const method = "PUT";
1355
+ try {
1356
+ const response = yield this.restApiCallWithToken(endpoint, method);
1357
+ return response;
1358
+ }
1359
+ catch (error) {
1360
+ throw error;
1361
+ }
1362
+ });
1363
+ }
1351
1364
  }
1352
1365
  exports.OrderService = OrderService;
@@ -5,4 +5,5 @@ export declare class PortalService extends Service {
5
5
  updateDynamicForm(dataRequest: any): Promise<any>;
6
6
  createTag(title: string, createBy: string, partnerId?: string): Promise<any>;
7
7
  searchTag(partnerId?: string, title?: string, id?: string, search?: string): Promise<any>;
8
+ redirectLink(sku?: string, id?: string): string;
8
9
  }
@@ -72,5 +72,10 @@ class PortalService extends serviceSDK_1.Service {
72
72
  }
73
73
  });
74
74
  }
75
+ //
76
+ redirectLink(sku, id) {
77
+ const url = `${this.endpoint}/facility/manager/session/inventory-item-by-product.xhtml?${sku ? `sku=${sku}` : `id=${id}`}&orgId=${this.orgId}`;
78
+ return url;
79
+ }
75
80
  }
76
81
  exports.PortalService = PortalService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.4.7",
3
+ "version": "2.4.9",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [