washday-sdk 1.5.6 → 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.
@@ -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.6",
3
+ "version": "1.5.7",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -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')) {