@tennac-booking/sdk 1.0.61 → 1.0.62
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 +220 -217
- package/README.md +10 -4
- package/api.ts +415 -60
- package/dist/api.d.ts +410 -176
- package/dist/api.js +197 -13
- package/dist/esm/api.d.ts +410 -176
- package/dist/esm/api.js +197 -13
- package/docs/ClubSubscriptions.md +26 -0
- package/docs/ClubsManagerApi.md +6 -6
- package/docs/PlayerSummary.md +2 -0
- package/docs/{NotImplementedResponse.md → RequestPasswordReset200Response.md} +3 -3
- package/docs/ResetPasswordRequest.md +22 -0
- package/docs/UpdatePlanRequest.md +0 -2
- package/docs/UserClubSubscription.md +42 -0
- package/docs/UserSubscriptionsResponse.md +1 -1
- package/docs/UsersApi.md +156 -8
- package/docs/{DeleteSlotsByClubInRange200Response.md → VerifyEmailRequest.md} +5 -5
- package/package.json +1 -1
package/docs/UsersApi.md
CHANGED
|
@@ -27,13 +27,16 @@ All URIs are relative to *http://localhost*
|
|
|
27
27
|
|[**register**](#register) | **POST** /api/users | |
|
|
28
28
|
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
|
|
29
29
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
30
|
-
|[**
|
|
31
|
-
|[**
|
|
30
|
+
|[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
|
|
31
|
+
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
|
|
32
|
+
|[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
|
|
33
|
+
|[**setupOffSessionPaymentMethod**](#setupoffsessionpaymentmethod) | **POST** /api/users/setupOffSessionPaymentMethod | |
|
|
32
34
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
33
35
|
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | |
|
|
34
36
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | |
|
|
35
37
|
|[**updateMe**](#updateme) | **PUT** /api/users/me | |
|
|
36
38
|
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | |
|
|
39
|
+
|[**verifyEmail**](#verifyemail) | **POST** /api/users/verify-email | |
|
|
37
40
|
|
|
38
41
|
# **addFavoriteClub**
|
|
39
42
|
> FavoriteClubMutationResponse addFavoriteClub(favoriteClubRequestBody)
|
|
@@ -1171,6 +1174,49 @@ const { status, data } = await apiInstance.removeFavoritePlayer(
|
|
|
1171
1174
|
- **Accept**: application/json
|
|
1172
1175
|
|
|
1173
1176
|
|
|
1177
|
+
### HTTP response details
|
|
1178
|
+
| Status code | Description | Response headers |
|
|
1179
|
+
|-------------|-------------|------------------|
|
|
1180
|
+
|**200** | Ok | - |
|
|
1181
|
+
|
|
1182
|
+
[[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)
|
|
1183
|
+
|
|
1184
|
+
# **requestEmailVerification**
|
|
1185
|
+
> RequestPasswordReset200Response requestEmailVerification()
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
### Example
|
|
1189
|
+
|
|
1190
|
+
```typescript
|
|
1191
|
+
import {
|
|
1192
|
+
UsersApi,
|
|
1193
|
+
Configuration
|
|
1194
|
+
} from '@tennac-booking/sdk';
|
|
1195
|
+
|
|
1196
|
+
const configuration = new Configuration();
|
|
1197
|
+
const apiInstance = new UsersApi(configuration);
|
|
1198
|
+
|
|
1199
|
+
const { status, data } = await apiInstance.requestEmailVerification();
|
|
1200
|
+
```
|
|
1201
|
+
|
|
1202
|
+
### Parameters
|
|
1203
|
+
This endpoint does not have any parameters.
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
### Return type
|
|
1207
|
+
|
|
1208
|
+
**RequestPasswordReset200Response**
|
|
1209
|
+
|
|
1210
|
+
### Authorization
|
|
1211
|
+
|
|
1212
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1213
|
+
|
|
1214
|
+
### HTTP request headers
|
|
1215
|
+
|
|
1216
|
+
- **Content-Type**: Not defined
|
|
1217
|
+
- **Accept**: application/json
|
|
1218
|
+
|
|
1219
|
+
|
|
1174
1220
|
### HTTP response details
|
|
1175
1221
|
| Status code | Description | Response headers |
|
|
1176
1222
|
|-------------|-------------|------------------|
|
|
@@ -1179,7 +1225,7 @@ const { status, data } = await apiInstance.removeFavoritePlayer(
|
|
|
1179
1225
|
[[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)
|
|
1180
1226
|
|
|
1181
1227
|
# **requestPasswordReset**
|
|
1182
|
-
> requestPasswordReset(passwordResetRequestBody)
|
|
1228
|
+
> RequestPasswordReset200Response requestPasswordReset(passwordResetRequestBody)
|
|
1183
1229
|
|
|
1184
1230
|
|
|
1185
1231
|
### Example
|
|
@@ -1210,7 +1256,58 @@ const { status, data } = await apiInstance.requestPasswordReset(
|
|
|
1210
1256
|
|
|
1211
1257
|
### Return type
|
|
1212
1258
|
|
|
1213
|
-
|
|
1259
|
+
**RequestPasswordReset200Response**
|
|
1260
|
+
|
|
1261
|
+
### Authorization
|
|
1262
|
+
|
|
1263
|
+
No authorization required
|
|
1264
|
+
|
|
1265
|
+
### HTTP request headers
|
|
1266
|
+
|
|
1267
|
+
- **Content-Type**: application/json
|
|
1268
|
+
- **Accept**: application/json
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
### HTTP response details
|
|
1272
|
+
| Status code | Description | Response headers |
|
|
1273
|
+
|-------------|-------------|------------------|
|
|
1274
|
+
|**200** | Ok | - |
|
|
1275
|
+
|
|
1276
|
+
[[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)
|
|
1277
|
+
|
|
1278
|
+
# **resetPassword**
|
|
1279
|
+
> RequestPasswordReset200Response resetPassword(resetPasswordRequest)
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
### Example
|
|
1283
|
+
|
|
1284
|
+
```typescript
|
|
1285
|
+
import {
|
|
1286
|
+
UsersApi,
|
|
1287
|
+
Configuration,
|
|
1288
|
+
ResetPasswordRequest
|
|
1289
|
+
} from '@tennac-booking/sdk';
|
|
1290
|
+
|
|
1291
|
+
const configuration = new Configuration();
|
|
1292
|
+
const apiInstance = new UsersApi(configuration);
|
|
1293
|
+
|
|
1294
|
+
let resetPasswordRequest: ResetPasswordRequest; //
|
|
1295
|
+
|
|
1296
|
+
const { status, data } = await apiInstance.resetPassword(
|
|
1297
|
+
resetPasswordRequest
|
|
1298
|
+
);
|
|
1299
|
+
```
|
|
1300
|
+
|
|
1301
|
+
### Parameters
|
|
1302
|
+
|
|
1303
|
+
|Name | Type | Description | Notes|
|
|
1304
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1305
|
+
| **resetPasswordRequest** | **ResetPasswordRequest**| | |
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
### Return type
|
|
1309
|
+
|
|
1310
|
+
**RequestPasswordReset200Response**
|
|
1214
1311
|
|
|
1215
1312
|
### Authorization
|
|
1216
1313
|
|
|
@@ -1225,12 +1322,12 @@ No authorization required
|
|
|
1225
1322
|
### HTTP response details
|
|
1226
1323
|
| Status code | Description | Response headers |
|
|
1227
1324
|
|-------------|-------------|------------------|
|
|
1228
|
-
|**
|
|
1325
|
+
|**200** | Ok | - |
|
|
1229
1326
|
|
|
1230
1327
|
[[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)
|
|
1231
1328
|
|
|
1232
|
-
# **
|
|
1233
|
-
> SetupPaymentMethodResponse
|
|
1329
|
+
# **setupOffSessionPaymentMethod**
|
|
1330
|
+
> SetupPaymentMethodResponse setupOffSessionPaymentMethod(setupPaymentMethodRequestBody)
|
|
1234
1331
|
|
|
1235
1332
|
|
|
1236
1333
|
### Example
|
|
@@ -1247,7 +1344,7 @@ const apiInstance = new UsersApi(configuration);
|
|
|
1247
1344
|
|
|
1248
1345
|
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
1249
1346
|
|
|
1250
|
-
const { status, data } = await apiInstance.
|
|
1347
|
+
const { status, data } = await apiInstance.setupOffSessionPaymentMethod(
|
|
1251
1348
|
setupPaymentMethodRequestBody
|
|
1252
1349
|
);
|
|
1253
1350
|
```
|
|
@@ -1535,3 +1632,54 @@ const { status, data } = await apiInstance.updateProfilePicture(
|
|
|
1535
1632
|
|
|
1536
1633
|
[[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)
|
|
1537
1634
|
|
|
1635
|
+
# **verifyEmail**
|
|
1636
|
+
> RequestPasswordReset200Response verifyEmail(verifyEmailRequest)
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
### Example
|
|
1640
|
+
|
|
1641
|
+
```typescript
|
|
1642
|
+
import {
|
|
1643
|
+
UsersApi,
|
|
1644
|
+
Configuration,
|
|
1645
|
+
VerifyEmailRequest
|
|
1646
|
+
} from '@tennac-booking/sdk';
|
|
1647
|
+
|
|
1648
|
+
const configuration = new Configuration();
|
|
1649
|
+
const apiInstance = new UsersApi(configuration);
|
|
1650
|
+
|
|
1651
|
+
let verifyEmailRequest: VerifyEmailRequest; //
|
|
1652
|
+
|
|
1653
|
+
const { status, data } = await apiInstance.verifyEmail(
|
|
1654
|
+
verifyEmailRequest
|
|
1655
|
+
);
|
|
1656
|
+
```
|
|
1657
|
+
|
|
1658
|
+
### Parameters
|
|
1659
|
+
|
|
1660
|
+
|Name | Type | Description | Notes|
|
|
1661
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1662
|
+
| **verifyEmailRequest** | **VerifyEmailRequest**| | |
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
### Return type
|
|
1666
|
+
|
|
1667
|
+
**RequestPasswordReset200Response**
|
|
1668
|
+
|
|
1669
|
+
### Authorization
|
|
1670
|
+
|
|
1671
|
+
No authorization required
|
|
1672
|
+
|
|
1673
|
+
### HTTP request headers
|
|
1674
|
+
|
|
1675
|
+
- **Content-Type**: application/json
|
|
1676
|
+
- **Accept**: application/json
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
### HTTP response details
|
|
1680
|
+
| Status code | Description | Response headers |
|
|
1681
|
+
|-------------|-------------|------------------|
|
|
1682
|
+
|**200** | Ok | - |
|
|
1683
|
+
|
|
1684
|
+
[[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)
|
|
1685
|
+
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# VerifyEmailRequest
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { VerifyEmailRequest } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: VerifyEmailRequest = {
|
|
16
|
+
token,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|