@tennac-booking/sdk 1.0.83 → 1.0.84
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 +14 -42
- package/README.md +17 -57
- package/api.ts +1063 -2958
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +860 -2258
- package/dist/api.js +193 -961
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +860 -2258
- package/dist/esm/api.js +186 -954
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingClubInfo.md +28 -0
- package/docs/{ConfirmPaymentMethodRequestBody.md → BookingCourtInfo.md} +7 -5
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/BookingPopulated.md +2 -2
- package/docs/{ClubDaySchedule.md → BookingPriceBody.md} +7 -7
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/{AddPaymentMethodRequestBody.md → BookingSportInfo.md} +7 -5
- package/docs/BookingSummary.md +54 -2
- package/docs/BookingsApi.md +55 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -173
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubSettingsManagerApi.md +0 -104
- package/docs/ClubSettingsResponse.md +0 -2
- package/docs/ClubsManagerApi.md +0 -104
- package/docs/ClubsStaffApi.md +0 -88
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/CreateEventRequest.md +1 -3
- package/docs/EventResponse.md +1 -1
- package/docs/{SetupPaymentMethodRequestBody.md → EventResponseCourtsInner.md} +3 -5
- package/docs/IUserAttributes.md +2 -12
- package/docs/InvoiceStatus.md +22 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/QuickReservationClubSport.md +22 -0
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserBookingsResponse.md +28 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +4 -160
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingDetailResponse.md +0 -46
- package/docs/ClubGeneralSettingsResponse.md +0 -34
- package/docs/ClubHoursSettingsResponse.md +0 -22
- package/docs/ClubLocationSettings.md +0 -26
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsPagination.md +0 -28
- package/docs/ClubPlayerBookingsResponse.md +0 -24
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ClubPresentationSettingsResponse.md +0 -26
- package/docs/ClubPricingPeriodResponse.md +0 -30
- package/docs/ClubReservationAccessSettingsResponse.md +0 -26
- package/docs/ClubReservationSettingsResponse.md +0 -36
- package/docs/ClubSettingsStaffApi.md +0 -95
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/HotelAccessSettings.md +0 -26
- package/docs/PartialClubWeeklySchedule.md +0 -33
- package/docs/PartialHotelAccessSettings.md +0 -27
- package/docs/PartialPaymentRequirementsSettings.md +0 -23
- package/docs/PartialPublicAccessPartialPublicAccessSettingsSchoolAccessPartialSchoolAccessSettingsHotelAccessPartialHotelAccessSettingsPaymentRequirementsPartialPaymentRequirementsSettings.md +0 -27
- package/docs/PartialPublicAccessSettings.md +0 -25
- package/docs/PartialSchoolAccessSettings.md +0 -25
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/PaymentRequirementsSettings.md +0 -22
- package/docs/PublicAccessSettings.md +0 -24
- package/docs/SchoolAccessSettings.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
- package/docs/UpdateClubHoursSettingsRequest.md +0 -22
- package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
- package/docs/UpdateClubReservationSettingsRequest.md +0 -34
|
@@ -5,9 +5,6 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getAnalyticsBySport**](#getanalyticsbysport) | **GET** /api/club-analytics/sport/{sportId}/analytics | |
|
|
8
|
-
|[**getClubPlayerBookingsById**](#getclubplayerbookingsbyid) | **GET** /api/club-analytics/players/{playerId}/bookings | |
|
|
9
|
-
|[**getClubPlayerById**](#getclubplayerbyid) | **GET** /api/club-analytics/players/{playerId} | |
|
|
10
|
-
|[**getClubPlayerStatisticsById**](#getclubplayerstatisticsbyid) | **GET** /api/club-analytics/players/{playerId}/statistics | |
|
|
11
8
|
|[**getClubPlayers**](#getclubplayers) | **GET** /api/club-analytics/players | |
|
|
12
9
|
|[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/club-analytics/daily-turnover | |
|
|
13
10
|
|[**getGenderPercentage**](#getgenderpercentage) | **GET** /api/club-analytics/gender-percentage | |
|
|
@@ -72,176 +69,6 @@ const { status, data } = await apiInstance.getAnalyticsBySport(
|
|
|
72
69
|
|
|
73
70
|
[[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)
|
|
74
71
|
|
|
75
|
-
# **getClubPlayerBookingsById**
|
|
76
|
-
> ClubPlayerBookingsResponse getClubPlayerBookingsById()
|
|
77
|
-
|
|
78
|
-
Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
79
|
-
|
|
80
|
-
### Example
|
|
81
|
-
|
|
82
|
-
```typescript
|
|
83
|
-
import {
|
|
84
|
-
ClubAnalyticsStaffApi,
|
|
85
|
-
Configuration
|
|
86
|
-
} from '@tennac-booking/sdk';
|
|
87
|
-
|
|
88
|
-
const configuration = new Configuration();
|
|
89
|
-
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
90
|
-
|
|
91
|
-
let playerId: string; // (default to undefined)
|
|
92
|
-
let page: number; // (optional) (default to undefined)
|
|
93
|
-
let pageSize: number; // (optional) (default to undefined)
|
|
94
|
-
|
|
95
|
-
const { status, data } = await apiInstance.getClubPlayerBookingsById(
|
|
96
|
-
playerId,
|
|
97
|
-
page,
|
|
98
|
-
pageSize
|
|
99
|
-
);
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Parameters
|
|
103
|
-
|
|
104
|
-
|Name | Type | Description | Notes|
|
|
105
|
-
|------------- | ------------- | ------------- | -------------|
|
|
106
|
-
| **playerId** | [**string**] | | defaults to undefined|
|
|
107
|
-
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
108
|
-
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
### Return type
|
|
112
|
-
|
|
113
|
-
**ClubPlayerBookingsResponse**
|
|
114
|
-
|
|
115
|
-
### Authorization
|
|
116
|
-
|
|
117
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
118
|
-
|
|
119
|
-
### HTTP request headers
|
|
120
|
-
|
|
121
|
-
- **Content-Type**: Not defined
|
|
122
|
-
- **Accept**: application/json
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
### HTTP response details
|
|
126
|
-
| Status code | Description | Response headers |
|
|
127
|
-
|-------------|-------------|------------------|
|
|
128
|
-
|**200** | Réservations du joueur | - |
|
|
129
|
-
|**400** | Bad Request | - |
|
|
130
|
-
|**401** | Unauthorized | - |
|
|
131
|
-
|**500** | Server Error | - |
|
|
132
|
-
|
|
133
|
-
[[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)
|
|
134
|
-
|
|
135
|
-
# **getClubPlayerById**
|
|
136
|
-
> ClubPlayerDetailResponse getClubPlayerById()
|
|
137
|
-
|
|
138
|
-
Récupère les informations détaillées d\'un joueur par son ID
|
|
139
|
-
|
|
140
|
-
### Example
|
|
141
|
-
|
|
142
|
-
```typescript
|
|
143
|
-
import {
|
|
144
|
-
ClubAnalyticsStaffApi,
|
|
145
|
-
Configuration
|
|
146
|
-
} from '@tennac-booking/sdk';
|
|
147
|
-
|
|
148
|
-
const configuration = new Configuration();
|
|
149
|
-
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
150
|
-
|
|
151
|
-
let playerId: string; // (default to undefined)
|
|
152
|
-
|
|
153
|
-
const { status, data } = await apiInstance.getClubPlayerById(
|
|
154
|
-
playerId
|
|
155
|
-
);
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
### Parameters
|
|
159
|
-
|
|
160
|
-
|Name | Type | Description | Notes|
|
|
161
|
-
|------------- | ------------- | ------------- | -------------|
|
|
162
|
-
| **playerId** | [**string**] | | defaults to undefined|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
### Return type
|
|
166
|
-
|
|
167
|
-
**ClubPlayerDetailResponse**
|
|
168
|
-
|
|
169
|
-
### Authorization
|
|
170
|
-
|
|
171
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
172
|
-
|
|
173
|
-
### HTTP request headers
|
|
174
|
-
|
|
175
|
-
- **Content-Type**: Not defined
|
|
176
|
-
- **Accept**: application/json
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
### HTTP response details
|
|
180
|
-
| Status code | Description | Response headers |
|
|
181
|
-
|-------------|-------------|------------------|
|
|
182
|
-
|**200** | Informations du joueur | - |
|
|
183
|
-
|**400** | Bad Request | - |
|
|
184
|
-
|**401** | Unauthorized | - |
|
|
185
|
-
|**404** | Not Found | - |
|
|
186
|
-
|**500** | Server Error | - |
|
|
187
|
-
|
|
188
|
-
[[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)
|
|
189
|
-
|
|
190
|
-
# **getClubPlayerStatisticsById**
|
|
191
|
-
> ClubPlayerStatisticsResponse getClubPlayerStatisticsById()
|
|
192
|
-
|
|
193
|
-
Récupère les statistiques d\'un joueur pour le staff
|
|
194
|
-
|
|
195
|
-
### Example
|
|
196
|
-
|
|
197
|
-
```typescript
|
|
198
|
-
import {
|
|
199
|
-
ClubAnalyticsStaffApi,
|
|
200
|
-
Configuration
|
|
201
|
-
} from '@tennac-booking/sdk';
|
|
202
|
-
|
|
203
|
-
const configuration = new Configuration();
|
|
204
|
-
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
205
|
-
|
|
206
|
-
let playerId: string; // (default to undefined)
|
|
207
|
-
|
|
208
|
-
const { status, data } = await apiInstance.getClubPlayerStatisticsById(
|
|
209
|
-
playerId
|
|
210
|
-
);
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
### Parameters
|
|
214
|
-
|
|
215
|
-
|Name | Type | Description | Notes|
|
|
216
|
-
|------------- | ------------- | ------------- | -------------|
|
|
217
|
-
| **playerId** | [**string**] | | defaults to undefined|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
### Return type
|
|
221
|
-
|
|
222
|
-
**ClubPlayerStatisticsResponse**
|
|
223
|
-
|
|
224
|
-
### Authorization
|
|
225
|
-
|
|
226
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
227
|
-
|
|
228
|
-
### HTTP request headers
|
|
229
|
-
|
|
230
|
-
- **Content-Type**: Not defined
|
|
231
|
-
- **Accept**: application/json
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
### HTTP response details
|
|
235
|
-
| Status code | Description | Response headers |
|
|
236
|
-
|-------------|-------------|------------------|
|
|
237
|
-
|**200** | Statistiques du joueur | - |
|
|
238
|
-
|**400** | Bad Request | - |
|
|
239
|
-
|**401** | Unauthorized | - |
|
|
240
|
-
|**404** | Not Found | - |
|
|
241
|
-
|**500** | Server Error | - |
|
|
242
|
-
|
|
243
|
-
[[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)
|
|
244
|
-
|
|
245
72
|
# **getClubPlayers**
|
|
246
73
|
> Array<ClubPlayerResponse> getClubPlayers()
|
|
247
74
|
|
package/docs/ClubResponse.md
CHANGED
|
@@ -19,6 +19,10 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
20
20
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
21
21
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
22
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
23
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
24
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
25
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
22
26
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
23
27
|
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
24
28
|
|
|
@@ -42,6 +46,10 @@ const instance: ClubResponse = {
|
|
|
42
46
|
clubDashBoardUrl,
|
|
43
47
|
isNoShowEnabled,
|
|
44
48
|
sports,
|
|
49
|
+
allowMultipleBookingsAtTheSameTime,
|
|
50
|
+
sameTimeBookingsLimit,
|
|
51
|
+
cancellationLimitHours,
|
|
52
|
+
maxWeeklyBookings,
|
|
45
53
|
createdAt,
|
|
46
54
|
updatedAt,
|
|
47
55
|
};
|
|
@@ -8,8 +8,6 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | |
|
|
9
9
|
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | |
|
|
10
10
|
|[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | |
|
|
11
|
-
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
12
|
-
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
13
11
|
|
|
14
12
|
# **createClubSettings**
|
|
15
13
|
> ClubSettingsResponse createClubSettings(createClubSettingsRequest)
|
|
@@ -221,105 +219,3 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
221
219
|
|
|
222
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)
|
|
223
221
|
|
|
224
|
-
# **updateHoursSettings**
|
|
225
|
-
> ClubHoursSettingsResponse updateHoursSettings(updateClubHoursSettingsRequest)
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
### Example
|
|
229
|
-
|
|
230
|
-
```typescript
|
|
231
|
-
import {
|
|
232
|
-
ClubSettingsManagerApi,
|
|
233
|
-
Configuration,
|
|
234
|
-
UpdateClubHoursSettingsRequest
|
|
235
|
-
} from '@tennac-booking/sdk';
|
|
236
|
-
|
|
237
|
-
const configuration = new Configuration();
|
|
238
|
-
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
239
|
-
|
|
240
|
-
let updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest; //
|
|
241
|
-
|
|
242
|
-
const { status, data } = await apiInstance.updateHoursSettings(
|
|
243
|
-
updateClubHoursSettingsRequest
|
|
244
|
-
);
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
### Parameters
|
|
248
|
-
|
|
249
|
-
|Name | Type | Description | Notes|
|
|
250
|
-
|------------- | ------------- | ------------- | -------------|
|
|
251
|
-
| **updateClubHoursSettingsRequest** | **UpdateClubHoursSettingsRequest**| | |
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
### Return type
|
|
255
|
-
|
|
256
|
-
**ClubHoursSettingsResponse**
|
|
257
|
-
|
|
258
|
-
### Authorization
|
|
259
|
-
|
|
260
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
261
|
-
|
|
262
|
-
### HTTP request headers
|
|
263
|
-
|
|
264
|
-
- **Content-Type**: application/json
|
|
265
|
-
- **Accept**: application/json
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
### HTTP response details
|
|
269
|
-
| Status code | Description | Response headers |
|
|
270
|
-
|-------------|-------------|------------------|
|
|
271
|
-
|**200** | Horaires du club mis à jour | - |
|
|
272
|
-
|
|
273
|
-
[[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)
|
|
274
|
-
|
|
275
|
-
# **updateReservationSettings**
|
|
276
|
-
> ClubReservationSettingsResponse updateReservationSettings(updateClubReservationSettingsRequest)
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
### Example
|
|
280
|
-
|
|
281
|
-
```typescript
|
|
282
|
-
import {
|
|
283
|
-
ClubSettingsManagerApi,
|
|
284
|
-
Configuration,
|
|
285
|
-
UpdateClubReservationSettingsRequest
|
|
286
|
-
} from '@tennac-booking/sdk';
|
|
287
|
-
|
|
288
|
-
const configuration = new Configuration();
|
|
289
|
-
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
290
|
-
|
|
291
|
-
let updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest; //
|
|
292
|
-
|
|
293
|
-
const { status, data } = await apiInstance.updateReservationSettings(
|
|
294
|
-
updateClubReservationSettingsRequest
|
|
295
|
-
);
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
### Parameters
|
|
299
|
-
|
|
300
|
-
|Name | Type | Description | Notes|
|
|
301
|
-
|------------- | ------------- | ------------- | -------------|
|
|
302
|
-
| **updateClubReservationSettingsRequest** | **UpdateClubReservationSettingsRequest**| | |
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### Return type
|
|
306
|
-
|
|
307
|
-
**ClubReservationSettingsResponse**
|
|
308
|
-
|
|
309
|
-
### Authorization
|
|
310
|
-
|
|
311
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
312
|
-
|
|
313
|
-
### HTTP request headers
|
|
314
|
-
|
|
315
|
-
- **Content-Type**: application/json
|
|
316
|
-
- **Accept**: application/json
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
### HTTP response details
|
|
320
|
-
| Status code | Description | Response headers |
|
|
321
|
-
|-------------|-------------|------------------|
|
|
322
|
-
|**200** | Paramètres de réservation mis à jour | - |
|
|
323
|
-
|
|
324
|
-
[[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)
|
|
325
|
-
|
|
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**_id** | **string** | ID unique des paramètres | [default to undefined]
|
|
10
10
|
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
11
|
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
|
|
12
|
-
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [default to undefined]
|
|
13
12
|
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
14
13
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
|
|
15
14
|
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
|
|
@@ -27,7 +26,6 @@ const instance: ClubSettingsResponse = {
|
|
|
27
26
|
_id,
|
|
28
27
|
clubId,
|
|
29
28
|
maxWeeklyBookings,
|
|
30
|
-
allowMultipleBookingsAtTheSameTime,
|
|
31
29
|
sameTimeBookingsLimit,
|
|
32
30
|
cancellationLimitHours,
|
|
33
31
|
availabilityPeriodInDays,
|
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -19,9 +19,7 @@ All URIs are relative to *http://localhost*
|
|
|
19
19
|
|[**restoreSubscriptionPriceForClub**](#restoresubscriptionpriceforclub) | **POST** /api/clubs/subscription-plans/{priceId}/restore-price | |
|
|
20
20
|
|[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
|
|
21
21
|
|[**updateClub**](#updateclub) | **PUT** /api/clubs | |
|
|
22
|
-
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PUT** /api/clubs/settings/general | |
|
|
23
22
|
|[**updateClubInfos**](#updateclubinfos) | **PUT** /api/clubs/infos | |
|
|
24
|
-
|[**updateClubPresentationSettings**](#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation | |
|
|
25
23
|
|[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | |
|
|
26
24
|
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | |
|
|
27
25
|
|
|
@@ -794,57 +792,6 @@ const { status, data } = await apiInstance.updateClub(
|
|
|
794
792
|
|
|
795
793
|
[[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)
|
|
796
794
|
|
|
797
|
-
# **updateClubGeneralSettings**
|
|
798
|
-
> ClubGeneralSettingsResponse updateClubGeneralSettings(updateClubGeneralSettingsRequest)
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
### Example
|
|
802
|
-
|
|
803
|
-
```typescript
|
|
804
|
-
import {
|
|
805
|
-
ClubsManagerApi,
|
|
806
|
-
Configuration,
|
|
807
|
-
UpdateClubGeneralSettingsRequest
|
|
808
|
-
} from '@tennac-booking/sdk';
|
|
809
|
-
|
|
810
|
-
const configuration = new Configuration();
|
|
811
|
-
const apiInstance = new ClubsManagerApi(configuration);
|
|
812
|
-
|
|
813
|
-
let updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest; //
|
|
814
|
-
|
|
815
|
-
const { status, data } = await apiInstance.updateClubGeneralSettings(
|
|
816
|
-
updateClubGeneralSettingsRequest
|
|
817
|
-
);
|
|
818
|
-
```
|
|
819
|
-
|
|
820
|
-
### Parameters
|
|
821
|
-
|
|
822
|
-
|Name | Type | Description | Notes|
|
|
823
|
-
|------------- | ------------- | ------------- | -------------|
|
|
824
|
-
| **updateClubGeneralSettingsRequest** | **UpdateClubGeneralSettingsRequest**| | |
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
### Return type
|
|
828
|
-
|
|
829
|
-
**ClubGeneralSettingsResponse**
|
|
830
|
-
|
|
831
|
-
### Authorization
|
|
832
|
-
|
|
833
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
834
|
-
|
|
835
|
-
### HTTP request headers
|
|
836
|
-
|
|
837
|
-
- **Content-Type**: application/json
|
|
838
|
-
- **Accept**: application/json
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
### HTTP response details
|
|
842
|
-
| Status code | Description | Response headers |
|
|
843
|
-
|-------------|-------------|------------------|
|
|
844
|
-
|**200** | Paramètres généraux mis à jour | - |
|
|
845
|
-
|
|
846
|
-
[[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)
|
|
847
|
-
|
|
848
795
|
# **updateClubInfos**
|
|
849
796
|
> any updateClubInfos(body)
|
|
850
797
|
|
|
@@ -895,57 +842,6 @@ const { status, data } = await apiInstance.updateClubInfos(
|
|
|
895
842
|
|
|
896
843
|
[[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)
|
|
897
844
|
|
|
898
|
-
# **updateClubPresentationSettings**
|
|
899
|
-
> ClubPresentationSettingsResponse updateClubPresentationSettings(updateClubPresentationSettingsRequest)
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
### Example
|
|
903
|
-
|
|
904
|
-
```typescript
|
|
905
|
-
import {
|
|
906
|
-
ClubsManagerApi,
|
|
907
|
-
Configuration,
|
|
908
|
-
UpdateClubPresentationSettingsRequest
|
|
909
|
-
} from '@tennac-booking/sdk';
|
|
910
|
-
|
|
911
|
-
const configuration = new Configuration();
|
|
912
|
-
const apiInstance = new ClubsManagerApi(configuration);
|
|
913
|
-
|
|
914
|
-
let updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest; //
|
|
915
|
-
|
|
916
|
-
const { status, data } = await apiInstance.updateClubPresentationSettings(
|
|
917
|
-
updateClubPresentationSettingsRequest
|
|
918
|
-
);
|
|
919
|
-
```
|
|
920
|
-
|
|
921
|
-
### Parameters
|
|
922
|
-
|
|
923
|
-
|Name | Type | Description | Notes|
|
|
924
|
-
|------------- | ------------- | ------------- | -------------|
|
|
925
|
-
| **updateClubPresentationSettingsRequest** | **UpdateClubPresentationSettingsRequest**| | |
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
### Return type
|
|
929
|
-
|
|
930
|
-
**ClubPresentationSettingsResponse**
|
|
931
|
-
|
|
932
|
-
### Authorization
|
|
933
|
-
|
|
934
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
935
|
-
|
|
936
|
-
### HTTP request headers
|
|
937
|
-
|
|
938
|
-
- **Content-Type**: application/json
|
|
939
|
-
- **Accept**: application/json
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
### HTTP response details
|
|
943
|
-
| Status code | Description | Response headers |
|
|
944
|
-
|-------------|-------------|------------------|
|
|
945
|
-
|**200** | Présentation mise à jour | - |
|
|
946
|
-
|
|
947
|
-
[[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)
|
|
948
|
-
|
|
949
845
|
# **updateCourt**
|
|
950
846
|
> any updateCourt(body)
|
|
951
847
|
|
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -5,10 +5,8 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
|
|
8
|
-
|[**getClubGeneralSettings**](#getclubgeneralsettings) | **GET** /api/clubs/settings/general | |
|
|
9
8
|
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
|
|
10
9
|
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
11
|
-
|[**getClubPresentationSettings**](#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation | |
|
|
12
10
|
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
|
|
13
11
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
14
12
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
@@ -57,49 +55,6 @@ This endpoint does not have any parameters.
|
|
|
57
55
|
|
|
58
56
|
[[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)
|
|
59
57
|
|
|
60
|
-
# **getClubGeneralSettings**
|
|
61
|
-
> ClubGeneralSettingsResponse getClubGeneralSettings()
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### Example
|
|
65
|
-
|
|
66
|
-
```typescript
|
|
67
|
-
import {
|
|
68
|
-
ClubsStaffApi,
|
|
69
|
-
Configuration
|
|
70
|
-
} from '@tennac-booking/sdk';
|
|
71
|
-
|
|
72
|
-
const configuration = new Configuration();
|
|
73
|
-
const apiInstance = new ClubsStaffApi(configuration);
|
|
74
|
-
|
|
75
|
-
const { status, data } = await apiInstance.getClubGeneralSettings();
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Parameters
|
|
79
|
-
This endpoint does not have any parameters.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### Return type
|
|
83
|
-
|
|
84
|
-
**ClubGeneralSettingsResponse**
|
|
85
|
-
|
|
86
|
-
### Authorization
|
|
87
|
-
|
|
88
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
89
|
-
|
|
90
|
-
### HTTP request headers
|
|
91
|
-
|
|
92
|
-
- **Content-Type**: Not defined
|
|
93
|
-
- **Accept**: application/json
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### HTTP response details
|
|
97
|
-
| Status code | Description | Response headers |
|
|
98
|
-
|-------------|-------------|------------------|
|
|
99
|
-
|**200** | Paramètres généraux du club | - |
|
|
100
|
-
|
|
101
|
-
[[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)
|
|
102
|
-
|
|
103
58
|
# **getClubInfos**
|
|
104
59
|
> any getClubInfos()
|
|
105
60
|
|
|
@@ -188,49 +143,6 @@ This endpoint does not have any parameters.
|
|
|
188
143
|
|
|
189
144
|
[[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)
|
|
190
145
|
|
|
191
|
-
# **getClubPresentationSettings**
|
|
192
|
-
> ClubPresentationSettingsResponse getClubPresentationSettings()
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
### Example
|
|
196
|
-
|
|
197
|
-
```typescript
|
|
198
|
-
import {
|
|
199
|
-
ClubsStaffApi,
|
|
200
|
-
Configuration
|
|
201
|
-
} from '@tennac-booking/sdk';
|
|
202
|
-
|
|
203
|
-
const configuration = new Configuration();
|
|
204
|
-
const apiInstance = new ClubsStaffApi(configuration);
|
|
205
|
-
|
|
206
|
-
const { status, data } = await apiInstance.getClubPresentationSettings();
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
### Parameters
|
|
210
|
-
This endpoint does not have any parameters.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
### Return type
|
|
214
|
-
|
|
215
|
-
**ClubPresentationSettingsResponse**
|
|
216
|
-
|
|
217
|
-
### Authorization
|
|
218
|
-
|
|
219
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
220
|
-
|
|
221
|
-
### HTTP request headers
|
|
222
|
-
|
|
223
|
-
- **Content-Type**: Not defined
|
|
224
|
-
- **Accept**: application/json
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
### HTTP response details
|
|
228
|
-
| Status code | Description | Response headers |
|
|
229
|
-
|-------------|-------------|------------------|
|
|
230
|
-
|**200** | Présentation du club | - |
|
|
231
|
-
|
|
232
|
-
[[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)
|
|
233
|
-
|
|
234
146
|
# **getClubRoles**
|
|
235
147
|
> GetClubRoles200Response getClubRoles()
|
|
236
148
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
|
|
9
9
|
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
|
|
10
10
|
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
|
|
11
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
import { CreateBookingRequest } from '@tennac-booking/sdk';
|
|
18
18
|
|
|
19
19
|
const instance: CreateBookingRequest = {
|
|
20
|
-
|
|
20
|
+
slotIds,
|
|
21
21
|
players,
|
|
22
22
|
isCreatorPayingAll,
|
|
23
23
|
paymentMethod,
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**startDate** | **string** | | [default to undefined]
|
|
13
13
|
**endDate** | **string** | | [default to undefined]
|
|
14
|
-
**courts** | **Array<
|
|
14
|
+
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
15
15
|
**sports** | **Array<string>** | | [default to undefined]
|
|
16
16
|
**recurringType** | **string** | | [default to undefined]
|
|
17
17
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
@@ -22,7 +22,6 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
23
23
|
**price** | **number** | | [optional] [default to undefined]
|
|
24
24
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
25
|
-
**levels** | **Array<number>** | | [optional] [default to undefined]
|
|
26
25
|
**visibilityType** | **string** | | [default to undefined]
|
|
27
26
|
|
|
28
27
|
## Example
|
|
@@ -48,7 +47,6 @@ const instance: CreateEventRequest = {
|
|
|
48
47
|
teamLimit,
|
|
49
48
|
price,
|
|
50
49
|
subscriberPrices,
|
|
51
|
-
levels,
|
|
52
50
|
visibilityType,
|
|
53
51
|
};
|
|
54
52
|
```
|
package/docs/EventResponse.md
CHANGED
|
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**startDate** | **string** | | [default to undefined]
|
|
15
15
|
**endDate** | **string** | | [default to undefined]
|
|
16
|
-
**courts** | **Array<
|
|
16
|
+
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
17
17
|
**sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
|
|
18
18
|
**recurringType** | **string** | | [default to undefined]
|
|
19
19
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# EventResponseCourtsInner
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** | | [default to undefined]
|
|
9
8
|
|
|
10
9
|
## Example
|
|
11
10
|
|
|
12
11
|
```typescript
|
|
13
|
-
import {
|
|
12
|
+
import { EventResponseCourtsInner } from '@tennac-booking/sdk';
|
|
14
13
|
|
|
15
|
-
const instance:
|
|
16
|
-
clubId,
|
|
14
|
+
const instance: EventResponseCourtsInner = {
|
|
17
15
|
};
|
|
18
16
|
```
|
|
19
17
|
|