@tennac-booking/sdk 1.0.96 → 1.0.98
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 +14 -0
- package/README.md +29 -2
- package/api.ts +6211 -4937
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +875 -15
- package/dist/api.js +694 -4
- 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 +875 -15
- package/dist/esm/api.js +682 -1
- 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/ActiveSubscriptionResponse.md +22 -0
- package/docs/BookingPriceBody.md +2 -0
- package/docs/BookingPriceResponse.md +2 -0
- package/docs/ClientAccountOnboardingRequest.md +29 -0
- package/docs/ClientAccountOnboardingResponse.md +34 -0
- package/docs/ClientAccountResponse.md +44 -0
- package/docs/ClientAccountsApi.md +408 -0
- package/docs/ClientApi.md +109 -0
- package/docs/ClientMeResponse.md +28 -0
- package/docs/ClientOnboardingRequestBody.md +33 -0
- package/docs/ClientOnboardingResponse.md +27 -0
- package/docs/ClientRegisterRequestBody.md +26 -0
- package/docs/ClientRegisterResponse.md +22 -0
- package/docs/ClientSubscriptionResponse.md +34 -0
- package/docs/CreateBookingRequest.md +0 -2
- package/docs/GetSubscriptionsHistory200Response.md +22 -0
- package/docs/IUserAttributes.md +2 -0
- package/docs/ManagedClubsResponse.md +23 -0
- package/docs/StaffUserProfileResponse.md +2 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# ClientApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getManagedClubs**](#getmanagedclubs) | **GET** /clients/managed-clubs | |
|
|
8
|
+
|[**onboardClub**](#onboardclub) | **POST** /clients/onboarding | |
|
|
9
|
+
|
|
10
|
+
# **getManagedClubs**
|
|
11
|
+
> ManagedClubsResponse getManagedClubs()
|
|
12
|
+
|
|
13
|
+
Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
ClientApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new ClientApi(configuration);
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getManagedClubs();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
This endpoint does not have any parameters.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Return type
|
|
34
|
+
|
|
35
|
+
**ManagedClubsResponse**
|
|
36
|
+
|
|
37
|
+
### Authorization
|
|
38
|
+
|
|
39
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: Not defined
|
|
44
|
+
- **Accept**: application/json
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### HTTP response details
|
|
48
|
+
| Status code | Description | Response headers |
|
|
49
|
+
|-------------|-------------|------------------|
|
|
50
|
+
|**200** | Clubs récupérés avec succès | - |
|
|
51
|
+
|**401** | Non authentifié | - |
|
|
52
|
+
|**500** | Erreur serveur | - |
|
|
53
|
+
|
|
54
|
+
[[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)
|
|
55
|
+
|
|
56
|
+
# **onboardClub**
|
|
57
|
+
> ClientOnboardingResponse onboardClub(clientOnboardingRequestBody)
|
|
58
|
+
|
|
59
|
+
Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
60
|
+
|
|
61
|
+
### Example
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
import {
|
|
65
|
+
ClientApi,
|
|
66
|
+
Configuration,
|
|
67
|
+
ClientOnboardingRequestBody
|
|
68
|
+
} from '@tennac-booking/sdk';
|
|
69
|
+
|
|
70
|
+
const configuration = new Configuration();
|
|
71
|
+
const apiInstance = new ClientApi(configuration);
|
|
72
|
+
|
|
73
|
+
let clientOnboardingRequestBody: ClientOnboardingRequestBody; //Les données du club à créer
|
|
74
|
+
|
|
75
|
+
const { status, data } = await apiInstance.onboardClub(
|
|
76
|
+
clientOnboardingRequestBody
|
|
77
|
+
);
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Parameters
|
|
81
|
+
|
|
82
|
+
|Name | Type | Description | Notes|
|
|
83
|
+
|------------- | ------------- | ------------- | -------------|
|
|
84
|
+
| **clientOnboardingRequestBody** | **ClientOnboardingRequestBody**| Les données du club à créer | |
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Return type
|
|
88
|
+
|
|
89
|
+
**ClientOnboardingResponse**
|
|
90
|
+
|
|
91
|
+
### Authorization
|
|
92
|
+
|
|
93
|
+
No authorization required
|
|
94
|
+
|
|
95
|
+
### HTTP request headers
|
|
96
|
+
|
|
97
|
+
- **Content-Type**: application/json
|
|
98
|
+
- **Accept**: application/json
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### HTTP response details
|
|
102
|
+
| Status code | Description | Response headers |
|
|
103
|
+
|-------------|-------------|------------------|
|
|
104
|
+
|**201** | Club créé avec succès | - |
|
|
105
|
+
|**400** | Données invalides | - |
|
|
106
|
+
|**500** | Erreur serveur | - |
|
|
107
|
+
|
|
108
|
+
[[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)
|
|
109
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ClientMeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**firstName** | **string** | | [default to undefined]
|
|
11
|
+
**lastName** | **string** | | [default to undefined]
|
|
12
|
+
**isClient** | **boolean** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ClientMeResponse } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ClientMeResponse = {
|
|
20
|
+
id,
|
|
21
|
+
email,
|
|
22
|
+
firstName,
|
|
23
|
+
lastName,
|
|
24
|
+
isClient,
|
|
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)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ClientOnboardingRequestBody
|
|
2
|
+
|
|
3
|
+
Requête pour l\'onboarding d\'un club
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**clubName** | **string** | Nom du club | [default to undefined]
|
|
10
|
+
**email** | **string** | Email du club pour le compte Stripe | [default to undefined]
|
|
11
|
+
**phone** | **string** | Numéro de téléphone du club (optionnel) | [optional] [default to undefined]
|
|
12
|
+
**address** | **string** | Adresse du club (optionnel) | [optional] [default to undefined]
|
|
13
|
+
**city** | **string** | Ville du club (optionnel) | [optional] [default to undefined]
|
|
14
|
+
**postalCode** | **string** | Code postal du club (optionnel) | [optional] [default to undefined]
|
|
15
|
+
**country** | **string** | Pays du club (optionnel) | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ClientOnboardingRequestBody } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ClientOnboardingRequestBody = {
|
|
23
|
+
clubName,
|
|
24
|
+
email,
|
|
25
|
+
phone,
|
|
26
|
+
address,
|
|
27
|
+
city,
|
|
28
|
+
postalCode,
|
|
29
|
+
country,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[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,27 @@
|
|
|
1
|
+
# ClientOnboardingResponse
|
|
2
|
+
|
|
3
|
+
Réponse pour l\'onboarding d\'un club
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**clubId** | **string** | ID unique du club créé | [default to undefined]
|
|
10
|
+
**stripeAccountId** | **string** | ID du compte Stripe Connect du club | [default to undefined]
|
|
11
|
+
**onboardingLink** | **string** | Lien d\'onboarding Stripe pour configurer le compte | [default to undefined]
|
|
12
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ClientOnboardingResponse } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ClientOnboardingResponse = {
|
|
20
|
+
clubId,
|
|
21
|
+
stripeAccountId,
|
|
22
|
+
onboardingLink,
|
|
23
|
+
message,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[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,26 @@
|
|
|
1
|
+
# ClientRegisterRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
**password** | **string** | | [default to undefined]
|
|
10
|
+
**firstName** | **string** | | [default to undefined]
|
|
11
|
+
**lastName** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClientRegisterRequestBody } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClientRegisterRequestBody = {
|
|
19
|
+
email,
|
|
20
|
+
password,
|
|
21
|
+
firstName,
|
|
22
|
+
lastName,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ClientRegisterResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**token** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClientRegisterResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClientRegisterResponse = {
|
|
17
|
+
id,
|
|
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)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ClientSubscriptionResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**subscriptionType** | **string** | | [default to undefined]
|
|
10
|
+
**status** | **string** | | [default to undefined]
|
|
11
|
+
**startDate** | **string** | | [default to undefined]
|
|
12
|
+
**endDate** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**priceAmountInCents** | **number** | | [default to undefined]
|
|
14
|
+
**currency** | **string** | | [default to undefined]
|
|
15
|
+
**billingCycle** | **string** | | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ClientSubscriptionResponse } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ClientSubscriptionResponse = {
|
|
23
|
+
id,
|
|
24
|
+
subscriptionType,
|
|
25
|
+
status,
|
|
26
|
+
startDate,
|
|
27
|
+
endDate,
|
|
28
|
+
priceAmountInCents,
|
|
29
|
+
currency,
|
|
30
|
+
billingCycle,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
|
|
9
9
|
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste de tous les joueurs avec leurs méthodes de paiement (INCLUT LE CRÉATEUR) | [default to undefined]
|
|
10
|
-
**creatorShare** | **number** | | [optional] [default to undefined]
|
|
11
10
|
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
|
|
12
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
13
12
|
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
@@ -21,7 +20,6 @@ import { CreateBookingRequest } from '@tennac-booking/sdk';
|
|
|
21
20
|
const instance: CreateBookingRequest = {
|
|
22
21
|
slotIds,
|
|
23
22
|
players,
|
|
24
|
-
creatorShare,
|
|
25
23
|
isCreatorPayingAll,
|
|
26
24
|
paymentMethod,
|
|
27
25
|
useDefaultPaymentMethod,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GetSubscriptionsHistory200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscriptions** | [**Array<ClientSubscriptionResponse>**](ClientSubscriptionResponse.md) | | [default to undefined]
|
|
9
|
+
**clientAccountId** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { GetSubscriptionsHistory200Response } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: GetSubscriptionsHistory200Response = {
|
|
17
|
+
subscriptions,
|
|
18
|
+
clientAccountId,
|
|
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)
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
|
|
23
23
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
24
24
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
25
25
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
26
|
+
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
26
27
|
**createdAt** | **string** | | [default to undefined]
|
|
27
28
|
**updatedAt** | **string** | | [default to undefined]
|
|
28
29
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
@@ -57,6 +58,7 @@ const instance: IUserAttributes = {
|
|
|
57
58
|
emailVerificationExpires,
|
|
58
59
|
organizations,
|
|
59
60
|
isAdmin,
|
|
61
|
+
isClient,
|
|
60
62
|
createdAt,
|
|
61
63
|
updatedAt,
|
|
62
64
|
isLevelCertified,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ManagedClubsResponse
|
|
2
|
+
|
|
3
|
+
Réponse listant les clubs gérés par l\'utilisateur
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**count** | **number** | Nombre de clubs gérés | [default to undefined]
|
|
10
|
+
**clubs** | **Array<any>** | Liste des clubs gérés | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ManagedClubsResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ManagedClubsResponse = {
|
|
18
|
+
count,
|
|
19
|
+
clubs,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
|
|
23
23
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
24
24
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
25
25
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
26
|
+
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
26
27
|
**createdAt** | **string** | | [default to undefined]
|
|
27
28
|
**updatedAt** | **string** | | [default to undefined]
|
|
28
29
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
@@ -59,6 +60,7 @@ const instance: StaffUserProfileResponse = {
|
|
|
59
60
|
emailVerificationExpires,
|
|
60
61
|
organizations,
|
|
61
62
|
isAdmin,
|
|
63
|
+
isClient,
|
|
62
64
|
createdAt,
|
|
63
65
|
updatedAt,
|
|
64
66
|
isLevelCertified,
|
|
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
|
|
23
23
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
24
24
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
25
25
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
26
|
+
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
26
27
|
**createdAt** | **string** | | [default to undefined]
|
|
27
28
|
**updatedAt** | **string** | | [default to undefined]
|
|
28
29
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
@@ -64,6 +65,7 @@ const instance: UserProfileResponse = {
|
|
|
64
65
|
emailVerificationExpires,
|
|
65
66
|
organizations,
|
|
66
67
|
isAdmin,
|
|
68
|
+
isClient,
|
|
67
69
|
createdAt,
|
|
68
70
|
updatedAt,
|
|
69
71
|
isLevelCertified,
|
package/index.ts
CHANGED