@connectedxm/admin-sdk 7.2.1 → 7.2.3
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/.openapi-generator/FILES +1 -1
- package/README.md +4 -1
- package/api.ts +354 -15
- package/dist/api.d.ts +189 -15
- package/dist/api.js +256 -6
- package/dist/esm/api.d.ts +189 -15
- package/dist/esm/api.js +254 -4
- package/docs/AccountsApi.md +64 -0
- package/docs/BaseBooking.md +2 -0
- package/docs/Booking.md +4 -0
- package/docs/BookingsApi.md +120 -4
- package/docs/{GetBookingPlaceBookings200Response.md → GetAccountBookings200Response.md} +3 -3
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -724,6 +724,7 @@ docs/GetAPILogs200Response.md
|
|
|
724
724
|
docs/GetAcccountEmailReceipts200Response.md
|
|
725
725
|
docs/GetAccountActivities200Response.md
|
|
726
726
|
docs/GetAccountAddresses200Response.md
|
|
727
|
+
docs/GetAccountBookings200Response.md
|
|
727
728
|
docs/GetAccountEvents200Response.md
|
|
728
729
|
docs/GetAccountGroups200Response.md
|
|
729
730
|
docs/GetAccountInterests200Response.md
|
|
@@ -751,7 +752,6 @@ docs/GetBenefitClicks200Response.md
|
|
|
751
752
|
docs/GetBenefitTranslation200Response.md
|
|
752
753
|
docs/GetBenefitTranslations200Response.md
|
|
753
754
|
docs/GetBenefits200Response.md
|
|
754
|
-
docs/GetBookingPlaceBookings200Response.md
|
|
755
755
|
docs/GetBookingPlaceTranslation200Response.md
|
|
756
756
|
docs/GetBookingPlaceTranslations200Response.md
|
|
757
757
|
docs/GetBookingPlaces200Response.md
|
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ Class | Method | HTTP request | Description
|
|
|
57
57
|
*AccountsApi* | [**getAcccountEmailReceipts**](docs/AccountsApi.md#getacccountemailreceipts) | **GET** /accounts/{accountId}/email-receipts | Get Acccount Email Receipts
|
|
58
58
|
*AccountsApi* | [**getAccount**](docs/AccountsApi.md#getaccount) | **GET** /accounts/{accountId} | Get Account
|
|
59
59
|
*AccountsApi* | [**getAccountActivities**](docs/AccountsApi.md#getaccountactivities) | **GET** /accounts/{accountId}/activities | Get Account Activities
|
|
60
|
+
*AccountsApi* | [**getAccountBookings**](docs/AccountsApi.md#getaccountbookings) | **GET** /accounts/{accountId}/bookings | Get Account Bookings
|
|
60
61
|
*AccountsApi* | [**getAccountComments**](docs/AccountsApi.md#getaccountcomments) | **GET** /accounts/{accountId}/comments | Get Account Comments
|
|
61
62
|
*AccountsApi* | [**getAccountEvents**](docs/AccountsApi.md#getaccountevents) | **GET** /accounts/{accountId}/events | Get Account Events
|
|
62
63
|
*AccountsApi* | [**getAccountLikes**](docs/AccountsApi.md#getaccountlikes) | **GET** /accounts/{accountId}/likes | Get Account Likes
|
|
@@ -146,6 +147,7 @@ Class | Method | HTTP request | Description
|
|
|
146
147
|
*BenefitsTranslationsApi* | [**updateBenefitTranslation**](docs/BenefitsTranslationsApi.md#updatebenefittranslation) | **PUT** /benefits/{benefitId}/translations/{locale} | Update Benefit Translation
|
|
147
148
|
*BookingsApi* | [**addBookingSpaceTier**](docs/BookingsApi.md#addbookingspacetier) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId} | Add Booking Space Tier
|
|
148
149
|
*BookingsApi* | [**cancelBooking**](docs/BookingsApi.md#cancelbooking) | **PUT** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/cancel | Cancel Booking
|
|
150
|
+
*BookingsApi* | [**checkInBooking**](docs/BookingsApi.md#checkinbooking) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin | Check In Booking
|
|
149
151
|
*BookingsApi* | [**createBooking**](docs/BookingsApi.md#createbooking) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/bookings | Create Booking
|
|
150
152
|
*BookingsApi* | [**deleteBooking**](docs/BookingsApi.md#deletebooking) | **DELETE** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId} | Delete Booking
|
|
151
153
|
*BookingsApi* | [**getBooking**](docs/BookingsApi.md#getbooking) | **GET** /bookings/{bookingId} | Get Booking
|
|
@@ -169,6 +171,7 @@ Class | Method | HTTP request | Description
|
|
|
169
171
|
*BookingsApi* | [**getBookingSpaceTranslations**](docs/BookingsApi.md#getbookingspacetranslations) | **GET** /bookings/places/{placeId}/spaces/{spaceId}/translations | Get Booking Space Translations
|
|
170
172
|
*BookingsApi* | [**getBookingSpaces**](docs/BookingsApi.md#getbookingspaces) | **GET** /bookings/places/{placeId}/spaces | Get Booking Spaces
|
|
171
173
|
*BookingsApi* | [**removeBookingSpaceTier**](docs/BookingsApi.md#removebookingspacetier) | **DELETE** /bookings/places/{placeId}/spaces/{spaceId}/tiers/{tierId} | Remove Booking Space Tier
|
|
174
|
+
*BookingsApi* | [**undoCheckInBooking**](docs/BookingsApi.md#undocheckinbooking) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin/undo | Undo Check In Booking
|
|
172
175
|
*BookingsApi* | [**updateBooking**](docs/BookingsApi.md#updatebooking) | **PUT** /bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId} | Update Booking
|
|
173
176
|
*BookingsAvailabilitiesApi* | [**createBookingSpaceAvailability**](docs/BookingsAvailabilitiesApi.md#createbookingspaceavailability) | **POST** /bookings/places/{placeId}/spaces/{spaceId}/availabilities | Create Booking Space Availability
|
|
174
177
|
*BookingsAvailabilitiesApi* | [**deleteBookingSpaceAvailability**](docs/BookingsAvailabilitiesApi.md#deletebookingspaceavailability) | **DELETE** /bookings/places/{placeId}/spaces/{spaceId}/availabilities/{availabilityId} | Delete Booking Space Availability
|
|
@@ -1866,6 +1869,7 @@ Class | Method | HTTP request | Description
|
|
|
1866
1869
|
- [GetAcccountEmailReceipts200Response](docs/GetAcccountEmailReceipts200Response.md)
|
|
1867
1870
|
- [GetAccountActivities200Response](docs/GetAccountActivities200Response.md)
|
|
1868
1871
|
- [GetAccountAddresses200Response](docs/GetAccountAddresses200Response.md)
|
|
1872
|
+
- [GetAccountBookings200Response](docs/GetAccountBookings200Response.md)
|
|
1869
1873
|
- [GetAccountEvents200Response](docs/GetAccountEvents200Response.md)
|
|
1870
1874
|
- [GetAccountGroups200Response](docs/GetAccountGroups200Response.md)
|
|
1871
1875
|
- [GetAccountInterests200Response](docs/GetAccountInterests200Response.md)
|
|
@@ -1893,7 +1897,6 @@ Class | Method | HTTP request | Description
|
|
|
1893
1897
|
- [GetBenefitTranslation200Response](docs/GetBenefitTranslation200Response.md)
|
|
1894
1898
|
- [GetBenefitTranslations200Response](docs/GetBenefitTranslations200Response.md)
|
|
1895
1899
|
- [GetBenefits200Response](docs/GetBenefits200Response.md)
|
|
1896
|
-
- [GetBookingPlaceBookings200Response](docs/GetBookingPlaceBookings200Response.md)
|
|
1897
1900
|
- [GetBookingPlaceTranslation200Response](docs/GetBookingPlaceTranslation200Response.md)
|
|
1898
1901
|
- [GetBookingPlaceTranslations200Response](docs/GetBookingPlaceTranslations200Response.md)
|
|
1899
1902
|
- [GetBookingPlaces200Response](docs/GetBookingPlaces200Response.md)
|
package/api.ts
CHANGED
|
@@ -971,6 +971,7 @@ export interface BaseBooking {
|
|
|
971
971
|
'day': string;
|
|
972
972
|
'time': string;
|
|
973
973
|
'duration': number;
|
|
974
|
+
'checkedIn': string | null;
|
|
974
975
|
'status': PurchaseStatus;
|
|
975
976
|
'account': BaseAccount;
|
|
976
977
|
'space': BaseBookingSpace;
|
|
@@ -2711,6 +2712,7 @@ export interface Booking {
|
|
|
2711
2712
|
'day': string;
|
|
2712
2713
|
'time': string;
|
|
2713
2714
|
'duration': number;
|
|
2715
|
+
'checkedIn': string | null;
|
|
2714
2716
|
'status': PurchaseStatus;
|
|
2715
2717
|
'account': BaseAccount;
|
|
2716
2718
|
'space': BaseBookingSpace;
|
|
@@ -2718,6 +2720,7 @@ export interface Booking {
|
|
|
2718
2720
|
'createdAt': string;
|
|
2719
2721
|
'updatedAt': string;
|
|
2720
2722
|
'responses'?: Array<BaseBookingQuestionResponse>;
|
|
2723
|
+
'place'?: BaseBookingPlace;
|
|
2721
2724
|
}
|
|
2722
2725
|
|
|
2723
2726
|
|
|
@@ -6695,6 +6698,17 @@ export enum GetAccountAddresses200ResponseStatusEnum {
|
|
|
6695
6698
|
Ok = 'ok'
|
|
6696
6699
|
}
|
|
6697
6700
|
|
|
6701
|
+
export interface GetAccountBookings200Response {
|
|
6702
|
+
'status': GetAccountBookings200ResponseStatusEnum;
|
|
6703
|
+
'message': string;
|
|
6704
|
+
'data': Array<Booking>;
|
|
6705
|
+
'count'?: number;
|
|
6706
|
+
}
|
|
6707
|
+
|
|
6708
|
+
export enum GetAccountBookings200ResponseStatusEnum {
|
|
6709
|
+
Ok = 'ok'
|
|
6710
|
+
}
|
|
6711
|
+
|
|
6698
6712
|
export interface GetAccountEvents200Response {
|
|
6699
6713
|
'status': GetAccountEvents200ResponseStatusEnum;
|
|
6700
6714
|
'message': string;
|
|
@@ -6986,17 +7000,6 @@ export enum GetBenefits200ResponseStatusEnum {
|
|
|
6986
7000
|
Ok = 'ok'
|
|
6987
7001
|
}
|
|
6988
7002
|
|
|
6989
|
-
export interface GetBookingPlaceBookings200Response {
|
|
6990
|
-
'status': GetBookingPlaceBookings200ResponseStatusEnum;
|
|
6991
|
-
'message': string;
|
|
6992
|
-
'data': Array<Booking>;
|
|
6993
|
-
'count'?: number;
|
|
6994
|
-
}
|
|
6995
|
-
|
|
6996
|
-
export enum GetBookingPlaceBookings200ResponseStatusEnum {
|
|
6997
|
-
Ok = 'ok'
|
|
6998
|
-
}
|
|
6999
|
-
|
|
7000
7003
|
export interface GetBookingPlaceTranslation200Response {
|
|
7001
7004
|
'status': GetBookingPlaceTranslation200ResponseStatusEnum;
|
|
7002
7005
|
'message': string;
|
|
@@ -14483,6 +14486,66 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
14483
14486
|
options: localVarRequestOptions,
|
|
14484
14487
|
};
|
|
14485
14488
|
},
|
|
14489
|
+
/**
|
|
14490
|
+
* Get Account Bookings endpoint
|
|
14491
|
+
* @summary Get Account Bookings
|
|
14492
|
+
* @param {string} accountId The account identifier
|
|
14493
|
+
* @param {number} [page] Page number
|
|
14494
|
+
* @param {number} [pageSize] Number of items per page
|
|
14495
|
+
* @param {string} [orderBy] Field to order by
|
|
14496
|
+
* @param {string} [search] Search query
|
|
14497
|
+
* @param {*} [options] Override http request option.
|
|
14498
|
+
* @throws {RequiredError}
|
|
14499
|
+
*/
|
|
14500
|
+
getAccountBookings: async (accountId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14501
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
14502
|
+
assertParamExists('getAccountBookings', 'accountId', accountId)
|
|
14503
|
+
const localVarPath = `/accounts/{accountId}/bookings`
|
|
14504
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
14505
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14506
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14507
|
+
let baseOptions;
|
|
14508
|
+
if (configuration) {
|
|
14509
|
+
baseOptions = configuration.baseOptions;
|
|
14510
|
+
}
|
|
14511
|
+
|
|
14512
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14513
|
+
const localVarHeaderParameter = {} as any;
|
|
14514
|
+
const localVarQueryParameter = {} as any;
|
|
14515
|
+
|
|
14516
|
+
// authentication ApiKeyAuth required
|
|
14517
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
14518
|
+
|
|
14519
|
+
// authentication OrganizationId required
|
|
14520
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
14521
|
+
|
|
14522
|
+
if (page !== undefined) {
|
|
14523
|
+
localVarQueryParameter['page'] = page;
|
|
14524
|
+
}
|
|
14525
|
+
|
|
14526
|
+
if (pageSize !== undefined) {
|
|
14527
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
14528
|
+
}
|
|
14529
|
+
|
|
14530
|
+
if (orderBy !== undefined) {
|
|
14531
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
14532
|
+
}
|
|
14533
|
+
|
|
14534
|
+
if (search !== undefined) {
|
|
14535
|
+
localVarQueryParameter['search'] = search;
|
|
14536
|
+
}
|
|
14537
|
+
|
|
14538
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
14539
|
+
|
|
14540
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14541
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14542
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14543
|
+
|
|
14544
|
+
return {
|
|
14545
|
+
url: toPathString(localVarUrlObj),
|
|
14546
|
+
options: localVarRequestOptions,
|
|
14547
|
+
};
|
|
14548
|
+
},
|
|
14486
14549
|
/**
|
|
14487
14550
|
* Get Account Comments endpoint
|
|
14488
14551
|
* @summary Get Account Comments
|
|
@@ -15256,6 +15319,23 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
15256
15319
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountActivities']?.[localVarOperationServerIndex]?.url;
|
|
15257
15320
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15258
15321
|
},
|
|
15322
|
+
/**
|
|
15323
|
+
* Get Account Bookings endpoint
|
|
15324
|
+
* @summary Get Account Bookings
|
|
15325
|
+
* @param {string} accountId The account identifier
|
|
15326
|
+
* @param {number} [page] Page number
|
|
15327
|
+
* @param {number} [pageSize] Number of items per page
|
|
15328
|
+
* @param {string} [orderBy] Field to order by
|
|
15329
|
+
* @param {string} [search] Search query
|
|
15330
|
+
* @param {*} [options] Override http request option.
|
|
15331
|
+
* @throws {RequiredError}
|
|
15332
|
+
*/
|
|
15333
|
+
async getAccountBookings(accountId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountBookings200Response>> {
|
|
15334
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountBookings(accountId, page, pageSize, orderBy, search, options);
|
|
15335
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15336
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountBookings']?.[localVarOperationServerIndex]?.url;
|
|
15337
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15338
|
+
},
|
|
15259
15339
|
/**
|
|
15260
15340
|
* Get Account Comments endpoint
|
|
15261
15341
|
* @summary Get Account Comments
|
|
@@ -15525,6 +15605,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
15525
15605
|
getAccountActivities(requestParameters: AccountsApiGetAccountActivitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountActivities200Response> {
|
|
15526
15606
|
return localVarFp.getAccountActivities(requestParameters.accountId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
15527
15607
|
},
|
|
15608
|
+
/**
|
|
15609
|
+
* Get Account Bookings endpoint
|
|
15610
|
+
* @summary Get Account Bookings
|
|
15611
|
+
* @param {AccountsApiGetAccountBookingsRequest} requestParameters Request parameters.
|
|
15612
|
+
* @param {*} [options] Override http request option.
|
|
15613
|
+
* @throws {RequiredError}
|
|
15614
|
+
*/
|
|
15615
|
+
getAccountBookings(requestParameters: AccountsApiGetAccountBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountBookings200Response> {
|
|
15616
|
+
return localVarFp.getAccountBookings(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
15617
|
+
},
|
|
15528
15618
|
/**
|
|
15529
15619
|
* Get Account Comments endpoint
|
|
15530
15620
|
* @summary Get Account Comments
|
|
@@ -15764,6 +15854,36 @@ export interface AccountsApiGetAccountActivitiesRequest {
|
|
|
15764
15854
|
readonly search?: string
|
|
15765
15855
|
}
|
|
15766
15856
|
|
|
15857
|
+
/**
|
|
15858
|
+
* Request parameters for getAccountBookings operation in AccountsApi.
|
|
15859
|
+
*/
|
|
15860
|
+
export interface AccountsApiGetAccountBookingsRequest {
|
|
15861
|
+
/**
|
|
15862
|
+
* The account identifier
|
|
15863
|
+
*/
|
|
15864
|
+
readonly accountId: string
|
|
15865
|
+
|
|
15866
|
+
/**
|
|
15867
|
+
* Page number
|
|
15868
|
+
*/
|
|
15869
|
+
readonly page?: number
|
|
15870
|
+
|
|
15871
|
+
/**
|
|
15872
|
+
* Number of items per page
|
|
15873
|
+
*/
|
|
15874
|
+
readonly pageSize?: number
|
|
15875
|
+
|
|
15876
|
+
/**
|
|
15877
|
+
* Field to order by
|
|
15878
|
+
*/
|
|
15879
|
+
readonly orderBy?: string
|
|
15880
|
+
|
|
15881
|
+
/**
|
|
15882
|
+
* Search query
|
|
15883
|
+
*/
|
|
15884
|
+
readonly search?: string
|
|
15885
|
+
}
|
|
15886
|
+
|
|
15767
15887
|
/**
|
|
15768
15888
|
* Request parameters for getAccountComments operation in AccountsApi.
|
|
15769
15889
|
*/
|
|
@@ -16111,6 +16231,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
16111
16231
|
return AccountsApiFp(this.configuration).getAccountActivities(requestParameters.accountId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
16112
16232
|
}
|
|
16113
16233
|
|
|
16234
|
+
/**
|
|
16235
|
+
* Get Account Bookings endpoint
|
|
16236
|
+
* @summary Get Account Bookings
|
|
16237
|
+
* @param {AccountsApiGetAccountBookingsRequest} requestParameters Request parameters.
|
|
16238
|
+
* @param {*} [options] Override http request option.
|
|
16239
|
+
* @throws {RequiredError}
|
|
16240
|
+
*/
|
|
16241
|
+
public getAccountBookings(requestParameters: AccountsApiGetAccountBookingsRequest, options?: RawAxiosRequestConfig) {
|
|
16242
|
+
return AccountsApiFp(this.configuration).getAccountBookings(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
16243
|
+
}
|
|
16244
|
+
|
|
16114
16245
|
/**
|
|
16115
16246
|
* Get Account Comments endpoint
|
|
16116
16247
|
* @summary Get Account Comments
|
|
@@ -24692,6 +24823,54 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
24692
24823
|
options: localVarRequestOptions,
|
|
24693
24824
|
};
|
|
24694
24825
|
},
|
|
24826
|
+
/**
|
|
24827
|
+
* Check In Booking endpoint
|
|
24828
|
+
* @summary Check In Booking
|
|
24829
|
+
* @param {string} placeId The place identifier
|
|
24830
|
+
* @param {string} spaceId The space identifier
|
|
24831
|
+
* @param {string} bookingId The booking identifier
|
|
24832
|
+
* @param {*} [options] Override http request option.
|
|
24833
|
+
* @throws {RequiredError}
|
|
24834
|
+
*/
|
|
24835
|
+
checkInBooking: async (placeId: string, spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24836
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
24837
|
+
assertParamExists('checkInBooking', 'placeId', placeId)
|
|
24838
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
24839
|
+
assertParamExists('checkInBooking', 'spaceId', spaceId)
|
|
24840
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
24841
|
+
assertParamExists('checkInBooking', 'bookingId', bookingId)
|
|
24842
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin`
|
|
24843
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
24844
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
24845
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
24846
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24847
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24848
|
+
let baseOptions;
|
|
24849
|
+
if (configuration) {
|
|
24850
|
+
baseOptions = configuration.baseOptions;
|
|
24851
|
+
}
|
|
24852
|
+
|
|
24853
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
24854
|
+
const localVarHeaderParameter = {} as any;
|
|
24855
|
+
const localVarQueryParameter = {} as any;
|
|
24856
|
+
|
|
24857
|
+
// authentication ApiKeyAuth required
|
|
24858
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
24859
|
+
|
|
24860
|
+
// authentication OrganizationId required
|
|
24861
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
24862
|
+
|
|
24863
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
24864
|
+
|
|
24865
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24866
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24867
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24868
|
+
|
|
24869
|
+
return {
|
|
24870
|
+
url: toPathString(localVarUrlObj),
|
|
24871
|
+
options: localVarRequestOptions,
|
|
24872
|
+
};
|
|
24873
|
+
},
|
|
24695
24874
|
/**
|
|
24696
24875
|
* Create Booking endpoint
|
|
24697
24876
|
* @summary Create Booking
|
|
@@ -25935,6 +26114,54 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25935
26114
|
options: localVarRequestOptions,
|
|
25936
26115
|
};
|
|
25937
26116
|
},
|
|
26117
|
+
/**
|
|
26118
|
+
* Undo Check In Booking endpoint
|
|
26119
|
+
* @summary Undo Check In Booking
|
|
26120
|
+
* @param {string} placeId The place identifier
|
|
26121
|
+
* @param {string} spaceId The space identifier
|
|
26122
|
+
* @param {string} bookingId The booking identifier
|
|
26123
|
+
* @param {*} [options] Override http request option.
|
|
26124
|
+
* @throws {RequiredError}
|
|
26125
|
+
*/
|
|
26126
|
+
undoCheckInBooking: async (placeId: string, spaceId: string, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26127
|
+
// verify required parameter 'placeId' is not null or undefined
|
|
26128
|
+
assertParamExists('undoCheckInBooking', 'placeId', placeId)
|
|
26129
|
+
// verify required parameter 'spaceId' is not null or undefined
|
|
26130
|
+
assertParamExists('undoCheckInBooking', 'spaceId', spaceId)
|
|
26131
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
26132
|
+
assertParamExists('undoCheckInBooking', 'bookingId', bookingId)
|
|
26133
|
+
const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin/undo`
|
|
26134
|
+
.replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
|
|
26135
|
+
.replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
|
|
26136
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
26137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26138
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26139
|
+
let baseOptions;
|
|
26140
|
+
if (configuration) {
|
|
26141
|
+
baseOptions = configuration.baseOptions;
|
|
26142
|
+
}
|
|
26143
|
+
|
|
26144
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
26145
|
+
const localVarHeaderParameter = {} as any;
|
|
26146
|
+
const localVarQueryParameter = {} as any;
|
|
26147
|
+
|
|
26148
|
+
// authentication ApiKeyAuth required
|
|
26149
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
26150
|
+
|
|
26151
|
+
// authentication OrganizationId required
|
|
26152
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
26153
|
+
|
|
26154
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
26155
|
+
|
|
26156
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26158
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26159
|
+
|
|
26160
|
+
return {
|
|
26161
|
+
url: toPathString(localVarUrlObj),
|
|
26162
|
+
options: localVarRequestOptions,
|
|
26163
|
+
};
|
|
26164
|
+
},
|
|
25938
26165
|
/**
|
|
25939
26166
|
* Update Booking endpoint
|
|
25940
26167
|
* @summary Update Booking
|
|
@@ -26027,6 +26254,21 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26027
26254
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.cancelBooking']?.[localVarOperationServerIndex]?.url;
|
|
26028
26255
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26029
26256
|
},
|
|
26257
|
+
/**
|
|
26258
|
+
* Check In Booking endpoint
|
|
26259
|
+
* @summary Check In Booking
|
|
26260
|
+
* @param {string} placeId The place identifier
|
|
26261
|
+
* @param {string} spaceId The space identifier
|
|
26262
|
+
* @param {string} bookingId The booking identifier
|
|
26263
|
+
* @param {*} [options] Override http request option.
|
|
26264
|
+
* @throws {RequiredError}
|
|
26265
|
+
*/
|
|
26266
|
+
async checkInBooking(placeId: string, spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26267
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInBooking(placeId, spaceId, bookingId, options);
|
|
26268
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26269
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.checkInBooking']?.[localVarOperationServerIndex]?.url;
|
|
26270
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26271
|
+
},
|
|
26030
26272
|
/**
|
|
26031
26273
|
* Create Booking endpoint
|
|
26032
26274
|
* @summary Create Booking
|
|
@@ -26096,7 +26338,7 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26096
26338
|
* @param {*} [options] Override http request option.
|
|
26097
26339
|
* @throws {RequiredError}
|
|
26098
26340
|
*/
|
|
26099
|
-
async getBookingPlaceBookings(placeId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
26341
|
+
async getBookingPlaceBookings(placeId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountBookings200Response>> {
|
|
26100
26342
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPlaceBookings(placeId, past, status, page, pageSize, orderBy, search, options);
|
|
26101
26343
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26102
26344
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPlaceBookings']?.[localVarOperationServerIndex]?.url;
|
|
@@ -26270,7 +26512,7 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26270
26512
|
* @param {*} [options] Override http request option.
|
|
26271
26513
|
* @throws {RequiredError}
|
|
26272
26514
|
*/
|
|
26273
|
-
async getBookingSpaceBookings(placeId: string, spaceId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
26515
|
+
async getBookingSpaceBookings(placeId: string, spaceId: string, past?: boolean, status?: PurchaseStatus, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountBookings200Response>> {
|
|
26274
26516
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingSpaceBookings(placeId, spaceId, past, status, page, pageSize, orderBy, search, options);
|
|
26275
26517
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26276
26518
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingSpaceBookings']?.[localVarOperationServerIndex]?.url;
|
|
@@ -26394,6 +26636,21 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
26394
26636
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.removeBookingSpaceTier']?.[localVarOperationServerIndex]?.url;
|
|
26395
26637
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26396
26638
|
},
|
|
26639
|
+
/**
|
|
26640
|
+
* Undo Check In Booking endpoint
|
|
26641
|
+
* @summary Undo Check In Booking
|
|
26642
|
+
* @param {string} placeId The place identifier
|
|
26643
|
+
* @param {string} spaceId The space identifier
|
|
26644
|
+
* @param {string} bookingId The booking identifier
|
|
26645
|
+
* @param {*} [options] Override http request option.
|
|
26646
|
+
* @throws {RequiredError}
|
|
26647
|
+
*/
|
|
26648
|
+
async undoCheckInBooking(placeId: string, spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>> {
|
|
26649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.undoCheckInBooking(placeId, spaceId, bookingId, options);
|
|
26650
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26651
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.undoCheckInBooking']?.[localVarOperationServerIndex]?.url;
|
|
26652
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26653
|
+
},
|
|
26397
26654
|
/**
|
|
26398
26655
|
* Update Booking endpoint
|
|
26399
26656
|
* @summary Update Booking
|
|
@@ -26439,6 +26696,16 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
26439
26696
|
cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
26440
26697
|
return localVarFp.cancelBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
26441
26698
|
},
|
|
26699
|
+
/**
|
|
26700
|
+
* Check In Booking endpoint
|
|
26701
|
+
* @summary Check In Booking
|
|
26702
|
+
* @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
|
|
26703
|
+
* @param {*} [options] Override http request option.
|
|
26704
|
+
* @throws {RequiredError}
|
|
26705
|
+
*/
|
|
26706
|
+
checkInBooking(requestParameters: BookingsApiCheckInBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
26707
|
+
return localVarFp.checkInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
26708
|
+
},
|
|
26442
26709
|
/**
|
|
26443
26710
|
* Create Booking endpoint
|
|
26444
26711
|
* @summary Create Booking
|
|
@@ -26486,7 +26753,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
26486
26753
|
* @param {*} [options] Override http request option.
|
|
26487
26754
|
* @throws {RequiredError}
|
|
26488
26755
|
*/
|
|
26489
|
-
getBookingPlaceBookings(requestParameters: BookingsApiGetBookingPlaceBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
26756
|
+
getBookingPlaceBookings(requestParameters: BookingsApiGetBookingPlaceBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountBookings200Response> {
|
|
26490
26757
|
return localVarFp.getBookingPlaceBookings(requestParameters.placeId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
26491
26758
|
},
|
|
26492
26759
|
/**
|
|
@@ -26596,7 +26863,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
26596
26863
|
* @param {*} [options] Override http request option.
|
|
26597
26864
|
* @throws {RequiredError}
|
|
26598
26865
|
*/
|
|
26599
|
-
getBookingSpaceBookings(requestParameters: BookingsApiGetBookingSpaceBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
26866
|
+
getBookingSpaceBookings(requestParameters: BookingsApiGetBookingSpaceBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountBookings200Response> {
|
|
26600
26867
|
return localVarFp.getBookingSpaceBookings(requestParameters.placeId, requestParameters.spaceId, requestParameters.past, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
26601
26868
|
},
|
|
26602
26869
|
/**
|
|
@@ -26669,6 +26936,16 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
26669
26936
|
removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response> {
|
|
26670
26937
|
return localVarFp.removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
|
|
26671
26938
|
},
|
|
26939
|
+
/**
|
|
26940
|
+
* Undo Check In Booking endpoint
|
|
26941
|
+
* @summary Undo Check In Booking
|
|
26942
|
+
* @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
|
|
26943
|
+
* @param {*} [options] Override http request option.
|
|
26944
|
+
* @throws {RequiredError}
|
|
26945
|
+
*/
|
|
26946
|
+
undoCheckInBooking(requestParameters: BookingsApiUndoCheckInBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response> {
|
|
26947
|
+
return localVarFp.undoCheckInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
26948
|
+
},
|
|
26672
26949
|
/**
|
|
26673
26950
|
* Update Booking endpoint
|
|
26674
26951
|
* @summary Update Booking
|
|
@@ -26722,6 +26999,26 @@ export interface BookingsApiCancelBookingRequest {
|
|
|
26722
26999
|
readonly bookingId: string
|
|
26723
27000
|
}
|
|
26724
27001
|
|
|
27002
|
+
/**
|
|
27003
|
+
* Request parameters for checkInBooking operation in BookingsApi.
|
|
27004
|
+
*/
|
|
27005
|
+
export interface BookingsApiCheckInBookingRequest {
|
|
27006
|
+
/**
|
|
27007
|
+
* The place identifier
|
|
27008
|
+
*/
|
|
27009
|
+
readonly placeId: string
|
|
27010
|
+
|
|
27011
|
+
/**
|
|
27012
|
+
* The space identifier
|
|
27013
|
+
*/
|
|
27014
|
+
readonly spaceId: string
|
|
27015
|
+
|
|
27016
|
+
/**
|
|
27017
|
+
* The booking identifier
|
|
27018
|
+
*/
|
|
27019
|
+
readonly bookingId: string
|
|
27020
|
+
}
|
|
27021
|
+
|
|
26725
27022
|
/**
|
|
26726
27023
|
* Request parameters for createBooking operation in BookingsApi.
|
|
26727
27024
|
*/
|
|
@@ -27289,6 +27586,26 @@ export interface BookingsApiRemoveBookingSpaceTierRequest {
|
|
|
27289
27586
|
readonly tierId: string
|
|
27290
27587
|
}
|
|
27291
27588
|
|
|
27589
|
+
/**
|
|
27590
|
+
* Request parameters for undoCheckInBooking operation in BookingsApi.
|
|
27591
|
+
*/
|
|
27592
|
+
export interface BookingsApiUndoCheckInBookingRequest {
|
|
27593
|
+
/**
|
|
27594
|
+
* The place identifier
|
|
27595
|
+
*/
|
|
27596
|
+
readonly placeId: string
|
|
27597
|
+
|
|
27598
|
+
/**
|
|
27599
|
+
* The space identifier
|
|
27600
|
+
*/
|
|
27601
|
+
readonly spaceId: string
|
|
27602
|
+
|
|
27603
|
+
/**
|
|
27604
|
+
* The booking identifier
|
|
27605
|
+
*/
|
|
27606
|
+
readonly bookingId: string
|
|
27607
|
+
}
|
|
27608
|
+
|
|
27292
27609
|
/**
|
|
27293
27610
|
* Request parameters for updateBooking operation in BookingsApi.
|
|
27294
27611
|
*/
|
|
@@ -27337,6 +27654,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
27337
27654
|
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
27338
27655
|
}
|
|
27339
27656
|
|
|
27657
|
+
/**
|
|
27658
|
+
* Check In Booking endpoint
|
|
27659
|
+
* @summary Check In Booking
|
|
27660
|
+
* @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
|
|
27661
|
+
* @param {*} [options] Override http request option.
|
|
27662
|
+
* @throws {RequiredError}
|
|
27663
|
+
*/
|
|
27664
|
+
public checkInBooking(requestParameters: BookingsApiCheckInBookingRequest, options?: RawAxiosRequestConfig) {
|
|
27665
|
+
return BookingsApiFp(this.configuration).checkInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
27666
|
+
}
|
|
27667
|
+
|
|
27340
27668
|
/**
|
|
27341
27669
|
* Create Booking endpoint
|
|
27342
27670
|
* @summary Create Booking
|
|
@@ -27590,6 +27918,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
27590
27918
|
return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
|
|
27591
27919
|
}
|
|
27592
27920
|
|
|
27921
|
+
/**
|
|
27922
|
+
* Undo Check In Booking endpoint
|
|
27923
|
+
* @summary Undo Check In Booking
|
|
27924
|
+
* @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
|
|
27925
|
+
* @param {*} [options] Override http request option.
|
|
27926
|
+
* @throws {RequiredError}
|
|
27927
|
+
*/
|
|
27928
|
+
public undoCheckInBooking(requestParameters: BookingsApiUndoCheckInBookingRequest, options?: RawAxiosRequestConfig) {
|
|
27929
|
+
return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
27930
|
+
}
|
|
27931
|
+
|
|
27593
27932
|
/**
|
|
27594
27933
|
* Update Booking endpoint
|
|
27595
27934
|
* @summary Update Booking
|