@lancom/shared 0.0.97 → 0.0.98

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.
@@ -49,6 +49,19 @@ export default {
49
49
  chargeOrderRefund(order, refund, shop) {
50
50
  return _post(`shop/${shop}/order/${order}/refund/${refund}/charge`);
51
51
  },
52
+ fetchOrderWoTasks(orderId) {
53
+ return _get(`admin/order/${orderId}/wo-tasks`);
54
+ },
55
+ createOrderWoTask(orderId, task) {
56
+ return _post(`admin/order/${orderId}/wo-tasks`, task);
57
+ },
58
+ saveWoTask(task) {
59
+ const url = `admin/warehouse/${task.warehouse}/tasks/${task._id}`;
60
+ return task._id ? _put(url, task) : _post(url, task);
61
+ },
62
+ fetchWarehouseTaskById(warehouse, task) {
63
+ return _get(`admin/warehouse/${warehouse}/tasks/${task}`);
64
+ },
52
65
  fetchPages() {
53
66
  return _get('admin/pages');
54
67
  },
@@ -92,7 +105,7 @@ export default {
92
105
  return _post(`shop/${shop}/user/reset-password`, user);
93
106
  },
94
107
  fetchUsers() {
95
- return _get('admin/user');
108
+ return _get('admin/users');
96
109
  },
97
110
  fetchUserById(id) {
98
111
  return _get(`admin/user/${id}`);
@@ -94,7 +94,7 @@ export default {
94
94
  return (this.simpleProduct || {}).amount || this.defaultValue;
95
95
  },
96
96
  set(value) {
97
- const outOfStockQuantity = this.simpleProduct?.quantityStock || this.product.quantityStock;
97
+ const outOfStockQuantity = this.simpleProduct?.quantityStock;
98
98
  if (outOfStockQuantity && outOfStockQuantity < value && this.showMaxModal) {
99
99
  const message = `Maximum value: ${outOfStockQuantity}`;
100
100
  this.showConfirmationModal(message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {