@connectedxm/admin-sdk 8.4.0 → 9.0.0
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 -920
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +221 -490
- 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 -490
- 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/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Connected Admin API
|
|
6
6
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document:
|
|
8
|
+
* The version of the OpenAPI document: 9.0.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10935,21 +10935,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
10935
10935
|
/**
|
|
10936
10936
|
* 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.
|
|
10937
10937
|
* @summary Add an account tier to a booking space
|
|
10938
|
-
* @param {string} placeId The place identifier
|
|
10939
10938
|
* @param {string} spaceId The space identifier
|
|
10940
10939
|
* @param {string} tierId The tier identifier
|
|
10941
10940
|
* @param {*} [options] Override http request option.
|
|
10942
10941
|
* @throws {RequiredError}
|
|
10943
10942
|
*/
|
|
10944
|
-
addBookingSpaceTier: (
|
|
10945
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
10946
|
-
(0, common_1.assertParamExists)('addBookingSpaceTier', 'placeId', placeId);
|
|
10943
|
+
addBookingSpaceTier: (spaceId_1, tierId_1, ...args_1) => __awaiter(this, [spaceId_1, tierId_1, ...args_1], void 0, function* (spaceId, tierId, options = {}) {
|
|
10947
10944
|
// verify required parameter 'spaceId' is not null or undefined
|
|
10948
10945
|
(0, common_1.assertParamExists)('addBookingSpaceTier', 'spaceId', spaceId);
|
|
10949
10946
|
// verify required parameter 'tierId' is not null or undefined
|
|
10950
10947
|
(0, common_1.assertParamExists)('addBookingSpaceTier', 'tierId', tierId);
|
|
10951
|
-
const localVarPath = `/bookings/
|
|
10952
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10948
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers/{tierId}`
|
|
10953
10949
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
10954
10950
|
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
10955
10951
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10977,21 +10973,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
10977
10973
|
/**
|
|
10978
10974
|
* 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.
|
|
10979
10975
|
* @summary Cancel a booking
|
|
10980
|
-
* @param {string} placeId The place identifier
|
|
10981
10976
|
* @param {string} spaceId The space identifier
|
|
10982
10977
|
* @param {string} bookingId The booking identifier
|
|
10983
10978
|
* @param {*} [options] Override http request option.
|
|
10984
10979
|
* @throws {RequiredError}
|
|
10985
10980
|
*/
|
|
10986
|
-
cancelBooking: (
|
|
10987
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
10988
|
-
(0, common_1.assertParamExists)('cancelBooking', 'placeId', placeId);
|
|
10981
|
+
cancelBooking: (spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, ...args_1], void 0, function* (spaceId, bookingId, options = {}) {
|
|
10989
10982
|
// verify required parameter 'spaceId' is not null or undefined
|
|
10990
10983
|
(0, common_1.assertParamExists)('cancelBooking', 'spaceId', spaceId);
|
|
10991
10984
|
// verify required parameter 'bookingId' is not null or undefined
|
|
10992
10985
|
(0, common_1.assertParamExists)('cancelBooking', 'bookingId', bookingId);
|
|
10993
|
-
const localVarPath = `/bookings/
|
|
10994
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10986
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/cancel`
|
|
10995
10987
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
10996
10988
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
10997
10989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11019,21 +11011,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11019
11011
|
/**
|
|
11020
11012
|
* 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.
|
|
11021
11013
|
* @summary Check in a booking
|
|
11022
|
-
* @param {string} placeId The place identifier
|
|
11023
11014
|
* @param {string} spaceId The space identifier
|
|
11024
11015
|
* @param {string} bookingId The booking identifier
|
|
11025
11016
|
* @param {*} [options] Override http request option.
|
|
11026
11017
|
* @throws {RequiredError}
|
|
11027
11018
|
*/
|
|
11028
|
-
checkInBooking: (
|
|
11029
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11030
|
-
(0, common_1.assertParamExists)('checkInBooking', 'placeId', placeId);
|
|
11019
|
+
checkInBooking: (spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, ...args_1], void 0, function* (spaceId, bookingId, options = {}) {
|
|
11031
11020
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11032
11021
|
(0, common_1.assertParamExists)('checkInBooking', 'spaceId', spaceId);
|
|
11033
11022
|
// verify required parameter 'bookingId' is not null or undefined
|
|
11034
11023
|
(0, common_1.assertParamExists)('checkInBooking', 'bookingId', bookingId);
|
|
11035
|
-
const localVarPath = `/bookings/
|
|
11036
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11024
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/checkin`
|
|
11037
11025
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11038
11026
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11039
11027
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11061,21 +11049,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11061
11049
|
/**
|
|
11062
11050
|
* 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.
|
|
11063
11051
|
* @summary Create a booking for a space
|
|
11064
|
-
* @param {string} placeId The place identifier
|
|
11065
11052
|
* @param {string} spaceId The space identifier
|
|
11066
11053
|
* @param {BookingCreateInputs} bookingCreateInputs
|
|
11067
11054
|
* @param {*} [options] Override http request option.
|
|
11068
11055
|
* @throws {RequiredError}
|
|
11069
11056
|
*/
|
|
11070
|
-
createBooking: (
|
|
11071
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11072
|
-
(0, common_1.assertParamExists)('createBooking', 'placeId', placeId);
|
|
11057
|
+
createBooking: (spaceId_1, bookingCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingCreateInputs_1, ...args_1], void 0, function* (spaceId, bookingCreateInputs, options = {}) {
|
|
11073
11058
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11074
11059
|
(0, common_1.assertParamExists)('createBooking', 'spaceId', spaceId);
|
|
11075
11060
|
// verify required parameter 'bookingCreateInputs' is not null or undefined
|
|
11076
11061
|
(0, common_1.assertParamExists)('createBooking', 'bookingCreateInputs', bookingCreateInputs);
|
|
11077
|
-
const localVarPath = `/bookings/
|
|
11078
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11062
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings`
|
|
11079
11063
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11080
11064
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11081
11065
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11102,23 +11086,19 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11102
11086
|
};
|
|
11103
11087
|
}),
|
|
11104
11088
|
/**
|
|
11105
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
11089
|
+
* 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).
|
|
11106
11090
|
* @summary Delete a booking
|
|
11107
|
-
* @param {string} placeId The place identifier
|
|
11108
11091
|
* @param {string} spaceId The space identifier
|
|
11109
11092
|
* @param {string} bookingId The booking identifier
|
|
11110
11093
|
* @param {*} [options] Override http request option.
|
|
11111
11094
|
* @throws {RequiredError}
|
|
11112
11095
|
*/
|
|
11113
|
-
deleteBooking: (
|
|
11114
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11115
|
-
(0, common_1.assertParamExists)('deleteBooking', 'placeId', placeId);
|
|
11096
|
+
deleteBooking: (spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, ...args_1], void 0, function* (spaceId, bookingId, options = {}) {
|
|
11116
11097
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11117
11098
|
(0, common_1.assertParamExists)('deleteBooking', 'spaceId', spaceId);
|
|
11118
11099
|
// verify required parameter 'bookingId' is not null or undefined
|
|
11119
11100
|
(0, common_1.assertParamExists)('deleteBooking', 'bookingId', bookingId);
|
|
11120
|
-
const localVarPath = `/bookings/
|
|
11121
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11101
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}`
|
|
11122
11102
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11123
11103
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11124
11104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11488,20 +11468,16 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11488
11468
|
};
|
|
11489
11469
|
}),
|
|
11490
11470
|
/**
|
|
11491
|
-
* Returns a single bookable space
|
|
11471
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
11492
11472
|
* @summary Get a booking space
|
|
11493
|
-
* @param {string} placeId The place identifier
|
|
11494
11473
|
* @param {string} spaceId The space identifier
|
|
11495
11474
|
* @param {*} [options] Override http request option.
|
|
11496
11475
|
* @throws {RequiredError}
|
|
11497
11476
|
*/
|
|
11498
|
-
getBookingSpace: (
|
|
11499
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11500
|
-
(0, common_1.assertParamExists)('getBookingSpace', 'placeId', placeId);
|
|
11477
|
+
getBookingSpace: (spaceId_1, ...args_1) => __awaiter(this, [spaceId_1, ...args_1], void 0, function* (spaceId, options = {}) {
|
|
11501
11478
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11502
11479
|
(0, common_1.assertParamExists)('getBookingSpace', 'spaceId', spaceId);
|
|
11503
|
-
const localVarPath = `/bookings/
|
|
11504
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11480
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
11505
11481
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11506
11482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11507
11483
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11528,18 +11504,14 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11528
11504
|
/**
|
|
11529
11505
|
* 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\".
|
|
11530
11506
|
* @summary List a booking space\'s weekly availability rules
|
|
11531
|
-
* @param {string} placeId The place identifier
|
|
11532
11507
|
* @param {string} spaceId The space identifier
|
|
11533
11508
|
* @param {*} [options] Override http request option.
|
|
11534
11509
|
* @throws {RequiredError}
|
|
11535
11510
|
*/
|
|
11536
|
-
getBookingSpaceAvailabilities: (
|
|
11537
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11538
|
-
(0, common_1.assertParamExists)('getBookingSpaceAvailabilities', 'placeId', placeId);
|
|
11511
|
+
getBookingSpaceAvailabilities: (spaceId_1, ...args_1) => __awaiter(this, [spaceId_1, ...args_1], void 0, function* (spaceId, options = {}) {
|
|
11539
11512
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11540
11513
|
(0, common_1.assertParamExists)('getBookingSpaceAvailabilities', 'spaceId', spaceId);
|
|
11541
|
-
const localVarPath = `/bookings/
|
|
11542
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11514
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities`
|
|
11543
11515
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11544
11516
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11545
11517
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11564,23 +11536,19 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11564
11536
|
};
|
|
11565
11537
|
}),
|
|
11566
11538
|
/**
|
|
11567
|
-
* Returns a single
|
|
11568
|
-
* @summary Get a booking space
|
|
11569
|
-
* @param {string} placeId The place identifier
|
|
11539
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
11540
|
+
* @summary Get a booking space availability by id
|
|
11570
11541
|
* @param {string} spaceId The space identifier
|
|
11571
11542
|
* @param {string} availabilityId The availability identifier
|
|
11572
11543
|
* @param {*} [options] Override http request option.
|
|
11573
11544
|
* @throws {RequiredError}
|
|
11574
11545
|
*/
|
|
11575
|
-
getBookingSpaceAvailability: (
|
|
11576
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11577
|
-
(0, common_1.assertParamExists)('getBookingSpaceAvailability', 'placeId', placeId);
|
|
11546
|
+
getBookingSpaceAvailability: (spaceId_1, availabilityId_1, ...args_1) => __awaiter(this, [spaceId_1, availabilityId_1, ...args_1], void 0, function* (spaceId, availabilityId, options = {}) {
|
|
11578
11547
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11579
11548
|
(0, common_1.assertParamExists)('getBookingSpaceAvailability', 'spaceId', spaceId);
|
|
11580
11549
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
11581
11550
|
(0, common_1.assertParamExists)('getBookingSpaceAvailability', 'availabilityId', availabilityId);
|
|
11582
|
-
const localVarPath = `/bookings/
|
|
11583
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11551
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
11584
11552
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11585
11553
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
11586
11554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11608,21 +11576,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11608
11576
|
/**
|
|
11609
11577
|
* 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\".
|
|
11610
11578
|
* @summary Get a booking space blackout
|
|
11611
|
-
* @param {string} placeId The place identifier
|
|
11612
11579
|
* @param {string} spaceId The space identifier
|
|
11613
11580
|
* @param {string} blackoutId The blackout identifier
|
|
11614
11581
|
* @param {*} [options] Override http request option.
|
|
11615
11582
|
* @throws {RequiredError}
|
|
11616
11583
|
*/
|
|
11617
|
-
getBookingSpaceBlackout: (
|
|
11618
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11619
|
-
(0, common_1.assertParamExists)('getBookingSpaceBlackout', 'placeId', placeId);
|
|
11584
|
+
getBookingSpaceBlackout: (spaceId_1, blackoutId_1, ...args_1) => __awaiter(this, [spaceId_1, blackoutId_1, ...args_1], void 0, function* (spaceId, blackoutId, options = {}) {
|
|
11620
11585
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11621
11586
|
(0, common_1.assertParamExists)('getBookingSpaceBlackout', 'spaceId', spaceId);
|
|
11622
11587
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
11623
11588
|
(0, common_1.assertParamExists)('getBookingSpaceBlackout', 'blackoutId', blackoutId);
|
|
11624
|
-
const localVarPath = `/bookings/
|
|
11625
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11589
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
11626
11590
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11627
11591
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
11628
11592
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11650,7 +11614,6 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11650
11614
|
/**
|
|
11651
11615
|
* 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\".
|
|
11652
11616
|
* @summary List a booking space\'s blackouts
|
|
11653
|
-
* @param {string} placeId The place identifier
|
|
11654
11617
|
* @param {string} spaceId The space identifier
|
|
11655
11618
|
* @param {boolean} [past] Filter by past
|
|
11656
11619
|
* @param {number} [page] Page number
|
|
@@ -11660,13 +11623,10 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11660
11623
|
* @param {*} [options] Override http request option.
|
|
11661
11624
|
* @throws {RequiredError}
|
|
11662
11625
|
*/
|
|
11663
|
-
getBookingSpaceBlackouts: (
|
|
11664
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11665
|
-
(0, common_1.assertParamExists)('getBookingSpaceBlackouts', 'placeId', placeId);
|
|
11626
|
+
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 = {}) {
|
|
11666
11627
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11667
11628
|
(0, common_1.assertParamExists)('getBookingSpaceBlackouts', 'spaceId', spaceId);
|
|
11668
|
-
const localVarPath = `/bookings/
|
|
11669
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11629
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts`
|
|
11670
11630
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11671
11631
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11672
11632
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11708,7 +11668,6 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11708
11668
|
/**
|
|
11709
11669
|
* 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\".
|
|
11710
11670
|
* @summary List a booking space\'s bookings
|
|
11711
|
-
* @param {string} placeId The place identifier
|
|
11712
11671
|
* @param {string} spaceId The space identifier
|
|
11713
11672
|
* @param {boolean} [past] Filter by past
|
|
11714
11673
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -11719,13 +11678,10 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11719
11678
|
* @param {*} [options] Override http request option.
|
|
11720
11679
|
* @throws {RequiredError}
|
|
11721
11680
|
*/
|
|
11722
|
-
getBookingSpaceBookings: (
|
|
11723
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11724
|
-
(0, common_1.assertParamExists)('getBookingSpaceBookings', 'placeId', placeId);
|
|
11681
|
+
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 = {}) {
|
|
11725
11682
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11726
11683
|
(0, common_1.assertParamExists)('getBookingSpaceBookings', 'spaceId', spaceId);
|
|
11727
|
-
const localVarPath = `/bookings/
|
|
11728
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11684
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings`
|
|
11729
11685
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11730
11686
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11731
11687
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11770,7 +11726,6 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11770
11726
|
/**
|
|
11771
11727
|
* 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\".
|
|
11772
11728
|
* @summary List a booking space\'s payments
|
|
11773
|
-
* @param {string} placeId The place identifier
|
|
11774
11729
|
* @param {string} spaceId The space identifier
|
|
11775
11730
|
* @param {boolean} [past] Filter by past
|
|
11776
11731
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -11781,13 +11736,10 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11781
11736
|
* @param {*} [options] Override http request option.
|
|
11782
11737
|
* @throws {RequiredError}
|
|
11783
11738
|
*/
|
|
11784
|
-
getBookingSpacePayments: (
|
|
11785
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11786
|
-
(0, common_1.assertParamExists)('getBookingSpacePayments', 'placeId', placeId);
|
|
11739
|
+
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 = {}) {
|
|
11787
11740
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11788
11741
|
(0, common_1.assertParamExists)('getBookingSpacePayments', 'spaceId', spaceId);
|
|
11789
|
-
const localVarPath = `/bookings/
|
|
11790
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11742
|
+
const localVarPath = `/bookings/spaces/{spaceId}/payments`
|
|
11791
11743
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11792
11744
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11793
11745
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11830,23 +11782,19 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11830
11782
|
};
|
|
11831
11783
|
}),
|
|
11832
11784
|
/**
|
|
11833
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
11785
|
+
* 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.
|
|
11834
11786
|
* @summary Get a booking space\'s available slots
|
|
11835
|
-
* @param {string} placeId The place identifier
|
|
11836
11787
|
* @param {string} spaceId The space identifier
|
|
11837
11788
|
* @param {string} firstDayOfMonth Filter by firstDayOfMonth
|
|
11838
11789
|
* @param {*} [options] Override http request option.
|
|
11839
11790
|
* @throws {RequiredError}
|
|
11840
11791
|
*/
|
|
11841
|
-
getBookingSpaceSlots: (
|
|
11842
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11843
|
-
(0, common_1.assertParamExists)('getBookingSpaceSlots', 'placeId', placeId);
|
|
11792
|
+
getBookingSpaceSlots: (spaceId_1, firstDayOfMonth_1, ...args_1) => __awaiter(this, [spaceId_1, firstDayOfMonth_1, ...args_1], void 0, function* (spaceId, firstDayOfMonth, options = {}) {
|
|
11844
11793
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11845
11794
|
(0, common_1.assertParamExists)('getBookingSpaceSlots', 'spaceId', spaceId);
|
|
11846
11795
|
// verify required parameter 'firstDayOfMonth' is not null or undefined
|
|
11847
11796
|
(0, common_1.assertParamExists)('getBookingSpaceSlots', 'firstDayOfMonth', firstDayOfMonth);
|
|
11848
|
-
const localVarPath = `/bookings/
|
|
11849
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11797
|
+
const localVarPath = `/bookings/spaces/{spaceId}/slots`
|
|
11850
11798
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11851
11799
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11852
11800
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11874,9 +11822,8 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11874
11822
|
};
|
|
11875
11823
|
}),
|
|
11876
11824
|
/**
|
|
11877
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
11825
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
11878
11826
|
* @summary List a booking space\'s assigned tiers
|
|
11879
|
-
* @param {string} placeId The place identifier
|
|
11880
11827
|
* @param {string} spaceId The space identifier
|
|
11881
11828
|
* @param {number} [page] Page number
|
|
11882
11829
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -11885,13 +11832,10 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11885
11832
|
* @param {*} [options] Override http request option.
|
|
11886
11833
|
* @throws {RequiredError}
|
|
11887
11834
|
*/
|
|
11888
|
-
getBookingSpaceTiers: (
|
|
11889
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11890
|
-
(0, common_1.assertParamExists)('getBookingSpaceTiers', 'placeId', placeId);
|
|
11835
|
+
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 = {}) {
|
|
11891
11836
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11892
11837
|
(0, common_1.assertParamExists)('getBookingSpaceTiers', 'spaceId', spaceId);
|
|
11893
|
-
const localVarPath = `/bookings/
|
|
11894
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11838
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers`
|
|
11895
11839
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11896
11840
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11897
11841
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11930,21 +11874,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11930
11874
|
/**
|
|
11931
11875
|
* 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.
|
|
11932
11876
|
* @summary Get a booking space\'s translation for a locale
|
|
11933
|
-
* @param {string} placeId The place identifier
|
|
11934
11877
|
* @param {string} spaceId The space identifier
|
|
11935
11878
|
* @param {string} locale The locale identifier
|
|
11936
11879
|
* @param {*} [options] Override http request option.
|
|
11937
11880
|
* @throws {RequiredError}
|
|
11938
11881
|
*/
|
|
11939
|
-
getBookingSpaceTranslation: (
|
|
11940
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11941
|
-
(0, common_1.assertParamExists)('getBookingSpaceTranslation', 'placeId', placeId);
|
|
11882
|
+
getBookingSpaceTranslation: (spaceId_1, locale_1, ...args_1) => __awaiter(this, [spaceId_1, locale_1, ...args_1], void 0, function* (spaceId, locale, options = {}) {
|
|
11942
11883
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11943
11884
|
(0, common_1.assertParamExists)('getBookingSpaceTranslation', 'spaceId', spaceId);
|
|
11944
11885
|
// verify required parameter 'locale' is not null or undefined
|
|
11945
11886
|
(0, common_1.assertParamExists)('getBookingSpaceTranslation', 'locale', locale);
|
|
11946
|
-
const localVarPath = `/bookings/
|
|
11947
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11887
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
11948
11888
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11949
11889
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
11950
11890
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11970,9 +11910,8 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11970
11910
|
};
|
|
11971
11911
|
}),
|
|
11972
11912
|
/**
|
|
11973
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
11913
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
11974
11914
|
* @summary List a booking space\'s translations
|
|
11975
|
-
* @param {string} placeId The place identifier
|
|
11976
11915
|
* @param {string} spaceId The space identifier
|
|
11977
11916
|
* @param {number} [page] Page number
|
|
11978
11917
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -11981,13 +11920,10 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11981
11920
|
* @param {*} [options] Override http request option.
|
|
11982
11921
|
* @throws {RequiredError}
|
|
11983
11922
|
*/
|
|
11984
|
-
getBookingSpaceTranslations: (
|
|
11985
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
11986
|
-
(0, common_1.assertParamExists)('getBookingSpaceTranslations', 'placeId', placeId);
|
|
11923
|
+
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 = {}) {
|
|
11987
11924
|
// verify required parameter 'spaceId' is not null or undefined
|
|
11988
11925
|
(0, common_1.assertParamExists)('getBookingSpaceTranslations', 'spaceId', spaceId);
|
|
11989
|
-
const localVarPath = `/bookings/
|
|
11990
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11926
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations`
|
|
11991
11927
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11992
11928
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11993
11929
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -12024,9 +11960,12 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
12024
11960
|
};
|
|
12025
11961
|
}),
|
|
12026
11962
|
/**
|
|
12027
|
-
* Returns a paginated list of bookable spaces
|
|
12028
|
-
* @summary List
|
|
12029
|
-
* @param {string} placeId
|
|
11963
|
+
* 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\".
|
|
11964
|
+
* @summary List booking spaces
|
|
11965
|
+
* @param {string} [placeId] Filter by placeId
|
|
11966
|
+
* @param {string} [eventId] Filter by eventId
|
|
11967
|
+
* @param {string} [groupId] Filter by groupId
|
|
11968
|
+
* @param {string} [accountId] Filter by accountId
|
|
12030
11969
|
* @param {number} [page] Page number
|
|
12031
11970
|
* @param {number} [pageSize] Number of items per page
|
|
12032
11971
|
* @param {string} [orderBy] Field to order by
|
|
@@ -12034,11 +11973,8 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
12034
11973
|
* @param {*} [options] Override http request option.
|
|
12035
11974
|
* @throws {RequiredError}
|
|
12036
11975
|
*/
|
|
12037
|
-
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 = {}) {
|
|
12038
|
-
|
|
12039
|
-
(0, common_1.assertParamExists)('getBookingSpaces', 'placeId', placeId);
|
|
12040
|
-
const localVarPath = `/bookings/places/{placeId}/spaces`
|
|
12041
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)));
|
|
11976
|
+
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 = {}) {
|
|
11977
|
+
const localVarPath = `/bookings/spaces`;
|
|
12042
11978
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12043
11979
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12044
11980
|
let baseOptions;
|
|
@@ -12052,6 +11988,18 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
12052
11988
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
|
|
12053
11989
|
// authentication OrganizationId required
|
|
12054
11990
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
|
|
11991
|
+
if (placeId !== undefined) {
|
|
11992
|
+
localVarQueryParameter['placeId'] = placeId;
|
|
11993
|
+
}
|
|
11994
|
+
if (eventId !== undefined) {
|
|
11995
|
+
localVarQueryParameter['eventId'] = eventId;
|
|
11996
|
+
}
|
|
11997
|
+
if (groupId !== undefined) {
|
|
11998
|
+
localVarQueryParameter['groupId'] = groupId;
|
|
11999
|
+
}
|
|
12000
|
+
if (accountId !== undefined) {
|
|
12001
|
+
localVarQueryParameter['accountId'] = accountId;
|
|
12002
|
+
}
|
|
12055
12003
|
if (page !== undefined) {
|
|
12056
12004
|
localVarQueryParameter['page'] = page;
|
|
12057
12005
|
}
|
|
@@ -12076,21 +12024,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
12076
12024
|
/**
|
|
12077
12025
|
* 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.
|
|
12078
12026
|
* @summary Remove an account tier from a booking space
|
|
12079
|
-
* @param {string} placeId The place identifier
|
|
12080
12027
|
* @param {string} spaceId The space identifier
|
|
12081
12028
|
* @param {string} tierId The tier identifier
|
|
12082
12029
|
* @param {*} [options] Override http request option.
|
|
12083
12030
|
* @throws {RequiredError}
|
|
12084
12031
|
*/
|
|
12085
|
-
removeBookingSpaceTier: (
|
|
12086
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
12087
|
-
(0, common_1.assertParamExists)('removeBookingSpaceTier', 'placeId', placeId);
|
|
12032
|
+
removeBookingSpaceTier: (spaceId_1, tierId_1, ...args_1) => __awaiter(this, [spaceId_1, tierId_1, ...args_1], void 0, function* (spaceId, tierId, options = {}) {
|
|
12088
12033
|
// verify required parameter 'spaceId' is not null or undefined
|
|
12089
12034
|
(0, common_1.assertParamExists)('removeBookingSpaceTier', 'spaceId', spaceId);
|
|
12090
12035
|
// verify required parameter 'tierId' is not null or undefined
|
|
12091
12036
|
(0, common_1.assertParamExists)('removeBookingSpaceTier', 'tierId', tierId);
|
|
12092
|
-
const localVarPath = `/bookings/
|
|
12093
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
12037
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers/{tierId}`
|
|
12094
12038
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
12095
12039
|
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
12096
12040
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -12118,21 +12062,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
12118
12062
|
/**
|
|
12119
12063
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
12120
12064
|
* @summary Undo a booking check-in
|
|
12121
|
-
* @param {string} placeId The place identifier
|
|
12122
12065
|
* @param {string} spaceId The space identifier
|
|
12123
12066
|
* @param {string} bookingId The booking identifier
|
|
12124
12067
|
* @param {*} [options] Override http request option.
|
|
12125
12068
|
* @throws {RequiredError}
|
|
12126
12069
|
*/
|
|
12127
|
-
undoCheckInBooking: (
|
|
12128
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
12129
|
-
(0, common_1.assertParamExists)('undoCheckInBooking', 'placeId', placeId);
|
|
12070
|
+
undoCheckInBooking: (spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [spaceId_1, bookingId_1, ...args_1], void 0, function* (spaceId, bookingId, options = {}) {
|
|
12130
12071
|
// verify required parameter 'spaceId' is not null or undefined
|
|
12131
12072
|
(0, common_1.assertParamExists)('undoCheckInBooking', 'spaceId', spaceId);
|
|
12132
12073
|
// verify required parameter 'bookingId' is not null or undefined
|
|
12133
12074
|
(0, common_1.assertParamExists)('undoCheckInBooking', 'bookingId', bookingId);
|
|
12134
|
-
const localVarPath = `/bookings/
|
|
12135
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
12075
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/checkin/undo`
|
|
12136
12076
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
12137
12077
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12138
12078
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -12158,26 +12098,22 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
12158
12098
|
};
|
|
12159
12099
|
}),
|
|
12160
12100
|
/**
|
|
12161
|
-
* Updates an existing booking for a bookable space
|
|
12101
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
12162
12102
|
* @summary Update a booking
|
|
12163
|
-
* @param {string} placeId The place identifier
|
|
12164
12103
|
* @param {string} spaceId The space identifier
|
|
12165
12104
|
* @param {string} bookingId The booking identifier
|
|
12166
12105
|
* @param {BookingUpdateInputs} bookingUpdateInputs
|
|
12167
12106
|
* @param {*} [options] Override http request option.
|
|
12168
12107
|
* @throws {RequiredError}
|
|
12169
12108
|
*/
|
|
12170
|
-
updateBooking: (
|
|
12171
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
12172
|
-
(0, common_1.assertParamExists)('updateBooking', 'placeId', placeId);
|
|
12109
|
+
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 = {}) {
|
|
12173
12110
|
// verify required parameter 'spaceId' is not null or undefined
|
|
12174
12111
|
(0, common_1.assertParamExists)('updateBooking', 'spaceId', spaceId);
|
|
12175
12112
|
// verify required parameter 'bookingId' is not null or undefined
|
|
12176
12113
|
(0, common_1.assertParamExists)('updateBooking', 'bookingId', bookingId);
|
|
12177
12114
|
// verify required parameter 'bookingUpdateInputs' is not null or undefined
|
|
12178
12115
|
(0, common_1.assertParamExists)('updateBooking', 'bookingUpdateInputs', bookingUpdateInputs);
|
|
12179
|
-
const localVarPath = `/bookings/
|
|
12180
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
12116
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}`
|
|
12181
12117
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
12182
12118
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12183
12119
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -12216,16 +12152,15 @@ const BookingsApiFp = function (configuration) {
|
|
|
12216
12152
|
/**
|
|
12217
12153
|
* 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.
|
|
12218
12154
|
* @summary Add an account tier to a booking space
|
|
12219
|
-
* @param {string} placeId The place identifier
|
|
12220
12155
|
* @param {string} spaceId The space identifier
|
|
12221
12156
|
* @param {string} tierId The tier identifier
|
|
12222
12157
|
* @param {*} [options] Override http request option.
|
|
12223
12158
|
* @throws {RequiredError}
|
|
12224
12159
|
*/
|
|
12225
|
-
addBookingSpaceTier(
|
|
12160
|
+
addBookingSpaceTier(spaceId, tierId, options) {
|
|
12226
12161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12227
12162
|
var _a, _b, _c;
|
|
12228
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addBookingSpaceTier(
|
|
12163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addBookingSpaceTier(spaceId, tierId, options);
|
|
12229
12164
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12230
12165
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.addBookingSpaceTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12231
12166
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12234,16 +12169,15 @@ const BookingsApiFp = function (configuration) {
|
|
|
12234
12169
|
/**
|
|
12235
12170
|
* 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.
|
|
12236
12171
|
* @summary Cancel a booking
|
|
12237
|
-
* @param {string} placeId The place identifier
|
|
12238
12172
|
* @param {string} spaceId The space identifier
|
|
12239
12173
|
* @param {string} bookingId The booking identifier
|
|
12240
12174
|
* @param {*} [options] Override http request option.
|
|
12241
12175
|
* @throws {RequiredError}
|
|
12242
12176
|
*/
|
|
12243
|
-
cancelBooking(
|
|
12177
|
+
cancelBooking(spaceId, bookingId, options) {
|
|
12244
12178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12245
12179
|
var _a, _b, _c;
|
|
12246
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(
|
|
12180
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(spaceId, bookingId, options);
|
|
12247
12181
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12248
12182
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.cancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12249
12183
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12252,16 +12186,15 @@ const BookingsApiFp = function (configuration) {
|
|
|
12252
12186
|
/**
|
|
12253
12187
|
* 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.
|
|
12254
12188
|
* @summary Check in a booking
|
|
12255
|
-
* @param {string} placeId The place identifier
|
|
12256
12189
|
* @param {string} spaceId The space identifier
|
|
12257
12190
|
* @param {string} bookingId The booking identifier
|
|
12258
12191
|
* @param {*} [options] Override http request option.
|
|
12259
12192
|
* @throws {RequiredError}
|
|
12260
12193
|
*/
|
|
12261
|
-
checkInBooking(
|
|
12194
|
+
checkInBooking(spaceId, bookingId, options) {
|
|
12262
12195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12263
12196
|
var _a, _b, _c;
|
|
12264
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInBooking(
|
|
12197
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInBooking(spaceId, bookingId, options);
|
|
12265
12198
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12266
12199
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.checkInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12267
12200
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12270,34 +12203,32 @@ const BookingsApiFp = function (configuration) {
|
|
|
12270
12203
|
/**
|
|
12271
12204
|
* 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.
|
|
12272
12205
|
* @summary Create a booking for a space
|
|
12273
|
-
* @param {string} placeId The place identifier
|
|
12274
12206
|
* @param {string} spaceId The space identifier
|
|
12275
12207
|
* @param {BookingCreateInputs} bookingCreateInputs
|
|
12276
12208
|
* @param {*} [options] Override http request option.
|
|
12277
12209
|
* @throws {RequiredError}
|
|
12278
12210
|
*/
|
|
12279
|
-
createBooking(
|
|
12211
|
+
createBooking(spaceId, bookingCreateInputs, options) {
|
|
12280
12212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12281
12213
|
var _a, _b, _c;
|
|
12282
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(
|
|
12214
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBooking(spaceId, bookingCreateInputs, options);
|
|
12283
12215
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12284
12216
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.createBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12285
12217
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12286
12218
|
});
|
|
12287
12219
|
},
|
|
12288
12220
|
/**
|
|
12289
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
12221
|
+
* 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).
|
|
12290
12222
|
* @summary Delete a booking
|
|
12291
|
-
* @param {string} placeId The place identifier
|
|
12292
12223
|
* @param {string} spaceId The space identifier
|
|
12293
12224
|
* @param {string} bookingId The booking identifier
|
|
12294
12225
|
* @param {*} [options] Override http request option.
|
|
12295
12226
|
* @throws {RequiredError}
|
|
12296
12227
|
*/
|
|
12297
|
-
deleteBooking(
|
|
12228
|
+
deleteBooking(spaceId, bookingId, options) {
|
|
12298
12229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12299
12230
|
var _a, _b, _c;
|
|
12300
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBooking(
|
|
12231
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBooking(spaceId, bookingId, options);
|
|
12301
12232
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12302
12233
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.deleteBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12303
12234
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12450,17 +12381,16 @@ const BookingsApiFp = function (configuration) {
|
|
|
12450
12381
|
});
|
|
12451
12382
|
},
|
|
12452
12383
|
/**
|
|
12453
|
-
* Returns a single bookable space
|
|
12384
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
12454
12385
|
* @summary Get a booking space
|
|
12455
|
-
* @param {string} placeId The place identifier
|
|
12456
12386
|
* @param {string} spaceId The space identifier
|
|
12457
12387
|
* @param {*} [options] Override http request option.
|
|
12458
12388
|
* @throws {RequiredError}
|
|
12459
12389
|
*/
|
|
12460
|
-
getBookingSpace(
|
|
12390
|
+
getBookingSpace(spaceId, options) {
|
|
12461
12391
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12462
12392
|
var _a, _b, _c;
|
|
12463
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpace(
|
|
12393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpace(spaceId, options);
|
|
12464
12394
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12465
12395
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12466
12396
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12469,33 +12399,31 @@ const BookingsApiFp = function (configuration) {
|
|
|
12469
12399
|
/**
|
|
12470
12400
|
* 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\".
|
|
12471
12401
|
* @summary List a booking space\'s weekly availability rules
|
|
12472
|
-
* @param {string} placeId The place identifier
|
|
12473
12402
|
* @param {string} spaceId The space identifier
|
|
12474
12403
|
* @param {*} [options] Override http request option.
|
|
12475
12404
|
* @throws {RequiredError}
|
|
12476
12405
|
*/
|
|
12477
|
-
getBookingSpaceAvailabilities(
|
|
12406
|
+
getBookingSpaceAvailabilities(spaceId, options) {
|
|
12478
12407
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12479
12408
|
var _a, _b, _c;
|
|
12480
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceAvailabilities(
|
|
12409
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceAvailabilities(spaceId, options);
|
|
12481
12410
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12482
12411
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceAvailabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12483
12412
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12484
12413
|
});
|
|
12485
12414
|
},
|
|
12486
12415
|
/**
|
|
12487
|
-
* Returns a single
|
|
12488
|
-
* @summary Get a booking space
|
|
12489
|
-
* @param {string} placeId The place identifier
|
|
12416
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
12417
|
+
* @summary Get a booking space availability by id
|
|
12490
12418
|
* @param {string} spaceId The space identifier
|
|
12491
12419
|
* @param {string} availabilityId The availability identifier
|
|
12492
12420
|
* @param {*} [options] Override http request option.
|
|
12493
12421
|
* @throws {RequiredError}
|
|
12494
12422
|
*/
|
|
12495
|
-
getBookingSpaceAvailability(
|
|
12423
|
+
getBookingSpaceAvailability(spaceId, availabilityId, options) {
|
|
12496
12424
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12497
12425
|
var _a, _b, _c;
|
|
12498
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceAvailability(
|
|
12426
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceAvailability(spaceId, availabilityId, options);
|
|
12499
12427
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12500
12428
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12501
12429
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12504,16 +12432,15 @@ const BookingsApiFp = function (configuration) {
|
|
|
12504
12432
|
/**
|
|
12505
12433
|
* 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\".
|
|
12506
12434
|
* @summary Get a booking space blackout
|
|
12507
|
-
* @param {string} placeId The place identifier
|
|
12508
12435
|
* @param {string} spaceId The space identifier
|
|
12509
12436
|
* @param {string} blackoutId The blackout identifier
|
|
12510
12437
|
* @param {*} [options] Override http request option.
|
|
12511
12438
|
* @throws {RequiredError}
|
|
12512
12439
|
*/
|
|
12513
|
-
getBookingSpaceBlackout(
|
|
12440
|
+
getBookingSpaceBlackout(spaceId, blackoutId, options) {
|
|
12514
12441
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12515
12442
|
var _a, _b, _c;
|
|
12516
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBlackout(
|
|
12443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBlackout(spaceId, blackoutId, options);
|
|
12517
12444
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12518
12445
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceBlackout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12519
12446
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12522,7 +12449,6 @@ const BookingsApiFp = function (configuration) {
|
|
|
12522
12449
|
/**
|
|
12523
12450
|
* 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\".
|
|
12524
12451
|
* @summary List a booking space\'s blackouts
|
|
12525
|
-
* @param {string} placeId The place identifier
|
|
12526
12452
|
* @param {string} spaceId The space identifier
|
|
12527
12453
|
* @param {boolean} [past] Filter by past
|
|
12528
12454
|
* @param {number} [page] Page number
|
|
@@ -12532,10 +12458,10 @@ const BookingsApiFp = function (configuration) {
|
|
|
12532
12458
|
* @param {*} [options] Override http request option.
|
|
12533
12459
|
* @throws {RequiredError}
|
|
12534
12460
|
*/
|
|
12535
|
-
getBookingSpaceBlackouts(
|
|
12461
|
+
getBookingSpaceBlackouts(spaceId, past, page, pageSize, orderBy, search, options) {
|
|
12536
12462
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12537
12463
|
var _a, _b, _c;
|
|
12538
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBlackouts(
|
|
12464
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBlackouts(spaceId, past, page, pageSize, orderBy, search, options);
|
|
12539
12465
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12540
12466
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceBlackouts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12541
12467
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12544,7 +12470,6 @@ const BookingsApiFp = function (configuration) {
|
|
|
12544
12470
|
/**
|
|
12545
12471
|
* 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\".
|
|
12546
12472
|
* @summary List a booking space\'s bookings
|
|
12547
|
-
* @param {string} placeId The place identifier
|
|
12548
12473
|
* @param {string} spaceId The space identifier
|
|
12549
12474
|
* @param {boolean} [past] Filter by past
|
|
12550
12475
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -12555,10 +12480,10 @@ const BookingsApiFp = function (configuration) {
|
|
|
12555
12480
|
* @param {*} [options] Override http request option.
|
|
12556
12481
|
* @throws {RequiredError}
|
|
12557
12482
|
*/
|
|
12558
|
-
getBookingSpaceBookings(
|
|
12483
|
+
getBookingSpaceBookings(spaceId, past, status, page, pageSize, orderBy, search, options) {
|
|
12559
12484
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12560
12485
|
var _a, _b, _c;
|
|
12561
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBookings(
|
|
12486
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceBookings(spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
12562
12487
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12563
12488
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12564
12489
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12567,7 +12492,6 @@ const BookingsApiFp = function (configuration) {
|
|
|
12567
12492
|
/**
|
|
12568
12493
|
* 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\".
|
|
12569
12494
|
* @summary List a booking space\'s payments
|
|
12570
|
-
* @param {string} placeId The place identifier
|
|
12571
12495
|
* @param {string} spaceId The space identifier
|
|
12572
12496
|
* @param {boolean} [past] Filter by past
|
|
12573
12497
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -12578,37 +12502,35 @@ const BookingsApiFp = function (configuration) {
|
|
|
12578
12502
|
* @param {*} [options] Override http request option.
|
|
12579
12503
|
* @throws {RequiredError}
|
|
12580
12504
|
*/
|
|
12581
|
-
getBookingSpacePayments(
|
|
12505
|
+
getBookingSpacePayments(spaceId, past, status, page, pageSize, orderBy, search, options) {
|
|
12582
12506
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12583
12507
|
var _a, _b, _c;
|
|
12584
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpacePayments(
|
|
12508
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpacePayments(spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
12585
12509
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12586
12510
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpacePayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12587
12511
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12588
12512
|
});
|
|
12589
12513
|
},
|
|
12590
12514
|
/**
|
|
12591
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
12515
|
+
* 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.
|
|
12592
12516
|
* @summary Get a booking space\'s available slots
|
|
12593
|
-
* @param {string} placeId The place identifier
|
|
12594
12517
|
* @param {string} spaceId The space identifier
|
|
12595
12518
|
* @param {string} firstDayOfMonth Filter by firstDayOfMonth
|
|
12596
12519
|
* @param {*} [options] Override http request option.
|
|
12597
12520
|
* @throws {RequiredError}
|
|
12598
12521
|
*/
|
|
12599
|
-
getBookingSpaceSlots(
|
|
12522
|
+
getBookingSpaceSlots(spaceId, firstDayOfMonth, options) {
|
|
12600
12523
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12601
12524
|
var _a, _b, _c;
|
|
12602
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceSlots(
|
|
12525
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceSlots(spaceId, firstDayOfMonth, options);
|
|
12603
12526
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12604
12527
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12605
12528
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12606
12529
|
});
|
|
12607
12530
|
},
|
|
12608
12531
|
/**
|
|
12609
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
12532
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
12610
12533
|
* @summary List a booking space\'s assigned tiers
|
|
12611
|
-
* @param {string} placeId The place identifier
|
|
12612
12534
|
* @param {string} spaceId The space identifier
|
|
12613
12535
|
* @param {number} [page] Page number
|
|
12614
12536
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -12617,10 +12539,10 @@ const BookingsApiFp = function (configuration) {
|
|
|
12617
12539
|
* @param {*} [options] Override http request option.
|
|
12618
12540
|
* @throws {RequiredError}
|
|
12619
12541
|
*/
|
|
12620
|
-
getBookingSpaceTiers(
|
|
12542
|
+
getBookingSpaceTiers(spaceId, page, pageSize, orderBy, search, options) {
|
|
12621
12543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12622
12544
|
var _a, _b, _c;
|
|
12623
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTiers(
|
|
12545
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTiers(spaceId, page, pageSize, orderBy, search, options);
|
|
12624
12546
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12625
12547
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceTiers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12626
12548
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12629,25 +12551,23 @@ const BookingsApiFp = function (configuration) {
|
|
|
12629
12551
|
/**
|
|
12630
12552
|
* 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.
|
|
12631
12553
|
* @summary Get a booking space\'s translation for a locale
|
|
12632
|
-
* @param {string} placeId The place identifier
|
|
12633
12554
|
* @param {string} spaceId The space identifier
|
|
12634
12555
|
* @param {string} locale The locale identifier
|
|
12635
12556
|
* @param {*} [options] Override http request option.
|
|
12636
12557
|
* @throws {RequiredError}
|
|
12637
12558
|
*/
|
|
12638
|
-
getBookingSpaceTranslation(
|
|
12559
|
+
getBookingSpaceTranslation(spaceId, locale, options) {
|
|
12639
12560
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12640
12561
|
var _a, _b, _c;
|
|
12641
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTranslation(
|
|
12562
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTranslation(spaceId, locale, options);
|
|
12642
12563
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12643
12564
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12644
12565
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12645
12566
|
});
|
|
12646
12567
|
},
|
|
12647
12568
|
/**
|
|
12648
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
12569
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
12649
12570
|
* @summary List a booking space\'s translations
|
|
12650
|
-
* @param {string} placeId The place identifier
|
|
12651
12571
|
* @param {string} spaceId The space identifier
|
|
12652
12572
|
* @param {number} [page] Page number
|
|
12653
12573
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -12656,19 +12576,22 @@ const BookingsApiFp = function (configuration) {
|
|
|
12656
12576
|
* @param {*} [options] Override http request option.
|
|
12657
12577
|
* @throws {RequiredError}
|
|
12658
12578
|
*/
|
|
12659
|
-
getBookingSpaceTranslations(
|
|
12579
|
+
getBookingSpaceTranslations(spaceId, page, pageSize, orderBy, search, options) {
|
|
12660
12580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12661
12581
|
var _a, _b, _c;
|
|
12662
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTranslations(
|
|
12582
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTranslations(spaceId, page, pageSize, orderBy, search, options);
|
|
12663
12583
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12664
12584
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceTranslations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12665
12585
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12666
12586
|
});
|
|
12667
12587
|
},
|
|
12668
12588
|
/**
|
|
12669
|
-
* Returns a paginated list of bookable spaces
|
|
12670
|
-
* @summary List
|
|
12671
|
-
* @param {string} placeId
|
|
12589
|
+
* 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\".
|
|
12590
|
+
* @summary List booking spaces
|
|
12591
|
+
* @param {string} [placeId] Filter by placeId
|
|
12592
|
+
* @param {string} [eventId] Filter by eventId
|
|
12593
|
+
* @param {string} [groupId] Filter by groupId
|
|
12594
|
+
* @param {string} [accountId] Filter by accountId
|
|
12672
12595
|
* @param {number} [page] Page number
|
|
12673
12596
|
* @param {number} [pageSize] Number of items per page
|
|
12674
12597
|
* @param {string} [orderBy] Field to order by
|
|
@@ -12676,10 +12599,10 @@ const BookingsApiFp = function (configuration) {
|
|
|
12676
12599
|
* @param {*} [options] Override http request option.
|
|
12677
12600
|
* @throws {RequiredError}
|
|
12678
12601
|
*/
|
|
12679
|
-
getBookingSpaces(placeId, page, pageSize, orderBy, search, options) {
|
|
12602
|
+
getBookingSpaces(placeId, eventId, groupId, accountId, page, pageSize, orderBy, search, options) {
|
|
12680
12603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12681
12604
|
var _a, _b, _c;
|
|
12682
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaces(placeId, page, pageSize, orderBy, search, options);
|
|
12605
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaces(placeId, eventId, groupId, accountId, page, pageSize, orderBy, search, options);
|
|
12683
12606
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12684
12607
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12685
12608
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12688,16 +12611,15 @@ const BookingsApiFp = function (configuration) {
|
|
|
12688
12611
|
/**
|
|
12689
12612
|
* 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.
|
|
12690
12613
|
* @summary Remove an account tier from a booking space
|
|
12691
|
-
* @param {string} placeId The place identifier
|
|
12692
12614
|
* @param {string} spaceId The space identifier
|
|
12693
12615
|
* @param {string} tierId The tier identifier
|
|
12694
12616
|
* @param {*} [options] Override http request option.
|
|
12695
12617
|
* @throws {RequiredError}
|
|
12696
12618
|
*/
|
|
12697
|
-
removeBookingSpaceTier(
|
|
12619
|
+
removeBookingSpaceTier(spaceId, tierId, options) {
|
|
12698
12620
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12699
12621
|
var _a, _b, _c;
|
|
12700
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeBookingSpaceTier(
|
|
12622
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeBookingSpaceTier(spaceId, tierId, options);
|
|
12701
12623
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12702
12624
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.removeBookingSpaceTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12703
12625
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12706,35 +12628,33 @@ const BookingsApiFp = function (configuration) {
|
|
|
12706
12628
|
/**
|
|
12707
12629
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
12708
12630
|
* @summary Undo a booking check-in
|
|
12709
|
-
* @param {string} placeId The place identifier
|
|
12710
12631
|
* @param {string} spaceId The space identifier
|
|
12711
12632
|
* @param {string} bookingId The booking identifier
|
|
12712
12633
|
* @param {*} [options] Override http request option.
|
|
12713
12634
|
* @throws {RequiredError}
|
|
12714
12635
|
*/
|
|
12715
|
-
undoCheckInBooking(
|
|
12636
|
+
undoCheckInBooking(spaceId, bookingId, options) {
|
|
12716
12637
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12717
12638
|
var _a, _b, _c;
|
|
12718
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.undoCheckInBooking(
|
|
12639
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.undoCheckInBooking(spaceId, bookingId, options);
|
|
12719
12640
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12720
12641
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.undoCheckInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12721
12642
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12722
12643
|
});
|
|
12723
12644
|
},
|
|
12724
12645
|
/**
|
|
12725
|
-
* Updates an existing booking for a bookable space
|
|
12646
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
12726
12647
|
* @summary Update a booking
|
|
12727
|
-
* @param {string} placeId The place identifier
|
|
12728
12648
|
* @param {string} spaceId The space identifier
|
|
12729
12649
|
* @param {string} bookingId The booking identifier
|
|
12730
12650
|
* @param {BookingUpdateInputs} bookingUpdateInputs
|
|
12731
12651
|
* @param {*} [options] Override http request option.
|
|
12732
12652
|
* @throws {RequiredError}
|
|
12733
12653
|
*/
|
|
12734
|
-
updateBooking(
|
|
12654
|
+
updateBooking(spaceId, bookingId, bookingUpdateInputs, options) {
|
|
12735
12655
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12736
12656
|
var _a, _b, _c;
|
|
12737
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBooking(
|
|
12657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBooking(spaceId, bookingId, bookingUpdateInputs, options);
|
|
12738
12658
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12739
12659
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.updateBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12740
12660
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12757,7 +12677,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12757
12677
|
* @throws {RequiredError}
|
|
12758
12678
|
*/
|
|
12759
12679
|
addBookingSpaceTier(requestParameters, options) {
|
|
12760
|
-
return localVarFp.addBookingSpaceTier(requestParameters.
|
|
12680
|
+
return localVarFp.addBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
12761
12681
|
},
|
|
12762
12682
|
/**
|
|
12763
12683
|
* 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.
|
|
@@ -12767,7 +12687,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12767
12687
|
* @throws {RequiredError}
|
|
12768
12688
|
*/
|
|
12769
12689
|
cancelBooking(requestParameters, options) {
|
|
12770
|
-
return localVarFp.cancelBooking(requestParameters.
|
|
12690
|
+
return localVarFp.cancelBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12771
12691
|
},
|
|
12772
12692
|
/**
|
|
12773
12693
|
* 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.
|
|
@@ -12777,7 +12697,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12777
12697
|
* @throws {RequiredError}
|
|
12778
12698
|
*/
|
|
12779
12699
|
checkInBooking(requestParameters, options) {
|
|
12780
|
-
return localVarFp.checkInBooking(requestParameters.
|
|
12700
|
+
return localVarFp.checkInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12781
12701
|
},
|
|
12782
12702
|
/**
|
|
12783
12703
|
* 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.
|
|
@@ -12787,17 +12707,17 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12787
12707
|
* @throws {RequiredError}
|
|
12788
12708
|
*/
|
|
12789
12709
|
createBooking(requestParameters, options) {
|
|
12790
|
-
return localVarFp.createBooking(requestParameters.
|
|
12710
|
+
return localVarFp.createBooking(requestParameters.spaceId, requestParameters.bookingCreateInputs, options).then((request) => request(axios, basePath));
|
|
12791
12711
|
},
|
|
12792
12712
|
/**
|
|
12793
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
12713
|
+
* 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).
|
|
12794
12714
|
* @summary Delete a booking
|
|
12795
12715
|
* @param {BookingsApiDeleteBookingRequest} requestParameters Request parameters.
|
|
12796
12716
|
* @param {*} [options] Override http request option.
|
|
12797
12717
|
* @throws {RequiredError}
|
|
12798
12718
|
*/
|
|
12799
12719
|
deleteBooking(requestParameters, options) {
|
|
12800
|
-
return localVarFp.deleteBooking(requestParameters.
|
|
12720
|
+
return localVarFp.deleteBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12801
12721
|
},
|
|
12802
12722
|
/**
|
|
12803
12723
|
* 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\".
|
|
@@ -12880,14 +12800,14 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12880
12800
|
return localVarFp.getBookingResponses(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12881
12801
|
},
|
|
12882
12802
|
/**
|
|
12883
|
-
* Returns a single bookable space
|
|
12803
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
12884
12804
|
* @summary Get a booking space
|
|
12885
12805
|
* @param {BookingsApiGetBookingSpaceRequest} requestParameters Request parameters.
|
|
12886
12806
|
* @param {*} [options] Override http request option.
|
|
12887
12807
|
* @throws {RequiredError}
|
|
12888
12808
|
*/
|
|
12889
12809
|
getBookingSpace(requestParameters, options) {
|
|
12890
|
-
return localVarFp.getBookingSpace(requestParameters.
|
|
12810
|
+
return localVarFp.getBookingSpace(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
12891
12811
|
},
|
|
12892
12812
|
/**
|
|
12893
12813
|
* 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\".
|
|
@@ -12897,17 +12817,17 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12897
12817
|
* @throws {RequiredError}
|
|
12898
12818
|
*/
|
|
12899
12819
|
getBookingSpaceAvailabilities(requestParameters, options) {
|
|
12900
|
-
return localVarFp.getBookingSpaceAvailabilities(requestParameters.
|
|
12820
|
+
return localVarFp.getBookingSpaceAvailabilities(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
12901
12821
|
},
|
|
12902
12822
|
/**
|
|
12903
|
-
* Returns a single
|
|
12904
|
-
* @summary Get a booking space
|
|
12823
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
12824
|
+
* @summary Get a booking space availability by id
|
|
12905
12825
|
* @param {BookingsApiGetBookingSpaceAvailabilityRequest} requestParameters Request parameters.
|
|
12906
12826
|
* @param {*} [options] Override http request option.
|
|
12907
12827
|
* @throws {RequiredError}
|
|
12908
12828
|
*/
|
|
12909
12829
|
getBookingSpaceAvailability(requestParameters, options) {
|
|
12910
|
-
return localVarFp.getBookingSpaceAvailability(requestParameters.
|
|
12830
|
+
return localVarFp.getBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(axios, basePath));
|
|
12911
12831
|
},
|
|
12912
12832
|
/**
|
|
12913
12833
|
* 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\".
|
|
@@ -12917,7 +12837,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12917
12837
|
* @throws {RequiredError}
|
|
12918
12838
|
*/
|
|
12919
12839
|
getBookingSpaceBlackout(requestParameters, options) {
|
|
12920
|
-
return localVarFp.getBookingSpaceBlackout(requestParameters.
|
|
12840
|
+
return localVarFp.getBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(axios, basePath));
|
|
12921
12841
|
},
|
|
12922
12842
|
/**
|
|
12923
12843
|
* 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\".
|
|
@@ -12927,7 +12847,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12927
12847
|
* @throws {RequiredError}
|
|
12928
12848
|
*/
|
|
12929
12849
|
getBookingSpaceBlackouts(requestParameters, options) {
|
|
12930
|
-
return localVarFp.getBookingSpaceBlackouts(requestParameters.
|
|
12850
|
+
return localVarFp.getBookingSpaceBlackouts(requestParameters.spaceId, requestParameters.past, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12931
12851
|
},
|
|
12932
12852
|
/**
|
|
12933
12853
|
* 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\".
|
|
@@ -12937,7 +12857,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12937
12857
|
* @throws {RequiredError}
|
|
12938
12858
|
*/
|
|
12939
12859
|
getBookingSpaceBookings(requestParameters, options) {
|
|
12940
|
-
return localVarFp.getBookingSpaceBookings(requestParameters.
|
|
12860
|
+
return localVarFp.getBookingSpaceBookings(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12941
12861
|
},
|
|
12942
12862
|
/**
|
|
12943
12863
|
* 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\".
|
|
@@ -12947,27 +12867,27 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12947
12867
|
* @throws {RequiredError}
|
|
12948
12868
|
*/
|
|
12949
12869
|
getBookingSpacePayments(requestParameters, options) {
|
|
12950
|
-
return localVarFp.getBookingSpacePayments(requestParameters.
|
|
12870
|
+
return localVarFp.getBookingSpacePayments(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12951
12871
|
},
|
|
12952
12872
|
/**
|
|
12953
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
12873
|
+
* 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.
|
|
12954
12874
|
* @summary Get a booking space\'s available slots
|
|
12955
12875
|
* @param {BookingsApiGetBookingSpaceSlotsRequest} requestParameters Request parameters.
|
|
12956
12876
|
* @param {*} [options] Override http request option.
|
|
12957
12877
|
* @throws {RequiredError}
|
|
12958
12878
|
*/
|
|
12959
12879
|
getBookingSpaceSlots(requestParameters, options) {
|
|
12960
|
-
return localVarFp.getBookingSpaceSlots(requestParameters.
|
|
12880
|
+
return localVarFp.getBookingSpaceSlots(requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(axios, basePath));
|
|
12961
12881
|
},
|
|
12962
12882
|
/**
|
|
12963
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
12883
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
12964
12884
|
* @summary List a booking space\'s assigned tiers
|
|
12965
12885
|
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
12966
12886
|
* @param {*} [options] Override http request option.
|
|
12967
12887
|
* @throws {RequiredError}
|
|
12968
12888
|
*/
|
|
12969
12889
|
getBookingSpaceTiers(requestParameters, options) {
|
|
12970
|
-
return localVarFp.getBookingSpaceTiers(requestParameters.
|
|
12890
|
+
return localVarFp.getBookingSpaceTiers(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12971
12891
|
},
|
|
12972
12892
|
/**
|
|
12973
12893
|
* 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.
|
|
@@ -12977,27 +12897,27 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12977
12897
|
* @throws {RequiredError}
|
|
12978
12898
|
*/
|
|
12979
12899
|
getBookingSpaceTranslation(requestParameters, options) {
|
|
12980
|
-
return localVarFp.getBookingSpaceTranslation(requestParameters.
|
|
12900
|
+
return localVarFp.getBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
12981
12901
|
},
|
|
12982
12902
|
/**
|
|
12983
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
12903
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
12984
12904
|
* @summary List a booking space\'s translations
|
|
12985
12905
|
* @param {BookingsApiGetBookingSpaceTranslationsRequest} requestParameters Request parameters.
|
|
12986
12906
|
* @param {*} [options] Override http request option.
|
|
12987
12907
|
* @throws {RequiredError}
|
|
12988
12908
|
*/
|
|
12989
12909
|
getBookingSpaceTranslations(requestParameters, options) {
|
|
12990
|
-
return localVarFp.getBookingSpaceTranslations(requestParameters.
|
|
12910
|
+
return localVarFp.getBookingSpaceTranslations(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12991
12911
|
},
|
|
12992
12912
|
/**
|
|
12993
|
-
* Returns a paginated list of bookable spaces
|
|
12994
|
-
* @summary List
|
|
12913
|
+
* 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\".
|
|
12914
|
+
* @summary List booking spaces
|
|
12995
12915
|
* @param {BookingsApiGetBookingSpacesRequest} requestParameters Request parameters.
|
|
12996
12916
|
* @param {*} [options] Override http request option.
|
|
12997
12917
|
* @throws {RequiredError}
|
|
12998
12918
|
*/
|
|
12999
|
-
getBookingSpaces(requestParameters, options) {
|
|
13000
|
-
return localVarFp.getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12919
|
+
getBookingSpaces(requestParameters = {}, options) {
|
|
12920
|
+
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));
|
|
13001
12921
|
},
|
|
13002
12922
|
/**
|
|
13003
12923
|
* 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.
|
|
@@ -13007,7 +12927,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
13007
12927
|
* @throws {RequiredError}
|
|
13008
12928
|
*/
|
|
13009
12929
|
removeBookingSpaceTier(requestParameters, options) {
|
|
13010
|
-
return localVarFp.removeBookingSpaceTier(requestParameters.
|
|
12930
|
+
return localVarFp.removeBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
13011
12931
|
},
|
|
13012
12932
|
/**
|
|
13013
12933
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
@@ -13017,17 +12937,17 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
13017
12937
|
* @throws {RequiredError}
|
|
13018
12938
|
*/
|
|
13019
12939
|
undoCheckInBooking(requestParameters, options) {
|
|
13020
|
-
return localVarFp.undoCheckInBooking(requestParameters.
|
|
12940
|
+
return localVarFp.undoCheckInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
13021
12941
|
},
|
|
13022
12942
|
/**
|
|
13023
|
-
* Updates an existing booking for a bookable space
|
|
12943
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
13024
12944
|
* @summary Update a booking
|
|
13025
12945
|
* @param {BookingsApiUpdateBookingRequest} requestParameters Request parameters.
|
|
13026
12946
|
* @param {*} [options] Override http request option.
|
|
13027
12947
|
* @throws {RequiredError}
|
|
13028
12948
|
*/
|
|
13029
12949
|
updateBooking(requestParameters, options) {
|
|
13030
|
-
return localVarFp.updateBooking(requestParameters.
|
|
12950
|
+
return localVarFp.updateBooking(requestParameters.spaceId, requestParameters.bookingId, requestParameters.bookingUpdateInputs, options).then((request) => request(axios, basePath));
|
|
13031
12951
|
},
|
|
13032
12952
|
};
|
|
13033
12953
|
};
|
|
@@ -13044,7 +12964,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13044
12964
|
* @throws {RequiredError}
|
|
13045
12965
|
*/
|
|
13046
12966
|
addBookingSpaceTier(requestParameters, options) {
|
|
13047
|
-
return (0, exports.BookingsApiFp)(this.configuration).addBookingSpaceTier(requestParameters.
|
|
12967
|
+
return (0, exports.BookingsApiFp)(this.configuration).addBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
13048
12968
|
}
|
|
13049
12969
|
/**
|
|
13050
12970
|
* 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.
|
|
@@ -13054,7 +12974,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13054
12974
|
* @throws {RequiredError}
|
|
13055
12975
|
*/
|
|
13056
12976
|
cancelBooking(requestParameters, options) {
|
|
13057
|
-
return (0, exports.BookingsApiFp)(this.configuration).cancelBooking(requestParameters.
|
|
12977
|
+
return (0, exports.BookingsApiFp)(this.configuration).cancelBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13058
12978
|
}
|
|
13059
12979
|
/**
|
|
13060
12980
|
* 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.
|
|
@@ -13064,7 +12984,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13064
12984
|
* @throws {RequiredError}
|
|
13065
12985
|
*/
|
|
13066
12986
|
checkInBooking(requestParameters, options) {
|
|
13067
|
-
return (0, exports.BookingsApiFp)(this.configuration).checkInBooking(requestParameters.
|
|
12987
|
+
return (0, exports.BookingsApiFp)(this.configuration).checkInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13068
12988
|
}
|
|
13069
12989
|
/**
|
|
13070
12990
|
* 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.
|
|
@@ -13074,17 +12994,17 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13074
12994
|
* @throws {RequiredError}
|
|
13075
12995
|
*/
|
|
13076
12996
|
createBooking(requestParameters, options) {
|
|
13077
|
-
return (0, exports.BookingsApiFp)(this.configuration).createBooking(requestParameters.
|
|
12997
|
+
return (0, exports.BookingsApiFp)(this.configuration).createBooking(requestParameters.spaceId, requestParameters.bookingCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13078
12998
|
}
|
|
13079
12999
|
/**
|
|
13080
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
13000
|
+
* 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).
|
|
13081
13001
|
* @summary Delete a booking
|
|
13082
13002
|
* @param {BookingsApiDeleteBookingRequest} requestParameters Request parameters.
|
|
13083
13003
|
* @param {*} [options] Override http request option.
|
|
13084
13004
|
* @throws {RequiredError}
|
|
13085
13005
|
*/
|
|
13086
13006
|
deleteBooking(requestParameters, options) {
|
|
13087
|
-
return (0, exports.BookingsApiFp)(this.configuration).deleteBooking(requestParameters.
|
|
13007
|
+
return (0, exports.BookingsApiFp)(this.configuration).deleteBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13088
13008
|
}
|
|
13089
13009
|
/**
|
|
13090
13010
|
* 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\".
|
|
@@ -13167,14 +13087,14 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13167
13087
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingResponses(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13168
13088
|
}
|
|
13169
13089
|
/**
|
|
13170
|
-
* Returns a single bookable space
|
|
13090
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
13171
13091
|
* @summary Get a booking space
|
|
13172
13092
|
* @param {BookingsApiGetBookingSpaceRequest} requestParameters Request parameters.
|
|
13173
13093
|
* @param {*} [options] Override http request option.
|
|
13174
13094
|
* @throws {RequiredError}
|
|
13175
13095
|
*/
|
|
13176
13096
|
getBookingSpace(requestParameters, options) {
|
|
13177
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpace(requestParameters.
|
|
13097
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpace(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
13178
13098
|
}
|
|
13179
13099
|
/**
|
|
13180
13100
|
* 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\".
|
|
@@ -13184,17 +13104,17 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13184
13104
|
* @throws {RequiredError}
|
|
13185
13105
|
*/
|
|
13186
13106
|
getBookingSpaceAvailabilities(requestParameters, options) {
|
|
13187
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceAvailabilities(requestParameters.
|
|
13107
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceAvailabilities(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
13188
13108
|
}
|
|
13189
13109
|
/**
|
|
13190
|
-
* Returns a single
|
|
13191
|
-
* @summary Get a booking space
|
|
13110
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
13111
|
+
* @summary Get a booking space availability by id
|
|
13192
13112
|
* @param {BookingsApiGetBookingSpaceAvailabilityRequest} requestParameters Request parameters.
|
|
13193
13113
|
* @param {*} [options] Override http request option.
|
|
13194
13114
|
* @throws {RequiredError}
|
|
13195
13115
|
*/
|
|
13196
13116
|
getBookingSpaceAvailability(requestParameters, options) {
|
|
13197
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceAvailability(requestParameters.
|
|
13117
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(this.axios, this.basePath));
|
|
13198
13118
|
}
|
|
13199
13119
|
/**
|
|
13200
13120
|
* 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\".
|
|
@@ -13204,7 +13124,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13204
13124
|
* @throws {RequiredError}
|
|
13205
13125
|
*/
|
|
13206
13126
|
getBookingSpaceBlackout(requestParameters, options) {
|
|
13207
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceBlackout(requestParameters.
|
|
13127
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(this.axios, this.basePath));
|
|
13208
13128
|
}
|
|
13209
13129
|
/**
|
|
13210
13130
|
* 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\".
|
|
@@ -13214,7 +13134,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13214
13134
|
* @throws {RequiredError}
|
|
13215
13135
|
*/
|
|
13216
13136
|
getBookingSpaceBlackouts(requestParameters, options) {
|
|
13217
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceBlackouts(requestParameters.
|
|
13137
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceBlackouts(requestParameters.spaceId, requestParameters.past, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13218
13138
|
}
|
|
13219
13139
|
/**
|
|
13220
13140
|
* 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\".
|
|
@@ -13224,7 +13144,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13224
13144
|
* @throws {RequiredError}
|
|
13225
13145
|
*/
|
|
13226
13146
|
getBookingSpaceBookings(requestParameters, options) {
|
|
13227
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceBookings(requestParameters.
|
|
13147
|
+
return (0, exports.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));
|
|
13228
13148
|
}
|
|
13229
13149
|
/**
|
|
13230
13150
|
* 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\".
|
|
@@ -13234,27 +13154,27 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13234
13154
|
* @throws {RequiredError}
|
|
13235
13155
|
*/
|
|
13236
13156
|
getBookingSpacePayments(requestParameters, options) {
|
|
13237
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpacePayments(requestParameters.
|
|
13157
|
+
return (0, exports.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));
|
|
13238
13158
|
}
|
|
13239
13159
|
/**
|
|
13240
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
13160
|
+
* 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.
|
|
13241
13161
|
* @summary Get a booking space\'s available slots
|
|
13242
13162
|
* @param {BookingsApiGetBookingSpaceSlotsRequest} requestParameters Request parameters.
|
|
13243
13163
|
* @param {*} [options] Override http request option.
|
|
13244
13164
|
* @throws {RequiredError}
|
|
13245
13165
|
*/
|
|
13246
13166
|
getBookingSpaceSlots(requestParameters, options) {
|
|
13247
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceSlots(requestParameters.
|
|
13167
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceSlots(requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(this.axios, this.basePath));
|
|
13248
13168
|
}
|
|
13249
13169
|
/**
|
|
13250
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
13170
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
13251
13171
|
* @summary List a booking space\'s assigned tiers
|
|
13252
13172
|
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
13253
13173
|
* @param {*} [options] Override http request option.
|
|
13254
13174
|
* @throws {RequiredError}
|
|
13255
13175
|
*/
|
|
13256
13176
|
getBookingSpaceTiers(requestParameters, options) {
|
|
13257
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceTiers(requestParameters.
|
|
13177
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceTiers(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13258
13178
|
}
|
|
13259
13179
|
/**
|
|
13260
13180
|
* 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.
|
|
@@ -13264,27 +13184,27 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13264
13184
|
* @throws {RequiredError}
|
|
13265
13185
|
*/
|
|
13266
13186
|
getBookingSpaceTranslation(requestParameters, options) {
|
|
13267
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceTranslation(requestParameters.
|
|
13187
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
13268
13188
|
}
|
|
13269
13189
|
/**
|
|
13270
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
13190
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
13271
13191
|
* @summary List a booking space\'s translations
|
|
13272
13192
|
* @param {BookingsApiGetBookingSpaceTranslationsRequest} requestParameters Request parameters.
|
|
13273
13193
|
* @param {*} [options] Override http request option.
|
|
13274
13194
|
* @throws {RequiredError}
|
|
13275
13195
|
*/
|
|
13276
13196
|
getBookingSpaceTranslations(requestParameters, options) {
|
|
13277
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceTranslations(requestParameters.
|
|
13197
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceTranslations(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13278
13198
|
}
|
|
13279
13199
|
/**
|
|
13280
|
-
* Returns a paginated list of bookable spaces
|
|
13281
|
-
* @summary List
|
|
13200
|
+
* 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\".
|
|
13201
|
+
* @summary List booking spaces
|
|
13282
13202
|
* @param {BookingsApiGetBookingSpacesRequest} requestParameters Request parameters.
|
|
13283
13203
|
* @param {*} [options] Override http request option.
|
|
13284
13204
|
* @throws {RequiredError}
|
|
13285
13205
|
*/
|
|
13286
|
-
getBookingSpaces(requestParameters, options) {
|
|
13287
|
-
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13206
|
+
getBookingSpaces(requestParameters = {}, options) {
|
|
13207
|
+
return (0, exports.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));
|
|
13288
13208
|
}
|
|
13289
13209
|
/**
|
|
13290
13210
|
* 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.
|
|
@@ -13294,7 +13214,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13294
13214
|
* @throws {RequiredError}
|
|
13295
13215
|
*/
|
|
13296
13216
|
removeBookingSpaceTier(requestParameters, options) {
|
|
13297
|
-
return (0, exports.BookingsApiFp)(this.configuration).removeBookingSpaceTier(requestParameters.
|
|
13217
|
+
return (0, exports.BookingsApiFp)(this.configuration).removeBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
13298
13218
|
}
|
|
13299
13219
|
/**
|
|
13300
13220
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
@@ -13304,17 +13224,17 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
13304
13224
|
* @throws {RequiredError}
|
|
13305
13225
|
*/
|
|
13306
13226
|
undoCheckInBooking(requestParameters, options) {
|
|
13307
|
-
return (0, exports.BookingsApiFp)(this.configuration).undoCheckInBooking(requestParameters.
|
|
13227
|
+
return (0, exports.BookingsApiFp)(this.configuration).undoCheckInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13308
13228
|
}
|
|
13309
13229
|
/**
|
|
13310
|
-
* Updates an existing booking for a bookable space
|
|
13230
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
13311
13231
|
* @summary Update a booking
|
|
13312
13232
|
* @param {BookingsApiUpdateBookingRequest} requestParameters Request parameters.
|
|
13313
13233
|
* @param {*} [options] Override http request option.
|
|
13314
13234
|
* @throws {RequiredError}
|
|
13315
13235
|
*/
|
|
13316
13236
|
updateBooking(requestParameters, options) {
|
|
13317
|
-
return (0, exports.BookingsApiFp)(this.configuration).updateBooking(requestParameters.
|
|
13237
|
+
return (0, exports.BookingsApiFp)(this.configuration).updateBooking(requestParameters.spaceId, requestParameters.bookingId, requestParameters.bookingUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13318
13238
|
}
|
|
13319
13239
|
}
|
|
13320
13240
|
exports.BookingsApi = BookingsApi;
|
|
@@ -13326,21 +13246,17 @@ const BookingsAvailabilitiesApiAxiosParamCreator = function (configuration) {
|
|
|
13326
13246
|
/**
|
|
13327
13247
|
* 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.
|
|
13328
13248
|
* @summary Create a booking space availability
|
|
13329
|
-
* @param {string} placeId The place identifier
|
|
13330
13249
|
* @param {string} spaceId The space identifier
|
|
13331
13250
|
* @param {BookingSpaceAvailabilityCreateInputs} bookingSpaceAvailabilityCreateInputs
|
|
13332
13251
|
* @param {*} [options] Override http request option.
|
|
13333
13252
|
* @throws {RequiredError}
|
|
13334
13253
|
*/
|
|
13335
|
-
createBookingSpaceAvailability: (
|
|
13336
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13337
|
-
(0, common_1.assertParamExists)('createBookingSpaceAvailability', 'placeId', placeId);
|
|
13254
|
+
createBookingSpaceAvailability: (spaceId_1, bookingSpaceAvailabilityCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingSpaceAvailabilityCreateInputs_1, ...args_1], void 0, function* (spaceId, bookingSpaceAvailabilityCreateInputs, options = {}) {
|
|
13338
13255
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13339
13256
|
(0, common_1.assertParamExists)('createBookingSpaceAvailability', 'spaceId', spaceId);
|
|
13340
13257
|
// verify required parameter 'bookingSpaceAvailabilityCreateInputs' is not null or undefined
|
|
13341
13258
|
(0, common_1.assertParamExists)('createBookingSpaceAvailability', 'bookingSpaceAvailabilityCreateInputs', bookingSpaceAvailabilityCreateInputs);
|
|
13342
|
-
const localVarPath = `/bookings/
|
|
13343
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13259
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities`
|
|
13344
13260
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
13345
13261
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13346
13262
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -13369,21 +13285,17 @@ const BookingsAvailabilitiesApiAxiosParamCreator = function (configuration) {
|
|
|
13369
13285
|
/**
|
|
13370
13286
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
13371
13287
|
* @summary Delete a booking space availability
|
|
13372
|
-
* @param {string} placeId The place identifier
|
|
13373
13288
|
* @param {string} spaceId The space identifier
|
|
13374
13289
|
* @param {string} availabilityId The availability identifier
|
|
13375
13290
|
* @param {*} [options] Override http request option.
|
|
13376
13291
|
* @throws {RequiredError}
|
|
13377
13292
|
*/
|
|
13378
|
-
deleteBookingSpaceAvailability: (
|
|
13379
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13380
|
-
(0, common_1.assertParamExists)('deleteBookingSpaceAvailability', 'placeId', placeId);
|
|
13293
|
+
deleteBookingSpaceAvailability: (spaceId_1, availabilityId_1, ...args_1) => __awaiter(this, [spaceId_1, availabilityId_1, ...args_1], void 0, function* (spaceId, availabilityId, options = {}) {
|
|
13381
13294
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13382
13295
|
(0, common_1.assertParamExists)('deleteBookingSpaceAvailability', 'spaceId', spaceId);
|
|
13383
13296
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
13384
13297
|
(0, common_1.assertParamExists)('deleteBookingSpaceAvailability', 'availabilityId', availabilityId);
|
|
13385
|
-
const localVarPath = `/bookings/
|
|
13386
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13298
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
13387
13299
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
13388
13300
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
13389
13301
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13411,24 +13323,20 @@ const BookingsAvailabilitiesApiAxiosParamCreator = function (configuration) {
|
|
|
13411
13323
|
/**
|
|
13412
13324
|
* 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.
|
|
13413
13325
|
* @summary Update a booking space availability
|
|
13414
|
-
* @param {string} placeId The place identifier
|
|
13415
13326
|
* @param {string} spaceId The space identifier
|
|
13416
13327
|
* @param {string} availabilityId The availability identifier
|
|
13417
13328
|
* @param {BookingSpaceAvailabilityUpdateInputs} bookingSpaceAvailabilityUpdateInputs
|
|
13418
13329
|
* @param {*} [options] Override http request option.
|
|
13419
13330
|
* @throws {RequiredError}
|
|
13420
13331
|
*/
|
|
13421
|
-
updateBookingSpaceAvailability: (
|
|
13422
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13423
|
-
(0, common_1.assertParamExists)('updateBookingSpaceAvailability', 'placeId', placeId);
|
|
13332
|
+
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 = {}) {
|
|
13424
13333
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13425
13334
|
(0, common_1.assertParamExists)('updateBookingSpaceAvailability', 'spaceId', spaceId);
|
|
13426
13335
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
13427
13336
|
(0, common_1.assertParamExists)('updateBookingSpaceAvailability', 'availabilityId', availabilityId);
|
|
13428
13337
|
// verify required parameter 'bookingSpaceAvailabilityUpdateInputs' is not null or undefined
|
|
13429
13338
|
(0, common_1.assertParamExists)('updateBookingSpaceAvailability', 'bookingSpaceAvailabilityUpdateInputs', bookingSpaceAvailabilityUpdateInputs);
|
|
13430
|
-
const localVarPath = `/bookings/
|
|
13431
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13339
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
13432
13340
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
13433
13341
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
13434
13342
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13467,16 +13375,15 @@ const BookingsAvailabilitiesApiFp = function (configuration) {
|
|
|
13467
13375
|
/**
|
|
13468
13376
|
* 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.
|
|
13469
13377
|
* @summary Create a booking space availability
|
|
13470
|
-
* @param {string} placeId The place identifier
|
|
13471
13378
|
* @param {string} spaceId The space identifier
|
|
13472
13379
|
* @param {BookingSpaceAvailabilityCreateInputs} bookingSpaceAvailabilityCreateInputs
|
|
13473
13380
|
* @param {*} [options] Override http request option.
|
|
13474
13381
|
* @throws {RequiredError}
|
|
13475
13382
|
*/
|
|
13476
|
-
createBookingSpaceAvailability(
|
|
13383
|
+
createBookingSpaceAvailability(spaceId, bookingSpaceAvailabilityCreateInputs, options) {
|
|
13477
13384
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13478
13385
|
var _a, _b, _c;
|
|
13479
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceAvailability(
|
|
13386
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceAvailability(spaceId, bookingSpaceAvailabilityCreateInputs, options);
|
|
13480
13387
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13481
13388
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsAvailabilitiesApi.createBookingSpaceAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13482
13389
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13485,16 +13392,15 @@ const BookingsAvailabilitiesApiFp = function (configuration) {
|
|
|
13485
13392
|
/**
|
|
13486
13393
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
13487
13394
|
* @summary Delete a booking space availability
|
|
13488
|
-
* @param {string} placeId The place identifier
|
|
13489
13395
|
* @param {string} spaceId The space identifier
|
|
13490
13396
|
* @param {string} availabilityId The availability identifier
|
|
13491
13397
|
* @param {*} [options] Override http request option.
|
|
13492
13398
|
* @throws {RequiredError}
|
|
13493
13399
|
*/
|
|
13494
|
-
deleteBookingSpaceAvailability(
|
|
13400
|
+
deleteBookingSpaceAvailability(spaceId, availabilityId, options) {
|
|
13495
13401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13496
13402
|
var _a, _b, _c;
|
|
13497
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceAvailability(
|
|
13403
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceAvailability(spaceId, availabilityId, options);
|
|
13498
13404
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13499
13405
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsAvailabilitiesApi.deleteBookingSpaceAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13500
13406
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13503,17 +13409,16 @@ const BookingsAvailabilitiesApiFp = function (configuration) {
|
|
|
13503
13409
|
/**
|
|
13504
13410
|
* 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.
|
|
13505
13411
|
* @summary Update a booking space availability
|
|
13506
|
-
* @param {string} placeId The place identifier
|
|
13507
13412
|
* @param {string} spaceId The space identifier
|
|
13508
13413
|
* @param {string} availabilityId The availability identifier
|
|
13509
13414
|
* @param {BookingSpaceAvailabilityUpdateInputs} bookingSpaceAvailabilityUpdateInputs
|
|
13510
13415
|
* @param {*} [options] Override http request option.
|
|
13511
13416
|
* @throws {RequiredError}
|
|
13512
13417
|
*/
|
|
13513
|
-
updateBookingSpaceAvailability(
|
|
13418
|
+
updateBookingSpaceAvailability(spaceId, availabilityId, bookingSpaceAvailabilityUpdateInputs, options) {
|
|
13514
13419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13515
13420
|
var _a, _b, _c;
|
|
13516
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceAvailability(
|
|
13421
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceAvailability(spaceId, availabilityId, bookingSpaceAvailabilityUpdateInputs, options);
|
|
13517
13422
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13518
13423
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsAvailabilitiesApi.updateBookingSpaceAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13519
13424
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13536,7 +13441,7 @@ const BookingsAvailabilitiesApiFactory = function (configuration, basePath, axio
|
|
|
13536
13441
|
* @throws {RequiredError}
|
|
13537
13442
|
*/
|
|
13538
13443
|
createBookingSpaceAvailability(requestParameters, options) {
|
|
13539
|
-
return localVarFp.createBookingSpaceAvailability(requestParameters.
|
|
13444
|
+
return localVarFp.createBookingSpaceAvailability(requestParameters.spaceId, requestParameters.bookingSpaceAvailabilityCreateInputs, options).then((request) => request(axios, basePath));
|
|
13540
13445
|
},
|
|
13541
13446
|
/**
|
|
13542
13447
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -13546,7 +13451,7 @@ const BookingsAvailabilitiesApiFactory = function (configuration, basePath, axio
|
|
|
13546
13451
|
* @throws {RequiredError}
|
|
13547
13452
|
*/
|
|
13548
13453
|
deleteBookingSpaceAvailability(requestParameters, options) {
|
|
13549
|
-
return localVarFp.deleteBookingSpaceAvailability(requestParameters.
|
|
13454
|
+
return localVarFp.deleteBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(axios, basePath));
|
|
13550
13455
|
},
|
|
13551
13456
|
/**
|
|
13552
13457
|
* 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.
|
|
@@ -13556,7 +13461,7 @@ const BookingsAvailabilitiesApiFactory = function (configuration, basePath, axio
|
|
|
13556
13461
|
* @throws {RequiredError}
|
|
13557
13462
|
*/
|
|
13558
13463
|
updateBookingSpaceAvailability(requestParameters, options) {
|
|
13559
|
-
return localVarFp.updateBookingSpaceAvailability(requestParameters.
|
|
13464
|
+
return localVarFp.updateBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, requestParameters.bookingSpaceAvailabilityUpdateInputs, options).then((request) => request(axios, basePath));
|
|
13560
13465
|
},
|
|
13561
13466
|
};
|
|
13562
13467
|
};
|
|
@@ -13573,7 +13478,7 @@ class BookingsAvailabilitiesApi extends base_1.BaseAPI {
|
|
|
13573
13478
|
* @throws {RequiredError}
|
|
13574
13479
|
*/
|
|
13575
13480
|
createBookingSpaceAvailability(requestParameters, options) {
|
|
13576
|
-
return (0, exports.BookingsAvailabilitiesApiFp)(this.configuration).createBookingSpaceAvailability(requestParameters.
|
|
13481
|
+
return (0, exports.BookingsAvailabilitiesApiFp)(this.configuration).createBookingSpaceAvailability(requestParameters.spaceId, requestParameters.bookingSpaceAvailabilityCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13577
13482
|
}
|
|
13578
13483
|
/**
|
|
13579
13484
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -13583,7 +13488,7 @@ class BookingsAvailabilitiesApi extends base_1.BaseAPI {
|
|
|
13583
13488
|
* @throws {RequiredError}
|
|
13584
13489
|
*/
|
|
13585
13490
|
deleteBookingSpaceAvailability(requestParameters, options) {
|
|
13586
|
-
return (0, exports.BookingsAvailabilitiesApiFp)(this.configuration).deleteBookingSpaceAvailability(requestParameters.
|
|
13491
|
+
return (0, exports.BookingsAvailabilitiesApiFp)(this.configuration).deleteBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(this.axios, this.basePath));
|
|
13587
13492
|
}
|
|
13588
13493
|
/**
|
|
13589
13494
|
* 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.
|
|
@@ -13593,7 +13498,7 @@ class BookingsAvailabilitiesApi extends base_1.BaseAPI {
|
|
|
13593
13498
|
* @throws {RequiredError}
|
|
13594
13499
|
*/
|
|
13595
13500
|
updateBookingSpaceAvailability(requestParameters, options) {
|
|
13596
|
-
return (0, exports.BookingsAvailabilitiesApiFp)(this.configuration).updateBookingSpaceAvailability(requestParameters.
|
|
13501
|
+
return (0, exports.BookingsAvailabilitiesApiFp)(this.configuration).updateBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, requestParameters.bookingSpaceAvailabilityUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13597
13502
|
}
|
|
13598
13503
|
}
|
|
13599
13504
|
exports.BookingsAvailabilitiesApi = BookingsAvailabilitiesApi;
|
|
@@ -13605,21 +13510,17 @@ const BookingsBlackoutsApiAxiosParamCreator = function (configuration) {
|
|
|
13605
13510
|
/**
|
|
13606
13511
|
* 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.
|
|
13607
13512
|
* @summary Create a booking space blackout
|
|
13608
|
-
* @param {string} placeId The place identifier
|
|
13609
13513
|
* @param {string} spaceId The space identifier
|
|
13610
13514
|
* @param {BookingSpaceBlackoutCreateInputs} bookingSpaceBlackoutCreateInputs
|
|
13611
13515
|
* @param {*} [options] Override http request option.
|
|
13612
13516
|
* @throws {RequiredError}
|
|
13613
13517
|
*/
|
|
13614
|
-
createBookingSpaceBlackout: (
|
|
13615
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13616
|
-
(0, common_1.assertParamExists)('createBookingSpaceBlackout', 'placeId', placeId);
|
|
13518
|
+
createBookingSpaceBlackout: (spaceId_1, bookingSpaceBlackoutCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingSpaceBlackoutCreateInputs_1, ...args_1], void 0, function* (spaceId, bookingSpaceBlackoutCreateInputs, options = {}) {
|
|
13617
13519
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13618
13520
|
(0, common_1.assertParamExists)('createBookingSpaceBlackout', 'spaceId', spaceId);
|
|
13619
13521
|
// verify required parameter 'bookingSpaceBlackoutCreateInputs' is not null or undefined
|
|
13620
13522
|
(0, common_1.assertParamExists)('createBookingSpaceBlackout', 'bookingSpaceBlackoutCreateInputs', bookingSpaceBlackoutCreateInputs);
|
|
13621
|
-
const localVarPath = `/bookings/
|
|
13622
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13523
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts`
|
|
13623
13524
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
13624
13525
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13625
13526
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -13648,21 +13549,17 @@ const BookingsBlackoutsApiAxiosParamCreator = function (configuration) {
|
|
|
13648
13549
|
/**
|
|
13649
13550
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
13650
13551
|
* @summary Delete a booking space blackout
|
|
13651
|
-
* @param {string} placeId The place identifier
|
|
13652
13552
|
* @param {string} spaceId The space identifier
|
|
13653
13553
|
* @param {string} blackoutId The blackout identifier
|
|
13654
13554
|
* @param {*} [options] Override http request option.
|
|
13655
13555
|
* @throws {RequiredError}
|
|
13656
13556
|
*/
|
|
13657
|
-
deleteBookingSpaceBlackout: (
|
|
13658
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13659
|
-
(0, common_1.assertParamExists)('deleteBookingSpaceBlackout', 'placeId', placeId);
|
|
13557
|
+
deleteBookingSpaceBlackout: (spaceId_1, blackoutId_1, ...args_1) => __awaiter(this, [spaceId_1, blackoutId_1, ...args_1], void 0, function* (spaceId, blackoutId, options = {}) {
|
|
13660
13558
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13661
13559
|
(0, common_1.assertParamExists)('deleteBookingSpaceBlackout', 'spaceId', spaceId);
|
|
13662
13560
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
13663
13561
|
(0, common_1.assertParamExists)('deleteBookingSpaceBlackout', 'blackoutId', blackoutId);
|
|
13664
|
-
const localVarPath = `/bookings/
|
|
13665
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13562
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
13666
13563
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
13667
13564
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
13668
13565
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13690,24 +13587,20 @@ const BookingsBlackoutsApiAxiosParamCreator = function (configuration) {
|
|
|
13690
13587
|
/**
|
|
13691
13588
|
* 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.
|
|
13692
13589
|
* @summary Update a booking space blackout
|
|
13693
|
-
* @param {string} placeId The place identifier
|
|
13694
13590
|
* @param {string} spaceId The space identifier
|
|
13695
13591
|
* @param {string} blackoutId The blackout identifier
|
|
13696
13592
|
* @param {BookingSpaceBlackoutUpdateInputs} bookingSpaceBlackoutUpdateInputs
|
|
13697
13593
|
* @param {*} [options] Override http request option.
|
|
13698
13594
|
* @throws {RequiredError}
|
|
13699
13595
|
*/
|
|
13700
|
-
updateBookingSpaceBlackout: (
|
|
13701
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
13702
|
-
(0, common_1.assertParamExists)('updateBookingSpaceBlackout', 'placeId', placeId);
|
|
13596
|
+
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 = {}) {
|
|
13703
13597
|
// verify required parameter 'spaceId' is not null or undefined
|
|
13704
13598
|
(0, common_1.assertParamExists)('updateBookingSpaceBlackout', 'spaceId', spaceId);
|
|
13705
13599
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
13706
13600
|
(0, common_1.assertParamExists)('updateBookingSpaceBlackout', 'blackoutId', blackoutId);
|
|
13707
13601
|
// verify required parameter 'bookingSpaceBlackoutUpdateInputs' is not null or undefined
|
|
13708
13602
|
(0, common_1.assertParamExists)('updateBookingSpaceBlackout', 'bookingSpaceBlackoutUpdateInputs', bookingSpaceBlackoutUpdateInputs);
|
|
13709
|
-
const localVarPath = `/bookings/
|
|
13710
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
13603
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
13711
13604
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
13712
13605
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
13713
13606
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13746,16 +13639,15 @@ const BookingsBlackoutsApiFp = function (configuration) {
|
|
|
13746
13639
|
/**
|
|
13747
13640
|
* 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.
|
|
13748
13641
|
* @summary Create a booking space blackout
|
|
13749
|
-
* @param {string} placeId The place identifier
|
|
13750
13642
|
* @param {string} spaceId The space identifier
|
|
13751
13643
|
* @param {BookingSpaceBlackoutCreateInputs} bookingSpaceBlackoutCreateInputs
|
|
13752
13644
|
* @param {*} [options] Override http request option.
|
|
13753
13645
|
* @throws {RequiredError}
|
|
13754
13646
|
*/
|
|
13755
|
-
createBookingSpaceBlackout(
|
|
13647
|
+
createBookingSpaceBlackout(spaceId, bookingSpaceBlackoutCreateInputs, options) {
|
|
13756
13648
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13757
13649
|
var _a, _b, _c;
|
|
13758
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceBlackout(
|
|
13650
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceBlackout(spaceId, bookingSpaceBlackoutCreateInputs, options);
|
|
13759
13651
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13760
13652
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsBlackoutsApi.createBookingSpaceBlackout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13761
13653
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13764,16 +13656,15 @@ const BookingsBlackoutsApiFp = function (configuration) {
|
|
|
13764
13656
|
/**
|
|
13765
13657
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
13766
13658
|
* @summary Delete a booking space blackout
|
|
13767
|
-
* @param {string} placeId The place identifier
|
|
13768
13659
|
* @param {string} spaceId The space identifier
|
|
13769
13660
|
* @param {string} blackoutId The blackout identifier
|
|
13770
13661
|
* @param {*} [options] Override http request option.
|
|
13771
13662
|
* @throws {RequiredError}
|
|
13772
13663
|
*/
|
|
13773
|
-
deleteBookingSpaceBlackout(
|
|
13664
|
+
deleteBookingSpaceBlackout(spaceId, blackoutId, options) {
|
|
13774
13665
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13775
13666
|
var _a, _b, _c;
|
|
13776
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceBlackout(
|
|
13667
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceBlackout(spaceId, blackoutId, options);
|
|
13777
13668
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13778
13669
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsBlackoutsApi.deleteBookingSpaceBlackout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13779
13670
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13782,17 +13673,16 @@ const BookingsBlackoutsApiFp = function (configuration) {
|
|
|
13782
13673
|
/**
|
|
13783
13674
|
* 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.
|
|
13784
13675
|
* @summary Update a booking space blackout
|
|
13785
|
-
* @param {string} placeId The place identifier
|
|
13786
13676
|
* @param {string} spaceId The space identifier
|
|
13787
13677
|
* @param {string} blackoutId The blackout identifier
|
|
13788
13678
|
* @param {BookingSpaceBlackoutUpdateInputs} bookingSpaceBlackoutUpdateInputs
|
|
13789
13679
|
* @param {*} [options] Override http request option.
|
|
13790
13680
|
* @throws {RequiredError}
|
|
13791
13681
|
*/
|
|
13792
|
-
updateBookingSpaceBlackout(
|
|
13682
|
+
updateBookingSpaceBlackout(spaceId, blackoutId, bookingSpaceBlackoutUpdateInputs, options) {
|
|
13793
13683
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13794
13684
|
var _a, _b, _c;
|
|
13795
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceBlackout(
|
|
13685
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceBlackout(spaceId, blackoutId, bookingSpaceBlackoutUpdateInputs, options);
|
|
13796
13686
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13797
13687
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsBlackoutsApi.updateBookingSpaceBlackout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13798
13688
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13815,7 +13705,7 @@ const BookingsBlackoutsApiFactory = function (configuration, basePath, axios) {
|
|
|
13815
13705
|
* @throws {RequiredError}
|
|
13816
13706
|
*/
|
|
13817
13707
|
createBookingSpaceBlackout(requestParameters, options) {
|
|
13818
|
-
return localVarFp.createBookingSpaceBlackout(requestParameters.
|
|
13708
|
+
return localVarFp.createBookingSpaceBlackout(requestParameters.spaceId, requestParameters.bookingSpaceBlackoutCreateInputs, options).then((request) => request(axios, basePath));
|
|
13819
13709
|
},
|
|
13820
13710
|
/**
|
|
13821
13711
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -13825,7 +13715,7 @@ const BookingsBlackoutsApiFactory = function (configuration, basePath, axios) {
|
|
|
13825
13715
|
* @throws {RequiredError}
|
|
13826
13716
|
*/
|
|
13827
13717
|
deleteBookingSpaceBlackout(requestParameters, options) {
|
|
13828
|
-
return localVarFp.deleteBookingSpaceBlackout(requestParameters.
|
|
13718
|
+
return localVarFp.deleteBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(axios, basePath));
|
|
13829
13719
|
},
|
|
13830
13720
|
/**
|
|
13831
13721
|
* 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.
|
|
@@ -13835,7 +13725,7 @@ const BookingsBlackoutsApiFactory = function (configuration, basePath, axios) {
|
|
|
13835
13725
|
* @throws {RequiredError}
|
|
13836
13726
|
*/
|
|
13837
13727
|
updateBookingSpaceBlackout(requestParameters, options) {
|
|
13838
|
-
return localVarFp.updateBookingSpaceBlackout(requestParameters.
|
|
13728
|
+
return localVarFp.updateBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, requestParameters.bookingSpaceBlackoutUpdateInputs, options).then((request) => request(axios, basePath));
|
|
13839
13729
|
},
|
|
13840
13730
|
};
|
|
13841
13731
|
};
|
|
@@ -13852,7 +13742,7 @@ class BookingsBlackoutsApi extends base_1.BaseAPI {
|
|
|
13852
13742
|
* @throws {RequiredError}
|
|
13853
13743
|
*/
|
|
13854
13744
|
createBookingSpaceBlackout(requestParameters, options) {
|
|
13855
|
-
return (0, exports.BookingsBlackoutsApiFp)(this.configuration).createBookingSpaceBlackout(requestParameters.
|
|
13745
|
+
return (0, exports.BookingsBlackoutsApiFp)(this.configuration).createBookingSpaceBlackout(requestParameters.spaceId, requestParameters.bookingSpaceBlackoutCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13856
13746
|
}
|
|
13857
13747
|
/**
|
|
13858
13748
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -13862,7 +13752,7 @@ class BookingsBlackoutsApi extends base_1.BaseAPI {
|
|
|
13862
13752
|
* @throws {RequiredError}
|
|
13863
13753
|
*/
|
|
13864
13754
|
deleteBookingSpaceBlackout(requestParameters, options) {
|
|
13865
|
-
return (0, exports.BookingsBlackoutsApiFp)(this.configuration).deleteBookingSpaceBlackout(requestParameters.
|
|
13755
|
+
return (0, exports.BookingsBlackoutsApiFp)(this.configuration).deleteBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(this.axios, this.basePath));
|
|
13866
13756
|
}
|
|
13867
13757
|
/**
|
|
13868
13758
|
* 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.
|
|
@@ -13872,7 +13762,7 @@ class BookingsBlackoutsApi extends base_1.BaseAPI {
|
|
|
13872
13762
|
* @throws {RequiredError}
|
|
13873
13763
|
*/
|
|
13874
13764
|
updateBookingSpaceBlackout(requestParameters, options) {
|
|
13875
|
-
return (0, exports.BookingsBlackoutsApiFp)(this.configuration).updateBookingSpaceBlackout(requestParameters.
|
|
13765
|
+
return (0, exports.BookingsBlackoutsApiFp)(this.configuration).updateBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, requestParameters.bookingSpaceBlackoutUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
13876
13766
|
}
|
|
13877
13767
|
}
|
|
13878
13768
|
exports.BookingsBlackoutsApi = BookingsBlackoutsApi;
|
|
@@ -14321,24 +14211,20 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14321
14211
|
/**
|
|
14322
14212
|
* 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.
|
|
14323
14213
|
* @summary Attach a search list to a booking question
|
|
14324
|
-
* @param {string} placeId The place identifier
|
|
14325
14214
|
* @param {string} spaceId The space identifier
|
|
14326
14215
|
* @param {string} questionId The question identifier
|
|
14327
14216
|
* @param {AttachSearchListInputs} attachSearchListInputs
|
|
14328
14217
|
* @param {*} [options] Override http request option.
|
|
14329
14218
|
* @throws {RequiredError}
|
|
14330
14219
|
*/
|
|
14331
|
-
attachBookingSpaceQuestionSearchList: (
|
|
14332
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14333
|
-
(0, common_1.assertParamExists)('attachBookingSpaceQuestionSearchList', 'placeId', placeId);
|
|
14220
|
+
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 = {}) {
|
|
14334
14221
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14335
14222
|
(0, common_1.assertParamExists)('attachBookingSpaceQuestionSearchList', 'spaceId', spaceId);
|
|
14336
14223
|
// verify required parameter 'questionId' is not null or undefined
|
|
14337
14224
|
(0, common_1.assertParamExists)('attachBookingSpaceQuestionSearchList', 'questionId', questionId);
|
|
14338
14225
|
// verify required parameter 'attachSearchListInputs' is not null or undefined
|
|
14339
14226
|
(0, common_1.assertParamExists)('attachBookingSpaceQuestionSearchList', 'attachSearchListInputs', attachSearchListInputs);
|
|
14340
|
-
const localVarPath = `/bookings/
|
|
14341
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14227
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/searchlist`
|
|
14342
14228
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14343
14229
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14344
14230
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14368,21 +14254,17 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14368
14254
|
/**
|
|
14369
14255
|
* 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.
|
|
14370
14256
|
* @summary Create a booking space question
|
|
14371
|
-
* @param {string} placeId The place identifier
|
|
14372
14257
|
* @param {string} spaceId The space identifier
|
|
14373
14258
|
* @param {BookingSpaceQuestionCreateInputs} bookingSpaceQuestionCreateInputs
|
|
14374
14259
|
* @param {*} [options] Override http request option.
|
|
14375
14260
|
* @throws {RequiredError}
|
|
14376
14261
|
*/
|
|
14377
|
-
createBookingSpaceQuestion: (
|
|
14378
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14379
|
-
(0, common_1.assertParamExists)('createBookingSpaceQuestion', 'placeId', placeId);
|
|
14262
|
+
createBookingSpaceQuestion: (spaceId_1, bookingSpaceQuestionCreateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingSpaceQuestionCreateInputs_1, ...args_1], void 0, function* (spaceId, bookingSpaceQuestionCreateInputs, options = {}) {
|
|
14380
14263
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14381
14264
|
(0, common_1.assertParamExists)('createBookingSpaceQuestion', 'spaceId', spaceId);
|
|
14382
14265
|
// verify required parameter 'bookingSpaceQuestionCreateInputs' is not null or undefined
|
|
14383
14266
|
(0, common_1.assertParamExists)('createBookingSpaceQuestion', 'bookingSpaceQuestionCreateInputs', bookingSpaceQuestionCreateInputs);
|
|
14384
|
-
const localVarPath = `/bookings/
|
|
14385
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14267
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions`
|
|
14386
14268
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
14387
14269
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14388
14270
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -14411,21 +14293,17 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14411
14293
|
/**
|
|
14412
14294
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
14413
14295
|
* @summary Delete a booking space question
|
|
14414
|
-
* @param {string} placeId The place identifier
|
|
14415
14296
|
* @param {string} spaceId The space identifier
|
|
14416
14297
|
* @param {string} questionId The question identifier
|
|
14417
14298
|
* @param {*} [options] Override http request option.
|
|
14418
14299
|
* @throws {RequiredError}
|
|
14419
14300
|
*/
|
|
14420
|
-
deleteBookingSpaceQuestion: (
|
|
14421
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14422
|
-
(0, common_1.assertParamExists)('deleteBookingSpaceQuestion', 'placeId', placeId);
|
|
14301
|
+
deleteBookingSpaceQuestion: (spaceId_1, questionId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, ...args_1], void 0, function* (spaceId, questionId, options = {}) {
|
|
14423
14302
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14424
14303
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestion', 'spaceId', spaceId);
|
|
14425
14304
|
// verify required parameter 'questionId' is not null or undefined
|
|
14426
14305
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestion', 'questionId', questionId);
|
|
14427
|
-
const localVarPath = `/bookings/
|
|
14428
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14306
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
14429
14307
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14430
14308
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14431
14309
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14453,21 +14331,17 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14453
14331
|
/**
|
|
14454
14332
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
14455
14333
|
* @summary Detach a search list from a booking question
|
|
14456
|
-
* @param {string} placeId The place identifier
|
|
14457
14334
|
* @param {string} spaceId The space identifier
|
|
14458
14335
|
* @param {string} questionId The question identifier
|
|
14459
14336
|
* @param {*} [options] Override http request option.
|
|
14460
14337
|
* @throws {RequiredError}
|
|
14461
14338
|
*/
|
|
14462
|
-
detachBookingSpaceQuestionSearchList: (
|
|
14463
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14464
|
-
(0, common_1.assertParamExists)('detachBookingSpaceQuestionSearchList', 'placeId', placeId);
|
|
14339
|
+
detachBookingSpaceQuestionSearchList: (spaceId_1, questionId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, ...args_1], void 0, function* (spaceId, questionId, options = {}) {
|
|
14465
14340
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14466
14341
|
(0, common_1.assertParamExists)('detachBookingSpaceQuestionSearchList', 'spaceId', spaceId);
|
|
14467
14342
|
// verify required parameter 'questionId' is not null or undefined
|
|
14468
14343
|
(0, common_1.assertParamExists)('detachBookingSpaceQuestionSearchList', 'questionId', questionId);
|
|
14469
|
-
const localVarPath = `/bookings/
|
|
14470
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14344
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/searchlist`
|
|
14471
14345
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14472
14346
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14473
14347
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14495,21 +14369,17 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14495
14369
|
/**
|
|
14496
14370
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
14497
14371
|
* @summary Get a booking space question
|
|
14498
|
-
* @param {string} placeId The place identifier
|
|
14499
14372
|
* @param {string} spaceId The space identifier
|
|
14500
14373
|
* @param {string} questionId The question identifier
|
|
14501
14374
|
* @param {*} [options] Override http request option.
|
|
14502
14375
|
* @throws {RequiredError}
|
|
14503
14376
|
*/
|
|
14504
|
-
getBookingSpaceQuestion: (
|
|
14505
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14506
|
-
(0, common_1.assertParamExists)('getBookingSpaceQuestion', 'placeId', placeId);
|
|
14377
|
+
getBookingSpaceQuestion: (spaceId_1, questionId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, ...args_1], void 0, function* (spaceId, questionId, options = {}) {
|
|
14507
14378
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14508
14379
|
(0, common_1.assertParamExists)('getBookingSpaceQuestion', 'spaceId', spaceId);
|
|
14509
14380
|
// verify required parameter 'questionId' is not null or undefined
|
|
14510
14381
|
(0, common_1.assertParamExists)('getBookingSpaceQuestion', 'questionId', questionId);
|
|
14511
|
-
const localVarPath = `/bookings/
|
|
14512
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14382
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
14513
14383
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14514
14384
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14515
14385
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14537,7 +14407,6 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14537
14407
|
/**
|
|
14538
14408
|
* 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\".
|
|
14539
14409
|
* @summary List a booking space\'s custom questions
|
|
14540
|
-
* @param {string} placeId The place identifier
|
|
14541
14410
|
* @param {string} spaceId The space identifier
|
|
14542
14411
|
* @param {number} [page] Page number
|
|
14543
14412
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -14546,13 +14415,10 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14546
14415
|
* @param {*} [options] Override http request option.
|
|
14547
14416
|
* @throws {RequiredError}
|
|
14548
14417
|
*/
|
|
14549
|
-
getBookingSpaceQuestions: (
|
|
14550
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14551
|
-
(0, common_1.assertParamExists)('getBookingSpaceQuestions', 'placeId', placeId);
|
|
14418
|
+
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 = {}) {
|
|
14552
14419
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14553
14420
|
(0, common_1.assertParamExists)('getBookingSpaceQuestions', 'spaceId', spaceId);
|
|
14554
|
-
const localVarPath = `/bookings/
|
|
14555
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14421
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions`
|
|
14556
14422
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
14557
14423
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14558
14424
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -14591,21 +14457,17 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14591
14457
|
/**
|
|
14592
14458
|
* 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.
|
|
14593
14459
|
* @summary Reorder a booking space\'s questions
|
|
14594
|
-
* @param {string} placeId The place identifier
|
|
14595
14460
|
* @param {string} spaceId The space identifier
|
|
14596
14461
|
* @param {ReorderBookingSpaceQuestionsRequest} reorderBookingSpaceQuestionsRequest
|
|
14597
14462
|
* @param {*} [options] Override http request option.
|
|
14598
14463
|
* @throws {RequiredError}
|
|
14599
14464
|
*/
|
|
14600
|
-
reorderBookingSpaceQuestions: (
|
|
14601
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14602
|
-
(0, common_1.assertParamExists)('reorderBookingSpaceQuestions', 'placeId', placeId);
|
|
14465
|
+
reorderBookingSpaceQuestions: (spaceId_1, reorderBookingSpaceQuestionsRequest_1, ...args_1) => __awaiter(this, [spaceId_1, reorderBookingSpaceQuestionsRequest_1, ...args_1], void 0, function* (spaceId, reorderBookingSpaceQuestionsRequest, options = {}) {
|
|
14603
14466
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14604
14467
|
(0, common_1.assertParamExists)('reorderBookingSpaceQuestions', 'spaceId', spaceId);
|
|
14605
14468
|
// verify required parameter 'reorderBookingSpaceQuestionsRequest' is not null or undefined
|
|
14606
14469
|
(0, common_1.assertParamExists)('reorderBookingSpaceQuestions', 'reorderBookingSpaceQuestionsRequest', reorderBookingSpaceQuestionsRequest);
|
|
14607
|
-
const localVarPath = `/bookings/
|
|
14608
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14470
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/reorder`
|
|
14609
14471
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
14610
14472
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14611
14473
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -14634,24 +14496,20 @@ const BookingsQuestionsApiAxiosParamCreator = function (configuration) {
|
|
|
14634
14496
|
/**
|
|
14635
14497
|
* 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.
|
|
14636
14498
|
* @summary Update a booking space question
|
|
14637
|
-
* @param {string} placeId The place identifier
|
|
14638
14499
|
* @param {string} spaceId The space identifier
|
|
14639
14500
|
* @param {string} questionId The question identifier
|
|
14640
14501
|
* @param {BookingSpaceQuestionUpdateInputs} bookingSpaceQuestionUpdateInputs
|
|
14641
14502
|
* @param {*} [options] Override http request option.
|
|
14642
14503
|
* @throws {RequiredError}
|
|
14643
14504
|
*/
|
|
14644
|
-
updateBookingSpaceQuestion: (
|
|
14645
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
14646
|
-
(0, common_1.assertParamExists)('updateBookingSpaceQuestion', 'placeId', placeId);
|
|
14505
|
+
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 = {}) {
|
|
14647
14506
|
// verify required parameter 'spaceId' is not null or undefined
|
|
14648
14507
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestion', 'spaceId', spaceId);
|
|
14649
14508
|
// verify required parameter 'questionId' is not null or undefined
|
|
14650
14509
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestion', 'questionId', questionId);
|
|
14651
14510
|
// verify required parameter 'bookingSpaceQuestionUpdateInputs' is not null or undefined
|
|
14652
14511
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestion', 'bookingSpaceQuestionUpdateInputs', bookingSpaceQuestionUpdateInputs);
|
|
14653
|
-
const localVarPath = `/bookings/
|
|
14654
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14512
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
14655
14513
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
14656
14514
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
14657
14515
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14690,17 +14548,16 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14690
14548
|
/**
|
|
14691
14549
|
* 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.
|
|
14692
14550
|
* @summary Attach a search list to a booking question
|
|
14693
|
-
* @param {string} placeId The place identifier
|
|
14694
14551
|
* @param {string} spaceId The space identifier
|
|
14695
14552
|
* @param {string} questionId The question identifier
|
|
14696
14553
|
* @param {AttachSearchListInputs} attachSearchListInputs
|
|
14697
14554
|
* @param {*} [options] Override http request option.
|
|
14698
14555
|
* @throws {RequiredError}
|
|
14699
14556
|
*/
|
|
14700
|
-
attachBookingSpaceQuestionSearchList(
|
|
14557
|
+
attachBookingSpaceQuestionSearchList(spaceId, questionId, attachSearchListInputs, options) {
|
|
14701
14558
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14702
14559
|
var _a, _b, _c;
|
|
14703
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachBookingSpaceQuestionSearchList(
|
|
14560
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachBookingSpaceQuestionSearchList(spaceId, questionId, attachSearchListInputs, options);
|
|
14704
14561
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14705
14562
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsApi.attachBookingSpaceQuestionSearchList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14706
14563
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14709,16 +14566,15 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14709
14566
|
/**
|
|
14710
14567
|
* 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.
|
|
14711
14568
|
* @summary Create a booking space question
|
|
14712
|
-
* @param {string} placeId The place identifier
|
|
14713
14569
|
* @param {string} spaceId The space identifier
|
|
14714
14570
|
* @param {BookingSpaceQuestionCreateInputs} bookingSpaceQuestionCreateInputs
|
|
14715
14571
|
* @param {*} [options] Override http request option.
|
|
14716
14572
|
* @throws {RequiredError}
|
|
14717
14573
|
*/
|
|
14718
|
-
createBookingSpaceQuestion(
|
|
14574
|
+
createBookingSpaceQuestion(spaceId, bookingSpaceQuestionCreateInputs, options) {
|
|
14719
14575
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14720
14576
|
var _a, _b, _c;
|
|
14721
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceQuestion(
|
|
14577
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceQuestion(spaceId, bookingSpaceQuestionCreateInputs, options);
|
|
14722
14578
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14723
14579
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsApi.createBookingSpaceQuestion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14724
14580
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14727,16 +14583,15 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14727
14583
|
/**
|
|
14728
14584
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
14729
14585
|
* @summary Delete a booking space question
|
|
14730
|
-
* @param {string} placeId The place identifier
|
|
14731
14586
|
* @param {string} spaceId The space identifier
|
|
14732
14587
|
* @param {string} questionId The question identifier
|
|
14733
14588
|
* @param {*} [options] Override http request option.
|
|
14734
14589
|
* @throws {RequiredError}
|
|
14735
14590
|
*/
|
|
14736
|
-
deleteBookingSpaceQuestion(
|
|
14591
|
+
deleteBookingSpaceQuestion(spaceId, questionId, options) {
|
|
14737
14592
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14738
14593
|
var _a, _b, _c;
|
|
14739
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestion(
|
|
14594
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestion(spaceId, questionId, options);
|
|
14740
14595
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14741
14596
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsApi.deleteBookingSpaceQuestion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14742
14597
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14745,16 +14600,15 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14745
14600
|
/**
|
|
14746
14601
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
14747
14602
|
* @summary Detach a search list from a booking question
|
|
14748
|
-
* @param {string} placeId The place identifier
|
|
14749
14603
|
* @param {string} spaceId The space identifier
|
|
14750
14604
|
* @param {string} questionId The question identifier
|
|
14751
14605
|
* @param {*} [options] Override http request option.
|
|
14752
14606
|
* @throws {RequiredError}
|
|
14753
14607
|
*/
|
|
14754
|
-
detachBookingSpaceQuestionSearchList(
|
|
14608
|
+
detachBookingSpaceQuestionSearchList(spaceId, questionId, options) {
|
|
14755
14609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14756
14610
|
var _a, _b, _c;
|
|
14757
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.detachBookingSpaceQuestionSearchList(
|
|
14611
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.detachBookingSpaceQuestionSearchList(spaceId, questionId, options);
|
|
14758
14612
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14759
14613
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsApi.detachBookingSpaceQuestionSearchList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14760
14614
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14763,16 +14617,15 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14763
14617
|
/**
|
|
14764
14618
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
14765
14619
|
* @summary Get a booking space question
|
|
14766
|
-
* @param {string} placeId The place identifier
|
|
14767
14620
|
* @param {string} spaceId The space identifier
|
|
14768
14621
|
* @param {string} questionId The question identifier
|
|
14769
14622
|
* @param {*} [options] Override http request option.
|
|
14770
14623
|
* @throws {RequiredError}
|
|
14771
14624
|
*/
|
|
14772
|
-
getBookingSpaceQuestion(
|
|
14625
|
+
getBookingSpaceQuestion(spaceId, questionId, options) {
|
|
14773
14626
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14774
14627
|
var _a, _b, _c;
|
|
14775
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestion(
|
|
14628
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestion(spaceId, questionId, options);
|
|
14776
14629
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14777
14630
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsApi.getBookingSpaceQuestion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14778
14631
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14781,7 +14634,6 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14781
14634
|
/**
|
|
14782
14635
|
* 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\".
|
|
14783
14636
|
* @summary List a booking space\'s custom questions
|
|
14784
|
-
* @param {string} placeId The place identifier
|
|
14785
14637
|
* @param {string} spaceId The space identifier
|
|
14786
14638
|
* @param {number} [page] Page number
|
|
14787
14639
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -14790,10 +14642,10 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14790
14642
|
* @param {*} [options] Override http request option.
|
|
14791
14643
|
* @throws {RequiredError}
|
|
14792
14644
|
*/
|
|
14793
|
-
getBookingSpaceQuestions(
|
|
14645
|
+
getBookingSpaceQuestions(spaceId, page, pageSize, orderBy, search, options) {
|
|
14794
14646
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14795
14647
|
var _a, _b, _c;
|
|
14796
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestions(
|
|
14648
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestions(spaceId, page, pageSize, orderBy, search, options);
|
|
14797
14649
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14798
14650
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsApi.getBookingSpaceQuestions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14799
14651
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14802,16 +14654,15 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14802
14654
|
/**
|
|
14803
14655
|
* 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.
|
|
14804
14656
|
* @summary Reorder a booking space\'s questions
|
|
14805
|
-
* @param {string} placeId The place identifier
|
|
14806
14657
|
* @param {string} spaceId The space identifier
|
|
14807
14658
|
* @param {ReorderBookingSpaceQuestionsRequest} reorderBookingSpaceQuestionsRequest
|
|
14808
14659
|
* @param {*} [options] Override http request option.
|
|
14809
14660
|
* @throws {RequiredError}
|
|
14810
14661
|
*/
|
|
14811
|
-
reorderBookingSpaceQuestions(
|
|
14662
|
+
reorderBookingSpaceQuestions(spaceId, reorderBookingSpaceQuestionsRequest, options) {
|
|
14812
14663
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14813
14664
|
var _a, _b, _c;
|
|
14814
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderBookingSpaceQuestions(
|
|
14665
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderBookingSpaceQuestions(spaceId, reorderBookingSpaceQuestionsRequest, options);
|
|
14815
14666
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14816
14667
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsApi.reorderBookingSpaceQuestions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14817
14668
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14820,17 +14671,16 @@ const BookingsQuestionsApiFp = function (configuration) {
|
|
|
14820
14671
|
/**
|
|
14821
14672
|
* 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.
|
|
14822
14673
|
* @summary Update a booking space question
|
|
14823
|
-
* @param {string} placeId The place identifier
|
|
14824
14674
|
* @param {string} spaceId The space identifier
|
|
14825
14675
|
* @param {string} questionId The question identifier
|
|
14826
14676
|
* @param {BookingSpaceQuestionUpdateInputs} bookingSpaceQuestionUpdateInputs
|
|
14827
14677
|
* @param {*} [options] Override http request option.
|
|
14828
14678
|
* @throws {RequiredError}
|
|
14829
14679
|
*/
|
|
14830
|
-
updateBookingSpaceQuestion(
|
|
14680
|
+
updateBookingSpaceQuestion(spaceId, questionId, bookingSpaceQuestionUpdateInputs, options) {
|
|
14831
14681
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14832
14682
|
var _a, _b, _c;
|
|
14833
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestion(
|
|
14683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestion(spaceId, questionId, bookingSpaceQuestionUpdateInputs, options);
|
|
14834
14684
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14835
14685
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsApi.updateBookingSpaceQuestion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14836
14686
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14853,7 +14703,7 @@ const BookingsQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
14853
14703
|
* @throws {RequiredError}
|
|
14854
14704
|
*/
|
|
14855
14705
|
attachBookingSpaceQuestionSearchList(requestParameters, options) {
|
|
14856
|
-
return localVarFp.attachBookingSpaceQuestionSearchList(requestParameters.
|
|
14706
|
+
return localVarFp.attachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, requestParameters.attachSearchListInputs, options).then((request) => request(axios, basePath));
|
|
14857
14707
|
},
|
|
14858
14708
|
/**
|
|
14859
14709
|
* 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.
|
|
@@ -14863,7 +14713,7 @@ const BookingsQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
14863
14713
|
* @throws {RequiredError}
|
|
14864
14714
|
*/
|
|
14865
14715
|
createBookingSpaceQuestion(requestParameters, options) {
|
|
14866
|
-
return localVarFp.createBookingSpaceQuestion(requestParameters.
|
|
14716
|
+
return localVarFp.createBookingSpaceQuestion(requestParameters.spaceId, requestParameters.bookingSpaceQuestionCreateInputs, options).then((request) => request(axios, basePath));
|
|
14867
14717
|
},
|
|
14868
14718
|
/**
|
|
14869
14719
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
@@ -14873,7 +14723,7 @@ const BookingsQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
14873
14723
|
* @throws {RequiredError}
|
|
14874
14724
|
*/
|
|
14875
14725
|
deleteBookingSpaceQuestion(requestParameters, options) {
|
|
14876
|
-
return localVarFp.deleteBookingSpaceQuestion(requestParameters.
|
|
14726
|
+
return localVarFp.deleteBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
14877
14727
|
},
|
|
14878
14728
|
/**
|
|
14879
14729
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
@@ -14883,7 +14733,7 @@ const BookingsQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
14883
14733
|
* @throws {RequiredError}
|
|
14884
14734
|
*/
|
|
14885
14735
|
detachBookingSpaceQuestionSearchList(requestParameters, options) {
|
|
14886
|
-
return localVarFp.detachBookingSpaceQuestionSearchList(requestParameters.
|
|
14736
|
+
return localVarFp.detachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
14887
14737
|
},
|
|
14888
14738
|
/**
|
|
14889
14739
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
@@ -14893,7 +14743,7 @@ const BookingsQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
14893
14743
|
* @throws {RequiredError}
|
|
14894
14744
|
*/
|
|
14895
14745
|
getBookingSpaceQuestion(requestParameters, options) {
|
|
14896
|
-
return localVarFp.getBookingSpaceQuestion(requestParameters.
|
|
14746
|
+
return localVarFp.getBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
14897
14747
|
},
|
|
14898
14748
|
/**
|
|
14899
14749
|
* 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\".
|
|
@@ -14903,7 +14753,7 @@ const BookingsQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
14903
14753
|
* @throws {RequiredError}
|
|
14904
14754
|
*/
|
|
14905
14755
|
getBookingSpaceQuestions(requestParameters, options) {
|
|
14906
|
-
return localVarFp.getBookingSpaceQuestions(requestParameters.
|
|
14756
|
+
return localVarFp.getBookingSpaceQuestions(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
14907
14757
|
},
|
|
14908
14758
|
/**
|
|
14909
14759
|
* 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.
|
|
@@ -14913,7 +14763,7 @@ const BookingsQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
14913
14763
|
* @throws {RequiredError}
|
|
14914
14764
|
*/
|
|
14915
14765
|
reorderBookingSpaceQuestions(requestParameters, options) {
|
|
14916
|
-
return localVarFp.reorderBookingSpaceQuestions(requestParameters.
|
|
14766
|
+
return localVarFp.reorderBookingSpaceQuestions(requestParameters.spaceId, requestParameters.reorderBookingSpaceQuestionsRequest, options).then((request) => request(axios, basePath));
|
|
14917
14767
|
},
|
|
14918
14768
|
/**
|
|
14919
14769
|
* 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.
|
|
@@ -14923,7 +14773,7 @@ const BookingsQuestionsApiFactory = function (configuration, basePath, axios) {
|
|
|
14923
14773
|
* @throws {RequiredError}
|
|
14924
14774
|
*/
|
|
14925
14775
|
updateBookingSpaceQuestion(requestParameters, options) {
|
|
14926
|
-
return localVarFp.updateBookingSpaceQuestion(requestParameters.
|
|
14776
|
+
return localVarFp.updateBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionUpdateInputs, options).then((request) => request(axios, basePath));
|
|
14927
14777
|
},
|
|
14928
14778
|
};
|
|
14929
14779
|
};
|
|
@@ -14940,7 +14790,7 @@ class BookingsQuestionsApi extends base_1.BaseAPI {
|
|
|
14940
14790
|
* @throws {RequiredError}
|
|
14941
14791
|
*/
|
|
14942
14792
|
attachBookingSpaceQuestionSearchList(requestParameters, options) {
|
|
14943
|
-
return (0, exports.BookingsQuestionsApiFp)(this.configuration).attachBookingSpaceQuestionSearchList(requestParameters.
|
|
14793
|
+
return (0, exports.BookingsQuestionsApiFp)(this.configuration).attachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, requestParameters.attachSearchListInputs, options).then((request) => request(this.axios, this.basePath));
|
|
14944
14794
|
}
|
|
14945
14795
|
/**
|
|
14946
14796
|
* 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.
|
|
@@ -14950,7 +14800,7 @@ class BookingsQuestionsApi extends base_1.BaseAPI {
|
|
|
14950
14800
|
* @throws {RequiredError}
|
|
14951
14801
|
*/
|
|
14952
14802
|
createBookingSpaceQuestion(requestParameters, options) {
|
|
14953
|
-
return (0, exports.BookingsQuestionsApiFp)(this.configuration).createBookingSpaceQuestion(requestParameters.
|
|
14803
|
+
return (0, exports.BookingsQuestionsApiFp)(this.configuration).createBookingSpaceQuestion(requestParameters.spaceId, requestParameters.bookingSpaceQuestionCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
14954
14804
|
}
|
|
14955
14805
|
/**
|
|
14956
14806
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
@@ -14960,7 +14810,7 @@ class BookingsQuestionsApi extends base_1.BaseAPI {
|
|
|
14960
14810
|
* @throws {RequiredError}
|
|
14961
14811
|
*/
|
|
14962
14812
|
deleteBookingSpaceQuestion(requestParameters, options) {
|
|
14963
|
-
return (0, exports.BookingsQuestionsApiFp)(this.configuration).deleteBookingSpaceQuestion(requestParameters.
|
|
14813
|
+
return (0, exports.BookingsQuestionsApiFp)(this.configuration).deleteBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
14964
14814
|
}
|
|
14965
14815
|
/**
|
|
14966
14816
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
@@ -14970,7 +14820,7 @@ class BookingsQuestionsApi extends base_1.BaseAPI {
|
|
|
14970
14820
|
* @throws {RequiredError}
|
|
14971
14821
|
*/
|
|
14972
14822
|
detachBookingSpaceQuestionSearchList(requestParameters, options) {
|
|
14973
|
-
return (0, exports.BookingsQuestionsApiFp)(this.configuration).detachBookingSpaceQuestionSearchList(requestParameters.
|
|
14823
|
+
return (0, exports.BookingsQuestionsApiFp)(this.configuration).detachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
14974
14824
|
}
|
|
14975
14825
|
/**
|
|
14976
14826
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
@@ -14980,7 +14830,7 @@ class BookingsQuestionsApi extends base_1.BaseAPI {
|
|
|
14980
14830
|
* @throws {RequiredError}
|
|
14981
14831
|
*/
|
|
14982
14832
|
getBookingSpaceQuestion(requestParameters, options) {
|
|
14983
|
-
return (0, exports.BookingsQuestionsApiFp)(this.configuration).getBookingSpaceQuestion(requestParameters.
|
|
14833
|
+
return (0, exports.BookingsQuestionsApiFp)(this.configuration).getBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
14984
14834
|
}
|
|
14985
14835
|
/**
|
|
14986
14836
|
* 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\".
|
|
@@ -14990,7 +14840,7 @@ class BookingsQuestionsApi extends base_1.BaseAPI {
|
|
|
14990
14840
|
* @throws {RequiredError}
|
|
14991
14841
|
*/
|
|
14992
14842
|
getBookingSpaceQuestions(requestParameters, options) {
|
|
14993
|
-
return (0, exports.BookingsQuestionsApiFp)(this.configuration).getBookingSpaceQuestions(requestParameters.
|
|
14843
|
+
return (0, exports.BookingsQuestionsApiFp)(this.configuration).getBookingSpaceQuestions(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
14994
14844
|
}
|
|
14995
14845
|
/**
|
|
14996
14846
|
* 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.
|
|
@@ -15000,7 +14850,7 @@ class BookingsQuestionsApi extends base_1.BaseAPI {
|
|
|
15000
14850
|
* @throws {RequiredError}
|
|
15001
14851
|
*/
|
|
15002
14852
|
reorderBookingSpaceQuestions(requestParameters, options) {
|
|
15003
|
-
return (0, exports.BookingsQuestionsApiFp)(this.configuration).reorderBookingSpaceQuestions(requestParameters.
|
|
14853
|
+
return (0, exports.BookingsQuestionsApiFp)(this.configuration).reorderBookingSpaceQuestions(requestParameters.spaceId, requestParameters.reorderBookingSpaceQuestionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15004
14854
|
}
|
|
15005
14855
|
/**
|
|
15006
14856
|
* 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.
|
|
@@ -15010,7 +14860,7 @@ class BookingsQuestionsApi extends base_1.BaseAPI {
|
|
|
15010
14860
|
* @throws {RequiredError}
|
|
15011
14861
|
*/
|
|
15012
14862
|
updateBookingSpaceQuestion(requestParameters, options) {
|
|
15013
|
-
return (0, exports.BookingsQuestionsApiFp)(this.configuration).updateBookingSpaceQuestion(requestParameters.
|
|
14863
|
+
return (0, exports.BookingsQuestionsApiFp)(this.configuration).updateBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
15014
14864
|
}
|
|
15015
14865
|
}
|
|
15016
14866
|
exports.BookingsQuestionsApi = BookingsQuestionsApi;
|
|
@@ -15022,24 +14872,20 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15022
14872
|
/**
|
|
15023
14873
|
* Creates a new selectable choice for a multiple-choice question on a booking space, requires the update bookings permission.
|
|
15024
14874
|
* @summary Create a booking space question choice
|
|
15025
|
-
* @param {string} placeId The place identifier
|
|
15026
14875
|
* @param {string} spaceId The space identifier
|
|
15027
14876
|
* @param {string} questionId The question identifier
|
|
15028
14877
|
* @param {BookingSpaceQuestionChoiceCreateInputs} bookingSpaceQuestionChoiceCreateInputs
|
|
15029
14878
|
* @param {*} [options] Override http request option.
|
|
15030
14879
|
* @throws {RequiredError}
|
|
15031
14880
|
*/
|
|
15032
|
-
createBookingSpaceQuestionChoice: (
|
|
15033
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15034
|
-
(0, common_1.assertParamExists)('createBookingSpaceQuestionChoice', 'placeId', placeId);
|
|
14881
|
+
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 = {}) {
|
|
15035
14882
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15036
14883
|
(0, common_1.assertParamExists)('createBookingSpaceQuestionChoice', 'spaceId', spaceId);
|
|
15037
14884
|
// verify required parameter 'questionId' is not null or undefined
|
|
15038
14885
|
(0, common_1.assertParamExists)('createBookingSpaceQuestionChoice', 'questionId', questionId);
|
|
15039
14886
|
// verify required parameter 'bookingSpaceQuestionChoiceCreateInputs' is not null or undefined
|
|
15040
14887
|
(0, common_1.assertParamExists)('createBookingSpaceQuestionChoice', 'bookingSpaceQuestionChoiceCreateInputs', bookingSpaceQuestionChoiceCreateInputs);
|
|
15041
|
-
const localVarPath = `/bookings/
|
|
15042
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14888
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices`
|
|
15043
14889
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15044
14890
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
15045
14891
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15069,24 +14915,20 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15069
14915
|
/**
|
|
15070
14916
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
15071
14917
|
* @summary Delete a booking space question choice
|
|
15072
|
-
* @param {string} placeId The place identifier
|
|
15073
14918
|
* @param {string} spaceId The space identifier
|
|
15074
14919
|
* @param {string} questionId The question identifier
|
|
15075
14920
|
* @param {string} choiceId The choice identifier
|
|
15076
14921
|
* @param {*} [options] Override http request option.
|
|
15077
14922
|
* @throws {RequiredError}
|
|
15078
14923
|
*/
|
|
15079
|
-
deleteBookingSpaceQuestionChoice: (
|
|
15080
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15081
|
-
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionChoice', 'placeId', placeId);
|
|
14924
|
+
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 = {}) {
|
|
15082
14925
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15083
14926
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionChoice', 'spaceId', spaceId);
|
|
15084
14927
|
// verify required parameter 'questionId' is not null or undefined
|
|
15085
14928
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionChoice', 'questionId', questionId);
|
|
15086
14929
|
// verify required parameter 'choiceId' is not null or undefined
|
|
15087
14930
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionChoice', 'choiceId', choiceId);
|
|
15088
|
-
const localVarPath = `/bookings/
|
|
15089
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14931
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
15090
14932
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15091
14933
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15092
14934
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -15115,24 +14957,20 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15115
14957
|
/**
|
|
15116
14958
|
* 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\".
|
|
15117
14959
|
* @summary Get a booking space question choice
|
|
15118
|
-
* @param {string} placeId The place identifier
|
|
15119
14960
|
* @param {string} spaceId The space identifier
|
|
15120
14961
|
* @param {string} questionId The question identifier
|
|
15121
14962
|
* @param {string} choiceId The choice identifier
|
|
15122
14963
|
* @param {*} [options] Override http request option.
|
|
15123
14964
|
* @throws {RequiredError}
|
|
15124
14965
|
*/
|
|
15125
|
-
getBookingSpaceQuestionChoice: (
|
|
15126
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15127
|
-
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoice', 'placeId', placeId);
|
|
14966
|
+
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 = {}) {
|
|
15128
14967
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15129
14968
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoice', 'spaceId', spaceId);
|
|
15130
14969
|
// verify required parameter 'questionId' is not null or undefined
|
|
15131
14970
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoice', 'questionId', questionId);
|
|
15132
14971
|
// verify required parameter 'choiceId' is not null or undefined
|
|
15133
14972
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoice', 'choiceId', choiceId);
|
|
15134
|
-
const localVarPath = `/bookings/
|
|
15135
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
14973
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
15136
14974
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15137
14975
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15138
14976
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -15161,7 +14999,6 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15161
14999
|
/**
|
|
15162
15000
|
* 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\".
|
|
15163
15001
|
* @summary List a booking space question\'s choices
|
|
15164
|
-
* @param {string} placeId The place identifier
|
|
15165
15002
|
* @param {string} spaceId The space identifier
|
|
15166
15003
|
* @param {string} questionId The question identifier
|
|
15167
15004
|
* @param {number} [page] Page number
|
|
@@ -15171,15 +15008,12 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15171
15008
|
* @param {*} [options] Override http request option.
|
|
15172
15009
|
* @throws {RequiredError}
|
|
15173
15010
|
*/
|
|
15174
|
-
getBookingSpaceQuestionChoices: (
|
|
15175
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15176
|
-
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoices', 'placeId', placeId);
|
|
15011
|
+
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 = {}) {
|
|
15177
15012
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15178
15013
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoices', 'spaceId', spaceId);
|
|
15179
15014
|
// verify required parameter 'questionId' is not null or undefined
|
|
15180
15015
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoices', 'questionId', questionId);
|
|
15181
|
-
const localVarPath = `/bookings/
|
|
15182
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15016
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices`
|
|
15183
15017
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15184
15018
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
15185
15019
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15219,24 +15053,20 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15219
15053
|
/**
|
|
15220
15054
|
* 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.
|
|
15221
15055
|
* @summary Reorder a booking question\'s choices
|
|
15222
|
-
* @param {string} placeId The place identifier
|
|
15223
15056
|
* @param {string} spaceId The space identifier
|
|
15224
15057
|
* @param {string} questionId The question identifier
|
|
15225
15058
|
* @param {ReorderBookingSpaceQuestionChoicesRequest} reorderBookingSpaceQuestionChoicesRequest
|
|
15226
15059
|
* @param {*} [options] Override http request option.
|
|
15227
15060
|
* @throws {RequiredError}
|
|
15228
15061
|
*/
|
|
15229
|
-
reorderBookingSpaceQuestionChoices: (
|
|
15230
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15231
|
-
(0, common_1.assertParamExists)('reorderBookingSpaceQuestionChoices', 'placeId', placeId);
|
|
15062
|
+
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 = {}) {
|
|
15232
15063
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15233
15064
|
(0, common_1.assertParamExists)('reorderBookingSpaceQuestionChoices', 'spaceId', spaceId);
|
|
15234
15065
|
// verify required parameter 'questionId' is not null or undefined
|
|
15235
15066
|
(0, common_1.assertParamExists)('reorderBookingSpaceQuestionChoices', 'questionId', questionId);
|
|
15236
15067
|
// verify required parameter 'reorderBookingSpaceQuestionChoicesRequest' is not null or undefined
|
|
15237
15068
|
(0, common_1.assertParamExists)('reorderBookingSpaceQuestionChoices', 'reorderBookingSpaceQuestionChoicesRequest', reorderBookingSpaceQuestionChoicesRequest);
|
|
15238
|
-
const localVarPath = `/bookings/
|
|
15239
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15069
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/reorder`
|
|
15240
15070
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15241
15071
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
15242
15072
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15266,7 +15096,6 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15266
15096
|
/**
|
|
15267
15097
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
15268
15098
|
* @summary Update a booking space question choice
|
|
15269
|
-
* @param {string} placeId The place identifier
|
|
15270
15099
|
* @param {string} spaceId The space identifier
|
|
15271
15100
|
* @param {string} questionId The question identifier
|
|
15272
15101
|
* @param {string} choiceId The choice identifier
|
|
@@ -15274,9 +15103,7 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15274
15103
|
* @param {*} [options] Override http request option.
|
|
15275
15104
|
* @throws {RequiredError}
|
|
15276
15105
|
*/
|
|
15277
|
-
updateBookingSpaceQuestionChoice: (
|
|
15278
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15279
|
-
(0, common_1.assertParamExists)('updateBookingSpaceQuestionChoice', 'placeId', placeId);
|
|
15106
|
+
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 = {}) {
|
|
15280
15107
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15281
15108
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionChoice', 'spaceId', spaceId);
|
|
15282
15109
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15285,8 +15112,7 @@ const BookingsQuestionsChoicesApiAxiosParamCreator = function (configuration) {
|
|
|
15285
15112
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionChoice', 'choiceId', choiceId);
|
|
15286
15113
|
// verify required parameter 'bookingSpaceQuestionChoiceUpdateInputs' is not null or undefined
|
|
15287
15114
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionChoice', 'bookingSpaceQuestionChoiceUpdateInputs', bookingSpaceQuestionChoiceUpdateInputs);
|
|
15288
|
-
const localVarPath = `/bookings/
|
|
15289
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15115
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
15290
15116
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15291
15117
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15292
15118
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -15326,17 +15152,16 @@ const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15326
15152
|
/**
|
|
15327
15153
|
* Creates a new selectable choice for a multiple-choice question on a booking space, requires the update bookings permission.
|
|
15328
15154
|
* @summary Create a booking space question choice
|
|
15329
|
-
* @param {string} placeId The place identifier
|
|
15330
15155
|
* @param {string} spaceId The space identifier
|
|
15331
15156
|
* @param {string} questionId The question identifier
|
|
15332
15157
|
* @param {BookingSpaceQuestionChoiceCreateInputs} bookingSpaceQuestionChoiceCreateInputs
|
|
15333
15158
|
* @param {*} [options] Override http request option.
|
|
15334
15159
|
* @throws {RequiredError}
|
|
15335
15160
|
*/
|
|
15336
|
-
createBookingSpaceQuestionChoice(
|
|
15161
|
+
createBookingSpaceQuestionChoice(spaceId, questionId, bookingSpaceQuestionChoiceCreateInputs, options) {
|
|
15337
15162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15338
15163
|
var _a, _b, _c;
|
|
15339
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceQuestionChoice(
|
|
15164
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpaceQuestionChoice(spaceId, questionId, bookingSpaceQuestionChoiceCreateInputs, options);
|
|
15340
15165
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15341
15166
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesApi.createBookingSpaceQuestionChoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15342
15167
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15345,17 +15170,16 @@ const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15345
15170
|
/**
|
|
15346
15171
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
15347
15172
|
* @summary Delete a booking space question choice
|
|
15348
|
-
* @param {string} placeId The place identifier
|
|
15349
15173
|
* @param {string} spaceId The space identifier
|
|
15350
15174
|
* @param {string} questionId The question identifier
|
|
15351
15175
|
* @param {string} choiceId The choice identifier
|
|
15352
15176
|
* @param {*} [options] Override http request option.
|
|
15353
15177
|
* @throws {RequiredError}
|
|
15354
15178
|
*/
|
|
15355
|
-
deleteBookingSpaceQuestionChoice(
|
|
15179
|
+
deleteBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options) {
|
|
15356
15180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15357
15181
|
var _a, _b, _c;
|
|
15358
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionChoice(
|
|
15182
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options);
|
|
15359
15183
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15360
15184
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesApi.deleteBookingSpaceQuestionChoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15361
15185
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15364,17 +15188,16 @@ const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15364
15188
|
/**
|
|
15365
15189
|
* 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\".
|
|
15366
15190
|
* @summary Get a booking space question choice
|
|
15367
|
-
* @param {string} placeId The place identifier
|
|
15368
15191
|
* @param {string} spaceId The space identifier
|
|
15369
15192
|
* @param {string} questionId The question identifier
|
|
15370
15193
|
* @param {string} choiceId The choice identifier
|
|
15371
15194
|
* @param {*} [options] Override http request option.
|
|
15372
15195
|
* @throws {RequiredError}
|
|
15373
15196
|
*/
|
|
15374
|
-
getBookingSpaceQuestionChoice(
|
|
15197
|
+
getBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options) {
|
|
15375
15198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15376
15199
|
var _a, _b, _c;
|
|
15377
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoice(
|
|
15200
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options);
|
|
15378
15201
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15379
15202
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesApi.getBookingSpaceQuestionChoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15380
15203
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15383,7 +15206,6 @@ const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15383
15206
|
/**
|
|
15384
15207
|
* 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\".
|
|
15385
15208
|
* @summary List a booking space question\'s choices
|
|
15386
|
-
* @param {string} placeId The place identifier
|
|
15387
15209
|
* @param {string} spaceId The space identifier
|
|
15388
15210
|
* @param {string} questionId The question identifier
|
|
15389
15211
|
* @param {number} [page] Page number
|
|
@@ -15393,10 +15215,10 @@ const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15393
15215
|
* @param {*} [options] Override http request option.
|
|
15394
15216
|
* @throws {RequiredError}
|
|
15395
15217
|
*/
|
|
15396
|
-
getBookingSpaceQuestionChoices(
|
|
15218
|
+
getBookingSpaceQuestionChoices(spaceId, questionId, page, pageSize, orderBy, search, options) {
|
|
15397
15219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15398
15220
|
var _a, _b, _c;
|
|
15399
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoices(
|
|
15221
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoices(spaceId, questionId, page, pageSize, orderBy, search, options);
|
|
15400
15222
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15401
15223
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesApi.getBookingSpaceQuestionChoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15402
15224
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15405,17 +15227,16 @@ const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15405
15227
|
/**
|
|
15406
15228
|
* 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.
|
|
15407
15229
|
* @summary Reorder a booking question\'s choices
|
|
15408
|
-
* @param {string} placeId The place identifier
|
|
15409
15230
|
* @param {string} spaceId The space identifier
|
|
15410
15231
|
* @param {string} questionId The question identifier
|
|
15411
15232
|
* @param {ReorderBookingSpaceQuestionChoicesRequest} reorderBookingSpaceQuestionChoicesRequest
|
|
15412
15233
|
* @param {*} [options] Override http request option.
|
|
15413
15234
|
* @throws {RequiredError}
|
|
15414
15235
|
*/
|
|
15415
|
-
reorderBookingSpaceQuestionChoices(
|
|
15236
|
+
reorderBookingSpaceQuestionChoices(spaceId, questionId, reorderBookingSpaceQuestionChoicesRequest, options) {
|
|
15416
15237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15417
15238
|
var _a, _b, _c;
|
|
15418
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderBookingSpaceQuestionChoices(
|
|
15239
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reorderBookingSpaceQuestionChoices(spaceId, questionId, reorderBookingSpaceQuestionChoicesRequest, options);
|
|
15419
15240
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15420
15241
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesApi.reorderBookingSpaceQuestionChoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15421
15242
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15424,7 +15245,6 @@ const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15424
15245
|
/**
|
|
15425
15246
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
15426
15247
|
* @summary Update a booking space question choice
|
|
15427
|
-
* @param {string} placeId The place identifier
|
|
15428
15248
|
* @param {string} spaceId The space identifier
|
|
15429
15249
|
* @param {string} questionId The question identifier
|
|
15430
15250
|
* @param {string} choiceId The choice identifier
|
|
@@ -15432,10 +15252,10 @@ const BookingsQuestionsChoicesApiFp = function (configuration) {
|
|
|
15432
15252
|
* @param {*} [options] Override http request option.
|
|
15433
15253
|
* @throws {RequiredError}
|
|
15434
15254
|
*/
|
|
15435
|
-
updateBookingSpaceQuestionChoice(
|
|
15255
|
+
updateBookingSpaceQuestionChoice(spaceId, questionId, choiceId, bookingSpaceQuestionChoiceUpdateInputs, options) {
|
|
15436
15256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15437
15257
|
var _a, _b, _c;
|
|
15438
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionChoice(
|
|
15258
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionChoice(spaceId, questionId, choiceId, bookingSpaceQuestionChoiceUpdateInputs, options);
|
|
15439
15259
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15440
15260
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesApi.updateBookingSpaceQuestionChoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15441
15261
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15458,7 +15278,7 @@ const BookingsQuestionsChoicesApiFactory = function (configuration, basePath, ax
|
|
|
15458
15278
|
* @throws {RequiredError}
|
|
15459
15279
|
*/
|
|
15460
15280
|
createBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15461
|
-
return localVarFp.createBookingSpaceQuestionChoice(requestParameters.
|
|
15281
|
+
return localVarFp.createBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionChoiceCreateInputs, options).then((request) => request(axios, basePath));
|
|
15462
15282
|
},
|
|
15463
15283
|
/**
|
|
15464
15284
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
@@ -15468,7 +15288,7 @@ const BookingsQuestionsChoicesApiFactory = function (configuration, basePath, ax
|
|
|
15468
15288
|
* @throws {RequiredError}
|
|
15469
15289
|
*/
|
|
15470
15290
|
deleteBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15471
|
-
return localVarFp.deleteBookingSpaceQuestionChoice(requestParameters.
|
|
15291
|
+
return localVarFp.deleteBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
15472
15292
|
},
|
|
15473
15293
|
/**
|
|
15474
15294
|
* 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\".
|
|
@@ -15478,7 +15298,7 @@ const BookingsQuestionsChoicesApiFactory = function (configuration, basePath, ax
|
|
|
15478
15298
|
* @throws {RequiredError}
|
|
15479
15299
|
*/
|
|
15480
15300
|
getBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15481
|
-
return localVarFp.getBookingSpaceQuestionChoice(requestParameters.
|
|
15301
|
+
return localVarFp.getBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
15482
15302
|
},
|
|
15483
15303
|
/**
|
|
15484
15304
|
* 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\".
|
|
@@ -15488,7 +15308,7 @@ const BookingsQuestionsChoicesApiFactory = function (configuration, basePath, ax
|
|
|
15488
15308
|
* @throws {RequiredError}
|
|
15489
15309
|
*/
|
|
15490
15310
|
getBookingSpaceQuestionChoices(requestParameters, options) {
|
|
15491
|
-
return localVarFp.getBookingSpaceQuestionChoices(requestParameters.
|
|
15311
|
+
return localVarFp.getBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
15492
15312
|
},
|
|
15493
15313
|
/**
|
|
15494
15314
|
* 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.
|
|
@@ -15498,7 +15318,7 @@ const BookingsQuestionsChoicesApiFactory = function (configuration, basePath, ax
|
|
|
15498
15318
|
* @throws {RequiredError}
|
|
15499
15319
|
*/
|
|
15500
15320
|
reorderBookingSpaceQuestionChoices(requestParameters, options) {
|
|
15501
|
-
return localVarFp.reorderBookingSpaceQuestionChoices(requestParameters.
|
|
15321
|
+
return localVarFp.reorderBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.reorderBookingSpaceQuestionChoicesRequest, options).then((request) => request(axios, basePath));
|
|
15502
15322
|
},
|
|
15503
15323
|
/**
|
|
15504
15324
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
@@ -15508,7 +15328,7 @@ const BookingsQuestionsChoicesApiFactory = function (configuration, basePath, ax
|
|
|
15508
15328
|
* @throws {RequiredError}
|
|
15509
15329
|
*/
|
|
15510
15330
|
updateBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15511
|
-
return localVarFp.updateBookingSpaceQuestionChoice(requestParameters.
|
|
15331
|
+
return localVarFp.updateBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.bookingSpaceQuestionChoiceUpdateInputs, options).then((request) => request(axios, basePath));
|
|
15512
15332
|
},
|
|
15513
15333
|
};
|
|
15514
15334
|
};
|
|
@@ -15525,7 +15345,7 @@ class BookingsQuestionsChoicesApi extends base_1.BaseAPI {
|
|
|
15525
15345
|
* @throws {RequiredError}
|
|
15526
15346
|
*/
|
|
15527
15347
|
createBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15528
|
-
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).createBookingSpaceQuestionChoice(requestParameters.
|
|
15348
|
+
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).createBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionChoiceCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
15529
15349
|
}
|
|
15530
15350
|
/**
|
|
15531
15351
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
@@ -15535,7 +15355,7 @@ class BookingsQuestionsChoicesApi extends base_1.BaseAPI {
|
|
|
15535
15355
|
* @throws {RequiredError}
|
|
15536
15356
|
*/
|
|
15537
15357
|
deleteBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15538
|
-
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).deleteBookingSpaceQuestionChoice(requestParameters.
|
|
15358
|
+
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).deleteBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
15539
15359
|
}
|
|
15540
15360
|
/**
|
|
15541
15361
|
* 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\".
|
|
@@ -15545,7 +15365,7 @@ class BookingsQuestionsChoicesApi extends base_1.BaseAPI {
|
|
|
15545
15365
|
* @throws {RequiredError}
|
|
15546
15366
|
*/
|
|
15547
15367
|
getBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15548
|
-
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).getBookingSpaceQuestionChoice(requestParameters.
|
|
15368
|
+
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).getBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
15549
15369
|
}
|
|
15550
15370
|
/**
|
|
15551
15371
|
* 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\".
|
|
@@ -15555,7 +15375,7 @@ class BookingsQuestionsChoicesApi extends base_1.BaseAPI {
|
|
|
15555
15375
|
* @throws {RequiredError}
|
|
15556
15376
|
*/
|
|
15557
15377
|
getBookingSpaceQuestionChoices(requestParameters, options) {
|
|
15558
|
-
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).getBookingSpaceQuestionChoices(requestParameters.
|
|
15378
|
+
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).getBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
15559
15379
|
}
|
|
15560
15380
|
/**
|
|
15561
15381
|
* 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.
|
|
@@ -15565,7 +15385,7 @@ class BookingsQuestionsChoicesApi extends base_1.BaseAPI {
|
|
|
15565
15385
|
* @throws {RequiredError}
|
|
15566
15386
|
*/
|
|
15567
15387
|
reorderBookingSpaceQuestionChoices(requestParameters, options) {
|
|
15568
|
-
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).reorderBookingSpaceQuestionChoices(requestParameters.
|
|
15388
|
+
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).reorderBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.reorderBookingSpaceQuestionChoicesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15569
15389
|
}
|
|
15570
15390
|
/**
|
|
15571
15391
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
@@ -15575,7 +15395,7 @@ class BookingsQuestionsChoicesApi extends base_1.BaseAPI {
|
|
|
15575
15395
|
* @throws {RequiredError}
|
|
15576
15396
|
*/
|
|
15577
15397
|
updateBookingSpaceQuestionChoice(requestParameters, options) {
|
|
15578
|
-
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).updateBookingSpaceQuestionChoice(requestParameters.
|
|
15398
|
+
return (0, exports.BookingsQuestionsChoicesApiFp)(this.configuration).updateBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.bookingSpaceQuestionChoiceUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
15579
15399
|
}
|
|
15580
15400
|
}
|
|
15581
15401
|
exports.BookingsQuestionsChoicesApi = BookingsQuestionsChoicesApi;
|
|
@@ -15587,7 +15407,6 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15587
15407
|
/**
|
|
15588
15408
|
* Removes the translation for a specific locale from a booking space question choice, requires the update bookings permission.
|
|
15589
15409
|
* @summary Delete a booking question choice\'s translation
|
|
15590
|
-
* @param {string} placeId The place identifier
|
|
15591
15410
|
* @param {string} spaceId The space identifier
|
|
15592
15411
|
* @param {string} questionId The question identifier
|
|
15593
15412
|
* @param {string} choiceId The choice identifier
|
|
@@ -15595,9 +15414,7 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15595
15414
|
* @param {*} [options] Override http request option.
|
|
15596
15415
|
* @throws {RequiredError}
|
|
15597
15416
|
*/
|
|
15598
|
-
deleteBookingSpaceQuestionChoiceTranslation: (
|
|
15599
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15600
|
-
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionChoiceTranslation', 'placeId', placeId);
|
|
15417
|
+
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 = {}) {
|
|
15601
15418
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15602
15419
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId);
|
|
15603
15420
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15606,8 +15423,7 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15606
15423
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionChoiceTranslation', 'choiceId', choiceId);
|
|
15607
15424
|
// verify required parameter 'locale' is not null or undefined
|
|
15608
15425
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionChoiceTranslation', 'locale', locale);
|
|
15609
|
-
const localVarPath = `/bookings/
|
|
15610
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15426
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
15611
15427
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15612
15428
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15613
15429
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -15637,7 +15453,6 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15637
15453
|
/**
|
|
15638
15454
|
* 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\".
|
|
15639
15455
|
* @summary Get a booking question choice\'s translation
|
|
15640
|
-
* @param {string} placeId The place identifier
|
|
15641
15456
|
* @param {string} spaceId The space identifier
|
|
15642
15457
|
* @param {string} questionId The question identifier
|
|
15643
15458
|
* @param {string} choiceId The choice identifier
|
|
@@ -15645,9 +15460,7 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15645
15460
|
* @param {*} [options] Override http request option.
|
|
15646
15461
|
* @throws {RequiredError}
|
|
15647
15462
|
*/
|
|
15648
|
-
getBookingSpaceQuestionChoiceTranslation: (
|
|
15649
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15650
|
-
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoiceTranslation', 'placeId', placeId);
|
|
15463
|
+
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 = {}) {
|
|
15651
15464
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15652
15465
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId);
|
|
15653
15466
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15656,8 +15469,7 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15656
15469
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoiceTranslation', 'choiceId', choiceId);
|
|
15657
15470
|
// verify required parameter 'locale' is not null or undefined
|
|
15658
15471
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoiceTranslation', 'locale', locale);
|
|
15659
|
-
const localVarPath = `/bookings/
|
|
15660
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15472
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
15661
15473
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15662
15474
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15663
15475
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -15687,24 +15499,20 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15687
15499
|
/**
|
|
15688
15500
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
15689
15501
|
* @summary List a booking question choice\'s translations
|
|
15690
|
-
* @param {string} placeId The place identifier
|
|
15691
15502
|
* @param {string} spaceId The space identifier
|
|
15692
15503
|
* @param {string} questionId The question identifier
|
|
15693
15504
|
* @param {string} choiceId The choice identifier
|
|
15694
15505
|
* @param {*} [options] Override http request option.
|
|
15695
15506
|
* @throws {RequiredError}
|
|
15696
15507
|
*/
|
|
15697
|
-
getBookingSpaceQuestionChoiceTranslations: (
|
|
15698
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15699
|
-
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoiceTranslations', 'placeId', placeId);
|
|
15508
|
+
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 = {}) {
|
|
15700
15509
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15701
15510
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoiceTranslations', 'spaceId', spaceId);
|
|
15702
15511
|
// verify required parameter 'questionId' is not null or undefined
|
|
15703
15512
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoiceTranslations', 'questionId', questionId);
|
|
15704
15513
|
// verify required parameter 'choiceId' is not null or undefined
|
|
15705
15514
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionChoiceTranslations', 'choiceId', choiceId);
|
|
15706
|
-
const localVarPath = `/bookings/
|
|
15707
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15515
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations`
|
|
15708
15516
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15709
15517
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15710
15518
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -15733,7 +15541,6 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15733
15541
|
/**
|
|
15734
15542
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
15735
15543
|
* @summary Update a booking question choice\'s translation
|
|
15736
|
-
* @param {string} placeId The place identifier
|
|
15737
15544
|
* @param {string} spaceId The space identifier
|
|
15738
15545
|
* @param {string} questionId The question identifier
|
|
15739
15546
|
* @param {string} choiceId The choice identifier
|
|
@@ -15742,9 +15549,7 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15742
15549
|
* @param {*} [options] Override http request option.
|
|
15743
15550
|
* @throws {RequiredError}
|
|
15744
15551
|
*/
|
|
15745
|
-
updateBookingSpaceQuestionChoiceTranslation: (
|
|
15746
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15747
|
-
(0, common_1.assertParamExists)('updateBookingSpaceQuestionChoiceTranslation', 'placeId', placeId);
|
|
15552
|
+
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 = {}) {
|
|
15748
15553
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15749
15554
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId);
|
|
15750
15555
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -15755,8 +15560,7 @@ const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function (confi
|
|
|
15755
15560
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionChoiceTranslation', 'locale', locale);
|
|
15756
15561
|
// verify required parameter 'bookingSpaceQuestionChoiceTranslationUpdateInputs' is not null or undefined
|
|
15757
15562
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionChoiceTranslation', 'bookingSpaceQuestionChoiceTranslationUpdateInputs', bookingSpaceQuestionChoiceTranslationUpdateInputs);
|
|
15758
|
-
const localVarPath = `/bookings/
|
|
15759
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15563
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
15760
15564
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
15761
15565
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
15762
15566
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -15797,7 +15601,6 @@ const BookingsQuestionsChoicesTranslationsApiFp = function (configuration) {
|
|
|
15797
15601
|
/**
|
|
15798
15602
|
* Removes the translation for a specific locale from a booking space question choice, requires the update bookings permission.
|
|
15799
15603
|
* @summary Delete a booking question choice\'s translation
|
|
15800
|
-
* @param {string} placeId The place identifier
|
|
15801
15604
|
* @param {string} spaceId The space identifier
|
|
15802
15605
|
* @param {string} questionId The question identifier
|
|
15803
15606
|
* @param {string} choiceId The choice identifier
|
|
@@ -15805,10 +15608,10 @@ const BookingsQuestionsChoicesTranslationsApiFp = function (configuration) {
|
|
|
15805
15608
|
* @param {*} [options] Override http request option.
|
|
15806
15609
|
* @throws {RequiredError}
|
|
15807
15610
|
*/
|
|
15808
|
-
deleteBookingSpaceQuestionChoiceTranslation(
|
|
15611
|
+
deleteBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options) {
|
|
15809
15612
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15810
15613
|
var _a, _b, _c;
|
|
15811
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionChoiceTranslation(
|
|
15614
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options);
|
|
15812
15615
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15813
15616
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesTranslationsApi.deleteBookingSpaceQuestionChoiceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15814
15617
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15817,7 +15620,6 @@ const BookingsQuestionsChoicesTranslationsApiFp = function (configuration) {
|
|
|
15817
15620
|
/**
|
|
15818
15621
|
* 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\".
|
|
15819
15622
|
* @summary Get a booking question choice\'s translation
|
|
15820
|
-
* @param {string} placeId The place identifier
|
|
15821
15623
|
* @param {string} spaceId The space identifier
|
|
15822
15624
|
* @param {string} questionId The question identifier
|
|
15823
15625
|
* @param {string} choiceId The choice identifier
|
|
@@ -15825,10 +15627,10 @@ const BookingsQuestionsChoicesTranslationsApiFp = function (configuration) {
|
|
|
15825
15627
|
* @param {*} [options] Override http request option.
|
|
15826
15628
|
* @throws {RequiredError}
|
|
15827
15629
|
*/
|
|
15828
|
-
getBookingSpaceQuestionChoiceTranslation(
|
|
15630
|
+
getBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options) {
|
|
15829
15631
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15830
15632
|
var _a, _b, _c;
|
|
15831
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslation(
|
|
15633
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options);
|
|
15832
15634
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15833
15635
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesTranslationsApi.getBookingSpaceQuestionChoiceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15834
15636
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15837,17 +15639,16 @@ const BookingsQuestionsChoicesTranslationsApiFp = function (configuration) {
|
|
|
15837
15639
|
/**
|
|
15838
15640
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
15839
15641
|
* @summary List a booking question choice\'s translations
|
|
15840
|
-
* @param {string} placeId The place identifier
|
|
15841
15642
|
* @param {string} spaceId The space identifier
|
|
15842
15643
|
* @param {string} questionId The question identifier
|
|
15843
15644
|
* @param {string} choiceId The choice identifier
|
|
15844
15645
|
* @param {*} [options] Override http request option.
|
|
15845
15646
|
* @throws {RequiredError}
|
|
15846
15647
|
*/
|
|
15847
|
-
getBookingSpaceQuestionChoiceTranslations(
|
|
15648
|
+
getBookingSpaceQuestionChoiceTranslations(spaceId, questionId, choiceId, options) {
|
|
15848
15649
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15849
15650
|
var _a, _b, _c;
|
|
15850
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslations(
|
|
15651
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslations(spaceId, questionId, choiceId, options);
|
|
15851
15652
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15852
15653
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesTranslationsApi.getBookingSpaceQuestionChoiceTranslations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15853
15654
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15856,7 +15657,6 @@ const BookingsQuestionsChoicesTranslationsApiFp = function (configuration) {
|
|
|
15856
15657
|
/**
|
|
15857
15658
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
15858
15659
|
* @summary Update a booking question choice\'s translation
|
|
15859
|
-
* @param {string} placeId The place identifier
|
|
15860
15660
|
* @param {string} spaceId The space identifier
|
|
15861
15661
|
* @param {string} questionId The question identifier
|
|
15862
15662
|
* @param {string} choiceId The choice identifier
|
|
@@ -15865,10 +15665,10 @@ const BookingsQuestionsChoicesTranslationsApiFp = function (configuration) {
|
|
|
15865
15665
|
* @param {*} [options] Override http request option.
|
|
15866
15666
|
* @throws {RequiredError}
|
|
15867
15667
|
*/
|
|
15868
|
-
updateBookingSpaceQuestionChoiceTranslation(
|
|
15668
|
+
updateBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, bookingSpaceQuestionChoiceTranslationUpdateInputs, options) {
|
|
15869
15669
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15870
15670
|
var _a, _b, _c;
|
|
15871
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionChoiceTranslation(
|
|
15671
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, bookingSpaceQuestionChoiceTranslationUpdateInputs, options);
|
|
15872
15672
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15873
15673
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsChoicesTranslationsApi.updateBookingSpaceQuestionChoiceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15874
15674
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15891,7 +15691,7 @@ const BookingsQuestionsChoicesTranslationsApiFactory = function (configuration,
|
|
|
15891
15691
|
* @throws {RequiredError}
|
|
15892
15692
|
*/
|
|
15893
15693
|
deleteBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15894
|
-
return localVarFp.deleteBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15694
|
+
return localVarFp.deleteBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
15895
15695
|
},
|
|
15896
15696
|
/**
|
|
15897
15697
|
* 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\".
|
|
@@ -15901,7 +15701,7 @@ const BookingsQuestionsChoicesTranslationsApiFactory = function (configuration,
|
|
|
15901
15701
|
* @throws {RequiredError}
|
|
15902
15702
|
*/
|
|
15903
15703
|
getBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15904
|
-
return localVarFp.getBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15704
|
+
return localVarFp.getBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
15905
15705
|
},
|
|
15906
15706
|
/**
|
|
15907
15707
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
@@ -15911,7 +15711,7 @@ const BookingsQuestionsChoicesTranslationsApiFactory = function (configuration,
|
|
|
15911
15711
|
* @throws {RequiredError}
|
|
15912
15712
|
*/
|
|
15913
15713
|
getBookingSpaceQuestionChoiceTranslations(requestParameters, options) {
|
|
15914
|
-
return localVarFp.getBookingSpaceQuestionChoiceTranslations(requestParameters.
|
|
15714
|
+
return localVarFp.getBookingSpaceQuestionChoiceTranslations(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
15915
15715
|
},
|
|
15916
15716
|
/**
|
|
15917
15717
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
@@ -15921,7 +15721,7 @@ const BookingsQuestionsChoicesTranslationsApiFactory = function (configuration,
|
|
|
15921
15721
|
* @throws {RequiredError}
|
|
15922
15722
|
*/
|
|
15923
15723
|
updateBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15924
|
-
return localVarFp.updateBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15724
|
+
return localVarFp.updateBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, requestParameters.bookingSpaceQuestionChoiceTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
15925
15725
|
},
|
|
15926
15726
|
};
|
|
15927
15727
|
};
|
|
@@ -15938,7 +15738,7 @@ class BookingsQuestionsChoicesTranslationsApi extends base_1.BaseAPI {
|
|
|
15938
15738
|
* @throws {RequiredError}
|
|
15939
15739
|
*/
|
|
15940
15740
|
deleteBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15941
|
-
return (0, exports.BookingsQuestionsChoicesTranslationsApiFp)(this.configuration).deleteBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15741
|
+
return (0, exports.BookingsQuestionsChoicesTranslationsApiFp)(this.configuration).deleteBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
15942
15742
|
}
|
|
15943
15743
|
/**
|
|
15944
15744
|
* 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\".
|
|
@@ -15948,7 +15748,7 @@ class BookingsQuestionsChoicesTranslationsApi extends base_1.BaseAPI {
|
|
|
15948
15748
|
* @throws {RequiredError}
|
|
15949
15749
|
*/
|
|
15950
15750
|
getBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15951
|
-
return (0, exports.BookingsQuestionsChoicesTranslationsApiFp)(this.configuration).getBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15751
|
+
return (0, exports.BookingsQuestionsChoicesTranslationsApiFp)(this.configuration).getBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
15952
15752
|
}
|
|
15953
15753
|
/**
|
|
15954
15754
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
@@ -15958,7 +15758,7 @@ class BookingsQuestionsChoicesTranslationsApi extends base_1.BaseAPI {
|
|
|
15958
15758
|
* @throws {RequiredError}
|
|
15959
15759
|
*/
|
|
15960
15760
|
getBookingSpaceQuestionChoiceTranslations(requestParameters, options) {
|
|
15961
|
-
return (0, exports.BookingsQuestionsChoicesTranslationsApiFp)(this.configuration).getBookingSpaceQuestionChoiceTranslations(requestParameters.
|
|
15761
|
+
return (0, exports.BookingsQuestionsChoicesTranslationsApiFp)(this.configuration).getBookingSpaceQuestionChoiceTranslations(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
15962
15762
|
}
|
|
15963
15763
|
/**
|
|
15964
15764
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
@@ -15968,7 +15768,7 @@ class BookingsQuestionsChoicesTranslationsApi extends base_1.BaseAPI {
|
|
|
15968
15768
|
* @throws {RequiredError}
|
|
15969
15769
|
*/
|
|
15970
15770
|
updateBookingSpaceQuestionChoiceTranslation(requestParameters, options) {
|
|
15971
|
-
return (0, exports.BookingsQuestionsChoicesTranslationsApiFp)(this.configuration).updateBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
15771
|
+
return (0, exports.BookingsQuestionsChoicesTranslationsApiFp)(this.configuration).updateBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, requestParameters.bookingSpaceQuestionChoiceTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
15972
15772
|
}
|
|
15973
15773
|
}
|
|
15974
15774
|
exports.BookingsQuestionsChoicesTranslationsApi = BookingsQuestionsChoicesTranslationsApi;
|
|
@@ -15980,24 +15780,20 @@ const BookingsQuestionsTranslationsApiAxiosParamCreator = function (configuratio
|
|
|
15980
15780
|
/**
|
|
15981
15781
|
* 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.
|
|
15982
15782
|
* @summary Delete a booking question translation
|
|
15983
|
-
* @param {string} placeId The place identifier
|
|
15984
15783
|
* @param {string} spaceId The space identifier
|
|
15985
15784
|
* @param {string} questionId The question identifier
|
|
15986
15785
|
* @param {string} locale The locale identifier
|
|
15987
15786
|
* @param {*} [options] Override http request option.
|
|
15988
15787
|
* @throws {RequiredError}
|
|
15989
15788
|
*/
|
|
15990
|
-
deleteBookingSpaceQuestionTranslation: (
|
|
15991
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
15992
|
-
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionTranslation', 'placeId', placeId);
|
|
15789
|
+
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 = {}) {
|
|
15993
15790
|
// verify required parameter 'spaceId' is not null or undefined
|
|
15994
15791
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionTranslation', 'spaceId', spaceId);
|
|
15995
15792
|
// verify required parameter 'questionId' is not null or undefined
|
|
15996
15793
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionTranslation', 'questionId', questionId);
|
|
15997
15794
|
// verify required parameter 'locale' is not null or undefined
|
|
15998
15795
|
(0, common_1.assertParamExists)('deleteBookingSpaceQuestionTranslation', 'locale', locale);
|
|
15999
|
-
const localVarPath = `/bookings/
|
|
16000
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15796
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
16001
15797
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16002
15798
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
16003
15799
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -16026,24 +15822,20 @@ const BookingsQuestionsTranslationsApiAxiosParamCreator = function (configuratio
|
|
|
16026
15822
|
/**
|
|
16027
15823
|
* 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\".
|
|
16028
15824
|
* @summary Get a booking question\'s translation
|
|
16029
|
-
* @param {string} placeId The place identifier
|
|
16030
15825
|
* @param {string} spaceId The space identifier
|
|
16031
15826
|
* @param {string} questionId The question identifier
|
|
16032
15827
|
* @param {string} locale The locale identifier
|
|
16033
15828
|
* @param {*} [options] Override http request option.
|
|
16034
15829
|
* @throws {RequiredError}
|
|
16035
15830
|
*/
|
|
16036
|
-
getBookingSpaceQuestionTranslation: (
|
|
16037
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16038
|
-
(0, common_1.assertParamExists)('getBookingSpaceQuestionTranslation', 'placeId', placeId);
|
|
15831
|
+
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 = {}) {
|
|
16039
15832
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16040
15833
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionTranslation', 'spaceId', spaceId);
|
|
16041
15834
|
// verify required parameter 'questionId' is not null or undefined
|
|
16042
15835
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionTranslation', 'questionId', questionId);
|
|
16043
15836
|
// verify required parameter 'locale' is not null or undefined
|
|
16044
15837
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionTranslation', 'locale', locale);
|
|
16045
|
-
const localVarPath = `/bookings/
|
|
16046
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15838
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
16047
15839
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16048
15840
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
16049
15841
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -16072,21 +15864,17 @@ const BookingsQuestionsTranslationsApiAxiosParamCreator = function (configuratio
|
|
|
16072
15864
|
/**
|
|
16073
15865
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
16074
15866
|
* @summary List a booking question\'s translations
|
|
16075
|
-
* @param {string} placeId The place identifier
|
|
16076
15867
|
* @param {string} spaceId The space identifier
|
|
16077
15868
|
* @param {string} questionId The question identifier
|
|
16078
15869
|
* @param {*} [options] Override http request option.
|
|
16079
15870
|
* @throws {RequiredError}
|
|
16080
15871
|
*/
|
|
16081
|
-
getBookingSpaceQuestionTranslations: (
|
|
16082
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16083
|
-
(0, common_1.assertParamExists)('getBookingSpaceQuestionTranslations', 'placeId', placeId);
|
|
15872
|
+
getBookingSpaceQuestionTranslations: (spaceId_1, questionId_1, ...args_1) => __awaiter(this, [spaceId_1, questionId_1, ...args_1], void 0, function* (spaceId, questionId, options = {}) {
|
|
16084
15873
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16085
15874
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionTranslations', 'spaceId', spaceId);
|
|
16086
15875
|
// verify required parameter 'questionId' is not null or undefined
|
|
16087
15876
|
(0, common_1.assertParamExists)('getBookingSpaceQuestionTranslations', 'questionId', questionId);
|
|
16088
|
-
const localVarPath = `/bookings/
|
|
16089
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15877
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations`
|
|
16090
15878
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16091
15879
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
16092
15880
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -16114,7 +15902,6 @@ const BookingsQuestionsTranslationsApiAxiosParamCreator = function (configuratio
|
|
|
16114
15902
|
/**
|
|
16115
15903
|
* 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.
|
|
16116
15904
|
* @summary Update a booking question translation
|
|
16117
|
-
* @param {string} placeId The place identifier
|
|
16118
15905
|
* @param {string} spaceId The space identifier
|
|
16119
15906
|
* @param {string} questionId The question identifier
|
|
16120
15907
|
* @param {string} locale The locale identifier
|
|
@@ -16122,9 +15909,7 @@ const BookingsQuestionsTranslationsApiAxiosParamCreator = function (configuratio
|
|
|
16122
15909
|
* @param {*} [options] Override http request option.
|
|
16123
15910
|
* @throws {RequiredError}
|
|
16124
15911
|
*/
|
|
16125
|
-
updateBookingSpaceQuestionTranslation: (
|
|
16126
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16127
|
-
(0, common_1.assertParamExists)('updateBookingSpaceQuestionTranslation', 'placeId', placeId);
|
|
15912
|
+
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 = {}) {
|
|
16128
15913
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16129
15914
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionTranslation', 'spaceId', spaceId);
|
|
16130
15915
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -16133,8 +15918,7 @@ const BookingsQuestionsTranslationsApiAxiosParamCreator = function (configuratio
|
|
|
16133
15918
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionTranslation', 'locale', locale);
|
|
16134
15919
|
// verify required parameter 'bookingSpaceQuestionTranslationUpdateInputs' is not null or undefined
|
|
16135
15920
|
(0, common_1.assertParamExists)('updateBookingSpaceQuestionTranslation', 'bookingSpaceQuestionTranslationUpdateInputs', bookingSpaceQuestionTranslationUpdateInputs);
|
|
16136
|
-
const localVarPath = `/bookings/
|
|
16137
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
15921
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
16138
15922
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16139
15923
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
16140
15924
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -16174,17 +15958,16 @@ const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16174
15958
|
/**
|
|
16175
15959
|
* 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.
|
|
16176
15960
|
* @summary Delete a booking question translation
|
|
16177
|
-
* @param {string} placeId The place identifier
|
|
16178
15961
|
* @param {string} spaceId The space identifier
|
|
16179
15962
|
* @param {string} questionId The question identifier
|
|
16180
15963
|
* @param {string} locale The locale identifier
|
|
16181
15964
|
* @param {*} [options] Override http request option.
|
|
16182
15965
|
* @throws {RequiredError}
|
|
16183
15966
|
*/
|
|
16184
|
-
deleteBookingSpaceQuestionTranslation(
|
|
15967
|
+
deleteBookingSpaceQuestionTranslation(spaceId, questionId, locale, options) {
|
|
16185
15968
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16186
15969
|
var _a, _b, _c;
|
|
16187
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionTranslation(
|
|
15970
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceQuestionTranslation(spaceId, questionId, locale, options);
|
|
16188
15971
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16189
15972
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsTranslationsApi.deleteBookingSpaceQuestionTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16190
15973
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16193,17 +15976,16 @@ const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16193
15976
|
/**
|
|
16194
15977
|
* 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\".
|
|
16195
15978
|
* @summary Get a booking question\'s translation
|
|
16196
|
-
* @param {string} placeId The place identifier
|
|
16197
15979
|
* @param {string} spaceId The space identifier
|
|
16198
15980
|
* @param {string} questionId The question identifier
|
|
16199
15981
|
* @param {string} locale The locale identifier
|
|
16200
15982
|
* @param {*} [options] Override http request option.
|
|
16201
15983
|
* @throws {RequiredError}
|
|
16202
15984
|
*/
|
|
16203
|
-
getBookingSpaceQuestionTranslation(
|
|
15985
|
+
getBookingSpaceQuestionTranslation(spaceId, questionId, locale, options) {
|
|
16204
15986
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16205
15987
|
var _a, _b, _c;
|
|
16206
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionTranslation(
|
|
15988
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionTranslation(spaceId, questionId, locale, options);
|
|
16207
15989
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16208
15990
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsTranslationsApi.getBookingSpaceQuestionTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16209
15991
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16212,16 +15994,15 @@ const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16212
15994
|
/**
|
|
16213
15995
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
16214
15996
|
* @summary List a booking question\'s translations
|
|
16215
|
-
* @param {string} placeId The place identifier
|
|
16216
15997
|
* @param {string} spaceId The space identifier
|
|
16217
15998
|
* @param {string} questionId The question identifier
|
|
16218
15999
|
* @param {*} [options] Override http request option.
|
|
16219
16000
|
* @throws {RequiredError}
|
|
16220
16001
|
*/
|
|
16221
|
-
getBookingSpaceQuestionTranslations(
|
|
16002
|
+
getBookingSpaceQuestionTranslations(spaceId, questionId, options) {
|
|
16222
16003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16223
16004
|
var _a, _b, _c;
|
|
16224
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionTranslations(
|
|
16005
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceQuestionTranslations(spaceId, questionId, options);
|
|
16225
16006
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16226
16007
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsTranslationsApi.getBookingSpaceQuestionTranslations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16227
16008
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16230,7 +16011,6 @@ const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16230
16011
|
/**
|
|
16231
16012
|
* 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.
|
|
16232
16013
|
* @summary Update a booking question translation
|
|
16233
|
-
* @param {string} placeId The place identifier
|
|
16234
16014
|
* @param {string} spaceId The space identifier
|
|
16235
16015
|
* @param {string} questionId The question identifier
|
|
16236
16016
|
* @param {string} locale The locale identifier
|
|
@@ -16238,10 +16018,10 @@ const BookingsQuestionsTranslationsApiFp = function (configuration) {
|
|
|
16238
16018
|
* @param {*} [options] Override http request option.
|
|
16239
16019
|
* @throws {RequiredError}
|
|
16240
16020
|
*/
|
|
16241
|
-
updateBookingSpaceQuestionTranslation(
|
|
16021
|
+
updateBookingSpaceQuestionTranslation(spaceId, questionId, locale, bookingSpaceQuestionTranslationUpdateInputs, options) {
|
|
16242
16022
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16243
16023
|
var _a, _b, _c;
|
|
16244
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionTranslation(
|
|
16024
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceQuestionTranslation(spaceId, questionId, locale, bookingSpaceQuestionTranslationUpdateInputs, options);
|
|
16245
16025
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16246
16026
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsQuestionsTranslationsApi.updateBookingSpaceQuestionTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16247
16027
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16264,7 +16044,7 @@ const BookingsQuestionsTranslationsApiFactory = function (configuration, basePat
|
|
|
16264
16044
|
* @throws {RequiredError}
|
|
16265
16045
|
*/
|
|
16266
16046
|
deleteBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16267
|
-
return localVarFp.deleteBookingSpaceQuestionTranslation(requestParameters.
|
|
16047
|
+
return localVarFp.deleteBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
16268
16048
|
},
|
|
16269
16049
|
/**
|
|
16270
16050
|
* 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\".
|
|
@@ -16274,7 +16054,7 @@ const BookingsQuestionsTranslationsApiFactory = function (configuration, basePat
|
|
|
16274
16054
|
* @throws {RequiredError}
|
|
16275
16055
|
*/
|
|
16276
16056
|
getBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16277
|
-
return localVarFp.getBookingSpaceQuestionTranslation(requestParameters.
|
|
16057
|
+
return localVarFp.getBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
16278
16058
|
},
|
|
16279
16059
|
/**
|
|
16280
16060
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
@@ -16284,7 +16064,7 @@ const BookingsQuestionsTranslationsApiFactory = function (configuration, basePat
|
|
|
16284
16064
|
* @throws {RequiredError}
|
|
16285
16065
|
*/
|
|
16286
16066
|
getBookingSpaceQuestionTranslations(requestParameters, options) {
|
|
16287
|
-
return localVarFp.getBookingSpaceQuestionTranslations(requestParameters.
|
|
16067
|
+
return localVarFp.getBookingSpaceQuestionTranslations(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
16288
16068
|
},
|
|
16289
16069
|
/**
|
|
16290
16070
|
* 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.
|
|
@@ -16294,7 +16074,7 @@ const BookingsQuestionsTranslationsApiFactory = function (configuration, basePat
|
|
|
16294
16074
|
* @throws {RequiredError}
|
|
16295
16075
|
*/
|
|
16296
16076
|
updateBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16297
|
-
return localVarFp.updateBookingSpaceQuestionTranslation(requestParameters.
|
|
16077
|
+
return localVarFp.updateBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
16298
16078
|
},
|
|
16299
16079
|
};
|
|
16300
16080
|
};
|
|
@@ -16311,7 +16091,7 @@ class BookingsQuestionsTranslationsApi extends base_1.BaseAPI {
|
|
|
16311
16091
|
* @throws {RequiredError}
|
|
16312
16092
|
*/
|
|
16313
16093
|
deleteBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16314
|
-
return (0, exports.BookingsQuestionsTranslationsApiFp)(this.configuration).deleteBookingSpaceQuestionTranslation(requestParameters.
|
|
16094
|
+
return (0, exports.BookingsQuestionsTranslationsApiFp)(this.configuration).deleteBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
16315
16095
|
}
|
|
16316
16096
|
/**
|
|
16317
16097
|
* 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\".
|
|
@@ -16321,7 +16101,7 @@ class BookingsQuestionsTranslationsApi extends base_1.BaseAPI {
|
|
|
16321
16101
|
* @throws {RequiredError}
|
|
16322
16102
|
*/
|
|
16323
16103
|
getBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16324
|
-
return (0, exports.BookingsQuestionsTranslationsApiFp)(this.configuration).getBookingSpaceQuestionTranslation(requestParameters.
|
|
16104
|
+
return (0, exports.BookingsQuestionsTranslationsApiFp)(this.configuration).getBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
16325
16105
|
}
|
|
16326
16106
|
/**
|
|
16327
16107
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
@@ -16331,7 +16111,7 @@ class BookingsQuestionsTranslationsApi extends base_1.BaseAPI {
|
|
|
16331
16111
|
* @throws {RequiredError}
|
|
16332
16112
|
*/
|
|
16333
16113
|
getBookingSpaceQuestionTranslations(requestParameters, options) {
|
|
16334
|
-
return (0, exports.BookingsQuestionsTranslationsApiFp)(this.configuration).getBookingSpaceQuestionTranslations(requestParameters.
|
|
16114
|
+
return (0, exports.BookingsQuestionsTranslationsApiFp)(this.configuration).getBookingSpaceQuestionTranslations(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
16335
16115
|
}
|
|
16336
16116
|
/**
|
|
16337
16117
|
* 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.
|
|
@@ -16341,7 +16121,7 @@ class BookingsQuestionsTranslationsApi extends base_1.BaseAPI {
|
|
|
16341
16121
|
* @throws {RequiredError}
|
|
16342
16122
|
*/
|
|
16343
16123
|
updateBookingSpaceQuestionTranslation(requestParameters, options) {
|
|
16344
|
-
return (0, exports.BookingsQuestionsTranslationsApiFp)(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.
|
|
16124
|
+
return (0, exports.BookingsQuestionsTranslationsApiFp)(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16345
16125
|
}
|
|
16346
16126
|
}
|
|
16347
16127
|
exports.BookingsQuestionsTranslationsApi = BookingsQuestionsTranslationsApi;
|
|
@@ -16407,24 +16187,20 @@ const BookingsResponsesApiAxiosParamCreator = function (configuration) {
|
|
|
16407
16187
|
/**
|
|
16408
16188
|
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16409
16189
|
* @summary Update a booking\'s question responses
|
|
16410
|
-
* @param {string} placeId The place identifier
|
|
16411
16190
|
* @param {string} spaceId The space identifier
|
|
16412
16191
|
* @param {string} bookingId The booking identifier
|
|
16413
16192
|
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
16414
16193
|
* @param {*} [options] Override http request option.
|
|
16415
16194
|
* @throws {RequiredError}
|
|
16416
16195
|
*/
|
|
16417
|
-
updateBookingResponses: (
|
|
16418
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16419
|
-
(0, common_1.assertParamExists)('updateBookingResponses', 'placeId', placeId);
|
|
16196
|
+
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 = {}) {
|
|
16420
16197
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16421
16198
|
(0, common_1.assertParamExists)('updateBookingResponses', 'spaceId', spaceId);
|
|
16422
16199
|
// verify required parameter 'bookingId' is not null or undefined
|
|
16423
16200
|
(0, common_1.assertParamExists)('updateBookingResponses', 'bookingId', bookingId);
|
|
16424
16201
|
// verify required parameter 'updateBookingResponsesInputs' is not null or undefined
|
|
16425
16202
|
(0, common_1.assertParamExists)('updateBookingResponses', 'updateBookingResponsesInputs', updateBookingResponsesInputs);
|
|
16426
|
-
const localVarPath = `/bookings/
|
|
16427
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16203
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/responses`
|
|
16428
16204
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16429
16205
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
16430
16206
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -16484,17 +16260,16 @@ const BookingsResponsesApiFp = function (configuration) {
|
|
|
16484
16260
|
/**
|
|
16485
16261
|
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
16486
16262
|
* @summary Update a booking\'s question responses
|
|
16487
|
-
* @param {string} placeId The place identifier
|
|
16488
16263
|
* @param {string} spaceId The space identifier
|
|
16489
16264
|
* @param {string} bookingId The booking identifier
|
|
16490
16265
|
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
16491
16266
|
* @param {*} [options] Override http request option.
|
|
16492
16267
|
* @throws {RequiredError}
|
|
16493
16268
|
*/
|
|
16494
|
-
updateBookingResponses(
|
|
16269
|
+
updateBookingResponses(spaceId, bookingId, updateBookingResponsesInputs, options) {
|
|
16495
16270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16496
16271
|
var _a, _b, _c;
|
|
16497
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingResponses(
|
|
16272
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingResponses(spaceId, bookingId, updateBookingResponsesInputs, options);
|
|
16498
16273
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16499
16274
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsResponsesApi.updateBookingResponses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16500
16275
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16527,7 +16302,7 @@ const BookingsResponsesApiFactory = function (configuration, basePath, axios) {
|
|
|
16527
16302
|
* @throws {RequiredError}
|
|
16528
16303
|
*/
|
|
16529
16304
|
updateBookingResponses(requestParameters, options) {
|
|
16530
|
-
return localVarFp.updateBookingResponses(requestParameters.
|
|
16305
|
+
return localVarFp.updateBookingResponses(requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(axios, basePath));
|
|
16531
16306
|
},
|
|
16532
16307
|
};
|
|
16533
16308
|
};
|
|
@@ -16554,7 +16329,7 @@ class BookingsResponsesApi extends base_1.BaseAPI {
|
|
|
16554
16329
|
* @throws {RequiredError}
|
|
16555
16330
|
*/
|
|
16556
16331
|
updateBookingResponses(requestParameters, options) {
|
|
16557
|
-
return (0, exports.BookingsResponsesApiFp)(this.configuration).updateBookingResponses(requestParameters.
|
|
16332
|
+
return (0, exports.BookingsResponsesApiFp)(this.configuration).updateBookingResponses(requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16558
16333
|
}
|
|
16559
16334
|
}
|
|
16560
16335
|
exports.BookingsResponsesApi = BookingsResponsesApi;
|
|
@@ -16564,20 +16339,16 @@ exports.BookingsResponsesApi = BookingsResponsesApi;
|
|
|
16564
16339
|
const BookingsSpacesApiAxiosParamCreator = function (configuration) {
|
|
16565
16340
|
return {
|
|
16566
16341
|
/**
|
|
16567
|
-
* Creates a new bookable space
|
|
16342
|
+
* 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.
|
|
16568
16343
|
* @summary Create a booking space
|
|
16569
|
-
* @param {string} placeId The place identifier
|
|
16570
16344
|
* @param {BookingSpaceCreateInputs} bookingSpaceCreateInputs
|
|
16571
16345
|
* @param {*} [options] Override http request option.
|
|
16572
16346
|
* @throws {RequiredError}
|
|
16573
16347
|
*/
|
|
16574
|
-
createBookingSpace: (
|
|
16575
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16576
|
-
(0, common_1.assertParamExists)('createBookingSpace', 'placeId', placeId);
|
|
16348
|
+
createBookingSpace: (bookingSpaceCreateInputs_1, ...args_1) => __awaiter(this, [bookingSpaceCreateInputs_1, ...args_1], void 0, function* (bookingSpaceCreateInputs, options = {}) {
|
|
16577
16349
|
// verify required parameter 'bookingSpaceCreateInputs' is not null or undefined
|
|
16578
16350
|
(0, common_1.assertParamExists)('createBookingSpace', 'bookingSpaceCreateInputs', bookingSpaceCreateInputs);
|
|
16579
|
-
const localVarPath = `/bookings/
|
|
16580
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)));
|
|
16351
|
+
const localVarPath = `/bookings/spaces`;
|
|
16581
16352
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16582
16353
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16583
16354
|
let baseOptions;
|
|
@@ -16603,20 +16374,16 @@ const BookingsSpacesApiAxiosParamCreator = function (configuration) {
|
|
|
16603
16374
|
};
|
|
16604
16375
|
}),
|
|
16605
16376
|
/**
|
|
16606
|
-
* Deletes a booking space
|
|
16377
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
16607
16378
|
* @summary Delete a booking space
|
|
16608
|
-
* @param {string} placeId The place identifier
|
|
16609
16379
|
* @param {string} spaceId The space identifier
|
|
16610
16380
|
* @param {*} [options] Override http request option.
|
|
16611
16381
|
* @throws {RequiredError}
|
|
16612
16382
|
*/
|
|
16613
|
-
deleteBookingSpace: (
|
|
16614
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16615
|
-
(0, common_1.assertParamExists)('deleteBookingSpace', 'placeId', placeId);
|
|
16383
|
+
deleteBookingSpace: (spaceId_1, ...args_1) => __awaiter(this, [spaceId_1, ...args_1], void 0, function* (spaceId, options = {}) {
|
|
16616
16384
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16617
16385
|
(0, common_1.assertParamExists)('deleteBookingSpace', 'spaceId', spaceId);
|
|
16618
|
-
const localVarPath = `/bookings/
|
|
16619
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16386
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
16620
16387
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
16621
16388
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16622
16389
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -16641,23 +16408,19 @@ const BookingsSpacesApiAxiosParamCreator = function (configuration) {
|
|
|
16641
16408
|
};
|
|
16642
16409
|
}),
|
|
16643
16410
|
/**
|
|
16644
|
-
* Updates the attributes of an existing booking space
|
|
16411
|
+
* 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.
|
|
16645
16412
|
* @summary Update a booking space
|
|
16646
|
-
* @param {string} placeId The place identifier
|
|
16647
16413
|
* @param {string} spaceId The space identifier
|
|
16648
16414
|
* @param {BookingSpaceUpdateInputs} bookingSpaceUpdateInputs
|
|
16649
16415
|
* @param {*} [options] Override http request option.
|
|
16650
16416
|
* @throws {RequiredError}
|
|
16651
16417
|
*/
|
|
16652
|
-
updateBookingSpace: (
|
|
16653
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16654
|
-
(0, common_1.assertParamExists)('updateBookingSpace', 'placeId', placeId);
|
|
16418
|
+
updateBookingSpace: (spaceId_1, bookingSpaceUpdateInputs_1, ...args_1) => __awaiter(this, [spaceId_1, bookingSpaceUpdateInputs_1, ...args_1], void 0, function* (spaceId, bookingSpaceUpdateInputs, options = {}) {
|
|
16655
16419
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16656
16420
|
(0, common_1.assertParamExists)('updateBookingSpace', 'spaceId', spaceId);
|
|
16657
16421
|
// verify required parameter 'bookingSpaceUpdateInputs' is not null or undefined
|
|
16658
16422
|
(0, common_1.assertParamExists)('updateBookingSpace', 'bookingSpaceUpdateInputs', bookingSpaceUpdateInputs);
|
|
16659
|
-
const localVarPath = `/bookings/
|
|
16660
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16423
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
16661
16424
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
16662
16425
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16663
16426
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -16693,52 +16456,49 @@ const BookingsSpacesApiFp = function (configuration) {
|
|
|
16693
16456
|
const localVarAxiosParamCreator = (0, exports.BookingsSpacesApiAxiosParamCreator)(configuration);
|
|
16694
16457
|
return {
|
|
16695
16458
|
/**
|
|
16696
|
-
* Creates a new bookable space
|
|
16459
|
+
* 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.
|
|
16697
16460
|
* @summary Create a booking space
|
|
16698
|
-
* @param {string} placeId The place identifier
|
|
16699
16461
|
* @param {BookingSpaceCreateInputs} bookingSpaceCreateInputs
|
|
16700
16462
|
* @param {*} [options] Override http request option.
|
|
16701
16463
|
* @throws {RequiredError}
|
|
16702
16464
|
*/
|
|
16703
|
-
createBookingSpace(
|
|
16465
|
+
createBookingSpace(bookingSpaceCreateInputs, options) {
|
|
16704
16466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16705
16467
|
var _a, _b, _c;
|
|
16706
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpace(
|
|
16468
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBookingSpace(bookingSpaceCreateInputs, options);
|
|
16707
16469
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16708
16470
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsSpacesApi.createBookingSpace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16709
16471
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16710
16472
|
});
|
|
16711
16473
|
},
|
|
16712
16474
|
/**
|
|
16713
|
-
* Deletes a booking space
|
|
16475
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
16714
16476
|
* @summary Delete a booking space
|
|
16715
|
-
* @param {string} placeId The place identifier
|
|
16716
16477
|
* @param {string} spaceId The space identifier
|
|
16717
16478
|
* @param {*} [options] Override http request option.
|
|
16718
16479
|
* @throws {RequiredError}
|
|
16719
16480
|
*/
|
|
16720
|
-
deleteBookingSpace(
|
|
16481
|
+
deleteBookingSpace(spaceId, options) {
|
|
16721
16482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16722
16483
|
var _a, _b, _c;
|
|
16723
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpace(
|
|
16484
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpace(spaceId, options);
|
|
16724
16485
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16725
16486
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsSpacesApi.deleteBookingSpace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16726
16487
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16727
16488
|
});
|
|
16728
16489
|
},
|
|
16729
16490
|
/**
|
|
16730
|
-
* Updates the attributes of an existing booking space
|
|
16491
|
+
* 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.
|
|
16731
16492
|
* @summary Update a booking space
|
|
16732
|
-
* @param {string} placeId The place identifier
|
|
16733
16493
|
* @param {string} spaceId The space identifier
|
|
16734
16494
|
* @param {BookingSpaceUpdateInputs} bookingSpaceUpdateInputs
|
|
16735
16495
|
* @param {*} [options] Override http request option.
|
|
16736
16496
|
* @throws {RequiredError}
|
|
16737
16497
|
*/
|
|
16738
|
-
updateBookingSpace(
|
|
16498
|
+
updateBookingSpace(spaceId, bookingSpaceUpdateInputs, options) {
|
|
16739
16499
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16740
16500
|
var _a, _b, _c;
|
|
16741
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpace(
|
|
16501
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpace(spaceId, bookingSpaceUpdateInputs, options);
|
|
16742
16502
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16743
16503
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsSpacesApi.updateBookingSpace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16744
16504
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16754,34 +16514,34 @@ const BookingsSpacesApiFactory = function (configuration, basePath, axios) {
|
|
|
16754
16514
|
const localVarFp = (0, exports.BookingsSpacesApiFp)(configuration);
|
|
16755
16515
|
return {
|
|
16756
16516
|
/**
|
|
16757
|
-
* Creates a new bookable space
|
|
16517
|
+
* 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.
|
|
16758
16518
|
* @summary Create a booking space
|
|
16759
16519
|
* @param {BookingsSpacesApiCreateBookingSpaceRequest} requestParameters Request parameters.
|
|
16760
16520
|
* @param {*} [options] Override http request option.
|
|
16761
16521
|
* @throws {RequiredError}
|
|
16762
16522
|
*/
|
|
16763
16523
|
createBookingSpace(requestParameters, options) {
|
|
16764
|
-
return localVarFp.createBookingSpace(requestParameters.
|
|
16524
|
+
return localVarFp.createBookingSpace(requestParameters.bookingSpaceCreateInputs, options).then((request) => request(axios, basePath));
|
|
16765
16525
|
},
|
|
16766
16526
|
/**
|
|
16767
|
-
* Deletes a booking space
|
|
16527
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
16768
16528
|
* @summary Delete a booking space
|
|
16769
16529
|
* @param {BookingsSpacesApiDeleteBookingSpaceRequest} requestParameters Request parameters.
|
|
16770
16530
|
* @param {*} [options] Override http request option.
|
|
16771
16531
|
* @throws {RequiredError}
|
|
16772
16532
|
*/
|
|
16773
16533
|
deleteBookingSpace(requestParameters, options) {
|
|
16774
|
-
return localVarFp.deleteBookingSpace(requestParameters.
|
|
16534
|
+
return localVarFp.deleteBookingSpace(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
16775
16535
|
},
|
|
16776
16536
|
/**
|
|
16777
|
-
* Updates the attributes of an existing booking space
|
|
16537
|
+
* 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.
|
|
16778
16538
|
* @summary Update a booking space
|
|
16779
16539
|
* @param {BookingsSpacesApiUpdateBookingSpaceRequest} requestParameters Request parameters.
|
|
16780
16540
|
* @param {*} [options] Override http request option.
|
|
16781
16541
|
* @throws {RequiredError}
|
|
16782
16542
|
*/
|
|
16783
16543
|
updateBookingSpace(requestParameters, options) {
|
|
16784
|
-
return localVarFp.updateBookingSpace(requestParameters.
|
|
16544
|
+
return localVarFp.updateBookingSpace(requestParameters.spaceId, requestParameters.bookingSpaceUpdateInputs, options).then((request) => request(axios, basePath));
|
|
16785
16545
|
},
|
|
16786
16546
|
};
|
|
16787
16547
|
};
|
|
@@ -16791,34 +16551,34 @@ exports.BookingsSpacesApiFactory = BookingsSpacesApiFactory;
|
|
|
16791
16551
|
*/
|
|
16792
16552
|
class BookingsSpacesApi extends base_1.BaseAPI {
|
|
16793
16553
|
/**
|
|
16794
|
-
* Creates a new bookable space
|
|
16554
|
+
* 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.
|
|
16795
16555
|
* @summary Create a booking space
|
|
16796
16556
|
* @param {BookingsSpacesApiCreateBookingSpaceRequest} requestParameters Request parameters.
|
|
16797
16557
|
* @param {*} [options] Override http request option.
|
|
16798
16558
|
* @throws {RequiredError}
|
|
16799
16559
|
*/
|
|
16800
16560
|
createBookingSpace(requestParameters, options) {
|
|
16801
|
-
return (0, exports.BookingsSpacesApiFp)(this.configuration).createBookingSpace(requestParameters.
|
|
16561
|
+
return (0, exports.BookingsSpacesApiFp)(this.configuration).createBookingSpace(requestParameters.bookingSpaceCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16802
16562
|
}
|
|
16803
16563
|
/**
|
|
16804
|
-
* Deletes a booking space
|
|
16564
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
16805
16565
|
* @summary Delete a booking space
|
|
16806
16566
|
* @param {BookingsSpacesApiDeleteBookingSpaceRequest} requestParameters Request parameters.
|
|
16807
16567
|
* @param {*} [options] Override http request option.
|
|
16808
16568
|
* @throws {RequiredError}
|
|
16809
16569
|
*/
|
|
16810
16570
|
deleteBookingSpace(requestParameters, options) {
|
|
16811
|
-
return (0, exports.BookingsSpacesApiFp)(this.configuration).deleteBookingSpace(requestParameters.
|
|
16571
|
+
return (0, exports.BookingsSpacesApiFp)(this.configuration).deleteBookingSpace(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
16812
16572
|
}
|
|
16813
16573
|
/**
|
|
16814
|
-
* Updates the attributes of an existing booking space
|
|
16574
|
+
* 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.
|
|
16815
16575
|
* @summary Update a booking space
|
|
16816
16576
|
* @param {BookingsSpacesApiUpdateBookingSpaceRequest} requestParameters Request parameters.
|
|
16817
16577
|
* @param {*} [options] Override http request option.
|
|
16818
16578
|
* @throws {RequiredError}
|
|
16819
16579
|
*/
|
|
16820
16580
|
updateBookingSpace(requestParameters, options) {
|
|
16821
|
-
return (0, exports.BookingsSpacesApiFp)(this.configuration).updateBookingSpace(requestParameters.
|
|
16581
|
+
return (0, exports.BookingsSpacesApiFp)(this.configuration).updateBookingSpace(requestParameters.spaceId, requestParameters.bookingSpaceUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
16822
16582
|
}
|
|
16823
16583
|
}
|
|
16824
16584
|
exports.BookingsSpacesApi = BookingsSpacesApi;
|
|
@@ -16830,21 +16590,17 @@ const BookingsSpacesTranslationsApiAxiosParamCreator = function (configuration)
|
|
|
16830
16590
|
/**
|
|
16831
16591
|
* 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.
|
|
16832
16592
|
* @summary Delete a booking space translation
|
|
16833
|
-
* @param {string} placeId The place identifier
|
|
16834
16593
|
* @param {string} spaceId The space identifier
|
|
16835
16594
|
* @param {string} locale The locale identifier
|
|
16836
16595
|
* @param {*} [options] Override http request option.
|
|
16837
16596
|
* @throws {RequiredError}
|
|
16838
16597
|
*/
|
|
16839
|
-
deleteBookingSpaceTranslation: (
|
|
16840
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16841
|
-
(0, common_1.assertParamExists)('deleteBookingSpaceTranslation', 'placeId', placeId);
|
|
16598
|
+
deleteBookingSpaceTranslation: (spaceId_1, locale_1, ...args_1) => __awaiter(this, [spaceId_1, locale_1, ...args_1], void 0, function* (spaceId, locale, options = {}) {
|
|
16842
16599
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16843
16600
|
(0, common_1.assertParamExists)('deleteBookingSpaceTranslation', 'spaceId', spaceId);
|
|
16844
16601
|
// verify required parameter 'locale' is not null or undefined
|
|
16845
16602
|
(0, common_1.assertParamExists)('deleteBookingSpaceTranslation', 'locale', locale);
|
|
16846
|
-
const localVarPath = `/bookings/
|
|
16847
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16603
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
16848
16604
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16849
16605
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
16850
16606
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -16872,24 +16628,20 @@ const BookingsSpacesTranslationsApiAxiosParamCreator = function (configuration)
|
|
|
16872
16628
|
/**
|
|
16873
16629
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
16874
16630
|
* @summary Update a booking space translation
|
|
16875
|
-
* @param {string} placeId The place identifier
|
|
16876
16631
|
* @param {string} spaceId The space identifier
|
|
16877
16632
|
* @param {string} locale The locale identifier
|
|
16878
16633
|
* @param {BookingSpaceTranslationUpdateInputs} bookingSpaceTranslationUpdateInputs
|
|
16879
16634
|
* @param {*} [options] Override http request option.
|
|
16880
16635
|
* @throws {RequiredError}
|
|
16881
16636
|
*/
|
|
16882
|
-
updateBookingSpaceTranslation: (
|
|
16883
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
16884
|
-
(0, common_1.assertParamExists)('updateBookingSpaceTranslation', 'placeId', placeId);
|
|
16637
|
+
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 = {}) {
|
|
16885
16638
|
// verify required parameter 'spaceId' is not null or undefined
|
|
16886
16639
|
(0, common_1.assertParamExists)('updateBookingSpaceTranslation', 'spaceId', spaceId);
|
|
16887
16640
|
// verify required parameter 'locale' is not null or undefined
|
|
16888
16641
|
(0, common_1.assertParamExists)('updateBookingSpaceTranslation', 'locale', locale);
|
|
16889
16642
|
// verify required parameter 'bookingSpaceTranslationUpdateInputs' is not null or undefined
|
|
16890
16643
|
(0, common_1.assertParamExists)('updateBookingSpaceTranslation', 'bookingSpaceTranslationUpdateInputs', bookingSpaceTranslationUpdateInputs);
|
|
16891
|
-
const localVarPath = `/bookings/
|
|
16892
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
16644
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
16893
16645
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
16894
16646
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
16895
16647
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -16928,16 +16680,15 @@ const BookingsSpacesTranslationsApiFp = function (configuration) {
|
|
|
16928
16680
|
/**
|
|
16929
16681
|
* 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.
|
|
16930
16682
|
* @summary Delete a booking space translation
|
|
16931
|
-
* @param {string} placeId The place identifier
|
|
16932
16683
|
* @param {string} spaceId The space identifier
|
|
16933
16684
|
* @param {string} locale The locale identifier
|
|
16934
16685
|
* @param {*} [options] Override http request option.
|
|
16935
16686
|
* @throws {RequiredError}
|
|
16936
16687
|
*/
|
|
16937
|
-
deleteBookingSpaceTranslation(
|
|
16688
|
+
deleteBookingSpaceTranslation(spaceId, locale, options) {
|
|
16938
16689
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16939
16690
|
var _a, _b, _c;
|
|
16940
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceTranslation(
|
|
16691
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBookingSpaceTranslation(spaceId, locale, options);
|
|
16941
16692
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16942
16693
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsSpacesTranslationsApi.deleteBookingSpaceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16943
16694
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16946,17 +16697,16 @@ const BookingsSpacesTranslationsApiFp = function (configuration) {
|
|
|
16946
16697
|
/**
|
|
16947
16698
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
16948
16699
|
* @summary Update a booking space translation
|
|
16949
|
-
* @param {string} placeId The place identifier
|
|
16950
16700
|
* @param {string} spaceId The space identifier
|
|
16951
16701
|
* @param {string} locale The locale identifier
|
|
16952
16702
|
* @param {BookingSpaceTranslationUpdateInputs} bookingSpaceTranslationUpdateInputs
|
|
16953
16703
|
* @param {*} [options] Override http request option.
|
|
16954
16704
|
* @throws {RequiredError}
|
|
16955
16705
|
*/
|
|
16956
|
-
updateBookingSpaceTranslation(
|
|
16706
|
+
updateBookingSpaceTranslation(spaceId, locale, bookingSpaceTranslationUpdateInputs, options) {
|
|
16957
16707
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16958
16708
|
var _a, _b, _c;
|
|
16959
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceTranslation(
|
|
16709
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBookingSpaceTranslation(spaceId, locale, bookingSpaceTranslationUpdateInputs, options);
|
|
16960
16710
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16961
16711
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsSpacesTranslationsApi.updateBookingSpaceTranslation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16962
16712
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16979,7 +16729,7 @@ const BookingsSpacesTranslationsApiFactory = function (configuration, basePath,
|
|
|
16979
16729
|
* @throws {RequiredError}
|
|
16980
16730
|
*/
|
|
16981
16731
|
deleteBookingSpaceTranslation(requestParameters, options) {
|
|
16982
|
-
return localVarFp.deleteBookingSpaceTranslation(requestParameters.
|
|
16732
|
+
return localVarFp.deleteBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
16983
16733
|
},
|
|
16984
16734
|
/**
|
|
16985
16735
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
@@ -16989,7 +16739,7 @@ const BookingsSpacesTranslationsApiFactory = function (configuration, basePath,
|
|
|
16989
16739
|
* @throws {RequiredError}
|
|
16990
16740
|
*/
|
|
16991
16741
|
updateBookingSpaceTranslation(requestParameters, options) {
|
|
16992
|
-
return localVarFp.updateBookingSpaceTranslation(requestParameters.
|
|
16742
|
+
return localVarFp.updateBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, requestParameters.bookingSpaceTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
16993
16743
|
},
|
|
16994
16744
|
};
|
|
16995
16745
|
};
|
|
@@ -17006,7 +16756,7 @@ class BookingsSpacesTranslationsApi extends base_1.BaseAPI {
|
|
|
17006
16756
|
* @throws {RequiredError}
|
|
17007
16757
|
*/
|
|
17008
16758
|
deleteBookingSpaceTranslation(requestParameters, options) {
|
|
17009
|
-
return (0, exports.BookingsSpacesTranslationsApiFp)(this.configuration).deleteBookingSpaceTranslation(requestParameters.
|
|
16759
|
+
return (0, exports.BookingsSpacesTranslationsApiFp)(this.configuration).deleteBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
17010
16760
|
}
|
|
17011
16761
|
/**
|
|
17012
16762
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
@@ -17016,7 +16766,7 @@ class BookingsSpacesTranslationsApi extends base_1.BaseAPI {
|
|
|
17016
16766
|
* @throws {RequiredError}
|
|
17017
16767
|
*/
|
|
17018
16768
|
updateBookingSpaceTranslation(requestParameters, options) {
|
|
17019
|
-
return (0, exports.BookingsSpacesTranslationsApiFp)(this.configuration).updateBookingSpaceTranslation(requestParameters.
|
|
16769
|
+
return (0, exports.BookingsSpacesTranslationsApiFp)(this.configuration).updateBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, requestParameters.bookingSpaceTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
17020
16770
|
}
|
|
17021
16771
|
}
|
|
17022
16772
|
exports.BookingsSpacesTranslationsApi = BookingsSpacesTranslationsApi;
|