washday-sdk 0.0.101 → 0.0.102
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/order/get.js
CHANGED
|
@@ -35,7 +35,7 @@ export const getList = function (params) {
|
|
|
35
35
|
'readyDateTime',
|
|
36
36
|
'collectedDateTime',
|
|
37
37
|
'q',
|
|
38
|
-
], params);
|
|
38
|
+
], Object.assign(Object.assign({}, params), { q: params.q ? encodeURIComponent(params.q) : undefined }));
|
|
39
39
|
return yield axiosInstance.get(`${GET_SET_ORDER}?${queryParams}`, config);
|
|
40
40
|
}
|
|
41
41
|
catch (error) {
|
package/dist/api/routes/put.js
CHANGED
|
@@ -15,7 +15,7 @@ export const closeStoreRoutes = function (storeId, data) {
|
|
|
15
15
|
const config = {
|
|
16
16
|
headers: { Authorization: `Bearer ${this.apiToken}` }
|
|
17
17
|
};
|
|
18
|
-
return yield axiosInstance.put(`${GET_STORE_ROUTES}/${storeId}`, data, config);
|
|
18
|
+
return yield axiosInstance.put(`${GET_STORE_ROUTES}/${storeId}/close`, data, config);
|
|
19
19
|
}
|
|
20
20
|
catch (error) {
|
|
21
21
|
console.error('Error fetching closeStoreRoutes:', error);
|
package/package.json
CHANGED
package/src/api/order/get.ts
CHANGED
|
@@ -45,7 +45,7 @@ export const getList = async function (this: WashdayClientInstance, params: {
|
|
|
45
45
|
'readyDateTime',
|
|
46
46
|
'collectedDateTime',
|
|
47
47
|
'q',
|
|
48
|
-
], params);
|
|
48
|
+
], { ...params, q: params.q ? encodeURIComponent(params.q) : undefined });
|
|
49
49
|
return await axiosInstance.get(`${GET_SET_ORDER}?${queryParams}`, config);
|
|
50
50
|
} catch (error) {
|
|
51
51
|
console.error('Error fetching getList orders:', error);
|
package/src/api/routes/post.ts
CHANGED
|
@@ -8,9 +8,9 @@ export const createRoute = async function (this: WashdayClientInstance, data: {
|
|
|
8
8
|
orders: {
|
|
9
9
|
_id: string,
|
|
10
10
|
nextStatus: string,
|
|
11
|
-
deliveringDateTime?:
|
|
12
|
-
pickingUpDateTime?:
|
|
13
|
-
collectedDateTime?:
|
|
11
|
+
deliveringDateTime?: string,
|
|
12
|
+
pickingUpDateTime?: string,
|
|
13
|
+
collectedDateTime?: string
|
|
14
14
|
}[];
|
|
15
15
|
createdDate: string;
|
|
16
16
|
isActive: boolean
|
package/src/api/routes/put.ts
CHANGED
|
@@ -9,7 +9,7 @@ export const closeStoreRoutes = async function (this: WashdayClientInstance, sto
|
|
|
9
9
|
const config = {
|
|
10
10
|
headers: { Authorization: `Bearer ${this.apiToken}` }
|
|
11
11
|
};
|
|
12
|
-
return await axiosInstance.put(`${GET_STORE_ROUTES}/${storeId}`, data, config);
|
|
12
|
+
return await axiosInstance.put(`${GET_STORE_ROUTES}/${storeId}/close`, data, config);
|
|
13
13
|
} catch (error) {
|
|
14
14
|
console.error('Error fetching closeStoreRoutes:', error);
|
|
15
15
|
throw error;
|