arky-sdk 0.7.7 → 0.7.8
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 +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +31 -3
- package/dist/types.d.ts +31 -3
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -952,6 +952,14 @@ var createBookingApi = (apiConfig) => {
|
|
|
952
952
|
options
|
|
953
953
|
);
|
|
954
954
|
},
|
|
955
|
+
async getAvailability(params, options) {
|
|
956
|
+
const { businessId, ...query } = params;
|
|
957
|
+
const targetBusinessId = businessId || apiConfig.businessId;
|
|
958
|
+
return apiConfig.httpClient.get(
|
|
959
|
+
`/v1/businesses/${targetBusinessId}/bookings/availability`,
|
|
960
|
+
{ ...options, params: query }
|
|
961
|
+
);
|
|
962
|
+
},
|
|
955
963
|
async createService(params, options) {
|
|
956
964
|
const { businessId, ...payload } = params;
|
|
957
965
|
const targetBusinessId = businessId || apiConfig.businessId;
|