@tennac-booking/sdk 1.0.87 → 1.0.88
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/README.md +2 -1
- package/api.ts +110 -48
- package/dist/api.d.ts +57 -32
- package/dist/api.js +94 -36
- package/dist/esm/api.d.ts +57 -32
- package/dist/esm/api.js +94 -36
- package/docs/ClubSettingsManagerApi.md +19 -24
- package/docs/ClubSettingsStaffApi.md +44 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -2810,15 +2810,15 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2810
2810
|
};
|
|
2811
2811
|
}),
|
|
2812
2812
|
/**
|
|
2813
|
-
*
|
|
2814
|
-
* @param {
|
|
2813
|
+
*
|
|
2814
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2815
2815
|
* @param {*} [options] Override http request option.
|
|
2816
2816
|
* @throws {RequiredError}
|
|
2817
2817
|
*/
|
|
2818
|
-
|
|
2819
|
-
// verify required parameter '
|
|
2820
|
-
assertParamExists('
|
|
2821
|
-
const localVarPath = `/api/club-settings`;
|
|
2818
|
+
updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
|
|
2819
|
+
// verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
|
|
2820
|
+
assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
|
|
2821
|
+
const localVarPath = `/api/club-settings/hours`;
|
|
2822
2822
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2823
2823
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2824
2824
|
let baseOptions;
|
|
@@ -2835,7 +2835,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2835
2835
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2836
2836
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2837
2837
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2838
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2838
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
|
|
2839
2839
|
return {
|
|
2840
2840
|
url: toPathString(localVarUrlObj),
|
|
2841
2841
|
options: localVarRequestOptions,
|
|
@@ -2843,14 +2843,14 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2843
2843
|
}),
|
|
2844
2844
|
/**
|
|
2845
2845
|
*
|
|
2846
|
-
* @param {
|
|
2846
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
2847
2847
|
* @param {*} [options] Override http request option.
|
|
2848
2848
|
* @throws {RequiredError}
|
|
2849
2849
|
*/
|
|
2850
|
-
|
|
2851
|
-
// verify required parameter '
|
|
2852
|
-
assertParamExists('
|
|
2853
|
-
const localVarPath = `/api/club-settings/
|
|
2850
|
+
updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
|
|
2851
|
+
// verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
|
|
2852
|
+
assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
|
|
2853
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
2854
2854
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2855
2855
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2856
2856
|
let baseOptions;
|
|
@@ -2867,7 +2867,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
2867
2867
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2868
2868
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2869
2869
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2870
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2870
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
|
|
2871
2871
|
return {
|
|
2872
2872
|
url: toPathString(localVarUrlObj),
|
|
2873
2873
|
options: localVarRequestOptions,
|
|
@@ -2930,32 +2930,32 @@ export const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
2930
2930
|
});
|
|
2931
2931
|
},
|
|
2932
2932
|
/**
|
|
2933
|
-
*
|
|
2934
|
-
* @param {
|
|
2933
|
+
*
|
|
2934
|
+
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
2935
2935
|
* @param {*} [options] Override http request option.
|
|
2936
2936
|
* @throws {RequiredError}
|
|
2937
2937
|
*/
|
|
2938
|
-
|
|
2938
|
+
updateHoursSettings(updateClubHoursSettingsRequest, options) {
|
|
2939
2939
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2940
2940
|
var _a, _b, _c;
|
|
2941
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
|
|
2942
2942
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2943
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
2943
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2944
2944
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2945
2945
|
});
|
|
2946
2946
|
},
|
|
2947
2947
|
/**
|
|
2948
2948
|
*
|
|
2949
|
-
* @param {
|
|
2949
|
+
* @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
|
|
2950
2950
|
* @param {*} [options] Override http request option.
|
|
2951
2951
|
* @throws {RequiredError}
|
|
2952
2952
|
*/
|
|
2953
|
-
|
|
2953
|
+
updatePresentationSettings(clubPresentationSettingsResponse, options) {
|
|
2954
2954
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2955
2955
|
var _a, _b, _c;
|
|
2956
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
|
|
2957
2957
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2958
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.
|
|
2958
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2959
2959
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2960
2960
|
});
|
|
2961
2961
|
},
|
|
@@ -2993,22 +2993,22 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
|
|
|
2993
2993
|
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2994
2994
|
},
|
|
2995
2995
|
/**
|
|
2996
|
-
*
|
|
2997
|
-
* @param {
|
|
2996
|
+
*
|
|
2997
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
2998
2998
|
* @param {*} [options] Override http request option.
|
|
2999
2999
|
* @throws {RequiredError}
|
|
3000
3000
|
*/
|
|
3001
|
-
|
|
3002
|
-
return localVarFp.
|
|
3001
|
+
updateHoursSettings(requestParameters, options) {
|
|
3002
|
+
return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3003
3003
|
},
|
|
3004
3004
|
/**
|
|
3005
3005
|
*
|
|
3006
|
-
* @param {
|
|
3006
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3007
3007
|
* @param {*} [options] Override http request option.
|
|
3008
3008
|
* @throws {RequiredError}
|
|
3009
3009
|
*/
|
|
3010
|
-
|
|
3011
|
-
return localVarFp.
|
|
3010
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3011
|
+
return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
|
|
3012
3012
|
},
|
|
3013
3013
|
/**
|
|
3014
3014
|
*
|
|
@@ -3039,24 +3039,24 @@ export class ClubSettingsManagerApi extends BaseAPI {
|
|
|
3039
3039
|
return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3040
3040
|
}
|
|
3041
3041
|
/**
|
|
3042
|
-
*
|
|
3043
|
-
* @param {
|
|
3042
|
+
*
|
|
3043
|
+
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
3044
3044
|
* @param {*} [options] Override http request option.
|
|
3045
3045
|
* @throws {RequiredError}
|
|
3046
3046
|
* @memberof ClubSettingsManagerApi
|
|
3047
3047
|
*/
|
|
3048
|
-
|
|
3049
|
-
return ClubSettingsManagerApiFp(this.configuration).
|
|
3048
|
+
updateHoursSettings(requestParameters, options) {
|
|
3049
|
+
return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3050
3050
|
}
|
|
3051
3051
|
/**
|
|
3052
3052
|
*
|
|
3053
|
-
* @param {
|
|
3053
|
+
* @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
|
|
3054
3054
|
* @param {*} [options] Override http request option.
|
|
3055
3055
|
* @throws {RequiredError}
|
|
3056
3056
|
* @memberof ClubSettingsManagerApi
|
|
3057
3057
|
*/
|
|
3058
|
-
|
|
3059
|
-
return ClubSettingsManagerApiFp(this.configuration).
|
|
3058
|
+
updatePresentationSettings(requestParameters, options) {
|
|
3059
|
+
return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
|
|
3060
3060
|
}
|
|
3061
3061
|
/**
|
|
3062
3062
|
*
|
|
@@ -3129,6 +3129,33 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
3129
3129
|
options: localVarRequestOptions,
|
|
3130
3130
|
};
|
|
3131
3131
|
}),
|
|
3132
|
+
/**
|
|
3133
|
+
*
|
|
3134
|
+
* @param {*} [options] Override http request option.
|
|
3135
|
+
* @throws {RequiredError}
|
|
3136
|
+
*/
|
|
3137
|
+
getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3138
|
+
const localVarPath = `/api/club-settings/presentation`;
|
|
3139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3141
|
+
let baseOptions;
|
|
3142
|
+
if (configuration) {
|
|
3143
|
+
baseOptions = configuration.baseOptions;
|
|
3144
|
+
}
|
|
3145
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3146
|
+
const localVarHeaderParameter = {};
|
|
3147
|
+
const localVarQueryParameter = {};
|
|
3148
|
+
// authentication bearerAuth required
|
|
3149
|
+
// http bearer authentication required
|
|
3150
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3153
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3154
|
+
return {
|
|
3155
|
+
url: toPathString(localVarUrlObj),
|
|
3156
|
+
options: localVarRequestOptions,
|
|
3157
|
+
};
|
|
3158
|
+
}),
|
|
3132
3159
|
/**
|
|
3133
3160
|
*
|
|
3134
3161
|
* @param {*} [options] Override http request option.
|
|
@@ -3193,6 +3220,20 @@ export const ClubSettingsStaffApiFp = function (configuration) {
|
|
|
3193
3220
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3194
3221
|
});
|
|
3195
3222
|
},
|
|
3223
|
+
/**
|
|
3224
|
+
*
|
|
3225
|
+
* @param {*} [options] Override http request option.
|
|
3226
|
+
* @throws {RequiredError}
|
|
3227
|
+
*/
|
|
3228
|
+
getPresentationSettings(options) {
|
|
3229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3230
|
+
var _a, _b, _c;
|
|
3231
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
|
|
3232
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3233
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3234
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3235
|
+
});
|
|
3236
|
+
},
|
|
3196
3237
|
/**
|
|
3197
3238
|
*
|
|
3198
3239
|
* @param {*} [options] Override http request option.
|
|
@@ -3232,6 +3273,14 @@ export const ClubSettingsStaffApiFactory = function (configuration, basePath, ax
|
|
|
3232
3273
|
getHoursSettings(options) {
|
|
3233
3274
|
return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
|
|
3234
3275
|
},
|
|
3276
|
+
/**
|
|
3277
|
+
*
|
|
3278
|
+
* @param {*} [options] Override http request option.
|
|
3279
|
+
* @throws {RequiredError}
|
|
3280
|
+
*/
|
|
3281
|
+
getPresentationSettings(options) {
|
|
3282
|
+
return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
|
|
3283
|
+
},
|
|
3235
3284
|
/**
|
|
3236
3285
|
*
|
|
3237
3286
|
* @param {*} [options] Override http request option.
|
|
@@ -3267,6 +3316,15 @@ export class ClubSettingsStaffApi extends BaseAPI {
|
|
|
3267
3316
|
getHoursSettings(options) {
|
|
3268
3317
|
return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3269
3318
|
}
|
|
3319
|
+
/**
|
|
3320
|
+
*
|
|
3321
|
+
* @param {*} [options] Override http request option.
|
|
3322
|
+
* @throws {RequiredError}
|
|
3323
|
+
* @memberof ClubSettingsStaffApi
|
|
3324
|
+
*/
|
|
3325
|
+
getPresentationSettings(options) {
|
|
3326
|
+
return ClubSettingsStaffApiFp(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3327
|
+
}
|
|
3270
3328
|
/**
|
|
3271
3329
|
*
|
|
3272
3330
|
* @param {*} [options] Override http request option.
|
|
@@ -5,8 +5,8 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PUT** /api/club-settings/settings/general | |
|
|
8
|
-
|[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | |
|
|
9
8
|
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
9
|
+
|[**updatePresentationSettings**](#updatepresentationsettings) | **PUT** /api/club-settings/presentation | |
|
|
10
10
|
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
11
11
|
|
|
12
12
|
# **updateClubGeneralSettings**
|
|
@@ -60,10 +60,9 @@ const { status, data } = await apiInstance.updateClubGeneralSettings(
|
|
|
60
60
|
|
|
61
61
|
[[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)
|
|
62
62
|
|
|
63
|
-
# **
|
|
64
|
-
>
|
|
63
|
+
# **updateHoursSettings**
|
|
64
|
+
> ClubHoursSettingsResponse updateHoursSettings(updateClubHoursSettingsRequest)
|
|
65
65
|
|
|
66
|
-
Met à jour les paramètres d\'un club
|
|
67
66
|
|
|
68
67
|
### Example
|
|
69
68
|
|
|
@@ -71,16 +70,16 @@ Met à jour les paramètres d\'un club
|
|
|
71
70
|
import {
|
|
72
71
|
ClubSettingsManagerApi,
|
|
73
72
|
Configuration,
|
|
74
|
-
|
|
73
|
+
UpdateClubHoursSettingsRequest
|
|
75
74
|
} from '@tennac-booking/sdk';
|
|
76
75
|
|
|
77
76
|
const configuration = new Configuration();
|
|
78
77
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
79
78
|
|
|
80
|
-
let
|
|
79
|
+
let updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest; //
|
|
81
80
|
|
|
82
|
-
const { status, data } = await apiInstance.
|
|
83
|
-
|
|
81
|
+
const { status, data } = await apiInstance.updateHoursSettings(
|
|
82
|
+
updateClubHoursSettingsRequest
|
|
84
83
|
);
|
|
85
84
|
```
|
|
86
85
|
|
|
@@ -88,12 +87,12 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
88
87
|
|
|
89
88
|
|Name | Type | Description | Notes|
|
|
90
89
|
|------------- | ------------- | ------------- | -------------|
|
|
91
|
-
| **
|
|
90
|
+
| **updateClubHoursSettingsRequest** | **UpdateClubHoursSettingsRequest**| | |
|
|
92
91
|
|
|
93
92
|
|
|
94
93
|
### Return type
|
|
95
94
|
|
|
96
|
-
**
|
|
95
|
+
**ClubHoursSettingsResponse**
|
|
97
96
|
|
|
98
97
|
### Authorization
|
|
99
98
|
|
|
@@ -108,16 +107,12 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
108
107
|
### HTTP response details
|
|
109
108
|
| Status code | Description | Response headers |
|
|
110
109
|
|-------------|-------------|------------------|
|
|
111
|
-
|**200** |
|
|
112
|
-
|**400** | Bad Request | - |
|
|
113
|
-
|**401** | Unauthorized | - |
|
|
114
|
-
|**404** | Paramètres non trouvés | - |
|
|
115
|
-
|**500** | Server Error | - |
|
|
110
|
+
|**200** | Horaires du club mis à jour | - |
|
|
116
111
|
|
|
117
112
|
[[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)
|
|
118
113
|
|
|
119
|
-
# **
|
|
120
|
-
>
|
|
114
|
+
# **updatePresentationSettings**
|
|
115
|
+
> ClubPresentationSettingsResponse updatePresentationSettings(clubPresentationSettingsResponse)
|
|
121
116
|
|
|
122
117
|
|
|
123
118
|
### Example
|
|
@@ -126,16 +121,16 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
126
121
|
import {
|
|
127
122
|
ClubSettingsManagerApi,
|
|
128
123
|
Configuration,
|
|
129
|
-
|
|
124
|
+
ClubPresentationSettingsResponse
|
|
130
125
|
} from '@tennac-booking/sdk';
|
|
131
126
|
|
|
132
127
|
const configuration = new Configuration();
|
|
133
128
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
134
129
|
|
|
135
|
-
let
|
|
130
|
+
let clubPresentationSettingsResponse: ClubPresentationSettingsResponse; //
|
|
136
131
|
|
|
137
|
-
const { status, data } = await apiInstance.
|
|
138
|
-
|
|
132
|
+
const { status, data } = await apiInstance.updatePresentationSettings(
|
|
133
|
+
clubPresentationSettingsResponse
|
|
139
134
|
);
|
|
140
135
|
```
|
|
141
136
|
|
|
@@ -143,12 +138,12 @@ const { status, data } = await apiInstance.updateHoursSettings(
|
|
|
143
138
|
|
|
144
139
|
|Name | Type | Description | Notes|
|
|
145
140
|
|------------- | ------------- | ------------- | -------------|
|
|
146
|
-
| **
|
|
141
|
+
| **clubPresentationSettingsResponse** | **ClubPresentationSettingsResponse**| | |
|
|
147
142
|
|
|
148
143
|
|
|
149
144
|
### Return type
|
|
150
145
|
|
|
151
|
-
**
|
|
146
|
+
**ClubPresentationSettingsResponse**
|
|
152
147
|
|
|
153
148
|
### Authorization
|
|
154
149
|
|
|
@@ -163,7 +158,7 @@ const { status, data } = await apiInstance.updateHoursSettings(
|
|
|
163
158
|
### HTTP response details
|
|
164
159
|
| Status code | Description | Response headers |
|
|
165
160
|
|-------------|-------------|------------------|
|
|
166
|
-
|**200** |
|
|
161
|
+
|**200** | Paramètres de présentation mis à jour | - |
|
|
167
162
|
|
|
168
163
|
[[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)
|
|
169
164
|
|
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getClubGeneralSettings**](#getclubgeneralsettings) | **GET** /api/club-settings/settings/general | |
|
|
8
8
|
|[**getHoursSettings**](#gethourssettings) | **GET** /api/club-settings/hours | |
|
|
9
|
+
|[**getPresentationSettings**](#getpresentationsettings) | **GET** /api/club-settings/presentation | |
|
|
9
10
|
|[**getReservationSettings**](#getreservationsettings) | **GET** /api/club-settings/reservation | |
|
|
10
11
|
|
|
11
12
|
# **getClubGeneralSettings**
|
|
@@ -94,6 +95,49 @@ This endpoint does not have any parameters.
|
|
|
94
95
|
|
|
95
96
|
[[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)
|
|
96
97
|
|
|
98
|
+
# **getPresentationSettings**
|
|
99
|
+
> ClubPresentationSettingsResponse getPresentationSettings()
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Example
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
import {
|
|
106
|
+
ClubSettingsStaffApi,
|
|
107
|
+
Configuration
|
|
108
|
+
} from '@tennac-booking/sdk';
|
|
109
|
+
|
|
110
|
+
const configuration = new Configuration();
|
|
111
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
112
|
+
|
|
113
|
+
const { status, data } = await apiInstance.getPresentationSettings();
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Parameters
|
|
117
|
+
This endpoint does not have any parameters.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Return type
|
|
121
|
+
|
|
122
|
+
**ClubPresentationSettingsResponse**
|
|
123
|
+
|
|
124
|
+
### Authorization
|
|
125
|
+
|
|
126
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
127
|
+
|
|
128
|
+
### HTTP request headers
|
|
129
|
+
|
|
130
|
+
- **Content-Type**: Not defined
|
|
131
|
+
- **Accept**: application/json
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### HTTP response details
|
|
135
|
+
| Status code | Description | Response headers |
|
|
136
|
+
|-------------|-------------|------------------|
|
|
137
|
+
|**200** | Paramètres de présentation du club | - |
|
|
138
|
+
|
|
139
|
+
[[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)
|
|
140
|
+
|
|
97
141
|
# **getReservationSettings**
|
|
98
142
|
> ClubReservationSettingsResponse getReservationSettings()
|
|
99
143
|
|