@tennac-booking/sdk 1.0.128 → 1.0.130

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/esm/api.d.ts CHANGED
@@ -1795,6 +1795,37 @@ export interface ClientSubscriptionsResponse {
1795
1795
  */
1796
1796
  'subscriptions': Array<ClientSubscription>;
1797
1797
  }
1798
+ /**
1799
+ *
1800
+ * @export
1801
+ * @interface ClubAccessSettingsResponse
1802
+ */
1803
+ export interface ClubAccessSettingsResponse {
1804
+ /**
1805
+ *
1806
+ * @type {PublicAccessSettings}
1807
+ * @memberof ClubAccessSettingsResponse
1808
+ */
1809
+ 'publicAccess': PublicAccessSettings | null;
1810
+ /**
1811
+ *
1812
+ * @type {SchoolAccessSettings}
1813
+ * @memberof ClubAccessSettingsResponse
1814
+ */
1815
+ 'schoolAccess': SchoolAccessSettings | null;
1816
+ /**
1817
+ *
1818
+ * @type {HotelAccessSettings}
1819
+ * @memberof ClubAccessSettingsResponse
1820
+ */
1821
+ 'hotelAccess': HotelAccessSettings | null;
1822
+ /**
1823
+ *
1824
+ * @type {PaymentRequirementsSettings}
1825
+ * @memberof ClubAccessSettingsResponse
1826
+ */
1827
+ 'paymentRequirements': PaymentRequirementsSettings | null;
1828
+ }
1798
1829
  /**
1799
1830
  *
1800
1831
  * @export
@@ -5104,6 +5135,37 @@ export interface GoogleAuthResponseUser {
5104
5135
  */
5105
5136
  'id': string;
5106
5137
  }
5138
+ /**
5139
+ *
5140
+ * @export
5141
+ * @interface HotelAccessSettings
5142
+ */
5143
+ export interface HotelAccessSettings {
5144
+ /**
5145
+ *
5146
+ * @type {boolean}
5147
+ * @memberof HotelAccessSettings
5148
+ */
5149
+ 'enabled': boolean;
5150
+ /**
5151
+ *
5152
+ * @type {string}
5153
+ * @memberof HotelAccessSettings
5154
+ */
5155
+ 'accessCode'?: string | null;
5156
+ /**
5157
+ *
5158
+ * @type {string}
5159
+ * @memberof HotelAccessSettings
5160
+ */
5161
+ 'validFrom'?: string | null;
5162
+ /**
5163
+ *
5164
+ * @type {string}
5165
+ * @memberof HotelAccessSettings
5166
+ */
5167
+ 'validUntil'?: string | null;
5168
+ }
5107
5169
  /**
5108
5170
  *
5109
5171
  * @export
@@ -6327,6 +6389,112 @@ export interface PartialClubWeeklySchedule {
6327
6389
  */
6328
6390
  'sunday'?: ClubDaySchedule;
6329
6391
  }
6392
+ /**
6393
+ * Make all properties in T optional
6394
+ * @export
6395
+ * @interface PartialHotelAccessSettings
6396
+ */
6397
+ export interface PartialHotelAccessSettings {
6398
+ /**
6399
+ *
6400
+ * @type {string}
6401
+ * @memberof PartialHotelAccessSettings
6402
+ */
6403
+ 'accessCode'?: string;
6404
+ /**
6405
+ *
6406
+ * @type {string}
6407
+ * @memberof PartialHotelAccessSettings
6408
+ */
6409
+ 'validFrom'?: string;
6410
+ /**
6411
+ *
6412
+ * @type {string}
6413
+ * @memberof PartialHotelAccessSettings
6414
+ */
6415
+ 'validUntil'?: string;
6416
+ /**
6417
+ *
6418
+ * @type {boolean}
6419
+ * @memberof PartialHotelAccessSettings
6420
+ */
6421
+ 'enabled'?: boolean;
6422
+ }
6423
+ /**
6424
+ * Make all properties in T optional
6425
+ * @export
6426
+ * @interface PartialPaymentRequirementsSettings
6427
+ */
6428
+ export interface PartialPaymentRequirementsSettings {
6429
+ /**
6430
+ *
6431
+ * @type {boolean}
6432
+ * @memberof PartialPaymentRequirementsSettings
6433
+ */
6434
+ 'isNoShowEnabled'?: boolean;
6435
+ /**
6436
+ *
6437
+ * @type {boolean}
6438
+ * @memberof PartialPaymentRequirementsSettings
6439
+ */
6440
+ 'requireOnlinePayment'?: boolean;
6441
+ }
6442
+ /**
6443
+ * Make all properties in T optional
6444
+ * @export
6445
+ * @interface PartialPublicAccessSettings
6446
+ */
6447
+ export interface PartialPublicAccessSettings {
6448
+ /**
6449
+ *
6450
+ * @type {string}
6451
+ * @memberof PartialPublicAccessSettings
6452
+ */
6453
+ 'paymentMode'?: PartialPublicAccessSettingsPaymentModeEnum;
6454
+ /**
6455
+ *
6456
+ * @type {number}
6457
+ * @memberof PartialPublicAccessSettings
6458
+ */
6459
+ 'pricePerAccess'?: number;
6460
+ /**
6461
+ *
6462
+ * @type {boolean}
6463
+ * @memberof PartialPublicAccessSettings
6464
+ */
6465
+ 'enabled'?: boolean;
6466
+ }
6467
+ export declare const PartialPublicAccessSettingsPaymentModeEnum: {
6468
+ readonly Free: "free";
6469
+ readonly AccessFee: "access_fee";
6470
+ readonly PerCourt: "per_court";
6471
+ };
6472
+ export type PartialPublicAccessSettingsPaymentModeEnum = typeof PartialPublicAccessSettingsPaymentModeEnum[keyof typeof PartialPublicAccessSettingsPaymentModeEnum];
6473
+ /**
6474
+ * Make all properties in T optional
6475
+ * @export
6476
+ * @interface PartialSchoolAccessSettings
6477
+ */
6478
+ export interface PartialSchoolAccessSettings {
6479
+ /**
6480
+ *
6481
+ * @type {Array<string>}
6482
+ * @memberof PartialSchoolAccessSettings
6483
+ */
6484
+ 'emailSuffixes'?: Array<string>;
6485
+ /**
6486
+ *
6487
+ * @type {boolean}
6488
+ * @memberof PartialSchoolAccessSettings
6489
+ */
6490
+ 'requireCertification'?: boolean;
6491
+ /**
6492
+ *
6493
+ * @type {boolean}
6494
+ * @memberof PartialSchoolAccessSettings
6495
+ */
6496
+ 'enabled'?: boolean;
6497
+ }
6330
6498
  /**
6331
6499
  *
6332
6500
  * @export
@@ -6372,6 +6540,25 @@ export declare const PaymentMethod: {
6372
6540
  readonly Free: "free";
6373
6541
  };
6374
6542
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
6543
+ /**
6544
+ *
6545
+ * @export
6546
+ * @interface PaymentRequirementsSettings
6547
+ */
6548
+ export interface PaymentRequirementsSettings {
6549
+ /**
6550
+ *
6551
+ * @type {boolean}
6552
+ * @memberof PaymentRequirementsSettings
6553
+ */
6554
+ 'isNoShowEnabled': boolean;
6555
+ /**
6556
+ *
6557
+ * @type {boolean}
6558
+ * @memberof PaymentRequirementsSettings
6559
+ */
6560
+ 'requireOnlinePayment': boolean;
6561
+ }
6375
6562
  /**
6376
6563
  * From T, pick a set of properties whose keys are in the union K
6377
6564
  * @export
@@ -6864,6 +7051,37 @@ export interface ProfilePictureUpdateRequestBody {
6864
7051
  */
6865
7052
  'profilePicture': string;
6866
7053
  }
7054
+ /**
7055
+ *
7056
+ * @export
7057
+ * @interface PublicAccessSettings
7058
+ */
7059
+ export interface PublicAccessSettings {
7060
+ /**
7061
+ *
7062
+ * @type {boolean}
7063
+ * @memberof PublicAccessSettings
7064
+ */
7065
+ 'enabled': boolean;
7066
+ /**
7067
+ *
7068
+ * @type {string}
7069
+ * @memberof PublicAccessSettings
7070
+ */
7071
+ 'paymentMode': PublicAccessSettingsPaymentModeEnum;
7072
+ /**
7073
+ *
7074
+ * @type {number}
7075
+ * @memberof PublicAccessSettings
7076
+ */
7077
+ 'pricePerAccess': number | null;
7078
+ }
7079
+ export declare const PublicAccessSettingsPaymentModeEnum: {
7080
+ readonly Free: "free";
7081
+ readonly AccessFee: "access_fee";
7082
+ readonly PerCourt: "per_court";
7083
+ };
7084
+ export type PublicAccessSettingsPaymentModeEnum = typeof PublicAccessSettingsPaymentModeEnum[keyof typeof PublicAccessSettingsPaymentModeEnum];
6867
7085
  /**
6868
7086
  *
6869
7087
  * @export
@@ -7530,6 +7748,31 @@ export interface RevenueBySportItem {
7530
7748
  */
7531
7749
  'totalTurnover': number;
7532
7750
  }
7751
+ /**
7752
+ *
7753
+ * @export
7754
+ * @interface SchoolAccessSettings
7755
+ */
7756
+ export interface SchoolAccessSettings {
7757
+ /**
7758
+ *
7759
+ * @type {boolean}
7760
+ * @memberof SchoolAccessSettings
7761
+ */
7762
+ 'enabled': boolean;
7763
+ /**
7764
+ *
7765
+ * @type {Array<string>}
7766
+ * @memberof SchoolAccessSettings
7767
+ */
7768
+ 'emailSuffixes': Array<string>;
7769
+ /**
7770
+ *
7771
+ * @type {boolean}
7772
+ * @memberof SchoolAccessSettings
7773
+ */
7774
+ 'requireCertification': boolean;
7775
+ }
7533
7776
  /**
7534
7777
  *
7535
7778
  * @export
@@ -9847,6 +10090,37 @@ export interface UpdateActuality200Response {
9847
10090
  */
9848
10091
  'actuality': any;
9849
10092
  }
10093
+ /**
10094
+ *
10095
+ * @export
10096
+ * @interface UpdateClubAccessSettingsRequest
10097
+ */
10098
+ export interface UpdateClubAccessSettingsRequest {
10099
+ /**
10100
+ *
10101
+ * @type {PartialPublicAccessSettings}
10102
+ * @memberof UpdateClubAccessSettingsRequest
10103
+ */
10104
+ 'publicAccess'?: PartialPublicAccessSettings;
10105
+ /**
10106
+ *
10107
+ * @type {PartialSchoolAccessSettings}
10108
+ * @memberof UpdateClubAccessSettingsRequest
10109
+ */
10110
+ 'schoolAccess'?: PartialSchoolAccessSettings;
10111
+ /**
10112
+ *
10113
+ * @type {PartialHotelAccessSettings}
10114
+ * @memberof UpdateClubAccessSettingsRequest
10115
+ */
10116
+ 'hotelAccess'?: PartialHotelAccessSettings;
10117
+ /**
10118
+ *
10119
+ * @type {PartialPaymentRequirementsSettings}
10120
+ * @memberof UpdateClubAccessSettingsRequest
10121
+ */
10122
+ 'paymentRequirements'?: PartialPaymentRequirementsSettings;
10123
+ }
9850
10124
  /**
9851
10125
  *
9852
10126
  * @export
@@ -13201,6 +13475,13 @@ export declare class ClubRolesStaffApi extends BaseAPI {
13201
13475
  * @export
13202
13476
  */
13203
13477
  export declare const ClubSettingsManagerApiAxiosParamCreator: (configuration?: Configuration) => {
13478
+ /**
13479
+ *
13480
+ * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
13481
+ * @param {*} [options] Override http request option.
13482
+ * @throws {RequiredError}
13483
+ */
13484
+ updateAccessSettings: (updateClubAccessSettingsRequest: UpdateClubAccessSettingsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13204
13485
  /**
13205
13486
  *
13206
13487
  * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
@@ -13235,6 +13516,13 @@ export declare const ClubSettingsManagerApiAxiosParamCreator: (configuration?: C
13235
13516
  * @export
13236
13517
  */
13237
13518
  export declare const ClubSettingsManagerApiFp: (configuration?: Configuration) => {
13519
+ /**
13520
+ *
13521
+ * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
13522
+ * @param {*} [options] Override http request option.
13523
+ * @throws {RequiredError}
13524
+ */
13525
+ updateAccessSettings(updateClubAccessSettingsRequest: UpdateClubAccessSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubAccessSettingsResponse>>;
13238
13526
  /**
13239
13527
  *
13240
13528
  * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
@@ -13269,6 +13557,13 @@ export declare const ClubSettingsManagerApiFp: (configuration?: Configuration) =
13269
13557
  * @export
13270
13558
  */
13271
13559
  export declare const ClubSettingsManagerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13560
+ /**
13561
+ *
13562
+ * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
13563
+ * @param {*} [options] Override http request option.
13564
+ * @throws {RequiredError}
13565
+ */
13566
+ updateAccessSettings(requestParameters: ClubSettingsManagerApiUpdateAccessSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubAccessSettingsResponse>;
13272
13567
  /**
13273
13568
  *
13274
13569
  * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
@@ -13298,6 +13593,19 @@ export declare const ClubSettingsManagerApiFactory: (configuration?: Configurati
13298
13593
  */
13299
13594
  updateReservationSettings(requestParameters: ClubSettingsManagerApiUpdateReservationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubReservationSettingsResponse>;
13300
13595
  };
13596
+ /**
13597
+ * Request parameters for updateAccessSettings operation in ClubSettingsManagerApi.
13598
+ * @export
13599
+ * @interface ClubSettingsManagerApiUpdateAccessSettingsRequest
13600
+ */
13601
+ export interface ClubSettingsManagerApiUpdateAccessSettingsRequest {
13602
+ /**
13603
+ *
13604
+ * @type {UpdateClubAccessSettingsRequest}
13605
+ * @memberof ClubSettingsManagerApiUpdateAccessSettings
13606
+ */
13607
+ readonly updateClubAccessSettingsRequest: UpdateClubAccessSettingsRequest;
13608
+ }
13301
13609
  /**
13302
13610
  * Request parameters for updateClubGeneralSettings operation in ClubSettingsManagerApi.
13303
13611
  * @export
@@ -13357,6 +13665,14 @@ export interface ClubSettingsManagerApiUpdateReservationSettingsRequest {
13357
13665
  * @extends {BaseAPI}
13358
13666
  */
13359
13667
  export declare class ClubSettingsManagerApi extends BaseAPI {
13668
+ /**
13669
+ *
13670
+ * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
13671
+ * @param {*} [options] Override http request option.
13672
+ * @throws {RequiredError}
13673
+ * @memberof ClubSettingsManagerApi
13674
+ */
13675
+ updateAccessSettings(requestParameters: ClubSettingsManagerApiUpdateAccessSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubAccessSettingsResponse, any, {}>>;
13360
13676
  /**
13361
13677
  *
13362
13678
  * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
@@ -13395,6 +13711,12 @@ export declare class ClubSettingsManagerApi extends BaseAPI {
13395
13711
  * @export
13396
13712
  */
13397
13713
  export declare const ClubSettingsStaffApiAxiosParamCreator: (configuration?: Configuration) => {
13714
+ /**
13715
+ *
13716
+ * @param {*} [options] Override http request option.
13717
+ * @throws {RequiredError}
13718
+ */
13719
+ getAccessSettings: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13398
13720
  /**
13399
13721
  *
13400
13722
  * @param {*} [options] Override http request option.
@@ -13425,6 +13747,12 @@ export declare const ClubSettingsStaffApiAxiosParamCreator: (configuration?: Con
13425
13747
  * @export
13426
13748
  */
13427
13749
  export declare const ClubSettingsStaffApiFp: (configuration?: Configuration) => {
13750
+ /**
13751
+ *
13752
+ * @param {*} [options] Override http request option.
13753
+ * @throws {RequiredError}
13754
+ */
13755
+ getAccessSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubAccessSettingsResponse>>;
13428
13756
  /**
13429
13757
  *
13430
13758
  * @param {*} [options] Override http request option.
@@ -13455,6 +13783,12 @@ export declare const ClubSettingsStaffApiFp: (configuration?: Configuration) =>
13455
13783
  * @export
13456
13784
  */
13457
13785
  export declare const ClubSettingsStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13786
+ /**
13787
+ *
13788
+ * @param {*} [options] Override http request option.
13789
+ * @throws {RequiredError}
13790
+ */
13791
+ getAccessSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubAccessSettingsResponse>;
13458
13792
  /**
13459
13793
  *
13460
13794
  * @param {*} [options] Override http request option.
@@ -13487,6 +13821,13 @@ export declare const ClubSettingsStaffApiFactory: (configuration?: Configuration
13487
13821
  * @extends {BaseAPI}
13488
13822
  */
13489
13823
  export declare class ClubSettingsStaffApi extends BaseAPI {
13824
+ /**
13825
+ *
13826
+ * @param {*} [options] Override http request option.
13827
+ * @throws {RequiredError}
13828
+ * @memberof ClubSettingsStaffApi
13829
+ */
13830
+ getAccessSettings(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubAccessSettingsResponse, any, {}>>;
13490
13831
  /**
13491
13832
  *
13492
13833
  * @param {*} [options] Override http request option.
package/dist/esm/api.js CHANGED
@@ -177,6 +177,11 @@ export const InvoiceStatus = {
177
177
  Canceled: 'canceled',
178
178
  Expired: 'expired'
179
179
  };
180
+ export const PartialPublicAccessSettingsPaymentModeEnum = {
181
+ Free: 'free',
182
+ AccessFee: 'access_fee',
183
+ PerCourt: 'per_court'
184
+ };
180
185
  /**
181
186
  *
182
187
  * @export
@@ -212,6 +217,11 @@ export const PlayerCategoryId = {
212
217
  MostActive: 'most-active',
213
218
  Nearby: 'nearby'
214
219
  };
220
+ export const PublicAccessSettingsPaymentModeEnum = {
221
+ Free: 'free',
222
+ AccessFee: 'access_fee',
223
+ PerCourt: 'per_court'
224
+ };
215
225
  export const RegisterRequestBodyLocationTypeEnum = {
216
226
  Point: 'Point'
217
227
  };
@@ -3537,6 +3547,38 @@ export class ClubRolesStaffApi extends BaseAPI {
3537
3547
  */
3538
3548
  export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3539
3549
  return {
3550
+ /**
3551
+ *
3552
+ * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
3553
+ * @param {*} [options] Override http request option.
3554
+ * @throws {RequiredError}
3555
+ */
3556
+ updateAccessSettings: (updateClubAccessSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubAccessSettingsRequest_1, ...args_1], void 0, function* (updateClubAccessSettingsRequest, options = {}) {
3557
+ // verify required parameter 'updateClubAccessSettingsRequest' is not null or undefined
3558
+ assertParamExists('updateAccessSettings', 'updateClubAccessSettingsRequest', updateClubAccessSettingsRequest);
3559
+ const localVarPath = `/api/club-settings/access`;
3560
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3561
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3562
+ let baseOptions;
3563
+ if (configuration) {
3564
+ baseOptions = configuration.baseOptions;
3565
+ }
3566
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3567
+ const localVarHeaderParameter = {};
3568
+ const localVarQueryParameter = {};
3569
+ // authentication bearerAuth required
3570
+ // http bearer authentication required
3571
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3572
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3573
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3574
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3575
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3576
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubAccessSettingsRequest, localVarRequestOptions, configuration);
3577
+ return {
3578
+ url: toPathString(localVarUrlObj),
3579
+ options: localVarRequestOptions,
3580
+ };
3581
+ }),
3540
3582
  /**
3541
3583
  *
3542
3584
  * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
@@ -3674,6 +3716,21 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
3674
3716
  export const ClubSettingsManagerApiFp = function (configuration) {
3675
3717
  const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
3676
3718
  return {
3719
+ /**
3720
+ *
3721
+ * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
3722
+ * @param {*} [options] Override http request option.
3723
+ * @throws {RequiredError}
3724
+ */
3725
+ updateAccessSettings(updateClubAccessSettingsRequest, options) {
3726
+ return __awaiter(this, void 0, void 0, function* () {
3727
+ var _a, _b, _c;
3728
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAccessSettings(updateClubAccessSettingsRequest, options);
3729
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3730
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateAccessSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3731
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3732
+ });
3733
+ },
3677
3734
  /**
3678
3735
  *
3679
3736
  * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
@@ -3743,6 +3800,15 @@ export const ClubSettingsManagerApiFp = function (configuration) {
3743
3800
  export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
3744
3801
  const localVarFp = ClubSettingsManagerApiFp(configuration);
3745
3802
  return {
3803
+ /**
3804
+ *
3805
+ * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
3806
+ * @param {*} [options] Override http request option.
3807
+ * @throws {RequiredError}
3808
+ */
3809
+ updateAccessSettings(requestParameters, options) {
3810
+ return localVarFp.updateAccessSettings(requestParameters.updateClubAccessSettingsRequest, options).then((request) => request(axios, basePath));
3811
+ },
3746
3812
  /**
3747
3813
  *
3748
3814
  * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
@@ -3788,6 +3854,16 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
3788
3854
  * @extends {BaseAPI}
3789
3855
  */
3790
3856
  export class ClubSettingsManagerApi extends BaseAPI {
3857
+ /**
3858
+ *
3859
+ * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
3860
+ * @param {*} [options] Override http request option.
3861
+ * @throws {RequiredError}
3862
+ * @memberof ClubSettingsManagerApi
3863
+ */
3864
+ updateAccessSettings(requestParameters, options) {
3865
+ return ClubSettingsManagerApiFp(this.configuration).updateAccessSettings(requestParameters.updateClubAccessSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3866
+ }
3791
3867
  /**
3792
3868
  *
3793
3869
  * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
@@ -3835,6 +3911,33 @@ export class ClubSettingsManagerApi extends BaseAPI {
3835
3911
  */
3836
3912
  export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3837
3913
  return {
3914
+ /**
3915
+ *
3916
+ * @param {*} [options] Override http request option.
3917
+ * @throws {RequiredError}
3918
+ */
3919
+ getAccessSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3920
+ const localVarPath = `/api/club-settings/access`;
3921
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3922
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3923
+ let baseOptions;
3924
+ if (configuration) {
3925
+ baseOptions = configuration.baseOptions;
3926
+ }
3927
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3928
+ const localVarHeaderParameter = {};
3929
+ const localVarQueryParameter = {};
3930
+ // authentication bearerAuth required
3931
+ // http bearer authentication required
3932
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3933
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3934
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3935
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3936
+ return {
3937
+ url: toPathString(localVarUrlObj),
3938
+ options: localVarRequestOptions,
3939
+ };
3940
+ }),
3838
3941
  /**
3839
3942
  *
3840
3943
  * @param {*} [options] Override http request option.
@@ -3952,6 +4055,20 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3952
4055
  export const ClubSettingsStaffApiFp = function (configuration) {
3953
4056
  const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
3954
4057
  return {
4058
+ /**
4059
+ *
4060
+ * @param {*} [options] Override http request option.
4061
+ * @throws {RequiredError}
4062
+ */
4063
+ getAccessSettings(options) {
4064
+ return __awaiter(this, void 0, void 0, function* () {
4065
+ var _a, _b, _c;
4066
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccessSettings(options);
4067
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4068
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getAccessSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4069
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4070
+ });
4071
+ },
3955
4072
  /**
3956
4073
  *
3957
4074
  * @param {*} [options] Override http request option.
@@ -4017,6 +4134,14 @@ export const ClubSettingsStaffApiFp = function (configuration) {
4017
4134
  export const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
4018
4135
  const localVarFp = ClubSettingsStaffApiFp(configuration);
4019
4136
  return {
4137
+ /**
4138
+ *
4139
+ * @param {*} [options] Override http request option.
4140
+ * @throws {RequiredError}
4141
+ */
4142
+ getAccessSettings(options) {
4143
+ return localVarFp.getAccessSettings(options).then((request) => request(axios, basePath));
4144
+ },
4020
4145
  /**
4021
4146
  *
4022
4147
  * @param {*} [options] Override http request option.
@@ -4058,6 +4183,15 @@ export const ClubSettingsStaffApiFactory = function (configuration, basePath, ax
4058
4183
  * @extends {BaseAPI}
4059
4184
  */
4060
4185
  export class ClubSettingsStaffApi extends BaseAPI {
4186
+ /**
4187
+ *
4188
+ * @param {*} [options] Override http request option.
4189
+ * @throws {RequiredError}
4190
+ * @memberof ClubSettingsStaffApi
4191
+ */
4192
+ getAccessSettings(options) {
4193
+ return ClubSettingsStaffApiFp(this.configuration).getAccessSettings(options).then((request) => request(this.axios, this.basePath));
4194
+ }
4061
4195
  /**
4062
4196
  *
4063
4197
  * @param {*} [options] Override http request option.
@@ -0,0 +1,26 @@
1
+ # ClubAccessSettingsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **publicAccess** | [**PublicAccessSettings**](PublicAccessSettings.md) | | [default to undefined]
9
+ **schoolAccess** | [**SchoolAccessSettings**](SchoolAccessSettings.md) | | [default to undefined]
10
+ **hotelAccess** | [**HotelAccessSettings**](HotelAccessSettings.md) | | [default to undefined]
11
+ **paymentRequirements** | [**PaymentRequirementsSettings**](PaymentRequirementsSettings.md) | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ClubAccessSettingsResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: ClubAccessSettingsResponse = {
19
+ publicAccess,
20
+ schoolAccess,
21
+ hotelAccess,
22
+ paymentRequirements,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)