@tennac-booking/sdk 1.0.10 → 1.0.12

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 (66) hide show
  1. package/.openapi-generator/FILES +56 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +95 -4
  4. package/api.ts +6129 -367
  5. package/common.ts +4 -4
  6. package/dist/api.d.ts +4124 -295
  7. package/dist/api.js +3318 -58
  8. package/dist/esm/api.d.ts +4124 -295
  9. package/dist/esm/api.js +3282 -58
  10. package/docs/AddClubMemberRequest.md +22 -0
  11. package/docs/AddClubMemberResponse.md +22 -0
  12. package/docs/BlockSlotResponse.md +22 -0
  13. package/docs/BookingResponse.md +28 -0
  14. package/docs/BookingsApi.md +120 -0
  15. package/docs/Club.md +46 -0
  16. package/docs/ClubCourtsApi.md +118 -0
  17. package/docs/ClubInfoResponse.md +46 -0
  18. package/docs/ClubListResponse.md +22 -0
  19. package/docs/ClubMember.md +34 -0
  20. package/docs/ClubMembersResponse.md +22 -0
  21. package/docs/ClubResponse.md +46 -0
  22. package/docs/ClubRole.md +30 -0
  23. package/docs/ClubRoleResponse.md +30 -0
  24. package/docs/ClubRolesApi.md +268 -0
  25. package/docs/ClubRolesResponse.md +22 -0
  26. package/docs/ClubSettings.md +28 -0
  27. package/docs/ClubSettingsApi.md +227 -0
  28. package/docs/ClubSlotsApi.md +300 -0
  29. package/docs/ClubSportsApi.md +118 -0
  30. package/docs/ClubSubscriptionsApi.md +408 -0
  31. package/docs/ClubsApi.md +432 -0
  32. package/docs/CourtResponse.md +44 -0
  33. package/docs/CourtsResponse.md +22 -0
  34. package/docs/CreateBookingRequest.md +28 -0
  35. package/docs/CreateClubRequest.md +38 -0
  36. package/docs/CreateClubRoleRequestBody.md +24 -0
  37. package/docs/CreateCourtRequest.md +34 -0
  38. package/docs/CreatePriceRequest.md +26 -0
  39. package/docs/CreateSportRequest.md +22 -0
  40. package/docs/CreateSubscriptionPlanRequest.md +24 -0
  41. package/docs/DeleteClub200Response.md +20 -0
  42. package/docs/DeleteClubRole200Response.md +20 -0
  43. package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
  44. package/docs/GenerateSlotsForNextThreeWeeks201Response.md +20 -0
  45. package/docs/GetAllSportsRequest.md +20 -0
  46. package/docs/GetClubSettingsRequest.md +20 -0
  47. package/docs/GetUserRolesInClubs200Response.md +20 -0
  48. package/docs/PaymentMethod.md +11 -0
  49. package/docs/PlayerWithPaymentMethod.md +22 -0
  50. package/docs/PriceResponse.md +38 -0
  51. package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
  52. package/docs/SlotResponse.md +40 -0
  53. package/docs/SlotsResponse.md +22 -0
  54. package/docs/Sport.md +24 -0
  55. package/docs/SportResponse.md +34 -0
  56. package/docs/SportsApi.md +229 -0
  57. package/docs/SportsResponse.md +22 -0
  58. package/docs/SubscriptionPlan.md +36 -0
  59. package/docs/SubscriptionPlanResponse.md +36 -0
  60. package/docs/UpdateClubRequest.md +40 -0
  61. package/docs/UpdateClubRoleRequestBody.md +24 -0
  62. package/docs/UpdateSportRequest.md +20 -0
  63. package/docs/UpdateSubscriptionPlanRequest.md +24 -0
  64. package/docs/UpdateSubscriptionPlanResponse.md +22 -0
  65. package/docs/UsersApi.md +77 -46
  66. package/package.json +1 -29
@@ -0,0 +1,300 @@
1
+ # ClubSlotsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/{id}/slots | Supprimer des créneaux pour un club sur une plage de dates|
8
+ |[**generateSlotsForNextThreeWeeks**](#generateslotsfornextthreeweeks) | **POST** /api/clubs/{id}/generate-slots | Générer les créneaux pour les 3 semaines à venir|
9
+ |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
10
+ |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
11
+ |[**getSlotsByClub**](#getslotsbyclub) | **GET** /api/clubs/{id}/slots | Récupérer tous les créneaux pour un club|
12
+
13
+ # **deleteSlotsByClubInRange**
14
+ > DeleteSlotsByClubInRange200Response deleteSlotsByClubInRange()
15
+
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ ClubSlotsApi,
22
+ Configuration
23
+ } from '@tennac-booking/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new ClubSlotsApi(configuration);
27
+
28
+ let id: string; //ID du club (default to undefined)
29
+ let start: string; //Date de début (format ISO) (default to undefined)
30
+ let end: string; //Date de fin (format ISO) (default to undefined)
31
+
32
+ const { status, data } = await apiInstance.deleteSlotsByClubInRange(
33
+ id,
34
+ start,
35
+ end
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **id** | [**string**] | ID du club | defaults to undefined|
44
+ | **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
45
+ | **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
46
+
47
+
48
+ ### Return type
49
+
50
+ **DeleteSlotsByClubInRange200Response**
51
+
52
+ ### Authorization
53
+
54
+ [bearerAuth](../README.md#bearerAuth)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: Not defined
59
+ - **Accept**: application/json
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ |**200** | Créneaux supprimés avec succès | - |
66
+ |**400** | Requête invalide | - |
67
+ |**500** | Erreur serveur interne | - |
68
+
69
+ [[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)
70
+
71
+ # **generateSlotsForNextThreeWeeks**
72
+ > GenerateSlotsForNextThreeWeeks201Response generateSlotsForNextThreeWeeks()
73
+
74
+
75
+ ### Example
76
+
77
+ ```typescript
78
+ import {
79
+ ClubSlotsApi,
80
+ Configuration
81
+ } from '@tennac-booking/sdk';
82
+
83
+ const configuration = new Configuration();
84
+ const apiInstance = new ClubSlotsApi(configuration);
85
+
86
+ let id: string; //ID du club (default to undefined)
87
+
88
+ const { status, data } = await apiInstance.generateSlotsForNextThreeWeeks(
89
+ id
90
+ );
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ |Name | Type | Description | Notes|
96
+ |------------- | ------------- | ------------- | -------------|
97
+ | **id** | [**string**] | ID du club | defaults to undefined|
98
+
99
+
100
+ ### Return type
101
+
102
+ **GenerateSlotsForNextThreeWeeks201Response**
103
+
104
+ ### Authorization
105
+
106
+ [bearerAuth](../README.md#bearerAuth)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+ ### HTTP response details
115
+ | Status code | Description | Response headers |
116
+ |-------------|-------------|------------------|
117
+ |**201** | Créneaux générés avec succès | - |
118
+ |**400** | Requête invalide | - |
119
+ |**404** | Ressource non trouvée | - |
120
+ |**500** | Erreur serveur interne | - |
121
+
122
+ [[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)
123
+
124
+ # **getAvailableSlotsBySports**
125
+ > SlotsResponse getAvailableSlotsBySports()
126
+
127
+
128
+ ### Example
129
+
130
+ ```typescript
131
+ import {
132
+ ClubSlotsApi,
133
+ Configuration
134
+ } from '@tennac-booking/sdk';
135
+
136
+ const configuration = new Configuration();
137
+ const apiInstance = new ClubSlotsApi(configuration);
138
+
139
+ let id: string; //ID du club (default to undefined)
140
+ let sportId: string; //ID du sport (default to undefined)
141
+ let start: string; //Date de début (format ISO) (optional) (default to undefined)
142
+ let end: string; //Date de fin (format ISO) (optional) (default to undefined)
143
+
144
+ const { status, data } = await apiInstance.getAvailableSlotsBySports(
145
+ id,
146
+ sportId,
147
+ start,
148
+ end
149
+ );
150
+ ```
151
+
152
+ ### Parameters
153
+
154
+ |Name | Type | Description | Notes|
155
+ |------------- | ------------- | ------------- | -------------|
156
+ | **id** | [**string**] | ID du club | defaults to undefined|
157
+ | **sportId** | [**string**] | ID du sport | defaults to undefined|
158
+ | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
159
+ | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
160
+
161
+
162
+ ### Return type
163
+
164
+ **SlotsResponse**
165
+
166
+ ### Authorization
167
+
168
+ [bearerAuth](../README.md#bearerAuth)
169
+
170
+ ### HTTP request headers
171
+
172
+ - **Content-Type**: Not defined
173
+ - **Accept**: application/json
174
+
175
+
176
+ ### HTTP response details
177
+ | Status code | Description | Response headers |
178
+ |-------------|-------------|------------------|
179
+ |**200** | Liste des créneaux disponibles | - |
180
+ |**400** | Requête invalide | - |
181
+ |**500** | Erreur serveur interne | - |
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
+ # **getAvailableSlotsBySportsAndDay**
186
+ > SlotsResponse getAvailableSlotsBySportsAndDay()
187
+
188
+
189
+ ### Example
190
+
191
+ ```typescript
192
+ import {
193
+ ClubSlotsApi,
194
+ Configuration
195
+ } from '@tennac-booking/sdk';
196
+
197
+ const configuration = new Configuration();
198
+ const apiInstance = new ClubSlotsApi(configuration);
199
+
200
+ let id: string; //ID du club (default to undefined)
201
+ let sportId: string; //ID du sport (default to undefined)
202
+ let day: string; //Date du jour (format YYYY-MM-DD) (default to undefined)
203
+
204
+ const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
205
+ id,
206
+ sportId,
207
+ day
208
+ );
209
+ ```
210
+
211
+ ### Parameters
212
+
213
+ |Name | Type | Description | Notes|
214
+ |------------- | ------------- | ------------- | -------------|
215
+ | **id** | [**string**] | ID du club | defaults to undefined|
216
+ | **sportId** | [**string**] | ID du sport | defaults to undefined|
217
+ | **day** | [**string**] | Date du jour (format YYYY-MM-DD) | defaults to undefined|
218
+
219
+
220
+ ### Return type
221
+
222
+ **SlotsResponse**
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** | Liste des créneaux disponibles pour le jour donné | - |
238
+ |**400** | Requête invalide | - |
239
+ |**500** | Erreur serveur interne | - |
240
+
241
+ [[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)
242
+
243
+ # **getSlotsByClub**
244
+ > SlotsResponse getSlotsByClub()
245
+
246
+
247
+ ### Example
248
+
249
+ ```typescript
250
+ import {
251
+ ClubSlotsApi,
252
+ Configuration
253
+ } from '@tennac-booking/sdk';
254
+
255
+ const configuration = new Configuration();
256
+ const apiInstance = new ClubSlotsApi(configuration);
257
+
258
+ let id: string; //ID du club (default to undefined)
259
+ let start: string; //Date de début (format ISO) (optional) (default to undefined)
260
+ let end: string; //Date de fin (format ISO) (optional) (default to undefined)
261
+
262
+ const { status, data } = await apiInstance.getSlotsByClub(
263
+ id,
264
+ start,
265
+ end
266
+ );
267
+ ```
268
+
269
+ ### Parameters
270
+
271
+ |Name | Type | Description | Notes|
272
+ |------------- | ------------- | ------------- | -------------|
273
+ | **id** | [**string**] | ID du club | defaults to undefined|
274
+ | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
275
+ | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
276
+
277
+
278
+ ### Return type
279
+
280
+ **SlotsResponse**
281
+
282
+ ### Authorization
283
+
284
+ [bearerAuth](../README.md#bearerAuth)
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: Not defined
289
+ - **Accept**: application/json
290
+
291
+
292
+ ### HTTP response details
293
+ | Status code | Description | Response headers |
294
+ |-------------|-------------|------------------|
295
+ |**200** | Liste des créneaux du club | - |
296
+ |**400** | Requête invalide | - |
297
+ |**500** | Erreur serveur interne | - |
298
+
299
+ [[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)
300
+
@@ -0,0 +1,118 @@
1
+ # ClubSportsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createSportForClub**](#createsportforclub) | **POST** /api/clubs/{id}/sports | Créer un sport pour un club|
8
+ |[**getSportsByClub**](#getsportsbyclub) | **GET** /api/clubs/{id}/sports | Récupérer tous les sports pour un club|
9
+
10
+ # **createSportForClub**
11
+ > SportResponse createSportForClub(createSportRequest)
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ ClubSportsApi,
19
+ Configuration,
20
+ CreateSportRequest
21
+ } from '@tennac-booking/sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ClubSportsApi(configuration);
25
+
26
+ let id: string; //ID du club (default to undefined)
27
+ let createSportRequest: CreateSportRequest; //
28
+
29
+ const { status, data } = await apiInstance.createSportForClub(
30
+ id,
31
+ createSportRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **createSportRequest** | **CreateSportRequest**| | |
40
+ | **id** | [**string**] | ID du club | defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **SportResponse**
46
+
47
+ ### Authorization
48
+
49
+ [bearerAuth](../README.md#bearerAuth)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: application/json
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**201** | Sport créé avec succès | - |
61
+ |**400** | Requête invalide | - |
62
+ |**409** | Conflit - Un sport avec cette clé existe déjà | - |
63
+ |**500** | Erreur serveur interne | - |
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
+
67
+ # **getSportsByClub**
68
+ > SportsResponse getSportsByClub()
69
+
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ ClubSportsApi,
76
+ Configuration
77
+ } from '@tennac-booking/sdk';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new ClubSportsApi(configuration);
81
+
82
+ let id: string; //ID du club (default to undefined)
83
+
84
+ const { status, data } = await apiInstance.getSportsByClub(
85
+ id
86
+ );
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ |Name | Type | Description | Notes|
92
+ |------------- | ------------- | ------------- | -------------|
93
+ | **id** | [**string**] | ID du club | defaults to undefined|
94
+
95
+
96
+ ### Return type
97
+
98
+ **SportsResponse**
99
+
100
+ ### Authorization
101
+
102
+ [bearerAuth](../README.md#bearerAuth)
103
+
104
+ ### HTTP request headers
105
+
106
+ - **Content-Type**: Not defined
107
+ - **Accept**: application/json
108
+
109
+
110
+ ### HTTP response details
111
+ | Status code | Description | Response headers |
112
+ |-------------|-------------|------------------|
113
+ |**200** | Liste des sports du club | - |
114
+ |**400** | Requête invalide | - |
115
+ |**500** | Erreur serveur interne | - |
116
+
117
+ [[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
+