@tennac-booking/sdk 1.0.35 → 1.0.37
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 +4 -163
- package/README.md +6 -235
- package/api.ts +604 -14177
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +598 -9539
- package/dist/api.js +10 -8071
- 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 +598 -9539
- package/dist/esm/api.js +9 -7956
- 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/ApiErrorResponse.md +1 -1
- package/docs/Club.md +5 -11
- package/docs/ClubResponse.md +8 -14
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubSettings.md +9 -21
- package/docs/Court.md +2 -2
- package/docs/CourtResponse.md +16 -18
- package/docs/CourtStatus.md +2 -5
- package/docs/PriceResponse.md +8 -2
- package/docs/SlotResponse.md +10 -2
- package/docs/Sport.md +2 -0
- package/docs/SportResponse.md +2 -4
- package/docs/{GetUserRolesResponseRolesInner.md → StripeLink.md} +7 -7
- package/docs/UserResponse.md +48 -8
- package/docs/{FrequentlyPlayedWithItem.md → UserResponseFrequentlyPlayedWithInner.md} +3 -3
- package/docs/{FrequentlyVisitedClubItem.md → UserResponseFrequentlyVisitedClubsInner.md} +3 -3
- package/docs/{PublicClubUserLevelBySportsInner.md → UserResponseLevelBySportsInner.md} +3 -3
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AddClubMemberRequest.md +0 -22
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddFavoriteClubRequestBody.md +0 -20
- package/docs/AddFavoritePlayerRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupResponse.md +0 -24
- package/docs/BlockSlotResponse.md +0 -22
- package/docs/BookingHistoryResponse.md +0 -22
- package/docs/BookingHistoryResponseHistoryInner.md +0 -32
- package/docs/BookingPaymentStatusResponse.md +0 -24
- package/docs/BookingPaymentStatusResponseBooking.md +0 -26
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
- package/docs/BookingPaymentStatusResponseSummary.md +0 -28
- package/docs/BookingPopulated.md +0 -30
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
- package/docs/BookingPopulatedSlotId.md +0 -26
- package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
- package/docs/BookingPopulatedUserId.md +0 -24
- package/docs/BookingResponse.md +0 -28
- package/docs/BookingsApi.md +0 -113
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
- package/docs/CancelBookingResponse.md +0 -22
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/ChangePasswordRequestBody.md +0 -22
- package/docs/ChangePasswordResponse.md +0 -20
- package/docs/CheckInPlayersResponse.md +0 -30
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
- package/docs/ClubAnalyticsApi.md +0 -241
- package/docs/ClubInfoResponse.md +0 -48
- package/docs/ClubMember.md +0 -24
- package/docs/ClubMembersResponse.md +0 -22
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubsApi.md +0 -61
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/CourtDeleteResponse.md +0 -20
- package/docs/CourtWithNameResponse.md +0 -48
- package/docs/CourtsResponse.md +0 -22
- package/docs/CourtsWithNameResponse.md +0 -22
- package/docs/CreateBookingRequest.md +0 -28
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreateCourtRequest.md +0 -36
- package/docs/CreateEventRequest.md +0 -30
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/CreateSportRequest.md +0 -26
- package/docs/CreateSubscriptionPlanRequest.md +0 -24
- package/docs/DailyTurnoverResponse.md +0 -24
- package/docs/DeleteClubRole200Response.md +0 -20
- package/docs/DeleteEvent200Response.md +0 -20
- package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
- package/docs/DeleteSport200Response.md +0 -20
- package/docs/Event.md +0 -40
- package/docs/EventBooking.md +0 -32
- package/docs/EventRegistrationRequest.md +0 -22
- package/docs/EventsApi.md +0 -119
- package/docs/FavoriteClubItem.md +0 -26
- package/docs/FavoriteClubResponse.md +0 -22
- package/docs/FavoritePlayerPublic.md +0 -28
- package/docs/FavoritePlayersIdsResponse.md +0 -22
- package/docs/FavoritePlayersResponse.md +0 -20
- package/docs/GenderPercentage.md +0 -26
- package/docs/GetActiveClubs200Response.md +0 -20
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetClubUsersById200Response.md +0 -20
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
- package/docs/GetNumberOfClubUsers200Response.md +0 -20
- package/docs/GetPublishedEventsByClubId200Response.md +0 -20
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/GoogleSignInResponse.md +0 -24
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/InvoicesResponse.md +0 -22
- package/docs/InvoicesResponseInvoicesInner.md +0 -34
- package/docs/InvoicesResponsePagination.md +0 -26
- package/docs/LevelBySportsItem.md +0 -22
- package/docs/LoginRequestBody.md +0 -22
- package/docs/LoginResponse.md +0 -28
- package/docs/ManagerBookingsApi.md +0 -125
- package/docs/ManagerCancelBookingRequest.md +0 -20
- package/docs/ManagerCancelBookingResponse.md +0 -22
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubCourtsApi.md +0 -220
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -119
- package/docs/ManagerClubSubscriptionsApi.md +0 -387
- package/docs/ManagerClubsApi.md +0 -253
- package/docs/ManagerEventResponse.md +0 -22
- package/docs/ManagerEventsApi.md +0 -227
- package/docs/ManagerSportsApi.md +0 -119
- package/docs/MonthlyTurnoverResponse.md +0 -28
- package/docs/NoShowFeeResponse.md +0 -30
- package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
- package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
- package/docs/PaymentStatus.md +0 -30
- package/docs/PlayerWithPaymentMethod.md +0 -22
- package/docs/ProfilePictureResponse.md +0 -20
- package/docs/ProfileVisibilityResponse.md +0 -20
- package/docs/PublicClubUser.md +0 -46
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
- package/docs/RefreshTokenRequestBody.md +0 -20
- package/docs/RefreshTokenResponse.md +0 -22
- package/docs/RegisterForEvent201Response.md +0 -20
- package/docs/RegisterRequestBody.md +0 -36
- package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
- package/docs/SetupPaymentMethodRequestBody.md +0 -20
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/SlotsResponse.md +0 -22
- package/docs/StaffClubAnalyticsApi.md +0 -196
- package/docs/StaffClubBookingsApi.md +0 -52
- package/docs/StaffClubsApi.md +0 -147
- package/docs/StaffEventResponse.md +0 -20
- package/docs/StaffEventsApi.md +0 -54
- package/docs/StaffProfileApi.md +0 -54
- package/docs/SubscribeToClubRequestBody.md +0 -22
- package/docs/SubscriptionPlanResponse.md +0 -32
- package/docs/UpdateClubRequest.md +0 -40
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateClubSettingsRequest.md +0 -28
- package/docs/UpdateCourtRequest.md +0 -38
- package/docs/UpdateCustomerRequestBody.md +0 -26
- package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
- package/docs/UpdateCustomerResponse.md +0 -22
- package/docs/UpdateCustomerResponseCustomer.md +0 -28
- package/docs/UpdateLevelBySportsRequestBody.md +0 -20
- package/docs/UpdateProfilePictureRequestBody.md +0 -20
- package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
- package/docs/UpdateSportRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/UpdateUserCityRequestBody.md +0 -20
- package/docs/UpdateUserDescriptionRequestBody.md +0 -20
- package/docs/UpdateUserRequestBody.md +0 -38
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +0 -22
- package/docs/UserApi.md +0 -63
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserBookingItem.md +0 -46
- package/docs/UserBookingsApi.md +0 -166
- package/docs/UserBookingsResponse.md +0 -26
- package/docs/UserCityResponse.md +0 -20
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserClubsApi.md +0 -53
- package/docs/UserDescriptionResponse.md +0 -20
- package/docs/UserFavoriteClubsResponse.md +0 -20
- package/docs/UserPaymentApi.md +0 -176
- package/docs/UserProfileApi.md +0 -1254
- package/docs/UserStaffResponse.md +0 -36
- package/docs/UserSubscriptionsApi.md +0 -222
- package/docs/UsersApi.md +0 -243
- package/docs/YearlyTurnoverResponse.md +0 -26
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
# UserAuthenticationApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
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
|
-
|
|
12
|
-
# **login**
|
|
13
|
-
> LoginResponse login(loginRequestBody)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
UserAuthenticationApi,
|
|
21
|
-
Configuration,
|
|
22
|
-
LoginRequestBody
|
|
23
|
-
} from '@tennac-booking/sdk';
|
|
24
|
-
|
|
25
|
-
const configuration = new Configuration();
|
|
26
|
-
const apiInstance = new UserAuthenticationApi(configuration);
|
|
27
|
-
|
|
28
|
-
let loginRequestBody: LoginRequestBody; //
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.login(
|
|
31
|
-
loginRequestBody
|
|
32
|
-
);
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Parameters
|
|
36
|
-
|
|
37
|
-
|Name | Type | Description | Notes|
|
|
38
|
-
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### Return type
|
|
43
|
-
|
|
44
|
-
**LoginResponse**
|
|
45
|
-
|
|
46
|
-
### Authorization
|
|
47
|
-
|
|
48
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
49
|
-
|
|
50
|
-
### HTTP request headers
|
|
51
|
-
|
|
52
|
-
- **Content-Type**: application/json
|
|
53
|
-
- **Accept**: application/json
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### HTTP response details
|
|
57
|
-
| Status code | Description | Response headers |
|
|
58
|
-
|-------------|-------------|------------------|
|
|
59
|
-
|**200** | Authentification réussie | - |
|
|
60
|
-
|**400** | Requête invalide | - |
|
|
61
|
-
|**401** | Non autorisé | - |
|
|
62
|
-
|**500** | Erreur serveur interne | - |
|
|
63
|
-
|
|
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
|
-
|
|
66
|
-
# **refreshToken**
|
|
67
|
-
> RefreshTokenResponse refreshToken(refreshTokenRequestBody)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Example
|
|
71
|
-
|
|
72
|
-
```typescript
|
|
73
|
-
import {
|
|
74
|
-
UserAuthenticationApi,
|
|
75
|
-
Configuration,
|
|
76
|
-
RefreshTokenRequestBody
|
|
77
|
-
} from '@tennac-booking/sdk';
|
|
78
|
-
|
|
79
|
-
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new UserAuthenticationApi(configuration);
|
|
81
|
-
|
|
82
|
-
let refreshTokenRequestBody: RefreshTokenRequestBody; //
|
|
83
|
-
|
|
84
|
-
const { status, data } = await apiInstance.refreshToken(
|
|
85
|
-
refreshTokenRequestBody
|
|
86
|
-
);
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Parameters
|
|
90
|
-
|
|
91
|
-
|Name | Type | Description | Notes|
|
|
92
|
-
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Return type
|
|
97
|
-
|
|
98
|
-
**RefreshTokenResponse**
|
|
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** | Nouveaux tokens | - |
|
|
114
|
-
|**400** | Requête invalide | - |
|
|
115
|
-
|**401** | Non autorisé | - |
|
|
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
|
-
|
|
120
|
-
# **register**
|
|
121
|
-
> UserResponse register(registerRequestBody)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
### Example
|
|
125
|
-
|
|
126
|
-
```typescript
|
|
127
|
-
import {
|
|
128
|
-
UserAuthenticationApi,
|
|
129
|
-
Configuration,
|
|
130
|
-
RegisterRequestBody
|
|
131
|
-
} from '@tennac-booking/sdk';
|
|
132
|
-
|
|
133
|
-
const configuration = new Configuration();
|
|
134
|
-
const apiInstance = new UserAuthenticationApi(configuration);
|
|
135
|
-
|
|
136
|
-
let registerRequestBody: RegisterRequestBody; //
|
|
137
|
-
|
|
138
|
-
const { status, data } = await apiInstance.register(
|
|
139
|
-
registerRequestBody
|
|
140
|
-
);
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### Parameters
|
|
144
|
-
|
|
145
|
-
|Name | Type | Description | Notes|
|
|
146
|
-
|------------- | ------------- | ------------- | -------------|
|
|
147
|
-
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
### Return type
|
|
151
|
-
|
|
152
|
-
**UserResponse**
|
|
153
|
-
|
|
154
|
-
### Authorization
|
|
155
|
-
|
|
156
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
157
|
-
|
|
158
|
-
### HTTP request headers
|
|
159
|
-
|
|
160
|
-
- **Content-Type**: application/json
|
|
161
|
-
- **Accept**: application/json
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
### HTTP response details
|
|
165
|
-
| Status code | Description | Response headers |
|
|
166
|
-
|-------------|-------------|------------------|
|
|
167
|
-
|**201** | Utilisateur créé | - |
|
|
168
|
-
|**400** | Requête invalide | - |
|
|
169
|
-
|**409** | Email déjà utilisé | - |
|
|
170
|
-
|**500** | Erreur serveur interne | - |
|
|
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)
|
|
173
|
-
|
|
174
|
-
# **signInOrSignUpWithGoogle**
|
|
175
|
-
> GoogleSignInResponse signInOrSignUpWithGoogle(googleSignInRequestBody)
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
### Example
|
|
179
|
-
|
|
180
|
-
```typescript
|
|
181
|
-
import {
|
|
182
|
-
UserAuthenticationApi,
|
|
183
|
-
Configuration,
|
|
184
|
-
GoogleSignInRequestBody
|
|
185
|
-
} from '@tennac-booking/sdk';
|
|
186
|
-
|
|
187
|
-
const configuration = new Configuration();
|
|
188
|
-
const apiInstance = new UserAuthenticationApi(configuration);
|
|
189
|
-
|
|
190
|
-
let googleSignInRequestBody: GoogleSignInRequestBody; //
|
|
191
|
-
|
|
192
|
-
const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
193
|
-
googleSignInRequestBody
|
|
194
|
-
);
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Parameters
|
|
198
|
-
|
|
199
|
-
|Name | Type | Description | Notes|
|
|
200
|
-
|------------- | ------------- | ------------- | -------------|
|
|
201
|
-
| **googleSignInRequestBody** | **GoogleSignInRequestBody**| | |
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
### Return type
|
|
205
|
-
|
|
206
|
-
**GoogleSignInResponse**
|
|
207
|
-
|
|
208
|
-
### Authorization
|
|
209
|
-
|
|
210
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
211
|
-
|
|
212
|
-
### HTTP request headers
|
|
213
|
-
|
|
214
|
-
- **Content-Type**: application/json
|
|
215
|
-
- **Accept**: application/json
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
### HTTP response details
|
|
219
|
-
| Status code | Description | Response headers |
|
|
220
|
-
|-------------|-------------|------------------|
|
|
221
|
-
|**200** | Authentification Google réussie | - |
|
|
222
|
-
|**400** | Requête invalide | - |
|
|
223
|
-
|**500** | Erreur serveur interne | - |
|
|
224
|
-
|
|
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)
|
|
226
|
-
|
package/docs/UserBookingItem.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# UserBookingItem
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | ID de la réservation | [optional] [default to undefined]
|
|
9
|
-
**clubPicture** | **string** | URL de l\'image du club | [optional] [default to undefined]
|
|
10
|
-
**courtName** | **string** | Nom du terrain | [optional] [default to undefined]
|
|
11
|
-
**sportName** | **string** | Nom du sport | [optional] [default to undefined]
|
|
12
|
-
**startDate** | **string** | Date de début de la réservation | [optional] [default to undefined]
|
|
13
|
-
**myPaymentStatus** | **string** | Statut de paiement de l\'utilisateur | [optional] [default to undefined]
|
|
14
|
-
**bookingStatus** | **string** | Statut de la réservation | [optional] [default to undefined]
|
|
15
|
-
**playersName** | **Array<string>** | Liste des noms des joueurs | [optional] [default to undefined]
|
|
16
|
-
**myAmountToPay** | **number** | Montant que l\'utilisateur doit payer | [optional] [default to undefined]
|
|
17
|
-
**totalAmount** | **number** | Montant total de la réservation | [optional] [default to undefined]
|
|
18
|
-
**timeBeforeCancel** | **string** | Date limite avant annulation | [optional] [default to undefined]
|
|
19
|
-
**clubAddress** | **string** | Adresse du club | [optional] [default to undefined]
|
|
20
|
-
**bookingHistory** | **string** | Historique de la réservation | [optional] [default to undefined]
|
|
21
|
-
**paymentStatus** | [**Array<PaymentStatus>**](PaymentStatus.md) | Statut de paiement pour chaque joueur | [optional] [default to undefined]
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import { UserBookingItem } from '@tennac-booking/sdk';
|
|
27
|
-
|
|
28
|
-
const instance: UserBookingItem = {
|
|
29
|
-
id,
|
|
30
|
-
clubPicture,
|
|
31
|
-
courtName,
|
|
32
|
-
sportName,
|
|
33
|
-
startDate,
|
|
34
|
-
myPaymentStatus,
|
|
35
|
-
bookingStatus,
|
|
36
|
-
playersName,
|
|
37
|
-
myAmountToPay,
|
|
38
|
-
totalAmount,
|
|
39
|
-
timeBeforeCancel,
|
|
40
|
-
clubAddress,
|
|
41
|
-
bookingHistory,
|
|
42
|
-
paymentStatus,
|
|
43
|
-
};
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UserBookingsApi.md
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
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
|
-
|[**createBooking**](#createbooking) | **POST** /api/bookings | Créer une réservation|
|
|
9
|
-
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/users/me/booking-history | Récupère l\'historique des réservations de l\'utilisateur connecté|
|
|
10
|
-
|
|
11
|
-
# **blockSlot**
|
|
12
|
-
> BlockSlotResponse blockSlot()
|
|
13
|
-
|
|
14
|
-
Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
UserBookingsApi,
|
|
21
|
-
Configuration
|
|
22
|
-
} from '@tennac-booking/sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new UserBookingsApi(configuration);
|
|
26
|
-
|
|
27
|
-
let slotId: string; //ID MongoDB du créneau à bloquer (default to undefined)
|
|
28
|
-
|
|
29
|
-
const { status, data } = await apiInstance.blockSlot(
|
|
30
|
-
slotId
|
|
31
|
-
);
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Parameters
|
|
35
|
-
|
|
36
|
-
|Name | Type | Description | Notes|
|
|
37
|
-
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **slotId** | [**string**] | ID MongoDB du créneau à bloquer | defaults to undefined|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Return type
|
|
42
|
-
|
|
43
|
-
**BlockSlotResponse**
|
|
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** | Créneau bloqué avec succès | - |
|
|
59
|
-
|**400** | Requête invalide | - |
|
|
60
|
-
|**401** | Non autorisé | - |
|
|
61
|
-
|**404** | Ressource non trouvée | - |
|
|
62
|
-
|**500** | Erreur serveur interne | - |
|
|
63
|
-
|
|
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
|
-
|
|
66
|
-
# **createBooking**
|
|
67
|
-
> BookingResponse createBooking(createBookingRequest)
|
|
68
|
-
|
|
69
|
-
Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
70
|
-
|
|
71
|
-
### Example
|
|
72
|
-
|
|
73
|
-
```typescript
|
|
74
|
-
import {
|
|
75
|
-
UserBookingsApi,
|
|
76
|
-
Configuration,
|
|
77
|
-
CreateBookingRequest
|
|
78
|
-
} from '@tennac-booking/sdk';
|
|
79
|
-
|
|
80
|
-
const configuration = new Configuration();
|
|
81
|
-
const apiInstance = new UserBookingsApi(configuration);
|
|
82
|
-
|
|
83
|
-
let createBookingRequest: CreateBookingRequest; //
|
|
84
|
-
|
|
85
|
-
const { status, data } = await apiInstance.createBooking(
|
|
86
|
-
createBookingRequest
|
|
87
|
-
);
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### Parameters
|
|
91
|
-
|
|
92
|
-
|Name | Type | Description | Notes|
|
|
93
|
-
|------------- | ------------- | ------------- | -------------|
|
|
94
|
-
| **createBookingRequest** | **CreateBookingRequest**| | |
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
### Return type
|
|
98
|
-
|
|
99
|
-
**BookingResponse**
|
|
100
|
-
|
|
101
|
-
### Authorization
|
|
102
|
-
|
|
103
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
104
|
-
|
|
105
|
-
### HTTP request headers
|
|
106
|
-
|
|
107
|
-
- **Content-Type**: application/json
|
|
108
|
-
- **Accept**: application/json
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
### HTTP response details
|
|
112
|
-
| Status code | Description | Response headers |
|
|
113
|
-
|-------------|-------------|------------------|
|
|
114
|
-
|**201** | Réservation créée avec succès | - |
|
|
115
|
-
|**400** | Requête invalide | - |
|
|
116
|
-
|**401** | Non autorisé | - |
|
|
117
|
-
|**404** | Ressource non trouvée | - |
|
|
118
|
-
|**500** | Erreur serveur interne | - |
|
|
119
|
-
|
|
120
|
-
[[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)
|
|
121
|
-
|
|
122
|
-
# **getBookingHistory**
|
|
123
|
-
> Array<UserBookingItem> getBookingHistory()
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### Example
|
|
127
|
-
|
|
128
|
-
```typescript
|
|
129
|
-
import {
|
|
130
|
-
UserBookingsApi,
|
|
131
|
-
Configuration
|
|
132
|
-
} from '@tennac-booking/sdk';
|
|
133
|
-
|
|
134
|
-
const configuration = new Configuration();
|
|
135
|
-
const apiInstance = new UserBookingsApi(configuration);
|
|
136
|
-
|
|
137
|
-
const { status, data } = await apiInstance.getBookingHistory();
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
### Parameters
|
|
141
|
-
This endpoint does not have any parameters.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
### Return type
|
|
145
|
-
|
|
146
|
-
**Array<UserBookingItem>**
|
|
147
|
-
|
|
148
|
-
### Authorization
|
|
149
|
-
|
|
150
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
151
|
-
|
|
152
|
-
### HTTP request headers
|
|
153
|
-
|
|
154
|
-
- **Content-Type**: Not defined
|
|
155
|
-
- **Accept**: application/json
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
### HTTP response details
|
|
159
|
-
| Status code | Description | Response headers |
|
|
160
|
-
|-------------|-------------|------------------|
|
|
161
|
-
|**200** | Historique des réservations | - |
|
|
162
|
-
|**401** | Non autorisé | - |
|
|
163
|
-
|**500** | Erreur serveur interne | - |
|
|
164
|
-
|
|
165
|
-
[[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)
|
|
166
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# UserBookingsResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**bookings** | [**Array<Booking>**](Booking.md) | | [optional] [default to undefined]
|
|
9
|
-
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
-
**limit** | **number** | | [optional] [default to undefined]
|
|
11
|
-
**skip** | **number** | | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { UserBookingsResponse } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: UserBookingsResponse = {
|
|
19
|
-
bookings,
|
|
20
|
-
total,
|
|
21
|
-
limit,
|
|
22
|
-
skip,
|
|
23
|
-
};
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UserCityResponse.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# UserCityResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**city** | **string** | | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { UserCityResponse } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: UserCityResponse = {
|
|
16
|
-
city,
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
|