@connectedxm/admin-sdk 8.3.3 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +491 -920
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +257 -490
- package/dist/api.js +399 -649
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +257 -490
- package/dist/esm/api.js +399 -649
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/BaseBooking.md +0 -2
- package/docs/BaseBookingSpace.md +22 -0
- package/docs/Booking.md +0 -4
- package/docs/BookingSpace.md +22 -0
- package/docs/BookingSpaceCreateInputs.md +12 -0
- package/docs/BookingSpaceUpdateInputs.md +12 -0
- package/docs/BookingsApi.md +41 -89
- package/docs/BookingsAvailabilitiesApi.md +3 -12
- package/docs/BookingsBlackoutsApi.md +3 -12
- package/docs/BookingsQuestionsApi.md +8 -32
- package/docs/BookingsQuestionsChoicesApi.md +6 -24
- package/docs/BookingsQuestionsChoicesTranslationsApi.md +4 -16
- package/docs/BookingsQuestionsTranslationsApi.md +4 -16
- package/docs/BookingsResponsesApi.md +1 -4
- package/docs/BookingsSpacesApi.md +6 -15
- package/docs/BookingsSpacesTranslationsApi.md +2 -8
- package/docs/OrganizationModuleSettings.md +24 -0
- package/docs/OrganizationModuleSettingsTranslation.md +12 -0
- package/docs/OrganizationModuleSettingsTranslationUpdateInputs.md +12 -0
- package/docs/OrganizationModuleSettingsUpdateInputs.md +24 -0
- 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.0
|
|
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
|
|
|
@@ -11471,14 +11502,38 @@ export interface OrganizationModuleSettings {
|
|
|
11471
11502
|
'meetingLivestreamGuestPreset': string;
|
|
11472
11503
|
'supportAutoResolve': boolean;
|
|
11473
11504
|
'supportAutoResolveMessage'?: string;
|
|
11505
|
+
'eventConfirmationEmailReplyTo': string | null;
|
|
11506
|
+
'eventConfirmationEmailBody': string | null;
|
|
11507
|
+
'eventCancellationEmailReplyTo': string | null;
|
|
11508
|
+
'eventCancellationEmailBody': string | null;
|
|
11509
|
+
'eventReminderEmailReplyTo': string | null;
|
|
11510
|
+
'eventReminderEmailBody': string | null;
|
|
11511
|
+
'eventApprovalEmailReplyTo': string | null;
|
|
11512
|
+
'eventApprovalEmailBody': string | null;
|
|
11513
|
+
'eventDenialEmailReplyTo': string | null;
|
|
11514
|
+
'eventDenialEmailBody': string | null;
|
|
11515
|
+
'eventTransferEmailReplyTo': string | null;
|
|
11516
|
+
'eventTransferEmailBody': string | null;
|
|
11474
11517
|
}
|
|
11475
11518
|
export interface OrganizationModuleSettingsTranslation {
|
|
11476
11519
|
'organizationId': string;
|
|
11477
11520
|
'locale': string;
|
|
11478
11521
|
'supportAutoResolveMessage'?: string;
|
|
11522
|
+
'eventConfirmationEmailBody': string | null;
|
|
11523
|
+
'eventCancellationEmailBody': string | null;
|
|
11524
|
+
'eventReminderEmailBody': string | null;
|
|
11525
|
+
'eventApprovalEmailBody': string | null;
|
|
11526
|
+
'eventDenialEmailBody': string | null;
|
|
11527
|
+
'eventTransferEmailBody': string | null;
|
|
11479
11528
|
}
|
|
11480
11529
|
export interface OrganizationModuleSettingsTranslationUpdateInputs {
|
|
11481
11530
|
'supportAutoResolveMessage'?: string;
|
|
11531
|
+
'eventConfirmationEmailBody'?: string | null;
|
|
11532
|
+
'eventCancellationEmailBody'?: string | null;
|
|
11533
|
+
'eventReminderEmailBody'?: string | null;
|
|
11534
|
+
'eventApprovalEmailBody'?: string | null;
|
|
11535
|
+
'eventDenialEmailBody'?: string | null;
|
|
11536
|
+
'eventTransferEmailBody'?: string | null;
|
|
11482
11537
|
}
|
|
11483
11538
|
export interface OrganizationModuleSettingsUpdateInputs {
|
|
11484
11539
|
'meetingGroupCallAdminPreset'?: string;
|
|
@@ -11489,6 +11544,18 @@ export interface OrganizationModuleSettingsUpdateInputs {
|
|
|
11489
11544
|
'meetingLivestreamGuestPreset'?: string;
|
|
11490
11545
|
'supportAutoResolve'?: boolean;
|
|
11491
11546
|
'supportAutoResolveMessage'?: string;
|
|
11547
|
+
'eventConfirmationEmailReplyTo'?: string | null;
|
|
11548
|
+
'eventConfirmationEmailBody'?: string | null;
|
|
11549
|
+
'eventCancellationEmailReplyTo'?: string | null;
|
|
11550
|
+
'eventCancellationEmailBody'?: string | null;
|
|
11551
|
+
'eventReminderEmailReplyTo'?: string | null;
|
|
11552
|
+
'eventReminderEmailBody'?: string | null;
|
|
11553
|
+
'eventApprovalEmailReplyTo'?: string | null;
|
|
11554
|
+
'eventApprovalEmailBody'?: string | null;
|
|
11555
|
+
'eventDenialEmailReplyTo'?: string | null;
|
|
11556
|
+
'eventDenialEmailBody'?: string | null;
|
|
11557
|
+
'eventTransferEmailReplyTo'?: string | null;
|
|
11558
|
+
'eventTransferEmailBody'?: string | null;
|
|
11492
11559
|
}
|
|
11493
11560
|
|
|
11494
11561
|
export enum OrganizationModuleType {
|
|
@@ -25079,21 +25146,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25079
25146
|
/**
|
|
25080
25147
|
* 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.
|
|
25081
25148
|
* @summary Add an account tier to a booking space
|
|
25082
|
-
* @param {string} placeId The place identifier
|
|
25083
25149
|
* @param {string} spaceId The space identifier
|
|
25084
25150
|
* @param {string} tierId The tier identifier
|
|
25085
25151
|
* @param {*} [options] Override http request option.
|
|
25086
25152
|
* @throws {RequiredError}
|
|
25087
25153
|
*/
|
|
25088
|
-
addBookingSpaceTier: async (
|
|
25089
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25090
|
-
assertParamExists('addBookingSpaceTier', 'placeId', placeId)
|
|
25154
|
+
addBookingSpaceTier: async (spaceId: string, tierId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25091
25155
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25092
25156
|
assertParamExists('addBookingSpaceTier', 'spaceId', spaceId)
|
|
25093
25157
|
// verify required parameter 'tierId' is not null or undefined
|
|
25094
25158
|
assertParamExists('addBookingSpaceTier', 'tierId', tierId)
|
|
25095
|
-
const localVarPath = `/bookings/
|
|
25096
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25159
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers/{tierId}`
|
|
25097
25160
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25098
25161
|
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
25099
25162
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25127,21 +25190,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25127
25190
|
/**
|
|
25128
25191
|
* 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.
|
|
25129
25192
|
* @summary Cancel a booking
|
|
25130
|
-
* @param {string} placeId The place identifier
|
|
25131
25193
|
* @param {string} spaceId The space identifier
|
|
25132
25194
|
* @param {string} bookingId The booking identifier
|
|
25133
25195
|
* @param {*} [options] Override http request option.
|
|
25134
25196
|
* @throws {RequiredError}
|
|
25135
25197
|
*/
|
|
25136
|
-
cancelBooking: async (
|
|
25137
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25138
|
-
assertParamExists('cancelBooking', 'placeId', placeId)
|
|
25198
|
+
cancelBooking: async (spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25139
25199
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25140
25200
|
assertParamExists('cancelBooking', 'spaceId', spaceId)
|
|
25141
25201
|
// verify required parameter 'bookingId' is not null or undefined
|
|
25142
25202
|
assertParamExists('cancelBooking', 'bookingId', bookingId)
|
|
25143
|
-
const localVarPath = `/bookings/
|
|
25144
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25203
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/cancel`
|
|
25145
25204
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25146
25205
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
25147
25206
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25175,21 +25234,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25175
25234
|
/**
|
|
25176
25235
|
* 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.
|
|
25177
25236
|
* @summary Check in a booking
|
|
25178
|
-
* @param {string} placeId The place identifier
|
|
25179
25237
|
* @param {string} spaceId The space identifier
|
|
25180
25238
|
* @param {string} bookingId The booking identifier
|
|
25181
25239
|
* @param {*} [options] Override http request option.
|
|
25182
25240
|
* @throws {RequiredError}
|
|
25183
25241
|
*/
|
|
25184
|
-
checkInBooking: async (
|
|
25185
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25186
|
-
assertParamExists('checkInBooking', 'placeId', placeId)
|
|
25242
|
+
checkInBooking: async (spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25187
25243
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25188
25244
|
assertParamExists('checkInBooking', 'spaceId', spaceId)
|
|
25189
25245
|
// verify required parameter 'bookingId' is not null or undefined
|
|
25190
25246
|
assertParamExists('checkInBooking', 'bookingId', bookingId)
|
|
25191
|
-
const localVarPath = `/bookings/
|
|
25192
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25247
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/checkin`
|
|
25193
25248
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25194
25249
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
25195
25250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25223,21 +25278,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25223
25278
|
/**
|
|
25224
25279
|
* 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.
|
|
25225
25280
|
* @summary Create a booking for a space
|
|
25226
|
-
* @param {string} placeId The place identifier
|
|
25227
25281
|
* @param {string} spaceId The space identifier
|
|
25228
25282
|
* @param {BookingCreateInputs} bookingCreateInputs
|
|
25229
25283
|
* @param {*} [options] Override http request option.
|
|
25230
25284
|
* @throws {RequiredError}
|
|
25231
25285
|
*/
|
|
25232
|
-
createBooking: async (
|
|
25233
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25234
|
-
assertParamExists('createBooking', 'placeId', placeId)
|
|
25286
|
+
createBooking: async (spaceId: string, bookingCreateInputs: BookingCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25235
25287
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25236
25288
|
assertParamExists('createBooking', 'spaceId', spaceId)
|
|
25237
25289
|
// verify required parameter 'bookingCreateInputs' is not null or undefined
|
|
25238
25290
|
assertParamExists('createBooking', 'bookingCreateInputs', bookingCreateInputs)
|
|
25239
|
-
const localVarPath = `/bookings/
|
|
25240
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25291
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings`
|
|
25241
25292
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25242
25293
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25243
25294
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25270,23 +25321,19 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25270
25321
|
};
|
|
25271
25322
|
},
|
|
25272
25323
|
/**
|
|
25273
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
25324
|
+
* 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).
|
|
25274
25325
|
* @summary Delete a booking
|
|
25275
|
-
* @param {string} placeId The place identifier
|
|
25276
25326
|
* @param {string} spaceId The space identifier
|
|
25277
25327
|
* @param {string} bookingId The booking identifier
|
|
25278
25328
|
* @param {*} [options] Override http request option.
|
|
25279
25329
|
* @throws {RequiredError}
|
|
25280
25330
|
*/
|
|
25281
|
-
deleteBooking: async (
|
|
25282
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25283
|
-
assertParamExists('deleteBooking', 'placeId', placeId)
|
|
25331
|
+
deleteBooking: async (spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25284
25332
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25285
25333
|
assertParamExists('deleteBooking', 'spaceId', spaceId)
|
|
25286
25334
|
// verify required parameter 'bookingId' is not null or undefined
|
|
25287
25335
|
assertParamExists('deleteBooking', 'bookingId', bookingId)
|
|
25288
|
-
const localVarPath = `/bookings/
|
|
25289
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25336
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}`
|
|
25290
25337
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25291
25338
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
25292
25339
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25728,20 +25775,16 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25728
25775
|
};
|
|
25729
25776
|
},
|
|
25730
25777
|
/**
|
|
25731
|
-
* Returns a single bookable space
|
|
25778
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
25732
25779
|
* @summary Get a booking space
|
|
25733
|
-
* @param {string} placeId The place identifier
|
|
25734
25780
|
* @param {string} spaceId The space identifier
|
|
25735
25781
|
* @param {*} [options] Override http request option.
|
|
25736
25782
|
* @throws {RequiredError}
|
|
25737
25783
|
*/
|
|
25738
|
-
getBookingSpace: async (
|
|
25739
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25740
|
-
assertParamExists('getBookingSpace', 'placeId', placeId)
|
|
25784
|
+
getBookingSpace: async (spaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25741
25785
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25742
25786
|
assertParamExists('getBookingSpace', 'spaceId', spaceId)
|
|
25743
|
-
const localVarPath = `/bookings/
|
|
25744
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25787
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
25745
25788
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25746
25789
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25747
25790
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25774,18 +25817,14 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25774
25817
|
/**
|
|
25775
25818
|
* 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\".
|
|
25776
25819
|
* @summary List a booking space\'s weekly availability rules
|
|
25777
|
-
* @param {string} placeId The place identifier
|
|
25778
25820
|
* @param {string} spaceId The space identifier
|
|
25779
25821
|
* @param {*} [options] Override http request option.
|
|
25780
25822
|
* @throws {RequiredError}
|
|
25781
25823
|
*/
|
|
25782
|
-
getBookingSpaceAvailabilities: async (
|
|
25783
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25784
|
-
assertParamExists('getBookingSpaceAvailabilities', 'placeId', placeId)
|
|
25824
|
+
getBookingSpaceAvailabilities: async (spaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25785
25825
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25786
25826
|
assertParamExists('getBookingSpaceAvailabilities', 'spaceId', spaceId)
|
|
25787
|
-
const localVarPath = `/bookings/
|
|
25788
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25827
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities`
|
|
25789
25828
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25790
25829
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25791
25830
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25816,23 +25855,19 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25816
25855
|
};
|
|
25817
25856
|
},
|
|
25818
25857
|
/**
|
|
25819
|
-
* Returns a single
|
|
25820
|
-
* @summary Get a booking space
|
|
25821
|
-
* @param {string} placeId The place identifier
|
|
25858
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
25859
|
+
* @summary Get a booking space availability by id
|
|
25822
25860
|
* @param {string} spaceId The space identifier
|
|
25823
25861
|
* @param {string} availabilityId The availability identifier
|
|
25824
25862
|
* @param {*} [options] Override http request option.
|
|
25825
25863
|
* @throws {RequiredError}
|
|
25826
25864
|
*/
|
|
25827
|
-
getBookingSpaceAvailability: async (
|
|
25828
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25829
|
-
assertParamExists('getBookingSpaceAvailability', 'placeId', placeId)
|
|
25865
|
+
getBookingSpaceAvailability: async (spaceId: string, availabilityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25830
25866
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25831
25867
|
assertParamExists('getBookingSpaceAvailability', 'spaceId', spaceId)
|
|
25832
25868
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
25833
25869
|
assertParamExists('getBookingSpaceAvailability', 'availabilityId', availabilityId)
|
|
25834
|
-
const localVarPath = `/bookings/
|
|
25835
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25870
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
25836
25871
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25837
25872
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
25838
25873
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25866,21 +25901,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25866
25901
|
/**
|
|
25867
25902
|
* 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\".
|
|
25868
25903
|
* @summary Get a booking space blackout
|
|
25869
|
-
* @param {string} placeId The place identifier
|
|
25870
25904
|
* @param {string} spaceId The space identifier
|
|
25871
25905
|
* @param {string} blackoutId The blackout identifier
|
|
25872
25906
|
* @param {*} [options] Override http request option.
|
|
25873
25907
|
* @throws {RequiredError}
|
|
25874
25908
|
*/
|
|
25875
|
-
getBookingSpaceBlackout: async (
|
|
25876
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25877
|
-
assertParamExists('getBookingSpaceBlackout', 'placeId', placeId)
|
|
25909
|
+
getBookingSpaceBlackout: async (spaceId: string, blackoutId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25878
25910
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25879
25911
|
assertParamExists('getBookingSpaceBlackout', 'spaceId', spaceId)
|
|
25880
25912
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
25881
25913
|
assertParamExists('getBookingSpaceBlackout', 'blackoutId', blackoutId)
|
|
25882
|
-
const localVarPath = `/bookings/
|
|
25883
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25914
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
25884
25915
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25885
25916
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
25886
25917
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -25914,7 +25945,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25914
25945
|
/**
|
|
25915
25946
|
* 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\".
|
|
25916
25947
|
* @summary List a booking space\'s blackouts
|
|
25917
|
-
* @param {string} placeId The place identifier
|
|
25918
25948
|
* @param {string} spaceId The space identifier
|
|
25919
25949
|
* @param {boolean} [past] Filter by past
|
|
25920
25950
|
* @param {number} [page] Page number
|
|
@@ -25924,13 +25954,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25924
25954
|
* @param {*} [options] Override http request option.
|
|
25925
25955
|
* @throws {RequiredError}
|
|
25926
25956
|
*/
|
|
25927
|
-
getBookingSpaceBlackouts: async (
|
|
25928
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25929
|
-
assertParamExists('getBookingSpaceBlackouts', 'placeId', placeId)
|
|
25957
|
+
getBookingSpaceBlackouts: async (spaceId: string, past?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25930
25958
|
// verify required parameter 'spaceId' is not null or undefined
|
|
25931
25959
|
assertParamExists('getBookingSpaceBlackouts', 'spaceId', spaceId)
|
|
25932
|
-
const localVarPath = `/bookings/
|
|
25933
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25960
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts`
|
|
25934
25961
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25935
25962
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25936
25963
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25983,7 +26010,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25983
26010
|
/**
|
|
25984
26011
|
* 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\".
|
|
25985
26012
|
* @summary List a booking space\'s bookings
|
|
25986
|
-
* @param {string} placeId The place identifier
|
|
25987
26013
|
* @param {string} spaceId The space identifier
|
|
25988
26014
|
* @param {boolean} [past] Filter by past
|
|
25989
26015
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -25994,13 +26020,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25994
26020
|
* @param {*} [options] Override http request option.
|
|
25995
26021
|
* @throws {RequiredError}
|
|
25996
26022
|
*/
|
|
25997
|
-
getBookingSpaceBookings: async (
|
|
25998
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
25999
|
-
assertParamExists('getBookingSpaceBookings', 'placeId', placeId)
|
|
26023
|
+
getBookingSpaceBookings: async (spaceId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26000
26024
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26001
26025
|
assertParamExists('getBookingSpaceBookings', 'spaceId', spaceId)
|
|
26002
|
-
const localVarPath = `/bookings/
|
|
26003
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26026
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings`
|
|
26004
26027
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26005
26028
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26006
26029
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26057,7 +26080,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26057
26080
|
/**
|
|
26058
26081
|
* 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\".
|
|
26059
26082
|
* @summary List a booking space\'s payments
|
|
26060
|
-
* @param {string} placeId The place identifier
|
|
26061
26083
|
* @param {string} spaceId The space identifier
|
|
26062
26084
|
* @param {boolean} [past] Filter by past
|
|
26063
26085
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -26068,13 +26090,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26068
26090
|
* @param {*} [options] Override http request option.
|
|
26069
26091
|
* @throws {RequiredError}
|
|
26070
26092
|
*/
|
|
26071
|
-
getBookingSpacePayments: async (
|
|
26072
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26073
|
-
assertParamExists('getBookingSpacePayments', 'placeId', placeId)
|
|
26093
|
+
getBookingSpacePayments: async (spaceId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26074
26094
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26075
26095
|
assertParamExists('getBookingSpacePayments', 'spaceId', spaceId)
|
|
26076
|
-
const localVarPath = `/bookings/
|
|
26077
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26096
|
+
const localVarPath = `/bookings/spaces/{spaceId}/payments`
|
|
26078
26097
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26079
26098
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26080
26099
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26129,23 +26148,19 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26129
26148
|
};
|
|
26130
26149
|
},
|
|
26131
26150
|
/**
|
|
26132
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
26151
|
+
* 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.
|
|
26133
26152
|
* @summary Get a booking space\'s available slots
|
|
26134
|
-
* @param {string} placeId The place identifier
|
|
26135
26153
|
* @param {string} spaceId The space identifier
|
|
26136
26154
|
* @param {string} firstDayOfMonth Filter by firstDayOfMonth
|
|
26137
26155
|
* @param {*} [options] Override http request option.
|
|
26138
26156
|
* @throws {RequiredError}
|
|
26139
26157
|
*/
|
|
26140
|
-
getBookingSpaceSlots: async (
|
|
26141
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26142
|
-
assertParamExists('getBookingSpaceSlots', 'placeId', placeId)
|
|
26158
|
+
getBookingSpaceSlots: async (spaceId: string, firstDayOfMonth: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26143
26159
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26144
26160
|
assertParamExists('getBookingSpaceSlots', 'spaceId', spaceId)
|
|
26145
26161
|
// verify required parameter 'firstDayOfMonth' is not null or undefined
|
|
26146
26162
|
assertParamExists('getBookingSpaceSlots', 'firstDayOfMonth', firstDayOfMonth)
|
|
26147
|
-
const localVarPath = `/bookings/
|
|
26148
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26163
|
+
const localVarPath = `/bookings/spaces/{spaceId}/slots`
|
|
26149
26164
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26150
26165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26151
26166
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26180,9 +26195,8 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26180
26195
|
};
|
|
26181
26196
|
},
|
|
26182
26197
|
/**
|
|
26183
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
26198
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
26184
26199
|
* @summary List a booking space\'s assigned tiers
|
|
26185
|
-
* @param {string} placeId The place identifier
|
|
26186
26200
|
* @param {string} spaceId The space identifier
|
|
26187
26201
|
* @param {number} [page] Page number
|
|
26188
26202
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -26191,13 +26205,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26191
26205
|
* @param {*} [options] Override http request option.
|
|
26192
26206
|
* @throws {RequiredError}
|
|
26193
26207
|
*/
|
|
26194
|
-
getBookingSpaceTiers: async (
|
|
26195
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26196
|
-
assertParamExists('getBookingSpaceTiers', 'placeId', placeId)
|
|
26208
|
+
getBookingSpaceTiers: async (spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26197
26209
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26198
26210
|
assertParamExists('getBookingSpaceTiers', 'spaceId', spaceId)
|
|
26199
|
-
const localVarPath = `/bookings/
|
|
26200
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26211
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers`
|
|
26201
26212
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26202
26213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26203
26214
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26246,21 +26257,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26246
26257
|
/**
|
|
26247
26258
|
* 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.
|
|
26248
26259
|
* @summary Get a booking space\'s translation for a locale
|
|
26249
|
-
* @param {string} placeId The place identifier
|
|
26250
26260
|
* @param {string} spaceId The space identifier
|
|
26251
26261
|
* @param {string} locale The locale identifier
|
|
26252
26262
|
* @param {*} [options] Override http request option.
|
|
26253
26263
|
* @throws {RequiredError}
|
|
26254
26264
|
*/
|
|
26255
|
-
getBookingSpaceTranslation: async (
|
|
26256
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26257
|
-
assertParamExists('getBookingSpaceTranslation', 'placeId', placeId)
|
|
26265
|
+
getBookingSpaceTranslation: async (spaceId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26258
26266
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26259
26267
|
assertParamExists('getBookingSpaceTranslation', 'spaceId', spaceId)
|
|
26260
26268
|
// verify required parameter 'locale' is not null or undefined
|
|
26261
26269
|
assertParamExists('getBookingSpaceTranslation', 'locale', locale)
|
|
26262
|
-
const localVarPath = `/bookings/
|
|
26263
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26270
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
26264
26271
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26265
26272
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
26266
26273
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -26292,9 +26299,8 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26292
26299
|
};
|
|
26293
26300
|
},
|
|
26294
26301
|
/**
|
|
26295
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
26302
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
26296
26303
|
* @summary List a booking space\'s translations
|
|
26297
|
-
* @param {string} placeId The place identifier
|
|
26298
26304
|
* @param {string} spaceId The space identifier
|
|
26299
26305
|
* @param {number} [page] Page number
|
|
26300
26306
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -26303,13 +26309,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26303
26309
|
* @param {*} [options] Override http request option.
|
|
26304
26310
|
* @throws {RequiredError}
|
|
26305
26311
|
*/
|
|
26306
|
-
getBookingSpaceTranslations: async (
|
|
26307
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26308
|
-
assertParamExists('getBookingSpaceTranslations', 'placeId', placeId)
|
|
26312
|
+
getBookingSpaceTranslations: async (spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26309
26313
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26310
26314
|
assertParamExists('getBookingSpaceTranslations', 'spaceId', spaceId)
|
|
26311
|
-
const localVarPath = `/bookings/
|
|
26312
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26315
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations`
|
|
26313
26316
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
26314
26317
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26315
26318
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26356,9 +26359,12 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26356
26359
|
};
|
|
26357
26360
|
},
|
|
26358
26361
|
/**
|
|
26359
|
-
* Returns a paginated list of bookable spaces
|
|
26360
|
-
* @summary List
|
|
26361
|
-
* @param {string} placeId
|
|
26362
|
+
* 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\".
|
|
26363
|
+
* @summary List booking spaces
|
|
26364
|
+
* @param {string} [placeId] Filter by placeId
|
|
26365
|
+
* @param {string} [eventId] Filter by eventId
|
|
26366
|
+
* @param {string} [groupId] Filter by groupId
|
|
26367
|
+
* @param {string} [accountId] Filter by accountId
|
|
26362
26368
|
* @param {number} [page] Page number
|
|
26363
26369
|
* @param {number} [pageSize] Number of items per page
|
|
26364
26370
|
* @param {string} [orderBy] Field to order by
|
|
@@ -26366,11 +26372,8 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26366
26372
|
* @param {*} [options] Override http request option.
|
|
26367
26373
|
* @throws {RequiredError}
|
|
26368
26374
|
*/
|
|
26369
|
-
getBookingSpaces: async (placeId
|
|
26370
|
-
|
|
26371
|
-
assertParamExists('getBookingSpaces', 'placeId', placeId)
|
|
26372
|
-
const localVarPath = `/bookings/places/{placeId}/spaces`
|
|
26373
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)));
|
|
26375
|
+
getBookingSpaces: async (placeId?: string, eventId?: string, groupId?: string, accountId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26376
|
+
const localVarPath = `/bookings/spaces`;
|
|
26374
26377
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26375
26378
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26376
26379
|
let baseOptions;
|
|
@@ -26388,6 +26391,22 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26388
26391
|
// authentication OrganizationId required
|
|
26389
26392
|
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
26390
26393
|
|
|
26394
|
+
if (placeId !== undefined) {
|
|
26395
|
+
localVarQueryParameter['placeId'] = placeId;
|
|
26396
|
+
}
|
|
26397
|
+
|
|
26398
|
+
if (eventId !== undefined) {
|
|
26399
|
+
localVarQueryParameter['eventId'] = eventId;
|
|
26400
|
+
}
|
|
26401
|
+
|
|
26402
|
+
if (groupId !== undefined) {
|
|
26403
|
+
localVarQueryParameter['groupId'] = groupId;
|
|
26404
|
+
}
|
|
26405
|
+
|
|
26406
|
+
if (accountId !== undefined) {
|
|
26407
|
+
localVarQueryParameter['accountId'] = accountId;
|
|
26408
|
+
}
|
|
26409
|
+
|
|
26391
26410
|
if (page !== undefined) {
|
|
26392
26411
|
localVarQueryParameter['page'] = page;
|
|
26393
26412
|
}
|
|
@@ -26418,21 +26437,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26418
26437
|
/**
|
|
26419
26438
|
* 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.
|
|
26420
26439
|
* @summary Remove an account tier from a booking space
|
|
26421
|
-
* @param {string} placeId The place identifier
|
|
26422
26440
|
* @param {string} spaceId The space identifier
|
|
26423
26441
|
* @param {string} tierId The tier identifier
|
|
26424
26442
|
* @param {*} [options] Override http request option.
|
|
26425
26443
|
* @throws {RequiredError}
|
|
26426
26444
|
*/
|
|
26427
|
-
removeBookingSpaceTier: async (
|
|
26428
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26429
|
-
assertParamExists('removeBookingSpaceTier', 'placeId', placeId)
|
|
26445
|
+
removeBookingSpaceTier: async (spaceId: string, tierId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26430
26446
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26431
26447
|
assertParamExists('removeBookingSpaceTier', 'spaceId', spaceId)
|
|
26432
26448
|
// verify required parameter 'tierId' is not null or undefined
|
|
26433
26449
|
assertParamExists('removeBookingSpaceTier', 'tierId', tierId)
|
|
26434
|
-
const localVarPath = `/bookings/
|
|
26435
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26450
|
+
const localVarPath = `/bookings/spaces/{spaceId}/tiers/{tierId}`
|
|
26436
26451
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26437
26452
|
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
26438
26453
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -26466,21 +26481,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26466
26481
|
/**
|
|
26467
26482
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
26468
26483
|
* @summary Undo a booking check-in
|
|
26469
|
-
* @param {string} placeId The place identifier
|
|
26470
26484
|
* @param {string} spaceId The space identifier
|
|
26471
26485
|
* @param {string} bookingId The booking identifier
|
|
26472
26486
|
* @param {*} [options] Override http request option.
|
|
26473
26487
|
* @throws {RequiredError}
|
|
26474
26488
|
*/
|
|
26475
|
-
undoCheckInBooking: async (
|
|
26476
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26477
|
-
assertParamExists('undoCheckInBooking', 'placeId', placeId)
|
|
26489
|
+
undoCheckInBooking: async (spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26478
26490
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26479
26491
|
assertParamExists('undoCheckInBooking', 'spaceId', spaceId)
|
|
26480
26492
|
// verify required parameter 'bookingId' is not null or undefined
|
|
26481
26493
|
assertParamExists('undoCheckInBooking', 'bookingId', bookingId)
|
|
26482
|
-
const localVarPath = `/bookings/
|
|
26483
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26494
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/checkin/undo`
|
|
26484
26495
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26485
26496
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
26486
26497
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -26512,26 +26523,22 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
26512
26523
|
};
|
|
26513
26524
|
},
|
|
26514
26525
|
/**
|
|
26515
|
-
* Updates an existing booking for a bookable space
|
|
26526
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
26516
26527
|
* @summary Update a booking
|
|
26517
|
-
* @param {string} placeId The place identifier
|
|
26518
26528
|
* @param {string} spaceId The space identifier
|
|
26519
26529
|
* @param {string} bookingId The booking identifier
|
|
26520
26530
|
* @param {BookingUpdateInputs} bookingUpdateInputs
|
|
26521
26531
|
* @param {*} [options] Override http request option.
|
|
26522
26532
|
* @throws {RequiredError}
|
|
26523
26533
|
*/
|
|
26524
|
-
updateBooking: async (
|
|
26525
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
26526
|
-
assertParamExists('updateBooking', 'placeId', placeId)
|
|
26534
|
+
updateBooking: async (spaceId: string, bookingId: string, bookingUpdateInputs: BookingUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26527
26535
|
// verify required parameter 'spaceId' is not null or undefined
|
|
26528
26536
|
assertParamExists('updateBooking', 'spaceId', spaceId)
|
|
26529
26537
|
// verify required parameter 'bookingId' is not null or undefined
|
|
26530
26538
|
assertParamExists('updateBooking', 'bookingId', bookingId)
|
|
26531
26539
|
// verify required parameter 'bookingUpdateInputs' is not null or undefined
|
|
26532
26540
|
assertParamExists('updateBooking', 'bookingUpdateInputs', bookingUpdateInputs)
|
|
26533
|
-
const localVarPath = `/bookings/
|
|
26534
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26541
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}`
|
|
26535
26542
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26536
26543
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
26537
26544
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -26576,14 +26583,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26576
26583
|
/**
|
|
26577
26584
|
* 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.
|
|
26578
26585
|
* @summary Add an account tier to a booking space
|
|
26579
|
-
* @param {string} placeId The place identifier
|
|
26580
26586
|
* @param {string} spaceId The space identifier
|
|
26581
26587
|
* @param {string} tierId The tier identifier
|
|
26582
26588
|
* @param {*} [options] Override http request option.
|
|
26583
26589
|
* @throws {RequiredError}
|
|
26584
26590
|
*/
|
|
26585
|
-
async addBookingSpaceTier(
|
|
26586
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.addBookingSpaceTier(
|
|
26591
|
+
async addBookingSpaceTier(spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
26592
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addBookingSpaceTier(spaceId, tierId, options);
|
|
26587
26593
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26588
26594
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.addBookingSpaceTier']?.[localVarOperationServerIndex]?.url;
|
|
26589
26595
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26591,14 +26597,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26591
26597
|
/**
|
|
26592
26598
|
* 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.
|
|
26593
26599
|
* @summary Cancel a booking
|
|
26594
|
-
* @param {string} placeId The place identifier
|
|
26595
26600
|
* @param {string} spaceId The space identifier
|
|
26596
26601
|
* @param {string} bookingId The booking identifier
|
|
26597
26602
|
* @param {*} [options] Override http request option.
|
|
26598
26603
|
* @throws {RequiredError}
|
|
26599
26604
|
*/
|
|
26600
|
-
async cancelBooking(
|
|
26601
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelBooking(
|
|
26605
|
+
async cancelBooking(spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26606
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelBooking(spaceId, bookingId, options);
|
|
26602
26607
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26603
26608
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.cancelBooking']?.[localVarOperationServerIndex]?.url;
|
|
26604
26609
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26606,14 +26611,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26606
26611
|
/**
|
|
26607
26612
|
* 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.
|
|
26608
26613
|
* @summary Check in a booking
|
|
26609
|
-
* @param {string} placeId The place identifier
|
|
26610
26614
|
* @param {string} spaceId The space identifier
|
|
26611
26615
|
* @param {string} bookingId The booking identifier
|
|
26612
26616
|
* @param {*} [options] Override http request option.
|
|
26613
26617
|
* @throws {RequiredError}
|
|
26614
26618
|
*/
|
|
26615
|
-
async checkInBooking(
|
|
26616
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInBooking(
|
|
26619
|
+
async checkInBooking(spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInBooking(spaceId, bookingId, options);
|
|
26617
26621
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26618
26622
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.checkInBooking']?.[localVarOperationServerIndex]?.url;
|
|
26619
26623
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26621,29 +26625,27 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26621
26625
|
/**
|
|
26622
26626
|
* 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.
|
|
26623
26627
|
* @summary Create a booking for a space
|
|
26624
|
-
* @param {string} placeId The place identifier
|
|
26625
26628
|
* @param {string} spaceId The space identifier
|
|
26626
26629
|
* @param {BookingCreateInputs} bookingCreateInputs
|
|
26627
26630
|
* @param {*} [options] Override http request option.
|
|
26628
26631
|
* @throws {RequiredError}
|
|
26629
26632
|
*/
|
|
26630
|
-
async createBooking(
|
|
26631
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBooking(
|
|
26633
|
+
async createBooking(spaceId: string, bookingCreateInputs: BookingCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26634
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBooking(spaceId, bookingCreateInputs, options);
|
|
26632
26635
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26633
26636
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.createBooking']?.[localVarOperationServerIndex]?.url;
|
|
26634
26637
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26635
26638
|
},
|
|
26636
26639
|
/**
|
|
26637
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
26640
|
+
* 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).
|
|
26638
26641
|
* @summary Delete a booking
|
|
26639
|
-
* @param {string} placeId The place identifier
|
|
26640
26642
|
* @param {string} spaceId The space identifier
|
|
26641
26643
|
* @param {string} bookingId The booking identifier
|
|
26642
26644
|
* @param {*} [options] Override http request option.
|
|
26643
26645
|
* @throws {RequiredError}
|
|
26644
26646
|
*/
|
|
26645
|
-
async deleteBooking(
|
|
26646
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBooking(
|
|
26647
|
+
async deleteBooking(spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBooking(spaceId, bookingId, options);
|
|
26647
26649
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26648
26650
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.deleteBooking']?.[localVarOperationServerIndex]?.url;
|
|
26649
26651
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26771,15 +26773,14 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26771
26773
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26772
26774
|
},
|
|
26773
26775
|
/**
|
|
26774
|
-
* Returns a single bookable space
|
|
26776
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
26775
26777
|
* @summary Get a booking space
|
|
26776
|
-
* @param {string} placeId The place identifier
|
|
26777
26778
|
* @param {string} spaceId The space identifier
|
|
26778
26779
|
* @param {*} [options] Override http request option.
|
|
26779
26780
|
* @throws {RequiredError}
|
|
26780
26781
|
*/
|
|
26781
|
-
async getBookingSpace(
|
|
26782
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpace(
|
|
26782
|
+
async getBookingSpace(spaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
26783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpace(spaceId, options);
|
|
26783
26784
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26784
26785
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpace']?.[localVarOperationServerIndex]?.url;
|
|
26785
26786
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26787,28 +26788,26 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26787
26788
|
/**
|
|
26788
26789
|
* 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\".
|
|
26789
26790
|
* @summary List a booking space\'s weekly availability rules
|
|
26790
|
-
* @param {string} placeId The place identifier
|
|
26791
26791
|
* @param {string} spaceId The space identifier
|
|
26792
26792
|
* @param {*} [options] Override http request option.
|
|
26793
26793
|
* @throws {RequiredError}
|
|
26794
26794
|
*/
|
|
26795
|
-
async getBookingSpaceAvailabilities(
|
|
26796
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceAvailabilities(
|
|
26795
|
+
async getBookingSpaceAvailabilities(spaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceAvailabilities200Response>> {
|
|
26796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceAvailabilities(spaceId, options);
|
|
26797
26797
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26798
26798
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceAvailabilities']?.[localVarOperationServerIndex]?.url;
|
|
26799
26799
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26800
26800
|
},
|
|
26801
26801
|
/**
|
|
26802
|
-
* Returns a single
|
|
26803
|
-
* @summary Get a booking space
|
|
26804
|
-
* @param {string} placeId The place identifier
|
|
26802
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
26803
|
+
* @summary Get a booking space availability by id
|
|
26805
26804
|
* @param {string} spaceId The space identifier
|
|
26806
26805
|
* @param {string} availabilityId The availability identifier
|
|
26807
26806
|
* @param {*} [options] Override http request option.
|
|
26808
26807
|
* @throws {RequiredError}
|
|
26809
26808
|
*/
|
|
26810
|
-
async getBookingSpaceAvailability(
|
|
26811
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceAvailability(
|
|
26809
|
+
async getBookingSpaceAvailability(spaceId: string, availabilityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceAvailability200Response>> {
|
|
26810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceAvailability(spaceId, availabilityId, options);
|
|
26812
26811
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26813
26812
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
26814
26813
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26816,14 +26815,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26816
26815
|
/**
|
|
26817
26816
|
* 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\".
|
|
26818
26817
|
* @summary Get a booking space blackout
|
|
26819
|
-
* @param {string} placeId The place identifier
|
|
26820
26818
|
* @param {string} spaceId The space identifier
|
|
26821
26819
|
* @param {string} blackoutId The blackout identifier
|
|
26822
26820
|
* @param {*} [options] Override http request option.
|
|
26823
26821
|
* @throws {RequiredError}
|
|
26824
26822
|
*/
|
|
26825
|
-
async getBookingSpaceBlackout(
|
|
26826
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBlackout(
|
|
26823
|
+
async getBookingSpaceBlackout(spaceId: string, blackoutId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceBlackout200Response>> {
|
|
26824
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBlackout(spaceId, blackoutId, options);
|
|
26827
26825
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26828
26826
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceBlackout']?.[localVarOperationServerIndex]?.url;
|
|
26829
26827
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26831,7 +26829,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26831
26829
|
/**
|
|
26832
26830
|
* 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\".
|
|
26833
26831
|
* @summary List a booking space\'s blackouts
|
|
26834
|
-
* @param {string} placeId The place identifier
|
|
26835
26832
|
* @param {string} spaceId The space identifier
|
|
26836
26833
|
* @param {boolean} [past] Filter by past
|
|
26837
26834
|
* @param {number} [page] Page number
|
|
@@ -26841,8 +26838,8 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26841
26838
|
* @param {*} [options] Override http request option.
|
|
26842
26839
|
* @throws {RequiredError}
|
|
26843
26840
|
*/
|
|
26844
|
-
async getBookingSpaceBlackouts(
|
|
26845
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBlackouts(
|
|
26841
|
+
async getBookingSpaceBlackouts(spaceId: string, past?: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceBlackouts200Response>> {
|
|
26842
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBlackouts(spaceId, past, page, pageSize, orderBy, search, options);
|
|
26846
26843
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26847
26844
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceBlackouts']?.[localVarOperationServerIndex]?.url;
|
|
26848
26845
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26850,7 +26847,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26850
26847
|
/**
|
|
26851
26848
|
* 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\".
|
|
26852
26849
|
* @summary List a booking space\'s bookings
|
|
26853
|
-
* @param {string} placeId The place identifier
|
|
26854
26850
|
* @param {string} spaceId The space identifier
|
|
26855
26851
|
* @param {boolean} [past] Filter by past
|
|
26856
26852
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -26861,8 +26857,8 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26861
26857
|
* @param {*} [options] Override http request option.
|
|
26862
26858
|
* @throws {RequiredError}
|
|
26863
26859
|
*/
|
|
26864
|
-
async getBookingSpaceBookings(
|
|
26865
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBookings(
|
|
26860
|
+
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>> {
|
|
26861
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBookings(spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
26866
26862
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26867
26863
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceBookings']?.[localVarOperationServerIndex]?.url;
|
|
26868
26864
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26870,7 +26866,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26870
26866
|
/**
|
|
26871
26867
|
* 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\".
|
|
26872
26868
|
* @summary List a booking space\'s payments
|
|
26873
|
-
* @param {string} placeId The place identifier
|
|
26874
26869
|
* @param {string} spaceId The space identifier
|
|
26875
26870
|
* @param {boolean} [past] Filter by past
|
|
26876
26871
|
* @param {PurchaseStatus} [status] Filter by status
|
|
@@ -26881,31 +26876,29 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26881
26876
|
* @param {*} [options] Override http request option.
|
|
26882
26877
|
* @throws {RequiredError}
|
|
26883
26878
|
*/
|
|
26884
|
-
async getBookingSpacePayments(
|
|
26885
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpacePayments(
|
|
26879
|
+
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>> {
|
|
26880
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpacePayments(spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
26886
26881
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26887
26882
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpacePayments']?.[localVarOperationServerIndex]?.url;
|
|
26888
26883
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26889
26884
|
},
|
|
26890
26885
|
/**
|
|
26891
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
26886
|
+
* 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.
|
|
26892
26887
|
* @summary Get a booking space\'s available slots
|
|
26893
|
-
* @param {string} placeId The place identifier
|
|
26894
26888
|
* @param {string} spaceId The space identifier
|
|
26895
26889
|
* @param {string} firstDayOfMonth Filter by firstDayOfMonth
|
|
26896
26890
|
* @param {*} [options] Override http request option.
|
|
26897
26891
|
* @throws {RequiredError}
|
|
26898
26892
|
*/
|
|
26899
|
-
async getBookingSpaceSlots(
|
|
26900
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceSlots(
|
|
26893
|
+
async getBookingSpaceSlots(spaceId: string, firstDayOfMonth: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceSlots200Response>> {
|
|
26894
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceSlots(spaceId, firstDayOfMonth, options);
|
|
26901
26895
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26902
26896
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceSlots']?.[localVarOperationServerIndex]?.url;
|
|
26903
26897
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26904
26898
|
},
|
|
26905
26899
|
/**
|
|
26906
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
26900
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
26907
26901
|
* @summary List a booking space\'s assigned tiers
|
|
26908
|
-
* @param {string} placeId The place identifier
|
|
26909
26902
|
* @param {string} spaceId The space identifier
|
|
26910
26903
|
* @param {number} [page] Page number
|
|
26911
26904
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -26914,8 +26907,8 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26914
26907
|
* @param {*} [options] Override http request option.
|
|
26915
26908
|
* @throws {RequiredError}
|
|
26916
26909
|
*/
|
|
26917
|
-
async getBookingSpaceTiers(
|
|
26918
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTiers(
|
|
26910
|
+
async getBookingSpaceTiers(spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountTiers200Response>> {
|
|
26911
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTiers(spaceId, page, pageSize, orderBy, search, options);
|
|
26919
26912
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26920
26913
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceTiers']?.[localVarOperationServerIndex]?.url;
|
|
26921
26914
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26923,22 +26916,20 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26923
26916
|
/**
|
|
26924
26917
|
* 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.
|
|
26925
26918
|
* @summary Get a booking space\'s translation for a locale
|
|
26926
|
-
* @param {string} placeId The place identifier
|
|
26927
26919
|
* @param {string} spaceId The space identifier
|
|
26928
26920
|
* @param {string} locale The locale identifier
|
|
26929
26921
|
* @param {*} [options] Override http request option.
|
|
26930
26922
|
* @throws {RequiredError}
|
|
26931
26923
|
*/
|
|
26932
|
-
async getBookingSpaceTranslation(
|
|
26933
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTranslation(
|
|
26924
|
+
async getBookingSpaceTranslation(spaceId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceTranslation200Response>> {
|
|
26925
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTranslation(spaceId, locale, options);
|
|
26934
26926
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26935
26927
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
26936
26928
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26937
26929
|
},
|
|
26938
26930
|
/**
|
|
26939
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
26931
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
26940
26932
|
* @summary List a booking space\'s translations
|
|
26941
|
-
* @param {string} placeId The place identifier
|
|
26942
26933
|
* @param {string} spaceId The space identifier
|
|
26943
26934
|
* @param {number} [page] Page number
|
|
26944
26935
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -26947,16 +26938,19 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26947
26938
|
* @param {*} [options] Override http request option.
|
|
26948
26939
|
* @throws {RequiredError}
|
|
26949
26940
|
*/
|
|
26950
|
-
async getBookingSpaceTranslations(
|
|
26951
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTranslations(
|
|
26941
|
+
async getBookingSpaceTranslations(spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceTranslations200Response>> {
|
|
26942
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTranslations(spaceId, page, pageSize, orderBy, search, options);
|
|
26952
26943
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26953
26944
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceTranslations']?.[localVarOperationServerIndex]?.url;
|
|
26954
26945
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26955
26946
|
},
|
|
26956
26947
|
/**
|
|
26957
|
-
* Returns a paginated list of bookable spaces
|
|
26958
|
-
* @summary List
|
|
26959
|
-
* @param {string} placeId
|
|
26948
|
+
* 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\".
|
|
26949
|
+
* @summary List booking spaces
|
|
26950
|
+
* @param {string} [placeId] Filter by placeId
|
|
26951
|
+
* @param {string} [eventId] Filter by eventId
|
|
26952
|
+
* @param {string} [groupId] Filter by groupId
|
|
26953
|
+
* @param {string} [accountId] Filter by accountId
|
|
26960
26954
|
* @param {number} [page] Page number
|
|
26961
26955
|
* @param {number} [pageSize] Number of items per page
|
|
26962
26956
|
* @param {string} [orderBy] Field to order by
|
|
@@ -26964,8 +26958,8 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26964
26958
|
* @param {*} [options] Override http request option.
|
|
26965
26959
|
* @throws {RequiredError}
|
|
26966
26960
|
*/
|
|
26967
|
-
async getBookingSpaces(placeId
|
|
26968
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaces(placeId, page, pageSize, orderBy, search, options);
|
|
26961
|
+
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>> {
|
|
26962
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaces(placeId, eventId, groupId, accountId, page, pageSize, orderBy, search, options);
|
|
26969
26963
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26970
26964
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaces']?.[localVarOperationServerIndex]?.url;
|
|
26971
26965
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26973,14 +26967,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26973
26967
|
/**
|
|
26974
26968
|
* 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.
|
|
26975
26969
|
* @summary Remove an account tier from a booking space
|
|
26976
|
-
* @param {string} placeId The place identifier
|
|
26977
26970
|
* @param {string} spaceId The space identifier
|
|
26978
26971
|
* @param {string} tierId The tier identifier
|
|
26979
26972
|
* @param {*} [options] Override http request option.
|
|
26980
26973
|
* @throws {RequiredError}
|
|
26981
26974
|
*/
|
|
26982
|
-
async removeBookingSpaceTier(
|
|
26983
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.removeBookingSpaceTier(
|
|
26975
|
+
async removeBookingSpaceTier(spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
26976
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeBookingSpaceTier(spaceId, tierId, options);
|
|
26984
26977
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26985
26978
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.removeBookingSpaceTier']?.[localVarOperationServerIndex]?.url;
|
|
26986
26979
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26988,30 +26981,28 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26988
26981
|
/**
|
|
26989
26982
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
26990
26983
|
* @summary Undo a booking check-in
|
|
26991
|
-
* @param {string} placeId The place identifier
|
|
26992
26984
|
* @param {string} spaceId The space identifier
|
|
26993
26985
|
* @param {string} bookingId The booking identifier
|
|
26994
26986
|
* @param {*} [options] Override http request option.
|
|
26995
26987
|
* @throws {RequiredError}
|
|
26996
26988
|
*/
|
|
26997
|
-
async undoCheckInBooking(
|
|
26998
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.undoCheckInBooking(
|
|
26989
|
+
async undoCheckInBooking(spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26990
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.undoCheckInBooking(spaceId, bookingId, options);
|
|
26999
26991
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27000
26992
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.undoCheckInBooking']?.[localVarOperationServerIndex]?.url;
|
|
27001
26993
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27002
26994
|
},
|
|
27003
26995
|
/**
|
|
27004
|
-
* Updates an existing booking for a bookable space
|
|
26996
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
27005
26997
|
* @summary Update a booking
|
|
27006
|
-
* @param {string} placeId The place identifier
|
|
27007
26998
|
* @param {string} spaceId The space identifier
|
|
27008
26999
|
* @param {string} bookingId The booking identifier
|
|
27009
27000
|
* @param {BookingUpdateInputs} bookingUpdateInputs
|
|
27010
27001
|
* @param {*} [options] Override http request option.
|
|
27011
27002
|
* @throws {RequiredError}
|
|
27012
27003
|
*/
|
|
27013
|
-
async updateBooking(
|
|
27014
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBooking(
|
|
27004
|
+
async updateBooking(spaceId: string, bookingId: string, bookingUpdateInputs: BookingUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
27005
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBooking(spaceId, bookingId, bookingUpdateInputs, options);
|
|
27015
27006
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27016
27007
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.updateBooking']?.[localVarOperationServerIndex]?.url;
|
|
27017
27008
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -27033,7 +27024,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27033
27024
|
* @throws {RequiredError}
|
|
27034
27025
|
*/
|
|
27035
27026
|
addBookingSpaceTier(requestParameters: BookingsApiAddBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
27036
|
-
return localVarFp.addBookingSpaceTier(requestParameters.
|
|
27027
|
+
return localVarFp.addBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
27037
27028
|
},
|
|
27038
27029
|
/**
|
|
27039
27030
|
* 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.
|
|
@@ -27043,7 +27034,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27043
27034
|
* @throws {RequiredError}
|
|
27044
27035
|
*/
|
|
27045
27036
|
cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27046
|
-
return localVarFp.cancelBooking(requestParameters.
|
|
27037
|
+
return localVarFp.cancelBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27047
27038
|
},
|
|
27048
27039
|
/**
|
|
27049
27040
|
* 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.
|
|
@@ -27053,7 +27044,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27053
27044
|
* @throws {RequiredError}
|
|
27054
27045
|
*/
|
|
27055
27046
|
checkInBooking(requestParameters: BookingsApiCheckInBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27056
|
-
return localVarFp.checkInBooking(requestParameters.
|
|
27047
|
+
return localVarFp.checkInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27057
27048
|
},
|
|
27058
27049
|
/**
|
|
27059
27050
|
* 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.
|
|
@@ -27063,17 +27054,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27063
27054
|
* @throws {RequiredError}
|
|
27064
27055
|
*/
|
|
27065
27056
|
createBooking(requestParameters: BookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27066
|
-
return localVarFp.createBooking(requestParameters.
|
|
27057
|
+
return localVarFp.createBooking(requestParameters.spaceId, requestParameters.bookingCreateInputs, options).then((request) => request(axios, basePath));
|
|
27067
27058
|
},
|
|
27068
27059
|
/**
|
|
27069
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
27060
|
+
* 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).
|
|
27070
27061
|
* @summary Delete a booking
|
|
27071
27062
|
* @param {BookingsApiDeleteBookingRequest} requestParameters Request parameters.
|
|
27072
27063
|
* @param {*} [options] Override http request option.
|
|
27073
27064
|
* @throws {RequiredError}
|
|
27074
27065
|
*/
|
|
27075
|
-
deleteBooking(requestParameters: BookingsApiDeleteBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
27076
|
-
return localVarFp.deleteBooking(requestParameters.
|
|
27066
|
+
deleteBooking(requestParameters: BookingsApiDeleteBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27067
|
+
return localVarFp.deleteBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27077
27068
|
},
|
|
27078
27069
|
/**
|
|
27079
27070
|
* 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\".
|
|
@@ -27156,14 +27147,14 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27156
27147
|
return localVarFp.getBookingResponses(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27157
27148
|
},
|
|
27158
27149
|
/**
|
|
27159
|
-
* Returns a single bookable space
|
|
27150
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
27160
27151
|
* @summary Get a booking space
|
|
27161
27152
|
* @param {BookingsApiGetBookingSpaceRequest} requestParameters Request parameters.
|
|
27162
27153
|
* @param {*} [options] Override http request option.
|
|
27163
27154
|
* @throws {RequiredError}
|
|
27164
27155
|
*/
|
|
27165
27156
|
getBookingSpace(requestParameters: BookingsApiGetBookingSpaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
27166
|
-
return localVarFp.getBookingSpace(requestParameters.
|
|
27157
|
+
return localVarFp.getBookingSpace(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
27167
27158
|
},
|
|
27168
27159
|
/**
|
|
27169
27160
|
* 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\".
|
|
@@ -27173,17 +27164,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27173
27164
|
* @throws {RequiredError}
|
|
27174
27165
|
*/
|
|
27175
27166
|
getBookingSpaceAvailabilities(requestParameters: BookingsApiGetBookingSpaceAvailabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceAvailabilities200Response> {
|
|
27176
|
-
return localVarFp.getBookingSpaceAvailabilities(requestParameters.
|
|
27167
|
+
return localVarFp.getBookingSpaceAvailabilities(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
27177
27168
|
},
|
|
27178
27169
|
/**
|
|
27179
|
-
* Returns a single
|
|
27180
|
-
* @summary Get a booking space
|
|
27170
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
27171
|
+
* @summary Get a booking space availability by id
|
|
27181
27172
|
* @param {BookingsApiGetBookingSpaceAvailabilityRequest} requestParameters Request parameters.
|
|
27182
27173
|
* @param {*} [options] Override http request option.
|
|
27183
27174
|
* @throws {RequiredError}
|
|
27184
27175
|
*/
|
|
27185
27176
|
getBookingSpaceAvailability(requestParameters: BookingsApiGetBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceAvailability200Response> {
|
|
27186
|
-
return localVarFp.getBookingSpaceAvailability(requestParameters.
|
|
27177
|
+
return localVarFp.getBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(axios, basePath));
|
|
27187
27178
|
},
|
|
27188
27179
|
/**
|
|
27189
27180
|
* 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\".
|
|
@@ -27193,7 +27184,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27193
27184
|
* @throws {RequiredError}
|
|
27194
27185
|
*/
|
|
27195
27186
|
getBookingSpaceBlackout(requestParameters: BookingsApiGetBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceBlackout200Response> {
|
|
27196
|
-
return localVarFp.getBookingSpaceBlackout(requestParameters.
|
|
27187
|
+
return localVarFp.getBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(axios, basePath));
|
|
27197
27188
|
},
|
|
27198
27189
|
/**
|
|
27199
27190
|
* 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\".
|
|
@@ -27203,7 +27194,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27203
27194
|
* @throws {RequiredError}
|
|
27204
27195
|
*/
|
|
27205
27196
|
getBookingSpaceBlackouts(requestParameters: BookingsApiGetBookingSpaceBlackoutsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceBlackouts200Response> {
|
|
27206
|
-
return localVarFp.getBookingSpaceBlackouts(requestParameters.
|
|
27197
|
+
return localVarFp.getBookingSpaceBlackouts(requestParameters.spaceId, requestParameters.past, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27207
27198
|
},
|
|
27208
27199
|
/**
|
|
27209
27200
|
* 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\".
|
|
@@ -27213,7 +27204,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27213
27204
|
* @throws {RequiredError}
|
|
27214
27205
|
*/
|
|
27215
27206
|
getBookingSpaceBookings(requestParameters: BookingsApiGetBookingSpaceBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountBookings200Response> {
|
|
27216
|
-
return localVarFp.getBookingSpaceBookings(requestParameters.
|
|
27207
|
+
return localVarFp.getBookingSpaceBookings(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27217
27208
|
},
|
|
27218
27209
|
/**
|
|
27219
27210
|
* 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\".
|
|
@@ -27223,27 +27214,27 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27223
27214
|
* @throws {RequiredError}
|
|
27224
27215
|
*/
|
|
27225
27216
|
getBookingSpacePayments(requestParameters: BookingsApiGetBookingSpacePaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPayments200Response> {
|
|
27226
|
-
return localVarFp.getBookingSpacePayments(requestParameters.
|
|
27217
|
+
return localVarFp.getBookingSpacePayments(requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27227
27218
|
},
|
|
27228
27219
|
/**
|
|
27229
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
27220
|
+
* 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.
|
|
27230
27221
|
* @summary Get a booking space\'s available slots
|
|
27231
27222
|
* @param {BookingsApiGetBookingSpaceSlotsRequest} requestParameters Request parameters.
|
|
27232
27223
|
* @param {*} [options] Override http request option.
|
|
27233
27224
|
* @throws {RequiredError}
|
|
27234
27225
|
*/
|
|
27235
27226
|
getBookingSpaceSlots(requestParameters: BookingsApiGetBookingSpaceSlotsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceSlots200Response> {
|
|
27236
|
-
return localVarFp.getBookingSpaceSlots(requestParameters.
|
|
27227
|
+
return localVarFp.getBookingSpaceSlots(requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(axios, basePath));
|
|
27237
27228
|
},
|
|
27238
27229
|
/**
|
|
27239
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
27230
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
27240
27231
|
* @summary List a booking space\'s assigned tiers
|
|
27241
27232
|
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
27242
27233
|
* @param {*} [options] Override http request option.
|
|
27243
27234
|
* @throws {RequiredError}
|
|
27244
27235
|
*/
|
|
27245
27236
|
getBookingSpaceTiers(requestParameters: BookingsApiGetBookingSpaceTiersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountTiers200Response> {
|
|
27246
|
-
return localVarFp.getBookingSpaceTiers(requestParameters.
|
|
27237
|
+
return localVarFp.getBookingSpaceTiers(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27247
27238
|
},
|
|
27248
27239
|
/**
|
|
27249
27240
|
* 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.
|
|
@@ -27253,27 +27244,27 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27253
27244
|
* @throws {RequiredError}
|
|
27254
27245
|
*/
|
|
27255
27246
|
getBookingSpaceTranslation(requestParameters: BookingsApiGetBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceTranslation200Response> {
|
|
27256
|
-
return localVarFp.getBookingSpaceTranslation(requestParameters.
|
|
27247
|
+
return localVarFp.getBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
27257
27248
|
},
|
|
27258
27249
|
/**
|
|
27259
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
27250
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
27260
27251
|
* @summary List a booking space\'s translations
|
|
27261
27252
|
* @param {BookingsApiGetBookingSpaceTranslationsRequest} requestParameters Request parameters.
|
|
27262
27253
|
* @param {*} [options] Override http request option.
|
|
27263
27254
|
* @throws {RequiredError}
|
|
27264
27255
|
*/
|
|
27265
27256
|
getBookingSpaceTranslations(requestParameters: BookingsApiGetBookingSpaceTranslationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceTranslations200Response> {
|
|
27266
|
-
return localVarFp.getBookingSpaceTranslations(requestParameters.
|
|
27257
|
+
return localVarFp.getBookingSpaceTranslations(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27267
27258
|
},
|
|
27268
27259
|
/**
|
|
27269
|
-
* Returns a paginated list of bookable spaces
|
|
27270
|
-
* @summary List
|
|
27260
|
+
* 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\".
|
|
27261
|
+
* @summary List booking spaces
|
|
27271
27262
|
* @param {BookingsApiGetBookingSpacesRequest} requestParameters Request parameters.
|
|
27272
27263
|
* @param {*} [options] Override http request option.
|
|
27273
27264
|
* @throws {RequiredError}
|
|
27274
27265
|
*/
|
|
27275
|
-
getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaces200Response> {
|
|
27276
|
-
return localVarFp.getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
27266
|
+
getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaces200Response> {
|
|
27267
|
+
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));
|
|
27277
27268
|
},
|
|
27278
27269
|
/**
|
|
27279
27270
|
* 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.
|
|
@@ -27283,7 +27274,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27283
27274
|
* @throws {RequiredError}
|
|
27284
27275
|
*/
|
|
27285
27276
|
removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
27286
|
-
return localVarFp.removeBookingSpaceTier(requestParameters.
|
|
27277
|
+
return localVarFp.removeBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
27287
27278
|
},
|
|
27288
27279
|
/**
|
|
27289
27280
|
* Reverts a previous check-in on a booking by clearing its checked-in timestamp and requires the update bookings permission.
|
|
@@ -27293,17 +27284,17 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27293
27284
|
* @throws {RequiredError}
|
|
27294
27285
|
*/
|
|
27295
27286
|
undoCheckInBooking(requestParameters: BookingsApiUndoCheckInBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27296
|
-
return localVarFp.undoCheckInBooking(requestParameters.
|
|
27287
|
+
return localVarFp.undoCheckInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
27297
27288
|
},
|
|
27298
27289
|
/**
|
|
27299
|
-
* Updates an existing booking for a bookable space
|
|
27290
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
27300
27291
|
* @summary Update a booking
|
|
27301
27292
|
* @param {BookingsApiUpdateBookingRequest} requestParameters Request parameters.
|
|
27302
27293
|
* @param {*} [options] Override http request option.
|
|
27303
27294
|
* @throws {RequiredError}
|
|
27304
27295
|
*/
|
|
27305
27296
|
updateBooking(requestParameters: BookingsApiUpdateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
27306
|
-
return localVarFp.updateBooking(requestParameters.
|
|
27297
|
+
return localVarFp.updateBooking(requestParameters.spaceId, requestParameters.bookingId, requestParameters.bookingUpdateInputs, options).then((request) => request(axios, basePath));
|
|
27307
27298
|
},
|
|
27308
27299
|
};
|
|
27309
27300
|
};
|
|
@@ -27312,11 +27303,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
27312
27303
|
* Request parameters for addBookingSpaceTier operation in BookingsApi.
|
|
27313
27304
|
*/
|
|
27314
27305
|
export interface BookingsApiAddBookingSpaceTierRequest {
|
|
27315
|
-
/**
|
|
27316
|
-
* The place identifier
|
|
27317
|
-
*/
|
|
27318
|
-
readonly placeId: string
|
|
27319
|
-
|
|
27320
27306
|
/**
|
|
27321
27307
|
* The space identifier
|
|
27322
27308
|
*/
|
|
@@ -27332,11 +27318,6 @@ export interface BookingsApiAddBookingSpaceTierRequest {
|
|
|
27332
27318
|
* Request parameters for cancelBooking operation in BookingsApi.
|
|
27333
27319
|
*/
|
|
27334
27320
|
export interface BookingsApiCancelBookingRequest {
|
|
27335
|
-
/**
|
|
27336
|
-
* The place identifier
|
|
27337
|
-
*/
|
|
27338
|
-
readonly placeId: string
|
|
27339
|
-
|
|
27340
27321
|
/**
|
|
27341
27322
|
* The space identifier
|
|
27342
27323
|
*/
|
|
@@ -27352,11 +27333,6 @@ export interface BookingsApiCancelBookingRequest {
|
|
|
27352
27333
|
* Request parameters for checkInBooking operation in BookingsApi.
|
|
27353
27334
|
*/
|
|
27354
27335
|
export interface BookingsApiCheckInBookingRequest {
|
|
27355
|
-
/**
|
|
27356
|
-
* The place identifier
|
|
27357
|
-
*/
|
|
27358
|
-
readonly placeId: string
|
|
27359
|
-
|
|
27360
27336
|
/**
|
|
27361
27337
|
* The space identifier
|
|
27362
27338
|
*/
|
|
@@ -27372,11 +27348,6 @@ export interface BookingsApiCheckInBookingRequest {
|
|
|
27372
27348
|
* Request parameters for createBooking operation in BookingsApi.
|
|
27373
27349
|
*/
|
|
27374
27350
|
export interface BookingsApiCreateBookingRequest {
|
|
27375
|
-
/**
|
|
27376
|
-
* The place identifier
|
|
27377
|
-
*/
|
|
27378
|
-
readonly placeId: string
|
|
27379
|
-
|
|
27380
27351
|
/**
|
|
27381
27352
|
* The space identifier
|
|
27382
27353
|
*/
|
|
@@ -27389,11 +27360,6 @@ export interface BookingsApiCreateBookingRequest {
|
|
|
27389
27360
|
* Request parameters for deleteBooking operation in BookingsApi.
|
|
27390
27361
|
*/
|
|
27391
27362
|
export interface BookingsApiDeleteBookingRequest {
|
|
27392
|
-
/**
|
|
27393
|
-
* The place identifier
|
|
27394
|
-
*/
|
|
27395
|
-
readonly placeId: string
|
|
27396
|
-
|
|
27397
27363
|
/**
|
|
27398
27364
|
* The space identifier
|
|
27399
27365
|
*/
|
|
@@ -27579,11 +27545,6 @@ export interface BookingsApiGetBookingResponsesRequest {
|
|
|
27579
27545
|
* Request parameters for getBookingSpace operation in BookingsApi.
|
|
27580
27546
|
*/
|
|
27581
27547
|
export interface BookingsApiGetBookingSpaceRequest {
|
|
27582
|
-
/**
|
|
27583
|
-
* The place identifier
|
|
27584
|
-
*/
|
|
27585
|
-
readonly placeId: string
|
|
27586
|
-
|
|
27587
27548
|
/**
|
|
27588
27549
|
* The space identifier
|
|
27589
27550
|
*/
|
|
@@ -27594,11 +27555,6 @@ export interface BookingsApiGetBookingSpaceRequest {
|
|
|
27594
27555
|
* Request parameters for getBookingSpaceAvailabilities operation in BookingsApi.
|
|
27595
27556
|
*/
|
|
27596
27557
|
export interface BookingsApiGetBookingSpaceAvailabilitiesRequest {
|
|
27597
|
-
/**
|
|
27598
|
-
* The place identifier
|
|
27599
|
-
*/
|
|
27600
|
-
readonly placeId: string
|
|
27601
|
-
|
|
27602
27558
|
/**
|
|
27603
27559
|
* The space identifier
|
|
27604
27560
|
*/
|
|
@@ -27609,11 +27565,6 @@ export interface BookingsApiGetBookingSpaceAvailabilitiesRequest {
|
|
|
27609
27565
|
* Request parameters for getBookingSpaceAvailability operation in BookingsApi.
|
|
27610
27566
|
*/
|
|
27611
27567
|
export interface BookingsApiGetBookingSpaceAvailabilityRequest {
|
|
27612
|
-
/**
|
|
27613
|
-
* The place identifier
|
|
27614
|
-
*/
|
|
27615
|
-
readonly placeId: string
|
|
27616
|
-
|
|
27617
27568
|
/**
|
|
27618
27569
|
* The space identifier
|
|
27619
27570
|
*/
|
|
@@ -27629,11 +27580,6 @@ export interface BookingsApiGetBookingSpaceAvailabilityRequest {
|
|
|
27629
27580
|
* Request parameters for getBookingSpaceBlackout operation in BookingsApi.
|
|
27630
27581
|
*/
|
|
27631
27582
|
export interface BookingsApiGetBookingSpaceBlackoutRequest {
|
|
27632
|
-
/**
|
|
27633
|
-
* The place identifier
|
|
27634
|
-
*/
|
|
27635
|
-
readonly placeId: string
|
|
27636
|
-
|
|
27637
27583
|
/**
|
|
27638
27584
|
* The space identifier
|
|
27639
27585
|
*/
|
|
@@ -27649,11 +27595,6 @@ export interface BookingsApiGetBookingSpaceBlackoutRequest {
|
|
|
27649
27595
|
* Request parameters for getBookingSpaceBlackouts operation in BookingsApi.
|
|
27650
27596
|
*/
|
|
27651
27597
|
export interface BookingsApiGetBookingSpaceBlackoutsRequest {
|
|
27652
|
-
/**
|
|
27653
|
-
* The place identifier
|
|
27654
|
-
*/
|
|
27655
|
-
readonly placeId: string
|
|
27656
|
-
|
|
27657
27598
|
/**
|
|
27658
27599
|
* The space identifier
|
|
27659
27600
|
*/
|
|
@@ -27689,11 +27630,6 @@ export interface BookingsApiGetBookingSpaceBlackoutsRequest {
|
|
|
27689
27630
|
* Request parameters for getBookingSpaceBookings operation in BookingsApi.
|
|
27690
27631
|
*/
|
|
27691
27632
|
export interface BookingsApiGetBookingSpaceBookingsRequest {
|
|
27692
|
-
/**
|
|
27693
|
-
* The place identifier
|
|
27694
|
-
*/
|
|
27695
|
-
readonly placeId: string
|
|
27696
|
-
|
|
27697
27633
|
/**
|
|
27698
27634
|
* The space identifier
|
|
27699
27635
|
*/
|
|
@@ -27734,11 +27670,6 @@ export interface BookingsApiGetBookingSpaceBookingsRequest {
|
|
|
27734
27670
|
* Request parameters for getBookingSpacePayments operation in BookingsApi.
|
|
27735
27671
|
*/
|
|
27736
27672
|
export interface BookingsApiGetBookingSpacePaymentsRequest {
|
|
27737
|
-
/**
|
|
27738
|
-
* The place identifier
|
|
27739
|
-
*/
|
|
27740
|
-
readonly placeId: string
|
|
27741
|
-
|
|
27742
27673
|
/**
|
|
27743
27674
|
* The space identifier
|
|
27744
27675
|
*/
|
|
@@ -27779,11 +27710,6 @@ export interface BookingsApiGetBookingSpacePaymentsRequest {
|
|
|
27779
27710
|
* Request parameters for getBookingSpaceSlots operation in BookingsApi.
|
|
27780
27711
|
*/
|
|
27781
27712
|
export interface BookingsApiGetBookingSpaceSlotsRequest {
|
|
27782
|
-
/**
|
|
27783
|
-
* The place identifier
|
|
27784
|
-
*/
|
|
27785
|
-
readonly placeId: string
|
|
27786
|
-
|
|
27787
27713
|
/**
|
|
27788
27714
|
* The space identifier
|
|
27789
27715
|
*/
|
|
@@ -27799,11 +27725,6 @@ export interface BookingsApiGetBookingSpaceSlotsRequest {
|
|
|
27799
27725
|
* Request parameters for getBookingSpaceTiers operation in BookingsApi.
|
|
27800
27726
|
*/
|
|
27801
27727
|
export interface BookingsApiGetBookingSpaceTiersRequest {
|
|
27802
|
-
/**
|
|
27803
|
-
* The place identifier
|
|
27804
|
-
*/
|
|
27805
|
-
readonly placeId: string
|
|
27806
|
-
|
|
27807
27728
|
/**
|
|
27808
27729
|
* The space identifier
|
|
27809
27730
|
*/
|
|
@@ -27834,11 +27755,6 @@ export interface BookingsApiGetBookingSpaceTiersRequest {
|
|
|
27834
27755
|
* Request parameters for getBookingSpaceTranslation operation in BookingsApi.
|
|
27835
27756
|
*/
|
|
27836
27757
|
export interface BookingsApiGetBookingSpaceTranslationRequest {
|
|
27837
|
-
/**
|
|
27838
|
-
* The place identifier
|
|
27839
|
-
*/
|
|
27840
|
-
readonly placeId: string
|
|
27841
|
-
|
|
27842
27758
|
/**
|
|
27843
27759
|
* The space identifier
|
|
27844
27760
|
*/
|
|
@@ -27854,11 +27770,6 @@ export interface BookingsApiGetBookingSpaceTranslationRequest {
|
|
|
27854
27770
|
* Request parameters for getBookingSpaceTranslations operation in BookingsApi.
|
|
27855
27771
|
*/
|
|
27856
27772
|
export interface BookingsApiGetBookingSpaceTranslationsRequest {
|
|
27857
|
-
/**
|
|
27858
|
-
* The place identifier
|
|
27859
|
-
*/
|
|
27860
|
-
readonly placeId: string
|
|
27861
|
-
|
|
27862
27773
|
/**
|
|
27863
27774
|
* The space identifier
|
|
27864
27775
|
*/
|
|
@@ -27890,9 +27801,24 @@ export interface BookingsApiGetBookingSpaceTranslationsRequest {
|
|
|
27890
27801
|
*/
|
|
27891
27802
|
export interface BookingsApiGetBookingSpacesRequest {
|
|
27892
27803
|
/**
|
|
27893
|
-
*
|
|
27804
|
+
* Filter by placeId
|
|
27894
27805
|
*/
|
|
27895
|
-
readonly placeId
|
|
27806
|
+
readonly placeId?: string
|
|
27807
|
+
|
|
27808
|
+
/**
|
|
27809
|
+
* Filter by eventId
|
|
27810
|
+
*/
|
|
27811
|
+
readonly eventId?: string
|
|
27812
|
+
|
|
27813
|
+
/**
|
|
27814
|
+
* Filter by groupId
|
|
27815
|
+
*/
|
|
27816
|
+
readonly groupId?: string
|
|
27817
|
+
|
|
27818
|
+
/**
|
|
27819
|
+
* Filter by accountId
|
|
27820
|
+
*/
|
|
27821
|
+
readonly accountId?: string
|
|
27896
27822
|
|
|
27897
27823
|
/**
|
|
27898
27824
|
* Page number
|
|
@@ -27919,11 +27845,6 @@ export interface BookingsApiGetBookingSpacesRequest {
|
|
|
27919
27845
|
* Request parameters for removeBookingSpaceTier operation in BookingsApi.
|
|
27920
27846
|
*/
|
|
27921
27847
|
export interface BookingsApiRemoveBookingSpaceTierRequest {
|
|
27922
|
-
/**
|
|
27923
|
-
* The place identifier
|
|
27924
|
-
*/
|
|
27925
|
-
readonly placeId: string
|
|
27926
|
-
|
|
27927
27848
|
/**
|
|
27928
27849
|
* The space identifier
|
|
27929
27850
|
*/
|
|
@@ -27939,11 +27860,6 @@ export interface BookingsApiRemoveBookingSpaceTierRequest {
|
|
|
27939
27860
|
* Request parameters for undoCheckInBooking operation in BookingsApi.
|
|
27940
27861
|
*/
|
|
27941
27862
|
export interface BookingsApiUndoCheckInBookingRequest {
|
|
27942
|
-
/**
|
|
27943
|
-
* The place identifier
|
|
27944
|
-
*/
|
|
27945
|
-
readonly placeId: string
|
|
27946
|
-
|
|
27947
27863
|
/**
|
|
27948
27864
|
* The space identifier
|
|
27949
27865
|
*/
|
|
@@ -27959,11 +27875,6 @@ export interface BookingsApiUndoCheckInBookingRequest {
|
|
|
27959
27875
|
* Request parameters for updateBooking operation in BookingsApi.
|
|
27960
27876
|
*/
|
|
27961
27877
|
export interface BookingsApiUpdateBookingRequest {
|
|
27962
|
-
/**
|
|
27963
|
-
* The place identifier
|
|
27964
|
-
*/
|
|
27965
|
-
readonly placeId: string
|
|
27966
|
-
|
|
27967
27878
|
/**
|
|
27968
27879
|
* The space identifier
|
|
27969
27880
|
*/
|
|
@@ -27989,7 +27900,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
27989
27900
|
* @throws {RequiredError}
|
|
27990
27901
|
*/
|
|
27991
27902
|
public addBookingSpaceTier(requestParameters: BookingsApiAddBookingSpaceTierRequest, options?: RawAxiosRequestConfig) {
|
|
27992
|
-
return BookingsApiFp(this.configuration).addBookingSpaceTier(requestParameters.
|
|
27903
|
+
return BookingsApiFp(this.configuration).addBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
27993
27904
|
}
|
|
27994
27905
|
|
|
27995
27906
|
/**
|
|
@@ -28000,7 +27911,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28000
27911
|
* @throws {RequiredError}
|
|
28001
27912
|
*/
|
|
28002
27913
|
public cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28003
|
-
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.
|
|
27914
|
+
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
28004
27915
|
}
|
|
28005
27916
|
|
|
28006
27917
|
/**
|
|
@@ -28011,7 +27922,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28011
27922
|
* @throws {RequiredError}
|
|
28012
27923
|
*/
|
|
28013
27924
|
public checkInBooking(requestParameters: BookingsApiCheckInBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28014
|
-
return BookingsApiFp(this.configuration).checkInBooking(requestParameters.
|
|
27925
|
+
return BookingsApiFp(this.configuration).checkInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
28015
27926
|
}
|
|
28016
27927
|
|
|
28017
27928
|
/**
|
|
@@ -28022,18 +27933,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
28022
27933
|
* @throws {RequiredError}
|
|
28023
27934
|
*/
|
|
28024
27935
|
public createBooking(requestParameters: BookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28025
|
-
return BookingsApiFp(this.configuration).createBooking(requestParameters.
|
|
27936
|
+
return BookingsApiFp(this.configuration).createBooking(requestParameters.spaceId, requestParameters.bookingCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28026
27937
|
}
|
|
28027
27938
|
|
|
28028
27939
|
/**
|
|
28029
|
-
* Permanently deletes an existing booking from a booking space and requires the delete bookings permission.
|
|
27940
|
+
* 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).
|
|
28030
27941
|
* @summary Delete a booking
|
|
28031
27942
|
* @param {BookingsApiDeleteBookingRequest} requestParameters Request parameters.
|
|
28032
27943
|
* @param {*} [options] Override http request option.
|
|
28033
27944
|
* @throws {RequiredError}
|
|
28034
27945
|
*/
|
|
28035
27946
|
public deleteBooking(requestParameters: BookingsApiDeleteBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28036
|
-
return BookingsApiFp(this.configuration).deleteBooking(requestParameters.
|
|
27947
|
+
return BookingsApiFp(this.configuration).deleteBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
28037
27948
|
}
|
|
28038
27949
|
|
|
28039
27950
|
/**
|
|
@@ -28125,14 +28036,14 @@ export class BookingsApi extends BaseAPI {
|
|
|
28125
28036
|
}
|
|
28126
28037
|
|
|
28127
28038
|
/**
|
|
28128
|
-
* Returns a single bookable space
|
|
28039
|
+
* Returns a single bookable space by its id or slug; requires the \"read\" permission on \"bookings\".
|
|
28129
28040
|
* @summary Get a booking space
|
|
28130
28041
|
* @param {BookingsApiGetBookingSpaceRequest} requestParameters Request parameters.
|
|
28131
28042
|
* @param {*} [options] Override http request option.
|
|
28132
28043
|
* @throws {RequiredError}
|
|
28133
28044
|
*/
|
|
28134
28045
|
public getBookingSpace(requestParameters: BookingsApiGetBookingSpaceRequest, options?: RawAxiosRequestConfig) {
|
|
28135
|
-
return BookingsApiFp(this.configuration).getBookingSpace(requestParameters.
|
|
28046
|
+
return BookingsApiFp(this.configuration).getBookingSpace(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
28136
28047
|
}
|
|
28137
28048
|
|
|
28138
28049
|
/**
|
|
@@ -28143,18 +28054,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
28143
28054
|
* @throws {RequiredError}
|
|
28144
28055
|
*/
|
|
28145
28056
|
public getBookingSpaceAvailabilities(requestParameters: BookingsApiGetBookingSpaceAvailabilitiesRequest, options?: RawAxiosRequestConfig) {
|
|
28146
|
-
return BookingsApiFp(this.configuration).getBookingSpaceAvailabilities(requestParameters.
|
|
28057
|
+
return BookingsApiFp(this.configuration).getBookingSpaceAvailabilities(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
28147
28058
|
}
|
|
28148
28059
|
|
|
28149
28060
|
/**
|
|
28150
|
-
* Returns a single
|
|
28151
|
-
* @summary Get a booking space
|
|
28061
|
+
* Returns a single availability window for a booking space by id; requires the \"read\" permission on \"bookings\".
|
|
28062
|
+
* @summary Get a booking space availability by id
|
|
28152
28063
|
* @param {BookingsApiGetBookingSpaceAvailabilityRequest} requestParameters Request parameters.
|
|
28153
28064
|
* @param {*} [options] Override http request option.
|
|
28154
28065
|
* @throws {RequiredError}
|
|
28155
28066
|
*/
|
|
28156
28067
|
public getBookingSpaceAvailability(requestParameters: BookingsApiGetBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
28157
|
-
return BookingsApiFp(this.configuration).getBookingSpaceAvailability(requestParameters.
|
|
28068
|
+
return BookingsApiFp(this.configuration).getBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(this.axios, this.basePath));
|
|
28158
28069
|
}
|
|
28159
28070
|
|
|
28160
28071
|
/**
|
|
@@ -28165,7 +28076,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28165
28076
|
* @throws {RequiredError}
|
|
28166
28077
|
*/
|
|
28167
28078
|
public getBookingSpaceBlackout(requestParameters: BookingsApiGetBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig) {
|
|
28168
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBlackout(requestParameters.
|
|
28079
|
+
return BookingsApiFp(this.configuration).getBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(this.axios, this.basePath));
|
|
28169
28080
|
}
|
|
28170
28081
|
|
|
28171
28082
|
/**
|
|
@@ -28176,7 +28087,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28176
28087
|
* @throws {RequiredError}
|
|
28177
28088
|
*/
|
|
28178
28089
|
public getBookingSpaceBlackouts(requestParameters: BookingsApiGetBookingSpaceBlackoutsRequest, options?: RawAxiosRequestConfig) {
|
|
28179
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBlackouts(requestParameters.
|
|
28090
|
+
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));
|
|
28180
28091
|
}
|
|
28181
28092
|
|
|
28182
28093
|
/**
|
|
@@ -28187,7 +28098,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28187
28098
|
* @throws {RequiredError}
|
|
28188
28099
|
*/
|
|
28189
28100
|
public getBookingSpaceBookings(requestParameters: BookingsApiGetBookingSpaceBookingsRequest, options?: RawAxiosRequestConfig) {
|
|
28190
|
-
return BookingsApiFp(this.configuration).getBookingSpaceBookings(requestParameters.
|
|
28101
|
+
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));
|
|
28191
28102
|
}
|
|
28192
28103
|
|
|
28193
28104
|
/**
|
|
@@ -28198,29 +28109,29 @@ export class BookingsApi extends BaseAPI {
|
|
|
28198
28109
|
* @throws {RequiredError}
|
|
28199
28110
|
*/
|
|
28200
28111
|
public getBookingSpacePayments(requestParameters: BookingsApiGetBookingSpacePaymentsRequest, options?: RawAxiosRequestConfig) {
|
|
28201
|
-
return BookingsApiFp(this.configuration).getBookingSpacePayments(requestParameters.
|
|
28112
|
+
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));
|
|
28202
28113
|
}
|
|
28203
28114
|
|
|
28204
28115
|
/**
|
|
28205
|
-
* Returns the day-by-day list of bookable time slots for a booking space
|
|
28116
|
+
* 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.
|
|
28206
28117
|
* @summary Get a booking space\'s available slots
|
|
28207
28118
|
* @param {BookingsApiGetBookingSpaceSlotsRequest} requestParameters Request parameters.
|
|
28208
28119
|
* @param {*} [options] Override http request option.
|
|
28209
28120
|
* @throws {RequiredError}
|
|
28210
28121
|
*/
|
|
28211
28122
|
public getBookingSpaceSlots(requestParameters: BookingsApiGetBookingSpaceSlotsRequest, options?: RawAxiosRequestConfig) {
|
|
28212
|
-
return BookingsApiFp(this.configuration).getBookingSpaceSlots(requestParameters.
|
|
28123
|
+
return BookingsApiFp(this.configuration).getBookingSpaceSlots(requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(this.axios, this.basePath));
|
|
28213
28124
|
}
|
|
28214
28125
|
|
|
28215
28126
|
/**
|
|
28216
|
-
* Returns a paginated, searchable list of membership tiers assigned to a booking space
|
|
28127
|
+
* Returns a paginated, searchable list of membership tiers assigned to a booking space, requiring read permission on bookings and tiers.
|
|
28217
28128
|
* @summary List a booking space\'s assigned tiers
|
|
28218
28129
|
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
28219
28130
|
* @param {*} [options] Override http request option.
|
|
28220
28131
|
* @throws {RequiredError}
|
|
28221
28132
|
*/
|
|
28222
28133
|
public getBookingSpaceTiers(requestParameters: BookingsApiGetBookingSpaceTiersRequest, options?: RawAxiosRequestConfig) {
|
|
28223
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTiers(requestParameters.
|
|
28134
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTiers(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28224
28135
|
}
|
|
28225
28136
|
|
|
28226
28137
|
/**
|
|
@@ -28231,29 +28142,29 @@ export class BookingsApi extends BaseAPI {
|
|
|
28231
28142
|
* @throws {RequiredError}
|
|
28232
28143
|
*/
|
|
28233
28144
|
public getBookingSpaceTranslation(requestParameters: BookingsApiGetBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
28234
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTranslation(requestParameters.
|
|
28145
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
28235
28146
|
}
|
|
28236
28147
|
|
|
28237
28148
|
/**
|
|
28238
|
-
* Returns a paginated, searchable list of locale translations for a booking space
|
|
28149
|
+
* Returns a paginated, searchable list of locale translations for a booking space, requiring read permission on bookings.
|
|
28239
28150
|
* @summary List a booking space\'s translations
|
|
28240
28151
|
* @param {BookingsApiGetBookingSpaceTranslationsRequest} requestParameters Request parameters.
|
|
28241
28152
|
* @param {*} [options] Override http request option.
|
|
28242
28153
|
* @throws {RequiredError}
|
|
28243
28154
|
*/
|
|
28244
28155
|
public getBookingSpaceTranslations(requestParameters: BookingsApiGetBookingSpaceTranslationsRequest, options?: RawAxiosRequestConfig) {
|
|
28245
|
-
return BookingsApiFp(this.configuration).getBookingSpaceTranslations(requestParameters.
|
|
28156
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTranslations(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28246
28157
|
}
|
|
28247
28158
|
|
|
28248
28159
|
/**
|
|
28249
|
-
* Returns a paginated list of bookable spaces
|
|
28250
|
-
* @summary List
|
|
28160
|
+
* 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\".
|
|
28161
|
+
* @summary List booking spaces
|
|
28251
28162
|
* @param {BookingsApiGetBookingSpacesRequest} requestParameters Request parameters.
|
|
28252
28163
|
* @param {*} [options] Override http request option.
|
|
28253
28164
|
* @throws {RequiredError}
|
|
28254
28165
|
*/
|
|
28255
|
-
public getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest, options?: RawAxiosRequestConfig) {
|
|
28256
|
-
return BookingsApiFp(this.configuration).getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
28166
|
+
public getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest = {}, options?: RawAxiosRequestConfig) {
|
|
28167
|
+
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));
|
|
28257
28168
|
}
|
|
28258
28169
|
|
|
28259
28170
|
/**
|
|
@@ -28264,7 +28175,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
28264
28175
|
* @throws {RequiredError}
|
|
28265
28176
|
*/
|
|
28266
28177
|
public removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig) {
|
|
28267
|
-
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.
|
|
28178
|
+
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
28268
28179
|
}
|
|
28269
28180
|
|
|
28270
28181
|
/**
|
|
@@ -28275,18 +28186,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
28275
28186
|
* @throws {RequiredError}
|
|
28276
28187
|
*/
|
|
28277
28188
|
public undoCheckInBooking(requestParameters: BookingsApiUndoCheckInBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28278
|
-
return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.
|
|
28189
|
+
return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
28279
28190
|
}
|
|
28280
28191
|
|
|
28281
28192
|
/**
|
|
28282
|
-
* Updates an existing booking for a bookable space
|
|
28193
|
+
* Updates an existing booking for a bookable space, identified by spaceId and bookingId, requiring update permission on bookings.
|
|
28283
28194
|
* @summary Update a booking
|
|
28284
28195
|
* @param {BookingsApiUpdateBookingRequest} requestParameters Request parameters.
|
|
28285
28196
|
* @param {*} [options] Override http request option.
|
|
28286
28197
|
* @throws {RequiredError}
|
|
28287
28198
|
*/
|
|
28288
28199
|
public updateBooking(requestParameters: BookingsApiUpdateBookingRequest, options?: RawAxiosRequestConfig) {
|
|
28289
|
-
return BookingsApiFp(this.configuration).updateBooking(requestParameters.
|
|
28200
|
+
return BookingsApiFp(this.configuration).updateBooking(requestParameters.spaceId, requestParameters.bookingId, requestParameters.bookingUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28290
28201
|
}
|
|
28291
28202
|
}
|
|
28292
28203
|
|
|
@@ -28300,21 +28211,17 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
28300
28211
|
/**
|
|
28301
28212
|
* 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.
|
|
28302
28213
|
* @summary Create a booking space availability
|
|
28303
|
-
* @param {string} placeId The place identifier
|
|
28304
28214
|
* @param {string} spaceId The space identifier
|
|
28305
28215
|
* @param {BookingSpaceAvailabilityCreateInputs} bookingSpaceAvailabilityCreateInputs
|
|
28306
28216
|
* @param {*} [options] Override http request option.
|
|
28307
28217
|
* @throws {RequiredError}
|
|
28308
28218
|
*/
|
|
28309
|
-
createBookingSpaceAvailability: async (
|
|
28310
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28311
|
-
assertParamExists('createBookingSpaceAvailability', 'placeId', placeId)
|
|
28219
|
+
createBookingSpaceAvailability: async (spaceId: string, bookingSpaceAvailabilityCreateInputs: BookingSpaceAvailabilityCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28312
28220
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28313
28221
|
assertParamExists('createBookingSpaceAvailability', 'spaceId', spaceId)
|
|
28314
28222
|
// verify required parameter 'bookingSpaceAvailabilityCreateInputs' is not null or undefined
|
|
28315
28223
|
assertParamExists('createBookingSpaceAvailability', 'bookingSpaceAvailabilityCreateInputs', bookingSpaceAvailabilityCreateInputs)
|
|
28316
|
-
const localVarPath = `/bookings/
|
|
28317
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28224
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities`
|
|
28318
28225
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
28319
28226
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28320
28227
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -28349,21 +28256,17 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
28349
28256
|
/**
|
|
28350
28257
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
28351
28258
|
* @summary Delete a booking space availability
|
|
28352
|
-
* @param {string} placeId The place identifier
|
|
28353
28259
|
* @param {string} spaceId The space identifier
|
|
28354
28260
|
* @param {string} availabilityId The availability identifier
|
|
28355
28261
|
* @param {*} [options] Override http request option.
|
|
28356
28262
|
* @throws {RequiredError}
|
|
28357
28263
|
*/
|
|
28358
|
-
deleteBookingSpaceAvailability: async (
|
|
28359
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28360
|
-
assertParamExists('deleteBookingSpaceAvailability', 'placeId', placeId)
|
|
28264
|
+
deleteBookingSpaceAvailability: async (spaceId: string, availabilityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28361
28265
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28362
28266
|
assertParamExists('deleteBookingSpaceAvailability', 'spaceId', spaceId)
|
|
28363
28267
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
28364
28268
|
assertParamExists('deleteBookingSpaceAvailability', 'availabilityId', availabilityId)
|
|
28365
|
-
const localVarPath = `/bookings/
|
|
28366
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28269
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
28367
28270
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
28368
28271
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
28369
28272
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -28397,24 +28300,20 @@ export const BookingsAvailabilitiesApiAxiosParamCreator = function (configuratio
|
|
|
28397
28300
|
/**
|
|
28398
28301
|
* 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.
|
|
28399
28302
|
* @summary Update a booking space availability
|
|
28400
|
-
* @param {string} placeId The place identifier
|
|
28401
28303
|
* @param {string} spaceId The space identifier
|
|
28402
28304
|
* @param {string} availabilityId The availability identifier
|
|
28403
28305
|
* @param {BookingSpaceAvailabilityUpdateInputs} bookingSpaceAvailabilityUpdateInputs
|
|
28404
28306
|
* @param {*} [options] Override http request option.
|
|
28405
28307
|
* @throws {RequiredError}
|
|
28406
28308
|
*/
|
|
28407
|
-
updateBookingSpaceAvailability: async (
|
|
28408
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28409
|
-
assertParamExists('updateBookingSpaceAvailability', 'placeId', placeId)
|
|
28309
|
+
updateBookingSpaceAvailability: async (spaceId: string, availabilityId: string, bookingSpaceAvailabilityUpdateInputs: BookingSpaceAvailabilityUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28410
28310
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28411
28311
|
assertParamExists('updateBookingSpaceAvailability', 'spaceId', spaceId)
|
|
28412
28312
|
// verify required parameter 'availabilityId' is not null or undefined
|
|
28413
28313
|
assertParamExists('updateBookingSpaceAvailability', 'availabilityId', availabilityId)
|
|
28414
28314
|
// verify required parameter 'bookingSpaceAvailabilityUpdateInputs' is not null or undefined
|
|
28415
28315
|
assertParamExists('updateBookingSpaceAvailability', 'bookingSpaceAvailabilityUpdateInputs', bookingSpaceAvailabilityUpdateInputs)
|
|
28416
|
-
const localVarPath = `/bookings/
|
|
28417
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28316
|
+
const localVarPath = `/bookings/spaces/{spaceId}/availabilities/{availabilityId}`
|
|
28418
28317
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
28419
28318
|
.replace(`{${"availabilityId"}}`, encodeURIComponent(String(availabilityId)));
|
|
28420
28319
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -28459,14 +28358,13 @@ export const BookingsAvailabilitiesApiFp = function(configuration?: Configuratio
|
|
|
28459
28358
|
/**
|
|
28460
28359
|
* 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.
|
|
28461
28360
|
* @summary Create a booking space availability
|
|
28462
|
-
* @param {string} placeId The place identifier
|
|
28463
28361
|
* @param {string} spaceId The space identifier
|
|
28464
28362
|
* @param {BookingSpaceAvailabilityCreateInputs} bookingSpaceAvailabilityCreateInputs
|
|
28465
28363
|
* @param {*} [options] Override http request option.
|
|
28466
28364
|
* @throws {RequiredError}
|
|
28467
28365
|
*/
|
|
28468
|
-
async createBookingSpaceAvailability(
|
|
28469
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceAvailability(
|
|
28366
|
+
async createBookingSpaceAvailability(spaceId: string, bookingSpaceAvailabilityCreateInputs: BookingSpaceAvailabilityCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceAvailability200Response>> {
|
|
28367
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceAvailability(spaceId, bookingSpaceAvailabilityCreateInputs, options);
|
|
28470
28368
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28471
28369
|
const localVarOperationServerBasePath = operationServerMap['BookingsAvailabilitiesApi.createBookingSpaceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
28472
28370
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28474,14 +28372,13 @@ export const BookingsAvailabilitiesApiFp = function(configuration?: Configuratio
|
|
|
28474
28372
|
/**
|
|
28475
28373
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
28476
28374
|
* @summary Delete a booking space availability
|
|
28477
|
-
* @param {string} placeId The place identifier
|
|
28478
28375
|
* @param {string} spaceId The space identifier
|
|
28479
28376
|
* @param {string} availabilityId The availability identifier
|
|
28480
28377
|
* @param {*} [options] Override http request option.
|
|
28481
28378
|
* @throws {RequiredError}
|
|
28482
28379
|
*/
|
|
28483
|
-
async deleteBookingSpaceAvailability(
|
|
28484
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceAvailability(
|
|
28380
|
+
async deleteBookingSpaceAvailability(spaceId: string, availabilityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
28381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceAvailability(spaceId, availabilityId, options);
|
|
28485
28382
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28486
28383
|
const localVarOperationServerBasePath = operationServerMap['BookingsAvailabilitiesApi.deleteBookingSpaceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
28487
28384
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28489,15 +28386,14 @@ export const BookingsAvailabilitiesApiFp = function(configuration?: Configuratio
|
|
|
28489
28386
|
/**
|
|
28490
28387
|
* 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.
|
|
28491
28388
|
* @summary Update a booking space availability
|
|
28492
|
-
* @param {string} placeId The place identifier
|
|
28493
28389
|
* @param {string} spaceId The space identifier
|
|
28494
28390
|
* @param {string} availabilityId The availability identifier
|
|
28495
28391
|
* @param {BookingSpaceAvailabilityUpdateInputs} bookingSpaceAvailabilityUpdateInputs
|
|
28496
28392
|
* @param {*} [options] Override http request option.
|
|
28497
28393
|
* @throws {RequiredError}
|
|
28498
28394
|
*/
|
|
28499
|
-
async updateBookingSpaceAvailability(
|
|
28500
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceAvailability(
|
|
28395
|
+
async updateBookingSpaceAvailability(spaceId: string, availabilityId: string, bookingSpaceAvailabilityUpdateInputs: BookingSpaceAvailabilityUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceAvailability200Response>> {
|
|
28396
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceAvailability(spaceId, availabilityId, bookingSpaceAvailabilityUpdateInputs, options);
|
|
28501
28397
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28502
28398
|
const localVarOperationServerBasePath = operationServerMap['BookingsAvailabilitiesApi.updateBookingSpaceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
28503
28399
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28519,7 +28415,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration?: Config
|
|
|
28519
28415
|
* @throws {RequiredError}
|
|
28520
28416
|
*/
|
|
28521
28417
|
createBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiCreateBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceAvailability200Response> {
|
|
28522
|
-
return localVarFp.createBookingSpaceAvailability(requestParameters.
|
|
28418
|
+
return localVarFp.createBookingSpaceAvailability(requestParameters.spaceId, requestParameters.bookingSpaceAvailabilityCreateInputs, options).then((request) => request(axios, basePath));
|
|
28523
28419
|
},
|
|
28524
28420
|
/**
|
|
28525
28421
|
* Permanently deletes the recurring availability window identified by availabilityId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -28529,7 +28425,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration?: Config
|
|
|
28529
28425
|
* @throws {RequiredError}
|
|
28530
28426
|
*/
|
|
28531
28427
|
deleteBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiDeleteBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
28532
|
-
return localVarFp.deleteBookingSpaceAvailability(requestParameters.
|
|
28428
|
+
return localVarFp.deleteBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(axios, basePath));
|
|
28533
28429
|
},
|
|
28534
28430
|
/**
|
|
28535
28431
|
* 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.
|
|
@@ -28539,7 +28435,7 @@ export const BookingsAvailabilitiesApiFactory = function (configuration?: Config
|
|
|
28539
28435
|
* @throws {RequiredError}
|
|
28540
28436
|
*/
|
|
28541
28437
|
updateBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiUpdateBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceAvailability200Response> {
|
|
28542
|
-
return localVarFp.updateBookingSpaceAvailability(requestParameters.
|
|
28438
|
+
return localVarFp.updateBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, requestParameters.bookingSpaceAvailabilityUpdateInputs, options).then((request) => request(axios, basePath));
|
|
28543
28439
|
},
|
|
28544
28440
|
};
|
|
28545
28441
|
};
|
|
@@ -28548,11 +28444,6 @@ export const BookingsAvailabilitiesApiFactory = function (configuration?: Config
|
|
|
28548
28444
|
* Request parameters for createBookingSpaceAvailability operation in BookingsAvailabilitiesApi.
|
|
28549
28445
|
*/
|
|
28550
28446
|
export interface BookingsAvailabilitiesApiCreateBookingSpaceAvailabilityRequest {
|
|
28551
|
-
/**
|
|
28552
|
-
* The place identifier
|
|
28553
|
-
*/
|
|
28554
|
-
readonly placeId: string
|
|
28555
|
-
|
|
28556
28447
|
/**
|
|
28557
28448
|
* The space identifier
|
|
28558
28449
|
*/
|
|
@@ -28565,11 +28456,6 @@ export interface BookingsAvailabilitiesApiCreateBookingSpaceAvailabilityRequest
|
|
|
28565
28456
|
* Request parameters for deleteBookingSpaceAvailability operation in BookingsAvailabilitiesApi.
|
|
28566
28457
|
*/
|
|
28567
28458
|
export interface BookingsAvailabilitiesApiDeleteBookingSpaceAvailabilityRequest {
|
|
28568
|
-
/**
|
|
28569
|
-
* The place identifier
|
|
28570
|
-
*/
|
|
28571
|
-
readonly placeId: string
|
|
28572
|
-
|
|
28573
28459
|
/**
|
|
28574
28460
|
* The space identifier
|
|
28575
28461
|
*/
|
|
@@ -28585,11 +28471,6 @@ export interface BookingsAvailabilitiesApiDeleteBookingSpaceAvailabilityRequest
|
|
|
28585
28471
|
* Request parameters for updateBookingSpaceAvailability operation in BookingsAvailabilitiesApi.
|
|
28586
28472
|
*/
|
|
28587
28473
|
export interface BookingsAvailabilitiesApiUpdateBookingSpaceAvailabilityRequest {
|
|
28588
|
-
/**
|
|
28589
|
-
* The place identifier
|
|
28590
|
-
*/
|
|
28591
|
-
readonly placeId: string
|
|
28592
|
-
|
|
28593
28474
|
/**
|
|
28594
28475
|
* The space identifier
|
|
28595
28476
|
*/
|
|
@@ -28615,7 +28496,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
28615
28496
|
* @throws {RequiredError}
|
|
28616
28497
|
*/
|
|
28617
28498
|
public createBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiCreateBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
28618
|
-
return BookingsAvailabilitiesApiFp(this.configuration).createBookingSpaceAvailability(requestParameters.
|
|
28499
|
+
return BookingsAvailabilitiesApiFp(this.configuration).createBookingSpaceAvailability(requestParameters.spaceId, requestParameters.bookingSpaceAvailabilityCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28619
28500
|
}
|
|
28620
28501
|
|
|
28621
28502
|
/**
|
|
@@ -28626,7 +28507,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
28626
28507
|
* @throws {RequiredError}
|
|
28627
28508
|
*/
|
|
28628
28509
|
public deleteBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiDeleteBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
28629
|
-
return BookingsAvailabilitiesApiFp(this.configuration).deleteBookingSpaceAvailability(requestParameters.
|
|
28510
|
+
return BookingsAvailabilitiesApiFp(this.configuration).deleteBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, options).then((request) => request(this.axios, this.basePath));
|
|
28630
28511
|
}
|
|
28631
28512
|
|
|
28632
28513
|
/**
|
|
@@ -28637,7 +28518,7 @@ export class BookingsAvailabilitiesApi extends BaseAPI {
|
|
|
28637
28518
|
* @throws {RequiredError}
|
|
28638
28519
|
*/
|
|
28639
28520
|
public updateBookingSpaceAvailability(requestParameters: BookingsAvailabilitiesApiUpdateBookingSpaceAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
28640
|
-
return BookingsAvailabilitiesApiFp(this.configuration).updateBookingSpaceAvailability(requestParameters.
|
|
28521
|
+
return BookingsAvailabilitiesApiFp(this.configuration).updateBookingSpaceAvailability(requestParameters.spaceId, requestParameters.availabilityId, requestParameters.bookingSpaceAvailabilityUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28641
28522
|
}
|
|
28642
28523
|
}
|
|
28643
28524
|
|
|
@@ -28651,21 +28532,17 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration?: C
|
|
|
28651
28532
|
/**
|
|
28652
28533
|
* 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.
|
|
28653
28534
|
* @summary Create a booking space blackout
|
|
28654
|
-
* @param {string} placeId The place identifier
|
|
28655
28535
|
* @param {string} spaceId The space identifier
|
|
28656
28536
|
* @param {BookingSpaceBlackoutCreateInputs} bookingSpaceBlackoutCreateInputs
|
|
28657
28537
|
* @param {*} [options] Override http request option.
|
|
28658
28538
|
* @throws {RequiredError}
|
|
28659
28539
|
*/
|
|
28660
|
-
createBookingSpaceBlackout: async (
|
|
28661
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28662
|
-
assertParamExists('createBookingSpaceBlackout', 'placeId', placeId)
|
|
28540
|
+
createBookingSpaceBlackout: async (spaceId: string, bookingSpaceBlackoutCreateInputs: BookingSpaceBlackoutCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28663
28541
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28664
28542
|
assertParamExists('createBookingSpaceBlackout', 'spaceId', spaceId)
|
|
28665
28543
|
// verify required parameter 'bookingSpaceBlackoutCreateInputs' is not null or undefined
|
|
28666
28544
|
assertParamExists('createBookingSpaceBlackout', 'bookingSpaceBlackoutCreateInputs', bookingSpaceBlackoutCreateInputs)
|
|
28667
|
-
const localVarPath = `/bookings/
|
|
28668
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28545
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts`
|
|
28669
28546
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
28670
28547
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28671
28548
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -28700,21 +28577,17 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration?: C
|
|
|
28700
28577
|
/**
|
|
28701
28578
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
28702
28579
|
* @summary Delete a booking space blackout
|
|
28703
|
-
* @param {string} placeId The place identifier
|
|
28704
28580
|
* @param {string} spaceId The space identifier
|
|
28705
28581
|
* @param {string} blackoutId The blackout identifier
|
|
28706
28582
|
* @param {*} [options] Override http request option.
|
|
28707
28583
|
* @throws {RequiredError}
|
|
28708
28584
|
*/
|
|
28709
|
-
deleteBookingSpaceBlackout: async (
|
|
28710
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28711
|
-
assertParamExists('deleteBookingSpaceBlackout', 'placeId', placeId)
|
|
28585
|
+
deleteBookingSpaceBlackout: async (spaceId: string, blackoutId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28712
28586
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28713
28587
|
assertParamExists('deleteBookingSpaceBlackout', 'spaceId', spaceId)
|
|
28714
28588
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
28715
28589
|
assertParamExists('deleteBookingSpaceBlackout', 'blackoutId', blackoutId)
|
|
28716
|
-
const localVarPath = `/bookings/
|
|
28717
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28590
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
28718
28591
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
28719
28592
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
28720
28593
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -28748,24 +28621,20 @@ export const BookingsBlackoutsApiAxiosParamCreator = function (configuration?: C
|
|
|
28748
28621
|
/**
|
|
28749
28622
|
* 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.
|
|
28750
28623
|
* @summary Update a booking space blackout
|
|
28751
|
-
* @param {string} placeId The place identifier
|
|
28752
28624
|
* @param {string} spaceId The space identifier
|
|
28753
28625
|
* @param {string} blackoutId The blackout identifier
|
|
28754
28626
|
* @param {BookingSpaceBlackoutUpdateInputs} bookingSpaceBlackoutUpdateInputs
|
|
28755
28627
|
* @param {*} [options] Override http request option.
|
|
28756
28628
|
* @throws {RequiredError}
|
|
28757
28629
|
*/
|
|
28758
|
-
updateBookingSpaceBlackout: async (
|
|
28759
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
28760
|
-
assertParamExists('updateBookingSpaceBlackout', 'placeId', placeId)
|
|
28630
|
+
updateBookingSpaceBlackout: async (spaceId: string, blackoutId: string, bookingSpaceBlackoutUpdateInputs: BookingSpaceBlackoutUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28761
28631
|
// verify required parameter 'spaceId' is not null or undefined
|
|
28762
28632
|
assertParamExists('updateBookingSpaceBlackout', 'spaceId', spaceId)
|
|
28763
28633
|
// verify required parameter 'blackoutId' is not null or undefined
|
|
28764
28634
|
assertParamExists('updateBookingSpaceBlackout', 'blackoutId', blackoutId)
|
|
28765
28635
|
// verify required parameter 'bookingSpaceBlackoutUpdateInputs' is not null or undefined
|
|
28766
28636
|
assertParamExists('updateBookingSpaceBlackout', 'bookingSpaceBlackoutUpdateInputs', bookingSpaceBlackoutUpdateInputs)
|
|
28767
|
-
const localVarPath = `/bookings/
|
|
28768
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
28637
|
+
const localVarPath = `/bookings/spaces/{spaceId}/blackouts/{blackoutId}`
|
|
28769
28638
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
28770
28639
|
.replace(`{${"blackoutId"}}`, encodeURIComponent(String(blackoutId)));
|
|
28771
28640
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -28810,14 +28679,13 @@ export const BookingsBlackoutsApiFp = function(configuration?: Configuration) {
|
|
|
28810
28679
|
/**
|
|
28811
28680
|
* 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.
|
|
28812
28681
|
* @summary Create a booking space blackout
|
|
28813
|
-
* @param {string} placeId The place identifier
|
|
28814
28682
|
* @param {string} spaceId The space identifier
|
|
28815
28683
|
* @param {BookingSpaceBlackoutCreateInputs} bookingSpaceBlackoutCreateInputs
|
|
28816
28684
|
* @param {*} [options] Override http request option.
|
|
28817
28685
|
* @throws {RequiredError}
|
|
28818
28686
|
*/
|
|
28819
|
-
async createBookingSpaceBlackout(
|
|
28820
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceBlackout(
|
|
28687
|
+
async createBookingSpaceBlackout(spaceId: string, bookingSpaceBlackoutCreateInputs: BookingSpaceBlackoutCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceBlackout200Response>> {
|
|
28688
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceBlackout(spaceId, bookingSpaceBlackoutCreateInputs, options);
|
|
28821
28689
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28822
28690
|
const localVarOperationServerBasePath = operationServerMap['BookingsBlackoutsApi.createBookingSpaceBlackout']?.[localVarOperationServerIndex]?.url;
|
|
28823
28691
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28825,14 +28693,13 @@ export const BookingsBlackoutsApiFp = function(configuration?: Configuration) {
|
|
|
28825
28693
|
/**
|
|
28826
28694
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
28827
28695
|
* @summary Delete a booking space blackout
|
|
28828
|
-
* @param {string} placeId The place identifier
|
|
28829
28696
|
* @param {string} spaceId The space identifier
|
|
28830
28697
|
* @param {string} blackoutId The blackout identifier
|
|
28831
28698
|
* @param {*} [options] Override http request option.
|
|
28832
28699
|
* @throws {RequiredError}
|
|
28833
28700
|
*/
|
|
28834
|
-
async deleteBookingSpaceBlackout(
|
|
28835
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceBlackout(
|
|
28701
|
+
async deleteBookingSpaceBlackout(spaceId: string, blackoutId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
28702
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceBlackout(spaceId, blackoutId, options);
|
|
28836
28703
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28837
28704
|
const localVarOperationServerBasePath = operationServerMap['BookingsBlackoutsApi.deleteBookingSpaceBlackout']?.[localVarOperationServerIndex]?.url;
|
|
28838
28705
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28840,15 +28707,14 @@ export const BookingsBlackoutsApiFp = function(configuration?: Configuration) {
|
|
|
28840
28707
|
/**
|
|
28841
28708
|
* 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.
|
|
28842
28709
|
* @summary Update a booking space blackout
|
|
28843
|
-
* @param {string} placeId The place identifier
|
|
28844
28710
|
* @param {string} spaceId The space identifier
|
|
28845
28711
|
* @param {string} blackoutId The blackout identifier
|
|
28846
28712
|
* @param {BookingSpaceBlackoutUpdateInputs} bookingSpaceBlackoutUpdateInputs
|
|
28847
28713
|
* @param {*} [options] Override http request option.
|
|
28848
28714
|
* @throws {RequiredError}
|
|
28849
28715
|
*/
|
|
28850
|
-
async updateBookingSpaceBlackout(
|
|
28851
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceBlackout(
|
|
28716
|
+
async updateBookingSpaceBlackout(spaceId: string, blackoutId: string, bookingSpaceBlackoutUpdateInputs: BookingSpaceBlackoutUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceBlackout200Response>> {
|
|
28717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceBlackout(spaceId, blackoutId, bookingSpaceBlackoutUpdateInputs, options);
|
|
28852
28718
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
28853
28719
|
const localVarOperationServerBasePath = operationServerMap['BookingsBlackoutsApi.updateBookingSpaceBlackout']?.[localVarOperationServerIndex]?.url;
|
|
28854
28720
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -28870,7 +28736,7 @@ export const BookingsBlackoutsApiFactory = function (configuration?: Configurati
|
|
|
28870
28736
|
* @throws {RequiredError}
|
|
28871
28737
|
*/
|
|
28872
28738
|
createBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiCreateBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceBlackout200Response> {
|
|
28873
|
-
return localVarFp.createBookingSpaceBlackout(requestParameters.
|
|
28739
|
+
return localVarFp.createBookingSpaceBlackout(requestParameters.spaceId, requestParameters.bookingSpaceBlackoutCreateInputs, options).then((request) => request(axios, basePath));
|
|
28874
28740
|
},
|
|
28875
28741
|
/**
|
|
28876
28742
|
* Permanently deletes the blackout window identified by blackoutId from the given booking space, requiring the \"update\" permission on bookings.
|
|
@@ -28880,7 +28746,7 @@ export const BookingsBlackoutsApiFactory = function (configuration?: Configurati
|
|
|
28880
28746
|
* @throws {RequiredError}
|
|
28881
28747
|
*/
|
|
28882
28748
|
deleteBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiDeleteBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
28883
|
-
return localVarFp.deleteBookingSpaceBlackout(requestParameters.
|
|
28749
|
+
return localVarFp.deleteBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(axios, basePath));
|
|
28884
28750
|
},
|
|
28885
28751
|
/**
|
|
28886
28752
|
* 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.
|
|
@@ -28890,7 +28756,7 @@ export const BookingsBlackoutsApiFactory = function (configuration?: Configurati
|
|
|
28890
28756
|
* @throws {RequiredError}
|
|
28891
28757
|
*/
|
|
28892
28758
|
updateBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiUpdateBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceBlackout200Response> {
|
|
28893
|
-
return localVarFp.updateBookingSpaceBlackout(requestParameters.
|
|
28759
|
+
return localVarFp.updateBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, requestParameters.bookingSpaceBlackoutUpdateInputs, options).then((request) => request(axios, basePath));
|
|
28894
28760
|
},
|
|
28895
28761
|
};
|
|
28896
28762
|
};
|
|
@@ -28899,11 +28765,6 @@ export const BookingsBlackoutsApiFactory = function (configuration?: Configurati
|
|
|
28899
28765
|
* Request parameters for createBookingSpaceBlackout operation in BookingsBlackoutsApi.
|
|
28900
28766
|
*/
|
|
28901
28767
|
export interface BookingsBlackoutsApiCreateBookingSpaceBlackoutRequest {
|
|
28902
|
-
/**
|
|
28903
|
-
* The place identifier
|
|
28904
|
-
*/
|
|
28905
|
-
readonly placeId: string
|
|
28906
|
-
|
|
28907
28768
|
/**
|
|
28908
28769
|
* The space identifier
|
|
28909
28770
|
*/
|
|
@@ -28916,11 +28777,6 @@ export interface BookingsBlackoutsApiCreateBookingSpaceBlackoutRequest {
|
|
|
28916
28777
|
* Request parameters for deleteBookingSpaceBlackout operation in BookingsBlackoutsApi.
|
|
28917
28778
|
*/
|
|
28918
28779
|
export interface BookingsBlackoutsApiDeleteBookingSpaceBlackoutRequest {
|
|
28919
|
-
/**
|
|
28920
|
-
* The place identifier
|
|
28921
|
-
*/
|
|
28922
|
-
readonly placeId: string
|
|
28923
|
-
|
|
28924
28780
|
/**
|
|
28925
28781
|
* The space identifier
|
|
28926
28782
|
*/
|
|
@@ -28936,11 +28792,6 @@ export interface BookingsBlackoutsApiDeleteBookingSpaceBlackoutRequest {
|
|
|
28936
28792
|
* Request parameters for updateBookingSpaceBlackout operation in BookingsBlackoutsApi.
|
|
28937
28793
|
*/
|
|
28938
28794
|
export interface BookingsBlackoutsApiUpdateBookingSpaceBlackoutRequest {
|
|
28939
|
-
/**
|
|
28940
|
-
* The place identifier
|
|
28941
|
-
*/
|
|
28942
|
-
readonly placeId: string
|
|
28943
|
-
|
|
28944
28795
|
/**
|
|
28945
28796
|
* The space identifier
|
|
28946
28797
|
*/
|
|
@@ -28966,7 +28817,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
28966
28817
|
* @throws {RequiredError}
|
|
28967
28818
|
*/
|
|
28968
28819
|
public createBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiCreateBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig) {
|
|
28969
|
-
return BookingsBlackoutsApiFp(this.configuration).createBookingSpaceBlackout(requestParameters.
|
|
28820
|
+
return BookingsBlackoutsApiFp(this.configuration).createBookingSpaceBlackout(requestParameters.spaceId, requestParameters.bookingSpaceBlackoutCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28970
28821
|
}
|
|
28971
28822
|
|
|
28972
28823
|
/**
|
|
@@ -28977,7 +28828,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
28977
28828
|
* @throws {RequiredError}
|
|
28978
28829
|
*/
|
|
28979
28830
|
public deleteBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiDeleteBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig) {
|
|
28980
|
-
return BookingsBlackoutsApiFp(this.configuration).deleteBookingSpaceBlackout(requestParameters.
|
|
28831
|
+
return BookingsBlackoutsApiFp(this.configuration).deleteBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, options).then((request) => request(this.axios, this.basePath));
|
|
28981
28832
|
}
|
|
28982
28833
|
|
|
28983
28834
|
/**
|
|
@@ -28988,7 +28839,7 @@ export class BookingsBlackoutsApi extends BaseAPI {
|
|
|
28988
28839
|
* @throws {RequiredError}
|
|
28989
28840
|
*/
|
|
28990
28841
|
public updateBookingSpaceBlackout(requestParameters: BookingsBlackoutsApiUpdateBookingSpaceBlackoutRequest, options?: RawAxiosRequestConfig) {
|
|
28991
|
-
return BookingsBlackoutsApiFp(this.configuration).updateBookingSpaceBlackout(requestParameters.
|
|
28842
|
+
return BookingsBlackoutsApiFp(this.configuration).updateBookingSpaceBlackout(requestParameters.spaceId, requestParameters.blackoutId, requestParameters.bookingSpaceBlackoutUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
28992
28843
|
}
|
|
28993
28844
|
}
|
|
28994
28845
|
|
|
@@ -29522,24 +29373,20 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29522
29373
|
/**
|
|
29523
29374
|
* 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.
|
|
29524
29375
|
* @summary Attach a search list to a booking question
|
|
29525
|
-
* @param {string} placeId The place identifier
|
|
29526
29376
|
* @param {string} spaceId The space identifier
|
|
29527
29377
|
* @param {string} questionId The question identifier
|
|
29528
29378
|
* @param {AttachSearchListInputs} attachSearchListInputs
|
|
29529
29379
|
* @param {*} [options] Override http request option.
|
|
29530
29380
|
* @throws {RequiredError}
|
|
29531
29381
|
*/
|
|
29532
|
-
attachBookingSpaceQuestionSearchList: async (
|
|
29533
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29534
|
-
assertParamExists('attachBookingSpaceQuestionSearchList', 'placeId', placeId)
|
|
29382
|
+
attachBookingSpaceQuestionSearchList: async (spaceId: string, questionId: string, attachSearchListInputs: AttachSearchListInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29535
29383
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29536
29384
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'spaceId', spaceId)
|
|
29537
29385
|
// verify required parameter 'questionId' is not null or undefined
|
|
29538
29386
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'questionId', questionId)
|
|
29539
29387
|
// verify required parameter 'attachSearchListInputs' is not null or undefined
|
|
29540
29388
|
assertParamExists('attachBookingSpaceQuestionSearchList', 'attachSearchListInputs', attachSearchListInputs)
|
|
29541
|
-
const localVarPath = `/bookings/
|
|
29542
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29389
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/searchlist`
|
|
29543
29390
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29544
29391
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29545
29392
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29575,21 +29422,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29575
29422
|
/**
|
|
29576
29423
|
* 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.
|
|
29577
29424
|
* @summary Create a booking space question
|
|
29578
|
-
* @param {string} placeId The place identifier
|
|
29579
29425
|
* @param {string} spaceId The space identifier
|
|
29580
29426
|
* @param {BookingSpaceQuestionCreateInputs} bookingSpaceQuestionCreateInputs
|
|
29581
29427
|
* @param {*} [options] Override http request option.
|
|
29582
29428
|
* @throws {RequiredError}
|
|
29583
29429
|
*/
|
|
29584
|
-
createBookingSpaceQuestion: async (
|
|
29585
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29586
|
-
assertParamExists('createBookingSpaceQuestion', 'placeId', placeId)
|
|
29430
|
+
createBookingSpaceQuestion: async (spaceId: string, bookingSpaceQuestionCreateInputs: BookingSpaceQuestionCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29587
29431
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29588
29432
|
assertParamExists('createBookingSpaceQuestion', 'spaceId', spaceId)
|
|
29589
29433
|
// verify required parameter 'bookingSpaceQuestionCreateInputs' is not null or undefined
|
|
29590
29434
|
assertParamExists('createBookingSpaceQuestion', 'bookingSpaceQuestionCreateInputs', bookingSpaceQuestionCreateInputs)
|
|
29591
|
-
const localVarPath = `/bookings/
|
|
29592
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29435
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions`
|
|
29593
29436
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
29594
29437
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29595
29438
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29624,21 +29467,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29624
29467
|
/**
|
|
29625
29468
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
29626
29469
|
* @summary Delete a booking space question
|
|
29627
|
-
* @param {string} placeId The place identifier
|
|
29628
29470
|
* @param {string} spaceId The space identifier
|
|
29629
29471
|
* @param {string} questionId The question identifier
|
|
29630
29472
|
* @param {*} [options] Override http request option.
|
|
29631
29473
|
* @throws {RequiredError}
|
|
29632
29474
|
*/
|
|
29633
|
-
deleteBookingSpaceQuestion: async (
|
|
29634
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29635
|
-
assertParamExists('deleteBookingSpaceQuestion', 'placeId', placeId)
|
|
29475
|
+
deleteBookingSpaceQuestion: async (spaceId: string, questionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29636
29476
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29637
29477
|
assertParamExists('deleteBookingSpaceQuestion', 'spaceId', spaceId)
|
|
29638
29478
|
// verify required parameter 'questionId' is not null or undefined
|
|
29639
29479
|
assertParamExists('deleteBookingSpaceQuestion', 'questionId', questionId)
|
|
29640
|
-
const localVarPath = `/bookings/
|
|
29641
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29480
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
29642
29481
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29643
29482
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29644
29483
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29672,21 +29511,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29672
29511
|
/**
|
|
29673
29512
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
29674
29513
|
* @summary Detach a search list from a booking question
|
|
29675
|
-
* @param {string} placeId The place identifier
|
|
29676
29514
|
* @param {string} spaceId The space identifier
|
|
29677
29515
|
* @param {string} questionId The question identifier
|
|
29678
29516
|
* @param {*} [options] Override http request option.
|
|
29679
29517
|
* @throws {RequiredError}
|
|
29680
29518
|
*/
|
|
29681
|
-
detachBookingSpaceQuestionSearchList: async (
|
|
29682
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29683
|
-
assertParamExists('detachBookingSpaceQuestionSearchList', 'placeId', placeId)
|
|
29519
|
+
detachBookingSpaceQuestionSearchList: async (spaceId: string, questionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29684
29520
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29685
29521
|
assertParamExists('detachBookingSpaceQuestionSearchList', 'spaceId', spaceId)
|
|
29686
29522
|
// verify required parameter 'questionId' is not null or undefined
|
|
29687
29523
|
assertParamExists('detachBookingSpaceQuestionSearchList', 'questionId', questionId)
|
|
29688
|
-
const localVarPath = `/bookings/
|
|
29689
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29524
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/searchlist`
|
|
29690
29525
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29691
29526
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29692
29527
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29720,21 +29555,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29720
29555
|
/**
|
|
29721
29556
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
29722
29557
|
* @summary Get a booking space question
|
|
29723
|
-
* @param {string} placeId The place identifier
|
|
29724
29558
|
* @param {string} spaceId The space identifier
|
|
29725
29559
|
* @param {string} questionId The question identifier
|
|
29726
29560
|
* @param {*} [options] Override http request option.
|
|
29727
29561
|
* @throws {RequiredError}
|
|
29728
29562
|
*/
|
|
29729
|
-
getBookingSpaceQuestion: async (
|
|
29730
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29731
|
-
assertParamExists('getBookingSpaceQuestion', 'placeId', placeId)
|
|
29563
|
+
getBookingSpaceQuestion: async (spaceId: string, questionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29732
29564
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29733
29565
|
assertParamExists('getBookingSpaceQuestion', 'spaceId', spaceId)
|
|
29734
29566
|
// verify required parameter 'questionId' is not null or undefined
|
|
29735
29567
|
assertParamExists('getBookingSpaceQuestion', 'questionId', questionId)
|
|
29736
|
-
const localVarPath = `/bookings/
|
|
29737
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29568
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
29738
29569
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29739
29570
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29740
29571
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29768,7 +29599,6 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29768
29599
|
/**
|
|
29769
29600
|
* 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\".
|
|
29770
29601
|
* @summary List a booking space\'s custom questions
|
|
29771
|
-
* @param {string} placeId The place identifier
|
|
29772
29602
|
* @param {string} spaceId The space identifier
|
|
29773
29603
|
* @param {number} [page] Page number
|
|
29774
29604
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -29777,13 +29607,10 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29777
29607
|
* @param {*} [options] Override http request option.
|
|
29778
29608
|
* @throws {RequiredError}
|
|
29779
29609
|
*/
|
|
29780
|
-
getBookingSpaceQuestions: async (
|
|
29781
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29782
|
-
assertParamExists('getBookingSpaceQuestions', 'placeId', placeId)
|
|
29610
|
+
getBookingSpaceQuestions: async (spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29783
29611
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29784
29612
|
assertParamExists('getBookingSpaceQuestions', 'spaceId', spaceId)
|
|
29785
|
-
const localVarPath = `/bookings/
|
|
29786
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29613
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions`
|
|
29787
29614
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
29788
29615
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29789
29616
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29832,21 +29659,17 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29832
29659
|
/**
|
|
29833
29660
|
* 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.
|
|
29834
29661
|
* @summary Reorder a booking space\'s questions
|
|
29835
|
-
* @param {string} placeId The place identifier
|
|
29836
29662
|
* @param {string} spaceId The space identifier
|
|
29837
29663
|
* @param {ReorderBookingSpaceQuestionsRequest} reorderBookingSpaceQuestionsRequest
|
|
29838
29664
|
* @param {*} [options] Override http request option.
|
|
29839
29665
|
* @throws {RequiredError}
|
|
29840
29666
|
*/
|
|
29841
|
-
reorderBookingSpaceQuestions: async (
|
|
29842
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29843
|
-
assertParamExists('reorderBookingSpaceQuestions', 'placeId', placeId)
|
|
29667
|
+
reorderBookingSpaceQuestions: async (spaceId: string, reorderBookingSpaceQuestionsRequest: ReorderBookingSpaceQuestionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29844
29668
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29845
29669
|
assertParamExists('reorderBookingSpaceQuestions', 'spaceId', spaceId)
|
|
29846
29670
|
// verify required parameter 'reorderBookingSpaceQuestionsRequest' is not null or undefined
|
|
29847
29671
|
assertParamExists('reorderBookingSpaceQuestions', 'reorderBookingSpaceQuestionsRequest', reorderBookingSpaceQuestionsRequest)
|
|
29848
|
-
const localVarPath = `/bookings/
|
|
29849
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29672
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/reorder`
|
|
29850
29673
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
29851
29674
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29852
29675
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29881,24 +29704,20 @@ export const BookingsQuestionsApiAxiosParamCreator = function (configuration?: C
|
|
|
29881
29704
|
/**
|
|
29882
29705
|
* 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.
|
|
29883
29706
|
* @summary Update a booking space question
|
|
29884
|
-
* @param {string} placeId The place identifier
|
|
29885
29707
|
* @param {string} spaceId The space identifier
|
|
29886
29708
|
* @param {string} questionId The question identifier
|
|
29887
29709
|
* @param {BookingSpaceQuestionUpdateInputs} bookingSpaceQuestionUpdateInputs
|
|
29888
29710
|
* @param {*} [options] Override http request option.
|
|
29889
29711
|
* @throws {RequiredError}
|
|
29890
29712
|
*/
|
|
29891
|
-
updateBookingSpaceQuestion: async (
|
|
29892
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
29893
|
-
assertParamExists('updateBookingSpaceQuestion', 'placeId', placeId)
|
|
29713
|
+
updateBookingSpaceQuestion: async (spaceId: string, questionId: string, bookingSpaceQuestionUpdateInputs: BookingSpaceQuestionUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29894
29714
|
// verify required parameter 'spaceId' is not null or undefined
|
|
29895
29715
|
assertParamExists('updateBookingSpaceQuestion', 'spaceId', spaceId)
|
|
29896
29716
|
// verify required parameter 'questionId' is not null or undefined
|
|
29897
29717
|
assertParamExists('updateBookingSpaceQuestion', 'questionId', questionId)
|
|
29898
29718
|
// verify required parameter 'bookingSpaceQuestionUpdateInputs' is not null or undefined
|
|
29899
29719
|
assertParamExists('updateBookingSpaceQuestion', 'bookingSpaceQuestionUpdateInputs', bookingSpaceQuestionUpdateInputs)
|
|
29900
|
-
const localVarPath = `/bookings/
|
|
29901
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
29720
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}`
|
|
29902
29721
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
29903
29722
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
29904
29723
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29943,15 +29762,14 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
29943
29762
|
/**
|
|
29944
29763
|
* 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.
|
|
29945
29764
|
* @summary Attach a search list to a booking question
|
|
29946
|
-
* @param {string} placeId The place identifier
|
|
29947
29765
|
* @param {string} spaceId The space identifier
|
|
29948
29766
|
* @param {string} questionId The question identifier
|
|
29949
29767
|
* @param {AttachSearchListInputs} attachSearchListInputs
|
|
29950
29768
|
* @param {*} [options] Override http request option.
|
|
29951
29769
|
* @throws {RequiredError}
|
|
29952
29770
|
*/
|
|
29953
|
-
async attachBookingSpaceQuestionSearchList(
|
|
29954
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.attachBookingSpaceQuestionSearchList(
|
|
29771
|
+
async attachBookingSpaceQuestionSearchList(spaceId: string, questionId: string, attachSearchListInputs: AttachSearchListInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29772
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.attachBookingSpaceQuestionSearchList(spaceId, questionId, attachSearchListInputs, options);
|
|
29955
29773
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29956
29774
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.attachBookingSpaceQuestionSearchList']?.[localVarOperationServerIndex]?.url;
|
|
29957
29775
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -29959,14 +29777,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
29959
29777
|
/**
|
|
29960
29778
|
* 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.
|
|
29961
29779
|
* @summary Create a booking space question
|
|
29962
|
-
* @param {string} placeId The place identifier
|
|
29963
29780
|
* @param {string} spaceId The space identifier
|
|
29964
29781
|
* @param {BookingSpaceQuestionCreateInputs} bookingSpaceQuestionCreateInputs
|
|
29965
29782
|
* @param {*} [options] Override http request option.
|
|
29966
29783
|
* @throws {RequiredError}
|
|
29967
29784
|
*/
|
|
29968
|
-
async createBookingSpaceQuestion(
|
|
29969
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceQuestion(
|
|
29785
|
+
async createBookingSpaceQuestion(spaceId: string, bookingSpaceQuestionCreateInputs: BookingSpaceQuestionCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29786
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceQuestion(spaceId, bookingSpaceQuestionCreateInputs, options);
|
|
29970
29787
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29971
29788
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.createBookingSpaceQuestion']?.[localVarOperationServerIndex]?.url;
|
|
29972
29789
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -29974,14 +29791,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
29974
29791
|
/**
|
|
29975
29792
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
29976
29793
|
* @summary Delete a booking space question
|
|
29977
|
-
* @param {string} placeId The place identifier
|
|
29978
29794
|
* @param {string} spaceId The space identifier
|
|
29979
29795
|
* @param {string} questionId The question identifier
|
|
29980
29796
|
* @param {*} [options] Override http request option.
|
|
29981
29797
|
* @throws {RequiredError}
|
|
29982
29798
|
*/
|
|
29983
|
-
async deleteBookingSpaceQuestion(
|
|
29984
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestion(
|
|
29799
|
+
async deleteBookingSpaceQuestion(spaceId: string, questionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
29800
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestion(spaceId, questionId, options);
|
|
29985
29801
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29986
29802
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.deleteBookingSpaceQuestion']?.[localVarOperationServerIndex]?.url;
|
|
29987
29803
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -29989,14 +29805,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
29989
29805
|
/**
|
|
29990
29806
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
29991
29807
|
* @summary Detach a search list from a booking question
|
|
29992
|
-
* @param {string} placeId The place identifier
|
|
29993
29808
|
* @param {string} spaceId The space identifier
|
|
29994
29809
|
* @param {string} questionId The question identifier
|
|
29995
29810
|
* @param {*} [options] Override http request option.
|
|
29996
29811
|
* @throws {RequiredError}
|
|
29997
29812
|
*/
|
|
29998
|
-
async detachBookingSpaceQuestionSearchList(
|
|
29999
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.detachBookingSpaceQuestionSearchList(
|
|
29813
|
+
async detachBookingSpaceQuestionSearchList(spaceId: string, questionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29814
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.detachBookingSpaceQuestionSearchList(spaceId, questionId, options);
|
|
30000
29815
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30001
29816
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.detachBookingSpaceQuestionSearchList']?.[localVarOperationServerIndex]?.url;
|
|
30002
29817
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30004,14 +29819,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30004
29819
|
/**
|
|
30005
29820
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
30006
29821
|
* @summary Get a booking space question
|
|
30007
|
-
* @param {string} placeId The place identifier
|
|
30008
29822
|
* @param {string} spaceId The space identifier
|
|
30009
29823
|
* @param {string} questionId The question identifier
|
|
30010
29824
|
* @param {*} [options] Override http request option.
|
|
30011
29825
|
* @throws {RequiredError}
|
|
30012
29826
|
*/
|
|
30013
|
-
async getBookingSpaceQuestion(
|
|
30014
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestion(
|
|
29827
|
+
async getBookingSpaceQuestion(spaceId: string, questionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29828
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestion(spaceId, questionId, options);
|
|
30015
29829
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30016
29830
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.getBookingSpaceQuestion']?.[localVarOperationServerIndex]?.url;
|
|
30017
29831
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30019,7 +29833,6 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30019
29833
|
/**
|
|
30020
29834
|
* 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\".
|
|
30021
29835
|
* @summary List a booking space\'s custom questions
|
|
30022
|
-
* @param {string} placeId The place identifier
|
|
30023
29836
|
* @param {string} spaceId The space identifier
|
|
30024
29837
|
* @param {number} [page] Page number
|
|
30025
29838
|
* @param {number} [pageSize] Number of items per page
|
|
@@ -30028,8 +29841,8 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30028
29841
|
* @param {*} [options] Override http request option.
|
|
30029
29842
|
* @throws {RequiredError}
|
|
30030
29843
|
*/
|
|
30031
|
-
async getBookingSpaceQuestions(
|
|
30032
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestions(
|
|
29844
|
+
async getBookingSpaceQuestions(spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestions200Response>> {
|
|
29845
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestions(spaceId, page, pageSize, orderBy, search, options);
|
|
30033
29846
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30034
29847
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.getBookingSpaceQuestions']?.[localVarOperationServerIndex]?.url;
|
|
30035
29848
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30037,14 +29850,13 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30037
29850
|
/**
|
|
30038
29851
|
* 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.
|
|
30039
29852
|
* @summary Reorder a booking space\'s questions
|
|
30040
|
-
* @param {string} placeId The place identifier
|
|
30041
29853
|
* @param {string} spaceId The space identifier
|
|
30042
29854
|
* @param {ReorderBookingSpaceQuestionsRequest} reorderBookingSpaceQuestionsRequest
|
|
30043
29855
|
* @param {*} [options] Override http request option.
|
|
30044
29856
|
* @throws {RequiredError}
|
|
30045
29857
|
*/
|
|
30046
|
-
async reorderBookingSpaceQuestions(
|
|
30047
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.reorderBookingSpaceQuestions(
|
|
29858
|
+
async reorderBookingSpaceQuestions(spaceId: string, reorderBookingSpaceQuestionsRequest: ReorderBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorderBookingSpaceQuestions200Response>> {
|
|
29859
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reorderBookingSpaceQuestions(spaceId, reorderBookingSpaceQuestionsRequest, options);
|
|
30048
29860
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30049
29861
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.reorderBookingSpaceQuestions']?.[localVarOperationServerIndex]?.url;
|
|
30050
29862
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30052,15 +29864,14 @@ export const BookingsQuestionsApiFp = function(configuration?: Configuration) {
|
|
|
30052
29864
|
/**
|
|
30053
29865
|
* 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.
|
|
30054
29866
|
* @summary Update a booking space question
|
|
30055
|
-
* @param {string} placeId The place identifier
|
|
30056
29867
|
* @param {string} spaceId The space identifier
|
|
30057
29868
|
* @param {string} questionId The question identifier
|
|
30058
29869
|
* @param {BookingSpaceQuestionUpdateInputs} bookingSpaceQuestionUpdateInputs
|
|
30059
29870
|
* @param {*} [options] Override http request option.
|
|
30060
29871
|
* @throws {RequiredError}
|
|
30061
29872
|
*/
|
|
30062
|
-
async updateBookingSpaceQuestion(
|
|
30063
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestion(
|
|
29873
|
+
async updateBookingSpaceQuestion(spaceId: string, questionId: string, bookingSpaceQuestionUpdateInputs: BookingSpaceQuestionUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestion200Response>> {
|
|
29874
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestion(spaceId, questionId, bookingSpaceQuestionUpdateInputs, options);
|
|
30064
29875
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30065
29876
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsApi.updateBookingSpaceQuestion']?.[localVarOperationServerIndex]?.url;
|
|
30066
29877
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30082,7 +29893,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30082
29893
|
* @throws {RequiredError}
|
|
30083
29894
|
*/
|
|
30084
29895
|
attachBookingSpaceQuestionSearchList(requestParameters: BookingsQuestionsApiAttachBookingSpaceQuestionSearchListRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30085
|
-
return localVarFp.attachBookingSpaceQuestionSearchList(requestParameters.
|
|
29896
|
+
return localVarFp.attachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, requestParameters.attachSearchListInputs, options).then((request) => request(axios, basePath));
|
|
30086
29897
|
},
|
|
30087
29898
|
/**
|
|
30088
29899
|
* 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.
|
|
@@ -30092,7 +29903,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30092
29903
|
* @throws {RequiredError}
|
|
30093
29904
|
*/
|
|
30094
29905
|
createBookingSpaceQuestion(requestParameters: BookingsQuestionsApiCreateBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30095
|
-
return localVarFp.createBookingSpaceQuestion(requestParameters.
|
|
29906
|
+
return localVarFp.createBookingSpaceQuestion(requestParameters.spaceId, requestParameters.bookingSpaceQuestionCreateInputs, options).then((request) => request(axios, basePath));
|
|
30096
29907
|
},
|
|
30097
29908
|
/**
|
|
30098
29909
|
* Permanently deletes a custom question from a booking space and re-sequences the sort order of the remaining questions; requires update permission on bookings.
|
|
@@ -30102,7 +29913,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30102
29913
|
* @throws {RequiredError}
|
|
30103
29914
|
*/
|
|
30104
29915
|
deleteBookingSpaceQuestion(requestParameters: BookingsQuestionsApiDeleteBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
30105
|
-
return localVarFp.deleteBookingSpaceQuestion(requestParameters.
|
|
29916
|
+
return localVarFp.deleteBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
30106
29917
|
},
|
|
30107
29918
|
/**
|
|
30108
29919
|
* Removes the search list currently linked to a booking space question, clearing its source of predefined options; requires update permission on bookings.
|
|
@@ -30112,7 +29923,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30112
29923
|
* @throws {RequiredError}
|
|
30113
29924
|
*/
|
|
30114
29925
|
detachBookingSpaceQuestionSearchList(requestParameters: BookingsQuestionsApiDetachBookingSpaceQuestionSearchListRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30115
|
-
return localVarFp.detachBookingSpaceQuestionSearchList(requestParameters.
|
|
29926
|
+
return localVarFp.detachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
30116
29927
|
},
|
|
30117
29928
|
/**
|
|
30118
29929
|
* Retrieves a single custom question configured for a booking space, including its label, type, and settings; requires the \"read\" permission on \"bookings\".
|
|
@@ -30122,7 +29933,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30122
29933
|
* @throws {RequiredError}
|
|
30123
29934
|
*/
|
|
30124
29935
|
getBookingSpaceQuestion(requestParameters: BookingsQuestionsApiGetBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30125
|
-
return localVarFp.getBookingSpaceQuestion(requestParameters.
|
|
29936
|
+
return localVarFp.getBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
30126
29937
|
},
|
|
30127
29938
|
/**
|
|
30128
29939
|
* 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\".
|
|
@@ -30132,7 +29943,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30132
29943
|
* @throws {RequiredError}
|
|
30133
29944
|
*/
|
|
30134
29945
|
getBookingSpaceQuestions(requestParameters: BookingsQuestionsApiGetBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestions200Response> {
|
|
30135
|
-
return localVarFp.getBookingSpaceQuestions(requestParameters.
|
|
29946
|
+
return localVarFp.getBookingSpaceQuestions(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30136
29947
|
},
|
|
30137
29948
|
/**
|
|
30138
29949
|
* 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.
|
|
@@ -30142,7 +29953,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30142
29953
|
* @throws {RequiredError}
|
|
30143
29954
|
*/
|
|
30144
29955
|
reorderBookingSpaceQuestions(requestParameters: BookingsQuestionsApiReorderBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReorderBookingSpaceQuestions200Response> {
|
|
30145
|
-
return localVarFp.reorderBookingSpaceQuestions(requestParameters.
|
|
29956
|
+
return localVarFp.reorderBookingSpaceQuestions(requestParameters.spaceId, requestParameters.reorderBookingSpaceQuestionsRequest, options).then((request) => request(axios, basePath));
|
|
30146
29957
|
},
|
|
30147
29958
|
/**
|
|
30148
29959
|
* 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.
|
|
@@ -30152,7 +29963,7 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30152
29963
|
* @throws {RequiredError}
|
|
30153
29964
|
*/
|
|
30154
29965
|
updateBookingSpaceQuestion(requestParameters: BookingsQuestionsApiUpdateBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestion200Response> {
|
|
30155
|
-
return localVarFp.updateBookingSpaceQuestion(requestParameters.
|
|
29966
|
+
return localVarFp.updateBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionUpdateInputs, options).then((request) => request(axios, basePath));
|
|
30156
29967
|
},
|
|
30157
29968
|
};
|
|
30158
29969
|
};
|
|
@@ -30161,11 +29972,6 @@ export const BookingsQuestionsApiFactory = function (configuration?: Configurati
|
|
|
30161
29972
|
* Request parameters for attachBookingSpaceQuestionSearchList operation in BookingsQuestionsApi.
|
|
30162
29973
|
*/
|
|
30163
29974
|
export interface BookingsQuestionsApiAttachBookingSpaceQuestionSearchListRequest {
|
|
30164
|
-
/**
|
|
30165
|
-
* The place identifier
|
|
30166
|
-
*/
|
|
30167
|
-
readonly placeId: string
|
|
30168
|
-
|
|
30169
29975
|
/**
|
|
30170
29976
|
* The space identifier
|
|
30171
29977
|
*/
|
|
@@ -30183,11 +29989,6 @@ export interface BookingsQuestionsApiAttachBookingSpaceQuestionSearchListRequest
|
|
|
30183
29989
|
* Request parameters for createBookingSpaceQuestion operation in BookingsQuestionsApi.
|
|
30184
29990
|
*/
|
|
30185
29991
|
export interface BookingsQuestionsApiCreateBookingSpaceQuestionRequest {
|
|
30186
|
-
/**
|
|
30187
|
-
* The place identifier
|
|
30188
|
-
*/
|
|
30189
|
-
readonly placeId: string
|
|
30190
|
-
|
|
30191
29992
|
/**
|
|
30192
29993
|
* The space identifier
|
|
30193
29994
|
*/
|
|
@@ -30200,11 +30001,6 @@ export interface BookingsQuestionsApiCreateBookingSpaceQuestionRequest {
|
|
|
30200
30001
|
* Request parameters for deleteBookingSpaceQuestion operation in BookingsQuestionsApi.
|
|
30201
30002
|
*/
|
|
30202
30003
|
export interface BookingsQuestionsApiDeleteBookingSpaceQuestionRequest {
|
|
30203
|
-
/**
|
|
30204
|
-
* The place identifier
|
|
30205
|
-
*/
|
|
30206
|
-
readonly placeId: string
|
|
30207
|
-
|
|
30208
30004
|
/**
|
|
30209
30005
|
* The space identifier
|
|
30210
30006
|
*/
|
|
@@ -30220,11 +30016,6 @@ export interface BookingsQuestionsApiDeleteBookingSpaceQuestionRequest {
|
|
|
30220
30016
|
* Request parameters for detachBookingSpaceQuestionSearchList operation in BookingsQuestionsApi.
|
|
30221
30017
|
*/
|
|
30222
30018
|
export interface BookingsQuestionsApiDetachBookingSpaceQuestionSearchListRequest {
|
|
30223
|
-
/**
|
|
30224
|
-
* The place identifier
|
|
30225
|
-
*/
|
|
30226
|
-
readonly placeId: string
|
|
30227
|
-
|
|
30228
30019
|
/**
|
|
30229
30020
|
* The space identifier
|
|
30230
30021
|
*/
|
|
@@ -30240,11 +30031,6 @@ export interface BookingsQuestionsApiDetachBookingSpaceQuestionSearchListRequest
|
|
|
30240
30031
|
* Request parameters for getBookingSpaceQuestion operation in BookingsQuestionsApi.
|
|
30241
30032
|
*/
|
|
30242
30033
|
export interface BookingsQuestionsApiGetBookingSpaceQuestionRequest {
|
|
30243
|
-
/**
|
|
30244
|
-
* The place identifier
|
|
30245
|
-
*/
|
|
30246
|
-
readonly placeId: string
|
|
30247
|
-
|
|
30248
30034
|
/**
|
|
30249
30035
|
* The space identifier
|
|
30250
30036
|
*/
|
|
@@ -30260,11 +30046,6 @@ export interface BookingsQuestionsApiGetBookingSpaceQuestionRequest {
|
|
|
30260
30046
|
* Request parameters for getBookingSpaceQuestions operation in BookingsQuestionsApi.
|
|
30261
30047
|
*/
|
|
30262
30048
|
export interface BookingsQuestionsApiGetBookingSpaceQuestionsRequest {
|
|
30263
|
-
/**
|
|
30264
|
-
* The place identifier
|
|
30265
|
-
*/
|
|
30266
|
-
readonly placeId: string
|
|
30267
|
-
|
|
30268
30049
|
/**
|
|
30269
30050
|
* The space identifier
|
|
30270
30051
|
*/
|
|
@@ -30295,11 +30076,6 @@ export interface BookingsQuestionsApiGetBookingSpaceQuestionsRequest {
|
|
|
30295
30076
|
* Request parameters for reorderBookingSpaceQuestions operation in BookingsQuestionsApi.
|
|
30296
30077
|
*/
|
|
30297
30078
|
export interface BookingsQuestionsApiReorderBookingSpaceQuestionsRequest {
|
|
30298
|
-
/**
|
|
30299
|
-
* The place identifier
|
|
30300
|
-
*/
|
|
30301
|
-
readonly placeId: string
|
|
30302
|
-
|
|
30303
30079
|
/**
|
|
30304
30080
|
* The space identifier
|
|
30305
30081
|
*/
|
|
@@ -30312,11 +30088,6 @@ export interface BookingsQuestionsApiReorderBookingSpaceQuestionsRequest {
|
|
|
30312
30088
|
* Request parameters for updateBookingSpaceQuestion operation in BookingsQuestionsApi.
|
|
30313
30089
|
*/
|
|
30314
30090
|
export interface BookingsQuestionsApiUpdateBookingSpaceQuestionRequest {
|
|
30315
|
-
/**
|
|
30316
|
-
* The place identifier
|
|
30317
|
-
*/
|
|
30318
|
-
readonly placeId: string
|
|
30319
|
-
|
|
30320
30091
|
/**
|
|
30321
30092
|
* The space identifier
|
|
30322
30093
|
*/
|
|
@@ -30342,7 +30113,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30342
30113
|
* @throws {RequiredError}
|
|
30343
30114
|
*/
|
|
30344
30115
|
public attachBookingSpaceQuestionSearchList(requestParameters: BookingsQuestionsApiAttachBookingSpaceQuestionSearchListRequest, options?: RawAxiosRequestConfig) {
|
|
30345
|
-
return BookingsQuestionsApiFp(this.configuration).attachBookingSpaceQuestionSearchList(requestParameters.
|
|
30116
|
+
return BookingsQuestionsApiFp(this.configuration).attachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, requestParameters.attachSearchListInputs, options).then((request) => request(this.axios, this.basePath));
|
|
30346
30117
|
}
|
|
30347
30118
|
|
|
30348
30119
|
/**
|
|
@@ -30353,7 +30124,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30353
30124
|
* @throws {RequiredError}
|
|
30354
30125
|
*/
|
|
30355
30126
|
public createBookingSpaceQuestion(requestParameters: BookingsQuestionsApiCreateBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig) {
|
|
30356
|
-
return BookingsQuestionsApiFp(this.configuration).createBookingSpaceQuestion(requestParameters.
|
|
30127
|
+
return BookingsQuestionsApiFp(this.configuration).createBookingSpaceQuestion(requestParameters.spaceId, requestParameters.bookingSpaceQuestionCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
30357
30128
|
}
|
|
30358
30129
|
|
|
30359
30130
|
/**
|
|
@@ -30364,7 +30135,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30364
30135
|
* @throws {RequiredError}
|
|
30365
30136
|
*/
|
|
30366
30137
|
public deleteBookingSpaceQuestion(requestParameters: BookingsQuestionsApiDeleteBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig) {
|
|
30367
|
-
return BookingsQuestionsApiFp(this.configuration).deleteBookingSpaceQuestion(requestParameters.
|
|
30138
|
+
return BookingsQuestionsApiFp(this.configuration).deleteBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
30368
30139
|
}
|
|
30369
30140
|
|
|
30370
30141
|
/**
|
|
@@ -30375,7 +30146,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30375
30146
|
* @throws {RequiredError}
|
|
30376
30147
|
*/
|
|
30377
30148
|
public detachBookingSpaceQuestionSearchList(requestParameters: BookingsQuestionsApiDetachBookingSpaceQuestionSearchListRequest, options?: RawAxiosRequestConfig) {
|
|
30378
|
-
return BookingsQuestionsApiFp(this.configuration).detachBookingSpaceQuestionSearchList(requestParameters.
|
|
30149
|
+
return BookingsQuestionsApiFp(this.configuration).detachBookingSpaceQuestionSearchList(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
30379
30150
|
}
|
|
30380
30151
|
|
|
30381
30152
|
/**
|
|
@@ -30386,7 +30157,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30386
30157
|
* @throws {RequiredError}
|
|
30387
30158
|
*/
|
|
30388
30159
|
public getBookingSpaceQuestion(requestParameters: BookingsQuestionsApiGetBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig) {
|
|
30389
|
-
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestion(requestParameters.
|
|
30160
|
+
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
30390
30161
|
}
|
|
30391
30162
|
|
|
30392
30163
|
/**
|
|
@@ -30397,7 +30168,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30397
30168
|
* @throws {RequiredError}
|
|
30398
30169
|
*/
|
|
30399
30170
|
public getBookingSpaceQuestions(requestParameters: BookingsQuestionsApiGetBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig) {
|
|
30400
|
-
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestions(requestParameters.
|
|
30171
|
+
return BookingsQuestionsApiFp(this.configuration).getBookingSpaceQuestions(requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
30401
30172
|
}
|
|
30402
30173
|
|
|
30403
30174
|
/**
|
|
@@ -30408,7 +30179,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30408
30179
|
* @throws {RequiredError}
|
|
30409
30180
|
*/
|
|
30410
30181
|
public reorderBookingSpaceQuestions(requestParameters: BookingsQuestionsApiReorderBookingSpaceQuestionsRequest, options?: RawAxiosRequestConfig) {
|
|
30411
|
-
return BookingsQuestionsApiFp(this.configuration).reorderBookingSpaceQuestions(requestParameters.
|
|
30182
|
+
return BookingsQuestionsApiFp(this.configuration).reorderBookingSpaceQuestions(requestParameters.spaceId, requestParameters.reorderBookingSpaceQuestionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30412
30183
|
}
|
|
30413
30184
|
|
|
30414
30185
|
/**
|
|
@@ -30419,7 +30190,7 @@ export class BookingsQuestionsApi extends BaseAPI {
|
|
|
30419
30190
|
* @throws {RequiredError}
|
|
30420
30191
|
*/
|
|
30421
30192
|
public updateBookingSpaceQuestion(requestParameters: BookingsQuestionsApiUpdateBookingSpaceQuestionRequest, options?: RawAxiosRequestConfig) {
|
|
30422
|
-
return BookingsQuestionsApiFp(this.configuration).updateBookingSpaceQuestion(requestParameters.
|
|
30193
|
+
return BookingsQuestionsApiFp(this.configuration).updateBookingSpaceQuestion(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
30423
30194
|
}
|
|
30424
30195
|
}
|
|
30425
30196
|
|
|
@@ -30433,24 +30204,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30433
30204
|
/**
|
|
30434
30205
|
* Creates a new selectable choice for a multiple-choice question on a booking space, requires the update bookings permission.
|
|
30435
30206
|
* @summary Create a booking space question choice
|
|
30436
|
-
* @param {string} placeId The place identifier
|
|
30437
30207
|
* @param {string} spaceId The space identifier
|
|
30438
30208
|
* @param {string} questionId The question identifier
|
|
30439
30209
|
* @param {BookingSpaceQuestionChoiceCreateInputs} bookingSpaceQuestionChoiceCreateInputs
|
|
30440
30210
|
* @param {*} [options] Override http request option.
|
|
30441
30211
|
* @throws {RequiredError}
|
|
30442
30212
|
*/
|
|
30443
|
-
createBookingSpaceQuestionChoice: async (
|
|
30444
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30445
|
-
assertParamExists('createBookingSpaceQuestionChoice', 'placeId', placeId)
|
|
30213
|
+
createBookingSpaceQuestionChoice: async (spaceId: string, questionId: string, bookingSpaceQuestionChoiceCreateInputs: BookingSpaceQuestionChoiceCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30446
30214
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30447
30215
|
assertParamExists('createBookingSpaceQuestionChoice', 'spaceId', spaceId)
|
|
30448
30216
|
// verify required parameter 'questionId' is not null or undefined
|
|
30449
30217
|
assertParamExists('createBookingSpaceQuestionChoice', 'questionId', questionId)
|
|
30450
30218
|
// verify required parameter 'bookingSpaceQuestionChoiceCreateInputs' is not null or undefined
|
|
30451
30219
|
assertParamExists('createBookingSpaceQuestionChoice', 'bookingSpaceQuestionChoiceCreateInputs', bookingSpaceQuestionChoiceCreateInputs)
|
|
30452
|
-
const localVarPath = `/bookings/
|
|
30453
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30220
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices`
|
|
30454
30221
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30455
30222
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
30456
30223
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -30486,24 +30253,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30486
30253
|
/**
|
|
30487
30254
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
30488
30255
|
* @summary Delete a booking space question choice
|
|
30489
|
-
* @param {string} placeId The place identifier
|
|
30490
30256
|
* @param {string} spaceId The space identifier
|
|
30491
30257
|
* @param {string} questionId The question identifier
|
|
30492
30258
|
* @param {string} choiceId The choice identifier
|
|
30493
30259
|
* @param {*} [options] Override http request option.
|
|
30494
30260
|
* @throws {RequiredError}
|
|
30495
30261
|
*/
|
|
30496
|
-
deleteBookingSpaceQuestionChoice: async (
|
|
30497
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30498
|
-
assertParamExists('deleteBookingSpaceQuestionChoice', 'placeId', placeId)
|
|
30262
|
+
deleteBookingSpaceQuestionChoice: async (spaceId: string, questionId: string, choiceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30499
30263
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30500
30264
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'spaceId', spaceId)
|
|
30501
30265
|
// verify required parameter 'questionId' is not null or undefined
|
|
30502
30266
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'questionId', questionId)
|
|
30503
30267
|
// verify required parameter 'choiceId' is not null or undefined
|
|
30504
30268
|
assertParamExists('deleteBookingSpaceQuestionChoice', 'choiceId', choiceId)
|
|
30505
|
-
const localVarPath = `/bookings/
|
|
30506
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30269
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
30507
30270
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30508
30271
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
30509
30272
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -30538,24 +30301,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30538
30301
|
/**
|
|
30539
30302
|
* 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\".
|
|
30540
30303
|
* @summary Get a booking space question choice
|
|
30541
|
-
* @param {string} placeId The place identifier
|
|
30542
30304
|
* @param {string} spaceId The space identifier
|
|
30543
30305
|
* @param {string} questionId The question identifier
|
|
30544
30306
|
* @param {string} choiceId The choice identifier
|
|
30545
30307
|
* @param {*} [options] Override http request option.
|
|
30546
30308
|
* @throws {RequiredError}
|
|
30547
30309
|
*/
|
|
30548
|
-
getBookingSpaceQuestionChoice: async (
|
|
30549
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30550
|
-
assertParamExists('getBookingSpaceQuestionChoice', 'placeId', placeId)
|
|
30310
|
+
getBookingSpaceQuestionChoice: async (spaceId: string, questionId: string, choiceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30551
30311
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30552
30312
|
assertParamExists('getBookingSpaceQuestionChoice', 'spaceId', spaceId)
|
|
30553
30313
|
// verify required parameter 'questionId' is not null or undefined
|
|
30554
30314
|
assertParamExists('getBookingSpaceQuestionChoice', 'questionId', questionId)
|
|
30555
30315
|
// verify required parameter 'choiceId' is not null or undefined
|
|
30556
30316
|
assertParamExists('getBookingSpaceQuestionChoice', 'choiceId', choiceId)
|
|
30557
|
-
const localVarPath = `/bookings/
|
|
30558
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30317
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
30559
30318
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30560
30319
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
30561
30320
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -30590,7 +30349,6 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30590
30349
|
/**
|
|
30591
30350
|
* 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\".
|
|
30592
30351
|
* @summary List a booking space question\'s choices
|
|
30593
|
-
* @param {string} placeId The place identifier
|
|
30594
30352
|
* @param {string} spaceId The space identifier
|
|
30595
30353
|
* @param {string} questionId The question identifier
|
|
30596
30354
|
* @param {number} [page] Page number
|
|
@@ -30600,15 +30358,12 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30600
30358
|
* @param {*} [options] Override http request option.
|
|
30601
30359
|
* @throws {RequiredError}
|
|
30602
30360
|
*/
|
|
30603
|
-
getBookingSpaceQuestionChoices: async (
|
|
30604
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30605
|
-
assertParamExists('getBookingSpaceQuestionChoices', 'placeId', placeId)
|
|
30361
|
+
getBookingSpaceQuestionChoices: async (spaceId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30606
30362
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30607
30363
|
assertParamExists('getBookingSpaceQuestionChoices', 'spaceId', spaceId)
|
|
30608
30364
|
// verify required parameter 'questionId' is not null or undefined
|
|
30609
30365
|
assertParamExists('getBookingSpaceQuestionChoices', 'questionId', questionId)
|
|
30610
|
-
const localVarPath = `/bookings/
|
|
30611
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30366
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices`
|
|
30612
30367
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30613
30368
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
30614
30369
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -30658,24 +30413,20 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30658
30413
|
/**
|
|
30659
30414
|
* 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.
|
|
30660
30415
|
* @summary Reorder a booking question\'s choices
|
|
30661
|
-
* @param {string} placeId The place identifier
|
|
30662
30416
|
* @param {string} spaceId The space identifier
|
|
30663
30417
|
* @param {string} questionId The question identifier
|
|
30664
30418
|
* @param {ReorderBookingSpaceQuestionChoicesRequest} reorderBookingSpaceQuestionChoicesRequest
|
|
30665
30419
|
* @param {*} [options] Override http request option.
|
|
30666
30420
|
* @throws {RequiredError}
|
|
30667
30421
|
*/
|
|
30668
|
-
reorderBookingSpaceQuestionChoices: async (
|
|
30669
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30670
|
-
assertParamExists('reorderBookingSpaceQuestionChoices', 'placeId', placeId)
|
|
30422
|
+
reorderBookingSpaceQuestionChoices: async (spaceId: string, questionId: string, reorderBookingSpaceQuestionChoicesRequest: ReorderBookingSpaceQuestionChoicesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30671
30423
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30672
30424
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'spaceId', spaceId)
|
|
30673
30425
|
// verify required parameter 'questionId' is not null or undefined
|
|
30674
30426
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'questionId', questionId)
|
|
30675
30427
|
// verify required parameter 'reorderBookingSpaceQuestionChoicesRequest' is not null or undefined
|
|
30676
30428
|
assertParamExists('reorderBookingSpaceQuestionChoices', 'reorderBookingSpaceQuestionChoicesRequest', reorderBookingSpaceQuestionChoicesRequest)
|
|
30677
|
-
const localVarPath = `/bookings/
|
|
30678
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30429
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/reorder`
|
|
30679
30430
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30680
30431
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
30681
30432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -30711,7 +30462,6 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30711
30462
|
/**
|
|
30712
30463
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
30713
30464
|
* @summary Update a booking space question choice
|
|
30714
|
-
* @param {string} placeId The place identifier
|
|
30715
30465
|
* @param {string} spaceId The space identifier
|
|
30716
30466
|
* @param {string} questionId The question identifier
|
|
30717
30467
|
* @param {string} choiceId The choice identifier
|
|
@@ -30719,9 +30469,7 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30719
30469
|
* @param {*} [options] Override http request option.
|
|
30720
30470
|
* @throws {RequiredError}
|
|
30721
30471
|
*/
|
|
30722
|
-
updateBookingSpaceQuestionChoice: async (
|
|
30723
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
30724
|
-
assertParamExists('updateBookingSpaceQuestionChoice', 'placeId', placeId)
|
|
30472
|
+
updateBookingSpaceQuestionChoice: async (spaceId: string, questionId: string, choiceId: string, bookingSpaceQuestionChoiceUpdateInputs: BookingSpaceQuestionChoiceUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30725
30473
|
// verify required parameter 'spaceId' is not null or undefined
|
|
30726
30474
|
assertParamExists('updateBookingSpaceQuestionChoice', 'spaceId', spaceId)
|
|
30727
30475
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -30730,8 +30478,7 @@ export const BookingsQuestionsChoicesApiAxiosParamCreator = function (configurat
|
|
|
30730
30478
|
assertParamExists('updateBookingSpaceQuestionChoice', 'choiceId', choiceId)
|
|
30731
30479
|
// verify required parameter 'bookingSpaceQuestionChoiceUpdateInputs' is not null or undefined
|
|
30732
30480
|
assertParamExists('updateBookingSpaceQuestionChoice', 'bookingSpaceQuestionChoiceUpdateInputs', bookingSpaceQuestionChoiceUpdateInputs)
|
|
30733
|
-
const localVarPath = `/bookings/
|
|
30734
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30481
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}`
|
|
30735
30482
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
30736
30483
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
30737
30484
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -30777,15 +30524,14 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30777
30524
|
/**
|
|
30778
30525
|
* Creates a new selectable choice for a multiple-choice question on a booking space, requires the update bookings permission.
|
|
30779
30526
|
* @summary Create a booking space question choice
|
|
30780
|
-
* @param {string} placeId The place identifier
|
|
30781
30527
|
* @param {string} spaceId The space identifier
|
|
30782
30528
|
* @param {string} questionId The question identifier
|
|
30783
30529
|
* @param {BookingSpaceQuestionChoiceCreateInputs} bookingSpaceQuestionChoiceCreateInputs
|
|
30784
30530
|
* @param {*} [options] Override http request option.
|
|
30785
30531
|
* @throws {RequiredError}
|
|
30786
30532
|
*/
|
|
30787
|
-
async createBookingSpaceQuestionChoice(
|
|
30788
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceQuestionChoice(
|
|
30533
|
+
async createBookingSpaceQuestionChoice(spaceId: string, questionId: string, bookingSpaceQuestionChoiceCreateInputs: BookingSpaceQuestionChoiceCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestionChoice200Response>> {
|
|
30534
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpaceQuestionChoice(spaceId, questionId, bookingSpaceQuestionChoiceCreateInputs, options);
|
|
30789
30535
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30790
30536
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.createBookingSpaceQuestionChoice']?.[localVarOperationServerIndex]?.url;
|
|
30791
30537
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30793,15 +30539,14 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30793
30539
|
/**
|
|
30794
30540
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
30795
30541
|
* @summary Delete a booking space question choice
|
|
30796
|
-
* @param {string} placeId The place identifier
|
|
30797
30542
|
* @param {string} spaceId The space identifier
|
|
30798
30543
|
* @param {string} questionId The question identifier
|
|
30799
30544
|
* @param {string} choiceId The choice identifier
|
|
30800
30545
|
* @param {*} [options] Override http request option.
|
|
30801
30546
|
* @throws {RequiredError}
|
|
30802
30547
|
*/
|
|
30803
|
-
async deleteBookingSpaceQuestionChoice(
|
|
30804
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionChoice(
|
|
30548
|
+
async deleteBookingSpaceQuestionChoice(spaceId: string, questionId: string, choiceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
30549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options);
|
|
30805
30550
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30806
30551
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.deleteBookingSpaceQuestionChoice']?.[localVarOperationServerIndex]?.url;
|
|
30807
30552
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30809,15 +30554,14 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30809
30554
|
/**
|
|
30810
30555
|
* 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\".
|
|
30811
30556
|
* @summary Get a booking space question choice
|
|
30812
|
-
* @param {string} placeId The place identifier
|
|
30813
30557
|
* @param {string} spaceId The space identifier
|
|
30814
30558
|
* @param {string} questionId The question identifier
|
|
30815
30559
|
* @param {string} choiceId The choice identifier
|
|
30816
30560
|
* @param {*} [options] Override http request option.
|
|
30817
30561
|
* @throws {RequiredError}
|
|
30818
30562
|
*/
|
|
30819
|
-
async getBookingSpaceQuestionChoice(
|
|
30820
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoice(
|
|
30563
|
+
async getBookingSpaceQuestionChoice(spaceId: string, questionId: string, choiceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestionChoice200Response>> {
|
|
30564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoice(spaceId, questionId, choiceId, options);
|
|
30821
30565
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30822
30566
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.getBookingSpaceQuestionChoice']?.[localVarOperationServerIndex]?.url;
|
|
30823
30567
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30825,7 +30569,6 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30825
30569
|
/**
|
|
30826
30570
|
* 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\".
|
|
30827
30571
|
* @summary List a booking space question\'s choices
|
|
30828
|
-
* @param {string} placeId The place identifier
|
|
30829
30572
|
* @param {string} spaceId The space identifier
|
|
30830
30573
|
* @param {string} questionId The question identifier
|
|
30831
30574
|
* @param {number} [page] Page number
|
|
@@ -30835,8 +30578,8 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30835
30578
|
* @param {*} [options] Override http request option.
|
|
30836
30579
|
* @throws {RequiredError}
|
|
30837
30580
|
*/
|
|
30838
|
-
async getBookingSpaceQuestionChoices(
|
|
30839
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoices(
|
|
30581
|
+
async getBookingSpaceQuestionChoices(spaceId: string, questionId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionChoices200Response>> {
|
|
30582
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoices(spaceId, questionId, page, pageSize, orderBy, search, options);
|
|
30840
30583
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30841
30584
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.getBookingSpaceQuestionChoices']?.[localVarOperationServerIndex]?.url;
|
|
30842
30585
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30844,15 +30587,14 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30844
30587
|
/**
|
|
30845
30588
|
* 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.
|
|
30846
30589
|
* @summary Reorder a booking question\'s choices
|
|
30847
|
-
* @param {string} placeId The place identifier
|
|
30848
30590
|
* @param {string} spaceId The space identifier
|
|
30849
30591
|
* @param {string} questionId The question identifier
|
|
30850
30592
|
* @param {ReorderBookingSpaceQuestionChoicesRequest} reorderBookingSpaceQuestionChoicesRequest
|
|
30851
30593
|
* @param {*} [options] Override http request option.
|
|
30852
30594
|
* @throws {RequiredError}
|
|
30853
30595
|
*/
|
|
30854
|
-
async reorderBookingSpaceQuestionChoices(
|
|
30855
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.reorderBookingSpaceQuestionChoices(
|
|
30596
|
+
async reorderBookingSpaceQuestionChoices(spaceId: string, questionId: string, reorderBookingSpaceQuestionChoicesRequest: ReorderBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorderBookingSpaceQuestionChoices200Response>> {
|
|
30597
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reorderBookingSpaceQuestionChoices(spaceId, questionId, reorderBookingSpaceQuestionChoicesRequest, options);
|
|
30856
30598
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30857
30599
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.reorderBookingSpaceQuestionChoices']?.[localVarOperationServerIndex]?.url;
|
|
30858
30600
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30860,7 +30602,6 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30860
30602
|
/**
|
|
30861
30603
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
30862
30604
|
* @summary Update a booking space question choice
|
|
30863
|
-
* @param {string} placeId The place identifier
|
|
30864
30605
|
* @param {string} spaceId The space identifier
|
|
30865
30606
|
* @param {string} questionId The question identifier
|
|
30866
30607
|
* @param {string} choiceId The choice identifier
|
|
@@ -30868,8 +30609,8 @@ export const BookingsQuestionsChoicesApiFp = function(configuration?: Configurat
|
|
|
30868
30609
|
* @param {*} [options] Override http request option.
|
|
30869
30610
|
* @throws {RequiredError}
|
|
30870
30611
|
*/
|
|
30871
|
-
async updateBookingSpaceQuestionChoice(
|
|
30872
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionChoice(
|
|
30612
|
+
async updateBookingSpaceQuestionChoice(spaceId: string, questionId: string, choiceId: string, bookingSpaceQuestionChoiceUpdateInputs: BookingSpaceQuestionChoiceUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpaceQuestionChoice200Response>> {
|
|
30613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionChoice(spaceId, questionId, choiceId, bookingSpaceQuestionChoiceUpdateInputs, options);
|
|
30873
30614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30874
30615
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesApi.updateBookingSpaceQuestionChoice']?.[localVarOperationServerIndex]?.url;
|
|
30875
30616
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -30891,7 +30632,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30891
30632
|
* @throws {RequiredError}
|
|
30892
30633
|
*/
|
|
30893
30634
|
createBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiCreateBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestionChoice200Response> {
|
|
30894
|
-
return localVarFp.createBookingSpaceQuestionChoice(requestParameters.
|
|
30635
|
+
return localVarFp.createBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionChoiceCreateInputs, options).then((request) => request(axios, basePath));
|
|
30895
30636
|
},
|
|
30896
30637
|
/**
|
|
30897
30638
|
* Permanently deletes a choice from a booking space question by its ID, requires the update bookings permission.
|
|
@@ -30901,7 +30642,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30901
30642
|
* @throws {RequiredError}
|
|
30902
30643
|
*/
|
|
30903
30644
|
deleteBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiDeleteBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
30904
|
-
return localVarFp.deleteBookingSpaceQuestionChoice(requestParameters.
|
|
30645
|
+
return localVarFp.deleteBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
30905
30646
|
},
|
|
30906
30647
|
/**
|
|
30907
30648
|
* 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\".
|
|
@@ -30911,7 +30652,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30911
30652
|
* @throws {RequiredError}
|
|
30912
30653
|
*/
|
|
30913
30654
|
getBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestionChoice200Response> {
|
|
30914
|
-
return localVarFp.getBookingSpaceQuestionChoice(requestParameters.
|
|
30655
|
+
return localVarFp.getBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
30915
30656
|
},
|
|
30916
30657
|
/**
|
|
30917
30658
|
* 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\".
|
|
@@ -30921,7 +30662,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30921
30662
|
* @throws {RequiredError}
|
|
30922
30663
|
*/
|
|
30923
30664
|
getBookingSpaceQuestionChoices(requestParameters: BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionChoices200Response> {
|
|
30924
|
-
return localVarFp.getBookingSpaceQuestionChoices(requestParameters.
|
|
30665
|
+
return localVarFp.getBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30925
30666
|
},
|
|
30926
30667
|
/**
|
|
30927
30668
|
* 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.
|
|
@@ -30931,7 +30672,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30931
30672
|
* @throws {RequiredError}
|
|
30932
30673
|
*/
|
|
30933
30674
|
reorderBookingSpaceQuestionChoices(requestParameters: BookingsQuestionsChoicesApiReorderBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReorderBookingSpaceQuestionChoices200Response> {
|
|
30934
|
-
return localVarFp.reorderBookingSpaceQuestionChoices(requestParameters.
|
|
30675
|
+
return localVarFp.reorderBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.reorderBookingSpaceQuestionChoicesRequest, options).then((request) => request(axios, basePath));
|
|
30935
30676
|
},
|
|
30936
30677
|
/**
|
|
30937
30678
|
* Updates the details of an existing choice on a booking space question by its ID, requires the update bookings permission.
|
|
@@ -30941,7 +30682,7 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30941
30682
|
* @throws {RequiredError}
|
|
30942
30683
|
*/
|
|
30943
30684
|
updateBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiUpdateBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpaceQuestionChoice200Response> {
|
|
30944
|
-
return localVarFp.updateBookingSpaceQuestionChoice(requestParameters.
|
|
30685
|
+
return localVarFp.updateBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.bookingSpaceQuestionChoiceUpdateInputs, options).then((request) => request(axios, basePath));
|
|
30945
30686
|
},
|
|
30946
30687
|
};
|
|
30947
30688
|
};
|
|
@@ -30950,11 +30691,6 @@ export const BookingsQuestionsChoicesApiFactory = function (configuration?: Conf
|
|
|
30950
30691
|
* Request parameters for createBookingSpaceQuestionChoice operation in BookingsQuestionsChoicesApi.
|
|
30951
30692
|
*/
|
|
30952
30693
|
export interface BookingsQuestionsChoicesApiCreateBookingSpaceQuestionChoiceRequest {
|
|
30953
|
-
/**
|
|
30954
|
-
* The place identifier
|
|
30955
|
-
*/
|
|
30956
|
-
readonly placeId: string
|
|
30957
|
-
|
|
30958
30694
|
/**
|
|
30959
30695
|
* The space identifier
|
|
30960
30696
|
*/
|
|
@@ -30972,11 +30708,6 @@ export interface BookingsQuestionsChoicesApiCreateBookingSpaceQuestionChoiceRequ
|
|
|
30972
30708
|
* Request parameters for deleteBookingSpaceQuestionChoice operation in BookingsQuestionsChoicesApi.
|
|
30973
30709
|
*/
|
|
30974
30710
|
export interface BookingsQuestionsChoicesApiDeleteBookingSpaceQuestionChoiceRequest {
|
|
30975
|
-
/**
|
|
30976
|
-
* The place identifier
|
|
30977
|
-
*/
|
|
30978
|
-
readonly placeId: string
|
|
30979
|
-
|
|
30980
30711
|
/**
|
|
30981
30712
|
* The space identifier
|
|
30982
30713
|
*/
|
|
@@ -30997,11 +30728,6 @@ export interface BookingsQuestionsChoicesApiDeleteBookingSpaceQuestionChoiceRequ
|
|
|
30997
30728
|
* Request parameters for getBookingSpaceQuestionChoice operation in BookingsQuestionsChoicesApi.
|
|
30998
30729
|
*/
|
|
30999
30730
|
export interface BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoiceRequest {
|
|
31000
|
-
/**
|
|
31001
|
-
* The place identifier
|
|
31002
|
-
*/
|
|
31003
|
-
readonly placeId: string
|
|
31004
|
-
|
|
31005
30731
|
/**
|
|
31006
30732
|
* The space identifier
|
|
31007
30733
|
*/
|
|
@@ -31022,11 +30748,6 @@ export interface BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoiceRequest
|
|
|
31022
30748
|
* Request parameters for getBookingSpaceQuestionChoices operation in BookingsQuestionsChoicesApi.
|
|
31023
30749
|
*/
|
|
31024
30750
|
export interface BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoicesRequest {
|
|
31025
|
-
/**
|
|
31026
|
-
* The place identifier
|
|
31027
|
-
*/
|
|
31028
|
-
readonly placeId: string
|
|
31029
|
-
|
|
31030
30751
|
/**
|
|
31031
30752
|
* The space identifier
|
|
31032
30753
|
*/
|
|
@@ -31062,11 +30783,6 @@ export interface BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoicesReques
|
|
|
31062
30783
|
* Request parameters for reorderBookingSpaceQuestionChoices operation in BookingsQuestionsChoicesApi.
|
|
31063
30784
|
*/
|
|
31064
30785
|
export interface BookingsQuestionsChoicesApiReorderBookingSpaceQuestionChoicesRequest {
|
|
31065
|
-
/**
|
|
31066
|
-
* The place identifier
|
|
31067
|
-
*/
|
|
31068
|
-
readonly placeId: string
|
|
31069
|
-
|
|
31070
30786
|
/**
|
|
31071
30787
|
* The space identifier
|
|
31072
30788
|
*/
|
|
@@ -31084,11 +30800,6 @@ export interface BookingsQuestionsChoicesApiReorderBookingSpaceQuestionChoicesRe
|
|
|
31084
30800
|
* Request parameters for updateBookingSpaceQuestionChoice operation in BookingsQuestionsChoicesApi.
|
|
31085
30801
|
*/
|
|
31086
30802
|
export interface BookingsQuestionsChoicesApiUpdateBookingSpaceQuestionChoiceRequest {
|
|
31087
|
-
/**
|
|
31088
|
-
* The place identifier
|
|
31089
|
-
*/
|
|
31090
|
-
readonly placeId: string
|
|
31091
|
-
|
|
31092
30803
|
/**
|
|
31093
30804
|
* The space identifier
|
|
31094
30805
|
*/
|
|
@@ -31119,7 +30830,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31119
30830
|
* @throws {RequiredError}
|
|
31120
30831
|
*/
|
|
31121
30832
|
public createBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiCreateBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig) {
|
|
31122
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).createBookingSpaceQuestionChoice(requestParameters.
|
|
30833
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).createBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.bookingSpaceQuestionChoiceCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
31123
30834
|
}
|
|
31124
30835
|
|
|
31125
30836
|
/**
|
|
@@ -31130,7 +30841,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31130
30841
|
* @throws {RequiredError}
|
|
31131
30842
|
*/
|
|
31132
30843
|
public deleteBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiDeleteBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig) {
|
|
31133
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).deleteBookingSpaceQuestionChoice(requestParameters.
|
|
30844
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).deleteBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
31134
30845
|
}
|
|
31135
30846
|
|
|
31136
30847
|
/**
|
|
@@ -31141,7 +30852,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31141
30852
|
* @throws {RequiredError}
|
|
31142
30853
|
*/
|
|
31143
30854
|
public getBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig) {
|
|
31144
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoice(requestParameters.
|
|
30855
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
31145
30856
|
}
|
|
31146
30857
|
|
|
31147
30858
|
/**
|
|
@@ -31152,7 +30863,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31152
30863
|
* @throws {RequiredError}
|
|
31153
30864
|
*/
|
|
31154
30865
|
public getBookingSpaceQuestionChoices(requestParameters: BookingsQuestionsChoicesApiGetBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig) {
|
|
31155
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).getBookingSpaceQuestionChoices(requestParameters.
|
|
30866
|
+
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));
|
|
31156
30867
|
}
|
|
31157
30868
|
|
|
31158
30869
|
/**
|
|
@@ -31163,7 +30874,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31163
30874
|
* @throws {RequiredError}
|
|
31164
30875
|
*/
|
|
31165
30876
|
public reorderBookingSpaceQuestionChoices(requestParameters: BookingsQuestionsChoicesApiReorderBookingSpaceQuestionChoicesRequest, options?: RawAxiosRequestConfig) {
|
|
31166
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).reorderBookingSpaceQuestionChoices(requestParameters.
|
|
30877
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).reorderBookingSpaceQuestionChoices(requestParameters.spaceId, requestParameters.questionId, requestParameters.reorderBookingSpaceQuestionChoicesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
31167
30878
|
}
|
|
31168
30879
|
|
|
31169
30880
|
/**
|
|
@@ -31174,7 +30885,7 @@ export class BookingsQuestionsChoicesApi extends BaseAPI {
|
|
|
31174
30885
|
* @throws {RequiredError}
|
|
31175
30886
|
*/
|
|
31176
30887
|
public updateBookingSpaceQuestionChoice(requestParameters: BookingsQuestionsChoicesApiUpdateBookingSpaceQuestionChoiceRequest, options?: RawAxiosRequestConfig) {
|
|
31177
|
-
return BookingsQuestionsChoicesApiFp(this.configuration).updateBookingSpaceQuestionChoice(requestParameters.
|
|
30888
|
+
return BookingsQuestionsChoicesApiFp(this.configuration).updateBookingSpaceQuestionChoice(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.bookingSpaceQuestionChoiceUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
31178
30889
|
}
|
|
31179
30890
|
}
|
|
31180
30891
|
|
|
@@ -31188,7 +30899,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31188
30899
|
/**
|
|
31189
30900
|
* Removes the translation for a specific locale from a booking space question choice, requires the update bookings permission.
|
|
31190
30901
|
* @summary Delete a booking question choice\'s translation
|
|
31191
|
-
* @param {string} placeId The place identifier
|
|
31192
30902
|
* @param {string} spaceId The space identifier
|
|
31193
30903
|
* @param {string} questionId The question identifier
|
|
31194
30904
|
* @param {string} choiceId The choice identifier
|
|
@@ -31196,9 +30906,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31196
30906
|
* @param {*} [options] Override http request option.
|
|
31197
30907
|
* @throws {RequiredError}
|
|
31198
30908
|
*/
|
|
31199
|
-
deleteBookingSpaceQuestionChoiceTranslation: async (
|
|
31200
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31201
|
-
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'placeId', placeId)
|
|
30909
|
+
deleteBookingSpaceQuestionChoiceTranslation: async (spaceId: string, questionId: string, choiceId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31202
30910
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31203
30911
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId)
|
|
31204
30912
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -31207,8 +30915,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31207
30915
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'choiceId', choiceId)
|
|
31208
30916
|
// verify required parameter 'locale' is not null or undefined
|
|
31209
30917
|
assertParamExists('deleteBookingSpaceQuestionChoiceTranslation', 'locale', locale)
|
|
31210
|
-
const localVarPath = `/bookings/
|
|
31211
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30918
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
31212
30919
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31213
30920
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31214
30921
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -31244,7 +30951,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31244
30951
|
/**
|
|
31245
30952
|
* 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\".
|
|
31246
30953
|
* @summary Get a booking question choice\'s translation
|
|
31247
|
-
* @param {string} placeId The place identifier
|
|
31248
30954
|
* @param {string} spaceId The space identifier
|
|
31249
30955
|
* @param {string} questionId The question identifier
|
|
31250
30956
|
* @param {string} choiceId The choice identifier
|
|
@@ -31252,9 +30958,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31252
30958
|
* @param {*} [options] Override http request option.
|
|
31253
30959
|
* @throws {RequiredError}
|
|
31254
30960
|
*/
|
|
31255
|
-
getBookingSpaceQuestionChoiceTranslation: async (
|
|
31256
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31257
|
-
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'placeId', placeId)
|
|
30961
|
+
getBookingSpaceQuestionChoiceTranslation: async (spaceId: string, questionId: string, choiceId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31258
30962
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31259
30963
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId)
|
|
31260
30964
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -31263,8 +30967,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31263
30967
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'choiceId', choiceId)
|
|
31264
30968
|
// verify required parameter 'locale' is not null or undefined
|
|
31265
30969
|
assertParamExists('getBookingSpaceQuestionChoiceTranslation', 'locale', locale)
|
|
31266
|
-
const localVarPath = `/bookings/
|
|
31267
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
30970
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
31268
30971
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31269
30972
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31270
30973
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -31300,24 +31003,20 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31300
31003
|
/**
|
|
31301
31004
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
31302
31005
|
* @summary List a booking question choice\'s translations
|
|
31303
|
-
* @param {string} placeId The place identifier
|
|
31304
31006
|
* @param {string} spaceId The space identifier
|
|
31305
31007
|
* @param {string} questionId The question identifier
|
|
31306
31008
|
* @param {string} choiceId The choice identifier
|
|
31307
31009
|
* @param {*} [options] Override http request option.
|
|
31308
31010
|
* @throws {RequiredError}
|
|
31309
31011
|
*/
|
|
31310
|
-
getBookingSpaceQuestionChoiceTranslations: async (
|
|
31311
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31312
|
-
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'placeId', placeId)
|
|
31012
|
+
getBookingSpaceQuestionChoiceTranslations: async (spaceId: string, questionId: string, choiceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31313
31013
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31314
31014
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'spaceId', spaceId)
|
|
31315
31015
|
// verify required parameter 'questionId' is not null or undefined
|
|
31316
31016
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'questionId', questionId)
|
|
31317
31017
|
// verify required parameter 'choiceId' is not null or undefined
|
|
31318
31018
|
assertParamExists('getBookingSpaceQuestionChoiceTranslations', 'choiceId', choiceId)
|
|
31319
|
-
const localVarPath = `/bookings/
|
|
31320
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31019
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations`
|
|
31321
31020
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31322
31021
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31323
31022
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)));
|
|
@@ -31352,7 +31051,6 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31352
31051
|
/**
|
|
31353
31052
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
31354
31053
|
* @summary Update a booking question choice\'s translation
|
|
31355
|
-
* @param {string} placeId The place identifier
|
|
31356
31054
|
* @param {string} spaceId The space identifier
|
|
31357
31055
|
* @param {string} questionId The question identifier
|
|
31358
31056
|
* @param {string} choiceId The choice identifier
|
|
@@ -31361,9 +31059,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31361
31059
|
* @param {*} [options] Override http request option.
|
|
31362
31060
|
* @throws {RequiredError}
|
|
31363
31061
|
*/
|
|
31364
|
-
updateBookingSpaceQuestionChoiceTranslation: async (
|
|
31365
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31366
|
-
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'placeId', placeId)
|
|
31062
|
+
updateBookingSpaceQuestionChoiceTranslation: async (spaceId: string, questionId: string, choiceId: string, locale: string, bookingSpaceQuestionChoiceTranslationUpdateInputs: BookingSpaceQuestionChoiceTranslationUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31367
31063
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31368
31064
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'spaceId', spaceId)
|
|
31369
31065
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -31374,8 +31070,7 @@ export const BookingsQuestionsChoicesTranslationsApiAxiosParamCreator = function
|
|
|
31374
31070
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'locale', locale)
|
|
31375
31071
|
// verify required parameter 'bookingSpaceQuestionChoiceTranslationUpdateInputs' is not null or undefined
|
|
31376
31072
|
assertParamExists('updateBookingSpaceQuestionChoiceTranslation', 'bookingSpaceQuestionChoiceTranslationUpdateInputs', bookingSpaceQuestionChoiceTranslationUpdateInputs)
|
|
31377
|
-
const localVarPath = `/bookings/
|
|
31378
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31073
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/choices/{choiceId}/translations/{locale}`
|
|
31379
31074
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31380
31075
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31381
31076
|
.replace(`{${"choiceId"}}`, encodeURIComponent(String(choiceId)))
|
|
@@ -31422,7 +31117,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31422
31117
|
/**
|
|
31423
31118
|
* Removes the translation for a specific locale from a booking space question choice, requires the update bookings permission.
|
|
31424
31119
|
* @summary Delete a booking question choice\'s translation
|
|
31425
|
-
* @param {string} placeId The place identifier
|
|
31426
31120
|
* @param {string} spaceId The space identifier
|
|
31427
31121
|
* @param {string} questionId The question identifier
|
|
31428
31122
|
* @param {string} choiceId The choice identifier
|
|
@@ -31430,8 +31124,8 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31430
31124
|
* @param {*} [options] Override http request option.
|
|
31431
31125
|
* @throws {RequiredError}
|
|
31432
31126
|
*/
|
|
31433
|
-
async deleteBookingSpaceQuestionChoiceTranslation(
|
|
31434
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionChoiceTranslation(
|
|
31127
|
+
async deleteBookingSpaceQuestionChoiceTranslation(spaceId: string, questionId: string, choiceId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
|
|
31128
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options);
|
|
31435
31129
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31436
31130
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesTranslationsApi.deleteBookingSpaceQuestionChoiceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31437
31131
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31439,7 +31133,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31439
31133
|
/**
|
|
31440
31134
|
* 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\".
|
|
31441
31135
|
* @summary Get a booking question choice\'s translation
|
|
31442
|
-
* @param {string} placeId The place identifier
|
|
31443
31136
|
* @param {string} spaceId The space identifier
|
|
31444
31137
|
* @param {string} questionId The question identifier
|
|
31445
31138
|
* @param {string} choiceId The choice identifier
|
|
@@ -31447,8 +31140,8 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31447
31140
|
* @param {*} [options] Override http request option.
|
|
31448
31141
|
* @throws {RequiredError}
|
|
31449
31142
|
*/
|
|
31450
|
-
async getBookingSpaceQuestionChoiceTranslation(
|
|
31451
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslation(
|
|
31143
|
+
async getBookingSpaceQuestionChoiceTranslation(spaceId: string, questionId: string, choiceId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionChoiceTranslation200Response>> {
|
|
31144
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, options);
|
|
31452
31145
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31453
31146
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesTranslationsApi.getBookingSpaceQuestionChoiceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31454
31147
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31456,15 +31149,14 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31456
31149
|
/**
|
|
31457
31150
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
31458
31151
|
* @summary List a booking question choice\'s translations
|
|
31459
|
-
* @param {string} placeId The place identifier
|
|
31460
31152
|
* @param {string} spaceId The space identifier
|
|
31461
31153
|
* @param {string} questionId The question identifier
|
|
31462
31154
|
* @param {string} choiceId The choice identifier
|
|
31463
31155
|
* @param {*} [options] Override http request option.
|
|
31464
31156
|
* @throws {RequiredError}
|
|
31465
31157
|
*/
|
|
31466
|
-
async getBookingSpaceQuestionChoiceTranslations(
|
|
31467
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslations(
|
|
31158
|
+
async getBookingSpaceQuestionChoiceTranslations(spaceId: string, questionId: string, choiceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionChoiceTranslations200Response>> {
|
|
31159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionChoiceTranslations(spaceId, questionId, choiceId, options);
|
|
31468
31160
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31469
31161
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesTranslationsApi.getBookingSpaceQuestionChoiceTranslations']?.[localVarOperationServerIndex]?.url;
|
|
31470
31162
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31472,7 +31164,6 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31472
31164
|
/**
|
|
31473
31165
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
31474
31166
|
* @summary Update a booking question choice\'s translation
|
|
31475
|
-
* @param {string} placeId The place identifier
|
|
31476
31167
|
* @param {string} spaceId The space identifier
|
|
31477
31168
|
* @param {string} questionId The question identifier
|
|
31478
31169
|
* @param {string} choiceId The choice identifier
|
|
@@ -31481,8 +31172,8 @@ export const BookingsQuestionsChoicesTranslationsApiFp = function(configuration?
|
|
|
31481
31172
|
* @param {*} [options] Override http request option.
|
|
31482
31173
|
* @throws {RequiredError}
|
|
31483
31174
|
*/
|
|
31484
|
-
async updateBookingSpaceQuestionChoiceTranslation(
|
|
31485
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionChoiceTranslation(
|
|
31175
|
+
async updateBookingSpaceQuestionChoiceTranslation(spaceId: string, questionId: string, choiceId: string, locale: string, bookingSpaceQuestionChoiceTranslationUpdateInputs: BookingSpaceQuestionChoiceTranslationUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBookingSpaceQuestionChoiceTranslation200Response>> {
|
|
31176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionChoiceTranslation(spaceId, questionId, choiceId, locale, bookingSpaceQuestionChoiceTranslationUpdateInputs, options);
|
|
31486
31177
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31487
31178
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsChoicesTranslationsApi.updateBookingSpaceQuestionChoiceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31488
31179
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31504,7 +31195,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31504
31195
|
* @throws {RequiredError}
|
|
31505
31196
|
*/
|
|
31506
31197
|
deleteBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiDeleteBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
31507
|
-
return localVarFp.deleteBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31198
|
+
return localVarFp.deleteBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
31508
31199
|
},
|
|
31509
31200
|
/**
|
|
31510
31201
|
* 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\".
|
|
@@ -31514,7 +31205,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31514
31205
|
* @throws {RequiredError}
|
|
31515
31206
|
*/
|
|
31516
31207
|
getBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionChoiceTranslation200Response> {
|
|
31517
|
-
return localVarFp.getBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31208
|
+
return localVarFp.getBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
31518
31209
|
},
|
|
31519
31210
|
/**
|
|
31520
31211
|
* Returns the list of locale translations for a single answer choice on a booking space question; requires \"read\" permission on \"bookings\".
|
|
@@ -31524,7 +31215,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31524
31215
|
* @throws {RequiredError}
|
|
31525
31216
|
*/
|
|
31526
31217
|
getBookingSpaceQuestionChoiceTranslations(requestParameters: BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionChoiceTranslations200Response> {
|
|
31527
|
-
return localVarFp.getBookingSpaceQuestionChoiceTranslations(requestParameters.
|
|
31218
|
+
return localVarFp.getBookingSpaceQuestionChoiceTranslations(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(axios, basePath));
|
|
31528
31219
|
},
|
|
31529
31220
|
/**
|
|
31530
31221
|
* Updates the translated label for a booking space question choice in the given locale, requires the update bookings permission.
|
|
@@ -31534,7 +31225,7 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31534
31225
|
* @throws {RequiredError}
|
|
31535
31226
|
*/
|
|
31536
31227
|
updateBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiUpdateBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateBookingSpaceQuestionChoiceTranslation200Response> {
|
|
31537
|
-
return localVarFp.updateBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31228
|
+
return localVarFp.updateBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, requestParameters.bookingSpaceQuestionChoiceTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
31538
31229
|
},
|
|
31539
31230
|
};
|
|
31540
31231
|
};
|
|
@@ -31543,11 +31234,6 @@ export const BookingsQuestionsChoicesTranslationsApiFactory = function (configur
|
|
|
31543
31234
|
* Request parameters for deleteBookingSpaceQuestionChoiceTranslation operation in BookingsQuestionsChoicesTranslationsApi.
|
|
31544
31235
|
*/
|
|
31545
31236
|
export interface BookingsQuestionsChoicesTranslationsApiDeleteBookingSpaceQuestionChoiceTranslationRequest {
|
|
31546
|
-
/**
|
|
31547
|
-
* The place identifier
|
|
31548
|
-
*/
|
|
31549
|
-
readonly placeId: string
|
|
31550
|
-
|
|
31551
31237
|
/**
|
|
31552
31238
|
* The space identifier
|
|
31553
31239
|
*/
|
|
@@ -31573,11 +31259,6 @@ export interface BookingsQuestionsChoicesTranslationsApiDeleteBookingSpaceQuesti
|
|
|
31573
31259
|
* Request parameters for getBookingSpaceQuestionChoiceTranslation operation in BookingsQuestionsChoicesTranslationsApi.
|
|
31574
31260
|
*/
|
|
31575
31261
|
export interface BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationRequest {
|
|
31576
|
-
/**
|
|
31577
|
-
* The place identifier
|
|
31578
|
-
*/
|
|
31579
|
-
readonly placeId: string
|
|
31580
|
-
|
|
31581
31262
|
/**
|
|
31582
31263
|
* The space identifier
|
|
31583
31264
|
*/
|
|
@@ -31603,11 +31284,6 @@ export interface BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionC
|
|
|
31603
31284
|
* Request parameters for getBookingSpaceQuestionChoiceTranslations operation in BookingsQuestionsChoicesTranslationsApi.
|
|
31604
31285
|
*/
|
|
31605
31286
|
export interface BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationsRequest {
|
|
31606
|
-
/**
|
|
31607
|
-
* The place identifier
|
|
31608
|
-
*/
|
|
31609
|
-
readonly placeId: string
|
|
31610
|
-
|
|
31611
31287
|
/**
|
|
31612
31288
|
* The space identifier
|
|
31613
31289
|
*/
|
|
@@ -31628,11 +31304,6 @@ export interface BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionC
|
|
|
31628
31304
|
* Request parameters for updateBookingSpaceQuestionChoiceTranslation operation in BookingsQuestionsChoicesTranslationsApi.
|
|
31629
31305
|
*/
|
|
31630
31306
|
export interface BookingsQuestionsChoicesTranslationsApiUpdateBookingSpaceQuestionChoiceTranslationRequest {
|
|
31631
|
-
/**
|
|
31632
|
-
* The place identifier
|
|
31633
|
-
*/
|
|
31634
|
-
readonly placeId: string
|
|
31635
|
-
|
|
31636
31307
|
/**
|
|
31637
31308
|
* The space identifier
|
|
31638
31309
|
*/
|
|
@@ -31668,7 +31339,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
31668
31339
|
* @throws {RequiredError}
|
|
31669
31340
|
*/
|
|
31670
31341
|
public deleteBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiDeleteBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
31671
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31342
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
31672
31343
|
}
|
|
31673
31344
|
|
|
31674
31345
|
/**
|
|
@@ -31679,7 +31350,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
31679
31350
|
* @throws {RequiredError}
|
|
31680
31351
|
*/
|
|
31681
31352
|
public getBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
31682
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31353
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
31683
31354
|
}
|
|
31684
31355
|
|
|
31685
31356
|
/**
|
|
@@ -31690,7 +31361,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
31690
31361
|
* @throws {RequiredError}
|
|
31691
31362
|
*/
|
|
31692
31363
|
public getBookingSpaceQuestionChoiceTranslations(requestParameters: BookingsQuestionsChoicesTranslationsApiGetBookingSpaceQuestionChoiceTranslationsRequest, options?: RawAxiosRequestConfig) {
|
|
31693
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslations(requestParameters.
|
|
31364
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).getBookingSpaceQuestionChoiceTranslations(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, options).then((request) => request(this.axios, this.basePath));
|
|
31694
31365
|
}
|
|
31695
31366
|
|
|
31696
31367
|
/**
|
|
@@ -31701,7 +31372,7 @@ export class BookingsQuestionsChoicesTranslationsApi extends BaseAPI {
|
|
|
31701
31372
|
* @throws {RequiredError}
|
|
31702
31373
|
*/
|
|
31703
31374
|
public updateBookingSpaceQuestionChoiceTranslation(requestParameters: BookingsQuestionsChoicesTranslationsApiUpdateBookingSpaceQuestionChoiceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
31704
|
-
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).updateBookingSpaceQuestionChoiceTranslation(requestParameters.
|
|
31375
|
+
return BookingsQuestionsChoicesTranslationsApiFp(this.configuration).updateBookingSpaceQuestionChoiceTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.choiceId, requestParameters.locale, requestParameters.bookingSpaceQuestionChoiceTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
31705
31376
|
}
|
|
31706
31377
|
}
|
|
31707
31378
|
|
|
@@ -31715,24 +31386,20 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31715
31386
|
/**
|
|
31716
31387
|
* 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.
|
|
31717
31388
|
* @summary Delete a booking question translation
|
|
31718
|
-
* @param {string} placeId The place identifier
|
|
31719
31389
|
* @param {string} spaceId The space identifier
|
|
31720
31390
|
* @param {string} questionId The question identifier
|
|
31721
31391
|
* @param {string} locale The locale identifier
|
|
31722
31392
|
* @param {*} [options] Override http request option.
|
|
31723
31393
|
* @throws {RequiredError}
|
|
31724
31394
|
*/
|
|
31725
|
-
deleteBookingSpaceQuestionTranslation: async (
|
|
31726
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31727
|
-
assertParamExists('deleteBookingSpaceQuestionTranslation', 'placeId', placeId)
|
|
31395
|
+
deleteBookingSpaceQuestionTranslation: async (spaceId: string, questionId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31728
31396
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31729
31397
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'spaceId', spaceId)
|
|
31730
31398
|
// verify required parameter 'questionId' is not null or undefined
|
|
31731
31399
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'questionId', questionId)
|
|
31732
31400
|
// verify required parameter 'locale' is not null or undefined
|
|
31733
31401
|
assertParamExists('deleteBookingSpaceQuestionTranslation', 'locale', locale)
|
|
31734
|
-
const localVarPath = `/bookings/
|
|
31735
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31402
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
31736
31403
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31737
31404
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31738
31405
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -31767,24 +31434,20 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31767
31434
|
/**
|
|
31768
31435
|
* 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\".
|
|
31769
31436
|
* @summary Get a booking question\'s translation
|
|
31770
|
-
* @param {string} placeId The place identifier
|
|
31771
31437
|
* @param {string} spaceId The space identifier
|
|
31772
31438
|
* @param {string} questionId The question identifier
|
|
31773
31439
|
* @param {string} locale The locale identifier
|
|
31774
31440
|
* @param {*} [options] Override http request option.
|
|
31775
31441
|
* @throws {RequiredError}
|
|
31776
31442
|
*/
|
|
31777
|
-
getBookingSpaceQuestionTranslation: async (
|
|
31778
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31779
|
-
assertParamExists('getBookingSpaceQuestionTranslation', 'placeId', placeId)
|
|
31443
|
+
getBookingSpaceQuestionTranslation: async (spaceId: string, questionId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31780
31444
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31781
31445
|
assertParamExists('getBookingSpaceQuestionTranslation', 'spaceId', spaceId)
|
|
31782
31446
|
// verify required parameter 'questionId' is not null or undefined
|
|
31783
31447
|
assertParamExists('getBookingSpaceQuestionTranslation', 'questionId', questionId)
|
|
31784
31448
|
// verify required parameter 'locale' is not null or undefined
|
|
31785
31449
|
assertParamExists('getBookingSpaceQuestionTranslation', 'locale', locale)
|
|
31786
|
-
const localVarPath = `/bookings/
|
|
31787
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31450
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
31788
31451
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31789
31452
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31790
31453
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -31819,21 +31482,17 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31819
31482
|
/**
|
|
31820
31483
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
31821
31484
|
* @summary List a booking question\'s translations
|
|
31822
|
-
* @param {string} placeId The place identifier
|
|
31823
31485
|
* @param {string} spaceId The space identifier
|
|
31824
31486
|
* @param {string} questionId The question identifier
|
|
31825
31487
|
* @param {*} [options] Override http request option.
|
|
31826
31488
|
* @throws {RequiredError}
|
|
31827
31489
|
*/
|
|
31828
|
-
getBookingSpaceQuestionTranslations: async (
|
|
31829
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31830
|
-
assertParamExists('getBookingSpaceQuestionTranslations', 'placeId', placeId)
|
|
31490
|
+
getBookingSpaceQuestionTranslations: async (spaceId: string, questionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31831
31491
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31832
31492
|
assertParamExists('getBookingSpaceQuestionTranslations', 'spaceId', spaceId)
|
|
31833
31493
|
// verify required parameter 'questionId' is not null or undefined
|
|
31834
31494
|
assertParamExists('getBookingSpaceQuestionTranslations', 'questionId', questionId)
|
|
31835
|
-
const localVarPath = `/bookings/
|
|
31836
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31495
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations`
|
|
31837
31496
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31838
31497
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)));
|
|
31839
31498
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -31867,7 +31526,6 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31867
31526
|
/**
|
|
31868
31527
|
* 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.
|
|
31869
31528
|
* @summary Update a booking question translation
|
|
31870
|
-
* @param {string} placeId The place identifier
|
|
31871
31529
|
* @param {string} spaceId The space identifier
|
|
31872
31530
|
* @param {string} questionId The question identifier
|
|
31873
31531
|
* @param {string} locale The locale identifier
|
|
@@ -31875,9 +31533,7 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31875
31533
|
* @param {*} [options] Override http request option.
|
|
31876
31534
|
* @throws {RequiredError}
|
|
31877
31535
|
*/
|
|
31878
|
-
updateBookingSpaceQuestionTranslation: async (
|
|
31879
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
31880
|
-
assertParamExists('updateBookingSpaceQuestionTranslation', 'placeId', placeId)
|
|
31536
|
+
updateBookingSpaceQuestionTranslation: async (spaceId: string, questionId: string, locale: string, bookingSpaceQuestionTranslationUpdateInputs: BookingSpaceQuestionTranslationUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31881
31537
|
// verify required parameter 'spaceId' is not null or undefined
|
|
31882
31538
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'spaceId', spaceId)
|
|
31883
31539
|
// verify required parameter 'questionId' is not null or undefined
|
|
@@ -31886,8 +31542,7 @@ export const BookingsQuestionsTranslationsApiAxiosParamCreator = function (confi
|
|
|
31886
31542
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'locale', locale)
|
|
31887
31543
|
// verify required parameter 'bookingSpaceQuestionTranslationUpdateInputs' is not null or undefined
|
|
31888
31544
|
assertParamExists('updateBookingSpaceQuestionTranslation', 'bookingSpaceQuestionTranslationUpdateInputs', bookingSpaceQuestionTranslationUpdateInputs)
|
|
31889
|
-
const localVarPath = `/bookings/
|
|
31890
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31545
|
+
const localVarPath = `/bookings/spaces/{spaceId}/questions/{questionId}/translations/{locale}`
|
|
31891
31546
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
31892
31547
|
.replace(`{${"questionId"}}`, encodeURIComponent(String(questionId)))
|
|
31893
31548
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
@@ -31933,15 +31588,14 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
31933
31588
|
/**
|
|
31934
31589
|
* 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.
|
|
31935
31590
|
* @summary Delete a booking question translation
|
|
31936
|
-
* @param {string} placeId The place identifier
|
|
31937
31591
|
* @param {string} spaceId The space identifier
|
|
31938
31592
|
* @param {string} questionId The question identifier
|
|
31939
31593
|
* @param {string} locale The locale identifier
|
|
31940
31594
|
* @param {*} [options] Override http request option.
|
|
31941
31595
|
* @throws {RequiredError}
|
|
31942
31596
|
*/
|
|
31943
|
-
async deleteBookingSpaceQuestionTranslation(
|
|
31944
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionTranslation(
|
|
31597
|
+
async deleteBookingSpaceQuestionTranslation(spaceId: string, questionId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
|
|
31598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceQuestionTranslation(spaceId, questionId, locale, options);
|
|
31945
31599
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31946
31600
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsTranslationsApi.deleteBookingSpaceQuestionTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31947
31601
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31949,15 +31603,14 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
31949
31603
|
/**
|
|
31950
31604
|
* 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\".
|
|
31951
31605
|
* @summary Get a booking question\'s translation
|
|
31952
|
-
* @param {string} placeId The place identifier
|
|
31953
31606
|
* @param {string} spaceId The space identifier
|
|
31954
31607
|
* @param {string} questionId The question identifier
|
|
31955
31608
|
* @param {string} locale The locale identifier
|
|
31956
31609
|
* @param {*} [options] Override http request option.
|
|
31957
31610
|
* @throws {RequiredError}
|
|
31958
31611
|
*/
|
|
31959
|
-
async getBookingSpaceQuestionTranslation(
|
|
31960
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionTranslation(
|
|
31612
|
+
async getBookingSpaceQuestionTranslation(spaceId: string, questionId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionTranslation200Response>> {
|
|
31613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionTranslation(spaceId, questionId, locale, options);
|
|
31961
31614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31962
31615
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsTranslationsApi.getBookingSpaceQuestionTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31963
31616
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31965,14 +31618,13 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
31965
31618
|
/**
|
|
31966
31619
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
31967
31620
|
* @summary List a booking question\'s translations
|
|
31968
|
-
* @param {string} placeId The place identifier
|
|
31969
31621
|
* @param {string} spaceId The space identifier
|
|
31970
31622
|
* @param {string} questionId The question identifier
|
|
31971
31623
|
* @param {*} [options] Override http request option.
|
|
31972
31624
|
* @throws {RequiredError}
|
|
31973
31625
|
*/
|
|
31974
|
-
async getBookingSpaceQuestionTranslations(
|
|
31975
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionTranslations(
|
|
31626
|
+
async getBookingSpaceQuestionTranslations(spaceId: string, questionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceQuestionTranslations200Response>> {
|
|
31627
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceQuestionTranslations(spaceId, questionId, options);
|
|
31976
31628
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31977
31629
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsTranslationsApi.getBookingSpaceQuestionTranslations']?.[localVarOperationServerIndex]?.url;
|
|
31978
31630
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -31980,7 +31632,6 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
31980
31632
|
/**
|
|
31981
31633
|
* 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.
|
|
31982
31634
|
* @summary Update a booking question translation
|
|
31983
|
-
* @param {string} placeId The place identifier
|
|
31984
31635
|
* @param {string} spaceId The space identifier
|
|
31985
31636
|
* @param {string} questionId The question identifier
|
|
31986
31637
|
* @param {string} locale The locale identifier
|
|
@@ -31988,8 +31639,8 @@ export const BookingsQuestionsTranslationsApiFp = function(configuration?: Confi
|
|
|
31988
31639
|
* @param {*} [options] Override http request option.
|
|
31989
31640
|
* @throws {RequiredError}
|
|
31990
31641
|
*/
|
|
31991
|
-
async updateBookingSpaceQuestionTranslation(
|
|
31992
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionTranslation(
|
|
31642
|
+
async updateBookingSpaceQuestionTranslation(spaceId: string, questionId: string, locale: string, bookingSpaceQuestionTranslationUpdateInputs: BookingSpaceQuestionTranslationUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBookingSpaceQuestionTranslation200Response>> {
|
|
31643
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceQuestionTranslation(spaceId, questionId, locale, bookingSpaceQuestionTranslationUpdateInputs, options);
|
|
31993
31644
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31994
31645
|
const localVarOperationServerBasePath = operationServerMap['BookingsQuestionsTranslationsApi.updateBookingSpaceQuestionTranslation']?.[localVarOperationServerIndex]?.url;
|
|
31995
31646
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32011,7 +31662,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32011
31662
|
* @throws {RequiredError}
|
|
32012
31663
|
*/
|
|
32013
31664
|
deleteBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiDeleteBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
32014
|
-
return localVarFp.deleteBookingSpaceQuestionTranslation(requestParameters.
|
|
31665
|
+
return localVarFp.deleteBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
32015
31666
|
},
|
|
32016
31667
|
/**
|
|
32017
31668
|
* 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\".
|
|
@@ -32021,7 +31672,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32021
31672
|
* @throws {RequiredError}
|
|
32022
31673
|
*/
|
|
32023
31674
|
getBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionTranslation200Response> {
|
|
32024
|
-
return localVarFp.getBookingSpaceQuestionTranslation(requestParameters.
|
|
31675
|
+
return localVarFp.getBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
32025
31676
|
},
|
|
32026
31677
|
/**
|
|
32027
31678
|
* Returns every locale translation available for a single booking space question, covering its label, description, and choice text; requires the \"read\" permission on \"bookings\".
|
|
@@ -32031,7 +31682,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32031
31682
|
* @throws {RequiredError}
|
|
32032
31683
|
*/
|
|
32033
31684
|
getBookingSpaceQuestionTranslations(requestParameters: BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceQuestionTranslations200Response> {
|
|
32034
|
-
return localVarFp.getBookingSpaceQuestionTranslations(requestParameters.
|
|
31685
|
+
return localVarFp.getBookingSpaceQuestionTranslations(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(axios, basePath));
|
|
32035
31686
|
},
|
|
32036
31687
|
/**
|
|
32037
31688
|
* 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.
|
|
@@ -32041,7 +31692,7 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32041
31692
|
* @throws {RequiredError}
|
|
32042
31693
|
*/
|
|
32043
31694
|
updateBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiUpdateBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateBookingSpaceQuestionTranslation200Response> {
|
|
32044
|
-
return localVarFp.updateBookingSpaceQuestionTranslation(requestParameters.
|
|
31695
|
+
return localVarFp.updateBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
32045
31696
|
},
|
|
32046
31697
|
};
|
|
32047
31698
|
};
|
|
@@ -32050,11 +31701,6 @@ export const BookingsQuestionsTranslationsApiFactory = function (configuration?:
|
|
|
32050
31701
|
* Request parameters for deleteBookingSpaceQuestionTranslation operation in BookingsQuestionsTranslationsApi.
|
|
32051
31702
|
*/
|
|
32052
31703
|
export interface BookingsQuestionsTranslationsApiDeleteBookingSpaceQuestionTranslationRequest {
|
|
32053
|
-
/**
|
|
32054
|
-
* The place identifier
|
|
32055
|
-
*/
|
|
32056
|
-
readonly placeId: string
|
|
32057
|
-
|
|
32058
31704
|
/**
|
|
32059
31705
|
* The space identifier
|
|
32060
31706
|
*/
|
|
@@ -32075,11 +31721,6 @@ export interface BookingsQuestionsTranslationsApiDeleteBookingSpaceQuestionTrans
|
|
|
32075
31721
|
* Request parameters for getBookingSpaceQuestionTranslation operation in BookingsQuestionsTranslationsApi.
|
|
32076
31722
|
*/
|
|
32077
31723
|
export interface BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationRequest {
|
|
32078
|
-
/**
|
|
32079
|
-
* The place identifier
|
|
32080
|
-
*/
|
|
32081
|
-
readonly placeId: string
|
|
32082
|
-
|
|
32083
31724
|
/**
|
|
32084
31725
|
* The space identifier
|
|
32085
31726
|
*/
|
|
@@ -32100,11 +31741,6 @@ export interface BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslat
|
|
|
32100
31741
|
* Request parameters for getBookingSpaceQuestionTranslations operation in BookingsQuestionsTranslationsApi.
|
|
32101
31742
|
*/
|
|
32102
31743
|
export interface BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationsRequest {
|
|
32103
|
-
/**
|
|
32104
|
-
* The place identifier
|
|
32105
|
-
*/
|
|
32106
|
-
readonly placeId: string
|
|
32107
|
-
|
|
32108
31744
|
/**
|
|
32109
31745
|
* The space identifier
|
|
32110
31746
|
*/
|
|
@@ -32120,11 +31756,6 @@ export interface BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslat
|
|
|
32120
31756
|
* Request parameters for updateBookingSpaceQuestionTranslation operation in BookingsQuestionsTranslationsApi.
|
|
32121
31757
|
*/
|
|
32122
31758
|
export interface BookingsQuestionsTranslationsApiUpdateBookingSpaceQuestionTranslationRequest {
|
|
32123
|
-
/**
|
|
32124
|
-
* The place identifier
|
|
32125
|
-
*/
|
|
32126
|
-
readonly placeId: string
|
|
32127
|
-
|
|
32128
31759
|
/**
|
|
32129
31760
|
* The space identifier
|
|
32130
31761
|
*/
|
|
@@ -32155,7 +31786,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
32155
31786
|
* @throws {RequiredError}
|
|
32156
31787
|
*/
|
|
32157
31788
|
public deleteBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiDeleteBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
32158
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionTranslation(requestParameters.
|
|
31789
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).deleteBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
32159
31790
|
}
|
|
32160
31791
|
|
|
32161
31792
|
/**
|
|
@@ -32166,7 +31797,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
32166
31797
|
* @throws {RequiredError}
|
|
32167
31798
|
*/
|
|
32168
31799
|
public getBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
32169
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslation(requestParameters.
|
|
31800
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
32170
31801
|
}
|
|
32171
31802
|
|
|
32172
31803
|
/**
|
|
@@ -32177,7 +31808,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
32177
31808
|
* @throws {RequiredError}
|
|
32178
31809
|
*/
|
|
32179
31810
|
public getBookingSpaceQuestionTranslations(requestParameters: BookingsQuestionsTranslationsApiGetBookingSpaceQuestionTranslationsRequest, options?: RawAxiosRequestConfig) {
|
|
32180
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslations(requestParameters.
|
|
31811
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).getBookingSpaceQuestionTranslations(requestParameters.spaceId, requestParameters.questionId, options).then((request) => request(this.axios, this.basePath));
|
|
32181
31812
|
}
|
|
32182
31813
|
|
|
32183
31814
|
/**
|
|
@@ -32188,7 +31819,7 @@ export class BookingsQuestionsTranslationsApi extends BaseAPI {
|
|
|
32188
31819
|
* @throws {RequiredError}
|
|
32189
31820
|
*/
|
|
32190
31821
|
public updateBookingSpaceQuestionTranslation(requestParameters: BookingsQuestionsTranslationsApiUpdateBookingSpaceQuestionTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
32191
|
-
return BookingsQuestionsTranslationsApiFp(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.
|
|
31822
|
+
return BookingsQuestionsTranslationsApiFp(this.configuration).updateBookingSpaceQuestionTranslation(requestParameters.spaceId, requestParameters.questionId, requestParameters.locale, requestParameters.bookingSpaceQuestionTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
32192
31823
|
}
|
|
32193
31824
|
}
|
|
32194
31825
|
|
|
@@ -32266,24 +31897,20 @@ export const BookingsResponsesApiAxiosParamCreator = function (configuration?: C
|
|
|
32266
31897
|
/**
|
|
32267
31898
|
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
32268
31899
|
* @summary Update a booking\'s question responses
|
|
32269
|
-
* @param {string} placeId The place identifier
|
|
32270
31900
|
* @param {string} spaceId The space identifier
|
|
32271
31901
|
* @param {string} bookingId The booking identifier
|
|
32272
31902
|
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
32273
31903
|
* @param {*} [options] Override http request option.
|
|
32274
31904
|
* @throws {RequiredError}
|
|
32275
31905
|
*/
|
|
32276
|
-
updateBookingResponses: async (
|
|
32277
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32278
|
-
assertParamExists('updateBookingResponses', 'placeId', placeId)
|
|
31906
|
+
updateBookingResponses: async (spaceId: string, bookingId: string, updateBookingResponsesInputs: UpdateBookingResponsesInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32279
31907
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32280
31908
|
assertParamExists('updateBookingResponses', 'spaceId', spaceId)
|
|
32281
31909
|
// verify required parameter 'bookingId' is not null or undefined
|
|
32282
31910
|
assertParamExists('updateBookingResponses', 'bookingId', bookingId)
|
|
32283
31911
|
// verify required parameter 'updateBookingResponsesInputs' is not null or undefined
|
|
32284
31912
|
assertParamExists('updateBookingResponses', 'updateBookingResponsesInputs', updateBookingResponsesInputs)
|
|
32285
|
-
const localVarPath = `/bookings/
|
|
32286
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
31913
|
+
const localVarPath = `/bookings/spaces/{spaceId}/bookings/{bookingId}/responses`
|
|
32287
31914
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
32288
31915
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
32289
31916
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -32346,15 +31973,14 @@ export const BookingsResponsesApiFp = function(configuration?: Configuration) {
|
|
|
32346
31973
|
/**
|
|
32347
31974
|
* Bulk-updates the answers submitted to a booking space\'s custom questions for a specific booking, requires read and update permission on bookings.
|
|
32348
31975
|
* @summary Update a booking\'s question responses
|
|
32349
|
-
* @param {string} placeId The place identifier
|
|
32350
31976
|
* @param {string} spaceId The space identifier
|
|
32351
31977
|
* @param {string} bookingId The booking identifier
|
|
32352
31978
|
* @param {UpdateBookingResponsesInputs} updateBookingResponsesInputs
|
|
32353
31979
|
* @param {*} [options] Override http request option.
|
|
32354
31980
|
* @throws {RequiredError}
|
|
32355
31981
|
*/
|
|
32356
|
-
async updateBookingResponses(
|
|
32357
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingResponses(
|
|
31982
|
+
async updateBookingResponses(spaceId: string, bookingId: string, updateBookingResponsesInputs: UpdateBookingResponsesInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
31983
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingResponses(spaceId, bookingId, updateBookingResponsesInputs, options);
|
|
32358
31984
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32359
31985
|
const localVarOperationServerBasePath = operationServerMap['BookingsResponsesApi.updateBookingResponses']?.[localVarOperationServerIndex]?.url;
|
|
32360
31986
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32386,7 +32012,7 @@ export const BookingsResponsesApiFactory = function (configuration?: Configurati
|
|
|
32386
32012
|
* @throws {RequiredError}
|
|
32387
32013
|
*/
|
|
32388
32014
|
updateBookingResponses(requestParameters: BookingsResponsesApiUpdateBookingResponsesRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
32389
|
-
return localVarFp.updateBookingResponses(requestParameters.
|
|
32015
|
+
return localVarFp.updateBookingResponses(requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(axios, basePath));
|
|
32390
32016
|
},
|
|
32391
32017
|
};
|
|
32392
32018
|
};
|
|
@@ -32430,11 +32056,6 @@ export interface BookingsResponsesApiGetBookingResponseChangesRequest {
|
|
|
32430
32056
|
* Request parameters for updateBookingResponses operation in BookingsResponsesApi.
|
|
32431
32057
|
*/
|
|
32432
32058
|
export interface BookingsResponsesApiUpdateBookingResponsesRequest {
|
|
32433
|
-
/**
|
|
32434
|
-
* The place identifier
|
|
32435
|
-
*/
|
|
32436
|
-
readonly placeId: string
|
|
32437
|
-
|
|
32438
32059
|
/**
|
|
32439
32060
|
* The space identifier
|
|
32440
32061
|
*/
|
|
@@ -32471,7 +32092,7 @@ export class BookingsResponsesApi extends BaseAPI {
|
|
|
32471
32092
|
* @throws {RequiredError}
|
|
32472
32093
|
*/
|
|
32473
32094
|
public updateBookingResponses(requestParameters: BookingsResponsesApiUpdateBookingResponsesRequest, options?: RawAxiosRequestConfig) {
|
|
32474
|
-
return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.
|
|
32095
|
+
return BookingsResponsesApiFp(this.configuration).updateBookingResponses(requestParameters.spaceId, requestParameters.bookingId, requestParameters.updateBookingResponsesInputs, options).then((request) => request(this.axios, this.basePath));
|
|
32475
32096
|
}
|
|
32476
32097
|
}
|
|
32477
32098
|
|
|
@@ -32483,20 +32104,16 @@ export class BookingsResponsesApi extends BaseAPI {
|
|
|
32483
32104
|
export const BookingsSpacesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32484
32105
|
return {
|
|
32485
32106
|
/**
|
|
32486
|
-
* Creates a new bookable space
|
|
32107
|
+
* 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.
|
|
32487
32108
|
* @summary Create a booking space
|
|
32488
|
-
* @param {string} placeId The place identifier
|
|
32489
32109
|
* @param {BookingSpaceCreateInputs} bookingSpaceCreateInputs
|
|
32490
32110
|
* @param {*} [options] Override http request option.
|
|
32491
32111
|
* @throws {RequiredError}
|
|
32492
32112
|
*/
|
|
32493
|
-
createBookingSpace: async (
|
|
32494
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32495
|
-
assertParamExists('createBookingSpace', 'placeId', placeId)
|
|
32113
|
+
createBookingSpace: async (bookingSpaceCreateInputs: BookingSpaceCreateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32496
32114
|
// verify required parameter 'bookingSpaceCreateInputs' is not null or undefined
|
|
32497
32115
|
assertParamExists('createBookingSpace', 'bookingSpaceCreateInputs', bookingSpaceCreateInputs)
|
|
32498
|
-
const localVarPath = `/bookings/
|
|
32499
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)));
|
|
32116
|
+
const localVarPath = `/bookings/spaces`;
|
|
32500
32117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32501
32118
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32502
32119
|
let baseOptions;
|
|
@@ -32528,20 +32145,16 @@ export const BookingsSpacesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32528
32145
|
};
|
|
32529
32146
|
},
|
|
32530
32147
|
/**
|
|
32531
|
-
* Deletes a booking space
|
|
32148
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
32532
32149
|
* @summary Delete a booking space
|
|
32533
|
-
* @param {string} placeId The place identifier
|
|
32534
32150
|
* @param {string} spaceId The space identifier
|
|
32535
32151
|
* @param {*} [options] Override http request option.
|
|
32536
32152
|
* @throws {RequiredError}
|
|
32537
32153
|
*/
|
|
32538
|
-
deleteBookingSpace: async (
|
|
32539
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32540
|
-
assertParamExists('deleteBookingSpace', 'placeId', placeId)
|
|
32154
|
+
deleteBookingSpace: async (spaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32541
32155
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32542
32156
|
assertParamExists('deleteBookingSpace', 'spaceId', spaceId)
|
|
32543
|
-
const localVarPath = `/bookings/
|
|
32544
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
32157
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
32545
32158
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
32546
32159
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32547
32160
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -32572,23 +32185,19 @@ export const BookingsSpacesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32572
32185
|
};
|
|
32573
32186
|
},
|
|
32574
32187
|
/**
|
|
32575
|
-
* Updates the attributes of an existing booking space
|
|
32188
|
+
* 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.
|
|
32576
32189
|
* @summary Update a booking space
|
|
32577
|
-
* @param {string} placeId The place identifier
|
|
32578
32190
|
* @param {string} spaceId The space identifier
|
|
32579
32191
|
* @param {BookingSpaceUpdateInputs} bookingSpaceUpdateInputs
|
|
32580
32192
|
* @param {*} [options] Override http request option.
|
|
32581
32193
|
* @throws {RequiredError}
|
|
32582
32194
|
*/
|
|
32583
|
-
updateBookingSpace: async (
|
|
32584
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32585
|
-
assertParamExists('updateBookingSpace', 'placeId', placeId)
|
|
32195
|
+
updateBookingSpace: async (spaceId: string, bookingSpaceUpdateInputs: BookingSpaceUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32586
32196
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32587
32197
|
assertParamExists('updateBookingSpace', 'spaceId', spaceId)
|
|
32588
32198
|
// verify required parameter 'bookingSpaceUpdateInputs' is not null or undefined
|
|
32589
32199
|
assertParamExists('updateBookingSpace', 'bookingSpaceUpdateInputs', bookingSpaceUpdateInputs)
|
|
32590
|
-
const localVarPath = `/bookings/
|
|
32591
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
32200
|
+
const localVarPath = `/bookings/spaces/{spaceId}`
|
|
32592
32201
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
32593
32202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32594
32203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -32630,44 +32239,41 @@ export const BookingsSpacesApiFp = function(configuration?: Configuration) {
|
|
|
32630
32239
|
const localVarAxiosParamCreator = BookingsSpacesApiAxiosParamCreator(configuration)
|
|
32631
32240
|
return {
|
|
32632
32241
|
/**
|
|
32633
|
-
* Creates a new bookable space
|
|
32242
|
+
* 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.
|
|
32634
32243
|
* @summary Create a booking space
|
|
32635
|
-
* @param {string} placeId The place identifier
|
|
32636
32244
|
* @param {BookingSpaceCreateInputs} bookingSpaceCreateInputs
|
|
32637
32245
|
* @param {*} [options] Override http request option.
|
|
32638
32246
|
* @throws {RequiredError}
|
|
32639
32247
|
*/
|
|
32640
|
-
async createBookingSpace(
|
|
32641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpace(
|
|
32248
|
+
async createBookingSpace(bookingSpaceCreateInputs: BookingSpaceCreateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
32249
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingSpace(bookingSpaceCreateInputs, options);
|
|
32642
32250
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32643
32251
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesApi.createBookingSpace']?.[localVarOperationServerIndex]?.url;
|
|
32644
32252
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32645
32253
|
},
|
|
32646
32254
|
/**
|
|
32647
|
-
* Deletes a booking space
|
|
32255
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
32648
32256
|
* @summary Delete a booking space
|
|
32649
|
-
* @param {string} placeId The place identifier
|
|
32650
32257
|
* @param {string} spaceId The space identifier
|
|
32651
32258
|
* @param {*} [options] Override http request option.
|
|
32652
32259
|
* @throws {RequiredError}
|
|
32653
32260
|
*/
|
|
32654
|
-
async deleteBookingSpace(
|
|
32655
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpace(
|
|
32261
|
+
async deleteBookingSpace(spaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
32262
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpace(spaceId, options);
|
|
32656
32263
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32657
32264
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesApi.deleteBookingSpace']?.[localVarOperationServerIndex]?.url;
|
|
32658
32265
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32659
32266
|
},
|
|
32660
32267
|
/**
|
|
32661
|
-
* Updates the attributes of an existing booking space
|
|
32268
|
+
* 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.
|
|
32662
32269
|
* @summary Update a booking space
|
|
32663
|
-
* @param {string} placeId The place identifier
|
|
32664
32270
|
* @param {string} spaceId The space identifier
|
|
32665
32271
|
* @param {BookingSpaceUpdateInputs} bookingSpaceUpdateInputs
|
|
32666
32272
|
* @param {*} [options] Override http request option.
|
|
32667
32273
|
* @throws {RequiredError}
|
|
32668
32274
|
*/
|
|
32669
|
-
async updateBookingSpace(
|
|
32670
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpace(
|
|
32275
|
+
async updateBookingSpace(spaceId: string, bookingSpaceUpdateInputs: BookingSpaceUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
32276
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpace(spaceId, bookingSpaceUpdateInputs, options);
|
|
32671
32277
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32672
32278
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesApi.updateBookingSpace']?.[localVarOperationServerIndex]?.url;
|
|
32673
32279
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32682,34 +32288,34 @@ export const BookingsSpacesApiFactory = function (configuration?: Configuration,
|
|
|
32682
32288
|
const localVarFp = BookingsSpacesApiFp(configuration)
|
|
32683
32289
|
return {
|
|
32684
32290
|
/**
|
|
32685
|
-
* Creates a new bookable space
|
|
32291
|
+
* 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.
|
|
32686
32292
|
* @summary Create a booking space
|
|
32687
32293
|
* @param {BookingsSpacesApiCreateBookingSpaceRequest} requestParameters Request parameters.
|
|
32688
32294
|
* @param {*} [options] Override http request option.
|
|
32689
32295
|
* @throws {RequiredError}
|
|
32690
32296
|
*/
|
|
32691
32297
|
createBookingSpace(requestParameters: BookingsSpacesApiCreateBookingSpaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
32692
|
-
return localVarFp.createBookingSpace(requestParameters.
|
|
32298
|
+
return localVarFp.createBookingSpace(requestParameters.bookingSpaceCreateInputs, options).then((request) => request(axios, basePath));
|
|
32693
32299
|
},
|
|
32694
32300
|
/**
|
|
32695
|
-
* Deletes a booking space
|
|
32301
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
32696
32302
|
* @summary Delete a booking space
|
|
32697
32303
|
* @param {BookingsSpacesApiDeleteBookingSpaceRequest} requestParameters Request parameters.
|
|
32698
32304
|
* @param {*} [options] Override http request option.
|
|
32699
32305
|
* @throws {RequiredError}
|
|
32700
32306
|
*/
|
|
32701
32307
|
deleteBookingSpace(requestParameters: BookingsSpacesApiDeleteBookingSpaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
32702
|
-
return localVarFp.deleteBookingSpace(requestParameters.
|
|
32308
|
+
return localVarFp.deleteBookingSpace(requestParameters.spaceId, options).then((request) => request(axios, basePath));
|
|
32703
32309
|
},
|
|
32704
32310
|
/**
|
|
32705
|
-
* Updates the attributes of an existing booking space
|
|
32311
|
+
* 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.
|
|
32706
32312
|
* @summary Update a booking space
|
|
32707
32313
|
* @param {BookingsSpacesApiUpdateBookingSpaceRequest} requestParameters Request parameters.
|
|
32708
32314
|
* @param {*} [options] Override http request option.
|
|
32709
32315
|
* @throws {RequiredError}
|
|
32710
32316
|
*/
|
|
32711
32317
|
updateBookingSpace(requestParameters: BookingsSpacesApiUpdateBookingSpaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
32712
|
-
return localVarFp.updateBookingSpace(requestParameters.
|
|
32318
|
+
return localVarFp.updateBookingSpace(requestParameters.spaceId, requestParameters.bookingSpaceUpdateInputs, options).then((request) => request(axios, basePath));
|
|
32713
32319
|
},
|
|
32714
32320
|
};
|
|
32715
32321
|
};
|
|
@@ -32718,11 +32324,6 @@ export const BookingsSpacesApiFactory = function (configuration?: Configuration,
|
|
|
32718
32324
|
* Request parameters for createBookingSpace operation in BookingsSpacesApi.
|
|
32719
32325
|
*/
|
|
32720
32326
|
export interface BookingsSpacesApiCreateBookingSpaceRequest {
|
|
32721
|
-
/**
|
|
32722
|
-
* The place identifier
|
|
32723
|
-
*/
|
|
32724
|
-
readonly placeId: string
|
|
32725
|
-
|
|
32726
32327
|
readonly bookingSpaceCreateInputs: BookingSpaceCreateInputs
|
|
32727
32328
|
}
|
|
32728
32329
|
|
|
@@ -32730,11 +32331,6 @@ export interface BookingsSpacesApiCreateBookingSpaceRequest {
|
|
|
32730
32331
|
* Request parameters for deleteBookingSpace operation in BookingsSpacesApi.
|
|
32731
32332
|
*/
|
|
32732
32333
|
export interface BookingsSpacesApiDeleteBookingSpaceRequest {
|
|
32733
|
-
/**
|
|
32734
|
-
* The place identifier
|
|
32735
|
-
*/
|
|
32736
|
-
readonly placeId: string
|
|
32737
|
-
|
|
32738
32334
|
/**
|
|
32739
32335
|
* The space identifier
|
|
32740
32336
|
*/
|
|
@@ -32745,11 +32341,6 @@ export interface BookingsSpacesApiDeleteBookingSpaceRequest {
|
|
|
32745
32341
|
* Request parameters for updateBookingSpace operation in BookingsSpacesApi.
|
|
32746
32342
|
*/
|
|
32747
32343
|
export interface BookingsSpacesApiUpdateBookingSpaceRequest {
|
|
32748
|
-
/**
|
|
32749
|
-
* The place identifier
|
|
32750
|
-
*/
|
|
32751
|
-
readonly placeId: string
|
|
32752
|
-
|
|
32753
32344
|
/**
|
|
32754
32345
|
* The space identifier
|
|
32755
32346
|
*/
|
|
@@ -32763,36 +32354,36 @@ export interface BookingsSpacesApiUpdateBookingSpaceRequest {
|
|
|
32763
32354
|
*/
|
|
32764
32355
|
export class BookingsSpacesApi extends BaseAPI {
|
|
32765
32356
|
/**
|
|
32766
|
-
* Creates a new bookable space
|
|
32357
|
+
* 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.
|
|
32767
32358
|
* @summary Create a booking space
|
|
32768
32359
|
* @param {BookingsSpacesApiCreateBookingSpaceRequest} requestParameters Request parameters.
|
|
32769
32360
|
* @param {*} [options] Override http request option.
|
|
32770
32361
|
* @throws {RequiredError}
|
|
32771
32362
|
*/
|
|
32772
32363
|
public createBookingSpace(requestParameters: BookingsSpacesApiCreateBookingSpaceRequest, options?: RawAxiosRequestConfig) {
|
|
32773
|
-
return BookingsSpacesApiFp(this.configuration).createBookingSpace(requestParameters.
|
|
32364
|
+
return BookingsSpacesApiFp(this.configuration).createBookingSpace(requestParameters.bookingSpaceCreateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
32774
32365
|
}
|
|
32775
32366
|
|
|
32776
32367
|
/**
|
|
32777
|
-
* Deletes a booking space
|
|
32368
|
+
* Deletes a booking space, requires the update bookings permission, and fails if the space still has existing bookings.
|
|
32778
32369
|
* @summary Delete a booking space
|
|
32779
32370
|
* @param {BookingsSpacesApiDeleteBookingSpaceRequest} requestParameters Request parameters.
|
|
32780
32371
|
* @param {*} [options] Override http request option.
|
|
32781
32372
|
* @throws {RequiredError}
|
|
32782
32373
|
*/
|
|
32783
32374
|
public deleteBookingSpace(requestParameters: BookingsSpacesApiDeleteBookingSpaceRequest, options?: RawAxiosRequestConfig) {
|
|
32784
|
-
return BookingsSpacesApiFp(this.configuration).deleteBookingSpace(requestParameters.
|
|
32375
|
+
return BookingsSpacesApiFp(this.configuration).deleteBookingSpace(requestParameters.spaceId, options).then((request) => request(this.axios, this.basePath));
|
|
32785
32376
|
}
|
|
32786
32377
|
|
|
32787
32378
|
/**
|
|
32788
|
-
* Updates the attributes of an existing booking space
|
|
32379
|
+
* 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.
|
|
32789
32380
|
* @summary Update a booking space
|
|
32790
32381
|
* @param {BookingsSpacesApiUpdateBookingSpaceRequest} requestParameters Request parameters.
|
|
32791
32382
|
* @param {*} [options] Override http request option.
|
|
32792
32383
|
* @throws {RequiredError}
|
|
32793
32384
|
*/
|
|
32794
32385
|
public updateBookingSpace(requestParameters: BookingsSpacesApiUpdateBookingSpaceRequest, options?: RawAxiosRequestConfig) {
|
|
32795
|
-
return BookingsSpacesApiFp(this.configuration).updateBookingSpace(requestParameters.
|
|
32386
|
+
return BookingsSpacesApiFp(this.configuration).updateBookingSpace(requestParameters.spaceId, requestParameters.bookingSpaceUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
32796
32387
|
}
|
|
32797
32388
|
}
|
|
32798
32389
|
|
|
@@ -32806,21 +32397,17 @@ export const BookingsSpacesTranslationsApiAxiosParamCreator = function (configur
|
|
|
32806
32397
|
/**
|
|
32807
32398
|
* 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.
|
|
32808
32399
|
* @summary Delete a booking space translation
|
|
32809
|
-
* @param {string} placeId The place identifier
|
|
32810
32400
|
* @param {string} spaceId The space identifier
|
|
32811
32401
|
* @param {string} locale The locale identifier
|
|
32812
32402
|
* @param {*} [options] Override http request option.
|
|
32813
32403
|
* @throws {RequiredError}
|
|
32814
32404
|
*/
|
|
32815
|
-
deleteBookingSpaceTranslation: async (
|
|
32816
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32817
|
-
assertParamExists('deleteBookingSpaceTranslation', 'placeId', placeId)
|
|
32405
|
+
deleteBookingSpaceTranslation: async (spaceId: string, locale: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32818
32406
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32819
32407
|
assertParamExists('deleteBookingSpaceTranslation', 'spaceId', spaceId)
|
|
32820
32408
|
// verify required parameter 'locale' is not null or undefined
|
|
32821
32409
|
assertParamExists('deleteBookingSpaceTranslation', 'locale', locale)
|
|
32822
|
-
const localVarPath = `/bookings/
|
|
32823
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
32410
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
32824
32411
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
32825
32412
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
32826
32413
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -32854,24 +32441,20 @@ export const BookingsSpacesTranslationsApiAxiosParamCreator = function (configur
|
|
|
32854
32441
|
/**
|
|
32855
32442
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
32856
32443
|
* @summary Update a booking space translation
|
|
32857
|
-
* @param {string} placeId The place identifier
|
|
32858
32444
|
* @param {string} spaceId The space identifier
|
|
32859
32445
|
* @param {string} locale The locale identifier
|
|
32860
32446
|
* @param {BookingSpaceTranslationUpdateInputs} bookingSpaceTranslationUpdateInputs
|
|
32861
32447
|
* @param {*} [options] Override http request option.
|
|
32862
32448
|
* @throws {RequiredError}
|
|
32863
32449
|
*/
|
|
32864
|
-
updateBookingSpaceTranslation: async (
|
|
32865
|
-
// verify required parameter 'placeId' is not null or undefined
|
|
32866
|
-
assertParamExists('updateBookingSpaceTranslation', 'placeId', placeId)
|
|
32450
|
+
updateBookingSpaceTranslation: async (spaceId: string, locale: string, bookingSpaceTranslationUpdateInputs: BookingSpaceTranslationUpdateInputs, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32867
32451
|
// verify required parameter 'spaceId' is not null or undefined
|
|
32868
32452
|
assertParamExists('updateBookingSpaceTranslation', 'spaceId', spaceId)
|
|
32869
32453
|
// verify required parameter 'locale' is not null or undefined
|
|
32870
32454
|
assertParamExists('updateBookingSpaceTranslation', 'locale', locale)
|
|
32871
32455
|
// verify required parameter 'bookingSpaceTranslationUpdateInputs' is not null or undefined
|
|
32872
32456
|
assertParamExists('updateBookingSpaceTranslation', 'bookingSpaceTranslationUpdateInputs', bookingSpaceTranslationUpdateInputs)
|
|
32873
|
-
const localVarPath = `/bookings/
|
|
32874
|
-
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
32457
|
+
const localVarPath = `/bookings/spaces/{spaceId}/translations/{locale}`
|
|
32875
32458
|
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
32876
32459
|
.replace(`{${"locale"}}`, encodeURIComponent(String(locale)));
|
|
32877
32460
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -32916,14 +32499,13 @@ export const BookingsSpacesTranslationsApiFp = function(configuration?: Configur
|
|
|
32916
32499
|
/**
|
|
32917
32500
|
* 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.
|
|
32918
32501
|
* @summary Delete a booking space translation
|
|
32919
|
-
* @param {string} placeId The place identifier
|
|
32920
32502
|
* @param {string} spaceId The space identifier
|
|
32921
32503
|
* @param {string} locale The locale identifier
|
|
32922
32504
|
* @param {*} [options] Override http request option.
|
|
32923
32505
|
* @throws {RequiredError}
|
|
32924
32506
|
*/
|
|
32925
|
-
async deleteBookingSpaceTranslation(
|
|
32926
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceTranslation(
|
|
32507
|
+
async deleteBookingSpaceTranslation(spaceId: string, locale: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
|
|
32508
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBookingSpaceTranslation(spaceId, locale, options);
|
|
32927
32509
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32928
32510
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesTranslationsApi.deleteBookingSpaceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
32929
32511
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32931,15 +32513,14 @@ export const BookingsSpacesTranslationsApiFp = function(configuration?: Configur
|
|
|
32931
32513
|
/**
|
|
32932
32514
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
32933
32515
|
* @summary Update a booking space translation
|
|
32934
|
-
* @param {string} placeId The place identifier
|
|
32935
32516
|
* @param {string} spaceId The space identifier
|
|
32936
32517
|
* @param {string} locale The locale identifier
|
|
32937
32518
|
* @param {BookingSpaceTranslationUpdateInputs} bookingSpaceTranslationUpdateInputs
|
|
32938
32519
|
* @param {*} [options] Override http request option.
|
|
32939
32520
|
* @throws {RequiredError}
|
|
32940
32521
|
*/
|
|
32941
|
-
async updateBookingSpaceTranslation(
|
|
32942
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceTranslation(
|
|
32522
|
+
async updateBookingSpaceTranslation(spaceId: string, locale: string, bookingSpaceTranslationUpdateInputs: BookingSpaceTranslationUpdateInputs, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncAccounts200Response>> {
|
|
32523
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingSpaceTranslation(spaceId, locale, bookingSpaceTranslationUpdateInputs, options);
|
|
32943
32524
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32944
32525
|
const localVarOperationServerBasePath = operationServerMap['BookingsSpacesTranslationsApi.updateBookingSpaceTranslation']?.[localVarOperationServerIndex]?.url;
|
|
32945
32526
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -32961,7 +32542,7 @@ export const BookingsSpacesTranslationsApiFactory = function (configuration?: Co
|
|
|
32961
32542
|
* @throws {RequiredError}
|
|
32962
32543
|
*/
|
|
32963
32544
|
deleteBookingSpaceTranslation(requestParameters: BookingsSpacesTranslationsApiDeleteBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
32964
|
-
return localVarFp.deleteBookingSpaceTranslation(requestParameters.
|
|
32545
|
+
return localVarFp.deleteBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(axios, basePath));
|
|
32965
32546
|
},
|
|
32966
32547
|
/**
|
|
32967
32548
|
* Creates or updates the localized content (such as name) for a booking space in the given locale; requires update permission on bookings.
|
|
@@ -32971,7 +32552,7 @@ export const BookingsSpacesTranslationsApiFactory = function (configuration?: Co
|
|
|
32971
32552
|
* @throws {RequiredError}
|
|
32972
32553
|
*/
|
|
32973
32554
|
updateBookingSpaceTranslation(requestParameters: BookingsSpacesTranslationsApiUpdateBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
32974
|
-
return localVarFp.updateBookingSpaceTranslation(requestParameters.
|
|
32555
|
+
return localVarFp.updateBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, requestParameters.bookingSpaceTranslationUpdateInputs, options).then((request) => request(axios, basePath));
|
|
32975
32556
|
},
|
|
32976
32557
|
};
|
|
32977
32558
|
};
|
|
@@ -32980,11 +32561,6 @@ export const BookingsSpacesTranslationsApiFactory = function (configuration?: Co
|
|
|
32980
32561
|
* Request parameters for deleteBookingSpaceTranslation operation in BookingsSpacesTranslationsApi.
|
|
32981
32562
|
*/
|
|
32982
32563
|
export interface BookingsSpacesTranslationsApiDeleteBookingSpaceTranslationRequest {
|
|
32983
|
-
/**
|
|
32984
|
-
* The place identifier
|
|
32985
|
-
*/
|
|
32986
|
-
readonly placeId: string
|
|
32987
|
-
|
|
32988
32564
|
/**
|
|
32989
32565
|
* The space identifier
|
|
32990
32566
|
*/
|
|
@@ -33000,11 +32576,6 @@ export interface BookingsSpacesTranslationsApiDeleteBookingSpaceTranslationReque
|
|
|
33000
32576
|
* Request parameters for updateBookingSpaceTranslation operation in BookingsSpacesTranslationsApi.
|
|
33001
32577
|
*/
|
|
33002
32578
|
export interface BookingsSpacesTranslationsApiUpdateBookingSpaceTranslationRequest {
|
|
33003
|
-
/**
|
|
33004
|
-
* The place identifier
|
|
33005
|
-
*/
|
|
33006
|
-
readonly placeId: string
|
|
33007
|
-
|
|
33008
32579
|
/**
|
|
33009
32580
|
* The space identifier
|
|
33010
32581
|
*/
|
|
@@ -33030,7 +32601,7 @@ export class BookingsSpacesTranslationsApi extends BaseAPI {
|
|
|
33030
32601
|
* @throws {RequiredError}
|
|
33031
32602
|
*/
|
|
33032
32603
|
public deleteBookingSpaceTranslation(requestParameters: BookingsSpacesTranslationsApiDeleteBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
33033
|
-
return BookingsSpacesTranslationsApiFp(this.configuration).deleteBookingSpaceTranslation(requestParameters.
|
|
32604
|
+
return BookingsSpacesTranslationsApiFp(this.configuration).deleteBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, options).then((request) => request(this.axios, this.basePath));
|
|
33034
32605
|
}
|
|
33035
32606
|
|
|
33036
32607
|
/**
|
|
@@ -33041,7 +32612,7 @@ export class BookingsSpacesTranslationsApi extends BaseAPI {
|
|
|
33041
32612
|
* @throws {RequiredError}
|
|
33042
32613
|
*/
|
|
33043
32614
|
public updateBookingSpaceTranslation(requestParameters: BookingsSpacesTranslationsApiUpdateBookingSpaceTranslationRequest, options?: RawAxiosRequestConfig) {
|
|
33044
|
-
return BookingsSpacesTranslationsApiFp(this.configuration).updateBookingSpaceTranslation(requestParameters.
|
|
32615
|
+
return BookingsSpacesTranslationsApiFp(this.configuration).updateBookingSpaceTranslation(requestParameters.spaceId, requestParameters.locale, requestParameters.bookingSpaceTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
|
|
33045
32616
|
}
|
|
33046
32617
|
}
|
|
33047
32618
|
|