@tennac-booking/sdk 1.0.111 → 1.0.113
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 +15 -16
- package/README.md +23 -30
- package/api.ts +1150 -1925
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +838 -1282
- package/dist/api.js +542 -1109
- 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 +838 -1282
- package/dist/esm/api.js +556 -1119
- 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/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/CheckInEventParticipants200Response.md +22 -0
- package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
- package/docs/{ClientRegisterResponse.md → CheckInEventParticipantsRequest.md} +5 -7
- package/docs/ClientApi.md +58 -3
- package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
- package/docs/ClientFullOnboardingResponseClub.md +24 -0
- package/docs/ClientRegister201Response.md +26 -0
- package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
- package/docs/ClubMetadataResponse.md +30 -0
- package/docs/ClubMetadataResponseLocation.md +27 -0
- package/docs/ClubPlayerDetailResponse.md +0 -2
- package/docs/ClubSummary.md +2 -8
- package/docs/ClubsApi.md +55 -0
- package/docs/ClubsManagerApi.md +0 -56
- package/docs/ClubsStaffApi.md +59 -55
- package/docs/CreateEventRequest.md +1 -3
- package/docs/CreateOnsiteInvoiceRequest.md +28 -0
- package/docs/CreateOnsiteInvoiceResponse.md +22 -0
- package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
- package/docs/EventConflictCheckRequest.md +28 -0
- package/docs/EventConflictCheckResponse.md +26 -0
- package/docs/EventsManagerApi.md +114 -0
- package/docs/EventsStaffApi.md +20 -159
- package/docs/JoinEventRequest.md +8 -0
- package/docs/{AgendaBookingPlayer.md → JoinEventRequestPlayersPaymentMethodsInner.md} +5 -9
- package/docs/PaymentMethod.md +4 -0
- package/docs/PublishEventResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveSubscriptionResponse.md +0 -22
- package/docs/AgendaBooking.md +0 -30
- package/docs/AgendaBookingSlot.md +0 -30
- package/docs/AgendaPaymentStatus.md +0 -12
- package/docs/ClientAccountOnboardingRequest.md +0 -29
- package/docs/ClientAccountResponse.md +0 -44
- package/docs/ClientAccountsApi.md +0 -408
- package/docs/ClientMeResponse.md +0 -28
- package/docs/ClientOnboardingResponse.md +0 -27
- package/docs/ClientSubscriptionResponse.md +0 -34
- package/docs/GetSubscriptionsHistory200Response.md +0 -22
- package/docs/UpdateUserCreditsRequest.md +0 -20
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**bookings** | [**Array<
|
|
8
|
+
**bookings** | [**Array<BookingPopulated>**](BookingPopulated.md) | | [default to undefined]
|
|
9
9
|
**timeBounds** | [**TimeBounds**](TimeBounds.md) | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CheckInEventParticipants200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**invoices** | [**Array<CheckInEventParticipants200ResponseInvoicesInner>**](CheckInEventParticipants200ResponseInvoicesInner.md) | | [default to undefined]
|
|
9
|
+
**message** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CheckInEventParticipants200Response } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CheckInEventParticipants200Response = {
|
|
17
|
+
invoices,
|
|
18
|
+
message,
|
|
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,28 @@
|
|
|
1
|
+
# CheckInEventParticipants200ResponseInvoicesInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
|
|
9
|
+
**status** | **string** | | [default to undefined]
|
|
10
|
+
**amount** | **number** | | [default to undefined]
|
|
11
|
+
**invoiceId** | **string** | | [default to undefined]
|
|
12
|
+
**playerId** | **string** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { CheckInEventParticipants200ResponseInvoicesInner } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: CheckInEventParticipants200ResponseInvoicesInner = {
|
|
20
|
+
paymentMethod,
|
|
21
|
+
status,
|
|
22
|
+
amount,
|
|
23
|
+
invoiceId,
|
|
24
|
+
playerId,
|
|
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)
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CheckInEventParticipantsRequest
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**token** | **string** | | [default to undefined]
|
|
8
|
+
**playerIds** | **Array<string>** | | [default to undefined]
|
|
10
9
|
|
|
11
10
|
## Example
|
|
12
11
|
|
|
13
12
|
```typescript
|
|
14
|
-
import {
|
|
13
|
+
import { CheckInEventParticipantsRequest } from '@tennac-booking/sdk';
|
|
15
14
|
|
|
16
|
-
const instance:
|
|
17
|
-
|
|
18
|
-
token,
|
|
15
|
+
const instance: CheckInEventParticipantsRequest = {
|
|
16
|
+
playerIds,
|
|
19
17
|
};
|
|
20
18
|
```
|
|
21
19
|
|
package/docs/ClientApi.md
CHANGED
|
@@ -4,9 +4,64 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**clientRegister**](#clientregister) | **POST** /clients/register | |
|
|
7
8
|
|[**getManagedClubs**](#getmanagedclubs) | **GET** /clients/managed-clubs | |
|
|
8
9
|
|[**onboardClub**](#onboardclub) | **POST** /clients/onboarding | |
|
|
9
10
|
|
|
11
|
+
# **clientRegister**
|
|
12
|
+
> ClientRegister201Response clientRegister(clientRegisterRequest)
|
|
13
|
+
|
|
14
|
+
Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
ClientApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
ClientRegisterRequest
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ClientApi(configuration);
|
|
27
|
+
|
|
28
|
+
let clientRegisterRequest: ClientRegisterRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.clientRegister(
|
|
31
|
+
clientRegisterRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **clientRegisterRequest** | **ClientRegisterRequest**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**ClientRegister201Response**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**201** | Client enregistré avec succès | - |
|
|
60
|
+
|**400** | Données invalides | - |
|
|
61
|
+
|**500** | Erreur serveur | - |
|
|
62
|
+
|
|
63
|
+
[[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)
|
|
64
|
+
|
|
10
65
|
# **getManagedClubs**
|
|
11
66
|
> ManagedClubsResponse getManagedClubs()
|
|
12
67
|
|
|
@@ -54,7 +109,7 @@ This endpoint does not have any parameters.
|
|
|
54
109
|
[[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
110
|
|
|
56
111
|
# **onboardClub**
|
|
57
|
-
>
|
|
112
|
+
> ClientFullOnboardingResponse onboardClub(clientOnboardingRequestBody)
|
|
58
113
|
|
|
59
114
|
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
115
|
|
|
@@ -86,11 +141,11 @@ const { status, data } = await apiInstance.onboardClub(
|
|
|
86
141
|
|
|
87
142
|
### Return type
|
|
88
143
|
|
|
89
|
-
**
|
|
144
|
+
**ClientFullOnboardingResponse**
|
|
90
145
|
|
|
91
146
|
### Authorization
|
|
92
147
|
|
|
93
|
-
|
|
148
|
+
[clientAuth](../README.md#clientAuth)
|
|
94
149
|
|
|
95
150
|
### HTTP request headers
|
|
96
151
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClientFullOnboardingResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -8,26 +8,22 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**clientAccountId** | **string** | | [default to undefined]
|
|
9
9
|
**stripeCustomerId** | **string** | | [default to undefined]
|
|
10
10
|
**stripeConnectedAccountId** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**
|
|
12
|
-
**
|
|
11
|
+
**clientOnboardingLink** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**club** | [**ClientFullOnboardingResponseClub**](ClientFullOnboardingResponseClub.md) | | [default to undefined]
|
|
13
13
|
**message** | **string** | | [default to undefined]
|
|
14
|
-
**isPublicOrganization** | **boolean** | | [default to undefined]
|
|
15
|
-
**manualInvoiceRequired** | **boolean** | | [optional] [default to undefined]
|
|
16
14
|
|
|
17
15
|
## Example
|
|
18
16
|
|
|
19
17
|
```typescript
|
|
20
|
-
import {
|
|
18
|
+
import { ClientFullOnboardingResponse } from '@tennac-booking/sdk';
|
|
21
19
|
|
|
22
|
-
const instance:
|
|
20
|
+
const instance: ClientFullOnboardingResponse = {
|
|
23
21
|
clientAccountId,
|
|
24
22
|
stripeCustomerId,
|
|
25
23
|
stripeConnectedAccountId,
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
clientOnboardingLink,
|
|
25
|
+
club,
|
|
28
26
|
message,
|
|
29
|
-
isPublicOrganization,
|
|
30
|
-
manualInvoiceRequired,
|
|
31
27
|
};
|
|
32
28
|
```
|
|
33
29
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ClientFullOnboardingResponseClub
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubOnboardingLink** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**stripeAccountId** | **string** | | [default to undefined]
|
|
10
|
+
**clubId** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ClientFullOnboardingResponseClub } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ClientFullOnboardingResponseClub = {
|
|
18
|
+
clubOnboardingLink,
|
|
19
|
+
stripeAccountId,
|
|
20
|
+
clubId,
|
|
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,26 @@
|
|
|
1
|
+
# ClientRegister201Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to undefined]
|
|
9
|
+
**stripeCustomerId** | **string** | | [default to undefined]
|
|
10
|
+
**email** | **string** | | [default to undefined]
|
|
11
|
+
**userId** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClientRegister201Response } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClientRegister201Response = {
|
|
19
|
+
message,
|
|
20
|
+
stripeCustomerId,
|
|
21
|
+
email,
|
|
22
|
+
userId,
|
|
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)
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClientRegisterRequest
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**email** | **string** | | [default to undefined]
|
|
9
8
|
**password** | **string** | | [default to undefined]
|
|
10
|
-
**
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
11
10
|
**lastName** | **string** | | [default to undefined]
|
|
11
|
+
**firstName** | **string** | | [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
16
|
+
import { ClientRegisterRequest } from '@tennac-booking/sdk';
|
|
17
17
|
|
|
18
|
-
const instance:
|
|
19
|
-
email,
|
|
18
|
+
const instance: ClientRegisterRequest = {
|
|
20
19
|
password,
|
|
21
|
-
|
|
20
|
+
email,
|
|
22
21
|
lastName,
|
|
22
|
+
firstName,
|
|
23
23
|
};
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ClubMetadataResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID unique du club | [default to undefined]
|
|
9
|
+
**name** | **string** | Nom du club | [default to undefined]
|
|
10
|
+
**description** | **string** | Description du club | [optional] [default to undefined]
|
|
11
|
+
**picture** | **string** | URL de la photo de profil (pdp) | [optional] [default to undefined]
|
|
12
|
+
**primaryBannerPicture** | **string** | URL de la bannière principale | [optional] [default to undefined]
|
|
13
|
+
**location** | [**ClubMetadataResponseLocation**](ClubMetadataResponseLocation.md) | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ClubMetadataResponse } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ClubMetadataResponse = {
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
description,
|
|
24
|
+
picture,
|
|
25
|
+
primaryBannerPicture,
|
|
26
|
+
location,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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
|
+
# ClubMetadataResponseLocation
|
|
2
|
+
|
|
3
|
+
Localisation du club
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**zipCode** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ClubMetadataResponseLocation } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ClubMetadataResponseLocation = {
|
|
20
|
+
country,
|
|
21
|
+
zipCode,
|
|
22
|
+
city,
|
|
23
|
+
address,
|
|
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)
|
|
@@ -19,7 +19,6 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**city** | **string** | Ville | [default to undefined]
|
|
20
20
|
**sportsLevels** | [**Array<ClubPlayerDetailResponseSportsLevelsInner>**](ClubPlayerDetailResponseSportsLevelsInner.md) | Niveaux par sport | [default to undefined]
|
|
21
21
|
**birthDate** | **string** | Date de naissance | [default to undefined]
|
|
22
|
-
**credits** | **number** | | [default to undefined]
|
|
23
22
|
|
|
24
23
|
## Example
|
|
25
24
|
|
|
@@ -41,7 +40,6 @@ const instance: ClubPlayerDetailResponse = {
|
|
|
41
40
|
city,
|
|
42
41
|
sportsLevels,
|
|
43
42
|
birthDate,
|
|
44
|
-
credits,
|
|
45
43
|
};
|
|
46
44
|
```
|
|
47
45
|
|
package/docs/ClubSummary.md
CHANGED
|
@@ -7,12 +7,9 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
|
-
**
|
|
11
|
-
**bannerPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
-
**galleryPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
13
11
|
**location** | [**UserLocationSummary**](UserLocationSummary.md) | | [default to undefined]
|
|
14
12
|
**visitCount** | **number** | | [optional] [default to undefined]
|
|
15
|
-
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
16
13
|
|
|
17
14
|
## Example
|
|
18
15
|
|
|
@@ -22,12 +19,9 @@ import { ClubSummary } from '@tennac-booking/sdk';
|
|
|
22
19
|
const instance: ClubSummary = {
|
|
23
20
|
id,
|
|
24
21
|
name,
|
|
25
|
-
|
|
26
|
-
bannerPictures,
|
|
27
|
-
galleryPictures,
|
|
22
|
+
address,
|
|
28
23
|
location,
|
|
29
24
|
visitCount,
|
|
30
|
-
tags,
|
|
31
25
|
};
|
|
32
26
|
```
|
|
33
27
|
|
package/docs/ClubsApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost*
|
|
|
10
10
|
|[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | |
|
|
11
11
|
|[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | |
|
|
12
12
|
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/info | |
|
|
13
|
+
|[**getClubMetadata**](#getclubmetadata) | **GET** /api/clubs/{clubId}/metadata | |
|
|
13
14
|
|[**getClubPageInfo**](#getclubpageinfo) | **GET** /api/clubs/club-page/{clubId} | |
|
|
14
15
|
|[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
|
|
15
16
|
|[**getClubsWithVerificationDomains**](#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains | |
|
|
@@ -313,6 +314,60 @@ This endpoint does not have any parameters.
|
|
|
313
314
|
|
|
314
315
|
[[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)
|
|
315
316
|
|
|
317
|
+
# **getClubMetadata**
|
|
318
|
+
> ClubMetadataResponse getClubMetadata()
|
|
319
|
+
|
|
320
|
+
Récupère les métadonnées publiques d\'un club
|
|
321
|
+
|
|
322
|
+
### Example
|
|
323
|
+
|
|
324
|
+
```typescript
|
|
325
|
+
import {
|
|
326
|
+
ClubsApi,
|
|
327
|
+
Configuration
|
|
328
|
+
} from '@tennac-booking/sdk';
|
|
329
|
+
|
|
330
|
+
const configuration = new Configuration();
|
|
331
|
+
const apiInstance = new ClubsApi(configuration);
|
|
332
|
+
|
|
333
|
+
let clubId: string; // (default to undefined)
|
|
334
|
+
|
|
335
|
+
const { status, data } = await apiInstance.getClubMetadata(
|
|
336
|
+
clubId
|
|
337
|
+
);
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Parameters
|
|
341
|
+
|
|
342
|
+
|Name | Type | Description | Notes|
|
|
343
|
+
|------------- | ------------- | ------------- | -------------|
|
|
344
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
### Return type
|
|
348
|
+
|
|
349
|
+
**ClubMetadataResponse**
|
|
350
|
+
|
|
351
|
+
### Authorization
|
|
352
|
+
|
|
353
|
+
No authorization required
|
|
354
|
+
|
|
355
|
+
### HTTP request headers
|
|
356
|
+
|
|
357
|
+
- **Content-Type**: Not defined
|
|
358
|
+
- **Accept**: application/json
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
### HTTP response details
|
|
362
|
+
| Status code | Description | Response headers |
|
|
363
|
+
|-------------|-------------|------------------|
|
|
364
|
+
|**200** | Métadonnées publiques du club | - |
|
|
365
|
+
|**400** | Bad Request | - |
|
|
366
|
+
|**404** | Club non trouvé | - |
|
|
367
|
+
|**500** | Server Error | - |
|
|
368
|
+
|
|
369
|
+
[[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)
|
|
370
|
+
|
|
316
371
|
# **getClubPageInfo**
|
|
317
372
|
> ClubPageResponse getClubPageInfo()
|
|
318
373
|
|
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -11,7 +11,6 @@ All URIs are relative to *http://localhost*
|
|
|
11
11
|
|[**createPriceForSubscriptionPlan**](#createpriceforsubscriptionplan) | **POST** /api/clubs/subscription-plans/{productId}/prices | |
|
|
12
12
|
|[**createSportForClub**](#createsportforclub) | **POST** /api/clubs/sports | |
|
|
13
13
|
|[**deleteActuality**](#deleteactuality) | **DELETE** /api/clubs/actualities/{actualityId} | |
|
|
14
|
-
|[**deleteClubMember**](#deleteclubmember) | **DELETE** /api/clubs/members/{userId} | |
|
|
15
14
|
|[**deleteCourt**](#deletecourt) | **DELETE** /api/clubs/courts/{courtId} | |
|
|
16
15
|
|[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/slots | |
|
|
17
16
|
|[**deleteSubscriptionPlanForClub**](#deletesubscriptionplanforclub) | **DELETE** /api/clubs/subscription-plans/{productId} | |
|
|
@@ -390,61 +389,6 @@ const { status, data } = await apiInstance.deleteActuality(
|
|
|
390
389
|
|
|
391
390
|
[[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)
|
|
392
391
|
|
|
393
|
-
# **deleteClubMember**
|
|
394
|
-
> AddClubMember201Response deleteClubMember()
|
|
395
|
-
|
|
396
|
-
Supprime un membre d\'un club
|
|
397
|
-
|
|
398
|
-
### Example
|
|
399
|
-
|
|
400
|
-
```typescript
|
|
401
|
-
import {
|
|
402
|
-
ClubsManagerApi,
|
|
403
|
-
Configuration
|
|
404
|
-
} from '@tennac-booking/sdk';
|
|
405
|
-
|
|
406
|
-
const configuration = new Configuration();
|
|
407
|
-
const apiInstance = new ClubsManagerApi(configuration);
|
|
408
|
-
|
|
409
|
-
let userId: string; // (default to undefined)
|
|
410
|
-
|
|
411
|
-
const { status, data } = await apiInstance.deleteClubMember(
|
|
412
|
-
userId
|
|
413
|
-
);
|
|
414
|
-
```
|
|
415
|
-
|
|
416
|
-
### Parameters
|
|
417
|
-
|
|
418
|
-
|Name | Type | Description | Notes|
|
|
419
|
-
|------------- | ------------- | ------------- | -------------|
|
|
420
|
-
| **userId** | [**string**] | | defaults to undefined|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
### Return type
|
|
424
|
-
|
|
425
|
-
**AddClubMember201Response**
|
|
426
|
-
|
|
427
|
-
### Authorization
|
|
428
|
-
|
|
429
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
430
|
-
|
|
431
|
-
### HTTP request headers
|
|
432
|
-
|
|
433
|
-
- **Content-Type**: Not defined
|
|
434
|
-
- **Accept**: application/json
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
### HTTP response details
|
|
438
|
-
| Status code | Description | Response headers |
|
|
439
|
-
|-------------|-------------|------------------|
|
|
440
|
-
|**200** | Membre supprimé | - |
|
|
441
|
-
|**400** | Bad Request | - |
|
|
442
|
-
|**403** | Forbidden | - |
|
|
443
|
-
|**404** | Membre introuvable | - |
|
|
444
|
-
|**500** | Server Error | - |
|
|
445
|
-
|
|
446
|
-
[[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)
|
|
447
|
-
|
|
448
392
|
# **deleteCourt**
|
|
449
393
|
> DeleteCourtResponse deleteCourt()
|
|
450
394
|
|