@tennac-booking/sdk 1.0.139 → 1.0.141

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/api.ts CHANGED
@@ -1384,6 +1384,25 @@ export interface ChangePasswordResponse {
1384
1384
  */
1385
1385
  'message': string;
1386
1386
  }
1387
+ /**
1388
+ *
1389
+ * @export
1390
+ * @interface CharacteristicEntry
1391
+ */
1392
+ export interface CharacteristicEntry {
1393
+ /**
1394
+ *
1395
+ * @type {string}
1396
+ * @memberof CharacteristicEntry
1397
+ */
1398
+ 'value': string;
1399
+ /**
1400
+ *
1401
+ * @type {string}
1402
+ * @memberof CharacteristicEntry
1403
+ */
1404
+ 'key': string;
1405
+ }
1387
1406
  /**
1388
1407
  *
1389
1408
  * @export
@@ -1871,21 +1890,21 @@ export interface ClubAccessSettingsResponse {
1871
1890
  /**
1872
1891
  *
1873
1892
  * @export
1874
- * @interface ClubDaySchedule
1893
+ * @interface ClubDayInterval
1875
1894
  */
1876
- export interface ClubDaySchedule {
1895
+ export interface ClubDayInterval {
1877
1896
  /**
1878
1897
  *
1879
1898
  * @type {string}
1880
- * @memberof ClubDaySchedule
1899
+ * @memberof ClubDayInterval
1881
1900
  */
1882
- 'open': string;
1901
+ 'start': string;
1883
1902
  /**
1884
1903
  *
1885
1904
  * @type {string}
1886
- * @memberof ClubDaySchedule
1905
+ * @memberof ClubDayInterval
1887
1906
  */
1888
- 'close': string;
1907
+ 'end': string;
1889
1908
  }
1890
1909
  /**
1891
1910
  *
@@ -1993,10 +2012,10 @@ export interface ClubGeneralSettingsResponse {
1993
2012
  export interface ClubHoursSettingsResponse {
1994
2013
  /**
1995
2014
  *
1996
- * @type {ClubWeeklySchedule}
2015
+ * @type {RecordWeekdayKeyClubDaySchedule}
1997
2016
  * @memberof ClubHoursSettingsResponse
1998
2017
  */
1999
- 'schedule': ClubWeeklySchedule;
2018
+ 'schedule': RecordWeekdayKeyClubDaySchedule;
2000
2019
  /**
2001
2020
  *
2002
2021
  * @type {Array<ClubPricingPeriodResponse>}
@@ -2493,6 +2512,12 @@ export interface ClubPlayerDetailResponse {
2493
2512
  * @memberof ClubPlayerDetailResponse
2494
2513
  */
2495
2514
  'sportsLevels': Array<ClubPlayerDetailResponseSportsLevelsInner>;
2515
+ /**
2516
+ * Caractéristiques personnalisées
2517
+ * @type {Array<ClubPlayerDetailResponseCharacteristicsInner>}
2518
+ * @memberof ClubPlayerDetailResponse
2519
+ */
2520
+ 'characteristics': Array<ClubPlayerDetailResponseCharacteristicsInner>;
2496
2521
  /**
2497
2522
  * Date de naissance
2498
2523
  * @type {string}
@@ -2506,6 +2531,25 @@ export interface ClubPlayerDetailResponse {
2506
2531
  */
2507
2532
  'credits': number | null;
2508
2533
  }
2534
+ /**
2535
+ *
2536
+ * @export
2537
+ * @interface ClubPlayerDetailResponseCharacteristicsInner
2538
+ */
2539
+ export interface ClubPlayerDetailResponseCharacteristicsInner {
2540
+ /**
2541
+ *
2542
+ * @type {string}
2543
+ * @memberof ClubPlayerDetailResponseCharacteristicsInner
2544
+ */
2545
+ 'value': string | null;
2546
+ /**
2547
+ *
2548
+ * @type {string}
2549
+ * @memberof ClubPlayerDetailResponseCharacteristicsInner
2550
+ */
2551
+ 'key': string | null;
2552
+ }
2509
2553
  /**
2510
2554
  *
2511
2555
  * @export
@@ -3329,55 +3373,6 @@ export interface ClubUserCountResponse {
3329
3373
  */
3330
3374
  'count': number;
3331
3375
  }
3332
- /**
3333
- *
3334
- * @export
3335
- * @interface ClubWeeklySchedule
3336
- */
3337
- export interface ClubWeeklySchedule {
3338
- /**
3339
- *
3340
- * @type {ClubDaySchedule}
3341
- * @memberof ClubWeeklySchedule
3342
- */
3343
- 'sunday': ClubDaySchedule | null;
3344
- /**
3345
- *
3346
- * @type {ClubDaySchedule}
3347
- * @memberof ClubWeeklySchedule
3348
- */
3349
- 'saturday': ClubDaySchedule | null;
3350
- /**
3351
- *
3352
- * @type {ClubDaySchedule}
3353
- * @memberof ClubWeeklySchedule
3354
- */
3355
- 'friday': ClubDaySchedule | null;
3356
- /**
3357
- *
3358
- * @type {ClubDaySchedule}
3359
- * @memberof ClubWeeklySchedule
3360
- */
3361
- 'thursday': ClubDaySchedule | null;
3362
- /**
3363
- *
3364
- * @type {ClubDaySchedule}
3365
- * @memberof ClubWeeklySchedule
3366
- */
3367
- 'wednesday': ClubDaySchedule | null;
3368
- /**
3369
- *
3370
- * @type {ClubDaySchedule}
3371
- * @memberof ClubWeeklySchedule
3372
- */
3373
- 'tuesday': ClubDaySchedule | null;
3374
- /**
3375
- *
3376
- * @type {ClubDaySchedule}
3377
- * @memberof ClubWeeklySchedule
3378
- */
3379
- 'monday': ClubDaySchedule | null;
3380
- }
3381
3376
  /**
3382
3377
  *
3383
3378
  * @export
@@ -4362,6 +4357,27 @@ export const DiscountType = {
4362
4357
  export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
4363
4358
 
4364
4359
 
4360
+ /**
4361
+ *
4362
+ * @export
4363
+ * @interface DuplicateClubDayScheduleRequest
4364
+ */
4365
+ export interface DuplicateClubDayScheduleRequest {
4366
+ /**
4367
+ *
4368
+ * @type {WeekdayKey}
4369
+ * @memberof DuplicateClubDayScheduleRequest
4370
+ */
4371
+ 'fromDay': WeekdayKey;
4372
+ /**
4373
+ *
4374
+ * @type {WeekdayKey}
4375
+ * @memberof DuplicateClubDayScheduleRequest
4376
+ */
4377
+ 'toDay': WeekdayKey;
4378
+ }
4379
+
4380
+
4365
4381
  /**
4366
4382
  *
4367
4383
  * @export
@@ -5540,6 +5556,25 @@ export interface HotelAccessSettings {
5540
5556
  */
5541
5557
  'validUntil'?: string | null;
5542
5558
  }
5559
+ /**
5560
+ *
5561
+ * @export
5562
+ * @interface ICharacteristic
5563
+ */
5564
+ export interface ICharacteristic {
5565
+ /**
5566
+ *
5567
+ * @type {string}
5568
+ * @memberof ICharacteristic
5569
+ */
5570
+ 'key': string;
5571
+ /**
5572
+ *
5573
+ * @type {string}
5574
+ * @memberof ICharacteristic
5575
+ */
5576
+ 'value': string;
5577
+ }
5543
5578
  /**
5544
5579
  *
5545
5580
  * @export
@@ -5706,6 +5741,12 @@ export interface IUserAttributes {
5706
5741
  * @memberof IUserAttributes
5707
5742
  */
5708
5743
  'levelBySports'?: Array<ILevelBySports>;
5744
+ /**
5745
+ *
5746
+ * @type {Array<ICharacteristic>}
5747
+ * @memberof IUserAttributes
5748
+ */
5749
+ 'characteristics'?: Array<ICharacteristic>;
5709
5750
  /**
5710
5751
  *
5711
5752
  * @type {string}
@@ -6753,55 +6794,6 @@ export interface PartialClubActiveResponseLocation {
6753
6794
  */
6754
6795
  'address'?: string;
6755
6796
  }
6756
- /**
6757
- * Make all properties in T optional
6758
- * @export
6759
- * @interface PartialClubWeeklySchedule
6760
- */
6761
- export interface PartialClubWeeklySchedule {
6762
- /**
6763
- *
6764
- * @type {ClubDaySchedule}
6765
- * @memberof PartialClubWeeklySchedule
6766
- */
6767
- 'monday'?: ClubDaySchedule;
6768
- /**
6769
- *
6770
- * @type {ClubDaySchedule}
6771
- * @memberof PartialClubWeeklySchedule
6772
- */
6773
- 'tuesday'?: ClubDaySchedule;
6774
- /**
6775
- *
6776
- * @type {ClubDaySchedule}
6777
- * @memberof PartialClubWeeklySchedule
6778
- */
6779
- 'wednesday'?: ClubDaySchedule;
6780
- /**
6781
- *
6782
- * @type {ClubDaySchedule}
6783
- * @memberof PartialClubWeeklySchedule
6784
- */
6785
- 'thursday'?: ClubDaySchedule;
6786
- /**
6787
- *
6788
- * @type {ClubDaySchedule}
6789
- * @memberof PartialClubWeeklySchedule
6790
- */
6791
- 'friday'?: ClubDaySchedule;
6792
- /**
6793
- *
6794
- * @type {ClubDaySchedule}
6795
- * @memberof PartialClubWeeklySchedule
6796
- */
6797
- 'saturday'?: ClubDaySchedule;
6798
- /**
6799
- *
6800
- * @type {ClubDaySchedule}
6801
- * @memberof PartialClubWeeklySchedule
6802
- */
6803
- 'sunday'?: ClubDaySchedule;
6804
- }
6805
6797
  /**
6806
6798
  * Make all properties in T optional
6807
6799
  * @export
@@ -6886,6 +6878,55 @@ export const PartialPublicAccessSettingsPaymentModeEnum = {
6886
6878
 
6887
6879
  export type PartialPublicAccessSettingsPaymentModeEnum = typeof PartialPublicAccessSettingsPaymentModeEnum[keyof typeof PartialPublicAccessSettingsPaymentModeEnum];
6888
6880
 
6881
+ /**
6882
+ * Make all properties in T optional
6883
+ * @export
6884
+ * @interface PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
6885
+ */
6886
+ export interface PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined {
6887
+ /**
6888
+ *
6889
+ * @type {Array<ClubDayInterval>}
6890
+ * @memberof PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
6891
+ */
6892
+ 'monday'?: Array<ClubDayInterval>;
6893
+ /**
6894
+ *
6895
+ * @type {Array<ClubDayInterval>}
6896
+ * @memberof PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
6897
+ */
6898
+ 'tuesday'?: Array<ClubDayInterval>;
6899
+ /**
6900
+ *
6901
+ * @type {Array<ClubDayInterval>}
6902
+ * @memberof PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
6903
+ */
6904
+ 'wednesday'?: Array<ClubDayInterval>;
6905
+ /**
6906
+ *
6907
+ * @type {Array<ClubDayInterval>}
6908
+ * @memberof PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
6909
+ */
6910
+ 'thursday'?: Array<ClubDayInterval>;
6911
+ /**
6912
+ *
6913
+ * @type {Array<ClubDayInterval>}
6914
+ * @memberof PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
6915
+ */
6916
+ 'friday'?: Array<ClubDayInterval>;
6917
+ /**
6918
+ *
6919
+ * @type {Array<ClubDayInterval>}
6920
+ * @memberof PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
6921
+ */
6922
+ 'saturday'?: Array<ClubDayInterval>;
6923
+ /**
6924
+ *
6925
+ * @type {Array<ClubDayInterval>}
6926
+ * @memberof PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
6927
+ */
6928
+ 'sunday'?: Array<ClubDayInterval>;
6929
+ }
6889
6930
  /**
6890
6931
  * Make all properties in T optional
6891
6932
  * @export
@@ -7421,6 +7462,12 @@ export interface PlayerSummary {
7421
7462
  * @memberof PlayerSummary
7422
7463
  */
7423
7464
  'levelBySports'?: Array<LevelBySportEntry>;
7465
+ /**
7466
+ *
7467
+ * @type {Array<CharacteristicEntry>}
7468
+ * @memberof PlayerSummary
7469
+ */
7470
+ 'characteristics'?: Array<CharacteristicEntry>;
7424
7471
  /**
7425
7472
  *
7426
7473
  * @type {UserLocationSummary}
@@ -7658,6 +7705,12 @@ export interface PublicUserProfileResponse {
7658
7705
  * @memberof PublicUserProfileResponse
7659
7706
  */
7660
7707
  'levelBySports'?: Array<LevelBySportEntry>;
7708
+ /**
7709
+ *
7710
+ * @type {Array<CharacteristicEntry>}
7711
+ * @memberof PublicUserProfileResponse
7712
+ */
7713
+ 'characteristics'?: Array<CharacteristicEntry>;
7661
7714
  /**
7662
7715
  *
7663
7716
  * @type {string}
@@ -7917,6 +7970,55 @@ export interface QuickReservationSlotSummary {
7917
7970
  */
7918
7971
  'sportKey'?: string;
7919
7972
  }
7973
+ /**
7974
+ * Construct a type with a set of properties K of type T
7975
+ * @export
7976
+ * @interface RecordWeekdayKeyClubDaySchedule
7977
+ */
7978
+ export interface RecordWeekdayKeyClubDaySchedule {
7979
+ /**
7980
+ *
7981
+ * @type {Array<ClubDayInterval>}
7982
+ * @memberof RecordWeekdayKeyClubDaySchedule
7983
+ */
7984
+ 'monday': Array<ClubDayInterval>;
7985
+ /**
7986
+ *
7987
+ * @type {Array<ClubDayInterval>}
7988
+ * @memberof RecordWeekdayKeyClubDaySchedule
7989
+ */
7990
+ 'tuesday': Array<ClubDayInterval>;
7991
+ /**
7992
+ *
7993
+ * @type {Array<ClubDayInterval>}
7994
+ * @memberof RecordWeekdayKeyClubDaySchedule
7995
+ */
7996
+ 'wednesday': Array<ClubDayInterval>;
7997
+ /**
7998
+ *
7999
+ * @type {Array<ClubDayInterval>}
8000
+ * @memberof RecordWeekdayKeyClubDaySchedule
8001
+ */
8002
+ 'thursday': Array<ClubDayInterval>;
8003
+ /**
8004
+ *
8005
+ * @type {Array<ClubDayInterval>}
8006
+ * @memberof RecordWeekdayKeyClubDaySchedule
8007
+ */
8008
+ 'friday': Array<ClubDayInterval>;
8009
+ /**
8010
+ *
8011
+ * @type {Array<ClubDayInterval>}
8012
+ * @memberof RecordWeekdayKeyClubDaySchedule
8013
+ */
8014
+ 'saturday': Array<ClubDayInterval>;
8015
+ /**
8016
+ *
8017
+ * @type {Array<ClubDayInterval>}
8018
+ * @memberof RecordWeekdayKeyClubDaySchedule
8019
+ */
8020
+ 'sunday': Array<ClubDayInterval>;
8021
+ }
7920
8022
  /**
7921
8023
  *
7922
8024
  * @export
@@ -9034,6 +9136,12 @@ export interface StaffUserProfileResponse {
9034
9136
  * @memberof StaffUserProfileResponse
9035
9137
  */
9036
9138
  'levelBySports'?: Array<ILevelBySports>;
9139
+ /**
9140
+ *
9141
+ * @type {Array<ICharacteristic>}
9142
+ * @memberof StaffUserProfileResponse
9143
+ */
9144
+ 'characteristics'?: Array<ICharacteristic>;
9037
9145
  /**
9038
9146
  *
9039
9147
  * @type {string}
@@ -9553,6 +9661,19 @@ export interface UpdateClubAccessSettingsRequest {
9553
9661
  */
9554
9662
  'paymentRequirements'?: PartialPaymentRequirementsSettings;
9555
9663
  }
9664
+ /**
9665
+ *
9666
+ * @export
9667
+ * @interface UpdateClubDayScheduleRequest
9668
+ */
9669
+ export interface UpdateClubDayScheduleRequest {
9670
+ /**
9671
+ *
9672
+ * @type {Array<ClubDayInterval>}
9673
+ * @memberof UpdateClubDayScheduleRequest
9674
+ */
9675
+ 'intervals': Array<ClubDayInterval>;
9676
+ }
9556
9677
  /**
9557
9678
  *
9558
9679
  * @export
@@ -9643,10 +9764,10 @@ export interface UpdateClubGeneralSettingsRequestLogo {
9643
9764
  export interface UpdateClubHoursSettingsRequest {
9644
9765
  /**
9645
9766
  *
9646
- * @type {PartialClubWeeklySchedule}
9767
+ * @type {PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined}
9647
9768
  * @memberof UpdateClubHoursSettingsRequest
9648
9769
  */
9649
- 'schedule'?: PartialClubWeeklySchedule;
9770
+ 'schedule'?: PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined;
9650
9771
  /**
9651
9772
  *
9652
9773
  * @type {Array<ClubPricingPeriodResponse>}
@@ -10429,6 +10550,12 @@ export interface UpdateUserRequestBody {
10429
10550
  * @memberof UpdateUserRequestBody
10430
10551
  */
10431
10552
  'levelBySports'?: Array<UpdateUserRequestBodyLevelBySportsInner>;
10553
+ /**
10554
+ *
10555
+ * @type {Array<UpdateUserRequestBodyCharacteristicsInner>}
10556
+ * @memberof UpdateUserRequestBody
10557
+ */
10558
+ 'characteristics'?: Array<UpdateUserRequestBodyCharacteristicsInner>;
10432
10559
  /**
10433
10560
  *
10434
10561
  * @type {boolean}
@@ -10448,6 +10575,25 @@ export interface UpdateUserRequestBody {
10448
10575
  */
10449
10576
  'location'?: RegisterRequestBodyLocation;
10450
10577
  }
10578
+ /**
10579
+ *
10580
+ * @export
10581
+ * @interface UpdateUserRequestBodyCharacteristicsInner
10582
+ */
10583
+ export interface UpdateUserRequestBodyCharacteristicsInner {
10584
+ /**
10585
+ *
10586
+ * @type {string}
10587
+ * @memberof UpdateUserRequestBodyCharacteristicsInner
10588
+ */
10589
+ 'value': string;
10590
+ /**
10591
+ *
10592
+ * @type {string}
10593
+ * @memberof UpdateUserRequestBodyCharacteristicsInner
10594
+ */
10595
+ 'key': string;
10596
+ }
10451
10597
  /**
10452
10598
  *
10453
10599
  * @export
@@ -11015,6 +11161,12 @@ export interface UserProfileResponse {
11015
11161
  * @memberof UserProfileResponse
11016
11162
  */
11017
11163
  'levelBySports'?: Array<ILevelBySports>;
11164
+ /**
11165
+ *
11166
+ * @type {Array<ICharacteristic>}
11167
+ * @memberof UserProfileResponse
11168
+ */
11169
+ 'characteristics'?: Array<ICharacteristic>;
11018
11170
  /**
11019
11171
  *
11020
11172
  * @type {string}
@@ -11234,6 +11386,25 @@ export const VisibilityType = {
11234
11386
  export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
11235
11387
 
11236
11388
 
11389
+ /**
11390
+ *
11391
+ * @export
11392
+ * @enum {string}
11393
+ */
11394
+
11395
+ export const WeekdayKey = {
11396
+ Monday: 'monday',
11397
+ Tuesday: 'tuesday',
11398
+ Wednesday: 'wednesday',
11399
+ Thursday: 'thursday',
11400
+ Friday: 'friday',
11401
+ Saturday: 'saturday',
11402
+ Sunday: 'sunday'
11403
+ } as const;
11404
+
11405
+ export type WeekdayKey = typeof WeekdayKey[keyof typeof WeekdayKey];
11406
+
11407
+
11237
11408
  /**
11238
11409
  *
11239
11410
  * @export
@@ -15253,6 +15424,45 @@ export class ClubRolesStaffApi extends BaseAPI {
15253
15424
  */
15254
15425
  export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
15255
15426
  return {
15427
+ /**
15428
+ *
15429
+ * @param {DuplicateClubDayScheduleRequest} duplicateClubDayScheduleRequest
15430
+ * @param {*} [options] Override http request option.
15431
+ * @throws {RequiredError}
15432
+ */
15433
+ duplicateDaySchedule: async (duplicateClubDayScheduleRequest: DuplicateClubDayScheduleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15434
+ // verify required parameter 'duplicateClubDayScheduleRequest' is not null or undefined
15435
+ assertParamExists('duplicateDaySchedule', 'duplicateClubDayScheduleRequest', duplicateClubDayScheduleRequest)
15436
+ const localVarPath = `/api/club-settings/hours/day/duplicate`;
15437
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15438
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15439
+ let baseOptions;
15440
+ if (configuration) {
15441
+ baseOptions = configuration.baseOptions;
15442
+ }
15443
+
15444
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15445
+ const localVarHeaderParameter = {} as any;
15446
+ const localVarQueryParameter = {} as any;
15447
+
15448
+ // authentication bearerAuth required
15449
+ // http bearer authentication required
15450
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15451
+
15452
+
15453
+
15454
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15455
+
15456
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15457
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15458
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15459
+ localVarRequestOptions.data = serializeDataIfNeeded(duplicateClubDayScheduleRequest, localVarRequestOptions, configuration)
15460
+
15461
+ return {
15462
+ url: toPathString(localVarUrlObj),
15463
+ options: localVarRequestOptions,
15464
+ };
15465
+ },
15256
15466
  /**
15257
15467
  *
15258
15468
  * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
@@ -15331,6 +15541,49 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
15331
15541
  options: localVarRequestOptions,
15332
15542
  };
15333
15543
  },
15544
+ /**
15545
+ *
15546
+ * @param {WeekdayKey} day
15547
+ * @param {UpdateClubDayScheduleRequest} updateClubDayScheduleRequest
15548
+ * @param {*} [options] Override http request option.
15549
+ * @throws {RequiredError}
15550
+ */
15551
+ updateDaySchedule: async (day: WeekdayKey, updateClubDayScheduleRequest: UpdateClubDayScheduleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15552
+ // verify required parameter 'day' is not null or undefined
15553
+ assertParamExists('updateDaySchedule', 'day', day)
15554
+ // verify required parameter 'updateClubDayScheduleRequest' is not null or undefined
15555
+ assertParamExists('updateDaySchedule', 'updateClubDayScheduleRequest', updateClubDayScheduleRequest)
15556
+ const localVarPath = `/api/club-settings/hours/day/{day}`
15557
+ .replace(`{${"day"}}`, encodeURIComponent(String(day)));
15558
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15559
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15560
+ let baseOptions;
15561
+ if (configuration) {
15562
+ baseOptions = configuration.baseOptions;
15563
+ }
15564
+
15565
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
15566
+ const localVarHeaderParameter = {} as any;
15567
+ const localVarQueryParameter = {} as any;
15568
+
15569
+ // authentication bearerAuth required
15570
+ // http bearer authentication required
15571
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15572
+
15573
+
15574
+
15575
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15576
+
15577
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15578
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15579
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15580
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubDayScheduleRequest, localVarRequestOptions, configuration)
15581
+
15582
+ return {
15583
+ url: toPathString(localVarUrlObj),
15584
+ options: localVarRequestOptions,
15585
+ };
15586
+ },
15334
15587
  /**
15335
15588
  *
15336
15589
  * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
@@ -15458,6 +15711,18 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
15458
15711
  export const ClubSettingsManagerApiFp = function(configuration?: Configuration) {
15459
15712
  const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration)
15460
15713
  return {
15714
+ /**
15715
+ *
15716
+ * @param {DuplicateClubDayScheduleRequest} duplicateClubDayScheduleRequest
15717
+ * @param {*} [options] Override http request option.
15718
+ * @throws {RequiredError}
15719
+ */
15720
+ async duplicateDaySchedule(duplicateClubDayScheduleRequest: DuplicateClubDayScheduleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubHoursSettingsResponse>> {
15721
+ const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateDaySchedule(duplicateClubDayScheduleRequest, options);
15722
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15723
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.duplicateDaySchedule']?.[localVarOperationServerIndex]?.url;
15724
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15725
+ },
15461
15726
  /**
15462
15727
  *
15463
15728
  * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
@@ -15482,6 +15747,19 @@ export const ClubSettingsManagerApiFp = function(configuration?: Configuration)
15482
15747
  const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']?.[localVarOperationServerIndex]?.url;
15483
15748
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15484
15749
  },
15750
+ /**
15751
+ *
15752
+ * @param {WeekdayKey} day
15753
+ * @param {UpdateClubDayScheduleRequest} updateClubDayScheduleRequest
15754
+ * @param {*} [options] Override http request option.
15755
+ * @throws {RequiredError}
15756
+ */
15757
+ async updateDaySchedule(day: WeekdayKey, updateClubDayScheduleRequest: UpdateClubDayScheduleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubHoursSettingsResponse>> {
15758
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateDaySchedule(day, updateClubDayScheduleRequest, options);
15759
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15760
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateDaySchedule']?.[localVarOperationServerIndex]?.url;
15761
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15762
+ },
15485
15763
  /**
15486
15764
  *
15487
15765
  * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
@@ -15528,6 +15806,15 @@ export const ClubSettingsManagerApiFp = function(configuration?: Configuration)
15528
15806
  export const ClubSettingsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15529
15807
  const localVarFp = ClubSettingsManagerApiFp(configuration)
15530
15808
  return {
15809
+ /**
15810
+ *
15811
+ * @param {ClubSettingsManagerApiDuplicateDayScheduleRequest} requestParameters Request parameters.
15812
+ * @param {*} [options] Override http request option.
15813
+ * @throws {RequiredError}
15814
+ */
15815
+ duplicateDaySchedule(requestParameters: ClubSettingsManagerApiDuplicateDayScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubHoursSettingsResponse> {
15816
+ return localVarFp.duplicateDaySchedule(requestParameters.duplicateClubDayScheduleRequest, options).then((request) => request(axios, basePath));
15817
+ },
15531
15818
  /**
15532
15819
  *
15533
15820
  * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
@@ -15546,6 +15833,15 @@ export const ClubSettingsManagerApiFactory = function (configuration?: Configura
15546
15833
  updateClubGeneralSettings(requestParameters: ClubSettingsManagerApiUpdateClubGeneralSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubGeneralSettingsResponse> {
15547
15834
  return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
15548
15835
  },
15836
+ /**
15837
+ *
15838
+ * @param {ClubSettingsManagerApiUpdateDayScheduleRequest} requestParameters Request parameters.
15839
+ * @param {*} [options] Override http request option.
15840
+ * @throws {RequiredError}
15841
+ */
15842
+ updateDaySchedule(requestParameters: ClubSettingsManagerApiUpdateDayScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubHoursSettingsResponse> {
15843
+ return localVarFp.updateDaySchedule(requestParameters.day, requestParameters.updateClubDayScheduleRequest, options).then((request) => request(axios, basePath));
15844
+ },
15549
15845
  /**
15550
15846
  *
15551
15847
  * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
@@ -15576,6 +15872,20 @@ export const ClubSettingsManagerApiFactory = function (configuration?: Configura
15576
15872
  };
15577
15873
  };
15578
15874
 
15875
+ /**
15876
+ * Request parameters for duplicateDaySchedule operation in ClubSettingsManagerApi.
15877
+ * @export
15878
+ * @interface ClubSettingsManagerApiDuplicateDayScheduleRequest
15879
+ */
15880
+ export interface ClubSettingsManagerApiDuplicateDayScheduleRequest {
15881
+ /**
15882
+ *
15883
+ * @type {DuplicateClubDayScheduleRequest}
15884
+ * @memberof ClubSettingsManagerApiDuplicateDaySchedule
15885
+ */
15886
+ readonly duplicateClubDayScheduleRequest: DuplicateClubDayScheduleRequest
15887
+ }
15888
+
15579
15889
  /**
15580
15890
  * Request parameters for updateAccessSettings operation in ClubSettingsManagerApi.
15581
15891
  * @export
@@ -15604,6 +15914,27 @@ export interface ClubSettingsManagerApiUpdateClubGeneralSettingsRequest {
15604
15914
  readonly updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest
15605
15915
  }
15606
15916
 
15917
+ /**
15918
+ * Request parameters for updateDaySchedule operation in ClubSettingsManagerApi.
15919
+ * @export
15920
+ * @interface ClubSettingsManagerApiUpdateDayScheduleRequest
15921
+ */
15922
+ export interface ClubSettingsManagerApiUpdateDayScheduleRequest {
15923
+ /**
15924
+ *
15925
+ * @type {WeekdayKey}
15926
+ * @memberof ClubSettingsManagerApiUpdateDaySchedule
15927
+ */
15928
+ readonly day: WeekdayKey
15929
+
15930
+ /**
15931
+ *
15932
+ * @type {UpdateClubDayScheduleRequest}
15933
+ * @memberof ClubSettingsManagerApiUpdateDaySchedule
15934
+ */
15935
+ readonly updateClubDayScheduleRequest: UpdateClubDayScheduleRequest
15936
+ }
15937
+
15607
15938
  /**
15608
15939
  * Request parameters for updateHoursSettings operation in ClubSettingsManagerApi.
15609
15940
  * @export
@@ -15653,6 +15984,17 @@ export interface ClubSettingsManagerApiUpdateReservationSettingsRequest {
15653
15984
  * @extends {BaseAPI}
15654
15985
  */
15655
15986
  export class ClubSettingsManagerApi extends BaseAPI {
15987
+ /**
15988
+ *
15989
+ * @param {ClubSettingsManagerApiDuplicateDayScheduleRequest} requestParameters Request parameters.
15990
+ * @param {*} [options] Override http request option.
15991
+ * @throws {RequiredError}
15992
+ * @memberof ClubSettingsManagerApi
15993
+ */
15994
+ public duplicateDaySchedule(requestParameters: ClubSettingsManagerApiDuplicateDayScheduleRequest, options?: RawAxiosRequestConfig) {
15995
+ return ClubSettingsManagerApiFp(this.configuration).duplicateDaySchedule(requestParameters.duplicateClubDayScheduleRequest, options).then((request) => request(this.axios, this.basePath));
15996
+ }
15997
+
15656
15998
  /**
15657
15999
  *
15658
16000
  * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
@@ -15675,6 +16017,17 @@ export class ClubSettingsManagerApi extends BaseAPI {
15675
16017
  return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
15676
16018
  }
15677
16019
 
16020
+ /**
16021
+ *
16022
+ * @param {ClubSettingsManagerApiUpdateDayScheduleRequest} requestParameters Request parameters.
16023
+ * @param {*} [options] Override http request option.
16024
+ * @throws {RequiredError}
16025
+ * @memberof ClubSettingsManagerApi
16026
+ */
16027
+ public updateDaySchedule(requestParameters: ClubSettingsManagerApiUpdateDayScheduleRequest, options?: RawAxiosRequestConfig) {
16028
+ return ClubSettingsManagerApiFp(this.configuration).updateDaySchedule(requestParameters.day, requestParameters.updateClubDayScheduleRequest, options).then((request) => request(this.axios, this.basePath));
16029
+ }
16030
+
15678
16031
  /**
15679
16032
  *
15680
16033
  * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.