@tennac-booking/sdk 1.0.11 → 1.0.13

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 (81) hide show
  1. package/.openapi-generator/FILES +71 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +111 -1
  4. package/api.ts +7434 -279
  5. package/common.ts +4 -4
  6. package/dist/api.d.ts +5034 -236
  7. package/dist/api.js +4004 -49
  8. package/dist/esm/api.d.ts +5034 -236
  9. package/dist/esm/api.js +3967 -48
  10. package/docs/ActiveClub.md +22 -0
  11. package/docs/ActiveClubListResponse.md +20 -0
  12. package/docs/AddClubMemberRequest.md +22 -0
  13. package/docs/AddClubMemberResponse.md +22 -0
  14. package/docs/BlockSlotResponse.md +22 -0
  15. package/docs/BookingResponse.md +28 -0
  16. package/docs/BookingsApi.md +120 -0
  17. package/docs/Club.md +46 -0
  18. package/docs/ClubCourtsApi.md +118 -0
  19. package/docs/ClubInfoResponse.md +46 -0
  20. package/docs/ClubListResponse.md +22 -0
  21. package/docs/ClubMember.md +34 -0
  22. package/docs/ClubMembersResponse.md +22 -0
  23. package/docs/ClubResponse.md +46 -0
  24. package/docs/ClubRole.md +30 -0
  25. package/docs/ClubRoleResponse.md +30 -0
  26. package/docs/ClubRolesApi.md +268 -0
  27. package/docs/ClubRolesResponse.md +22 -0
  28. package/docs/ClubSettings.md +28 -0
  29. package/docs/ClubSettingsApi.md +227 -0
  30. package/docs/ClubSlotsApi.md +353 -0
  31. package/docs/ClubSportsApi.md +118 -0
  32. package/docs/ClubSubscriptionsApi.md +408 -0
  33. package/docs/ClubsApi.md +478 -0
  34. package/docs/CourtResponse.md +44 -0
  35. package/docs/CourtsResponse.md +22 -0
  36. package/docs/CreateBookingRequest.md +28 -0
  37. package/docs/CreateClubRequest.md +38 -0
  38. package/docs/CreateClubRoleRequestBody.md +24 -0
  39. package/docs/CreateCourtRequest.md +34 -0
  40. package/docs/CreatePriceRequest.md +26 -0
  41. package/docs/CreateSportRequest.md +22 -0
  42. package/docs/CreateSubscriptionPlanRequest.md +24 -0
  43. package/docs/DeleteClub200Response.md +20 -0
  44. package/docs/DeleteClubRole200Response.md +20 -0
  45. package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
  46. package/docs/GenerateSlotsForNextThreeWeeks201Response.md +20 -0
  47. package/docs/GetActiveClubs200Response.md +20 -0
  48. package/docs/GetAllSportsRequest.md +20 -0
  49. package/docs/GetClubSettingsRequest.md +20 -0
  50. package/docs/GetUserRolesResponse.md +20 -0
  51. package/docs/GetUserRolesResponseRolesInner.md +28 -0
  52. package/docs/GetUserSubscriptionsResponse.md +22 -0
  53. package/docs/GoogleSignInRequestBody.md +20 -0
  54. package/docs/GoogleSignInResponse.md +30 -0
  55. package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
  56. package/docs/InitiateSubscriptionSessionResponse.md +22 -0
  57. package/docs/PaymentMethod.md +11 -0
  58. package/docs/PlayerWithPaymentMethod.md +22 -0
  59. package/docs/PriceResponse.md +38 -0
  60. package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
  61. package/docs/SlotResponse.md +40 -0
  62. package/docs/SlotsResponse.md +22 -0
  63. package/docs/Sport.md +24 -0
  64. package/docs/SportResponse.md +34 -0
  65. package/docs/SportsApi.md +229 -0
  66. package/docs/SportsResponse.md +22 -0
  67. package/docs/SubscribeToClubRequestBody.md +22 -0
  68. package/docs/SubscriptionPlan.md +36 -0
  69. package/docs/SubscriptionPlanResponse.md +36 -0
  70. package/docs/SubscriptionResponse.md +36 -0
  71. package/docs/UpdateClubRequest.md +40 -0
  72. package/docs/UpdateClubRoleRequestBody.md +24 -0
  73. package/docs/UpdateCustomerRequestBody.md +26 -0
  74. package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
  75. package/docs/UpdateCustomerResponse.md +22 -0
  76. package/docs/UpdateCustomerResponseCustomer.md +28 -0
  77. package/docs/UpdateSportRequest.md +20 -0
  78. package/docs/UpdateSubscriptionPlanRequest.md +24 -0
  79. package/docs/UpdateSubscriptionPlanResponse.md +22 -0
  80. package/docs/UsersApi.md +491 -21
  81. package/package.json +1 -33
@@ -0,0 +1,353 @@
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
+ |[**getAvailableSlotsByClub**](#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots/ | Obtenir tous les créneaux disponibles pour un club|
10
+ |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
11
+ |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
12
+ |[**getSlotsByClub**](#getslotsbyclub) | **GET** /api/clubs/{id}/slots | Récupérer tous les créneaux pour un club|
13
+
14
+ # **deleteSlotsByClubInRange**
15
+ > DeleteSlotsByClubInRange200Response deleteSlotsByClubInRange()
16
+
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ ClubSlotsApi,
23
+ Configuration
24
+ } from '@tennac-booking/sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new ClubSlotsApi(configuration);
28
+
29
+ let id: string; //ID du club (default to undefined)
30
+ let start: string; //Date de début (format ISO) (default to undefined)
31
+ let end: string; //Date de fin (format ISO) (default to undefined)
32
+
33
+ const { status, data } = await apiInstance.deleteSlotsByClubInRange(
34
+ id,
35
+ start,
36
+ end
37
+ );
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ |Name | Type | Description | Notes|
43
+ |------------- | ------------- | ------------- | -------------|
44
+ | **id** | [**string**] | ID du club | defaults to undefined|
45
+ | **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
46
+ | **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
47
+
48
+
49
+ ### Return type
50
+
51
+ **DeleteSlotsByClubInRange200Response**
52
+
53
+ ### Authorization
54
+
55
+ [bearerAuth](../README.md#bearerAuth)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: application/json
61
+
62
+
63
+ ### HTTP response details
64
+ | Status code | Description | Response headers |
65
+ |-------------|-------------|------------------|
66
+ |**200** | Créneaux supprimés avec succès | - |
67
+ |**400** | Requête invalide | - |
68
+ |**500** | Erreur serveur interne | - |
69
+
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)
71
+
72
+ # **generateSlotsForNextThreeWeeks**
73
+ > GenerateSlotsForNextThreeWeeks201Response generateSlotsForNextThreeWeeks()
74
+
75
+
76
+ ### Example
77
+
78
+ ```typescript
79
+ import {
80
+ ClubSlotsApi,
81
+ Configuration
82
+ } from '@tennac-booking/sdk';
83
+
84
+ const configuration = new Configuration();
85
+ const apiInstance = new ClubSlotsApi(configuration);
86
+
87
+ let id: string; //ID du club (default to undefined)
88
+
89
+ const { status, data } = await apiInstance.generateSlotsForNextThreeWeeks(
90
+ id
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **id** | [**string**] | ID du club | defaults to undefined|
99
+
100
+
101
+ ### Return type
102
+
103
+ **GenerateSlotsForNextThreeWeeks201Response**
104
+
105
+ ### Authorization
106
+
107
+ [bearerAuth](../README.md#bearerAuth)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ |**201** | Créneaux générés avec succès | - |
119
+ |**400** | Requête invalide | - |
120
+ |**404** | Ressource non trouvée | - |
121
+ |**500** | Erreur serveur interne | - |
122
+
123
+ [[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)
124
+
125
+ # **getAvailableSlotsByClub**
126
+ > SlotsResponse getAvailableSlotsByClub()
127
+
128
+
129
+ ### Example
130
+
131
+ ```typescript
132
+ import {
133
+ ClubSlotsApi,
134
+ Configuration
135
+ } from '@tennac-booking/sdk';
136
+
137
+ const configuration = new Configuration();
138
+ const apiInstance = new ClubSlotsApi(configuration);
139
+
140
+ let clubID: string; //ID du club (default to undefined)
141
+
142
+ const { status, data } = await apiInstance.getAvailableSlotsByClub(
143
+ clubID
144
+ );
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ |Name | Type | Description | Notes|
150
+ |------------- | ------------- | ------------- | -------------|
151
+ | **clubID** | [**string**] | ID du club | defaults to undefined|
152
+
153
+
154
+ ### Return type
155
+
156
+ **SlotsResponse**
157
+
158
+ ### Authorization
159
+
160
+ [bearerAuth](../README.md#bearerAuth)
161
+
162
+ ### HTTP request headers
163
+
164
+ - **Content-Type**: Not defined
165
+ - **Accept**: application/json
166
+
167
+
168
+ ### HTTP response details
169
+ | Status code | Description | Response headers |
170
+ |-------------|-------------|------------------|
171
+ |**200** | Liste des créneaux disponibles pour le club | - |
172
+ |**400** | Requête invalide | - |
173
+ |**500** | Erreur serveur interne | - |
174
+
175
+ [[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)
176
+
177
+ # **getAvailableSlotsBySports**
178
+ > SlotsResponse getAvailableSlotsBySports()
179
+
180
+
181
+ ### Example
182
+
183
+ ```typescript
184
+ import {
185
+ ClubSlotsApi,
186
+ Configuration
187
+ } from '@tennac-booking/sdk';
188
+
189
+ const configuration = new Configuration();
190
+ const apiInstance = new ClubSlotsApi(configuration);
191
+
192
+ let id: string; //ID du club (default to undefined)
193
+ let sportId: string; //ID du sport (default to undefined)
194
+ let start: string; //Date de début (format ISO) (optional) (default to undefined)
195
+ let end: string; //Date de fin (format ISO) (optional) (default to undefined)
196
+
197
+ const { status, data } = await apiInstance.getAvailableSlotsBySports(
198
+ id,
199
+ sportId,
200
+ start,
201
+ end
202
+ );
203
+ ```
204
+
205
+ ### Parameters
206
+
207
+ |Name | Type | Description | Notes|
208
+ |------------- | ------------- | ------------- | -------------|
209
+ | **id** | [**string**] | ID du club | defaults to undefined|
210
+ | **sportId** | [**string**] | ID du sport | defaults to undefined|
211
+ | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
212
+ | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
213
+
214
+
215
+ ### Return type
216
+
217
+ **SlotsResponse**
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** | Liste des créneaux disponibles | - |
233
+ |**400** | Requête invalide | - |
234
+ |**500** | Erreur serveur interne | - |
235
+
236
+ [[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)
237
+
238
+ # **getAvailableSlotsBySportsAndDay**
239
+ > SlotsResponse getAvailableSlotsBySportsAndDay()
240
+
241
+
242
+ ### Example
243
+
244
+ ```typescript
245
+ import {
246
+ ClubSlotsApi,
247
+ Configuration
248
+ } from '@tennac-booking/sdk';
249
+
250
+ const configuration = new Configuration();
251
+ const apiInstance = new ClubSlotsApi(configuration);
252
+
253
+ let id: string; //ID du club (default to undefined)
254
+ let sportId: string; //ID du sport (default to undefined)
255
+ let day: string; //Date du jour (format YYYY-MM-DD) (default to undefined)
256
+
257
+ const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
258
+ id,
259
+ sportId,
260
+ day
261
+ );
262
+ ```
263
+
264
+ ### Parameters
265
+
266
+ |Name | Type | Description | Notes|
267
+ |------------- | ------------- | ------------- | -------------|
268
+ | **id** | [**string**] | ID du club | defaults to undefined|
269
+ | **sportId** | [**string**] | ID du sport | defaults to undefined|
270
+ | **day** | [**string**] | Date du jour (format YYYY-MM-DD) | defaults to undefined|
271
+
272
+
273
+ ### Return type
274
+
275
+ **SlotsResponse**
276
+
277
+ ### Authorization
278
+
279
+ [bearerAuth](../README.md#bearerAuth)
280
+
281
+ ### HTTP request headers
282
+
283
+ - **Content-Type**: Not defined
284
+ - **Accept**: application/json
285
+
286
+
287
+ ### HTTP response details
288
+ | Status code | Description | Response headers |
289
+ |-------------|-------------|------------------|
290
+ |**200** | Liste des créneaux disponibles pour le jour donné | - |
291
+ |**400** | Requête invalide | - |
292
+ |**500** | Erreur serveur interne | - |
293
+
294
+ [[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)
295
+
296
+ # **getSlotsByClub**
297
+ > SlotsResponse getSlotsByClub()
298
+
299
+
300
+ ### Example
301
+
302
+ ```typescript
303
+ import {
304
+ ClubSlotsApi,
305
+ Configuration
306
+ } from '@tennac-booking/sdk';
307
+
308
+ const configuration = new Configuration();
309
+ const apiInstance = new ClubSlotsApi(configuration);
310
+
311
+ let id: string; //ID du club (default to undefined)
312
+ let start: string; //Date de début (format ISO) (optional) (default to undefined)
313
+ let end: string; //Date de fin (format ISO) (optional) (default to undefined)
314
+
315
+ const { status, data } = await apiInstance.getSlotsByClub(
316
+ id,
317
+ start,
318
+ end
319
+ );
320
+ ```
321
+
322
+ ### Parameters
323
+
324
+ |Name | Type | Description | Notes|
325
+ |------------- | ------------- | ------------- | -------------|
326
+ | **id** | [**string**] | ID du club | defaults to undefined|
327
+ | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
328
+ | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
329
+
330
+
331
+ ### Return type
332
+
333
+ **SlotsResponse**
334
+
335
+ ### Authorization
336
+
337
+ [bearerAuth](../README.md#bearerAuth)
338
+
339
+ ### HTTP request headers
340
+
341
+ - **Content-Type**: Not defined
342
+ - **Accept**: application/json
343
+
344
+
345
+ ### HTTP response details
346
+ | Status code | Description | Response headers |
347
+ |-------------|-------------|------------------|
348
+ |**200** | Liste des créneaux du club | - |
349
+ |**400** | Requête invalide | - |
350
+ |**500** | Erreur serveur interne | - |
351
+
352
+ [[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)
353
+
@@ -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
+