arky-sdk 0.5.42 → 0.5.44
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 +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +23 -40
- package/dist/types.d.ts +23 -40
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1101,26 +1101,27 @@ var createBookingApi = (apiConfig) => {
|
|
|
1101
1101
|
);
|
|
1102
1102
|
},
|
|
1103
1103
|
async findServiceProviders(params, options) {
|
|
1104
|
-
const
|
|
1104
|
+
const { businessId, ...queryParams } = params;
|
|
1105
|
+
const targetBusinessId = businessId || apiConfig.businessId;
|
|
1105
1106
|
return apiConfig.httpClient.get(
|
|
1106
|
-
`/v1/businesses/${targetBusinessId}/
|
|
1107
|
-
options
|
|
1107
|
+
`/v1/businesses/${targetBusinessId}/service-providers`,
|
|
1108
|
+
{ ...options, params: queryParams }
|
|
1108
1109
|
);
|
|
1109
1110
|
},
|
|
1110
1111
|
async createServiceProvider(params, options) {
|
|
1111
|
-
const { businessId,
|
|
1112
|
+
const { businessId, ...payload } = params;
|
|
1112
1113
|
const targetBusinessId = businessId || apiConfig.businessId;
|
|
1113
1114
|
return apiConfig.httpClient.post(
|
|
1114
|
-
`/v1/businesses/${targetBusinessId}/
|
|
1115
|
+
`/v1/businesses/${targetBusinessId}/service-providers`,
|
|
1115
1116
|
payload,
|
|
1116
1117
|
options
|
|
1117
1118
|
);
|
|
1118
1119
|
},
|
|
1119
1120
|
async updateServiceProvider(params, options) {
|
|
1120
|
-
const { businessId,
|
|
1121
|
+
const { businessId, id, ...payload } = params;
|
|
1121
1122
|
const targetBusinessId = businessId || apiConfig.businessId;
|
|
1122
1123
|
return apiConfig.httpClient.put(
|
|
1123
|
-
`/v1/businesses/${targetBusinessId}/
|
|
1124
|
+
`/v1/businesses/${targetBusinessId}/service-providers/${id}`,
|
|
1124
1125
|
payload,
|
|
1125
1126
|
options
|
|
1126
1127
|
);
|
|
@@ -1128,7 +1129,7 @@ var createBookingApi = (apiConfig) => {
|
|
|
1128
1129
|
async deleteServiceProvider(params, options) {
|
|
1129
1130
|
const targetBusinessId = params.businessId || apiConfig.businessId;
|
|
1130
1131
|
return apiConfig.httpClient.delete(
|
|
1131
|
-
`/v1/businesses/${targetBusinessId}/
|
|
1132
|
+
`/v1/businesses/${targetBusinessId}/service-providers/${params.id}`,
|
|
1132
1133
|
options
|
|
1133
1134
|
);
|
|
1134
1135
|
}
|