@connectedxm/admin-sdk 8.4.0 → 9.0.1
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/README.md +2 -2
- package/api.ts +455 -922
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +221 -492
- package/dist/api.js +399 -649
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +221 -492
- package/dist/esm/api.js +399 -649
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/BaseBooking.md +0 -2
- package/docs/BaseBookingSpace.md +22 -0
- package/docs/Booking.md +0 -4
- package/docs/BookingSpace.md +22 -0
- package/docs/BookingSpaceCreateInputs.md +12 -0
- package/docs/BookingSpaceUpdateInputs.md +12 -0
- package/docs/BookingsApi.md +41 -89
- package/docs/BookingsAvailabilitiesApi.md +3 -12
- package/docs/BookingsBlackoutsApi.md +3 -12
- package/docs/BookingsQuestionsApi.md +8 -32
- package/docs/BookingsQuestionsChoicesApi.md +6 -24
- package/docs/BookingsQuestionsChoicesTranslationsApi.md +4 -16
- package/docs/BookingsQuestionsTranslationsApi.md +4 -16
- package/docs/BookingsResponsesApi.md +1 -4
- package/docs/BookingsSpacesApi.md +6 -15
- package/docs/BookingsSpacesTranslationsApi.md +2 -8
- package/docs/MeetingCreateInputs.md +0 -2
- package/docs/MeetingUpdateInputs.md +0 -2
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 9.0.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10829,21 +10829,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
10829
10829
|
/**
|
|
10830
10830
|
* Grants an account tier access to a booking space by adding it to the space\'s allowed tiers list, requiring the update bookings permission and read access to tiers.
|
|
10831
10831
|
* @summary Add an account tier to a booking space
|
|
10832
|
-
* @param {string} placeId The place identifier
|
|
10833
10832
|
* @param {string} spaceId The space identifier
|
|
10834
10833
|
* @param {string} tierId The tier identifier
|
|
10835
10834
|
* @param {*} [options] Override http request option.
|
|
10836
10835
|
* @throws {RequiredError}
|
|
10837
10836
|
*/
|
|
10838
|
-
addBookingSpaceTier: (
|
|
10839
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
10840
|
-
assertParamExists('addBookingSpaceTier', 'placeId', placeId);
|
|
10837
|
+
addBookingSpaceTier: (spaceId_1, tierId_1, ...args_1) => __awaiter(this, [spaceId_1, tierId_1, ...args_1], void 0, function* (spaceId, tierId, options = {}) {
|
|
10841
10838
|
// verify required parameter 'spaceId' is not null or undefined
|
|
10842
10839
|
assertParamExists('addBookingSpaceTier', 'spaceId', spaceId);
|
|
10843
10840
|
// verify required parameter 'tierId' is not null or undefined
|
|
10844
10841
|
assertParamExists('addBookingSpaceTier', 'tierId', tierId);
|
|
10845
|
-
const localVarPath = `/bookings/
|
|
10846
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10842
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers/{tierId}`
|
|
10847
10843
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
10848
10844
|
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
10849
10845
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10871,21 +10867,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
10871
10867
|
/**
|
|
10872
10868
|
* Cancels an existing booking for a space, setting its status to canceled and triggering the booking cancellation side effect; requires the update bookings permission and only succeeds if the booking is currently ready or needs info.
|
|
10873
10869
|
* @summary Cancel a booking
|
|
10874
|
-
* @param {string} placeId The place identifier
|
|
10875
10870
|
* @param {string} spaceId The space identifier
|
|
10876
10871
|
* @param {string} bookingId The booking identifier
|
|
10877
10872
|
* @param {*} [options] Override http request option.
|
|
10878
10873
|
* @throws {RequiredError}
|
|
10879
10874
|
*/
|
|
10880
|
-
cancelBooking: (
|
|
10881
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
10882
|
-
assertParamExists('cancelBooking', 'placeId', placeId);
|
|
10875
|
+
cancelBooking: (spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, ...args_1], void 0, function* (spaceId, bookingId, options = {}) {
|
|
10883
10876
|
// verify required parameter 'spaceId' is not null or undefined
|
|
10884
10877
|
assertParamExists('cancelBooking', 'spaceId', spaceId);
|
|
10885
10878
|
// verify required parameter 'bookingId' is not null or undefined
|
|
10886
10879
|
assertParamExists('cancelBooking', 'bookingId', bookingId);
|
|
10887
|
-
const localVarPath = `/bookings/
|
|
10888
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10880
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/cancel`
|
|
10889
10881
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
10890
10882
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
10891
10883
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10913,21 +10905,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
10913
10905
|
/**
|
|
10914
10906
|
* Marks an existing booking as checked in by setting its checked-in timestamp, requires the update bookings permission, and fails if the booking is not in a ready or needs-info status or is already checked in.
|
|
10915
10907
|
* @summary Check in a booking
|
|
10916
|
-
* @param {string} placeId The place identifier
|
|
10917
10908
|
* @param {string} spaceId The space identifier
|
|
10918
10909
|
* @param {string} bookingId The booking identifier
|
|
10919
10910
|
* @param {*} [options] Override http request option.
|
|
10920
10911
|
* @throws {RequiredError}
|
|
10921
10912
|
*/
|
|
10922
|
-
checkInBooking: (
|
|
10923
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
10924
|
-
assertParamExists('checkInBooking', 'placeId', placeId);
|
|
10913
|
+
checkInBooking: (spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, ...args_1], void 0, function* (spaceId, bookingId, options = {}) {
|
|
10925
10914
|
// verify required parameter 'spaceId' is not null or undefined
|
|
10926
10915
|
assertParamExists('checkInBooking', 'spaceId', spaceId);
|
|
10927
10916
|
// verify required parameter 'bookingId' is not null or undefined
|
|
10928
10917
|
assertParamExists('checkInBooking', 'bookingId', bookingId);
|
|
10929
|
-
const localVarPath = `/bookings/
|
|
10930
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10918
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/checkin`
|
|
10931
10919
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
10932
10920
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
10933
10921
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10955,21 +10943,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
10955
10943
|
/**
|
|
10956
10944
|
* Creates a new booking within the specified booking space on behalf of an account, using the provided booking details, and requires the create bookings permission.
|
|
10957
10945
|
* @summary Create a booking for a space
|
|
10958
|
-
* @param {string} placeId The place identifier
|
|
10959
10946
|
* @param {string} spaceId The space identifier
|
|
10960
10947
|
* @param {BookingCreateInputs} bookingCreateInputs
|
|
10961
10948
|
* @param {*} [options] Override http request option.
|
|
10962
10949
|
* @throws {RequiredError}
|
|
10963
10950
|
*/
|
|
10964
|
-
createBooking: (
|
|
10965
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
10966
|
-
assertParamExists('createBooking', 'placeId', placeId);
|
|
10951
|
+
createBooking: (spaceId_1, bookingCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingCreateInputs_1, ...args_1], void 0, function* (spaceId, bookingCreateInputs, options = {}) {
|
|
10967
10952
|
// verify required parameter 'spaceId' is not null or undefined
|
|
10968
10953
|
assertParamExists('createBooking', 'spaceId', spaceId);
|
|
10969
10954
|
// verify required parameter 'bookingCreateInputs' is not null or undefined
|
|
10970
10955
|
assertParamExists('createBooking', 'bookingCreateInputs', bookingCreateInputs);
|
|
10971
|
-
const localVarPath = `/bookings/
|
|
10972
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10956
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings`
|
|
10973
10957
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
10974
10958
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10975
10959
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -10996,23 +10980,19 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
10996
10980
|
};
|
|
10997
10981
|
}),
|
|
10998
10982
|
/**
|
|
10999
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
10983
|
+
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission. The API returns the deleted booking (used to invalidate place-scoped lists when place-owned).
|
|
11000
10984
|
* @summary Delete a booking
|
|
11001
|
-
* @param {string} placeId The place identifier
|
|
11002
10985
|
* @param {string} spaceId The space identifier
|
|
11003
10986
|
* @param {string} bookingId The booking identifier
|
|
11004
10987
|
* @param {*} [options] Override http request option.
|
|
11005
10988
|
* @throws {RequiredError}
|
|
11006
10989
|
*/
|
|
11007
|
-
deleteBooking: (
|
|
11008
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11009
|
-
assertParamExists('deleteBooking', 'placeId', placeId);
|
|
10990
|
+
deleteBooking: (spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, ...args_1], void 0, function* (spaceId, bookingId, options = {}) {
|
|
11010
10991
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11011
10992
|
assertParamExists('deleteBooking', 'spaceId', spaceId);
|
|
11012
10993
|
// verify required parameter 'bookingId' is not null or undefined
|
|
11013
10994
|
assertParamExists('deleteBooking', 'bookingId', bookingId);
|
|
11014
|
-
const localVarPath = `/bookings/
|
|
11015
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10995
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}`
|
|
11016
10996
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11017
10997
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11018
10998
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11382,20 +11362,16 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11382
11362
|
};
|
|
11383
11363
|
}),
|
|
11384
11364
|
/**
|
|
11385
|
-
* Returns a single bookable space
|
|
11365
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
11386
11366
|
* @summary Get a booking space
|
|
11387
|
-
* @param {string} placeId The place identifier
|
|
11388
11367
|
* @param {string} spaceId The space identifier
|
|
11389
11368
|
* @param {*} [options] Override http request option.
|
|
11390
11369
|
* @throws {RequiredError}
|
|
11391
11370
|
*/
|
|
11392
|
-
getBookingSpace: (
|
|
11393
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11394
|
-
assertParamExists('getBookingSpace', 'placeId', placeId);
|
|
11371
|
+
getBookingSpace: (spaceId_1, ...args_1) => __awaiter(this, [spaceId_1, ...args_1], void 0, function* (spaceId, options = {}) {
|
|
11395
11372
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11396
11373
|
assertParamExists('getBookingSpace', 'spaceId', spaceId);
|
|
11397
|
-
const localVarPath = `/bookings/
|
|
11398
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11374
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
11399
11375
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11400
11376
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11401
11377
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11422,18 +11398,14 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11422
11398
|
/**
|
|
11423
11399
|
* Returns the recurring weekly availability windows configured for a booking space, i.e. the days and times the space can be booked; requires the \"read\" permission on \"bookings\".
|
|
11424
11400
|
* @summary List a booking space\'s weekly availability rules
|
|
11425
|
-
* @param {string} placeId The place identifier
|
|
11426
11401
|
* @param {string} spaceId The space identifier
|
|
11427
11402
|
* @param {*} [options] Override http request option.
|
|
11428
11403
|
* @throws {RequiredError}
|
|
11429
11404
|
*/
|
|
11430
|
-
getBookingSpaceAvailabilities: (
|
|
11431
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11432
|
-
assertParamExists('getBookingSpaceAvailabilities', 'placeId', placeId);
|
|
11405
|
+
getBookingSpaceAvailabilities: (spaceId_1, ...args_1) => __awaiter(this, [spaceId_1, ...args_1], void 0, function* (spaceId, options = {}) {
|
|
11433
11406
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11434
11407
|
assertParamExists('getBookingSpaceAvailabilities', 'spaceId', spaceId);
|
|
11435
|
-
const localVarPath = `/bookings/
|
|
11436
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11408
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities`
|
|
11437
11409
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11438
11410
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11439
11411
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11458,23 +11430,19 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11458
11430
|
};
|
|
11459
11431
|
}),
|
|
11460
11432
|
/**
|
|
11461
|
-
* Returns a single
|
|
11462
|
-
* @summary Get a booking space
|
|
11463
|
-
* @param {string} placeId The place identifier
|
|
11433
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
11434
|
+
* @summary Get a booking space availability by id
|
|
11464
11435
|
* @param {string} spaceId The space identifier
|
|
11465
11436
|
* @param {string} availabilityId The availability identifier
|
|
11466
11437
|
* @param {*} [options] Override http request option.
|
|
11467
11438
|
* @throws {RequiredError}
|
|
11468
11439
|
*/
|
|
11469
|
-
getBookingSpaceAvailability: (
|
|
11470
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11471
|
-
assertParamExists('getBookingSpaceAvailability', 'placeId', placeId);
|
|
11440
|
+
getBookingSpaceAvailability: (spaceId_1, availabilityId_1, ...args_1) => __awaiter(this, [spaceId_1, availabilityId_1, ...args_1], void 0, function* (spaceId, availabilityId, options = {}) {
|
|
11472
11441
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11473
11442
|
assertParamExists('getBookingSpaceAvailability', 'spaceId', spaceId);
|
|
11474
11443
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
11475
11444
|
assertParamExists('getBookingSpaceAvailability', 'availabilityId', availabilityId);
|
|
11476
|
-
const localVarPath = `/bookings/
|
|
11477
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11445
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
11478
11446
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11479
11447
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
11480
11448
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11502,21 +11470,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11502
11470
|
/**
|
|
11503
11471
|
* Returns a single blackout record for a booking space by id, i.e. a date/time range during which the space cannot be booked; requires the \"read\" permission on \"bookings\".
|
|
11504
11472
|
* @summary Get a booking space blackout
|
|
11505
|
-
* @param {string} placeId The place identifier
|
|
11506
11473
|
* @param {string} spaceId The space identifier
|
|
11507
11474
|
* @param {string} blackoutId The blackout identifier
|
|
11508
11475
|
* @param {*} [options] Override http request option.
|
|
11509
11476
|
* @throws {RequiredError}
|
|
11510
11477
|
*/
|
|
11511
|
-
getBookingSpaceBlackout: (
|
|
11512
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11513
|
-
assertParamExists('getBookingSpaceBlackout', 'placeId', placeId);
|
|
11478
|
+
getBookingSpaceBlackout: (spaceId_1, blackoutId_1, ...args_1) => __awaiter(this, [spaceId_1, blackoutId_1, ...args_1], void 0, function* (spaceId, blackoutId, options = {}) {
|
|
11514
11479
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11515
11480
|
assertParamExists('getBookingSpaceBlackout', 'spaceId', spaceId);
|
|
11516
11481
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
11517
11482
|
assertParamExists('getBookingSpaceBlackout', 'blackoutId', blackoutId);
|
|
11518
|
-
const localVarPath = `/bookings/
|
|
11519
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11483
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
11520
11484
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11521
11485
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
11522
11486
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11544,7 +11508,6 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11544
11508
|
/**
|
|
11545
11509
|
* Returns a paginated list of blackout date/time ranges during which a booking space cannot be booked, filterable by past/upcoming via the \"past\" parameter and by search text; requires the \"read\" permission on \"bookings\".
|
|
11546
11510
|
* @summary List a booking space\'s blackouts
|
|
11547
|
-
* @param {string} placeId The place identifier
|
|
11548
11511
|
* @param {string} spaceId The space identifier
|
|
11549
11512
|
* @param {boolean} [past] Filter by past
|
|
11550
11513
|
* @param {number} [page] Page number
|
|
@@ -11554,13 +11517,10 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11554
11517
|
* @param {*} [options] Override http request option.
|
|
11555
11518
|
* @throws {RequiredError}
|
|
11556
11519
|
*/
|
|
11557
|
-
getBookingSpaceBlackouts: (
|
|
11558
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11559
|
-
assertParamExists('getBookingSpaceBlackouts', 'placeId', placeId);
|
|
11520
|
+
getBookingSpaceBlackouts: (spaceId_1, past_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [spaceId_1, past_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (spaceId, past, page, pageSize, orderBy, search, options = {}) {
|
|
11560
11521
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11561
11522
|
assertParamExists('getBookingSpaceBlackouts', 'spaceId', spaceId);
|
|
11562
|
-
const localVarPath = `/bookings/
|
|
11563
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11523
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts`
|
|
11564
11524
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11565
11525
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11566
11526
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11602,7 +11562,6 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11602
11562
|
/**
|
|
11603
11563
|
* Returns a paginated list of bookings made for a booking space, filterable by past/upcoming, purchase status, and search text against the account\'s name or email; requires the \"read\" permission on \"bookings\".
|
|
11604
11564
|
* @summary List a booking space\'s bookings
|
|
11605
|
-
* @param {string} placeId The place identifier
|
|
11606
11565
|
* @param {string} spaceId The space identifier
|
|
11607
11566
|
* @param {boolean} [past] Filter by past
|
|
11608
11567
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -11613,13 +11572,10 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11613
11572
|
* @param {*} [options] Override http request option.
|
|
11614
11573
|
* @throws {RequiredError}
|
|
11615
11574
|
*/
|
|
11616
|
-
getBookingSpaceBookings: (
|
|
11617
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11618
|
-
assertParamExists('getBookingSpaceBookings', 'placeId', placeId);
|
|
11575
|
+
getBookingSpaceBookings: (spaceId_1, past_1, status_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [spaceId_1, past_1, status_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (spaceId, past, status, page, pageSize, orderBy, search, options = {}) {
|
|
11619
11576
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11620
11577
|
assertParamExists('getBookingSpaceBookings', 'spaceId', spaceId);
|
|
11621
|
-
const localVarPath = `/bookings/
|
|
11622
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11578
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings`
|
|
11623
11579
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11624
11580
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11625
11581
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11664,7 +11620,6 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11664
11620
|
/**
|
|
11665
11621
|
* Returns a paginated list of payments made for bookings in a booking space, filterable by search text against the paying account\'s name or email; requires the \"read\" permission on \"bookings\" and \"payments\".
|
|
11666
11622
|
* @summary List a booking space\'s payments
|
|
11667
|
-
* @param {string} placeId The place identifier
|
|
11668
11623
|
* @param {string} spaceId The space identifier
|
|
11669
11624
|
* @param {boolean} [past] Filter by past
|
|
11670
11625
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -11675,13 +11630,10 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11675
11630
|
* @param {*} [options] Override http request option.
|
|
11676
11631
|
* @throws {RequiredError}
|
|
11677
11632
|
*/
|
|
11678
|
-
getBookingSpacePayments: (
|
|
11679
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11680
|
-
assertParamExists('getBookingSpacePayments', 'placeId', placeId);
|
|
11633
|
+
getBookingSpacePayments: (spaceId_1, past_1, status_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [spaceId_1, past_1, status_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (spaceId, past, status, page, pageSize, orderBy, search, options = {}) {
|
|
11681
11634
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11682
11635
|
assertParamExists('getBookingSpacePayments', 'spaceId', spaceId);
|
|
11683
|
-
const localVarPath = `/bookings/
|
|
11684
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11636
|
+
const localVarPath = `/bookings/spaces/{spaceId}/payments`
|
|
11685
11637
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11686
11638
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11687
11639
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11724,23 +11676,19 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11724
11676
|
};
|
|
11725
11677
|
}),
|
|
11726
11678
|
/**
|
|
11727
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
11679
|
+
* Returns the day-by-day list of bookable time slots for a booking space for the calendar month starting at firstDayOfMonth, requiring read permission on bookings.
|
|
11728
11680
|
* @summary Get a booking space\'s available slots
|
|
11729
|
-
* @param {string} placeId The place identifier
|
|
11730
11681
|
* @param {string} spaceId The space identifier
|
|
11731
11682
|
* @param {string} firstDayOfMonth Filter by firstDayOfMonth
|
|
11732
11683
|
* @param {*} [options] Override http request option.
|
|
11733
11684
|
* @throws {RequiredError}
|
|
11734
11685
|
*/
|
|
11735
|
-
getBookingSpaceSlots: (
|
|
11736
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11737
|
-
assertParamExists('getBookingSpaceSlots', 'placeId', placeId);
|
|
11686
|
+
getBookingSpaceSlots: (spaceId_1, firstDayOfMonth_1, ...args_1) => __awaiter(this, [spaceId_1, firstDayOfMonth_1, ...args_1], void 0, function* (spaceId, firstDayOfMonth, options = {}) {
|
|
11738
11687
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11739
11688
|
assertParamExists('getBookingSpaceSlots', 'spaceId', spaceId);
|
|
11740
11689
|
// verify required parameter 'firstDayOfMonth' is not null or undefined
|
|
11741
11690
|
assertParamExists('getBookingSpaceSlots', 'firstDayOfMonth', firstDayOfMonth);
|
|
11742
|
-
const localVarPath = `/bookings/
|
|
11743
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11691
|
+
const localVarPath = `/bookings/spaces/{spaceId}/slots`
|
|
11744
11692
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11745
11693
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11746
11694
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11768,9 +11716,8 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11768
11716
|
};
|
|
11769
11717
|
}),
|
|
11770
11718
|
/**
|
|
11771
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
11719
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
11772
11720
|
* @summary List a booking space\'s assigned tiers
|
|
11773
|
-
* @param {string} placeId The place identifier
|
|
11774
11721
|
* @param {string} spaceId The space identifier
|
|
11775
11722
|
* @param {number} [page] Page number
|
|
11776
11723
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -11779,13 +11726,10 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11779
11726
|
* @param {*} [options] Override http request option.
|
|
11780
11727
|
* @throws {RequiredError}
|
|
11781
11728
|
*/
|
|
11782
|
-
getBookingSpaceTiers: (
|
|
11783
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11784
|
-
assertParamExists('getBookingSpaceTiers', 'placeId', placeId);
|
|
11729
|
+
getBookingSpaceTiers: (spaceId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [spaceId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (spaceId, page, pageSize, orderBy, search, options = {}) {
|
|
11785
11730
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11786
11731
|
assertParamExists('getBookingSpaceTiers', 'spaceId', spaceId);
|
|
11787
|
-
const localVarPath = `/bookings/
|
|
11788
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11732
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers`
|
|
11789
11733
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11790
11734
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11791
11735
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11824,21 +11768,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11824
11768
|
/**
|
|
11825
11769
|
* Returns the localized name/description translation of a booking space for the given locale, or null if no translation exists, requiring read permission on bookings.
|
|
11826
11770
|
* @summary Get a booking space\'s translation for a locale
|
|
11827
|
-
* @param {string} placeId The place identifier
|
|
11828
11771
|
* @param {string} spaceId The space identifier
|
|
11829
11772
|
* @param {string} locale The locale identifier
|
|
11830
11773
|
* @param {*} [options] Override http request option.
|
|
11831
11774
|
* @throws {RequiredError}
|
|
11832
11775
|
*/
|
|
11833
|
-
getBookingSpaceTranslation: (
|
|
11834
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11835
|
-
assertParamExists('getBookingSpaceTranslation', 'placeId', placeId);
|
|
11776
|
+
getBookingSpaceTranslation: (spaceId_1, locale_1, ...args_1) => __awaiter(this, [spaceId_1, locale_1, ...args_1], void 0, function* (spaceId, locale, options = {}) {
|
|
11836
11777
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11837
11778
|
assertParamExists('getBookingSpaceTranslation', 'spaceId', spaceId);
|
|
11838
11779
|
// verify required parameter 'locale' is not null or undefined
|
|
11839
11780
|
assertParamExists('getBookingSpaceTranslation', 'locale', locale);
|
|
11840
|
-
const localVarPath = `/bookings/
|
|
11841
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11781
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
11842
11782
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11843
11783
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
11844
11784
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11864,9 +11804,8 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11864
11804
|
};
|
|
11865
11805
|
}),
|
|
11866
11806
|
/**
|
|
11867
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
11807
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
11868
11808
|
* @summary List a booking space\'s translations
|
|
11869
|
-
* @param {string} placeId The place identifier
|
|
11870
11809
|
* @param {string} spaceId The space identifier
|
|
11871
11810
|
* @param {number} [page] Page number
|
|
11872
11811
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -11875,13 +11814,10 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11875
11814
|
* @param {*} [options] Override http request option.
|
|
11876
11815
|
* @throws {RequiredError}
|
|
11877
11816
|
*/
|
|
11878
|
-
getBookingSpaceTranslations: (
|
|
11879
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11880
|
-
assertParamExists('getBookingSpaceTranslations', 'placeId', placeId);
|
|
11817
|
+
getBookingSpaceTranslations: (spaceId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [spaceId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (spaceId, page, pageSize, orderBy, search, options = {}) {
|
|
11881
11818
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11882
11819
|
assertParamExists('getBookingSpaceTranslations', 'spaceId', spaceId);
|
|
11883
|
-
const localVarPath = `/bookings/
|
|
11884
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11820
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations`
|
|
11885
11821
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11886
11822
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11887
11823
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11918,9 +11854,12 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11918
11854
|
};
|
|
11919
11855
|
}),
|
|
11920
11856
|
/**
|
|
11921
|
-
* Returns a paginated list of bookable spaces
|
|
11922
|
-
* @summary List
|
|
11923
|
-
* @param {string} placeId
|
|
11857
|
+
* Returns a paginated list of bookable spaces for the organization (no parent filter — includes spaces with no parents), or spaces linked to any combination of place, event, group, and/or account ids; supports search and ordering; requires the \"read\" permission on \"bookings\".
|
|
11858
|
+
* @summary List booking spaces
|
|
11859
|
+
* @param {string} [placeId] Filter by placeId
|
|
11860
|
+
* @param {string} [eventId] Filter by eventId
|
|
11861
|
+
* @param {string} [groupId] Filter by groupId
|
|
11862
|
+
* @param {string} [accountId] Filter by accountId
|
|
11924
11863
|
* @param {number} [page] Page number
|
|
11925
11864
|
* @param {number} [pageSize] Number of items per page
|
|
11926
11865
|
* @param {string} [orderBy] Field to order by
|
|
@@ -11928,11 +11867,8 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11928
11867
|
* @param {*} [options] Override http request option.
|
|
11929
11868
|
* @throws {RequiredError}
|
|
11930
11869
|
*/
|
|
11931
|
-
getBookingSpaces: (placeId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [placeId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (placeId, page, pageSize, orderBy, search, options = {}) {
|
|
11932
|
-
|
|
11933
|
-
assertParamExists('getBookingSpaces', 'placeId', placeId);
|
|
11934
|
-
const localVarPath = `/bookings/places/{placeId}/spaces`
|
|
11935
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)));
|
|
11870
|
+
getBookingSpaces: (placeId_1, eventId_1, groupId_1, accountId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [placeId_1, eventId_1, groupId_1, accountId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (placeId, eventId, groupId, accountId, page, pageSize, orderBy, search, options = {}) {
|
|
11871
|
+
const localVarPath = `/bookings/spaces`;
|
|
11936
11872
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11937
11873
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11938
11874
|
let baseOptions;
|
|
@@ -11946,6 +11882,18 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11946
11882
|
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
11947
11883
|
// authentication OrganizationId required
|
|
11948
11884
|
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
11885
|
+
if (placeId !== undefined) {
|
|
11886
|
+
localVarQueryParameter['placeId'] = placeId;
|
|
11887
|
+
}
|
|
11888
|
+
if (eventId !== undefined) {
|
|
11889
|
+
localVarQueryParameter['eventId'] = eventId;
|
|
11890
|
+
}
|
|
11891
|
+
if (groupId !== undefined) {
|
|
11892
|
+
localVarQueryParameter['groupId'] = groupId;
|
|
11893
|
+
}
|
|
11894
|
+
if (accountId !== undefined) {
|
|
11895
|
+
localVarQueryParameter['accountId'] = accountId;
|
|
11896
|
+
}
|
|
11949
11897
|
if (page !== undefined) {
|
|
11950
11898
|
localVarQueryParameter['page'] = page;
|
|
11951
11899
|
}
|
|
@@ -11970,21 +11918,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11970
11918
|
/**
|
|
11971
11919
|
* Revokes an account tier\'s access to a booking space by disconnecting it from the space\'s allowed tiers list, requiring the update bookings permission and read access to tiers.
|
|
11972
11920
|
* @summary Remove an account tier from a booking space
|
|
11973
|
-
* @param {string} placeId The place identifier
|
|
11974
11921
|
* @param {string} spaceId The space identifier
|
|
11975
11922
|
* @param {string} tierId The tier identifier
|
|
11976
11923
|
* @param {*} [options] Override http request option.
|
|
11977
11924
|
* @throws {RequiredError}
|
|
11978
11925
|
*/
|
|
11979
|
-
removeBookingSpaceTier: (
|
|
11980
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11981
|
-
assertParamExists('removeBookingSpaceTier', 'placeId', placeId);
|
|
11926
|
+
removeBookingSpaceTier: (spaceId_1, tierId_1, ...args_1) => __awaiter(this, [spaceId_1, tierId_1, ...args_1], void 0, function* (spaceId, tierId, options = {}) {
|
|
11982
11927
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11983
11928
|
assertParamExists('removeBookingSpaceTier', 'spaceId', spaceId);
|
|
11984
11929
|
// verify required parameter 'tierId' is not null or undefined
|
|
11985
11930
|
assertParamExists('removeBookingSpaceTier', 'tierId', tierId);
|
|
11986
|
-
const localVarPath = `/bookings/
|
|
11987
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11931
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers/{tierId}`
|
|
11988
11932
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11989
11933
|
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
11990
11934
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -12012,21 +11956,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
12012
11956
|
/**
|
|
12013
11957
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
12014
11958
|
* @summary Undo a booking check-in
|
|
12015
|
-
* @param {string} placeId The place identifier
|
|
12016
11959
|
* @param {string} spaceId The space identifier
|
|
12017
11960
|
* @param {string} bookingId The booking identifier
|
|
12018
11961
|
* @param {*} [options] Override http request option.
|
|
12019
11962
|
* @throws {RequiredError}
|
|
12020
11963
|
*/
|
|
12021
|
-
undoCheckInBooking: (
|
|
12022
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
12023
|
-
assertParamExists('undoCheckInBooking', 'placeId', placeId);
|
|
11964
|
+
undoCheckInBooking: (spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, ...args_1], void 0, function* (spaceId, bookingId, options = {}) {
|
|
12024
11965
|
// verify required parameter 'spaceId' is not null or undefined
|
|
12025
11966
|
assertParamExists('undoCheckInBooking', 'spaceId', spaceId);
|
|
12026
11967
|
// verify required parameter 'bookingId' is not null or undefined
|
|
12027
11968
|
assertParamExists('undoCheckInBooking', 'bookingId', bookingId);
|
|
12028
|
-
const localVarPath = `/bookings/
|
|
12029
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11969
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/checkin/undo`
|
|
12030
11970
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
12031
11971
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12032
11972
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -12052,26 +11992,22 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
12052
11992
|
};
|
|
12053
11993
|
}),
|
|
12054
11994
|
/**
|
|
12055
|
-
* Updates an existing booking for a bookable space
|
|
11995
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
12056
11996
|
* @summary Update a booking
|
|
12057
|
-
* @param {string} placeId The place identifier
|
|
12058
11997
|
* @param {string} spaceId The space identifier
|
|
12059
11998
|
* @param {string} bookingId The booking identifier
|
|
12060
11999
|
* @param {BookingUpdateInputs} bookingUpdateInputs
|
|
12061
12000
|
* @param {*} [options] Override http request option.
|
|
12062
12001
|
* @throws {RequiredError}
|
|
12063
12002
|
*/
|
|
12064
|
-
updateBooking: (
|
|
12065
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
12066
|
-
assertParamExists('updateBooking', 'placeId', placeId);
|
|
12003
|
+
updateBooking: (spaceId_1, bookingId_1, bookingUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, bookingUpdateInputs_1, ...args_1], void 0, function* (spaceId, bookingId, bookingUpdateInputs, options = {}) {
|
|
12067
12004
|
// verify required parameter 'spaceId' is not null or undefined
|
|
12068
12005
|
assertParamExists('updateBooking', 'spaceId', spaceId);
|
|
12069
12006
|
// verify required parameter 'bookingId' is not null or undefined
|
|
12070
12007
|
assertParamExists('updateBooking', 'bookingId', bookingId);
|
|
12071
12008
|
// verify required parameter 'bookingUpdateInputs' is not null or undefined
|
|
12072
12009
|
assertParamExists('updateBooking', 'bookingUpdateInputs', bookingUpdateInputs);
|
|
12073
|
-
const localVarPath = `/bookings/
|
|
12074
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
12010
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}`
|
|
12075
12011
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
12076
12012
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12077
12013
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -12109,16 +12045,15 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12109
12045
|
/**
|
|
12110
12046
|
* Grants an account tier access to a booking space by adding it to the space\'s allowed tiers list, requiring the update bookings permission and read access to tiers.
|
|
12111
12047
|
* @summary Add an account tier to a booking space
|
|
12112
|
-
* @param {string} placeId The place identifier
|
|
12113
12048
|
* @param {string} spaceId The space identifier
|
|
12114
12049
|
* @param {string} tierId The tier identifier
|
|
12115
12050
|
* @param {*} [options] Override http request option.
|
|
12116
12051
|
* @throws {RequiredError}
|
|
12117
12052
|
*/
|
|
12118
|
-
addBookingSpaceTier(
|
|
12053
|
+
addBookingSpaceTier(spaceId, tierId, options) {
|
|
12119
12054
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12120
12055
|
var _a, _b, _c;
|
|
12121
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addBookingSpaceTier(
|
|
12056
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addBookingSpaceTier(spaceId, tierId, options);
|
|
12122
12057
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12123
12058
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.addBookingSpaceTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12124
12059
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12127,16 +12062,15 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12127
12062
|
/**
|
|
12128
12063
|
* Cancels an existing booking for a space, setting its status to canceled and triggering the booking cancellation side effect; requires the update bookings permission and only succeeds if the booking is currently ready or needs info.
|
|
12129
12064
|
* @summary Cancel a booking
|
|
12130
|
-
* @param {string} placeId The place identifier
|
|
12131
12065
|
* @param {string} spaceId The space identifier
|
|
12132
12066
|
* @param {string} bookingId The booking identifier
|
|
12133
12067
|
* @param {*} [options] Override http request option.
|
|
12134
12068
|
* @throws {RequiredError}
|
|
12135
12069
|
*/
|
|
12136
|
-
cancelBooking(
|
|
12070
|
+
cancelBooking(spaceId, bookingId, options) {
|
|
12137
12071
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12138
12072
|
var _a, _b, _c;
|
|
12139
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(
|
|
12073
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(spaceId, bookingId, options);
|
|
12140
12074
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12141
12075
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.cancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12142
12076
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12145,16 +12079,15 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12145
12079
|
/**
|
|
12146
12080
|
* Marks an existing booking as checked in by setting its checked-in timestamp, requires the update bookings permission, and fails if the booking is not in a ready or needs-info status or is already checked in.
|
|
12147
12081
|
* @summary Check in a booking
|
|
12148
|
-
* @param {string} placeId The place identifier
|
|
12149
12082
|
* @param {string} spaceId The space identifier
|
|
12150
12083
|
* @param {string} bookingId The booking identifier
|
|
12151
12084
|
* @param {*} [options] Override http request option.
|
|
12152
12085
|
* @throws {RequiredError}
|
|
12153
12086
|
*/
|
|
12154
|
-
checkInBooking(
|
|
12087
|
+
checkInBooking(spaceId, bookingId, options) {
|
|
12155
12088
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12156
12089
|
var _a, _b, _c;
|
|
12157
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInBooking(
|
|
12090
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInBooking(spaceId, bookingId, options);
|
|
12158
12091
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12159
12092
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.checkInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12160
12093
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12163,34 +12096,32 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12163
12096
|
/**
|
|
12164
12097
|
* Creates a new booking within the specified booking space on behalf of an account, using the provided booking details, and requires the create bookings permission.
|
|
12165
12098
|
* @summary Create a booking for a space
|
|
12166
|
-
* @param {string} placeId The place identifier
|
|
12167
12099
|
* @param {string} spaceId The space identifier
|
|
12168
12100
|
* @param {BookingCreateInputs} bookingCreateInputs
|
|
12169
12101
|
* @param {*} [options] Override http request option.
|
|
12170
12102
|
* @throws {RequiredError}
|
|
12171
12103
|
*/
|
|
12172
|
-
createBooking(
|
|
12104
|
+
createBooking(spaceId, bookingCreateInputs, options) {
|
|
12173
12105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12174
12106
|
var _a, _b, _c;
|
|
12175
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(
|
|
12107
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(spaceId, bookingCreateInputs, options);
|
|
12176
12108
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12177
12109
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.createBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12178
12110
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12179
12111
|
});
|
|
12180
12112
|
},
|
|
12181
12113
|
/**
|
|
12182
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
12114
|
+
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission. The API returns the deleted booking (used to invalidate place-scoped lists when place-owned).
|
|
12183
12115
|
* @summary Delete a booking
|
|
12184
|
-
* @param {string} placeId The place identifier
|
|
12185
12116
|
* @param {string} spaceId The space identifier
|
|
12186
12117
|
* @param {string} bookingId The booking identifier
|
|
12187
12118
|
* @param {*} [options] Override http request option.
|
|
12188
12119
|
* @throws {RequiredError}
|
|
12189
12120
|
*/
|
|
12190
|
-
deleteBooking(
|
|
12121
|
+
deleteBooking(spaceId, bookingId, options) {
|
|
12191
12122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12192
12123
|
var _a, _b, _c;
|
|
12193
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBooking(
|
|
12124
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBooking(spaceId, bookingId, options);
|
|
12194
12125
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12195
12126
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.deleteBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12196
12127
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12343,17 +12274,16 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12343
12274
|
});
|
|
12344
12275
|
},
|
|
12345
12276
|
/**
|
|
12346
|
-
* Returns a single bookable space
|
|
12277
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
12347
12278
|
* @summary Get a booking space
|
|
12348
|
-
* @param {string} placeId The place identifier
|
|
12349
12279
|
* @param {string} spaceId The space identifier
|
|
12350
12280
|
* @param {*} [options] Override http request option.
|
|
12351
12281
|
* @throws {RequiredError}
|
|
12352
12282
|
*/
|
|
12353
|
-
getBookingSpace(
|
|
12283
|
+
getBookingSpace(spaceId, options) {
|
|
12354
12284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12355
12285
|
var _a, _b, _c;
|
|
12356
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpace(
|
|
12286
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpace(spaceId, options);
|
|
12357
12287
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12358
12288
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12359
12289
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12362,33 +12292,31 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12362
12292
|
/**
|
|
12363
12293
|
* Returns the recurring weekly availability windows configured for a booking space, i.e. the days and times the space can be booked; requires the \"read\" permission on \"bookings\".
|
|
12364
12294
|
* @summary List a booking space\'s weekly availability rules
|
|
12365
|
-
* @param {string} placeId The place identifier
|
|
12366
12295
|
* @param {string} spaceId The space identifier
|
|
12367
12296
|
* @param {*} [options] Override http request option.
|
|
12368
12297
|
* @throws {RequiredError}
|
|
12369
12298
|
*/
|
|
12370
|
-
getBookingSpaceAvailabilities(
|
|
12299
|
+
getBookingSpaceAvailabilities(spaceId, options) {
|
|
12371
12300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12372
12301
|
var _a, _b, _c;
|
|
12373
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceAvailabilities(
|
|
12302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceAvailabilities(spaceId, options);
|
|
12374
12303
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12375
12304
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceAvailabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12376
12305
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12377
12306
|
});
|
|
12378
12307
|
},
|
|
12379
12308
|
/**
|
|
12380
|
-
* Returns a single
|
|
12381
|
-
* @summary Get a booking space
|
|
12382
|
-
* @param {string} placeId The place identifier
|
|
12309
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
12310
|
+
* @summary Get a booking space availability by id
|
|
12383
12311
|
* @param {string} spaceId The space identifier
|
|
12384
12312
|
* @param {string} availabilityId The availability identifier
|
|
12385
12313
|
* @param {*} [options] Override http request option.
|
|
12386
12314
|
* @throws {RequiredError}
|
|
12387
12315
|
*/
|
|
12388
|
-
getBookingSpaceAvailability(
|
|
12316
|
+
getBookingSpaceAvailability(spaceId, availabilityId, options) {
|
|
12389
12317
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12390
12318
|
var _a, _b, _c;
|
|
12391
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceAvailability(
|
|
12319
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceAvailability(spaceId, availabilityId, options);
|
|
12392
12320
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12393
12321
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12394
12322
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12397,16 +12325,15 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12397
12325
|
/**
|
|
12398
12326
|
* Returns a single blackout record for a booking space by id, i.e. a date/time range during which the space cannot be booked; requires the \"read\" permission on \"bookings\".
|
|
12399
12327
|
* @summary Get a booking space blackout
|
|
12400
|
-
* @param {string} placeId The place identifier
|
|
12401
12328
|
* @param {string} spaceId The space identifier
|
|
12402
12329
|
* @param {string} blackoutId The blackout identifier
|
|
12403
12330
|
* @param {*} [options] Override http request option.
|
|
12404
12331
|
* @throws {RequiredError}
|
|
12405
12332
|
*/
|
|
12406
|
-
getBookingSpaceBlackout(
|
|
12333
|
+
getBookingSpaceBlackout(spaceId, blackoutId, options) {
|
|
12407
12334
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12408
12335
|
var _a, _b, _c;
|
|
12409
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBlackout(
|
|
12336
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBlackout(spaceId, blackoutId, options);
|
|
12410
12337
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12411
12338
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceBlackout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12412
12339
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12415,7 +12342,6 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12415
12342
|
/**
|
|
12416
12343
|
* Returns a paginated list of blackout date/time ranges during which a booking space cannot be booked, filterable by past/upcoming via the \"past\" parameter and by search text; requires the \"read\" permission on \"bookings\".
|
|
12417
12344
|
* @summary List a booking space\'s blackouts
|
|
12418
|
-
* @param {string} placeId The place identifier
|
|
12419
12345
|
* @param {string} spaceId The space identifier
|
|
12420
12346
|
* @param {boolean} [past] Filter by past
|
|
12421
12347
|
* @param {number} [page] Page number
|
|
@@ -12425,10 +12351,10 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12425
12351
|
* @param {*} [options] Override http request option.
|
|
12426
12352
|
* @throws {RequiredError}
|
|
12427
12353
|
*/
|
|
12428
|
-
getBookingSpaceBlackouts(
|
|
12354
|
+
getBookingSpaceBlackouts(spaceId, past, page, pageSize, orderBy, search, options) {
|
|
12429
12355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12430
12356
|
var _a, _b, _c;
|
|
12431
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBlackouts(
|
|
12357
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBlackouts(spaceId, past, page, pageSize, orderBy, search, options);
|
|
12432
12358
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12433
12359
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceBlackouts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12434
12360
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12437,7 +12363,6 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12437
12363
|
/**
|
|
12438
12364
|
* Returns a paginated list of bookings made for a booking space, filterable by past/upcoming, purchase status, and search text against the account\'s name or email; requires the \"read\" permission on \"bookings\".
|
|
12439
12365
|
* @summary List a booking space\'s bookings
|
|
12440
|
-
* @param {string} placeId The place identifier
|
|
12441
12366
|
* @param {string} spaceId The space identifier
|
|
12442
12367
|
* @param {boolean} [past] Filter by past
|
|
12443
12368
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -12448,10 +12373,10 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12448
12373
|
* @param {*} [options] Override http request option.
|
|
12449
12374
|
* @throws {RequiredError}
|
|
12450
12375
|
*/
|
|
12451
|
-
getBookingSpaceBookings(
|
|
12376
|
+
getBookingSpaceBookings(spaceId, past, status, page, pageSize, orderBy, search, options) {
|
|
12452
12377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12453
12378
|
var _a, _b, _c;
|
|
12454
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBookings(
|
|
12379
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBookings(spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
12455
12380
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12456
12381
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12457
12382
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12460,7 +12385,6 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12460
12385
|
/**
|
|
12461
12386
|
* Returns a paginated list of payments made for bookings in a booking space, filterable by search text against the paying account\'s name or email; requires the \"read\" permission on \"bookings\" and \"payments\".
|
|
12462
12387
|
* @summary List a booking space\'s payments
|
|
12463
|
-
* @param {string} placeId The place identifier
|
|
12464
12388
|
* @param {string} spaceId The space identifier
|
|
12465
12389
|
* @param {boolean} [past] Filter by past
|
|
12466
12390
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -12471,37 +12395,35 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12471
12395
|
* @param {*} [options] Override http request option.
|
|
12472
12396
|
* @throws {RequiredError}
|
|
12473
12397
|
*/
|
|
12474
|
-
getBookingSpacePayments(
|
|
12398
|
+
getBookingSpacePayments(spaceId, past, status, page, pageSize, orderBy, search, options) {
|
|
12475
12399
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12476
12400
|
var _a, _b, _c;
|
|
12477
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpacePayments(
|
|
12401
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpacePayments(spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
12478
12402
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12479
12403
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpacePayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12480
12404
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12481
12405
|
});
|
|
12482
12406
|
},
|
|
12483
12407
|
/**
|
|
12484
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
12408
|
+
* Returns the day-by-day list of bookable time slots for a booking space for the calendar month starting at firstDayOfMonth, requiring read permission on bookings.
|
|
12485
12409
|
* @summary Get a booking space\'s available slots
|
|
12486
|
-
* @param {string} placeId The place identifier
|
|
12487
12410
|
* @param {string} spaceId The space identifier
|
|
12488
12411
|
* @param {string} firstDayOfMonth Filter by firstDayOfMonth
|
|
12489
12412
|
* @param {*} [options] Override http request option.
|
|
12490
12413
|
* @throws {RequiredError}
|
|
12491
12414
|
*/
|
|
12492
|
-
getBookingSpaceSlots(
|
|
12415
|
+
getBookingSpaceSlots(spaceId, firstDayOfMonth, options) {
|
|
12493
12416
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12494
12417
|
var _a, _b, _c;
|
|
12495
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceSlots(
|
|
12418
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceSlots(spaceId, firstDayOfMonth, options);
|
|
12496
12419
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12497
12420
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12498
12421
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12499
12422
|
});
|
|
12500
12423
|
},
|
|
12501
12424
|
/**
|
|
12502
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
12425
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
12503
12426
|
* @summary List a booking space\'s assigned tiers
|
|
12504
|
-
* @param {string} placeId The place identifier
|
|
12505
12427
|
* @param {string} spaceId The space identifier
|
|
12506
12428
|
* @param {number} [page] Page number
|
|
12507
12429
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -12510,10 +12432,10 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12510
12432
|
* @param {*} [options] Override http request option.
|
|
12511
12433
|
* @throws {RequiredError}
|
|
12512
12434
|
*/
|
|
12513
|
-
getBookingSpaceTiers(
|
|
12435
|
+
getBookingSpaceTiers(spaceId, page, pageSize, orderBy, search, options) {
|
|
12514
12436
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12515
12437
|
var _a, _b, _c;
|
|
12516
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTiers(
|
|
12438
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTiers(spaceId, page, pageSize, orderBy, search, options);
|
|
12517
12439
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12518
12440
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceTiers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12519
12441
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12522,25 +12444,23 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12522
12444
|
/**
|
|
12523
12445
|
* Returns the localized name/description translation of a booking space for the given locale, or null if no translation exists, requiring read permission on bookings.
|
|
12524
12446
|
* @summary Get a booking space\'s translation for a locale
|
|
12525
|
-
* @param {string} placeId The place identifier
|
|
12526
12447
|
* @param {string} spaceId The space identifier
|
|
12527
12448
|
* @param {string} locale The locale identifier
|
|
12528
12449
|
* @param {*} [options] Override http request option.
|
|
12529
12450
|
* @throws {RequiredError}
|
|
12530
12451
|
*/
|
|
12531
|
-
getBookingSpaceTranslation(
|
|
12452
|
+
getBookingSpaceTranslation(spaceId, locale, options) {
|
|
12532
12453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12533
12454
|
var _a, _b, _c;
|
|
12534
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTranslation(
|
|
12455
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTranslation(spaceId, locale, options);
|
|
12535
12456
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12536
12457
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12537
12458
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12538
12459
|
});
|
|
12539
12460
|
},
|
|
12540
12461
|
/**
|
|
12541
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
12462
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
12542
12463
|
* @summary List a booking space\'s translations
|
|
12543
|
-
* @param {string} placeId The place identifier
|
|
12544
12464
|
* @param {string} spaceId The space identifier
|
|
12545
12465
|
* @param {number} [page] Page number
|
|
12546
12466
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -12549,19 +12469,22 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12549
12469
|
* @param {*} [options] Override http request option.
|
|
12550
12470
|
* @throws {RequiredError}
|
|
12551
12471
|
*/
|
|
12552
|
-
getBookingSpaceTranslations(
|
|
12472
|
+
getBookingSpaceTranslations(spaceId, page, pageSize, orderBy, search, options) {
|
|
12553
12473
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12554
12474
|
var _a, _b, _c;
|
|
12555
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTranslations(
|
|
12475
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTranslations(spaceId, page, pageSize, orderBy, search, options);
|
|
12556
12476
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12557
12477
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaceTranslations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12558
12478
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12559
12479
|
});
|
|
12560
12480
|
},
|
|
12561
12481
|
/**
|
|
12562
|
-
* Returns a paginated list of bookable spaces
|
|
12563
|
-
* @summary List
|
|
12564
|
-
* @param {string} placeId
|
|
12482
|
+
* Returns a paginated list of bookable spaces for the organization (no parent filter — includes spaces with no parents), or spaces linked to any combination of place, event, group, and/or account ids; supports search and ordering; requires the \"read\" permission on \"bookings\".
|
|
12483
|
+
* @summary List booking spaces
|
|
12484
|
+
* @param {string} [placeId] Filter by placeId
|
|
12485
|
+
* @param {string} [eventId] Filter by eventId
|
|
12486
|
+
* @param {string} [groupId] Filter by groupId
|
|
12487
|
+
* @param {string} [accountId] Filter by accountId
|
|
12565
12488
|
* @param {number} [page] Page number
|
|
12566
12489
|
* @param {number} [pageSize] Number of items per page
|
|
12567
12490
|
* @param {string} [orderBy] Field to order by
|
|
@@ -12569,10 +12492,10 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12569
12492
|
* @param {*} [options] Override http request option.
|
|
12570
12493
|
* @throws {RequiredError}
|
|
12571
12494
|
*/
|
|
12572
|
-
getBookingSpaces(placeId, page, pageSize, orderBy, search, options) {
|
|
12495
|
+
getBookingSpaces(placeId, eventId, groupId, accountId, page, pageSize, orderBy, search, options) {
|
|
12573
12496
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12574
12497
|
var _a, _b, _c;
|
|
12575
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaces(placeId, page, pageSize, orderBy, search, options);
|
|
12498
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaces(placeId, eventId, groupId, accountId, page, pageSize, orderBy, search, options);
|
|
12576
12499
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12577
12500
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingSpaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12578
12501
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12581,16 +12504,15 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12581
12504
|
/**
|
|
12582
12505
|
* Revokes an account tier\'s access to a booking space by disconnecting it from the space\'s allowed tiers list, requiring the update bookings permission and read access to tiers.
|
|
12583
12506
|
* @summary Remove an account tier from a booking space
|
|
12584
|
-
* @param {string} placeId The place identifier
|
|
12585
12507
|
* @param {string} spaceId The space identifier
|
|
12586
12508
|
* @param {string} tierId The tier identifier
|
|
12587
12509
|
* @param {*} [options] Override http request option.
|
|
12588
12510
|
* @throws {RequiredError}
|
|
12589
12511
|
*/
|
|
12590
|
-
removeBookingSpaceTier(
|
|
12512
|
+
removeBookingSpaceTier(spaceId, tierId, options) {
|
|
12591
12513
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12592
12514
|
var _a, _b, _c;
|
|
12593
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeBookingSpaceTier(
|
|
12515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeBookingSpaceTier(spaceId, tierId, options);
|
|
12594
12516
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12595
12517
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.removeBookingSpaceTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12596
12518
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12599,35 +12521,33 @@ export const BookingsApiFp = function (configuration) {
|
|
|
12599
12521
|
/**
|
|
12600
12522
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
12601
12523
|
* @summary Undo a booking check-in
|
|
12602
|
-
* @param {string} placeId The place identifier
|
|
12603
12524
|
* @param {string} spaceId The space identifier
|
|
12604
12525
|
* @param {string} bookingId The booking identifier
|
|
12605
12526
|
* @param {*} [options] Override http request option.
|
|
12606
12527
|
* @throws {RequiredError}
|
|
12607
12528
|
*/
|
|
12608
|
-
undoCheckInBooking(
|
|
12529
|
+
undoCheckInBooking(spaceId, bookingId, options) {
|
|
12609
12530
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12610
12531
|
var _a, _b, _c;
|
|
12611
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.undoCheckInBooking(
|
|
12532
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.undoCheckInBooking(spaceId, bookingId, options);
|
|
12612
12533
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12613
12534
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.undoCheckInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12614
12535
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12615
12536
|
});
|
|
12616
12537
|
},
|
|
12617
12538
|
/**
|
|
12618
|
-
* Updates an existing booking for a bookable space
|
|
12539
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
12619
12540
|
* @summary Update a booking
|
|
12620
|
-
* @param {string} placeId The place identifier
|
|
12621
12541
|
* @param {string} spaceId The space identifier
|
|
12622
12542
|
* @param {string} bookingId The booking identifier
|
|
12623
12543
|
* @param {BookingUpdateInputs} bookingUpdateInputs
|
|
12624
12544
|
* @param {*} [options] Override http request option.
|
|
12625
12545
|
* @throws {RequiredError}
|
|
12626
12546
|
*/
|
|
12627
|
-
updateBooking(
|
|
12547
|
+
updateBooking(spaceId, bookingId, bookingUpdateInputs, options) {
|
|
12628
12548
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12629
12549
|
var _a, _b, _c;
|
|
12630
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBooking(
|
|
12550
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBooking(spaceId, bookingId, bookingUpdateInputs, options);
|
|
12631
12551
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12632
12552
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.updateBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12633
12553
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12649,7 +12569,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12649
12569
|
* @throws {RequiredError}
|
|
12650
12570
|
*/
|
|
12651
12571
|
addBookingSpaceTier(requestParameters, options) {
|
|
12652
|
-
return localVarFp.addBookingSpaceTier(requestParameters.
|
|
12572
|
+
return localVarFp.addBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
12653
12573
|
},
|
|
12654
12574
|
/**
|
|
12655
12575
|
* Cancels an existing booking for a space, setting its status to canceled and triggering the booking cancellation side effect; requires the update bookings permission and only succeeds if the booking is currently ready or needs info.
|
|
@@ -12659,7 +12579,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12659
12579
|
* @throws {RequiredError}
|
|
12660
12580
|
*/
|
|
12661
12581
|
cancelBooking(requestParameters, options) {
|
|
12662
|
-
return localVarFp.cancelBooking(requestParameters.
|
|
12582
|
+
return localVarFp.cancelBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12663
12583
|
},
|
|
12664
12584
|
/**
|
|
12665
12585
|
* Marks an existing booking as checked in by setting its checked-in timestamp, requires the update bookings permission, and fails if the booking is not in a ready or needs-info status or is already checked in.
|
|
@@ -12669,7 +12589,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12669
12589
|
* @throws {RequiredError}
|
|
12670
12590
|
*/
|
|
12671
12591
|
checkInBooking(requestParameters, options) {
|
|
12672
|
-
return localVarFp.checkInBooking(requestParameters.
|
|
12592
|
+
return localVarFp.checkInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12673
12593
|
},
|
|
12674
12594
|
/**
|
|
12675
12595
|
* Creates a new booking within the specified booking space on behalf of an account, using the provided booking details, and requires the create bookings permission.
|
|
@@ -12679,17 +12599,17 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12679
12599
|
* @throws {RequiredError}
|
|
12680
12600
|
*/
|
|
12681
12601
|
createBooking(requestParameters, options) {
|
|
12682
|
-
return localVarFp.createBooking(requestParameters.
|
|
12602
|
+
return localVarFp.createBooking(requestParameters.spaceId, requestParameters.bookingCreateInputs, options).then((request) => request(axios, basePath));
|
|
12683
12603
|
},
|
|
12684
12604
|
/**
|
|
12685
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
12605
|
+
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission. The API returns the deleted booking (used to invalidate place-scoped lists when place-owned).
|
|
12686
12606
|
* @summary Delete a booking
|
|
12687
12607
|
* @param {BookingsApiDeleteBookingRequest} requestParameters Request parameters.
|
|
12688
12608
|
* @param {*} [options] Override http request option.
|
|
12689
12609
|
* @throws {RequiredError}
|
|
12690
12610
|
*/
|
|
12691
12611
|
deleteBooking(requestParameters, options) {
|
|
12692
|
-
return localVarFp.deleteBooking(requestParameters.
|
|
12612
|
+
return localVarFp.deleteBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12693
12613
|
},
|
|
12694
12614
|
/**
|
|
12695
12615
|
* Retrieves the full details of a single booking by ID, including the place, space, and time slot it belongs to; requires the \"read\" permission on \"bookings\".
|
|
@@ -12772,14 +12692,14 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12772
12692
|
return localVarFp.getBookingResponses(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12773
12693
|
},
|
|
12774
12694
|
/**
|
|
12775
|
-
* Returns a single bookable space
|
|
12695
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
12776
12696
|
* @summary Get a booking space
|
|
12777
12697
|
* @param {BookingsApiGetBookingSpaceRequest} requestParameters Request parameters.
|
|
12778
12698
|
* @param {*} [options] Override http request option.
|
|
12779
12699
|
* @throws {RequiredError}
|
|
12780
12700
|
*/
|
|
12781
12701
|
getBookingSpace(requestParameters, options) {
|
|
12782
|
-
return localVarFp.getBookingSpace(requestParameters.
|
|
12702
|
+
return localVarFp.getBookingSpace(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
12783
12703
|
},
|
|
12784
12704
|
/**
|
|
12785
12705
|
* Returns the recurring weekly availability windows configured for a booking space, i.e. the days and times the space can be booked; requires the \"read\" permission on \"bookings\".
|
|
@@ -12789,17 +12709,17 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12789
12709
|
* @throws {RequiredError}
|
|
12790
12710
|
*/
|
|
12791
12711
|
getBookingSpaceAvailabilities(requestParameters, options) {
|
|
12792
|
-
return localVarFp.getBookingSpaceAvailabilities(requestParameters.
|
|
12712
|
+
return localVarFp.getBookingSpaceAvailabilities(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
12793
12713
|
},
|
|
12794
12714
|
/**
|
|
12795
|
-
* Returns a single
|
|
12796
|
-
* @summary Get a booking space
|
|
12715
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
12716
|
+
* @summary Get a booking space availability by id
|
|
12797
12717
|
* @param {BookingsApiGetBookingSpaceAvailabilityRequest} requestParameters Request parameters.
|
|
12798
12718
|
* @param {*} [options] Override http request option.
|
|
12799
12719
|
* @throws {RequiredError}
|
|
12800
12720
|
*/
|
|
12801
12721
|
getBookingSpaceAvailability(requestParameters, options) {
|
|
12802
|
-
return localVarFp.getBookingSpaceAvailability(requestParameters.
|
|
12722
|
+
return localVarFp.getBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(axios, basePath));
|
|
12803
12723
|
},
|
|
12804
12724
|
/**
|
|
12805
12725
|
* Returns a single blackout record for a booking space by id, i.e. a date/time range during which the space cannot be booked; requires the \"read\" permission on \"bookings\".
|
|
@@ -12809,7 +12729,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12809
12729
|
* @throws {RequiredError}
|
|
12810
12730
|
*/
|
|
12811
12731
|
getBookingSpaceBlackout(requestParameters, options) {
|
|
12812
|
-
return localVarFp.getBookingSpaceBlackout(requestParameters.
|
|
12732
|
+
return localVarFp.getBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(axios, basePath));
|
|
12813
12733
|
},
|
|
12814
12734
|
/**
|
|
12815
12735
|
* Returns a paginated list of blackout date/time ranges during which a booking space cannot be booked, filterable by past/upcoming via the \"past\" parameter and by search text; requires the \"read\" permission on \"bookings\".
|
|
@@ -12819,7 +12739,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12819
12739
|
* @throws {RequiredError}
|
|
12820
12740
|
*/
|
|
12821
12741
|
getBookingSpaceBlackouts(requestParameters, options) {
|
|
12822
|
-
return localVarFp.getBookingSpaceBlackouts(requestParameters.
|
|
12742
|
+
return localVarFp.getBookingSpaceBlackouts(requestParameters.spaceId, requestParameters.past, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12823
12743
|
},
|
|
12824
12744
|
/**
|
|
12825
12745
|
* Returns a paginated list of bookings made for a booking space, filterable by past/upcoming, purchase status, and search text against the account\'s name or email; requires the \"read\" permission on \"bookings\".
|
|
@@ -12829,7 +12749,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12829
12749
|
* @throws {RequiredError}
|
|
12830
12750
|
*/
|
|
12831
12751
|
getBookingSpaceBookings(requestParameters, options) {
|
|
12832
|
-
return localVarFp.getBookingSpaceBookings(requestParameters.
|
|
12752
|
+
return localVarFp.getBookingSpaceBookings(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12833
12753
|
},
|
|
12834
12754
|
/**
|
|
12835
12755
|
* Returns a paginated list of payments made for bookings in a booking space, filterable by search text against the paying account\'s name or email; requires the \"read\" permission on \"bookings\" and \"payments\".
|
|
@@ -12839,27 +12759,27 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12839
12759
|
* @throws {RequiredError}
|
|
12840
12760
|
*/
|
|
12841
12761
|
getBookingSpacePayments(requestParameters, options) {
|
|
12842
|
-
return localVarFp.getBookingSpacePayments(requestParameters.
|
|
12762
|
+
return localVarFp.getBookingSpacePayments(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12843
12763
|
},
|
|
12844
12764
|
/**
|
|
12845
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
12765
|
+
* Returns the day-by-day list of bookable time slots for a booking space for the calendar month starting at firstDayOfMonth, requiring read permission on bookings.
|
|
12846
12766
|
* @summary Get a booking space\'s available slots
|
|
12847
12767
|
* @param {BookingsApiGetBookingSpaceSlotsRequest} requestParameters Request parameters.
|
|
12848
12768
|
* @param {*} [options] Override http request option.
|
|
12849
12769
|
* @throws {RequiredError}
|
|
12850
12770
|
*/
|
|
12851
12771
|
getBookingSpaceSlots(requestParameters, options) {
|
|
12852
|
-
return localVarFp.getBookingSpaceSlots(requestParameters.
|
|
12772
|
+
return localVarFp.getBookingSpaceSlots(requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(axios, basePath));
|
|
12853
12773
|
},
|
|
12854
12774
|
/**
|
|
12855
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
12775
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
12856
12776
|
* @summary List a booking space\'s assigned tiers
|
|
12857
12777
|
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
12858
12778
|
* @param {*} [options] Override http request option.
|
|
12859
12779
|
* @throws {RequiredError}
|
|
12860
12780
|
*/
|
|
12861
12781
|
getBookingSpaceTiers(requestParameters, options) {
|
|
12862
|
-
return localVarFp.getBookingSpaceTiers(requestParameters.
|
|
12782
|
+
return localVarFp.getBookingSpaceTiers(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12863
12783
|
},
|
|
12864
12784
|
/**
|
|
12865
12785
|
* Returns the localized name/description translation of a booking space for the given locale, or null if no translation exists, requiring read permission on bookings.
|
|
@@ -12869,27 +12789,27 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12869
12789
|
* @throws {RequiredError}
|
|
12870
12790
|
*/
|
|
12871
12791
|
getBookingSpaceTranslation(requestParameters, options) {
|
|
12872
|
-
return localVarFp.getBookingSpaceTranslation(requestParameters.
|
|
12792
|
+
return localVarFp.getBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
12873
12793
|
},
|
|
12874
12794
|
/**
|
|
12875
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
12795
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
12876
12796
|
* @summary List a booking space\'s translations
|
|
12877
12797
|
* @param {BookingsApiGetBookingSpaceTranslationsRequest} requestParameters Request parameters.
|
|
12878
12798
|
* @param {*} [options] Override http request option.
|
|
12879
12799
|
* @throws {RequiredError}
|
|
12880
12800
|
*/
|
|
12881
12801
|
getBookingSpaceTranslations(requestParameters, options) {
|
|
12882
|
-
return localVarFp.getBookingSpaceTranslations(requestParameters.
|
|
12802
|
+
return localVarFp.getBookingSpaceTranslations(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12883
12803
|
},
|
|
12884
12804
|
/**
|
|
12885
|
-
* Returns a paginated list of bookable spaces
|
|
12886
|
-
* @summary List
|
|
12805
|
+
* Returns a paginated list of bookable spaces for the organization (no parent filter — includes spaces with no parents), or spaces linked to any combination of place, event, group, and/or account ids; supports search and ordering; requires the \"read\" permission on \"bookings\".
|
|
12806
|
+
* @summary List booking spaces
|
|
12887
12807
|
* @param {BookingsApiGetBookingSpacesRequest} requestParameters Request parameters.
|
|
12888
12808
|
* @param {*} [options] Override http request option.
|
|
12889
12809
|
* @throws {RequiredError}
|
|
12890
12810
|
*/
|
|
12891
|
-
getBookingSpaces(requestParameters, options) {
|
|
12892
|
-
return localVarFp.getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12811
|
+
getBookingSpaces(requestParameters = {}, options) {
|
|
12812
|
+
return localVarFp.getBookingSpaces(requestParameters.placeId, requestParameters.eventId, requestParameters.groupId, requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12893
12813
|
},
|
|
12894
12814
|
/**
|
|
12895
12815
|
* Revokes an account tier\'s access to a booking space by disconnecting it from the space\'s allowed tiers list, requiring the update bookings permission and read access to tiers.
|
|
@@ -12899,7 +12819,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12899
12819
|
* @throws {RequiredError}
|
|
12900
12820
|
*/
|
|
12901
12821
|
removeBookingSpaceTier(requestParameters, options) {
|
|
12902
|
-
return localVarFp.removeBookingSpaceTier(requestParameters.
|
|
12822
|
+
return localVarFp.removeBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
12903
12823
|
},
|
|
12904
12824
|
/**
|
|
12905
12825
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
@@ -12909,17 +12829,17 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12909
12829
|
* @throws {RequiredError}
|
|
12910
12830
|
*/
|
|
12911
12831
|
undoCheckInBooking(requestParameters, options) {
|
|
12912
|
-
return localVarFp.undoCheckInBooking(requestParameters.
|
|
12832
|
+
return localVarFp.undoCheckInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12913
12833
|
},
|
|
12914
12834
|
/**
|
|
12915
|
-
* Updates an existing booking for a bookable space
|
|
12835
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
12916
12836
|
* @summary Update a booking
|
|
12917
12837
|
* @param {BookingsApiUpdateBookingRequest} requestParameters Request parameters.
|
|
12918
12838
|
* @param {*} [options] Override http request option.
|
|
12919
12839
|
* @throws {RequiredError}
|
|
12920
12840
|
*/
|
|
12921
12841
|
updateBooking(requestParameters, options) {
|
|
12922
|
-
return localVarFp.updateBooking(requestParameters.
|
|
12842
|
+
return localVarFp.updateBooking(requestParameters.spaceId, requestParameters.bookingId, requestParameters.bookingUpdateInputs, options).then((request) => request(axios, basePath));
|
|
12923
12843
|
},
|
|
12924
12844
|
};
|
|
12925
12845
|
};
|
|
@@ -12935,7 +12855,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
12935
12855
|
* @throws {RequiredError}
|
|
12936
12856
|
*/
|
|
12937
12857
|
addBookingSpaceTier(requestParameters, options) {
|
|
12938
|
-
return BookingsApiFp(this.configuration).addBookingSpaceTier(requestParameters.
|
|
12858
|
+
return BookingsApiFp(this.configuration).addBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
12939
12859
|
}
|
|
12940
12860
|
/**
|
|
12941
12861
|
* Cancels an existing booking for a space, setting its status to canceled and triggering the booking cancellation side effect; requires the update bookings permission and only succeeds if the booking is currently ready or needs info.
|
|
@@ -12945,7 +12865,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
12945
12865
|
* @throws {RequiredError}
|
|
12946
12866
|
*/
|
|
12947
12867
|
cancelBooking(requestParameters, options) {
|
|
12948
|
-
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.
|
|
12868
|
+
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12949
12869
|
}
|
|
12950
12870
|
/**
|
|
12951
12871
|
* Marks an existing booking as checked in by setting its checked-in timestamp, requires the update bookings permission, and fails if the booking is not in a ready or needs-info status or is already checked in.
|
|
@@ -12955,7 +12875,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
12955
12875
|
* @throws {RequiredError}
|
|
12956
12876
|
*/
|
|
12957
12877
|
checkInBooking(requestParameters, options) {
|
|
12958
|
-
return BookingsApiFp(this.configuration).checkInBooking(requestParameters.
|
|
12878
|
+
return BookingsApiFp(this.configuration).checkInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12959
12879
|
}
|
|
12960
12880
|
/**
|
|
12961
12881
|
* Creates a new booking within the specified booking space on behalf of an account, using the provided booking details, and requires the create bookings permission.
|
|
@@ -12965,17 +12885,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
12965
12885
|
* @throws {RequiredError}
|
|
12966
12886
|
*/
|
|
12967
12887
|
createBooking(requestParameters, options) {
|
|
12968
|
-
return BookingsApiFp(this.configuration).createBooking(requestParameters.
|
|
12888
|
+
return BookingsApiFp(this.configuration).createBooking(requestParameters.spaceId, requestParameters.bookingCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
12969
12889
|
}
|
|
12970
12890
|
/**
|
|
12971
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
12891
|
+
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission. The API returns the deleted booking (used to invalidate place-scoped lists when place-owned).
|
|
12972
12892
|
* @summary Delete a booking
|
|
12973
12893
|
* @param {BookingsApiDeleteBookingRequest} requestParameters Request parameters.
|
|
12974
12894
|
* @param {*} [options] Override http request option.
|
|
12975
12895
|
* @throws {RequiredError}
|
|
12976
12896
|
*/
|
|
12977
12897
|
deleteBooking(requestParameters, options) {
|
|
12978
|
-
return BookingsApiFp(this.configuration).deleteBooking(requestParameters.
|
|
12898
|
+
return BookingsApiFp(this.configuration).deleteBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12979
12899
|
}
|
|
12980
12900
|
/**
|
|
12981
12901
|
* Retrieves the full details of a single booking by ID, including the place, space, and time slot it belongs to; requires the \"read\" permission on \"bookings\".
|
|
@@ -13058,14 +12978,14 @@ export class BookingsApi extends BaseAPI {
|
|
|
13058
12978
|
return BookingsApiFp(this.configuration).getBookingResponses(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13059
12979
|
}
|
|
13060
12980
|
/**
|
|
13061
|
-
* Returns a single bookable space
|
|
12981
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
13062
12982
|
* @summary Get a booking space
|
|
13063
12983
|
* @param {BookingsApiGetBookingSpaceRequest} requestParameters Request parameters.
|
|
13064
12984
|
* @param {*} [options] Override http request option.
|
|
13065
12985
|
* @throws {RequiredError}
|
|
13066
12986
|
*/
|
|
13067
12987
|
getBookingSpace(requestParameters, options) {
|
|
13068
|
-
return BookingsApiFp(this.configuration).getBookingSpace(requestParameters.
|
|
12988
|
+
return BookingsApiFp(this.configuration).getBookingSpace(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
13069
12989
|
}
|
|
13070
12990
|
/**
|
|
13071
12991
|
* Returns the recurring weekly availability windows configured for a booking space, i.e. the days and times the space can be booked; requires the \"read\" permission on \"bookings\".
|
|
@@ -13075,17 +12995,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
13075
12995
|
* @throws {RequiredError}
|
|
13076
12996
|
*/
|
|
13077
12997
|
getBookingSpaceAvailabilities(requestParameters, options) {
|
|
13078
|
-
return BookingsApiFp(this.configuration).getBookingSpaceAvailabilities(requestParameters.
|
|
12998
|
+
return BookingsApiFp(this.configuration).getBookingSpaceAvailabilities(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
13079
12999
|
}
|
|
13080
13000
|
/**
|
|
13081
|
-
* Returns a single
|
|
13082
|
-
* @summary Get a booking space
|
|
13001
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
13002
|
+
* @summary Get a booking space availability by id
|
|
13083
13003
|
* @param {BookingsApiGetBookingSpaceAvailabilityRequest} requestParameters Request parameters.
|
|
13084
13004
|
* @param {*} [options] Override http request option.
|
|
13085
13005
|
* @throws {RequiredError}
|
|
13086
13006
|
*/
|
|
13087
13007
|
getBookingSpaceAvailability(requestParameters, options) {
|
|
13088
|
-
return BookingsApiFp(this.configuration).getBookingSpaceAvailability(requestParameters.
|
|
13008
|
+
return BookingsApiFp(this.configuration).getBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(this.axios, this.basePath));
|
|
13089
13009
|
}
|
|
13090
13010
|
/**
|
|
13091
13011
|
* Returns a single blackout record for a booking space by id, i.e. a date/time range during which the space cannot be booked; requires the \"read\" permission on \"bookings\".
|
|
@@ -13095,7 +13015,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
13095
13015
|
* @throws {RequiredError}
|
|
13096
13016
|
*/
|
|
13097
13017
|
getBookingSpaceBlackout(requestParameters, options) {
|
|
13098
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBlackout(requestParameters.
|
|
13018
|
+
return BookingsApiFp(this.configuration).getBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(this.axios, this.basePath));
|
|
13099
13019
|
}
|
|
13100
13020
|
/**
|
|
13101
13021
|
* Returns a paginated list of blackout date/time ranges during which a booking space cannot be booked, filterable by past/upcoming via the \"past\" parameter and by search text; requires the \"read\" permission on \"bookings\".
|
|
@@ -13105,7 +13025,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
13105
13025
|
* @throws {RequiredError}
|
|
13106
13026
|
*/
|
|
13107
13027
|
getBookingSpaceBlackouts(requestParameters, options) {
|
|
13108
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBlackouts(requestParameters.
|
|
13028
|
+
return BookingsApiFp(this.configuration).getBookingSpaceBlackouts(requestParameters.spaceId, requestParameters.past, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13109
13029
|
}
|
|
13110
13030
|
/**
|
|
13111
13031
|
* Returns a paginated list of bookings made for a booking space, filterable by past/upcoming, purchase status, and search text against the account\'s name or email; requires the \"read\" permission on \"bookings\".
|
|
@@ -13115,7 +13035,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
13115
13035
|
* @throws {RequiredError}
|
|
13116
13036
|
*/
|
|
13117
13037
|
getBookingSpaceBookings(requestParameters, options) {
|
|
13118
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBookings(requestParameters.
|
|
13038
|
+
return BookingsApiFp(this.configuration).getBookingSpaceBookings(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13119
13039
|
}
|
|
13120
13040
|
/**
|
|
13121
13041
|
* Returns a paginated list of payments made for bookings in a booking space, filterable by search text against the paying account\'s name or email; requires the \"read\" permission on \"bookings\" and \"payments\".
|
|
@@ -13125,27 +13045,27 @@ export class BookingsApi extends BaseAPI {
|
|
|
13125
13045
|
* @throws {RequiredError}
|
|
13126
13046
|
*/
|
|
13127
13047
|
getBookingSpacePayments(requestParameters, options) {
|
|
13128
|
-
return BookingsApiFp(this.configuration).getBookingSpacePayments(requestParameters.
|
|
13048
|
+
return BookingsApiFp(this.configuration).getBookingSpacePayments(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13129
13049
|
}
|
|
13130
13050
|
/**
|
|
13131
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
13051
|
+
* Returns the day-by-day list of bookable time slots for a booking space for the calendar month starting at firstDayOfMonth, requiring read permission on bookings.
|
|
13132
13052
|
* @summary Get a booking space\'s available slots
|
|
13133
13053
|
* @param {BookingsApiGetBookingSpaceSlotsRequest} requestParameters Request parameters.
|
|
13134
13054
|
* @param {*} [options] Override http request option.
|
|
13135
13055
|
* @throws {RequiredError}
|
|
13136
13056
|
*/
|
|
13137
13057
|
getBookingSpaceSlots(requestParameters, options) {
|
|
13138
|
-
return BookingsApiFp(this.configuration).getBookingSpaceSlots(requestParameters.
|
|
13058
|
+
return BookingsApiFp(this.configuration).getBookingSpaceSlots(requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(this.axios, this.basePath));
|
|
13139
13059
|
}
|
|
13140
13060
|
/**
|
|
13141
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
13061
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
13142
13062
|
* @summary List a booking space\'s assigned tiers
|
|
13143
13063
|
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
13144
13064
|
* @param {*} [options] Override http request option.
|
|
13145
13065
|
* @throws {RequiredError}
|
|
13146
13066
|
*/
|
|
13147
13067
|
getBookingSpaceTiers(requestParameters, options) {
|
|
13148
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTiers(requestParameters.
|
|
13068
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTiers(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13149
13069
|
}
|
|
13150
13070
|
/**
|
|
13151
13071
|
* Returns the localized name/description translation of a booking space for the given locale, or null if no translation exists, requiring read permission on bookings.
|
|
@@ -13155,27 +13075,27 @@ export class BookingsApi extends BaseAPI {
|
|
|
13155
13075
|
* @throws {RequiredError}
|
|
13156
13076
|
*/
|
|
13157
13077
|
getBookingSpaceTranslation(requestParameters, options) {
|
|
13158
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTranslation(requestParameters.
|
|
13078
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
13159
13079
|
}
|
|
13160
13080
|
/**
|
|
13161
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
13081
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
13162
13082
|
* @summary List a booking space\'s translations
|
|
13163
13083
|
* @param {BookingsApiGetBookingSpaceTranslationsRequest} requestParameters Request parameters.
|
|
13164
13084
|
* @param {*} [options] Override http request option.
|
|
13165
13085
|
* @throws {RequiredError}
|
|
13166
13086
|
*/
|
|
13167
13087
|
getBookingSpaceTranslations(requestParameters, options) {
|
|
13168
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTranslations(requestParameters.
|
|
13088
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTranslations(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13169
13089
|
}
|
|
13170
13090
|
/**
|
|
13171
|
-
* Returns a paginated list of bookable spaces
|
|
13172
|
-
* @summary List
|
|
13091
|
+
* Returns a paginated list of bookable spaces for the organization (no parent filter — includes spaces with no parents), or spaces linked to any combination of place, event, group, and/or account ids; supports search and ordering; requires the \"read\" permission on \"bookings\".
|
|
13092
|
+
* @summary List booking spaces
|
|
13173
13093
|
* @param {BookingsApiGetBookingSpacesRequest} requestParameters Request parameters.
|
|
13174
13094
|
* @param {*} [options] Override http request option.
|
|
13175
13095
|
* @throws {RequiredError}
|
|
13176
13096
|
*/
|
|
13177
|
-
getBookingSpaces(requestParameters, options) {
|
|
13178
|
-
return BookingsApiFp(this.configuration).getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13097
|
+
getBookingSpaces(requestParameters = {}, options) {
|
|
13098
|
+
return BookingsApiFp(this.configuration).getBookingSpaces(requestParameters.placeId, requestParameters.eventId, requestParameters.groupId, requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13179
13099
|
}
|
|
13180
13100
|
/**
|
|
13181
13101
|
* Revokes an account tier\'s access to a booking space by disconnecting it from the space\'s allowed tiers list, requiring the update bookings permission and read access to tiers.
|
|
@@ -13185,7 +13105,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
13185
13105
|
* @throws {RequiredError}
|
|
13186
13106
|
*/
|
|
13187
13107
|
removeBookingSpaceTier(requestParameters, options) {
|
|
13188
|
-
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.
|
|
13108
|
+
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
13189
13109
|
}
|
|
13190
13110
|
/**
|
|
13191
13111
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
@@ -13195,17 +13115,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
13195
13115
|
* @throws {RequiredError}
|
|
13196
13116
|
*/
|
|
13197
13117
|
undoCheckInBooking(requestParameters, options) {
|
|
13198
|
-
return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.
|
|
13118
|
+
return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13199
13119
|
}
|
|
13200
13120
|
/**
|
|
13201
|
-
* Updates an existing booking for a bookable space
|
|
13121
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
13202
13122
|
* @summary Update a booking
|
|
13203
13123
|
* @param {BookingsApiUpdateBookingRequest} requestParameters Request parameters.
|
|
13204
13124
|
* @param {*} [options] Override http request option.
|
|
13205
13125
|
* @throws {RequiredError}
|
|
13206
13126
|
*/
|
|
13207
13127
|
updateBooking(requestParameters, options) {
|
|
13208
|
-
return BookingsApiFp(this.configuration).updateBooking(requestParameters.
|
|
13128
|
+
return BookingsApiFp(this.configuration).updateBooking(requestParameters.spaceId, requestParameters.bookingId, requestParameters.bookingUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13209
13129
|
}
|
|
13210
13130
|
}
|
|
13211
13131
|
/**
|
|
@@ -13216,21 +13136,17 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
13216
13136
|
/**
|
|
13217
13137
|
* Creates a recurring weekly availability window (day of week, start/end time) for the given booking space, requiring the \"update\" permission on bookings, and fails if the new window conflicts with an existing availability for that space.
|
|
13218
13138
|
* @summary Create a booking space availability
|
|
13219
|
-
* @param {string} placeId The place identifier
|
|
13220
13139
|
* @param {string} spaceId The space identifier
|
|
13221
13140
|
* @param {BookingSpaceAvailabilityCreateInputs} bookingSpaceAvailabilityCreateInputs
|
|
13222
13141
|
* @param {*} [options] Override http request option.
|
|
13223
13142
|
* @throws {RequiredError}
|
|
13224
13143
|
*/
|
|
13225
|
-
createBookingSpaceAvailability: (
|
|
13226
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13227
|
-
assertParamExists('createBookingSpaceAvailability', 'placeId', placeId);
|
|
13144
|
+
createBookingSpaceAvailability: (spaceId_1, bookingSpaceAvailabilityCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingSpaceAvailabilityCreateInputs_1, ...args_1], void 0, function* (spaceId, bookingSpaceAvailabilityCreateInputs, options = {}) {
|
|
13228
13145
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13229
13146
|
assertParamExists('createBookingSpaceAvailability', 'spaceId', spaceId);
|
|
13230
13147
|
// verify required parameter 'bookingSpaceAvailabilityCreateInputs' is not null or undefined
|
|
13231
13148
|
assertParamExists('createBookingSpaceAvailability', 'bookingSpaceAvailabilityCreateInputs', bookingSpaceAvailabilityCreateInputs);
|
|
13232
|
-
const localVarPath = `/bookings/
|
|
13233
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13149
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities`
|
|
13234
13150
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
13235
13151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13236
13152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -13259,21 +13175,17 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
13259
13175
|
/**
|
|
13260
13176
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
13261
13177
|
* @summary Delete a booking space availability
|
|
13262
|
-
* @param {string} placeId The place identifier
|
|
13263
13178
|
* @param {string} spaceId The space identifier
|
|
13264
13179
|
* @param {string} availabilityId The availability identifier
|
|
13265
13180
|
* @param {*} [options] Override http request option.
|
|
13266
13181
|
* @throws {RequiredError}
|
|
13267
13182
|
*/
|
|
13268
|
-
deleteBookingSpaceAvailability: (
|
|
13269
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13270
|
-
assertParamExists('deleteBookingSpaceAvailability', 'placeId', placeId);
|
|
13183
|
+
deleteBookingSpaceAvailability: (spaceId_1, availabilityId_1, ...args_1) => __awaiter(this, [spaceId_1, availabilityId_1, ...args_1], void 0, function* (spaceId, availabilityId, options = {}) {
|
|
13271
13184
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13272
13185
|
assertParamExists('deleteBookingSpaceAvailability', 'spaceId', spaceId);
|
|
13273
13186
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
13274
13187
|
assertParamExists('deleteBookingSpaceAvailability', 'availabilityId', availabilityId);
|
|
13275
|
-
const localVarPath = `/bookings/
|
|
13276
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13188
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
13277
13189
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
13278
13190
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
13279
13191
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13301,24 +13213,20 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
13301
13213
|
/**
|
|
13302
13214
|
* Updates the day of week, start time, or end time of the availability window identified by availabilityId on the given booking space, requiring the \"update\" permission on bookings, and fails if the change conflicts with another existing availability.
|
|
13303
13215
|
* @summary Update a booking space availability
|
|
13304
|
-
* @param {string} placeId The place identifier
|
|
13305
13216
|
* @param {string} spaceId The space identifier
|
|
13306
13217
|
* @param {string} availabilityId The availability identifier
|
|
13307
13218
|
* @param {BookingSpaceAvailabilityUpdateInputs} bookingSpaceAvailabilityUpdateInputs
|
|
13308
13219
|
* @param {*} [options] Override http request option.
|
|
13309
13220
|
* @throws {RequiredError}
|
|
13310
13221
|
*/
|
|
13311
|
-
updateBookingSpaceAvailability: (
|
|
13312
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13313
|
-
assertParamExists('updateBookingSpaceAvailability', 'placeId', placeId);
|
|
13222
|
+
updateBookingSpaceAvailability: (spaceId_1, availabilityId_1, bookingSpaceAvailabilityUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, availabilityId_1, bookingSpaceAvailabilityUpdateInputs_1, ...args_1], void 0, function* (spaceId, availabilityId, bookingSpaceAvailabilityUpdateInputs, options = {}) {
|
|
13314
13223
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13315
13224
|
assertParamExists('updateBookingSpaceAvailability', 'spaceId', spaceId);
|
|
13316
13225
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
13317
13226
|
assertParamExists('updateBookingSpaceAvailability', 'availabilityId', availabilityId);
|
|
13318
13227
|
// verify required parameter 'bookingSpaceAvailabilityUpdateInputs' is not null or undefined
|
|
13319
13228
|
assertParamExists('updateBookingSpaceAvailability', 'bookingSpaceAvailabilityUpdateInputs', bookingSpaceAvailabilityUpdateInputs);
|
|
13320
|
-
const localVarPath = `/bookings/
|
|
13321
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13229
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
13322
13230
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
13323
13231
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
13324
13232
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13356,16 +13264,15 @@ export const BookingsAvailabilitiesApiFp = function (configuration) {
|
|
|
13356
13264
|
/**
|
|
13357
13265
|
* Creates a recurring weekly availability window (day of week, start/end time) for the given booking space, requiring the \"update\" permission on bookings, and fails if the new window conflicts with an existing availability for that space.
|
|
13358
13266
|
* @summary Create a booking space availability
|
|
13359
|
-
* @param {string} placeId The place identifier
|
|
13360
13267
|
* @param {string} spaceId The space identifier
|
|
13361
13268
|
* @param {BookingSpaceAvailabilityCreateInputs} bookingSpaceAvailabilityCreateInputs
|
|
13362
13269
|
* @param {*} [options] Override http request option.
|
|
13363
13270
|
* @throws {RequiredError}
|
|
13364
13271
|
*/
|
|
13365
|
-
createBookingSpaceAvailability(
|
|
13272
|
+
createBookingSpaceAvailability(spaceId, bookingSpaceAvailabilityCreateInputs, options) {
|
|
13366
13273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13367
13274
|
var _a, _b, _c;
|
|
13368
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceAvailability(
|
|
13275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceAvailability(spaceId, bookingSpaceAvailabilityCreateInputs, options);
|
|
13369
13276
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13370
13277
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsAvailabilitiesApi.createBookingSpaceAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13371
13278
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13374,16 +13281,15 @@ export const BookingsAvailabilitiesApiFp = function (configuration) {
|
|
|
13374
13281
|
/**
|
|
13375
13282
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
13376
13283
|
* @summary Delete a booking space availability
|
|
13377
|
-
* @param {string} placeId The place identifier
|
|
13378
13284
|
* @param {string} spaceId The space identifier
|
|
13379
13285
|
* @param {string} availabilityId The availability identifier
|
|
13380
13286
|
* @param {*} [options] Override http request option.
|
|
13381
13287
|
* @throws {RequiredError}
|
|
13382
13288
|
*/
|
|
13383
|
-
deleteBookingSpaceAvailability(
|
|
13289
|
+
deleteBookingSpaceAvailability(spaceId, availabilityId, options) {
|
|
13384
13290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13385
13291
|
var _a, _b, _c;
|
|
13386
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceAvailability(
|
|
13292
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceAvailability(spaceId, availabilityId, options);
|
|
13387
13293
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13388
13294
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsAvailabilitiesApi.deleteBookingSpaceAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13389
13295
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13392,17 +13298,16 @@ export const BookingsAvailabilitiesApiFp = function (configuration) {
|
|
|
13392
13298
|
/**
|
|
13393
13299
|
* Updates the day of week, start time, or end time of the availability window identified by availabilityId on the given booking space, requiring the \"update\" permission on bookings, and fails if the change conflicts with another existing availability.
|
|
13394
13300
|
* @summary Update a booking space availability
|
|
13395
|
-
* @param {string} placeId The place identifier
|
|
13396
13301
|
* @param {string} spaceId The space identifier
|
|
13397
13302
|
* @param {string} availabilityId The availability identifier
|
|
13398
13303
|
* @param {BookingSpaceAvailabilityUpdateInputs} bookingSpaceAvailabilityUpdateInputs
|
|
13399
13304
|
* @param {*} [options] Override http request option.
|
|
13400
13305
|
* @throws {RequiredError}
|
|
13401
13306
|
*/
|
|
13402
|
-
updateBookingSpaceAvailability(
|
|
13307
|
+
updateBookingSpaceAvailability(spaceId, availabilityId, bookingSpaceAvailabilityUpdateInputs, options) {
|
|
13403
13308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13404
13309
|
var _a, _b, _c;
|
|
13405
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceAvailability(
|
|
13310
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceAvailability(spaceId, availabilityId, bookingSpaceAvailabilityUpdateInputs, options);
|
|
13406
13311
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13407
13312
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsAvailabilitiesApi.updateBookingSpaceAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13408
13313
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13424,7 +13329,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration, basePat
|
|
|
13424
13329
|
* @throws {RequiredError}
|
|
13425
13330
|
*/
|
|
13426
13331
|
createBookingSpaceAvailability(requestParameters, options) {
|
|
13427
|
-
return localVarFp.createBookingSpaceAvailability(requestParameters.
|
|
13332
|
+
return localVarFp.createBookingSpaceAvailability(requestParameters.spaceId, requestParameters.bookingSpaceAvailabilityCreateInputs, options).then((request) => request(axios, basePath));
|
|
13428
13333
|
},
|
|
13429
13334
|
/**
|
|
13430
13335
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -13434,7 +13339,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration, basePat
|
|
|
13434
13339
|
* @throws {RequiredError}
|
|
13435
13340
|
*/
|
|
13436
13341
|
deleteBookingSpaceAvailability(requestParameters, options) {
|
|
13437
|
-
return localVarFp.deleteBookingSpaceAvailability(requestParameters.
|
|
13342
|
+
return localVarFp.deleteBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(axios, basePath));
|
|
13438
13343
|
},
|
|
13439
13344
|
/**
|
|
13440
13345
|
* Updates the day of week, start time, or end time of the availability window identified by availabilityId on the given booking space, requiring the \"update\" permission on bookings, and fails if the change conflicts with another existing availability.
|
|
@@ -13444,7 +13349,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration, basePat
|
|
|
13444
13349
|
* @throws {RequiredError}
|
|
13445
13350
|
*/
|
|
13446
13351
|
updateBookingSpaceAvailability(requestParameters, options) {
|
|
13447
|
-
return localVarFp.updateBookingSpaceAvailability(requestParameters.
|
|
13352
|
+
return localVarFp.updateBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, requestParameters.bookingSpaceAvailabilityUpdateInputs, options).then((request) => request(axios, basePath));
|
|
13448
13353
|
},
|
|
13449
13354
|
};
|
|
13450
13355
|
};
|
|
@@ -13460,7 +13365,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
13460
13365
|
* @throws {RequiredError}
|
|
13461
13366
|
*/
|
|
13462
13367
|
createBookingSpaceAvailability(requestParameters, options) {
|
|
13463
|
-
return BookingsAvailabilitiesApiFp(this.configuration).createBookingSpaceAvailability(requestParameters.
|
|
13368
|
+
return BookingsAvailabilitiesApiFp(this.configuration).createBookingSpaceAvailability(requestParameters.spaceId, requestParameters.bookingSpaceAvailabilityCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13464
13369
|
}
|
|
13465
13370
|
/**
|
|
13466
13371
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -13470,7 +13375,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
13470
13375
|
* @throws {RequiredError}
|
|
13471
13376
|
*/
|
|
13472
13377
|
deleteBookingSpaceAvailability(requestParameters, options) {
|
|
13473
|
-
return BookingsAvailabilitiesApiFp(this.configuration).deleteBookingSpaceAvailability(requestParameters.
|
|
13378
|
+
return BookingsAvailabilitiesApiFp(this.configuration).deleteBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(this.axios, this.basePath));
|
|
13474
13379
|
}
|
|
13475
13380
|
/**
|
|
13476
13381
|
* Updates the day of week, start time, or end time of the availability window identified by availabilityId on the given booking space, requiring the \"update\" permission on bookings, and fails if the change conflicts with another existing availability.
|
|
@@ -13480,7 +13385,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
13480
13385
|
* @throws {RequiredError}
|
|
13481
13386
|
*/
|
|
13482
13387
|
updateBookingSpaceAvailability(requestParameters, options) {
|
|
13483
|
-
return BookingsAvailabilitiesApiFp(this.configuration).updateBookingSpaceAvailability(requestParameters.
|
|
13388
|
+
return BookingsAvailabilitiesApiFp(this.configuration).updateBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, requestParameters.bookingSpaceAvailabilityUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13484
13389
|
}
|
|
13485
13390
|
}
|
|
13486
13391
|
/**
|
|
@@ -13491,21 +13396,17 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration) {
|
|
|
13491
13396
|
/**
|
|
13492
13397
|
* Creates a date/time range during which the given booking space is unavailable for bookings, requiring the \"update\" permission on bookings, and fails if the range overlaps an existing blackout for that space.
|
|
13493
13398
|
* @summary Create a booking space blackout
|
|
13494
|
-
* @param {string} placeId The place identifier
|
|
13495
13399
|
* @param {string} spaceId The space identifier
|
|
13496
13400
|
* @param {BookingSpaceBlackoutCreateInputs} bookingSpaceBlackoutCreateInputs
|
|
13497
13401
|
* @param {*} [options] Override http request option.
|
|
13498
13402
|
* @throws {RequiredError}
|
|
13499
13403
|
*/
|
|
13500
|
-
createBookingSpaceBlackout: (
|
|
13501
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13502
|
-
assertParamExists('createBookingSpaceBlackout', 'placeId', placeId);
|
|
13404
|
+
createBookingSpaceBlackout: (spaceId_1, bookingSpaceBlackoutCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingSpaceBlackoutCreateInputs_1, ...args_1], void 0, function* (spaceId, bookingSpaceBlackoutCreateInputs, options = {}) {
|
|
13503
13405
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13504
13406
|
assertParamExists('createBookingSpaceBlackout', 'spaceId', spaceId);
|
|
13505
13407
|
// verify required parameter 'bookingSpaceBlackoutCreateInputs' is not null or undefined
|
|
13506
13408
|
assertParamExists('createBookingSpaceBlackout', 'bookingSpaceBlackoutCreateInputs', bookingSpaceBlackoutCreateInputs);
|
|
13507
|
-
const localVarPath = `/bookings/
|
|
13508
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13409
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts`
|
|
13509
13410
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
13510
13411
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13511
13412
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -13534,21 +13435,17 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration) {
|
|
|
13534
13435
|
/**
|
|
13535
13436
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
13536
13437
|
* @summary Delete a booking space blackout
|
|
13537
|
-
* @param {string} placeId The place identifier
|
|
13538
13438
|
* @param {string} spaceId The space identifier
|
|
13539
13439
|
* @param {string} blackoutId The blackout identifier
|
|
13540
13440
|
* @param {*} [options] Override http request option.
|
|
13541
13441
|
* @throws {RequiredError}
|
|
13542
13442
|
*/
|
|
13543
|
-
deleteBookingSpaceBlackout: (
|
|
13544
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13545
|
-
assertParamExists('deleteBookingSpaceBlackout', 'placeId', placeId);
|
|
13443
|
+
deleteBookingSpaceBlackout: (spaceId_1, blackoutId_1, ...args_1) => __awaiter(this, [spaceId_1, blackoutId_1, ...args_1], void 0, function* (spaceId, blackoutId, options = {}) {
|
|
13546
13444
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13547
13445
|
assertParamExists('deleteBookingSpaceBlackout', 'spaceId', spaceId);
|
|
13548
13446
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
13549
13447
|
assertParamExists('deleteBookingSpaceBlackout', 'blackoutId', blackoutId);
|
|
13550
|
-
const localVarPath = `/bookings/
|
|
13551
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13448
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
13552
13449
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
13553
13450
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
13554
13451
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13576,24 +13473,20 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration) {
|
|
|
13576
13473
|
/**
|
|
13577
13474
|
* Updates the start or end time of the blackout window identified by blackoutId on the given booking space, requiring the \"update\" permission on bookings, and fails if the change overlaps another existing blackout.
|
|
13578
13475
|
* @summary Update a booking space blackout
|
|
13579
|
-
* @param {string} placeId The place identifier
|
|
13580
13476
|
* @param {string} spaceId The space identifier
|
|
13581
13477
|
* @param {string} blackoutId The blackout identifier
|
|
13582
13478
|
* @param {BookingSpaceBlackoutUpdateInputs} bookingSpaceBlackoutUpdateInputs
|
|
13583
13479
|
* @param {*} [options] Override http request option.
|
|
13584
13480
|
* @throws {RequiredError}
|
|
13585
13481
|
*/
|
|
13586
|
-
updateBookingSpaceBlackout: (
|
|
13587
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13588
|
-
assertParamExists('updateBookingSpaceBlackout', 'placeId', placeId);
|
|
13482
|
+
updateBookingSpaceBlackout: (spaceId_1, blackoutId_1, bookingSpaceBlackoutUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, blackoutId_1, bookingSpaceBlackoutUpdateInputs_1, ...args_1], void 0, function* (spaceId, blackoutId, bookingSpaceBlackoutUpdateInputs, options = {}) {
|
|
13589
13483
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13590
13484
|
assertParamExists('updateBookingSpaceBlackout', 'spaceId', spaceId);
|
|
13591
13485
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
13592
13486
|
assertParamExists('updateBookingSpaceBlackout', 'blackoutId', blackoutId);
|
|
13593
13487
|
// verify required parameter 'bookingSpaceBlackoutUpdateInputs' is not null or undefined
|
|
13594
13488
|
assertParamExists('updateBookingSpaceBlackout', 'bookingSpaceBlackoutUpdateInputs', bookingSpaceBlackoutUpdateInputs);
|
|
13595
|
-
const localVarPath = `/bookings/
|
|
13596
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13489
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
13597
13490
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
13598
13491
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
13599
13492
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13631,16 +13524,15 @@ export const BookingsBlackoutsApiFp = function (configuration) {
|
|
|
13631
13524
|
/**
|
|
13632
13525
|
* Creates a date/time range during which the given booking space is unavailable for bookings, requiring the \"update\" permission on bookings, and fails if the range overlaps an existing blackout for that space.
|
|
13633
13526
|
* @summary Create a booking space blackout
|
|
13634
|
-
* @param {string} placeId The place identifier
|
|
13635
13527
|
* @param {string} spaceId The space identifier
|
|
13636
13528
|
* @param {BookingSpaceBlackoutCreateInputs} bookingSpaceBlackoutCreateInputs
|
|
13637
13529
|
* @param {*} [options] Override http request option.
|
|
13638
13530
|
* @throws {RequiredError}
|
|
13639
13531
|
*/
|
|
13640
|
-
createBookingSpaceBlackout(
|
|
13532
|
+
createBookingSpaceBlackout(spaceId, bookingSpaceBlackoutCreateInputs, options) {
|
|
13641
13533
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13642
13534
|
var _a, _b, _c;
|
|
13643
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceBlackout(
|
|
13535
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceBlackout(spaceId, bookingSpaceBlackoutCreateInputs, options);
|
|
13644
13536
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13645
13537
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsBlackoutsApi.createBookingSpaceBlackout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13646
13538
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13649,16 +13541,15 @@ export const BookingsBlackoutsApiFp = function (configuration) {
|
|
|
13649
13541
|
/**
|
|
13650
13542
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
13651
13543
|
* @summary Delete a booking space blackout
|
|
13652
|
-
* @param {string} placeId The place identifier
|
|
13653
13544
|
* @param {string} spaceId The space identifier
|
|
13654
13545
|
* @param {string} blackoutId The blackout identifier
|
|
13655
13546
|
* @param {*} [options] Override http request option.
|
|
13656
13547
|
* @throws {RequiredError}
|
|
13657
13548
|
*/
|
|
13658
|
-
deleteBookingSpaceBlackout(
|
|
13549
|
+
deleteBookingSpaceBlackout(spaceId, blackoutId, options) {
|
|
13659
13550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13660
13551
|
var _a, _b, _c;
|
|
13661
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceBlackout(
|
|
13552
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceBlackout(spaceId, blackoutId, options);
|
|
13662
13553
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13663
13554
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsBlackoutsApi.deleteBookingSpaceBlackout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13664
13555
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13667,17 +13558,16 @@ export const BookingsBlackoutsApiFp = function (configuration) {
|
|
|
13667
13558
|
/**
|
|
13668
13559
|
* Updates the start or end time of the blackout window identified by blackoutId on the given booking space, requiring the \"update\" permission on bookings, and fails if the change overlaps another existing blackout.
|
|
13669
13560
|
* @summary Update a booking space blackout
|
|
13670
|
-
* @param {string} placeId The place identifier
|
|
13671
13561
|
* @param {string} spaceId The space identifier
|
|
13672
13562
|
* @param {string} blackoutId The blackout identifier
|
|
13673
13563
|
* @param {BookingSpaceBlackoutUpdateInputs} bookingSpaceBlackoutUpdateInputs
|
|
13674
13564
|
* @param {*} [options] Override http request option.
|
|
13675
13565
|
* @throws {RequiredError}
|
|
13676
13566
|
*/
|
|
13677
|
-
updateBookingSpaceBlackout(
|
|
13567
|
+
updateBookingSpaceBlackout(spaceId, blackoutId, bookingSpaceBlackoutUpdateInputs, options) {
|
|
13678
13568
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13679
13569
|
var _a, _b, _c;
|
|
13680
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceBlackout(
|
|
13570
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceBlackout(spaceId, blackoutId, bookingSpaceBlackoutUpdateInputs, options);
|
|
13681
13571
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13682
13572
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsBlackoutsApi.updateBookingSpaceBlackout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13683
13573
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13699,7 +13589,7 @@ export const BookingsBlackoutsApiFactory = function (configuration, basePath, ax
|
|
|
13699
13589
|
* @throws {RequiredError}
|
|
13700
13590
|
*/
|
|
13701
13591
|
createBookingSpaceBlackout(requestParameters, options) {
|
|
13702
|
-
return localVarFp.createBookingSpaceBlackout(requestParameters.
|
|
13592
|
+
return localVarFp.createBookingSpaceBlackout(requestParameters.spaceId, requestParameters.bookingSpaceBlackoutCreateInputs, options).then((request) => request(axios, basePath));
|
|
13703
13593
|
},
|
|
13704
13594
|
/**
|
|
13705
13595
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -13709,7 +13599,7 @@ export const BookingsBlackoutsApiFactory = function (configuration, basePath, ax
|
|
|
13709
13599
|
* @throws {RequiredError}
|
|
13710
13600
|
*/
|
|
13711
13601
|
deleteBookingSpaceBlackout(requestParameters, options) {
|
|
13712
|
-
return localVarFp.deleteBookingSpaceBlackout(requestParameters.
|
|
13602
|
+
return localVarFp.deleteBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(axios, basePath));
|
|
13713
13603
|
},
|
|
13714
13604
|
/**
|
|
13715
13605
|
* Updates the start or end time of the blackout window identified by blackoutId on the given booking space, requiring the \"update\" permission on bookings, and fails if the change overlaps another existing blackout.
|
|
@@ -13719,7 +13609,7 @@ export const BookingsBlackoutsApiFactory = function (configuration, basePath, ax
|
|
|
13719
13609
|
* @throws {RequiredError}
|
|
13720
13610
|
*/
|
|
13721
13611
|
updateBookingSpaceBlackout(requestParameters, options) {
|
|
13722
|
-
return localVarFp.updateBookingSpaceBlackout(requestParameters.
|
|
13612
|
+
return localVarFp.updateBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, requestParameters.bookingSpaceBlackoutUpdateInputs, options).then((request) => request(axios, basePath));
|
|
13723
13613
|
},
|
|
13724
13614
|
};
|
|
13725
13615
|
};
|
|
@@ -13735,7 +13625,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
13735
13625
|
* @throws {RequiredError}
|
|
13736
13626
|
*/
|
|
13737
13627
|
createBookingSpaceBlackout(requestParameters, options) {
|
|
13738
|
-
return BookingsBlackoutsApiFp(this.configuration).createBookingSpaceBlackout(requestParameters.
|
|
13628
|
+
return BookingsBlackoutsApiFp(this.configuration).createBookingSpaceBlackout(requestParameters.spaceId, requestParameters.bookingSpaceBlackoutCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13739
13629
|
}
|
|
13740
13630
|
/**
|
|
13741
13631
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -13745,7 +13635,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
13745
13635
|
* @throws {RequiredError}
|
|
13746
13636
|
*/
|
|
13747
13637
|
deleteBookingSpaceBlackout(requestParameters, options) {
|
|
13748
|
-
return BookingsBlackoutsApiFp(this.configuration).deleteBookingSpaceBlackout(requestParameters.
|
|
13638
|
+
return BookingsBlackoutsApiFp(this.configuration).deleteBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(this.axios, this.basePath));
|
|
13749
13639
|
}
|
|
13750
13640
|
/**
|
|
13751
13641
|
* Updates the start or end time of the blackout window identified by blackoutId on the given booking space, requiring the \"update\" permission on bookings, and fails if the change overlaps another existing blackout.
|
|
@@ -13755,7 +13645,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
13755
13645
|
* @throws {RequiredError}
|
|
13756
13646
|
*/
|
|
13757
13647
|
updateBookingSpaceBlackout(requestParameters, options) {
|
|
13758
|
-
return BookingsBlackoutsApiFp(this.configuration).updateBookingSpaceBlackout(requestParameters.
|
|
13648
|
+
return BookingsBlackoutsApiFp(this.configuration).updateBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, requestParameters.bookingSpaceBlackoutUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13759
13649
|
}
|
|
13760
13650
|
}
|
|
13761
13651
|
/**
|
|
@@ -14195,24 +14085,20 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14195
14085
|
/**
|
|
14196
14086
|
* Links an existing search list to a booking space question so its options are sourced from that list, replacing any previously attached search list; requires update permission on bookings.
|
|
14197
14087
|
* @summary Attach a search list to a booking question
|
|
14198
|
-
* @param {string} placeId The place identifier
|
|
14199
14088
|
* @param {string} spaceId The space identifier
|
|
14200
14089
|
* @param {string} questionId The question identifier
|
|
14201
14090
|
* @param {AttachSearchListInputs} attachSearchListInputs
|
|
14202
14091
|
* @param {*} [options] Override http request option.
|
|
14203
14092
|
* @throws {RequiredError}
|
|
14204
14093
|
*/
|
|
14205
|
-
attachBookingSpaceQuestionSearchList: (
|
|
14206
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14207
|
-
assertParamExists('attachBookingSpaceQuestionSearchList', 'placeId', placeId);
|
|
14094
|
+
attachBookingSpaceQuestionSearchList: (spaceId_1, questionId_1, attachSearchListInputs_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, attachSearchListInputs_1, ...args_1], void 0, function* (spaceId, questionId, attachSearchListInputs, options = {}) {
|
|
14208
14095
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14209
14096
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'spaceId', spaceId);
|
|
14210
14097
|
// verify required parameter 'questionId' is not null or undefined
|
|
14211
14098
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'questionId', questionId);
|
|
14212
14099
|
// verify required parameter 'attachSearchListInputs' is not null or undefined
|
|
14213
14100
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'attachSearchListInputs', attachSearchListInputs);
|
|
14214
|
-
const localVarPath = `/bookings/
|
|
14215
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14101
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/searchlist`
|
|
14216
14102
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14217
14103
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14218
14104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14242,21 +14128,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14242
14128
|
/**
|
|
14243
14129
|
* Creates a new custom question (with optional choices) on a booking space, inserting it at the given sort order among the space\'s existing questions; requires update permission on bookings.
|
|
14244
14130
|
* @summary Create a booking space question
|
|
14245
|
-
* @param {string} placeId The place identifier
|
|
14246
14131
|
* @param {string} spaceId The space identifier
|
|
14247
14132
|
* @param {BookingSpaceQuestionCreateInputs} bookingSpaceQuestionCreateInputs
|
|
14248
14133
|
* @param {*} [options] Override http request option.
|
|
14249
14134
|
* @throws {RequiredError}
|
|
14250
14135
|
*/
|
|
14251
|
-
createBookingSpaceQuestion: (
|
|
14252
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14253
|
-
assertParamExists('createBookingSpaceQuestion', 'placeId', placeId);
|
|
14136
|
+
createBookingSpaceQuestion: (spaceId_1, bookingSpaceQuestionCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingSpaceQuestionCreateInputs_1, ...args_1], void 0, function* (spaceId, bookingSpaceQuestionCreateInputs, options = {}) {
|
|
14254
14137
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14255
14138
|
assertParamExists('createBookingSpaceQuestion', 'spaceId', spaceId);
|
|
14256
14139
|
// verify required parameter 'bookingSpaceQuestionCreateInputs' is not null or undefined
|
|
14257
14140
|
assertParamExists('createBookingSpaceQuestion', 'bookingSpaceQuestionCreateInputs', bookingSpaceQuestionCreateInputs);
|
|
14258
|
-
const localVarPath = `/bookings/
|
|
14259
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14141
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions`
|
|
14260
14142
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
14261
14143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14262
14144
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -14285,21 +14167,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14285
14167
|
/**
|
|
14286
14168
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
14287
14169
|
* @summary Delete a booking space question
|
|
14288
|
-
* @param {string} placeId The place identifier
|
|
14289
14170
|
* @param {string} spaceId The space identifier
|
|
14290
14171
|
* @param {string} questionId The question identifier
|
|
14291
14172
|
* @param {*} [options] Override http request option.
|
|
14292
14173
|
* @throws {RequiredError}
|
|
14293
14174
|
*/
|
|
14294
|
-
deleteBookingSpaceQuestion: (
|
|
14295
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14296
|
-
assertParamExists('deleteBookingSpaceQuestion', 'placeId', placeId);
|
|
14175
|
+
deleteBookingSpaceQuestion: (spaceId_1, questionId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, ...args_1], void 0, function* (spaceId, questionId, options = {}) {
|
|
14297
14176
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14298
14177
|
assertParamExists('deleteBookingSpaceQuestion', 'spaceId', spaceId);
|
|
14299
14178
|
// verify required parameter 'questionId' is not null or undefined
|
|
14300
14179
|
assertParamExists('deleteBookingSpaceQuestion', 'questionId', questionId);
|
|
14301
|
-
const localVarPath = `/bookings/
|
|
14302
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14180
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
14303
14181
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14304
14182
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14305
14183
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14327,21 +14205,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14327
14205
|
/**
|
|
14328
14206
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
14329
14207
|
* @summary Detach a search list from a booking question
|
|
14330
|
-
* @param {string} placeId The place identifier
|
|
14331
14208
|
* @param {string} spaceId The space identifier
|
|
14332
14209
|
* @param {string} questionId The question identifier
|
|
14333
14210
|
* @param {*} [options] Override http request option.
|
|
14334
14211
|
* @throws {RequiredError}
|
|
14335
14212
|
*/
|
|
14336
|
-
detachBookingSpaceQuestionSearchList: (
|
|
14337
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14338
|
-
assertParamExists('detachBookingSpaceQuestionSearchList', 'placeId', placeId);
|
|
14213
|
+
detachBookingSpaceQuestionSearchList: (spaceId_1, questionId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, ...args_1], void 0, function* (spaceId, questionId, options = {}) {
|
|
14339
14214
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14340
14215
|
assertParamExists('detachBookingSpaceQuestionSearchList', 'spaceId', spaceId);
|
|
14341
14216
|
// verify required parameter 'questionId' is not null or undefined
|
|
14342
14217
|
assertParamExists('detachBookingSpaceQuestionSearchList', 'questionId', questionId);
|
|
14343
|
-
const localVarPath = `/bookings/
|
|
14344
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14218
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/searchlist`
|
|
14345
14219
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14346
14220
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14347
14221
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14369,21 +14243,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14369
14243
|
/**
|
|
14370
14244
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
14371
14245
|
* @summary Get a booking space question
|
|
14372
|
-
* @param {string} placeId The place identifier
|
|
14373
14246
|
* @param {string} spaceId The space identifier
|
|
14374
14247
|
* @param {string} questionId The question identifier
|
|
14375
14248
|
* @param {*} [options] Override http request option.
|
|
14376
14249
|
* @throws {RequiredError}
|
|
14377
14250
|
*/
|
|
14378
|
-
getBookingSpaceQuestion: (
|
|
14379
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14380
|
-
assertParamExists('getBookingSpaceQuestion', 'placeId', placeId);
|
|
14251
|
+
getBookingSpaceQuestion: (spaceId_1, questionId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, ...args_1], void 0, function* (spaceId, questionId, options = {}) {
|
|
14381
14252
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14382
14253
|
assertParamExists('getBookingSpaceQuestion', 'spaceId', spaceId);
|
|
14383
14254
|
// verify required parameter 'questionId' is not null or undefined
|
|
14384
14255
|
assertParamExists('getBookingSpaceQuestion', 'questionId', questionId);
|
|
14385
|
-
const localVarPath = `/bookings/
|
|
14386
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14256
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
14387
14257
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14388
14258
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14389
14259
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14411,7 +14281,6 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14411
14281
|
/**
|
|
14412
14282
|
* Returns a paginated list of the custom questions configured for a booking space, supporting search over the question\'s name, label, and description and sorting via orderBy; requires the \"read\" permission on \"bookings\".
|
|
14413
14283
|
* @summary List a booking space\'s custom questions
|
|
14414
|
-
* @param {string} placeId The place identifier
|
|
14415
14284
|
* @param {string} spaceId The space identifier
|
|
14416
14285
|
* @param {number} [page] Page number
|
|
14417
14286
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -14420,13 +14289,10 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14420
14289
|
* @param {*} [options] Override http request option.
|
|
14421
14290
|
* @throws {RequiredError}
|
|
14422
14291
|
*/
|
|
14423
|
-
getBookingSpaceQuestions: (
|
|
14424
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14425
|
-
assertParamExists('getBookingSpaceQuestions', 'placeId', placeId);
|
|
14292
|
+
getBookingSpaceQuestions: (spaceId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [spaceId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (spaceId, page, pageSize, orderBy, search, options = {}) {
|
|
14426
14293
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14427
14294
|
assertParamExists('getBookingSpaceQuestions', 'spaceId', spaceId);
|
|
14428
|
-
const localVarPath = `/bookings/
|
|
14429
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14295
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions`
|
|
14430
14296
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
14431
14297
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14432
14298
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -14465,21 +14331,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14465
14331
|
/**
|
|
14466
14332
|
* Sets the display order of all questions on a booking space by supplying the complete ordered list of question IDs; every existing question must be included or the request is rejected, and requires update permission on bookings.
|
|
14467
14333
|
* @summary Reorder a booking space\'s questions
|
|
14468
|
-
* @param {string} placeId The place identifier
|
|
14469
14334
|
* @param {string} spaceId The space identifier
|
|
14470
14335
|
* @param {ReorderBookingSpaceQuestionsRequest} reorderBookingSpaceQuestionsRequest
|
|
14471
14336
|
* @param {*} [options] Override http request option.
|
|
14472
14337
|
* @throws {RequiredError}
|
|
14473
14338
|
*/
|
|
14474
|
-
reorderBookingSpaceQuestions: (
|
|
14475
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14476
|
-
assertParamExists('reorderBookingSpaceQuestions', 'placeId', placeId);
|
|
14339
|
+
reorderBookingSpaceQuestions: (spaceId_1, reorderBookingSpaceQuestionsRequest_1, ...args_1) => __awaiter(this, [spaceId_1, reorderBookingSpaceQuestionsRequest_1, ...args_1], void 0, function* (spaceId, reorderBookingSpaceQuestionsRequest, options = {}) {
|
|
14477
14340
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14478
14341
|
assertParamExists('reorderBookingSpaceQuestions', 'spaceId', spaceId);
|
|
14479
14342
|
// verify required parameter 'reorderBookingSpaceQuestionsRequest' is not null or undefined
|
|
14480
14343
|
assertParamExists('reorderBookingSpaceQuestions', 'reorderBookingSpaceQuestionsRequest', reorderBookingSpaceQuestionsRequest);
|
|
14481
|
-
const localVarPath = `/bookings/
|
|
14482
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14344
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/reorder`
|
|
14483
14345
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
14484
14346
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14485
14347
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -14508,24 +14370,20 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14508
14370
|
/**
|
|
14509
14371
|
* Updates the properties of an existing booking space question, such as its name, label, description, or sort order, moving it among the space\'s other questions if the sort order changes; requires update permission on bookings.
|
|
14510
14372
|
* @summary Update a booking space question
|
|
14511
|
-
* @param {string} placeId The place identifier
|
|
14512
14373
|
* @param {string} spaceId The space identifier
|
|
14513
14374
|
* @param {string} questionId The question identifier
|
|
14514
14375
|
* @param {BookingSpaceQuestionUpdateInputs} bookingSpaceQuestionUpdateInputs
|
|
14515
14376
|
* @param {*} [options] Override http request option.
|
|
14516
14377
|
* @throws {RequiredError}
|
|
14517
14378
|
*/
|
|
14518
|
-
updateBookingSpaceQuestion: (
|
|
14519
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14520
|
-
assertParamExists('updateBookingSpaceQuestion', 'placeId', placeId);
|
|
14379
|
+
updateBookingSpaceQuestion: (spaceId_1, questionId_1, bookingSpaceQuestionUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, bookingSpaceQuestionUpdateInputs_1, ...args_1], void 0, function* (spaceId, questionId, bookingSpaceQuestionUpdateInputs, options = {}) {
|
|
14521
14380
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14522
14381
|
assertParamExists('updateBookingSpaceQuestion', 'spaceId', spaceId);
|
|
14523
14382
|
// verify required parameter 'questionId' is not null or undefined
|
|
14524
14383
|
assertParamExists('updateBookingSpaceQuestion', 'questionId', questionId);
|
|
14525
14384
|
// verify required parameter 'bookingSpaceQuestionUpdateInputs' is not null or undefined
|
|
14526
14385
|
assertParamExists('updateBookingSpaceQuestion', 'bookingSpaceQuestionUpdateInputs', bookingSpaceQuestionUpdateInputs);
|
|
14527
|
-
const localVarPath = `/bookings/
|
|
14528
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14386
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
14529
14387
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14530
14388
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14531
14389
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14563,17 +14421,16 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14563
14421
|
/**
|
|
14564
14422
|
* Links an existing search list to a booking space question so its options are sourced from that list, replacing any previously attached search list; requires update permission on bookings.
|
|
14565
14423
|
* @summary Attach a search list to a booking question
|
|
14566
|
-
* @param {string} placeId The place identifier
|
|
14567
14424
|
* @param {string} spaceId The space identifier
|
|
14568
14425
|
* @param {string} questionId The question identifier
|
|
14569
14426
|
* @param {AttachSearchListInputs} attachSearchListInputs
|
|
14570
14427
|
* @param {*} [options] Override http request option.
|
|
14571
14428
|
* @throws {RequiredError}
|
|
14572
14429
|
*/
|
|
14573
|
-
attachBookingSpaceQuestionSearchList(
|
|
14430
|
+
attachBookingSpaceQuestionSearchList(spaceId, questionId, attachSearchListInputs, options) {
|
|
14574
14431
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14575
14432
|
var _a, _b, _c;
|
|
14576
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachBookingSpaceQuestionSearchList(
|
|
14433
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachBookingSpaceQuestionSearchList(spaceId, questionId, attachSearchListInputs, options);
|
|
14577
14434
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14578
14435
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsApi.attachBookingSpaceQuestionSearchList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14579
14436
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14582,16 +14439,15 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14582
14439
|
/**
|
|
14583
14440
|
* Creates a new custom question (with optional choices) on a booking space, inserting it at the given sort order among the space\'s existing questions; requires update permission on bookings.
|
|
14584
14441
|
* @summary Create a booking space question
|
|
14585
|
-
* @param {string} placeId The place identifier
|
|
14586
14442
|
* @param {string} spaceId The space identifier
|
|
14587
14443
|
* @param {BookingSpaceQuestionCreateInputs} bookingSpaceQuestionCreateInputs
|
|
14588
14444
|
* @param {*} [options] Override http request option.
|
|
14589
14445
|
* @throws {RequiredError}
|
|
14590
14446
|
*/
|
|
14591
|
-
createBookingSpaceQuestion(
|
|
14447
|
+
createBookingSpaceQuestion(spaceId, bookingSpaceQuestionCreateInputs, options) {
|
|
14592
14448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14593
14449
|
var _a, _b, _c;
|
|
14594
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceQuestion(
|
|
14450
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceQuestion(spaceId, bookingSpaceQuestionCreateInputs, options);
|
|
14595
14451
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14596
14452
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsApi.createBookingSpaceQuestion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14597
14453
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14600,16 +14456,15 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14600
14456
|
/**
|
|
14601
14457
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
14602
14458
|
* @summary Delete a booking space question
|
|
14603
|
-
* @param {string} placeId The place identifier
|
|
14604
14459
|
* @param {string} spaceId The space identifier
|
|
14605
14460
|
* @param {string} questionId The question identifier
|
|
14606
14461
|
* @param {*} [options] Override http request option.
|
|
14607
14462
|
* @throws {RequiredError}
|
|
14608
14463
|
*/
|
|
14609
|
-
deleteBookingSpaceQuestion(
|
|
14464
|
+
deleteBookingSpaceQuestion(spaceId, questionId, options) {
|
|
14610
14465
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14611
14466
|
var _a, _b, _c;
|
|
14612
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestion(
|
|
14467
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestion(spaceId, questionId, options);
|
|
14613
14468
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14614
14469
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsApi.deleteBookingSpaceQuestion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14615
14470
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14618,16 +14473,15 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14618
14473
|
/**
|
|
14619
14474
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
14620
14475
|
* @summary Detach a search list from a booking question
|
|
14621
|
-
* @param {string} placeId The place identifier
|
|
14622
14476
|
* @param {string} spaceId The space identifier
|
|
14623
14477
|
* @param {string} questionId The question identifier
|
|
14624
14478
|
* @param {*} [options] Override http request option.
|
|
14625
14479
|
* @throws {RequiredError}
|
|
14626
14480
|
*/
|
|
14627
|
-
detachBookingSpaceQuestionSearchList(
|
|
14481
|
+
detachBookingSpaceQuestionSearchList(spaceId, questionId, options) {
|
|
14628
14482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14629
14483
|
var _a, _b, _c;
|
|
14630
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.detachBookingSpaceQuestionSearchList(
|
|
14484
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.detachBookingSpaceQuestionSearchList(spaceId, questionId, options);
|
|
14631
14485
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14632
14486
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsApi.detachBookingSpaceQuestionSearchList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14633
14487
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14636,16 +14490,15 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14636
14490
|
/**
|
|
14637
14491
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
14638
14492
|
* @summary Get a booking space question
|
|
14639
|
-
* @param {string} placeId The place identifier
|
|
14640
14493
|
* @param {string} spaceId The space identifier
|
|
14641
14494
|
* @param {string} questionId The question identifier
|
|
14642
14495
|
* @param {*} [options] Override http request option.
|
|
14643
14496
|
* @throws {RequiredError}
|
|
14644
14497
|
*/
|
|
14645
|
-
getBookingSpaceQuestion(
|
|
14498
|
+
getBookingSpaceQuestion(spaceId, questionId, options) {
|
|
14646
14499
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14647
14500
|
var _a, _b, _c;
|
|
14648
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestion(
|
|
14501
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestion(spaceId, questionId, options);
|
|
14649
14502
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14650
14503
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsApi.getBookingSpaceQuestion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14651
14504
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14654,7 +14507,6 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14654
14507
|
/**
|
|
14655
14508
|
* Returns a paginated list of the custom questions configured for a booking space, supporting search over the question\'s name, label, and description and sorting via orderBy; requires the \"read\" permission on \"bookings\".
|
|
14656
14509
|
* @summary List a booking space\'s custom questions
|
|
14657
|
-
* @param {string} placeId The place identifier
|
|
14658
14510
|
* @param {string} spaceId The space identifier
|
|
14659
14511
|
* @param {number} [page] Page number
|
|
14660
14512
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -14663,10 +14515,10 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14663
14515
|
* @param {*} [options] Override http request option.
|
|
14664
14516
|
* @throws {RequiredError}
|
|
14665
14517
|
*/
|
|
14666
|
-
getBookingSpaceQuestions(
|
|
14518
|
+
getBookingSpaceQuestions(spaceId, page, pageSize, orderBy, search, options) {
|
|
14667
14519
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14668
14520
|
var _a, _b, _c;
|
|
14669
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestions(
|
|
14521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestions(spaceId, page, pageSize, orderBy, search, options);
|
|
14670
14522
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14671
14523
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsApi.getBookingSpaceQuestions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14672
14524
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14675,16 +14527,15 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14675
14527
|
/**
|
|
14676
14528
|
* Sets the display order of all questions on a booking space by supplying the complete ordered list of question IDs; every existing question must be included or the request is rejected, and requires update permission on bookings.
|
|
14677
14529
|
* @summary Reorder a booking space\'s questions
|
|
14678
|
-
* @param {string} placeId The place identifier
|
|
14679
14530
|
* @param {string} spaceId The space identifier
|
|
14680
14531
|
* @param {ReorderBookingSpaceQuestionsRequest} reorderBookingSpaceQuestionsRequest
|
|
14681
14532
|
* @param {*} [options] Override http request option.
|
|
14682
14533
|
* @throws {RequiredError}
|
|
14683
14534
|
*/
|
|
14684
|
-
reorderBookingSpaceQuestions(
|
|
14535
|
+
reorderBookingSpaceQuestions(spaceId, reorderBookingSpaceQuestionsRequest, options) {
|
|
14685
14536
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14686
14537
|
var _a, _b, _c;
|
|
14687
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderBookingSpaceQuestions(
|
|
14538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderBookingSpaceQuestions(spaceId, reorderBookingSpaceQuestionsRequest, options);
|
|
14688
14539
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14689
14540
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsApi.reorderBookingSpaceQuestions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14690
14541
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14693,17 +14544,16 @@ export const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14693
14544
|
/**
|
|
14694
14545
|
* Updates the properties of an existing booking space question, such as its name, label, description, or sort order, moving it among the space\'s other questions if the sort order changes; requires update permission on bookings.
|
|
14695
14546
|
* @summary Update a booking space question
|
|
14696
|
-
* @param {string} placeId The place identifier
|
|
14697
14547
|
* @param {string} spaceId The space identifier
|
|
14698
14548
|
* @param {string} questionId The question identifier
|
|
14699
14549
|
* @param {BookingSpaceQuestionUpdateInputs} bookingSpaceQuestionUpdateInputs
|
|
14700
14550
|
* @param {*} [options] Override http request option.
|
|
14701
14551
|
* @throws {RequiredError}
|
|
14702
14552
|
*/
|
|
14703
|
-
updateBookingSpaceQuestion(
|
|
14553
|
+
updateBookingSpaceQuestion(spaceId, questionId, bookingSpaceQuestionUpdateInputs, options) {
|
|
14704
14554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14705
14555
|
var _a, _b, _c;
|
|
14706
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestion(
|
|
14556
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestion(spaceId, questionId, bookingSpaceQuestionUpdateInputs, options);
|
|
14707
14557
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14708
14558
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsApi.updateBookingSpaceQuestion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14709
14559
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14725,7 +14575,7 @@ export const BookingsQuestionsApiFactory = function (configuration, basePath, ax
|
|
|
14725
14575
|
* @throws {RequiredError}
|
|
14726
14576
|
*/
|
|
14727
14577
|
attachBookingSpaceQuestionSearchList(requestParameters, options) {
|
|
14728
|
-
return localVarFp.attachBookingSpaceQuestionSearchList(requestParameters.
|
|
14578
|
+
return localVarFp.attachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, requestParameters.attachSearchListInputs, options).then((request) => request(axios, basePath));
|
|
14729
14579
|
},
|
|
14730
14580
|
/**
|
|
14731
14581
|
* Creates a new custom question (with optional choices) on a booking space, inserting it at the given sort order among the space\'s existing questions; requires update permission on bookings.
|
|
@@ -14735,7 +14585,7 @@ export const BookingsQuestionsApiFactory = function (configuration, basePath, ax
|
|
|
14735
14585
|
* @throws {RequiredError}
|
|
14736
14586
|
*/
|
|
14737
14587
|
createBookingSpaceQuestion(requestParameters, options) {
|
|
14738
|
-
return localVarFp.createBookingSpaceQuestion(requestParameters.
|
|
14588
|
+
return localVarFp.createBookingSpaceQuestion(requestParameters.spaceId, requestParameters.bookingSpaceQuestionCreateInputs, options).then((request) => request(axios, basePath));
|
|
14739
14589
|
},
|
|
14740
14590
|
/**
|
|
14741
14591
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
@@ -14745,7 +14595,7 @@ export const BookingsQuestionsApiFactory = function (configuration, basePath, ax
|
|
|
14745
14595
|
* @throws {RequiredError}
|
|
14746
14596
|
*/
|
|
14747
14597
|
deleteBookingSpaceQuestion(requestParameters, options) {
|
|
14748
|
-
return localVarFp.deleteBookingSpaceQuestion(requestParameters.
|
|
14598
|
+
return localVarFp.deleteBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
14749
14599
|
},
|
|
14750
14600
|
/**
|
|
14751
14601
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
@@ -14755,7 +14605,7 @@ export const BookingsQuestionsApiFactory = function (configuration, basePath, ax
|
|
|
14755
14605
|
* @throws {RequiredError}
|
|
14756
14606
|
*/
|
|
14757
14607
|
detachBookingSpaceQuestionSearchList(requestParameters, options) {
|
|
14758
|
-
return localVarFp.detachBookingSpaceQuestionSearchList(requestParameters.
|
|
14608
|
+
return localVarFp.detachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
14759
14609
|
},
|
|
14760
14610
|
/**
|
|
14761
14611
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
@@ -14765,7 +14615,7 @@ export const BookingsQuestionsApiFactory = function (configuration, basePath, ax
|
|
|
14765
14615
|
* @throws {RequiredError}
|
|
14766
14616
|
*/
|
|
14767
14617
|
getBookingSpaceQuestion(requestParameters, options) {
|
|
14768
|
-
return localVarFp.getBookingSpaceQuestion(requestParameters.
|
|
14618
|
+
return localVarFp.getBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
14769
14619
|
},
|
|
14770
14620
|
/**
|
|
14771
14621
|
* Returns a paginated list of the custom questions configured for a booking space, supporting search over the question\'s name, label, and description and sorting via orderBy; requires the \"read\" permission on \"bookings\".
|
|
@@ -14775,7 +14625,7 @@ export const BookingsQuestionsApiFactory = function (configuration, basePath, ax
|
|
|
14775
14625
|
* @throws {RequiredError}
|
|
14776
14626
|
*/
|
|
14777
14627
|
getBookingSpaceQuestions(requestParameters, options) {
|
|
14778
|
-
return localVarFp.getBookingSpaceQuestions(requestParameters.
|
|
14628
|
+
return localVarFp.getBookingSpaceQuestions(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
14779
14629
|
},
|
|
14780
14630
|
/**
|
|
14781
14631
|
* Sets the display order of all questions on a booking space by supplying the complete ordered list of question IDs; every existing question must be included or the request is rejected, and requires update permission on bookings.
|
|
@@ -14785,7 +14635,7 @@ export const BookingsQuestionsApiFactory = function (configuration, basePath, ax
|
|
|
14785
14635
|
* @throws {RequiredError}
|
|
14786
14636
|
*/
|
|
14787
14637
|
reorderBookingSpaceQuestions(requestParameters, options) {
|
|
14788
|
-
return localVarFp.reorderBookingSpaceQuestions(requestParameters.
|
|
14638
|
+
return localVarFp.reorderBookingSpaceQuestions(requestParameters.spaceId, requestParameters.reorderBookingSpaceQuestionsRequest, options).then((request) => request(axios, basePath));
|
|
14789
14639
|
},
|
|
14790
14640
|
/**
|
|
14791
14641
|
* Updates the properties of an existing booking space question, such as its name, label, description, or sort order, moving it among the space\'s other questions if the sort order changes; requires update permission on bookings.
|
|
@@ -14795,7 +14645,7 @@ export const BookingsQuestionsApiFactory = function (configuration, basePath, ax
|
|
|
14795
14645
|
* @throws {RequiredError}
|
|
14796
14646
|
*/
|
|
14797
14647
|
updateBookingSpaceQuestion(requestParameters, options) {
|
|
14798
|
-
return localVarFp.updateBookingSpaceQuestion(requestParameters.
|
|
14648
|
+
return localVarFp.updateBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionUpdateInputs, options).then((request) => request(axios, basePath));
|
|
14799
14649
|
},
|
|
14800
14650
|
};
|
|
14801
14651
|
};
|
|
@@ -14811,7 +14661,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
14811
14661
|
* @throws {RequiredError}
|
|
14812
14662
|
*/
|
|
14813
14663
|
attachBookingSpaceQuestionSearchList(requestParameters, options) {
|
|
14814
|
-
return BookingsQuestionsApiFp(this.configuration).attachBookingSpaceQuestionSearchList(requestParameters.
|
|
14664
|
+
return BookingsQuestionsApiFp(this.configuration).attachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, requestParameters.attachSearchListInputs, options).then((request) => request(this.axios, this.basePath));
|
|
14815
14665
|
}
|
|
14816
14666
|
/**
|
|
14817
14667
|
* Creates a new custom question (with optional choices) on a booking space, inserting it at the given sort order among the space\'s existing questions; requires update permission on bookings.
|
|
@@ -14821,7 +14671,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
14821
14671
|
* @throws {RequiredError}
|
|
14822
14672
|
*/
|
|
14823
14673
|
createBookingSpaceQuestion(requestParameters, options) {
|
|
14824
|
-
return BookingsQuestionsApiFp(this.configuration).createBookingSpaceQuestion(requestParameters.
|
|
14674
|
+
return BookingsQuestionsApiFp(this.configuration).createBookingSpaceQuestion(requestParameters.spaceId, requestParameters.bookingSpaceQuestionCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
14825
14675
|
}
|
|
14826
14676
|
/**
|
|
14827
14677
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
@@ -14831,7 +14681,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
14831
14681
|
* @throws {RequiredError}
|
|
14832
14682
|
*/
|
|
14833
14683
|
deleteBookingSpaceQuestion(requestParameters, options) {
|
|
14834
|
-
return BookingsQuestionsApiFp(this.configuration).deleteBookingSpaceQuestion(requestParameters.
|
|
14684
|
+
return BookingsQuestionsApiFp(this.configuration).deleteBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
14835
14685
|
}
|
|
14836
14686
|
/**
|
|
14837
14687
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
@@ -14841,7 +14691,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
14841
14691
|
* @throws {RequiredError}
|
|
14842
14692
|
*/
|
|
14843
14693
|
detachBookingSpaceQuestionSearchList(requestParameters, options) {
|
|
14844
|
-
return BookingsQuestionsApiFp(this.configuration).detachBookingSpaceQuestionSearchList(requestParameters.
|
|
14694
|
+
return BookingsQuestionsApiFp(this.configuration).detachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
14845
14695
|
}
|
|
14846
14696
|
/**
|
|
14847
14697
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
@@ -14851,7 +14701,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
14851
14701
|
* @throws {RequiredError}
|
|
14852
14702
|
*/
|
|
14853
14703
|
getBookingSpaceQuestion(requestParameters, options) {
|
|
14854
|
-
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestion(requestParameters.
|
|
14704
|
+
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
14855
14705
|
}
|
|
14856
14706
|
/**
|
|
14857
14707
|
* Returns a paginated list of the custom questions configured for a booking space, supporting search over the question\'s name, label, and description and sorting via orderBy; requires the \"read\" permission on \"bookings\".
|
|
@@ -14861,7 +14711,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
14861
14711
|
* @throws {RequiredError}
|
|
14862
14712
|
*/
|
|
14863
14713
|
getBookingSpaceQuestions(requestParameters, options) {
|
|
14864
|
-
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestions(requestParameters.
|
|
14714
|
+
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestions(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
14865
14715
|
}
|
|
14866
14716
|
/**
|
|
14867
14717
|
* Sets the display order of all questions on a booking space by supplying the complete ordered list of question IDs; every existing question must be included or the request is rejected, and requires update permission on bookings.
|
|
@@ -14871,7 +14721,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
14871
14721
|
* @throws {RequiredError}
|
|
14872
14722
|
*/
|
|
14873
14723
|
reorderBookingSpaceQuestions(requestParameters, options) {
|
|
14874
|
-
return BookingsQuestionsApiFp(this.configuration).reorderBookingSpaceQuestions(requestParameters.
|
|
14724
|
+
return BookingsQuestionsApiFp(this.configuration).reorderBookingSpaceQuestions(requestParameters.spaceId, requestParameters.reorderBookingSpaceQuestionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14875
14725
|
}
|
|
14876
14726
|
/**
|
|
14877
14727
|
* Updates the properties of an existing booking space question, such as its name, label, description, or sort order, moving it among the space\'s other questions if the sort order changes; requires update permission on bookings.
|
|
@@ -14881,7 +14731,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
14881
14731
|
* @throws {RequiredError}
|
|
14882
14732
|
*/
|
|
14883
14733
|
updateBookingSpaceQuestion(requestParameters, options) {
|
|
14884
|
-
return BookingsQuestionsApiFp(this.configuration).updateBookingSpaceQuestion(requestParameters.
|
|
14734
|
+
return BookingsQuestionsApiFp(this.configuration).updateBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
14885
14735
|
}
|
|
14886
14736
|
}
|
|
14887
14737
|
/**
|
|
@@ -14892,24 +14742,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
14892
14742
|
/**
|
|
14893
14743
|
* Creates a new selectable choice for a multiple-choice question on a booking space, requires the update bookings permission.
|
|
14894
14744
|
* @summary Create a booking space question choice
|
|
14895
|
-
* @param {string} placeId The place identifier
|
|
14896
14745
|
* @param {string} spaceId The space identifier
|
|
14897
14746
|
* @param {string} questionId The question identifier
|
|
14898
14747
|
* @param {BookingSpaceQuestionChoiceCreateInputs} bookingSpaceQuestionChoiceCreateInputs
|
|
14899
14748
|
* @param {*} [options] Override http request option.
|
|
14900
14749
|
* @throws {RequiredError}
|
|
14901
14750
|
*/
|
|
14902
|
-
createBookingSpaceQuestionChoice: (
|
|
14903
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14904
|
-
assertParamExists('createBookingSpaceQuestionChoice', 'placeId', placeId);
|
|
14751
|
+
createBookingSpaceQuestionChoice: (spaceId_1, questionId_1, bookingSpaceQuestionChoiceCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, bookingSpaceQuestionChoiceCreateInputs_1, ...args_1], void 0, function* (spaceId, questionId, bookingSpaceQuestionChoiceCreateInputs, options = {}) {
|
|
14905
14752
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14906
14753
|
assertParamExists('createBookingSpaceQuestionChoice', 'spaceId', spaceId);
|
|
14907
14754
|
// verify required parameter 'questionId' is not null or undefined
|
|
14908
14755
|
assertParamExists('createBookingSpaceQuestionChoice', 'questionId', questionId);
|
|
14909
14756
|
// verify required parameter 'bookingSpaceQuestionChoiceCreateInputs' is not null or undefined
|
|
14910
14757
|
assertParamExists('createBookingSpaceQuestionChoice', 'bookingSpaceQuestionChoiceCreateInputs', bookingSpaceQuestionChoiceCreateInputs);
|
|
14911
|
-
const localVarPath = `/bookings/
|
|
14912
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14758
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices`
|
|
14913
14759
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14914
14760
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14915
14761
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14939,24 +14785,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
14939
14785
|
/**
|
|
14940
14786
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
14941
14787
|
* @summary Delete a booking space question choice
|
|
14942
|
-
* @param {string} placeId The place identifier
|
|
14943
14788
|
* @param {string} spaceId The space identifier
|
|
14944
14789
|
* @param {string} questionId The question identifier
|
|
14945
14790
|
* @param {string} choiceId The choice identifier
|
|
14946
14791
|
* @param {*} [options] Override http request option.
|
|
14947
14792
|
* @throws {RequiredError}
|
|
14948
14793
|
*/
|
|
14949
|
-
deleteBookingSpaceQuestionChoice: (
|
|
14950
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14951
|
-
assertParamExists('deleteBookingSpaceQuestionChoice', 'placeId', placeId);
|
|
14794
|
+
deleteBookingSpaceQuestionChoice: (spaceId_1, questionId_1, choiceId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, choiceId_1, ...args_1], void 0, function* (spaceId, questionId, choiceId, options = {}) {
|
|
14952
14795
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14953
14796
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'spaceId', spaceId);
|
|
14954
14797
|
// verify required parameter 'questionId' is not null or undefined
|
|
14955
14798
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'questionId', questionId);
|
|
14956
14799
|
// verify required parameter 'choiceId' is not null or undefined
|
|
14957
14800
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'choiceId', choiceId);
|
|
14958
|
-
const localVarPath = `/bookings/
|
|
14959
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14801
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
14960
14802
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14961
14803
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
14962
14804
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -14985,24 +14827,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
14985
14827
|
/**
|
|
14986
14828
|
* Returns a single selectable answer choice for a question on a booking space, identified by place, space, question, and choice ID; requires \"read\" permission on \"bookings\".
|
|
14987
14829
|
* @summary Get a booking space question choice
|
|
14988
|
-
* @param {string} placeId The place identifier
|
|
14989
14830
|
* @param {string} spaceId The space identifier
|
|
14990
14831
|
* @param {string} questionId The question identifier
|
|
14991
14832
|
* @param {string} choiceId The choice identifier
|
|
14992
14833
|
* @param {*} [options] Override http request option.
|
|
14993
14834
|
* @throws {RequiredError}
|
|
14994
14835
|
*/
|
|
14995
|
-
getBookingSpaceQuestionChoice: (
|
|
14996
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14997
|
-
assertParamExists('getBookingSpaceQuestionChoice', 'placeId', placeId);
|
|
14836
|
+
getBookingSpaceQuestionChoice: (spaceId_1, questionId_1, choiceId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, choiceId_1, ...args_1], void 0, function* (spaceId, questionId, choiceId, options = {}) {
|
|
14998
14837
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14999
14838
|
assertParamExists('getBookingSpaceQuestionChoice', 'spaceId', spaceId);
|
|
15000
14839
|
// verify required parameter 'questionId' is not null or undefined
|
|
15001
14840
|
assertParamExists('getBookingSpaceQuestionChoice', 'questionId', questionId);
|
|
15002
14841
|
// verify required parameter 'choiceId' is not null or undefined
|
|
15003
14842
|
assertParamExists('getBookingSpaceQuestionChoice', 'choiceId', choiceId);
|
|
15004
|
-
const localVarPath = `/bookings/
|
|
15005
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14843
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
15006
14844
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15007
14845
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15008
14846
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -15031,7 +14869,6 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
15031
14869
|
/**
|
|
15032
14870
|
* Returns a paginated list of selectable answer choices for a given question on a booking space, supporting search and ordering; requires \"read\" permission on \"bookings\".
|
|
15033
14871
|
* @summary List a booking space question\'s choices
|
|
15034
|
-
* @param {string} placeId The place identifier
|
|
15035
14872
|
* @param {string} spaceId The space identifier
|
|
15036
14873
|
* @param {string} questionId The question identifier
|
|
15037
14874
|
* @param {number} [page] Page number
|
|
@@ -15041,15 +14878,12 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
15041
14878
|
* @param {*} [options] Override http request option.
|
|
15042
14879
|
* @throws {RequiredError}
|
|
15043
14880
|
*/
|
|
15044
|
-
getBookingSpaceQuestionChoices: (
|
|
15045
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15046
|
-
assertParamExists('getBookingSpaceQuestionChoices', 'placeId', placeId);
|
|
14881
|
+
getBookingSpaceQuestionChoices: (spaceId_1, questionId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (spaceId, questionId, page, pageSize, orderBy, search, options = {}) {
|
|
15047
14882
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15048
14883
|
assertParamExists('getBookingSpaceQuestionChoices', 'spaceId', spaceId);
|
|
15049
14884
|
// verify required parameter 'questionId' is not null or undefined
|
|
15050
14885
|
assertParamExists('getBookingSpaceQuestionChoices', 'questionId', questionId);
|
|
15051
|
-
const localVarPath = `/bookings/
|
|
15052
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14886
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices`
|
|
15053
14887
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15054
14888
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
15055
14889
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15089,24 +14923,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
15089
14923
|
/**
|
|
15090
14924
|
* Sets the display order of a booking space question\'s choices by supplying the full list of choice IDs in the desired sequence, requires the update bookings permission.
|
|
15091
14925
|
* @summary Reorder a booking question\'s choices
|
|
15092
|
-
* @param {string} placeId The place identifier
|
|
15093
14926
|
* @param {string} spaceId The space identifier
|
|
15094
14927
|
* @param {string} questionId The question identifier
|
|
15095
14928
|
* @param {ReorderBookingSpaceQuestionChoicesRequest} reorderBookingSpaceQuestionChoicesRequest
|
|
15096
14929
|
* @param {*} [options] Override http request option.
|
|
15097
14930
|
* @throws {RequiredError}
|
|
15098
14931
|
*/
|
|
15099
|
-
reorderBookingSpaceQuestionChoices: (
|
|
15100
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15101
|
-
assertParamExists('reorderBookingSpaceQuestionChoices', 'placeId', placeId);
|
|
14932
|
+
reorderBookingSpaceQuestionChoices: (spaceId_1, questionId_1, reorderBookingSpaceQuestionChoicesRequest_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, reorderBookingSpaceQuestionChoicesRequest_1, ...args_1], void 0, function* (spaceId, questionId, reorderBookingSpaceQuestionChoicesRequest, options = {}) {
|
|
15102
14933
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15103
14934
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'spaceId', spaceId);
|
|
15104
14935
|
// verify required parameter 'questionId' is not null or undefined
|
|
15105
14936
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'questionId', questionId);
|
|
15106
14937
|
// verify required parameter 'reorderBookingSpaceQuestionChoicesRequest' is not null or undefined
|
|
15107
14938
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'reorderBookingSpaceQuestionChoicesRequest', reorderBookingSpaceQuestionChoicesRequest);
|
|
15108
|
-
const localVarPath = `/bookings/
|
|
15109
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14939
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/reorder`
|
|
15110
14940
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15111
14941
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
15112
14942
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15136,7 +14966,6 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
15136
14966
|
/**
|
|
15137
14967
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
15138
14968
|
* @summary Update a booking space question choice
|
|
15139
|
-
* @param {string} placeId The place identifier
|
|
15140
14969
|
* @param {string} spaceId The space identifier
|
|
15141
14970
|
* @param {string} questionId The question identifier
|
|
15142
14971
|
* @param {string} choiceId The choice identifier
|
|
@@ -15144,9 +14973,7 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
15144
14973
|
* @param {*} [options] Override http request option.
|
|
15145
14974
|
* @throws {RequiredError}
|
|
15146
14975
|
*/
|
|
15147
|
-
updateBookingSpaceQuestionChoice: (
|
|
15148
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15149
|
-
assertParamExists('updateBookingSpaceQuestionChoice', 'placeId', placeId);
|
|
14976
|
+
updateBookingSpaceQuestionChoice: (spaceId_1, questionId_1, choiceId_1, bookingSpaceQuestionChoiceUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, choiceId_1, bookingSpaceQuestionChoiceUpdateInputs_1, ...args_1], void 0, function* (spaceId, questionId, choiceId, bookingSpaceQuestionChoiceUpdateInputs, options = {}) {
|
|
15150
14977
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15151
14978
|
assertParamExists('updateBookingSpaceQuestionChoice', 'spaceId', spaceId);
|
|
15152
14979
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15155,8 +14982,7 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
15155
14982
|
assertParamExists('updateBookingSpaceQuestionChoice', 'choiceId', choiceId);
|
|
15156
14983
|
// verify required parameter 'bookingSpaceQuestionChoiceUpdateInputs' is not null or undefined
|
|
15157
14984
|
assertParamExists('updateBookingSpaceQuestionChoice', 'bookingSpaceQuestionChoiceUpdateInputs', bookingSpaceQuestionChoiceUpdateInputs);
|
|
15158
|
-
const localVarPath = `/bookings/
|
|
15159
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14985
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
15160
14986
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15161
14987
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15162
14988
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -15195,17 +15021,16 @@ export const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15195
15021
|
/**
|
|
15196
15022
|
* Creates a new selectable choice for a multiple-choice question on a booking space, requires the update bookings permission.
|
|
15197
15023
|
* @summary Create a booking space question choice
|
|
15198
|
-
* @param {string} placeId The place identifier
|
|
15199
15024
|
* @param {string} spaceId The space identifier
|
|
15200
15025
|
* @param {string} questionId The question identifier
|
|
15201
15026
|
* @param {BookingSpaceQuestionChoiceCreateInputs} bookingSpaceQuestionChoiceCreateInputs
|
|
15202
15027
|
* @param {*} [options] Override http request option.
|
|
15203
15028
|
* @throws {RequiredError}
|
|
15204
15029
|
*/
|
|
15205
|
-
createBookingSpaceQuestionChoice(
|
|
15030
|
+
createBookingSpaceQuestionChoice(spaceId, questionId, bookingSpaceQuestionChoiceCreateInputs, options) {
|
|
15206
15031
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15207
15032
|
var _a, _b, _c;
|
|
15208
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceQuestionChoice(
|
|
15033
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceQuestionChoice(spaceId, questionId, bookingSpaceQuestionChoiceCreateInputs, options);
|
|
15209
15034
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15210
15035
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesApi.createBookingSpaceQuestionChoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15211
15036
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15214,17 +15039,16 @@ export const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15214
15039
|
/**
|
|
15215
15040
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
15216
15041
|
* @summary Delete a booking space question choice
|
|
15217
|
-
* @param {string} placeId The place identifier
|
|
15218
15042
|
* @param {string} spaceId The space identifier
|
|
15219
15043
|
* @param {string} questionId The question identifier
|
|
15220
15044
|
* @param {string} choiceId The choice identifier
|
|
15221
15045
|
* @param {*} [options] Override http request option.
|
|
15222
15046
|
* @throws {RequiredError}
|
|
15223
15047
|
*/
|
|
15224
|
-
deleteBookingSpaceQuestionChoice(
|
|
15048
|
+
deleteBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options) {
|
|
15225
15049
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15226
15050
|
var _a, _b, _c;
|
|
15227
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionChoice(
|
|
15051
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options);
|
|
15228
15052
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15229
15053
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesApi.deleteBookingSpaceQuestionChoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15230
15054
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15233,17 +15057,16 @@ export const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15233
15057
|
/**
|
|
15234
15058
|
* Returns a single selectable answer choice for a question on a booking space, identified by place, space, question, and choice ID; requires \"read\" permission on \"bookings\".
|
|
15235
15059
|
* @summary Get a booking space question choice
|
|
15236
|
-
* @param {string} placeId The place identifier
|
|
15237
15060
|
* @param {string} spaceId The space identifier
|
|
15238
15061
|
* @param {string} questionId The question identifier
|
|
15239
15062
|
* @param {string} choiceId The choice identifier
|
|
15240
15063
|
* @param {*} [options] Override http request option.
|
|
15241
15064
|
* @throws {RequiredError}
|
|
15242
15065
|
*/
|
|
15243
|
-
getBookingSpaceQuestionChoice(
|
|
15066
|
+
getBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options) {
|
|
15244
15067
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15245
15068
|
var _a, _b, _c;
|
|
15246
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoice(
|
|
15069
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options);
|
|
15247
15070
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15248
15071
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesApi.getBookingSpaceQuestionChoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15249
15072
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15252,7 +15075,6 @@ export const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15252
15075
|
/**
|
|
15253
15076
|
* Returns a paginated list of selectable answer choices for a given question on a booking space, supporting search and ordering; requires \"read\" permission on \"bookings\".
|
|
15254
15077
|
* @summary List a booking space question\'s choices
|
|
15255
|
-
* @param {string} placeId The place identifier
|
|
15256
15078
|
* @param {string} spaceId The space identifier
|
|
15257
15079
|
* @param {string} questionId The question identifier
|
|
15258
15080
|
* @param {number} [page] Page number
|
|
@@ -15262,10 +15084,10 @@ export const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15262
15084
|
* @param {*} [options] Override http request option.
|
|
15263
15085
|
* @throws {RequiredError}
|
|
15264
15086
|
*/
|
|
15265
|
-
getBookingSpaceQuestionChoices(
|
|
15087
|
+
getBookingSpaceQuestionChoices(spaceId, questionId, page, pageSize, orderBy, search, options) {
|
|
15266
15088
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15267
15089
|
var _a, _b, _c;
|
|
15268
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoices(
|
|
15090
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoices(spaceId, questionId, page, pageSize, orderBy, search, options);
|
|
15269
15091
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15270
15092
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesApi.getBookingSpaceQuestionChoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15271
15093
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15274,17 +15096,16 @@ export const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15274
15096
|
/**
|
|
15275
15097
|
* Sets the display order of a booking space question\'s choices by supplying the full list of choice IDs in the desired sequence, requires the update bookings permission.
|
|
15276
15098
|
* @summary Reorder a booking question\'s choices
|
|
15277
|
-
* @param {string} placeId The place identifier
|
|
15278
15099
|
* @param {string} spaceId The space identifier
|
|
15279
15100
|
* @param {string} questionId The question identifier
|
|
15280
15101
|
* @param {ReorderBookingSpaceQuestionChoicesRequest} reorderBookingSpaceQuestionChoicesRequest
|
|
15281
15102
|
* @param {*} [options] Override http request option.
|
|
15282
15103
|
* @throws {RequiredError}
|
|
15283
15104
|
*/
|
|
15284
|
-
reorderBookingSpaceQuestionChoices(
|
|
15105
|
+
reorderBookingSpaceQuestionChoices(spaceId, questionId, reorderBookingSpaceQuestionChoicesRequest, options) {
|
|
15285
15106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15286
15107
|
var _a, _b, _c;
|
|
15287
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderBookingSpaceQuestionChoices(
|
|
15108
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderBookingSpaceQuestionChoices(spaceId, questionId, reorderBookingSpaceQuestionChoicesRequest, options);
|
|
15288
15109
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15289
15110
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesApi.reorderBookingSpaceQuestionChoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15290
15111
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15293,7 +15114,6 @@ export const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15293
15114
|
/**
|
|
15294
15115
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
15295
15116
|
* @summary Update a booking space question choice
|
|
15296
|
-
* @param {string} placeId The place identifier
|
|
15297
15117
|
* @param {string} spaceId The space identifier
|
|
15298
15118
|
* @param {string} questionId The question identifier
|
|
15299
15119
|
* @param {string} choiceId The choice identifier
|
|
@@ -15301,10 +15121,10 @@ export const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15301
15121
|
* @param {*} [options] Override http request option.
|
|
15302
15122
|
* @throws {RequiredError}
|
|
15303
15123
|
*/
|
|
15304
|
-
updateBookingSpaceQuestionChoice(
|
|
15124
|
+
updateBookingSpaceQuestionChoice(spaceId, questionId, choiceId, bookingSpaceQuestionChoiceUpdateInputs, options) {
|
|
15305
15125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15306
15126
|
var _a, _b, _c;
|
|
15307
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionChoice(
|
|
15127
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionChoice(spaceId, questionId, choiceId, bookingSpaceQuestionChoiceUpdateInputs, options);
|
|
15308
15128
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15309
15129
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesApi.updateBookingSpaceQuestionChoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15310
15130
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15326,7 +15146,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration, baseP
|
|
|
15326
15146
|
* @throws {RequiredError}
|
|
15327
15147
|
*/
|
|
15328
15148
|
createBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15329
|
-
return localVarFp.createBookingSpaceQuestionChoice(requestParameters.
|
|
15149
|
+
return localVarFp.createBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionChoiceCreateInputs, options).then((request) => request(axios, basePath));
|
|
15330
15150
|
},
|
|
15331
15151
|
/**
|
|
15332
15152
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
@@ -15336,7 +15156,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration, baseP
|
|
|
15336
15156
|
* @throws {RequiredError}
|
|
15337
15157
|
*/
|
|
15338
15158
|
deleteBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15339
|
-
return localVarFp.deleteBookingSpaceQuestionChoice(requestParameters.
|
|
15159
|
+
return localVarFp.deleteBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
15340
15160
|
},
|
|
15341
15161
|
/**
|
|
15342
15162
|
* Returns a single selectable answer choice for a question on a booking space, identified by place, space, question, and choice ID; requires \"read\" permission on \"bookings\".
|
|
@@ -15346,7 +15166,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration, baseP
|
|
|
15346
15166
|
* @throws {RequiredError}
|
|
15347
15167
|
*/
|
|
15348
15168
|
getBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15349
|
-
return localVarFp.getBookingSpaceQuestionChoice(requestParameters.
|
|
15169
|
+
return localVarFp.getBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
15350
15170
|
},
|
|
15351
15171
|
/**
|
|
15352
15172
|
* Returns a paginated list of selectable answer choices for a given question on a booking space, supporting search and ordering; requires \"read\" permission on \"bookings\".
|
|
@@ -15356,7 +15176,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration, baseP
|
|
|
15356
15176
|
* @throws {RequiredError}
|
|
15357
15177
|
*/
|
|
15358
15178
|
getBookingSpaceQuestionChoices(requestParameters, options) {
|
|
15359
|
-
return localVarFp.getBookingSpaceQuestionChoices(requestParameters.
|
|
15179
|
+
return localVarFp.getBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
15360
15180
|
},
|
|
15361
15181
|
/**
|
|
15362
15182
|
* Sets the display order of a booking space question\'s choices by supplying the full list of choice IDs in the desired sequence, requires the update bookings permission.
|
|
@@ -15366,7 +15186,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration, baseP
|
|
|
15366
15186
|
* @throws {RequiredError}
|
|
15367
15187
|
*/
|
|
15368
15188
|
reorderBookingSpaceQuestionChoices(requestParameters, options) {
|
|
15369
|
-
return localVarFp.reorderBookingSpaceQuestionChoices(requestParameters.
|
|
15189
|
+
return localVarFp.reorderBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.reorderBookingSpaceQuestionChoicesRequest, options).then((request) => request(axios, basePath));
|
|
15370
15190
|
},
|
|
15371
15191
|
/**
|
|
15372
15192
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
@@ -15376,7 +15196,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration, baseP
|
|
|
15376
15196
|
* @throws {RequiredError}
|
|
15377
15197
|
*/
|
|
15378
15198
|
updateBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15379
|
-
return localVarFp.updateBookingSpaceQuestionChoice(requestParameters.
|
|
15199
|
+
return localVarFp.updateBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.bookingSpaceQuestionChoiceUpdateInputs, options).then((request) => request(axios, basePath));
|
|
15380
15200
|
},
|
|
15381
15201
|
};
|
|
15382
15202
|
};
|
|
@@ -15392,7 +15212,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
15392
15212
|
* @throws {RequiredError}
|
|
15393
15213
|
*/
|
|
15394
15214
|
createBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15395
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).createBookingSpaceQuestionChoice(requestParameters.
|
|
15215
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).createBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionChoiceCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
15396
15216
|
}
|
|
15397
15217
|
/**
|
|
15398
15218
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
@@ -15402,7 +15222,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
15402
15222
|
* @throws {RequiredError}
|
|
15403
15223
|
*/
|
|
15404
15224
|
deleteBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15405
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).deleteBookingSpaceQuestionChoice(requestParameters.
|
|
15225
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).deleteBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
15406
15226
|
}
|
|
15407
15227
|
/**
|
|
15408
15228
|
* Returns a single selectable answer choice for a question on a booking space, identified by place, space, question, and choice ID; requires \"read\" permission on \"bookings\".
|
|
@@ -15412,7 +15232,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
15412
15232
|
* @throws {RequiredError}
|
|
15413
15233
|
*/
|
|
15414
15234
|
getBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15415
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoice(requestParameters.
|
|
15235
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
15416
15236
|
}
|
|
15417
15237
|
/**
|
|
15418
15238
|
* Returns a paginated list of selectable answer choices for a given question on a booking space, supporting search and ordering; requires \"read\" permission on \"bookings\".
|
|
@@ -15422,7 +15242,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
15422
15242
|
* @throws {RequiredError}
|
|
15423
15243
|
*/
|
|
15424
15244
|
getBookingSpaceQuestionChoices(requestParameters, options) {
|
|
15425
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoices(requestParameters.
|
|
15245
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
15426
15246
|
}
|
|
15427
15247
|
/**
|
|
15428
15248
|
* Sets the display order of a booking space question\'s choices by supplying the full list of choice IDs in the desired sequence, requires the update bookings permission.
|
|
@@ -15432,7 +15252,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
15432
15252
|
* @throws {RequiredError}
|
|
15433
15253
|
*/
|
|
15434
15254
|
reorderBookingSpaceQuestionChoices(requestParameters, options) {
|
|
15435
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).reorderBookingSpaceQuestionChoices(requestParameters.
|
|
15255
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).reorderBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.reorderBookingSpaceQuestionChoicesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15436
15256
|
}
|
|
15437
15257
|
/**
|
|
15438
15258
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
@@ -15442,7 +15262,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
15442
15262
|
* @throws {RequiredError}
|
|
15443
15263
|
*/
|
|
15444
15264
|
updateBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15445
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).updateBookingSpaceQuestionChoice(requestParameters.
|
|
15265
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).updateBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.bookingSpaceQuestionChoiceUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
15446
15266
|
}
|
|
15447
15267
|
}
|
|
15448
15268
|
/**
|
|
@@ -15453,7 +15273,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15453
15273
|
/**
|
|
15454
15274
|
* Removes the translation for a specific locale from a booking space question choice, requires the update bookings permission.
|
|
15455
15275
|
* @summary Delete a booking question choice\'s translation
|
|
15456
|
-
* @param {string} placeId The place identifier
|
|
15457
15276
|
* @param {string} spaceId The space identifier
|
|
15458
15277
|
* @param {string} questionId The question identifier
|
|
15459
15278
|
* @param {string} choiceId The choice identifier
|
|
@@ -15461,9 +15280,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15461
15280
|
* @param {*} [options] Override http request option.
|
|
15462
15281
|
* @throws {RequiredError}
|
|
15463
15282
|
*/
|
|
15464
|
-
deleteBookingSpaceQuestionChoiceTranslation: (
|
|
15465
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15466
|
-
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'placeId', placeId);
|
|
15283
|
+
deleteBookingSpaceQuestionChoiceTranslation: (spaceId_1, questionId_1, choiceId_1, locale_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, choiceId_1, locale_1, ...args_1], void 0, function* (spaceId, questionId, choiceId, locale, options = {}) {
|
|
15467
15284
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15468
15285
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId);
|
|
15469
15286
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15472,8 +15289,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15472
15289
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'choiceId', choiceId);
|
|
15473
15290
|
// verify required parameter 'locale' is not null or undefined
|
|
15474
15291
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'locale', locale);
|
|
15475
|
-
const localVarPath = `/bookings/
|
|
15476
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15292
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
15477
15293
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15478
15294
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15479
15295
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -15503,7 +15319,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15503
15319
|
/**
|
|
15504
15320
|
* Returns the translated text for a booking space question choice in the given locale, or null if no translation exists for that locale; requires \"read\" permission on \"bookings\".
|
|
15505
15321
|
* @summary Get a booking question choice\'s translation
|
|
15506
|
-
* @param {string} placeId The place identifier
|
|
15507
15322
|
* @param {string} spaceId The space identifier
|
|
15508
15323
|
* @param {string} questionId The question identifier
|
|
15509
15324
|
* @param {string} choiceId The choice identifier
|
|
@@ -15511,9 +15326,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15511
15326
|
* @param {*} [options] Override http request option.
|
|
15512
15327
|
* @throws {RequiredError}
|
|
15513
15328
|
*/
|
|
15514
|
-
getBookingSpaceQuestionChoiceTranslation: (
|
|
15515
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15516
|
-
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'placeId', placeId);
|
|
15329
|
+
getBookingSpaceQuestionChoiceTranslation: (spaceId_1, questionId_1, choiceId_1, locale_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, choiceId_1, locale_1, ...args_1], void 0, function* (spaceId, questionId, choiceId, locale, options = {}) {
|
|
15517
15330
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15518
15331
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId);
|
|
15519
15332
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15522,8 +15335,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15522
15335
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'choiceId', choiceId);
|
|
15523
15336
|
// verify required parameter 'locale' is not null or undefined
|
|
15524
15337
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'locale', locale);
|
|
15525
|
-
const localVarPath = `/bookings/
|
|
15526
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15338
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
15527
15339
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15528
15340
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15529
15341
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -15553,24 +15365,20 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15553
15365
|
/**
|
|
15554
15366
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
15555
15367
|
* @summary List a booking question choice\'s translations
|
|
15556
|
-
* @param {string} placeId The place identifier
|
|
15557
15368
|
* @param {string} spaceId The space identifier
|
|
15558
15369
|
* @param {string} questionId The question identifier
|
|
15559
15370
|
* @param {string} choiceId The choice identifier
|
|
15560
15371
|
* @param {*} [options] Override http request option.
|
|
15561
15372
|
* @throws {RequiredError}
|
|
15562
15373
|
*/
|
|
15563
|
-
getBookingSpaceQuestionChoiceTranslations: (
|
|
15564
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15565
|
-
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'placeId', placeId);
|
|
15374
|
+
getBookingSpaceQuestionChoiceTranslations: (spaceId_1, questionId_1, choiceId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, choiceId_1, ...args_1], void 0, function* (spaceId, questionId, choiceId, options = {}) {
|
|
15566
15375
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15567
15376
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'spaceId', spaceId);
|
|
15568
15377
|
// verify required parameter 'questionId' is not null or undefined
|
|
15569
15378
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'questionId', questionId);
|
|
15570
15379
|
// verify required parameter 'choiceId' is not null or undefined
|
|
15571
15380
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'choiceId', choiceId);
|
|
15572
|
-
const localVarPath = `/bookings/
|
|
15573
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15381
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations`
|
|
15574
15382
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15575
15383
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15576
15384
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -15599,7 +15407,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15599
15407
|
/**
|
|
15600
15408
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
15601
15409
|
* @summary Update a booking question choice\'s translation
|
|
15602
|
-
* @param {string} placeId The place identifier
|
|
15603
15410
|
* @param {string} spaceId The space identifier
|
|
15604
15411
|
* @param {string} questionId The question identifier
|
|
15605
15412
|
* @param {string} choiceId The choice identifier
|
|
@@ -15608,9 +15415,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15608
15415
|
* @param {*} [options] Override http request option.
|
|
15609
15416
|
* @throws {RequiredError}
|
|
15610
15417
|
*/
|
|
15611
|
-
updateBookingSpaceQuestionChoiceTranslation: (
|
|
15612
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15613
|
-
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'placeId', placeId);
|
|
15418
|
+
updateBookingSpaceQuestionChoiceTranslation: (spaceId_1, questionId_1, choiceId_1, locale_1, bookingSpaceQuestionChoiceTranslationUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, choiceId_1, locale_1, bookingSpaceQuestionChoiceTranslationUpdateInputs_1, ...args_1], void 0, function* (spaceId, questionId, choiceId, locale, bookingSpaceQuestionChoiceTranslationUpdateInputs, options = {}) {
|
|
15614
15419
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15615
15420
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId);
|
|
15616
15421
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15621,8 +15426,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
15621
15426
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'locale', locale);
|
|
15622
15427
|
// verify required parameter 'bookingSpaceQuestionChoiceTranslationUpdateInputs' is not null or undefined
|
|
15623
15428
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'bookingSpaceQuestionChoiceTranslationUpdateInputs', bookingSpaceQuestionChoiceTranslationUpdateInputs);
|
|
15624
|
-
const localVarPath = `/bookings/
|
|
15625
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15429
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
15626
15430
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15627
15431
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15628
15432
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -15662,7 +15466,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function (configuration
|
|
|
15662
15466
|
/**
|
|
15663
15467
|
* Removes the translation for a specific locale from a booking space question choice, requires the update bookings permission.
|
|
15664
15468
|
* @summary Delete a booking question choice\'s translation
|
|
15665
|
-
* @param {string} placeId The place identifier
|
|
15666
15469
|
* @param {string} spaceId The space identifier
|
|
15667
15470
|
* @param {string} questionId The question identifier
|
|
15668
15471
|
* @param {string} choiceId The choice identifier
|
|
@@ -15670,10 +15473,10 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function (configuration
|
|
|
15670
15473
|
* @param {*} [options] Override http request option.
|
|
15671
15474
|
* @throws {RequiredError}
|
|
15672
15475
|
*/
|
|
15673
|
-
deleteBookingSpaceQuestionChoiceTranslation(
|
|
15476
|
+
deleteBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options) {
|
|
15674
15477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15675
15478
|
var _a, _b, _c;
|
|
15676
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionChoiceTranslation(
|
|
15479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options);
|
|
15677
15480
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15678
15481
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesTranslationsApi.deleteBookingSpaceQuestionChoiceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15679
15482
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15682,7 +15485,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function (configuration
|
|
|
15682
15485
|
/**
|
|
15683
15486
|
* Returns the translated text for a booking space question choice in the given locale, or null if no translation exists for that locale; requires \"read\" permission on \"bookings\".
|
|
15684
15487
|
* @summary Get a booking question choice\'s translation
|
|
15685
|
-
* @param {string} placeId The place identifier
|
|
15686
15488
|
* @param {string} spaceId The space identifier
|
|
15687
15489
|
* @param {string} questionId The question identifier
|
|
15688
15490
|
* @param {string} choiceId The choice identifier
|
|
@@ -15690,10 +15492,10 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function (configuration
|
|
|
15690
15492
|
* @param {*} [options] Override http request option.
|
|
15691
15493
|
* @throws {RequiredError}
|
|
15692
15494
|
*/
|
|
15693
|
-
getBookingSpaceQuestionChoiceTranslation(
|
|
15495
|
+
getBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options) {
|
|
15694
15496
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15695
15497
|
var _a, _b, _c;
|
|
15696
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslation(
|
|
15498
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options);
|
|
15697
15499
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15698
15500
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesTranslationsApi.getBookingSpaceQuestionChoiceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15699
15501
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15702,17 +15504,16 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function (configuration
|
|
|
15702
15504
|
/**
|
|
15703
15505
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
15704
15506
|
* @summary List a booking question choice\'s translations
|
|
15705
|
-
* @param {string} placeId The place identifier
|
|
15706
15507
|
* @param {string} spaceId The space identifier
|
|
15707
15508
|
* @param {string} questionId The question identifier
|
|
15708
15509
|
* @param {string} choiceId The choice identifier
|
|
15709
15510
|
* @param {*} [options] Override http request option.
|
|
15710
15511
|
* @throws {RequiredError}
|
|
15711
15512
|
*/
|
|
15712
|
-
getBookingSpaceQuestionChoiceTranslations(
|
|
15513
|
+
getBookingSpaceQuestionChoiceTranslations(spaceId, questionId, choiceId, options) {
|
|
15713
15514
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15714
15515
|
var _a, _b, _c;
|
|
15715
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslations(
|
|
15516
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslations(spaceId, questionId, choiceId, options);
|
|
15716
15517
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15717
15518
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesTranslationsApi.getBookingSpaceQuestionChoiceTranslations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15718
15519
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15721,7 +15522,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function (configuration
|
|
|
15721
15522
|
/**
|
|
15722
15523
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
15723
15524
|
* @summary Update a booking question choice\'s translation
|
|
15724
|
-
* @param {string} placeId The place identifier
|
|
15725
15525
|
* @param {string} spaceId The space identifier
|
|
15726
15526
|
* @param {string} questionId The question identifier
|
|
15727
15527
|
* @param {string} choiceId The choice identifier
|
|
@@ -15730,10 +15530,10 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function (configuration
|
|
|
15730
15530
|
* @param {*} [options] Override http request option.
|
|
15731
15531
|
* @throws {RequiredError}
|
|
15732
15532
|
*/
|
|
15733
|
-
updateBookingSpaceQuestionChoiceTranslation(
|
|
15533
|
+
updateBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, bookingSpaceQuestionChoiceTranslationUpdateInputs, options) {
|
|
15734
15534
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15735
15535
|
var _a, _b, _c;
|
|
15736
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionChoiceTranslation(
|
|
15536
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, bookingSpaceQuestionChoiceTranslationUpdateInputs, options);
|
|
15737
15537
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15738
15538
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsChoicesTranslationsApi.updateBookingSpaceQuestionChoiceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15739
15539
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15755,7 +15555,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
15755
15555
|
* @throws {RequiredError}
|
|
15756
15556
|
*/
|
|
15757
15557
|
deleteBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15758
|
-
return localVarFp.deleteBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15558
|
+
return localVarFp.deleteBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
15759
15559
|
},
|
|
15760
15560
|
/**
|
|
15761
15561
|
* Returns the translated text for a booking space question choice in the given locale, or null if no translation exists for that locale; requires \"read\" permission on \"bookings\".
|
|
@@ -15765,7 +15565,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
15765
15565
|
* @throws {RequiredError}
|
|
15766
15566
|
*/
|
|
15767
15567
|
getBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15768
|
-
return localVarFp.getBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15568
|
+
return localVarFp.getBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
15769
15569
|
},
|
|
15770
15570
|
/**
|
|
15771
15571
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
@@ -15775,7 +15575,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
15775
15575
|
* @throws {RequiredError}
|
|
15776
15576
|
*/
|
|
15777
15577
|
getBookingSpaceQuestionChoiceTranslations(requestParameters, options) {
|
|
15778
|
-
return localVarFp.getBookingSpaceQuestionChoiceTranslations(requestParameters.
|
|
15578
|
+
return localVarFp.getBookingSpaceQuestionChoiceTranslations(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
15779
15579
|
},
|
|
15780
15580
|
/**
|
|
15781
15581
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
@@ -15785,7 +15585,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
15785
15585
|
* @throws {RequiredError}
|
|
15786
15586
|
*/
|
|
15787
15587
|
updateBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15788
|
-
return localVarFp.updateBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15588
|
+
return localVarFp.updateBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, requestParameters.bookingSpaceQuestionChoiceTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
15789
15589
|
},
|
|
15790
15590
|
};
|
|
15791
15591
|
};
|
|
@@ -15801,7 +15601,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
15801
15601
|
* @throws {RequiredError}
|
|
15802
15602
|
*/
|
|
15803
15603
|
deleteBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15804
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15604
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
15805
15605
|
}
|
|
15806
15606
|
/**
|
|
15807
15607
|
* Returns the translated text for a booking space question choice in the given locale, or null if no translation exists for that locale; requires \"read\" permission on \"bookings\".
|
|
@@ -15811,7 +15611,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
15811
15611
|
* @throws {RequiredError}
|
|
15812
15612
|
*/
|
|
15813
15613
|
getBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15814
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15614
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
15815
15615
|
}
|
|
15816
15616
|
/**
|
|
15817
15617
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
@@ -15821,7 +15621,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
15821
15621
|
* @throws {RequiredError}
|
|
15822
15622
|
*/
|
|
15823
15623
|
getBookingSpaceQuestionChoiceTranslations(requestParameters, options) {
|
|
15824
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslations(requestParameters.
|
|
15624
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslations(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
15825
15625
|
}
|
|
15826
15626
|
/**
|
|
15827
15627
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
@@ -15831,7 +15631,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
15831
15631
|
* @throws {RequiredError}
|
|
15832
15632
|
*/
|
|
15833
15633
|
updateBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15834
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).updateBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15634
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).updateBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, requestParameters.bookingSpaceQuestionChoiceTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
15835
15635
|
}
|
|
15836
15636
|
}
|
|
15837
15637
|
/**
|
|
@@ -15842,24 +15642,20 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
15842
15642
|
/**
|
|
15843
15643
|
* Deletes the translation for the given locale on a booking space question, removing that language\'s localized label, description, and other translated fields; requires update permission on bookings.
|
|
15844
15644
|
* @summary Delete a booking question translation
|
|
15845
|
-
* @param {string} placeId The place identifier
|
|
15846
15645
|
* @param {string} spaceId The space identifier
|
|
15847
15646
|
* @param {string} questionId The question identifier
|
|
15848
15647
|
* @param {string} locale The locale identifier
|
|
15849
15648
|
* @param {*} [options] Override http request option.
|
|
15850
15649
|
* @throws {RequiredError}
|
|
15851
15650
|
*/
|
|
15852
|
-
deleteBookingSpaceQuestionTranslation: (
|
|
15853
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15854
|
-
assertParamExists('deleteBookingSpaceQuestionTranslation', 'placeId', placeId);
|
|
15651
|
+
deleteBookingSpaceQuestionTranslation: (spaceId_1, questionId_1, locale_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, locale_1, ...args_1], void 0, function* (spaceId, questionId, locale, options = {}) {
|
|
15855
15652
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15856
15653
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'spaceId', spaceId);
|
|
15857
15654
|
// verify required parameter 'questionId' is not null or undefined
|
|
15858
15655
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'questionId', questionId);
|
|
15859
15656
|
// verify required parameter 'locale' is not null or undefined
|
|
15860
15657
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'locale', locale);
|
|
15861
|
-
const localVarPath = `/bookings/
|
|
15862
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15658
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
15863
15659
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15864
15660
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15865
15661
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -15888,24 +15684,20 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
15888
15684
|
/**
|
|
15889
15685
|
* Retrieves the translated label, description, and choices for a booking space question in a specific locale, returning null if no translation exists for that locale; requires the \"read\" permission on \"bookings\".
|
|
15890
15686
|
* @summary Get a booking question\'s translation
|
|
15891
|
-
* @param {string} placeId The place identifier
|
|
15892
15687
|
* @param {string} spaceId The space identifier
|
|
15893
15688
|
* @param {string} questionId The question identifier
|
|
15894
15689
|
* @param {string} locale The locale identifier
|
|
15895
15690
|
* @param {*} [options] Override http request option.
|
|
15896
15691
|
* @throws {RequiredError}
|
|
15897
15692
|
*/
|
|
15898
|
-
getBookingSpaceQuestionTranslation: (
|
|
15899
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15900
|
-
assertParamExists('getBookingSpaceQuestionTranslation', 'placeId', placeId);
|
|
15693
|
+
getBookingSpaceQuestionTranslation: (spaceId_1, questionId_1, locale_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, locale_1, ...args_1], void 0, function* (spaceId, questionId, locale, options = {}) {
|
|
15901
15694
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15902
15695
|
assertParamExists('getBookingSpaceQuestionTranslation', 'spaceId', spaceId);
|
|
15903
15696
|
// verify required parameter 'questionId' is not null or undefined
|
|
15904
15697
|
assertParamExists('getBookingSpaceQuestionTranslation', 'questionId', questionId);
|
|
15905
15698
|
// verify required parameter 'locale' is not null or undefined
|
|
15906
15699
|
assertParamExists('getBookingSpaceQuestionTranslation', 'locale', locale);
|
|
15907
|
-
const localVarPath = `/bookings/
|
|
15908
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15700
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
15909
15701
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15910
15702
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15911
15703
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -15934,21 +15726,17 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
15934
15726
|
/**
|
|
15935
15727
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
15936
15728
|
* @summary List a booking question\'s translations
|
|
15937
|
-
* @param {string} placeId The place identifier
|
|
15938
15729
|
* @param {string} spaceId The space identifier
|
|
15939
15730
|
* @param {string} questionId The question identifier
|
|
15940
15731
|
* @param {*} [options] Override http request option.
|
|
15941
15732
|
* @throws {RequiredError}
|
|
15942
15733
|
*/
|
|
15943
|
-
getBookingSpaceQuestionTranslations: (
|
|
15944
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15945
|
-
assertParamExists('getBookingSpaceQuestionTranslations', 'placeId', placeId);
|
|
15734
|
+
getBookingSpaceQuestionTranslations: (spaceId_1, questionId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, ...args_1], void 0, function* (spaceId, questionId, options = {}) {
|
|
15946
15735
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15947
15736
|
assertParamExists('getBookingSpaceQuestionTranslations', 'spaceId', spaceId);
|
|
15948
15737
|
// verify required parameter 'questionId' is not null or undefined
|
|
15949
15738
|
assertParamExists('getBookingSpaceQuestionTranslations', 'questionId', questionId);
|
|
15950
|
-
const localVarPath = `/bookings/
|
|
15951
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15739
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations`
|
|
15952
15740
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15953
15741
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
15954
15742
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15976,7 +15764,6 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
15976
15764
|
/**
|
|
15977
15765
|
* Creates or updates the localized content (such as label and description) for a booking space question in the given locale; requires update permission on bookings.
|
|
15978
15766
|
* @summary Update a booking question translation
|
|
15979
|
-
* @param {string} placeId The place identifier
|
|
15980
15767
|
* @param {string} spaceId The space identifier
|
|
15981
15768
|
* @param {string} questionId The question identifier
|
|
15982
15769
|
* @param {string} locale The locale identifier
|
|
@@ -15984,9 +15771,7 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
15984
15771
|
* @param {*} [options] Override http request option.
|
|
15985
15772
|
* @throws {RequiredError}
|
|
15986
15773
|
*/
|
|
15987
|
-
updateBookingSpaceQuestionTranslation: (
|
|
15988
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15989
|
-
assertParamExists('updateBookingSpaceQuestionTranslation', 'placeId', placeId);
|
|
15774
|
+
updateBookingSpaceQuestionTranslation: (spaceId_1, questionId_1, locale_1, bookingSpaceQuestionTranslationUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, locale_1, bookingSpaceQuestionTranslationUpdateInputs_1, ...args_1], void 0, function* (spaceId, questionId, locale, bookingSpaceQuestionTranslationUpdateInputs, options = {}) {
|
|
15990
15775
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15991
15776
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'spaceId', spaceId);
|
|
15992
15777
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15995,8 +15780,7 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
15995
15780
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'locale', locale);
|
|
15996
15781
|
// verify required parameter 'bookingSpaceQuestionTranslationUpdateInputs' is not null or undefined
|
|
15997
15782
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'bookingSpaceQuestionTranslationUpdateInputs', bookingSpaceQuestionTranslationUpdateInputs);
|
|
15998
|
-
const localVarPath = `/bookings/
|
|
15999
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15783
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
16000
15784
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16001
15785
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
16002
15786
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -16035,17 +15819,16 @@ export const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16035
15819
|
/**
|
|
16036
15820
|
* Deletes the translation for the given locale on a booking space question, removing that language\'s localized label, description, and other translated fields; requires update permission on bookings.
|
|
16037
15821
|
* @summary Delete a booking question translation
|
|
16038
|
-
* @param {string} placeId The place identifier
|
|
16039
15822
|
* @param {string} spaceId The space identifier
|
|
16040
15823
|
* @param {string} questionId The question identifier
|
|
16041
15824
|
* @param {string} locale The locale identifier
|
|
16042
15825
|
* @param {*} [options] Override http request option.
|
|
16043
15826
|
* @throws {RequiredError}
|
|
16044
15827
|
*/
|
|
16045
|
-
deleteBookingSpaceQuestionTranslation(
|
|
15828
|
+
deleteBookingSpaceQuestionTranslation(spaceId, questionId, locale, options) {
|
|
16046
15829
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16047
15830
|
var _a, _b, _c;
|
|
16048
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionTranslation(
|
|
15831
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionTranslation(spaceId, questionId, locale, options);
|
|
16049
15832
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16050
15833
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsTranslationsApi.deleteBookingSpaceQuestionTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16051
15834
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16054,17 +15837,16 @@ export const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16054
15837
|
/**
|
|
16055
15838
|
* Retrieves the translated label, description, and choices for a booking space question in a specific locale, returning null if no translation exists for that locale; requires the \"read\" permission on \"bookings\".
|
|
16056
15839
|
* @summary Get a booking question\'s translation
|
|
16057
|
-
* @param {string} placeId The place identifier
|
|
16058
15840
|
* @param {string} spaceId The space identifier
|
|
16059
15841
|
* @param {string} questionId The question identifier
|
|
16060
15842
|
* @param {string} locale The locale identifier
|
|
16061
15843
|
* @param {*} [options] Override http request option.
|
|
16062
15844
|
* @throws {RequiredError}
|
|
16063
15845
|
*/
|
|
16064
|
-
getBookingSpaceQuestionTranslation(
|
|
15846
|
+
getBookingSpaceQuestionTranslation(spaceId, questionId, locale, options) {
|
|
16065
15847
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16066
15848
|
var _a, _b, _c;
|
|
16067
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionTranslation(
|
|
15849
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionTranslation(spaceId, questionId, locale, options);
|
|
16068
15850
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16069
15851
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsTranslationsApi.getBookingSpaceQuestionTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16070
15852
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16073,16 +15855,15 @@ export const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16073
15855
|
/**
|
|
16074
15856
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
16075
15857
|
* @summary List a booking question\'s translations
|
|
16076
|
-
* @param {string} placeId The place identifier
|
|
16077
15858
|
* @param {string} spaceId The space identifier
|
|
16078
15859
|
* @param {string} questionId The question identifier
|
|
16079
15860
|
* @param {*} [options] Override http request option.
|
|
16080
15861
|
* @throws {RequiredError}
|
|
16081
15862
|
*/
|
|
16082
|
-
getBookingSpaceQuestionTranslations(
|
|
15863
|
+
getBookingSpaceQuestionTranslations(spaceId, questionId, options) {
|
|
16083
15864
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16084
15865
|
var _a, _b, _c;
|
|
16085
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionTranslations(
|
|
15866
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionTranslations(spaceId, questionId, options);
|
|
16086
15867
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16087
15868
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsTranslationsApi.getBookingSpaceQuestionTranslations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16088
15869
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16091,7 +15872,6 @@ export const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16091
15872
|
/**
|
|
16092
15873
|
* Creates or updates the localized content (such as label and description) for a booking space question in the given locale; requires update permission on bookings.
|
|
16093
15874
|
* @summary Update a booking question translation
|
|
16094
|
-
* @param {string} placeId The place identifier
|
|
16095
15875
|
* @param {string} spaceId The space identifier
|
|
16096
15876
|
* @param {string} questionId The question identifier
|
|
16097
15877
|
* @param {string} locale The locale identifier
|
|
@@ -16099,10 +15879,10 @@ export const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16099
15879
|
* @param {*} [options] Override http request option.
|
|
16100
15880
|
* @throws {RequiredError}
|
|
16101
15881
|
*/
|
|
16102
|
-
updateBookingSpaceQuestionTranslation(
|
|
15882
|
+
updateBookingSpaceQuestionTranslation(spaceId, questionId, locale, bookingSpaceQuestionTranslationUpdateInputs, options) {
|
|
16103
15883
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16104
15884
|
var _a, _b, _c;
|
|
16105
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionTranslation(
|
|
15885
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionTranslation(spaceId, questionId, locale, bookingSpaceQuestionTranslationUpdateInputs, options);
|
|
16106
15886
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16107
15887
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsQuestionsTranslationsApi.updateBookingSpaceQuestionTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16108
15888
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16124,7 +15904,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration,
|
|
|
16124
15904
|
* @throws {RequiredError}
|
|
16125
15905
|
*/
|
|
16126
15906
|
deleteBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16127
|
-
return localVarFp.deleteBookingSpaceQuestionTranslation(requestParameters.
|
|
15907
|
+
return localVarFp.deleteBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
16128
15908
|
},
|
|
16129
15909
|
/**
|
|
16130
15910
|
* Retrieves the translated label, description, and choices for a booking space question in a specific locale, returning null if no translation exists for that locale; requires the \"read\" permission on \"bookings\".
|
|
@@ -16134,7 +15914,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration,
|
|
|
16134
15914
|
* @throws {RequiredError}
|
|
16135
15915
|
*/
|
|
16136
15916
|
getBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16137
|
-
return localVarFp.getBookingSpaceQuestionTranslation(requestParameters.
|
|
15917
|
+
return localVarFp.getBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
16138
15918
|
},
|
|
16139
15919
|
/**
|
|
16140
15920
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
@@ -16144,7 +15924,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration,
|
|
|
16144
15924
|
* @throws {RequiredError}
|
|
16145
15925
|
*/
|
|
16146
15926
|
getBookingSpaceQuestionTranslations(requestParameters, options) {
|
|
16147
|
-
return localVarFp.getBookingSpaceQuestionTranslations(requestParameters.
|
|
15927
|
+
return localVarFp.getBookingSpaceQuestionTranslations(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
16148
15928
|
},
|
|
16149
15929
|
/**
|
|
16150
15930
|
* Creates or updates the localized content (such as label and description) for a booking space question in the given locale; requires update permission on bookings.
|
|
@@ -16154,7 +15934,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration,
|
|
|
16154
15934
|
* @throws {RequiredError}
|
|
16155
15935
|
*/
|
|
16156
15936
|
updateBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16157
|
-
return localVarFp.updateBookingSpaceQuestionTranslation(requestParameters.
|
|
15937
|
+
return localVarFp.updateBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
16158
15938
|
},
|
|
16159
15939
|
};
|
|
16160
15940
|
};
|
|
@@ -16170,7 +15950,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
16170
15950
|
* @throws {RequiredError}
|
|
16171
15951
|
*/
|
|
16172
15952
|
deleteBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16173
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionTranslation(requestParameters.
|
|
15953
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
16174
15954
|
}
|
|
16175
15955
|
/**
|
|
16176
15956
|
* Retrieves the translated label, description, and choices for a booking space question in a specific locale, returning null if no translation exists for that locale; requires the \"read\" permission on \"bookings\".
|
|
@@ -16180,7 +15960,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
16180
15960
|
* @throws {RequiredError}
|
|
16181
15961
|
*/
|
|
16182
15962
|
getBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16183
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslation(requestParameters.
|
|
15963
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
16184
15964
|
}
|
|
16185
15965
|
/**
|
|
16186
15966
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
@@ -16190,7 +15970,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
16190
15970
|
* @throws {RequiredError}
|
|
16191
15971
|
*/
|
|
16192
15972
|
getBookingSpaceQuestionTranslations(requestParameters, options) {
|
|
16193
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslations(requestParameters.
|
|
15973
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslations(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
16194
15974
|
}
|
|
16195
15975
|
/**
|
|
16196
15976
|
* Creates or updates the localized content (such as label and description) for a booking space question in the given locale; requires update permission on bookings.
|
|
@@ -16200,7 +15980,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
16200
15980
|
* @throws {RequiredError}
|
|
16201
15981
|
*/
|
|
16202
15982
|
updateBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16203
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.
|
|
15983
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16204
15984
|
}
|
|
16205
15985
|
}
|
|
16206
15986
|
/**
|
|
@@ -16265,24 +16045,20 @@ export const BookingsResponsesApiAxiosParamCreator = function (configuration) {
|
|
|
16265
16045
|
/**
|
|
16266
16046
|
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16267
16047
|
* @summary Update a booking\'s question responses
|
|
16268
|
-
* @param {string} placeId The place identifier
|
|
16269
16048
|
* @param {string} spaceId The space identifier
|
|
16270
16049
|
* @param {string} bookingId The booking identifier
|
|
16271
16050
|
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
16272
16051
|
* @param {*} [options] Override http request option.
|
|
16273
16052
|
* @throws {RequiredError}
|
|
16274
16053
|
*/
|
|
16275
|
-
updateBookingResponses: (
|
|
16276
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16277
|
-
assertParamExists('updateBookingResponses', 'placeId', placeId);
|
|
16054
|
+
updateBookingResponses: (spaceId_1, bookingId_1, updateBookingResponsesInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, updateBookingResponsesInputs_1, ...args_1], void 0, function* (spaceId, bookingId, updateBookingResponsesInputs, options = {}) {
|
|
16278
16055
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16279
16056
|
assertParamExists('updateBookingResponses', 'spaceId', spaceId);
|
|
16280
16057
|
// verify required parameter 'bookingId' is not null or undefined
|
|
16281
16058
|
assertParamExists('updateBookingResponses', 'bookingId', bookingId);
|
|
16282
16059
|
// verify required parameter 'updateBookingResponsesInputs' is not null or undefined
|
|
16283
16060
|
assertParamExists('updateBookingResponses', 'updateBookingResponsesInputs', updateBookingResponsesInputs);
|
|
16284
|
-
const localVarPath = `/bookings/
|
|
16285
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16061
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/responses`
|
|
16286
16062
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16287
16063
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
16288
16064
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -16341,17 +16117,16 @@ export const BookingsResponsesApiFp = function (configuration) {
|
|
|
16341
16117
|
/**
|
|
16342
16118
|
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16343
16119
|
* @summary Update a booking\'s question responses
|
|
16344
|
-
* @param {string} placeId The place identifier
|
|
16345
16120
|
* @param {string} spaceId The space identifier
|
|
16346
16121
|
* @param {string} bookingId The booking identifier
|
|
16347
16122
|
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
16348
16123
|
* @param {*} [options] Override http request option.
|
|
16349
16124
|
* @throws {RequiredError}
|
|
16350
16125
|
*/
|
|
16351
|
-
updateBookingResponses(
|
|
16126
|
+
updateBookingResponses(spaceId, bookingId, updateBookingResponsesInputs, options) {
|
|
16352
16127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16353
16128
|
var _a, _b, _c;
|
|
16354
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingResponses(
|
|
16129
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingResponses(spaceId, bookingId, updateBookingResponsesInputs, options);
|
|
16355
16130
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16356
16131
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsResponsesApi.updateBookingResponses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16357
16132
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16383,7 +16158,7 @@ export const BookingsResponsesApiFactory = function (configuration, basePath, ax
|
|
|
16383
16158
|
* @throws {RequiredError}
|
|
16384
16159
|
*/
|
|
16385
16160
|
updateBookingResponses(requestParameters, options) {
|
|
16386
|
-
return localVarFp.updateBookingResponses(requestParameters.
|
|
16161
|
+
return localVarFp.updateBookingResponses(requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(axios, basePath));
|
|
16387
16162
|
},
|
|
16388
16163
|
};
|
|
16389
16164
|
};
|
|
@@ -16409,7 +16184,7 @@ export class BookingsResponsesApi extends BaseAPI {
|
|
|
16409
16184
|
* @throws {RequiredError}
|
|
16410
16185
|
*/
|
|
16411
16186
|
updateBookingResponses(requestParameters, options) {
|
|
16412
|
-
return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.
|
|
16187
|
+
return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16413
16188
|
}
|
|
16414
16189
|
}
|
|
16415
16190
|
/**
|
|
@@ -16418,20 +16193,16 @@ export class BookingsResponsesApi extends BaseAPI {
|
|
|
16418
16193
|
export const BookingsSpacesApiAxiosParamCreator = function (configuration) {
|
|
16419
16194
|
return {
|
|
16420
16195
|
/**
|
|
16421
|
-
* Creates a new bookable space
|
|
16196
|
+
* Creates a new bookable space optionally linked to any combination of place, event, group, and account parent ids (all null = no parents; still appears in the org-wide list), requires the update bookings permission, and assigns the space a sort order relative to existing spaces if none is provided.
|
|
16422
16197
|
* @summary Create a booking space
|
|
16423
|
-
* @param {string} placeId The place identifier
|
|
16424
16198
|
* @param {BookingSpaceCreateInputs} bookingSpaceCreateInputs
|
|
16425
16199
|
* @param {*} [options] Override http request option.
|
|
16426
16200
|
* @throws {RequiredError}
|
|
16427
16201
|
*/
|
|
16428
|
-
createBookingSpace: (
|
|
16429
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16430
|
-
assertParamExists('createBookingSpace', 'placeId', placeId);
|
|
16202
|
+
createBookingSpace: (bookingSpaceCreateInputs_1, ...args_1) => __awaiter(this, [bookingSpaceCreateInputs_1, ...args_1], void 0, function* (bookingSpaceCreateInputs, options = {}) {
|
|
16431
16203
|
// verify required parameter 'bookingSpaceCreateInputs' is not null or undefined
|
|
16432
16204
|
assertParamExists('createBookingSpace', 'bookingSpaceCreateInputs', bookingSpaceCreateInputs);
|
|
16433
|
-
const localVarPath = `/bookings/
|
|
16434
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)));
|
|
16205
|
+
const localVarPath = `/bookings/spaces`;
|
|
16435
16206
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16436
16207
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16437
16208
|
let baseOptions;
|
|
@@ -16457,20 +16228,16 @@ export const BookingsSpacesApiAxiosParamCreator = function (configuration) {
|
|
|
16457
16228
|
};
|
|
16458
16229
|
}),
|
|
16459
16230
|
/**
|
|
16460
|
-
* Deletes a booking space
|
|
16231
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
16461
16232
|
* @summary Delete a booking space
|
|
16462
|
-
* @param {string} placeId The place identifier
|
|
16463
16233
|
* @param {string} spaceId The space identifier
|
|
16464
16234
|
* @param {*} [options] Override http request option.
|
|
16465
16235
|
* @throws {RequiredError}
|
|
16466
16236
|
*/
|
|
16467
|
-
deleteBookingSpace: (
|
|
16468
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16469
|
-
assertParamExists('deleteBookingSpace', 'placeId', placeId);
|
|
16237
|
+
deleteBookingSpace: (spaceId_1, ...args_1) => __awaiter(this, [spaceId_1, ...args_1], void 0, function* (spaceId, options = {}) {
|
|
16470
16238
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16471
16239
|
assertParamExists('deleteBookingSpace', 'spaceId', spaceId);
|
|
16472
|
-
const localVarPath = `/bookings/
|
|
16473
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16240
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
16474
16241
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
16475
16242
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16476
16243
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -16495,23 +16262,19 @@ export const BookingsSpacesApiAxiosParamCreator = function (configuration) {
|
|
|
16495
16262
|
};
|
|
16496
16263
|
}),
|
|
16497
16264
|
/**
|
|
16498
|
-
* Updates the attributes of an existing booking space
|
|
16265
|
+
* Updates the attributes of an existing booking space, including optional parent link changes (any combination of place/event/group/account ids; send null to unlink), and requires the update bookings permission.
|
|
16499
16266
|
* @summary Update a booking space
|
|
16500
|
-
* @param {string} placeId The place identifier
|
|
16501
16267
|
* @param {string} spaceId The space identifier
|
|
16502
16268
|
* @param {BookingSpaceUpdateInputs} bookingSpaceUpdateInputs
|
|
16503
16269
|
* @param {*} [options] Override http request option.
|
|
16504
16270
|
* @throws {RequiredError}
|
|
16505
16271
|
*/
|
|
16506
|
-
updateBookingSpace: (
|
|
16507
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16508
|
-
assertParamExists('updateBookingSpace', 'placeId', placeId);
|
|
16272
|
+
updateBookingSpace: (spaceId_1, bookingSpaceUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingSpaceUpdateInputs_1, ...args_1], void 0, function* (spaceId, bookingSpaceUpdateInputs, options = {}) {
|
|
16509
16273
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16510
16274
|
assertParamExists('updateBookingSpace', 'spaceId', spaceId);
|
|
16511
16275
|
// verify required parameter 'bookingSpaceUpdateInputs' is not null or undefined
|
|
16512
16276
|
assertParamExists('updateBookingSpace', 'bookingSpaceUpdateInputs', bookingSpaceUpdateInputs);
|
|
16513
|
-
const localVarPath = `/bookings/
|
|
16514
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16277
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
16515
16278
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
16516
16279
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16517
16280
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -16546,52 +16309,49 @@ export const BookingsSpacesApiFp = function (configuration) {
|
|
|
16546
16309
|
const localVarAxiosParamCreator = BookingsSpacesApiAxiosParamCreator(configuration);
|
|
16547
16310
|
return {
|
|
16548
16311
|
/**
|
|
16549
|
-
* Creates a new bookable space
|
|
16312
|
+
* Creates a new bookable space optionally linked to any combination of place, event, group, and account parent ids (all null = no parents; still appears in the org-wide list), requires the update bookings permission, and assigns the space a sort order relative to existing spaces if none is provided.
|
|
16550
16313
|
* @summary Create a booking space
|
|
16551
|
-
* @param {string} placeId The place identifier
|
|
16552
16314
|
* @param {BookingSpaceCreateInputs} bookingSpaceCreateInputs
|
|
16553
16315
|
* @param {*} [options] Override http request option.
|
|
16554
16316
|
* @throws {RequiredError}
|
|
16555
16317
|
*/
|
|
16556
|
-
createBookingSpace(
|
|
16318
|
+
createBookingSpace(bookingSpaceCreateInputs, options) {
|
|
16557
16319
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16558
16320
|
var _a, _b, _c;
|
|
16559
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpace(
|
|
16321
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpace(bookingSpaceCreateInputs, options);
|
|
16560
16322
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16561
16323
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsSpacesApi.createBookingSpace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16562
16324
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16563
16325
|
});
|
|
16564
16326
|
},
|
|
16565
16327
|
/**
|
|
16566
|
-
* Deletes a booking space
|
|
16328
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
16567
16329
|
* @summary Delete a booking space
|
|
16568
|
-
* @param {string} placeId The place identifier
|
|
16569
16330
|
* @param {string} spaceId The space identifier
|
|
16570
16331
|
* @param {*} [options] Override http request option.
|
|
16571
16332
|
* @throws {RequiredError}
|
|
16572
16333
|
*/
|
|
16573
|
-
deleteBookingSpace(
|
|
16334
|
+
deleteBookingSpace(spaceId, options) {
|
|
16574
16335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16575
16336
|
var _a, _b, _c;
|
|
16576
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpace(
|
|
16337
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpace(spaceId, options);
|
|
16577
16338
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16578
16339
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsSpacesApi.deleteBookingSpace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16579
16340
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16580
16341
|
});
|
|
16581
16342
|
},
|
|
16582
16343
|
/**
|
|
16583
|
-
* Updates the attributes of an existing booking space
|
|
16344
|
+
* Updates the attributes of an existing booking space, including optional parent link changes (any combination of place/event/group/account ids; send null to unlink), and requires the update bookings permission.
|
|
16584
16345
|
* @summary Update a booking space
|
|
16585
|
-
* @param {string} placeId The place identifier
|
|
16586
16346
|
* @param {string} spaceId The space identifier
|
|
16587
16347
|
* @param {BookingSpaceUpdateInputs} bookingSpaceUpdateInputs
|
|
16588
16348
|
* @param {*} [options] Override http request option.
|
|
16589
16349
|
* @throws {RequiredError}
|
|
16590
16350
|
*/
|
|
16591
|
-
updateBookingSpace(
|
|
16351
|
+
updateBookingSpace(spaceId, bookingSpaceUpdateInputs, options) {
|
|
16592
16352
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16593
16353
|
var _a, _b, _c;
|
|
16594
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpace(
|
|
16354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpace(spaceId, bookingSpaceUpdateInputs, options);
|
|
16595
16355
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16596
16356
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsSpacesApi.updateBookingSpace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16597
16357
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16606,34 +16366,34 @@ export const BookingsSpacesApiFactory = function (configuration, basePath, axios
|
|
|
16606
16366
|
const localVarFp = BookingsSpacesApiFp(configuration);
|
|
16607
16367
|
return {
|
|
16608
16368
|
/**
|
|
16609
|
-
* Creates a new bookable space
|
|
16369
|
+
* Creates a new bookable space optionally linked to any combination of place, event, group, and account parent ids (all null = no parents; still appears in the org-wide list), requires the update bookings permission, and assigns the space a sort order relative to existing spaces if none is provided.
|
|
16610
16370
|
* @summary Create a booking space
|
|
16611
16371
|
* @param {BookingsSpacesApiCreateBookingSpaceRequest} requestParameters Request parameters.
|
|
16612
16372
|
* @param {*} [options] Override http request option.
|
|
16613
16373
|
* @throws {RequiredError}
|
|
16614
16374
|
*/
|
|
16615
16375
|
createBookingSpace(requestParameters, options) {
|
|
16616
|
-
return localVarFp.createBookingSpace(requestParameters.
|
|
16376
|
+
return localVarFp.createBookingSpace(requestParameters.bookingSpaceCreateInputs, options).then((request) => request(axios, basePath));
|
|
16617
16377
|
},
|
|
16618
16378
|
/**
|
|
16619
|
-
* Deletes a booking space
|
|
16379
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
16620
16380
|
* @summary Delete a booking space
|
|
16621
16381
|
* @param {BookingsSpacesApiDeleteBookingSpaceRequest} requestParameters Request parameters.
|
|
16622
16382
|
* @param {*} [options] Override http request option.
|
|
16623
16383
|
* @throws {RequiredError}
|
|
16624
16384
|
*/
|
|
16625
16385
|
deleteBookingSpace(requestParameters, options) {
|
|
16626
|
-
return localVarFp.deleteBookingSpace(requestParameters.
|
|
16386
|
+
return localVarFp.deleteBookingSpace(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
16627
16387
|
},
|
|
16628
16388
|
/**
|
|
16629
|
-
* Updates the attributes of an existing booking space
|
|
16389
|
+
* Updates the attributes of an existing booking space, including optional parent link changes (any combination of place/event/group/account ids; send null to unlink), and requires the update bookings permission.
|
|
16630
16390
|
* @summary Update a booking space
|
|
16631
16391
|
* @param {BookingsSpacesApiUpdateBookingSpaceRequest} requestParameters Request parameters.
|
|
16632
16392
|
* @param {*} [options] Override http request option.
|
|
16633
16393
|
* @throws {RequiredError}
|
|
16634
16394
|
*/
|
|
16635
16395
|
updateBookingSpace(requestParameters, options) {
|
|
16636
|
-
return localVarFp.updateBookingSpace(requestParameters.
|
|
16396
|
+
return localVarFp.updateBookingSpace(requestParameters.spaceId, requestParameters.bookingSpaceUpdateInputs, options).then((request) => request(axios, basePath));
|
|
16637
16397
|
},
|
|
16638
16398
|
};
|
|
16639
16399
|
};
|
|
@@ -16642,34 +16402,34 @@ export const BookingsSpacesApiFactory = function (configuration, basePath, axios
|
|
|
16642
16402
|
*/
|
|
16643
16403
|
export class BookingsSpacesApi extends BaseAPI {
|
|
16644
16404
|
/**
|
|
16645
|
-
* Creates a new bookable space
|
|
16405
|
+
* Creates a new bookable space optionally linked to any combination of place, event, group, and account parent ids (all null = no parents; still appears in the org-wide list), requires the update bookings permission, and assigns the space a sort order relative to existing spaces if none is provided.
|
|
16646
16406
|
* @summary Create a booking space
|
|
16647
16407
|
* @param {BookingsSpacesApiCreateBookingSpaceRequest} requestParameters Request parameters.
|
|
16648
16408
|
* @param {*} [options] Override http request option.
|
|
16649
16409
|
* @throws {RequiredError}
|
|
16650
16410
|
*/
|
|
16651
16411
|
createBookingSpace(requestParameters, options) {
|
|
16652
|
-
return BookingsSpacesApiFp(this.configuration).createBookingSpace(requestParameters.
|
|
16412
|
+
return BookingsSpacesApiFp(this.configuration).createBookingSpace(requestParameters.bookingSpaceCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16653
16413
|
}
|
|
16654
16414
|
/**
|
|
16655
|
-
* Deletes a booking space
|
|
16415
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
16656
16416
|
* @summary Delete a booking space
|
|
16657
16417
|
* @param {BookingsSpacesApiDeleteBookingSpaceRequest} requestParameters Request parameters.
|
|
16658
16418
|
* @param {*} [options] Override http request option.
|
|
16659
16419
|
* @throws {RequiredError}
|
|
16660
16420
|
*/
|
|
16661
16421
|
deleteBookingSpace(requestParameters, options) {
|
|
16662
|
-
return BookingsSpacesApiFp(this.configuration).deleteBookingSpace(requestParameters.
|
|
16422
|
+
return BookingsSpacesApiFp(this.configuration).deleteBookingSpace(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
16663
16423
|
}
|
|
16664
16424
|
/**
|
|
16665
|
-
* Updates the attributes of an existing booking space
|
|
16425
|
+
* Updates the attributes of an existing booking space, including optional parent link changes (any combination of place/event/group/account ids; send null to unlink), and requires the update bookings permission.
|
|
16666
16426
|
* @summary Update a booking space
|
|
16667
16427
|
* @param {BookingsSpacesApiUpdateBookingSpaceRequest} requestParameters Request parameters.
|
|
16668
16428
|
* @param {*} [options] Override http request option.
|
|
16669
16429
|
* @throws {RequiredError}
|
|
16670
16430
|
*/
|
|
16671
16431
|
updateBookingSpace(requestParameters, options) {
|
|
16672
|
-
return BookingsSpacesApiFp(this.configuration).updateBookingSpace(requestParameters.
|
|
16432
|
+
return BookingsSpacesApiFp(this.configuration).updateBookingSpace(requestParameters.spaceId, requestParameters.bookingSpaceUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16673
16433
|
}
|
|
16674
16434
|
}
|
|
16675
16435
|
/**
|
|
@@ -16680,21 +16440,17 @@ export const BookingsSpacesTranslationsApiAxiosParamCreator = function (configur
|
|
|
16680
16440
|
/**
|
|
16681
16441
|
* Deletes the translation for the given locale on a booking space, removing that language\'s localized name and other translated fields; requires update permission on bookings.
|
|
16682
16442
|
* @summary Delete a booking space translation
|
|
16683
|
-
* @param {string} placeId The place identifier
|
|
16684
16443
|
* @param {string} spaceId The space identifier
|
|
16685
16444
|
* @param {string} locale The locale identifier
|
|
16686
16445
|
* @param {*} [options] Override http request option.
|
|
16687
16446
|
* @throws {RequiredError}
|
|
16688
16447
|
*/
|
|
16689
|
-
deleteBookingSpaceTranslation: (
|
|
16690
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16691
|
-
assertParamExists('deleteBookingSpaceTranslation', 'placeId', placeId);
|
|
16448
|
+
deleteBookingSpaceTranslation: (spaceId_1, locale_1, ...args_1) => __awaiter(this, [spaceId_1, locale_1, ...args_1], void 0, function* (spaceId, locale, options = {}) {
|
|
16692
16449
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16693
16450
|
assertParamExists('deleteBookingSpaceTranslation', 'spaceId', spaceId);
|
|
16694
16451
|
// verify required parameter 'locale' is not null or undefined
|
|
16695
16452
|
assertParamExists('deleteBookingSpaceTranslation', 'locale', locale);
|
|
16696
|
-
const localVarPath = `/bookings/
|
|
16697
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16453
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
16698
16454
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16699
16455
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
16700
16456
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -16722,24 +16478,20 @@ export const BookingsSpacesTranslationsApiAxiosParamCreator = function (configur
|
|
|
16722
16478
|
/**
|
|
16723
16479
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
16724
16480
|
* @summary Update a booking space translation
|
|
16725
|
-
* @param {string} placeId The place identifier
|
|
16726
16481
|
* @param {string} spaceId The space identifier
|
|
16727
16482
|
* @param {string} locale The locale identifier
|
|
16728
16483
|
* @param {BookingSpaceTranslationUpdateInputs} bookingSpaceTranslationUpdateInputs
|
|
16729
16484
|
* @param {*} [options] Override http request option.
|
|
16730
16485
|
* @throws {RequiredError}
|
|
16731
16486
|
*/
|
|
16732
|
-
updateBookingSpaceTranslation: (
|
|
16733
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16734
|
-
assertParamExists('updateBookingSpaceTranslation', 'placeId', placeId);
|
|
16487
|
+
updateBookingSpaceTranslation: (spaceId_1, locale_1, bookingSpaceTranslationUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, locale_1, bookingSpaceTranslationUpdateInputs_1, ...args_1], void 0, function* (spaceId, locale, bookingSpaceTranslationUpdateInputs, options = {}) {
|
|
16735
16488
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16736
16489
|
assertParamExists('updateBookingSpaceTranslation', 'spaceId', spaceId);
|
|
16737
16490
|
// verify required parameter 'locale' is not null or undefined
|
|
16738
16491
|
assertParamExists('updateBookingSpaceTranslation', 'locale', locale);
|
|
16739
16492
|
// verify required parameter 'bookingSpaceTranslationUpdateInputs' is not null or undefined
|
|
16740
16493
|
assertParamExists('updateBookingSpaceTranslation', 'bookingSpaceTranslationUpdateInputs', bookingSpaceTranslationUpdateInputs);
|
|
16741
|
-
const localVarPath = `/bookings/
|
|
16742
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16494
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
16743
16495
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16744
16496
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
16745
16497
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -16777,16 +16529,15 @@ export const BookingsSpacesTranslationsApiFp = function (configuration) {
|
|
|
16777
16529
|
/**
|
|
16778
16530
|
* Deletes the translation for the given locale on a booking space, removing that language\'s localized name and other translated fields; requires update permission on bookings.
|
|
16779
16531
|
* @summary Delete a booking space translation
|
|
16780
|
-
* @param {string} placeId The place identifier
|
|
16781
16532
|
* @param {string} spaceId The space identifier
|
|
16782
16533
|
* @param {string} locale The locale identifier
|
|
16783
16534
|
* @param {*} [options] Override http request option.
|
|
16784
16535
|
* @throws {RequiredError}
|
|
16785
16536
|
*/
|
|
16786
|
-
deleteBookingSpaceTranslation(
|
|
16537
|
+
deleteBookingSpaceTranslation(spaceId, locale, options) {
|
|
16787
16538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16788
16539
|
var _a, _b, _c;
|
|
16789
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceTranslation(
|
|
16540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceTranslation(spaceId, locale, options);
|
|
16790
16541
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16791
16542
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsSpacesTranslationsApi.deleteBookingSpaceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16792
16543
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16795,17 +16546,16 @@ export const BookingsSpacesTranslationsApiFp = function (configuration) {
|
|
|
16795
16546
|
/**
|
|
16796
16547
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
16797
16548
|
* @summary Update a booking space translation
|
|
16798
|
-
* @param {string} placeId The place identifier
|
|
16799
16549
|
* @param {string} spaceId The space identifier
|
|
16800
16550
|
* @param {string} locale The locale identifier
|
|
16801
16551
|
* @param {BookingSpaceTranslationUpdateInputs} bookingSpaceTranslationUpdateInputs
|
|
16802
16552
|
* @param {*} [options] Override http request option.
|
|
16803
16553
|
* @throws {RequiredError}
|
|
16804
16554
|
*/
|
|
16805
|
-
updateBookingSpaceTranslation(
|
|
16555
|
+
updateBookingSpaceTranslation(spaceId, locale, bookingSpaceTranslationUpdateInputs, options) {
|
|
16806
16556
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16807
16557
|
var _a, _b, _c;
|
|
16808
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceTranslation(
|
|
16558
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceTranslation(spaceId, locale, bookingSpaceTranslationUpdateInputs, options);
|
|
16809
16559
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16810
16560
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsSpacesTranslationsApi.updateBookingSpaceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16811
16561
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16827,7 +16577,7 @@ export const BookingsSpacesTranslationsApiFactory = function (configuration, bas
|
|
|
16827
16577
|
* @throws {RequiredError}
|
|
16828
16578
|
*/
|
|
16829
16579
|
deleteBookingSpaceTranslation(requestParameters, options) {
|
|
16830
|
-
return localVarFp.deleteBookingSpaceTranslation(requestParameters.
|
|
16580
|
+
return localVarFp.deleteBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
16831
16581
|
},
|
|
16832
16582
|
/**
|
|
16833
16583
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
@@ -16837,7 +16587,7 @@ export const BookingsSpacesTranslationsApiFactory = function (configuration, bas
|
|
|
16837
16587
|
* @throws {RequiredError}
|
|
16838
16588
|
*/
|
|
16839
16589
|
updateBookingSpaceTranslation(requestParameters, options) {
|
|
16840
|
-
return localVarFp.updateBookingSpaceTranslation(requestParameters.
|
|
16590
|
+
return localVarFp.updateBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, requestParameters.bookingSpaceTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
16841
16591
|
},
|
|
16842
16592
|
};
|
|
16843
16593
|
};
|
|
@@ -16853,7 +16603,7 @@ export class BookingsSpacesTranslationsApi extends BaseAPI {
|
|
|
16853
16603
|
* @throws {RequiredError}
|
|
16854
16604
|
*/
|
|
16855
16605
|
deleteBookingSpaceTranslation(requestParameters, options) {
|
|
16856
|
-
return BookingsSpacesTranslationsApiFp(this.configuration).deleteBookingSpaceTranslation(requestParameters.
|
|
16606
|
+
return BookingsSpacesTranslationsApiFp(this.configuration).deleteBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
16857
16607
|
}
|
|
16858
16608
|
/**
|
|
16859
16609
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
@@ -16863,7 +16613,7 @@ export class BookingsSpacesTranslationsApi extends BaseAPI {
|
|
|
16863
16613
|
* @throws {RequiredError}
|
|
16864
16614
|
*/
|
|
16865
16615
|
updateBookingSpaceTranslation(requestParameters, options) {
|
|
16866
|
-
return BookingsSpacesTranslationsApiFp(this.configuration).updateBookingSpaceTranslation(requestParameters.
|
|
16616
|
+
return BookingsSpacesTranslationsApiFp(this.configuration).updateBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, requestParameters.bookingSpaceTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16867
16617
|
}
|
|
16868
16618
|
}
|
|
16869
16619
|
/**
|