@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.
- package/.openapi-generator/FILES +35 -12
- package/README.md +69 -60
- package/api.ts +3550 -3065
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2164 -1751
- package/dist/api.js +2523 -2150
- 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 +2164 -1751
- package/dist/esm/api.js +2429 -2109
- 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/ChangePasswordResponse.md +1 -1
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubSettings.md +7 -1
- 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/{ClubRolesApi.md → ManagerClubRolesApi.md} +19 -19
- package/docs/ManagerClubSlotsApi.md +125 -0
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{ClubsApi.md → ManagerClubsApi.md} +11 -209
- package/docs/ManagerSportsApi.md +119 -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/{ClubSportsApi.md → StaffClubAnalyticsApi.md} +20 -27
- package/docs/StaffClubBookingsApi.md +59 -0
- package/docs/StaffClubSettingsApi.md +62 -0
- package/docs/StaffClubsApi.md +59 -0
- package/docs/StaffProfileApi.md +54 -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/UserApi.md +119 -0
- package/docs/{SportsApi.md → UserAuthenticationApi.md} +54 -57
- package/docs/{BookingsApi.md → UserBookingsApi.md} +32 -32
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/{ClubSettingsApi.md → UserProfileApi.md} +59 -62
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
- package/docs/ClubSlotsApi.md +0 -353
- package/docs/UsersApi.md +0 -844
|
@@ -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.createSport(
|
|
|
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,32 +56,33 @@ const { status, data } = await apiInstance.createSport(
|
|
|
56
56
|
### HTTP response details
|
|
57
57
|
| Status code | Description | Response headers |
|
|
58
58
|
|-------------|-------------|------------------|
|
|
59
|
-
|**
|
|
59
|
+
|**200** | Authentification réussie | - |
|
|
60
60
|
|**400** | Requête invalide | - |
|
|
61
61
|
|**401** | Non autorisé | - |
|
|
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
|
-
|
|
75
|
-
Configuration
|
|
74
|
+
UserAuthenticationApi,
|
|
75
|
+
Configuration,
|
|
76
|
+
RefreshTokenRequestBody
|
|
76
77
|
} from '@tennac-booking/sdk';
|
|
77
78
|
|
|
78
79
|
const configuration = new Configuration();
|
|
79
|
-
const apiInstance = new
|
|
80
|
+
const apiInstance = new UserAuthenticationApi(configuration);
|
|
80
81
|
|
|
81
|
-
let
|
|
82
|
+
let refreshTokenRequestBody: RefreshTokenRequestBody; //
|
|
82
83
|
|
|
83
|
-
const { status, data } = await apiInstance.
|
|
84
|
-
|
|
84
|
+
const { status, data } = await apiInstance.refreshToken(
|
|
85
|
+
refreshTokenRequestBody
|
|
85
86
|
);
|
|
86
87
|
```
|
|
87
88
|
|
|
@@ -89,12 +90,12 @@ const { status, data } = await apiInstance.deleteSport(
|
|
|
89
90
|
|
|
90
91
|
|Name | Type | Description | Notes|
|
|
91
92
|
|------------- | ------------- | ------------- | -------------|
|
|
92
|
-
| **
|
|
93
|
+
| **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
|
|
93
94
|
|
|
94
95
|
|
|
95
96
|
### Return type
|
|
96
97
|
|
|
97
|
-
|
|
98
|
+
**RefreshTokenResponse**
|
|
98
99
|
|
|
99
100
|
### Authorization
|
|
100
101
|
|
|
@@ -102,40 +103,40 @@ void (empty response body)
|
|
|
102
103
|
|
|
103
104
|
### HTTP request headers
|
|
104
105
|
|
|
105
|
-
- **Content-Type**:
|
|
106
|
+
- **Content-Type**: application/json
|
|
106
107
|
- **Accept**: application/json
|
|
107
108
|
|
|
108
109
|
|
|
109
110
|
### HTTP response details
|
|
110
111
|
| Status code | Description | Response headers |
|
|
111
112
|
|-------------|-------------|------------------|
|
|
112
|
-
|**200** |
|
|
113
|
+
|**200** | Nouveaux tokens | - |
|
|
114
|
+
|**400** | Requête invalide | - |
|
|
113
115
|
|**401** | Non autorisé | - |
|
|
114
|
-
|**404** | Sport non trouvé | - |
|
|
115
116
|
|**500** | Erreur serveur interne | - |
|
|
116
117
|
|
|
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)
|
|
118
119
|
|
|
119
|
-
# **
|
|
120
|
-
>
|
|
120
|
+
# **register**
|
|
121
|
+
> UserResponse register(registerRequestBody)
|
|
121
122
|
|
|
122
123
|
|
|
123
124
|
### Example
|
|
124
125
|
|
|
125
126
|
```typescript
|
|
126
127
|
import {
|
|
127
|
-
|
|
128
|
+
UserAuthenticationApi,
|
|
128
129
|
Configuration,
|
|
129
|
-
|
|
130
|
+
RegisterRequestBody
|
|
130
131
|
} from '@tennac-booking/sdk';
|
|
131
132
|
|
|
132
133
|
const configuration = new Configuration();
|
|
133
|
-
const apiInstance = new
|
|
134
|
+
const apiInstance = new UserAuthenticationApi(configuration);
|
|
134
135
|
|
|
135
|
-
let
|
|
136
|
+
let registerRequestBody: RegisterRequestBody; //
|
|
136
137
|
|
|
137
|
-
const { status, data } = await apiInstance.
|
|
138
|
-
|
|
138
|
+
const { status, data } = await apiInstance.register(
|
|
139
|
+
registerRequestBody
|
|
139
140
|
);
|
|
140
141
|
```
|
|
141
142
|
|
|
@@ -143,12 +144,12 @@ const { status, data } = await apiInstance.getAllSports(
|
|
|
143
144
|
|
|
144
145
|
|Name | Type | Description | Notes|
|
|
145
146
|
|------------- | ------------- | ------------- | -------------|
|
|
146
|
-
| **
|
|
147
|
+
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
147
148
|
|
|
148
149
|
|
|
149
150
|
### Return type
|
|
150
151
|
|
|
151
|
-
**
|
|
152
|
+
**UserResponse**
|
|
152
153
|
|
|
153
154
|
### Authorization
|
|
154
155
|
|
|
@@ -163,35 +164,33 @@ const { status, data } = await apiInstance.getAllSports(
|
|
|
163
164
|
### HTTP response details
|
|
164
165
|
| Status code | Description | Response headers |
|
|
165
166
|
|-------------|-------------|------------------|
|
|
166
|
-
|**
|
|
167
|
+
|**201** | Utilisateur créé | - |
|
|
167
168
|
|**400** | Requête invalide | - |
|
|
168
|
-
|**
|
|
169
|
+
|**409** | Email déjà utilisé | - |
|
|
169
170
|
|**500** | Erreur serveur interne | - |
|
|
170
171
|
|
|
171
172
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
172
173
|
|
|
173
|
-
# **
|
|
174
|
-
>
|
|
174
|
+
# **signInOrSignUpWithGoogle**
|
|
175
|
+
> GoogleSignInResponse signInOrSignUpWithGoogle(googleSignInRequestBody)
|
|
175
176
|
|
|
176
177
|
|
|
177
178
|
### Example
|
|
178
179
|
|
|
179
180
|
```typescript
|
|
180
181
|
import {
|
|
181
|
-
|
|
182
|
+
UserAuthenticationApi,
|
|
182
183
|
Configuration,
|
|
183
|
-
|
|
184
|
+
GoogleSignInRequestBody
|
|
184
185
|
} from '@tennac-booking/sdk';
|
|
185
186
|
|
|
186
187
|
const configuration = new Configuration();
|
|
187
|
-
const apiInstance = new
|
|
188
|
+
const apiInstance = new UserAuthenticationApi(configuration);
|
|
188
189
|
|
|
189
|
-
let
|
|
190
|
-
let updateSportRequest: UpdateSportRequest; //
|
|
190
|
+
let googleSignInRequestBody: GoogleSignInRequestBody; //
|
|
191
191
|
|
|
192
|
-
const { status, data } = await apiInstance.
|
|
193
|
-
|
|
194
|
-
updateSportRequest
|
|
192
|
+
const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
193
|
+
googleSignInRequestBody
|
|
195
194
|
);
|
|
196
195
|
```
|
|
197
196
|
|
|
@@ -199,13 +198,12 @@ const { status, data } = await apiInstance.updateSport(
|
|
|
199
198
|
|
|
200
199
|
|Name | Type | Description | Notes|
|
|
201
200
|
|------------- | ------------- | ------------- | -------------|
|
|
202
|
-
| **
|
|
203
|
-
| **id** | [**string**] | ID du sport | defaults to undefined|
|
|
201
|
+
| **googleSignInRequestBody** | **GoogleSignInRequestBody**| | |
|
|
204
202
|
|
|
205
203
|
|
|
206
204
|
### Return type
|
|
207
205
|
|
|
208
|
-
**
|
|
206
|
+
**GoogleSignInResponse**
|
|
209
207
|
|
|
210
208
|
### Authorization
|
|
211
209
|
|
|
@@ -220,9 +218,8 @@ const { status, data } = await apiInstance.updateSport(
|
|
|
220
218
|
### HTTP response details
|
|
221
219
|
| Status code | Description | Response headers |
|
|
222
220
|
|-------------|-------------|------------------|
|
|
223
|
-
|**200** |
|
|
224
|
-
|**
|
|
225
|
-
|**404** | Sport non trouvé | - |
|
|
221
|
+
|**200** | Authentification Google réussie | - |
|
|
222
|
+
|**400** | Requête invalide | - |
|
|
226
223
|
|**500** | Erreur serveur interne | - |
|
|
227
224
|
|
|
228
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)
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UserBookingsApi
|
|
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
|
-
|[**
|
|
7
|
+
|[**blockSlot**](#blockslot) | **PATCH** /api/bookings/pre-book/{slotId} | Bloquer un créneau|
|
|
8
|
+
|[**createBooking**](#createbooking) | **POST** /api/bookings | Créer une réservation|
|
|
9
9
|
|
|
10
|
-
# **
|
|
11
|
-
>
|
|
10
|
+
# **blockSlot**
|
|
11
|
+
> BlockSlotResponse blockSlot()
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
14
14
|
|
|
15
15
|
### Example
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
Configuration
|
|
21
|
-
CreateBookingRequest
|
|
19
|
+
UserBookingsApi,
|
|
20
|
+
Configuration
|
|
22
21
|
} from '@tennac-booking/sdk';
|
|
23
22
|
|
|
24
23
|
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new
|
|
24
|
+
const apiInstance = new UserBookingsApi(configuration);
|
|
26
25
|
|
|
27
|
-
let
|
|
26
|
+
let slotId: string; //ID MongoDB du créneau à bloquer (default to undefined)
|
|
28
27
|
|
|
29
|
-
const { status, data } = await apiInstance.
|
|
30
|
-
|
|
28
|
+
const { status, data } = await apiInstance.blockSlot(
|
|
29
|
+
slotId
|
|
31
30
|
);
|
|
32
31
|
```
|
|
33
32
|
|
|
@@ -35,12 +34,12 @@ const { status, data } = await apiInstance.bookingsPost(
|
|
|
35
34
|
|
|
36
35
|
|Name | Type | Description | Notes|
|
|
37
36
|
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **
|
|
37
|
+
| **slotId** | [**string**] | ID MongoDB du créneau à bloquer | defaults to undefined|
|
|
39
38
|
|
|
40
39
|
|
|
41
40
|
### Return type
|
|
42
41
|
|
|
43
|
-
**
|
|
42
|
+
**BlockSlotResponse**
|
|
44
43
|
|
|
45
44
|
### Authorization
|
|
46
45
|
|
|
@@ -48,14 +47,14 @@ const { status, data } = await apiInstance.bookingsPost(
|
|
|
48
47
|
|
|
49
48
|
### HTTP request headers
|
|
50
49
|
|
|
51
|
-
- **Content-Type**:
|
|
50
|
+
- **Content-Type**: Not defined
|
|
52
51
|
- **Accept**: application/json
|
|
53
52
|
|
|
54
53
|
|
|
55
54
|
### HTTP response details
|
|
56
55
|
| Status code | Description | Response headers |
|
|
57
56
|
|-------------|-------------|------------------|
|
|
58
|
-
|**
|
|
57
|
+
|**200** | Créneau bloqué avec succès | - |
|
|
59
58
|
|**400** | Requête invalide | - |
|
|
60
59
|
|**401** | Non autorisé | - |
|
|
61
60
|
|**404** | Ressource non trouvée | - |
|
|
@@ -63,26 +62,27 @@ const { status, data } = await apiInstance.bookingsPost(
|
|
|
63
62
|
|
|
64
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)
|
|
65
64
|
|
|
66
|
-
# **
|
|
67
|
-
>
|
|
65
|
+
# **createBooking**
|
|
66
|
+
> BookingResponse createBooking(createBookingRequest)
|
|
68
67
|
|
|
69
|
-
|
|
68
|
+
Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
70
69
|
|
|
71
70
|
### Example
|
|
72
71
|
|
|
73
72
|
```typescript
|
|
74
73
|
import {
|
|
75
|
-
|
|
76
|
-
Configuration
|
|
74
|
+
UserBookingsApi,
|
|
75
|
+
Configuration,
|
|
76
|
+
CreateBookingRequest
|
|
77
77
|
} from '@tennac-booking/sdk';
|
|
78
78
|
|
|
79
79
|
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new
|
|
80
|
+
const apiInstance = new UserBookingsApi(configuration);
|
|
81
81
|
|
|
82
|
-
let
|
|
82
|
+
let createBookingRequest: CreateBookingRequest; //
|
|
83
83
|
|
|
84
|
-
const { status, data } = await apiInstance.
|
|
85
|
-
|
|
84
|
+
const { status, data } = await apiInstance.createBooking(
|
|
85
|
+
createBookingRequest
|
|
86
86
|
);
|
|
87
87
|
```
|
|
88
88
|
|
|
@@ -90,12 +90,12 @@ const { status, data } = await apiInstance.bookingsPreBookSlotIdPatch(
|
|
|
90
90
|
|
|
91
91
|
|Name | Type | Description | Notes|
|
|
92
92
|
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **
|
|
93
|
+
| **createBookingRequest** | **CreateBookingRequest**| | |
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
### Return type
|
|
97
97
|
|
|
98
|
-
**
|
|
98
|
+
**BookingResponse**
|
|
99
99
|
|
|
100
100
|
### Authorization
|
|
101
101
|
|
|
@@ -103,17 +103,17 @@ const { status, data } = await apiInstance.bookingsPreBookSlotIdPatch(
|
|
|
103
103
|
|
|
104
104
|
### HTTP request headers
|
|
105
105
|
|
|
106
|
-
- **Content-Type**:
|
|
106
|
+
- **Content-Type**: application/json
|
|
107
107
|
- **Accept**: application/json
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
### HTTP response details
|
|
111
111
|
| Status code | Description | Response headers |
|
|
112
112
|
|-------------|-------------|------------------|
|
|
113
|
-
|**
|
|
114
|
-
|**400** | Requête invalide
|
|
113
|
+
|**201** | Réservation créée avec succès | - |
|
|
114
|
+
|**400** | Requête invalide | - |
|
|
115
115
|
|**401** | Non autorisé | - |
|
|
116
|
-
|**404** |
|
|
116
|
+
|**404** | Ressource non trouvée | - |
|
|
117
117
|
|**500** | Erreur serveur interne | - |
|
|
118
118
|
|
|
119
119
|
[[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,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,181 @@
|
|
|
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
|
+
|[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
|
|
9
|
+
|[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
|
|
10
|
+
|
|
11
|
+
# **getAvailableSlotsByClub**
|
|
12
|
+
> SlotsResponse getAvailableSlotsByClub()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
UserClubSlotsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new UserClubSlotsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let clubID: string; //ID du club (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.getAvailableSlotsByClub(
|
|
29
|
+
clubID
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **clubID** | [**string**] | ID du club | defaults to undefined|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**SlotsResponse**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: Not defined
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Liste des créneaux disponibles pour le club | - |
|
|
58
|
+
|**400** | Requête invalide | - |
|
|
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
|
+
# **getAvailableSlotsBySports**
|
|
64
|
+
> SlotsResponse getAvailableSlotsBySports()
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import {
|
|
71
|
+
UserClubSlotsApi,
|
|
72
|
+
Configuration
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new UserClubSlotsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let id: string; //ID du club (default to undefined)
|
|
79
|
+
let sportId: string; //ID du sport (default to undefined)
|
|
80
|
+
let start: string; //Date de début (format ISO) (optional) (default to undefined)
|
|
81
|
+
let end: string; //Date de fin (format ISO) (optional) (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.getAvailableSlotsBySports(
|
|
84
|
+
id,
|
|
85
|
+
sportId,
|
|
86
|
+
start,
|
|
87
|
+
end
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
96
|
+
| **sportId** | [**string**] | ID du sport | defaults to undefined|
|
|
97
|
+
| **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
|
|
98
|
+
| **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Return type
|
|
102
|
+
|
|
103
|
+
**SlotsResponse**
|
|
104
|
+
|
|
105
|
+
### Authorization
|
|
106
|
+
|
|
107
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
108
|
+
|
|
109
|
+
### HTTP request headers
|
|
110
|
+
|
|
111
|
+
- **Content-Type**: Not defined
|
|
112
|
+
- **Accept**: application/json
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### HTTP response details
|
|
116
|
+
| Status code | Description | Response headers |
|
|
117
|
+
|-------------|-------------|------------------|
|
|
118
|
+
|**200** | Liste des créneaux disponibles | - |
|
|
119
|
+
|**400** | Requête invalide | - |
|
|
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
|
+
|
|
124
|
+
# **getAvailableSlotsBySportsAndDay**
|
|
125
|
+
> SlotsResponse getAvailableSlotsBySportsAndDay()
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
UserClubSlotsApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from '@tennac-booking/sdk';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new UserClubSlotsApi(configuration);
|
|
138
|
+
|
|
139
|
+
let id: string; //ID du club (default to undefined)
|
|
140
|
+
let sportId: string; //ID du sport (default to undefined)
|
|
141
|
+
let day: string; //Date du jour (format YYYY-MM-DD) (default to undefined)
|
|
142
|
+
|
|
143
|
+
const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
|
|
144
|
+
id,
|
|
145
|
+
sportId,
|
|
146
|
+
day
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
155
|
+
| **sportId** | [**string**] | ID du sport | defaults to undefined|
|
|
156
|
+
| **day** | [**string**] | Date du jour (format YYYY-MM-DD) | defaults to undefined|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
**SlotsResponse**
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: Not defined
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### HTTP response details
|
|
174
|
+
| Status code | Description | Response headers |
|
|
175
|
+
|-------------|-------------|------------------|
|
|
176
|
+
|**200** | Liste des créneaux disponibles pour le jour donné | - |
|
|
177
|
+
|**400** | Requête invalide | - |
|
|
178
|
+
|**500** | Erreur serveur interne | - |
|
|
179
|
+
|
|
180
|
+
[[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)
|
|
181
|
+
|