@longvansoftware/storefront-js-client 4.3.1 → 4.3.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.
@@ -550,4 +550,6 @@ export declare class OrderService extends Service {
550
550
  district_code: string;
551
551
  ward_code: string;
552
552
  }): Promise<any>;
553
+ addEmployeeToStore(employeeId: string): Promise<any>;
554
+ deleteEmployeeToStore(employeeId: string): Promise<any>;
553
555
  }
@@ -1726,5 +1726,31 @@ class OrderService extends serviceSDK_1.Service {
1726
1726
  }
1727
1727
  });
1728
1728
  }
1729
+ addEmployeeToStore(employeeId) {
1730
+ return __awaiter(this, void 0, void 0, function* () {
1731
+ const endpoint = `/store-channels/${this.orgId}/${this.storeId}/employee/${employeeId}`;
1732
+ const method = "PUT";
1733
+ try {
1734
+ const response = yield this.restApiCallWithToken(endpoint, method);
1735
+ return response;
1736
+ }
1737
+ catch (error) {
1738
+ throw error;
1739
+ }
1740
+ });
1741
+ }
1742
+ deleteEmployeeToStore(employeeId) {
1743
+ return __awaiter(this, void 0, void 0, function* () {
1744
+ const endpoint = `/store-channels/${this.orgId}/${this.storeId}/employee/${employeeId}`;
1745
+ const method = "DELETE";
1746
+ try {
1747
+ const response = yield this.restApiCallWithToken(endpoint, method);
1748
+ return response;
1749
+ }
1750
+ catch (error) {
1751
+ throw error;
1752
+ }
1753
+ });
1754
+ }
1729
1755
  }
1730
1756
  exports.OrderService = OrderService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [