@tennac-booking/sdk 1.0.89 → 1.0.90
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 +265 -247
- package/README.md +37 -12
- package/api.ts +2709 -1368
- package/dist/api.d.ts +1563 -557
- package/dist/api.js +739 -199
- package/dist/esm/api.d.ts +1563 -557
- package/dist/esm/api.js +734 -199
- package/docs/BookingPopulated.md +3 -3
- package/docs/ClubAnalyticsStaffApi.md +173 -0
- package/docs/{AddCreditsToCustomer200Response.md → ClubDaySchedule.md} +7 -5
- package/docs/ClubGeneralSettingsResponse.md +32 -0
- package/docs/ClubHoursSettingsResponse.md +22 -0
- package/docs/ClubLocationSettings.md +26 -0
- package/docs/ClubPlayerBookingItem.md +36 -0
- package/docs/ClubPlayerBookingsPagination.md +28 -0
- package/docs/ClubPlayerBookingsResponse.md +24 -0
- package/docs/ClubPlayerDetailResponse.md +46 -0
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponse.md +42 -0
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +28 -0
- package/docs/ClubPresentationSettingsResponse.md +26 -0
- package/docs/ClubPricingPeriodResponse.md +30 -0
- package/docs/ClubReservationSettingsResponse.md +28 -0
- package/docs/ClubSettingsManagerApi.md +54 -60
- package/docs/ClubSettingsStaffApi.md +183 -0
- package/docs/ClubWeeklySchedule.md +32 -0
- package/docs/ClubsManagerApi.md +52 -58
- package/docs/ClubsStaffApi.md +44 -0
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +1 -1
- package/docs/PartialClubWeeklySchedule.md +33 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
- package/docs/UpdateClubHoursSettingsRequest.md +22 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
- package/docs/UpdateClubReservationSettingsRequest.md +28 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/package.json +1 -1
- package/docs/AddCreditsToCustomerRequest.md +0 -22
- package/docs/ClubSettingsResponse.md +0 -39
- package/docs/CreateClubSettingsRequest.md +0 -34
- package/docs/DeleteClubSettingsResponse.md +0 -20
- package/docs/EventResponseCourtsInner.md +0 -18
- package/docs/UpdateClubSettingsRequest.md +0 -32
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ClubPresentationSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**tags** | **Array<string>** | | [default to undefined]
|
|
10
|
+
**bannerImages** | **Array<string>** | | [default to undefined]
|
|
11
|
+
**galleryImages** | **Array<string>** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubPresentationSettingsResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubPresentationSettingsResponse = {
|
|
19
|
+
description,
|
|
20
|
+
tags,
|
|
21
|
+
bannerImages,
|
|
22
|
+
galleryImages,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ClubPricingPeriodResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**days** | **Array<string>** | | [default to undefined]
|
|
11
|
+
**startTime** | **string** | | [default to undefined]
|
|
12
|
+
**endTime** | **string** | | [default to undefined]
|
|
13
|
+
**variation** | **number** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ClubPricingPeriodResponse } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ClubPricingPeriodResponse = {
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
days,
|
|
24
|
+
startTime,
|
|
25
|
+
endTime,
|
|
26
|
+
variation,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,28 @@
|
|
|
1
|
+
# ClubReservationSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**maxWeeklyBookings** | **number** | | [default to undefined]
|
|
9
|
+
**unlimitedWeeklyBookings** | **boolean** | | [default to undefined]
|
|
10
|
+
**sameTimeBookingsLimit** | **number** | | [default to undefined]
|
|
11
|
+
**cancellationDelayInHours** | **number** | | [default to undefined]
|
|
12
|
+
**bookingPeriodInDays** | **number** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ClubReservationSettingsResponse } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ClubReservationSettingsResponse = {
|
|
20
|
+
maxWeeklyBookings,
|
|
21
|
+
unlimitedWeeklyBookings,
|
|
22
|
+
sameTimeBookingsLimit,
|
|
23
|
+
cancellationDelayInHours,
|
|
24
|
+
bookingPeriodInDays,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -4,15 +4,14 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
7
|
+
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PUT** /api/club-settings/settings/general | |
|
|
8
|
+
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
9
|
+
|[**updatePresentationSettings**](#updatepresentationsettings) | **PUT** /api/club-settings/presentation | |
|
|
10
|
+
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
11
11
|
|
|
12
|
-
# **
|
|
13
|
-
>
|
|
12
|
+
# **updateClubGeneralSettings**
|
|
13
|
+
> ClubGeneralSettingsResponse updateClubGeneralSettings(updateClubGeneralSettingsRequest)
|
|
14
14
|
|
|
15
|
-
Crée les paramètres d\'un club
|
|
16
15
|
|
|
17
16
|
### Example
|
|
18
17
|
|
|
@@ -20,18 +19,16 @@ Crée les paramètres d\'un club
|
|
|
20
19
|
import {
|
|
21
20
|
ClubSettingsManagerApi,
|
|
22
21
|
Configuration,
|
|
23
|
-
|
|
22
|
+
UpdateClubGeneralSettingsRequest
|
|
24
23
|
} from '@tennac-booking/sdk';
|
|
25
24
|
|
|
26
25
|
const configuration = new Configuration();
|
|
27
26
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
28
27
|
|
|
29
|
-
let
|
|
30
|
-
let createClubSettingsRequest: CreateClubSettingsRequest; //
|
|
28
|
+
let updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest; //
|
|
31
29
|
|
|
32
|
-
const { status, data } = await apiInstance.
|
|
33
|
-
|
|
34
|
-
createClubSettingsRequest
|
|
30
|
+
const { status, data } = await apiInstance.updateClubGeneralSettings(
|
|
31
|
+
updateClubGeneralSettingsRequest
|
|
35
32
|
);
|
|
36
33
|
```
|
|
37
34
|
|
|
@@ -39,13 +36,12 @@ const { status, data } = await apiInstance.createClubSettings(
|
|
|
39
36
|
|
|
40
37
|
|Name | Type | Description | Notes|
|
|
41
38
|
|------------- | ------------- | ------------- | -------------|
|
|
42
|
-
| **
|
|
43
|
-
| **clubId** | [**string**] | | defaults to undefined|
|
|
39
|
+
| **updateClubGeneralSettingsRequest** | **UpdateClubGeneralSettingsRequest**| | |
|
|
44
40
|
|
|
45
41
|
|
|
46
42
|
### Return type
|
|
47
43
|
|
|
48
|
-
**
|
|
44
|
+
**ClubGeneralSettingsResponse**
|
|
49
45
|
|
|
50
46
|
### Authorization
|
|
51
47
|
|
|
@@ -60,39 +56,43 @@ const { status, data } = await apiInstance.createClubSettings(
|
|
|
60
56
|
### HTTP response details
|
|
61
57
|
| Status code | Description | Response headers |
|
|
62
58
|
|-------------|-------------|------------------|
|
|
63
|
-
|**
|
|
64
|
-
|**400** | Bad Request | - |
|
|
65
|
-
|**401** | Unauthorized | - |
|
|
66
|
-
|**500** | Server Error | - |
|
|
59
|
+
|**200** | Paramètres généraux mis à jour | - |
|
|
67
60
|
|
|
68
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)
|
|
69
62
|
|
|
70
|
-
# **
|
|
71
|
-
>
|
|
63
|
+
# **updateHoursSettings**
|
|
64
|
+
> ClubHoursSettingsResponse updateHoursSettings(updateClubHoursSettingsRequest)
|
|
72
65
|
|
|
73
|
-
Supprime les paramètres d\'un club
|
|
74
66
|
|
|
75
67
|
### Example
|
|
76
68
|
|
|
77
69
|
```typescript
|
|
78
70
|
import {
|
|
79
71
|
ClubSettingsManagerApi,
|
|
80
|
-
Configuration
|
|
72
|
+
Configuration,
|
|
73
|
+
UpdateClubHoursSettingsRequest
|
|
81
74
|
} from '@tennac-booking/sdk';
|
|
82
75
|
|
|
83
76
|
const configuration = new Configuration();
|
|
84
77
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
85
78
|
|
|
86
|
-
|
|
79
|
+
let updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest; //
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.updateHoursSettings(
|
|
82
|
+
updateClubHoursSettingsRequest
|
|
83
|
+
);
|
|
87
84
|
```
|
|
88
85
|
|
|
89
86
|
### Parameters
|
|
90
|
-
|
|
87
|
+
|
|
88
|
+
|Name | Type | Description | Notes|
|
|
89
|
+
|------------- | ------------- | ------------- | -------------|
|
|
90
|
+
| **updateClubHoursSettingsRequest** | **UpdateClubHoursSettingsRequest**| | |
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
### Return type
|
|
94
94
|
|
|
95
|
-
**
|
|
95
|
+
**ClubHoursSettingsResponse**
|
|
96
96
|
|
|
97
97
|
### Authorization
|
|
98
98
|
|
|
@@ -100,47 +100,50 @@ This endpoint does not have any parameters.
|
|
|
100
100
|
|
|
101
101
|
### HTTP request headers
|
|
102
102
|
|
|
103
|
-
- **Content-Type**:
|
|
103
|
+
- **Content-Type**: application/json
|
|
104
104
|
- **Accept**: application/json
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
### HTTP response details
|
|
108
108
|
| Status code | Description | Response headers |
|
|
109
109
|
|-------------|-------------|------------------|
|
|
110
|
-
|**200** |
|
|
111
|
-
|**400** | Bad Request | - |
|
|
112
|
-
|**401** | Unauthorized | - |
|
|
113
|
-
|**404** | Paramètres non trouvés | - |
|
|
114
|
-
|**500** | Server Error | - |
|
|
110
|
+
|**200** | Horaires du club mis à jour | - |
|
|
115
111
|
|
|
116
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)
|
|
117
113
|
|
|
118
|
-
# **
|
|
119
|
-
>
|
|
114
|
+
# **updatePresentationSettings**
|
|
115
|
+
> ClubPresentationSettingsResponse updatePresentationSettings(clubPresentationSettingsResponse)
|
|
120
116
|
|
|
121
|
-
Récupère les paramètres d\'un club
|
|
122
117
|
|
|
123
118
|
### Example
|
|
124
119
|
|
|
125
120
|
```typescript
|
|
126
121
|
import {
|
|
127
122
|
ClubSettingsManagerApi,
|
|
128
|
-
Configuration
|
|
123
|
+
Configuration,
|
|
124
|
+
ClubPresentationSettingsResponse
|
|
129
125
|
} from '@tennac-booking/sdk';
|
|
130
126
|
|
|
131
127
|
const configuration = new Configuration();
|
|
132
128
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
133
129
|
|
|
134
|
-
|
|
130
|
+
let clubPresentationSettingsResponse: ClubPresentationSettingsResponse; //
|
|
131
|
+
|
|
132
|
+
const { status, data } = await apiInstance.updatePresentationSettings(
|
|
133
|
+
clubPresentationSettingsResponse
|
|
134
|
+
);
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
### Parameters
|
|
138
|
-
|
|
138
|
+
|
|
139
|
+
|Name | Type | Description | Notes|
|
|
140
|
+
|------------- | ------------- | ------------- | -------------|
|
|
141
|
+
| **clubPresentationSettingsResponse** | **ClubPresentationSettingsResponse**| | |
|
|
139
142
|
|
|
140
143
|
|
|
141
144
|
### Return type
|
|
142
145
|
|
|
143
|
-
**
|
|
146
|
+
**ClubPresentationSettingsResponse**
|
|
144
147
|
|
|
145
148
|
### Authorization
|
|
146
149
|
|
|
@@ -148,25 +151,20 @@ This endpoint does not have any parameters.
|
|
|
148
151
|
|
|
149
152
|
### HTTP request headers
|
|
150
153
|
|
|
151
|
-
- **Content-Type**:
|
|
154
|
+
- **Content-Type**: application/json
|
|
152
155
|
- **Accept**: application/json
|
|
153
156
|
|
|
154
157
|
|
|
155
158
|
### HTTP response details
|
|
156
159
|
| Status code | Description | Response headers |
|
|
157
160
|
|-------------|-------------|------------------|
|
|
158
|
-
|**200** | Paramètres
|
|
159
|
-
|**400** | Bad Request | - |
|
|
160
|
-
|**401** | Unauthorized | - |
|
|
161
|
-
|**404** | Paramètres non trouvés | - |
|
|
162
|
-
|**500** | Server Error | - |
|
|
161
|
+
|**200** | Paramètres de présentation mis à jour | - |
|
|
163
162
|
|
|
164
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)
|
|
165
164
|
|
|
166
|
-
# **
|
|
167
|
-
>
|
|
165
|
+
# **updateReservationSettings**
|
|
166
|
+
> ClubReservationSettingsResponse updateReservationSettings(updateClubReservationSettingsRequest)
|
|
168
167
|
|
|
169
|
-
Met à jour les paramètres d\'un club
|
|
170
168
|
|
|
171
169
|
### Example
|
|
172
170
|
|
|
@@ -174,16 +172,16 @@ Met à jour les paramètres d\'un club
|
|
|
174
172
|
import {
|
|
175
173
|
ClubSettingsManagerApi,
|
|
176
174
|
Configuration,
|
|
177
|
-
|
|
175
|
+
UpdateClubReservationSettingsRequest
|
|
178
176
|
} from '@tennac-booking/sdk';
|
|
179
177
|
|
|
180
178
|
const configuration = new Configuration();
|
|
181
179
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
182
180
|
|
|
183
|
-
let
|
|
181
|
+
let updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest; //
|
|
184
182
|
|
|
185
|
-
const { status, data } = await apiInstance.
|
|
186
|
-
|
|
183
|
+
const { status, data } = await apiInstance.updateReservationSettings(
|
|
184
|
+
updateClubReservationSettingsRequest
|
|
187
185
|
);
|
|
188
186
|
```
|
|
189
187
|
|
|
@@ -191,12 +189,12 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
191
189
|
|
|
192
190
|
|Name | Type | Description | Notes|
|
|
193
191
|
|------------- | ------------- | ------------- | -------------|
|
|
194
|
-
| **
|
|
192
|
+
| **updateClubReservationSettingsRequest** | **UpdateClubReservationSettingsRequest**| | |
|
|
195
193
|
|
|
196
194
|
|
|
197
195
|
### Return type
|
|
198
196
|
|
|
199
|
-
**
|
|
197
|
+
**ClubReservationSettingsResponse**
|
|
200
198
|
|
|
201
199
|
### Authorization
|
|
202
200
|
|
|
@@ -211,11 +209,7 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
211
209
|
### HTTP response details
|
|
212
210
|
| Status code | Description | Response headers |
|
|
213
211
|
|-------------|-------------|------------------|
|
|
214
|
-
|**200** | Paramètres mis à jour | - |
|
|
215
|
-
|**400** | Bad Request | - |
|
|
216
|
-
|**401** | Unauthorized | - |
|
|
217
|
-
|**404** | Paramètres non trouvés | - |
|
|
218
|
-
|**500** | Server Error | - |
|
|
212
|
+
|**200** | Paramètres de réservation mis à jour | - |
|
|
219
213
|
|
|
220
214
|
[[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
215
|
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# ClubSettingsStaffApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getClubGeneralSettings**](#getclubgeneralsettings) | **GET** /api/club-settings/settings/general | |
|
|
8
|
+
|[**getHoursSettings**](#gethourssettings) | **GET** /api/club-settings/hours | |
|
|
9
|
+
|[**getPresentationSettings**](#getpresentationsettings) | **GET** /api/club-settings/presentation | |
|
|
10
|
+
|[**getReservationSettings**](#getreservationsettings) | **GET** /api/club-settings/reservation | |
|
|
11
|
+
|
|
12
|
+
# **getClubGeneralSettings**
|
|
13
|
+
> ClubGeneralSettingsResponse getClubGeneralSettings()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
ClubSettingsStaffApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.getClubGeneralSettings();
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Parameters
|
|
31
|
+
This endpoint does not have any parameters.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Return type
|
|
35
|
+
|
|
36
|
+
**ClubGeneralSettingsResponse**
|
|
37
|
+
|
|
38
|
+
### Authorization
|
|
39
|
+
|
|
40
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
41
|
+
|
|
42
|
+
### HTTP request headers
|
|
43
|
+
|
|
44
|
+
- **Content-Type**: Not defined
|
|
45
|
+
- **Accept**: application/json
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### HTTP response details
|
|
49
|
+
| Status code | Description | Response headers |
|
|
50
|
+
|-------------|-------------|------------------|
|
|
51
|
+
|**200** | Paramètres généraux du club | - |
|
|
52
|
+
|
|
53
|
+
[[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)
|
|
54
|
+
|
|
55
|
+
# **getHoursSettings**
|
|
56
|
+
> ClubHoursSettingsResponse getHoursSettings()
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Example
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
import {
|
|
63
|
+
ClubSettingsStaffApi,
|
|
64
|
+
Configuration
|
|
65
|
+
} from '@tennac-booking/sdk';
|
|
66
|
+
|
|
67
|
+
const configuration = new Configuration();
|
|
68
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
69
|
+
|
|
70
|
+
const { status, data } = await apiInstance.getHoursSettings();
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Parameters
|
|
74
|
+
This endpoint does not have any parameters.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Return type
|
|
78
|
+
|
|
79
|
+
**ClubHoursSettingsResponse**
|
|
80
|
+
|
|
81
|
+
### Authorization
|
|
82
|
+
|
|
83
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
84
|
+
|
|
85
|
+
### HTTP request headers
|
|
86
|
+
|
|
87
|
+
- **Content-Type**: Not defined
|
|
88
|
+
- **Accept**: application/json
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### HTTP response details
|
|
92
|
+
| Status code | Description | Response headers |
|
|
93
|
+
|-------------|-------------|------------------|
|
|
94
|
+
|**200** | Horaires du club | - |
|
|
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)
|
|
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
|
+
|
|
141
|
+
# **getReservationSettings**
|
|
142
|
+
> ClubReservationSettingsResponse getReservationSettings()
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Example
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
import {
|
|
149
|
+
ClubSettingsStaffApi,
|
|
150
|
+
Configuration
|
|
151
|
+
} from '@tennac-booking/sdk';
|
|
152
|
+
|
|
153
|
+
const configuration = new Configuration();
|
|
154
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
155
|
+
|
|
156
|
+
const { status, data } = await apiInstance.getReservationSettings();
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Parameters
|
|
160
|
+
This endpoint does not have any parameters.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Return type
|
|
164
|
+
|
|
165
|
+
**ClubReservationSettingsResponse**
|
|
166
|
+
|
|
167
|
+
### Authorization
|
|
168
|
+
|
|
169
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
170
|
+
|
|
171
|
+
### HTTP request headers
|
|
172
|
+
|
|
173
|
+
- **Content-Type**: Not defined
|
|
174
|
+
- **Accept**: application/json
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### HTTP response details
|
|
178
|
+
| Status code | Description | Response headers |
|
|
179
|
+
|-------------|-------------|------------------|
|
|
180
|
+
|**200** | Paramètres de réservation du club | - |
|
|
181
|
+
|
|
182
|
+
[[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)
|
|
183
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
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)
|
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -5,7 +5,6 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**addClubMember**](#addclubmember) | **POST** /api/clubs/members | |
|
|
8
|
-
|[**addCreditsToCustomer**](#addcreditstocustomer) | **POST** /api/clubs/customers/{userId}/credits | |
|
|
9
8
|
|[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/subscription-plans/{priceId}/archive-price | |
|
|
10
9
|
|[**createActuality**](#createactuality) | **POST** /api/clubs/actualities | |
|
|
11
10
|
|[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/courts | |
|
|
@@ -21,6 +20,7 @@ All URIs are relative to *http://localhost*
|
|
|
21
20
|
|[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
|
|
22
21
|
|[**updateClub**](#updateclub) | **PUT** /api/clubs | |
|
|
23
22
|
|[**updateClubInfos**](#updateclubinfos) | **PUT** /api/clubs/infos | |
|
|
23
|
+
|[**updateClubPresentationSettings**](#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation | |
|
|
24
24
|
|[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | |
|
|
25
25
|
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | |
|
|
26
26
|
|
|
@@ -79,63 +79,6 @@ const { status, data } = await apiInstance.addClubMember(
|
|
|
79
79
|
|
|
80
80
|
[[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)
|
|
81
81
|
|
|
82
|
-
# **addCreditsToCustomer**
|
|
83
|
-
> AddCreditsToCustomer200Response addCreditsToCustomer(addCreditsToCustomerRequest)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
### Example
|
|
87
|
-
|
|
88
|
-
```typescript
|
|
89
|
-
import {
|
|
90
|
-
ClubsManagerApi,
|
|
91
|
-
Configuration,
|
|
92
|
-
AddCreditsToCustomerRequest
|
|
93
|
-
} from '@tennac-booking/sdk';
|
|
94
|
-
|
|
95
|
-
const configuration = new Configuration();
|
|
96
|
-
const apiInstance = new ClubsManagerApi(configuration);
|
|
97
|
-
|
|
98
|
-
let userId: string; // (default to undefined)
|
|
99
|
-
let addCreditsToCustomerRequest: AddCreditsToCustomerRequest; //
|
|
100
|
-
|
|
101
|
-
const { status, data } = await apiInstance.addCreditsToCustomer(
|
|
102
|
-
userId,
|
|
103
|
-
addCreditsToCustomerRequest
|
|
104
|
-
);
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Parameters
|
|
108
|
-
|
|
109
|
-
|Name | Type | Description | Notes|
|
|
110
|
-
|------------- | ------------- | ------------- | -------------|
|
|
111
|
-
| **addCreditsToCustomerRequest** | **AddCreditsToCustomerRequest**| | |
|
|
112
|
-
| **userId** | [**string**] | | defaults to undefined|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Return type
|
|
116
|
-
|
|
117
|
-
**AddCreditsToCustomer200Response**
|
|
118
|
-
|
|
119
|
-
### Authorization
|
|
120
|
-
|
|
121
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
122
|
-
|
|
123
|
-
### HTTP request headers
|
|
124
|
-
|
|
125
|
-
- **Content-Type**: application/json
|
|
126
|
-
- **Accept**: application/json
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### HTTP response details
|
|
130
|
-
| Status code | Description | Response headers |
|
|
131
|
-
|-------------|-------------|------------------|
|
|
132
|
-
|**200** | Crédits mis à jour | - |
|
|
133
|
-
|**400** | Bad Request | - |
|
|
134
|
-
|**404** | ClubCustomer non trouvé | - |
|
|
135
|
-
|**500** | Server Error | - |
|
|
136
|
-
|
|
137
|
-
[[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)
|
|
138
|
-
|
|
139
82
|
# **archivePriceForSubscriptionPlan**
|
|
140
83
|
> UpdateSubscriptionPlanForClub200Response archivePriceForSubscriptionPlan()
|
|
141
84
|
|
|
@@ -900,6 +843,57 @@ const { status, data } = await apiInstance.updateClubInfos(
|
|
|
900
843
|
|
|
901
844
|
[[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)
|
|
902
845
|
|
|
846
|
+
# **updateClubPresentationSettings**
|
|
847
|
+
> ClubPresentationSettingsResponse updateClubPresentationSettings(updateClubPresentationSettingsRequest)
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
### Example
|
|
851
|
+
|
|
852
|
+
```typescript
|
|
853
|
+
import {
|
|
854
|
+
ClubsManagerApi,
|
|
855
|
+
Configuration,
|
|
856
|
+
UpdateClubPresentationSettingsRequest
|
|
857
|
+
} from '@tennac-booking/sdk';
|
|
858
|
+
|
|
859
|
+
const configuration = new Configuration();
|
|
860
|
+
const apiInstance = new ClubsManagerApi(configuration);
|
|
861
|
+
|
|
862
|
+
let updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest; //
|
|
863
|
+
|
|
864
|
+
const { status, data } = await apiInstance.updateClubPresentationSettings(
|
|
865
|
+
updateClubPresentationSettingsRequest
|
|
866
|
+
);
|
|
867
|
+
```
|
|
868
|
+
|
|
869
|
+
### Parameters
|
|
870
|
+
|
|
871
|
+
|Name | Type | Description | Notes|
|
|
872
|
+
|------------- | ------------- | ------------- | -------------|
|
|
873
|
+
| **updateClubPresentationSettingsRequest** | **UpdateClubPresentationSettingsRequest**| | |
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
### Return type
|
|
877
|
+
|
|
878
|
+
**ClubPresentationSettingsResponse**
|
|
879
|
+
|
|
880
|
+
### Authorization
|
|
881
|
+
|
|
882
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
883
|
+
|
|
884
|
+
### HTTP request headers
|
|
885
|
+
|
|
886
|
+
- **Content-Type**: application/json
|
|
887
|
+
- **Accept**: application/json
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
### HTTP response details
|
|
891
|
+
| Status code | Description | Response headers |
|
|
892
|
+
|-------------|-------------|------------------|
|
|
893
|
+
|**200** | Présentation mise à jour | - |
|
|
894
|
+
|
|
895
|
+
[[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)
|
|
896
|
+
|
|
903
897
|
# **updateCourt**
|
|
904
898
|
> any updateCourt(body)
|
|
905
899
|
|