@tennac-booking/sdk 1.0.38 → 1.0.40
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 +66 -206
- package/README.md +75 -258
- package/api.ts +2219 -13121
- package/base.ts +3 -3
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1496 -8954
- package/dist/api.js +1015 -7046
- package/dist/base.d.ts +2 -2
- package/dist/base.js +3 -3
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +1496 -8954
- package/dist/esm/api.js +1011 -6932
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +3 -3
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/AddPaymentMethodRequestBody.md +20 -0
- package/docs/BaseUser.md +76 -0
- package/docs/BookingDetailResponse.md +46 -0
- package/docs/BookingSummary.md +44 -0
- package/docs/BookingSummaryBookingHistory.md +18 -0
- package/docs/BookingSummaryClubAddress.md +18 -0
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodResponse.md +22 -0
- package/docs/DiagnosticsApi.md +52 -0
- package/docs/DiagnosticsResponse.md +24 -0
- package/docs/FavoriteClubMutationResponse.md +22 -0
- package/docs/FavoriteClubRequestBody.md +20 -0
- package/docs/FavoriteClubsResponse.md +20 -0
- package/docs/FavoritePlayerMutationResponse.md +22 -0
- package/docs/FavoritePlayerRequestBody.md +20 -0
- package/docs/FavoritePlayersResponse.md +1 -1
- package/docs/FrequentClub.md +24 -0
- package/docs/FrequentPlayer.md +28 -0
- package/docs/Gender.md +12 -0
- package/docs/GoogleAuthRequestBody.md +20 -0
- package/docs/GoogleAuthResponse.md +30 -0
- package/docs/GoogleAuthResponseUser.md +26 -0
- package/docs/ILevelBySports.md +22 -0
- package/docs/LevelBySportEntry.md +22 -0
- package/docs/LoginResponse.md +2 -2
- package/docs/NotImplementedResponse.md +20 -0
- package/docs/PasswordResetRequestBody.md +20 -0
- package/docs/PaymentMethodSetupResponse.md +24 -0
- package/docs/PickUserResponseExcludeKeyofUserResponseLocation.md +73 -0
- package/docs/ProfilePictureResponse.md +1 -1
- package/docs/ProfilePictureUpdateRequestBody.md +20 -0
- package/docs/RefreshTokenResponse.md +6 -2
- package/docs/SdkDiagnosticsResponse.md +28 -0
- package/docs/SdkDiagnosticsResponseOpenapi.md +24 -0
- package/docs/SdkDiagnosticsResponseSdk.md +24 -0
- package/docs/SetupPaymentMethodRequestBody.md +1 -1
- package/docs/SetupPaymentMethodResponse.md +3 -3
- package/docs/StaffUserProfileResponse.md +22 -0
- package/docs/SubscribeToClubRequestBody.md +3 -3
- package/docs/SubscriptionMutationResponse.md +20 -0
- package/docs/SubscriptionSessionRequestBody.md +22 -0
- package/docs/SubscriptionSessionResponse.md +20 -0
- package/docs/UpdateCustomerRequestBody.md +3 -7
- package/docs/UpdateCustomerResponse.md +1 -3
- package/docs/UpdateLevelBySportsRequestBody.md +1 -1
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +2 -2
- package/docs/UserLocationSummary.md +44 -0
- package/docs/UserProfileResponse.md +28 -0
- package/docs/UserRolesResponse.md +20 -0
- package/docs/UserSubscriptionsResponse.md +20 -0
- package/docs/UsersApi.md +1721 -76
- package/index.ts +2 -2
- package/package.json +1 -1
package/docs/UsersApi.md
CHANGED
|
@@ -1,16 +1,100 @@
|
|
|
1
1
|
# UsersApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to
|
|
3
|
+
All URIs are relative to */api*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
7
|
+
|[**addFavoriteClub**](#addfavoriteclub) | **POST** /users/me/favorite-clubs | |
|
|
8
|
+
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /users/me/favoritesPlayers | |
|
|
9
|
+
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /users/addPaymentMethodSetup | |
|
|
10
|
+
|[**cancelSubscription**](#cancelsubscription) | **DELETE** /users/me/subscriptions/{clubId}/{subscriptionId} | |
|
|
11
|
+
|[**changePassword**](#changepassword) | **PUT** /users/me/password | |
|
|
12
|
+
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /users/confirmPaymentMethodSetup | |
|
|
13
|
+
|[**getAllUsers**](#getallusers) | **GET** /users | |
|
|
14
|
+
|[**getBookingDetail**](#getbookingdetail) | **GET** /users/me/booking-detail/{bookingId} | |
|
|
15
|
+
|[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /users/me/favorite-clubs | |
|
|
16
|
+
|[**getFavoritesPlayers**](#getfavoritesplayers) | **GET** /users/me/favoritesPlayers | |
|
|
17
|
+
|[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /users/me/frequentlyPlayedWith | |
|
|
18
|
+
|[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /users/me/frequentlyVisitedClub | |
|
|
19
|
+
|[**getMe**](#getme) | **GET** /users/me | |
|
|
20
|
+
|[**getNearestClubs**](#getnearestclubs) | **GET** /users/me/nearest-clubs | |
|
|
21
|
+
|[**getNearestClubsFromCoordinates**](#getnearestclubsfromcoordinates) | **GET** /users/nearest-clubs/coordinates | |
|
|
22
|
+
|[**getNearestUsers**](#getnearestusers) | **GET** /users/me/nearest-players | |
|
|
23
|
+
|[**getNearestUsersFromCoordinates**](#getnearestusersfromcoordinates) | **GET** /users/nearest-players/coordinates | |
|
|
24
|
+
|[**getUserBookings**](#getuserbookings) | **GET** /users/me/bookings | |
|
|
25
|
+
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /users/profile/{id} | |
|
|
26
|
+
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /users/staff/profile/{id} | |
|
|
27
|
+
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /users/me/roles | |
|
|
28
|
+
|[**getUserSubscriptions**](#getusersubscriptions) | **GET** /users/me/subscriptions | |
|
|
29
|
+
|[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /users/me/subscription-session | |
|
|
30
|
+
|[**login**](#login) | **POST** /users/login | |
|
|
31
|
+
|[**refreshToken**](#refreshtoken) | **POST** /users/refresh-token | |
|
|
32
|
+
|[**register**](#register) | **POST** /users | |
|
|
33
|
+
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /users/me/favorite-clubs/{clubId} | |
|
|
34
|
+
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
35
|
+
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /users/me/request-password-rest | |
|
|
36
|
+
|[**resumeSubscription**](#resumesubscription) | **POST** /users/me/subscriptions/{clubId}/{subscriptionId}/resume | |
|
|
37
|
+
|[**setupPaymentMethod**](#setuppaymentmethod) | **POST** /users/setupPaymentMethod | |
|
|
38
|
+
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /users/googleSignin | |
|
|
39
|
+
|[**subscribeToClub**](#subscribetoclub) | **POST** /users/me/subscribe | |
|
|
40
|
+
|[**updateCustomer**](#updatecustomer) | **PUT** /users/me/customer | |
|
|
41
|
+
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /users/me/level-by-sports | |
|
|
42
|
+
|[**updateMe**](#updateme) | **PUT** /users/me | |
|
|
43
|
+
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /users/me/profile-picture | |
|
|
44
|
+
|
|
45
|
+
# **addFavoriteClub**
|
|
46
|
+
> FavoriteClubMutationResponse addFavoriteClub(favoriteClubRequestBody)
|
|
11
47
|
|
|
12
|
-
|
|
13
|
-
|
|
48
|
+
|
|
49
|
+
### Example
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
import {
|
|
53
|
+
UsersApi,
|
|
54
|
+
Configuration,
|
|
55
|
+
FavoriteClubRequestBody
|
|
56
|
+
} from '@tennac-booking/sdk';
|
|
57
|
+
|
|
58
|
+
const configuration = new Configuration();
|
|
59
|
+
const apiInstance = new UsersApi(configuration);
|
|
60
|
+
|
|
61
|
+
let favoriteClubRequestBody: FavoriteClubRequestBody; //
|
|
62
|
+
|
|
63
|
+
const { status, data } = await apiInstance.addFavoriteClub(
|
|
64
|
+
favoriteClubRequestBody
|
|
65
|
+
);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Parameters
|
|
69
|
+
|
|
70
|
+
|Name | Type | Description | Notes|
|
|
71
|
+
|------------- | ------------- | ------------- | -------------|
|
|
72
|
+
| **favoriteClubRequestBody** | **FavoriteClubRequestBody**| | |
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
**FavoriteClubMutationResponse**
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
No authorization required
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: application/json
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### HTTP response details
|
|
90
|
+
| Status code | Description | Response headers |
|
|
91
|
+
|-------------|-------------|------------------|
|
|
92
|
+
|**200** | Ok | - |
|
|
93
|
+
|
|
94
|
+
[[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)
|
|
95
|
+
|
|
96
|
+
# **addFavoritePlayer**
|
|
97
|
+
> FavoritePlayerMutationResponse addFavoritePlayer(favoritePlayerRequestBody)
|
|
14
98
|
|
|
15
99
|
|
|
16
100
|
### Example
|
|
@@ -18,18 +102,17 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
18
102
|
```typescript
|
|
19
103
|
import {
|
|
20
104
|
UsersApi,
|
|
21
|
-
Configuration
|
|
105
|
+
Configuration,
|
|
106
|
+
FavoritePlayerRequestBody
|
|
22
107
|
} from '@tennac-booking/sdk';
|
|
23
108
|
|
|
24
109
|
const configuration = new Configuration();
|
|
25
110
|
const apiInstance = new UsersApi(configuration);
|
|
26
111
|
|
|
27
|
-
let
|
|
28
|
-
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
112
|
+
let favoritePlayerRequestBody: FavoritePlayerRequestBody; //
|
|
29
113
|
|
|
30
|
-
const { status, data } = await apiInstance.
|
|
31
|
-
|
|
32
|
-
limit
|
|
114
|
+
const { status, data } = await apiInstance.addFavoritePlayer(
|
|
115
|
+
favoritePlayerRequestBody
|
|
33
116
|
);
|
|
34
117
|
```
|
|
35
118
|
|
|
@@ -37,35 +120,83 @@ const { status, data } = await apiInstance.apiUsersMeNearestClubsGet(
|
|
|
37
120
|
|
|
38
121
|
|Name | Type | Description | Notes|
|
|
39
122
|
|------------- | ------------- | ------------- | -------------|
|
|
40
|
-
| **
|
|
41
|
-
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
123
|
+
| **favoritePlayerRequestBody** | **FavoritePlayerRequestBody**| | |
|
|
42
124
|
|
|
43
125
|
|
|
44
126
|
### Return type
|
|
45
127
|
|
|
46
|
-
**
|
|
128
|
+
**FavoritePlayerMutationResponse**
|
|
47
129
|
|
|
48
130
|
### Authorization
|
|
49
131
|
|
|
50
|
-
|
|
132
|
+
No authorization required
|
|
51
133
|
|
|
52
134
|
### HTTP request headers
|
|
53
135
|
|
|
54
|
-
- **Content-Type**:
|
|
136
|
+
- **Content-Type**: application/json
|
|
137
|
+
- **Accept**: application/json
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### HTTP response details
|
|
141
|
+
| Status code | Description | Response headers |
|
|
142
|
+
|-------------|-------------|------------------|
|
|
143
|
+
|**200** | Ok | - |
|
|
144
|
+
|
|
145
|
+
[[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)
|
|
146
|
+
|
|
147
|
+
# **addPaymentMethodSetup**
|
|
148
|
+
> PaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodRequestBody)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Example
|
|
152
|
+
|
|
153
|
+
```typescript
|
|
154
|
+
import {
|
|
155
|
+
UsersApi,
|
|
156
|
+
Configuration,
|
|
157
|
+
AddPaymentMethodRequestBody
|
|
158
|
+
} from '@tennac-booking/sdk';
|
|
159
|
+
|
|
160
|
+
const configuration = new Configuration();
|
|
161
|
+
const apiInstance = new UsersApi(configuration);
|
|
162
|
+
|
|
163
|
+
let addPaymentMethodRequestBody: AddPaymentMethodRequestBody; //
|
|
164
|
+
|
|
165
|
+
const { status, data } = await apiInstance.addPaymentMethodSetup(
|
|
166
|
+
addPaymentMethodRequestBody
|
|
167
|
+
);
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Parameters
|
|
171
|
+
|
|
172
|
+
|Name | Type | Description | Notes|
|
|
173
|
+
|------------- | ------------- | ------------- | -------------|
|
|
174
|
+
| **addPaymentMethodRequestBody** | **AddPaymentMethodRequestBody**| | |
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Return type
|
|
178
|
+
|
|
179
|
+
**PaymentMethodSetupResponse**
|
|
180
|
+
|
|
181
|
+
### Authorization
|
|
182
|
+
|
|
183
|
+
No authorization required
|
|
184
|
+
|
|
185
|
+
### HTTP request headers
|
|
186
|
+
|
|
187
|
+
- **Content-Type**: application/json
|
|
55
188
|
- **Accept**: application/json
|
|
56
189
|
|
|
57
190
|
|
|
58
191
|
### HTTP response details
|
|
59
192
|
| Status code | Description | Response headers |
|
|
60
193
|
|-------------|-------------|------------------|
|
|
61
|
-
|**200** |
|
|
62
|
-
|**401** | Non autorisé | - |
|
|
63
|
-
|**500** | Erreur serveur interne | - |
|
|
194
|
+
|**200** | Ok | - |
|
|
64
195
|
|
|
65
196
|
[[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
197
|
|
|
67
|
-
# **
|
|
68
|
-
>
|
|
198
|
+
# **cancelSubscription**
|
|
199
|
+
> SubscriptionMutationResponse cancelSubscription()
|
|
69
200
|
|
|
70
201
|
|
|
71
202
|
### Example
|
|
@@ -79,12 +210,12 @@ import {
|
|
|
79
210
|
const configuration = new Configuration();
|
|
80
211
|
const apiInstance = new UsersApi(configuration);
|
|
81
212
|
|
|
82
|
-
let
|
|
83
|
-
let
|
|
213
|
+
let clubId: string; // (default to undefined)
|
|
214
|
+
let subscriptionId: string; // (default to undefined)
|
|
84
215
|
|
|
85
|
-
const { status, data } = await apiInstance.
|
|
86
|
-
|
|
87
|
-
|
|
216
|
+
const { status, data } = await apiInstance.cancelSubscription(
|
|
217
|
+
clubId,
|
|
218
|
+
subscriptionId
|
|
88
219
|
);
|
|
89
220
|
```
|
|
90
221
|
|
|
@@ -92,17 +223,17 @@ const { status, data } = await apiInstance.apiUsersMeNearestPlayersGet(
|
|
|
92
223
|
|
|
93
224
|
|Name | Type | Description | Notes|
|
|
94
225
|
|------------- | ------------- | ------------- | -------------|
|
|
95
|
-
| **
|
|
96
|
-
| **
|
|
226
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
227
|
+
| **subscriptionId** | [**string**] | | defaults to undefined|
|
|
97
228
|
|
|
98
229
|
|
|
99
230
|
### Return type
|
|
100
231
|
|
|
101
|
-
**
|
|
232
|
+
**SubscriptionMutationResponse**
|
|
102
233
|
|
|
103
234
|
### Authorization
|
|
104
235
|
|
|
105
|
-
|
|
236
|
+
No authorization required
|
|
106
237
|
|
|
107
238
|
### HTTP request headers
|
|
108
239
|
|
|
@@ -113,14 +244,12 @@ const { status, data } = await apiInstance.apiUsersMeNearestPlayersGet(
|
|
|
113
244
|
### HTTP response details
|
|
114
245
|
| Status code | Description | Response headers |
|
|
115
246
|
|-------------|-------------|------------------|
|
|
116
|
-
|**200** |
|
|
117
|
-
|**401** | Non autorisé | - |
|
|
118
|
-
|**500** | Erreur serveur interne | - |
|
|
247
|
+
|**200** | Ok | - |
|
|
119
248
|
|
|
120
249
|
[[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
250
|
|
|
122
|
-
# **
|
|
123
|
-
>
|
|
251
|
+
# **changePassword**
|
|
252
|
+
> ChangePasswordResponse changePassword(changePasswordRequestBody)
|
|
124
253
|
|
|
125
254
|
|
|
126
255
|
### Example
|
|
@@ -128,22 +257,68 @@ const { status, data } = await apiInstance.apiUsersMeNearestPlayersGet(
|
|
|
128
257
|
```typescript
|
|
129
258
|
import {
|
|
130
259
|
UsersApi,
|
|
131
|
-
Configuration
|
|
260
|
+
Configuration,
|
|
261
|
+
ChangePasswordRequestBody
|
|
132
262
|
} from '@tennac-booking/sdk';
|
|
133
263
|
|
|
134
264
|
const configuration = new Configuration();
|
|
135
265
|
const apiInstance = new UsersApi(configuration);
|
|
136
266
|
|
|
137
|
-
let
|
|
138
|
-
let longitude: number; //Longitude de la position (default to undefined)
|
|
139
|
-
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
140
|
-
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
267
|
+
let changePasswordRequestBody: ChangePasswordRequestBody; //
|
|
141
268
|
|
|
142
|
-
const { status, data } = await apiInstance.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
269
|
+
const { status, data } = await apiInstance.changePassword(
|
|
270
|
+
changePasswordRequestBody
|
|
271
|
+
);
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
|
|
276
|
+
|Name | Type | Description | Notes|
|
|
277
|
+
|------------- | ------------- | ------------- | -------------|
|
|
278
|
+
| **changePasswordRequestBody** | **ChangePasswordRequestBody**| | |
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
### Return type
|
|
282
|
+
|
|
283
|
+
**ChangePasswordResponse**
|
|
284
|
+
|
|
285
|
+
### Authorization
|
|
286
|
+
|
|
287
|
+
No authorization required
|
|
288
|
+
|
|
289
|
+
### HTTP request headers
|
|
290
|
+
|
|
291
|
+
- **Content-Type**: application/json
|
|
292
|
+
- **Accept**: application/json
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### HTTP response details
|
|
296
|
+
| Status code | Description | Response headers |
|
|
297
|
+
|-------------|-------------|------------------|
|
|
298
|
+
|**200** | Ok | - |
|
|
299
|
+
|
|
300
|
+
[[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)
|
|
301
|
+
|
|
302
|
+
# **confirmPaymentMethodSetup**
|
|
303
|
+
> ConfirmPaymentMethodResponse confirmPaymentMethodSetup(confirmPaymentMethodRequestBody)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### Example
|
|
307
|
+
|
|
308
|
+
```typescript
|
|
309
|
+
import {
|
|
310
|
+
UsersApi,
|
|
311
|
+
Configuration,
|
|
312
|
+
ConfirmPaymentMethodRequestBody
|
|
313
|
+
} from '@tennac-booking/sdk';
|
|
314
|
+
|
|
315
|
+
const configuration = new Configuration();
|
|
316
|
+
const apiInstance = new UsersApi(configuration);
|
|
317
|
+
|
|
318
|
+
let confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody; //
|
|
319
|
+
|
|
320
|
+
const { status, data } = await apiInstance.confirmPaymentMethodSetup(
|
|
321
|
+
confirmPaymentMethodRequestBody
|
|
147
322
|
);
|
|
148
323
|
```
|
|
149
324
|
|
|
@@ -151,19 +326,59 @@ const { status, data } = await apiInstance.apiUsersNearestClubsCoordinatesGet(
|
|
|
151
326
|
|
|
152
327
|
|Name | Type | Description | Notes|
|
|
153
328
|
|------------- | ------------- | ------------- | -------------|
|
|
154
|
-
| **
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
329
|
+
| **confirmPaymentMethodRequestBody** | **ConfirmPaymentMethodRequestBody**| | |
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
### Return type
|
|
333
|
+
|
|
334
|
+
**ConfirmPaymentMethodResponse**
|
|
335
|
+
|
|
336
|
+
### Authorization
|
|
337
|
+
|
|
338
|
+
No authorization required
|
|
339
|
+
|
|
340
|
+
### HTTP request headers
|
|
341
|
+
|
|
342
|
+
- **Content-Type**: application/json
|
|
343
|
+
- **Accept**: application/json
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
### HTTP response details
|
|
347
|
+
| Status code | Description | Response headers |
|
|
348
|
+
|-------------|-------------|------------------|
|
|
349
|
+
|**200** | Ok | - |
|
|
350
|
+
|
|
351
|
+
[[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)
|
|
352
|
+
|
|
353
|
+
# **getAllUsers**
|
|
354
|
+
> Array<BaseUser> getAllUsers()
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
### Example
|
|
358
|
+
|
|
359
|
+
```typescript
|
|
360
|
+
import {
|
|
361
|
+
UsersApi,
|
|
362
|
+
Configuration
|
|
363
|
+
} from '@tennac-booking/sdk';
|
|
364
|
+
|
|
365
|
+
const configuration = new Configuration();
|
|
366
|
+
const apiInstance = new UsersApi(configuration);
|
|
367
|
+
|
|
368
|
+
const { status, data } = await apiInstance.getAllUsers();
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
### Parameters
|
|
372
|
+
This endpoint does not have any parameters.
|
|
158
373
|
|
|
159
374
|
|
|
160
375
|
### Return type
|
|
161
376
|
|
|
162
|
-
**Array<
|
|
377
|
+
**Array<BaseUser>**
|
|
163
378
|
|
|
164
379
|
### Authorization
|
|
165
380
|
|
|
166
|
-
|
|
381
|
+
No authorization required
|
|
167
382
|
|
|
168
383
|
### HTTP request headers
|
|
169
384
|
|
|
@@ -174,14 +389,12 @@ const { status, data } = await apiInstance.apiUsersNearestClubsCoordinatesGet(
|
|
|
174
389
|
### HTTP response details
|
|
175
390
|
| Status code | Description | Response headers |
|
|
176
391
|
|-------------|-------------|------------------|
|
|
177
|
-
|**200** |
|
|
178
|
-
|**400** | Requête invalide | - |
|
|
179
|
-
|**500** | Erreur serveur interne | - |
|
|
392
|
+
|**200** | Ok | - |
|
|
180
393
|
|
|
181
394
|
[[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)
|
|
182
395
|
|
|
183
|
-
# **
|
|
184
|
-
>
|
|
396
|
+
# **getBookingDetail**
|
|
397
|
+
> BookingDetailResponse getBookingDetail()
|
|
185
398
|
|
|
186
399
|
|
|
187
400
|
### Example
|
|
@@ -195,16 +408,10 @@ import {
|
|
|
195
408
|
const configuration = new Configuration();
|
|
196
409
|
const apiInstance = new UsersApi(configuration);
|
|
197
410
|
|
|
198
|
-
let
|
|
199
|
-
let longitude: number; //Longitude de la position (default to undefined)
|
|
200
|
-
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
201
|
-
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
411
|
+
let bookingId: string; // (default to undefined)
|
|
202
412
|
|
|
203
|
-
const { status, data } = await apiInstance.
|
|
204
|
-
|
|
205
|
-
longitude,
|
|
206
|
-
radiusInKm,
|
|
207
|
-
limit
|
|
413
|
+
const { status, data } = await apiInstance.getBookingDetail(
|
|
414
|
+
bookingId
|
|
208
415
|
);
|
|
209
416
|
```
|
|
210
417
|
|
|
@@ -212,19 +419,102 @@ const { status, data } = await apiInstance.apiUsersNearestPlayersCoordinatesGet(
|
|
|
212
419
|
|
|
213
420
|
|Name | Type | Description | Notes|
|
|
214
421
|
|------------- | ------------- | ------------- | -------------|
|
|
215
|
-
| **
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
422
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
### Return type
|
|
426
|
+
|
|
427
|
+
**BookingDetailResponse**
|
|
428
|
+
|
|
429
|
+
### Authorization
|
|
430
|
+
|
|
431
|
+
No authorization required
|
|
432
|
+
|
|
433
|
+
### HTTP request headers
|
|
434
|
+
|
|
435
|
+
- **Content-Type**: Not defined
|
|
436
|
+
- **Accept**: application/json
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
### HTTP response details
|
|
440
|
+
| Status code | Description | Response headers |
|
|
441
|
+
|-------------|-------------|------------------|
|
|
442
|
+
|**200** | Ok | - |
|
|
443
|
+
|
|
444
|
+
[[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)
|
|
445
|
+
|
|
446
|
+
# **getFavoriteClubs**
|
|
447
|
+
> FavoriteClubsResponse getFavoriteClubs()
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
### Example
|
|
451
|
+
|
|
452
|
+
```typescript
|
|
453
|
+
import {
|
|
454
|
+
UsersApi,
|
|
455
|
+
Configuration
|
|
456
|
+
} from '@tennac-booking/sdk';
|
|
457
|
+
|
|
458
|
+
const configuration = new Configuration();
|
|
459
|
+
const apiInstance = new UsersApi(configuration);
|
|
460
|
+
|
|
461
|
+
const { status, data } = await apiInstance.getFavoriteClubs();
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
### Parameters
|
|
465
|
+
This endpoint does not have any parameters.
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
### Return type
|
|
469
|
+
|
|
470
|
+
**FavoriteClubsResponse**
|
|
471
|
+
|
|
472
|
+
### Authorization
|
|
473
|
+
|
|
474
|
+
No authorization required
|
|
475
|
+
|
|
476
|
+
### HTTP request headers
|
|
477
|
+
|
|
478
|
+
- **Content-Type**: Not defined
|
|
479
|
+
- **Accept**: application/json
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
### HTTP response details
|
|
483
|
+
| Status code | Description | Response headers |
|
|
484
|
+
|-------------|-------------|------------------|
|
|
485
|
+
|**200** | Ok | - |
|
|
486
|
+
|
|
487
|
+
[[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)
|
|
488
|
+
|
|
489
|
+
# **getFavoritesPlayers**
|
|
490
|
+
> FavoritePlayersResponse getFavoritesPlayers()
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
### Example
|
|
494
|
+
|
|
495
|
+
```typescript
|
|
496
|
+
import {
|
|
497
|
+
UsersApi,
|
|
498
|
+
Configuration
|
|
499
|
+
} from '@tennac-booking/sdk';
|
|
500
|
+
|
|
501
|
+
const configuration = new Configuration();
|
|
502
|
+
const apiInstance = new UsersApi(configuration);
|
|
503
|
+
|
|
504
|
+
const { status, data } = await apiInstance.getFavoritesPlayers();
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
### Parameters
|
|
508
|
+
This endpoint does not have any parameters.
|
|
219
509
|
|
|
220
510
|
|
|
221
511
|
### Return type
|
|
222
512
|
|
|
223
|
-
**
|
|
513
|
+
**FavoritePlayersResponse**
|
|
224
514
|
|
|
225
515
|
### Authorization
|
|
226
516
|
|
|
227
|
-
|
|
517
|
+
No authorization required
|
|
228
518
|
|
|
229
519
|
### HTTP request headers
|
|
230
520
|
|
|
@@ -235,9 +525,1364 @@ const { status, data } = await apiInstance.apiUsersNearestPlayersCoordinatesGet(
|
|
|
235
525
|
### HTTP response details
|
|
236
526
|
| Status code | Description | Response headers |
|
|
237
527
|
|-------------|-------------|------------------|
|
|
238
|
-
|**200** |
|
|
239
|
-
|
|
240
|
-
|
|
528
|
+
|**200** | Ok | - |
|
|
529
|
+
|
|
530
|
+
[[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)
|
|
531
|
+
|
|
532
|
+
# **getFrequentlyPlayedWith**
|
|
533
|
+
> Array<FrequentPlayer> getFrequentlyPlayedWith()
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
### Example
|
|
537
|
+
|
|
538
|
+
```typescript
|
|
539
|
+
import {
|
|
540
|
+
UsersApi,
|
|
541
|
+
Configuration
|
|
542
|
+
} from '@tennac-booking/sdk';
|
|
543
|
+
|
|
544
|
+
const configuration = new Configuration();
|
|
545
|
+
const apiInstance = new UsersApi(configuration);
|
|
546
|
+
|
|
547
|
+
const { status, data } = await apiInstance.getFrequentlyPlayedWith();
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
### Parameters
|
|
551
|
+
This endpoint does not have any parameters.
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
### Return type
|
|
555
|
+
|
|
556
|
+
**Array<FrequentPlayer>**
|
|
557
|
+
|
|
558
|
+
### Authorization
|
|
559
|
+
|
|
560
|
+
No authorization required
|
|
561
|
+
|
|
562
|
+
### HTTP request headers
|
|
563
|
+
|
|
564
|
+
- **Content-Type**: Not defined
|
|
565
|
+
- **Accept**: application/json
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
### HTTP response details
|
|
569
|
+
| Status code | Description | Response headers |
|
|
570
|
+
|-------------|-------------|------------------|
|
|
571
|
+
|**200** | Ok | - |
|
|
572
|
+
|
|
573
|
+
[[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)
|
|
574
|
+
|
|
575
|
+
# **getFrequentlyVisitedClub**
|
|
576
|
+
> Array<FrequentClub> getFrequentlyVisitedClub()
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
### Example
|
|
580
|
+
|
|
581
|
+
```typescript
|
|
582
|
+
import {
|
|
583
|
+
UsersApi,
|
|
584
|
+
Configuration
|
|
585
|
+
} from '@tennac-booking/sdk';
|
|
586
|
+
|
|
587
|
+
const configuration = new Configuration();
|
|
588
|
+
const apiInstance = new UsersApi(configuration);
|
|
589
|
+
|
|
590
|
+
const { status, data } = await apiInstance.getFrequentlyVisitedClub();
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
### Parameters
|
|
594
|
+
This endpoint does not have any parameters.
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
### Return type
|
|
598
|
+
|
|
599
|
+
**Array<FrequentClub>**
|
|
600
|
+
|
|
601
|
+
### Authorization
|
|
602
|
+
|
|
603
|
+
No authorization required
|
|
604
|
+
|
|
605
|
+
### HTTP request headers
|
|
606
|
+
|
|
607
|
+
- **Content-Type**: Not defined
|
|
608
|
+
- **Accept**: application/json
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
### HTTP response details
|
|
612
|
+
| Status code | Description | Response headers |
|
|
613
|
+
|-------------|-------------|------------------|
|
|
614
|
+
|**200** | Ok | - |
|
|
615
|
+
|
|
616
|
+
[[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)
|
|
617
|
+
|
|
618
|
+
# **getMe**
|
|
619
|
+
> UserProfileResponse getMe()
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
### Example
|
|
623
|
+
|
|
624
|
+
```typescript
|
|
625
|
+
import {
|
|
626
|
+
UsersApi,
|
|
627
|
+
Configuration
|
|
628
|
+
} from '@tennac-booking/sdk';
|
|
629
|
+
|
|
630
|
+
const configuration = new Configuration();
|
|
631
|
+
const apiInstance = new UsersApi(configuration);
|
|
632
|
+
|
|
633
|
+
const { status, data } = await apiInstance.getMe();
|
|
634
|
+
```
|
|
635
|
+
|
|
636
|
+
### Parameters
|
|
637
|
+
This endpoint does not have any parameters.
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
### Return type
|
|
641
|
+
|
|
642
|
+
**UserProfileResponse**
|
|
643
|
+
|
|
644
|
+
### Authorization
|
|
645
|
+
|
|
646
|
+
No authorization required
|
|
647
|
+
|
|
648
|
+
### HTTP request headers
|
|
649
|
+
|
|
650
|
+
- **Content-Type**: Not defined
|
|
651
|
+
- **Accept**: application/json
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
### HTTP response details
|
|
655
|
+
| Status code | Description | Response headers |
|
|
656
|
+
|-------------|-------------|------------------|
|
|
657
|
+
|**200** | Ok | - |
|
|
658
|
+
|
|
659
|
+
[[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)
|
|
660
|
+
|
|
661
|
+
# **getNearestClubs**
|
|
662
|
+
> Array<{ [key: string]: any; }> getNearestClubs()
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
### Example
|
|
666
|
+
|
|
667
|
+
```typescript
|
|
668
|
+
import {
|
|
669
|
+
UsersApi,
|
|
670
|
+
Configuration
|
|
671
|
+
} from '@tennac-booking/sdk';
|
|
672
|
+
|
|
673
|
+
const configuration = new Configuration();
|
|
674
|
+
const apiInstance = new UsersApi(configuration);
|
|
675
|
+
|
|
676
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
677
|
+
let limit: number; // (optional) (default to undefined)
|
|
678
|
+
|
|
679
|
+
const { status, data } = await apiInstance.getNearestClubs(
|
|
680
|
+
radiusInKm,
|
|
681
|
+
limit
|
|
682
|
+
);
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
### Parameters
|
|
686
|
+
|
|
687
|
+
|Name | Type | Description | Notes|
|
|
688
|
+
|------------- | ------------- | ------------- | -------------|
|
|
689
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
690
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
### Return type
|
|
694
|
+
|
|
695
|
+
**Array<{ [key: string]: any; }>**
|
|
696
|
+
|
|
697
|
+
### Authorization
|
|
698
|
+
|
|
699
|
+
No authorization required
|
|
700
|
+
|
|
701
|
+
### HTTP request headers
|
|
702
|
+
|
|
703
|
+
- **Content-Type**: Not defined
|
|
704
|
+
- **Accept**: application/json
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
### HTTP response details
|
|
708
|
+
| Status code | Description | Response headers |
|
|
709
|
+
|-------------|-------------|------------------|
|
|
710
|
+
|**200** | Ok | - |
|
|
711
|
+
|
|
712
|
+
[[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)
|
|
713
|
+
|
|
714
|
+
# **getNearestClubsFromCoordinates**
|
|
715
|
+
> Array<{ [key: string]: any; }> getNearestClubsFromCoordinates()
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
### Example
|
|
719
|
+
|
|
720
|
+
```typescript
|
|
721
|
+
import {
|
|
722
|
+
UsersApi,
|
|
723
|
+
Configuration
|
|
724
|
+
} from '@tennac-booking/sdk';
|
|
725
|
+
|
|
726
|
+
const configuration = new Configuration();
|
|
727
|
+
const apiInstance = new UsersApi(configuration);
|
|
728
|
+
|
|
729
|
+
let latitude: number; // (optional) (default to undefined)
|
|
730
|
+
let longitude: number; // (optional) (default to undefined)
|
|
731
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
732
|
+
let limit: number; // (optional) (default to undefined)
|
|
733
|
+
|
|
734
|
+
const { status, data } = await apiInstance.getNearestClubsFromCoordinates(
|
|
735
|
+
latitude,
|
|
736
|
+
longitude,
|
|
737
|
+
radiusInKm,
|
|
738
|
+
limit
|
|
739
|
+
);
|
|
740
|
+
```
|
|
741
|
+
|
|
742
|
+
### Parameters
|
|
743
|
+
|
|
744
|
+
|Name | Type | Description | Notes|
|
|
745
|
+
|------------- | ------------- | ------------- | -------------|
|
|
746
|
+
| **latitude** | [**number**] | | (optional) defaults to undefined|
|
|
747
|
+
| **longitude** | [**number**] | | (optional) defaults to undefined|
|
|
748
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
749
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
### Return type
|
|
753
|
+
|
|
754
|
+
**Array<{ [key: string]: any; }>**
|
|
755
|
+
|
|
756
|
+
### Authorization
|
|
757
|
+
|
|
758
|
+
No authorization required
|
|
759
|
+
|
|
760
|
+
### HTTP request headers
|
|
761
|
+
|
|
762
|
+
- **Content-Type**: Not defined
|
|
763
|
+
- **Accept**: application/json
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
### HTTP response details
|
|
767
|
+
| Status code | Description | Response headers |
|
|
768
|
+
|-------------|-------------|------------------|
|
|
769
|
+
|**200** | Ok | - |
|
|
770
|
+
|
|
771
|
+
[[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)
|
|
772
|
+
|
|
773
|
+
# **getNearestUsers**
|
|
774
|
+
> Array<{ [key: string]: any; }> getNearestUsers()
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
### Example
|
|
778
|
+
|
|
779
|
+
```typescript
|
|
780
|
+
import {
|
|
781
|
+
UsersApi,
|
|
782
|
+
Configuration
|
|
783
|
+
} from '@tennac-booking/sdk';
|
|
784
|
+
|
|
785
|
+
const configuration = new Configuration();
|
|
786
|
+
const apiInstance = new UsersApi(configuration);
|
|
787
|
+
|
|
788
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
789
|
+
let limit: number; // (optional) (default to undefined)
|
|
790
|
+
|
|
791
|
+
const { status, data } = await apiInstance.getNearestUsers(
|
|
792
|
+
radiusInKm,
|
|
793
|
+
limit
|
|
794
|
+
);
|
|
795
|
+
```
|
|
796
|
+
|
|
797
|
+
### Parameters
|
|
798
|
+
|
|
799
|
+
|Name | Type | Description | Notes|
|
|
800
|
+
|------------- | ------------- | ------------- | -------------|
|
|
801
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
802
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
### Return type
|
|
806
|
+
|
|
807
|
+
**Array<{ [key: string]: any; }>**
|
|
808
|
+
|
|
809
|
+
### Authorization
|
|
810
|
+
|
|
811
|
+
No authorization required
|
|
812
|
+
|
|
813
|
+
### HTTP request headers
|
|
814
|
+
|
|
815
|
+
- **Content-Type**: Not defined
|
|
816
|
+
- **Accept**: application/json
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
### HTTP response details
|
|
820
|
+
| Status code | Description | Response headers |
|
|
821
|
+
|-------------|-------------|------------------|
|
|
822
|
+
|**200** | Ok | - |
|
|
823
|
+
|
|
824
|
+
[[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)
|
|
825
|
+
|
|
826
|
+
# **getNearestUsersFromCoordinates**
|
|
827
|
+
> Array<{ [key: string]: any; }> getNearestUsersFromCoordinates()
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
### Example
|
|
831
|
+
|
|
832
|
+
```typescript
|
|
833
|
+
import {
|
|
834
|
+
UsersApi,
|
|
835
|
+
Configuration
|
|
836
|
+
} from '@tennac-booking/sdk';
|
|
837
|
+
|
|
838
|
+
const configuration = new Configuration();
|
|
839
|
+
const apiInstance = new UsersApi(configuration);
|
|
840
|
+
|
|
841
|
+
let latitude: number; // (optional) (default to undefined)
|
|
842
|
+
let longitude: number; // (optional) (default to undefined)
|
|
843
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
844
|
+
let limit: number; // (optional) (default to undefined)
|
|
845
|
+
|
|
846
|
+
const { status, data } = await apiInstance.getNearestUsersFromCoordinates(
|
|
847
|
+
latitude,
|
|
848
|
+
longitude,
|
|
849
|
+
radiusInKm,
|
|
850
|
+
limit
|
|
851
|
+
);
|
|
852
|
+
```
|
|
853
|
+
|
|
854
|
+
### Parameters
|
|
855
|
+
|
|
856
|
+
|Name | Type | Description | Notes|
|
|
857
|
+
|------------- | ------------- | ------------- | -------------|
|
|
858
|
+
| **latitude** | [**number**] | | (optional) defaults to undefined|
|
|
859
|
+
| **longitude** | [**number**] | | (optional) defaults to undefined|
|
|
860
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
861
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
### Return type
|
|
865
|
+
|
|
866
|
+
**Array<{ [key: string]: any; }>**
|
|
867
|
+
|
|
868
|
+
### Authorization
|
|
869
|
+
|
|
870
|
+
No authorization required
|
|
871
|
+
|
|
872
|
+
### HTTP request headers
|
|
873
|
+
|
|
874
|
+
- **Content-Type**: Not defined
|
|
875
|
+
- **Accept**: application/json
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
### HTTP response details
|
|
879
|
+
| Status code | Description | Response headers |
|
|
880
|
+
|-------------|-------------|------------------|
|
|
881
|
+
|**200** | Ok | - |
|
|
882
|
+
|
|
883
|
+
[[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)
|
|
884
|
+
|
|
885
|
+
# **getUserBookings**
|
|
886
|
+
> Array<BookingSummary> getUserBookings()
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
### Example
|
|
890
|
+
|
|
891
|
+
```typescript
|
|
892
|
+
import {
|
|
893
|
+
UsersApi,
|
|
894
|
+
Configuration
|
|
895
|
+
} from '@tennac-booking/sdk';
|
|
896
|
+
|
|
897
|
+
const configuration = new Configuration();
|
|
898
|
+
const apiInstance = new UsersApi(configuration);
|
|
899
|
+
|
|
900
|
+
let limit: number; // (optional) (default to undefined)
|
|
901
|
+
let skip: number; // (optional) (default to undefined)
|
|
902
|
+
|
|
903
|
+
const { status, data } = await apiInstance.getUserBookings(
|
|
904
|
+
limit,
|
|
905
|
+
skip
|
|
906
|
+
);
|
|
907
|
+
```
|
|
908
|
+
|
|
909
|
+
### Parameters
|
|
910
|
+
|
|
911
|
+
|Name | Type | Description | Notes|
|
|
912
|
+
|------------- | ------------- | ------------- | -------------|
|
|
913
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
914
|
+
| **skip** | [**number**] | | (optional) defaults to undefined|
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
### Return type
|
|
918
|
+
|
|
919
|
+
**Array<BookingSummary>**
|
|
920
|
+
|
|
921
|
+
### Authorization
|
|
922
|
+
|
|
923
|
+
No authorization required
|
|
924
|
+
|
|
925
|
+
### HTTP request headers
|
|
926
|
+
|
|
927
|
+
- **Content-Type**: Not defined
|
|
928
|
+
- **Accept**: application/json
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
### HTTP response details
|
|
932
|
+
| Status code | Description | Response headers |
|
|
933
|
+
|-------------|-------------|------------------|
|
|
934
|
+
|**200** | Ok | - |
|
|
935
|
+
|
|
936
|
+
[[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)
|
|
937
|
+
|
|
938
|
+
# **getUserProfileById**
|
|
939
|
+
> BaseUser getUserProfileById()
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
### Example
|
|
943
|
+
|
|
944
|
+
```typescript
|
|
945
|
+
import {
|
|
946
|
+
UsersApi,
|
|
947
|
+
Configuration
|
|
948
|
+
} from '@tennac-booking/sdk';
|
|
949
|
+
|
|
950
|
+
const configuration = new Configuration();
|
|
951
|
+
const apiInstance = new UsersApi(configuration);
|
|
952
|
+
|
|
953
|
+
let id: string; // (default to undefined)
|
|
954
|
+
|
|
955
|
+
const { status, data } = await apiInstance.getUserProfileById(
|
|
956
|
+
id
|
|
957
|
+
);
|
|
958
|
+
```
|
|
959
|
+
|
|
960
|
+
### Parameters
|
|
961
|
+
|
|
962
|
+
|Name | Type | Description | Notes|
|
|
963
|
+
|------------- | ------------- | ------------- | -------------|
|
|
964
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
### Return type
|
|
968
|
+
|
|
969
|
+
**BaseUser**
|
|
970
|
+
|
|
971
|
+
### Authorization
|
|
972
|
+
|
|
973
|
+
No authorization required
|
|
974
|
+
|
|
975
|
+
### HTTP request headers
|
|
976
|
+
|
|
977
|
+
- **Content-Type**: Not defined
|
|
978
|
+
- **Accept**: application/json
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
### HTTP response details
|
|
982
|
+
| Status code | Description | Response headers |
|
|
983
|
+
|-------------|-------------|------------------|
|
|
984
|
+
|**200** | Ok | - |
|
|
985
|
+
|
|
986
|
+
[[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)
|
|
987
|
+
|
|
988
|
+
# **getUserProfileStaff**
|
|
989
|
+
> StaffUserProfileResponse getUserProfileStaff()
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
### Example
|
|
993
|
+
|
|
994
|
+
```typescript
|
|
995
|
+
import {
|
|
996
|
+
UsersApi,
|
|
997
|
+
Configuration
|
|
998
|
+
} from '@tennac-booking/sdk';
|
|
999
|
+
|
|
1000
|
+
const configuration = new Configuration();
|
|
1001
|
+
const apiInstance = new UsersApi(configuration);
|
|
1002
|
+
|
|
1003
|
+
let id: string; // (default to undefined)
|
|
1004
|
+
|
|
1005
|
+
const { status, data } = await apiInstance.getUserProfileStaff(
|
|
1006
|
+
id
|
|
1007
|
+
);
|
|
1008
|
+
```
|
|
1009
|
+
|
|
1010
|
+
### Parameters
|
|
1011
|
+
|
|
1012
|
+
|Name | Type | Description | Notes|
|
|
1013
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1014
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
### Return type
|
|
1018
|
+
|
|
1019
|
+
**StaffUserProfileResponse**
|
|
1020
|
+
|
|
1021
|
+
### Authorization
|
|
1022
|
+
|
|
1023
|
+
No authorization required
|
|
1024
|
+
|
|
1025
|
+
### HTTP request headers
|
|
1026
|
+
|
|
1027
|
+
- **Content-Type**: Not defined
|
|
1028
|
+
- **Accept**: application/json
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
### HTTP response details
|
|
1032
|
+
| Status code | Description | Response headers |
|
|
1033
|
+
|-------------|-------------|------------------|
|
|
1034
|
+
|**200** | Ok | - |
|
|
1035
|
+
|
|
1036
|
+
[[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)
|
|
1037
|
+
|
|
1038
|
+
# **getUserRolesInClubs**
|
|
1039
|
+
> UserRolesResponse getUserRolesInClubs()
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
### Example
|
|
1043
|
+
|
|
1044
|
+
```typescript
|
|
1045
|
+
import {
|
|
1046
|
+
UsersApi,
|
|
1047
|
+
Configuration
|
|
1048
|
+
} from '@tennac-booking/sdk';
|
|
1049
|
+
|
|
1050
|
+
const configuration = new Configuration();
|
|
1051
|
+
const apiInstance = new UsersApi(configuration);
|
|
1052
|
+
|
|
1053
|
+
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
1054
|
+
```
|
|
1055
|
+
|
|
1056
|
+
### Parameters
|
|
1057
|
+
This endpoint does not have any parameters.
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
### Return type
|
|
1061
|
+
|
|
1062
|
+
**UserRolesResponse**
|
|
1063
|
+
|
|
1064
|
+
### Authorization
|
|
1065
|
+
|
|
1066
|
+
No authorization required
|
|
1067
|
+
|
|
1068
|
+
### HTTP request headers
|
|
1069
|
+
|
|
1070
|
+
- **Content-Type**: Not defined
|
|
1071
|
+
- **Accept**: application/json
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
### HTTP response details
|
|
1075
|
+
| Status code | Description | Response headers |
|
|
1076
|
+
|-------------|-------------|------------------|
|
|
1077
|
+
|**200** | Ok | - |
|
|
1078
|
+
|
|
1079
|
+
[[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)
|
|
1080
|
+
|
|
1081
|
+
# **getUserSubscriptions**
|
|
1082
|
+
> UserSubscriptionsResponse getUserSubscriptions()
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
### Example
|
|
1086
|
+
|
|
1087
|
+
```typescript
|
|
1088
|
+
import {
|
|
1089
|
+
UsersApi,
|
|
1090
|
+
Configuration
|
|
1091
|
+
} from '@tennac-booking/sdk';
|
|
1092
|
+
|
|
1093
|
+
const configuration = new Configuration();
|
|
1094
|
+
const apiInstance = new UsersApi(configuration);
|
|
1095
|
+
|
|
1096
|
+
const { status, data } = await apiInstance.getUserSubscriptions();
|
|
1097
|
+
```
|
|
1098
|
+
|
|
1099
|
+
### Parameters
|
|
1100
|
+
This endpoint does not have any parameters.
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
### Return type
|
|
1104
|
+
|
|
1105
|
+
**UserSubscriptionsResponse**
|
|
1106
|
+
|
|
1107
|
+
### Authorization
|
|
1108
|
+
|
|
1109
|
+
No authorization required
|
|
1110
|
+
|
|
1111
|
+
### HTTP request headers
|
|
1112
|
+
|
|
1113
|
+
- **Content-Type**: Not defined
|
|
1114
|
+
- **Accept**: application/json
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
### HTTP response details
|
|
1118
|
+
| Status code | Description | Response headers |
|
|
1119
|
+
|-------------|-------------|------------------|
|
|
1120
|
+
|**200** | Ok | - |
|
|
1121
|
+
|
|
1122
|
+
[[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)
|
|
1123
|
+
|
|
1124
|
+
# **initiateSubscriptionSession**
|
|
1125
|
+
> SubscriptionSessionResponse initiateSubscriptionSession(subscriptionSessionRequestBody)
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
### Example
|
|
1129
|
+
|
|
1130
|
+
```typescript
|
|
1131
|
+
import {
|
|
1132
|
+
UsersApi,
|
|
1133
|
+
Configuration,
|
|
1134
|
+
SubscriptionSessionRequestBody
|
|
1135
|
+
} from '@tennac-booking/sdk';
|
|
1136
|
+
|
|
1137
|
+
const configuration = new Configuration();
|
|
1138
|
+
const apiInstance = new UsersApi(configuration);
|
|
1139
|
+
|
|
1140
|
+
let subscriptionSessionRequestBody: SubscriptionSessionRequestBody; //
|
|
1141
|
+
|
|
1142
|
+
const { status, data } = await apiInstance.initiateSubscriptionSession(
|
|
1143
|
+
subscriptionSessionRequestBody
|
|
1144
|
+
);
|
|
1145
|
+
```
|
|
1146
|
+
|
|
1147
|
+
### Parameters
|
|
1148
|
+
|
|
1149
|
+
|Name | Type | Description | Notes|
|
|
1150
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1151
|
+
| **subscriptionSessionRequestBody** | **SubscriptionSessionRequestBody**| | |
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
### Return type
|
|
1155
|
+
|
|
1156
|
+
**SubscriptionSessionResponse**
|
|
1157
|
+
|
|
1158
|
+
### Authorization
|
|
1159
|
+
|
|
1160
|
+
No authorization required
|
|
1161
|
+
|
|
1162
|
+
### HTTP request headers
|
|
1163
|
+
|
|
1164
|
+
- **Content-Type**: application/json
|
|
1165
|
+
- **Accept**: application/json
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
### HTTP response details
|
|
1169
|
+
| Status code | Description | Response headers |
|
|
1170
|
+
|-------------|-------------|------------------|
|
|
1171
|
+
|**200** | Ok | - |
|
|
1172
|
+
|
|
1173
|
+
[[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)
|
|
1174
|
+
|
|
1175
|
+
# **login**
|
|
1176
|
+
> LoginResponse login(loginRequestBody)
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
### Example
|
|
1180
|
+
|
|
1181
|
+
```typescript
|
|
1182
|
+
import {
|
|
1183
|
+
UsersApi,
|
|
1184
|
+
Configuration,
|
|
1185
|
+
LoginRequestBody
|
|
1186
|
+
} from '@tennac-booking/sdk';
|
|
1187
|
+
|
|
1188
|
+
const configuration = new Configuration();
|
|
1189
|
+
const apiInstance = new UsersApi(configuration);
|
|
1190
|
+
|
|
1191
|
+
let loginRequestBody: LoginRequestBody; //
|
|
1192
|
+
|
|
1193
|
+
const { status, data } = await apiInstance.login(
|
|
1194
|
+
loginRequestBody
|
|
1195
|
+
);
|
|
1196
|
+
```
|
|
1197
|
+
|
|
1198
|
+
### Parameters
|
|
1199
|
+
|
|
1200
|
+
|Name | Type | Description | Notes|
|
|
1201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1202
|
+
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
### Return type
|
|
1206
|
+
|
|
1207
|
+
**LoginResponse**
|
|
1208
|
+
|
|
1209
|
+
### Authorization
|
|
1210
|
+
|
|
1211
|
+
No authorization required
|
|
1212
|
+
|
|
1213
|
+
### HTTP request headers
|
|
1214
|
+
|
|
1215
|
+
- **Content-Type**: application/json
|
|
1216
|
+
- **Accept**: application/json
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
### HTTP response details
|
|
1220
|
+
| Status code | Description | Response headers |
|
|
1221
|
+
|-------------|-------------|------------------|
|
|
1222
|
+
|**200** | Ok | - |
|
|
1223
|
+
|
|
1224
|
+
[[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)
|
|
1225
|
+
|
|
1226
|
+
# **refreshToken**
|
|
1227
|
+
> RefreshTokenResponse refreshToken(refreshTokenRequestBody)
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
### Example
|
|
1231
|
+
|
|
1232
|
+
```typescript
|
|
1233
|
+
import {
|
|
1234
|
+
UsersApi,
|
|
1235
|
+
Configuration,
|
|
1236
|
+
RefreshTokenRequestBody
|
|
1237
|
+
} from '@tennac-booking/sdk';
|
|
1238
|
+
|
|
1239
|
+
const configuration = new Configuration();
|
|
1240
|
+
const apiInstance = new UsersApi(configuration);
|
|
1241
|
+
|
|
1242
|
+
let refreshTokenRequestBody: RefreshTokenRequestBody; //
|
|
1243
|
+
|
|
1244
|
+
const { status, data } = await apiInstance.refreshToken(
|
|
1245
|
+
refreshTokenRequestBody
|
|
1246
|
+
);
|
|
1247
|
+
```
|
|
1248
|
+
|
|
1249
|
+
### Parameters
|
|
1250
|
+
|
|
1251
|
+
|Name | Type | Description | Notes|
|
|
1252
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1253
|
+
| **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
### Return type
|
|
1257
|
+
|
|
1258
|
+
**RefreshTokenResponse**
|
|
1259
|
+
|
|
1260
|
+
### Authorization
|
|
1261
|
+
|
|
1262
|
+
No authorization required
|
|
1263
|
+
|
|
1264
|
+
### HTTP request headers
|
|
1265
|
+
|
|
1266
|
+
- **Content-Type**: application/json
|
|
1267
|
+
- **Accept**: application/json
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
### HTTP response details
|
|
1271
|
+
| Status code | Description | Response headers |
|
|
1272
|
+
|-------------|-------------|------------------|
|
|
1273
|
+
|**200** | Ok | - |
|
|
1274
|
+
|
|
1275
|
+
[[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)
|
|
1276
|
+
|
|
1277
|
+
# **register**
|
|
1278
|
+
> BaseUser register(registerRequestBody)
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
### Example
|
|
1282
|
+
|
|
1283
|
+
```typescript
|
|
1284
|
+
import {
|
|
1285
|
+
UsersApi,
|
|
1286
|
+
Configuration,
|
|
1287
|
+
RegisterRequestBody
|
|
1288
|
+
} from '@tennac-booking/sdk';
|
|
1289
|
+
|
|
1290
|
+
const configuration = new Configuration();
|
|
1291
|
+
const apiInstance = new UsersApi(configuration);
|
|
1292
|
+
|
|
1293
|
+
let registerRequestBody: RegisterRequestBody; //
|
|
1294
|
+
|
|
1295
|
+
const { status, data } = await apiInstance.register(
|
|
1296
|
+
registerRequestBody
|
|
1297
|
+
);
|
|
1298
|
+
```
|
|
1299
|
+
|
|
1300
|
+
### Parameters
|
|
1301
|
+
|
|
1302
|
+
|Name | Type | Description | Notes|
|
|
1303
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1304
|
+
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
### Return type
|
|
1308
|
+
|
|
1309
|
+
**BaseUser**
|
|
1310
|
+
|
|
1311
|
+
### Authorization
|
|
1312
|
+
|
|
1313
|
+
No authorization required
|
|
1314
|
+
|
|
1315
|
+
### HTTP request headers
|
|
1316
|
+
|
|
1317
|
+
- **Content-Type**: application/json
|
|
1318
|
+
- **Accept**: application/json
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
### HTTP response details
|
|
1322
|
+
| Status code | Description | Response headers |
|
|
1323
|
+
|-------------|-------------|------------------|
|
|
1324
|
+
|**201** | Created | - |
|
|
1325
|
+
|
|
1326
|
+
[[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)
|
|
1327
|
+
|
|
1328
|
+
# **removeFavoriteClub**
|
|
1329
|
+
> FavoriteClubMutationResponse removeFavoriteClub()
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
### Example
|
|
1333
|
+
|
|
1334
|
+
```typescript
|
|
1335
|
+
import {
|
|
1336
|
+
UsersApi,
|
|
1337
|
+
Configuration
|
|
1338
|
+
} from '@tennac-booking/sdk';
|
|
1339
|
+
|
|
1340
|
+
const configuration = new Configuration();
|
|
1341
|
+
const apiInstance = new UsersApi(configuration);
|
|
1342
|
+
|
|
1343
|
+
let clubId: string; // (default to undefined)
|
|
1344
|
+
|
|
1345
|
+
const { status, data } = await apiInstance.removeFavoriteClub(
|
|
1346
|
+
clubId
|
|
1347
|
+
);
|
|
1348
|
+
```
|
|
1349
|
+
|
|
1350
|
+
### Parameters
|
|
1351
|
+
|
|
1352
|
+
|Name | Type | Description | Notes|
|
|
1353
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1354
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
### Return type
|
|
1358
|
+
|
|
1359
|
+
**FavoriteClubMutationResponse**
|
|
1360
|
+
|
|
1361
|
+
### Authorization
|
|
1362
|
+
|
|
1363
|
+
No authorization required
|
|
1364
|
+
|
|
1365
|
+
### HTTP request headers
|
|
1366
|
+
|
|
1367
|
+
- **Content-Type**: Not defined
|
|
1368
|
+
- **Accept**: application/json
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
### HTTP response details
|
|
1372
|
+
| Status code | Description | Response headers |
|
|
1373
|
+
|-------------|-------------|------------------|
|
|
1374
|
+
|**200** | Ok | - |
|
|
1375
|
+
|
|
1376
|
+
[[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)
|
|
1377
|
+
|
|
1378
|
+
# **removeFavoritePlayer**
|
|
1379
|
+
> FavoritePlayerMutationResponse removeFavoritePlayer()
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
### Example
|
|
1383
|
+
|
|
1384
|
+
```typescript
|
|
1385
|
+
import {
|
|
1386
|
+
UsersApi,
|
|
1387
|
+
Configuration
|
|
1388
|
+
} from '@tennac-booking/sdk';
|
|
1389
|
+
|
|
1390
|
+
const configuration = new Configuration();
|
|
1391
|
+
const apiInstance = new UsersApi(configuration);
|
|
1392
|
+
|
|
1393
|
+
let favoritePlayerId: string; // (default to undefined)
|
|
1394
|
+
|
|
1395
|
+
const { status, data } = await apiInstance.removeFavoritePlayer(
|
|
1396
|
+
favoritePlayerId
|
|
1397
|
+
);
|
|
1398
|
+
```
|
|
1399
|
+
|
|
1400
|
+
### Parameters
|
|
1401
|
+
|
|
1402
|
+
|Name | Type | Description | Notes|
|
|
1403
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1404
|
+
| **favoritePlayerId** | [**string**] | | defaults to undefined|
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
### Return type
|
|
1408
|
+
|
|
1409
|
+
**FavoritePlayerMutationResponse**
|
|
1410
|
+
|
|
1411
|
+
### Authorization
|
|
1412
|
+
|
|
1413
|
+
No authorization required
|
|
1414
|
+
|
|
1415
|
+
### HTTP request headers
|
|
1416
|
+
|
|
1417
|
+
- **Content-Type**: Not defined
|
|
1418
|
+
- **Accept**: application/json
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
### HTTP response details
|
|
1422
|
+
| Status code | Description | Response headers |
|
|
1423
|
+
|-------------|-------------|------------------|
|
|
1424
|
+
|**200** | Ok | - |
|
|
1425
|
+
|
|
1426
|
+
[[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)
|
|
1427
|
+
|
|
1428
|
+
# **requestPasswordReset**
|
|
1429
|
+
> requestPasswordReset(passwordResetRequestBody)
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
### Example
|
|
1433
|
+
|
|
1434
|
+
```typescript
|
|
1435
|
+
import {
|
|
1436
|
+
UsersApi,
|
|
1437
|
+
Configuration,
|
|
1438
|
+
PasswordResetRequestBody
|
|
1439
|
+
} from '@tennac-booking/sdk';
|
|
1440
|
+
|
|
1441
|
+
const configuration = new Configuration();
|
|
1442
|
+
const apiInstance = new UsersApi(configuration);
|
|
1443
|
+
|
|
1444
|
+
let passwordResetRequestBody: PasswordResetRequestBody; //
|
|
1445
|
+
|
|
1446
|
+
const { status, data } = await apiInstance.requestPasswordReset(
|
|
1447
|
+
passwordResetRequestBody
|
|
1448
|
+
);
|
|
1449
|
+
```
|
|
1450
|
+
|
|
1451
|
+
### Parameters
|
|
1452
|
+
|
|
1453
|
+
|Name | Type | Description | Notes|
|
|
1454
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1455
|
+
| **passwordResetRequestBody** | **PasswordResetRequestBody**| | |
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
### Return type
|
|
1459
|
+
|
|
1460
|
+
void (empty response body)
|
|
1461
|
+
|
|
1462
|
+
### Authorization
|
|
1463
|
+
|
|
1464
|
+
No authorization required
|
|
1465
|
+
|
|
1466
|
+
### HTTP request headers
|
|
1467
|
+
|
|
1468
|
+
- **Content-Type**: application/json
|
|
1469
|
+
- **Accept**: application/json
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
### HTTP response details
|
|
1473
|
+
| Status code | Description | Response headers |
|
|
1474
|
+
|-------------|-------------|------------------|
|
|
1475
|
+
|**501** | Not Implemented | - |
|
|
1476
|
+
|
|
1477
|
+
[[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)
|
|
1478
|
+
|
|
1479
|
+
# **resumeSubscription**
|
|
1480
|
+
> SubscriptionMutationResponse resumeSubscription()
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
### Example
|
|
1484
|
+
|
|
1485
|
+
```typescript
|
|
1486
|
+
import {
|
|
1487
|
+
UsersApi,
|
|
1488
|
+
Configuration
|
|
1489
|
+
} from '@tennac-booking/sdk';
|
|
1490
|
+
|
|
1491
|
+
const configuration = new Configuration();
|
|
1492
|
+
const apiInstance = new UsersApi(configuration);
|
|
1493
|
+
|
|
1494
|
+
let clubId: string; // (default to undefined)
|
|
1495
|
+
let subscriptionId: string; // (default to undefined)
|
|
1496
|
+
|
|
1497
|
+
const { status, data } = await apiInstance.resumeSubscription(
|
|
1498
|
+
clubId,
|
|
1499
|
+
subscriptionId
|
|
1500
|
+
);
|
|
1501
|
+
```
|
|
1502
|
+
|
|
1503
|
+
### Parameters
|
|
1504
|
+
|
|
1505
|
+
|Name | Type | Description | Notes|
|
|
1506
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1507
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
1508
|
+
| **subscriptionId** | [**string**] | | defaults to undefined|
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
### Return type
|
|
1512
|
+
|
|
1513
|
+
**SubscriptionMutationResponse**
|
|
1514
|
+
|
|
1515
|
+
### Authorization
|
|
1516
|
+
|
|
1517
|
+
No authorization required
|
|
1518
|
+
|
|
1519
|
+
### HTTP request headers
|
|
1520
|
+
|
|
1521
|
+
- **Content-Type**: Not defined
|
|
1522
|
+
- **Accept**: application/json
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
### HTTP response details
|
|
1526
|
+
| Status code | Description | Response headers |
|
|
1527
|
+
|-------------|-------------|------------------|
|
|
1528
|
+
|**200** | Ok | - |
|
|
1529
|
+
|
|
1530
|
+
[[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)
|
|
1531
|
+
|
|
1532
|
+
# **setupPaymentMethod**
|
|
1533
|
+
> SetupPaymentMethodResponse setupPaymentMethod(setupPaymentMethodRequestBody)
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
### Example
|
|
1537
|
+
|
|
1538
|
+
```typescript
|
|
1539
|
+
import {
|
|
1540
|
+
UsersApi,
|
|
1541
|
+
Configuration,
|
|
1542
|
+
SetupPaymentMethodRequestBody
|
|
1543
|
+
} from '@tennac-booking/sdk';
|
|
1544
|
+
|
|
1545
|
+
const configuration = new Configuration();
|
|
1546
|
+
const apiInstance = new UsersApi(configuration);
|
|
1547
|
+
|
|
1548
|
+
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
1549
|
+
|
|
1550
|
+
const { status, data } = await apiInstance.setupPaymentMethod(
|
|
1551
|
+
setupPaymentMethodRequestBody
|
|
1552
|
+
);
|
|
1553
|
+
```
|
|
1554
|
+
|
|
1555
|
+
### Parameters
|
|
1556
|
+
|
|
1557
|
+
|Name | Type | Description | Notes|
|
|
1558
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1559
|
+
| **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
### Return type
|
|
1563
|
+
|
|
1564
|
+
**SetupPaymentMethodResponse**
|
|
1565
|
+
|
|
1566
|
+
### Authorization
|
|
1567
|
+
|
|
1568
|
+
No authorization required
|
|
1569
|
+
|
|
1570
|
+
### HTTP request headers
|
|
1571
|
+
|
|
1572
|
+
- **Content-Type**: application/json
|
|
1573
|
+
- **Accept**: application/json
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
### HTTP response details
|
|
1577
|
+
| Status code | Description | Response headers |
|
|
1578
|
+
|-------------|-------------|------------------|
|
|
1579
|
+
|**200** | Ok | - |
|
|
1580
|
+
|
|
1581
|
+
[[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)
|
|
1582
|
+
|
|
1583
|
+
# **signInOrSignUpWithGoogle**
|
|
1584
|
+
> GoogleAuthResponse signInOrSignUpWithGoogle(googleAuthRequestBody)
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
### Example
|
|
1588
|
+
|
|
1589
|
+
```typescript
|
|
1590
|
+
import {
|
|
1591
|
+
UsersApi,
|
|
1592
|
+
Configuration,
|
|
1593
|
+
GoogleAuthRequestBody
|
|
1594
|
+
} from '@tennac-booking/sdk';
|
|
1595
|
+
|
|
1596
|
+
const configuration = new Configuration();
|
|
1597
|
+
const apiInstance = new UsersApi(configuration);
|
|
1598
|
+
|
|
1599
|
+
let googleAuthRequestBody: GoogleAuthRequestBody; //
|
|
1600
|
+
|
|
1601
|
+
const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
1602
|
+
googleAuthRequestBody
|
|
1603
|
+
);
|
|
1604
|
+
```
|
|
1605
|
+
|
|
1606
|
+
### Parameters
|
|
1607
|
+
|
|
1608
|
+
|Name | Type | Description | Notes|
|
|
1609
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1610
|
+
| **googleAuthRequestBody** | **GoogleAuthRequestBody**| | |
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
### Return type
|
|
1614
|
+
|
|
1615
|
+
**GoogleAuthResponse**
|
|
1616
|
+
|
|
1617
|
+
### Authorization
|
|
1618
|
+
|
|
1619
|
+
No authorization required
|
|
1620
|
+
|
|
1621
|
+
### HTTP request headers
|
|
1622
|
+
|
|
1623
|
+
- **Content-Type**: application/json
|
|
1624
|
+
- **Accept**: application/json
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
### HTTP response details
|
|
1628
|
+
| Status code | Description | Response headers |
|
|
1629
|
+
|-------------|-------------|------------------|
|
|
1630
|
+
|**200** | Ok | - |
|
|
1631
|
+
|
|
1632
|
+
[[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)
|
|
1633
|
+
|
|
1634
|
+
# **subscribeToClub**
|
|
1635
|
+
> { [key: string]: any; } subscribeToClub(subscribeToClubRequestBody)
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
### Example
|
|
1639
|
+
|
|
1640
|
+
```typescript
|
|
1641
|
+
import {
|
|
1642
|
+
UsersApi,
|
|
1643
|
+
Configuration,
|
|
1644
|
+
SubscribeToClubRequestBody
|
|
1645
|
+
} from '@tennac-booking/sdk';
|
|
1646
|
+
|
|
1647
|
+
const configuration = new Configuration();
|
|
1648
|
+
const apiInstance = new UsersApi(configuration);
|
|
1649
|
+
|
|
1650
|
+
let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
|
|
1651
|
+
|
|
1652
|
+
const { status, data } = await apiInstance.subscribeToClub(
|
|
1653
|
+
subscribeToClubRequestBody
|
|
1654
|
+
);
|
|
1655
|
+
```
|
|
1656
|
+
|
|
1657
|
+
### Parameters
|
|
1658
|
+
|
|
1659
|
+
|Name | Type | Description | Notes|
|
|
1660
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1661
|
+
| **subscribeToClubRequestBody** | **SubscribeToClubRequestBody**| | |
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
### Return type
|
|
1665
|
+
|
|
1666
|
+
**{ [key: string]: any; }**
|
|
1667
|
+
|
|
1668
|
+
### Authorization
|
|
1669
|
+
|
|
1670
|
+
No authorization required
|
|
1671
|
+
|
|
1672
|
+
### HTTP request headers
|
|
1673
|
+
|
|
1674
|
+
- **Content-Type**: application/json
|
|
1675
|
+
- **Accept**: application/json
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
### HTTP response details
|
|
1679
|
+
| Status code | Description | Response headers |
|
|
1680
|
+
|-------------|-------------|------------------|
|
|
1681
|
+
|**201** | Created | - |
|
|
1682
|
+
|
|
1683
|
+
[[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)
|
|
1684
|
+
|
|
1685
|
+
# **updateCustomer**
|
|
1686
|
+
> UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
### Example
|
|
1690
|
+
|
|
1691
|
+
```typescript
|
|
1692
|
+
import {
|
|
1693
|
+
UsersApi,
|
|
1694
|
+
Configuration,
|
|
1695
|
+
UpdateCustomerRequestBody
|
|
1696
|
+
} from '@tennac-booking/sdk';
|
|
1697
|
+
|
|
1698
|
+
const configuration = new Configuration();
|
|
1699
|
+
const apiInstance = new UsersApi(configuration);
|
|
1700
|
+
|
|
1701
|
+
let updateCustomerRequestBody: UpdateCustomerRequestBody; //
|
|
1702
|
+
|
|
1703
|
+
const { status, data } = await apiInstance.updateCustomer(
|
|
1704
|
+
updateCustomerRequestBody
|
|
1705
|
+
);
|
|
1706
|
+
```
|
|
1707
|
+
|
|
1708
|
+
### Parameters
|
|
1709
|
+
|
|
1710
|
+
|Name | Type | Description | Notes|
|
|
1711
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1712
|
+
| **updateCustomerRequestBody** | **UpdateCustomerRequestBody**| | |
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
### Return type
|
|
1716
|
+
|
|
1717
|
+
**UpdateCustomerResponse**
|
|
1718
|
+
|
|
1719
|
+
### Authorization
|
|
1720
|
+
|
|
1721
|
+
No authorization required
|
|
1722
|
+
|
|
1723
|
+
### HTTP request headers
|
|
1724
|
+
|
|
1725
|
+
- **Content-Type**: application/json
|
|
1726
|
+
- **Accept**: application/json
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
### HTTP response details
|
|
1730
|
+
| Status code | Description | Response headers |
|
|
1731
|
+
|-------------|-------------|------------------|
|
|
1732
|
+
|**200** | Ok | - |
|
|
1733
|
+
|
|
1734
|
+
[[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)
|
|
1735
|
+
|
|
1736
|
+
# **updateLevelBySports**
|
|
1737
|
+
> BaseUser updateLevelBySports(updateLevelBySportsRequestBody)
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
### Example
|
|
1741
|
+
|
|
1742
|
+
```typescript
|
|
1743
|
+
import {
|
|
1744
|
+
UsersApi,
|
|
1745
|
+
Configuration,
|
|
1746
|
+
UpdateLevelBySportsRequestBody
|
|
1747
|
+
} from '@tennac-booking/sdk';
|
|
1748
|
+
|
|
1749
|
+
const configuration = new Configuration();
|
|
1750
|
+
const apiInstance = new UsersApi(configuration);
|
|
1751
|
+
|
|
1752
|
+
let updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody; //
|
|
1753
|
+
|
|
1754
|
+
const { status, data } = await apiInstance.updateLevelBySports(
|
|
1755
|
+
updateLevelBySportsRequestBody
|
|
1756
|
+
);
|
|
1757
|
+
```
|
|
1758
|
+
|
|
1759
|
+
### Parameters
|
|
1760
|
+
|
|
1761
|
+
|Name | Type | Description | Notes|
|
|
1762
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1763
|
+
| **updateLevelBySportsRequestBody** | **UpdateLevelBySportsRequestBody**| | |
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
### Return type
|
|
1767
|
+
|
|
1768
|
+
**BaseUser**
|
|
1769
|
+
|
|
1770
|
+
### Authorization
|
|
1771
|
+
|
|
1772
|
+
No authorization required
|
|
1773
|
+
|
|
1774
|
+
### HTTP request headers
|
|
1775
|
+
|
|
1776
|
+
- **Content-Type**: application/json
|
|
1777
|
+
- **Accept**: application/json
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
### HTTP response details
|
|
1781
|
+
| Status code | Description | Response headers |
|
|
1782
|
+
|-------------|-------------|------------------|
|
|
1783
|
+
|**200** | Ok | - |
|
|
1784
|
+
|
|
1785
|
+
[[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)
|
|
1786
|
+
|
|
1787
|
+
# **updateMe**
|
|
1788
|
+
> UserProfileResponse updateMe(updateUserRequestBody)
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
### Example
|
|
1792
|
+
|
|
1793
|
+
```typescript
|
|
1794
|
+
import {
|
|
1795
|
+
UsersApi,
|
|
1796
|
+
Configuration,
|
|
1797
|
+
UpdateUserRequestBody
|
|
1798
|
+
} from '@tennac-booking/sdk';
|
|
1799
|
+
|
|
1800
|
+
const configuration = new Configuration();
|
|
1801
|
+
const apiInstance = new UsersApi(configuration);
|
|
1802
|
+
|
|
1803
|
+
let updateUserRequestBody: UpdateUserRequestBody; //
|
|
1804
|
+
|
|
1805
|
+
const { status, data } = await apiInstance.updateMe(
|
|
1806
|
+
updateUserRequestBody
|
|
1807
|
+
);
|
|
1808
|
+
```
|
|
1809
|
+
|
|
1810
|
+
### Parameters
|
|
1811
|
+
|
|
1812
|
+
|Name | Type | Description | Notes|
|
|
1813
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1814
|
+
| **updateUserRequestBody** | **UpdateUserRequestBody**| | |
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
### Return type
|
|
1818
|
+
|
|
1819
|
+
**UserProfileResponse**
|
|
1820
|
+
|
|
1821
|
+
### Authorization
|
|
1822
|
+
|
|
1823
|
+
No authorization required
|
|
1824
|
+
|
|
1825
|
+
### HTTP request headers
|
|
1826
|
+
|
|
1827
|
+
- **Content-Type**: application/json
|
|
1828
|
+
- **Accept**: application/json
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
### HTTP response details
|
|
1832
|
+
| Status code | Description | Response headers |
|
|
1833
|
+
|-------------|-------------|------------------|
|
|
1834
|
+
|**200** | Ok | - |
|
|
1835
|
+
|
|
1836
|
+
[[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)
|
|
1837
|
+
|
|
1838
|
+
# **updateProfilePicture**
|
|
1839
|
+
> ProfilePictureResponse updateProfilePicture(profilePictureUpdateRequestBody)
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
### Example
|
|
1843
|
+
|
|
1844
|
+
```typescript
|
|
1845
|
+
import {
|
|
1846
|
+
UsersApi,
|
|
1847
|
+
Configuration,
|
|
1848
|
+
ProfilePictureUpdateRequestBody
|
|
1849
|
+
} from '@tennac-booking/sdk';
|
|
1850
|
+
|
|
1851
|
+
const configuration = new Configuration();
|
|
1852
|
+
const apiInstance = new UsersApi(configuration);
|
|
1853
|
+
|
|
1854
|
+
let profilePictureUpdateRequestBody: ProfilePictureUpdateRequestBody; //
|
|
1855
|
+
|
|
1856
|
+
const { status, data } = await apiInstance.updateProfilePicture(
|
|
1857
|
+
profilePictureUpdateRequestBody
|
|
1858
|
+
);
|
|
1859
|
+
```
|
|
1860
|
+
|
|
1861
|
+
### Parameters
|
|
1862
|
+
|
|
1863
|
+
|Name | Type | Description | Notes|
|
|
1864
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1865
|
+
| **profilePictureUpdateRequestBody** | **ProfilePictureUpdateRequestBody**| | |
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
### Return type
|
|
1869
|
+
|
|
1870
|
+
**ProfilePictureResponse**
|
|
1871
|
+
|
|
1872
|
+
### Authorization
|
|
1873
|
+
|
|
1874
|
+
No authorization required
|
|
1875
|
+
|
|
1876
|
+
### HTTP request headers
|
|
1877
|
+
|
|
1878
|
+
- **Content-Type**: application/json
|
|
1879
|
+
- **Accept**: application/json
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
### HTTP response details
|
|
1883
|
+
| Status code | Description | Response headers |
|
|
1884
|
+
|-------------|-------------|------------------|
|
|
1885
|
+
|**200** | Ok | - |
|
|
241
1886
|
|
|
242
1887
|
[[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)
|
|
243
1888
|
|