@tennac-booking/sdk 1.0.61 → 1.0.63
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 +222 -217
- package/README.md +17 -7
- package/api.ts +792 -107
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +708 -226
- package/dist/api.js +331 -18
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +708 -226
- package/dist/esm/api.js +330 -17
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AddOrganizationRequest.md +22 -0
- package/docs/ClubSubscriptions.md +26 -0
- package/docs/ClubsManagerApi.md +6 -6
- package/docs/IUserAttributes.md +10 -0
- package/docs/IUserAttributesOrganizationsInner.md +28 -0
- package/docs/PlayerSummary.md +2 -0
- package/docs/RegisterRequestBody.md +6 -0
- package/docs/{UpdateUserRequestBodyLocation.md → RegisterRequestBodyLocation.md} +3 -3
- package/docs/{NotImplementedResponse.md → RequestPasswordReset200Response.md} +3 -3
- package/docs/ResetPasswordRequest.md +22 -0
- package/docs/StaffUserProfileResponse.md +10 -0
- package/docs/UpdatePlanRequest.md +0 -2
- package/docs/UpdateUserRequestBody.md +1 -1
- package/docs/UserClubSubscription.md +42 -0
- package/docs/UserProfileResponse.md +10 -0
- package/docs/UserSubscriptionsResponse.md +1 -1
- package/docs/UsersApi.md +260 -8
- package/docs/{DeleteSlotsByClubInRange200Response.md → VerifyEmailRequest.md} +5 -5
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -338,7 +338,7 @@ const { status, data } = await apiInstance.createSportForClub(
|
|
|
338
338
|
[[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)
|
|
339
339
|
|
|
340
340
|
# **deleteActuality**
|
|
341
|
-
>
|
|
341
|
+
> RequestPasswordReset200Response deleteActuality()
|
|
342
342
|
|
|
343
343
|
|
|
344
344
|
### Example
|
|
@@ -368,7 +368,7 @@ const { status, data } = await apiInstance.deleteActuality(
|
|
|
368
368
|
|
|
369
369
|
### Return type
|
|
370
370
|
|
|
371
|
-
**
|
|
371
|
+
**RequestPasswordReset200Response**
|
|
372
372
|
|
|
373
373
|
### Authorization
|
|
374
374
|
|
|
@@ -442,7 +442,7 @@ const { status, data } = await apiInstance.deleteCourt(
|
|
|
442
442
|
[[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)
|
|
443
443
|
|
|
444
444
|
# **deleteSlotsByClubInRange**
|
|
445
|
-
>
|
|
445
|
+
> RequestPasswordReset200Response deleteSlotsByClubInRange()
|
|
446
446
|
|
|
447
447
|
|
|
448
448
|
### Example
|
|
@@ -465,7 +465,7 @@ This endpoint does not have any parameters.
|
|
|
465
465
|
|
|
466
466
|
### Return type
|
|
467
467
|
|
|
468
|
-
**
|
|
468
|
+
**RequestPasswordReset200Response**
|
|
469
469
|
|
|
470
470
|
### Authorization
|
|
471
471
|
|
|
@@ -585,7 +585,7 @@ const { status, data } = await apiInstance.publishActuality(
|
|
|
585
585
|
[[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)
|
|
586
586
|
|
|
587
587
|
# **restoreSubscriptionPlanForClub**
|
|
588
|
-
>
|
|
588
|
+
> RequestPasswordReset200Response restoreSubscriptionPlanForClub()
|
|
589
589
|
|
|
590
590
|
|
|
591
591
|
### Example
|
|
@@ -615,7 +615,7 @@ const { status, data } = await apiInstance.restoreSubscriptionPlanForClub(
|
|
|
615
615
|
|
|
616
616
|
### Return type
|
|
617
617
|
|
|
618
|
-
**
|
|
618
|
+
**RequestPasswordReset200Response**
|
|
619
619
|
|
|
620
620
|
### Authorization
|
|
621
621
|
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -19,6 +19,11 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**resetPasswordExpires** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
22
27
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
23
28
|
**createdAt** | **string** | | [default to undefined]
|
|
24
29
|
**updatedAt** | **string** | | [default to undefined]
|
|
@@ -53,6 +58,11 @@ const instance: IUserAttributes = {
|
|
|
53
58
|
phone,
|
|
54
59
|
password,
|
|
55
60
|
profilePicture,
|
|
61
|
+
resetPasswordToken,
|
|
62
|
+
resetPasswordExpires,
|
|
63
|
+
emailVerificationToken,
|
|
64
|
+
emailVerificationExpires,
|
|
65
|
+
organizations,
|
|
56
66
|
isAdmin,
|
|
57
67
|
createdAt,
|
|
58
68
|
updatedAt,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# IUserAttributesOrganizationsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**verificationExpires** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**verificationToken** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**verified** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**orgEmail** | **string** | | [default to undefined]
|
|
12
|
+
**clubId** | **string** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { IUserAttributesOrganizationsInner } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: IUserAttributesOrganizationsInner = {
|
|
20
|
+
verificationExpires,
|
|
21
|
+
verificationToken,
|
|
22
|
+
verified,
|
|
23
|
+
orgEmail,
|
|
24
|
+
clubId,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/PlayerSummary.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**username** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**firstName** | **string** | | [default to undefined]
|
|
11
11
|
**lastName** | **string** | | [default to undefined]
|
|
12
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
13
14
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
15
|
**levelBySports** | [**Array<LevelBySportEntry>**](LevelBySportEntry.md) | | [optional] [default to undefined]
|
|
@@ -27,6 +28,7 @@ const instance: PlayerSummary = {
|
|
|
27
28
|
username,
|
|
28
29
|
firstName,
|
|
29
30
|
lastName,
|
|
31
|
+
description,
|
|
30
32
|
profilePicture,
|
|
31
33
|
gender,
|
|
32
34
|
levelBySports,
|
|
@@ -14,6 +14,9 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**phone** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**location** | [**RegisterRequestBodyLocation**](RegisterRequestBodyLocation.md) | | [optional] [default to undefined]
|
|
18
|
+
**organizationId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**organizationEmail** | **string** | | [optional] [default to undefined]
|
|
17
20
|
|
|
18
21
|
## Example
|
|
19
22
|
|
|
@@ -30,6 +33,9 @@ const instance: RegisterRequestBody = {
|
|
|
30
33
|
stripeCustomerId,
|
|
31
34
|
phone,
|
|
32
35
|
profilePicture,
|
|
36
|
+
location,
|
|
37
|
+
organizationId,
|
|
38
|
+
organizationEmail,
|
|
33
39
|
};
|
|
34
40
|
```
|
|
35
41
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# RegisterRequestBodyLocation
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -22,9 +22,9 @@ Name | Type | Description | Notes
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
import {
|
|
25
|
+
import { RegisterRequestBodyLocation } from '@tennac-booking/sdk';
|
|
26
26
|
|
|
27
|
-
const instance:
|
|
27
|
+
const instance: RegisterRequestBodyLocation = {
|
|
28
28
|
coordinates,
|
|
29
29
|
mapboxId,
|
|
30
30
|
mapboxPlaceType,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# RequestPasswordReset200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { RequestPasswordReset200Response } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: RequestPasswordReset200Response = {
|
|
16
16
|
message,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ResetPasswordRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**newPassword** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ResetPasswordRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ResetPasswordRequest = {
|
|
17
|
+
newPassword,
|
|
18
|
+
token,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -19,6 +19,11 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**resetPasswordExpires** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
22
27
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
23
28
|
**createdAt** | **string** | | [default to undefined]
|
|
24
29
|
**updatedAt** | **string** | | [default to undefined]
|
|
@@ -55,6 +60,11 @@ const instance: StaffUserProfileResponse = {
|
|
|
55
60
|
phone,
|
|
56
61
|
password,
|
|
57
62
|
profilePicture,
|
|
63
|
+
resetPasswordToken,
|
|
64
|
+
resetPasswordExpires,
|
|
65
|
+
emailVerificationToken,
|
|
66
|
+
emailVerificationExpires,
|
|
67
|
+
organizations,
|
|
58
68
|
isAdmin,
|
|
59
69
|
createdAt,
|
|
60
70
|
updatedAt,
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** | | [optional] [default to undefined]
|
|
9
8
|
**newAmountInCents** | **number** | | [default to undefined]
|
|
10
9
|
**oldPriceId** | **string** | | [default to undefined]
|
|
11
10
|
|
|
@@ -15,7 +14,6 @@ Name | Type | Description | Notes
|
|
|
15
14
|
import { UpdatePlanRequest } from '@tennac-booking/sdk';
|
|
16
15
|
|
|
17
16
|
const instance: UpdatePlanRequest = {
|
|
18
|
-
clubId,
|
|
19
17
|
newAmountInCents,
|
|
20
18
|
oldPriceId,
|
|
21
19
|
};
|
|
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**levelBySports** | [**Array<UpdateUserRequestBodyLevelBySportsInner>**](UpdateUserRequestBodyLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
15
15
|
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
16
16
|
**description** | **string** | | [optional] [default to undefined]
|
|
17
|
-
**location** | [**
|
|
17
|
+
**location** | [**RegisterRequestBodyLocation**](RegisterRequestBodyLocation.md) | | [optional] [default to undefined]
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -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)
|
|
@@ -19,6 +19,11 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**resetPasswordExpires** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
22
27
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
23
28
|
**createdAt** | **string** | | [default to undefined]
|
|
24
29
|
**updatedAt** | **string** | | [default to undefined]
|
|
@@ -58,6 +63,11 @@ const instance: UserProfileResponse = {
|
|
|
58
63
|
phone,
|
|
59
64
|
password,
|
|
60
65
|
profilePicture,
|
|
66
|
+
resetPasswordToken,
|
|
67
|
+
resetPasswordExpires,
|
|
68
|
+
emailVerificationToken,
|
|
69
|
+
emailVerificationExpires,
|
|
70
|
+
organizations,
|
|
61
71
|
isAdmin,
|
|
62
72
|
createdAt,
|
|
63
73
|
updatedAt,
|
|
@@ -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
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**addFavoriteClub**](#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | |
|
|
8
8
|
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | |
|
|
9
|
+
|[**addOrganization**](#addorganization) | **POST** /api/users/me/add-organization | |
|
|
9
10
|
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | |
|
|
10
11
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | |
|
|
11
12
|
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | |
|
|
@@ -27,13 +28,17 @@ All URIs are relative to *http://localhost*
|
|
|
27
28
|
|[**register**](#register) | **POST** /api/users | |
|
|
28
29
|
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
|
|
29
30
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
30
|
-
|[**
|
|
31
|
-
|[**
|
|
31
|
+
|[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
|
|
32
|
+
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
|
|
33
|
+
|[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
|
|
34
|
+
|[**setupOffSessionPaymentMethod**](#setupoffsessionpaymentmethod) | **POST** /api/users/setupOffSessionPaymentMethod | |
|
|
32
35
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
33
36
|
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | |
|
|
34
37
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | |
|
|
35
38
|
|[**updateMe**](#updateme) | **PUT** /api/users/me | |
|
|
36
39
|
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | |
|
|
40
|
+
|[**verifyEmail**](#verifyemail) | **POST** /api/users/verify-email | |
|
|
41
|
+
|[**verifyOrganization**](#verifyorganization) | **POST** /api/users/verify-organization | |
|
|
37
42
|
|
|
38
43
|
# **addFavoriteClub**
|
|
39
44
|
> FavoriteClubMutationResponse addFavoriteClub(favoriteClubRequestBody)
|
|
@@ -130,6 +135,57 @@ const { status, data } = await apiInstance.addFavoritePlayer(
|
|
|
130
135
|
- **Accept**: application/json
|
|
131
136
|
|
|
132
137
|
|
|
138
|
+
### HTTP response details
|
|
139
|
+
| Status code | Description | Response headers |
|
|
140
|
+
|-------------|-------------|------------------|
|
|
141
|
+
|**200** | Ok | - |
|
|
142
|
+
|
|
143
|
+
[[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)
|
|
144
|
+
|
|
145
|
+
# **addOrganization**
|
|
146
|
+
> RequestPasswordReset200Response addOrganization(addOrganizationRequest)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Example
|
|
150
|
+
|
|
151
|
+
```typescript
|
|
152
|
+
import {
|
|
153
|
+
UsersApi,
|
|
154
|
+
Configuration,
|
|
155
|
+
AddOrganizationRequest
|
|
156
|
+
} from '@tennac-booking/sdk';
|
|
157
|
+
|
|
158
|
+
const configuration = new Configuration();
|
|
159
|
+
const apiInstance = new UsersApi(configuration);
|
|
160
|
+
|
|
161
|
+
let addOrganizationRequest: AddOrganizationRequest; //
|
|
162
|
+
|
|
163
|
+
const { status, data } = await apiInstance.addOrganization(
|
|
164
|
+
addOrganizationRequest
|
|
165
|
+
);
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Parameters
|
|
169
|
+
|
|
170
|
+
|Name | Type | Description | Notes|
|
|
171
|
+
|------------- | ------------- | ------------- | -------------|
|
|
172
|
+
| **addOrganizationRequest** | **AddOrganizationRequest**| | |
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Return type
|
|
176
|
+
|
|
177
|
+
**RequestPasswordReset200Response**
|
|
178
|
+
|
|
179
|
+
### Authorization
|
|
180
|
+
|
|
181
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
182
|
+
|
|
183
|
+
### HTTP request headers
|
|
184
|
+
|
|
185
|
+
- **Content-Type**: application/json
|
|
186
|
+
- **Accept**: application/json
|
|
187
|
+
|
|
188
|
+
|
|
133
189
|
### HTTP response details
|
|
134
190
|
| Status code | Description | Response headers |
|
|
135
191
|
|-------------|-------------|------------------|
|
|
@@ -1171,6 +1227,49 @@ const { status, data } = await apiInstance.removeFavoritePlayer(
|
|
|
1171
1227
|
- **Accept**: application/json
|
|
1172
1228
|
|
|
1173
1229
|
|
|
1230
|
+
### HTTP response details
|
|
1231
|
+
| Status code | Description | Response headers |
|
|
1232
|
+
|-------------|-------------|------------------|
|
|
1233
|
+
|**200** | Ok | - |
|
|
1234
|
+
|
|
1235
|
+
[[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)
|
|
1236
|
+
|
|
1237
|
+
# **requestEmailVerification**
|
|
1238
|
+
> RequestPasswordReset200Response requestEmailVerification()
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
### Example
|
|
1242
|
+
|
|
1243
|
+
```typescript
|
|
1244
|
+
import {
|
|
1245
|
+
UsersApi,
|
|
1246
|
+
Configuration
|
|
1247
|
+
} from '@tennac-booking/sdk';
|
|
1248
|
+
|
|
1249
|
+
const configuration = new Configuration();
|
|
1250
|
+
const apiInstance = new UsersApi(configuration);
|
|
1251
|
+
|
|
1252
|
+
const { status, data } = await apiInstance.requestEmailVerification();
|
|
1253
|
+
```
|
|
1254
|
+
|
|
1255
|
+
### Parameters
|
|
1256
|
+
This endpoint does not have any parameters.
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
### Return type
|
|
1260
|
+
|
|
1261
|
+
**RequestPasswordReset200Response**
|
|
1262
|
+
|
|
1263
|
+
### Authorization
|
|
1264
|
+
|
|
1265
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1266
|
+
|
|
1267
|
+
### HTTP request headers
|
|
1268
|
+
|
|
1269
|
+
- **Content-Type**: Not defined
|
|
1270
|
+
- **Accept**: application/json
|
|
1271
|
+
|
|
1272
|
+
|
|
1174
1273
|
### HTTP response details
|
|
1175
1274
|
| Status code | Description | Response headers |
|
|
1176
1275
|
|-------------|-------------|------------------|
|
|
@@ -1179,7 +1278,7 @@ const { status, data } = await apiInstance.removeFavoritePlayer(
|
|
|
1179
1278
|
[[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
1279
|
|
|
1181
1280
|
# **requestPasswordReset**
|
|
1182
|
-
> requestPasswordReset(passwordResetRequestBody)
|
|
1281
|
+
> RequestPasswordReset200Response requestPasswordReset(passwordResetRequestBody)
|
|
1183
1282
|
|
|
1184
1283
|
|
|
1185
1284
|
### Example
|
|
@@ -1210,7 +1309,58 @@ const { status, data } = await apiInstance.requestPasswordReset(
|
|
|
1210
1309
|
|
|
1211
1310
|
### Return type
|
|
1212
1311
|
|
|
1213
|
-
|
|
1312
|
+
**RequestPasswordReset200Response**
|
|
1313
|
+
|
|
1314
|
+
### Authorization
|
|
1315
|
+
|
|
1316
|
+
No authorization required
|
|
1317
|
+
|
|
1318
|
+
### HTTP request headers
|
|
1319
|
+
|
|
1320
|
+
- **Content-Type**: application/json
|
|
1321
|
+
- **Accept**: application/json
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
### HTTP response details
|
|
1325
|
+
| Status code | Description | Response headers |
|
|
1326
|
+
|-------------|-------------|------------------|
|
|
1327
|
+
|**200** | Ok | - |
|
|
1328
|
+
|
|
1329
|
+
[[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)
|
|
1330
|
+
|
|
1331
|
+
# **resetPassword**
|
|
1332
|
+
> RequestPasswordReset200Response resetPassword(resetPasswordRequest)
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
### Example
|
|
1336
|
+
|
|
1337
|
+
```typescript
|
|
1338
|
+
import {
|
|
1339
|
+
UsersApi,
|
|
1340
|
+
Configuration,
|
|
1341
|
+
ResetPasswordRequest
|
|
1342
|
+
} from '@tennac-booking/sdk';
|
|
1343
|
+
|
|
1344
|
+
const configuration = new Configuration();
|
|
1345
|
+
const apiInstance = new UsersApi(configuration);
|
|
1346
|
+
|
|
1347
|
+
let resetPasswordRequest: ResetPasswordRequest; //
|
|
1348
|
+
|
|
1349
|
+
const { status, data } = await apiInstance.resetPassword(
|
|
1350
|
+
resetPasswordRequest
|
|
1351
|
+
);
|
|
1352
|
+
```
|
|
1353
|
+
|
|
1354
|
+
### Parameters
|
|
1355
|
+
|
|
1356
|
+
|Name | Type | Description | Notes|
|
|
1357
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1358
|
+
| **resetPasswordRequest** | **ResetPasswordRequest**| | |
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
### Return type
|
|
1362
|
+
|
|
1363
|
+
**RequestPasswordReset200Response**
|
|
1214
1364
|
|
|
1215
1365
|
### Authorization
|
|
1216
1366
|
|
|
@@ -1225,12 +1375,12 @@ No authorization required
|
|
|
1225
1375
|
### HTTP response details
|
|
1226
1376
|
| Status code | Description | Response headers |
|
|
1227
1377
|
|-------------|-------------|------------------|
|
|
1228
|
-
|**
|
|
1378
|
+
|**200** | Ok | - |
|
|
1229
1379
|
|
|
1230
1380
|
[[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
1381
|
|
|
1232
|
-
# **
|
|
1233
|
-
> SetupPaymentMethodResponse
|
|
1382
|
+
# **setupOffSessionPaymentMethod**
|
|
1383
|
+
> SetupPaymentMethodResponse setupOffSessionPaymentMethod(setupPaymentMethodRequestBody)
|
|
1234
1384
|
|
|
1235
1385
|
|
|
1236
1386
|
### Example
|
|
@@ -1247,7 +1397,7 @@ const apiInstance = new UsersApi(configuration);
|
|
|
1247
1397
|
|
|
1248
1398
|
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
1249
1399
|
|
|
1250
|
-
const { status, data } = await apiInstance.
|
|
1400
|
+
const { status, data } = await apiInstance.setupOffSessionPaymentMethod(
|
|
1251
1401
|
setupPaymentMethodRequestBody
|
|
1252
1402
|
);
|
|
1253
1403
|
```
|
|
@@ -1535,3 +1685,105 @@ const { status, data } = await apiInstance.updateProfilePicture(
|
|
|
1535
1685
|
|
|
1536
1686
|
[[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
1687
|
|
|
1688
|
+
# **verifyEmail**
|
|
1689
|
+
> RequestPasswordReset200Response verifyEmail(verifyEmailRequest)
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
### Example
|
|
1693
|
+
|
|
1694
|
+
```typescript
|
|
1695
|
+
import {
|
|
1696
|
+
UsersApi,
|
|
1697
|
+
Configuration,
|
|
1698
|
+
VerifyEmailRequest
|
|
1699
|
+
} from '@tennac-booking/sdk';
|
|
1700
|
+
|
|
1701
|
+
const configuration = new Configuration();
|
|
1702
|
+
const apiInstance = new UsersApi(configuration);
|
|
1703
|
+
|
|
1704
|
+
let verifyEmailRequest: VerifyEmailRequest; //
|
|
1705
|
+
|
|
1706
|
+
const { status, data } = await apiInstance.verifyEmail(
|
|
1707
|
+
verifyEmailRequest
|
|
1708
|
+
);
|
|
1709
|
+
```
|
|
1710
|
+
|
|
1711
|
+
### Parameters
|
|
1712
|
+
|
|
1713
|
+
|Name | Type | Description | Notes|
|
|
1714
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1715
|
+
| **verifyEmailRequest** | **VerifyEmailRequest**| | |
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
### Return type
|
|
1719
|
+
|
|
1720
|
+
**RequestPasswordReset200Response**
|
|
1721
|
+
|
|
1722
|
+
### Authorization
|
|
1723
|
+
|
|
1724
|
+
No authorization required
|
|
1725
|
+
|
|
1726
|
+
### HTTP request headers
|
|
1727
|
+
|
|
1728
|
+
- **Content-Type**: application/json
|
|
1729
|
+
- **Accept**: application/json
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
### HTTP response details
|
|
1733
|
+
| Status code | Description | Response headers |
|
|
1734
|
+
|-------------|-------------|------------------|
|
|
1735
|
+
|**200** | Ok | - |
|
|
1736
|
+
|
|
1737
|
+
[[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)
|
|
1738
|
+
|
|
1739
|
+
# **verifyOrganization**
|
|
1740
|
+
> RequestPasswordReset200Response verifyOrganization(verifyEmailRequest)
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
### Example
|
|
1744
|
+
|
|
1745
|
+
```typescript
|
|
1746
|
+
import {
|
|
1747
|
+
UsersApi,
|
|
1748
|
+
Configuration,
|
|
1749
|
+
VerifyEmailRequest
|
|
1750
|
+
} from '@tennac-booking/sdk';
|
|
1751
|
+
|
|
1752
|
+
const configuration = new Configuration();
|
|
1753
|
+
const apiInstance = new UsersApi(configuration);
|
|
1754
|
+
|
|
1755
|
+
let verifyEmailRequest: VerifyEmailRequest; //
|
|
1756
|
+
|
|
1757
|
+
const { status, data } = await apiInstance.verifyOrganization(
|
|
1758
|
+
verifyEmailRequest
|
|
1759
|
+
);
|
|
1760
|
+
```
|
|
1761
|
+
|
|
1762
|
+
### Parameters
|
|
1763
|
+
|
|
1764
|
+
|Name | Type | Description | Notes|
|
|
1765
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1766
|
+
| **verifyEmailRequest** | **VerifyEmailRequest**| | |
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
### Return type
|
|
1770
|
+
|
|
1771
|
+
**RequestPasswordReset200Response**
|
|
1772
|
+
|
|
1773
|
+
### Authorization
|
|
1774
|
+
|
|
1775
|
+
No authorization required
|
|
1776
|
+
|
|
1777
|
+
### HTTP request headers
|
|
1778
|
+
|
|
1779
|
+
- **Content-Type**: application/json
|
|
1780
|
+
- **Accept**: application/json
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
### HTTP response details
|
|
1784
|
+
| Status code | Description | Response headers |
|
|
1785
|
+
|-------------|-------------|------------------|
|
|
1786
|
+
|**200** | Ok | - |
|
|
1787
|
+
|
|
1788
|
+
[[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)
|
|
1789
|
+
|