washday-sdk 0.0.96 → 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.
package/dist/api/index.js CHANGED
@@ -68,6 +68,12 @@ const WashdayClient = function WashdayClient(apiToken) {
68
68
  fetchOrdersForCFDI: ordersEndpoints.getModule.fetchOrdersForCFDI,
69
69
  updateById: ordersEndpoints.putModule.updateById,
70
70
  updatePaymentLineById: ordersEndpoints.putModule.updatePaymentLineById,
71
+ setOrderCancelledBySequence: ordersEndpoints.putModule.setOrderCancelledBySequence,
72
+ setOrderCleanedBySequence: ordersEndpoints.putModule.setOrderCleanedBySequence,
73
+ setOrderCollectedBySequence: ordersEndpoints.putModule.setOrderCollectedBySequence,
74
+ setOrdePickingBySequence: ordersEndpoints.putModule.setOrdePickingBySequence,
75
+ setOrdeDeliveringBySequence: ordersEndpoints.putModule.setOrdeDeliveringBySequence,
76
+ setOrdeDeliveredBySequence: ordersEndpoints.putModule.setOrdeDeliveredBySequence,
71
77
  createPaymentLine: ordersEndpoints.postModule.createPaymentLine,
72
78
  sendEmailReceipt: ordersEndpoints.postModule.sendEmailReceipt,
73
79
  deletePaymentLineById: ordersEndpoints.deleteModule.deletePaymentLineById,
@@ -38,3 +38,87 @@ export const updatePaymentLineById = function (orderId, id, data) {
38
38
  }
39
39
  });
40
40
  };
41
+ export const setOrderCancelledBySequence = function (sequence, storeId, data) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ try {
44
+ const config = {
45
+ headers: { Authorization: `Bearer ${this.apiToken}` }
46
+ };
47
+ return yield axiosInstance.put(`${GET_SET_ORDER}/${sequence}/${storeId}/cancelled`, data, config);
48
+ }
49
+ catch (error) {
50
+ console.error('Error fetching setOrderCancelledBySequence:', error);
51
+ throw error;
52
+ }
53
+ });
54
+ };
55
+ export const setOrderCleanedBySequence = function (sequence, storeId, data) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ try {
58
+ const config = {
59
+ headers: { Authorization: `Bearer ${this.apiToken}` }
60
+ };
61
+ return yield axiosInstance.put(`${GET_SET_ORDER}/${sequence}/${storeId}/cleaned`, data, config);
62
+ }
63
+ catch (error) {
64
+ console.error('Error fetching setOrderCleanedBySequence:', error);
65
+ throw error;
66
+ }
67
+ });
68
+ };
69
+ export const setOrderCollectedBySequence = function (sequence, storeId, data) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ try {
72
+ const config = {
73
+ headers: { Authorization: `Bearer ${this.apiToken}` }
74
+ };
75
+ return yield axiosInstance.put(`${GET_SET_ORDER}/${sequence}/${storeId}/collected`, data, config);
76
+ }
77
+ catch (error) {
78
+ console.error('Error fetching setOrderCollectedBySequence:', error);
79
+ throw error;
80
+ }
81
+ });
82
+ };
83
+ export const setOrdePickingBySequence = function (sequence, storeId, data) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ try {
86
+ const config = {
87
+ headers: { Authorization: `Bearer ${this.apiToken}` }
88
+ };
89
+ return yield axiosInstance.put(`${GET_SET_ORDER}/${sequence}/${storeId}/picking`, data, config);
90
+ }
91
+ catch (error) {
92
+ console.error('Error fetching setOrdePickingBySequence:', error);
93
+ throw error;
94
+ }
95
+ });
96
+ };
97
+ export const setOrdeDeliveringBySequence = function (sequence, storeId, data) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ try {
100
+ const config = {
101
+ headers: { Authorization: `Bearer ${this.apiToken}` }
102
+ };
103
+ return yield axiosInstance.put(`${GET_SET_ORDER}/${sequence}/${storeId}/delivering`, data, config);
104
+ }
105
+ catch (error) {
106
+ console.error('Error fetching setOrdeDeliveringBySequence:', error);
107
+ throw error;
108
+ }
109
+ });
110
+ };
111
+ export const setOrdeDeliveredBySequence = function (sequence, storeId, data) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ try {
114
+ const config = {
115
+ headers: { Authorization: `Bearer ${this.apiToken}` }
116
+ };
117
+ return yield axiosInstance.put(`${GET_SET_ORDER}/${sequence}/${storeId}/delivered`, data, config);
118
+ }
119
+ catch (error) {
120
+ console.error('Error fetching setOrdeDeliveredBySequence:', error);
121
+ throw error;
122
+ }
123
+ });
124
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.96",
3
+ "version": "0.0.98",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",