@tennac-booking/sdk 1.0.69 → 1.0.71

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.
Files changed (62) hide show
  1. package/.openapi-generator/FILES +236 -227
  2. package/README.md +20 -7
  3. package/api.ts +1488 -247
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1334 -339
  8. package/dist/api.js +461 -62
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +1334 -339
  16. package/dist/esm/api.js +458 -59
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingDetailResponse.md +1 -1
  28. package/docs/{BookingHistory.md → BookingHistoryPopulated.md} +4 -4
  29. package/docs/BookingPopulated.md +27 -7
  30. package/docs/BookingStatus.md +3 -1
  31. package/docs/BookingSummary.md +1 -1
  32. package/docs/BookingsApi.md +81 -2
  33. package/docs/BookingsStaffApi.md +3 -3
  34. package/docs/CheckInPlayersResponse.md +2 -10
  35. package/docs/ClubsApi.md +2 -2
  36. package/docs/CreateEventRequest.md +26 -0
  37. package/docs/CreateSportForClubRequest.md +6 -0
  38. package/docs/CreateSportRequest.md +8 -2
  39. package/docs/EventResponse.md +26 -0
  40. package/docs/EventsApi.md +131 -12
  41. package/docs/EventsManagerApi.md +59 -0
  42. package/docs/JoinEventRequest.md +22 -0
  43. package/docs/JoinEventResponse.md +22 -0
  44. package/docs/QuickReservationClubSummary.md +28 -0
  45. package/docs/QuickReservationClubSummaryLocation.md +31 -0
  46. package/docs/QuickReservationResponse.md +22 -0
  47. package/docs/QuickReservationSlotSummary.md +42 -0
  48. package/docs/SportKey.md +14 -0
  49. package/docs/SportLevel.md +22 -0
  50. package/docs/SportResponse.md +10 -5
  51. package/docs/SportWithLevels.md +30 -0
  52. package/docs/SportsManagerApi.md +6 -3
  53. package/docs/SportsStaffApi.md +3 -3
  54. package/docs/{GetSportsByClubById200Response.md → SubscriberPrice.md} +7 -5
  55. package/docs/{BookingSummaryBookingHistory.md → Team.md} +7 -3
  56. package/docs/UpdateEventRequest.md +54 -0
  57. package/docs/UpdateSportRequest.md +9 -1
  58. package/docs/UserInfo.md +4 -0
  59. package/docs/UsersApi.md +0 -3
  60. package/index.ts +1 -1
  61. package/package.json +1 -1
  62. package/docs/SportWithAnalytics.md +0 -36
package/docs/EventsApi.md CHANGED
@@ -4,8 +4,63 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
7
8
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
8
- |[**registerForEvent**](#registerforevent) | **POST** /api/events/{eventId}/register | |
9
+ |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
10
+ |[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
11
+
12
+ # **getEventById**
13
+ > PublishEventResponse getEventById()
14
+
15
+ Get a specific event by ID
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ EventsApi,
22
+ Configuration
23
+ } from '@tennac-booking/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new EventsApi(configuration);
27
+
28
+ let eventId: string; // (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.getEventById(
31
+ eventId
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **eventId** | [**string**] | | defaults to undefined|
40
+
41
+
42
+ ### Return type
43
+
44
+ **PublishEventResponse**
45
+
46
+ ### Authorization
47
+
48
+ No authorization required
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Event details | - |
60
+ |**404** | Not Found | - |
61
+ |**500** | Server Error | - |
62
+
63
+ [[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)
9
64
 
10
65
  # **getPublishedEventsByClubId**
11
66
  > EventsListResponse getPublishedEventsByClubId()
@@ -24,9 +79,15 @@ const configuration = new Configuration();
24
79
  const apiInstance = new EventsApi(configuration);
25
80
 
26
81
  let clubId: string; // (optional) (default to undefined)
82
+ let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
83
+ let type: 'event' | 'closure'; // (optional) (default to undefined)
84
+ let sportId: string; // (optional) (default to undefined)
27
85
 
28
86
  const { status, data } = await apiInstance.getPublishedEventsByClubId(
29
- clubId
87
+ clubId,
88
+ visibilityType,
89
+ type,
90
+ sportId
30
91
  );
31
92
  ```
32
93
 
@@ -35,6 +96,9 @@ const { status, data } = await apiInstance.getPublishedEventsByClubId(
35
96
  |Name | Type | Description | Notes|
36
97
  |------------- | ------------- | ------------- | -------------|
37
98
  | **clubId** | [**string**] | | (optional) defaults to undefined|
99
+ | **visibilityType** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
100
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (optional) defaults to undefined|
101
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
38
102
 
39
103
 
40
104
  ### Return type
@@ -60,28 +124,29 @@ No authorization required
60
124
 
61
125
  [[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
126
 
63
- # **registerForEvent**
64
- > any registerForEvent(body)
127
+ # **joinEvent**
128
+ > JoinEventResponse joinEvent(joinEventRequest)
65
129
 
66
- Register for an event
130
+ Join an event (user)
67
131
 
68
132
  ### Example
69
133
 
70
134
  ```typescript
71
135
  import {
72
136
  EventsApi,
73
- Configuration
137
+ Configuration,
138
+ JoinEventRequest
74
139
  } from '@tennac-booking/sdk';
75
140
 
76
141
  const configuration = new Configuration();
77
142
  const apiInstance = new EventsApi(configuration);
78
143
 
79
144
  let eventId: string; // (default to undefined)
80
- let body: any; //
145
+ let joinEventRequest: JoinEventRequest; //
81
146
 
82
- const { status, data } = await apiInstance.registerForEvent(
147
+ const { status, data } = await apiInstance.joinEvent(
83
148
  eventId,
84
- body
149
+ joinEventRequest
85
150
  );
86
151
  ```
87
152
 
@@ -89,13 +154,13 @@ const { status, data } = await apiInstance.registerForEvent(
89
154
 
90
155
  |Name | Type | Description | Notes|
91
156
  |------------- | ------------- | ------------- | -------------|
92
- | **body** | **any**| | |
157
+ | **joinEventRequest** | **JoinEventRequest**| | |
93
158
  | **eventId** | [**string**] | | defaults to undefined|
94
159
 
95
160
 
96
161
  ### Return type
97
162
 
98
- **any**
163
+ **JoinEventResponse**
99
164
 
100
165
  ### Authorization
101
166
 
@@ -110,7 +175,61 @@ const { status, data } = await apiInstance.registerForEvent(
110
175
  ### HTTP response details
111
176
  | Status code | Description | Response headers |
112
177
  |-------------|-------------|------------------|
113
- |**201** | Registration created | - |
178
+ |**200** | Successfully joined event | - |
179
+ |**400** | Bad Request | - |
180
+ |**404** | Not Found | - |
181
+ |**500** | Server Error | - |
182
+
183
+ [[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)
184
+
185
+ # **leaveEvent**
186
+ > JoinEventResponse leaveEvent()
187
+
188
+ Leave an event (user)
189
+
190
+ ### Example
191
+
192
+ ```typescript
193
+ import {
194
+ EventsApi,
195
+ Configuration
196
+ } from '@tennac-booking/sdk';
197
+
198
+ const configuration = new Configuration();
199
+ const apiInstance = new EventsApi(configuration);
200
+
201
+ let eventId: string; // (default to undefined)
202
+
203
+ const { status, data } = await apiInstance.leaveEvent(
204
+ eventId
205
+ );
206
+ ```
207
+
208
+ ### Parameters
209
+
210
+ |Name | Type | Description | Notes|
211
+ |------------- | ------------- | ------------- | -------------|
212
+ | **eventId** | [**string**] | | defaults to undefined|
213
+
214
+
215
+ ### Return type
216
+
217
+ **JoinEventResponse**
218
+
219
+ ### Authorization
220
+
221
+ [bearerAuth](../README.md#bearerAuth)
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: Not defined
226
+ - **Accept**: application/json
227
+
228
+
229
+ ### HTTP response details
230
+ | Status code | Description | Response headers |
231
+ |-------------|-------------|------------------|
232
+ |**200** | Successfully left event | - |
114
233
  |**400** | Bad Request | - |
115
234
  |**404** | Not Found | - |
116
235
  |**500** | Server Error | - |
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | |
9
9
  |[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | |
10
10
  |[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | |
11
+ |[**updateEvent**](#updateevent) | **PUT** /api/events/manager/updateEvent/{eventId} | |
11
12
 
12
13
  # **createEvent**
13
14
  > PublishEventResponse createEvent(createEventRequest)
@@ -223,3 +224,61 @@ const { status, data } = await apiInstance.unpublishEvent(
223
224
 
224
225
  [[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)
225
226
 
227
+ # **updateEvent**
228
+ > PublishEventResponse updateEvent(updateEventRequest)
229
+
230
+ Update an event (manager)
231
+
232
+ ### Example
233
+
234
+ ```typescript
235
+ import {
236
+ EventsManagerApi,
237
+ Configuration,
238
+ UpdateEventRequest
239
+ } from '@tennac-booking/sdk';
240
+
241
+ const configuration = new Configuration();
242
+ const apiInstance = new EventsManagerApi(configuration);
243
+
244
+ let eventId: string; // (default to undefined)
245
+ let updateEventRequest: UpdateEventRequest; //
246
+
247
+ const { status, data } = await apiInstance.updateEvent(
248
+ eventId,
249
+ updateEventRequest
250
+ );
251
+ ```
252
+
253
+ ### Parameters
254
+
255
+ |Name | Type | Description | Notes|
256
+ |------------- | ------------- | ------------- | -------------|
257
+ | **updateEventRequest** | **UpdateEventRequest**| | |
258
+ | **eventId** | [**string**] | | defaults to undefined|
259
+
260
+
261
+ ### Return type
262
+
263
+ **PublishEventResponse**
264
+
265
+ ### Authorization
266
+
267
+ [bearerAuth](../README.md#bearerAuth)
268
+
269
+ ### HTTP request headers
270
+
271
+ - **Content-Type**: application/json
272
+ - **Accept**: application/json
273
+
274
+
275
+ ### HTTP response details
276
+ | Status code | Description | Response headers |
277
+ |-------------|-------------|------------------|
278
+ |**200** | Event updated | - |
279
+ |**400** | Bad Request | - |
280
+ |**404** | Not Found | - |
281
+ |**500** | Server Error | - |
282
+
283
+ [[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)
284
+
@@ -0,0 +1,22 @@
1
+ # JoinEventRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **teamName** | **string** | | [optional] [default to undefined]
9
+ **players** | **Array&lt;string&gt;** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { JoinEventRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: JoinEventRequest = {
17
+ teamName,
18
+ players,
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,22 @@
1
+ # JoinEventResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { JoinEventResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: JoinEventResponse = {
17
+ message,
18
+ event,
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,28 @@
1
+ # QuickReservationClubSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | ID du club | [default to undefined]
9
+ **clubName** | **string** | Nom du club | [default to undefined]
10
+ **distanceInMeters** | **number** | Distance par rapport à la recherche, en mètres | [default to undefined]
11
+ **location** | [**QuickReservationClubSummaryLocation**](QuickReservationClubSummaryLocation.md) | | [optional] [default to undefined]
12
+ **slots** | [**Array&lt;QuickReservationSlotSummary&gt;**](QuickReservationSlotSummary.md) | Créneaux disponibles correspondant aux filtres | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { QuickReservationClubSummary } from '@tennac-booking/sdk';
18
+
19
+ const instance: QuickReservationClubSummary = {
20
+ clubId,
21
+ clubName,
22
+ distanceInMeters,
23
+ location,
24
+ slots,
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)
@@ -0,0 +1,31 @@
1
+ # QuickReservationClubSummaryLocation
2
+
3
+ Localisation du club
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **country** | **string** | | [optional] [default to undefined]
10
+ **postalCode** | **string** | | [optional] [default to undefined]
11
+ **city** | **string** | | [optional] [default to undefined]
12
+ **address** | **string** | | [optional] [default to undefined]
13
+ **longitude** | **number** | | [optional] [default to undefined]
14
+ **latitude** | **number** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { QuickReservationClubSummaryLocation } from '@tennac-booking/sdk';
20
+
21
+ const instance: QuickReservationClubSummaryLocation = {
22
+ country,
23
+ postalCode,
24
+ city,
25
+ address,
26
+ longitude,
27
+ latitude,
28
+ };
29
+ ```
30
+
31
+ [[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,22 @@
1
+ # QuickReservationResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **totalClubs** | **number** | Nombre total de clubs contenant des créneaux disponibles | [default to undefined]
9
+ **clubs** | [**Array&lt;QuickReservationClubSummary&gt;**](QuickReservationClubSummary.md) | Liste des clubs et de leurs créneaux disponibles | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { QuickReservationResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: QuickReservationResponse = {
17
+ totalClubs,
18
+ clubs,
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,42 @@
1
+ # QuickReservationSlotSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du créneau | [default to undefined]
9
+ **startDate** | **string** | Date de début ISO | [default to undefined]
10
+ **endDate** | **string** | Date de fin ISO | [default to undefined]
11
+ **durationMinutes** | **number** | Durée du créneau en minutes | [default to undefined]
12
+ **courtId** | **string** | ID du terrain | [default to undefined]
13
+ **courtName** | **string** | Nom du terrain | [default to undefined]
14
+ **isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
15
+ **surface** | **string** | Surface du terrain | [optional] [default to undefined]
16
+ **pricePerHour** | **number** | Prix horaire du terrain (en euros) | [optional] [default to undefined]
17
+ **totalPrice** | **number** | Prix total estimé pour le créneau (en euros) | [optional] [default to undefined]
18
+ **sportId** | **string** | ID du sport associé | [default to undefined]
19
+ **sportKey** | **string** | Clé du sport associé | [optional] [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { QuickReservationSlotSummary } from '@tennac-booking/sdk';
25
+
26
+ const instance: QuickReservationSlotSummary = {
27
+ id,
28
+ startDate,
29
+ endDate,
30
+ durationMinutes,
31
+ courtId,
32
+ courtName,
33
+ isIndoor,
34
+ surface,
35
+ pricePerHour,
36
+ totalPrice,
37
+ sportId,
38
+ sportKey,
39
+ };
40
+ ```
41
+
42
+ [[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,14 @@
1
+ # SportKey
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Padel` (value: `'Padel'`)
7
+
8
+ * `Tennis` (value: `'Tennis'`)
9
+
10
+ * `Pickleball` (value: `'Pickleball'`)
11
+
12
+ * `Autres` (value: `'Autres'`)
13
+
14
+ [[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,22 @@
1
+ # SportLevel
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Nom du niveau (ex: Débutant, Intermédiaire, Avancé) | [default to undefined]
9
+ **order** | **number** | Ordre du niveau, du plus faible (petit) au plus fort (grand) | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SportLevel } from '@tennac-booking/sdk';
15
+
16
+ const instance: SportLevel = {
17
+ name,
18
+ order,
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)
@@ -1,16 +1,18 @@
1
1
  # SportResponse
2
2
 
3
- Types TSOA pour les sports - alignés sur la documentation Swagger existante
4
3
 
5
4
  ## Properties
6
5
 
7
6
  Name | Type | Description | Notes
8
7
  ------------ | ------------- | ------------- | -------------
9
8
  **id** | **string** | ID unique du sport | [default to undefined]
10
- **key** | **string** | Clé/nom du sport | [default to undefined]
11
- **name** | **string** | Nom du sport | [optional] [default to undefined]
9
+ **key** | [**SportKey**](SportKey.md) | | [default to undefined]
10
+ **name** | **string** | Nom affiché du sport | [default to undefined]
12
11
  **description** | **string** | Description du sport | [optional] [default to undefined]
13
- **clubId** | **string** | ID du club auquel appartient le sport | [default to undefined]
12
+ **levels** | [**Array&lt;SportLevel&gt;**](SportLevel.md) | Niveaux associés au sport | [optional] [default to undefined]
13
+ **logos** | **Array&lt;string&gt;** | URLs de logos/images pour le sport | [optional] [default to undefined]
14
+ **createdBy** | **string** | ID du club créateur | [optional] [default to undefined]
15
+ **verified** | **boolean** | Sport vérifié/officiel (non modifiable) | [default to undefined]
14
16
  **createdAt** | **string** | Date de création | [default to undefined]
15
17
  **updatedAt** | **string** | Date de dernière mise à jour | [default to undefined]
16
18
 
@@ -24,7 +26,10 @@ const instance: SportResponse = {
24
26
  key,
25
27
  name,
26
28
  description,
27
- clubId,
29
+ levels,
30
+ logos,
31
+ createdBy,
32
+ verified,
28
33
  createdAt,
29
34
  updatedAt,
30
35
  };
@@ -0,0 +1,30 @@
1
+ # SportWithLevels
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **key** | **string** | | [default to undefined]
10
+ **name** | **string** | | [default to undefined]
11
+ **description** | **string** | | [optional] [default to undefined]
12
+ **levels** | [**Array&lt;SportLevel&gt;**](SportLevel.md) | | [optional] [default to undefined]
13
+ **logos** | **Array&lt;string&gt;** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { SportWithLevels } from '@tennac-booking/sdk';
19
+
20
+ const instance: SportWithLevels = {
21
+ id,
22
+ key,
23
+ name,
24
+ description,
25
+ levels,
26
+ logos,
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)
@@ -11,7 +11,7 @@ All URIs are relative to *http://localhost*
11
11
  # **createSport**
12
12
  > SportResponse createSport(createSportRequest)
13
13
 
14
- Crée un sport dans un club
14
+ Crée un sport (global) avec createdBy = clubId de l\'utilisateur
15
15
 
16
16
  ### Example
17
17
 
@@ -59,6 +59,7 @@ const { status, data } = await apiInstance.createSport(
59
59
  |**201** | Sport créé | - |
60
60
  |**400** | Bad Request | - |
61
61
  |**401** | Unauthorized | - |
62
+ |**409** | Conflict | - |
62
63
  |**500** | Server Error | - |
63
64
 
64
65
  [[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)
@@ -66,7 +67,7 @@ const { status, data } = await apiInstance.createSport(
66
67
  # **deleteSport**
67
68
  > DeleteSportResponse deleteSport()
68
69
 
69
- Supprime un sport
70
+ Supprime un sport (interdit si vérifié)
70
71
 
71
72
  ### Example
72
73
 
@@ -112,6 +113,7 @@ const { status, data } = await apiInstance.deleteSport(
112
113
  |-------------|-------------|------------------|
113
114
  |**200** | Sport supprimé | - |
114
115
  |**401** | Unauthorized | - |
116
+ |**403** | Forbidden - Sport vérifié non supprimable | - |
115
117
  |**404** | Sport non trouvé | - |
116
118
  |**500** | Server Error | - |
117
119
 
@@ -120,7 +122,7 @@ const { status, data } = await apiInstance.deleteSport(
120
122
  # **updateSport**
121
123
  > SportResponse updateSport(updateSportRequest)
122
124
 
123
- Met à jour un sport
125
+ Met à jour un sport (interdit si vérifié)
124
126
 
125
127
  ### Example
126
128
 
@@ -170,6 +172,7 @@ const { status, data } = await apiInstance.updateSport(
170
172
  |-------------|-------------|------------------|
171
173
  |**200** | Sport mis à jour | - |
172
174
  |**401** | Unauthorized | - |
175
+ |**403** | Forbidden - Sport vérifié non modifiable | - |
173
176
  |**404** | Sport non trouvé | - |
174
177
  |**500** | Server Error | - |
175
178
 
@@ -7,9 +7,9 @@ All URIs are relative to *http://localhost*
7
7
  |[**getAllSports**](#getallsports) | **GET** /api/sports | |
8
8
 
9
9
  # **getAllSports**
10
- > Array<SportWithAnalytics> getAllSports()
10
+ > Array<SportResponse> getAllSports()
11
11
 
12
- Récupère la liste des sports d\'un club
12
+ Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
13
13
 
14
14
  ### Example
15
15
 
@@ -31,7 +31,7 @@ This endpoint does not have any parameters.
31
31
 
32
32
  ### Return type
33
33
 
34
- **Array<SportWithAnalytics>**
34
+ **Array<SportResponse>**
35
35
 
36
36
  ### Authorization
37
37
 
@@ -1,19 +1,21 @@
1
- # GetSportsByClubById200Response
1
+ # SubscriberPrice
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **sports** | **Array&lt;any&gt;** | | [default to undefined]
8
+ **subscriptionPlanId** | **string** | | [default to undefined]
9
+ **amount** | **number** | | [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
12
13
  ```typescript
13
- import { GetSportsByClubById200Response } from '@tennac-booking/sdk';
14
+ import { SubscriberPrice } from '@tennac-booking/sdk';
14
15
 
15
- const instance: GetSportsByClubById200Response = {
16
- sports,
16
+ const instance: SubscriberPrice = {
17
+ subscriptionPlanId,
18
+ amount,
17
19
  };
18
20
  ```
19
21
 
@@ -1,17 +1,21 @@
1
- # BookingSummaryBookingHistory
1
+ # Team
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [default to undefined]
9
+ **players** | **Array&lt;string&gt;** | | [default to undefined]
8
10
 
9
11
  ## Example
10
12
 
11
13
  ```typescript
12
- import { BookingSummaryBookingHistory } from '@tennac-booking/sdk';
14
+ import { Team } from '@tennac-booking/sdk';
13
15
 
14
- const instance: BookingSummaryBookingHistory = {
16
+ const instance: Team = {
17
+ name,
18
+ players,
15
19
  };
16
20
  ```
17
21