@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.
|
@@ -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;
|