@tennac-booking/sdk 1.0.22 → 1.0.24

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 (64) hide show
  1. package/.openapi-generator/FILES +15 -6
  2. package/README.md +61 -37
  3. package/api.ts +2800 -1354
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1679 -845
  8. package/dist/api.js +1955 -989
  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 +1679 -845
  16. package/dist/esm/api.js +1932 -962
  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/AddPaymentMethodSetupRequestBody.md +20 -0
  28. package/docs/AddPaymentMethodSetupResponse.md +24 -0
  29. package/docs/AdminClubAnalyticsApi.md +249 -0
  30. package/docs/AdminClubSlotsApi.md +120 -0
  31. package/docs/AdminClubSubscriptionsApi.md +394 -0
  32. package/docs/AdminClubsApi.md +82 -20
  33. package/docs/BlockSlotResponse.md +1 -1
  34. package/docs/BookingPopulated.md +28 -0
  35. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
  36. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
  37. package/docs/BookingPopulatedSlotId.md +26 -0
  38. package/docs/BookingPopulatedSlotIdCourtId.md +22 -0
  39. package/docs/BookingPopulatedUserId.md +24 -0
  40. package/docs/ClubAnalyticsApi.md +4 -16
  41. package/docs/ClubSettings.md +14 -8
  42. package/docs/{GetAllSportsRequest.md → DeleteClub200Response.md} +5 -5
  43. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +3 -5
  44. package/docs/{CancelBookingRequest.md → LevelBySportsItem.md} +7 -5
  45. package/docs/ManagerBookingsApi.md +0 -118
  46. package/docs/ManagerClubCourtsApi.md +4 -14
  47. package/docs/ManagerClubSlotsApi.md +2 -8
  48. package/docs/ManagerClubSubscriptionsApi.md +7 -28
  49. package/docs/ManagerClubsApi.md +14 -41
  50. package/docs/ManagerSportsApi.md +55 -0
  51. package/docs/{CheckInPlayersRequest.md → ProfilePictureResponse.md} +5 -5
  52. package/docs/StaffClubAnalyticsApi.md +14 -14
  53. package/docs/StaffClubBookingsApi.md +5 -12
  54. package/docs/StaffClubsApi.md +57 -8
  55. package/docs/UpdateLevelBySportsRequestBody.md +20 -0
  56. package/docs/UpdateProfilePictureRequestBody.md +20 -0
  57. package/docs/UserApi.md +0 -56
  58. package/docs/UserPaymentApi.md +55 -0
  59. package/docs/UserProfileApi.md +158 -0
  60. package/index.ts +1 -1
  61. package/package.json +1 -1
  62. package/docs/BookingsApi.md +0 -68
  63. package/docs/StaffClubSettingsApi.md +0 -54
  64. package/docs/StaffSportsApi.md +0 -62
@@ -6,7 +6,10 @@ All URIs are relative to *https://api.mon-domaine.com*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
8
8
  |[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs avec filtres et pagination|
9
+ |[**getProfilePicture**](#getprofilepicture) | **GET** /api/users/me/profile-picture | Récupère l\'URL de la photo de profil de l\'utilisateur connecté|
9
10
  |[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
11
+ |[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté|
12
+ |[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté|
10
13
  |[**updateUser**](#updateuser) | **PUT** /api/users/me | Met à jour les données de l\'utilisateur connecté|
11
14
 
12
15
  # **changePassword**
@@ -122,6 +125,52 @@ const { status, data } = await apiInstance.getAllUsers(
122
125
 
123
126
  [[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
127
 
128
+ # **getProfilePicture**
129
+ > ProfilePictureResponse getProfilePicture()
130
+
131
+
132
+ ### Example
133
+
134
+ ```typescript
135
+ import {
136
+ UserProfileApi,
137
+ Configuration
138
+ } from '@tennac-booking/sdk';
139
+
140
+ const configuration = new Configuration();
141
+ const apiInstance = new UserProfileApi(configuration);
142
+
143
+ const { status, data } = await apiInstance.getProfilePicture();
144
+ ```
145
+
146
+ ### Parameters
147
+ This endpoint does not have any parameters.
148
+
149
+
150
+ ### Return type
151
+
152
+ **ProfilePictureResponse**
153
+
154
+ ### Authorization
155
+
156
+ [bearerAuth](../README.md#bearerAuth)
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json
162
+
163
+
164
+ ### HTTP response details
165
+ | Status code | Description | Response headers |
166
+ |-------------|-------------|------------------|
167
+ |**200** | URL de la photo de profil | - |
168
+ |**401** | Non autorisé | - |
169
+ |**404** | Ressource non trouvée | - |
170
+ |**500** | Erreur serveur interne | - |
171
+
172
+ [[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)
173
+
125
174
  # **getUserInfo**
126
175
  > UserResponse getUserInfo()
127
176
 
@@ -168,6 +217,115 @@ This endpoint does not have any parameters.
168
217
 
169
218
  [[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)
170
219
 
220
+ # **updateLevelBySports**
221
+ > UserResponse updateLevelBySports(updateLevelBySportsRequestBody)
222
+
223
+
224
+ ### Example
225
+
226
+ ```typescript
227
+ import {
228
+ UserProfileApi,
229
+ Configuration,
230
+ UpdateLevelBySportsRequestBody
231
+ } from '@tennac-booking/sdk';
232
+
233
+ const configuration = new Configuration();
234
+ const apiInstance = new UserProfileApi(configuration);
235
+
236
+ let updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody; //
237
+
238
+ const { status, data } = await apiInstance.updateLevelBySports(
239
+ updateLevelBySportsRequestBody
240
+ );
241
+ ```
242
+
243
+ ### Parameters
244
+
245
+ |Name | Type | Description | Notes|
246
+ |------------- | ------------- | ------------- | -------------|
247
+ | **updateLevelBySportsRequestBody** | **UpdateLevelBySportsRequestBody**| | |
248
+
249
+
250
+ ### Return type
251
+
252
+ **UserResponse**
253
+
254
+ ### Authorization
255
+
256
+ [bearerAuth](../README.md#bearerAuth)
257
+
258
+ ### HTTP request headers
259
+
260
+ - **Content-Type**: application/json
261
+ - **Accept**: application/json
262
+
263
+
264
+ ### HTTP response details
265
+ | Status code | Description | Response headers |
266
+ |-------------|-------------|------------------|
267
+ |**200** | Utilisateur mis à jour | - |
268
+ |**400** | Requête invalide | - |
269
+ |**401** | Non autorisé | - |
270
+ |**500** | Erreur serveur interne | - |
271
+
272
+ [[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)
273
+
274
+ # **updateProfilePicture**
275
+ > ProfilePictureResponse updateProfilePicture(updateProfilePictureRequestBody)
276
+
277
+
278
+ ### Example
279
+
280
+ ```typescript
281
+ import {
282
+ UserProfileApi,
283
+ Configuration,
284
+ UpdateProfilePictureRequestBody
285
+ } from '@tennac-booking/sdk';
286
+
287
+ const configuration = new Configuration();
288
+ const apiInstance = new UserProfileApi(configuration);
289
+
290
+ let updateProfilePictureRequestBody: UpdateProfilePictureRequestBody; //
291
+
292
+ const { status, data } = await apiInstance.updateProfilePicture(
293
+ updateProfilePictureRequestBody
294
+ );
295
+ ```
296
+
297
+ ### Parameters
298
+
299
+ |Name | Type | Description | Notes|
300
+ |------------- | ------------- | ------------- | -------------|
301
+ | **updateProfilePictureRequestBody** | **UpdateProfilePictureRequestBody**| | |
302
+
303
+
304
+ ### Return type
305
+
306
+ **ProfilePictureResponse**
307
+
308
+ ### Authorization
309
+
310
+ [bearerAuth](../README.md#bearerAuth)
311
+
312
+ ### HTTP request headers
313
+
314
+ - **Content-Type**: application/json
315
+ - **Accept**: application/json
316
+
317
+
318
+ ### HTTP response details
319
+ | Status code | Description | Response headers |
320
+ |-------------|-------------|------------------|
321
+ |**200** | Nouvelle URL de la photo de profil | - |
322
+ |**400** | Requête invalide | - |
323
+ |**401** | Non autorisé | - |
324
+ |**404** | Ressource non trouvée | - |
325
+ |**500** | Erreur serveur interne | - |
326
+
327
+ [[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)
328
+
171
329
  # **updateUser**
172
330
  > UserResponse updateUser(updateUserRequestBody)
173
331
 
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.22
7
+ * The version of the OpenAPI document: 1.0.24
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "publishConfig": {
@@ -1,68 +0,0 @@
1
- # BookingsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**cancelBooking**](#cancelbooking) | **DELETE** /api/bookings/{bookingId}/cancel | Annuler une réservation (créateur uniquement)|
8
-
9
- # **cancelBooking**
10
- > CancelBookingResponse cancelBooking(cancelBookingRequest)
11
-
12
- Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- BookingsApi,
19
- Configuration,
20
- CancelBookingRequest
21
- } from '@tennac-booking/sdk';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new BookingsApi(configuration);
25
-
26
- let bookingId: string; //ID MongoDB de la réservation à annuler (default to undefined)
27
- let cancelBookingRequest: CancelBookingRequest; //
28
-
29
- const { status, data } = await apiInstance.cancelBooking(
30
- bookingId,
31
- cancelBookingRequest
32
- );
33
- ```
34
-
35
- ### Parameters
36
-
37
- |Name | Type | Description | Notes|
38
- |------------- | ------------- | ------------- | -------------|
39
- | **cancelBookingRequest** | **CancelBookingRequest**| | |
40
- | **bookingId** | [**string**] | ID MongoDB de la réservation à annuler | defaults to undefined|
41
-
42
-
43
- ### Return type
44
-
45
- **CancelBookingResponse**
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
- |**200** | Réservation annulée avec succès | - |
61
- |**400** | Requête invalide | - |
62
- |**401** | Non autorisé | - |
63
- |**403** | Accès interdit - Seul le créateur peut annuler | - |
64
- |**404** | Réservation non trouvée | - |
65
- |**500** | Erreur serveur interne | - |
66
-
67
- [[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)
68
-
@@ -1,54 +0,0 @@
1
- # StaffClubSettingsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d\'un club|
8
-
9
- # **getClubSettings**
10
- > ClubSettings getClubSettings()
11
-
12
-
13
- ### Example
14
-
15
- ```typescript
16
- import {
17
- StaffClubSettingsApi,
18
- Configuration
19
- } from '@tennac-booking/sdk';
20
-
21
- const configuration = new Configuration();
22
- const apiInstance = new StaffClubSettingsApi(configuration);
23
-
24
- const { status, data } = await apiInstance.getClubSettings();
25
- ```
26
-
27
- ### Parameters
28
- This endpoint does not have any parameters.
29
-
30
-
31
- ### Return type
32
-
33
- **ClubSettings**
34
-
35
- ### Authorization
36
-
37
- [bearerAuth](../README.md#bearerAuth)
38
-
39
- ### HTTP request headers
40
-
41
- - **Content-Type**: Not defined
42
- - **Accept**: application/json
43
-
44
-
45
- ### HTTP response details
46
- | Status code | Description | Response headers |
47
- |-------------|-------------|------------------|
48
- |**200** | Paramètres du club | - |
49
- |**401** | Non autorisé | - |
50
- |**404** | Ressource non trouvée | - |
51
- |**500** | Erreur serveur interne | - |
52
-
53
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
54
-
@@ -1,62 +0,0 @@
1
- # StaffSportsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getAllSports**](#getallsports) | **GET** /api/sports | Récupère la liste des sports d\'un club|
8
-
9
- # **getAllSports**
10
- > Array<SportResponse> getAllSports(getAllSportsRequest)
11
-
12
-
13
- ### Example
14
-
15
- ```typescript
16
- import {
17
- StaffSportsApi,
18
- Configuration,
19
- GetAllSportsRequest
20
- } from '@tennac-booking/sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new StaffSportsApi(configuration);
24
-
25
- let getAllSportsRequest: GetAllSportsRequest; //
26
-
27
- const { status, data } = await apiInstance.getAllSports(
28
- getAllSportsRequest
29
- );
30
- ```
31
-
32
- ### Parameters
33
-
34
- |Name | Type | Description | Notes|
35
- |------------- | ------------- | ------------- | -------------|
36
- | **getAllSportsRequest** | **GetAllSportsRequest**| | |
37
-
38
-
39
- ### Return type
40
-
41
- **Array<SportResponse>**
42
-
43
- ### Authorization
44
-
45
- [bearerAuth](../README.md#bearerAuth)
46
-
47
- ### HTTP request headers
48
-
49
- - **Content-Type**: application/json
50
- - **Accept**: application/json
51
-
52
-
53
- ### HTTP response details
54
- | Status code | Description | Response headers |
55
- |-------------|-------------|------------------|
56
- |**200** | Liste des sports | - |
57
- |**400** | Requête invalide | - |
58
- |**401** | Non autorisé | - |
59
- |**500** | Erreur serveur interne | - |
60
-
61
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
62
-