@tennac-booking/sdk 1.0.140 → 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/.openapi-generator/FILES +6 -3
- package/README.md +8 -3
- package/api.ts +343 -108
- package/dist/api.d.ts +247 -108
- package/dist/api.js +155 -4
- package/dist/esm/api.d.ts +247 -108
- package/dist/esm/api.js +151 -0
- package/docs/{ClubDaySchedule.md → ClubDayInterval.md} +7 -7
- package/docs/ClubHoursSettingsResponse.md +1 -1
- package/docs/ClubSettingsManagerApi.md +107 -0
- package/docs/DuplicateClubDayScheduleRequest.md +22 -0
- package/docs/PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined.md +33 -0
- package/docs/RecordWeekdayKeyClubDaySchedule.md +33 -0
- package/docs/UpdateClubDayScheduleRequest.md +20 -0
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/docs/WeekdayKey.md +20 -0
- package/package.json +1 -1
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/PartialClubWeeklySchedule.md +0 -33
package/api.ts
CHANGED
|
@@ -1890,21 +1890,21 @@ export interface ClubAccessSettingsResponse {
|
|
|
1890
1890
|
/**
|
|
1891
1891
|
*
|
|
1892
1892
|
* @export
|
|
1893
|
-
* @interface
|
|
1893
|
+
* @interface ClubDayInterval
|
|
1894
1894
|
*/
|
|
1895
|
-
export interface
|
|
1895
|
+
export interface ClubDayInterval {
|
|
1896
1896
|
/**
|
|
1897
1897
|
*
|
|
1898
1898
|
* @type {string}
|
|
1899
|
-
* @memberof
|
|
1899
|
+
* @memberof ClubDayInterval
|
|
1900
1900
|
*/
|
|
1901
|
-
'
|
|
1901
|
+
'start': string;
|
|
1902
1902
|
/**
|
|
1903
1903
|
*
|
|
1904
1904
|
* @type {string}
|
|
1905
|
-
* @memberof
|
|
1905
|
+
* @memberof ClubDayInterval
|
|
1906
1906
|
*/
|
|
1907
|
-
'
|
|
1907
|
+
'end': string;
|
|
1908
1908
|
}
|
|
1909
1909
|
/**
|
|
1910
1910
|
*
|
|
@@ -2012,10 +2012,10 @@ export interface ClubGeneralSettingsResponse {
|
|
|
2012
2012
|
export interface ClubHoursSettingsResponse {
|
|
2013
2013
|
/**
|
|
2014
2014
|
*
|
|
2015
|
-
* @type {
|
|
2015
|
+
* @type {RecordWeekdayKeyClubDaySchedule}
|
|
2016
2016
|
* @memberof ClubHoursSettingsResponse
|
|
2017
2017
|
*/
|
|
2018
|
-
'schedule':
|
|
2018
|
+
'schedule': RecordWeekdayKeyClubDaySchedule;
|
|
2019
2019
|
/**
|
|
2020
2020
|
*
|
|
2021
2021
|
* @type {Array<ClubPricingPeriodResponse>}
|
|
@@ -3373,55 +3373,6 @@ export interface ClubUserCountResponse {
|
|
|
3373
3373
|
*/
|
|
3374
3374
|
'count': number;
|
|
3375
3375
|
}
|
|
3376
|
-
/**
|
|
3377
|
-
*
|
|
3378
|
-
* @export
|
|
3379
|
-
* @interface ClubWeeklySchedule
|
|
3380
|
-
*/
|
|
3381
|
-
export interface ClubWeeklySchedule {
|
|
3382
|
-
/**
|
|
3383
|
-
*
|
|
3384
|
-
* @type {ClubDaySchedule}
|
|
3385
|
-
* @memberof ClubWeeklySchedule
|
|
3386
|
-
*/
|
|
3387
|
-
'sunday': ClubDaySchedule | null;
|
|
3388
|
-
/**
|
|
3389
|
-
*
|
|
3390
|
-
* @type {ClubDaySchedule}
|
|
3391
|
-
* @memberof ClubWeeklySchedule
|
|
3392
|
-
*/
|
|
3393
|
-
'saturday': ClubDaySchedule | null;
|
|
3394
|
-
/**
|
|
3395
|
-
*
|
|
3396
|
-
* @type {ClubDaySchedule}
|
|
3397
|
-
* @memberof ClubWeeklySchedule
|
|
3398
|
-
*/
|
|
3399
|
-
'friday': ClubDaySchedule | null;
|
|
3400
|
-
/**
|
|
3401
|
-
*
|
|
3402
|
-
* @type {ClubDaySchedule}
|
|
3403
|
-
* @memberof ClubWeeklySchedule
|
|
3404
|
-
*/
|
|
3405
|
-
'thursday': ClubDaySchedule | null;
|
|
3406
|
-
/**
|
|
3407
|
-
*
|
|
3408
|
-
* @type {ClubDaySchedule}
|
|
3409
|
-
* @memberof ClubWeeklySchedule
|
|
3410
|
-
*/
|
|
3411
|
-
'wednesday': ClubDaySchedule | null;
|
|
3412
|
-
/**
|
|
3413
|
-
*
|
|
3414
|
-
* @type {ClubDaySchedule}
|
|
3415
|
-
* @memberof ClubWeeklySchedule
|
|
3416
|
-
*/
|
|
3417
|
-
'tuesday': ClubDaySchedule | null;
|
|
3418
|
-
/**
|
|
3419
|
-
*
|
|
3420
|
-
* @type {ClubDaySchedule}
|
|
3421
|
-
* @memberof ClubWeeklySchedule
|
|
3422
|
-
*/
|
|
3423
|
-
'monday': ClubDaySchedule | null;
|
|
3424
|
-
}
|
|
3425
3376
|
/**
|
|
3426
3377
|
*
|
|
3427
3378
|
* @export
|
|
@@ -4406,6 +4357,27 @@ export const DiscountType = {
|
|
|
4406
4357
|
export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
|
|
4407
4358
|
|
|
4408
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
|
+
|
|
4409
4381
|
/**
|
|
4410
4382
|
*
|
|
4411
4383
|
* @export
|
|
@@ -6822,55 +6794,6 @@ export interface PartialClubActiveResponseLocation {
|
|
|
6822
6794
|
*/
|
|
6823
6795
|
'address'?: string;
|
|
6824
6796
|
}
|
|
6825
|
-
/**
|
|
6826
|
-
* Make all properties in T optional
|
|
6827
|
-
* @export
|
|
6828
|
-
* @interface PartialClubWeeklySchedule
|
|
6829
|
-
*/
|
|
6830
|
-
export interface PartialClubWeeklySchedule {
|
|
6831
|
-
/**
|
|
6832
|
-
*
|
|
6833
|
-
* @type {ClubDaySchedule}
|
|
6834
|
-
* @memberof PartialClubWeeklySchedule
|
|
6835
|
-
*/
|
|
6836
|
-
'monday'?: ClubDaySchedule;
|
|
6837
|
-
/**
|
|
6838
|
-
*
|
|
6839
|
-
* @type {ClubDaySchedule}
|
|
6840
|
-
* @memberof PartialClubWeeklySchedule
|
|
6841
|
-
*/
|
|
6842
|
-
'tuesday'?: ClubDaySchedule;
|
|
6843
|
-
/**
|
|
6844
|
-
*
|
|
6845
|
-
* @type {ClubDaySchedule}
|
|
6846
|
-
* @memberof PartialClubWeeklySchedule
|
|
6847
|
-
*/
|
|
6848
|
-
'wednesday'?: ClubDaySchedule;
|
|
6849
|
-
/**
|
|
6850
|
-
*
|
|
6851
|
-
* @type {ClubDaySchedule}
|
|
6852
|
-
* @memberof PartialClubWeeklySchedule
|
|
6853
|
-
*/
|
|
6854
|
-
'thursday'?: ClubDaySchedule;
|
|
6855
|
-
/**
|
|
6856
|
-
*
|
|
6857
|
-
* @type {ClubDaySchedule}
|
|
6858
|
-
* @memberof PartialClubWeeklySchedule
|
|
6859
|
-
*/
|
|
6860
|
-
'friday'?: ClubDaySchedule;
|
|
6861
|
-
/**
|
|
6862
|
-
*
|
|
6863
|
-
* @type {ClubDaySchedule}
|
|
6864
|
-
* @memberof PartialClubWeeklySchedule
|
|
6865
|
-
*/
|
|
6866
|
-
'saturday'?: ClubDaySchedule;
|
|
6867
|
-
/**
|
|
6868
|
-
*
|
|
6869
|
-
* @type {ClubDaySchedule}
|
|
6870
|
-
* @memberof PartialClubWeeklySchedule
|
|
6871
|
-
*/
|
|
6872
|
-
'sunday'?: ClubDaySchedule;
|
|
6873
|
-
}
|
|
6874
6797
|
/**
|
|
6875
6798
|
* Make all properties in T optional
|
|
6876
6799
|
* @export
|
|
@@ -6955,6 +6878,55 @@ export const PartialPublicAccessSettingsPaymentModeEnum = {
|
|
|
6955
6878
|
|
|
6956
6879
|
export type PartialPublicAccessSettingsPaymentModeEnum = typeof PartialPublicAccessSettingsPaymentModeEnum[keyof typeof PartialPublicAccessSettingsPaymentModeEnum];
|
|
6957
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
|
+
}
|
|
6958
6930
|
/**
|
|
6959
6931
|
* Make all properties in T optional
|
|
6960
6932
|
* @export
|
|
@@ -7998,6 +7970,55 @@ export interface QuickReservationSlotSummary {
|
|
|
7998
7970
|
*/
|
|
7999
7971
|
'sportKey'?: string;
|
|
8000
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
|
+
}
|
|
8001
8022
|
/**
|
|
8002
8023
|
*
|
|
8003
8024
|
* @export
|
|
@@ -9640,6 +9661,19 @@ export interface UpdateClubAccessSettingsRequest {
|
|
|
9640
9661
|
*/
|
|
9641
9662
|
'paymentRequirements'?: PartialPaymentRequirementsSettings;
|
|
9642
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
|
+
}
|
|
9643
9677
|
/**
|
|
9644
9678
|
*
|
|
9645
9679
|
* @export
|
|
@@ -9730,10 +9764,10 @@ export interface UpdateClubGeneralSettingsRequestLogo {
|
|
|
9730
9764
|
export interface UpdateClubHoursSettingsRequest {
|
|
9731
9765
|
/**
|
|
9732
9766
|
*
|
|
9733
|
-
* @type {
|
|
9767
|
+
* @type {PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined}
|
|
9734
9768
|
* @memberof UpdateClubHoursSettingsRequest
|
|
9735
9769
|
*/
|
|
9736
|
-
'schedule'?:
|
|
9770
|
+
'schedule'?: PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined;
|
|
9737
9771
|
/**
|
|
9738
9772
|
*
|
|
9739
9773
|
* @type {Array<ClubPricingPeriodResponse>}
|
|
@@ -11352,6 +11386,25 @@ export const VisibilityType = {
|
|
|
11352
11386
|
export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
|
|
11353
11387
|
|
|
11354
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
|
+
|
|
11355
11408
|
/**
|
|
11356
11409
|
*
|
|
11357
11410
|
* @export
|
|
@@ -15371,6 +15424,45 @@ export class ClubRolesStaffApi extends BaseAPI {
|
|
|
15371
15424
|
*/
|
|
15372
15425
|
export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
15373
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
|
+
},
|
|
15374
15466
|
/**
|
|
15375
15467
|
*
|
|
15376
15468
|
* @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
|
|
@@ -15449,6 +15541,49 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
|
|
|
15449
15541
|
options: localVarRequestOptions,
|
|
15450
15542
|
};
|
|
15451
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
|
+
},
|
|
15452
15587
|
/**
|
|
15453
15588
|
*
|
|
15454
15589
|
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
@@ -15576,6 +15711,18 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
|
|
|
15576
15711
|
export const ClubSettingsManagerApiFp = function(configuration?: Configuration) {
|
|
15577
15712
|
const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration)
|
|
15578
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
|
+
},
|
|
15579
15726
|
/**
|
|
15580
15727
|
*
|
|
15581
15728
|
* @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
|
|
@@ -15600,6 +15747,19 @@ export const ClubSettingsManagerApiFp = function(configuration?: Configuration)
|
|
|
15600
15747
|
const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']?.[localVarOperationServerIndex]?.url;
|
|
15601
15748
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15602
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
|
+
},
|
|
15603
15763
|
/**
|
|
15604
15764
|
*
|
|
15605
15765
|
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
@@ -15646,6 +15806,15 @@ export const ClubSettingsManagerApiFp = function(configuration?: Configuration)
|
|
|
15646
15806
|
export const ClubSettingsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
15647
15807
|
const localVarFp = ClubSettingsManagerApiFp(configuration)
|
|
15648
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
|
+
},
|
|
15649
15818
|
/**
|
|
15650
15819
|
*
|
|
15651
15820
|
* @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
|
|
@@ -15664,6 +15833,15 @@ export const ClubSettingsManagerApiFactory = function (configuration?: Configura
|
|
|
15664
15833
|
updateClubGeneralSettings(requestParameters: ClubSettingsManagerApiUpdateClubGeneralSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubGeneralSettingsResponse> {
|
|
15665
15834
|
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
15666
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
|
+
},
|
|
15667
15845
|
/**
|
|
15668
15846
|
*
|
|
15669
15847
|
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
@@ -15694,6 +15872,20 @@ export const ClubSettingsManagerApiFactory = function (configuration?: Configura
|
|
|
15694
15872
|
};
|
|
15695
15873
|
};
|
|
15696
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
|
+
|
|
15697
15889
|
/**
|
|
15698
15890
|
* Request parameters for updateAccessSettings operation in ClubSettingsManagerApi.
|
|
15699
15891
|
* @export
|
|
@@ -15722,6 +15914,27 @@ export interface ClubSettingsManagerApiUpdateClubGeneralSettingsRequest {
|
|
|
15722
15914
|
readonly updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest
|
|
15723
15915
|
}
|
|
15724
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
|
+
|
|
15725
15938
|
/**
|
|
15726
15939
|
* Request parameters for updateHoursSettings operation in ClubSettingsManagerApi.
|
|
15727
15940
|
* @export
|
|
@@ -15771,6 +15984,17 @@ export interface ClubSettingsManagerApiUpdateReservationSettingsRequest {
|
|
|
15771
15984
|
* @extends {BaseAPI}
|
|
15772
15985
|
*/
|
|
15773
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
|
+
|
|
15774
15998
|
/**
|
|
15775
15999
|
*
|
|
15776
16000
|
* @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
|
|
@@ -15793,6 +16017,17 @@ export class ClubSettingsManagerApi extends BaseAPI {
|
|
|
15793
16017
|
return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15794
16018
|
}
|
|
15795
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
|
+
|
|
15796
16031
|
/**
|
|
15797
16032
|
*
|
|
15798
16033
|
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|