washday-sdk 0.0.176 → 0.0.178
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.
|
@@ -2,6 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
// Define the type for the Axios instance
|
|
3
3
|
let axiosInstance = null;
|
|
4
4
|
// const BASE_URL: string = 'http://localhost:5555/';
|
|
5
|
+
// const BASE_URL: string = 'https://washday-backend-development.herokuapp.com/';
|
|
5
6
|
const BASE_URL = 'https://washday-backend.herokuapp.com/';
|
|
6
7
|
// Function to create or return the singleton instance
|
|
7
8
|
const getAxiosInstance = () => {
|
|
@@ -35,7 +35,8 @@ export const getOutsourcedOrdersByStore = function (params) {
|
|
|
35
35
|
const queryParams = generateQueryParamsStr([
|
|
36
36
|
'statuses',
|
|
37
37
|
'page',
|
|
38
|
-
'limit'
|
|
38
|
+
'limit',
|
|
39
|
+
'sequence'
|
|
39
40
|
], params);
|
|
40
41
|
return yield axiosInstance.get(`${GET_OUTSOURCED_ORDERS_BY_STORE.replace(':storeId', params.storeId)}?${queryParams}`, config);
|
|
41
42
|
}
|
package/package.json
CHANGED
package/src/api/axiosInstance.ts
CHANGED
|
@@ -4,6 +4,7 @@ import axios, { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
4
4
|
let axiosInstance: AxiosInstance | null = null;
|
|
5
5
|
|
|
6
6
|
// const BASE_URL: string = 'http://localhost:5555/';
|
|
7
|
+
// const BASE_URL: string = 'https://washday-backend-development.herokuapp.com/';
|
|
7
8
|
const BASE_URL: string = 'https://washday-backend.herokuapp.com/';
|
|
8
9
|
|
|
9
10
|
// Function to create or return the singleton instance
|
|
@@ -20,6 +20,7 @@ export const getOutsourcedOrdersByOrder = async function (this: WashdayClientIns
|
|
|
20
20
|
export const getOutsourcedOrdersByStore = async function (this: WashdayClientInstance, params: {
|
|
21
21
|
storeId: string,
|
|
22
22
|
statuses?: string[],
|
|
23
|
+
sequence?: string,
|
|
23
24
|
page?: number,
|
|
24
25
|
limit?: number,
|
|
25
26
|
}): Promise<any> {
|
|
@@ -30,7 +31,8 @@ export const getOutsourcedOrdersByStore = async function (this: WashdayClientIns
|
|
|
30
31
|
const queryParams = generateQueryParamsStr([
|
|
31
32
|
'statuses',
|
|
32
33
|
'page',
|
|
33
|
-
'limit'
|
|
34
|
+
'limit',
|
|
35
|
+
'sequence'
|
|
34
36
|
], params);
|
|
35
37
|
return await axiosInstance.get(`${GET_OUTSOURCED_ORDERS_BY_STORE.replace(':storeId', params.storeId)}?${queryParams}`, config);
|
|
36
38
|
} catch (error) {
|