@tennac-booking/sdk 1.0.60 → 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 -182
- package/README.md +57 -18
- package/api.ts +7712 -5584
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +3797 -1986
- package/dist/api.js +1071 -483
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- 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 +3797 -1986
- package/dist/esm/api.js +1052 -481
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- 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/ClubResponse.md +0 -1
- package/docs/ClubSubscriptions.md +26 -0
- package/docs/ClubsManagerApi.md +6 -61
- package/docs/ClubsStaffApi.md +2 -2
- package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
- package/docs/CreateSubscriptionPlanRequest.md +10 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
- package/docs/DefaultApi.md +0 -54
- package/docs/{NotImplementedResponse.md → DeleteSubscriptionPlanResponse.md} +3 -3
- package/docs/DiscountType.md +14 -0
- package/docs/OffPeakRule.md +26 -0
- package/docs/PlanInterval.md +14 -0
- package/docs/PlayerSummary.md +2 -0
- package/docs/PublicSubscriptionPlanResponse.md +30 -0
- package/docs/{DeleteSlotsByClubInRange200Response.md → RequestPasswordReset200Response.md} +3 -3
- package/docs/ResetPasswordRequest.md +22 -0
- package/docs/StripeStripeDeletedProduct.md +25 -0
- package/docs/StripeStripePrice.md +63 -0
- package/docs/StripeStripePriceBillingScheme.md +10 -0
- package/docs/StripeStripePriceCurrencyOptions.md +28 -0
- package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
- package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
- package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceProduct.md +59 -0
- package/docs/StripeStripePriceRecurring.md +28 -0
- package/docs/StripeStripePriceRecurringInterval.md +14 -0
- package/docs/StripeStripePriceRecurringUsageType.md +10 -0
- package/docs/StripeStripePriceTaxBehavior.md +12 -0
- package/docs/StripeStripePriceTier.md +28 -0
- package/docs/StripeStripePriceTiersMode.md +10 -0
- package/docs/StripeStripePriceTransformQuantity.md +22 -0
- package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
- package/docs/StripeStripePriceType.md +10 -0
- package/docs/StripeStripeProduct.md +59 -0
- package/docs/StripeStripeProductDefaultPrice.md +63 -0
- package/docs/StripeStripeProductMarketingFeature.md +20 -0
- package/docs/StripeStripeProductPackageDimensions.md +26 -0
- package/docs/StripeStripeProductTaxCode.md +27 -0
- package/docs/StripeStripeProductType.md +10 -0
- package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
- package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
- package/docs/StripeStripeTaxCode.md +27 -0
- package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
- package/docs/SubscriptionPlanResponse.md +14 -2
- package/docs/SubscriptionsManagerApi.md +171 -0
- package/docs/SubscriptionsPublicApi.md +60 -0
- package/docs/SubscriptionsStaffApi.md +54 -0
- package/docs/SubscriptionsUserApi.md +222 -0
- package/docs/{GetCourtsByClub200Response.md → UpdatePlanRequest.md} +7 -5
- package/docs/UserClubSubscription.md +42 -0
- package/docs/UserSubscriptionsResponse.md +1 -1
- package/docs/UsersApi.md +104 -212
- package/docs/{DeleteClubResponse.md → VerifyEmailRequest.md} +5 -5
- package/index.ts +2 -2
- package/package.json +1 -1
- package/docs/SubscriptionSessionResponse.md +0 -20
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UpdatePlanRequest
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**newAmountInCents** | **number** | | [default to undefined]
|
|
9
|
+
**oldPriceId** | **string** | | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { UpdatePlanRequest } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: UpdatePlanRequest = {
|
|
17
|
+
newAmountInCents,
|
|
18
|
+
oldPriceId,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# UserClubSubscription
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**status** | **string** | | [default to undefined]
|
|
10
|
+
**currentPeriodStart** | **number** | | [default to undefined]
|
|
11
|
+
**currentPeriodEnd** | **number** | | [default to undefined]
|
|
12
|
+
**cancelAt** | **number** | | [default to undefined]
|
|
13
|
+
**canceledAt** | **number** | | [default to undefined]
|
|
14
|
+
**priceId** | **string** | | [default to undefined]
|
|
15
|
+
**planId** | **string** | | [default to undefined]
|
|
16
|
+
**planName** | **string** | | [default to undefined]
|
|
17
|
+
**amountInCents** | **number** | | [default to undefined]
|
|
18
|
+
**currency** | **string** | | [default to undefined]
|
|
19
|
+
**interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { UserClubSubscription } from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const instance: UserClubSubscription = {
|
|
27
|
+
id,
|
|
28
|
+
status,
|
|
29
|
+
currentPeriodStart,
|
|
30
|
+
currentPeriodEnd,
|
|
31
|
+
cancelAt,
|
|
32
|
+
canceledAt,
|
|
33
|
+
priceId,
|
|
34
|
+
planId,
|
|
35
|
+
planName,
|
|
36
|
+
amountInCents,
|
|
37
|
+
currency,
|
|
38
|
+
interval,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**subscriptions** | **
|
|
8
|
+
**subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
package/docs/UsersApi.md
CHANGED
|
@@ -7,7 +7,6 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**addFavoriteClub**](#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | |
|
|
8
8
|
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | |
|
|
9
9
|
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | |
|
|
10
|
-
|[**cancelSubscription**](#cancelsubscription) | **DELETE** /api/users/me/subscriptions/{clubId}/{subscriptionId} | |
|
|
11
10
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | |
|
|
12
11
|
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | |
|
|
13
12
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | |
|
|
@@ -23,22 +22,21 @@ All URIs are relative to *http://localhost*
|
|
|
23
22
|
|[**getNearestUsersFromCoordinates**](#getnearestusersfromcoordinates) | **GET** /api/users/nearest-players/coordinates | |
|
|
24
23
|
|[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | |
|
|
25
24
|
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
|
|
26
|
-
|[**getUserSubscriptions**](#getusersubscriptions) | **GET** /api/users/me/subscriptions | |
|
|
27
|
-
|[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /api/users/me/subscription-session | |
|
|
28
25
|
|[**login**](#login) | **POST** /api/users/login | |
|
|
29
26
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
|
|
30
27
|
|[**register**](#register) | **POST** /api/users | |
|
|
31
28
|
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
|
|
32
29
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
33
|
-
|[**
|
|
34
|
-
|[**
|
|
35
|
-
|[**
|
|
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 | |
|
|
36
34
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
37
|
-
|[**subscribeToClub**](#subscribetoclub) | **POST** /api/users/me/subscribe | |
|
|
38
35
|
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | |
|
|
39
36
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | |
|
|
40
37
|
|[**updateMe**](#updateme) | **PUT** /api/users/me | |
|
|
41
38
|
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | |
|
|
39
|
+
|[**verifyEmail**](#verifyemail) | **POST** /api/users/verify-email | |
|
|
42
40
|
|
|
43
41
|
# **addFavoriteClub**
|
|
44
42
|
> FavoriteClubMutationResponse addFavoriteClub(favoriteClubRequestBody)
|
|
@@ -186,59 +184,6 @@ const { status, data } = await apiInstance.addPaymentMethodSetup(
|
|
|
186
184
|
- **Accept**: application/json
|
|
187
185
|
|
|
188
186
|
|
|
189
|
-
### HTTP response details
|
|
190
|
-
| Status code | Description | Response headers |
|
|
191
|
-
|-------------|-------------|------------------|
|
|
192
|
-
|**200** | Ok | - |
|
|
193
|
-
|
|
194
|
-
[[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)
|
|
195
|
-
|
|
196
|
-
# **cancelSubscription**
|
|
197
|
-
> SubscriptionMutationResponse cancelSubscription()
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
### Example
|
|
201
|
-
|
|
202
|
-
```typescript
|
|
203
|
-
import {
|
|
204
|
-
UsersApi,
|
|
205
|
-
Configuration
|
|
206
|
-
} from '@tennac-booking/sdk';
|
|
207
|
-
|
|
208
|
-
const configuration = new Configuration();
|
|
209
|
-
const apiInstance = new UsersApi(configuration);
|
|
210
|
-
|
|
211
|
-
let clubId: string; // (default to undefined)
|
|
212
|
-
let subscriptionId: string; // (default to undefined)
|
|
213
|
-
|
|
214
|
-
const { status, data } = await apiInstance.cancelSubscription(
|
|
215
|
-
clubId,
|
|
216
|
-
subscriptionId
|
|
217
|
-
);
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### Parameters
|
|
221
|
-
|
|
222
|
-
|Name | Type | Description | Notes|
|
|
223
|
-
|------------- | ------------- | ------------- | -------------|
|
|
224
|
-
| **clubId** | [**string**] | | defaults to undefined|
|
|
225
|
-
| **subscriptionId** | [**string**] | | defaults to undefined|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
### Return type
|
|
229
|
-
|
|
230
|
-
**SubscriptionMutationResponse**
|
|
231
|
-
|
|
232
|
-
### Authorization
|
|
233
|
-
|
|
234
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
235
|
-
|
|
236
|
-
### HTTP request headers
|
|
237
|
-
|
|
238
|
-
- **Content-Type**: Not defined
|
|
239
|
-
- **Accept**: application/json
|
|
240
|
-
|
|
241
|
-
|
|
242
187
|
### HTTP response details
|
|
243
188
|
| Status code | Description | Response headers |
|
|
244
189
|
|-------------|-------------|------------------|
|
|
@@ -976,100 +921,6 @@ const { status, data } = await apiInstance.getUserProfileById(
|
|
|
976
921
|
- **Accept**: application/json
|
|
977
922
|
|
|
978
923
|
|
|
979
|
-
### HTTP response details
|
|
980
|
-
| Status code | Description | Response headers |
|
|
981
|
-
|-------------|-------------|------------------|
|
|
982
|
-
|**200** | Ok | - |
|
|
983
|
-
|
|
984
|
-
[[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)
|
|
985
|
-
|
|
986
|
-
# **getUserSubscriptions**
|
|
987
|
-
> UserSubscriptionsResponse getUserSubscriptions()
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
### Example
|
|
991
|
-
|
|
992
|
-
```typescript
|
|
993
|
-
import {
|
|
994
|
-
UsersApi,
|
|
995
|
-
Configuration
|
|
996
|
-
} from '@tennac-booking/sdk';
|
|
997
|
-
|
|
998
|
-
const configuration = new Configuration();
|
|
999
|
-
const apiInstance = new UsersApi(configuration);
|
|
1000
|
-
|
|
1001
|
-
const { status, data } = await apiInstance.getUserSubscriptions();
|
|
1002
|
-
```
|
|
1003
|
-
|
|
1004
|
-
### Parameters
|
|
1005
|
-
This endpoint does not have any parameters.
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
### Return type
|
|
1009
|
-
|
|
1010
|
-
**UserSubscriptionsResponse**
|
|
1011
|
-
|
|
1012
|
-
### Authorization
|
|
1013
|
-
|
|
1014
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
1015
|
-
|
|
1016
|
-
### HTTP request headers
|
|
1017
|
-
|
|
1018
|
-
- **Content-Type**: Not defined
|
|
1019
|
-
- **Accept**: application/json
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
### HTTP response details
|
|
1023
|
-
| Status code | Description | Response headers |
|
|
1024
|
-
|-------------|-------------|------------------|
|
|
1025
|
-
|**200** | Ok | - |
|
|
1026
|
-
|
|
1027
|
-
[[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)
|
|
1028
|
-
|
|
1029
|
-
# **initiateSubscriptionSession**
|
|
1030
|
-
> SubscriptionSessionResponse initiateSubscriptionSession(subscriptionSessionRequestBody)
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
### Example
|
|
1034
|
-
|
|
1035
|
-
```typescript
|
|
1036
|
-
import {
|
|
1037
|
-
UsersApi,
|
|
1038
|
-
Configuration,
|
|
1039
|
-
SubscriptionSessionRequestBody
|
|
1040
|
-
} from '@tennac-booking/sdk';
|
|
1041
|
-
|
|
1042
|
-
const configuration = new Configuration();
|
|
1043
|
-
const apiInstance = new UsersApi(configuration);
|
|
1044
|
-
|
|
1045
|
-
let subscriptionSessionRequestBody: SubscriptionSessionRequestBody; //
|
|
1046
|
-
|
|
1047
|
-
const { status, data } = await apiInstance.initiateSubscriptionSession(
|
|
1048
|
-
subscriptionSessionRequestBody
|
|
1049
|
-
);
|
|
1050
|
-
```
|
|
1051
|
-
|
|
1052
|
-
### Parameters
|
|
1053
|
-
|
|
1054
|
-
|Name | Type | Description | Notes|
|
|
1055
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1056
|
-
| **subscriptionSessionRequestBody** | **SubscriptionSessionRequestBody**| | |
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
### Return type
|
|
1060
|
-
|
|
1061
|
-
**SubscriptionSessionResponse**
|
|
1062
|
-
|
|
1063
|
-
### Authorization
|
|
1064
|
-
|
|
1065
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
1066
|
-
|
|
1067
|
-
### HTTP request headers
|
|
1068
|
-
|
|
1069
|
-
- **Content-Type**: application/json
|
|
1070
|
-
- **Accept**: application/json
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
924
|
### HTTP response details
|
|
1074
925
|
| Status code | Description | Response headers |
|
|
1075
926
|
|-------------|-------------|------------------|
|
|
@@ -1330,8 +1181,8 @@ const { status, data } = await apiInstance.removeFavoritePlayer(
|
|
|
1330
1181
|
|
|
1331
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)
|
|
1332
1183
|
|
|
1333
|
-
# **
|
|
1334
|
-
>
|
|
1184
|
+
# **requestEmailVerification**
|
|
1185
|
+
> RequestPasswordReset200Response requestEmailVerification()
|
|
1335
1186
|
|
|
1336
1187
|
|
|
1337
1188
|
### Example
|
|
@@ -1339,50 +1190,42 @@ const { status, data } = await apiInstance.removeFavoritePlayer(
|
|
|
1339
1190
|
```typescript
|
|
1340
1191
|
import {
|
|
1341
1192
|
UsersApi,
|
|
1342
|
-
Configuration
|
|
1343
|
-
PasswordResetRequestBody
|
|
1193
|
+
Configuration
|
|
1344
1194
|
} from '@tennac-booking/sdk';
|
|
1345
1195
|
|
|
1346
1196
|
const configuration = new Configuration();
|
|
1347
1197
|
const apiInstance = new UsersApi(configuration);
|
|
1348
1198
|
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
const { status, data } = await apiInstance.requestPasswordReset(
|
|
1352
|
-
passwordResetRequestBody
|
|
1353
|
-
);
|
|
1199
|
+
const { status, data } = await apiInstance.requestEmailVerification();
|
|
1354
1200
|
```
|
|
1355
1201
|
|
|
1356
1202
|
### Parameters
|
|
1357
|
-
|
|
1358
|
-
|Name | Type | Description | Notes|
|
|
1359
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1360
|
-
| **passwordResetRequestBody** | **PasswordResetRequestBody**| | |
|
|
1203
|
+
This endpoint does not have any parameters.
|
|
1361
1204
|
|
|
1362
1205
|
|
|
1363
1206
|
### Return type
|
|
1364
1207
|
|
|
1365
|
-
|
|
1208
|
+
**RequestPasswordReset200Response**
|
|
1366
1209
|
|
|
1367
1210
|
### Authorization
|
|
1368
1211
|
|
|
1369
|
-
|
|
1212
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1370
1213
|
|
|
1371
1214
|
### HTTP request headers
|
|
1372
1215
|
|
|
1373
|
-
- **Content-Type**:
|
|
1216
|
+
- **Content-Type**: Not defined
|
|
1374
1217
|
- **Accept**: application/json
|
|
1375
1218
|
|
|
1376
1219
|
|
|
1377
1220
|
### HTTP response details
|
|
1378
1221
|
| Status code | Description | Response headers |
|
|
1379
1222
|
|-------------|-------------|------------------|
|
|
1380
|
-
|**
|
|
1223
|
+
|**200** | Ok | - |
|
|
1381
1224
|
|
|
1382
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)
|
|
1383
1226
|
|
|
1384
|
-
# **
|
|
1385
|
-
>
|
|
1227
|
+
# **requestPasswordReset**
|
|
1228
|
+
> RequestPasswordReset200Response requestPasswordReset(passwordResetRequestBody)
|
|
1386
1229
|
|
|
1387
1230
|
|
|
1388
1231
|
### Example
|
|
@@ -1390,18 +1233,17 @@ No authorization required
|
|
|
1390
1233
|
```typescript
|
|
1391
1234
|
import {
|
|
1392
1235
|
UsersApi,
|
|
1393
|
-
Configuration
|
|
1236
|
+
Configuration,
|
|
1237
|
+
PasswordResetRequestBody
|
|
1394
1238
|
} from '@tennac-booking/sdk';
|
|
1395
1239
|
|
|
1396
1240
|
const configuration = new Configuration();
|
|
1397
1241
|
const apiInstance = new UsersApi(configuration);
|
|
1398
1242
|
|
|
1399
|
-
let
|
|
1400
|
-
let subscriptionId: string; // (default to undefined)
|
|
1243
|
+
let passwordResetRequestBody: PasswordResetRequestBody; //
|
|
1401
1244
|
|
|
1402
|
-
const { status, data } = await apiInstance.
|
|
1403
|
-
|
|
1404
|
-
subscriptionId
|
|
1245
|
+
const { status, data } = await apiInstance.requestPasswordReset(
|
|
1246
|
+
passwordResetRequestBody
|
|
1405
1247
|
);
|
|
1406
1248
|
```
|
|
1407
1249
|
|
|
@@ -1409,21 +1251,20 @@ const { status, data } = await apiInstance.resumeSubscription(
|
|
|
1409
1251
|
|
|
1410
1252
|
|Name | Type | Description | Notes|
|
|
1411
1253
|
|------------- | ------------- | ------------- | -------------|
|
|
1412
|
-
| **
|
|
1413
|
-
| **subscriptionId** | [**string**] | | defaults to undefined|
|
|
1254
|
+
| **passwordResetRequestBody** | **PasswordResetRequestBody**| | |
|
|
1414
1255
|
|
|
1415
1256
|
|
|
1416
1257
|
### Return type
|
|
1417
1258
|
|
|
1418
|
-
**
|
|
1259
|
+
**RequestPasswordReset200Response**
|
|
1419
1260
|
|
|
1420
1261
|
### Authorization
|
|
1421
1262
|
|
|
1422
|
-
|
|
1263
|
+
No authorization required
|
|
1423
1264
|
|
|
1424
1265
|
### HTTP request headers
|
|
1425
1266
|
|
|
1426
|
-
- **Content-Type**:
|
|
1267
|
+
- **Content-Type**: application/json
|
|
1427
1268
|
- **Accept**: application/json
|
|
1428
1269
|
|
|
1429
1270
|
|
|
@@ -1434,8 +1275,8 @@ const { status, data } = await apiInstance.resumeSubscription(
|
|
|
1434
1275
|
|
|
1435
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)
|
|
1436
1277
|
|
|
1437
|
-
# **
|
|
1438
|
-
>
|
|
1278
|
+
# **resetPassword**
|
|
1279
|
+
> RequestPasswordReset200Response resetPassword(resetPasswordRequest)
|
|
1439
1280
|
|
|
1440
1281
|
|
|
1441
1282
|
### Example
|
|
@@ -1444,16 +1285,16 @@ const { status, data } = await apiInstance.resumeSubscription(
|
|
|
1444
1285
|
import {
|
|
1445
1286
|
UsersApi,
|
|
1446
1287
|
Configuration,
|
|
1447
|
-
|
|
1288
|
+
ResetPasswordRequest
|
|
1448
1289
|
} from '@tennac-booking/sdk';
|
|
1449
1290
|
|
|
1450
1291
|
const configuration = new Configuration();
|
|
1451
1292
|
const apiInstance = new UsersApi(configuration);
|
|
1452
1293
|
|
|
1453
|
-
let
|
|
1294
|
+
let resetPasswordRequest: ResetPasswordRequest; //
|
|
1454
1295
|
|
|
1455
|
-
const { status, data } = await apiInstance.
|
|
1456
|
-
|
|
1296
|
+
const { status, data } = await apiInstance.resetPassword(
|
|
1297
|
+
resetPasswordRequest
|
|
1457
1298
|
);
|
|
1458
1299
|
```
|
|
1459
1300
|
|
|
@@ -1461,16 +1302,16 @@ const { status, data } = await apiInstance.setupNoShowPaymentMethod(
|
|
|
1461
1302
|
|
|
1462
1303
|
|Name | Type | Description | Notes|
|
|
1463
1304
|
|------------- | ------------- | ------------- | -------------|
|
|
1464
|
-
| **
|
|
1305
|
+
| **resetPasswordRequest** | **ResetPasswordRequest**| | |
|
|
1465
1306
|
|
|
1466
1307
|
|
|
1467
1308
|
### Return type
|
|
1468
1309
|
|
|
1469
|
-
**
|
|
1310
|
+
**RequestPasswordReset200Response**
|
|
1470
1311
|
|
|
1471
1312
|
### Authorization
|
|
1472
1313
|
|
|
1473
|
-
|
|
1314
|
+
No authorization required
|
|
1474
1315
|
|
|
1475
1316
|
### HTTP request headers
|
|
1476
1317
|
|
|
@@ -1485,8 +1326,8 @@ const { status, data } = await apiInstance.setupNoShowPaymentMethod(
|
|
|
1485
1326
|
|
|
1486
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)
|
|
1487
1328
|
|
|
1488
|
-
# **
|
|
1489
|
-
>
|
|
1329
|
+
# **setupOffSessionPaymentMethod**
|
|
1330
|
+
> SetupPaymentMethodResponse setupOffSessionPaymentMethod(setupPaymentMethodRequestBody)
|
|
1490
1331
|
|
|
1491
1332
|
|
|
1492
1333
|
### Example
|
|
@@ -1495,16 +1336,16 @@ const { status, data } = await apiInstance.setupNoShowPaymentMethod(
|
|
|
1495
1336
|
import {
|
|
1496
1337
|
UsersApi,
|
|
1497
1338
|
Configuration,
|
|
1498
|
-
|
|
1339
|
+
SetupPaymentMethodRequestBody
|
|
1499
1340
|
} from '@tennac-booking/sdk';
|
|
1500
1341
|
|
|
1501
1342
|
const configuration = new Configuration();
|
|
1502
1343
|
const apiInstance = new UsersApi(configuration);
|
|
1503
1344
|
|
|
1504
|
-
let
|
|
1345
|
+
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
1505
1346
|
|
|
1506
|
-
const { status, data } = await apiInstance.
|
|
1507
|
-
|
|
1347
|
+
const { status, data } = await apiInstance.setupOffSessionPaymentMethod(
|
|
1348
|
+
setupPaymentMethodRequestBody
|
|
1508
1349
|
);
|
|
1509
1350
|
```
|
|
1510
1351
|
|
|
@@ -1512,16 +1353,16 @@ const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
|
1512
1353
|
|
|
1513
1354
|
|Name | Type | Description | Notes|
|
|
1514
1355
|
|------------- | ------------- | ------------- | -------------|
|
|
1515
|
-
| **
|
|
1356
|
+
| **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
|
|
1516
1357
|
|
|
1517
1358
|
|
|
1518
1359
|
### Return type
|
|
1519
1360
|
|
|
1520
|
-
**
|
|
1361
|
+
**SetupPaymentMethodResponse**
|
|
1521
1362
|
|
|
1522
1363
|
### Authorization
|
|
1523
1364
|
|
|
1524
|
-
|
|
1365
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1525
1366
|
|
|
1526
1367
|
### HTTP request headers
|
|
1527
1368
|
|
|
@@ -1536,8 +1377,8 @@ No authorization required
|
|
|
1536
1377
|
|
|
1537
1378
|
[[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)
|
|
1538
1379
|
|
|
1539
|
-
# **
|
|
1540
|
-
>
|
|
1380
|
+
# **signInOrSignUpWithGoogle**
|
|
1381
|
+
> GoogleAuthResponse signInOrSignUpWithGoogle(googleAuthRequestBody)
|
|
1541
1382
|
|
|
1542
1383
|
|
|
1543
1384
|
### Example
|
|
@@ -1546,16 +1387,16 @@ No authorization required
|
|
|
1546
1387
|
import {
|
|
1547
1388
|
UsersApi,
|
|
1548
1389
|
Configuration,
|
|
1549
|
-
|
|
1390
|
+
GoogleAuthRequestBody
|
|
1550
1391
|
} from '@tennac-booking/sdk';
|
|
1551
1392
|
|
|
1552
1393
|
const configuration = new Configuration();
|
|
1553
1394
|
const apiInstance = new UsersApi(configuration);
|
|
1554
1395
|
|
|
1555
|
-
let
|
|
1396
|
+
let googleAuthRequestBody: GoogleAuthRequestBody; //
|
|
1556
1397
|
|
|
1557
|
-
const { status, data } = await apiInstance.
|
|
1558
|
-
|
|
1398
|
+
const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
1399
|
+
googleAuthRequestBody
|
|
1559
1400
|
);
|
|
1560
1401
|
```
|
|
1561
1402
|
|
|
@@ -1563,16 +1404,16 @@ const { status, data } = await apiInstance.subscribeToClub(
|
|
|
1563
1404
|
|
|
1564
1405
|
|Name | Type | Description | Notes|
|
|
1565
1406
|
|------------- | ------------- | ------------- | -------------|
|
|
1566
|
-
| **
|
|
1407
|
+
| **googleAuthRequestBody** | **GoogleAuthRequestBody**| | |
|
|
1567
1408
|
|
|
1568
1409
|
|
|
1569
1410
|
### Return type
|
|
1570
1411
|
|
|
1571
|
-
**
|
|
1412
|
+
**GoogleAuthResponse**
|
|
1572
1413
|
|
|
1573
1414
|
### Authorization
|
|
1574
1415
|
|
|
1575
|
-
|
|
1416
|
+
No authorization required
|
|
1576
1417
|
|
|
1577
1418
|
### HTTP request headers
|
|
1578
1419
|
|
|
@@ -1583,7 +1424,7 @@ const { status, data } = await apiInstance.subscribeToClub(
|
|
|
1583
1424
|
### HTTP response details
|
|
1584
1425
|
| Status code | Description | Response headers |
|
|
1585
1426
|
|-------------|-------------|------------------|
|
|
1586
|
-
|**
|
|
1427
|
+
|**200** | Ok | - |
|
|
1587
1428
|
|
|
1588
1429
|
[[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)
|
|
1589
1430
|
|
|
@@ -1791,3 +1632,54 @@ const { status, data } = await apiInstance.updateProfilePicture(
|
|
|
1791
1632
|
|
|
1792
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)
|
|
1793
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
|
|
package/index.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* openapi.json
|
|
5
|
-
* API
|
|
5
|
+
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.61
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# SubscriptionSessionResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**sessionUrl** | **string** | | [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { SubscriptionSessionResponse } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: SubscriptionSessionResponse = {
|
|
16
|
-
sessionUrl,
|
|
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)
|