@connectedxm/admin-sdk 7.0.10 → 7.0.11
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 +3 -0
- package/api.ts +347 -0
- package/dist/api.d.ts +178 -0
- package/dist/api.js +255 -0
- package/dist/esm/api.d.ts +178 -0
- package/dist/esm/api.js +255 -0
- package/docs/BookingSpace.md +2 -0
- package/docs/BookingsApi.md +183 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2637,6 +2637,7 @@ export interface BookingSpace {
|
|
|
2637
2637
|
'meetingId': string | null;
|
|
2638
2638
|
'meeting': BaseMeeting | null;
|
|
2639
2639
|
'joinBeforeTime': number | null;
|
|
2640
|
+
'allowedTiers': Array<BaseTier>;
|
|
2640
2641
|
'createdAt': string;
|
|
2641
2642
|
'updatedAt': string;
|
|
2642
2643
|
}
|
|
@@ -17834,6 +17835,16 @@ export declare class BenefitsTranslationsApi extends BaseAPI {
|
|
|
17834
17835
|
* BookingsApi - axios parameter creator
|
|
17835
17836
|
*/
|
|
17836
17837
|
export declare const BookingsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
17838
|
+
/**
|
|
17839
|
+
* Add Booking Space Tier endpoint
|
|
17840
|
+
* @summary Add Booking Space Tier
|
|
17841
|
+
* @param {string} placeId The place identifier
|
|
17842
|
+
* @param {string} spaceId The space identifier
|
|
17843
|
+
* @param {string} tierId The tier identifier
|
|
17844
|
+
* @param {*} [options] Override http request option.
|
|
17845
|
+
* @throws {RequiredError}
|
|
17846
|
+
*/
|
|
17847
|
+
addBookingSpaceTier: (placeId: string, spaceId: string, tierId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17837
17848
|
/**
|
|
17838
17849
|
* Cancel Booking endpoint
|
|
17839
17850
|
* @summary Cancel Booking
|
|
@@ -18038,6 +18049,19 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
18038
18049
|
* @throws {RequiredError}
|
|
18039
18050
|
*/
|
|
18040
18051
|
getBookingSpaceSlots: (placeId: string, spaceId: string, firstDayOfMonth: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18052
|
+
/**
|
|
18053
|
+
* Get Booking Space Tiers endpoint
|
|
18054
|
+
* @summary Get Booking Space Tiers
|
|
18055
|
+
* @param {string} placeId The place identifier
|
|
18056
|
+
* @param {string} spaceId The space identifier
|
|
18057
|
+
* @param {number} [page] Page number
|
|
18058
|
+
* @param {number} [pageSize] Number of items per page
|
|
18059
|
+
* @param {string} [orderBy] Field to order by
|
|
18060
|
+
* @param {string} [search] Search query
|
|
18061
|
+
* @param {*} [options] Override http request option.
|
|
18062
|
+
* @throws {RequiredError}
|
|
18063
|
+
*/
|
|
18064
|
+
getBookingSpaceTiers: (placeId: string, spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18041
18065
|
/**
|
|
18042
18066
|
* Get Booking Space Translation endpoint
|
|
18043
18067
|
* @summary Get Booking Space Translation
|
|
@@ -18073,6 +18097,16 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
18073
18097
|
* @throws {RequiredError}
|
|
18074
18098
|
*/
|
|
18075
18099
|
getBookingSpaces: (placeId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18100
|
+
/**
|
|
18101
|
+
* Remove Booking Space Tier endpoint
|
|
18102
|
+
* @summary Remove Booking Space Tier
|
|
18103
|
+
* @param {string} placeId The place identifier
|
|
18104
|
+
* @param {string} spaceId The space identifier
|
|
18105
|
+
* @param {string} tierId The tier identifier
|
|
18106
|
+
* @param {*} [options] Override http request option.
|
|
18107
|
+
* @throws {RequiredError}
|
|
18108
|
+
*/
|
|
18109
|
+
removeBookingSpaceTier: (placeId: string, spaceId: string, tierId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18076
18110
|
/**
|
|
18077
18111
|
* Update Booking endpoint
|
|
18078
18112
|
* @summary Update Booking
|
|
@@ -18089,6 +18123,16 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
18089
18123
|
* BookingsApi - functional programming interface
|
|
18090
18124
|
*/
|
|
18091
18125
|
export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
18126
|
+
/**
|
|
18127
|
+
* Add Booking Space Tier endpoint
|
|
18128
|
+
* @summary Add Booking Space Tier
|
|
18129
|
+
* @param {string} placeId The place identifier
|
|
18130
|
+
* @param {string} spaceId The space identifier
|
|
18131
|
+
* @param {string} tierId The tier identifier
|
|
18132
|
+
* @param {*} [options] Override http request option.
|
|
18133
|
+
* @throws {RequiredError}
|
|
18134
|
+
*/
|
|
18135
|
+
addBookingSpaceTier(placeId: string, spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>>;
|
|
18092
18136
|
/**
|
|
18093
18137
|
* Cancel Booking endpoint
|
|
18094
18138
|
* @summary Cancel Booking
|
|
@@ -18293,6 +18337,19 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
18293
18337
|
* @throws {RequiredError}
|
|
18294
18338
|
*/
|
|
18295
18339
|
getBookingSpaceSlots(placeId: string, spaceId: string, firstDayOfMonth: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaceSlots200Response>>;
|
|
18340
|
+
/**
|
|
18341
|
+
* Get Booking Space Tiers endpoint
|
|
18342
|
+
* @summary Get Booking Space Tiers
|
|
18343
|
+
* @param {string} placeId The place identifier
|
|
18344
|
+
* @param {string} spaceId The space identifier
|
|
18345
|
+
* @param {number} [page] Page number
|
|
18346
|
+
* @param {number} [pageSize] Number of items per page
|
|
18347
|
+
* @param {string} [orderBy] Field to order by
|
|
18348
|
+
* @param {string} [search] Search query
|
|
18349
|
+
* @param {*} [options] Override http request option.
|
|
18350
|
+
* @throws {RequiredError}
|
|
18351
|
+
*/
|
|
18352
|
+
getBookingSpaceTiers(placeId: string, spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountTiers200Response>>;
|
|
18296
18353
|
/**
|
|
18297
18354
|
* Get Booking Space Translation endpoint
|
|
18298
18355
|
* @summary Get Booking Space Translation
|
|
@@ -18328,6 +18385,16 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
18328
18385
|
* @throws {RequiredError}
|
|
18329
18386
|
*/
|
|
18330
18387
|
getBookingSpaces(placeId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingSpaces200Response>>;
|
|
18388
|
+
/**
|
|
18389
|
+
* Remove Booking Space Tier endpoint
|
|
18390
|
+
* @summary Remove Booking Space Tier
|
|
18391
|
+
* @param {string} placeId The place identifier
|
|
18392
|
+
* @param {string} spaceId The space identifier
|
|
18393
|
+
* @param {string} tierId The tier identifier
|
|
18394
|
+
* @param {*} [options] Override http request option.
|
|
18395
|
+
* @throws {RequiredError}
|
|
18396
|
+
*/
|
|
18397
|
+
removeBookingSpaceTier(placeId: string, spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>>;
|
|
18331
18398
|
/**
|
|
18332
18399
|
* Update Booking endpoint
|
|
18333
18400
|
* @summary Update Booking
|
|
@@ -18344,6 +18411,14 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
18344
18411
|
* BookingsApi - factory interface
|
|
18345
18412
|
*/
|
|
18346
18413
|
export declare const BookingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
18414
|
+
/**
|
|
18415
|
+
* Add Booking Space Tier endpoint
|
|
18416
|
+
* @summary Add Booking Space Tier
|
|
18417
|
+
* @param {BookingsApiAddBookingSpaceTierRequest} requestParameters Request parameters.
|
|
18418
|
+
* @param {*} [options] Override http request option.
|
|
18419
|
+
* @throws {RequiredError}
|
|
18420
|
+
*/
|
|
18421
|
+
addBookingSpaceTier(requestParameters: BookingsApiAddBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response>;
|
|
18347
18422
|
/**
|
|
18348
18423
|
* Cancel Booking endpoint
|
|
18349
18424
|
* @summary Cancel Booking
|
|
@@ -18496,6 +18571,14 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
|
|
|
18496
18571
|
* @throws {RequiredError}
|
|
18497
18572
|
*/
|
|
18498
18573
|
getBookingSpaceSlots(requestParameters: BookingsApiGetBookingSpaceSlotsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceSlots200Response>;
|
|
18574
|
+
/**
|
|
18575
|
+
* Get Booking Space Tiers endpoint
|
|
18576
|
+
* @summary Get Booking Space Tiers
|
|
18577
|
+
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
18578
|
+
* @param {*} [options] Override http request option.
|
|
18579
|
+
* @throws {RequiredError}
|
|
18580
|
+
*/
|
|
18581
|
+
getBookingSpaceTiers(requestParameters: BookingsApiGetBookingSpaceTiersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountTiers200Response>;
|
|
18499
18582
|
/**
|
|
18500
18583
|
* Get Booking Space Translation endpoint
|
|
18501
18584
|
* @summary Get Booking Space Translation
|
|
@@ -18520,6 +18603,14 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
|
|
|
18520
18603
|
* @throws {RequiredError}
|
|
18521
18604
|
*/
|
|
18522
18605
|
getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaces200Response>;
|
|
18606
|
+
/**
|
|
18607
|
+
* Remove Booking Space Tier endpoint
|
|
18608
|
+
* @summary Remove Booking Space Tier
|
|
18609
|
+
* @param {BookingsApiRemoveBookingSpaceTierRequest} requestParameters Request parameters.
|
|
18610
|
+
* @param {*} [options] Override http request option.
|
|
18611
|
+
* @throws {RequiredError}
|
|
18612
|
+
*/
|
|
18613
|
+
removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response>;
|
|
18523
18614
|
/**
|
|
18524
18615
|
* Update Booking endpoint
|
|
18525
18616
|
* @summary Update Booking
|
|
@@ -18529,6 +18620,23 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
|
|
|
18529
18620
|
*/
|
|
18530
18621
|
updateBooking(requestParameters: BookingsApiUpdateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response>;
|
|
18531
18622
|
};
|
|
18623
|
+
/**
|
|
18624
|
+
* Request parameters for addBookingSpaceTier operation in BookingsApi.
|
|
18625
|
+
*/
|
|
18626
|
+
export interface BookingsApiAddBookingSpaceTierRequest {
|
|
18627
|
+
/**
|
|
18628
|
+
* The place identifier
|
|
18629
|
+
*/
|
|
18630
|
+
readonly placeId: string;
|
|
18631
|
+
/**
|
|
18632
|
+
* The space identifier
|
|
18633
|
+
*/
|
|
18634
|
+
readonly spaceId: string;
|
|
18635
|
+
/**
|
|
18636
|
+
* The tier identifier
|
|
18637
|
+
*/
|
|
18638
|
+
readonly tierId: string;
|
|
18639
|
+
}
|
|
18532
18640
|
/**
|
|
18533
18641
|
* Request parameters for cancelBooking operation in BookingsApi.
|
|
18534
18642
|
*/
|
|
@@ -18905,6 +19013,35 @@ export interface BookingsApiGetBookingSpaceSlotsRequest {
|
|
|
18905
19013
|
*/
|
|
18906
19014
|
readonly firstDayOfMonth: string;
|
|
18907
19015
|
}
|
|
19016
|
+
/**
|
|
19017
|
+
* Request parameters for getBookingSpaceTiers operation in BookingsApi.
|
|
19018
|
+
*/
|
|
19019
|
+
export interface BookingsApiGetBookingSpaceTiersRequest {
|
|
19020
|
+
/**
|
|
19021
|
+
* The place identifier
|
|
19022
|
+
*/
|
|
19023
|
+
readonly placeId: string;
|
|
19024
|
+
/**
|
|
19025
|
+
* The space identifier
|
|
19026
|
+
*/
|
|
19027
|
+
readonly spaceId: string;
|
|
19028
|
+
/**
|
|
19029
|
+
* Page number
|
|
19030
|
+
*/
|
|
19031
|
+
readonly page?: number;
|
|
19032
|
+
/**
|
|
19033
|
+
* Number of items per page
|
|
19034
|
+
*/
|
|
19035
|
+
readonly pageSize?: number;
|
|
19036
|
+
/**
|
|
19037
|
+
* Field to order by
|
|
19038
|
+
*/
|
|
19039
|
+
readonly orderBy?: string;
|
|
19040
|
+
/**
|
|
19041
|
+
* Search query
|
|
19042
|
+
*/
|
|
19043
|
+
readonly search?: string;
|
|
19044
|
+
}
|
|
18908
19045
|
/**
|
|
18909
19046
|
* Request parameters for getBookingSpaceTranslation operation in BookingsApi.
|
|
18910
19047
|
*/
|
|
@@ -18976,6 +19113,23 @@ export interface BookingsApiGetBookingSpacesRequest {
|
|
|
18976
19113
|
*/
|
|
18977
19114
|
readonly search?: string;
|
|
18978
19115
|
}
|
|
19116
|
+
/**
|
|
19117
|
+
* Request parameters for removeBookingSpaceTier operation in BookingsApi.
|
|
19118
|
+
*/
|
|
19119
|
+
export interface BookingsApiRemoveBookingSpaceTierRequest {
|
|
19120
|
+
/**
|
|
19121
|
+
* The place identifier
|
|
19122
|
+
*/
|
|
19123
|
+
readonly placeId: string;
|
|
19124
|
+
/**
|
|
19125
|
+
* The space identifier
|
|
19126
|
+
*/
|
|
19127
|
+
readonly spaceId: string;
|
|
19128
|
+
/**
|
|
19129
|
+
* The tier identifier
|
|
19130
|
+
*/
|
|
19131
|
+
readonly tierId: string;
|
|
19132
|
+
}
|
|
18979
19133
|
/**
|
|
18980
19134
|
* Request parameters for updateBooking operation in BookingsApi.
|
|
18981
19135
|
*/
|
|
@@ -18998,6 +19152,14 @@ export interface BookingsApiUpdateBookingRequest {
|
|
|
18998
19152
|
* BookingsApi - object-oriented interface
|
|
18999
19153
|
*/
|
|
19000
19154
|
export declare class BookingsApi extends BaseAPI {
|
|
19155
|
+
/**
|
|
19156
|
+
* Add Booking Space Tier endpoint
|
|
19157
|
+
* @summary Add Booking Space Tier
|
|
19158
|
+
* @param {BookingsApiAddBookingSpaceTierRequest} requestParameters Request parameters.
|
|
19159
|
+
* @param {*} [options] Override http request option.
|
|
19160
|
+
* @throws {RequiredError}
|
|
19161
|
+
*/
|
|
19162
|
+
addBookingSpaceTier(requestParameters: BookingsApiAddBookingSpaceTierRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingSpace200Response, any, {}>>;
|
|
19001
19163
|
/**
|
|
19002
19164
|
* Cancel Booking endpoint
|
|
19003
19165
|
* @summary Cancel Booking
|
|
@@ -19150,6 +19312,14 @@ export declare class BookingsApi extends BaseAPI {
|
|
|
19150
19312
|
* @throws {RequiredError}
|
|
19151
19313
|
*/
|
|
19152
19314
|
getBookingSpaceSlots(requestParameters: BookingsApiGetBookingSpaceSlotsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingSpaceSlots200Response, any, {}>>;
|
|
19315
|
+
/**
|
|
19316
|
+
* Get Booking Space Tiers endpoint
|
|
19317
|
+
* @summary Get Booking Space Tiers
|
|
19318
|
+
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
19319
|
+
* @param {*} [options] Override http request option.
|
|
19320
|
+
* @throws {RequiredError}
|
|
19321
|
+
*/
|
|
19322
|
+
getBookingSpaceTiers(requestParameters: BookingsApiGetBookingSpaceTiersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountTiers200Response, any, {}>>;
|
|
19153
19323
|
/**
|
|
19154
19324
|
* Get Booking Space Translation endpoint
|
|
19155
19325
|
* @summary Get Booking Space Translation
|
|
@@ -19174,6 +19344,14 @@ export declare class BookingsApi extends BaseAPI {
|
|
|
19174
19344
|
* @throws {RequiredError}
|
|
19175
19345
|
*/
|
|
19176
19346
|
getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingSpaces200Response, any, {}>>;
|
|
19347
|
+
/**
|
|
19348
|
+
* Remove Booking Space Tier endpoint
|
|
19349
|
+
* @summary Remove Booking Space Tier
|
|
19350
|
+
* @param {BookingsApiRemoveBookingSpaceTierRequest} requestParameters Request parameters.
|
|
19351
|
+
* @param {*} [options] Override http request option.
|
|
19352
|
+
* @throws {RequiredError}
|
|
19353
|
+
*/
|
|
19354
|
+
removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingSpace200Response, any, {}>>;
|
|
19177
19355
|
/**
|
|
19178
19356
|
* Update Booking endpoint
|
|
19179
19357
|
* @summary Update Booking
|
package/dist/api.js
CHANGED
|
@@ -10781,6 +10781,48 @@ exports.BenefitsTranslationsApi = BenefitsTranslationsApi;
|
|
|
10781
10781
|
*/
|
|
10782
10782
|
const BookingsApiAxiosParamCreator = function (configuration) {
|
|
10783
10783
|
return {
|
|
10784
|
+
/**
|
|
10785
|
+
* Add Booking Space Tier endpoint
|
|
10786
|
+
* @summary Add Booking Space Tier
|
|
10787
|
+
* @param {string} placeId The place identifier
|
|
10788
|
+
* @param {string} spaceId The space identifier
|
|
10789
|
+
* @param {string} tierId The tier identifier
|
|
10790
|
+
* @param {*} [options] Override http request option.
|
|
10791
|
+
* @throws {RequiredError}
|
|
10792
|
+
*/
|
|
10793
|
+
addBookingSpaceTier: (placeId_1, spaceId_1, tierId_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, tierId_1, ...args_1], void 0, function* (placeId, spaceId, tierId, options = {}) {
|
|
10794
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
10795
|
+
(0, common_1.assertParamExists)('addBookingSpaceTier', 'placeId', placeId);
|
|
10796
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
10797
|
+
(0, common_1.assertParamExists)('addBookingSpaceTier', 'spaceId', spaceId);
|
|
10798
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
10799
|
+
(0, common_1.assertParamExists)('addBookingSpaceTier', 'tierId', tierId);
|
|
10800
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId}`
|
|
10801
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
10802
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
10803
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
10804
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10805
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10806
|
+
let baseOptions;
|
|
10807
|
+
if (configuration) {
|
|
10808
|
+
baseOptions = configuration.baseOptions;
|
|
10809
|
+
}
|
|
10810
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10811
|
+
const localVarHeaderParameter = {};
|
|
10812
|
+
const localVarQueryParameter = {};
|
|
10813
|
+
// authentication ApiKeyAuth required
|
|
10814
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
|
|
10815
|
+
// authentication OrganizationId required
|
|
10816
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
|
|
10817
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
10818
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10819
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10820
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10821
|
+
return {
|
|
10822
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10823
|
+
options: localVarRequestOptions,
|
|
10824
|
+
};
|
|
10825
|
+
}),
|
|
10784
10826
|
/**
|
|
10785
10827
|
* Cancel Booking endpoint
|
|
10786
10828
|
* @summary Cancel Booking
|
|
@@ -11638,6 +11680,60 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11638
11680
|
options: localVarRequestOptions,
|
|
11639
11681
|
};
|
|
11640
11682
|
}),
|
|
11683
|
+
/**
|
|
11684
|
+
* Get Booking Space Tiers endpoint
|
|
11685
|
+
* @summary Get Booking Space Tiers
|
|
11686
|
+
* @param {string} placeId The place identifier
|
|
11687
|
+
* @param {string} spaceId The space identifier
|
|
11688
|
+
* @param {number} [page] Page number
|
|
11689
|
+
* @param {number} [pageSize] Number of items per page
|
|
11690
|
+
* @param {string} [orderBy] Field to order by
|
|
11691
|
+
* @param {string} [search] Search query
|
|
11692
|
+
* @param {*} [options] Override http request option.
|
|
11693
|
+
* @throws {RequiredError}
|
|
11694
|
+
*/
|
|
11695
|
+
getBookingSpaceTiers: (placeId_1, spaceId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (placeId, spaceId, page, pageSize, orderBy, search, options = {}) {
|
|
11696
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
11697
|
+
(0, common_1.assertParamExists)('getBookingSpaceTiers', 'placeId', placeId);
|
|
11698
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
11699
|
+
(0, common_1.assertParamExists)('getBookingSpaceTiers', 'spaceId', spaceId);
|
|
11700
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/tiers`
|
|
11701
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11702
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
11703
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11704
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11705
|
+
let baseOptions;
|
|
11706
|
+
if (configuration) {
|
|
11707
|
+
baseOptions = configuration.baseOptions;
|
|
11708
|
+
}
|
|
11709
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11710
|
+
const localVarHeaderParameter = {};
|
|
11711
|
+
const localVarQueryParameter = {};
|
|
11712
|
+
// authentication ApiKeyAuth required
|
|
11713
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
|
|
11714
|
+
// authentication OrganizationId required
|
|
11715
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
|
|
11716
|
+
if (page !== undefined) {
|
|
11717
|
+
localVarQueryParameter['page'] = page;
|
|
11718
|
+
}
|
|
11719
|
+
if (pageSize !== undefined) {
|
|
11720
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
11721
|
+
}
|
|
11722
|
+
if (orderBy !== undefined) {
|
|
11723
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
11724
|
+
}
|
|
11725
|
+
if (search !== undefined) {
|
|
11726
|
+
localVarQueryParameter['search'] = search;
|
|
11727
|
+
}
|
|
11728
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11729
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11730
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11731
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11732
|
+
return {
|
|
11733
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11734
|
+
options: localVarRequestOptions,
|
|
11735
|
+
};
|
|
11736
|
+
}),
|
|
11641
11737
|
/**
|
|
11642
11738
|
* Get Booking Space Translation endpoint
|
|
11643
11739
|
* @summary Get Booking Space Translation
|
|
@@ -11784,6 +11880,48 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
11784
11880
|
options: localVarRequestOptions,
|
|
11785
11881
|
};
|
|
11786
11882
|
}),
|
|
11883
|
+
/**
|
|
11884
|
+
* Remove Booking Space Tier endpoint
|
|
11885
|
+
* @summary Remove Booking Space Tier
|
|
11886
|
+
* @param {string} placeId The place identifier
|
|
11887
|
+
* @param {string} spaceId The space identifier
|
|
11888
|
+
* @param {string} tierId The tier identifier
|
|
11889
|
+
* @param {*} [options] Override http request option.
|
|
11890
|
+
* @throws {RequiredError}
|
|
11891
|
+
*/
|
|
11892
|
+
removeBookingSpaceTier: (placeId_1, spaceId_1, tierId_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, tierId_1, ...args_1], void 0, function* (placeId, spaceId, tierId, options = {}) {
|
|
11893
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
11894
|
+
(0, common_1.assertParamExists)('removeBookingSpaceTier', 'placeId', placeId);
|
|
11895
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
11896
|
+
(0, common_1.assertParamExists)('removeBookingSpaceTier', 'spaceId', spaceId);
|
|
11897
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
11898
|
+
(0, common_1.assertParamExists)('removeBookingSpaceTier', 'tierId', tierId);
|
|
11899
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId}`
|
|
11900
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
11901
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
11902
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
11903
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11904
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11905
|
+
let baseOptions;
|
|
11906
|
+
if (configuration) {
|
|
11907
|
+
baseOptions = configuration.baseOptions;
|
|
11908
|
+
}
|
|
11909
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11910
|
+
const localVarHeaderParameter = {};
|
|
11911
|
+
const localVarQueryParameter = {};
|
|
11912
|
+
// authentication ApiKeyAuth required
|
|
11913
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
|
|
11914
|
+
// authentication OrganizationId required
|
|
11915
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
|
|
11916
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11917
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11918
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11919
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11920
|
+
return {
|
|
11921
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11922
|
+
options: localVarRequestOptions,
|
|
11923
|
+
};
|
|
11924
|
+
}),
|
|
11787
11925
|
/**
|
|
11788
11926
|
* Update Booking endpoint
|
|
11789
11927
|
* @summary Update Booking
|
|
@@ -11840,6 +11978,24 @@ exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
|
11840
11978
|
const BookingsApiFp = function (configuration) {
|
|
11841
11979
|
const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
|
|
11842
11980
|
return {
|
|
11981
|
+
/**
|
|
11982
|
+
* Add Booking Space Tier endpoint
|
|
11983
|
+
* @summary Add Booking Space Tier
|
|
11984
|
+
* @param {string} placeId The place identifier
|
|
11985
|
+
* @param {string} spaceId The space identifier
|
|
11986
|
+
* @param {string} tierId The tier identifier
|
|
11987
|
+
* @param {*} [options] Override http request option.
|
|
11988
|
+
* @throws {RequiredError}
|
|
11989
|
+
*/
|
|
11990
|
+
addBookingSpaceTier(placeId, spaceId, tierId, options) {
|
|
11991
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11992
|
+
var _a, _b, _c;
|
|
11993
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addBookingSpaceTier(placeId, spaceId, tierId, options);
|
|
11994
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11995
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.addBookingSpaceTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11996
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11997
|
+
});
|
|
11998
|
+
},
|
|
11843
11999
|
/**
|
|
11844
12000
|
* Cancel Booking endpoint
|
|
11845
12001
|
* @summary Cancel Booking
|
|
@@ -12196,6 +12352,27 @@ const BookingsApiFp = function (configuration) {
|
|
|
12196
12352
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12197
12353
|
});
|
|
12198
12354
|
},
|
|
12355
|
+
/**
|
|
12356
|
+
* Get Booking Space Tiers endpoint
|
|
12357
|
+
* @summary Get Booking Space Tiers
|
|
12358
|
+
* @param {string} placeId The place identifier
|
|
12359
|
+
* @param {string} spaceId The space identifier
|
|
12360
|
+
* @param {number} [page] Page number
|
|
12361
|
+
* @param {number} [pageSize] Number of items per page
|
|
12362
|
+
* @param {string} [orderBy] Field to order by
|
|
12363
|
+
* @param {string} [search] Search query
|
|
12364
|
+
* @param {*} [options] Override http request option.
|
|
12365
|
+
* @throws {RequiredError}
|
|
12366
|
+
*/
|
|
12367
|
+
getBookingSpaceTiers(placeId, spaceId, page, pageSize, orderBy, search, options) {
|
|
12368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12369
|
+
var _a, _b, _c;
|
|
12370
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingSpaceTiers(placeId, spaceId, page, pageSize, orderBy, search, options);
|
|
12371
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12372
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingSpaceTiers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12373
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12374
|
+
});
|
|
12375
|
+
},
|
|
12199
12376
|
/**
|
|
12200
12377
|
* Get Booking Space Translation endpoint
|
|
12201
12378
|
* @summary Get Booking Space Translation
|
|
@@ -12255,6 +12432,24 @@ const BookingsApiFp = function (configuration) {
|
|
|
12255
12432
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12256
12433
|
});
|
|
12257
12434
|
},
|
|
12435
|
+
/**
|
|
12436
|
+
* Remove Booking Space Tier endpoint
|
|
12437
|
+
* @summary Remove Booking Space Tier
|
|
12438
|
+
* @param {string} placeId The place identifier
|
|
12439
|
+
* @param {string} spaceId The space identifier
|
|
12440
|
+
* @param {string} tierId The tier identifier
|
|
12441
|
+
* @param {*} [options] Override http request option.
|
|
12442
|
+
* @throws {RequiredError}
|
|
12443
|
+
*/
|
|
12444
|
+
removeBookingSpaceTier(placeId, spaceId, tierId, options) {
|
|
12445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12446
|
+
var _a, _b, _c;
|
|
12447
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeBookingSpaceTier(placeId, spaceId, tierId, options);
|
|
12448
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12449
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.removeBookingSpaceTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12450
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12451
|
+
});
|
|
12452
|
+
},
|
|
12258
12453
|
/**
|
|
12259
12454
|
* Update Booking endpoint
|
|
12260
12455
|
* @summary Update Booking
|
|
@@ -12283,6 +12478,16 @@ exports.BookingsApiFp = BookingsApiFp;
|
|
|
12283
12478
|
const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
12284
12479
|
const localVarFp = (0, exports.BookingsApiFp)(configuration);
|
|
12285
12480
|
return {
|
|
12481
|
+
/**
|
|
12482
|
+
* Add Booking Space Tier endpoint
|
|
12483
|
+
* @summary Add Booking Space Tier
|
|
12484
|
+
* @param {BookingsApiAddBookingSpaceTierRequest} requestParameters Request parameters.
|
|
12485
|
+
* @param {*} [options] Override http request option.
|
|
12486
|
+
* @throws {RequiredError}
|
|
12487
|
+
*/
|
|
12488
|
+
addBookingSpaceTier(requestParameters, options) {
|
|
12489
|
+
return localVarFp.addBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
12490
|
+
},
|
|
12286
12491
|
/**
|
|
12287
12492
|
* Cancel Booking endpoint
|
|
12288
12493
|
* @summary Cancel Booking
|
|
@@ -12473,6 +12678,16 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12473
12678
|
getBookingSpaceSlots(requestParameters, options) {
|
|
12474
12679
|
return localVarFp.getBookingSpaceSlots(requestParameters.placeId, requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(axios, basePath));
|
|
12475
12680
|
},
|
|
12681
|
+
/**
|
|
12682
|
+
* Get Booking Space Tiers endpoint
|
|
12683
|
+
* @summary Get Booking Space Tiers
|
|
12684
|
+
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
12685
|
+
* @param {*} [options] Override http request option.
|
|
12686
|
+
* @throws {RequiredError}
|
|
12687
|
+
*/
|
|
12688
|
+
getBookingSpaceTiers(requestParameters, options) {
|
|
12689
|
+
return localVarFp.getBookingSpaceTiers(requestParameters.placeId, requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12690
|
+
},
|
|
12476
12691
|
/**
|
|
12477
12692
|
* Get Booking Space Translation endpoint
|
|
12478
12693
|
* @summary Get Booking Space Translation
|
|
@@ -12503,6 +12718,16 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
12503
12718
|
getBookingSpaces(requestParameters, options) {
|
|
12504
12719
|
return localVarFp.getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
12505
12720
|
},
|
|
12721
|
+
/**
|
|
12722
|
+
* Remove Booking Space Tier endpoint
|
|
12723
|
+
* @summary Remove Booking Space Tier
|
|
12724
|
+
* @param {BookingsApiRemoveBookingSpaceTierRequest} requestParameters Request parameters.
|
|
12725
|
+
* @param {*} [options] Override http request option.
|
|
12726
|
+
* @throws {RequiredError}
|
|
12727
|
+
*/
|
|
12728
|
+
removeBookingSpaceTier(requestParameters, options) {
|
|
12729
|
+
return localVarFp.removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
12730
|
+
},
|
|
12506
12731
|
/**
|
|
12507
12732
|
* Update Booking endpoint
|
|
12508
12733
|
* @summary Update Booking
|
|
@@ -12520,6 +12745,16 @@ exports.BookingsApiFactory = BookingsApiFactory;
|
|
|
12520
12745
|
* BookingsApi - object-oriented interface
|
|
12521
12746
|
*/
|
|
12522
12747
|
class BookingsApi extends base_1.BaseAPI {
|
|
12748
|
+
/**
|
|
12749
|
+
* Add Booking Space Tier endpoint
|
|
12750
|
+
* @summary Add Booking Space Tier
|
|
12751
|
+
* @param {BookingsApiAddBookingSpaceTierRequest} requestParameters Request parameters.
|
|
12752
|
+
* @param {*} [options] Override http request option.
|
|
12753
|
+
* @throws {RequiredError}
|
|
12754
|
+
*/
|
|
12755
|
+
addBookingSpaceTier(requestParameters, options) {
|
|
12756
|
+
return (0, exports.BookingsApiFp)(this.configuration).addBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
12757
|
+
}
|
|
12523
12758
|
/**
|
|
12524
12759
|
* Cancel Booking endpoint
|
|
12525
12760
|
* @summary Cancel Booking
|
|
@@ -12710,6 +12945,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
12710
12945
|
getBookingSpaceSlots(requestParameters, options) {
|
|
12711
12946
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceSlots(requestParameters.placeId, requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(this.axios, this.basePath));
|
|
12712
12947
|
}
|
|
12948
|
+
/**
|
|
12949
|
+
* Get Booking Space Tiers endpoint
|
|
12950
|
+
* @summary Get Booking Space Tiers
|
|
12951
|
+
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
12952
|
+
* @param {*} [options] Override http request option.
|
|
12953
|
+
* @throws {RequiredError}
|
|
12954
|
+
*/
|
|
12955
|
+
getBookingSpaceTiers(requestParameters, options) {
|
|
12956
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaceTiers(requestParameters.placeId, requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
12957
|
+
}
|
|
12713
12958
|
/**
|
|
12714
12959
|
* Get Booking Space Translation endpoint
|
|
12715
12960
|
* @summary Get Booking Space Translation
|
|
@@ -12740,6 +12985,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
12740
12985
|
getBookingSpaces(requestParameters, options) {
|
|
12741
12986
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
12742
12987
|
}
|
|
12988
|
+
/**
|
|
12989
|
+
* Remove Booking Space Tier endpoint
|
|
12990
|
+
* @summary Remove Booking Space Tier
|
|
12991
|
+
* @param {BookingsApiRemoveBookingSpaceTierRequest} requestParameters Request parameters.
|
|
12992
|
+
* @param {*} [options] Override http request option.
|
|
12993
|
+
* @throws {RequiredError}
|
|
12994
|
+
*/
|
|
12995
|
+
removeBookingSpaceTier(requestParameters, options) {
|
|
12996
|
+
return (0, exports.BookingsApiFp)(this.configuration).removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
12997
|
+
}
|
|
12743
12998
|
/**
|
|
12744
12999
|
* Update Booking endpoint
|
|
12745
13000
|
* @summary Update Booking
|