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