@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/dist/esm/api.js
CHANGED
|
@@ -366,6 +366,20 @@ export const VisibilityType = {
|
|
|
366
366
|
Private: 'private',
|
|
367
367
|
Invitation: 'invitation'
|
|
368
368
|
};
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @export
|
|
372
|
+
* @enum {string}
|
|
373
|
+
*/
|
|
374
|
+
export const WeekdayKey = {
|
|
375
|
+
Monday: 'monday',
|
|
376
|
+
Tuesday: 'tuesday',
|
|
377
|
+
Wednesday: 'wednesday',
|
|
378
|
+
Thursday: 'thursday',
|
|
379
|
+
Friday: 'friday',
|
|
380
|
+
Saturday: 'saturday',
|
|
381
|
+
Sunday: 'sunday'
|
|
382
|
+
};
|
|
369
383
|
/**
|
|
370
384
|
* BookingsApi - axios parameter creator
|
|
371
385
|
* @export
|
|
@@ -3513,6 +3527,38 @@ export class ClubRolesStaffApi extends BaseAPI {
|
|
|
3513
3527
|
*/
|
|
3514
3528
|
export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
3515
3529
|
return {
|
|
3530
|
+
/**
|
|
3531
|
+
*
|
|
3532
|
+
* @param {DuplicateClubDayScheduleRequest} duplicateClubDayScheduleRequest
|
|
3533
|
+
* @param {*} [options] Override http request option.
|
|
3534
|
+
* @throws {RequiredError}
|
|
3535
|
+
*/
|
|
3536
|
+
duplicateDaySchedule: (duplicateClubDayScheduleRequest_1, ...args_1) => __awaiter(this, [duplicateClubDayScheduleRequest_1, ...args_1], void 0, function* (duplicateClubDayScheduleRequest, options = {}) {
|
|
3537
|
+
// verify required parameter 'duplicateClubDayScheduleRequest' is not null or undefined
|
|
3538
|
+
assertParamExists('duplicateDaySchedule', 'duplicateClubDayScheduleRequest', duplicateClubDayScheduleRequest);
|
|
3539
|
+
const localVarPath = `/api/club-settings/hours/day/duplicate`;
|
|
3540
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3541
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3542
|
+
let baseOptions;
|
|
3543
|
+
if (configuration) {
|
|
3544
|
+
baseOptions = configuration.baseOptions;
|
|
3545
|
+
}
|
|
3546
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3547
|
+
const localVarHeaderParameter = {};
|
|
3548
|
+
const localVarQueryParameter = {};
|
|
3549
|
+
// authentication bearerAuth required
|
|
3550
|
+
// http bearer authentication required
|
|
3551
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3552
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3553
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3554
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3555
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3556
|
+
localVarRequestOptions.data = serializeDataIfNeeded(duplicateClubDayScheduleRequest, localVarRequestOptions, configuration);
|
|
3557
|
+
return {
|
|
3558
|
+
url: toPathString(localVarUrlObj),
|
|
3559
|
+
options: localVarRequestOptions,
|
|
3560
|
+
};
|
|
3561
|
+
}),
|
|
3516
3562
|
/**
|
|
3517
3563
|
*
|
|
3518
3564
|
* @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
|
|
@@ -3577,6 +3623,42 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3577
3623
|
options: localVarRequestOptions,
|
|
3578
3624
|
};
|
|
3579
3625
|
}),
|
|
3626
|
+
/**
|
|
3627
|
+
*
|
|
3628
|
+
* @param {WeekdayKey} day
|
|
3629
|
+
* @param {UpdateClubDayScheduleRequest} updateClubDayScheduleRequest
|
|
3630
|
+
* @param {*} [options] Override http request option.
|
|
3631
|
+
* @throws {RequiredError}
|
|
3632
|
+
*/
|
|
3633
|
+
updateDaySchedule: (day_1, updateClubDayScheduleRequest_1, ...args_1) => __awaiter(this, [day_1, updateClubDayScheduleRequest_1, ...args_1], void 0, function* (day, updateClubDayScheduleRequest, options = {}) {
|
|
3634
|
+
// verify required parameter 'day' is not null or undefined
|
|
3635
|
+
assertParamExists('updateDaySchedule', 'day', day);
|
|
3636
|
+
// verify required parameter 'updateClubDayScheduleRequest' is not null or undefined
|
|
3637
|
+
assertParamExists('updateDaySchedule', 'updateClubDayScheduleRequest', updateClubDayScheduleRequest);
|
|
3638
|
+
const localVarPath = `/api/club-settings/hours/day/{day}`
|
|
3639
|
+
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
3640
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3641
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3642
|
+
let baseOptions;
|
|
3643
|
+
if (configuration) {
|
|
3644
|
+
baseOptions = configuration.baseOptions;
|
|
3645
|
+
}
|
|
3646
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3647
|
+
const localVarHeaderParameter = {};
|
|
3648
|
+
const localVarQueryParameter = {};
|
|
3649
|
+
// authentication bearerAuth required
|
|
3650
|
+
// http bearer authentication required
|
|
3651
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3652
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3653
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3655
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3656
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubDayScheduleRequest, localVarRequestOptions, configuration);
|
|
3657
|
+
return {
|
|
3658
|
+
url: toPathString(localVarUrlObj),
|
|
3659
|
+
options: localVarRequestOptions,
|
|
3660
|
+
};
|
|
3661
|
+
}),
|
|
3580
3662
|
/**
|
|
3581
3663
|
*
|
|
3582
3664
|
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
@@ -3682,6 +3764,21 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3682
3764
|
export const ClubSettingsManagerApiFp = function (configuration) {
|
|
3683
3765
|
const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
|
|
3684
3766
|
return {
|
|
3767
|
+
/**
|
|
3768
|
+
*
|
|
3769
|
+
* @param {DuplicateClubDayScheduleRequest} duplicateClubDayScheduleRequest
|
|
3770
|
+
* @param {*} [options] Override http request option.
|
|
3771
|
+
* @throws {RequiredError}
|
|
3772
|
+
*/
|
|
3773
|
+
duplicateDaySchedule(duplicateClubDayScheduleRequest, options) {
|
|
3774
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3775
|
+
var _a, _b, _c;
|
|
3776
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateDaySchedule(duplicateClubDayScheduleRequest, options);
|
|
3777
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3778
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.duplicateDaySchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3779
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3780
|
+
});
|
|
3781
|
+
},
|
|
3685
3782
|
/**
|
|
3686
3783
|
*
|
|
3687
3784
|
* @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
|
|
@@ -3712,6 +3809,22 @@ export const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
3712
3809
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3713
3810
|
});
|
|
3714
3811
|
},
|
|
3812
|
+
/**
|
|
3813
|
+
*
|
|
3814
|
+
* @param {WeekdayKey} day
|
|
3815
|
+
* @param {UpdateClubDayScheduleRequest} updateClubDayScheduleRequest
|
|
3816
|
+
* @param {*} [options] Override http request option.
|
|
3817
|
+
* @throws {RequiredError}
|
|
3818
|
+
*/
|
|
3819
|
+
updateDaySchedule(day, updateClubDayScheduleRequest, options) {
|
|
3820
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3821
|
+
var _a, _b, _c;
|
|
3822
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDaySchedule(day, updateClubDayScheduleRequest, options);
|
|
3823
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3824
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateDaySchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3825
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3826
|
+
});
|
|
3827
|
+
},
|
|
3715
3828
|
/**
|
|
3716
3829
|
*
|
|
3717
3830
|
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
@@ -3766,6 +3879,15 @@ export const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
3766
3879
|
export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3767
3880
|
const localVarFp = ClubSettingsManagerApiFp(configuration);
|
|
3768
3881
|
return {
|
|
3882
|
+
/**
|
|
3883
|
+
*
|
|
3884
|
+
* @param {ClubSettingsManagerApiDuplicateDayScheduleRequest} requestParameters Request parameters.
|
|
3885
|
+
* @param {*} [options] Override http request option.
|
|
3886
|
+
* @throws {RequiredError}
|
|
3887
|
+
*/
|
|
3888
|
+
duplicateDaySchedule(requestParameters, options) {
|
|
3889
|
+
return localVarFp.duplicateDaySchedule(requestParameters.duplicateClubDayScheduleRequest, options).then((request) => request(axios, basePath));
|
|
3890
|
+
},
|
|
3769
3891
|
/**
|
|
3770
3892
|
*
|
|
3771
3893
|
* @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
|
|
@@ -3784,6 +3906,15 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
|
|
|
3784
3906
|
updateClubGeneralSettings(requestParameters, options) {
|
|
3785
3907
|
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3786
3908
|
},
|
|
3909
|
+
/**
|
|
3910
|
+
*
|
|
3911
|
+
* @param {ClubSettingsManagerApiUpdateDayScheduleRequest} requestParameters Request parameters.
|
|
3912
|
+
* @param {*} [options] Override http request option.
|
|
3913
|
+
* @throws {RequiredError}
|
|
3914
|
+
*/
|
|
3915
|
+
updateDaySchedule(requestParameters, options) {
|
|
3916
|
+
return localVarFp.updateDaySchedule(requestParameters.day, requestParameters.updateClubDayScheduleRequest, options).then((request) => request(axios, basePath));
|
|
3917
|
+
},
|
|
3787
3918
|
/**
|
|
3788
3919
|
*
|
|
3789
3920
|
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
@@ -3820,6 +3951,16 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
|
|
|
3820
3951
|
* @extends {BaseAPI}
|
|
3821
3952
|
*/
|
|
3822
3953
|
export class ClubSettingsManagerApi extends BaseAPI {
|
|
3954
|
+
/**
|
|
3955
|
+
*
|
|
3956
|
+
* @param {ClubSettingsManagerApiDuplicateDayScheduleRequest} requestParameters Request parameters.
|
|
3957
|
+
* @param {*} [options] Override http request option.
|
|
3958
|
+
* @throws {RequiredError}
|
|
3959
|
+
* @memberof ClubSettingsManagerApi
|
|
3960
|
+
*/
|
|
3961
|
+
duplicateDaySchedule(requestParameters, options) {
|
|
3962
|
+
return ClubSettingsManagerApiFp(this.configuration).duplicateDaySchedule(requestParameters.duplicateClubDayScheduleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3963
|
+
}
|
|
3823
3964
|
/**
|
|
3824
3965
|
*
|
|
3825
3966
|
* @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
|
|
@@ -3840,6 +3981,16 @@ export class ClubSettingsManagerApi extends BaseAPI {
|
|
|
3840
3981
|
updateClubGeneralSettings(requestParameters, options) {
|
|
3841
3982
|
return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3842
3983
|
}
|
|
3984
|
+
/**
|
|
3985
|
+
*
|
|
3986
|
+
* @param {ClubSettingsManagerApiUpdateDayScheduleRequest} requestParameters Request parameters.
|
|
3987
|
+
* @param {*} [options] Override http request option.
|
|
3988
|
+
* @throws {RequiredError}
|
|
3989
|
+
* @memberof ClubSettingsManagerApi
|
|
3990
|
+
*/
|
|
3991
|
+
updateDaySchedule(requestParameters, options) {
|
|
3992
|
+
return ClubSettingsManagerApiFp(this.configuration).updateDaySchedule(requestParameters.day, requestParameters.updateClubDayScheduleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3993
|
+
}
|
|
3843
3994
|
/**
|
|
3844
3995
|
*
|
|
3845
3996
|
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubDayInterval
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**
|
|
8
|
+
**start** | **string** | | [default to undefined]
|
|
9
|
+
**end** | **string** | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { ClubDayInterval } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const instance: ClubDayInterval = {
|
|
17
|
+
start,
|
|
18
|
+
end,
|
|
19
19
|
};
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**schedule** | [**
|
|
8
|
+
**schedule** | [**RecordWeekdayKeyClubDaySchedule**](RecordWeekdayKeyClubDaySchedule.md) | | [default to undefined]
|
|
9
9
|
**pricingPeriods** | [**Array<ClubPricingPeriodResponse>**](ClubPricingPeriodResponse.md) | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
@@ -4,12 +4,65 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**duplicateDaySchedule**](#duplicatedayschedule) | **POST** /api/club-settings/hours/day/duplicate | |
|
|
7
8
|
|[**updateAccessSettings**](#updateaccesssettings) | **PATCH** /api/club-settings/access | |
|
|
8
9
|
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PATCH** /api/club-settings/settings/general | |
|
|
10
|
+
|[**updateDaySchedule**](#updatedayschedule) | **PATCH** /api/club-settings/hours/day/{day} | |
|
|
9
11
|
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
10
12
|
|[**updatePresentationSettings**](#updatepresentationsettings) | **PATCH** /api/club-settings/presentation | |
|
|
11
13
|
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
12
14
|
|
|
15
|
+
# **duplicateDaySchedule**
|
|
16
|
+
> ClubHoursSettingsResponse duplicateDaySchedule(duplicateClubDayScheduleRequest)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
ClubSettingsManagerApi,
|
|
24
|
+
Configuration,
|
|
25
|
+
DuplicateClubDayScheduleRequest
|
|
26
|
+
} from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const configuration = new Configuration();
|
|
29
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
30
|
+
|
|
31
|
+
let duplicateClubDayScheduleRequest: DuplicateClubDayScheduleRequest; //
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.duplicateDaySchedule(
|
|
34
|
+
duplicateClubDayScheduleRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **duplicateClubDayScheduleRequest** | **DuplicateClubDayScheduleRequest**| | |
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**ClubHoursSettingsResponse**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | Intervalles du jour dupliqués | - |
|
|
63
|
+
|
|
64
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
|
+
|
|
13
66
|
# **updateAccessSettings**
|
|
14
67
|
> ClubAccessSettingsResponse updateAccessSettings(updateClubAccessSettingsRequest)
|
|
15
68
|
|
|
@@ -112,6 +165,60 @@ const { status, data } = await apiInstance.updateClubGeneralSettings(
|
|
|
112
165
|
|
|
113
166
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
114
167
|
|
|
168
|
+
# **updateDaySchedule**
|
|
169
|
+
> ClubHoursSettingsResponse updateDaySchedule(updateClubDayScheduleRequest)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Example
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
import {
|
|
176
|
+
ClubSettingsManagerApi,
|
|
177
|
+
Configuration,
|
|
178
|
+
UpdateClubDayScheduleRequest
|
|
179
|
+
} from '@tennac-booking/sdk';
|
|
180
|
+
|
|
181
|
+
const configuration = new Configuration();
|
|
182
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
183
|
+
|
|
184
|
+
let day: WeekdayKey; // (default to undefined)
|
|
185
|
+
let updateClubDayScheduleRequest: UpdateClubDayScheduleRequest; //
|
|
186
|
+
|
|
187
|
+
const { status, data } = await apiInstance.updateDaySchedule(
|
|
188
|
+
day,
|
|
189
|
+
updateClubDayScheduleRequest
|
|
190
|
+
);
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Parameters
|
|
194
|
+
|
|
195
|
+
|Name | Type | Description | Notes|
|
|
196
|
+
|------------- | ------------- | ------------- | -------------|
|
|
197
|
+
| **updateClubDayScheduleRequest** | **UpdateClubDayScheduleRequest**| | |
|
|
198
|
+
| **day** | **WeekdayKey** | | defaults to undefined|
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Return type
|
|
202
|
+
|
|
203
|
+
**ClubHoursSettingsResponse**
|
|
204
|
+
|
|
205
|
+
### Authorization
|
|
206
|
+
|
|
207
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
208
|
+
|
|
209
|
+
### HTTP request headers
|
|
210
|
+
|
|
211
|
+
- **Content-Type**: application/json
|
|
212
|
+
- **Accept**: application/json
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### HTTP response details
|
|
216
|
+
| Status code | Description | Response headers |
|
|
217
|
+
|-------------|-------------|------------------|
|
|
218
|
+
|**200** | Intervalles d\'un jour mis à jour | - |
|
|
219
|
+
|
|
220
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
221
|
+
|
|
115
222
|
# **updateHoursSettings**
|
|
116
223
|
> ClubHoursSettingsResponse updateHoursSettings(updateClubHoursSettingsRequest)
|
|
117
224
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# DuplicateClubDayScheduleRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**fromDay** | [**WeekdayKey**](WeekdayKey.md) | | [default to undefined]
|
|
9
|
+
**toDay** | [**WeekdayKey**](WeekdayKey.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DuplicateClubDayScheduleRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DuplicateClubDayScheduleRequest = {
|
|
17
|
+
fromDay,
|
|
18
|
+
toDay,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**monday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [optional] [default to undefined]
|
|
10
|
+
**tuesday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [optional] [default to undefined]
|
|
11
|
+
**wednesday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [optional] [default to undefined]
|
|
12
|
+
**thursday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [optional] [default to undefined]
|
|
13
|
+
**friday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [optional] [default to undefined]
|
|
14
|
+
**saturday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [optional] [default to undefined]
|
|
15
|
+
**sunday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined = {
|
|
23
|
+
monday,
|
|
24
|
+
tuesday,
|
|
25
|
+
wednesday,
|
|
26
|
+
thursday,
|
|
27
|
+
friday,
|
|
28
|
+
saturday,
|
|
29
|
+
sunday,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# RecordWeekdayKeyClubDaySchedule
|
|
2
|
+
|
|
3
|
+
Construct a type with a set of properties K of type T
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**monday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [default to undefined]
|
|
10
|
+
**tuesday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [default to undefined]
|
|
11
|
+
**wednesday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [default to undefined]
|
|
12
|
+
**thursday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [default to undefined]
|
|
13
|
+
**friday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [default to undefined]
|
|
14
|
+
**saturday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [default to undefined]
|
|
15
|
+
**sunday** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { RecordWeekdayKeyClubDaySchedule } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: RecordWeekdayKeyClubDaySchedule = {
|
|
23
|
+
monday,
|
|
24
|
+
tuesday,
|
|
25
|
+
wednesday,
|
|
26
|
+
thursday,
|
|
27
|
+
friday,
|
|
28
|
+
saturday,
|
|
29
|
+
sunday,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UpdateClubDayScheduleRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**intervals** | [**Array<ClubDayInterval>**](ClubDayInterval.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateClubDayScheduleRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateClubDayScheduleRequest = {
|
|
16
|
+
intervals,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**schedule** | [**
|
|
8
|
+
**schedule** | [**PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined**](PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined.md) | | [optional] [default to undefined]
|
|
9
9
|
**pricingPeriods** | [**Array<ClubPricingPeriodResponse>**](ClubPricingPeriodResponse.md) | | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WeekdayKey
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Monday` (value: `'monday'`)
|
|
7
|
+
|
|
8
|
+
* `Tuesday` (value: `'tuesday'`)
|
|
9
|
+
|
|
10
|
+
* `Wednesday` (value: `'wednesday'`)
|
|
11
|
+
|
|
12
|
+
* `Thursday` (value: `'thursday'`)
|
|
13
|
+
|
|
14
|
+
* `Friday` (value: `'friday'`)
|
|
15
|
+
|
|
16
|
+
* `Saturday` (value: `'saturday'`)
|
|
17
|
+
|
|
18
|
+
* `Sunday` (value: `'sunday'`)
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# ClubWeeklySchedule
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**sunday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
9
|
-
**saturday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
10
|
-
**friday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
11
|
-
**thursday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
12
|
-
**wednesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
13
|
-
**tuesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
14
|
-
**monday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import { ClubWeeklySchedule } from '@tennac-booking/sdk';
|
|
20
|
-
|
|
21
|
-
const instance: ClubWeeklySchedule = {
|
|
22
|
-
sunday,
|
|
23
|
-
saturday,
|
|
24
|
-
friday,
|
|
25
|
-
thursday,
|
|
26
|
-
wednesday,
|
|
27
|
-
tuesday,
|
|
28
|
-
monday,
|
|
29
|
-
};
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# PartialClubWeeklySchedule
|
|
2
|
-
|
|
3
|
-
Make all properties in T optional
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**monday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
10
|
-
**tuesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
11
|
-
**wednesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
12
|
-
**thursday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
13
|
-
**friday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
14
|
-
**saturday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
15
|
-
**sunday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { PartialClubWeeklySchedule } from '@tennac-booking/sdk';
|
|
21
|
-
|
|
22
|
-
const instance: PartialClubWeeklySchedule = {
|
|
23
|
-
monday,
|
|
24
|
-
tuesday,
|
|
25
|
-
wednesday,
|
|
26
|
-
thursday,
|
|
27
|
-
friday,
|
|
28
|
-
saturday,
|
|
29
|
-
sunday,
|
|
30
|
-
};
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|