@connectedxm/admin-sdk 7.2.0 → 7.2.2

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/dist/api.js CHANGED
@@ -10875,6 +10875,48 @@ const BookingsApiAxiosParamCreator = function (configuration) {
10875
10875
  options: localVarRequestOptions,
10876
10876
  };
10877
10877
  }),
10878
+ /**
10879
+ * Check In Booking endpoint
10880
+ * @summary Check In Booking
10881
+ * @param {string} placeId The place identifier
10882
+ * @param {string} spaceId The space identifier
10883
+ * @param {string} bookingId The booking identifier
10884
+ * @param {*} [options] Override http request option.
10885
+ * @throws {RequiredError}
10886
+ */
10887
+ checkInBooking: (placeId_1, spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, bookingId_1, ...args_1], void 0, function* (placeId, spaceId, bookingId, options = {}) {
10888
+ // verify required parameter 'placeId' is not null or undefined
10889
+ (0, common_1.assertParamExists)('checkInBooking', 'placeId', placeId);
10890
+ // verify required parameter 'spaceId' is not null or undefined
10891
+ (0, common_1.assertParamExists)('checkInBooking', 'spaceId', spaceId);
10892
+ // verify required parameter 'bookingId' is not null or undefined
10893
+ (0, common_1.assertParamExists)('checkInBooking', 'bookingId', bookingId);
10894
+ const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin`
10895
+ .replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
10896
+ .replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
10897
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
10898
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10899
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10900
+ let baseOptions;
10901
+ if (configuration) {
10902
+ baseOptions = configuration.baseOptions;
10903
+ }
10904
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10905
+ const localVarHeaderParameter = {};
10906
+ const localVarQueryParameter = {};
10907
+ // authentication ApiKeyAuth required
10908
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
10909
+ // authentication OrganizationId required
10910
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
10911
+ localVarHeaderParameter['Accept'] = 'application/json';
10912
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10913
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10914
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10915
+ return {
10916
+ url: (0, common_1.toPathString)(localVarUrlObj),
10917
+ options: localVarRequestOptions,
10918
+ };
10919
+ }),
10878
10920
  /**
10879
10921
  * Create Booking endpoint
10880
10922
  * @summary Create Booking
@@ -11932,6 +11974,48 @@ const BookingsApiAxiosParamCreator = function (configuration) {
11932
11974
  options: localVarRequestOptions,
11933
11975
  };
11934
11976
  }),
11977
+ /**
11978
+ * Undo Check In Booking endpoint
11979
+ * @summary Undo Check In Booking
11980
+ * @param {string} placeId The place identifier
11981
+ * @param {string} spaceId The space identifier
11982
+ * @param {string} bookingId The booking identifier
11983
+ * @param {*} [options] Override http request option.
11984
+ * @throws {RequiredError}
11985
+ */
11986
+ undoCheckInBooking: (placeId_1, spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, bookingId_1, ...args_1], void 0, function* (placeId, spaceId, bookingId, options = {}) {
11987
+ // verify required parameter 'placeId' is not null or undefined
11988
+ (0, common_1.assertParamExists)('undoCheckInBooking', 'placeId', placeId);
11989
+ // verify required parameter 'spaceId' is not null or undefined
11990
+ (0, common_1.assertParamExists)('undoCheckInBooking', 'spaceId', spaceId);
11991
+ // verify required parameter 'bookingId' is not null or undefined
11992
+ (0, common_1.assertParamExists)('undoCheckInBooking', 'bookingId', bookingId);
11993
+ const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin/undo`
11994
+ .replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
11995
+ .replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
11996
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
11997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11998
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11999
+ let baseOptions;
12000
+ if (configuration) {
12001
+ baseOptions = configuration.baseOptions;
12002
+ }
12003
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12004
+ const localVarHeaderParameter = {};
12005
+ const localVarQueryParameter = {};
12006
+ // authentication ApiKeyAuth required
12007
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
12008
+ // authentication OrganizationId required
12009
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
12010
+ localVarHeaderParameter['Accept'] = 'application/json';
12011
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12012
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12013
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12014
+ return {
12015
+ url: (0, common_1.toPathString)(localVarUrlObj),
12016
+ options: localVarRequestOptions,
12017
+ };
12018
+ }),
11935
12019
  /**
11936
12020
  * Update Booking endpoint
11937
12021
  * @summary Update Booking
@@ -12024,6 +12108,24 @@ const BookingsApiFp = function (configuration) {
12024
12108
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12025
12109
  });
12026
12110
  },
12111
+ /**
12112
+ * Check In Booking endpoint
12113
+ * @summary Check In Booking
12114
+ * @param {string} placeId The place identifier
12115
+ * @param {string} spaceId The space identifier
12116
+ * @param {string} bookingId The booking identifier
12117
+ * @param {*} [options] Override http request option.
12118
+ * @throws {RequiredError}
12119
+ */
12120
+ checkInBooking(placeId, spaceId, bookingId, options) {
12121
+ return __awaiter(this, void 0, void 0, function* () {
12122
+ var _a, _b, _c;
12123
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInBooking(placeId, spaceId, bookingId, options);
12124
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12125
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.checkInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12126
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12127
+ });
12128
+ },
12027
12129
  /**
12028
12130
  * Create Booking endpoint
12029
12131
  * @summary Create Booking
@@ -12460,6 +12562,24 @@ const BookingsApiFp = function (configuration) {
12460
12562
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12461
12563
  });
12462
12564
  },
12565
+ /**
12566
+ * Undo Check In Booking endpoint
12567
+ * @summary Undo Check In Booking
12568
+ * @param {string} placeId The place identifier
12569
+ * @param {string} spaceId The space identifier
12570
+ * @param {string} bookingId The booking identifier
12571
+ * @param {*} [options] Override http request option.
12572
+ * @throws {RequiredError}
12573
+ */
12574
+ undoCheckInBooking(placeId, spaceId, bookingId, options) {
12575
+ return __awaiter(this, void 0, void 0, function* () {
12576
+ var _a, _b, _c;
12577
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.undoCheckInBooking(placeId, spaceId, bookingId, options);
12578
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12579
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.undoCheckInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12580
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12581
+ });
12582
+ },
12463
12583
  /**
12464
12584
  * Update Booking endpoint
12465
12585
  * @summary Update Booking
@@ -12508,6 +12628,16 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
12508
12628
  cancelBooking(requestParameters, options) {
12509
12629
  return localVarFp.cancelBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
12510
12630
  },
12631
+ /**
12632
+ * Check In Booking endpoint
12633
+ * @summary Check In Booking
12634
+ * @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
12635
+ * @param {*} [options] Override http request option.
12636
+ * @throws {RequiredError}
12637
+ */
12638
+ checkInBooking(requestParameters, options) {
12639
+ return localVarFp.checkInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
12640
+ },
12511
12641
  /**
12512
12642
  * Create Booking endpoint
12513
12643
  * @summary Create Booking
@@ -12738,6 +12868,16 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
12738
12868
  removeBookingSpaceTier(requestParameters, options) {
12739
12869
  return localVarFp.removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
12740
12870
  },
12871
+ /**
12872
+ * Undo Check In Booking endpoint
12873
+ * @summary Undo Check In Booking
12874
+ * @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
12875
+ * @param {*} [options] Override http request option.
12876
+ * @throws {RequiredError}
12877
+ */
12878
+ undoCheckInBooking(requestParameters, options) {
12879
+ return localVarFp.undoCheckInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
12880
+ },
12741
12881
  /**
12742
12882
  * Update Booking endpoint
12743
12883
  * @summary Update Booking
@@ -12775,6 +12915,16 @@ class BookingsApi extends base_1.BaseAPI {
12775
12915
  cancelBooking(requestParameters, options) {
12776
12916
  return (0, exports.BookingsApiFp)(this.configuration).cancelBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
12777
12917
  }
12918
+ /**
12919
+ * Check In Booking endpoint
12920
+ * @summary Check In Booking
12921
+ * @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
12922
+ * @param {*} [options] Override http request option.
12923
+ * @throws {RequiredError}
12924
+ */
12925
+ checkInBooking(requestParameters, options) {
12926
+ return (0, exports.BookingsApiFp)(this.configuration).checkInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
12927
+ }
12778
12928
  /**
12779
12929
  * Create Booking endpoint
12780
12930
  * @summary Create Booking
@@ -13005,6 +13155,16 @@ class BookingsApi extends base_1.BaseAPI {
13005
13155
  removeBookingSpaceTier(requestParameters, options) {
13006
13156
  return (0, exports.BookingsApiFp)(this.configuration).removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
13007
13157
  }
13158
+ /**
13159
+ * Undo Check In Booking endpoint
13160
+ * @summary Undo Check In Booking
13161
+ * @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
13162
+ * @param {*} [options] Override http request option.
13163
+ * @throws {RequiredError}
13164
+ */
13165
+ undoCheckInBooking(requestParameters, options) {
13166
+ return (0, exports.BookingsApiFp)(this.configuration).undoCheckInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
13167
+ }
13008
13168
  /**
13009
13169
  * Update Booking endpoint
13010
13170
  * @summary Update Booking
package/dist/esm/api.d.ts CHANGED
@@ -880,6 +880,7 @@ export interface BaseBooking {
880
880
  'day': string;
881
881
  'time': string;
882
882
  'duration': number;
883
+ 'checkedIn': string | null;
883
884
  'status': PurchaseStatus;
884
885
  'account': BaseAccount;
885
886
  'space': BaseBookingSpace;
@@ -2525,6 +2526,7 @@ export interface Booking {
2525
2526
  'day': string;
2526
2527
  'time': string;
2527
2528
  'duration': number;
2529
+ 'checkedIn': string | null;
2528
2530
  'status': PurchaseStatus;
2529
2531
  'account': BaseAccount;
2530
2532
  'space': BaseBookingSpace;
@@ -2634,6 +2636,9 @@ export interface BookingSpace {
2634
2636
  'confirmationReplyTo': string | null;
2635
2637
  'cancellationBody': string | null;
2636
2638
  'cancellationReplyTo': string | null;
2639
+ 'reminderBody': string | null;
2640
+ 'reminderReplyTo': string | null;
2641
+ 'reminderEnabled': boolean;
2637
2642
  'meetingId': string | null;
2638
2643
  'meeting': BaseMeeting | null;
2639
2644
  'joinBeforeTime': number | null;
@@ -2689,6 +2694,9 @@ export interface BookingSpaceCreateInputs {
2689
2694
  'confirmationReplyTo'?: string | null;
2690
2695
  'cancellationBody'?: string | null;
2691
2696
  'cancellationReplyTo'?: string | null;
2697
+ 'reminderBody'?: string | null;
2698
+ 'reminderReplyTo'?: string | null;
2699
+ 'reminderEnabled'?: boolean;
2692
2700
  'taxCode'?: string | null;
2693
2701
  'taxIncluded'?: boolean;
2694
2702
  'taxLocation'?: TaxLocationType;
@@ -2842,6 +2850,7 @@ export interface BookingSpaceTranslation {
2842
2850
  'description': string | null;
2843
2851
  'confirmationBody': string | null;
2844
2852
  'cancellationBody': string | null;
2853
+ 'reminderBody': string | null;
2845
2854
  'createdAt': string;
2846
2855
  'updatedAt': string;
2847
2856
  }
@@ -2850,6 +2859,7 @@ export interface BookingSpaceTranslationUpdateInputs {
2850
2859
  'description'?: string | null;
2851
2860
  'confirmationBody'?: string | null;
2852
2861
  'cancellationBody'?: string | null;
2862
+ 'reminderBody'?: string | null;
2853
2863
  }
2854
2864
  export interface BookingSpaceUpdateInputs {
2855
2865
  'name'?: string;
@@ -2865,6 +2875,9 @@ export interface BookingSpaceUpdateInputs {
2865
2875
  'confirmationReplyTo'?: string | null;
2866
2876
  'cancellationBody'?: string | null;
2867
2877
  'cancellationReplyTo'?: string | null;
2878
+ 'reminderBody'?: string | null;
2879
+ 'reminderReplyTo'?: string | null;
2880
+ 'reminderEnabled'?: boolean;
2868
2881
  'taxCode'?: string | null;
2869
2882
  'taxIncluded'?: boolean;
2870
2883
  'taxLocation'?: TaxLocationType;
@@ -9731,6 +9744,7 @@ export interface NotificationPreferences {
9731
9744
  'transferPush': boolean;
9732
9745
  'transferEmail': boolean;
9733
9746
  'eventReminderEmail': boolean;
9747
+ 'bookingReminderEmail': boolean;
9734
9748
  'chatPush': boolean;
9735
9749
  'chatUnreadEmail': boolean;
9736
9750
  'chatUnreadPush': boolean;
@@ -17868,6 +17882,16 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
17868
17882
  * @throws {RequiredError}
17869
17883
  */
17870
17884
  cancelBooking: (placeId: string, spaceId: string, bookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17885
+ /**
17886
+ * Check In Booking endpoint
17887
+ * @summary Check In Booking
17888
+ * @param {string} placeId The place identifier
17889
+ * @param {string} spaceId The space identifier
17890
+ * @param {string} bookingId The booking identifier
17891
+ * @param {*} [options] Override http request option.
17892
+ * @throws {RequiredError}
17893
+ */
17894
+ checkInBooking: (placeId: string, spaceId: string, bookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17871
17895
  /**
17872
17896
  * Create Booking endpoint
17873
17897
  * @summary Create Booking
@@ -18120,6 +18144,16 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
18120
18144
  * @throws {RequiredError}
18121
18145
  */
18122
18146
  removeBookingSpaceTier: (placeId: string, spaceId: string, tierId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18147
+ /**
18148
+ * Undo Check In Booking endpoint
18149
+ * @summary Undo Check In Booking
18150
+ * @param {string} placeId The place identifier
18151
+ * @param {string} spaceId The space identifier
18152
+ * @param {string} bookingId The booking identifier
18153
+ * @param {*} [options] Override http request option.
18154
+ * @throws {RequiredError}
18155
+ */
18156
+ undoCheckInBooking: (placeId: string, spaceId: string, bookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18123
18157
  /**
18124
18158
  * Update Booking endpoint
18125
18159
  * @summary Update Booking
@@ -18156,6 +18190,16 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
18156
18190
  * @throws {RequiredError}
18157
18191
  */
18158
18192
  cancelBooking(placeId: string, spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>>;
18193
+ /**
18194
+ * Check In Booking endpoint
18195
+ * @summary Check In Booking
18196
+ * @param {string} placeId The place identifier
18197
+ * @param {string} spaceId The space identifier
18198
+ * @param {string} bookingId The booking identifier
18199
+ * @param {*} [options] Override http request option.
18200
+ * @throws {RequiredError}
18201
+ */
18202
+ checkInBooking(placeId: string, spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>>;
18159
18203
  /**
18160
18204
  * Create Booking endpoint
18161
18205
  * @summary Create Booking
@@ -18408,6 +18452,16 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
18408
18452
  * @throws {RequiredError}
18409
18453
  */
18410
18454
  removeBookingSpaceTier(placeId: string, spaceId: string, tierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingSpace200Response>>;
18455
+ /**
18456
+ * Undo Check In Booking endpoint
18457
+ * @summary Undo Check In Booking
18458
+ * @param {string} placeId The place identifier
18459
+ * @param {string} spaceId The space identifier
18460
+ * @param {string} bookingId The booking identifier
18461
+ * @param {*} [options] Override http request option.
18462
+ * @throws {RequiredError}
18463
+ */
18464
+ undoCheckInBooking(placeId: string, spaceId: string, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBooking200Response>>;
18411
18465
  /**
18412
18466
  * Update Booking endpoint
18413
18467
  * @summary Update Booking
@@ -18440,6 +18494,14 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
18440
18494
  * @throws {RequiredError}
18441
18495
  */
18442
18496
  cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response>;
18497
+ /**
18498
+ * Check In Booking endpoint
18499
+ * @summary Check In Booking
18500
+ * @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
18501
+ * @param {*} [options] Override http request option.
18502
+ * @throws {RequiredError}
18503
+ */
18504
+ checkInBooking(requestParameters: BookingsApiCheckInBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response>;
18443
18505
  /**
18444
18506
  * Create Booking endpoint
18445
18507
  * @summary Create Booking
@@ -18624,6 +18686,14 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
18624
18686
  * @throws {RequiredError}
18625
18687
  */
18626
18688
  removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBookingSpace200Response>;
18689
+ /**
18690
+ * Undo Check In Booking endpoint
18691
+ * @summary Undo Check In Booking
18692
+ * @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
18693
+ * @param {*} [options] Override http request option.
18694
+ * @throws {RequiredError}
18695
+ */
18696
+ undoCheckInBooking(requestParameters: BookingsApiUndoCheckInBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateBooking200Response>;
18627
18697
  /**
18628
18698
  * Update Booking endpoint
18629
18699
  * @summary Update Booking
@@ -18667,6 +18737,23 @@ export interface BookingsApiCancelBookingRequest {
18667
18737
  */
18668
18738
  readonly bookingId: string;
18669
18739
  }
18740
+ /**
18741
+ * Request parameters for checkInBooking operation in BookingsApi.
18742
+ */
18743
+ export interface BookingsApiCheckInBookingRequest {
18744
+ /**
18745
+ * The place identifier
18746
+ */
18747
+ readonly placeId: string;
18748
+ /**
18749
+ * The space identifier
18750
+ */
18751
+ readonly spaceId: string;
18752
+ /**
18753
+ * The booking identifier
18754
+ */
18755
+ readonly bookingId: string;
18756
+ }
18670
18757
  /**
18671
18758
  * Request parameters for createBooking operation in BookingsApi.
18672
18759
  */
@@ -19143,6 +19230,23 @@ export interface BookingsApiRemoveBookingSpaceTierRequest {
19143
19230
  */
19144
19231
  readonly tierId: string;
19145
19232
  }
19233
+ /**
19234
+ * Request parameters for undoCheckInBooking operation in BookingsApi.
19235
+ */
19236
+ export interface BookingsApiUndoCheckInBookingRequest {
19237
+ /**
19238
+ * The place identifier
19239
+ */
19240
+ readonly placeId: string;
19241
+ /**
19242
+ * The space identifier
19243
+ */
19244
+ readonly spaceId: string;
19245
+ /**
19246
+ * The booking identifier
19247
+ */
19248
+ readonly bookingId: string;
19249
+ }
19146
19250
  /**
19147
19251
  * Request parameters for updateBooking operation in BookingsApi.
19148
19252
  */
@@ -19181,6 +19285,14 @@ export declare class BookingsApi extends BaseAPI {
19181
19285
  * @throws {RequiredError}
19182
19286
  */
19183
19287
  cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBooking200Response, any, {}>>;
19288
+ /**
19289
+ * Check In Booking endpoint
19290
+ * @summary Check In Booking
19291
+ * @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
19292
+ * @param {*} [options] Override http request option.
19293
+ * @throws {RequiredError}
19294
+ */
19295
+ checkInBooking(requestParameters: BookingsApiCheckInBookingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBooking200Response, any, {}>>;
19184
19296
  /**
19185
19297
  * Create Booking endpoint
19186
19298
  * @summary Create Booking
@@ -19365,6 +19477,14 @@ export declare class BookingsApi extends BaseAPI {
19365
19477
  * @throws {RequiredError}
19366
19478
  */
19367
19479
  removeBookingSpaceTier(requestParameters: BookingsApiRemoveBookingSpaceTierRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingSpace200Response, any, {}>>;
19480
+ /**
19481
+ * Undo Check In Booking endpoint
19482
+ * @summary Undo Check In Booking
19483
+ * @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
19484
+ * @param {*} [options] Override http request option.
19485
+ * @throws {RequiredError}
19486
+ */
19487
+ undoCheckInBooking(requestParameters: BookingsApiUndoCheckInBookingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBooking200Response, any, {}>>;
19368
19488
  /**
19369
19489
  * Update Booking endpoint
19370
19490
  * @summary Update Booking
package/dist/esm/api.js CHANGED
@@ -10770,6 +10770,48 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
10770
10770
  options: localVarRequestOptions,
10771
10771
  };
10772
10772
  }),
10773
+ /**
10774
+ * Check In Booking endpoint
10775
+ * @summary Check In Booking
10776
+ * @param {string} placeId The place identifier
10777
+ * @param {string} spaceId The space identifier
10778
+ * @param {string} bookingId The booking identifier
10779
+ * @param {*} [options] Override http request option.
10780
+ * @throws {RequiredError}
10781
+ */
10782
+ checkInBooking: (placeId_1, spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, bookingId_1, ...args_1], void 0, function* (placeId, spaceId, bookingId, options = {}) {
10783
+ // verify required parameter 'placeId' is not null or undefined
10784
+ assertParamExists('checkInBooking', 'placeId', placeId);
10785
+ // verify required parameter 'spaceId' is not null or undefined
10786
+ assertParamExists('checkInBooking', 'spaceId', spaceId);
10787
+ // verify required parameter 'bookingId' is not null or undefined
10788
+ assertParamExists('checkInBooking', 'bookingId', bookingId);
10789
+ const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin`
10790
+ .replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
10791
+ .replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
10792
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
10793
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10794
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10795
+ let baseOptions;
10796
+ if (configuration) {
10797
+ baseOptions = configuration.baseOptions;
10798
+ }
10799
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10800
+ const localVarHeaderParameter = {};
10801
+ const localVarQueryParameter = {};
10802
+ // authentication ApiKeyAuth required
10803
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
10804
+ // authentication OrganizationId required
10805
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
10806
+ localVarHeaderParameter['Accept'] = 'application/json';
10807
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10809
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10810
+ return {
10811
+ url: toPathString(localVarUrlObj),
10812
+ options: localVarRequestOptions,
10813
+ };
10814
+ }),
10773
10815
  /**
10774
10816
  * Create Booking endpoint
10775
10817
  * @summary Create Booking
@@ -11827,6 +11869,48 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
11827
11869
  options: localVarRequestOptions,
11828
11870
  };
11829
11871
  }),
11872
+ /**
11873
+ * Undo Check In Booking endpoint
11874
+ * @summary Undo Check In Booking
11875
+ * @param {string} placeId The place identifier
11876
+ * @param {string} spaceId The space identifier
11877
+ * @param {string} bookingId The booking identifier
11878
+ * @param {*} [options] Override http request option.
11879
+ * @throws {RequiredError}
11880
+ */
11881
+ undoCheckInBooking: (placeId_1, spaceId_1, bookingId_1, ...args_1) => __awaiter(this, [placeId_1, spaceId_1, bookingId_1, ...args_1], void 0, function* (placeId, spaceId, bookingId, options = {}) {
11882
+ // verify required parameter 'placeId' is not null or undefined
11883
+ assertParamExists('undoCheckInBooking', 'placeId', placeId);
11884
+ // verify required parameter 'spaceId' is not null or undefined
11885
+ assertParamExists('undoCheckInBooking', 'spaceId', spaceId);
11886
+ // verify required parameter 'bookingId' is not null or undefined
11887
+ assertParamExists('undoCheckInBooking', 'bookingId', bookingId);
11888
+ const localVarPath = `/bookings/places/{placeId}/spaces/{spaceId}/bookings/{bookingId}/checkin/undo`
11889
+ .replace(`{${"placeId"}}`, encodeURIComponent(String(placeId)))
11890
+ .replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId)))
11891
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
11892
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11893
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11894
+ let baseOptions;
11895
+ if (configuration) {
11896
+ baseOptions = configuration.baseOptions;
11897
+ }
11898
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11899
+ const localVarHeaderParameter = {};
11900
+ const localVarQueryParameter = {};
11901
+ // authentication ApiKeyAuth required
11902
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
11903
+ // authentication OrganizationId required
11904
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
11905
+ localVarHeaderParameter['Accept'] = 'application/json';
11906
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11907
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11908
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11909
+ return {
11910
+ url: toPathString(localVarUrlObj),
11911
+ options: localVarRequestOptions,
11912
+ };
11913
+ }),
11830
11914
  /**
11831
11915
  * Update Booking endpoint
11832
11916
  * @summary Update Booking
@@ -11918,6 +12002,24 @@ export const BookingsApiFp = function (configuration) {
11918
12002
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11919
12003
  });
11920
12004
  },
12005
+ /**
12006
+ * Check In Booking endpoint
12007
+ * @summary Check In Booking
12008
+ * @param {string} placeId The place identifier
12009
+ * @param {string} spaceId The space identifier
12010
+ * @param {string} bookingId The booking identifier
12011
+ * @param {*} [options] Override http request option.
12012
+ * @throws {RequiredError}
12013
+ */
12014
+ checkInBooking(placeId, spaceId, bookingId, options) {
12015
+ return __awaiter(this, void 0, void 0, function* () {
12016
+ var _a, _b, _c;
12017
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInBooking(placeId, spaceId, bookingId, options);
12018
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12019
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.checkInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12020
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12021
+ });
12022
+ },
11921
12023
  /**
11922
12024
  * Create Booking endpoint
11923
12025
  * @summary Create Booking
@@ -12354,6 +12456,24 @@ export const BookingsApiFp = function (configuration) {
12354
12456
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12355
12457
  });
12356
12458
  },
12459
+ /**
12460
+ * Undo Check In Booking endpoint
12461
+ * @summary Undo Check In Booking
12462
+ * @param {string} placeId The place identifier
12463
+ * @param {string} spaceId The space identifier
12464
+ * @param {string} bookingId The booking identifier
12465
+ * @param {*} [options] Override http request option.
12466
+ * @throws {RequiredError}
12467
+ */
12468
+ undoCheckInBooking(placeId, spaceId, bookingId, options) {
12469
+ return __awaiter(this, void 0, void 0, function* () {
12470
+ var _a, _b, _c;
12471
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.undoCheckInBooking(placeId, spaceId, bookingId, options);
12472
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12473
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.undoCheckInBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12474
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12475
+ });
12476
+ },
12357
12477
  /**
12358
12478
  * Update Booking endpoint
12359
12479
  * @summary Update Booking
@@ -12401,6 +12521,16 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
12401
12521
  cancelBooking(requestParameters, options) {
12402
12522
  return localVarFp.cancelBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
12403
12523
  },
12524
+ /**
12525
+ * Check In Booking endpoint
12526
+ * @summary Check In Booking
12527
+ * @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
12528
+ * @param {*} [options] Override http request option.
12529
+ * @throws {RequiredError}
12530
+ */
12531
+ checkInBooking(requestParameters, options) {
12532
+ return localVarFp.checkInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
12533
+ },
12404
12534
  /**
12405
12535
  * Create Booking endpoint
12406
12536
  * @summary Create Booking
@@ -12631,6 +12761,16 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
12631
12761
  removeBookingSpaceTier(requestParameters, options) {
12632
12762
  return localVarFp.removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(axios, basePath));
12633
12763
  },
12764
+ /**
12765
+ * Undo Check In Booking endpoint
12766
+ * @summary Undo Check In Booking
12767
+ * @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
12768
+ * @param {*} [options] Override http request option.
12769
+ * @throws {RequiredError}
12770
+ */
12771
+ undoCheckInBooking(requestParameters, options) {
12772
+ return localVarFp.undoCheckInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(axios, basePath));
12773
+ },
12634
12774
  /**
12635
12775
  * Update Booking endpoint
12636
12776
  * @summary Update Booking
@@ -12667,6 +12807,16 @@ export class BookingsApi extends BaseAPI {
12667
12807
  cancelBooking(requestParameters, options) {
12668
12808
  return BookingsApiFp(this.configuration).cancelBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
12669
12809
  }
12810
+ /**
12811
+ * Check In Booking endpoint
12812
+ * @summary Check In Booking
12813
+ * @param {BookingsApiCheckInBookingRequest} requestParameters Request parameters.
12814
+ * @param {*} [options] Override http request option.
12815
+ * @throws {RequiredError}
12816
+ */
12817
+ checkInBooking(requestParameters, options) {
12818
+ return BookingsApiFp(this.configuration).checkInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
12819
+ }
12670
12820
  /**
12671
12821
  * Create Booking endpoint
12672
12822
  * @summary Create Booking
@@ -12897,6 +13047,16 @@ export class BookingsApi extends BaseAPI {
12897
13047
  removeBookingSpaceTier(requestParameters, options) {
12898
13048
  return BookingsApiFp(this.configuration).removeBookingSpaceTier(requestParameters.placeId, requestParameters.spaceId, requestParameters.tierId, options).then((request) => request(this.axios, this.basePath));
12899
13049
  }
13050
+ /**
13051
+ * Undo Check In Booking endpoint
13052
+ * @summary Undo Check In Booking
13053
+ * @param {BookingsApiUndoCheckInBookingRequest} requestParameters Request parameters.
13054
+ * @param {*} [options] Override http request option.
13055
+ * @throws {RequiredError}
13056
+ */
13057
+ undoCheckInBooking(requestParameters, options) {
13058
+ return BookingsApiFp(this.configuration).undoCheckInBooking(requestParameters.placeId, requestParameters.spaceId, requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
13059
+ }
12900
13060
  /**
12901
13061
  * Update Booking endpoint
12902
13062
  * @summary Update Booking