@connectedxm/admin-sdk 8.4.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +455 -922
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +221 -492
- package/dist/api.js +399 -649
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +221 -492
- package/dist/esm/api.js +399 -649
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/BaseBooking.md +0 -2
- package/docs/BaseBookingSpace.md +22 -0
- package/docs/Booking.md +0 -4
- package/docs/BookingSpace.md +22 -0
- package/docs/BookingSpaceCreateInputs.md +12 -0
- package/docs/BookingSpaceUpdateInputs.md +12 -0
- package/docs/BookingsApi.md +41 -89
- package/docs/BookingsAvailabilitiesApi.md +3 -12
- package/docs/BookingsBlackoutsApi.md +3 -12
- package/docs/BookingsQuestionsApi.md +8 -32
- package/docs/BookingsQuestionsChoicesApi.md +6 -24
- package/docs/BookingsQuestionsChoicesTranslationsApi.md +4 -16
- package/docs/BookingsQuestionsTranslationsApi.md +4 -16
- package/docs/BookingsResponsesApi.md +1 -4
- package/docs/BookingsSpacesApi.md +6 -15
- package/docs/BookingsSpacesTranslationsApi.md +2 -8
- package/docs/MeetingCreateInputs.md +0 -2
- package/docs/MeetingUpdateInputs.md +0 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 9.0.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -972,7 +972,6 @@ export interface BaseBenefit {
|
|
|
972
972
|
export interface BaseBooking {
|
|
973
973
|
'id': string;
|
|
974
974
|
'alternateId': string;
|
|
975
|
-
'placeId': string;
|
|
976
975
|
'day': string;
|
|
977
976
|
'time': string;
|
|
978
977
|
'duration': number;
|
|
@@ -1027,6 +1026,17 @@ export interface BaseBookingSpace {
|
|
|
1027
1026
|
'taxCode': string | null;
|
|
1028
1027
|
'taxIncluded': boolean;
|
|
1029
1028
|
'taxLocation': TaxLocationType;
|
|
1029
|
+
'timezone': string;
|
|
1030
|
+
'paymentIntegrationId': string | null;
|
|
1031
|
+
'paymentIntegration': BasePaymentIntegration | null;
|
|
1032
|
+
'placeId': string | null;
|
|
1033
|
+
'eventId': string | null;
|
|
1034
|
+
'groupId': string | null;
|
|
1035
|
+
'accountId': string | null;
|
|
1036
|
+
'place': BaseBookingPlace | null;
|
|
1037
|
+
'event': BaseEvent | null;
|
|
1038
|
+
'group': BaseGroup | null;
|
|
1039
|
+
'account': BaseAccount | null;
|
|
1030
1040
|
}
|
|
1031
1041
|
|
|
1032
1042
|
|
|
@@ -2752,7 +2762,6 @@ export interface BenefitUpdateInputs {
|
|
|
2752
2762
|
export interface Booking {
|
|
2753
2763
|
'id': string;
|
|
2754
2764
|
'alternateId': string;
|
|
2755
|
-
'placeId': string;
|
|
2756
2765
|
'day': string;
|
|
2757
2766
|
'time': string;
|
|
2758
2767
|
'duration': number;
|
|
@@ -2764,7 +2773,6 @@ export interface Booking {
|
|
|
2764
2773
|
'createdAt': string;
|
|
2765
2774
|
'updatedAt': string;
|
|
2766
2775
|
'responses'?: Array<BaseBookingQuestionResponse>;
|
|
2767
|
-
'place'?: BaseBookingPlace;
|
|
2768
2776
|
}
|
|
2769
2777
|
|
|
2770
2778
|
|
|
@@ -2880,6 +2888,17 @@ export interface BookingSpace {
|
|
|
2880
2888
|
'taxCode': string | null;
|
|
2881
2889
|
'taxIncluded': boolean;
|
|
2882
2890
|
'taxLocation': TaxLocationType;
|
|
2891
|
+
'timezone': string;
|
|
2892
|
+
'paymentIntegrationId': string | null;
|
|
2893
|
+
'paymentIntegration': BasePaymentIntegration | null;
|
|
2894
|
+
'placeId': string | null;
|
|
2895
|
+
'eventId': string | null;
|
|
2896
|
+
'groupId': string | null;
|
|
2897
|
+
'accountId': string | null;
|
|
2898
|
+
'place': BaseBookingPlace | null;
|
|
2899
|
+
'event': BaseEvent | null;
|
|
2900
|
+
'group': BaseGroup | null;
|
|
2901
|
+
'account': BaseAccount | null;
|
|
2883
2902
|
'confirmationBody': string | null;
|
|
2884
2903
|
'confirmationReplyTo': string | null;
|
|
2885
2904
|
'cancellationBody': string | null;
|
|
@@ -2955,6 +2974,12 @@ export interface BookingSpaceCreateInputs {
|
|
|
2955
2974
|
'taxLocation'?: TaxLocationType;
|
|
2956
2975
|
'meetingId'?: string | null;
|
|
2957
2976
|
'joinBeforeTime'?: number | null;
|
|
2977
|
+
'timezone'?: string;
|
|
2978
|
+
'paymentIntegrationId'?: string | null;
|
|
2979
|
+
'placeId'?: string | null;
|
|
2980
|
+
'eventId'?: string | null;
|
|
2981
|
+
'groupId'?: string | null;
|
|
2982
|
+
'accountId'?: string | null;
|
|
2958
2983
|
}
|
|
2959
2984
|
|
|
2960
2985
|
|
|
@@ -3149,6 +3174,12 @@ export interface BookingSpaceUpdateInputs {
|
|
|
3149
3174
|
'taxLocation'?: TaxLocationType;
|
|
3150
3175
|
'meetingId'?: string | null;
|
|
3151
3176
|
'joinBeforeTime'?: number | null;
|
|
3177
|
+
'timezone'?: string;
|
|
3178
|
+
'paymentIntegrationId'?: string | null;
|
|
3179
|
+
'placeId'?: string | null;
|
|
3180
|
+
'eventId'?: string | null;
|
|
3181
|
+
'groupId'?: string | null;
|
|
3182
|
+
'accountId'?: string | null;
|
|
3152
3183
|
}
|
|
3153
3184
|
|
|
3154
3185
|
|
|
@@ -10868,7 +10899,6 @@ export interface MeetingCreateInputs {
|
|
|
10868
10899
|
'sessionId'?: string;
|
|
10869
10900
|
'groupId'?: string;
|
|
10870
10901
|
'activityId'?: string;
|
|
10871
|
-
'bookingPlaceId'?: string;
|
|
10872
10902
|
'bookingSpaceId'?: string;
|
|
10873
10903
|
'title': string | null;
|
|
10874
10904
|
'preferred_region': MeetingCreateInputsPreferredRegionEnum | null;
|
|
@@ -11120,7 +11150,6 @@ export interface MeetingUpdateInputs {
|
|
|
11120
11150
|
'sessionId'?: string;
|
|
11121
11151
|
'groupId'?: string;
|
|
11122
11152
|
'activityId'?: string;
|
|
11123
|
-
'bookingPlaceId'?: string;
|
|
11124
11153
|
'bookingSpaceId'?: string;
|
|
11125
11154
|
'title'?: string | null;
|
|
11126
11155
|
'preferred_region'?: MeetingUpdateInputsPreferredRegionEnum | null;
|
|
@@ -25115,21 +25144,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25115
25144
|
/**
|
|
25116
25145
|
* 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.
|
|
25117
25146
|
* @summary Add an account tier to a booking space
|
|
25118
|
-
* @param {string} placeId The place identifier
|
|
25119
25147
|
* @param {string} spaceId The space identifier
|
|
25120
25148
|
* @param {string} tierId The tier identifier
|
|
25121
25149
|
* @param {*} [options] Override http request option.
|
|
25122
25150
|
* @throws {RequiredError}
|
|
25123
25151
|
*/
|
|
25124
|
-
addBookingSpaceTier: async (
|
|
25125
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25126
|
-
assertParamExists('addBookingSpaceTier', 'placeId', placeId)
|
|
25152
|
+
addBookingSpaceTier: async (spaceId: string, tierId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25127
25153
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25128
25154
|
assertParamExists('addBookingSpaceTier', 'spaceId', spaceId)
|
|
25129
25155
|
// verify required parameter 'tierId' is not null or undefined
|
|
25130
25156
|
assertParamExists('addBookingSpaceTier', 'tierId', tierId)
|
|
25131
|
-
const localVarPath = `/bookings/
|
|
25132
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25157
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers/{tierId}`
|
|
25133
25158
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25134
25159
|
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
25135
25160
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25163,21 +25188,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25163
25188
|
/**
|
|
25164
25189
|
* 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.
|
|
25165
25190
|
* @summary Cancel a booking
|
|
25166
|
-
* @param {string} placeId The place identifier
|
|
25167
25191
|
* @param {string} spaceId The space identifier
|
|
25168
25192
|
* @param {string} bookingId The booking identifier
|
|
25169
25193
|
* @param {*} [options] Override http request option.
|
|
25170
25194
|
* @throws {RequiredError}
|
|
25171
25195
|
*/
|
|
25172
|
-
cancelBooking: async (
|
|
25173
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25174
|
-
assertParamExists('cancelBooking', 'placeId', placeId)
|
|
25196
|
+
cancelBooking: async (spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25175
25197
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25176
25198
|
assertParamExists('cancelBooking', 'spaceId', spaceId)
|
|
25177
25199
|
// verify required parameter 'bookingId' is not null or undefined
|
|
25178
25200
|
assertParamExists('cancelBooking', 'bookingId', bookingId)
|
|
25179
|
-
const localVarPath = `/bookings/
|
|
25180
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25201
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/cancel`
|
|
25181
25202
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25182
25203
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
25183
25204
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25211,21 +25232,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25211
25232
|
/**
|
|
25212
25233
|
* 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.
|
|
25213
25234
|
* @summary Check in a booking
|
|
25214
|
-
* @param {string} placeId The place identifier
|
|
25215
25235
|
* @param {string} spaceId The space identifier
|
|
25216
25236
|
* @param {string} bookingId The booking identifier
|
|
25217
25237
|
* @param {*} [options] Override http request option.
|
|
25218
25238
|
* @throws {RequiredError}
|
|
25219
25239
|
*/
|
|
25220
|
-
checkInBooking: async (
|
|
25221
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25222
|
-
assertParamExists('checkInBooking', 'placeId', placeId)
|
|
25240
|
+
checkInBooking: async (spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25223
25241
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25224
25242
|
assertParamExists('checkInBooking', 'spaceId', spaceId)
|
|
25225
25243
|
// verify required parameter 'bookingId' is not null or undefined
|
|
25226
25244
|
assertParamExists('checkInBooking', 'bookingId', bookingId)
|
|
25227
|
-
const localVarPath = `/bookings/
|
|
25228
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25245
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/checkin`
|
|
25229
25246
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25230
25247
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
25231
25248
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25259,21 +25276,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25259
25276
|
/**
|
|
25260
25277
|
* 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.
|
|
25261
25278
|
* @summary Create a booking for a space
|
|
25262
|
-
* @param {string} placeId The place identifier
|
|
25263
25279
|
* @param {string} spaceId The space identifier
|
|
25264
25280
|
* @param {BookingCreateInputs} bookingCreateInputs
|
|
25265
25281
|
* @param {*} [options] Override http request option.
|
|
25266
25282
|
* @throws {RequiredError}
|
|
25267
25283
|
*/
|
|
25268
|
-
createBooking: async (
|
|
25269
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25270
|
-
assertParamExists('createBooking', 'placeId', placeId)
|
|
25284
|
+
createBooking: async (spaceId: string, bookingCreateInputs: BookingCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25271
25285
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25272
25286
|
assertParamExists('createBooking', 'spaceId', spaceId)
|
|
25273
25287
|
// verify required parameter 'bookingCreateInputs' is not null or undefined
|
|
25274
25288
|
assertParamExists('createBooking', 'bookingCreateInputs', bookingCreateInputs)
|
|
25275
|
-
const localVarPath = `/bookings/
|
|
25276
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25289
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings`
|
|
25277
25290
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25278
25291
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25279
25292
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25306,23 +25319,19 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25306
25319
|
};
|
|
25307
25320
|
},
|
|
25308
25321
|
/**
|
|
25309
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
25322
|
+
* 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).
|
|
25310
25323
|
* @summary Delete a booking
|
|
25311
|
-
* @param {string} placeId The place identifier
|
|
25312
25324
|
* @param {string} spaceId The space identifier
|
|
25313
25325
|
* @param {string} bookingId The booking identifier
|
|
25314
25326
|
* @param {*} [options] Override http request option.
|
|
25315
25327
|
* @throws {RequiredError}
|
|
25316
25328
|
*/
|
|
25317
|
-
deleteBooking: async (
|
|
25318
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25319
|
-
assertParamExists('deleteBooking', 'placeId', placeId)
|
|
25329
|
+
deleteBooking: async (spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25320
25330
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25321
25331
|
assertParamExists('deleteBooking', 'spaceId', spaceId)
|
|
25322
25332
|
// verify required parameter 'bookingId' is not null or undefined
|
|
25323
25333
|
assertParamExists('deleteBooking', 'bookingId', bookingId)
|
|
25324
|
-
const localVarPath = `/bookings/
|
|
25325
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25334
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}`
|
|
25326
25335
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25327
25336
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
25328
25337
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25764,20 +25773,16 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25764
25773
|
};
|
|
25765
25774
|
},
|
|
25766
25775
|
/**
|
|
25767
|
-
* Returns a single bookable space
|
|
25776
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
25768
25777
|
* @summary Get a booking space
|
|
25769
|
-
* @param {string} placeId The place identifier
|
|
25770
25778
|
* @param {string} spaceId The space identifier
|
|
25771
25779
|
* @param {*} [options] Override http request option.
|
|
25772
25780
|
* @throws {RequiredError}
|
|
25773
25781
|
*/
|
|
25774
|
-
getBookingSpace: async (
|
|
25775
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25776
|
-
assertParamExists('getBookingSpace', 'placeId', placeId)
|
|
25782
|
+
getBookingSpace: async (spaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25777
25783
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25778
25784
|
assertParamExists('getBookingSpace', 'spaceId', spaceId)
|
|
25779
|
-
const localVarPath = `/bookings/
|
|
25780
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25785
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
25781
25786
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25782
25787
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25783
25788
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25810,18 +25815,14 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25810
25815
|
/**
|
|
25811
25816
|
* 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\".
|
|
25812
25817
|
* @summary List a booking space\'s weekly availability rules
|
|
25813
|
-
* @param {string} placeId The place identifier
|
|
25814
25818
|
* @param {string} spaceId The space identifier
|
|
25815
25819
|
* @param {*} [options] Override http request option.
|
|
25816
25820
|
* @throws {RequiredError}
|
|
25817
25821
|
*/
|
|
25818
|
-
getBookingSpaceAvailabilities: async (
|
|
25819
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25820
|
-
assertParamExists('getBookingSpaceAvailabilities', 'placeId', placeId)
|
|
25822
|
+
getBookingSpaceAvailabilities: async (spaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25821
25823
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25822
25824
|
assertParamExists('getBookingSpaceAvailabilities', 'spaceId', spaceId)
|
|
25823
|
-
const localVarPath = `/bookings/
|
|
25824
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25825
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities`
|
|
25825
25826
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25826
25827
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25827
25828
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25852,23 +25853,19 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25852
25853
|
};
|
|
25853
25854
|
},
|
|
25854
25855
|
/**
|
|
25855
|
-
* Returns a single
|
|
25856
|
-
* @summary Get a booking space
|
|
25857
|
-
* @param {string} placeId The place identifier
|
|
25856
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
25857
|
+
* @summary Get a booking space availability by id
|
|
25858
25858
|
* @param {string} spaceId The space identifier
|
|
25859
25859
|
* @param {string} availabilityId The availability identifier
|
|
25860
25860
|
* @param {*} [options] Override http request option.
|
|
25861
25861
|
* @throws {RequiredError}
|
|
25862
25862
|
*/
|
|
25863
|
-
getBookingSpaceAvailability: async (
|
|
25864
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25865
|
-
assertParamExists('getBookingSpaceAvailability', 'placeId', placeId)
|
|
25863
|
+
getBookingSpaceAvailability: async (spaceId: string, availabilityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25866
25864
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25867
25865
|
assertParamExists('getBookingSpaceAvailability', 'spaceId', spaceId)
|
|
25868
25866
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
25869
25867
|
assertParamExists('getBookingSpaceAvailability', 'availabilityId', availabilityId)
|
|
25870
|
-
const localVarPath = `/bookings/
|
|
25871
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25868
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
25872
25869
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25873
25870
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
25874
25871
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25902,21 +25899,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25902
25899
|
/**
|
|
25903
25900
|
* 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\".
|
|
25904
25901
|
* @summary Get a booking space blackout
|
|
25905
|
-
* @param {string} placeId The place identifier
|
|
25906
25902
|
* @param {string} spaceId The space identifier
|
|
25907
25903
|
* @param {string} blackoutId The blackout identifier
|
|
25908
25904
|
* @param {*} [options] Override http request option.
|
|
25909
25905
|
* @throws {RequiredError}
|
|
25910
25906
|
*/
|
|
25911
|
-
getBookingSpaceBlackout: async (
|
|
25912
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25913
|
-
assertParamExists('getBookingSpaceBlackout', 'placeId', placeId)
|
|
25907
|
+
getBookingSpaceBlackout: async (spaceId: string, blackoutId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25914
25908
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25915
25909
|
assertParamExists('getBookingSpaceBlackout', 'spaceId', spaceId)
|
|
25916
25910
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
25917
25911
|
assertParamExists('getBookingSpaceBlackout', 'blackoutId', blackoutId)
|
|
25918
|
-
const localVarPath = `/bookings/
|
|
25919
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25912
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
25920
25913
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25921
25914
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
25922
25915
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25950,7 +25943,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25950
25943
|
/**
|
|
25951
25944
|
* 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\".
|
|
25952
25945
|
* @summary List a booking space\'s blackouts
|
|
25953
|
-
* @param {string} placeId The place identifier
|
|
25954
25946
|
* @param {string} spaceId The space identifier
|
|
25955
25947
|
* @param {boolean} [past] Filter by past
|
|
25956
25948
|
* @param {number} [page] Page number
|
|
@@ -25960,13 +25952,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25960
25952
|
* @param {*} [options] Override http request option.
|
|
25961
25953
|
* @throws {RequiredError}
|
|
25962
25954
|
*/
|
|
25963
|
-
getBookingSpaceBlackouts: async (
|
|
25964
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25965
|
-
assertParamExists('getBookingSpaceBlackouts', 'placeId', placeId)
|
|
25955
|
+
getBookingSpaceBlackouts: async (spaceId: string, past?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25966
25956
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25967
25957
|
assertParamExists('getBookingSpaceBlackouts', 'spaceId', spaceId)
|
|
25968
|
-
const localVarPath = `/bookings/
|
|
25969
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25958
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts`
|
|
25970
25959
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25971
25960
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25972
25961
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26019,7 +26008,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26019
26008
|
/**
|
|
26020
26009
|
* 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\".
|
|
26021
26010
|
* @summary List a booking space\'s bookings
|
|
26022
|
-
* @param {string} placeId The place identifier
|
|
26023
26011
|
* @param {string} spaceId The space identifier
|
|
26024
26012
|
* @param {boolean} [past] Filter by past
|
|
26025
26013
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -26030,13 +26018,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26030
26018
|
* @param {*} [options] Override http request option.
|
|
26031
26019
|
* @throws {RequiredError}
|
|
26032
26020
|
*/
|
|
26033
|
-
getBookingSpaceBookings: async (
|
|
26034
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26035
|
-
assertParamExists('getBookingSpaceBookings', 'placeId', placeId)
|
|
26021
|
+
getBookingSpaceBookings: async (spaceId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26036
26022
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26037
26023
|
assertParamExists('getBookingSpaceBookings', 'spaceId', spaceId)
|
|
26038
|
-
const localVarPath = `/bookings/
|
|
26039
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26024
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings`
|
|
26040
26025
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26041
26026
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26042
26027
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26093,7 +26078,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26093
26078
|
/**
|
|
26094
26079
|
* 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\".
|
|
26095
26080
|
* @summary List a booking space\'s payments
|
|
26096
|
-
* @param {string} placeId The place identifier
|
|
26097
26081
|
* @param {string} spaceId The space identifier
|
|
26098
26082
|
* @param {boolean} [past] Filter by past
|
|
26099
26083
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -26104,13 +26088,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26104
26088
|
* @param {*} [options] Override http request option.
|
|
26105
26089
|
* @throws {RequiredError}
|
|
26106
26090
|
*/
|
|
26107
|
-
getBookingSpacePayments: async (
|
|
26108
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26109
|
-
assertParamExists('getBookingSpacePayments', 'placeId', placeId)
|
|
26091
|
+
getBookingSpacePayments: async (spaceId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26110
26092
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26111
26093
|
assertParamExists('getBookingSpacePayments', 'spaceId', spaceId)
|
|
26112
|
-
const localVarPath = `/bookings/
|
|
26113
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26094
|
+
const localVarPath = `/bookings/spaces/{spaceId}/payments`
|
|
26114
26095
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26115
26096
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26116
26097
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26165,23 +26146,19 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26165
26146
|
};
|
|
26166
26147
|
},
|
|
26167
26148
|
/**
|
|
26168
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
26149
|
+
* 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.
|
|
26169
26150
|
* @summary Get a booking space\'s available slots
|
|
26170
|
-
* @param {string} placeId The place identifier
|
|
26171
26151
|
* @param {string} spaceId The space identifier
|
|
26172
26152
|
* @param {string} firstDayOfMonth Filter by firstDayOfMonth
|
|
26173
26153
|
* @param {*} [options] Override http request option.
|
|
26174
26154
|
* @throws {RequiredError}
|
|
26175
26155
|
*/
|
|
26176
|
-
getBookingSpaceSlots: async (
|
|
26177
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26178
|
-
assertParamExists('getBookingSpaceSlots', 'placeId', placeId)
|
|
26156
|
+
getBookingSpaceSlots: async (spaceId: string, firstDayOfMonth: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26179
26157
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26180
26158
|
assertParamExists('getBookingSpaceSlots', 'spaceId', spaceId)
|
|
26181
26159
|
// verify required parameter 'firstDayOfMonth' is not null or undefined
|
|
26182
26160
|
assertParamExists('getBookingSpaceSlots', 'firstDayOfMonth', firstDayOfMonth)
|
|
26183
|
-
const localVarPath = `/bookings/
|
|
26184
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26161
|
+
const localVarPath = `/bookings/spaces/{spaceId}/slots`
|
|
26185
26162
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26186
26163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26187
26164
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26216,9 +26193,8 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26216
26193
|
};
|
|
26217
26194
|
},
|
|
26218
26195
|
/**
|
|
26219
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
26196
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
26220
26197
|
* @summary List a booking space\'s assigned tiers
|
|
26221
|
-
* @param {string} placeId The place identifier
|
|
26222
26198
|
* @param {string} spaceId The space identifier
|
|
26223
26199
|
* @param {number} [page] Page number
|
|
26224
26200
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -26227,13 +26203,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26227
26203
|
* @param {*} [options] Override http request option.
|
|
26228
26204
|
* @throws {RequiredError}
|
|
26229
26205
|
*/
|
|
26230
|
-
getBookingSpaceTiers: async (
|
|
26231
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26232
|
-
assertParamExists('getBookingSpaceTiers', 'placeId', placeId)
|
|
26206
|
+
getBookingSpaceTiers: async (spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26233
26207
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26234
26208
|
assertParamExists('getBookingSpaceTiers', 'spaceId', spaceId)
|
|
26235
|
-
const localVarPath = `/bookings/
|
|
26236
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26209
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers`
|
|
26237
26210
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26238
26211
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26239
26212
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26282,21 +26255,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26282
26255
|
/**
|
|
26283
26256
|
* 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.
|
|
26284
26257
|
* @summary Get a booking space\'s translation for a locale
|
|
26285
|
-
* @param {string} placeId The place identifier
|
|
26286
26258
|
* @param {string} spaceId The space identifier
|
|
26287
26259
|
* @param {string} locale The locale identifier
|
|
26288
26260
|
* @param {*} [options] Override http request option.
|
|
26289
26261
|
* @throws {RequiredError}
|
|
26290
26262
|
*/
|
|
26291
|
-
getBookingSpaceTranslation: async (
|
|
26292
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26293
|
-
assertParamExists('getBookingSpaceTranslation', 'placeId', placeId)
|
|
26263
|
+
getBookingSpaceTranslation: async (spaceId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26294
26264
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26295
26265
|
assertParamExists('getBookingSpaceTranslation', 'spaceId', spaceId)
|
|
26296
26266
|
// verify required parameter 'locale' is not null or undefined
|
|
26297
26267
|
assertParamExists('getBookingSpaceTranslation', 'locale', locale)
|
|
26298
|
-
const localVarPath = `/bookings/
|
|
26299
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26268
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
26300
26269
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26301
26270
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
26302
26271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -26328,9 +26297,8 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26328
26297
|
};
|
|
26329
26298
|
},
|
|
26330
26299
|
/**
|
|
26331
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
26300
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
26332
26301
|
* @summary List a booking space\'s translations
|
|
26333
|
-
* @param {string} placeId The place identifier
|
|
26334
26302
|
* @param {string} spaceId The space identifier
|
|
26335
26303
|
* @param {number} [page] Page number
|
|
26336
26304
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -26339,13 +26307,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26339
26307
|
* @param {*} [options] Override http request option.
|
|
26340
26308
|
* @throws {RequiredError}
|
|
26341
26309
|
*/
|
|
26342
|
-
getBookingSpaceTranslations: async (
|
|
26343
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26344
|
-
assertParamExists('getBookingSpaceTranslations', 'placeId', placeId)
|
|
26310
|
+
getBookingSpaceTranslations: async (spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26345
26311
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26346
26312
|
assertParamExists('getBookingSpaceTranslations', 'spaceId', spaceId)
|
|
26347
|
-
const localVarPath = `/bookings/
|
|
26348
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26313
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations`
|
|
26349
26314
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26350
26315
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26351
26316
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26392,9 +26357,12 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26392
26357
|
};
|
|
26393
26358
|
},
|
|
26394
26359
|
/**
|
|
26395
|
-
* Returns a paginated list of bookable spaces
|
|
26396
|
-
* @summary List
|
|
26397
|
-
* @param {string} placeId
|
|
26360
|
+
* 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\".
|
|
26361
|
+
* @summary List booking spaces
|
|
26362
|
+
* @param {string} [placeId] Filter by placeId
|
|
26363
|
+
* @param {string} [eventId] Filter by eventId
|
|
26364
|
+
* @param {string} [groupId] Filter by groupId
|
|
26365
|
+
* @param {string} [accountId] Filter by accountId
|
|
26398
26366
|
* @param {number} [page] Page number
|
|
26399
26367
|
* @param {number} [pageSize] Number of items per page
|
|
26400
26368
|
* @param {string} [orderBy] Field to order by
|
|
@@ -26402,11 +26370,8 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26402
26370
|
* @param {*} [options] Override http request option.
|
|
26403
26371
|
* @throws {RequiredError}
|
|
26404
26372
|
*/
|
|
26405
|
-
getBookingSpaces: async (placeId
|
|
26406
|
-
|
|
26407
|
-
assertParamExists('getBookingSpaces', 'placeId', placeId)
|
|
26408
|
-
const localVarPath = `/bookings/places/{placeId}/spaces`
|
|
26409
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)));
|
|
26373
|
+
getBookingSpaces: async (placeId?: string, eventId?: string, groupId?: string, accountId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26374
|
+
const localVarPath = `/bookings/spaces`;
|
|
26410
26375
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26411
26376
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26412
26377
|
let baseOptions;
|
|
@@ -26424,6 +26389,22 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26424
26389
|
// authentication OrganizationId required
|
|
26425
26390
|
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
26426
26391
|
|
|
26392
|
+
if (placeId !== undefined) {
|
|
26393
|
+
localVarQueryParameter['placeId'] = placeId;
|
|
26394
|
+
}
|
|
26395
|
+
|
|
26396
|
+
if (eventId !== undefined) {
|
|
26397
|
+
localVarQueryParameter['eventId'] = eventId;
|
|
26398
|
+
}
|
|
26399
|
+
|
|
26400
|
+
if (groupId !== undefined) {
|
|
26401
|
+
localVarQueryParameter['groupId'] = groupId;
|
|
26402
|
+
}
|
|
26403
|
+
|
|
26404
|
+
if (accountId !== undefined) {
|
|
26405
|
+
localVarQueryParameter['accountId'] = accountId;
|
|
26406
|
+
}
|
|
26407
|
+
|
|
26427
26408
|
if (page !== undefined) {
|
|
26428
26409
|
localVarQueryParameter['page'] = page;
|
|
26429
26410
|
}
|
|
@@ -26454,21 +26435,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26454
26435
|
/**
|
|
26455
26436
|
* 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.
|
|
26456
26437
|
* @summary Remove an account tier from a booking space
|
|
26457
|
-
* @param {string} placeId The place identifier
|
|
26458
26438
|
* @param {string} spaceId The space identifier
|
|
26459
26439
|
* @param {string} tierId The tier identifier
|
|
26460
26440
|
* @param {*} [options] Override http request option.
|
|
26461
26441
|
* @throws {RequiredError}
|
|
26462
26442
|
*/
|
|
26463
|
-
removeBookingSpaceTier: async (
|
|
26464
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26465
|
-
assertParamExists('removeBookingSpaceTier', 'placeId', placeId)
|
|
26443
|
+
removeBookingSpaceTier: async (spaceId: string, tierId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26466
26444
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26467
26445
|
assertParamExists('removeBookingSpaceTier', 'spaceId', spaceId)
|
|
26468
26446
|
// verify required parameter 'tierId' is not null or undefined
|
|
26469
26447
|
assertParamExists('removeBookingSpaceTier', 'tierId', tierId)
|
|
26470
|
-
const localVarPath = `/bookings/
|
|
26471
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26448
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers/{tierId}`
|
|
26472
26449
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26473
26450
|
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
26474
26451
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -26502,21 +26479,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26502
26479
|
/**
|
|
26503
26480
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
26504
26481
|
* @summary Undo a booking check-in
|
|
26505
|
-
* @param {string} placeId The place identifier
|
|
26506
26482
|
* @param {string} spaceId The space identifier
|
|
26507
26483
|
* @param {string} bookingId The booking identifier
|
|
26508
26484
|
* @param {*} [options] Override http request option.
|
|
26509
26485
|
* @throws {RequiredError}
|
|
26510
26486
|
*/
|
|
26511
|
-
undoCheckInBooking: async (
|
|
26512
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26513
|
-
assertParamExists('undoCheckInBooking', 'placeId', placeId)
|
|
26487
|
+
undoCheckInBooking: async (spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26514
26488
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26515
26489
|
assertParamExists('undoCheckInBooking', 'spaceId', spaceId)
|
|
26516
26490
|
// verify required parameter 'bookingId' is not null or undefined
|
|
26517
26491
|
assertParamExists('undoCheckInBooking', 'bookingId', bookingId)
|
|
26518
|
-
const localVarPath = `/bookings/
|
|
26519
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26492
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/checkin/undo`
|
|
26520
26493
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26521
26494
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
26522
26495
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -26548,26 +26521,22 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26548
26521
|
};
|
|
26549
26522
|
},
|
|
26550
26523
|
/**
|
|
26551
|
-
* Updates an existing booking for a bookable space
|
|
26524
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
26552
26525
|
* @summary Update a booking
|
|
26553
|
-
* @param {string} placeId The place identifier
|
|
26554
26526
|
* @param {string} spaceId The space identifier
|
|
26555
26527
|
* @param {string} bookingId The booking identifier
|
|
26556
26528
|
* @param {BookingUpdateInputs} bookingUpdateInputs
|
|
26557
26529
|
* @param {*} [options] Override http request option.
|
|
26558
26530
|
* @throws {RequiredError}
|
|
26559
26531
|
*/
|
|
26560
|
-
updateBooking: async (
|
|
26561
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26562
|
-
assertParamExists('updateBooking', 'placeId', placeId)
|
|
26532
|
+
updateBooking: async (spaceId: string, bookingId: string, bookingUpdateInputs: BookingUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26563
26533
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26564
26534
|
assertParamExists('updateBooking', 'spaceId', spaceId)
|
|
26565
26535
|
// verify required parameter 'bookingId' is not null or undefined
|
|
26566
26536
|
assertParamExists('updateBooking', 'bookingId', bookingId)
|
|
26567
26537
|
// verify required parameter 'bookingUpdateInputs' is not null or undefined
|
|
26568
26538
|
assertParamExists('updateBooking', 'bookingUpdateInputs', bookingUpdateInputs)
|
|
26569
|
-
const localVarPath = `/bookings/
|
|
26570
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26539
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}`
|
|
26571
26540
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26572
26541
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
26573
26542
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -26612,14 +26581,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26612
26581
|
/**
|
|
26613
26582
|
* 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.
|
|
26614
26583
|
* @summary Add an account tier to a booking space
|
|
26615
|
-
* @param {string} placeId The place identifier
|
|
26616
26584
|
* @param {string} spaceId The space identifier
|
|
26617
26585
|
* @param {string} tierId The tier identifier
|
|
26618
26586
|
* @param {*} [options] Override http request option.
|
|
26619
26587
|
* @throws {RequiredError}
|
|
26620
26588
|
*/
|
|
26621
|
-
async addBookingSpaceTier(
|
|
26622
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.addBookingSpaceTier(
|
|
26589
|
+
async addBookingSpaceTier(spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
26590
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addBookingSpaceTier(spaceId, tierId, options);
|
|
26623
26591
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26624
26592
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.addBookingSpaceTier']?.[localVarOperationServerIndex]?.url;
|
|
26625
26593
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26627,14 +26595,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26627
26595
|
/**
|
|
26628
26596
|
* 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.
|
|
26629
26597
|
* @summary Cancel a booking
|
|
26630
|
-
* @param {string} placeId The place identifier
|
|
26631
26598
|
* @param {string} spaceId The space identifier
|
|
26632
26599
|
* @param {string} bookingId The booking identifier
|
|
26633
26600
|
* @param {*} [options] Override http request option.
|
|
26634
26601
|
* @throws {RequiredError}
|
|
26635
26602
|
*/
|
|
26636
|
-
async cancelBooking(
|
|
26637
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelBooking(
|
|
26603
|
+
async cancelBooking(spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelBooking(spaceId, bookingId, options);
|
|
26638
26605
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26639
26606
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.cancelBooking']?.[localVarOperationServerIndex]?.url;
|
|
26640
26607
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26642,14 +26609,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26642
26609
|
/**
|
|
26643
26610
|
* 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.
|
|
26644
26611
|
* @summary Check in a booking
|
|
26645
|
-
* @param {string} placeId The place identifier
|
|
26646
26612
|
* @param {string} spaceId The space identifier
|
|
26647
26613
|
* @param {string} bookingId The booking identifier
|
|
26648
26614
|
* @param {*} [options] Override http request option.
|
|
26649
26615
|
* @throws {RequiredError}
|
|
26650
26616
|
*/
|
|
26651
|
-
async checkInBooking(
|
|
26652
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInBooking(
|
|
26617
|
+
async checkInBooking(spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26618
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInBooking(spaceId, bookingId, options);
|
|
26653
26619
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26654
26620
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.checkInBooking']?.[localVarOperationServerIndex]?.url;
|
|
26655
26621
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26657,29 +26623,27 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26657
26623
|
/**
|
|
26658
26624
|
* 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.
|
|
26659
26625
|
* @summary Create a booking for a space
|
|
26660
|
-
* @param {string} placeId The place identifier
|
|
26661
26626
|
* @param {string} spaceId The space identifier
|
|
26662
26627
|
* @param {BookingCreateInputs} bookingCreateInputs
|
|
26663
26628
|
* @param {*} [options] Override http request option.
|
|
26664
26629
|
* @throws {RequiredError}
|
|
26665
26630
|
*/
|
|
26666
|
-
async createBooking(
|
|
26667
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBooking(
|
|
26631
|
+
async createBooking(spaceId: string, bookingCreateInputs: BookingCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26632
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBooking(spaceId, bookingCreateInputs, options);
|
|
26668
26633
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26669
26634
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.createBooking']?.[localVarOperationServerIndex]?.url;
|
|
26670
26635
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26671
26636
|
},
|
|
26672
26637
|
/**
|
|
26673
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
26638
|
+
* 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).
|
|
26674
26639
|
* @summary Delete a booking
|
|
26675
|
-
* @param {string} placeId The place identifier
|
|
26676
26640
|
* @param {string} spaceId The space identifier
|
|
26677
26641
|
* @param {string} bookingId The booking identifier
|
|
26678
26642
|
* @param {*} [options] Override http request option.
|
|
26679
26643
|
* @throws {RequiredError}
|
|
26680
26644
|
*/
|
|
26681
|
-
async deleteBooking(
|
|
26682
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBooking(
|
|
26645
|
+
async deleteBooking(spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26646
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBooking(spaceId, bookingId, options);
|
|
26683
26647
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26684
26648
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.deleteBooking']?.[localVarOperationServerIndex]?.url;
|
|
26685
26649
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26807,15 +26771,14 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26807
26771
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26808
26772
|
},
|
|
26809
26773
|
/**
|
|
26810
|
-
* Returns a single bookable space
|
|
26774
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
26811
26775
|
* @summary Get a booking space
|
|
26812
|
-
* @param {string} placeId The place identifier
|
|
26813
26776
|
* @param {string} spaceId The space identifier
|
|
26814
26777
|
* @param {*} [options] Override http request option.
|
|
26815
26778
|
* @throws {RequiredError}
|
|
26816
26779
|
*/
|
|
26817
|
-
async getBookingSpace(
|
|
26818
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpace(
|
|
26780
|
+
async getBookingSpace(spaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
26781
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpace(spaceId, options);
|
|
26819
26782
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26820
26783
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpace']?.[localVarOperationServerIndex]?.url;
|
|
26821
26784
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26823,28 +26786,26 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26823
26786
|
/**
|
|
26824
26787
|
* 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\".
|
|
26825
26788
|
* @summary List a booking space\'s weekly availability rules
|
|
26826
|
-
* @param {string} placeId The place identifier
|
|
26827
26789
|
* @param {string} spaceId The space identifier
|
|
26828
26790
|
* @param {*} [options] Override http request option.
|
|
26829
26791
|
* @throws {RequiredError}
|
|
26830
26792
|
*/
|
|
26831
|
-
async getBookingSpaceAvailabilities(
|
|
26832
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceAvailabilities(
|
|
26793
|
+
async getBookingSpaceAvailabilities(spaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceAvailabilities200Response>> {
|
|
26794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceAvailabilities(spaceId, options);
|
|
26833
26795
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26834
26796
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceAvailabilities']?.[localVarOperationServerIndex]?.url;
|
|
26835
26797
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26836
26798
|
},
|
|
26837
26799
|
/**
|
|
26838
|
-
* Returns a single
|
|
26839
|
-
* @summary Get a booking space
|
|
26840
|
-
* @param {string} placeId The place identifier
|
|
26800
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
26801
|
+
* @summary Get a booking space availability by id
|
|
26841
26802
|
* @param {string} spaceId The space identifier
|
|
26842
26803
|
* @param {string} availabilityId The availability identifier
|
|
26843
26804
|
* @param {*} [options] Override http request option.
|
|
26844
26805
|
* @throws {RequiredError}
|
|
26845
26806
|
*/
|
|
26846
|
-
async getBookingSpaceAvailability(
|
|
26847
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceAvailability(
|
|
26807
|
+
async getBookingSpaceAvailability(spaceId: string, availabilityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceAvailability200Response>> {
|
|
26808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceAvailability(spaceId, availabilityId, options);
|
|
26848
26809
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26849
26810
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
26850
26811
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26852,14 +26813,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26852
26813
|
/**
|
|
26853
26814
|
* 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\".
|
|
26854
26815
|
* @summary Get a booking space blackout
|
|
26855
|
-
* @param {string} placeId The place identifier
|
|
26856
26816
|
* @param {string} spaceId The space identifier
|
|
26857
26817
|
* @param {string} blackoutId The blackout identifier
|
|
26858
26818
|
* @param {*} [options] Override http request option.
|
|
26859
26819
|
* @throws {RequiredError}
|
|
26860
26820
|
*/
|
|
26861
|
-
async getBookingSpaceBlackout(
|
|
26862
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBlackout(
|
|
26821
|
+
async getBookingSpaceBlackout(spaceId: string, blackoutId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceBlackout200Response>> {
|
|
26822
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBlackout(spaceId, blackoutId, options);
|
|
26863
26823
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26864
26824
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceBlackout']?.[localVarOperationServerIndex]?.url;
|
|
26865
26825
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26867,7 +26827,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26867
26827
|
/**
|
|
26868
26828
|
* 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\".
|
|
26869
26829
|
* @summary List a booking space\'s blackouts
|
|
26870
|
-
* @param {string} placeId The place identifier
|
|
26871
26830
|
* @param {string} spaceId The space identifier
|
|
26872
26831
|
* @param {boolean} [past] Filter by past
|
|
26873
26832
|
* @param {number} [page] Page number
|
|
@@ -26877,8 +26836,8 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26877
26836
|
* @param {*} [options] Override http request option.
|
|
26878
26837
|
* @throws {RequiredError}
|
|
26879
26838
|
*/
|
|
26880
|
-
async getBookingSpaceBlackouts(
|
|
26881
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBlackouts(
|
|
26839
|
+
async getBookingSpaceBlackouts(spaceId: string, past?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceBlackouts200Response>> {
|
|
26840
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBlackouts(spaceId, past, page, pageSize, orderBy, search, options);
|
|
26882
26841
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26883
26842
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceBlackouts']?.[localVarOperationServerIndex]?.url;
|
|
26884
26843
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26886,7 +26845,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26886
26845
|
/**
|
|
26887
26846
|
* 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\".
|
|
26888
26847
|
* @summary List a booking space\'s bookings
|
|
26889
|
-
* @param {string} placeId The place identifier
|
|
26890
26848
|
* @param {string} spaceId The space identifier
|
|
26891
26849
|
* @param {boolean} [past] Filter by past
|
|
26892
26850
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -26897,8 +26855,8 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26897
26855
|
* @param {*} [options] Override http request option.
|
|
26898
26856
|
* @throws {RequiredError}
|
|
26899
26857
|
*/
|
|
26900
|
-
async getBookingSpaceBookings(
|
|
26901
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBookings(
|
|
26858
|
+
async getBookingSpaceBookings(spaceId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountBookings200Response>> {
|
|
26859
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBookings(spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
26902
26860
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26903
26861
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceBookings']?.[localVarOperationServerIndex]?.url;
|
|
26904
26862
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26906,7 +26864,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26906
26864
|
/**
|
|
26907
26865
|
* 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\".
|
|
26908
26866
|
* @summary List a booking space\'s payments
|
|
26909
|
-
* @param {string} placeId The place identifier
|
|
26910
26867
|
* @param {string} spaceId The space identifier
|
|
26911
26868
|
* @param {boolean} [past] Filter by past
|
|
26912
26869
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -26917,31 +26874,29 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26917
26874
|
* @param {*} [options] Override http request option.
|
|
26918
26875
|
* @throws {RequiredError}
|
|
26919
26876
|
*/
|
|
26920
|
-
async getBookingSpacePayments(
|
|
26921
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpacePayments(
|
|
26877
|
+
async getBookingSpacePayments(spaceId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountPayments200Response>> {
|
|
26878
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpacePayments(spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
26922
26879
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26923
26880
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpacePayments']?.[localVarOperationServerIndex]?.url;
|
|
26924
26881
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26925
26882
|
},
|
|
26926
26883
|
/**
|
|
26927
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
26884
|
+
* 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.
|
|
26928
26885
|
* @summary Get a booking space\'s available slots
|
|
26929
|
-
* @param {string} placeId The place identifier
|
|
26930
26886
|
* @param {string} spaceId The space identifier
|
|
26931
26887
|
* @param {string} firstDayOfMonth Filter by firstDayOfMonth
|
|
26932
26888
|
* @param {*} [options] Override http request option.
|
|
26933
26889
|
* @throws {RequiredError}
|
|
26934
26890
|
*/
|
|
26935
|
-
async getBookingSpaceSlots(
|
|
26936
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceSlots(
|
|
26891
|
+
async getBookingSpaceSlots(spaceId: string, firstDayOfMonth: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceSlots200Response>> {
|
|
26892
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceSlots(spaceId, firstDayOfMonth, options);
|
|
26937
26893
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26938
26894
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceSlots']?.[localVarOperationServerIndex]?.url;
|
|
26939
26895
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26940
26896
|
},
|
|
26941
26897
|
/**
|
|
26942
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
26898
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
26943
26899
|
* @summary List a booking space\'s assigned tiers
|
|
26944
|
-
* @param {string} placeId The place identifier
|
|
26945
26900
|
* @param {string} spaceId The space identifier
|
|
26946
26901
|
* @param {number} [page] Page number
|
|
26947
26902
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -26950,8 +26905,8 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26950
26905
|
* @param {*} [options] Override http request option.
|
|
26951
26906
|
* @throws {RequiredError}
|
|
26952
26907
|
*/
|
|
26953
|
-
async getBookingSpaceTiers(
|
|
26954
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTiers(
|
|
26908
|
+
async getBookingSpaceTiers(spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountTiers200Response>> {
|
|
26909
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTiers(spaceId, page, pageSize, orderBy, search, options);
|
|
26955
26910
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26956
26911
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceTiers']?.[localVarOperationServerIndex]?.url;
|
|
26957
26912
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26959,22 +26914,20 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26959
26914
|
/**
|
|
26960
26915
|
* 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.
|
|
26961
26916
|
* @summary Get a booking space\'s translation for a locale
|
|
26962
|
-
* @param {string} placeId The place identifier
|
|
26963
26917
|
* @param {string} spaceId The space identifier
|
|
26964
26918
|
* @param {string} locale The locale identifier
|
|
26965
26919
|
* @param {*} [options] Override http request option.
|
|
26966
26920
|
* @throws {RequiredError}
|
|
26967
26921
|
*/
|
|
26968
|
-
async getBookingSpaceTranslation(
|
|
26969
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTranslation(
|
|
26922
|
+
async getBookingSpaceTranslation(spaceId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceTranslation200Response>> {
|
|
26923
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTranslation(spaceId, locale, options);
|
|
26970
26924
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26971
26925
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
26972
26926
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26973
26927
|
},
|
|
26974
26928
|
/**
|
|
26975
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
26929
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
26976
26930
|
* @summary List a booking space\'s translations
|
|
26977
|
-
* @param {string} placeId The place identifier
|
|
26978
26931
|
* @param {string} spaceId The space identifier
|
|
26979
26932
|
* @param {number} [page] Page number
|
|
26980
26933
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -26983,16 +26936,19 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26983
26936
|
* @param {*} [options] Override http request option.
|
|
26984
26937
|
* @throws {RequiredError}
|
|
26985
26938
|
*/
|
|
26986
|
-
async getBookingSpaceTranslations(
|
|
26987
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTranslations(
|
|
26939
|
+
async getBookingSpaceTranslations(spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceTranslations200Response>> {
|
|
26940
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTranslations(spaceId, page, pageSize, orderBy, search, options);
|
|
26988
26941
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26989
26942
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceTranslations']?.[localVarOperationServerIndex]?.url;
|
|
26990
26943
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26991
26944
|
},
|
|
26992
26945
|
/**
|
|
26993
|
-
* Returns a paginated list of bookable spaces
|
|
26994
|
-
* @summary List
|
|
26995
|
-
* @param {string} placeId
|
|
26946
|
+
* 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\".
|
|
26947
|
+
* @summary List booking spaces
|
|
26948
|
+
* @param {string} [placeId] Filter by placeId
|
|
26949
|
+
* @param {string} [eventId] Filter by eventId
|
|
26950
|
+
* @param {string} [groupId] Filter by groupId
|
|
26951
|
+
* @param {string} [accountId] Filter by accountId
|
|
26996
26952
|
* @param {number} [page] Page number
|
|
26997
26953
|
* @param {number} [pageSize] Number of items per page
|
|
26998
26954
|
* @param {string} [orderBy] Field to order by
|
|
@@ -27000,8 +26956,8 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
27000
26956
|
* @param {*} [options] Override http request option.
|
|
27001
26957
|
* @throws {RequiredError}
|
|
27002
26958
|
*/
|
|
27003
|
-
async getBookingSpaces(placeId
|
|
27004
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaces(placeId, page, pageSize, orderBy, search, options);
|
|
26959
|
+
async getBookingSpaces(placeId?: string, eventId?: string, groupId?: string, accountId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaces200Response>> {
|
|
26960
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaces(placeId, eventId, groupId, accountId, page, pageSize, orderBy, search, options);
|
|
27005
26961
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27006
26962
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaces']?.[localVarOperationServerIndex]?.url;
|
|
27007
26963
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -27009,14 +26965,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
27009
26965
|
/**
|
|
27010
26966
|
* 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.
|
|
27011
26967
|
* @summary Remove an account tier from a booking space
|
|
27012
|
-
* @param {string} placeId The place identifier
|
|
27013
26968
|
* @param {string} spaceId The space identifier
|
|
27014
26969
|
* @param {string} tierId The tier identifier
|
|
27015
26970
|
* @param {*} [options] Override http request option.
|
|
27016
26971
|
* @throws {RequiredError}
|
|
27017
26972
|
*/
|
|
27018
|
-
async removeBookingSpaceTier(
|
|
27019
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.removeBookingSpaceTier(
|
|
26973
|
+
async removeBookingSpaceTier(spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
26974
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeBookingSpaceTier(spaceId, tierId, options);
|
|
27020
26975
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27021
26976
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.removeBookingSpaceTier']?.[localVarOperationServerIndex]?.url;
|
|
27022
26977
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -27024,30 +26979,28 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
27024
26979
|
/**
|
|
27025
26980
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
27026
26981
|
* @summary Undo a booking check-in
|
|
27027
|
-
* @param {string} placeId The place identifier
|
|
27028
26982
|
* @param {string} spaceId The space identifier
|
|
27029
26983
|
* @param {string} bookingId The booking identifier
|
|
27030
26984
|
* @param {*} [options] Override http request option.
|
|
27031
26985
|
* @throws {RequiredError}
|
|
27032
26986
|
*/
|
|
27033
|
-
async undoCheckInBooking(
|
|
27034
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.undoCheckInBooking(
|
|
26987
|
+
async undoCheckInBooking(spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26988
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.undoCheckInBooking(spaceId, bookingId, options);
|
|
27035
26989
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27036
26990
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.undoCheckInBooking']?.[localVarOperationServerIndex]?.url;
|
|
27037
26991
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27038
26992
|
},
|
|
27039
26993
|
/**
|
|
27040
|
-
* Updates an existing booking for a bookable space
|
|
26994
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
27041
26995
|
* @summary Update a booking
|
|
27042
|
-
* @param {string} placeId The place identifier
|
|
27043
26996
|
* @param {string} spaceId The space identifier
|
|
27044
26997
|
* @param {string} bookingId The booking identifier
|
|
27045
26998
|
* @param {BookingUpdateInputs} bookingUpdateInputs
|
|
27046
26999
|
* @param {*} [options] Override http request option.
|
|
27047
27000
|
* @throws {RequiredError}
|
|
27048
27001
|
*/
|
|
27049
|
-
async updateBooking(
|
|
27050
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBooking(
|
|
27002
|
+
async updateBooking(spaceId: string, bookingId: string, bookingUpdateInputs: BookingUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
27003
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBooking(spaceId, bookingId, bookingUpdateInputs, options);
|
|
27051
27004
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27052
27005
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.updateBooking']?.[localVarOperationServerIndex]?.url;
|
|
27053
27006
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -27069,7 +27022,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27069
27022
|
* @throws {RequiredError}
|
|
27070
27023
|
*/
|
|
27071
27024
|
addBookingSpaceTier(requestParameters: BookingsApiAddBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
27072
|
-
return localVarFp.addBookingSpaceTier(requestParameters.
|
|
27025
|
+
return localVarFp.addBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
27073
27026
|
},
|
|
27074
27027
|
/**
|
|
27075
27028
|
* 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.
|
|
@@ -27079,7 +27032,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27079
27032
|
* @throws {RequiredError}
|
|
27080
27033
|
*/
|
|
27081
27034
|
cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27082
|
-
return localVarFp.cancelBooking(requestParameters.
|
|
27035
|
+
return localVarFp.cancelBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27083
27036
|
},
|
|
27084
27037
|
/**
|
|
27085
27038
|
* 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.
|
|
@@ -27089,7 +27042,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27089
27042
|
* @throws {RequiredError}
|
|
27090
27043
|
*/
|
|
27091
27044
|
checkInBooking(requestParameters: BookingsApiCheckInBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27092
|
-
return localVarFp.checkInBooking(requestParameters.
|
|
27045
|
+
return localVarFp.checkInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27093
27046
|
},
|
|
27094
27047
|
/**
|
|
27095
27048
|
* 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.
|
|
@@ -27099,17 +27052,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27099
27052
|
* @throws {RequiredError}
|
|
27100
27053
|
*/
|
|
27101
27054
|
createBooking(requestParameters: BookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27102
|
-
return localVarFp.createBooking(requestParameters.
|
|
27055
|
+
return localVarFp.createBooking(requestParameters.spaceId, requestParameters.bookingCreateInputs, options).then((request) => request(axios, basePath));
|
|
27103
27056
|
},
|
|
27104
27057
|
/**
|
|
27105
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
27058
|
+
* 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).
|
|
27106
27059
|
* @summary Delete a booking
|
|
27107
27060
|
* @param {BookingsApiDeleteBookingRequest} requestParameters Request parameters.
|
|
27108
27061
|
* @param {*} [options] Override http request option.
|
|
27109
27062
|
* @throws {RequiredError}
|
|
27110
27063
|
*/
|
|
27111
|
-
deleteBooking(requestParameters: BookingsApiDeleteBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
27112
|
-
return localVarFp.deleteBooking(requestParameters.
|
|
27064
|
+
deleteBooking(requestParameters: BookingsApiDeleteBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27065
|
+
return localVarFp.deleteBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27113
27066
|
},
|
|
27114
27067
|
/**
|
|
27115
27068
|
* 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\".
|
|
@@ -27192,14 +27145,14 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27192
27145
|
return localVarFp.getBookingResponses(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27193
27146
|
},
|
|
27194
27147
|
/**
|
|
27195
|
-
* Returns a single bookable space
|
|
27148
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
27196
27149
|
* @summary Get a booking space
|
|
27197
27150
|
* @param {BookingsApiGetBookingSpaceRequest} requestParameters Request parameters.
|
|
27198
27151
|
* @param {*} [options] Override http request option.
|
|
27199
27152
|
* @throws {RequiredError}
|
|
27200
27153
|
*/
|
|
27201
27154
|
getBookingSpace(requestParameters: BookingsApiGetBookingSpaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
27202
|
-
return localVarFp.getBookingSpace(requestParameters.
|
|
27155
|
+
return localVarFp.getBookingSpace(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
27203
27156
|
},
|
|
27204
27157
|
/**
|
|
27205
27158
|
* 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\".
|
|
@@ -27209,17 +27162,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27209
27162
|
* @throws {RequiredError}
|
|
27210
27163
|
*/
|
|
27211
27164
|
getBookingSpaceAvailabilities(requestParameters: BookingsApiGetBookingSpaceAvailabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceAvailabilities200Response> {
|
|
27212
|
-
return localVarFp.getBookingSpaceAvailabilities(requestParameters.
|
|
27165
|
+
return localVarFp.getBookingSpaceAvailabilities(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
27213
27166
|
},
|
|
27214
27167
|
/**
|
|
27215
|
-
* Returns a single
|
|
27216
|
-
* @summary Get a booking space
|
|
27168
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
27169
|
+
* @summary Get a booking space availability by id
|
|
27217
27170
|
* @param {BookingsApiGetBookingSpaceAvailabilityRequest} requestParameters Request parameters.
|
|
27218
27171
|
* @param {*} [options] Override http request option.
|
|
27219
27172
|
* @throws {RequiredError}
|
|
27220
27173
|
*/
|
|
27221
27174
|
getBookingSpaceAvailability(requestParameters: BookingsApiGetBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceAvailability200Response> {
|
|
27222
|
-
return localVarFp.getBookingSpaceAvailability(requestParameters.
|
|
27175
|
+
return localVarFp.getBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(axios, basePath));
|
|
27223
27176
|
},
|
|
27224
27177
|
/**
|
|
27225
27178
|
* 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\".
|
|
@@ -27229,7 +27182,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27229
27182
|
* @throws {RequiredError}
|
|
27230
27183
|
*/
|
|
27231
27184
|
getBookingSpaceBlackout(requestParameters: BookingsApiGetBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceBlackout200Response> {
|
|
27232
|
-
return localVarFp.getBookingSpaceBlackout(requestParameters.
|
|
27185
|
+
return localVarFp.getBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(axios, basePath));
|
|
27233
27186
|
},
|
|
27234
27187
|
/**
|
|
27235
27188
|
* 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\".
|
|
@@ -27239,7 +27192,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27239
27192
|
* @throws {RequiredError}
|
|
27240
27193
|
*/
|
|
27241
27194
|
getBookingSpaceBlackouts(requestParameters: BookingsApiGetBookingSpaceBlackoutsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceBlackouts200Response> {
|
|
27242
|
-
return localVarFp.getBookingSpaceBlackouts(requestParameters.
|
|
27195
|
+
return localVarFp.getBookingSpaceBlackouts(requestParameters.spaceId, requestParameters.past, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27243
27196
|
},
|
|
27244
27197
|
/**
|
|
27245
27198
|
* 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\".
|
|
@@ -27249,7 +27202,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27249
27202
|
* @throws {RequiredError}
|
|
27250
27203
|
*/
|
|
27251
27204
|
getBookingSpaceBookings(requestParameters: BookingsApiGetBookingSpaceBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountBookings200Response> {
|
|
27252
|
-
return localVarFp.getBookingSpaceBookings(requestParameters.
|
|
27205
|
+
return localVarFp.getBookingSpaceBookings(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27253
27206
|
},
|
|
27254
27207
|
/**
|
|
27255
27208
|
* 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\".
|
|
@@ -27259,27 +27212,27 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27259
27212
|
* @throws {RequiredError}
|
|
27260
27213
|
*/
|
|
27261
27214
|
getBookingSpacePayments(requestParameters: BookingsApiGetBookingSpacePaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPayments200Response> {
|
|
27262
|
-
return localVarFp.getBookingSpacePayments(requestParameters.
|
|
27215
|
+
return localVarFp.getBookingSpacePayments(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27263
27216
|
},
|
|
27264
27217
|
/**
|
|
27265
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
27218
|
+
* 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.
|
|
27266
27219
|
* @summary Get a booking space\'s available slots
|
|
27267
27220
|
* @param {BookingsApiGetBookingSpaceSlotsRequest} requestParameters Request parameters.
|
|
27268
27221
|
* @param {*} [options] Override http request option.
|
|
27269
27222
|
* @throws {RequiredError}
|
|
27270
27223
|
*/
|
|
27271
27224
|
getBookingSpaceSlots(requestParameters: BookingsApiGetBookingSpaceSlotsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceSlots200Response> {
|
|
27272
|
-
return localVarFp.getBookingSpaceSlots(requestParameters.
|
|
27225
|
+
return localVarFp.getBookingSpaceSlots(requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(axios, basePath));
|
|
27273
27226
|
},
|
|
27274
27227
|
/**
|
|
27275
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
27228
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
27276
27229
|
* @summary List a booking space\'s assigned tiers
|
|
27277
27230
|
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
27278
27231
|
* @param {*} [options] Override http request option.
|
|
27279
27232
|
* @throws {RequiredError}
|
|
27280
27233
|
*/
|
|
27281
27234
|
getBookingSpaceTiers(requestParameters: BookingsApiGetBookingSpaceTiersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountTiers200Response> {
|
|
27282
|
-
return localVarFp.getBookingSpaceTiers(requestParameters.
|
|
27235
|
+
return localVarFp.getBookingSpaceTiers(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27283
27236
|
},
|
|
27284
27237
|
/**
|
|
27285
27238
|
* 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.
|
|
@@ -27289,27 +27242,27 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27289
27242
|
* @throws {RequiredError}
|
|
27290
27243
|
*/
|
|
27291
27244
|
getBookingSpaceTranslation(requestParameters: BookingsApiGetBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceTranslation200Response> {
|
|
27292
|
-
return localVarFp.getBookingSpaceTranslation(requestParameters.
|
|
27245
|
+
return localVarFp.getBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
27293
27246
|
},
|
|
27294
27247
|
/**
|
|
27295
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
27248
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
27296
27249
|
* @summary List a booking space\'s translations
|
|
27297
27250
|
* @param {BookingsApiGetBookingSpaceTranslationsRequest} requestParameters Request parameters.
|
|
27298
27251
|
* @param {*} [options] Override http request option.
|
|
27299
27252
|
* @throws {RequiredError}
|
|
27300
27253
|
*/
|
|
27301
27254
|
getBookingSpaceTranslations(requestParameters: BookingsApiGetBookingSpaceTranslationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceTranslations200Response> {
|
|
27302
|
-
return localVarFp.getBookingSpaceTranslations(requestParameters.
|
|
27255
|
+
return localVarFp.getBookingSpaceTranslations(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27303
27256
|
},
|
|
27304
27257
|
/**
|
|
27305
|
-
* Returns a paginated list of bookable spaces
|
|
27306
|
-
* @summary List
|
|
27258
|
+
* 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\".
|
|
27259
|
+
* @summary List booking spaces
|
|
27307
27260
|
* @param {BookingsApiGetBookingSpacesRequest} requestParameters Request parameters.
|
|
27308
27261
|
* @param {*} [options] Override http request option.
|
|
27309
27262
|
* @throws {RequiredError}
|
|
27310
27263
|
*/
|
|
27311
|
-
getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaces200Response> {
|
|
27312
|
-
return localVarFp.getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27264
|
+
getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaces200Response> {
|
|
27265
|
+
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));
|
|
27313
27266
|
},
|
|
27314
27267
|
/**
|
|
27315
27268
|
* 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.
|
|
@@ -27319,7 +27272,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27319
27272
|
* @throws {RequiredError}
|
|
27320
27273
|
*/
|
|
27321
27274
|
removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
27322
|
-
return localVarFp.removeBookingSpaceTier(requestParameters.
|
|
27275
|
+
return localVarFp.removeBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
27323
27276
|
},
|
|
27324
27277
|
/**
|
|
27325
27278
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
@@ -27329,17 +27282,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27329
27282
|
* @throws {RequiredError}
|
|
27330
27283
|
*/
|
|
27331
27284
|
undoCheckInBooking(requestParameters: BookingsApiUndoCheckInBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27332
|
-
return localVarFp.undoCheckInBooking(requestParameters.
|
|
27285
|
+
return localVarFp.undoCheckInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27333
27286
|
},
|
|
27334
27287
|
/**
|
|
27335
|
-
* Updates an existing booking for a bookable space
|
|
27288
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
27336
27289
|
* @summary Update a booking
|
|
27337
27290
|
* @param {BookingsApiUpdateBookingRequest} requestParameters Request parameters.
|
|
27338
27291
|
* @param {*} [options] Override http request option.
|
|
27339
27292
|
* @throws {RequiredError}
|
|
27340
27293
|
*/
|
|
27341
27294
|
updateBooking(requestParameters: BookingsApiUpdateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27342
|
-
return localVarFp.updateBooking(requestParameters.
|
|
27295
|
+
return localVarFp.updateBooking(requestParameters.spaceId, requestParameters.bookingId, requestParameters.bookingUpdateInputs, options).then((request) => request(axios, basePath));
|
|
27343
27296
|
},
|
|
27344
27297
|
};
|
|
27345
27298
|
};
|
|
@@ -27348,11 +27301,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27348
27301
|
* Request parameters for addBookingSpaceTier operation in BookingsApi.
|
|
27349
27302
|
*/
|
|
27350
27303
|
export interface BookingsApiAddBookingSpaceTierRequest {
|
|
27351
|
-
/**
|
|
27352
|
-
* The place identifier
|
|
27353
|
-
*/
|
|
27354
|
-
readonly placeId: string
|
|
27355
|
-
|
|
27356
27304
|
/**
|
|
27357
27305
|
* The space identifier
|
|
27358
27306
|
*/
|
|
@@ -27368,11 +27316,6 @@ export interface BookingsApiAddBookingSpaceTierRequest {
|
|
|
27368
27316
|
* Request parameters for cancelBooking operation in BookingsApi.
|
|
27369
27317
|
*/
|
|
27370
27318
|
export interface BookingsApiCancelBookingRequest {
|
|
27371
|
-
/**
|
|
27372
|
-
* The place identifier
|
|
27373
|
-
*/
|
|
27374
|
-
readonly placeId: string
|
|
27375
|
-
|
|
27376
27319
|
/**
|
|
27377
27320
|
* The space identifier
|
|
27378
27321
|
*/
|
|
@@ -27388,11 +27331,6 @@ export interface BookingsApiCancelBookingRequest {
|
|
|
27388
27331
|
* Request parameters for checkInBooking operation in BookingsApi.
|
|
27389
27332
|
*/
|
|
27390
27333
|
export interface BookingsApiCheckInBookingRequest {
|
|
27391
|
-
/**
|
|
27392
|
-
* The place identifier
|
|
27393
|
-
*/
|
|
27394
|
-
readonly placeId: string
|
|
27395
|
-
|
|
27396
27334
|
/**
|
|
27397
27335
|
* The space identifier
|
|
27398
27336
|
*/
|
|
@@ -27408,11 +27346,6 @@ export interface BookingsApiCheckInBookingRequest {
|
|
|
27408
27346
|
* Request parameters for createBooking operation in BookingsApi.
|
|
27409
27347
|
*/
|
|
27410
27348
|
export interface BookingsApiCreateBookingRequest {
|
|
27411
|
-
/**
|
|
27412
|
-
* The place identifier
|
|
27413
|
-
*/
|
|
27414
|
-
readonly placeId: string
|
|
27415
|
-
|
|
27416
27349
|
/**
|
|
27417
27350
|
* The space identifier
|
|
27418
27351
|
*/
|
|
@@ -27425,11 +27358,6 @@ export interface BookingsApiCreateBookingRequest {
|
|
|
27425
27358
|
* Request parameters for deleteBooking operation in BookingsApi.
|
|
27426
27359
|
*/
|
|
27427
27360
|
export interface BookingsApiDeleteBookingRequest {
|
|
27428
|
-
/**
|
|
27429
|
-
* The place identifier
|
|
27430
|
-
*/
|
|
27431
|
-
readonly placeId: string
|
|
27432
|
-
|
|
27433
27361
|
/**
|
|
27434
27362
|
* The space identifier
|
|
27435
27363
|
*/
|
|
@@ -27615,11 +27543,6 @@ export interface BookingsApiGetBookingResponsesRequest {
|
|
|
27615
27543
|
* Request parameters for getBookingSpace operation in BookingsApi.
|
|
27616
27544
|
*/
|
|
27617
27545
|
export interface BookingsApiGetBookingSpaceRequest {
|
|
27618
|
-
/**
|
|
27619
|
-
* The place identifier
|
|
27620
|
-
*/
|
|
27621
|
-
readonly placeId: string
|
|
27622
|
-
|
|
27623
27546
|
/**
|
|
27624
27547
|
* The space identifier
|
|
27625
27548
|
*/
|
|
@@ -27630,11 +27553,6 @@ export interface BookingsApiGetBookingSpaceRequest {
|
|
|
27630
27553
|
* Request parameters for getBookingSpaceAvailabilities operation in BookingsApi.
|
|
27631
27554
|
*/
|
|
27632
27555
|
export interface BookingsApiGetBookingSpaceAvailabilitiesRequest {
|
|
27633
|
-
/**
|
|
27634
|
-
* The place identifier
|
|
27635
|
-
*/
|
|
27636
|
-
readonly placeId: string
|
|
27637
|
-
|
|
27638
27556
|
/**
|
|
27639
27557
|
* The space identifier
|
|
27640
27558
|
*/
|
|
@@ -27645,11 +27563,6 @@ export interface BookingsApiGetBookingSpaceAvailabilitiesRequest {
|
|
|
27645
27563
|
* Request parameters for getBookingSpaceAvailability operation in BookingsApi.
|
|
27646
27564
|
*/
|
|
27647
27565
|
export interface BookingsApiGetBookingSpaceAvailabilityRequest {
|
|
27648
|
-
/**
|
|
27649
|
-
* The place identifier
|
|
27650
|
-
*/
|
|
27651
|
-
readonly placeId: string
|
|
27652
|
-
|
|
27653
27566
|
/**
|
|
27654
27567
|
* The space identifier
|
|
27655
27568
|
*/
|
|
@@ -27665,11 +27578,6 @@ export interface BookingsApiGetBookingSpaceAvailabilityRequest {
|
|
|
27665
27578
|
* Request parameters for getBookingSpaceBlackout operation in BookingsApi.
|
|
27666
27579
|
*/
|
|
27667
27580
|
export interface BookingsApiGetBookingSpaceBlackoutRequest {
|
|
27668
|
-
/**
|
|
27669
|
-
* The place identifier
|
|
27670
|
-
*/
|
|
27671
|
-
readonly placeId: string
|
|
27672
|
-
|
|
27673
27581
|
/**
|
|
27674
27582
|
* The space identifier
|
|
27675
27583
|
*/
|
|
@@ -27685,11 +27593,6 @@ export interface BookingsApiGetBookingSpaceBlackoutRequest {
|
|
|
27685
27593
|
* Request parameters for getBookingSpaceBlackouts operation in BookingsApi.
|
|
27686
27594
|
*/
|
|
27687
27595
|
export interface BookingsApiGetBookingSpaceBlackoutsRequest {
|
|
27688
|
-
/**
|
|
27689
|
-
* The place identifier
|
|
27690
|
-
*/
|
|
27691
|
-
readonly placeId: string
|
|
27692
|
-
|
|
27693
27596
|
/**
|
|
27694
27597
|
* The space identifier
|
|
27695
27598
|
*/
|
|
@@ -27725,11 +27628,6 @@ export interface BookingsApiGetBookingSpaceBlackoutsRequest {
|
|
|
27725
27628
|
* Request parameters for getBookingSpaceBookings operation in BookingsApi.
|
|
27726
27629
|
*/
|
|
27727
27630
|
export interface BookingsApiGetBookingSpaceBookingsRequest {
|
|
27728
|
-
/**
|
|
27729
|
-
* The place identifier
|
|
27730
|
-
*/
|
|
27731
|
-
readonly placeId: string
|
|
27732
|
-
|
|
27733
27631
|
/**
|
|
27734
27632
|
* The space identifier
|
|
27735
27633
|
*/
|
|
@@ -27770,11 +27668,6 @@ export interface BookingsApiGetBookingSpaceBookingsRequest {
|
|
|
27770
27668
|
* Request parameters for getBookingSpacePayments operation in BookingsApi.
|
|
27771
27669
|
*/
|
|
27772
27670
|
export interface BookingsApiGetBookingSpacePaymentsRequest {
|
|
27773
|
-
/**
|
|
27774
|
-
* The place identifier
|
|
27775
|
-
*/
|
|
27776
|
-
readonly placeId: string
|
|
27777
|
-
|
|
27778
27671
|
/**
|
|
27779
27672
|
* The space identifier
|
|
27780
27673
|
*/
|
|
@@ -27815,11 +27708,6 @@ export interface BookingsApiGetBookingSpacePaymentsRequest {
|
|
|
27815
27708
|
* Request parameters for getBookingSpaceSlots operation in BookingsApi.
|
|
27816
27709
|
*/
|
|
27817
27710
|
export interface BookingsApiGetBookingSpaceSlotsRequest {
|
|
27818
|
-
/**
|
|
27819
|
-
* The place identifier
|
|
27820
|
-
*/
|
|
27821
|
-
readonly placeId: string
|
|
27822
|
-
|
|
27823
27711
|
/**
|
|
27824
27712
|
* The space identifier
|
|
27825
27713
|
*/
|
|
@@ -27835,11 +27723,6 @@ export interface BookingsApiGetBookingSpaceSlotsRequest {
|
|
|
27835
27723
|
* Request parameters for getBookingSpaceTiers operation in BookingsApi.
|
|
27836
27724
|
*/
|
|
27837
27725
|
export interface BookingsApiGetBookingSpaceTiersRequest {
|
|
27838
|
-
/**
|
|
27839
|
-
* The place identifier
|
|
27840
|
-
*/
|
|
27841
|
-
readonly placeId: string
|
|
27842
|
-
|
|
27843
27726
|
/**
|
|
27844
27727
|
* The space identifier
|
|
27845
27728
|
*/
|
|
@@ -27870,11 +27753,6 @@ export interface BookingsApiGetBookingSpaceTiersRequest {
|
|
|
27870
27753
|
* Request parameters for getBookingSpaceTranslation operation in BookingsApi.
|
|
27871
27754
|
*/
|
|
27872
27755
|
export interface BookingsApiGetBookingSpaceTranslationRequest {
|
|
27873
|
-
/**
|
|
27874
|
-
* The place identifier
|
|
27875
|
-
*/
|
|
27876
|
-
readonly placeId: string
|
|
27877
|
-
|
|
27878
27756
|
/**
|
|
27879
27757
|
* The space identifier
|
|
27880
27758
|
*/
|
|
@@ -27890,11 +27768,6 @@ export interface BookingsApiGetBookingSpaceTranslationRequest {
|
|
|
27890
27768
|
* Request parameters for getBookingSpaceTranslations operation in BookingsApi.
|
|
27891
27769
|
*/
|
|
27892
27770
|
export interface BookingsApiGetBookingSpaceTranslationsRequest {
|
|
27893
|
-
/**
|
|
27894
|
-
* The place identifier
|
|
27895
|
-
*/
|
|
27896
|
-
readonly placeId: string
|
|
27897
|
-
|
|
27898
27771
|
/**
|
|
27899
27772
|
* The space identifier
|
|
27900
27773
|
*/
|
|
@@ -27926,9 +27799,24 @@ export interface BookingsApiGetBookingSpaceTranslationsRequest {
|
|
|
27926
27799
|
*/
|
|
27927
27800
|
export interface BookingsApiGetBookingSpacesRequest {
|
|
27928
27801
|
/**
|
|
27929
|
-
*
|
|
27802
|
+
* Filter by placeId
|
|
27930
27803
|
*/
|
|
27931
|
-
readonly placeId
|
|
27804
|
+
readonly placeId?: string
|
|
27805
|
+
|
|
27806
|
+
/**
|
|
27807
|
+
* Filter by eventId
|
|
27808
|
+
*/
|
|
27809
|
+
readonly eventId?: string
|
|
27810
|
+
|
|
27811
|
+
/**
|
|
27812
|
+
* Filter by groupId
|
|
27813
|
+
*/
|
|
27814
|
+
readonly groupId?: string
|
|
27815
|
+
|
|
27816
|
+
/**
|
|
27817
|
+
* Filter by accountId
|
|
27818
|
+
*/
|
|
27819
|
+
readonly accountId?: string
|
|
27932
27820
|
|
|
27933
27821
|
/**
|
|
27934
27822
|
* Page number
|
|
@@ -27955,11 +27843,6 @@ export interface BookingsApiGetBookingSpacesRequest {
|
|
|
27955
27843
|
* Request parameters for removeBookingSpaceTier operation in BookingsApi.
|
|
27956
27844
|
*/
|
|
27957
27845
|
export interface BookingsApiRemoveBookingSpaceTierRequest {
|
|
27958
|
-
/**
|
|
27959
|
-
* The place identifier
|
|
27960
|
-
*/
|
|
27961
|
-
readonly placeId: string
|
|
27962
|
-
|
|
27963
27846
|
/**
|
|
27964
27847
|
* The space identifier
|
|
27965
27848
|
*/
|
|
@@ -27975,11 +27858,6 @@ export interface BookingsApiRemoveBookingSpaceTierRequest {
|
|
|
27975
27858
|
* Request parameters for undoCheckInBooking operation in BookingsApi.
|
|
27976
27859
|
*/
|
|
27977
27860
|
export interface BookingsApiUndoCheckInBookingRequest {
|
|
27978
|
-
/**
|
|
27979
|
-
* The place identifier
|
|
27980
|
-
*/
|
|
27981
|
-
readonly placeId: string
|
|
27982
|
-
|
|
27983
27861
|
/**
|
|
27984
27862
|
* The space identifier
|
|
27985
27863
|
*/
|
|
@@ -27995,11 +27873,6 @@ export interface BookingsApiUndoCheckInBookingRequest {
|
|
|
27995
27873
|
* Request parameters for updateBooking operation in BookingsApi.
|
|
27996
27874
|
*/
|
|
27997
27875
|
export interface BookingsApiUpdateBookingRequest {
|
|
27998
|
-
/**
|
|
27999
|
-
* The place identifier
|
|
28000
|
-
*/
|
|
28001
|
-
readonly placeId: string
|
|
28002
|
-
|
|
28003
27876
|
/**
|
|
28004
27877
|
* The space identifier
|
|
28005
27878
|
*/
|
|
@@ -28025,7 +27898,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28025
27898
|
* @throws {RequiredError}
|
|
28026
27899
|
*/
|
|
28027
27900
|
public addBookingSpaceTier(requestParameters: BookingsApiAddBookingSpaceTierRequest, options?: RawAxiosRequestConfig) {
|
|
28028
|
-
return BookingsApiFp(this.configuration).addBookingSpaceTier(requestParameters.
|
|
27901
|
+
return BookingsApiFp(this.configuration).addBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
28029
27902
|
}
|
|
28030
27903
|
|
|
28031
27904
|
/**
|
|
@@ -28036,7 +27909,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28036
27909
|
* @throws {RequiredError}
|
|
28037
27910
|
*/
|
|
28038
27911
|
public cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28039
|
-
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.
|
|
27912
|
+
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
28040
27913
|
}
|
|
28041
27914
|
|
|
28042
27915
|
/**
|
|
@@ -28047,7 +27920,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28047
27920
|
* @throws {RequiredError}
|
|
28048
27921
|
*/
|
|
28049
27922
|
public checkInBooking(requestParameters: BookingsApiCheckInBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28050
|
-
return BookingsApiFp(this.configuration).checkInBooking(requestParameters.
|
|
27923
|
+
return BookingsApiFp(this.configuration).checkInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
28051
27924
|
}
|
|
28052
27925
|
|
|
28053
27926
|
/**
|
|
@@ -28058,18 +27931,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
28058
27931
|
* @throws {RequiredError}
|
|
28059
27932
|
*/
|
|
28060
27933
|
public createBooking(requestParameters: BookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28061
|
-
return BookingsApiFp(this.configuration).createBooking(requestParameters.
|
|
27934
|
+
return BookingsApiFp(this.configuration).createBooking(requestParameters.spaceId, requestParameters.bookingCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28062
27935
|
}
|
|
28063
27936
|
|
|
28064
27937
|
/**
|
|
28065
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
27938
|
+
* 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).
|
|
28066
27939
|
* @summary Delete a booking
|
|
28067
27940
|
* @param {BookingsApiDeleteBookingRequest} requestParameters Request parameters.
|
|
28068
27941
|
* @param {*} [options] Override http request option.
|
|
28069
27942
|
* @throws {RequiredError}
|
|
28070
27943
|
*/
|
|
28071
27944
|
public deleteBooking(requestParameters: BookingsApiDeleteBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28072
|
-
return BookingsApiFp(this.configuration).deleteBooking(requestParameters.
|
|
27945
|
+
return BookingsApiFp(this.configuration).deleteBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
28073
27946
|
}
|
|
28074
27947
|
|
|
28075
27948
|
/**
|
|
@@ -28161,14 +28034,14 @@ export class BookingsApi extends BaseAPI {
|
|
|
28161
28034
|
}
|
|
28162
28035
|
|
|
28163
28036
|
/**
|
|
28164
|
-
* Returns a single bookable space
|
|
28037
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
28165
28038
|
* @summary Get a booking space
|
|
28166
28039
|
* @param {BookingsApiGetBookingSpaceRequest} requestParameters Request parameters.
|
|
28167
28040
|
* @param {*} [options] Override http request option.
|
|
28168
28041
|
* @throws {RequiredError}
|
|
28169
28042
|
*/
|
|
28170
28043
|
public getBookingSpace(requestParameters: BookingsApiGetBookingSpaceRequest, options?: RawAxiosRequestConfig) {
|
|
28171
|
-
return BookingsApiFp(this.configuration).getBookingSpace(requestParameters.
|
|
28044
|
+
return BookingsApiFp(this.configuration).getBookingSpace(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
28172
28045
|
}
|
|
28173
28046
|
|
|
28174
28047
|
/**
|
|
@@ -28179,18 +28052,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
28179
28052
|
* @throws {RequiredError}
|
|
28180
28053
|
*/
|
|
28181
28054
|
public getBookingSpaceAvailabilities(requestParameters: BookingsApiGetBookingSpaceAvailabilitiesRequest, options?: RawAxiosRequestConfig) {
|
|
28182
|
-
return BookingsApiFp(this.configuration).getBookingSpaceAvailabilities(requestParameters.
|
|
28055
|
+
return BookingsApiFp(this.configuration).getBookingSpaceAvailabilities(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
28183
28056
|
}
|
|
28184
28057
|
|
|
28185
28058
|
/**
|
|
28186
|
-
* Returns a single
|
|
28187
|
-
* @summary Get a booking space
|
|
28059
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
28060
|
+
* @summary Get a booking space availability by id
|
|
28188
28061
|
* @param {BookingsApiGetBookingSpaceAvailabilityRequest} requestParameters Request parameters.
|
|
28189
28062
|
* @param {*} [options] Override http request option.
|
|
28190
28063
|
* @throws {RequiredError}
|
|
28191
28064
|
*/
|
|
28192
28065
|
public getBookingSpaceAvailability(requestParameters: BookingsApiGetBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
28193
|
-
return BookingsApiFp(this.configuration).getBookingSpaceAvailability(requestParameters.
|
|
28066
|
+
return BookingsApiFp(this.configuration).getBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(this.axios, this.basePath));
|
|
28194
28067
|
}
|
|
28195
28068
|
|
|
28196
28069
|
/**
|
|
@@ -28201,7 +28074,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28201
28074
|
* @throws {RequiredError}
|
|
28202
28075
|
*/
|
|
28203
28076
|
public getBookingSpaceBlackout(requestParameters: BookingsApiGetBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig) {
|
|
28204
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBlackout(requestParameters.
|
|
28077
|
+
return BookingsApiFp(this.configuration).getBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(this.axios, this.basePath));
|
|
28205
28078
|
}
|
|
28206
28079
|
|
|
28207
28080
|
/**
|
|
@@ -28212,7 +28085,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28212
28085
|
* @throws {RequiredError}
|
|
28213
28086
|
*/
|
|
28214
28087
|
public getBookingSpaceBlackouts(requestParameters: BookingsApiGetBookingSpaceBlackoutsRequest, options?: RawAxiosRequestConfig) {
|
|
28215
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBlackouts(requestParameters.
|
|
28088
|
+
return BookingsApiFp(this.configuration).getBookingSpaceBlackouts(requestParameters.spaceId, requestParameters.past, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28216
28089
|
}
|
|
28217
28090
|
|
|
28218
28091
|
/**
|
|
@@ -28223,7 +28096,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28223
28096
|
* @throws {RequiredError}
|
|
28224
28097
|
*/
|
|
28225
28098
|
public getBookingSpaceBookings(requestParameters: BookingsApiGetBookingSpaceBookingsRequest, options?: RawAxiosRequestConfig) {
|
|
28226
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBookings(requestParameters.
|
|
28099
|
+
return BookingsApiFp(this.configuration).getBookingSpaceBookings(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28227
28100
|
}
|
|
28228
28101
|
|
|
28229
28102
|
/**
|
|
@@ -28234,29 +28107,29 @@ export class BookingsApi extends BaseAPI {
|
|
|
28234
28107
|
* @throws {RequiredError}
|
|
28235
28108
|
*/
|
|
28236
28109
|
public getBookingSpacePayments(requestParameters: BookingsApiGetBookingSpacePaymentsRequest, options?: RawAxiosRequestConfig) {
|
|
28237
|
-
return BookingsApiFp(this.configuration).getBookingSpacePayments(requestParameters.
|
|
28110
|
+
return BookingsApiFp(this.configuration).getBookingSpacePayments(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28238
28111
|
}
|
|
28239
28112
|
|
|
28240
28113
|
/**
|
|
28241
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
28114
|
+
* 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.
|
|
28242
28115
|
* @summary Get a booking space\'s available slots
|
|
28243
28116
|
* @param {BookingsApiGetBookingSpaceSlotsRequest} requestParameters Request parameters.
|
|
28244
28117
|
* @param {*} [options] Override http request option.
|
|
28245
28118
|
* @throws {RequiredError}
|
|
28246
28119
|
*/
|
|
28247
28120
|
public getBookingSpaceSlots(requestParameters: BookingsApiGetBookingSpaceSlotsRequest, options?: RawAxiosRequestConfig) {
|
|
28248
|
-
return BookingsApiFp(this.configuration).getBookingSpaceSlots(requestParameters.
|
|
28121
|
+
return BookingsApiFp(this.configuration).getBookingSpaceSlots(requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(this.axios, this.basePath));
|
|
28249
28122
|
}
|
|
28250
28123
|
|
|
28251
28124
|
/**
|
|
28252
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
28125
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
28253
28126
|
* @summary List a booking space\'s assigned tiers
|
|
28254
28127
|
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
28255
28128
|
* @param {*} [options] Override http request option.
|
|
28256
28129
|
* @throws {RequiredError}
|
|
28257
28130
|
*/
|
|
28258
28131
|
public getBookingSpaceTiers(requestParameters: BookingsApiGetBookingSpaceTiersRequest, options?: RawAxiosRequestConfig) {
|
|
28259
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTiers(requestParameters.
|
|
28132
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTiers(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28260
28133
|
}
|
|
28261
28134
|
|
|
28262
28135
|
/**
|
|
@@ -28267,29 +28140,29 @@ export class BookingsApi extends BaseAPI {
|
|
|
28267
28140
|
* @throws {RequiredError}
|
|
28268
28141
|
*/
|
|
28269
28142
|
public getBookingSpaceTranslation(requestParameters: BookingsApiGetBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
28270
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTranslation(requestParameters.
|
|
28143
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
28271
28144
|
}
|
|
28272
28145
|
|
|
28273
28146
|
/**
|
|
28274
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
28147
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
28275
28148
|
* @summary List a booking space\'s translations
|
|
28276
28149
|
* @param {BookingsApiGetBookingSpaceTranslationsRequest} requestParameters Request parameters.
|
|
28277
28150
|
* @param {*} [options] Override http request option.
|
|
28278
28151
|
* @throws {RequiredError}
|
|
28279
28152
|
*/
|
|
28280
28153
|
public getBookingSpaceTranslations(requestParameters: BookingsApiGetBookingSpaceTranslationsRequest, options?: RawAxiosRequestConfig) {
|
|
28281
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTranslations(requestParameters.
|
|
28154
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTranslations(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28282
28155
|
}
|
|
28283
28156
|
|
|
28284
28157
|
/**
|
|
28285
|
-
* Returns a paginated list of bookable spaces
|
|
28286
|
-
* @summary List
|
|
28158
|
+
* 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\".
|
|
28159
|
+
* @summary List booking spaces
|
|
28287
28160
|
* @param {BookingsApiGetBookingSpacesRequest} requestParameters Request parameters.
|
|
28288
28161
|
* @param {*} [options] Override http request option.
|
|
28289
28162
|
* @throws {RequiredError}
|
|
28290
28163
|
*/
|
|
28291
|
-
public getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest, options?: RawAxiosRequestConfig) {
|
|
28292
|
-
return BookingsApiFp(this.configuration).getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28164
|
+
public getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest = {}, options?: RawAxiosRequestConfig) {
|
|
28165
|
+
return BookingsApiFp(this.configuration).getBookingSpaces(requestParameters.placeId, requestParameters.eventId, requestParameters.groupId, requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28293
28166
|
}
|
|
28294
28167
|
|
|
28295
28168
|
/**
|
|
@@ -28300,7 +28173,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28300
28173
|
* @throws {RequiredError}
|
|
28301
28174
|
*/
|
|
28302
28175
|
public removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig) {
|
|
28303
|
-
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.
|
|
28176
|
+
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
28304
28177
|
}
|
|
28305
28178
|
|
|
28306
28179
|
/**
|
|
@@ -28311,18 +28184,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
28311
28184
|
* @throws {RequiredError}
|
|
28312
28185
|
*/
|
|
28313
28186
|
public undoCheckInBooking(requestParameters: BookingsApiUndoCheckInBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28314
|
-
return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.
|
|
28187
|
+
return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
28315
28188
|
}
|
|
28316
28189
|
|
|
28317
28190
|
/**
|
|
28318
|
-
* Updates an existing booking for a bookable space
|
|
28191
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
28319
28192
|
* @summary Update a booking
|
|
28320
28193
|
* @param {BookingsApiUpdateBookingRequest} requestParameters Request parameters.
|
|
28321
28194
|
* @param {*} [options] Override http request option.
|
|
28322
28195
|
* @throws {RequiredError}
|
|
28323
28196
|
*/
|
|
28324
28197
|
public updateBooking(requestParameters: BookingsApiUpdateBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28325
|
-
return BookingsApiFp(this.configuration).updateBooking(requestParameters.
|
|
28198
|
+
return BookingsApiFp(this.configuration).updateBooking(requestParameters.spaceId, requestParameters.bookingId, requestParameters.bookingUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28326
28199
|
}
|
|
28327
28200
|
}
|
|
28328
28201
|
|
|
@@ -28336,21 +28209,17 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
28336
28209
|
/**
|
|
28337
28210
|
* 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.
|
|
28338
28211
|
* @summary Create a booking space availability
|
|
28339
|
-
* @param {string} placeId The place identifier
|
|
28340
28212
|
* @param {string} spaceId The space identifier
|
|
28341
28213
|
* @param {BookingSpaceAvailabilityCreateInputs} bookingSpaceAvailabilityCreateInputs
|
|
28342
28214
|
* @param {*} [options] Override http request option.
|
|
28343
28215
|
* @throws {RequiredError}
|
|
28344
28216
|
*/
|
|
28345
|
-
createBookingSpaceAvailability: async (
|
|
28346
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28347
|
-
assertParamExists('createBookingSpaceAvailability', 'placeId', placeId)
|
|
28217
|
+
createBookingSpaceAvailability: async (spaceId: string, bookingSpaceAvailabilityCreateInputs: BookingSpaceAvailabilityCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28348
28218
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28349
28219
|
assertParamExists('createBookingSpaceAvailability', 'spaceId', spaceId)
|
|
28350
28220
|
// verify required parameter 'bookingSpaceAvailabilityCreateInputs' is not null or undefined
|
|
28351
28221
|
assertParamExists('createBookingSpaceAvailability', 'bookingSpaceAvailabilityCreateInputs', bookingSpaceAvailabilityCreateInputs)
|
|
28352
|
-
const localVarPath = `/bookings/
|
|
28353
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28222
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities`
|
|
28354
28223
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
28355
28224
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28356
28225
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -28385,21 +28254,17 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
28385
28254
|
/**
|
|
28386
28255
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
28387
28256
|
* @summary Delete a booking space availability
|
|
28388
|
-
* @param {string} placeId The place identifier
|
|
28389
28257
|
* @param {string} spaceId The space identifier
|
|
28390
28258
|
* @param {string} availabilityId The availability identifier
|
|
28391
28259
|
* @param {*} [options] Override http request option.
|
|
28392
28260
|
* @throws {RequiredError}
|
|
28393
28261
|
*/
|
|
28394
|
-
deleteBookingSpaceAvailability: async (
|
|
28395
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28396
|
-
assertParamExists('deleteBookingSpaceAvailability', 'placeId', placeId)
|
|
28262
|
+
deleteBookingSpaceAvailability: async (spaceId: string, availabilityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28397
28263
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28398
28264
|
assertParamExists('deleteBookingSpaceAvailability', 'spaceId', spaceId)
|
|
28399
28265
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
28400
28266
|
assertParamExists('deleteBookingSpaceAvailability', 'availabilityId', availabilityId)
|
|
28401
|
-
const localVarPath = `/bookings/
|
|
28402
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28267
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
28403
28268
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
28404
28269
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
28405
28270
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -28433,24 +28298,20 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
28433
28298
|
/**
|
|
28434
28299
|
* 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.
|
|
28435
28300
|
* @summary Update a booking space availability
|
|
28436
|
-
* @param {string} placeId The place identifier
|
|
28437
28301
|
* @param {string} spaceId The space identifier
|
|
28438
28302
|
* @param {string} availabilityId The availability identifier
|
|
28439
28303
|
* @param {BookingSpaceAvailabilityUpdateInputs} bookingSpaceAvailabilityUpdateInputs
|
|
28440
28304
|
* @param {*} [options] Override http request option.
|
|
28441
28305
|
* @throws {RequiredError}
|
|
28442
28306
|
*/
|
|
28443
|
-
updateBookingSpaceAvailability: async (
|
|
28444
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28445
|
-
assertParamExists('updateBookingSpaceAvailability', 'placeId', placeId)
|
|
28307
|
+
updateBookingSpaceAvailability: async (spaceId: string, availabilityId: string, bookingSpaceAvailabilityUpdateInputs: BookingSpaceAvailabilityUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28446
28308
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28447
28309
|
assertParamExists('updateBookingSpaceAvailability', 'spaceId', spaceId)
|
|
28448
28310
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
28449
28311
|
assertParamExists('updateBookingSpaceAvailability', 'availabilityId', availabilityId)
|
|
28450
28312
|
// verify required parameter 'bookingSpaceAvailabilityUpdateInputs' is not null or undefined
|
|
28451
28313
|
assertParamExists('updateBookingSpaceAvailability', 'bookingSpaceAvailabilityUpdateInputs', bookingSpaceAvailabilityUpdateInputs)
|
|
28452
|
-
const localVarPath = `/bookings/
|
|
28453
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28314
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
28454
28315
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
28455
28316
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
28456
28317
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -28495,14 +28356,13 @@ export const BookingsAvailabilitiesApiFp = function(configuration?: Configuratio
|
|
|
28495
28356
|
/**
|
|
28496
28357
|
* 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.
|
|
28497
28358
|
* @summary Create a booking space availability
|
|
28498
|
-
* @param {string} placeId The place identifier
|
|
28499
28359
|
* @param {string} spaceId The space identifier
|
|
28500
28360
|
* @param {BookingSpaceAvailabilityCreateInputs} bookingSpaceAvailabilityCreateInputs
|
|
28501
28361
|
* @param {*} [options] Override http request option.
|
|
28502
28362
|
* @throws {RequiredError}
|
|
28503
28363
|
*/
|
|
28504
|
-
async createBookingSpaceAvailability(
|
|
28505
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceAvailability(
|
|
28364
|
+
async createBookingSpaceAvailability(spaceId: string, bookingSpaceAvailabilityCreateInputs: BookingSpaceAvailabilityCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceAvailability200Response>> {
|
|
28365
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceAvailability(spaceId, bookingSpaceAvailabilityCreateInputs, options);
|
|
28506
28366
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28507
28367
|
const localVarOperationServerBasePath = operationServerMap['BookingsAvailabilitiesApi.createBookingSpaceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
28508
28368
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28510,14 +28370,13 @@ export const BookingsAvailabilitiesApiFp = function(configuration?: Configuratio
|
|
|
28510
28370
|
/**
|
|
28511
28371
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
28512
28372
|
* @summary Delete a booking space availability
|
|
28513
|
-
* @param {string} placeId The place identifier
|
|
28514
28373
|
* @param {string} spaceId The space identifier
|
|
28515
28374
|
* @param {string} availabilityId The availability identifier
|
|
28516
28375
|
* @param {*} [options] Override http request option.
|
|
28517
28376
|
* @throws {RequiredError}
|
|
28518
28377
|
*/
|
|
28519
|
-
async deleteBookingSpaceAvailability(
|
|
28520
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceAvailability(
|
|
28378
|
+
async deleteBookingSpaceAvailability(spaceId: string, availabilityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
28379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceAvailability(spaceId, availabilityId, options);
|
|
28521
28380
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28522
28381
|
const localVarOperationServerBasePath = operationServerMap['BookingsAvailabilitiesApi.deleteBookingSpaceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
28523
28382
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28525,15 +28384,14 @@ export const BookingsAvailabilitiesApiFp = function(configuration?: Configuratio
|
|
|
28525
28384
|
/**
|
|
28526
28385
|
* 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.
|
|
28527
28386
|
* @summary Update a booking space availability
|
|
28528
|
-
* @param {string} placeId The place identifier
|
|
28529
28387
|
* @param {string} spaceId The space identifier
|
|
28530
28388
|
* @param {string} availabilityId The availability identifier
|
|
28531
28389
|
* @param {BookingSpaceAvailabilityUpdateInputs} bookingSpaceAvailabilityUpdateInputs
|
|
28532
28390
|
* @param {*} [options] Override http request option.
|
|
28533
28391
|
* @throws {RequiredError}
|
|
28534
28392
|
*/
|
|
28535
|
-
async updateBookingSpaceAvailability(
|
|
28536
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceAvailability(
|
|
28393
|
+
async updateBookingSpaceAvailability(spaceId: string, availabilityId: string, bookingSpaceAvailabilityUpdateInputs: BookingSpaceAvailabilityUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceAvailability200Response>> {
|
|
28394
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceAvailability(spaceId, availabilityId, bookingSpaceAvailabilityUpdateInputs, options);
|
|
28537
28395
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28538
28396
|
const localVarOperationServerBasePath = operationServerMap['BookingsAvailabilitiesApi.updateBookingSpaceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
28539
28397
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28555,7 +28413,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration?: Config
|
|
|
28555
28413
|
* @throws {RequiredError}
|
|
28556
28414
|
*/
|
|
28557
28415
|
createBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiCreateBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceAvailability200Response> {
|
|
28558
|
-
return localVarFp.createBookingSpaceAvailability(requestParameters.
|
|
28416
|
+
return localVarFp.createBookingSpaceAvailability(requestParameters.spaceId, requestParameters.bookingSpaceAvailabilityCreateInputs, options).then((request) => request(axios, basePath));
|
|
28559
28417
|
},
|
|
28560
28418
|
/**
|
|
28561
28419
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -28565,7 +28423,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration?: Config
|
|
|
28565
28423
|
* @throws {RequiredError}
|
|
28566
28424
|
*/
|
|
28567
28425
|
deleteBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiDeleteBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
28568
|
-
return localVarFp.deleteBookingSpaceAvailability(requestParameters.
|
|
28426
|
+
return localVarFp.deleteBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(axios, basePath));
|
|
28569
28427
|
},
|
|
28570
28428
|
/**
|
|
28571
28429
|
* 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.
|
|
@@ -28575,7 +28433,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration?: Config
|
|
|
28575
28433
|
* @throws {RequiredError}
|
|
28576
28434
|
*/
|
|
28577
28435
|
updateBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiUpdateBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceAvailability200Response> {
|
|
28578
|
-
return localVarFp.updateBookingSpaceAvailability(requestParameters.
|
|
28436
|
+
return localVarFp.updateBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, requestParameters.bookingSpaceAvailabilityUpdateInputs, options).then((request) => request(axios, basePath));
|
|
28579
28437
|
},
|
|
28580
28438
|
};
|
|
28581
28439
|
};
|
|
@@ -28584,11 +28442,6 @@ export const BookingsAvailabilitiesApiFactory = function (configuration?: Config
|
|
|
28584
28442
|
* Request parameters for createBookingSpaceAvailability operation in BookingsAvailabilitiesApi.
|
|
28585
28443
|
*/
|
|
28586
28444
|
export interface BookingsAvailabilitiesApiCreateBookingSpaceAvailabilityRequest {
|
|
28587
|
-
/**
|
|
28588
|
-
* The place identifier
|
|
28589
|
-
*/
|
|
28590
|
-
readonly placeId: string
|
|
28591
|
-
|
|
28592
28445
|
/**
|
|
28593
28446
|
* The space identifier
|
|
28594
28447
|
*/
|
|
@@ -28601,11 +28454,6 @@ export interface BookingsAvailabilitiesApiCreateBookingSpaceAvailabilityRequest
|
|
|
28601
28454
|
* Request parameters for deleteBookingSpaceAvailability operation in BookingsAvailabilitiesApi.
|
|
28602
28455
|
*/
|
|
28603
28456
|
export interface BookingsAvailabilitiesApiDeleteBookingSpaceAvailabilityRequest {
|
|
28604
|
-
/**
|
|
28605
|
-
* The place identifier
|
|
28606
|
-
*/
|
|
28607
|
-
readonly placeId: string
|
|
28608
|
-
|
|
28609
28457
|
/**
|
|
28610
28458
|
* The space identifier
|
|
28611
28459
|
*/
|
|
@@ -28621,11 +28469,6 @@ export interface BookingsAvailabilitiesApiDeleteBookingSpaceAvailabilityRequest
|
|
|
28621
28469
|
* Request parameters for updateBookingSpaceAvailability operation in BookingsAvailabilitiesApi.
|
|
28622
28470
|
*/
|
|
28623
28471
|
export interface BookingsAvailabilitiesApiUpdateBookingSpaceAvailabilityRequest {
|
|
28624
|
-
/**
|
|
28625
|
-
* The place identifier
|
|
28626
|
-
*/
|
|
28627
|
-
readonly placeId: string
|
|
28628
|
-
|
|
28629
28472
|
/**
|
|
28630
28473
|
* The space identifier
|
|
28631
28474
|
*/
|
|
@@ -28651,7 +28494,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
28651
28494
|
* @throws {RequiredError}
|
|
28652
28495
|
*/
|
|
28653
28496
|
public createBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiCreateBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
28654
|
-
return BookingsAvailabilitiesApiFp(this.configuration).createBookingSpaceAvailability(requestParameters.
|
|
28497
|
+
return BookingsAvailabilitiesApiFp(this.configuration).createBookingSpaceAvailability(requestParameters.spaceId, requestParameters.bookingSpaceAvailabilityCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28655
28498
|
}
|
|
28656
28499
|
|
|
28657
28500
|
/**
|
|
@@ -28662,7 +28505,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
28662
28505
|
* @throws {RequiredError}
|
|
28663
28506
|
*/
|
|
28664
28507
|
public deleteBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiDeleteBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
28665
|
-
return BookingsAvailabilitiesApiFp(this.configuration).deleteBookingSpaceAvailability(requestParameters.
|
|
28508
|
+
return BookingsAvailabilitiesApiFp(this.configuration).deleteBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(this.axios, this.basePath));
|
|
28666
28509
|
}
|
|
28667
28510
|
|
|
28668
28511
|
/**
|
|
@@ -28673,7 +28516,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
28673
28516
|
* @throws {RequiredError}
|
|
28674
28517
|
*/
|
|
28675
28518
|
public updateBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiUpdateBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
28676
|
-
return BookingsAvailabilitiesApiFp(this.configuration).updateBookingSpaceAvailability(requestParameters.
|
|
28519
|
+
return BookingsAvailabilitiesApiFp(this.configuration).updateBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, requestParameters.bookingSpaceAvailabilityUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28677
28520
|
}
|
|
28678
28521
|
}
|
|
28679
28522
|
|
|
@@ -28687,21 +28530,17 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration?: C
|
|
|
28687
28530
|
/**
|
|
28688
28531
|
* 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.
|
|
28689
28532
|
* @summary Create a booking space blackout
|
|
28690
|
-
* @param {string} placeId The place identifier
|
|
28691
28533
|
* @param {string} spaceId The space identifier
|
|
28692
28534
|
* @param {BookingSpaceBlackoutCreateInputs} bookingSpaceBlackoutCreateInputs
|
|
28693
28535
|
* @param {*} [options] Override http request option.
|
|
28694
28536
|
* @throws {RequiredError}
|
|
28695
28537
|
*/
|
|
28696
|
-
createBookingSpaceBlackout: async (
|
|
28697
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28698
|
-
assertParamExists('createBookingSpaceBlackout', 'placeId', placeId)
|
|
28538
|
+
createBookingSpaceBlackout: async (spaceId: string, bookingSpaceBlackoutCreateInputs: BookingSpaceBlackoutCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28699
28539
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28700
28540
|
assertParamExists('createBookingSpaceBlackout', 'spaceId', spaceId)
|
|
28701
28541
|
// verify required parameter 'bookingSpaceBlackoutCreateInputs' is not null or undefined
|
|
28702
28542
|
assertParamExists('createBookingSpaceBlackout', 'bookingSpaceBlackoutCreateInputs', bookingSpaceBlackoutCreateInputs)
|
|
28703
|
-
const localVarPath = `/bookings/
|
|
28704
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28543
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts`
|
|
28705
28544
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
28706
28545
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28707
28546
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -28736,21 +28575,17 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration?: C
|
|
|
28736
28575
|
/**
|
|
28737
28576
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
28738
28577
|
* @summary Delete a booking space blackout
|
|
28739
|
-
* @param {string} placeId The place identifier
|
|
28740
28578
|
* @param {string} spaceId The space identifier
|
|
28741
28579
|
* @param {string} blackoutId The blackout identifier
|
|
28742
28580
|
* @param {*} [options] Override http request option.
|
|
28743
28581
|
* @throws {RequiredError}
|
|
28744
28582
|
*/
|
|
28745
|
-
deleteBookingSpaceBlackout: async (
|
|
28746
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28747
|
-
assertParamExists('deleteBookingSpaceBlackout', 'placeId', placeId)
|
|
28583
|
+
deleteBookingSpaceBlackout: async (spaceId: string, blackoutId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28748
28584
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28749
28585
|
assertParamExists('deleteBookingSpaceBlackout', 'spaceId', spaceId)
|
|
28750
28586
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
28751
28587
|
assertParamExists('deleteBookingSpaceBlackout', 'blackoutId', blackoutId)
|
|
28752
|
-
const localVarPath = `/bookings/
|
|
28753
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28588
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
28754
28589
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
28755
28590
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
28756
28591
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -28784,24 +28619,20 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration?: C
|
|
|
28784
28619
|
/**
|
|
28785
28620
|
* 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.
|
|
28786
28621
|
* @summary Update a booking space blackout
|
|
28787
|
-
* @param {string} placeId The place identifier
|
|
28788
28622
|
* @param {string} spaceId The space identifier
|
|
28789
28623
|
* @param {string} blackoutId The blackout identifier
|
|
28790
28624
|
* @param {BookingSpaceBlackoutUpdateInputs} bookingSpaceBlackoutUpdateInputs
|
|
28791
28625
|
* @param {*} [options] Override http request option.
|
|
28792
28626
|
* @throws {RequiredError}
|
|
28793
28627
|
*/
|
|
28794
|
-
updateBookingSpaceBlackout: async (
|
|
28795
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28796
|
-
assertParamExists('updateBookingSpaceBlackout', 'placeId', placeId)
|
|
28628
|
+
updateBookingSpaceBlackout: async (spaceId: string, blackoutId: string, bookingSpaceBlackoutUpdateInputs: BookingSpaceBlackoutUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28797
28629
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28798
28630
|
assertParamExists('updateBookingSpaceBlackout', 'spaceId', spaceId)
|
|
28799
28631
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
28800
28632
|
assertParamExists('updateBookingSpaceBlackout', 'blackoutId', blackoutId)
|
|
28801
28633
|
// verify required parameter 'bookingSpaceBlackoutUpdateInputs' is not null or undefined
|
|
28802
28634
|
assertParamExists('updateBookingSpaceBlackout', 'bookingSpaceBlackoutUpdateInputs', bookingSpaceBlackoutUpdateInputs)
|
|
28803
|
-
const localVarPath = `/bookings/
|
|
28804
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28635
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
28805
28636
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
28806
28637
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
28807
28638
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -28846,14 +28677,13 @@ export const BookingsBlackoutsApiFp = function(configuration?: Configuration) {
|
|
|
28846
28677
|
/**
|
|
28847
28678
|
* 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.
|
|
28848
28679
|
* @summary Create a booking space blackout
|
|
28849
|
-
* @param {string} placeId The place identifier
|
|
28850
28680
|
* @param {string} spaceId The space identifier
|
|
28851
28681
|
* @param {BookingSpaceBlackoutCreateInputs} bookingSpaceBlackoutCreateInputs
|
|
28852
28682
|
* @param {*} [options] Override http request option.
|
|
28853
28683
|
* @throws {RequiredError}
|
|
28854
28684
|
*/
|
|
28855
|
-
async createBookingSpaceBlackout(
|
|
28856
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceBlackout(
|
|
28685
|
+
async createBookingSpaceBlackout(spaceId: string, bookingSpaceBlackoutCreateInputs: BookingSpaceBlackoutCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceBlackout200Response>> {
|
|
28686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceBlackout(spaceId, bookingSpaceBlackoutCreateInputs, options);
|
|
28857
28687
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28858
28688
|
const localVarOperationServerBasePath = operationServerMap['BookingsBlackoutsApi.createBookingSpaceBlackout']?.[localVarOperationServerIndex]?.url;
|
|
28859
28689
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28861,14 +28691,13 @@ export const BookingsBlackoutsApiFp = function(configuration?: Configuration) {
|
|
|
28861
28691
|
/**
|
|
28862
28692
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
28863
28693
|
* @summary Delete a booking space blackout
|
|
28864
|
-
* @param {string} placeId The place identifier
|
|
28865
28694
|
* @param {string} spaceId The space identifier
|
|
28866
28695
|
* @param {string} blackoutId The blackout identifier
|
|
28867
28696
|
* @param {*} [options] Override http request option.
|
|
28868
28697
|
* @throws {RequiredError}
|
|
28869
28698
|
*/
|
|
28870
|
-
async deleteBookingSpaceBlackout(
|
|
28871
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceBlackout(
|
|
28699
|
+
async deleteBookingSpaceBlackout(spaceId: string, blackoutId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
28700
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceBlackout(spaceId, blackoutId, options);
|
|
28872
28701
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28873
28702
|
const localVarOperationServerBasePath = operationServerMap['BookingsBlackoutsApi.deleteBookingSpaceBlackout']?.[localVarOperationServerIndex]?.url;
|
|
28874
28703
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28876,15 +28705,14 @@ export const BookingsBlackoutsApiFp = function(configuration?: Configuration) {
|
|
|
28876
28705
|
/**
|
|
28877
28706
|
* 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.
|
|
28878
28707
|
* @summary Update a booking space blackout
|
|
28879
|
-
* @param {string} placeId The place identifier
|
|
28880
28708
|
* @param {string} spaceId The space identifier
|
|
28881
28709
|
* @param {string} blackoutId The blackout identifier
|
|
28882
28710
|
* @param {BookingSpaceBlackoutUpdateInputs} bookingSpaceBlackoutUpdateInputs
|
|
28883
28711
|
* @param {*} [options] Override http request option.
|
|
28884
28712
|
* @throws {RequiredError}
|
|
28885
28713
|
*/
|
|
28886
|
-
async updateBookingSpaceBlackout(
|
|
28887
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceBlackout(
|
|
28714
|
+
async updateBookingSpaceBlackout(spaceId: string, blackoutId: string, bookingSpaceBlackoutUpdateInputs: BookingSpaceBlackoutUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceBlackout200Response>> {
|
|
28715
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceBlackout(spaceId, blackoutId, bookingSpaceBlackoutUpdateInputs, options);
|
|
28888
28716
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28889
28717
|
const localVarOperationServerBasePath = operationServerMap['BookingsBlackoutsApi.updateBookingSpaceBlackout']?.[localVarOperationServerIndex]?.url;
|
|
28890
28718
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28906,7 +28734,7 @@ export const BookingsBlackoutsApiFactory = function (configuration?: Configurati
|
|
|
28906
28734
|
* @throws {RequiredError}
|
|
28907
28735
|
*/
|
|
28908
28736
|
createBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiCreateBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceBlackout200Response> {
|
|
28909
|
-
return localVarFp.createBookingSpaceBlackout(requestParameters.
|
|
28737
|
+
return localVarFp.createBookingSpaceBlackout(requestParameters.spaceId, requestParameters.bookingSpaceBlackoutCreateInputs, options).then((request) => request(axios, basePath));
|
|
28910
28738
|
},
|
|
28911
28739
|
/**
|
|
28912
28740
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -28916,7 +28744,7 @@ export const BookingsBlackoutsApiFactory = function (configuration?: Configurati
|
|
|
28916
28744
|
* @throws {RequiredError}
|
|
28917
28745
|
*/
|
|
28918
28746
|
deleteBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiDeleteBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
28919
|
-
return localVarFp.deleteBookingSpaceBlackout(requestParameters.
|
|
28747
|
+
return localVarFp.deleteBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(axios, basePath));
|
|
28920
28748
|
},
|
|
28921
28749
|
/**
|
|
28922
28750
|
* 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.
|
|
@@ -28926,7 +28754,7 @@ export const BookingsBlackoutsApiFactory = function (configuration?: Configurati
|
|
|
28926
28754
|
* @throws {RequiredError}
|
|
28927
28755
|
*/
|
|
28928
28756
|
updateBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiUpdateBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceBlackout200Response> {
|
|
28929
|
-
return localVarFp.updateBookingSpaceBlackout(requestParameters.
|
|
28757
|
+
return localVarFp.updateBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, requestParameters.bookingSpaceBlackoutUpdateInputs, options).then((request) => request(axios, basePath));
|
|
28930
28758
|
},
|
|
28931
28759
|
};
|
|
28932
28760
|
};
|
|
@@ -28935,11 +28763,6 @@ export const BookingsBlackoutsApiFactory = function (configuration?: Configurati
|
|
|
28935
28763
|
* Request parameters for createBookingSpaceBlackout operation in BookingsBlackoutsApi.
|
|
28936
28764
|
*/
|
|
28937
28765
|
export interface BookingsBlackoutsApiCreateBookingSpaceBlackoutRequest {
|
|
28938
|
-
/**
|
|
28939
|
-
* The place identifier
|
|
28940
|
-
*/
|
|
28941
|
-
readonly placeId: string
|
|
28942
|
-
|
|
28943
28766
|
/**
|
|
28944
28767
|
* The space identifier
|
|
28945
28768
|
*/
|
|
@@ -28952,11 +28775,6 @@ export interface BookingsBlackoutsApiCreateBookingSpaceBlackoutRequest {
|
|
|
28952
28775
|
* Request parameters for deleteBookingSpaceBlackout operation in BookingsBlackoutsApi.
|
|
28953
28776
|
*/
|
|
28954
28777
|
export interface BookingsBlackoutsApiDeleteBookingSpaceBlackoutRequest {
|
|
28955
|
-
/**
|
|
28956
|
-
* The place identifier
|
|
28957
|
-
*/
|
|
28958
|
-
readonly placeId: string
|
|
28959
|
-
|
|
28960
28778
|
/**
|
|
28961
28779
|
* The space identifier
|
|
28962
28780
|
*/
|
|
@@ -28972,11 +28790,6 @@ export interface BookingsBlackoutsApiDeleteBookingSpaceBlackoutRequest {
|
|
|
28972
28790
|
* Request parameters for updateBookingSpaceBlackout operation in BookingsBlackoutsApi.
|
|
28973
28791
|
*/
|
|
28974
28792
|
export interface BookingsBlackoutsApiUpdateBookingSpaceBlackoutRequest {
|
|
28975
|
-
/**
|
|
28976
|
-
* The place identifier
|
|
28977
|
-
*/
|
|
28978
|
-
readonly placeId: string
|
|
28979
|
-
|
|
28980
28793
|
/**
|
|
28981
28794
|
* The space identifier
|
|
28982
28795
|
*/
|
|
@@ -29002,7 +28815,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
29002
28815
|
* @throws {RequiredError}
|
|
29003
28816
|
*/
|
|
29004
28817
|
public createBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiCreateBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig) {
|
|
29005
|
-
return BookingsBlackoutsApiFp(this.configuration).createBookingSpaceBlackout(requestParameters.
|
|
28818
|
+
return BookingsBlackoutsApiFp(this.configuration).createBookingSpaceBlackout(requestParameters.spaceId, requestParameters.bookingSpaceBlackoutCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
29006
28819
|
}
|
|
29007
28820
|
|
|
29008
28821
|
/**
|
|
@@ -29013,7 +28826,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
29013
28826
|
* @throws {RequiredError}
|
|
29014
28827
|
*/
|
|
29015
28828
|
public deleteBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiDeleteBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig) {
|
|
29016
|
-
return BookingsBlackoutsApiFp(this.configuration).deleteBookingSpaceBlackout(requestParameters.
|
|
28829
|
+
return BookingsBlackoutsApiFp(this.configuration).deleteBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(this.axios, this.basePath));
|
|
29017
28830
|
}
|
|
29018
28831
|
|
|
29019
28832
|
/**
|
|
@@ -29024,7 +28837,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
29024
28837
|
* @throws {RequiredError}
|
|
29025
28838
|
*/
|
|
29026
28839
|
public updateBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiUpdateBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig) {
|
|
29027
|
-
return BookingsBlackoutsApiFp(this.configuration).updateBookingSpaceBlackout(requestParameters.
|
|
28840
|
+
return BookingsBlackoutsApiFp(this.configuration).updateBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, requestParameters.bookingSpaceBlackoutUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
29028
28841
|
}
|
|
29029
28842
|
}
|
|
29030
28843
|
|
|
@@ -29558,24 +29371,20 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29558
29371
|
/**
|
|
29559
29372
|
* 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.
|
|
29560
29373
|
* @summary Attach a search list to a booking question
|
|
29561
|
-
* @param {string} placeId The place identifier
|
|
29562
29374
|
* @param {string} spaceId The space identifier
|
|
29563
29375
|
* @param {string} questionId The question identifier
|
|
29564
29376
|
* @param {AttachSearchListInputs} attachSearchListInputs
|
|
29565
29377
|
* @param {*} [options] Override http request option.
|
|
29566
29378
|
* @throws {RequiredError}
|
|
29567
29379
|
*/
|
|
29568
|
-
attachBookingSpaceQuestionSearchList: async (
|
|
29569
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29570
|
-
assertParamExists('attachBookingSpaceQuestionSearchList', 'placeId', placeId)
|
|
29380
|
+
attachBookingSpaceQuestionSearchList: async (spaceId: string, questionId: string, attachSearchListInputs: AttachSearchListInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29571
29381
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29572
29382
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'spaceId', spaceId)
|
|
29573
29383
|
// verify required parameter 'questionId' is not null or undefined
|
|
29574
29384
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'questionId', questionId)
|
|
29575
29385
|
// verify required parameter 'attachSearchListInputs' is not null or undefined
|
|
29576
29386
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'attachSearchListInputs', attachSearchListInputs)
|
|
29577
|
-
const localVarPath = `/bookings/
|
|
29578
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29387
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/searchlist`
|
|
29579
29388
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29580
29389
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29581
29390
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29611,21 +29420,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29611
29420
|
/**
|
|
29612
29421
|
* 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.
|
|
29613
29422
|
* @summary Create a booking space question
|
|
29614
|
-
* @param {string} placeId The place identifier
|
|
29615
29423
|
* @param {string} spaceId The space identifier
|
|
29616
29424
|
* @param {BookingSpaceQuestionCreateInputs} bookingSpaceQuestionCreateInputs
|
|
29617
29425
|
* @param {*} [options] Override http request option.
|
|
29618
29426
|
* @throws {RequiredError}
|
|
29619
29427
|
*/
|
|
29620
|
-
createBookingSpaceQuestion: async (
|
|
29621
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29622
|
-
assertParamExists('createBookingSpaceQuestion', 'placeId', placeId)
|
|
29428
|
+
createBookingSpaceQuestion: async (spaceId: string, bookingSpaceQuestionCreateInputs: BookingSpaceQuestionCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29623
29429
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29624
29430
|
assertParamExists('createBookingSpaceQuestion', 'spaceId', spaceId)
|
|
29625
29431
|
// verify required parameter 'bookingSpaceQuestionCreateInputs' is not null or undefined
|
|
29626
29432
|
assertParamExists('createBookingSpaceQuestion', 'bookingSpaceQuestionCreateInputs', bookingSpaceQuestionCreateInputs)
|
|
29627
|
-
const localVarPath = `/bookings/
|
|
29628
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29433
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions`
|
|
29629
29434
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
29630
29435
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29631
29436
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29660,21 +29465,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29660
29465
|
/**
|
|
29661
29466
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
29662
29467
|
* @summary Delete a booking space question
|
|
29663
|
-
* @param {string} placeId The place identifier
|
|
29664
29468
|
* @param {string} spaceId The space identifier
|
|
29665
29469
|
* @param {string} questionId The question identifier
|
|
29666
29470
|
* @param {*} [options] Override http request option.
|
|
29667
29471
|
* @throws {RequiredError}
|
|
29668
29472
|
*/
|
|
29669
|
-
deleteBookingSpaceQuestion: async (
|
|
29670
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29671
|
-
assertParamExists('deleteBookingSpaceQuestion', 'placeId', placeId)
|
|
29473
|
+
deleteBookingSpaceQuestion: async (spaceId: string, questionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29672
29474
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29673
29475
|
assertParamExists('deleteBookingSpaceQuestion', 'spaceId', spaceId)
|
|
29674
29476
|
// verify required parameter 'questionId' is not null or undefined
|
|
29675
29477
|
assertParamExists('deleteBookingSpaceQuestion', 'questionId', questionId)
|
|
29676
|
-
const localVarPath = `/bookings/
|
|
29677
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29478
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
29678
29479
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29679
29480
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29680
29481
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29708,21 +29509,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29708
29509
|
/**
|
|
29709
29510
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
29710
29511
|
* @summary Detach a search list from a booking question
|
|
29711
|
-
* @param {string} placeId The place identifier
|
|
29712
29512
|
* @param {string} spaceId The space identifier
|
|
29713
29513
|
* @param {string} questionId The question identifier
|
|
29714
29514
|
* @param {*} [options] Override http request option.
|
|
29715
29515
|
* @throws {RequiredError}
|
|
29716
29516
|
*/
|
|
29717
|
-
detachBookingSpaceQuestionSearchList: async (
|
|
29718
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29719
|
-
assertParamExists('detachBookingSpaceQuestionSearchList', 'placeId', placeId)
|
|
29517
|
+
detachBookingSpaceQuestionSearchList: async (spaceId: string, questionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29720
29518
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29721
29519
|
assertParamExists('detachBookingSpaceQuestionSearchList', 'spaceId', spaceId)
|
|
29722
29520
|
// verify required parameter 'questionId' is not null or undefined
|
|
29723
29521
|
assertParamExists('detachBookingSpaceQuestionSearchList', 'questionId', questionId)
|
|
29724
|
-
const localVarPath = `/bookings/
|
|
29725
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29522
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/searchlist`
|
|
29726
29523
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29727
29524
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29728
29525
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29756,21 +29553,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29756
29553
|
/**
|
|
29757
29554
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
29758
29555
|
* @summary Get a booking space question
|
|
29759
|
-
* @param {string} placeId The place identifier
|
|
29760
29556
|
* @param {string} spaceId The space identifier
|
|
29761
29557
|
* @param {string} questionId The question identifier
|
|
29762
29558
|
* @param {*} [options] Override http request option.
|
|
29763
29559
|
* @throws {RequiredError}
|
|
29764
29560
|
*/
|
|
29765
|
-
getBookingSpaceQuestion: async (
|
|
29766
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29767
|
-
assertParamExists('getBookingSpaceQuestion', 'placeId', placeId)
|
|
29561
|
+
getBookingSpaceQuestion: async (spaceId: string, questionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29768
29562
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29769
29563
|
assertParamExists('getBookingSpaceQuestion', 'spaceId', spaceId)
|
|
29770
29564
|
// verify required parameter 'questionId' is not null or undefined
|
|
29771
29565
|
assertParamExists('getBookingSpaceQuestion', 'questionId', questionId)
|
|
29772
|
-
const localVarPath = `/bookings/
|
|
29773
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29566
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
29774
29567
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29775
29568
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29776
29569
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29804,7 +29597,6 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29804
29597
|
/**
|
|
29805
29598
|
* 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\".
|
|
29806
29599
|
* @summary List a booking space\'s custom questions
|
|
29807
|
-
* @param {string} placeId The place identifier
|
|
29808
29600
|
* @param {string} spaceId The space identifier
|
|
29809
29601
|
* @param {number} [page] Page number
|
|
29810
29602
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -29813,13 +29605,10 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29813
29605
|
* @param {*} [options] Override http request option.
|
|
29814
29606
|
* @throws {RequiredError}
|
|
29815
29607
|
*/
|
|
29816
|
-
getBookingSpaceQuestions: async (
|
|
29817
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29818
|
-
assertParamExists('getBookingSpaceQuestions', 'placeId', placeId)
|
|
29608
|
+
getBookingSpaceQuestions: async (spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29819
29609
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29820
29610
|
assertParamExists('getBookingSpaceQuestions', 'spaceId', spaceId)
|
|
29821
|
-
const localVarPath = `/bookings/
|
|
29822
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29611
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions`
|
|
29823
29612
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
29824
29613
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29825
29614
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29868,21 +29657,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29868
29657
|
/**
|
|
29869
29658
|
* 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.
|
|
29870
29659
|
* @summary Reorder a booking space\'s questions
|
|
29871
|
-
* @param {string} placeId The place identifier
|
|
29872
29660
|
* @param {string} spaceId The space identifier
|
|
29873
29661
|
* @param {ReorderBookingSpaceQuestionsRequest} reorderBookingSpaceQuestionsRequest
|
|
29874
29662
|
* @param {*} [options] Override http request option.
|
|
29875
29663
|
* @throws {RequiredError}
|
|
29876
29664
|
*/
|
|
29877
|
-
reorderBookingSpaceQuestions: async (
|
|
29878
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29879
|
-
assertParamExists('reorderBookingSpaceQuestions', 'placeId', placeId)
|
|
29665
|
+
reorderBookingSpaceQuestions: async (spaceId: string, reorderBookingSpaceQuestionsRequest: ReorderBookingSpaceQuestionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29880
29666
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29881
29667
|
assertParamExists('reorderBookingSpaceQuestions', 'spaceId', spaceId)
|
|
29882
29668
|
// verify required parameter 'reorderBookingSpaceQuestionsRequest' is not null or undefined
|
|
29883
29669
|
assertParamExists('reorderBookingSpaceQuestions', 'reorderBookingSpaceQuestionsRequest', reorderBookingSpaceQuestionsRequest)
|
|
29884
|
-
const localVarPath = `/bookings/
|
|
29885
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29670
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/reorder`
|
|
29886
29671
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
29887
29672
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29888
29673
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29917,24 +29702,20 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29917
29702
|
/**
|
|
29918
29703
|
* 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.
|
|
29919
29704
|
* @summary Update a booking space question
|
|
29920
|
-
* @param {string} placeId The place identifier
|
|
29921
29705
|
* @param {string} spaceId The space identifier
|
|
29922
29706
|
* @param {string} questionId The question identifier
|
|
29923
29707
|
* @param {BookingSpaceQuestionUpdateInputs} bookingSpaceQuestionUpdateInputs
|
|
29924
29708
|
* @param {*} [options] Override http request option.
|
|
29925
29709
|
* @throws {RequiredError}
|
|
29926
29710
|
*/
|
|
29927
|
-
updateBookingSpaceQuestion: async (
|
|
29928
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29929
|
-
assertParamExists('updateBookingSpaceQuestion', 'placeId', placeId)
|
|
29711
|
+
updateBookingSpaceQuestion: async (spaceId: string, questionId: string, bookingSpaceQuestionUpdateInputs: BookingSpaceQuestionUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29930
29712
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29931
29713
|
assertParamExists('updateBookingSpaceQuestion', 'spaceId', spaceId)
|
|
29932
29714
|
// verify required parameter 'questionId' is not null or undefined
|
|
29933
29715
|
assertParamExists('updateBookingSpaceQuestion', 'questionId', questionId)
|
|
29934
29716
|
// verify required parameter 'bookingSpaceQuestionUpdateInputs' is not null or undefined
|
|
29935
29717
|
assertParamExists('updateBookingSpaceQuestion', 'bookingSpaceQuestionUpdateInputs', bookingSpaceQuestionUpdateInputs)
|
|
29936
|
-
const localVarPath = `/bookings/
|
|
29937
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29718
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
29938
29719
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29939
29720
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29940
29721
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29979,15 +29760,14 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
29979
29760
|
/**
|
|
29980
29761
|
* 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.
|
|
29981
29762
|
* @summary Attach a search list to a booking question
|
|
29982
|
-
* @param {string} placeId The place identifier
|
|
29983
29763
|
* @param {string} spaceId The space identifier
|
|
29984
29764
|
* @param {string} questionId The question identifier
|
|
29985
29765
|
* @param {AttachSearchListInputs} attachSearchListInputs
|
|
29986
29766
|
* @param {*} [options] Override http request option.
|
|
29987
29767
|
* @throws {RequiredError}
|
|
29988
29768
|
*/
|
|
29989
|
-
async attachBookingSpaceQuestionSearchList(
|
|
29990
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.attachBookingSpaceQuestionSearchList(
|
|
29769
|
+
async attachBookingSpaceQuestionSearchList(spaceId: string, questionId: string, attachSearchListInputs: AttachSearchListInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29770
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.attachBookingSpaceQuestionSearchList(spaceId, questionId, attachSearchListInputs, options);
|
|
29991
29771
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29992
29772
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.attachBookingSpaceQuestionSearchList']?.[localVarOperationServerIndex]?.url;
|
|
29993
29773
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -29995,14 +29775,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
29995
29775
|
/**
|
|
29996
29776
|
* 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.
|
|
29997
29777
|
* @summary Create a booking space question
|
|
29998
|
-
* @param {string} placeId The place identifier
|
|
29999
29778
|
* @param {string} spaceId The space identifier
|
|
30000
29779
|
* @param {BookingSpaceQuestionCreateInputs} bookingSpaceQuestionCreateInputs
|
|
30001
29780
|
* @param {*} [options] Override http request option.
|
|
30002
29781
|
* @throws {RequiredError}
|
|
30003
29782
|
*/
|
|
30004
|
-
async createBookingSpaceQuestion(
|
|
30005
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceQuestion(
|
|
29783
|
+
async createBookingSpaceQuestion(spaceId: string, bookingSpaceQuestionCreateInputs: BookingSpaceQuestionCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceQuestion(spaceId, bookingSpaceQuestionCreateInputs, options);
|
|
30006
29785
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30007
29786
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.createBookingSpaceQuestion']?.[localVarOperationServerIndex]?.url;
|
|
30008
29787
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30010,14 +29789,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30010
29789
|
/**
|
|
30011
29790
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
30012
29791
|
* @summary Delete a booking space question
|
|
30013
|
-
* @param {string} placeId The place identifier
|
|
30014
29792
|
* @param {string} spaceId The space identifier
|
|
30015
29793
|
* @param {string} questionId The question identifier
|
|
30016
29794
|
* @param {*} [options] Override http request option.
|
|
30017
29795
|
* @throws {RequiredError}
|
|
30018
29796
|
*/
|
|
30019
|
-
async deleteBookingSpaceQuestion(
|
|
30020
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestion(
|
|
29797
|
+
async deleteBookingSpaceQuestion(spaceId: string, questionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
29798
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestion(spaceId, questionId, options);
|
|
30021
29799
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30022
29800
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.deleteBookingSpaceQuestion']?.[localVarOperationServerIndex]?.url;
|
|
30023
29801
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30025,14 +29803,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30025
29803
|
/**
|
|
30026
29804
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
30027
29805
|
* @summary Detach a search list from a booking question
|
|
30028
|
-
* @param {string} placeId The place identifier
|
|
30029
29806
|
* @param {string} spaceId The space identifier
|
|
30030
29807
|
* @param {string} questionId The question identifier
|
|
30031
29808
|
* @param {*} [options] Override http request option.
|
|
30032
29809
|
* @throws {RequiredError}
|
|
30033
29810
|
*/
|
|
30034
|
-
async detachBookingSpaceQuestionSearchList(
|
|
30035
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.detachBookingSpaceQuestionSearchList(
|
|
29811
|
+
async detachBookingSpaceQuestionSearchList(spaceId: string, questionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29812
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachBookingSpaceQuestionSearchList(spaceId, questionId, options);
|
|
30036
29813
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30037
29814
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.detachBookingSpaceQuestionSearchList']?.[localVarOperationServerIndex]?.url;
|
|
30038
29815
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30040,14 +29817,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30040
29817
|
/**
|
|
30041
29818
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
30042
29819
|
* @summary Get a booking space question
|
|
30043
|
-
* @param {string} placeId The place identifier
|
|
30044
29820
|
* @param {string} spaceId The space identifier
|
|
30045
29821
|
* @param {string} questionId The question identifier
|
|
30046
29822
|
* @param {*} [options] Override http request option.
|
|
30047
29823
|
* @throws {RequiredError}
|
|
30048
29824
|
*/
|
|
30049
|
-
async getBookingSpaceQuestion(
|
|
30050
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestion(
|
|
29825
|
+
async getBookingSpaceQuestion(spaceId: string, questionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestion(spaceId, questionId, options);
|
|
30051
29827
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30052
29828
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.getBookingSpaceQuestion']?.[localVarOperationServerIndex]?.url;
|
|
30053
29829
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30055,7 +29831,6 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30055
29831
|
/**
|
|
30056
29832
|
* 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\".
|
|
30057
29833
|
* @summary List a booking space\'s custom questions
|
|
30058
|
-
* @param {string} placeId The place identifier
|
|
30059
29834
|
* @param {string} spaceId The space identifier
|
|
30060
29835
|
* @param {number} [page] Page number
|
|
30061
29836
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -30064,8 +29839,8 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30064
29839
|
* @param {*} [options] Override http request option.
|
|
30065
29840
|
* @throws {RequiredError}
|
|
30066
29841
|
*/
|
|
30067
|
-
async getBookingSpaceQuestions(
|
|
30068
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestions(
|
|
29842
|
+
async getBookingSpaceQuestions(spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestions200Response>> {
|
|
29843
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestions(spaceId, page, pageSize, orderBy, search, options);
|
|
30069
29844
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30070
29845
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.getBookingSpaceQuestions']?.[localVarOperationServerIndex]?.url;
|
|
30071
29846
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30073,14 +29848,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30073
29848
|
/**
|
|
30074
29849
|
* 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.
|
|
30075
29850
|
* @summary Reorder a booking space\'s questions
|
|
30076
|
-
* @param {string} placeId The place identifier
|
|
30077
29851
|
* @param {string} spaceId The space identifier
|
|
30078
29852
|
* @param {ReorderBookingSpaceQuestionsRequest} reorderBookingSpaceQuestionsRequest
|
|
30079
29853
|
* @param {*} [options] Override http request option.
|
|
30080
29854
|
* @throws {RequiredError}
|
|
30081
29855
|
*/
|
|
30082
|
-
async reorderBookingSpaceQuestions(
|
|
30083
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.reorderBookingSpaceQuestions(
|
|
29856
|
+
async reorderBookingSpaceQuestions(spaceId: string, reorderBookingSpaceQuestionsRequest: ReorderBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorderBookingSpaceQuestions200Response>> {
|
|
29857
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reorderBookingSpaceQuestions(spaceId, reorderBookingSpaceQuestionsRequest, options);
|
|
30084
29858
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30085
29859
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.reorderBookingSpaceQuestions']?.[localVarOperationServerIndex]?.url;
|
|
30086
29860
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30088,15 +29862,14 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30088
29862
|
/**
|
|
30089
29863
|
* 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.
|
|
30090
29864
|
* @summary Update a booking space question
|
|
30091
|
-
* @param {string} placeId The place identifier
|
|
30092
29865
|
* @param {string} spaceId The space identifier
|
|
30093
29866
|
* @param {string} questionId The question identifier
|
|
30094
29867
|
* @param {BookingSpaceQuestionUpdateInputs} bookingSpaceQuestionUpdateInputs
|
|
30095
29868
|
* @param {*} [options] Override http request option.
|
|
30096
29869
|
* @throws {RequiredError}
|
|
30097
29870
|
*/
|
|
30098
|
-
async updateBookingSpaceQuestion(
|
|
30099
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestion(
|
|
29871
|
+
async updateBookingSpaceQuestion(spaceId: string, questionId: string, bookingSpaceQuestionUpdateInputs: BookingSpaceQuestionUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29872
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestion(spaceId, questionId, bookingSpaceQuestionUpdateInputs, options);
|
|
30100
29873
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30101
29874
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.updateBookingSpaceQuestion']?.[localVarOperationServerIndex]?.url;
|
|
30102
29875
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30118,7 +29891,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30118
29891
|
* @throws {RequiredError}
|
|
30119
29892
|
*/
|
|
30120
29893
|
attachBookingSpaceQuestionSearchList(requestParameters: BookingsQuestionsApiAttachBookingSpaceQuestionSearchListRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30121
|
-
return localVarFp.attachBookingSpaceQuestionSearchList(requestParameters.
|
|
29894
|
+
return localVarFp.attachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, requestParameters.attachSearchListInputs, options).then((request) => request(axios, basePath));
|
|
30122
29895
|
},
|
|
30123
29896
|
/**
|
|
30124
29897
|
* 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.
|
|
@@ -30128,7 +29901,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30128
29901
|
* @throws {RequiredError}
|
|
30129
29902
|
*/
|
|
30130
29903
|
createBookingSpaceQuestion(requestParameters: BookingsQuestionsApiCreateBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30131
|
-
return localVarFp.createBookingSpaceQuestion(requestParameters.
|
|
29904
|
+
return localVarFp.createBookingSpaceQuestion(requestParameters.spaceId, requestParameters.bookingSpaceQuestionCreateInputs, options).then((request) => request(axios, basePath));
|
|
30132
29905
|
},
|
|
30133
29906
|
/**
|
|
30134
29907
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
@@ -30138,7 +29911,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30138
29911
|
* @throws {RequiredError}
|
|
30139
29912
|
*/
|
|
30140
29913
|
deleteBookingSpaceQuestion(requestParameters: BookingsQuestionsApiDeleteBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
30141
|
-
return localVarFp.deleteBookingSpaceQuestion(requestParameters.
|
|
29914
|
+
return localVarFp.deleteBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
30142
29915
|
},
|
|
30143
29916
|
/**
|
|
30144
29917
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
@@ -30148,7 +29921,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30148
29921
|
* @throws {RequiredError}
|
|
30149
29922
|
*/
|
|
30150
29923
|
detachBookingSpaceQuestionSearchList(requestParameters: BookingsQuestionsApiDetachBookingSpaceQuestionSearchListRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30151
|
-
return localVarFp.detachBookingSpaceQuestionSearchList(requestParameters.
|
|
29924
|
+
return localVarFp.detachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
30152
29925
|
},
|
|
30153
29926
|
/**
|
|
30154
29927
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
@@ -30158,7 +29931,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30158
29931
|
* @throws {RequiredError}
|
|
30159
29932
|
*/
|
|
30160
29933
|
getBookingSpaceQuestion(requestParameters: BookingsQuestionsApiGetBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30161
|
-
return localVarFp.getBookingSpaceQuestion(requestParameters.
|
|
29934
|
+
return localVarFp.getBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
30162
29935
|
},
|
|
30163
29936
|
/**
|
|
30164
29937
|
* 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\".
|
|
@@ -30168,7 +29941,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30168
29941
|
* @throws {RequiredError}
|
|
30169
29942
|
*/
|
|
30170
29943
|
getBookingSpaceQuestions(requestParameters: BookingsQuestionsApiGetBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestions200Response> {
|
|
30171
|
-
return localVarFp.getBookingSpaceQuestions(requestParameters.
|
|
29944
|
+
return localVarFp.getBookingSpaceQuestions(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30172
29945
|
},
|
|
30173
29946
|
/**
|
|
30174
29947
|
* 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.
|
|
@@ -30178,7 +29951,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30178
29951
|
* @throws {RequiredError}
|
|
30179
29952
|
*/
|
|
30180
29953
|
reorderBookingSpaceQuestions(requestParameters: BookingsQuestionsApiReorderBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReorderBookingSpaceQuestions200Response> {
|
|
30181
|
-
return localVarFp.reorderBookingSpaceQuestions(requestParameters.
|
|
29954
|
+
return localVarFp.reorderBookingSpaceQuestions(requestParameters.spaceId, requestParameters.reorderBookingSpaceQuestionsRequest, options).then((request) => request(axios, basePath));
|
|
30182
29955
|
},
|
|
30183
29956
|
/**
|
|
30184
29957
|
* 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.
|
|
@@ -30188,7 +29961,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30188
29961
|
* @throws {RequiredError}
|
|
30189
29962
|
*/
|
|
30190
29963
|
updateBookingSpaceQuestion(requestParameters: BookingsQuestionsApiUpdateBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30191
|
-
return localVarFp.updateBookingSpaceQuestion(requestParameters.
|
|
29964
|
+
return localVarFp.updateBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionUpdateInputs, options).then((request) => request(axios, basePath));
|
|
30192
29965
|
},
|
|
30193
29966
|
};
|
|
30194
29967
|
};
|
|
@@ -30197,11 +29970,6 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30197
29970
|
* Request parameters for attachBookingSpaceQuestionSearchList operation in BookingsQuestionsApi.
|
|
30198
29971
|
*/
|
|
30199
29972
|
export interface BookingsQuestionsApiAttachBookingSpaceQuestionSearchListRequest {
|
|
30200
|
-
/**
|
|
30201
|
-
* The place identifier
|
|
30202
|
-
*/
|
|
30203
|
-
readonly placeId: string
|
|
30204
|
-
|
|
30205
29973
|
/**
|
|
30206
29974
|
* The space identifier
|
|
30207
29975
|
*/
|
|
@@ -30219,11 +29987,6 @@ export interface BookingsQuestionsApiAttachBookingSpaceQuestionSearchListRequest
|
|
|
30219
29987
|
* Request parameters for createBookingSpaceQuestion operation in BookingsQuestionsApi.
|
|
30220
29988
|
*/
|
|
30221
29989
|
export interface BookingsQuestionsApiCreateBookingSpaceQuestionRequest {
|
|
30222
|
-
/**
|
|
30223
|
-
* The place identifier
|
|
30224
|
-
*/
|
|
30225
|
-
readonly placeId: string
|
|
30226
|
-
|
|
30227
29990
|
/**
|
|
30228
29991
|
* The space identifier
|
|
30229
29992
|
*/
|
|
@@ -30236,11 +29999,6 @@ export interface BookingsQuestionsApiCreateBookingSpaceQuestionRequest {
|
|
|
30236
29999
|
* Request parameters for deleteBookingSpaceQuestion operation in BookingsQuestionsApi.
|
|
30237
30000
|
*/
|
|
30238
30001
|
export interface BookingsQuestionsApiDeleteBookingSpaceQuestionRequest {
|
|
30239
|
-
/**
|
|
30240
|
-
* The place identifier
|
|
30241
|
-
*/
|
|
30242
|
-
readonly placeId: string
|
|
30243
|
-
|
|
30244
30002
|
/**
|
|
30245
30003
|
* The space identifier
|
|
30246
30004
|
*/
|
|
@@ -30256,11 +30014,6 @@ export interface BookingsQuestionsApiDeleteBookingSpaceQuestionRequest {
|
|
|
30256
30014
|
* Request parameters for detachBookingSpaceQuestionSearchList operation in BookingsQuestionsApi.
|
|
30257
30015
|
*/
|
|
30258
30016
|
export interface BookingsQuestionsApiDetachBookingSpaceQuestionSearchListRequest {
|
|
30259
|
-
/**
|
|
30260
|
-
* The place identifier
|
|
30261
|
-
*/
|
|
30262
|
-
readonly placeId: string
|
|
30263
|
-
|
|
30264
30017
|
/**
|
|
30265
30018
|
* The space identifier
|
|
30266
30019
|
*/
|
|
@@ -30276,11 +30029,6 @@ export interface BookingsQuestionsApiDetachBookingSpaceQuestionSearchListRequest
|
|
|
30276
30029
|
* Request parameters for getBookingSpaceQuestion operation in BookingsQuestionsApi.
|
|
30277
30030
|
*/
|
|
30278
30031
|
export interface BookingsQuestionsApiGetBookingSpaceQuestionRequest {
|
|
30279
|
-
/**
|
|
30280
|
-
* The place identifier
|
|
30281
|
-
*/
|
|
30282
|
-
readonly placeId: string
|
|
30283
|
-
|
|
30284
30032
|
/**
|
|
30285
30033
|
* The space identifier
|
|
30286
30034
|
*/
|
|
@@ -30296,11 +30044,6 @@ export interface BookingsQuestionsApiGetBookingSpaceQuestionRequest {
|
|
|
30296
30044
|
* Request parameters for getBookingSpaceQuestions operation in BookingsQuestionsApi.
|
|
30297
30045
|
*/
|
|
30298
30046
|
export interface BookingsQuestionsApiGetBookingSpaceQuestionsRequest {
|
|
30299
|
-
/**
|
|
30300
|
-
* The place identifier
|
|
30301
|
-
*/
|
|
30302
|
-
readonly placeId: string
|
|
30303
|
-
|
|
30304
30047
|
/**
|
|
30305
30048
|
* The space identifier
|
|
30306
30049
|
*/
|
|
@@ -30331,11 +30074,6 @@ export interface BookingsQuestionsApiGetBookingSpaceQuestionsRequest {
|
|
|
30331
30074
|
* Request parameters for reorderBookingSpaceQuestions operation in BookingsQuestionsApi.
|
|
30332
30075
|
*/
|
|
30333
30076
|
export interface BookingsQuestionsApiReorderBookingSpaceQuestionsRequest {
|
|
30334
|
-
/**
|
|
30335
|
-
* The place identifier
|
|
30336
|
-
*/
|
|
30337
|
-
readonly placeId: string
|
|
30338
|
-
|
|
30339
30077
|
/**
|
|
30340
30078
|
* The space identifier
|
|
30341
30079
|
*/
|
|
@@ -30348,11 +30086,6 @@ export interface BookingsQuestionsApiReorderBookingSpaceQuestionsRequest {
|
|
|
30348
30086
|
* Request parameters for updateBookingSpaceQuestion operation in BookingsQuestionsApi.
|
|
30349
30087
|
*/
|
|
30350
30088
|
export interface BookingsQuestionsApiUpdateBookingSpaceQuestionRequest {
|
|
30351
|
-
/**
|
|
30352
|
-
* The place identifier
|
|
30353
|
-
*/
|
|
30354
|
-
readonly placeId: string
|
|
30355
|
-
|
|
30356
30089
|
/**
|
|
30357
30090
|
* The space identifier
|
|
30358
30091
|
*/
|
|
@@ -30378,7 +30111,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30378
30111
|
* @throws {RequiredError}
|
|
30379
30112
|
*/
|
|
30380
30113
|
public attachBookingSpaceQuestionSearchList(requestParameters: BookingsQuestionsApiAttachBookingSpaceQuestionSearchListRequest, options?: RawAxiosRequestConfig) {
|
|
30381
|
-
return BookingsQuestionsApiFp(this.configuration).attachBookingSpaceQuestionSearchList(requestParameters.
|
|
30114
|
+
return BookingsQuestionsApiFp(this.configuration).attachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, requestParameters.attachSearchListInputs, options).then((request) => request(this.axios, this.basePath));
|
|
30382
30115
|
}
|
|
30383
30116
|
|
|
30384
30117
|
/**
|
|
@@ -30389,7 +30122,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30389
30122
|
* @throws {RequiredError}
|
|
30390
30123
|
*/
|
|
30391
30124
|
public createBookingSpaceQuestion(requestParameters: BookingsQuestionsApiCreateBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig) {
|
|
30392
|
-
return BookingsQuestionsApiFp(this.configuration).createBookingSpaceQuestion(requestParameters.
|
|
30125
|
+
return BookingsQuestionsApiFp(this.configuration).createBookingSpaceQuestion(requestParameters.spaceId, requestParameters.bookingSpaceQuestionCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
30393
30126
|
}
|
|
30394
30127
|
|
|
30395
30128
|
/**
|
|
@@ -30400,7 +30133,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30400
30133
|
* @throws {RequiredError}
|
|
30401
30134
|
*/
|
|
30402
30135
|
public deleteBookingSpaceQuestion(requestParameters: BookingsQuestionsApiDeleteBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig) {
|
|
30403
|
-
return BookingsQuestionsApiFp(this.configuration).deleteBookingSpaceQuestion(requestParameters.
|
|
30136
|
+
return BookingsQuestionsApiFp(this.configuration).deleteBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
30404
30137
|
}
|
|
30405
30138
|
|
|
30406
30139
|
/**
|
|
@@ -30411,7 +30144,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30411
30144
|
* @throws {RequiredError}
|
|
30412
30145
|
*/
|
|
30413
30146
|
public detachBookingSpaceQuestionSearchList(requestParameters: BookingsQuestionsApiDetachBookingSpaceQuestionSearchListRequest, options?: RawAxiosRequestConfig) {
|
|
30414
|
-
return BookingsQuestionsApiFp(this.configuration).detachBookingSpaceQuestionSearchList(requestParameters.
|
|
30147
|
+
return BookingsQuestionsApiFp(this.configuration).detachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
30415
30148
|
}
|
|
30416
30149
|
|
|
30417
30150
|
/**
|
|
@@ -30422,7 +30155,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30422
30155
|
* @throws {RequiredError}
|
|
30423
30156
|
*/
|
|
30424
30157
|
public getBookingSpaceQuestion(requestParameters: BookingsQuestionsApiGetBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig) {
|
|
30425
|
-
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestion(requestParameters.
|
|
30158
|
+
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
30426
30159
|
}
|
|
30427
30160
|
|
|
30428
30161
|
/**
|
|
@@ -30433,7 +30166,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30433
30166
|
* @throws {RequiredError}
|
|
30434
30167
|
*/
|
|
30435
30168
|
public getBookingSpaceQuestions(requestParameters: BookingsQuestionsApiGetBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig) {
|
|
30436
|
-
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestions(requestParameters.
|
|
30169
|
+
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestions(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
30437
30170
|
}
|
|
30438
30171
|
|
|
30439
30172
|
/**
|
|
@@ -30444,7 +30177,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30444
30177
|
* @throws {RequiredError}
|
|
30445
30178
|
*/
|
|
30446
30179
|
public reorderBookingSpaceQuestions(requestParameters: BookingsQuestionsApiReorderBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig) {
|
|
30447
|
-
return BookingsQuestionsApiFp(this.configuration).reorderBookingSpaceQuestions(requestParameters.
|
|
30180
|
+
return BookingsQuestionsApiFp(this.configuration).reorderBookingSpaceQuestions(requestParameters.spaceId, requestParameters.reorderBookingSpaceQuestionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30448
30181
|
}
|
|
30449
30182
|
|
|
30450
30183
|
/**
|
|
@@ -30455,7 +30188,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30455
30188
|
* @throws {RequiredError}
|
|
30456
30189
|
*/
|
|
30457
30190
|
public updateBookingSpaceQuestion(requestParameters: BookingsQuestionsApiUpdateBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig) {
|
|
30458
|
-
return BookingsQuestionsApiFp(this.configuration).updateBookingSpaceQuestion(requestParameters.
|
|
30191
|
+
return BookingsQuestionsApiFp(this.configuration).updateBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
30459
30192
|
}
|
|
30460
30193
|
}
|
|
30461
30194
|
|
|
@@ -30469,24 +30202,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30469
30202
|
/**
|
|
30470
30203
|
* Creates a new selectable choice for a multiple-choice question on a booking space, requires the update bookings permission.
|
|
30471
30204
|
* @summary Create a booking space question choice
|
|
30472
|
-
* @param {string} placeId The place identifier
|
|
30473
30205
|
* @param {string} spaceId The space identifier
|
|
30474
30206
|
* @param {string} questionId The question identifier
|
|
30475
30207
|
* @param {BookingSpaceQuestionChoiceCreateInputs} bookingSpaceQuestionChoiceCreateInputs
|
|
30476
30208
|
* @param {*} [options] Override http request option.
|
|
30477
30209
|
* @throws {RequiredError}
|
|
30478
30210
|
*/
|
|
30479
|
-
createBookingSpaceQuestionChoice: async (
|
|
30480
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30481
|
-
assertParamExists('createBookingSpaceQuestionChoice', 'placeId', placeId)
|
|
30211
|
+
createBookingSpaceQuestionChoice: async (spaceId: string, questionId: string, bookingSpaceQuestionChoiceCreateInputs: BookingSpaceQuestionChoiceCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30482
30212
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30483
30213
|
assertParamExists('createBookingSpaceQuestionChoice', 'spaceId', spaceId)
|
|
30484
30214
|
// verify required parameter 'questionId' is not null or undefined
|
|
30485
30215
|
assertParamExists('createBookingSpaceQuestionChoice', 'questionId', questionId)
|
|
30486
30216
|
// verify required parameter 'bookingSpaceQuestionChoiceCreateInputs' is not null or undefined
|
|
30487
30217
|
assertParamExists('createBookingSpaceQuestionChoice', 'bookingSpaceQuestionChoiceCreateInputs', bookingSpaceQuestionChoiceCreateInputs)
|
|
30488
|
-
const localVarPath = `/bookings/
|
|
30489
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30218
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices`
|
|
30490
30219
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30491
30220
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
30492
30221
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -30522,24 +30251,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30522
30251
|
/**
|
|
30523
30252
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
30524
30253
|
* @summary Delete a booking space question choice
|
|
30525
|
-
* @param {string} placeId The place identifier
|
|
30526
30254
|
* @param {string} spaceId The space identifier
|
|
30527
30255
|
* @param {string} questionId The question identifier
|
|
30528
30256
|
* @param {string} choiceId The choice identifier
|
|
30529
30257
|
* @param {*} [options] Override http request option.
|
|
30530
30258
|
* @throws {RequiredError}
|
|
30531
30259
|
*/
|
|
30532
|
-
deleteBookingSpaceQuestionChoice: async (
|
|
30533
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30534
|
-
assertParamExists('deleteBookingSpaceQuestionChoice', 'placeId', placeId)
|
|
30260
|
+
deleteBookingSpaceQuestionChoice: async (spaceId: string, questionId: string, choiceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30535
30261
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30536
30262
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'spaceId', spaceId)
|
|
30537
30263
|
// verify required parameter 'questionId' is not null or undefined
|
|
30538
30264
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'questionId', questionId)
|
|
30539
30265
|
// verify required parameter 'choiceId' is not null or undefined
|
|
30540
30266
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'choiceId', choiceId)
|
|
30541
|
-
const localVarPath = `/bookings/
|
|
30542
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30267
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
30543
30268
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30544
30269
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
30545
30270
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -30574,24 +30299,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30574
30299
|
/**
|
|
30575
30300
|
* 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\".
|
|
30576
30301
|
* @summary Get a booking space question choice
|
|
30577
|
-
* @param {string} placeId The place identifier
|
|
30578
30302
|
* @param {string} spaceId The space identifier
|
|
30579
30303
|
* @param {string} questionId The question identifier
|
|
30580
30304
|
* @param {string} choiceId The choice identifier
|
|
30581
30305
|
* @param {*} [options] Override http request option.
|
|
30582
30306
|
* @throws {RequiredError}
|
|
30583
30307
|
*/
|
|
30584
|
-
getBookingSpaceQuestionChoice: async (
|
|
30585
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30586
|
-
assertParamExists('getBookingSpaceQuestionChoice', 'placeId', placeId)
|
|
30308
|
+
getBookingSpaceQuestionChoice: async (spaceId: string, questionId: string, choiceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30587
30309
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30588
30310
|
assertParamExists('getBookingSpaceQuestionChoice', 'spaceId', spaceId)
|
|
30589
30311
|
// verify required parameter 'questionId' is not null or undefined
|
|
30590
30312
|
assertParamExists('getBookingSpaceQuestionChoice', 'questionId', questionId)
|
|
30591
30313
|
// verify required parameter 'choiceId' is not null or undefined
|
|
30592
30314
|
assertParamExists('getBookingSpaceQuestionChoice', 'choiceId', choiceId)
|
|
30593
|
-
const localVarPath = `/bookings/
|
|
30594
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30315
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
30595
30316
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30596
30317
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
30597
30318
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -30626,7 +30347,6 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30626
30347
|
/**
|
|
30627
30348
|
* 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\".
|
|
30628
30349
|
* @summary List a booking space question\'s choices
|
|
30629
|
-
* @param {string} placeId The place identifier
|
|
30630
30350
|
* @param {string} spaceId The space identifier
|
|
30631
30351
|
* @param {string} questionId The question identifier
|
|
30632
30352
|
* @param {number} [page] Page number
|
|
@@ -30636,15 +30356,12 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30636
30356
|
* @param {*} [options] Override http request option.
|
|
30637
30357
|
* @throws {RequiredError}
|
|
30638
30358
|
*/
|
|
30639
|
-
getBookingSpaceQuestionChoices: async (
|
|
30640
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30641
|
-
assertParamExists('getBookingSpaceQuestionChoices', 'placeId', placeId)
|
|
30359
|
+
getBookingSpaceQuestionChoices: async (spaceId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30642
30360
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30643
30361
|
assertParamExists('getBookingSpaceQuestionChoices', 'spaceId', spaceId)
|
|
30644
30362
|
// verify required parameter 'questionId' is not null or undefined
|
|
30645
30363
|
assertParamExists('getBookingSpaceQuestionChoices', 'questionId', questionId)
|
|
30646
|
-
const localVarPath = `/bookings/
|
|
30647
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30364
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices`
|
|
30648
30365
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30649
30366
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
30650
30367
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -30694,24 +30411,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30694
30411
|
/**
|
|
30695
30412
|
* 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.
|
|
30696
30413
|
* @summary Reorder a booking question\'s choices
|
|
30697
|
-
* @param {string} placeId The place identifier
|
|
30698
30414
|
* @param {string} spaceId The space identifier
|
|
30699
30415
|
* @param {string} questionId The question identifier
|
|
30700
30416
|
* @param {ReorderBookingSpaceQuestionChoicesRequest} reorderBookingSpaceQuestionChoicesRequest
|
|
30701
30417
|
* @param {*} [options] Override http request option.
|
|
30702
30418
|
* @throws {RequiredError}
|
|
30703
30419
|
*/
|
|
30704
|
-
reorderBookingSpaceQuestionChoices: async (
|
|
30705
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30706
|
-
assertParamExists('reorderBookingSpaceQuestionChoices', 'placeId', placeId)
|
|
30420
|
+
reorderBookingSpaceQuestionChoices: async (spaceId: string, questionId: string, reorderBookingSpaceQuestionChoicesRequest: ReorderBookingSpaceQuestionChoicesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30707
30421
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30708
30422
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'spaceId', spaceId)
|
|
30709
30423
|
// verify required parameter 'questionId' is not null or undefined
|
|
30710
30424
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'questionId', questionId)
|
|
30711
30425
|
// verify required parameter 'reorderBookingSpaceQuestionChoicesRequest' is not null or undefined
|
|
30712
30426
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'reorderBookingSpaceQuestionChoicesRequest', reorderBookingSpaceQuestionChoicesRequest)
|
|
30713
|
-
const localVarPath = `/bookings/
|
|
30714
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30427
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/reorder`
|
|
30715
30428
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30716
30429
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
30717
30430
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -30747,7 +30460,6 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30747
30460
|
/**
|
|
30748
30461
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
30749
30462
|
* @summary Update a booking space question choice
|
|
30750
|
-
* @param {string} placeId The place identifier
|
|
30751
30463
|
* @param {string} spaceId The space identifier
|
|
30752
30464
|
* @param {string} questionId The question identifier
|
|
30753
30465
|
* @param {string} choiceId The choice identifier
|
|
@@ -30755,9 +30467,7 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30755
30467
|
* @param {*} [options] Override http request option.
|
|
30756
30468
|
* @throws {RequiredError}
|
|
30757
30469
|
*/
|
|
30758
|
-
updateBookingSpaceQuestionChoice: async (
|
|
30759
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30760
|
-
assertParamExists('updateBookingSpaceQuestionChoice', 'placeId', placeId)
|
|
30470
|
+
updateBookingSpaceQuestionChoice: async (spaceId: string, questionId: string, choiceId: string, bookingSpaceQuestionChoiceUpdateInputs: BookingSpaceQuestionChoiceUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30761
30471
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30762
30472
|
assertParamExists('updateBookingSpaceQuestionChoice', 'spaceId', spaceId)
|
|
30763
30473
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -30766,8 +30476,7 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30766
30476
|
assertParamExists('updateBookingSpaceQuestionChoice', 'choiceId', choiceId)
|
|
30767
30477
|
// verify required parameter 'bookingSpaceQuestionChoiceUpdateInputs' is not null or undefined
|
|
30768
30478
|
assertParamExists('updateBookingSpaceQuestionChoice', 'bookingSpaceQuestionChoiceUpdateInputs', bookingSpaceQuestionChoiceUpdateInputs)
|
|
30769
|
-
const localVarPath = `/bookings/
|
|
30770
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30479
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
30771
30480
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30772
30481
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
30773
30482
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -30813,15 +30522,14 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30813
30522
|
/**
|
|
30814
30523
|
* Creates a new selectable choice for a multiple-choice question on a booking space, requires the update bookings permission.
|
|
30815
30524
|
* @summary Create a booking space question choice
|
|
30816
|
-
* @param {string} placeId The place identifier
|
|
30817
30525
|
* @param {string} spaceId The space identifier
|
|
30818
30526
|
* @param {string} questionId The question identifier
|
|
30819
30527
|
* @param {BookingSpaceQuestionChoiceCreateInputs} bookingSpaceQuestionChoiceCreateInputs
|
|
30820
30528
|
* @param {*} [options] Override http request option.
|
|
30821
30529
|
* @throws {RequiredError}
|
|
30822
30530
|
*/
|
|
30823
|
-
async createBookingSpaceQuestionChoice(
|
|
30824
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceQuestionChoice(
|
|
30531
|
+
async createBookingSpaceQuestionChoice(spaceId: string, questionId: string, bookingSpaceQuestionChoiceCreateInputs: BookingSpaceQuestionChoiceCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestionChoice200Response>> {
|
|
30532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceQuestionChoice(spaceId, questionId, bookingSpaceQuestionChoiceCreateInputs, options);
|
|
30825
30533
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30826
30534
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.createBookingSpaceQuestionChoice']?.[localVarOperationServerIndex]?.url;
|
|
30827
30535
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30829,15 +30537,14 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30829
30537
|
/**
|
|
30830
30538
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
30831
30539
|
* @summary Delete a booking space question choice
|
|
30832
|
-
* @param {string} placeId The place identifier
|
|
30833
30540
|
* @param {string} spaceId The space identifier
|
|
30834
30541
|
* @param {string} questionId The question identifier
|
|
30835
30542
|
* @param {string} choiceId The choice identifier
|
|
30836
30543
|
* @param {*} [options] Override http request option.
|
|
30837
30544
|
* @throws {RequiredError}
|
|
30838
30545
|
*/
|
|
30839
|
-
async deleteBookingSpaceQuestionChoice(
|
|
30840
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionChoice(
|
|
30546
|
+
async deleteBookingSpaceQuestionChoice(spaceId: string, questionId: string, choiceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
30547
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options);
|
|
30841
30548
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30842
30549
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.deleteBookingSpaceQuestionChoice']?.[localVarOperationServerIndex]?.url;
|
|
30843
30550
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30845,15 +30552,14 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30845
30552
|
/**
|
|
30846
30553
|
* 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\".
|
|
30847
30554
|
* @summary Get a booking space question choice
|
|
30848
|
-
* @param {string} placeId The place identifier
|
|
30849
30555
|
* @param {string} spaceId The space identifier
|
|
30850
30556
|
* @param {string} questionId The question identifier
|
|
30851
30557
|
* @param {string} choiceId The choice identifier
|
|
30852
30558
|
* @param {*} [options] Override http request option.
|
|
30853
30559
|
* @throws {RequiredError}
|
|
30854
30560
|
*/
|
|
30855
|
-
async getBookingSpaceQuestionChoice(
|
|
30856
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoice(
|
|
30561
|
+
async getBookingSpaceQuestionChoice(spaceId: string, questionId: string, choiceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestionChoice200Response>> {
|
|
30562
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options);
|
|
30857
30563
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30858
30564
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.getBookingSpaceQuestionChoice']?.[localVarOperationServerIndex]?.url;
|
|
30859
30565
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30861,7 +30567,6 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30861
30567
|
/**
|
|
30862
30568
|
* 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\".
|
|
30863
30569
|
* @summary List a booking space question\'s choices
|
|
30864
|
-
* @param {string} placeId The place identifier
|
|
30865
30570
|
* @param {string} spaceId The space identifier
|
|
30866
30571
|
* @param {string} questionId The question identifier
|
|
30867
30572
|
* @param {number} [page] Page number
|
|
@@ -30871,8 +30576,8 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30871
30576
|
* @param {*} [options] Override http request option.
|
|
30872
30577
|
* @throws {RequiredError}
|
|
30873
30578
|
*/
|
|
30874
|
-
async getBookingSpaceQuestionChoices(
|
|
30875
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoices(
|
|
30579
|
+
async getBookingSpaceQuestionChoices(spaceId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionChoices200Response>> {
|
|
30580
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoices(spaceId, questionId, page, pageSize, orderBy, search, options);
|
|
30876
30581
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30877
30582
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.getBookingSpaceQuestionChoices']?.[localVarOperationServerIndex]?.url;
|
|
30878
30583
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30880,15 +30585,14 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30880
30585
|
/**
|
|
30881
30586
|
* 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.
|
|
30882
30587
|
* @summary Reorder a booking question\'s choices
|
|
30883
|
-
* @param {string} placeId The place identifier
|
|
30884
30588
|
* @param {string} spaceId The space identifier
|
|
30885
30589
|
* @param {string} questionId The question identifier
|
|
30886
30590
|
* @param {ReorderBookingSpaceQuestionChoicesRequest} reorderBookingSpaceQuestionChoicesRequest
|
|
30887
30591
|
* @param {*} [options] Override http request option.
|
|
30888
30592
|
* @throws {RequiredError}
|
|
30889
30593
|
*/
|
|
30890
|
-
async reorderBookingSpaceQuestionChoices(
|
|
30891
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.reorderBookingSpaceQuestionChoices(
|
|
30594
|
+
async reorderBookingSpaceQuestionChoices(spaceId: string, questionId: string, reorderBookingSpaceQuestionChoicesRequest: ReorderBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorderBookingSpaceQuestionChoices200Response>> {
|
|
30595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reorderBookingSpaceQuestionChoices(spaceId, questionId, reorderBookingSpaceQuestionChoicesRequest, options);
|
|
30892
30596
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30893
30597
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.reorderBookingSpaceQuestionChoices']?.[localVarOperationServerIndex]?.url;
|
|
30894
30598
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30896,7 +30600,6 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30896
30600
|
/**
|
|
30897
30601
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
30898
30602
|
* @summary Update a booking space question choice
|
|
30899
|
-
* @param {string} placeId The place identifier
|
|
30900
30603
|
* @param {string} spaceId The space identifier
|
|
30901
30604
|
* @param {string} questionId The question identifier
|
|
30902
30605
|
* @param {string} choiceId The choice identifier
|
|
@@ -30904,8 +30607,8 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30904
30607
|
* @param {*} [options] Override http request option.
|
|
30905
30608
|
* @throws {RequiredError}
|
|
30906
30609
|
*/
|
|
30907
|
-
async updateBookingSpaceQuestionChoice(
|
|
30908
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionChoice(
|
|
30610
|
+
async updateBookingSpaceQuestionChoice(spaceId: string, questionId: string, choiceId: string, bookingSpaceQuestionChoiceUpdateInputs: BookingSpaceQuestionChoiceUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestionChoice200Response>> {
|
|
30611
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionChoice(spaceId, questionId, choiceId, bookingSpaceQuestionChoiceUpdateInputs, options);
|
|
30909
30612
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30910
30613
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.updateBookingSpaceQuestionChoice']?.[localVarOperationServerIndex]?.url;
|
|
30911
30614
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30927,7 +30630,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30927
30630
|
* @throws {RequiredError}
|
|
30928
30631
|
*/
|
|
30929
30632
|
createBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiCreateBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestionChoice200Response> {
|
|
30930
|
-
return localVarFp.createBookingSpaceQuestionChoice(requestParameters.
|
|
30633
|
+
return localVarFp.createBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionChoiceCreateInputs, options).then((request) => request(axios, basePath));
|
|
30931
30634
|
},
|
|
30932
30635
|
/**
|
|
30933
30636
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
@@ -30937,7 +30640,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30937
30640
|
* @throws {RequiredError}
|
|
30938
30641
|
*/
|
|
30939
30642
|
deleteBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiDeleteBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
30940
|
-
return localVarFp.deleteBookingSpaceQuestionChoice(requestParameters.
|
|
30643
|
+
return localVarFp.deleteBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
30941
30644
|
},
|
|
30942
30645
|
/**
|
|
30943
30646
|
* 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\".
|
|
@@ -30947,7 +30650,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30947
30650
|
* @throws {RequiredError}
|
|
30948
30651
|
*/
|
|
30949
30652
|
getBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestionChoice200Response> {
|
|
30950
|
-
return localVarFp.getBookingSpaceQuestionChoice(requestParameters.
|
|
30653
|
+
return localVarFp.getBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
30951
30654
|
},
|
|
30952
30655
|
/**
|
|
30953
30656
|
* 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\".
|
|
@@ -30957,7 +30660,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30957
30660
|
* @throws {RequiredError}
|
|
30958
30661
|
*/
|
|
30959
30662
|
getBookingSpaceQuestionChoices(requestParameters: BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionChoices200Response> {
|
|
30960
|
-
return localVarFp.getBookingSpaceQuestionChoices(requestParameters.
|
|
30663
|
+
return localVarFp.getBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30961
30664
|
},
|
|
30962
30665
|
/**
|
|
30963
30666
|
* 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.
|
|
@@ -30967,7 +30670,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30967
30670
|
* @throws {RequiredError}
|
|
30968
30671
|
*/
|
|
30969
30672
|
reorderBookingSpaceQuestionChoices(requestParameters: BookingsQuestionsChoicesApiReorderBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReorderBookingSpaceQuestionChoices200Response> {
|
|
30970
|
-
return localVarFp.reorderBookingSpaceQuestionChoices(requestParameters.
|
|
30673
|
+
return localVarFp.reorderBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.reorderBookingSpaceQuestionChoicesRequest, options).then((request) => request(axios, basePath));
|
|
30971
30674
|
},
|
|
30972
30675
|
/**
|
|
30973
30676
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
@@ -30977,7 +30680,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30977
30680
|
* @throws {RequiredError}
|
|
30978
30681
|
*/
|
|
30979
30682
|
updateBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiUpdateBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestionChoice200Response> {
|
|
30980
|
-
return localVarFp.updateBookingSpaceQuestionChoice(requestParameters.
|
|
30683
|
+
return localVarFp.updateBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.bookingSpaceQuestionChoiceUpdateInputs, options).then((request) => request(axios, basePath));
|
|
30981
30684
|
},
|
|
30982
30685
|
};
|
|
30983
30686
|
};
|
|
@@ -30986,11 +30689,6 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30986
30689
|
* Request parameters for createBookingSpaceQuestionChoice operation in BookingsQuestionsChoicesApi.
|
|
30987
30690
|
*/
|
|
30988
30691
|
export interface BookingsQuestionsChoicesApiCreateBookingSpaceQuestionChoiceRequest {
|
|
30989
|
-
/**
|
|
30990
|
-
* The place identifier
|
|
30991
|
-
*/
|
|
30992
|
-
readonly placeId: string
|
|
30993
|
-
|
|
30994
30692
|
/**
|
|
30995
30693
|
* The space identifier
|
|
30996
30694
|
*/
|
|
@@ -31008,11 +30706,6 @@ export interface BookingsQuestionsChoicesApiCreateBookingSpaceQuestionChoiceRequ
|
|
|
31008
30706
|
* Request parameters for deleteBookingSpaceQuestionChoice operation in BookingsQuestionsChoicesApi.
|
|
31009
30707
|
*/
|
|
31010
30708
|
export interface BookingsQuestionsChoicesApiDeleteBookingSpaceQuestionChoiceRequest {
|
|
31011
|
-
/**
|
|
31012
|
-
* The place identifier
|
|
31013
|
-
*/
|
|
31014
|
-
readonly placeId: string
|
|
31015
|
-
|
|
31016
30709
|
/**
|
|
31017
30710
|
* The space identifier
|
|
31018
30711
|
*/
|
|
@@ -31033,11 +30726,6 @@ export interface BookingsQuestionsChoicesApiDeleteBookingSpaceQuestionChoiceRequ
|
|
|
31033
30726
|
* Request parameters for getBookingSpaceQuestionChoice operation in BookingsQuestionsChoicesApi.
|
|
31034
30727
|
*/
|
|
31035
30728
|
export interface BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoiceRequest {
|
|
31036
|
-
/**
|
|
31037
|
-
* The place identifier
|
|
31038
|
-
*/
|
|
31039
|
-
readonly placeId: string
|
|
31040
|
-
|
|
31041
30729
|
/**
|
|
31042
30730
|
* The space identifier
|
|
31043
30731
|
*/
|
|
@@ -31058,11 +30746,6 @@ export interface BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoiceRequest
|
|
|
31058
30746
|
* Request parameters for getBookingSpaceQuestionChoices operation in BookingsQuestionsChoicesApi.
|
|
31059
30747
|
*/
|
|
31060
30748
|
export interface BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoicesRequest {
|
|
31061
|
-
/**
|
|
31062
|
-
* The place identifier
|
|
31063
|
-
*/
|
|
31064
|
-
readonly placeId: string
|
|
31065
|
-
|
|
31066
30749
|
/**
|
|
31067
30750
|
* The space identifier
|
|
31068
30751
|
*/
|
|
@@ -31098,11 +30781,6 @@ export interface BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoicesReques
|
|
|
31098
30781
|
* Request parameters for reorderBookingSpaceQuestionChoices operation in BookingsQuestionsChoicesApi.
|
|
31099
30782
|
*/
|
|
31100
30783
|
export interface BookingsQuestionsChoicesApiReorderBookingSpaceQuestionChoicesRequest {
|
|
31101
|
-
/**
|
|
31102
|
-
* The place identifier
|
|
31103
|
-
*/
|
|
31104
|
-
readonly placeId: string
|
|
31105
|
-
|
|
31106
30784
|
/**
|
|
31107
30785
|
* The space identifier
|
|
31108
30786
|
*/
|
|
@@ -31120,11 +30798,6 @@ export interface BookingsQuestionsChoicesApiReorderBookingSpaceQuestionChoicesRe
|
|
|
31120
30798
|
* Request parameters for updateBookingSpaceQuestionChoice operation in BookingsQuestionsChoicesApi.
|
|
31121
30799
|
*/
|
|
31122
30800
|
export interface BookingsQuestionsChoicesApiUpdateBookingSpaceQuestionChoiceRequest {
|
|
31123
|
-
/**
|
|
31124
|
-
* The place identifier
|
|
31125
|
-
*/
|
|
31126
|
-
readonly placeId: string
|
|
31127
|
-
|
|
31128
30801
|
/**
|
|
31129
30802
|
* The space identifier
|
|
31130
30803
|
*/
|
|
@@ -31155,7 +30828,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31155
30828
|
* @throws {RequiredError}
|
|
31156
30829
|
*/
|
|
31157
30830
|
public createBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiCreateBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig) {
|
|
31158
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).createBookingSpaceQuestionChoice(requestParameters.
|
|
30831
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).createBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionChoiceCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
31159
30832
|
}
|
|
31160
30833
|
|
|
31161
30834
|
/**
|
|
@@ -31166,7 +30839,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31166
30839
|
* @throws {RequiredError}
|
|
31167
30840
|
*/
|
|
31168
30841
|
public deleteBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiDeleteBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig) {
|
|
31169
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).deleteBookingSpaceQuestionChoice(requestParameters.
|
|
30842
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).deleteBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
31170
30843
|
}
|
|
31171
30844
|
|
|
31172
30845
|
/**
|
|
@@ -31177,7 +30850,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31177
30850
|
* @throws {RequiredError}
|
|
31178
30851
|
*/
|
|
31179
30852
|
public getBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig) {
|
|
31180
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoice(requestParameters.
|
|
30853
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
31181
30854
|
}
|
|
31182
30855
|
|
|
31183
30856
|
/**
|
|
@@ -31188,7 +30861,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31188
30861
|
* @throws {RequiredError}
|
|
31189
30862
|
*/
|
|
31190
30863
|
public getBookingSpaceQuestionChoices(requestParameters: BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig) {
|
|
31191
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoices(requestParameters.
|
|
30864
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
31192
30865
|
}
|
|
31193
30866
|
|
|
31194
30867
|
/**
|
|
@@ -31199,7 +30872,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31199
30872
|
* @throws {RequiredError}
|
|
31200
30873
|
*/
|
|
31201
30874
|
public reorderBookingSpaceQuestionChoices(requestParameters: BookingsQuestionsChoicesApiReorderBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig) {
|
|
31202
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).reorderBookingSpaceQuestionChoices(requestParameters.
|
|
30875
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).reorderBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.reorderBookingSpaceQuestionChoicesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
31203
30876
|
}
|
|
31204
30877
|
|
|
31205
30878
|
/**
|
|
@@ -31210,7 +30883,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31210
30883
|
* @throws {RequiredError}
|
|
31211
30884
|
*/
|
|
31212
30885
|
public updateBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiUpdateBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig) {
|
|
31213
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).updateBookingSpaceQuestionChoice(requestParameters.
|
|
30886
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).updateBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.bookingSpaceQuestionChoiceUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
31214
30887
|
}
|
|
31215
30888
|
}
|
|
31216
30889
|
|
|
@@ -31224,7 +30897,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31224
30897
|
/**
|
|
31225
30898
|
* Removes the translation for a specific locale from a booking space question choice, requires the update bookings permission.
|
|
31226
30899
|
* @summary Delete a booking question choice\'s translation
|
|
31227
|
-
* @param {string} placeId The place identifier
|
|
31228
30900
|
* @param {string} spaceId The space identifier
|
|
31229
30901
|
* @param {string} questionId The question identifier
|
|
31230
30902
|
* @param {string} choiceId The choice identifier
|
|
@@ -31232,9 +30904,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31232
30904
|
* @param {*} [options] Override http request option.
|
|
31233
30905
|
* @throws {RequiredError}
|
|
31234
30906
|
*/
|
|
31235
|
-
deleteBookingSpaceQuestionChoiceTranslation: async (
|
|
31236
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31237
|
-
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'placeId', placeId)
|
|
30907
|
+
deleteBookingSpaceQuestionChoiceTranslation: async (spaceId: string, questionId: string, choiceId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31238
30908
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31239
30909
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId)
|
|
31240
30910
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -31243,8 +30913,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31243
30913
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'choiceId', choiceId)
|
|
31244
30914
|
// verify required parameter 'locale' is not null or undefined
|
|
31245
30915
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'locale', locale)
|
|
31246
|
-
const localVarPath = `/bookings/
|
|
31247
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30916
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
31248
30917
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31249
30918
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31250
30919
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -31280,7 +30949,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31280
30949
|
/**
|
|
31281
30950
|
* 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\".
|
|
31282
30951
|
* @summary Get a booking question choice\'s translation
|
|
31283
|
-
* @param {string} placeId The place identifier
|
|
31284
30952
|
* @param {string} spaceId The space identifier
|
|
31285
30953
|
* @param {string} questionId The question identifier
|
|
31286
30954
|
* @param {string} choiceId The choice identifier
|
|
@@ -31288,9 +30956,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31288
30956
|
* @param {*} [options] Override http request option.
|
|
31289
30957
|
* @throws {RequiredError}
|
|
31290
30958
|
*/
|
|
31291
|
-
getBookingSpaceQuestionChoiceTranslation: async (
|
|
31292
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31293
|
-
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'placeId', placeId)
|
|
30959
|
+
getBookingSpaceQuestionChoiceTranslation: async (spaceId: string, questionId: string, choiceId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31294
30960
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31295
30961
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId)
|
|
31296
30962
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -31299,8 +30965,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31299
30965
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'choiceId', choiceId)
|
|
31300
30966
|
// verify required parameter 'locale' is not null or undefined
|
|
31301
30967
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'locale', locale)
|
|
31302
|
-
const localVarPath = `/bookings/
|
|
31303
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30968
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
31304
30969
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31305
30970
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31306
30971
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -31336,24 +31001,20 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31336
31001
|
/**
|
|
31337
31002
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
31338
31003
|
* @summary List a booking question choice\'s translations
|
|
31339
|
-
* @param {string} placeId The place identifier
|
|
31340
31004
|
* @param {string} spaceId The space identifier
|
|
31341
31005
|
* @param {string} questionId The question identifier
|
|
31342
31006
|
* @param {string} choiceId The choice identifier
|
|
31343
31007
|
* @param {*} [options] Override http request option.
|
|
31344
31008
|
* @throws {RequiredError}
|
|
31345
31009
|
*/
|
|
31346
|
-
getBookingSpaceQuestionChoiceTranslations: async (
|
|
31347
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31348
|
-
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'placeId', placeId)
|
|
31010
|
+
getBookingSpaceQuestionChoiceTranslations: async (spaceId: string, questionId: string, choiceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31349
31011
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31350
31012
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'spaceId', spaceId)
|
|
31351
31013
|
// verify required parameter 'questionId' is not null or undefined
|
|
31352
31014
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'questionId', questionId)
|
|
31353
31015
|
// verify required parameter 'choiceId' is not null or undefined
|
|
31354
31016
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'choiceId', choiceId)
|
|
31355
|
-
const localVarPath = `/bookings/
|
|
31356
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31017
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations`
|
|
31357
31018
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31358
31019
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31359
31020
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -31388,7 +31049,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31388
31049
|
/**
|
|
31389
31050
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
31390
31051
|
* @summary Update a booking question choice\'s translation
|
|
31391
|
-
* @param {string} placeId The place identifier
|
|
31392
31052
|
* @param {string} spaceId The space identifier
|
|
31393
31053
|
* @param {string} questionId The question identifier
|
|
31394
31054
|
* @param {string} choiceId The choice identifier
|
|
@@ -31397,9 +31057,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31397
31057
|
* @param {*} [options] Override http request option.
|
|
31398
31058
|
* @throws {RequiredError}
|
|
31399
31059
|
*/
|
|
31400
|
-
updateBookingSpaceQuestionChoiceTranslation: async (
|
|
31401
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31402
|
-
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'placeId', placeId)
|
|
31060
|
+
updateBookingSpaceQuestionChoiceTranslation: async (spaceId: string, questionId: string, choiceId: string, locale: string, bookingSpaceQuestionChoiceTranslationUpdateInputs: BookingSpaceQuestionChoiceTranslationUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31403
31061
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31404
31062
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId)
|
|
31405
31063
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -31410,8 +31068,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31410
31068
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'locale', locale)
|
|
31411
31069
|
// verify required parameter 'bookingSpaceQuestionChoiceTranslationUpdateInputs' is not null or undefined
|
|
31412
31070
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'bookingSpaceQuestionChoiceTranslationUpdateInputs', bookingSpaceQuestionChoiceTranslationUpdateInputs)
|
|
31413
|
-
const localVarPath = `/bookings/
|
|
31414
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31071
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
31415
31072
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31416
31073
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31417
31074
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -31458,7 +31115,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31458
31115
|
/**
|
|
31459
31116
|
* Removes the translation for a specific locale from a booking space question choice, requires the update bookings permission.
|
|
31460
31117
|
* @summary Delete a booking question choice\'s translation
|
|
31461
|
-
* @param {string} placeId The place identifier
|
|
31462
31118
|
* @param {string} spaceId The space identifier
|
|
31463
31119
|
* @param {string} questionId The question identifier
|
|
31464
31120
|
* @param {string} choiceId The choice identifier
|
|
@@ -31466,8 +31122,8 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31466
31122
|
* @param {*} [options] Override http request option.
|
|
31467
31123
|
* @throws {RequiredError}
|
|
31468
31124
|
*/
|
|
31469
|
-
async deleteBookingSpaceQuestionChoiceTranslation(
|
|
31470
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionChoiceTranslation(
|
|
31125
|
+
async deleteBookingSpaceQuestionChoiceTranslation(spaceId: string, questionId: string, choiceId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
|
|
31126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options);
|
|
31471
31127
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31472
31128
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesTranslationsApi.deleteBookingSpaceQuestionChoiceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31473
31129
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31475,7 +31131,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31475
31131
|
/**
|
|
31476
31132
|
* 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\".
|
|
31477
31133
|
* @summary Get a booking question choice\'s translation
|
|
31478
|
-
* @param {string} placeId The place identifier
|
|
31479
31134
|
* @param {string} spaceId The space identifier
|
|
31480
31135
|
* @param {string} questionId The question identifier
|
|
31481
31136
|
* @param {string} choiceId The choice identifier
|
|
@@ -31483,8 +31138,8 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31483
31138
|
* @param {*} [options] Override http request option.
|
|
31484
31139
|
* @throws {RequiredError}
|
|
31485
31140
|
*/
|
|
31486
|
-
async getBookingSpaceQuestionChoiceTranslation(
|
|
31487
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslation(
|
|
31141
|
+
async getBookingSpaceQuestionChoiceTranslation(spaceId: string, questionId: string, choiceId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionChoiceTranslation200Response>> {
|
|
31142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options);
|
|
31488
31143
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31489
31144
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesTranslationsApi.getBookingSpaceQuestionChoiceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31490
31145
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31492,15 +31147,14 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31492
31147
|
/**
|
|
31493
31148
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
31494
31149
|
* @summary List a booking question choice\'s translations
|
|
31495
|
-
* @param {string} placeId The place identifier
|
|
31496
31150
|
* @param {string} spaceId The space identifier
|
|
31497
31151
|
* @param {string} questionId The question identifier
|
|
31498
31152
|
* @param {string} choiceId The choice identifier
|
|
31499
31153
|
* @param {*} [options] Override http request option.
|
|
31500
31154
|
* @throws {RequiredError}
|
|
31501
31155
|
*/
|
|
31502
|
-
async getBookingSpaceQuestionChoiceTranslations(
|
|
31503
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslations(
|
|
31156
|
+
async getBookingSpaceQuestionChoiceTranslations(spaceId: string, questionId: string, choiceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionChoiceTranslations200Response>> {
|
|
31157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslations(spaceId, questionId, choiceId, options);
|
|
31504
31158
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31505
31159
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesTranslationsApi.getBookingSpaceQuestionChoiceTranslations']?.[localVarOperationServerIndex]?.url;
|
|
31506
31160
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31508,7 +31162,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31508
31162
|
/**
|
|
31509
31163
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
31510
31164
|
* @summary Update a booking question choice\'s translation
|
|
31511
|
-
* @param {string} placeId The place identifier
|
|
31512
31165
|
* @param {string} spaceId The space identifier
|
|
31513
31166
|
* @param {string} questionId The question identifier
|
|
31514
31167
|
* @param {string} choiceId The choice identifier
|
|
@@ -31517,8 +31170,8 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31517
31170
|
* @param {*} [options] Override http request option.
|
|
31518
31171
|
* @throws {RequiredError}
|
|
31519
31172
|
*/
|
|
31520
|
-
async updateBookingSpaceQuestionChoiceTranslation(
|
|
31521
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionChoiceTranslation(
|
|
31173
|
+
async updateBookingSpaceQuestionChoiceTranslation(spaceId: string, questionId: string, choiceId: string, locale: string, bookingSpaceQuestionChoiceTranslationUpdateInputs: BookingSpaceQuestionChoiceTranslationUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBookingSpaceQuestionChoiceTranslation200Response>> {
|
|
31174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, bookingSpaceQuestionChoiceTranslationUpdateInputs, options);
|
|
31522
31175
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31523
31176
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesTranslationsApi.updateBookingSpaceQuestionChoiceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31524
31177
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31540,7 +31193,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31540
31193
|
* @throws {RequiredError}
|
|
31541
31194
|
*/
|
|
31542
31195
|
deleteBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiDeleteBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
31543
|
-
return localVarFp.deleteBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31196
|
+
return localVarFp.deleteBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
31544
31197
|
},
|
|
31545
31198
|
/**
|
|
31546
31199
|
* 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\".
|
|
@@ -31550,7 +31203,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31550
31203
|
* @throws {RequiredError}
|
|
31551
31204
|
*/
|
|
31552
31205
|
getBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionChoiceTranslation200Response> {
|
|
31553
|
-
return localVarFp.getBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31206
|
+
return localVarFp.getBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
31554
31207
|
},
|
|
31555
31208
|
/**
|
|
31556
31209
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
@@ -31560,7 +31213,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31560
31213
|
* @throws {RequiredError}
|
|
31561
31214
|
*/
|
|
31562
31215
|
getBookingSpaceQuestionChoiceTranslations(requestParameters: BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionChoiceTranslations200Response> {
|
|
31563
|
-
return localVarFp.getBookingSpaceQuestionChoiceTranslations(requestParameters.
|
|
31216
|
+
return localVarFp.getBookingSpaceQuestionChoiceTranslations(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
31564
31217
|
},
|
|
31565
31218
|
/**
|
|
31566
31219
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
@@ -31570,7 +31223,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31570
31223
|
* @throws {RequiredError}
|
|
31571
31224
|
*/
|
|
31572
31225
|
updateBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiUpdateBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateBookingSpaceQuestionChoiceTranslation200Response> {
|
|
31573
|
-
return localVarFp.updateBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31226
|
+
return localVarFp.updateBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, requestParameters.bookingSpaceQuestionChoiceTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
31574
31227
|
},
|
|
31575
31228
|
};
|
|
31576
31229
|
};
|
|
@@ -31579,11 +31232,6 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31579
31232
|
* Request parameters for deleteBookingSpaceQuestionChoiceTranslation operation in BookingsQuestionsChoicesTranslationsApi.
|
|
31580
31233
|
*/
|
|
31581
31234
|
export interface BookingsQuestionsChoicesTranslationsApiDeleteBookingSpaceQuestionChoiceTranslationRequest {
|
|
31582
|
-
/**
|
|
31583
|
-
* The place identifier
|
|
31584
|
-
*/
|
|
31585
|
-
readonly placeId: string
|
|
31586
|
-
|
|
31587
31235
|
/**
|
|
31588
31236
|
* The space identifier
|
|
31589
31237
|
*/
|
|
@@ -31609,11 +31257,6 @@ export interface BookingsQuestionsChoicesTranslationsApiDeleteBookingSpaceQuesti
|
|
|
31609
31257
|
* Request parameters for getBookingSpaceQuestionChoiceTranslation operation in BookingsQuestionsChoicesTranslationsApi.
|
|
31610
31258
|
*/
|
|
31611
31259
|
export interface BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationRequest {
|
|
31612
|
-
/**
|
|
31613
|
-
* The place identifier
|
|
31614
|
-
*/
|
|
31615
|
-
readonly placeId: string
|
|
31616
|
-
|
|
31617
31260
|
/**
|
|
31618
31261
|
* The space identifier
|
|
31619
31262
|
*/
|
|
@@ -31639,11 +31282,6 @@ export interface BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionC
|
|
|
31639
31282
|
* Request parameters for getBookingSpaceQuestionChoiceTranslations operation in BookingsQuestionsChoicesTranslationsApi.
|
|
31640
31283
|
*/
|
|
31641
31284
|
export interface BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationsRequest {
|
|
31642
|
-
/**
|
|
31643
|
-
* The place identifier
|
|
31644
|
-
*/
|
|
31645
|
-
readonly placeId: string
|
|
31646
|
-
|
|
31647
31285
|
/**
|
|
31648
31286
|
* The space identifier
|
|
31649
31287
|
*/
|
|
@@ -31664,11 +31302,6 @@ export interface BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionC
|
|
|
31664
31302
|
* Request parameters for updateBookingSpaceQuestionChoiceTranslation operation in BookingsQuestionsChoicesTranslationsApi.
|
|
31665
31303
|
*/
|
|
31666
31304
|
export interface BookingsQuestionsChoicesTranslationsApiUpdateBookingSpaceQuestionChoiceTranslationRequest {
|
|
31667
|
-
/**
|
|
31668
|
-
* The place identifier
|
|
31669
|
-
*/
|
|
31670
|
-
readonly placeId: string
|
|
31671
|
-
|
|
31672
31305
|
/**
|
|
31673
31306
|
* The space identifier
|
|
31674
31307
|
*/
|
|
@@ -31704,7 +31337,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
31704
31337
|
* @throws {RequiredError}
|
|
31705
31338
|
*/
|
|
31706
31339
|
public deleteBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiDeleteBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
31707
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31340
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
31708
31341
|
}
|
|
31709
31342
|
|
|
31710
31343
|
/**
|
|
@@ -31715,7 +31348,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
31715
31348
|
* @throws {RequiredError}
|
|
31716
31349
|
*/
|
|
31717
31350
|
public getBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
31718
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31351
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
31719
31352
|
}
|
|
31720
31353
|
|
|
31721
31354
|
/**
|
|
@@ -31726,7 +31359,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
31726
31359
|
* @throws {RequiredError}
|
|
31727
31360
|
*/
|
|
31728
31361
|
public getBookingSpaceQuestionChoiceTranslations(requestParameters: BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationsRequest, options?: RawAxiosRequestConfig) {
|
|
31729
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslations(requestParameters.
|
|
31362
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslations(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
31730
31363
|
}
|
|
31731
31364
|
|
|
31732
31365
|
/**
|
|
@@ -31737,7 +31370,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
31737
31370
|
* @throws {RequiredError}
|
|
31738
31371
|
*/
|
|
31739
31372
|
public updateBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiUpdateBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
31740
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).updateBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31373
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).updateBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, requestParameters.bookingSpaceQuestionChoiceTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
31741
31374
|
}
|
|
31742
31375
|
}
|
|
31743
31376
|
|
|
@@ -31751,24 +31384,20 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31751
31384
|
/**
|
|
31752
31385
|
* 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.
|
|
31753
31386
|
* @summary Delete a booking question translation
|
|
31754
|
-
* @param {string} placeId The place identifier
|
|
31755
31387
|
* @param {string} spaceId The space identifier
|
|
31756
31388
|
* @param {string} questionId The question identifier
|
|
31757
31389
|
* @param {string} locale The locale identifier
|
|
31758
31390
|
* @param {*} [options] Override http request option.
|
|
31759
31391
|
* @throws {RequiredError}
|
|
31760
31392
|
*/
|
|
31761
|
-
deleteBookingSpaceQuestionTranslation: async (
|
|
31762
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31763
|
-
assertParamExists('deleteBookingSpaceQuestionTranslation', 'placeId', placeId)
|
|
31393
|
+
deleteBookingSpaceQuestionTranslation: async (spaceId: string, questionId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31764
31394
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31765
31395
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'spaceId', spaceId)
|
|
31766
31396
|
// verify required parameter 'questionId' is not null or undefined
|
|
31767
31397
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'questionId', questionId)
|
|
31768
31398
|
// verify required parameter 'locale' is not null or undefined
|
|
31769
31399
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'locale', locale)
|
|
31770
|
-
const localVarPath = `/bookings/
|
|
31771
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31400
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
31772
31401
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31773
31402
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31774
31403
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -31803,24 +31432,20 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31803
31432
|
/**
|
|
31804
31433
|
* 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\".
|
|
31805
31434
|
* @summary Get a booking question\'s translation
|
|
31806
|
-
* @param {string} placeId The place identifier
|
|
31807
31435
|
* @param {string} spaceId The space identifier
|
|
31808
31436
|
* @param {string} questionId The question identifier
|
|
31809
31437
|
* @param {string} locale The locale identifier
|
|
31810
31438
|
* @param {*} [options] Override http request option.
|
|
31811
31439
|
* @throws {RequiredError}
|
|
31812
31440
|
*/
|
|
31813
|
-
getBookingSpaceQuestionTranslation: async (
|
|
31814
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31815
|
-
assertParamExists('getBookingSpaceQuestionTranslation', 'placeId', placeId)
|
|
31441
|
+
getBookingSpaceQuestionTranslation: async (spaceId: string, questionId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31816
31442
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31817
31443
|
assertParamExists('getBookingSpaceQuestionTranslation', 'spaceId', spaceId)
|
|
31818
31444
|
// verify required parameter 'questionId' is not null or undefined
|
|
31819
31445
|
assertParamExists('getBookingSpaceQuestionTranslation', 'questionId', questionId)
|
|
31820
31446
|
// verify required parameter 'locale' is not null or undefined
|
|
31821
31447
|
assertParamExists('getBookingSpaceQuestionTranslation', 'locale', locale)
|
|
31822
|
-
const localVarPath = `/bookings/
|
|
31823
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31448
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
31824
31449
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31825
31450
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31826
31451
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -31855,21 +31480,17 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31855
31480
|
/**
|
|
31856
31481
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
31857
31482
|
* @summary List a booking question\'s translations
|
|
31858
|
-
* @param {string} placeId The place identifier
|
|
31859
31483
|
* @param {string} spaceId The space identifier
|
|
31860
31484
|
* @param {string} questionId The question identifier
|
|
31861
31485
|
* @param {*} [options] Override http request option.
|
|
31862
31486
|
* @throws {RequiredError}
|
|
31863
31487
|
*/
|
|
31864
|
-
getBookingSpaceQuestionTranslations: async (
|
|
31865
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31866
|
-
assertParamExists('getBookingSpaceQuestionTranslations', 'placeId', placeId)
|
|
31488
|
+
getBookingSpaceQuestionTranslations: async (spaceId: string, questionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31867
31489
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31868
31490
|
assertParamExists('getBookingSpaceQuestionTranslations', 'spaceId', spaceId)
|
|
31869
31491
|
// verify required parameter 'questionId' is not null or undefined
|
|
31870
31492
|
assertParamExists('getBookingSpaceQuestionTranslations', 'questionId', questionId)
|
|
31871
|
-
const localVarPath = `/bookings/
|
|
31872
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31493
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations`
|
|
31873
31494
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31874
31495
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
31875
31496
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -31903,7 +31524,6 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31903
31524
|
/**
|
|
31904
31525
|
* 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.
|
|
31905
31526
|
* @summary Update a booking question translation
|
|
31906
|
-
* @param {string} placeId The place identifier
|
|
31907
31527
|
* @param {string} spaceId The space identifier
|
|
31908
31528
|
* @param {string} questionId The question identifier
|
|
31909
31529
|
* @param {string} locale The locale identifier
|
|
@@ -31911,9 +31531,7 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31911
31531
|
* @param {*} [options] Override http request option.
|
|
31912
31532
|
* @throws {RequiredError}
|
|
31913
31533
|
*/
|
|
31914
|
-
updateBookingSpaceQuestionTranslation: async (
|
|
31915
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31916
|
-
assertParamExists('updateBookingSpaceQuestionTranslation', 'placeId', placeId)
|
|
31534
|
+
updateBookingSpaceQuestionTranslation: async (spaceId: string, questionId: string, locale: string, bookingSpaceQuestionTranslationUpdateInputs: BookingSpaceQuestionTranslationUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31917
31535
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31918
31536
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'spaceId', spaceId)
|
|
31919
31537
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -31922,8 +31540,7 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31922
31540
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'locale', locale)
|
|
31923
31541
|
// verify required parameter 'bookingSpaceQuestionTranslationUpdateInputs' is not null or undefined
|
|
31924
31542
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'bookingSpaceQuestionTranslationUpdateInputs', bookingSpaceQuestionTranslationUpdateInputs)
|
|
31925
|
-
const localVarPath = `/bookings/
|
|
31926
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31543
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
31927
31544
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31928
31545
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31929
31546
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -31969,15 +31586,14 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
31969
31586
|
/**
|
|
31970
31587
|
* 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.
|
|
31971
31588
|
* @summary Delete a booking question translation
|
|
31972
|
-
* @param {string} placeId The place identifier
|
|
31973
31589
|
* @param {string} spaceId The space identifier
|
|
31974
31590
|
* @param {string} questionId The question identifier
|
|
31975
31591
|
* @param {string} locale The locale identifier
|
|
31976
31592
|
* @param {*} [options] Override http request option.
|
|
31977
31593
|
* @throws {RequiredError}
|
|
31978
31594
|
*/
|
|
31979
|
-
async deleteBookingSpaceQuestionTranslation(
|
|
31980
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionTranslation(
|
|
31595
|
+
async deleteBookingSpaceQuestionTranslation(spaceId: string, questionId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
|
|
31596
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionTranslation(spaceId, questionId, locale, options);
|
|
31981
31597
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31982
31598
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsTranslationsApi.deleteBookingSpaceQuestionTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31983
31599
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31985,15 +31601,14 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
31985
31601
|
/**
|
|
31986
31602
|
* 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\".
|
|
31987
31603
|
* @summary Get a booking question\'s translation
|
|
31988
|
-
* @param {string} placeId The place identifier
|
|
31989
31604
|
* @param {string} spaceId The space identifier
|
|
31990
31605
|
* @param {string} questionId The question identifier
|
|
31991
31606
|
* @param {string} locale The locale identifier
|
|
31992
31607
|
* @param {*} [options] Override http request option.
|
|
31993
31608
|
* @throws {RequiredError}
|
|
31994
31609
|
*/
|
|
31995
|
-
async getBookingSpaceQuestionTranslation(
|
|
31996
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionTranslation(
|
|
31610
|
+
async getBookingSpaceQuestionTranslation(spaceId: string, questionId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionTranslation200Response>> {
|
|
31611
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionTranslation(spaceId, questionId, locale, options);
|
|
31997
31612
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31998
31613
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsTranslationsApi.getBookingSpaceQuestionTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31999
31614
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32001,14 +31616,13 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
32001
31616
|
/**
|
|
32002
31617
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
32003
31618
|
* @summary List a booking question\'s translations
|
|
32004
|
-
* @param {string} placeId The place identifier
|
|
32005
31619
|
* @param {string} spaceId The space identifier
|
|
32006
31620
|
* @param {string} questionId The question identifier
|
|
32007
31621
|
* @param {*} [options] Override http request option.
|
|
32008
31622
|
* @throws {RequiredError}
|
|
32009
31623
|
*/
|
|
32010
|
-
async getBookingSpaceQuestionTranslations(
|
|
32011
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionTranslations(
|
|
31624
|
+
async getBookingSpaceQuestionTranslations(spaceId: string, questionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionTranslations200Response>> {
|
|
31625
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionTranslations(spaceId, questionId, options);
|
|
32012
31626
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32013
31627
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsTranslationsApi.getBookingSpaceQuestionTranslations']?.[localVarOperationServerIndex]?.url;
|
|
32014
31628
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32016,7 +31630,6 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
32016
31630
|
/**
|
|
32017
31631
|
* 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.
|
|
32018
31632
|
* @summary Update a booking question translation
|
|
32019
|
-
* @param {string} placeId The place identifier
|
|
32020
31633
|
* @param {string} spaceId The space identifier
|
|
32021
31634
|
* @param {string} questionId The question identifier
|
|
32022
31635
|
* @param {string} locale The locale identifier
|
|
@@ -32024,8 +31637,8 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
32024
31637
|
* @param {*} [options] Override http request option.
|
|
32025
31638
|
* @throws {RequiredError}
|
|
32026
31639
|
*/
|
|
32027
|
-
async updateBookingSpaceQuestionTranslation(
|
|
32028
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionTranslation(
|
|
31640
|
+
async updateBookingSpaceQuestionTranslation(spaceId: string, questionId: string, locale: string, bookingSpaceQuestionTranslationUpdateInputs: BookingSpaceQuestionTranslationUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBookingSpaceQuestionTranslation200Response>> {
|
|
31641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionTranslation(spaceId, questionId, locale, bookingSpaceQuestionTranslationUpdateInputs, options);
|
|
32029
31642
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32030
31643
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsTranslationsApi.updateBookingSpaceQuestionTranslation']?.[localVarOperationServerIndex]?.url;
|
|
32031
31644
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32047,7 +31660,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32047
31660
|
* @throws {RequiredError}
|
|
32048
31661
|
*/
|
|
32049
31662
|
deleteBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiDeleteBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
32050
|
-
return localVarFp.deleteBookingSpaceQuestionTranslation(requestParameters.
|
|
31663
|
+
return localVarFp.deleteBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
32051
31664
|
},
|
|
32052
31665
|
/**
|
|
32053
31666
|
* 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\".
|
|
@@ -32057,7 +31670,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32057
31670
|
* @throws {RequiredError}
|
|
32058
31671
|
*/
|
|
32059
31672
|
getBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionTranslation200Response> {
|
|
32060
|
-
return localVarFp.getBookingSpaceQuestionTranslation(requestParameters.
|
|
31673
|
+
return localVarFp.getBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
32061
31674
|
},
|
|
32062
31675
|
/**
|
|
32063
31676
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
@@ -32067,7 +31680,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32067
31680
|
* @throws {RequiredError}
|
|
32068
31681
|
*/
|
|
32069
31682
|
getBookingSpaceQuestionTranslations(requestParameters: BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionTranslations200Response> {
|
|
32070
|
-
return localVarFp.getBookingSpaceQuestionTranslations(requestParameters.
|
|
31683
|
+
return localVarFp.getBookingSpaceQuestionTranslations(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
32071
31684
|
},
|
|
32072
31685
|
/**
|
|
32073
31686
|
* 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.
|
|
@@ -32077,7 +31690,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32077
31690
|
* @throws {RequiredError}
|
|
32078
31691
|
*/
|
|
32079
31692
|
updateBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiUpdateBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateBookingSpaceQuestionTranslation200Response> {
|
|
32080
|
-
return localVarFp.updateBookingSpaceQuestionTranslation(requestParameters.
|
|
31693
|
+
return localVarFp.updateBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
32081
31694
|
},
|
|
32082
31695
|
};
|
|
32083
31696
|
};
|
|
@@ -32086,11 +31699,6 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32086
31699
|
* Request parameters for deleteBookingSpaceQuestionTranslation operation in BookingsQuestionsTranslationsApi.
|
|
32087
31700
|
*/
|
|
32088
31701
|
export interface BookingsQuestionsTranslationsApiDeleteBookingSpaceQuestionTranslationRequest {
|
|
32089
|
-
/**
|
|
32090
|
-
* The place identifier
|
|
32091
|
-
*/
|
|
32092
|
-
readonly placeId: string
|
|
32093
|
-
|
|
32094
31702
|
/**
|
|
32095
31703
|
* The space identifier
|
|
32096
31704
|
*/
|
|
@@ -32111,11 +31719,6 @@ export interface BookingsQuestionsTranslationsApiDeleteBookingSpaceQuestionTrans
|
|
|
32111
31719
|
* Request parameters for getBookingSpaceQuestionTranslation operation in BookingsQuestionsTranslationsApi.
|
|
32112
31720
|
*/
|
|
32113
31721
|
export interface BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationRequest {
|
|
32114
|
-
/**
|
|
32115
|
-
* The place identifier
|
|
32116
|
-
*/
|
|
32117
|
-
readonly placeId: string
|
|
32118
|
-
|
|
32119
31722
|
/**
|
|
32120
31723
|
* The space identifier
|
|
32121
31724
|
*/
|
|
@@ -32136,11 +31739,6 @@ export interface BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslat
|
|
|
32136
31739
|
* Request parameters for getBookingSpaceQuestionTranslations operation in BookingsQuestionsTranslationsApi.
|
|
32137
31740
|
*/
|
|
32138
31741
|
export interface BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationsRequest {
|
|
32139
|
-
/**
|
|
32140
|
-
* The place identifier
|
|
32141
|
-
*/
|
|
32142
|
-
readonly placeId: string
|
|
32143
|
-
|
|
32144
31742
|
/**
|
|
32145
31743
|
* The space identifier
|
|
32146
31744
|
*/
|
|
@@ -32156,11 +31754,6 @@ export interface BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslat
|
|
|
32156
31754
|
* Request parameters for updateBookingSpaceQuestionTranslation operation in BookingsQuestionsTranslationsApi.
|
|
32157
31755
|
*/
|
|
32158
31756
|
export interface BookingsQuestionsTranslationsApiUpdateBookingSpaceQuestionTranslationRequest {
|
|
32159
|
-
/**
|
|
32160
|
-
* The place identifier
|
|
32161
|
-
*/
|
|
32162
|
-
readonly placeId: string
|
|
32163
|
-
|
|
32164
31757
|
/**
|
|
32165
31758
|
* The space identifier
|
|
32166
31759
|
*/
|
|
@@ -32191,7 +31784,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
32191
31784
|
* @throws {RequiredError}
|
|
32192
31785
|
*/
|
|
32193
31786
|
public deleteBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiDeleteBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
32194
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionTranslation(requestParameters.
|
|
31787
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
32195
31788
|
}
|
|
32196
31789
|
|
|
32197
31790
|
/**
|
|
@@ -32202,7 +31795,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
32202
31795
|
* @throws {RequiredError}
|
|
32203
31796
|
*/
|
|
32204
31797
|
public getBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
32205
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslation(requestParameters.
|
|
31798
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
32206
31799
|
}
|
|
32207
31800
|
|
|
32208
31801
|
/**
|
|
@@ -32213,7 +31806,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
32213
31806
|
* @throws {RequiredError}
|
|
32214
31807
|
*/
|
|
32215
31808
|
public getBookingSpaceQuestionTranslations(requestParameters: BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationsRequest, options?: RawAxiosRequestConfig) {
|
|
32216
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslations(requestParameters.
|
|
31809
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslations(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
32217
31810
|
}
|
|
32218
31811
|
|
|
32219
31812
|
/**
|
|
@@ -32224,7 +31817,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
32224
31817
|
* @throws {RequiredError}
|
|
32225
31818
|
*/
|
|
32226
31819
|
public updateBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiUpdateBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
32227
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.
|
|
31820
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
32228
31821
|
}
|
|
32229
31822
|
}
|
|
32230
31823
|
|
|
@@ -32302,24 +31895,20 @@ export const BookingsResponsesApiAxiosParamCreator = function (configuration?: C
|
|
|
32302
31895
|
/**
|
|
32303
31896
|
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
32304
31897
|
* @summary Update a booking\'s question responses
|
|
32305
|
-
* @param {string} placeId The place identifier
|
|
32306
31898
|
* @param {string} spaceId The space identifier
|
|
32307
31899
|
* @param {string} bookingId The booking identifier
|
|
32308
31900
|
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
32309
31901
|
* @param {*} [options] Override http request option.
|
|
32310
31902
|
* @throws {RequiredError}
|
|
32311
31903
|
*/
|
|
32312
|
-
updateBookingResponses: async (
|
|
32313
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32314
|
-
assertParamExists('updateBookingResponses', 'placeId', placeId)
|
|
31904
|
+
updateBookingResponses: async (spaceId: string, bookingId: string, updateBookingResponsesInputs: UpdateBookingResponsesInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32315
31905
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32316
31906
|
assertParamExists('updateBookingResponses', 'spaceId', spaceId)
|
|
32317
31907
|
// verify required parameter 'bookingId' is not null or undefined
|
|
32318
31908
|
assertParamExists('updateBookingResponses', 'bookingId', bookingId)
|
|
32319
31909
|
// verify required parameter 'updateBookingResponsesInputs' is not null or undefined
|
|
32320
31910
|
assertParamExists('updateBookingResponses', 'updateBookingResponsesInputs', updateBookingResponsesInputs)
|
|
32321
|
-
const localVarPath = `/bookings/
|
|
32322
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31911
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/responses`
|
|
32323
31912
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
32324
31913
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
32325
31914
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -32382,15 +31971,14 @@ export const BookingsResponsesApiFp = function(configuration?: Configuration) {
|
|
|
32382
31971
|
/**
|
|
32383
31972
|
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
32384
31973
|
* @summary Update a booking\'s question responses
|
|
32385
|
-
* @param {string} placeId The place identifier
|
|
32386
31974
|
* @param {string} spaceId The space identifier
|
|
32387
31975
|
* @param {string} bookingId The booking identifier
|
|
32388
31976
|
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
32389
31977
|
* @param {*} [options] Override http request option.
|
|
32390
31978
|
* @throws {RequiredError}
|
|
32391
31979
|
*/
|
|
32392
|
-
async updateBookingResponses(
|
|
32393
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingResponses(
|
|
31980
|
+
async updateBookingResponses(spaceId: string, bookingId: string, updateBookingResponsesInputs: UpdateBookingResponsesInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
31981
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingResponses(spaceId, bookingId, updateBookingResponsesInputs, options);
|
|
32394
31982
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32395
31983
|
const localVarOperationServerBasePath = operationServerMap['BookingsResponsesApi.updateBookingResponses']?.[localVarOperationServerIndex]?.url;
|
|
32396
31984
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32422,7 +32010,7 @@ export const BookingsResponsesApiFactory = function (configuration?: Configurati
|
|
|
32422
32010
|
* @throws {RequiredError}
|
|
32423
32011
|
*/
|
|
32424
32012
|
updateBookingResponses(requestParameters: BookingsResponsesApiUpdateBookingResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
32425
|
-
return localVarFp.updateBookingResponses(requestParameters.
|
|
32013
|
+
return localVarFp.updateBookingResponses(requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(axios, basePath));
|
|
32426
32014
|
},
|
|
32427
32015
|
};
|
|
32428
32016
|
};
|
|
@@ -32466,11 +32054,6 @@ export interface BookingsResponsesApiGetBookingResponseChangesRequest {
|
|
|
32466
32054
|
* Request parameters for updateBookingResponses operation in BookingsResponsesApi.
|
|
32467
32055
|
*/
|
|
32468
32056
|
export interface BookingsResponsesApiUpdateBookingResponsesRequest {
|
|
32469
|
-
/**
|
|
32470
|
-
* The place identifier
|
|
32471
|
-
*/
|
|
32472
|
-
readonly placeId: string
|
|
32473
|
-
|
|
32474
32057
|
/**
|
|
32475
32058
|
* The space identifier
|
|
32476
32059
|
*/
|
|
@@ -32507,7 +32090,7 @@ export class BookingsResponsesApi extends BaseAPI {
|
|
|
32507
32090
|
* @throws {RequiredError}
|
|
32508
32091
|
*/
|
|
32509
32092
|
public updateBookingResponses(requestParameters: BookingsResponsesApiUpdateBookingResponsesRequest, options?: RawAxiosRequestConfig) {
|
|
32510
|
-
return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.
|
|
32093
|
+
return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(this.axios, this.basePath));
|
|
32511
32094
|
}
|
|
32512
32095
|
}
|
|
32513
32096
|
|
|
@@ -32519,20 +32102,16 @@ export class BookingsResponsesApi extends BaseAPI {
|
|
|
32519
32102
|
export const BookingsSpacesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32520
32103
|
return {
|
|
32521
32104
|
/**
|
|
32522
|
-
* Creates a new bookable space
|
|
32105
|
+
* 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.
|
|
32523
32106
|
* @summary Create a booking space
|
|
32524
|
-
* @param {string} placeId The place identifier
|
|
32525
32107
|
* @param {BookingSpaceCreateInputs} bookingSpaceCreateInputs
|
|
32526
32108
|
* @param {*} [options] Override http request option.
|
|
32527
32109
|
* @throws {RequiredError}
|
|
32528
32110
|
*/
|
|
32529
|
-
createBookingSpace: async (
|
|
32530
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32531
|
-
assertParamExists('createBookingSpace', 'placeId', placeId)
|
|
32111
|
+
createBookingSpace: async (bookingSpaceCreateInputs: BookingSpaceCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32532
32112
|
// verify required parameter 'bookingSpaceCreateInputs' is not null or undefined
|
|
32533
32113
|
assertParamExists('createBookingSpace', 'bookingSpaceCreateInputs', bookingSpaceCreateInputs)
|
|
32534
|
-
const localVarPath = `/bookings/
|
|
32535
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)));
|
|
32114
|
+
const localVarPath = `/bookings/spaces`;
|
|
32536
32115
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32537
32116
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32538
32117
|
let baseOptions;
|
|
@@ -32564,20 +32143,16 @@ export const BookingsSpacesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32564
32143
|
};
|
|
32565
32144
|
},
|
|
32566
32145
|
/**
|
|
32567
|
-
* Deletes a booking space
|
|
32146
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
32568
32147
|
* @summary Delete a booking space
|
|
32569
|
-
* @param {string} placeId The place identifier
|
|
32570
32148
|
* @param {string} spaceId The space identifier
|
|
32571
32149
|
* @param {*} [options] Override http request option.
|
|
32572
32150
|
* @throws {RequiredError}
|
|
32573
32151
|
*/
|
|
32574
|
-
deleteBookingSpace: async (
|
|
32575
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32576
|
-
assertParamExists('deleteBookingSpace', 'placeId', placeId)
|
|
32152
|
+
deleteBookingSpace: async (spaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32577
32153
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32578
32154
|
assertParamExists('deleteBookingSpace', 'spaceId', spaceId)
|
|
32579
|
-
const localVarPath = `/bookings/
|
|
32580
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
32155
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
32581
32156
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
32582
32157
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32583
32158
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -32608,23 +32183,19 @@ export const BookingsSpacesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32608
32183
|
};
|
|
32609
32184
|
},
|
|
32610
32185
|
/**
|
|
32611
|
-
* Updates the attributes of an existing booking space
|
|
32186
|
+
* 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.
|
|
32612
32187
|
* @summary Update a booking space
|
|
32613
|
-
* @param {string} placeId The place identifier
|
|
32614
32188
|
* @param {string} spaceId The space identifier
|
|
32615
32189
|
* @param {BookingSpaceUpdateInputs} bookingSpaceUpdateInputs
|
|
32616
32190
|
* @param {*} [options] Override http request option.
|
|
32617
32191
|
* @throws {RequiredError}
|
|
32618
32192
|
*/
|
|
32619
|
-
updateBookingSpace: async (
|
|
32620
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32621
|
-
assertParamExists('updateBookingSpace', 'placeId', placeId)
|
|
32193
|
+
updateBookingSpace: async (spaceId: string, bookingSpaceUpdateInputs: BookingSpaceUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32622
32194
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32623
32195
|
assertParamExists('updateBookingSpace', 'spaceId', spaceId)
|
|
32624
32196
|
// verify required parameter 'bookingSpaceUpdateInputs' is not null or undefined
|
|
32625
32197
|
assertParamExists('updateBookingSpace', 'bookingSpaceUpdateInputs', bookingSpaceUpdateInputs)
|
|
32626
|
-
const localVarPath = `/bookings/
|
|
32627
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
32198
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
32628
32199
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
32629
32200
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32630
32201
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -32666,44 +32237,41 @@ export const BookingsSpacesApiFp = function(configuration?: Configuration) {
|
|
|
32666
32237
|
const localVarAxiosParamCreator = BookingsSpacesApiAxiosParamCreator(configuration)
|
|
32667
32238
|
return {
|
|
32668
32239
|
/**
|
|
32669
|
-
* Creates a new bookable space
|
|
32240
|
+
* 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.
|
|
32670
32241
|
* @summary Create a booking space
|
|
32671
|
-
* @param {string} placeId The place identifier
|
|
32672
32242
|
* @param {BookingSpaceCreateInputs} bookingSpaceCreateInputs
|
|
32673
32243
|
* @param {*} [options] Override http request option.
|
|
32674
32244
|
* @throws {RequiredError}
|
|
32675
32245
|
*/
|
|
32676
|
-
async createBookingSpace(
|
|
32677
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpace(
|
|
32246
|
+
async createBookingSpace(bookingSpaceCreateInputs: BookingSpaceCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
32247
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpace(bookingSpaceCreateInputs, options);
|
|
32678
32248
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32679
32249
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesApi.createBookingSpace']?.[localVarOperationServerIndex]?.url;
|
|
32680
32250
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32681
32251
|
},
|
|
32682
32252
|
/**
|
|
32683
|
-
* Deletes a booking space
|
|
32253
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
32684
32254
|
* @summary Delete a booking space
|
|
32685
|
-
* @param {string} placeId The place identifier
|
|
32686
32255
|
* @param {string} spaceId The space identifier
|
|
32687
32256
|
* @param {*} [options] Override http request option.
|
|
32688
32257
|
* @throws {RequiredError}
|
|
32689
32258
|
*/
|
|
32690
|
-
async deleteBookingSpace(
|
|
32691
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpace(
|
|
32259
|
+
async deleteBookingSpace(spaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
32260
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpace(spaceId, options);
|
|
32692
32261
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32693
32262
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesApi.deleteBookingSpace']?.[localVarOperationServerIndex]?.url;
|
|
32694
32263
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32695
32264
|
},
|
|
32696
32265
|
/**
|
|
32697
|
-
* Updates the attributes of an existing booking space
|
|
32266
|
+
* 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.
|
|
32698
32267
|
* @summary Update a booking space
|
|
32699
|
-
* @param {string} placeId The place identifier
|
|
32700
32268
|
* @param {string} spaceId The space identifier
|
|
32701
32269
|
* @param {BookingSpaceUpdateInputs} bookingSpaceUpdateInputs
|
|
32702
32270
|
* @param {*} [options] Override http request option.
|
|
32703
32271
|
* @throws {RequiredError}
|
|
32704
32272
|
*/
|
|
32705
|
-
async updateBookingSpace(
|
|
32706
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpace(
|
|
32273
|
+
async updateBookingSpace(spaceId: string, bookingSpaceUpdateInputs: BookingSpaceUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
32274
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpace(spaceId, bookingSpaceUpdateInputs, options);
|
|
32707
32275
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32708
32276
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesApi.updateBookingSpace']?.[localVarOperationServerIndex]?.url;
|
|
32709
32277
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32718,34 +32286,34 @@ export const BookingsSpacesApiFactory = function (configuration?: Configuration,
|
|
|
32718
32286
|
const localVarFp = BookingsSpacesApiFp(configuration)
|
|
32719
32287
|
return {
|
|
32720
32288
|
/**
|
|
32721
|
-
* Creates a new bookable space
|
|
32289
|
+
* 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.
|
|
32722
32290
|
* @summary Create a booking space
|
|
32723
32291
|
* @param {BookingsSpacesApiCreateBookingSpaceRequest} requestParameters Request parameters.
|
|
32724
32292
|
* @param {*} [options] Override http request option.
|
|
32725
32293
|
* @throws {RequiredError}
|
|
32726
32294
|
*/
|
|
32727
32295
|
createBookingSpace(requestParameters: BookingsSpacesApiCreateBookingSpaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
32728
|
-
return localVarFp.createBookingSpace(requestParameters.
|
|
32296
|
+
return localVarFp.createBookingSpace(requestParameters.bookingSpaceCreateInputs, options).then((request) => request(axios, basePath));
|
|
32729
32297
|
},
|
|
32730
32298
|
/**
|
|
32731
|
-
* Deletes a booking space
|
|
32299
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
32732
32300
|
* @summary Delete a booking space
|
|
32733
32301
|
* @param {BookingsSpacesApiDeleteBookingSpaceRequest} requestParameters Request parameters.
|
|
32734
32302
|
* @param {*} [options] Override http request option.
|
|
32735
32303
|
* @throws {RequiredError}
|
|
32736
32304
|
*/
|
|
32737
32305
|
deleteBookingSpace(requestParameters: BookingsSpacesApiDeleteBookingSpaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
32738
|
-
return localVarFp.deleteBookingSpace(requestParameters.
|
|
32306
|
+
return localVarFp.deleteBookingSpace(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
32739
32307
|
},
|
|
32740
32308
|
/**
|
|
32741
|
-
* Updates the attributes of an existing booking space
|
|
32309
|
+
* 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.
|
|
32742
32310
|
* @summary Update a booking space
|
|
32743
32311
|
* @param {BookingsSpacesApiUpdateBookingSpaceRequest} requestParameters Request parameters.
|
|
32744
32312
|
* @param {*} [options] Override http request option.
|
|
32745
32313
|
* @throws {RequiredError}
|
|
32746
32314
|
*/
|
|
32747
32315
|
updateBookingSpace(requestParameters: BookingsSpacesApiUpdateBookingSpaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
32748
|
-
return localVarFp.updateBookingSpace(requestParameters.
|
|
32316
|
+
return localVarFp.updateBookingSpace(requestParameters.spaceId, requestParameters.bookingSpaceUpdateInputs, options).then((request) => request(axios, basePath));
|
|
32749
32317
|
},
|
|
32750
32318
|
};
|
|
32751
32319
|
};
|
|
@@ -32754,11 +32322,6 @@ export const BookingsSpacesApiFactory = function (configuration?: Configuration,
|
|
|
32754
32322
|
* Request parameters for createBookingSpace operation in BookingsSpacesApi.
|
|
32755
32323
|
*/
|
|
32756
32324
|
export interface BookingsSpacesApiCreateBookingSpaceRequest {
|
|
32757
|
-
/**
|
|
32758
|
-
* The place identifier
|
|
32759
|
-
*/
|
|
32760
|
-
readonly placeId: string
|
|
32761
|
-
|
|
32762
32325
|
readonly bookingSpaceCreateInputs: BookingSpaceCreateInputs
|
|
32763
32326
|
}
|
|
32764
32327
|
|
|
@@ -32766,11 +32329,6 @@ export interface BookingsSpacesApiCreateBookingSpaceRequest {
|
|
|
32766
32329
|
* Request parameters for deleteBookingSpace operation in BookingsSpacesApi.
|
|
32767
32330
|
*/
|
|
32768
32331
|
export interface BookingsSpacesApiDeleteBookingSpaceRequest {
|
|
32769
|
-
/**
|
|
32770
|
-
* The place identifier
|
|
32771
|
-
*/
|
|
32772
|
-
readonly placeId: string
|
|
32773
|
-
|
|
32774
32332
|
/**
|
|
32775
32333
|
* The space identifier
|
|
32776
32334
|
*/
|
|
@@ -32781,11 +32339,6 @@ export interface BookingsSpacesApiDeleteBookingSpaceRequest {
|
|
|
32781
32339
|
* Request parameters for updateBookingSpace operation in BookingsSpacesApi.
|
|
32782
32340
|
*/
|
|
32783
32341
|
export interface BookingsSpacesApiUpdateBookingSpaceRequest {
|
|
32784
|
-
/**
|
|
32785
|
-
* The place identifier
|
|
32786
|
-
*/
|
|
32787
|
-
readonly placeId: string
|
|
32788
|
-
|
|
32789
32342
|
/**
|
|
32790
32343
|
* The space identifier
|
|
32791
32344
|
*/
|
|
@@ -32799,36 +32352,36 @@ export interface BookingsSpacesApiUpdateBookingSpaceRequest {
|
|
|
32799
32352
|
*/
|
|
32800
32353
|
export class BookingsSpacesApi extends BaseAPI {
|
|
32801
32354
|
/**
|
|
32802
|
-
* Creates a new bookable space
|
|
32355
|
+
* 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.
|
|
32803
32356
|
* @summary Create a booking space
|
|
32804
32357
|
* @param {BookingsSpacesApiCreateBookingSpaceRequest} requestParameters Request parameters.
|
|
32805
32358
|
* @param {*} [options] Override http request option.
|
|
32806
32359
|
* @throws {RequiredError}
|
|
32807
32360
|
*/
|
|
32808
32361
|
public createBookingSpace(requestParameters: BookingsSpacesApiCreateBookingSpaceRequest, options?: RawAxiosRequestConfig) {
|
|
32809
|
-
return BookingsSpacesApiFp(this.configuration).createBookingSpace(requestParameters.
|
|
32362
|
+
return BookingsSpacesApiFp(this.configuration).createBookingSpace(requestParameters.bookingSpaceCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
32810
32363
|
}
|
|
32811
32364
|
|
|
32812
32365
|
/**
|
|
32813
|
-
* Deletes a booking space
|
|
32366
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
32814
32367
|
* @summary Delete a booking space
|
|
32815
32368
|
* @param {BookingsSpacesApiDeleteBookingSpaceRequest} requestParameters Request parameters.
|
|
32816
32369
|
* @param {*} [options] Override http request option.
|
|
32817
32370
|
* @throws {RequiredError}
|
|
32818
32371
|
*/
|
|
32819
32372
|
public deleteBookingSpace(requestParameters: BookingsSpacesApiDeleteBookingSpaceRequest, options?: RawAxiosRequestConfig) {
|
|
32820
|
-
return BookingsSpacesApiFp(this.configuration).deleteBookingSpace(requestParameters.
|
|
32373
|
+
return BookingsSpacesApiFp(this.configuration).deleteBookingSpace(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
32821
32374
|
}
|
|
32822
32375
|
|
|
32823
32376
|
/**
|
|
32824
|
-
* Updates the attributes of an existing booking space
|
|
32377
|
+
* 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.
|
|
32825
32378
|
* @summary Update a booking space
|
|
32826
32379
|
* @param {BookingsSpacesApiUpdateBookingSpaceRequest} requestParameters Request parameters.
|
|
32827
32380
|
* @param {*} [options] Override http request option.
|
|
32828
32381
|
* @throws {RequiredError}
|
|
32829
32382
|
*/
|
|
32830
32383
|
public updateBookingSpace(requestParameters: BookingsSpacesApiUpdateBookingSpaceRequest, options?: RawAxiosRequestConfig) {
|
|
32831
|
-
return BookingsSpacesApiFp(this.configuration).updateBookingSpace(requestParameters.
|
|
32384
|
+
return BookingsSpacesApiFp(this.configuration).updateBookingSpace(requestParameters.spaceId, requestParameters.bookingSpaceUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
32832
32385
|
}
|
|
32833
32386
|
}
|
|
32834
32387
|
|
|
@@ -32842,21 +32395,17 @@ export const BookingsSpacesTranslationsApiAxiosParamCreator = function (configur
|
|
|
32842
32395
|
/**
|
|
32843
32396
|
* 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.
|
|
32844
32397
|
* @summary Delete a booking space translation
|
|
32845
|
-
* @param {string} placeId The place identifier
|
|
32846
32398
|
* @param {string} spaceId The space identifier
|
|
32847
32399
|
* @param {string} locale The locale identifier
|
|
32848
32400
|
* @param {*} [options] Override http request option.
|
|
32849
32401
|
* @throws {RequiredError}
|
|
32850
32402
|
*/
|
|
32851
|
-
deleteBookingSpaceTranslation: async (
|
|
32852
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32853
|
-
assertParamExists('deleteBookingSpaceTranslation', 'placeId', placeId)
|
|
32403
|
+
deleteBookingSpaceTranslation: async (spaceId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32854
32404
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32855
32405
|
assertParamExists('deleteBookingSpaceTranslation', 'spaceId', spaceId)
|
|
32856
32406
|
// verify required parameter 'locale' is not null or undefined
|
|
32857
32407
|
assertParamExists('deleteBookingSpaceTranslation', 'locale', locale)
|
|
32858
|
-
const localVarPath = `/bookings/
|
|
32859
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
32408
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
32860
32409
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
32861
32410
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
32862
32411
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -32890,24 +32439,20 @@ export const BookingsSpacesTranslationsApiAxiosParamCreator = function (configur
|
|
|
32890
32439
|
/**
|
|
32891
32440
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
32892
32441
|
* @summary Update a booking space translation
|
|
32893
|
-
* @param {string} placeId The place identifier
|
|
32894
32442
|
* @param {string} spaceId The space identifier
|
|
32895
32443
|
* @param {string} locale The locale identifier
|
|
32896
32444
|
* @param {BookingSpaceTranslationUpdateInputs} bookingSpaceTranslationUpdateInputs
|
|
32897
32445
|
* @param {*} [options] Override http request option.
|
|
32898
32446
|
* @throws {RequiredError}
|
|
32899
32447
|
*/
|
|
32900
|
-
updateBookingSpaceTranslation: async (
|
|
32901
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32902
|
-
assertParamExists('updateBookingSpaceTranslation', 'placeId', placeId)
|
|
32448
|
+
updateBookingSpaceTranslation: async (spaceId: string, locale: string, bookingSpaceTranslationUpdateInputs: BookingSpaceTranslationUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32903
32449
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32904
32450
|
assertParamExists('updateBookingSpaceTranslation', 'spaceId', spaceId)
|
|
32905
32451
|
// verify required parameter 'locale' is not null or undefined
|
|
32906
32452
|
assertParamExists('updateBookingSpaceTranslation', 'locale', locale)
|
|
32907
32453
|
// verify required parameter 'bookingSpaceTranslationUpdateInputs' is not null or undefined
|
|
32908
32454
|
assertParamExists('updateBookingSpaceTranslation', 'bookingSpaceTranslationUpdateInputs', bookingSpaceTranslationUpdateInputs)
|
|
32909
|
-
const localVarPath = `/bookings/
|
|
32910
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
32455
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
32911
32456
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
32912
32457
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
32913
32458
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -32952,14 +32497,13 @@ export const BookingsSpacesTranslationsApiFp = function(configuration?: Configur
|
|
|
32952
32497
|
/**
|
|
32953
32498
|
* 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.
|
|
32954
32499
|
* @summary Delete a booking space translation
|
|
32955
|
-
* @param {string} placeId The place identifier
|
|
32956
32500
|
* @param {string} spaceId The space identifier
|
|
32957
32501
|
* @param {string} locale The locale identifier
|
|
32958
32502
|
* @param {*} [options] Override http request option.
|
|
32959
32503
|
* @throws {RequiredError}
|
|
32960
32504
|
*/
|
|
32961
|
-
async deleteBookingSpaceTranslation(
|
|
32962
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceTranslation(
|
|
32505
|
+
async deleteBookingSpaceTranslation(spaceId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
|
|
32506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceTranslation(spaceId, locale, options);
|
|
32963
32507
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32964
32508
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesTranslationsApi.deleteBookingSpaceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
32965
32509
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32967,15 +32511,14 @@ export const BookingsSpacesTranslationsApiFp = function(configuration?: Configur
|
|
|
32967
32511
|
/**
|
|
32968
32512
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
32969
32513
|
* @summary Update a booking space translation
|
|
32970
|
-
* @param {string} placeId The place identifier
|
|
32971
32514
|
* @param {string} spaceId The space identifier
|
|
32972
32515
|
* @param {string} locale The locale identifier
|
|
32973
32516
|
* @param {BookingSpaceTranslationUpdateInputs} bookingSpaceTranslationUpdateInputs
|
|
32974
32517
|
* @param {*} [options] Override http request option.
|
|
32975
32518
|
* @throws {RequiredError}
|
|
32976
32519
|
*/
|
|
32977
|
-
async updateBookingSpaceTranslation(
|
|
32978
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceTranslation(
|
|
32520
|
+
async updateBookingSpaceTranslation(spaceId: string, locale: string, bookingSpaceTranslationUpdateInputs: BookingSpaceTranslationUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
|
|
32521
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceTranslation(spaceId, locale, bookingSpaceTranslationUpdateInputs, options);
|
|
32979
32522
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32980
32523
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesTranslationsApi.updateBookingSpaceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
32981
32524
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32997,7 +32540,7 @@ export const BookingsSpacesTranslationsApiFactory = function (configuration?: Co
|
|
|
32997
32540
|
* @throws {RequiredError}
|
|
32998
32541
|
*/
|
|
32999
32542
|
deleteBookingSpaceTranslation(requestParameters: BookingsSpacesTranslationsApiDeleteBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
33000
|
-
return localVarFp.deleteBookingSpaceTranslation(requestParameters.
|
|
32543
|
+
return localVarFp.deleteBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
33001
32544
|
},
|
|
33002
32545
|
/**
|
|
33003
32546
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
@@ -33007,7 +32550,7 @@ export const BookingsSpacesTranslationsApiFactory = function (configuration?: Co
|
|
|
33007
32550
|
* @throws {RequiredError}
|
|
33008
32551
|
*/
|
|
33009
32552
|
updateBookingSpaceTranslation(requestParameters: BookingsSpacesTranslationsApiUpdateBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
33010
|
-
return localVarFp.updateBookingSpaceTranslation(requestParameters.
|
|
32553
|
+
return localVarFp.updateBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, requestParameters.bookingSpaceTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
33011
32554
|
},
|
|
33012
32555
|
};
|
|
33013
32556
|
};
|
|
@@ -33016,11 +32559,6 @@ export const BookingsSpacesTranslationsApiFactory = function (configuration?: Co
|
|
|
33016
32559
|
* Request parameters for deleteBookingSpaceTranslation operation in BookingsSpacesTranslationsApi.
|
|
33017
32560
|
*/
|
|
33018
32561
|
export interface BookingsSpacesTranslationsApiDeleteBookingSpaceTranslationRequest {
|
|
33019
|
-
/**
|
|
33020
|
-
* The place identifier
|
|
33021
|
-
*/
|
|
33022
|
-
readonly placeId: string
|
|
33023
|
-
|
|
33024
32562
|
/**
|
|
33025
32563
|
* The space identifier
|
|
33026
32564
|
*/
|
|
@@ -33036,11 +32574,6 @@ export interface BookingsSpacesTranslationsApiDeleteBookingSpaceTranslationReque
|
|
|
33036
32574
|
* Request parameters for updateBookingSpaceTranslation operation in BookingsSpacesTranslationsApi.
|
|
33037
32575
|
*/
|
|
33038
32576
|
export interface BookingsSpacesTranslationsApiUpdateBookingSpaceTranslationRequest {
|
|
33039
|
-
/**
|
|
33040
|
-
* The place identifier
|
|
33041
|
-
*/
|
|
33042
|
-
readonly placeId: string
|
|
33043
|
-
|
|
33044
32577
|
/**
|
|
33045
32578
|
* The space identifier
|
|
33046
32579
|
*/
|
|
@@ -33066,7 +32599,7 @@ export class BookingsSpacesTranslationsApi extends BaseAPI {
|
|
|
33066
32599
|
* @throws {RequiredError}
|
|
33067
32600
|
*/
|
|
33068
32601
|
public deleteBookingSpaceTranslation(requestParameters: BookingsSpacesTranslationsApiDeleteBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
33069
|
-
return BookingsSpacesTranslationsApiFp(this.configuration).deleteBookingSpaceTranslation(requestParameters.
|
|
32602
|
+
return BookingsSpacesTranslationsApiFp(this.configuration).deleteBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
33070
32603
|
}
|
|
33071
32604
|
|
|
33072
32605
|
/**
|
|
@@ -33077,7 +32610,7 @@ export class BookingsSpacesTranslationsApi extends BaseAPI {
|
|
|
33077
32610
|
* @throws {RequiredError}
|
|
33078
32611
|
*/
|
|
33079
32612
|
public updateBookingSpaceTranslation(requestParameters: BookingsSpacesTranslationsApiUpdateBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
33080
|
-
return BookingsSpacesTranslationsApiFp(this.configuration).updateBookingSpaceTranslation(requestParameters.
|
|
32613
|
+
return BookingsSpacesTranslationsApiFp(this.configuration).updateBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, requestParameters.bookingSpaceTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
33081
32614
|
}
|
|
33082
32615
|
}
|
|
33083
32616
|
|