@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/README.md
CHANGED
|
@@ -144,6 +144,7 @@ Class | Method | HTTP request | Description
|
|
|
144
144
|
*BenefitsTranslationsApi* | [**getBenefitTranslation**](docs/BenefitsTranslationsApi.md#getbenefittranslation) | **GET** /benefits/{benefitId}/translations/{locale} | Get Benefit Translation
|
|
145
145
|
*BenefitsTranslationsApi* | [**getBenefitTranslations**](docs/BenefitsTranslationsApi.md#getbenefittranslations) | **GET** /benefits/{benefitId}/translations | Get Benefit Translations
|
|
146
146
|
*BenefitsTranslationsApi* | [**updateBenefitTranslation**](docs/BenefitsTranslationsApi.md#updatebenefittranslation) | **PUT** /benefits/{benefitId}/translations/{locale} | Update Benefit Translation
|
|
147
|
+
*BookingsApi* | [**addBookingSpaceTier**](docs/BookingsApi.md#addbookingspacetier) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId} | Add Booking Space Tier
|
|
147
148
|
*BookingsApi* | [**cancelBooking**](docs/BookingsApi.md#cancelbooking) | **PUT** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/cancel | Cancel Booking
|
|
148
149
|
*BookingsApi* | [**createBooking**](docs/BookingsApi.md#createbooking) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/bookings | Create Booking
|
|
149
150
|
*BookingsApi* | [**deleteBooking**](docs/BookingsApi.md#deletebooking) | **DELETE** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId} | Delete Booking
|
|
@@ -163,9 +164,11 @@ Class | Method | HTTP request | Description
|
|
|
163
164
|
*BookingsApi* | [**getBookingSpaceBookings**](docs/BookingsApi.md#getbookingspacebookings) | **GET** /bookings/places/{placeId}/spaces/{spaceId}/bookings | Get Booking Space Bookings
|
|
164
165
|
*BookingsApi* | [**getBookingSpacePayments**](docs/BookingsApi.md#getbookingspacepayments) | **GET** /bookings/places/{placeId}/spaces/{spaceId}/payments | Get Booking Space Payments
|
|
165
166
|
*BookingsApi* | [**getBookingSpaceSlots**](docs/BookingsApi.md#getbookingspaceslots) | **GET** /bookings/places/{placeId}/spaces/{spaceId}/slots | Get Booking Space Slots
|
|
167
|
+
*BookingsApi* | [**getBookingSpaceTiers**](docs/BookingsApi.md#getbookingspacetiers) | **GET** /bookings/places/{placeId}/spaces/{spaceId}/tiers | Get Booking Space Tiers
|
|
166
168
|
*BookingsApi* | [**getBookingSpaceTranslation**](docs/BookingsApi.md#getbookingspacetranslation) | **GET** /bookings/places/{placeId}/spaces/{spaceId}/translations/{locale} | Get Booking Space Translation
|
|
167
169
|
*BookingsApi* | [**getBookingSpaceTranslations**](docs/BookingsApi.md#getbookingspacetranslations) | **GET** /bookings/places/{placeId}/spaces/{spaceId}/translations | Get Booking Space Translations
|
|
168
170
|
*BookingsApi* | [**getBookingSpaces**](docs/BookingsApi.md#getbookingspaces) | **GET** /bookings/places/{placeId}/spaces | Get Booking Spaces
|
|
171
|
+
*BookingsApi* | [**removeBookingSpaceTier**](docs/BookingsApi.md#removebookingspacetier) | **DELETE** /bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId} | Remove Booking Space Tier
|
|
169
172
|
*BookingsApi* | [**updateBooking**](docs/BookingsApi.md#updatebooking) | **PUT** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId} | Update Booking
|
|
170
173
|
*BookingsAvailabilitiesApi* | [**createBookingSpaceAvailability**](docs/BookingsAvailabilitiesApi.md#createbookingspaceavailability) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/availabilities | Create Booking Space Availability
|
|
171
174
|
*BookingsAvailabilitiesApi* | [**deleteBookingSpaceAvailability**](docs/BookingsAvailabilitiesApi.md#deletebookingspaceavailability) | **DELETE** /bookings/places/{placeId}/spaces/{spaceId}/availabilities/{availabilityId} | Delete Booking Space Availability
|
package/api.ts
CHANGED
|
@@ -2827,6 +2827,7 @@ export interface BookingSpace {
|
|
|
2827
2827
|
'meetingId': string | null;
|
|
2828
2828
|
'meeting': BaseMeeting | null;
|
|
2829
2829
|
'joinBeforeTime': number | null;
|
|
2830
|
+
'allowedTiers': Array<BaseTier>;
|
|
2830
2831
|
'createdAt': string;
|
|
2831
2832
|
'updatedAt': string;
|
|
2832
2833
|
}
|
|
@@ -24567,6 +24568,54 @@ export class BenefitsTranslationsApi extends BaseAPI {
|
|
|
24567
24568
|
*/
|
|
24568
24569
|
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
24569
24570
|
return {
|
|
24571
|
+
/**
|
|
24572
|
+
* Add Booking Space Tier endpoint
|
|
24573
|
+
* @summary Add Booking Space Tier
|
|
24574
|
+
* @param {string} placeId The place identifier
|
|
24575
|
+
* @param {string} spaceId The space identifier
|
|
24576
|
+
* @param {string} tierId The tier identifier
|
|
24577
|
+
* @param {*} [options] Override http request option.
|
|
24578
|
+
* @throws {RequiredError}
|
|
24579
|
+
*/
|
|
24580
|
+
addBookingSpaceTier: async (placeId: string, spaceId: string, tierId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24581
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
24582
|
+
assertParamExists('addBookingSpaceTier', 'placeId', placeId)
|
|
24583
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
24584
|
+
assertParamExists('addBookingSpaceTier', 'spaceId', spaceId)
|
|
24585
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
24586
|
+
assertParamExists('addBookingSpaceTier', 'tierId', tierId)
|
|
24587
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId}`
|
|
24588
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
24589
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
24590
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
24591
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24592
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24593
|
+
let baseOptions;
|
|
24594
|
+
if (configuration) {
|
|
24595
|
+
baseOptions = configuration.baseOptions;
|
|
24596
|
+
}
|
|
24597
|
+
|
|
24598
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
24599
|
+
const localVarHeaderParameter = {} as any;
|
|
24600
|
+
const localVarQueryParameter = {} as any;
|
|
24601
|
+
|
|
24602
|
+
// authentication ApiKeyAuth required
|
|
24603
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
24604
|
+
|
|
24605
|
+
// authentication OrganizationId required
|
|
24606
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
24607
|
+
|
|
24608
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
24609
|
+
|
|
24610
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24611
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24612
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24613
|
+
|
|
24614
|
+
return {
|
|
24615
|
+
url: toPathString(localVarUrlObj),
|
|
24616
|
+
options: localVarRequestOptions,
|
|
24617
|
+
};
|
|
24618
|
+
},
|
|
24570
24619
|
/**
|
|
24571
24620
|
* Cancel Booking endpoint
|
|
24572
24621
|
* @summary Cancel Booking
|
|
@@ -25574,6 +25623,70 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25574
25623
|
options: localVarRequestOptions,
|
|
25575
25624
|
};
|
|
25576
25625
|
},
|
|
25626
|
+
/**
|
|
25627
|
+
* Get Booking Space Tiers endpoint
|
|
25628
|
+
* @summary Get Booking Space Tiers
|
|
25629
|
+
* @param {string} placeId The place identifier
|
|
25630
|
+
* @param {string} spaceId The space identifier
|
|
25631
|
+
* @param {number} [page] Page number
|
|
25632
|
+
* @param {number} [pageSize] Number of items per page
|
|
25633
|
+
* @param {string} [orderBy] Field to order by
|
|
25634
|
+
* @param {string} [search] Search query
|
|
25635
|
+
* @param {*} [options] Override http request option.
|
|
25636
|
+
* @throws {RequiredError}
|
|
25637
|
+
*/
|
|
25638
|
+
getBookingSpaceTiers: async (placeId: string, spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25639
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
25640
|
+
assertParamExists('getBookingSpaceTiers', 'placeId', placeId)
|
|
25641
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
25642
|
+
assertParamExists('getBookingSpaceTiers', 'spaceId', spaceId)
|
|
25643
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/tiers`
|
|
25644
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25645
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)));
|
|
25646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25647
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25648
|
+
let baseOptions;
|
|
25649
|
+
if (configuration) {
|
|
25650
|
+
baseOptions = configuration.baseOptions;
|
|
25651
|
+
}
|
|
25652
|
+
|
|
25653
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
25654
|
+
const localVarHeaderParameter = {} as any;
|
|
25655
|
+
const localVarQueryParameter = {} as any;
|
|
25656
|
+
|
|
25657
|
+
// authentication ApiKeyAuth required
|
|
25658
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
25659
|
+
|
|
25660
|
+
// authentication OrganizationId required
|
|
25661
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
25662
|
+
|
|
25663
|
+
if (page !== undefined) {
|
|
25664
|
+
localVarQueryParameter['page'] = page;
|
|
25665
|
+
}
|
|
25666
|
+
|
|
25667
|
+
if (pageSize !== undefined) {
|
|
25668
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
25669
|
+
}
|
|
25670
|
+
|
|
25671
|
+
if (orderBy !== undefined) {
|
|
25672
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
25673
|
+
}
|
|
25674
|
+
|
|
25675
|
+
if (search !== undefined) {
|
|
25676
|
+
localVarQueryParameter['search'] = search;
|
|
25677
|
+
}
|
|
25678
|
+
|
|
25679
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
25680
|
+
|
|
25681
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25682
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25683
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25684
|
+
|
|
25685
|
+
return {
|
|
25686
|
+
url: toPathString(localVarUrlObj),
|
|
25687
|
+
options: localVarRequestOptions,
|
|
25688
|
+
};
|
|
25689
|
+
},
|
|
25577
25690
|
/**
|
|
25578
25691
|
* Get Booking Space Translation endpoint
|
|
25579
25692
|
* @summary Get Booking Space Translation
|
|
@@ -25746,6 +25859,54 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25746
25859
|
options: localVarRequestOptions,
|
|
25747
25860
|
};
|
|
25748
25861
|
},
|
|
25862
|
+
/**
|
|
25863
|
+
* Remove Booking Space Tier endpoint
|
|
25864
|
+
* @summary Remove Booking Space Tier
|
|
25865
|
+
* @param {string} placeId The place identifier
|
|
25866
|
+
* @param {string} spaceId The space identifier
|
|
25867
|
+
* @param {string} tierId The tier identifier
|
|
25868
|
+
* @param {*} [options] Override http request option.
|
|
25869
|
+
* @throws {RequiredError}
|
|
25870
|
+
*/
|
|
25871
|
+
removeBookingSpaceTier: async (placeId: string, spaceId: string, tierId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25872
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
25873
|
+
assertParamExists('removeBookingSpaceTier', 'placeId', placeId)
|
|
25874
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
25875
|
+
assertParamExists('removeBookingSpaceTier', 'spaceId', spaceId)
|
|
25876
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
25877
|
+
assertParamExists('removeBookingSpaceTier', 'tierId', tierId)
|
|
25878
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId}`
|
|
25879
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
25880
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
25881
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
25882
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25883
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25884
|
+
let baseOptions;
|
|
25885
|
+
if (configuration) {
|
|
25886
|
+
baseOptions = configuration.baseOptions;
|
|
25887
|
+
}
|
|
25888
|
+
|
|
25889
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
25890
|
+
const localVarHeaderParameter = {} as any;
|
|
25891
|
+
const localVarQueryParameter = {} as any;
|
|
25892
|
+
|
|
25893
|
+
// authentication ApiKeyAuth required
|
|
25894
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
25895
|
+
|
|
25896
|
+
// authentication OrganizationId required
|
|
25897
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
25898
|
+
|
|
25899
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
25900
|
+
|
|
25901
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25902
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25903
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25904
|
+
|
|
25905
|
+
return {
|
|
25906
|
+
url: toPathString(localVarUrlObj),
|
|
25907
|
+
options: localVarRequestOptions,
|
|
25908
|
+
};
|
|
25909
|
+
},
|
|
25749
25910
|
/**
|
|
25750
25911
|
* Update Booking endpoint
|
|
25751
25912
|
* @summary Update Booking
|
|
@@ -25808,6 +25969,21 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25808
25969
|
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
25809
25970
|
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
25810
25971
|
return {
|
|
25972
|
+
/**
|
|
25973
|
+
* Add Booking Space Tier endpoint
|
|
25974
|
+
* @summary Add Booking Space Tier
|
|
25975
|
+
* @param {string} placeId The place identifier
|
|
25976
|
+
* @param {string} spaceId The space identifier
|
|
25977
|
+
* @param {string} tierId The tier identifier
|
|
25978
|
+
* @param {*} [options] Override http request option.
|
|
25979
|
+
* @throws {RequiredError}
|
|
25980
|
+
*/
|
|
25981
|
+
async addBookingSpaceTier(placeId: string, spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
25982
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addBookingSpaceTier(placeId, spaceId, tierId, options);
|
|
25983
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25984
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.addBookingSpaceTier']?.[localVarOperationServerIndex]?.url;
|
|
25985
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25986
|
+
},
|
|
25811
25987
|
/**
|
|
25812
25988
|
* Cancel Booking endpoint
|
|
25813
25989
|
* @summary Cancel Booking
|
|
@@ -26107,6 +26283,24 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26107
26283
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceSlots']?.[localVarOperationServerIndex]?.url;
|
|
26108
26284
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26109
26285
|
},
|
|
26286
|
+
/**
|
|
26287
|
+
* Get Booking Space Tiers endpoint
|
|
26288
|
+
* @summary Get Booking Space Tiers
|
|
26289
|
+
* @param {string} placeId The place identifier
|
|
26290
|
+
* @param {string} spaceId The space identifier
|
|
26291
|
+
* @param {number} [page] Page number
|
|
26292
|
+
* @param {number} [pageSize] Number of items per page
|
|
26293
|
+
* @param {string} [orderBy] Field to order by
|
|
26294
|
+
* @param {string} [search] Search query
|
|
26295
|
+
* @param {*} [options] Override http request option.
|
|
26296
|
+
* @throws {RequiredError}
|
|
26297
|
+
*/
|
|
26298
|
+
async getBookingSpaceTiers(placeId: string, spaceId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountTiers200Response>> {
|
|
26299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceTiers(placeId, spaceId, page, pageSize, orderBy, search, options);
|
|
26300
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26301
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceTiers']?.[localVarOperationServerIndex]?.url;
|
|
26302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26303
|
+
},
|
|
26110
26304
|
/**
|
|
26111
26305
|
* Get Booking Space Translation endpoint
|
|
26112
26306
|
* @summary Get Booking Space Translation
|
|
@@ -26157,6 +26351,21 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26157
26351
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaces']?.[localVarOperationServerIndex]?.url;
|
|
26158
26352
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26159
26353
|
},
|
|
26354
|
+
/**
|
|
26355
|
+
* Remove Booking Space Tier endpoint
|
|
26356
|
+
* @summary Remove Booking Space Tier
|
|
26357
|
+
* @param {string} placeId The place identifier
|
|
26358
|
+
* @param {string} spaceId The space identifier
|
|
26359
|
+
* @param {string} tierId The tier identifier
|
|
26360
|
+
* @param {*} [options] Override http request option.
|
|
26361
|
+
* @throws {RequiredError}
|
|
26362
|
+
*/
|
|
26363
|
+
async removeBookingSpaceTier(placeId: string, spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>> {
|
|
26364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeBookingSpaceTier(placeId, spaceId, tierId, options);
|
|
26365
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26366
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.removeBookingSpaceTier']?.[localVarOperationServerIndex]?.url;
|
|
26367
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26368
|
+
},
|
|
26160
26369
|
/**
|
|
26161
26370
|
* Update Booking endpoint
|
|
26162
26371
|
* @summary Update Booking
|
|
@@ -26182,6 +26391,16 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26182
26391
|
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26183
26392
|
const localVarFp = BookingsApiFp(configuration)
|
|
26184
26393
|
return {
|
|
26394
|
+
/**
|
|
26395
|
+
* Add Booking Space Tier endpoint
|
|
26396
|
+
* @summary Add Booking Space Tier
|
|
26397
|
+
* @param {BookingsApiAddBookingSpaceTierRequest} requestParameters Request parameters.
|
|
26398
|
+
* @param {*} [options] Override http request option.
|
|
26399
|
+
* @throws {RequiredError}
|
|
26400
|
+
*/
|
|
26401
|
+
addBookingSpaceTier(requestParameters: BookingsApiAddBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
26402
|
+
return localVarFp.addBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
26403
|
+
},
|
|
26185
26404
|
/**
|
|
26186
26405
|
* Cancel Booking endpoint
|
|
26187
26406
|
* @summary Cancel Booking
|
|
@@ -26372,6 +26591,16 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
26372
26591
|
getBookingSpaceSlots(requestParameters: BookingsApiGetBookingSpaceSlotsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaceSlots200Response> {
|
|
26373
26592
|
return localVarFp.getBookingSpaceSlots(requestParameters.placeId, requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(axios, basePath));
|
|
26374
26593
|
},
|
|
26594
|
+
/**
|
|
26595
|
+
* Get Booking Space Tiers endpoint
|
|
26596
|
+
* @summary Get Booking Space Tiers
|
|
26597
|
+
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
26598
|
+
* @param {*} [options] Override http request option.
|
|
26599
|
+
* @throws {RequiredError}
|
|
26600
|
+
*/
|
|
26601
|
+
getBookingSpaceTiers(requestParameters: BookingsApiGetBookingSpaceTiersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountTiers200Response> {
|
|
26602
|
+
return localVarFp.getBookingSpaceTiers(requestParameters.placeId, requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
26603
|
+
},
|
|
26375
26604
|
/**
|
|
26376
26605
|
* Get Booking Space Translation endpoint
|
|
26377
26606
|
* @summary Get Booking Space Translation
|
|
@@ -26402,6 +26631,16 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
26402
26631
|
getBookingSpaces(requestParameters: BookingsApiGetBookingSpacesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetBookingSpaces200Response> {
|
|
26403
26632
|
return localVarFp.getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
26404
26633
|
},
|
|
26634
|
+
/**
|
|
26635
|
+
* Remove Booking Space Tier endpoint
|
|
26636
|
+
* @summary Remove Booking Space Tier
|
|
26637
|
+
* @param {BookingsApiRemoveBookingSpaceTierRequest} requestParameters Request parameters.
|
|
26638
|
+
* @param {*} [options] Override http request option.
|
|
26639
|
+
* @throws {RequiredError}
|
|
26640
|
+
*/
|
|
26641
|
+
removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
26642
|
+
return localVarFp.removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
26643
|
+
},
|
|
26405
26644
|
/**
|
|
26406
26645
|
* Update Booking endpoint
|
|
26407
26646
|
* @summary Update Booking
|
|
@@ -26415,6 +26654,26 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
26415
26654
|
};
|
|
26416
26655
|
};
|
|
26417
26656
|
|
|
26657
|
+
/**
|
|
26658
|
+
* Request parameters for addBookingSpaceTier operation in BookingsApi.
|
|
26659
|
+
*/
|
|
26660
|
+
export interface BookingsApiAddBookingSpaceTierRequest {
|
|
26661
|
+
/**
|
|
26662
|
+
* The place identifier
|
|
26663
|
+
*/
|
|
26664
|
+
readonly placeId: string
|
|
26665
|
+
|
|
26666
|
+
/**
|
|
26667
|
+
* The space identifier
|
|
26668
|
+
*/
|
|
26669
|
+
readonly spaceId: string
|
|
26670
|
+
|
|
26671
|
+
/**
|
|
26672
|
+
* The tier identifier
|
|
26673
|
+
*/
|
|
26674
|
+
readonly tierId: string
|
|
26675
|
+
}
|
|
26676
|
+
|
|
26418
26677
|
/**
|
|
26419
26678
|
* Request parameters for cancelBooking operation in BookingsApi.
|
|
26420
26679
|
*/
|
|
@@ -26862,6 +27121,41 @@ export interface BookingsApiGetBookingSpaceSlotsRequest {
|
|
|
26862
27121
|
readonly firstDayOfMonth: string
|
|
26863
27122
|
}
|
|
26864
27123
|
|
|
27124
|
+
/**
|
|
27125
|
+
* Request parameters for getBookingSpaceTiers operation in BookingsApi.
|
|
27126
|
+
*/
|
|
27127
|
+
export interface BookingsApiGetBookingSpaceTiersRequest {
|
|
27128
|
+
/**
|
|
27129
|
+
* The place identifier
|
|
27130
|
+
*/
|
|
27131
|
+
readonly placeId: string
|
|
27132
|
+
|
|
27133
|
+
/**
|
|
27134
|
+
* The space identifier
|
|
27135
|
+
*/
|
|
27136
|
+
readonly spaceId: string
|
|
27137
|
+
|
|
27138
|
+
/**
|
|
27139
|
+
* Page number
|
|
27140
|
+
*/
|
|
27141
|
+
readonly page?: number
|
|
27142
|
+
|
|
27143
|
+
/**
|
|
27144
|
+
* Number of items per page
|
|
27145
|
+
*/
|
|
27146
|
+
readonly pageSize?: number
|
|
27147
|
+
|
|
27148
|
+
/**
|
|
27149
|
+
* Field to order by
|
|
27150
|
+
*/
|
|
27151
|
+
readonly orderBy?: string
|
|
27152
|
+
|
|
27153
|
+
/**
|
|
27154
|
+
* Search query
|
|
27155
|
+
*/
|
|
27156
|
+
readonly search?: string
|
|
27157
|
+
}
|
|
27158
|
+
|
|
26865
27159
|
/**
|
|
26866
27160
|
* Request parameters for getBookingSpaceTranslation operation in BookingsApi.
|
|
26867
27161
|
*/
|
|
@@ -26947,6 +27241,26 @@ export interface BookingsApiGetBookingSpacesRequest {
|
|
|
26947
27241
|
readonly search?: string
|
|
26948
27242
|
}
|
|
26949
27243
|
|
|
27244
|
+
/**
|
|
27245
|
+
* Request parameters for removeBookingSpaceTier operation in BookingsApi.
|
|
27246
|
+
*/
|
|
27247
|
+
export interface BookingsApiRemoveBookingSpaceTierRequest {
|
|
27248
|
+
/**
|
|
27249
|
+
* The place identifier
|
|
27250
|
+
*/
|
|
27251
|
+
readonly placeId: string
|
|
27252
|
+
|
|
27253
|
+
/**
|
|
27254
|
+
* The space identifier
|
|
27255
|
+
*/
|
|
27256
|
+
readonly spaceId: string
|
|
27257
|
+
|
|
27258
|
+
/**
|
|
27259
|
+
* The tier identifier
|
|
27260
|
+
*/
|
|
27261
|
+
readonly tierId: string
|
|
27262
|
+
}
|
|
27263
|
+
|
|
26950
27264
|
/**
|
|
26951
27265
|
* Request parameters for updateBooking operation in BookingsApi.
|
|
26952
27266
|
*/
|
|
@@ -26973,6 +27287,17 @@ export interface BookingsApiUpdateBookingRequest {
|
|
|
26973
27287
|
* BookingsApi - object-oriented interface
|
|
26974
27288
|
*/
|
|
26975
27289
|
export class BookingsApi extends BaseAPI {
|
|
27290
|
+
/**
|
|
27291
|
+
* Add Booking Space Tier endpoint
|
|
27292
|
+
* @summary Add Booking Space Tier
|
|
27293
|
+
* @param {BookingsApiAddBookingSpaceTierRequest} requestParameters Request parameters.
|
|
27294
|
+
* @param {*} [options] Override http request option.
|
|
27295
|
+
* @throws {RequiredError}
|
|
27296
|
+
*/
|
|
27297
|
+
public addBookingSpaceTier(requestParameters: BookingsApiAddBookingSpaceTierRequest, options?: RawAxiosRequestConfig) {
|
|
27298
|
+
return BookingsApiFp(this.configuration).addBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
27299
|
+
}
|
|
27300
|
+
|
|
26976
27301
|
/**
|
|
26977
27302
|
* Cancel Booking endpoint
|
|
26978
27303
|
* @summary Cancel Booking
|
|
@@ -27182,6 +27507,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
27182
27507
|
return BookingsApiFp(this.configuration).getBookingSpaceSlots(requestParameters.placeId, requestParameters.spaceId, requestParameters.firstDayOfMonth, options).then((request) => request(this.axios, this.basePath));
|
|
27183
27508
|
}
|
|
27184
27509
|
|
|
27510
|
+
/**
|
|
27511
|
+
* Get Booking Space Tiers endpoint
|
|
27512
|
+
* @summary Get Booking Space Tiers
|
|
27513
|
+
* @param {BookingsApiGetBookingSpaceTiersRequest} requestParameters Request parameters.
|
|
27514
|
+
* @param {*} [options] Override http request option.
|
|
27515
|
+
* @throws {RequiredError}
|
|
27516
|
+
*/
|
|
27517
|
+
public getBookingSpaceTiers(requestParameters: BookingsApiGetBookingSpaceTiersRequest, options?: RawAxiosRequestConfig) {
|
|
27518
|
+
return BookingsApiFp(this.configuration).getBookingSpaceTiers(requestParameters.placeId, requestParameters.spaceId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
27519
|
+
}
|
|
27520
|
+
|
|
27185
27521
|
/**
|
|
27186
27522
|
* Get Booking Space Translation endpoint
|
|
27187
27523
|
* @summary Get Booking Space Translation
|
|
@@ -27215,6 +27551,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
27215
27551
|
return BookingsApiFp(this.configuration).getBookingSpaces(requestParameters.placeId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
27216
27552
|
}
|
|
27217
27553
|
|
|
27554
|
+
/**
|
|
27555
|
+
* Remove Booking Space Tier endpoint
|
|
27556
|
+
* @summary Remove Booking Space Tier
|
|
27557
|
+
* @param {BookingsApiRemoveBookingSpaceTierRequest} requestParameters Request parameters.
|
|
27558
|
+
* @param {*} [options] Override http request option.
|
|
27559
|
+
* @throws {RequiredError}
|
|
27560
|
+
*/
|
|
27561
|
+
public removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig) {
|
|
27562
|
+
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
27563
|
+
}
|
|
27564
|
+
|
|
27218
27565
|
/**
|
|
27219
27566
|
* Update Booking endpoint
|
|
27220
27567
|
* @summary Update Booking
|