@tennac-booking/sdk 1.0.13 → 1.0.15

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 (90) hide show
  1. package/.openapi-generator/FILES +35 -12
  2. package/README.md +69 -60
  3. package/api.ts +3550 -3065
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2164 -1751
  8. package/dist/api.js +2523 -2150
  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 +2164 -1751
  16. package/dist/esm/api.js +2429 -2109
  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/AdminClubSlotsApi.md +62 -0
  28. package/docs/AdminClubsApi.md +108 -0
  29. package/docs/ApiErrorResponse.md +1 -1
  30. package/docs/ChangePasswordResponse.md +1 -1
  31. package/docs/ClubInfoResponse.md +6 -6
  32. package/docs/ClubResponse.md +6 -6
  33. package/docs/ClubRoleResponse.md +6 -6
  34. package/docs/ClubSettings.md +7 -1
  35. package/docs/ClubsResponse.md +22 -0
  36. package/docs/CourtResponse.md +7 -7
  37. package/docs/CourtStatus.md +5 -2
  38. package/docs/CreateClubRequest.md +12 -10
  39. package/docs/CreateClubSettingsRequest.md +28 -0
  40. package/docs/CreateCourtRequest.md +2 -0
  41. package/docs/CreatePriceRequest.md +4 -4
  42. package/docs/CreateSportRequest.md +4 -0
  43. package/docs/CreateSubscriptionPlanRequest.md +3 -3
  44. package/docs/DeleteClubSettingsRequest.md +20 -0
  45. package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
  46. package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
  47. package/docs/GenerateSlotsResponse.md +20 -0
  48. package/docs/GetClubInfos200Response.md +30 -0
  49. package/docs/GetCourtsByClubAndSport200Response.md +26 -0
  50. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
  51. package/docs/GetNumberOfClubUsers200Response.md +20 -0
  52. package/docs/GetUserRolesResponseRolesInner.md +4 -6
  53. package/docs/GoogleSignInRequestBody.md +2 -2
  54. package/docs/GoogleSignInResponse.md +2 -8
  55. package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
  56. package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +19 -19
  57. package/docs/ManagerClubSlotsApi.md +125 -0
  58. package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
  59. package/docs/{ClubsApi.md → ManagerClubsApi.md} +11 -209
  60. package/docs/ManagerSportsApi.md +119 -0
  61. package/docs/PriceResponse.md +2 -8
  62. package/docs/RefreshTokenResponse.md +2 -6
  63. package/docs/SlotResponse.md +2 -8
  64. package/docs/SportResponse.md +0 -2
  65. package/docs/{ClubSportsApi.md → StaffClubAnalyticsApi.md} +20 -27
  66. package/docs/StaffClubBookingsApi.md +59 -0
  67. package/docs/StaffClubSettingsApi.md +62 -0
  68. package/docs/StaffClubsApi.md +59 -0
  69. package/docs/StaffProfileApi.md +54 -0
  70. package/docs/StaffSportsApi.md +62 -0
  71. package/docs/SubscriptionPlanResponse.md +4 -8
  72. package/docs/UpdateClubSettingsRequest.md +28 -0
  73. package/docs/UpdateSportRequest.md +4 -0
  74. package/docs/UpdateSubscriptionPlanRequest.md +3 -3
  75. package/docs/UpdateSubscriptionPlanResponse.md +2 -2
  76. package/docs/UserApi.md +119 -0
  77. package/docs/{SportsApi.md → UserAuthenticationApi.md} +54 -57
  78. package/docs/{BookingsApi.md → UserBookingsApi.md} +32 -32
  79. package/docs/UserClubCourtsApi.md +64 -0
  80. package/docs/UserClubSlotsApi.md +181 -0
  81. package/docs/UserClubSportsApi.md +60 -0
  82. package/docs/UserClubsApi.md +53 -0
  83. package/docs/{ClubSettingsApi.md → UserProfileApi.md} +59 -62
  84. package/docs/UserResponse.md +8 -14
  85. package/docs/UserSubscriptionsApi.md +222 -0
  86. package/docs/UsersResponse.md +22 -0
  87. package/index.ts +1 -1
  88. package/package.json +32 -1
  89. package/docs/ClubSlotsApi.md +0 -353
  90. package/docs/UsersApi.md +0 -844
@@ -1,14 +1,10 @@
1
- # ClubsApi
1
+ # ManagerClubsApi
2
2
 
3
3
  All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
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
- |[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/activeClubs/ | Obtenir la liste des clubs actifs (seulement id et nom)|
11
- |[**getAllClubs**](#getallclubs) | **GET** /api/clubs | Récupérer tous les clubs|
12
8
  |[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/{id} | Récupérer les informations d\'un club|
13
9
  |[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/{id}/members | Récupérer les membres d\'un club|
14
10
  |[**getClubRoles**](#getclubroles) | **GET** /api/clubs/{id}/roles | Récupérer les rôles d\'un club|
@@ -22,13 +18,13 @@ All URIs are relative to *https://api.mon-domaine.com*
22
18
 
23
19
  ```typescript
24
20
  import {
25
- ClubsApi,
21
+ ManagerClubsApi,
26
22
  Configuration,
27
23
  AddClubMemberRequest
28
24
  } from '@tennac-booking/sdk';
29
25
 
30
26
  const configuration = new Configuration();
31
- const apiInstance = new ClubsApi(configuration);
27
+ const apiInstance = new ManagerClubsApi(configuration);
32
28
 
33
29
  let id: string; //ID du club (default to undefined)
34
30
  let addClubMemberRequest: AddClubMemberRequest; //
@@ -71,200 +67,6 @@ const { status, data } = await apiInstance.addClubMember(
71
67
 
72
68
  [[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)
73
69
 
74
- # **createClub**
75
- > ClubResponse createClub(createClubRequest)
76
-
77
-
78
- ### Example
79
-
80
- ```typescript
81
- import {
82
- ClubsApi,
83
- Configuration,
84
- CreateClubRequest
85
- } from '@tennac-booking/sdk';
86
-
87
- const configuration = new Configuration();
88
- const apiInstance = new ClubsApi(configuration);
89
-
90
- let createClubRequest: CreateClubRequest; //
91
-
92
- const { status, data } = await apiInstance.createClub(
93
- createClubRequest
94
- );
95
- ```
96
-
97
- ### Parameters
98
-
99
- |Name | Type | Description | Notes|
100
- |------------- | ------------- | ------------- | -------------|
101
- | **createClubRequest** | **CreateClubRequest**| | |
102
-
103
-
104
- ### Return type
105
-
106
- **ClubResponse**
107
-
108
- ### Authorization
109
-
110
- [bearerAuth](../README.md#bearerAuth)
111
-
112
- ### HTTP request headers
113
-
114
- - **Content-Type**: application/json
115
- - **Accept**: application/json
116
-
117
-
118
- ### HTTP response details
119
- | Status code | Description | Response headers |
120
- |-------------|-------------|------------------|
121
- |**201** | Club créé avec succès | - |
122
- |**400** | Requête invalide | - |
123
- |**500** | Erreur serveur interne | - |
124
-
125
- [[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)
126
-
127
- # **deleteClub**
128
- > DeleteClub200Response deleteClub()
129
-
130
-
131
- ### Example
132
-
133
- ```typescript
134
- import {
135
- ClubsApi,
136
- Configuration
137
- } from '@tennac-booking/sdk';
138
-
139
- const configuration = new Configuration();
140
- const apiInstance = new ClubsApi(configuration);
141
-
142
- let id: string; //ID du club (default to undefined)
143
-
144
- const { status, data } = await apiInstance.deleteClub(
145
- id
146
- );
147
- ```
148
-
149
- ### Parameters
150
-
151
- |Name | Type | Description | Notes|
152
- |------------- | ------------- | ------------- | -------------|
153
- | **id** | [**string**] | ID du club | defaults to undefined|
154
-
155
-
156
- ### Return type
157
-
158
- **DeleteClub200Response**
159
-
160
- ### Authorization
161
-
162
- [bearerAuth](../README.md#bearerAuth)
163
-
164
- ### HTTP request headers
165
-
166
- - **Content-Type**: Not defined
167
- - **Accept**: application/json
168
-
169
-
170
- ### HTTP response details
171
- | Status code | Description | Response headers |
172
- |-------------|-------------|------------------|
173
- |**200** | Club supprimé avec succès | - |
174
- |**404** | Ressource non trouvée | - |
175
- |**500** | Erreur serveur interne | - |
176
-
177
- [[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)
178
-
179
- # **getActiveClubs**
180
- > GetActiveClubs200Response getActiveClubs()
181
-
182
- Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
183
-
184
- ### Example
185
-
186
- ```typescript
187
- import {
188
- ClubsApi,
189
- Configuration
190
- } from '@tennac-booking/sdk';
191
-
192
- const configuration = new Configuration();
193
- const apiInstance = new ClubsApi(configuration);
194
-
195
- const { status, data } = await apiInstance.getActiveClubs();
196
- ```
197
-
198
- ### Parameters
199
- This endpoint does not have any parameters.
200
-
201
-
202
- ### Return type
203
-
204
- **GetActiveClubs200Response**
205
-
206
- ### Authorization
207
-
208
- [bearerAuth](../README.md#bearerAuth)
209
-
210
- ### HTTP request headers
211
-
212
- - **Content-Type**: Not defined
213
- - **Accept**: application/json
214
-
215
-
216
- ### HTTP response details
217
- | Status code | Description | Response headers |
218
- |-------------|-------------|------------------|
219
- |**200** | Liste des clubs actifs | - |
220
- |**500** | Erreur serveur interne | - |
221
-
222
- [[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)
223
-
224
- # **getAllClubs**
225
- > ClubListResponse getAllClubs()
226
-
227
-
228
- ### Example
229
-
230
- ```typescript
231
- import {
232
- ClubsApi,
233
- Configuration
234
- } from '@tennac-booking/sdk';
235
-
236
- const configuration = new Configuration();
237
- const apiInstance = new ClubsApi(configuration);
238
-
239
- const { status, data } = await apiInstance.getAllClubs();
240
- ```
241
-
242
- ### Parameters
243
- This endpoint does not have any parameters.
244
-
245
-
246
- ### Return type
247
-
248
- **ClubListResponse**
249
-
250
- ### Authorization
251
-
252
- [bearerAuth](../README.md#bearerAuth)
253
-
254
- ### HTTP request headers
255
-
256
- - **Content-Type**: Not defined
257
- - **Accept**: application/json
258
-
259
-
260
- ### HTTP response details
261
- | Status code | Description | Response headers |
262
- |-------------|-------------|------------------|
263
- |**200** | Liste des clubs | - |
264
- |**500** | Erreur serveur interne | - |
265
-
266
- [[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)
267
-
268
70
  # **getClubInfo**
269
71
  > ClubInfoResponse getClubInfo()
270
72
 
@@ -273,12 +75,12 @@ This endpoint does not have any parameters.
273
75
 
274
76
  ```typescript
275
77
  import {
276
- ClubsApi,
78
+ ManagerClubsApi,
277
79
  Configuration
278
80
  } from '@tennac-booking/sdk';
279
81
 
280
82
  const configuration = new Configuration();
281
- const apiInstance = new ClubsApi(configuration);
83
+ const apiInstance = new ManagerClubsApi(configuration);
282
84
 
283
85
  let id: string; //ID du club (default to undefined)
284
86
 
@@ -325,12 +127,12 @@ const { status, data } = await apiInstance.getClubInfo(
325
127
 
326
128
  ```typescript
327
129
  import {
328
- ClubsApi,
130
+ ManagerClubsApi,
329
131
  Configuration
330
132
  } from '@tennac-booking/sdk';
331
133
 
332
134
  const configuration = new Configuration();
333
- const apiInstance = new ClubsApi(configuration);
135
+ const apiInstance = new ManagerClubsApi(configuration);
334
136
 
335
137
  let id: string; //ID du club (default to undefined)
336
138
 
@@ -376,12 +178,12 @@ const { status, data } = await apiInstance.getClubMembers(
376
178
 
377
179
  ```typescript
378
180
  import {
379
- ClubsApi,
181
+ ManagerClubsApi,
380
182
  Configuration
381
183
  } from '@tennac-booking/sdk';
382
184
 
383
185
  const configuration = new Configuration();
384
- const apiInstance = new ClubsApi(configuration);
186
+ const apiInstance = new ManagerClubsApi(configuration);
385
187
 
386
188
  let id: string; //ID du club (default to undefined)
387
189
 
@@ -427,13 +229,13 @@ const { status, data } = await apiInstance.getClubRoles(
427
229
 
428
230
  ```typescript
429
231
  import {
430
- ClubsApi,
232
+ ManagerClubsApi,
431
233
  Configuration,
432
234
  UpdateClubRequest
433
235
  } from '@tennac-booking/sdk';
434
236
 
435
237
  const configuration = new Configuration();
436
- const apiInstance = new ClubsApi(configuration);
238
+ const apiInstance = new ManagerClubsApi(configuration);
437
239
 
438
240
  let id: string; //ID du club (default to undefined)
439
241
  let updateClubRequest: UpdateClubRequest; //
@@ -0,0 +1,119 @@
1
+ # ManagerSportsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**deleteSport**](#deletesport) | **DELETE** /api/sports/{id} | Supprimer un sport|
8
+ |[**updateSport**](#updatesport) | **PUT** /api/sports/{id} | Mettre à jour un sport|
9
+
10
+ # **deleteSport**
11
+ > DeleteSport200Response deleteSport()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ ManagerSportsApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new ManagerSportsApi(configuration);
24
+
25
+ let id: string; //ID du sport (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.deleteSport(
28
+ id
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **id** | [**string**] | ID du sport | defaults to undefined|
37
+
38
+
39
+ ### Return type
40
+
41
+ **DeleteSport200Response**
42
+
43
+ ### Authorization
44
+
45
+ [bearerAuth](../README.md#bearerAuth)
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: Not defined
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | Sport supprimé avec succès | - |
57
+ |**401** | Non autorisé | - |
58
+ |**404** | Ressource non trouvée | - |
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
+
63
+ # **updateSport**
64
+ > SportResponse updateSport(updateSportRequest)
65
+
66
+
67
+ ### Example
68
+
69
+ ```typescript
70
+ import {
71
+ ManagerSportsApi,
72
+ Configuration,
73
+ UpdateSportRequest
74
+ } from '@tennac-booking/sdk';
75
+
76
+ const configuration = new Configuration();
77
+ const apiInstance = new ManagerSportsApi(configuration);
78
+
79
+ let id: string; //ID du sport (default to undefined)
80
+ let updateSportRequest: UpdateSportRequest; //
81
+
82
+ const { status, data } = await apiInstance.updateSport(
83
+ id,
84
+ updateSportRequest
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **updateSportRequest** | **UpdateSportRequest**| | |
93
+ | **id** | [**string**] | ID du sport | defaults to undefined|
94
+
95
+
96
+ ### Return type
97
+
98
+ **SportResponse**
99
+
100
+ ### Authorization
101
+
102
+ [bearerAuth](../README.md#bearerAuth)
103
+
104
+ ### HTTP request headers
105
+
106
+ - **Content-Type**: application/json
107
+ - **Accept**: application/json
108
+
109
+
110
+ ### HTTP response details
111
+ | Status code | Description | Response headers |
112
+ |-------------|-------------|------------------|
113
+ |**200** | Sport mis à jour avec succès | - |
114
+ |**401** | Non autorisé | - |
115
+ |**404** | Ressource non trouvée | - |
116
+ |**500** | Erreur serveur interne | - |
117
+
118
+ [[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)
119
+
@@ -6,15 +6,12 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [optional] [default to undefined]
9
- **stripePriceId** | **string** | | [optional] [default to undefined]
10
9
  **amount** | **number** | | [optional] [default to undefined]
11
10
  **currency** | **string** | | [optional] [default to undefined]
12
11
  **interval** | **string** | | [optional] [default to undefined]
13
12
  **intervalCount** | **number** | | [optional] [default to undefined]
14
- **isActive** | **boolean** | | [optional] [default to undefined]
15
- **productId** | **string** | | [optional] [default to undefined]
13
+ **active** | **boolean** | | [optional] [default to undefined]
16
14
  **createdAt** | **string** | | [optional] [default to undefined]
17
- **updatedAt** | **string** | | [optional] [default to undefined]
18
15
 
19
16
  ## Example
20
17
 
@@ -23,15 +20,12 @@ import { PriceResponse } from '@tennac-booking/sdk';
23
20
 
24
21
  const instance: PriceResponse = {
25
22
  id,
26
- stripePriceId,
27
23
  amount,
28
24
  currency,
29
25
  interval,
30
26
  intervalCount,
31
- isActive,
32
- productId,
27
+ active,
33
28
  createdAt,
34
- updatedAt,
35
29
  };
36
30
  ```
37
31
 
@@ -5,10 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **token** | **string** | | [default to undefined]
9
- **refreshToken** | **string** | | [default to undefined]
10
- **sessionDuration** | **number** | | [default to undefined]
11
- **sessionEnd** | **number** | | [default to undefined]
8
+ **token** | **string** | | [optional] [default to undefined]
9
+ **refreshToken** | **string** | | [optional] [default to undefined]
12
10
 
13
11
  ## Example
14
12
 
@@ -18,8 +16,6 @@ import { RefreshTokenResponse } from '@tennac-booking/sdk';
18
16
  const instance: RefreshTokenResponse = {
19
17
  token,
20
18
  refreshToken,
21
- sessionDuration,
22
- sessionEnd,
23
19
  };
24
20
  ```
25
21
 
@@ -9,11 +9,8 @@ Name | Type | Description | Notes
9
9
  **startDate** | **string** | | [optional] [default to undefined]
10
10
  **endDate** | **string** | | [optional] [default to undefined]
11
11
  **courtId** | **string** | | [optional] [default to undefined]
12
- **clubId** | **string** | | [optional] [default to undefined]
13
- **sportId** | **string** | | [optional] [default to undefined]
14
- **isAvailable** | **boolean** | | [optional] [default to undefined]
15
12
  **price** | **number** | | [optional] [default to undefined]
16
- **court** | [**CourtResponse**](CourtResponse.md) | | [optional] [default to undefined]
13
+ **isOpen** | **boolean** | | [optional] [default to undefined]
17
14
  **createdAt** | **string** | | [optional] [default to undefined]
18
15
  **updatedAt** | **string** | | [optional] [default to undefined]
19
16
 
@@ -27,11 +24,8 @@ const instance: SlotResponse = {
27
24
  startDate,
28
25
  endDate,
29
26
  courtId,
30
- clubId,
31
- sportId,
32
- isAvailable,
33
27
  price,
34
- court,
28
+ isOpen,
35
29
  createdAt,
36
30
  updatedAt,
37
31
  };
@@ -10,7 +10,6 @@ Name | Type | Description | Notes
10
10
  **name** | **string** | | [optional] [default to undefined]
11
11
  **description** | **string** | | [optional] [default to undefined]
12
12
  **clubId** | **string** | | [optional] [default to undefined]
13
- **isActive** | **boolean** | | [optional] [default to undefined]
14
13
  **createdAt** | **string** | | [optional] [default to undefined]
15
14
  **updatedAt** | **string** | | [optional] [default to undefined]
16
15
 
@@ -25,7 +24,6 @@ const instance: SportResponse = {
25
24
  name,
26
25
  description,
27
26
  clubId,
28
- isActive,
29
27
  createdAt,
30
28
  updatedAt,
31
29
  };
@@ -1,34 +1,31 @@
1
- # ClubSportsApi
1
+ # StaffClubAnalyticsApi
2
2
 
3
3
  All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
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|
7
+ |[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/clubs/{id}/turnover | Get monthly turnover for the last six months|
8
+ |[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/clubs/{id}/user-count | Get number of users subscribed to the club|
9
9
 
10
- # **createSportForClub**
11
- > SportResponse createSportForClub(createSportRequest)
10
+ # **getLastSixMonthsTurnover**
11
+ > Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
12
12
 
13
13
 
14
14
  ### Example
15
15
 
16
16
  ```typescript
17
17
  import {
18
- ClubSportsApi,
19
- Configuration,
20
- CreateSportRequest
18
+ StaffClubAnalyticsApi,
19
+ Configuration
21
20
  } from '@tennac-booking/sdk';
22
21
 
23
22
  const configuration = new Configuration();
24
- const apiInstance = new ClubSportsApi(configuration);
23
+ const apiInstance = new StaffClubAnalyticsApi(configuration);
25
24
 
26
25
  let id: string; //ID du club (default to undefined)
27
- let createSportRequest: CreateSportRequest; //
28
26
 
29
- const { status, data } = await apiInstance.createSportForClub(
30
- id,
31
- createSportRequest
27
+ const { status, data } = await apiInstance.getLastSixMonthsTurnover(
28
+ id
32
29
  );
33
30
  ```
34
31
 
@@ -36,13 +33,12 @@ const { status, data } = await apiInstance.createSportForClub(
36
33
 
37
34
  |Name | Type | Description | Notes|
38
35
  |------------- | ------------- | ------------- | -------------|
39
- | **createSportRequest** | **CreateSportRequest**| | |
40
36
  | **id** | [**string**] | ID du club | defaults to undefined|
41
37
 
42
38
 
43
39
  ### Return type
44
40
 
45
- **SportResponse**
41
+ **Array<GetLastSixMonthsTurnover200ResponseInner>**
46
42
 
47
43
  ### Authorization
48
44
 
@@ -50,38 +46,36 @@ const { status, data } = await apiInstance.createSportForClub(
50
46
 
51
47
  ### HTTP request headers
52
48
 
53
- - **Content-Type**: application/json
49
+ - **Content-Type**: Not defined
54
50
  - **Accept**: application/json
55
51
 
56
52
 
57
53
  ### HTTP response details
58
54
  | Status code | Description | Response headers |
59
55
  |-------------|-------------|------------------|
60
- |**201** | Sport créé avec succès | - |
61
- |**400** | Requête invalide | - |
62
- |**409** | Conflit - Un sport avec cette clé existe déjà | - |
56
+ |**200** | Monthly turnover data | - |
63
57
  |**500** | Erreur serveur interne | - |
64
58
 
65
59
  [[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
60
 
67
- # **getSportsByClub**
68
- > SportsResponse getSportsByClub()
61
+ # **getNumberOfClubUsers**
62
+ > GetNumberOfClubUsers200Response getNumberOfClubUsers()
69
63
 
70
64
 
71
65
  ### Example
72
66
 
73
67
  ```typescript
74
68
  import {
75
- ClubSportsApi,
69
+ StaffClubAnalyticsApi,
76
70
  Configuration
77
71
  } from '@tennac-booking/sdk';
78
72
 
79
73
  const configuration = new Configuration();
80
- const apiInstance = new ClubSportsApi(configuration);
74
+ const apiInstance = new StaffClubAnalyticsApi(configuration);
81
75
 
82
76
  let id: string; //ID du club (default to undefined)
83
77
 
84
- const { status, data } = await apiInstance.getSportsByClub(
78
+ const { status, data } = await apiInstance.getNumberOfClubUsers(
85
79
  id
86
80
  );
87
81
  ```
@@ -95,7 +89,7 @@ const { status, data } = await apiInstance.getSportsByClub(
95
89
 
96
90
  ### Return type
97
91
 
98
- **SportsResponse**
92
+ **GetNumberOfClubUsers200Response**
99
93
 
100
94
  ### Authorization
101
95
 
@@ -110,8 +104,7 @@ const { status, data } = await apiInstance.getSportsByClub(
110
104
  ### HTTP response details
111
105
  | Status code | Description | Response headers |
112
106
  |-------------|-------------|------------------|
113
- |**200** | Liste des sports du club | - |
114
- |**400** | Requête invalide | - |
107
+ |**200** | Number of subscribed users | - |
115
108
  |**500** | Erreur serveur interne | - |
116
109
 
117
110
  [[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,59 @@
1
+ # StaffClubBookingsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getTenNextBookings**](#gettennextbookings) | **GET** /api/clubs/{id}/next-bookings | Get the ten next bookings for the club|
8
+
9
+ # **getTenNextBookings**
10
+ > Array<Booking> getTenNextBookings()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ StaffClubBookingsApi,
18
+ Configuration
19
+ } from '@tennac-booking/sdk';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new StaffClubBookingsApi(configuration);
23
+
24
+ let id: string; //ID du club (default to undefined)
25
+
26
+ const { status, data } = await apiInstance.getTenNextBookings(
27
+ id
28
+ );
29
+ ```
30
+
31
+ ### Parameters
32
+
33
+ |Name | Type | Description | Notes|
34
+ |------------- | ------------- | ------------- | -------------|
35
+ | **id** | [**string**] | ID du club | defaults to undefined|
36
+
37
+
38
+ ### Return type
39
+
40
+ **Array<Booking>**
41
+
42
+ ### Authorization
43
+
44
+ [bearerAuth](../README.md#bearerAuth)
45
+
46
+ ### HTTP request headers
47
+
48
+ - **Content-Type**: Not defined
49
+ - **Accept**: application/json
50
+
51
+
52
+ ### HTTP response details
53
+ | Status code | Description | Response headers |
54
+ |-------------|-------------|------------------|
55
+ |**200** | List of next bookings | - |
56
+ |**500** | Erreur serveur interne | - |
57
+
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)
59
+