@tennac-booking/sdk 1.0.13 → 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.
- package/.openapi-generator/FILES +29 -5
- package/README.md +58 -49
- package/api.ts +3581 -3057
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2134 -1695
- package/dist/api.js +2693 -2281
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +2134 -1695
- package/dist/esm/api.js +2435 -2081
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AdminClubSlotsApi.md +62 -0
- package/docs/AdminClubsApi.md +108 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/BookingsApi.md +4 -60
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/{ClubSportsApi.md → ClubAnalyticsApi.md} +20 -27
- package/docs/ClubBookingsApi.md +59 -0
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubRolesApi.md +8 -8
- package/docs/ClubSettings.md +7 -1
- package/docs/ClubSlotsApi.md +0 -225
- package/docs/ClubsApi.md +6 -425
- package/docs/ClubsResponse.md +22 -0
- package/docs/CourtResponse.md +7 -7
- package/docs/CourtStatus.md +5 -2
- package/docs/CreateClubRequest.md +12 -10
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreateCourtRequest.md +2 -0
- package/docs/CreatePriceRequest.md +4 -4
- package/docs/CreateSportRequest.md +4 -0
- package/docs/CreateSubscriptionPlanRequest.md +3 -3
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
- package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +4 -6
- package/docs/GoogleSignInRequestBody.md +2 -2
- package/docs/GoogleSignInResponse.md +2 -8
- package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
- package/docs/ManagerClubSlotsApi.md +125 -0
- package/docs/ManagerClubsApi.md +280 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/RefreshTokenResponse.md +2 -6
- package/docs/SlotResponse.md +2 -8
- package/docs/SportResponse.md +0 -2
- package/docs/SportsApi.md +10 -120
- package/docs/StaffClubSettingsApi.md +62 -0
- package/docs/StaffSportsApi.md +62 -0
- package/docs/SubscriptionPlanResponse.md +4 -8
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateSportRequest.md +4 -0
- package/docs/UpdateSubscriptionPlanRequest.md +3 -3
- package/docs/UpdateSubscriptionPlanResponse.md +2 -2
- package/docs/{ClubSettingsApi.md → UserAuthenticationApi.md} +54 -55
- package/docs/UserBookingsApi.md +63 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +60 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/UserProfileApi.md +271 -0
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersApi.md +0 -725
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UserAuthenticationApi
|
|
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
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
7
|
+
|[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
|
|
8
|
+
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\'accès|
|
|
9
|
+
|[**register**](#register) | **POST** /api/users | Crée un nouvel utilisateur|
|
|
10
|
+
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | Authentifie ou crée un utilisateur via Google OAuth|
|
|
11
11
|
|
|
12
|
-
# **
|
|
13
|
-
>
|
|
12
|
+
# **login**
|
|
13
|
+
> LoginResponse login(loginRequestBody)
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
### Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
UserAuthenticationApi,
|
|
21
21
|
Configuration,
|
|
22
|
-
|
|
22
|
+
LoginRequestBody
|
|
23
23
|
} from '@tennac-booking/sdk';
|
|
24
24
|
|
|
25
25
|
const configuration = new Configuration();
|
|
26
|
-
const apiInstance = new
|
|
26
|
+
const apiInstance = new UserAuthenticationApi(configuration);
|
|
27
27
|
|
|
28
|
-
let
|
|
28
|
+
let loginRequestBody: LoginRequestBody; //
|
|
29
29
|
|
|
30
|
-
const { status, data } = await apiInstance.
|
|
31
|
-
|
|
30
|
+
const { status, data } = await apiInstance.login(
|
|
31
|
+
loginRequestBody
|
|
32
32
|
);
|
|
33
33
|
```
|
|
34
34
|
|
|
@@ -36,12 +36,12 @@ const { status, data } = await apiInstance.createClubSettings(
|
|
|
36
36
|
|
|
37
37
|
|Name | Type | Description | Notes|
|
|
38
38
|
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **
|
|
39
|
+
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
### Return type
|
|
43
43
|
|
|
44
|
-
**
|
|
44
|
+
**LoginResponse**
|
|
45
45
|
|
|
46
46
|
### Authorization
|
|
47
47
|
|
|
@@ -56,33 +56,33 @@ const { status, data } = await apiInstance.createClubSettings(
|
|
|
56
56
|
### HTTP response details
|
|
57
57
|
| Status code | Description | Response headers |
|
|
58
58
|
|-------------|-------------|------------------|
|
|
59
|
-
|**
|
|
59
|
+
|**200** | Authentification réussie | - |
|
|
60
|
+
|**400** | Requête invalide | - |
|
|
60
61
|
|**401** | Non autorisé | - |
|
|
61
|
-
|**409** | Paramètres déjà existants | - |
|
|
62
62
|
|**500** | Erreur serveur interne | - |
|
|
63
63
|
|
|
64
64
|
[[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)
|
|
65
65
|
|
|
66
|
-
# **
|
|
67
|
-
>
|
|
66
|
+
# **refreshToken**
|
|
67
|
+
> RefreshTokenResponse refreshToken(refreshTokenRequestBody)
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
### Example
|
|
71
71
|
|
|
72
72
|
```typescript
|
|
73
73
|
import {
|
|
74
|
-
|
|
74
|
+
UserAuthenticationApi,
|
|
75
75
|
Configuration,
|
|
76
|
-
|
|
76
|
+
RefreshTokenRequestBody
|
|
77
77
|
} from '@tennac-booking/sdk';
|
|
78
78
|
|
|
79
79
|
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new
|
|
80
|
+
const apiInstance = new UserAuthenticationApi(configuration);
|
|
81
81
|
|
|
82
|
-
let
|
|
82
|
+
let refreshTokenRequestBody: RefreshTokenRequestBody; //
|
|
83
83
|
|
|
84
|
-
const { status, data } = await apiInstance.
|
|
85
|
-
|
|
84
|
+
const { status, data } = await apiInstance.refreshToken(
|
|
85
|
+
refreshTokenRequestBody
|
|
86
86
|
);
|
|
87
87
|
```
|
|
88
88
|
|
|
@@ -90,12 +90,12 @@ const { status, data } = await apiInstance.deleteClubSettings(
|
|
|
90
90
|
|
|
91
91
|
|Name | Type | Description | Notes|
|
|
92
92
|
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **
|
|
93
|
+
| **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
### Return type
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
**RefreshTokenResponse**
|
|
99
99
|
|
|
100
100
|
### Authorization
|
|
101
101
|
|
|
@@ -110,33 +110,33 @@ void (empty response body)
|
|
|
110
110
|
### HTTP response details
|
|
111
111
|
| Status code | Description | Response headers |
|
|
112
112
|
|-------------|-------------|------------------|
|
|
113
|
-
|**200** |
|
|
113
|
+
|**200** | Nouveaux tokens | - |
|
|
114
|
+
|**400** | Requête invalide | - |
|
|
114
115
|
|**401** | Non autorisé | - |
|
|
115
|
-
|**404** | Paramètres non trouvés | - |
|
|
116
116
|
|**500** | Erreur serveur interne | - |
|
|
117
117
|
|
|
118
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
119
|
|
|
120
|
-
# **
|
|
121
|
-
>
|
|
120
|
+
# **register**
|
|
121
|
+
> UserResponse register(registerRequestBody)
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
### Example
|
|
125
125
|
|
|
126
126
|
```typescript
|
|
127
127
|
import {
|
|
128
|
-
|
|
128
|
+
UserAuthenticationApi,
|
|
129
129
|
Configuration,
|
|
130
|
-
|
|
130
|
+
RegisterRequestBody
|
|
131
131
|
} from '@tennac-booking/sdk';
|
|
132
132
|
|
|
133
133
|
const configuration = new Configuration();
|
|
134
|
-
const apiInstance = new
|
|
134
|
+
const apiInstance = new UserAuthenticationApi(configuration);
|
|
135
135
|
|
|
136
|
-
let
|
|
136
|
+
let registerRequestBody: RegisterRequestBody; //
|
|
137
137
|
|
|
138
|
-
const { status, data } = await apiInstance.
|
|
139
|
-
|
|
138
|
+
const { status, data } = await apiInstance.register(
|
|
139
|
+
registerRequestBody
|
|
140
140
|
);
|
|
141
141
|
```
|
|
142
142
|
|
|
@@ -144,12 +144,12 @@ const { status, data } = await apiInstance.getClubSettings(
|
|
|
144
144
|
|
|
145
145
|
|Name | Type | Description | Notes|
|
|
146
146
|
|------------- | ------------- | ------------- | -------------|
|
|
147
|
-
| **
|
|
147
|
+
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
### Return type
|
|
151
151
|
|
|
152
|
-
**
|
|
152
|
+
**UserResponse**
|
|
153
153
|
|
|
154
154
|
### Authorization
|
|
155
155
|
|
|
@@ -164,33 +164,33 @@ const { status, data } = await apiInstance.getClubSettings(
|
|
|
164
164
|
### HTTP response details
|
|
165
165
|
| Status code | Description | Response headers |
|
|
166
166
|
|-------------|-------------|------------------|
|
|
167
|
-
|**
|
|
168
|
-
|**
|
|
169
|
-
|**
|
|
167
|
+
|**201** | Utilisateur créé | - |
|
|
168
|
+
|**400** | Requête invalide | - |
|
|
169
|
+
|**409** | Email déjà utilisé | - |
|
|
170
170
|
|**500** | Erreur serveur interne | - |
|
|
171
171
|
|
|
172
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
173
|
|
|
174
|
-
# **
|
|
175
|
-
>
|
|
174
|
+
# **signInOrSignUpWithGoogle**
|
|
175
|
+
> GoogleSignInResponse signInOrSignUpWithGoogle(googleSignInRequestBody)
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
### Example
|
|
179
179
|
|
|
180
180
|
```typescript
|
|
181
181
|
import {
|
|
182
|
-
|
|
182
|
+
UserAuthenticationApi,
|
|
183
183
|
Configuration,
|
|
184
|
-
|
|
184
|
+
GoogleSignInRequestBody
|
|
185
185
|
} from '@tennac-booking/sdk';
|
|
186
186
|
|
|
187
187
|
const configuration = new Configuration();
|
|
188
|
-
const apiInstance = new
|
|
188
|
+
const apiInstance = new UserAuthenticationApi(configuration);
|
|
189
189
|
|
|
190
|
-
let
|
|
190
|
+
let googleSignInRequestBody: GoogleSignInRequestBody; //
|
|
191
191
|
|
|
192
|
-
const { status, data } = await apiInstance.
|
|
193
|
-
|
|
192
|
+
const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
193
|
+
googleSignInRequestBody
|
|
194
194
|
);
|
|
195
195
|
```
|
|
196
196
|
|
|
@@ -198,12 +198,12 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
198
198
|
|
|
199
199
|
|Name | Type | Description | Notes|
|
|
200
200
|
|------------- | ------------- | ------------- | -------------|
|
|
201
|
-
| **
|
|
201
|
+
| **googleSignInRequestBody** | **GoogleSignInRequestBody**| | |
|
|
202
202
|
|
|
203
203
|
|
|
204
204
|
### Return type
|
|
205
205
|
|
|
206
|
-
**
|
|
206
|
+
**GoogleSignInResponse**
|
|
207
207
|
|
|
208
208
|
### Authorization
|
|
209
209
|
|
|
@@ -218,9 +218,8 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
218
218
|
### HTTP response details
|
|
219
219
|
| Status code | Description | Response headers |
|
|
220
220
|
|-------------|-------------|------------------|
|
|
221
|
-
|**200** |
|
|
222
|
-
|**
|
|
223
|
-
|**404** | Paramètres non trouvés | - |
|
|
221
|
+
|**200** | Authentification Google réussie | - |
|
|
222
|
+
|**400** | Requête invalide | - |
|
|
224
223
|
|**500** | Erreur serveur interne | - |
|
|
225
224
|
|
|
226
225
|
[[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,63 @@
|
|
|
1
|
+
# UserBookingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**blockSlot**](#blockslot) | **PATCH** /api/bookings/pre-book/{slotId} | Bloquer un créneau|
|
|
8
|
+
|
|
9
|
+
# **blockSlot**
|
|
10
|
+
> BlockSlotResponse blockSlot()
|
|
11
|
+
|
|
12
|
+
Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
UserBookingsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UserBookingsApi(configuration);
|
|
24
|
+
|
|
25
|
+
let slotId: string; //ID MongoDB du créneau à bloquer (default to undefined)
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.blockSlot(
|
|
28
|
+
slotId
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **slotId** | [**string**] | ID MongoDB du créneau à bloquer | defaults to undefined|
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**BlockSlotResponse**
|
|
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** | Créneau bloqué avec succès | - |
|
|
57
|
+
|**400** | Requête invalide | - |
|
|
58
|
+
|**401** | Non autorisé | - |
|
|
59
|
+
|**404** | Ressource non trouvée | - |
|
|
60
|
+
|**500** | Erreur serveur interne | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# UserClubCourtsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getCourtsByClubAndSport**](#getcourtsbyclubandsport) | **GET** /api/clubs/{id}/sports/{sportId}/courts | Récupérer les terrains d\'un club pour un sport spécifique|
|
|
8
|
+
|
|
9
|
+
# **getCourtsByClubAndSport**
|
|
10
|
+
> GetCourtsByClubAndSport200Response getCourtsByClubAndSport()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
UserClubCourtsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new UserClubCourtsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let id: string; //ID du club (default to undefined)
|
|
25
|
+
let sportId: string; //ID du sport (default to undefined)
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.getCourtsByClubAndSport(
|
|
28
|
+
id,
|
|
29
|
+
sportId
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
38
|
+
| **sportId** | [**string**] | ID du sport | defaults to undefined|
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**GetCourtsByClubAndSport200Response**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: Not defined
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | Liste des terrains du club pour le sport spécifié | - |
|
|
59
|
+
|**400** | Requête invalide | - |
|
|
60
|
+
|**404** | Ressource non trouvée | - |
|
|
61
|
+
|**500** | Erreur serveur interne | - |
|
|
62
|
+
|
|
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)
|
|
64
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# UserClubSlotsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getAvailableSlotsByClub**](#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots | Obtenir tous les créneaux disponibles pour un club|
|
|
8
|
+
|
|
9
|
+
# **getAvailableSlotsByClub**
|
|
10
|
+
> SlotsResponse getAvailableSlotsByClub()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
UserClubSlotsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new UserClubSlotsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let clubID: string; //ID du club (default to undefined)
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getAvailableSlotsByClub(
|
|
27
|
+
clubID
|
|
28
|
+
);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
|
|
33
|
+
|Name | Type | Description | Notes|
|
|
34
|
+
|------------- | ------------- | ------------- | -------------|
|
|
35
|
+
| **clubID** | [**string**] | ID du club | defaults to undefined|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Return type
|
|
39
|
+
|
|
40
|
+
**SlotsResponse**
|
|
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** | Liste des créneaux disponibles pour le club | - |
|
|
56
|
+
|**400** | Requête invalide | - |
|
|
57
|
+
|**500** | Erreur serveur interne | - |
|
|
58
|
+
|
|
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)
|
|
60
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# UserClubSportsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getSportsByClub**](#getsportsbyclub) | **GET** /api/clubs/{id}/sports | Récupérer tous les sports pour un club|
|
|
8
|
+
|
|
9
|
+
# **getSportsByClub**
|
|
10
|
+
> SportsResponse getSportsByClub()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
UserClubSportsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new UserClubSportsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let id: string; //ID du club (default to undefined)
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getSportsByClub(
|
|
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
|
+
**SportsResponse**
|
|
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** | Liste des sports du club | - |
|
|
56
|
+
|**400** | Requête invalide | - |
|
|
57
|
+
|**500** | Erreur serveur interne | - |
|
|
58
|
+
|
|
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)
|
|
60
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# UserClubsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/activeClubs | Obtenir la liste des clubs actifs (seulement id et nom)|
|
|
8
|
+
|
|
9
|
+
# **getActiveClubs**
|
|
10
|
+
> GetActiveClubs200Response getActiveClubs()
|
|
11
|
+
|
|
12
|
+
Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
UserClubsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UserClubsApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.getActiveClubs();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**GetActiveClubs200Response**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | Liste des clubs actifs | - |
|
|
50
|
+
|**500** | Erreur serveur interne | - |
|
|
51
|
+
|
|
52
|
+
[[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)
|
|
53
|
+
|