@tennac-booking/sdk 1.0.24 → 1.0.26

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 (53) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +36 -2
  3. package/api.ts +3120 -1375
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1114 -19
  8. package/dist/api.js +1216 -92
  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 +1114 -19
  16. package/dist/esm/api.js +1202 -90
  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/AddFavoriteClubRequestBody.md +20 -0
  28. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -2
  29. package/docs/CreateEventRequest.md +30 -0
  30. package/docs/DeleteEvent200Response.md +20 -0
  31. package/docs/Event.md +40 -0
  32. package/docs/EventBooking.md +32 -0
  33. package/docs/EventRegistrationRequest.md +22 -0
  34. package/docs/EventsApi.md +119 -0
  35. package/docs/FavoriteClubResponse.md +22 -0
  36. package/docs/FrequentlyPlayedWithItem.md +28 -0
  37. package/docs/FrequentlyVisitedClubItem.md +24 -0
  38. package/docs/GetPublishedEventsByClubId200Response.md +20 -0
  39. package/docs/ManagerEventResponse.md +22 -0
  40. package/docs/ManagerEventsApi.md +227 -0
  41. package/docs/ProfileVisibilityResponse.md +20 -0
  42. package/docs/RegisterForEvent201Response.md +20 -0
  43. package/docs/SetupPaymentMethodRequestBody.md +0 -2
  44. package/docs/StaffEventResponse.md +20 -0
  45. package/docs/StaffEventsApi.md +54 -0
  46. package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
  47. package/docs/UpdateUserCityRequestBody.md +20 -0
  48. package/docs/UpdateUserDescriptionRequestBody.md +20 -0
  49. package/docs/UserCityResponse.md +20 -0
  50. package/docs/UserDescriptionResponse.md +20 -0
  51. package/docs/UserProfileApi.md +398 -0
  52. package/index.ts +1 -1
  53. package/package.json +5 -4
@@ -6,11 +6,19 @@ 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
+ |[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)|
10
+ |[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté|
9
11
  |[**getProfilePicture**](#getprofilepicture) | **GET** /api/users/me/profile-picture | Récupère l\'URL de la photo de profil de l\'utilisateur connecté|
12
+ |[**getUserCity**](#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté|
13
+ |[**getUserDescription**](#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté|
10
14
  |[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
15
+ |[**getUserProfileVisibility**](#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté|
11
16
  |[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté|
12
17
  |[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté|
18
+ |[**updateProfileVisibility**](#updateprofilevisibility) | **PUT** /api/users/me/profile-visibility | Met à jour la visibilité du profil de l\'utilisateur connecté|
13
19
  |[**updateUser**](#updateuser) | **PUT** /api/users/me | Met à jour les données de l\'utilisateur connecté|
20
+ |[**updateUserCity**](#updateusercity) | **PUT** /api/users/me/city | Met à jour la ville de l\'utilisateur connecté|
21
+ |[**updateUserDescription**](#updateuserdescription) | **PUT** /api/users/me/description | Met à jour la description de l\'utilisateur connecté|
14
22
 
15
23
  # **changePassword**
16
24
  > ChangePasswordResponse changePassword(changePasswordRequestBody)
@@ -125,6 +133,96 @@ const { status, data } = await apiInstance.getAllUsers(
125
133
 
126
134
  [[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)
127
135
 
136
+ # **getFrequentlyPlayedWith**
137
+ > Array<FrequentlyPlayedWithItem> getFrequentlyPlayedWith()
138
+
139
+
140
+ ### Example
141
+
142
+ ```typescript
143
+ import {
144
+ UserProfileApi,
145
+ Configuration
146
+ } from '@tennac-booking/sdk';
147
+
148
+ const configuration = new Configuration();
149
+ const apiInstance = new UserProfileApi(configuration);
150
+
151
+ const { status, data } = await apiInstance.getFrequentlyPlayedWith();
152
+ ```
153
+
154
+ ### Parameters
155
+ This endpoint does not have any parameters.
156
+
157
+
158
+ ### Return type
159
+
160
+ **Array<FrequentlyPlayedWithItem>**
161
+
162
+ ### Authorization
163
+
164
+ [bearerAuth](../README.md#bearerAuth)
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: Not defined
169
+ - **Accept**: application/json
170
+
171
+
172
+ ### HTTP response details
173
+ | Status code | Description | Response headers |
174
+ |-------------|-------------|------------------|
175
+ |**200** | Liste des joueurs triée par nombre de parties jouées | - |
176
+ |**401** | Non autorisé | - |
177
+ |**500** | Erreur serveur interne | - |
178
+
179
+ [[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)
180
+
181
+ # **getFrequentlyVisitedClub**
182
+ > Array<FrequentlyVisitedClubItem> getFrequentlyVisitedClub()
183
+
184
+
185
+ ### Example
186
+
187
+ ```typescript
188
+ import {
189
+ UserProfileApi,
190
+ Configuration
191
+ } from '@tennac-booking/sdk';
192
+
193
+ const configuration = new Configuration();
194
+ const apiInstance = new UserProfileApi(configuration);
195
+
196
+ const { status, data } = await apiInstance.getFrequentlyVisitedClub();
197
+ ```
198
+
199
+ ### Parameters
200
+ This endpoint does not have any parameters.
201
+
202
+
203
+ ### Return type
204
+
205
+ **Array<FrequentlyVisitedClubItem>**
206
+
207
+ ### Authorization
208
+
209
+ [bearerAuth](../README.md#bearerAuth)
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: Not defined
214
+ - **Accept**: application/json
215
+
216
+
217
+ ### HTTP response details
218
+ | Status code | Description | Response headers |
219
+ |-------------|-------------|------------------|
220
+ |**200** | Liste des clubs triée par nombre de visites | - |
221
+ |**401** | Non autorisé | - |
222
+ |**500** | Erreur serveur interne | - |
223
+
224
+ [[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
+
128
226
  # **getProfilePicture**
129
227
  > ProfilePictureResponse getProfilePicture()
130
228
 
@@ -171,6 +269,98 @@ This endpoint does not have any parameters.
171
269
 
172
270
  [[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
271
 
272
+ # **getUserCity**
273
+ > UserCityResponse getUserCity()
274
+
275
+
276
+ ### Example
277
+
278
+ ```typescript
279
+ import {
280
+ UserProfileApi,
281
+ Configuration
282
+ } from '@tennac-booking/sdk';
283
+
284
+ const configuration = new Configuration();
285
+ const apiInstance = new UserProfileApi(configuration);
286
+
287
+ const { status, data } = await apiInstance.getUserCity();
288
+ ```
289
+
290
+ ### Parameters
291
+ This endpoint does not have any parameters.
292
+
293
+
294
+ ### Return type
295
+
296
+ **UserCityResponse**
297
+
298
+ ### Authorization
299
+
300
+ [bearerAuth](../README.md#bearerAuth)
301
+
302
+ ### HTTP request headers
303
+
304
+ - **Content-Type**: Not defined
305
+ - **Accept**: application/json
306
+
307
+
308
+ ### HTTP response details
309
+ | Status code | Description | Response headers |
310
+ |-------------|-------------|------------------|
311
+ |**200** | Ville de l\&#39;utilisateur | - |
312
+ |**401** | Non autorisé | - |
313
+ |**404** | Ressource non trouvée | - |
314
+ |**500** | Erreur serveur interne | - |
315
+
316
+ [[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)
317
+
318
+ # **getUserDescription**
319
+ > UserDescriptionResponse getUserDescription()
320
+
321
+
322
+ ### Example
323
+
324
+ ```typescript
325
+ import {
326
+ UserProfileApi,
327
+ Configuration
328
+ } from '@tennac-booking/sdk';
329
+
330
+ const configuration = new Configuration();
331
+ const apiInstance = new UserProfileApi(configuration);
332
+
333
+ const { status, data } = await apiInstance.getUserDescription();
334
+ ```
335
+
336
+ ### Parameters
337
+ This endpoint does not have any parameters.
338
+
339
+
340
+ ### Return type
341
+
342
+ **UserDescriptionResponse**
343
+
344
+ ### Authorization
345
+
346
+ [bearerAuth](../README.md#bearerAuth)
347
+
348
+ ### HTTP request headers
349
+
350
+ - **Content-Type**: Not defined
351
+ - **Accept**: application/json
352
+
353
+
354
+ ### HTTP response details
355
+ | Status code | Description | Response headers |
356
+ |-------------|-------------|------------------|
357
+ |**200** | Description de l\&#39;utilisateur | - |
358
+ |**401** | Non autorisé | - |
359
+ |**404** | Ressource non trouvée | - |
360
+ |**500** | Erreur serveur interne | - |
361
+
362
+ [[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)
363
+
174
364
  # **getUserInfo**
175
365
  > UserResponse getUserInfo()
176
366
 
@@ -217,6 +407,52 @@ This endpoint does not have any parameters.
217
407
 
218
408
  [[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)
219
409
 
410
+ # **getUserProfileVisibility**
411
+ > ProfileVisibilityResponse getUserProfileVisibility()
412
+
413
+
414
+ ### Example
415
+
416
+ ```typescript
417
+ import {
418
+ UserProfileApi,
419
+ Configuration
420
+ } from '@tennac-booking/sdk';
421
+
422
+ const configuration = new Configuration();
423
+ const apiInstance = new UserProfileApi(configuration);
424
+
425
+ const { status, data } = await apiInstance.getUserProfileVisibility();
426
+ ```
427
+
428
+ ### Parameters
429
+ This endpoint does not have any parameters.
430
+
431
+
432
+ ### Return type
433
+
434
+ **ProfileVisibilityResponse**
435
+
436
+ ### Authorization
437
+
438
+ [bearerAuth](../README.md#bearerAuth)
439
+
440
+ ### HTTP request headers
441
+
442
+ - **Content-Type**: Not defined
443
+ - **Accept**: application/json
444
+
445
+
446
+ ### HTTP response details
447
+ | Status code | Description | Response headers |
448
+ |-------------|-------------|------------------|
449
+ |**200** | Visibilité du profil de l\&#39;utilisateur | - |
450
+ |**401** | Non autorisé | - |
451
+ |**404** | Ressource non trouvée | - |
452
+ |**500** | Erreur serveur interne | - |
453
+
454
+ [[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)
455
+
220
456
  # **updateLevelBySports**
221
457
  > UserResponse updateLevelBySports(updateLevelBySportsRequestBody)
222
458
 
@@ -326,6 +562,60 @@ const { status, data } = await apiInstance.updateProfilePicture(
326
562
 
327
563
  [[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
564
 
565
+ # **updateProfileVisibility**
566
+ > UserResponse updateProfileVisibility(updateProfileVisibilityRequestBody)
567
+
568
+
569
+ ### Example
570
+
571
+ ```typescript
572
+ import {
573
+ UserProfileApi,
574
+ Configuration,
575
+ UpdateProfileVisibilityRequestBody
576
+ } from '@tennac-booking/sdk';
577
+
578
+ const configuration = new Configuration();
579
+ const apiInstance = new UserProfileApi(configuration);
580
+
581
+ let updateProfileVisibilityRequestBody: UpdateProfileVisibilityRequestBody; //
582
+
583
+ const { status, data } = await apiInstance.updateProfileVisibility(
584
+ updateProfileVisibilityRequestBody
585
+ );
586
+ ```
587
+
588
+ ### Parameters
589
+
590
+ |Name | Type | Description | Notes|
591
+ |------------- | ------------- | ------------- | -------------|
592
+ | **updateProfileVisibilityRequestBody** | **UpdateProfileVisibilityRequestBody**| | |
593
+
594
+
595
+ ### Return type
596
+
597
+ **UserResponse**
598
+
599
+ ### Authorization
600
+
601
+ [bearerAuth](../README.md#bearerAuth)
602
+
603
+ ### HTTP request headers
604
+
605
+ - **Content-Type**: application/json
606
+ - **Accept**: application/json
607
+
608
+
609
+ ### HTTP response details
610
+ | Status code | Description | Response headers |
611
+ |-------------|-------------|------------------|
612
+ |**200** | Visibilité du profil mise à jour | - |
613
+ |**400** | Requête invalide | - |
614
+ |**401** | Non autorisé | - |
615
+ |**500** | Erreur serveur interne | - |
616
+
617
+ [[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)
618
+
329
619
  # **updateUser**
330
620
  > UserResponse updateUser(updateUserRequestBody)
331
621
 
@@ -380,3 +670,111 @@ const { status, data } = await apiInstance.updateUser(
380
670
 
381
671
  [[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)
382
672
 
673
+ # **updateUserCity**
674
+ > UserResponse updateUserCity(updateUserCityRequestBody)
675
+
676
+
677
+ ### Example
678
+
679
+ ```typescript
680
+ import {
681
+ UserProfileApi,
682
+ Configuration,
683
+ UpdateUserCityRequestBody
684
+ } from '@tennac-booking/sdk';
685
+
686
+ const configuration = new Configuration();
687
+ const apiInstance = new UserProfileApi(configuration);
688
+
689
+ let updateUserCityRequestBody: UpdateUserCityRequestBody; //
690
+
691
+ const { status, data } = await apiInstance.updateUserCity(
692
+ updateUserCityRequestBody
693
+ );
694
+ ```
695
+
696
+ ### Parameters
697
+
698
+ |Name | Type | Description | Notes|
699
+ |------------- | ------------- | ------------- | -------------|
700
+ | **updateUserCityRequestBody** | **UpdateUserCityRequestBody**| | |
701
+
702
+
703
+ ### Return type
704
+
705
+ **UserResponse**
706
+
707
+ ### Authorization
708
+
709
+ [bearerAuth](../README.md#bearerAuth)
710
+
711
+ ### HTTP request headers
712
+
713
+ - **Content-Type**: application/json
714
+ - **Accept**: application/json
715
+
716
+
717
+ ### HTTP response details
718
+ | Status code | Description | Response headers |
719
+ |-------------|-------------|------------------|
720
+ |**200** | Ville mise à jour | - |
721
+ |**400** | Requête invalide | - |
722
+ |**401** | Non autorisé | - |
723
+ |**500** | Erreur serveur interne | - |
724
+
725
+ [[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)
726
+
727
+ # **updateUserDescription**
728
+ > UserResponse updateUserDescription(updateUserDescriptionRequestBody)
729
+
730
+
731
+ ### Example
732
+
733
+ ```typescript
734
+ import {
735
+ UserProfileApi,
736
+ Configuration,
737
+ UpdateUserDescriptionRequestBody
738
+ } from '@tennac-booking/sdk';
739
+
740
+ const configuration = new Configuration();
741
+ const apiInstance = new UserProfileApi(configuration);
742
+
743
+ let updateUserDescriptionRequestBody: UpdateUserDescriptionRequestBody; //
744
+
745
+ const { status, data } = await apiInstance.updateUserDescription(
746
+ updateUserDescriptionRequestBody
747
+ );
748
+ ```
749
+
750
+ ### Parameters
751
+
752
+ |Name | Type | Description | Notes|
753
+ |------------- | ------------- | ------------- | -------------|
754
+ | **updateUserDescriptionRequestBody** | **UpdateUserDescriptionRequestBody**| | |
755
+
756
+
757
+ ### Return type
758
+
759
+ **UserResponse**
760
+
761
+ ### Authorization
762
+
763
+ [bearerAuth](../README.md#bearerAuth)
764
+
765
+ ### HTTP request headers
766
+
767
+ - **Content-Type**: application/json
768
+ - **Accept**: application/json
769
+
770
+
771
+ ### HTTP response details
772
+ | Status code | Description | Response headers |
773
+ |-------------|-------------|------------------|
774
+ |**200** | Description mise à jour | - |
775
+ |**400** | Requête invalide | - |
776
+ |**401** | Non autorisé | - |
777
+ |**500** | Erreur serveur interne | - |
778
+
779
+ [[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)
780
+
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.24
7
+ * The version of the OpenAPI document: 1.0.26
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
- "publishConfig": {
7
- "access": "public"
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
8
9
  },
9
10
  "keywords": [
10
11
  "axios",
@@ -29,4 +30,4 @@
29
30
  "@types/node": "12.11.5 - 12.20.42",
30
31
  "typescript": "^4.0 || ^5.0"
31
32
  }
32
- }
33
+ }