@connectedxm/admin-sdk 7.0.10 → 7.1.0

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