washday-sdk 0.0.101 → 0.0.103

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.
@@ -36,6 +36,7 @@ export const getList = function (params) {
36
36
  'collectedDateTime',
37
37
  'q',
38
38
  ], params);
39
+ // ], { ...params, q: params.q ? encodeURIComponent(params.q) : undefined });
39
40
  return yield axiosInstance.get(`${GET_SET_ORDER}?${queryParams}`, config);
40
41
  }
41
42
  catch (error) {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.101",
3
+ "version": "0.0.103",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -46,6 +46,7 @@ export const getList = async function (this: WashdayClientInstance, params: {
46
46
  'collectedDateTime',
47
47
  'q',
48
48
  ], params);
49
+ // ], { ...params, q: params.q ? encodeURIComponent(params.q) : undefined });
49
50
  return await axiosInstance.get(`${GET_SET_ORDER}?${queryParams}`, config);
50
51
  } catch (error) {
51
52
  console.error('Error fetching getList orders:', error);
@@ -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?: Date,
12
- pickingUpDateTime?: Date,
13
- collectedDateTime?: Date
11
+ deliveringDateTime?: string,
12
+ pickingUpDateTime?: string,
13
+ collectedDateTime?: string
14
14
  }[];
15
15
  createdDate: string;
16
16
  isActive: boolean
@@ -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;