@tennac-booking/sdk 1.0.186 → 1.0.188
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 +11 -0
- package/README.md +15 -1
- package/api.ts +639 -15
- package/dist/api.d.ts +451 -10
- package/dist/api.js +320 -15
- package/dist/esm/api.d.ts +451 -10
- package/dist/esm/api.js +312 -11
- package/docs/AuthApi.md +113 -0
- package/docs/ClubSummary.md +6 -0
- package/docs/PublicEmailApi.md +4 -4
- package/docs/RequestOrganizationEmailCodeBody.md +22 -0
- package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
- package/docs/RequestVerificationCodeBody.md +26 -0
- package/docs/RequestVerificationCodeResponse.md +20 -0
- package/docs/SportResponse.md +2 -0
- package/docs/SupportedLanguage.md +10 -0
- package/docs/UserNextBookingSummary.md +26 -0
- package/docs/UserProfileResponse.md +6 -0
- package/docs/UsersApi.md +104 -0
- package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
- package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
- package/docs/VerifyVerificationCodeBody.md +24 -0
- package/docs/VerifyVerificationCodeResponse.md +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# RequestVerificationCodeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sent** | **boolean** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RequestVerificationCodeResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RequestVerificationCodeResponse = {
|
|
16
|
+
sent,
|
|
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)
|
package/docs/SportResponse.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**levels** | [**Array<SportLevel>**](SportLevel.md) | Niveaux associés au sport | [optional] [default to undefined]
|
|
13
13
|
**logos** | **Array<string>** | URLs de logos/images pour le sport | [optional] [default to undefined]
|
|
14
14
|
**maxPlayers** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**slotDurations** | **Array<number>** | Durées de créneaux disponibles sur les terrains de ce sport (en minutes) | [optional] [default to undefined]
|
|
15
16
|
**surface** | **Array<string>** | Types de surface pour le sport | [optional] [default to undefined]
|
|
16
17
|
**createdBy** | **string** | ID du club créateur | [optional] [default to undefined]
|
|
17
18
|
**verified** | **boolean** | Sport vérifié/officiel (non modifiable) | [default to undefined]
|
|
@@ -31,6 +32,7 @@ const instance: SportResponse = {
|
|
|
31
32
|
levels,
|
|
32
33
|
logos,
|
|
33
34
|
maxPlayers,
|
|
35
|
+
slotDurations,
|
|
34
36
|
surface,
|
|
35
37
|
createdBy,
|
|
36
38
|
verified,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UserNextBookingSummary
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**date** | **string** | | [default to undefined]
|
|
10
|
+
**slots** | [**Array<BookingSlotInfo>**](BookingSlotInfo.md) | | [default to undefined]
|
|
11
|
+
**club** | [**BookingClubInfo**](BookingClubInfo.md) | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserNextBookingSummary } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: UserNextBookingSummary = {
|
|
19
|
+
id,
|
|
20
|
+
date,
|
|
21
|
+
slots,
|
|
22
|
+
club,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -39,11 +39,14 @@ Name | Type | Description | Notes
|
|
|
39
39
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
40
40
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
41
41
|
**upcomingBookingsCount** | **number** | | [optional] [default to undefined]
|
|
42
|
+
**nextBooking** | [**UserNextBookingSummary**](UserNextBookingSummary.md) | | [optional] [default to undefined]
|
|
42
43
|
**subscriptionsCount** | **number** | | [optional] [default to undefined]
|
|
43
44
|
**subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
|
|
44
45
|
**clubs** | [**Array<UserClubMembership>**](UserClubMembership.md) | | [optional] [default to undefined]
|
|
45
46
|
**favoriteClubsDetails** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
46
47
|
**frequentlyVisitedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
48
|
+
**recentlyPlayedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
49
|
+
**nearbyCityClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
47
50
|
**frequentlyPlayedWith** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [optional] [default to undefined]
|
|
48
51
|
**stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
49
52
|
**verifiedSports** | [**Array<SportResponse>**](SportResponse.md) | | [optional] [default to undefined]
|
|
@@ -89,11 +92,14 @@ const instance: UserProfileResponse = {
|
|
|
89
92
|
sports,
|
|
90
93
|
stripeCustomerId,
|
|
91
94
|
upcomingBookingsCount,
|
|
95
|
+
nextBooking,
|
|
92
96
|
subscriptionsCount,
|
|
93
97
|
subscriptions,
|
|
94
98
|
clubs,
|
|
95
99
|
favoriteClubsDetails,
|
|
96
100
|
frequentlyVisitedClubs,
|
|
101
|
+
recentlyPlayedClubs,
|
|
102
|
+
nearbyCityClubs,
|
|
97
103
|
frequentlyPlayedWith,
|
|
98
104
|
stripeLinks,
|
|
99
105
|
verifiedSports,
|
package/docs/UsersApi.md
CHANGED
|
@@ -36,6 +36,7 @@ All URIs are relative to *http://localhost*
|
|
|
36
36
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
37
37
|
|[**removeOrganization**](#removeorganization) | **POST** /api/users/me/remove-organization | |
|
|
38
38
|
|[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
|
|
39
|
+
|[**requestOrganizationCode**](#requestorganizationcode) | **POST** /api/users/me/request-organization-code | |
|
|
39
40
|
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
|
|
40
41
|
|[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
|
|
41
42
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
@@ -45,6 +46,7 @@ All URIs are relative to *http://localhost*
|
|
|
45
46
|
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | |
|
|
46
47
|
|[**verifyEmail**](#verifyemail) | **POST** /api/users/verify-email | |
|
|
47
48
|
|[**verifyOrganization**](#verifyorganization) | **POST** /api/users/verify-organization | |
|
|
49
|
+
|[**verifyOrganizationCode**](#verifyorganizationcode) | **POST** /api/users/me/verify-organization-code | |
|
|
48
50
|
|
|
49
51
|
# **addFavoriteClub**
|
|
50
52
|
> FavoriteClubMutationResponse addFavoriteClub(favoriteClubRequestBody)
|
|
@@ -1650,6 +1652,57 @@ This endpoint does not have any parameters.
|
|
|
1650
1652
|
- **Accept**: application/json
|
|
1651
1653
|
|
|
1652
1654
|
|
|
1655
|
+
### HTTP response details
|
|
1656
|
+
| Status code | Description | Response headers |
|
|
1657
|
+
|-------------|-------------|------------------|
|
|
1658
|
+
|**200** | Ok | - |
|
|
1659
|
+
|
|
1660
|
+
[[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)
|
|
1661
|
+
|
|
1662
|
+
# **requestOrganizationCode**
|
|
1663
|
+
> RequestOrganizationEmailCodeResponse requestOrganizationCode(requestOrganizationEmailCodeBody)
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
### Example
|
|
1667
|
+
|
|
1668
|
+
```typescript
|
|
1669
|
+
import {
|
|
1670
|
+
UsersApi,
|
|
1671
|
+
Configuration,
|
|
1672
|
+
RequestOrganizationEmailCodeBody
|
|
1673
|
+
} from '@tennac-booking/sdk';
|
|
1674
|
+
|
|
1675
|
+
const configuration = new Configuration();
|
|
1676
|
+
const apiInstance = new UsersApi(configuration);
|
|
1677
|
+
|
|
1678
|
+
let requestOrganizationEmailCodeBody: RequestOrganizationEmailCodeBody; //
|
|
1679
|
+
|
|
1680
|
+
const { status, data } = await apiInstance.requestOrganizationCode(
|
|
1681
|
+
requestOrganizationEmailCodeBody
|
|
1682
|
+
);
|
|
1683
|
+
```
|
|
1684
|
+
|
|
1685
|
+
### Parameters
|
|
1686
|
+
|
|
1687
|
+
|Name | Type | Description | Notes|
|
|
1688
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1689
|
+
| **requestOrganizationEmailCodeBody** | **RequestOrganizationEmailCodeBody**| | |
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
### Return type
|
|
1693
|
+
|
|
1694
|
+
**RequestOrganizationEmailCodeResponse**
|
|
1695
|
+
|
|
1696
|
+
### Authorization
|
|
1697
|
+
|
|
1698
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1699
|
+
|
|
1700
|
+
### HTTP request headers
|
|
1701
|
+
|
|
1702
|
+
- **Content-Type**: application/json
|
|
1703
|
+
- **Accept**: application/json
|
|
1704
|
+
|
|
1705
|
+
|
|
1653
1706
|
### HTTP response details
|
|
1654
1707
|
| Status code | Description | Response headers |
|
|
1655
1708
|
|-------------|-------------|------------------|
|
|
@@ -2116,3 +2169,54 @@ No authorization required
|
|
|
2116
2169
|
|
|
2117
2170
|
[[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)
|
|
2118
2171
|
|
|
2172
|
+
# **verifyOrganizationCode**
|
|
2173
|
+
> VerifyOrganizationEmailCodeResponse verifyOrganizationCode(verifyOrganizationEmailCodeBody)
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
### Example
|
|
2177
|
+
|
|
2178
|
+
```typescript
|
|
2179
|
+
import {
|
|
2180
|
+
UsersApi,
|
|
2181
|
+
Configuration,
|
|
2182
|
+
VerifyOrganizationEmailCodeBody
|
|
2183
|
+
} from '@tennac-booking/sdk';
|
|
2184
|
+
|
|
2185
|
+
const configuration = new Configuration();
|
|
2186
|
+
const apiInstance = new UsersApi(configuration);
|
|
2187
|
+
|
|
2188
|
+
let verifyOrganizationEmailCodeBody: VerifyOrganizationEmailCodeBody; //
|
|
2189
|
+
|
|
2190
|
+
const { status, data } = await apiInstance.verifyOrganizationCode(
|
|
2191
|
+
verifyOrganizationEmailCodeBody
|
|
2192
|
+
);
|
|
2193
|
+
```
|
|
2194
|
+
|
|
2195
|
+
### Parameters
|
|
2196
|
+
|
|
2197
|
+
|Name | Type | Description | Notes|
|
|
2198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
2199
|
+
| **verifyOrganizationEmailCodeBody** | **VerifyOrganizationEmailCodeBody**| | |
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
### Return type
|
|
2203
|
+
|
|
2204
|
+
**VerifyOrganizationEmailCodeResponse**
|
|
2205
|
+
|
|
2206
|
+
### Authorization
|
|
2207
|
+
|
|
2208
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
2209
|
+
|
|
2210
|
+
### HTTP request headers
|
|
2211
|
+
|
|
2212
|
+
- **Content-Type**: application/json
|
|
2213
|
+
- **Accept**: application/json
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
### HTTP response details
|
|
2217
|
+
| Status code | Description | Response headers |
|
|
2218
|
+
|-------------|-------------|------------------|
|
|
2219
|
+
|**200** | Ok | - |
|
|
2220
|
+
|
|
2221
|
+
[[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)
|
|
2222
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# VerifyOrganizationEmailCodeBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**organizationId** | **string** | | [default to undefined]
|
|
9
|
+
**organizationEmail** | **string** | | [default to undefined]
|
|
10
|
+
**code** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { VerifyOrganizationEmailCodeBody } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: VerifyOrganizationEmailCodeBody = {
|
|
18
|
+
organizationId,
|
|
19
|
+
organizationEmail,
|
|
20
|
+
code,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VerifyOrganizationEmailCodeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**verified** | **boolean** | | [default to undefined]
|
|
9
|
+
**alreadyVerified** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VerifyOrganizationEmailCodeResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VerifyOrganizationEmailCodeResponse = {
|
|
17
|
+
verified,
|
|
18
|
+
alreadyVerified,
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# VerifyVerificationCodeBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
**code** | **string** | | [default to undefined]
|
|
10
|
+
**context** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { VerifyVerificationCodeBody } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: VerifyVerificationCodeBody = {
|
|
18
|
+
email,
|
|
19
|
+
code,
|
|
20
|
+
context,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VerifyVerificationCodeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**verified** | **boolean** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VerifyVerificationCodeResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VerifyVerificationCodeResponse = {
|
|
16
|
+
verified,
|
|
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)
|