washday-sdk 0.0.70 → 0.0.71
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.
|
@@ -70,7 +70,8 @@ const getCustomerOrders = function (customerId, params) {
|
|
|
70
70
|
const config = {
|
|
71
71
|
headers: { Authorization: `Bearer ${this.apiToken}` }
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
const queryParams = (0, apiUtils_1.generateQueryParamsStr)(['limit', 'pageNum'], params);
|
|
74
|
+
return yield axiosInstance_1.default.get(`${GET_SET_CUSTOMERS}/${customerId}/orders?${queryParams}`, config);
|
|
74
75
|
}
|
|
75
76
|
catch (error) {
|
|
76
77
|
console.error('Error fetching getCustomerHighlightsById:', error);
|
package/package.json
CHANGED
package/src/api/customers/get.ts
CHANGED
|
@@ -62,7 +62,8 @@ export const getCustomerOrders = async function (this: WashdayClientInstance, cu
|
|
|
62
62
|
const config = {
|
|
63
63
|
headers: { Authorization: `Bearer ${this.apiToken}` }
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
const queryParams = generateQueryParamsStr(['limit', 'pageNum'], params);
|
|
66
|
+
return await axiosInstance.get(`${GET_SET_CUSTOMERS}/${customerId}/orders?${queryParams}`, config);
|
|
66
67
|
} catch (error) {
|
|
67
68
|
console.error('Error fetching getCustomerHighlightsById:', error);
|
|
68
69
|
throw error;
|