arky-sdk 0.3.117 → 0.3.119
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.
- package/dist/index.cjs +4 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +4 -11
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +9 -9
- package/dist/types.d.ts +9 -9
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ var convertServerErrorToRequestError = (serverError, renameRules) => {
|
|
|
24
24
|
|
|
25
25
|
// src/utils/queryParams.ts
|
|
26
26
|
function buildQueryString(params) {
|
|
27
|
+
console.log("buildQueryString input:", params);
|
|
27
28
|
const queryParts = [];
|
|
28
29
|
Object.entries(params).forEach(([key, value]) => {
|
|
29
30
|
if (value === null || value === void 0) {
|
|
@@ -41,7 +42,9 @@ function buildQueryString(params) {
|
|
|
41
42
|
queryParts.push(`${key}=${encodeURIComponent(jsonString)}`);
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
|
-
|
|
45
|
+
const result = queryParts.length > 0 ? `?${queryParts.join("&")}` : "";
|
|
46
|
+
console.log("buildQueryString output:", result);
|
|
47
|
+
return result;
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
// src/services/createHttpClient.ts
|
|
@@ -1101,16 +1104,6 @@ var createReservationApi = (apiConfig) => {
|
|
|
1101
1104
|
}
|
|
1102
1105
|
);
|
|
1103
1106
|
},
|
|
1104
|
-
async getServiceProviders(params, options) {
|
|
1105
|
-
const { serviceId, ...queryParams } = params;
|
|
1106
|
-
return apiConfig.httpClient.get(
|
|
1107
|
-
`/v1/businesses/${apiConfig.businessId}/services/${serviceId}/providers`,
|
|
1108
|
-
{
|
|
1109
|
-
...options,
|
|
1110
|
-
params: queryParams
|
|
1111
|
-
}
|
|
1112
|
-
);
|
|
1113
|
-
},
|
|
1114
1107
|
// ===== PROVIDERS =====
|
|
1115
1108
|
async createProvider(params, options) {
|
|
1116
1109
|
return apiConfig.httpClient.post(
|