arky-sdk 0.7.6 → 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 +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +50 -3
- package/dist/types.d.ts +50 -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;
|
|
@@ -1201,6 +1209,20 @@ var createCustomerApi = (apiConfig) => {
|
|
|
1201
1209
|
options
|
|
1202
1210
|
);
|
|
1203
1211
|
},
|
|
1212
|
+
async revokeToken(params, options) {
|
|
1213
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1214
|
+
return apiConfig.httpClient.delete(
|
|
1215
|
+
`/v1/businesses/${businessId}/customers/${params.id}/sessions/${params.tokenId}`,
|
|
1216
|
+
options
|
|
1217
|
+
);
|
|
1218
|
+
},
|
|
1219
|
+
async revokeAllTokens(params, options) {
|
|
1220
|
+
const businessId = params.businessId || apiConfig.businessId;
|
|
1221
|
+
return apiConfig.httpClient.delete(
|
|
1222
|
+
`/v1/businesses/${businessId}/customers/${params.id}/sessions`,
|
|
1223
|
+
options
|
|
1224
|
+
);
|
|
1225
|
+
},
|
|
1204
1226
|
// Audiences
|
|
1205
1227
|
audiences: {
|
|
1206
1228
|
async create(params, options) {
|