@tennac-booking/sdk 1.0.111 → 1.0.112
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 +13 -16
- package/README.md +20 -30
- package/api.ts +1047 -1975
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +654 -1214
- package/dist/api.js +480 -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 +654 -1214
- package/dist/esm/api.js +494 -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/ClubPlayerDetailResponse.md +0 -2
- package/docs/ClubSummary.md +2 -8
- 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
|
|
|
@@ -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/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
|
|
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createOnsiteInvoiceForBooking**](#createonsiteinvoiceforbooking) | **POST** /api/clubs/staff/bookings/{bookingId}/invoices | |
|
|
7
8
|
|[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
|
|
8
9
|
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
|
|
9
10
|
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
@@ -12,7 +13,64 @@ All URIs are relative to *http://localhost*
|
|
|
12
13
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
13
14
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
14
15
|
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
# **createOnsiteInvoiceForBooking**
|
|
18
|
+
> CreateOnsiteInvoiceResponse createOnsiteInvoiceForBooking(createOnsiteInvoiceRequest)
|
|
19
|
+
|
|
20
|
+
Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import {
|
|
26
|
+
ClubsStaffApi,
|
|
27
|
+
Configuration,
|
|
28
|
+
CreateOnsiteInvoiceRequest
|
|
29
|
+
} from '@tennac-booking/sdk';
|
|
30
|
+
|
|
31
|
+
const configuration = new Configuration();
|
|
32
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
33
|
+
|
|
34
|
+
let bookingId: string; // (default to undefined)
|
|
35
|
+
let createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest; //
|
|
36
|
+
|
|
37
|
+
const { status, data } = await apiInstance.createOnsiteInvoiceForBooking(
|
|
38
|
+
bookingId,
|
|
39
|
+
createOnsiteInvoiceRequest
|
|
40
|
+
);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
|Name | Type | Description | Notes|
|
|
46
|
+
|------------- | ------------- | ------------- | -------------|
|
|
47
|
+
| **createOnsiteInvoiceRequest** | **CreateOnsiteInvoiceRequest**| | |
|
|
48
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**CreateOnsiteInvoiceResponse**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: application/json
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### HTTP response details
|
|
66
|
+
| Status code | Description | Response headers |
|
|
67
|
+
|-------------|-------------|------------------|
|
|
68
|
+
|**201** | Invoice créé et lié à la réservation | - |
|
|
69
|
+
|**400** | Requête invalide | - |
|
|
70
|
+
|**404** | Réservation non trouvée | - |
|
|
71
|
+
|**500** | Erreur serveur | - |
|
|
72
|
+
|
|
73
|
+
[[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)
|
|
16
74
|
|
|
17
75
|
# **getActualities**
|
|
18
76
|
> GetActualities200Response getActualities()
|
|
@@ -372,57 +430,3 @@ const { status, data } = await apiInstance.getUserProfileStaff(
|
|
|
372
430
|
|
|
373
431
|
[[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)
|
|
374
432
|
|
|
375
|
-
# **updateUserCreditsStaff**
|
|
376
|
-
> StaffUserProfileResponse updateUserCreditsStaff(updateUserCreditsRequest)
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
### Example
|
|
380
|
-
|
|
381
|
-
```typescript
|
|
382
|
-
import {
|
|
383
|
-
ClubsStaffApi,
|
|
384
|
-
Configuration,
|
|
385
|
-
UpdateUserCreditsRequest
|
|
386
|
-
} from '@tennac-booking/sdk';
|
|
387
|
-
|
|
388
|
-
const configuration = new Configuration();
|
|
389
|
-
const apiInstance = new ClubsStaffApi(configuration);
|
|
390
|
-
|
|
391
|
-
let id: string; // (default to undefined)
|
|
392
|
-
let updateUserCreditsRequest: UpdateUserCreditsRequest; //
|
|
393
|
-
|
|
394
|
-
const { status, data } = await apiInstance.updateUserCreditsStaff(
|
|
395
|
-
id,
|
|
396
|
-
updateUserCreditsRequest
|
|
397
|
-
);
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
### Parameters
|
|
401
|
-
|
|
402
|
-
|Name | Type | Description | Notes|
|
|
403
|
-
|------------- | ------------- | ------------- | -------------|
|
|
404
|
-
| **updateUserCreditsRequest** | **UpdateUserCreditsRequest**| | |
|
|
405
|
-
| **id** | [**string**] | | defaults to undefined|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
### Return type
|
|
409
|
-
|
|
410
|
-
**StaffUserProfileResponse**
|
|
411
|
-
|
|
412
|
-
### Authorization
|
|
413
|
-
|
|
414
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
415
|
-
|
|
416
|
-
### HTTP request headers
|
|
417
|
-
|
|
418
|
-
- **Content-Type**: application/json
|
|
419
|
-
- **Accept**: application/json
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
### HTTP response details
|
|
423
|
-
| Status code | Description | Response headers |
|
|
424
|
-
|-------------|-------------|------------------|
|
|
425
|
-
|**200** | Ok | - |
|
|
426
|
-
|
|
427
|
-
[[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)
|
|
428
|
-
|
|
@@ -13,9 +13,8 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**endDate** | **string** | | [default to undefined]
|
|
14
14
|
**courts** | **Array<string>** | | [default to undefined]
|
|
15
15
|
**sports** | **Array<string>** | | [default to undefined]
|
|
16
|
-
**recurringType** | **string** | | [
|
|
16
|
+
**recurringType** | **string** | | [default to undefined]
|
|
17
17
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**occurrences** | **number** | | [optional] [default to undefined]
|
|
19
18
|
**participationType** | **string** | | [default to undefined]
|
|
20
19
|
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
21
20
|
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
@@ -42,7 +41,6 @@ const instance: CreateEventRequest = {
|
|
|
42
41
|
sports,
|
|
43
42
|
recurringType,
|
|
44
43
|
recurrenceEndDate,
|
|
45
|
-
occurrences,
|
|
46
44
|
participationType,
|
|
47
45
|
participants,
|
|
48
46
|
teams,
|