washday-sdk 1.5.5 → 1.5.7

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.
@@ -313,7 +313,7 @@ export const exportUnpaidOrdersReportCSV = function (storeId, params) {
313
313
  'timezone',
314
314
  'customerName'
315
315
  ], params);
316
- return yield this.axiosInstance.get(`${GET_SET_REPORTS}/${storeId}/unpaidOrders/exportcsv?${queryParams}`, config);
316
+ return yield this.axiosInstance.get(`${GET_SET_REPORTS}/${storeId}/unpaidOrders/export/csv?${queryParams}`, config);
317
317
  }
318
318
  catch (error) {
319
319
  console.error('Error fetching exportUnpaidOrdersReportCSV:', error);
@@ -17,7 +17,7 @@ export const getList = function (params, options) {
17
17
  headers: { Authorization: `Bearer ${this.apiToken}` },
18
18
  signal: (options === null || options === void 0 ? void 0 : options.signal) || params.signal || undefined
19
19
  };
20
- const queryParams = generateQueryParamsStr(['searchTerm', 'name', 'phone', 'email', 'fromDate', 'toDate', 'limit', 'pageNum', 'createdIn'], params);
20
+ const queryParams = generateQueryParamsStr(['searchTerm', 'name', 'phone', 'email', 'fromDate', 'toDate', 'limit', 'pageNum', 'createdIn', 'includeOrderMetrics'], params);
21
21
  return yield this.axiosInstance.get(`${GET_SET_CUSTOMERS}?${queryParams}`, config);
22
22
  }
23
23
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "1.5.5",
3
+ "version": "1.5.7",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -344,7 +344,7 @@ export const exportUnpaidOrdersReportCSV = async function (this: WashdayClientIn
344
344
  'timezone',
345
345
  'customerName'
346
346
  ], params);
347
- return await this.axiosInstance.get(`${GET_SET_REPORTS}/${storeId}/unpaidOrders/exportcsv?${queryParams}`, config);
347
+ return await this.axiosInstance.get(`${GET_SET_REPORTS}/${storeId}/unpaidOrders/export/csv?${queryParams}`, config);
348
348
  } catch (error) {
349
349
  console.error('Error fetching exportUnpaidOrdersReportCSV:', error);
350
350
  throw error;
@@ -17,6 +17,7 @@ export const getList = async function (this: WashdayClientInstance, params: {
17
17
  limit: string
18
18
  pageNum: string,
19
19
  createdIn?: string
20
+ includeOrderMetrics?: string
20
21
  signal?: GenericAbortSignal
21
22
  }, options?: { signal?: GenericAbortSignal }): Promise<any> {
22
23
  try {
@@ -24,7 +25,7 @@ export const getList = async function (this: WashdayClientInstance, params: {
24
25
  headers: { Authorization: `Bearer ${this.apiToken}` },
25
26
  signal: options?.signal || params.signal || undefined
26
27
  };
27
- const queryParams = generateQueryParamsStr(['searchTerm', 'name', 'phone', 'email', 'fromDate', 'toDate', 'limit', 'pageNum', 'createdIn'], params);
28
+ const queryParams = generateQueryParamsStr(['searchTerm', 'name', 'phone', 'email', 'fromDate', 'toDate', 'limit', 'pageNum', 'createdIn', 'includeOrderMetrics'], params);
28
29
  return await this.axiosInstance.get(`${GET_SET_CUSTOMERS}?${queryParams}`, config);
29
30
  } catch (error) {
30
31
  if (error instanceof Error && (error.name === 'AbortError' || error.name === 'CanceledError')) {