@tennac-booking/sdk 1.0.12 → 1.0.14

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 (101) hide show
  1. package/.openapi-generator/FILES +45 -6
  2. package/README.md +76 -43
  3. package/api.ts +4226 -2326
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2665 -1290
  8. package/dist/api.js +2783 -1672
  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 +2665 -1290
  16. package/dist/esm/api.js +2657 -1604
  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/ActiveClub.md +22 -0
  28. package/docs/ActiveClubListResponse.md +20 -0
  29. package/docs/AdminClubSlotsApi.md +62 -0
  30. package/docs/AdminClubsApi.md +108 -0
  31. package/docs/ApiErrorResponse.md +1 -1
  32. package/docs/BookingsApi.md +4 -60
  33. package/docs/ChangePasswordResponse.md +1 -1
  34. package/docs/{ClubSportsApi.md → ClubAnalyticsApi.md} +20 -27
  35. package/docs/ClubBookingsApi.md +59 -0
  36. package/docs/ClubInfoResponse.md +6 -6
  37. package/docs/ClubResponse.md +6 -6
  38. package/docs/ClubRoleResponse.md +6 -6
  39. package/docs/ClubRolesApi.md +8 -8
  40. package/docs/ClubSettings.md +7 -1
  41. package/docs/ClubSlotsApi.md +0 -172
  42. package/docs/ClubsApi.md +6 -379
  43. package/docs/ClubsResponse.md +22 -0
  44. package/docs/CourtResponse.md +7 -7
  45. package/docs/CourtStatus.md +5 -2
  46. package/docs/CreateClubRequest.md +12 -10
  47. package/docs/CreateClubSettingsRequest.md +28 -0
  48. package/docs/CreateCourtRequest.md +2 -0
  49. package/docs/CreatePriceRequest.md +4 -4
  50. package/docs/CreateSportRequest.md +4 -0
  51. package/docs/CreateSubscriptionPlanRequest.md +3 -3
  52. package/docs/DeleteClubSettingsRequest.md +20 -0
  53. package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
  54. package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
  55. package/docs/GenerateSlotsResponse.md +20 -0
  56. package/docs/GetActiveClubs200Response.md +20 -0
  57. package/docs/GetClubInfos200Response.md +30 -0
  58. package/docs/GetCourtsByClubAndSport200Response.md +26 -0
  59. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
  60. package/docs/GetNumberOfClubUsers200Response.md +20 -0
  61. package/docs/{GetUserRolesInClubs200Response.md → GetUserRolesResponse.md} +4 -4
  62. package/docs/GetUserRolesResponseRolesInner.md +26 -0
  63. package/docs/GetUserSubscriptionsResponse.md +22 -0
  64. package/docs/GoogleSignInRequestBody.md +20 -0
  65. package/docs/GoogleSignInResponse.md +24 -0
  66. package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
  67. package/docs/InitiateSubscriptionSessionResponse.md +22 -0
  68. package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
  69. package/docs/ManagerClubSlotsApi.md +125 -0
  70. package/docs/ManagerClubsApi.md +280 -0
  71. package/docs/PriceResponse.md +2 -8
  72. package/docs/RefreshTokenResponse.md +2 -6
  73. package/docs/SlotResponse.md +2 -8
  74. package/docs/SportResponse.md +0 -2
  75. package/docs/SportsApi.md +10 -120
  76. package/docs/StaffClubSettingsApi.md +62 -0
  77. package/docs/StaffSportsApi.md +62 -0
  78. package/docs/SubscribeToClubRequestBody.md +22 -0
  79. package/docs/SubscriptionPlanResponse.md +4 -8
  80. package/docs/SubscriptionResponse.md +36 -0
  81. package/docs/UpdateClubSettingsRequest.md +28 -0
  82. package/docs/UpdateCustomerRequestBody.md +26 -0
  83. package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
  84. package/docs/UpdateCustomerResponse.md +22 -0
  85. package/docs/UpdateCustomerResponseCustomer.md +28 -0
  86. package/docs/UpdateSportRequest.md +4 -0
  87. package/docs/UpdateSubscriptionPlanRequest.md +3 -3
  88. package/docs/UpdateSubscriptionPlanResponse.md +2 -2
  89. package/docs/{ClubSettingsApi.md → UserAuthenticationApi.md} +54 -55
  90. package/docs/UserBookingsApi.md +63 -0
  91. package/docs/UserClubCourtsApi.md +64 -0
  92. package/docs/UserClubSlotsApi.md +60 -0
  93. package/docs/UserClubSportsApi.md +60 -0
  94. package/docs/UserClubsApi.md +53 -0
  95. package/docs/UserProfileApi.md +271 -0
  96. package/docs/UserResponse.md +8 -14
  97. package/docs/UserSubscriptionsApi.md +222 -0
  98. package/docs/UsersApi.md +22 -324
  99. package/docs/UsersResponse.md +22 -0
  100. package/index.ts +1 -1
  101. package/package.json +32 -1
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**createClubRole**](#createclubrole) | **POST** /api/club-roles | Crée un nouveau rôle de club|
8
- |[**deleteClubRole**](#deleteclubrole) | **DELETE** /api/club-roles/{id} | Supprime un rôle de club|
9
- |[**getAllClubRoles**](#getallclubroles) | **GET** /api/club-roles | Récupère tous les rôles de clubs|
10
- |[**getClubRoleById**](#getclubrolebyid) | **GET** /api/club-roles/{id} | Récupère un rôle de club par son ID|
11
- |[**updateClubRole**](#updateclubrole) | **PUT** /api/club-roles/{id} | Met à jour un rôle de club|
7
+ |[**createClubRole**](#createclubrole) | **POST** /api/club-roles | Créer un nouveau rôle de club|
8
+ |[**deleteClubRole**](#deleteclubrole) | **DELETE** /api/club-roles/{id} | Supprimer un rôle de club|
9
+ |[**getAllClubRoles**](#getallclubroles) | **GET** /api/club-roles | Récupérer tous les rôles de clubs|
10
+ |[**getClubRoleById**](#getclubrolebyid) | **GET** /api/club-roles/{id} | Récupérer un rôle de club par son ID|
11
+ |[**updateClubRole**](#updateclubrole) | **PUT** /api/club-roles/{id} | Mettre à jour un rôle de club|
12
12
 
13
13
  # **createClubRole**
14
14
  > ClubRoleResponse createClubRole(createClubRoleRequestBody)
@@ -57,7 +57,7 @@ const { status, data } = await apiInstance.createClubRole(
57
57
  ### HTTP response details
58
58
  | Status code | Description | Response headers |
59
59
  |-------------|-------------|------------------|
60
- |**201** | Rôle de club créé | - |
60
+ |**201** | Rôle de club créé avec succès | - |
61
61
  |**500** | Erreur serveur interne | - |
62
62
 
63
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)
@@ -108,7 +108,7 @@ const { status, data } = await apiInstance.deleteClubRole(
108
108
  ### HTTP response details
109
109
  | Status code | Description | Response headers |
110
110
  |-------------|-------------|------------------|
111
- |**200** | Rôle de club supprimé | - |
111
+ |**200** | Rôle de club supprimé avec succès | - |
112
112
  |**404** | Rôle de club non trouvé | - |
113
113
  |**500** | Erreur serveur interne | - |
114
114
 
@@ -260,7 +260,7 @@ const { status, data } = await apiInstance.updateClubRole(
260
260
  ### HTTP response details
261
261
  | Status code | Description | Response headers |
262
262
  |-------------|-------------|------------------|
263
- |**200** | Rôle de club mis à jour | - |
263
+ |**200** | Rôle de club mis à jour avec succès | - |
264
264
  |**404** | Rôle de club non trouvé | - |
265
265
  |**500** | Erreur serveur interne | - |
266
266
 
@@ -5,11 +5,14 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | | [default to undefined]
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **clubId** | **string** | | [optional] [default to undefined]
9
10
  **reservationStartTime** | **string** | | [optional] [default to undefined]
10
11
  **reservationEndTime** | **string** | | [optional] [default to undefined]
11
12
  **maxSimultaneousReservations** | **number** | | [optional] [default to undefined]
12
13
  **allowWeekendReservations** | **boolean** | | [optional] [default to undefined]
14
+ **createdAt** | **string** | | [optional] [default to undefined]
15
+ **updatedAt** | **string** | | [optional] [default to undefined]
13
16
 
14
17
  ## Example
15
18
 
@@ -17,11 +20,14 @@ Name | Type | Description | Notes
17
20
  import { ClubSettings } from '@tennac-booking/sdk';
18
21
 
19
22
  const instance: ClubSettings = {
23
+ id,
20
24
  clubId,
21
25
  reservationStartTime,
22
26
  reservationEndTime,
23
27
  maxSimultaneousReservations,
24
28
  allowWeekendReservations,
29
+ createdAt,
30
+ updatedAt,
25
31
  };
26
32
  ```
27
33
 
@@ -4,122 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
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
7
  |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
10
8
  |[**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
9
 
124
10
  # **getAvailableSlotsBySports**
125
11
  > SlotsResponse getAvailableSlotsBySports()
@@ -240,61 +126,3 @@ const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
240
126
 
241
127
  [[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
128
 
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
-
package/docs/ClubsApi.md CHANGED
@@ -4,127 +4,10 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**addClubMember**](#addclubmember) | **PUT** /api/clubs/{id}/add_members | Ajouter un membre à un club|
8
- |[**createClub**](#createclub) | **POST** /api/clubs | Créer un nouveau club|
9
- |[**deleteClub**](#deleteclub) | **DELETE** /api/clubs/{id} | Supprimer un club|
10
- |[**getAllClubs**](#getallclubs) | **GET** /api/clubs | Récupérer tous les clubs|
11
- |[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/{id} | Récupérer les informations d\'un club|
12
- |[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/{id}/members | Récupérer les membres d\'un club|
13
- |[**getClubRoles**](#getclubroles) | **GET** /api/clubs/{id}/roles | Récupérer les rôles d\'un club|
14
- |[**updateClub**](#updateclub) | **PUT** /api/clubs/{id} | Mettre à jour un club existant|
7
+ |[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/{id}/infos | Get club information (name, address, email, etc.)|
15
8
 
16
- # **addClubMember**
17
- > AddClubMemberResponse addClubMember(addClubMemberRequest)
18
-
19
-
20
- ### Example
21
-
22
- ```typescript
23
- import {
24
- ClubsApi,
25
- Configuration,
26
- AddClubMemberRequest
27
- } from '@tennac-booking/sdk';
28
-
29
- const configuration = new Configuration();
30
- const apiInstance = new ClubsApi(configuration);
31
-
32
- let id: string; //ID du club (default to undefined)
33
- let addClubMemberRequest: AddClubMemberRequest; //
34
-
35
- const { status, data } = await apiInstance.addClubMember(
36
- id,
37
- addClubMemberRequest
38
- );
39
- ```
40
-
41
- ### Parameters
42
-
43
- |Name | Type | Description | Notes|
44
- |------------- | ------------- | ------------- | -------------|
45
- | **addClubMemberRequest** | **AddClubMemberRequest**| | |
46
- | **id** | [**string**] | ID du club | defaults to undefined|
47
-
48
-
49
- ### Return type
50
-
51
- **AddClubMemberResponse**
52
-
53
- ### Authorization
54
-
55
- [bearerAuth](../README.md#bearerAuth)
56
-
57
- ### HTTP request headers
58
-
59
- - **Content-Type**: application/json
60
- - **Accept**: application/json
61
-
62
-
63
- ### HTTP response details
64
- | Status code | Description | Response headers |
65
- |-------------|-------------|------------------|
66
- |**201** | Membre ajouté avec succès | - |
67
- |**400** | Requête invalide | - |
68
- |**404** | Ressource non trouvée | - |
69
- |**500** | Erreur serveur interne | - |
70
-
71
- [[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)
72
-
73
- # **createClub**
74
- > ClubResponse createClub(createClubRequest)
75
-
76
-
77
- ### Example
78
-
79
- ```typescript
80
- import {
81
- ClubsApi,
82
- Configuration,
83
- CreateClubRequest
84
- } from '@tennac-booking/sdk';
85
-
86
- const configuration = new Configuration();
87
- const apiInstance = new ClubsApi(configuration);
88
-
89
- let createClubRequest: CreateClubRequest; //
90
-
91
- const { status, data } = await apiInstance.createClub(
92
- createClubRequest
93
- );
94
- ```
95
-
96
- ### Parameters
97
-
98
- |Name | Type | Description | Notes|
99
- |------------- | ------------- | ------------- | -------------|
100
- | **createClubRequest** | **CreateClubRequest**| | |
101
-
102
-
103
- ### Return type
104
-
105
- **ClubResponse**
106
-
107
- ### Authorization
108
-
109
- [bearerAuth](../README.md#bearerAuth)
110
-
111
- ### HTTP request headers
112
-
113
- - **Content-Type**: application/json
114
- - **Accept**: application/json
115
-
116
-
117
- ### HTTP response details
118
- | Status code | Description | Response headers |
119
- |-------------|-------------|------------------|
120
- |**201** | Club créé avec succès | - |
121
- |**400** | Requête invalide | - |
122
- |**500** | Erreur serveur interne | - |
123
-
124
- [[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)
125
-
126
- # **deleteClub**
127
- > DeleteClub200Response deleteClub()
9
+ # **getClubInfos**
10
+ > GetClubInfos200Response getClubInfos()
128
11
 
129
12
 
130
13
  ### Example
@@ -140,7 +23,7 @@ const apiInstance = new ClubsApi(configuration);
140
23
 
141
24
  let id: string; //ID du club (default to undefined)
142
25
 
143
- const { status, data } = await apiInstance.deleteClub(
26
+ const { status, data } = await apiInstance.getClubInfos(
144
27
  id
145
28
  );
146
29
  ```
@@ -154,52 +37,7 @@ const { status, data } = await apiInstance.deleteClub(
154
37
 
155
38
  ### Return type
156
39
 
157
- **DeleteClub200Response**
158
-
159
- ### Authorization
160
-
161
- [bearerAuth](../README.md#bearerAuth)
162
-
163
- ### HTTP request headers
164
-
165
- - **Content-Type**: Not defined
166
- - **Accept**: application/json
167
-
168
-
169
- ### HTTP response details
170
- | Status code | Description | Response headers |
171
- |-------------|-------------|------------------|
172
- |**200** | Club supprimé avec succès | - |
173
- |**404** | Ressource non trouvée | - |
174
- |**500** | Erreur serveur interne | - |
175
-
176
- [[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)
177
-
178
- # **getAllClubs**
179
- > ClubListResponse getAllClubs()
180
-
181
-
182
- ### Example
183
-
184
- ```typescript
185
- import {
186
- ClubsApi,
187
- Configuration
188
- } from '@tennac-booking/sdk';
189
-
190
- const configuration = new Configuration();
191
- const apiInstance = new ClubsApi(configuration);
192
-
193
- const { status, data } = await apiInstance.getAllClubs();
194
- ```
195
-
196
- ### Parameters
197
- This endpoint does not have any parameters.
198
-
199
-
200
- ### Return type
201
-
202
- **ClubListResponse**
40
+ **GetClubInfos200Response**
203
41
 
204
42
  ### Authorization
205
43
 
@@ -214,218 +52,7 @@ This endpoint does not have any parameters.
214
52
  ### HTTP response details
215
53
  | Status code | Description | Response headers |
216
54
  |-------------|-------------|------------------|
217
- |**200** | Liste des clubs | - |
218
- |**500** | Erreur serveur interne | - |
219
-
220
- [[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)
221
-
222
- # **getClubInfo**
223
- > ClubInfoResponse getClubInfo()
224
-
225
-
226
- ### Example
227
-
228
- ```typescript
229
- import {
230
- ClubsApi,
231
- Configuration
232
- } from '@tennac-booking/sdk';
233
-
234
- const configuration = new Configuration();
235
- const apiInstance = new ClubsApi(configuration);
236
-
237
- let id: string; //ID du club (default to undefined)
238
-
239
- const { status, data } = await apiInstance.getClubInfo(
240
- id
241
- );
242
- ```
243
-
244
- ### Parameters
245
-
246
- |Name | Type | Description | Notes|
247
- |------------- | ------------- | ------------- | -------------|
248
- | **id** | [**string**] | ID du club | defaults to undefined|
249
-
250
-
251
- ### Return type
252
-
253
- **ClubInfoResponse**
254
-
255
- ### Authorization
256
-
257
- [bearerAuth](../README.md#bearerAuth)
258
-
259
- ### HTTP request headers
260
-
261
- - **Content-Type**: Not defined
262
- - **Accept**: application/json
263
-
264
-
265
- ### HTTP response details
266
- | Status code | Description | Response headers |
267
- |-------------|-------------|------------------|
268
- |**200** | Informations du club | - |
269
- |**404** | Ressource non trouvée | - |
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
- # **getClubMembers**
275
- > ClubMembersResponse getClubMembers()
276
-
277
-
278
- ### Example
279
-
280
- ```typescript
281
- import {
282
- ClubsApi,
283
- Configuration
284
- } from '@tennac-booking/sdk';
285
-
286
- const configuration = new Configuration();
287
- const apiInstance = new ClubsApi(configuration);
288
-
289
- let id: string; //ID du club (default to undefined)
290
-
291
- const { status, data } = await apiInstance.getClubMembers(
292
- id
293
- );
294
- ```
295
-
296
- ### Parameters
297
-
298
- |Name | Type | Description | Notes|
299
- |------------- | ------------- | ------------- | -------------|
300
- | **id** | [**string**] | ID du club | defaults to undefined|
301
-
302
-
303
- ### Return type
304
-
305
- **ClubMembersResponse**
306
-
307
- ### Authorization
308
-
309
- [bearerAuth](../README.md#bearerAuth)
310
-
311
- ### HTTP request headers
312
-
313
- - **Content-Type**: Not defined
314
- - **Accept**: application/json
315
-
316
-
317
- ### HTTP response details
318
- | Status code | Description | Response headers |
319
- |-------------|-------------|------------------|
320
- |**200** | Liste des membres du club | - |
321
- |**500** | Erreur serveur interne | - |
322
-
323
- [[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)
324
-
325
- # **getClubRoles**
326
- > ClubRolesResponse getClubRoles()
327
-
328
-
329
- ### Example
330
-
331
- ```typescript
332
- import {
333
- ClubsApi,
334
- Configuration
335
- } from '@tennac-booking/sdk';
336
-
337
- const configuration = new Configuration();
338
- const apiInstance = new ClubsApi(configuration);
339
-
340
- let id: string; //ID du club (default to undefined)
341
-
342
- const { status, data } = await apiInstance.getClubRoles(
343
- id
344
- );
345
- ```
346
-
347
- ### Parameters
348
-
349
- |Name | Type | Description | Notes|
350
- |------------- | ------------- | ------------- | -------------|
351
- | **id** | [**string**] | ID du club | defaults to undefined|
352
-
353
-
354
- ### Return type
355
-
356
- **ClubRolesResponse**
357
-
358
- ### Authorization
359
-
360
- [bearerAuth](../README.md#bearerAuth)
361
-
362
- ### HTTP request headers
363
-
364
- - **Content-Type**: Not defined
365
- - **Accept**: application/json
366
-
367
-
368
- ### HTTP response details
369
- | Status code | Description | Response headers |
370
- |-------------|-------------|------------------|
371
- |**200** | Liste des rôles du club | - |
372
- |**500** | Erreur serveur interne | - |
373
-
374
- [[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)
375
-
376
- # **updateClub**
377
- > ClubResponse updateClub(updateClubRequest)
378
-
379
-
380
- ### Example
381
-
382
- ```typescript
383
- import {
384
- ClubsApi,
385
- Configuration,
386
- UpdateClubRequest
387
- } from '@tennac-booking/sdk';
388
-
389
- const configuration = new Configuration();
390
- const apiInstance = new ClubsApi(configuration);
391
-
392
- let id: string; //ID du club (default to undefined)
393
- let updateClubRequest: UpdateClubRequest; //
394
-
395
- const { status, data } = await apiInstance.updateClub(
396
- id,
397
- updateClubRequest
398
- );
399
- ```
400
-
401
- ### Parameters
402
-
403
- |Name | Type | Description | Notes|
404
- |------------- | ------------- | ------------- | -------------|
405
- | **updateClubRequest** | **UpdateClubRequest**| | |
406
- | **id** | [**string**] | ID du club | defaults to undefined|
407
-
408
-
409
- ### Return type
410
-
411
- **ClubResponse**
412
-
413
- ### Authorization
414
-
415
- [bearerAuth](../README.md#bearerAuth)
416
-
417
- ### HTTP request headers
418
-
419
- - **Content-Type**: application/json
420
- - **Accept**: application/json
421
-
422
-
423
- ### HTTP response details
424
- | Status code | Description | Response headers |
425
- |-------------|-------------|------------------|
426
- |**200** | Club mis à jour avec succès | - |
427
- |**400** | Requête invalide | - |
428
- |**404** | Ressource non trouvée | - |
55
+ |**200** | Club information | - |
429
56
  |**500** | Erreur serveur interne | - |
430
57
 
431
58
  [[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)
@@ -0,0 +1,22 @@
1
+ # ClubsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubs** | [**Array<ClubResponse>**](ClubResponse.md) | | [optional] [default to undefined]
9
+ **total** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ClubsResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ClubsResponse = {
17
+ clubs,
18
+ total,
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)