@tennac-booking/sdk 1.0.114 → 1.0.116
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 +305 -299
- package/README.md +10 -2
- package/api.ts +364 -21
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +285 -21
- package/dist/api.js +155 -25
- 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 +285 -21
- package/dist/esm/api.js +151 -21
- 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/ActiveClub.md +24 -0
- package/docs/ActiveClubListResponse.md +20 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/AddFavoriteClubRequestBody.md +20 -0
- package/docs/AddFavoritePlayerRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupResponse.md +24 -0
- package/docs/AdminClubAnalyticsApi.md +249 -0
- package/docs/AdminClubSlotsApi.md +182 -0
- package/docs/AdminClubSubscriptionsApi.md +394 -0
- package/docs/AdminClubsApi.md +170 -0
- package/docs/ApiErrorResponse.md +22 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/Booking.md +32 -0
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
- package/docs/BookingPopulatedSlotId.md +26 -0
- package/docs/BookingPopulatedSlotIdCourtId.md +22 -0
- package/docs/BookingPopulatedUserId.md +24 -0
- package/docs/BookingsUserApi.md +1 -1
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
- package/docs/ClientApi.md +49 -2
- package/docs/ClientFullOnboardingResponseClub.md +2 -0
- package/docs/ClientOnboardingRequestBody.md +2 -0
- package/docs/ClientSubscription.md +31 -0
- package/docs/ClientSubscriptionItem.md +25 -0
- package/docs/ClientSubscriptionsResponse.md +21 -0
- package/docs/Club.md +46 -0
- package/docs/ClubInfoResponse.md +48 -0
- package/docs/ClubListResponse.md +22 -0
- package/docs/ClubMember.md +34 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubRole.md +30 -0
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +40 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/ClubsResponse.md +22 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/Court.md +32 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreateEventRequest.md +2 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/DeleteClub200Response.md +20 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/DeleteSlotsResponse.md +20 -0
- package/docs/DeleteSport200Response.md +20 -0
- package/docs/EstimateEventPrice200Response.md +26 -0
- package/docs/EstimateEventPriceRequest.md +22 -0
- package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventResponse.md +2 -0
- package/docs/EventsApi.md +58 -0
- package/docs/FavoriteClubItem.md +26 -0
- package/docs/FavoriteClubResponse.md +22 -0
- package/docs/FavoritePlayerPublic.md +28 -0
- package/docs/FavoritePlayersIdsResponse.md +22 -0
- package/docs/FrequentlyPlayedWithItem.md +28 -0
- package/docs/FrequentlyVisitedClubItem.md +24 -0
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +22 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/GetUserRolesResponse.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +26 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +24 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
- package/docs/LevelBySportsItem.md +22 -0
- package/docs/ManagerBookingsApi.md +125 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/ManagerClubCourtsApi.md +108 -0
- package/docs/ManagerClubRolesApi.md +268 -0
- package/docs/ManagerClubSlotsApi.md +119 -0
- package/docs/ManagerClubSubscriptionsApi.md +387 -0
- package/docs/ManagerClubsApi.md +253 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/ManagerSportsApi.md +174 -0
- package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
- package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
- package/docs/PriceResponse.md +32 -0
- package/docs/ProfileVisibilityResponse.md +20 -0
- package/docs/PublicClubUser.md +46 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/PublicClubUserLevelBySportsInner.md +22 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SetupPaymentMethodRequestBody.md +20 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/Slot.md +24 -0
- package/docs/SlotException.md +26 -0
- package/docs/SlotResponse.md +34 -0
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +24 -0
- package/docs/SportsResponse.md +22 -0
- package/docs/StaffClubAnalyticsApi.md +104 -0
- package/docs/StaffClubBookingsApi.md +52 -0
- package/docs/StaffClubsApi.md +100 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/docs/StaffProfileApi.md +54 -0
- package/docs/StripeStatus.md +16 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionPlan.md +36 -0
- package/docs/SubscriptionResponse.md +36 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateProfilePictureRequestBody.md +20 -0
- package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UpdateUserCityRequestBody.md +20 -0
- package/docs/UpdateUserDescriptionRequestBody.md +20 -0
- package/docs/User.md +40 -0
- package/docs/UserAuthenticationApi.md +226 -0
- package/docs/UserBookingsApi.md +120 -0
- package/docs/UserCityResponse.md +20 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/UserDescriptionResponse.md +20 -0
- package/docs/UserFavoriteClubsResponse.md +20 -0
- package/docs/UserPaymentApi.md +176 -0
- package/docs/UserProfileApi.md +1201 -0
- package/docs/UserResponse.md +38 -0
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersResponse.md +22 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ClubsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubs** | [**Array<ClubResponse>**](ClubResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubsResponse = {
|
|
17
|
+
clubs,
|
|
18
|
+
total,
|
|
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,20 @@
|
|
|
1
|
+
# ConfirmPaymentMethodSetupRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**setupIntentId** | **string** | ID du Setup Intent à confirmer | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ConfirmPaymentMethodSetupRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: ConfirmPaymentMethodSetupRequestBody = {
|
|
16
|
+
setupIntentId,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ConfirmPaymentMethodSetupResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message de confirmation | [optional] [default to undefined]
|
|
9
|
+
**paymentMethodId** | **string** | ID de la méthode de paiement configurée | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ConfirmPaymentMethodSetupResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ConfirmPaymentMethodSetupResponse = {
|
|
17
|
+
message,
|
|
18
|
+
paymentMethodId,
|
|
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/Court.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Court
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**status** | [**CourtStatus**](CourtStatus.md) | | [default to undefined]
|
|
10
|
+
**comments** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**pricePerSlot** | **number** | | [default to undefined]
|
|
12
|
+
**slotDefaultDuration** | **number** | | [default to undefined]
|
|
13
|
+
**startTimeInTheDayInMinutes** | **number** | | [default to undefined]
|
|
14
|
+
**endTimeInTheDayInMinutes** | **number** | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { Court } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: Court = {
|
|
22
|
+
name,
|
|
23
|
+
status,
|
|
24
|
+
comments,
|
|
25
|
+
pricePerSlot,
|
|
26
|
+
slotDefaultDuration,
|
|
27
|
+
startTimeInTheDayInMinutes,
|
|
28
|
+
endTimeInTheDayInMinutes,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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
|
+
# CourtsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**courts** | [**Array<CourtResponse>**](CourtResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CourtsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CourtsResponse = {
|
|
17
|
+
courts,
|
|
18
|
+
total,
|
|
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
|
+
# CreateClubRoleRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Nom du rôle à créer (ex: joueur, coach, admin) | [default to undefined]
|
|
9
|
+
**description** | **string** | Description du rôle | [default to undefined]
|
|
10
|
+
**permissions** | **Array<string>** | Permissions associées à ce rôle | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CreateClubRoleRequestBody } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: CreateClubRoleRequestBody = {
|
|
18
|
+
name,
|
|
19
|
+
description,
|
|
20
|
+
permissions,
|
|
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,28 @@
|
|
|
1
|
+
# CreateClubSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
**reservationStartTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**reservationEndTime** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**maxSimultaneousReservations** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**allowWeekendReservations** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { CreateClubSettingsRequest } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: CreateClubSettingsRequest = {
|
|
20
|
+
clubId,
|
|
21
|
+
reservationStartTime,
|
|
22
|
+
reservationEndTime,
|
|
23
|
+
maxSimultaneousReservations,
|
|
24
|
+
allowWeekendReservations,
|
|
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)
|
|
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
21
21
|
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
22
22
|
**playerLimit** | **number** | | [optional] [default to undefined]
|
|
23
|
+
**playersPerTeam** | **number** | | [optional] [default to undefined]
|
|
23
24
|
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
24
25
|
**price** | **number** | | [optional] [default to undefined]
|
|
25
26
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
@@ -47,6 +48,7 @@ const instance: CreateEventRequest = {
|
|
|
47
48
|
participants,
|
|
48
49
|
teams,
|
|
49
50
|
playerLimit,
|
|
51
|
+
playersPerTeam,
|
|
50
52
|
teamLimit,
|
|
51
53
|
price,
|
|
52
54
|
subscriberPrices,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CreatePriceRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**amount** | **number** | Montant en centimes (ex: 2000 pour 20€) | [default to undefined]
|
|
9
|
+
**currency** | **string** | Devise | [default to 'eur']
|
|
10
|
+
**interval** | **string** | Intervalle de facturation | [default to undefined]
|
|
11
|
+
**intervalCount** | **number** | Nombre d\'intervalles entre chaque facturation | [optional] [default to 1]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CreatePriceRequest } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: CreatePriceRequest = {
|
|
19
|
+
amount,
|
|
20
|
+
currency,
|
|
21
|
+
interval,
|
|
22
|
+
intervalCount,
|
|
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,20 @@
|
|
|
1
|
+
# DeleteClub200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteClub200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteClub200Response = {
|
|
16
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteClubRole200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteClubRole200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteClubRole200Response = {
|
|
16
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteClubSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteClubSettingsRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteClubSettingsRequest = {
|
|
16
|
+
clubId,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteEvent200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteEvent200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteEvent200Response = {
|
|
16
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteSlotsByClubInRange200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteSlotsByClubInRange200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteSlotsByClubInRange200Response = {
|
|
16
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteSlotsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteSlotsResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteSlotsResponse = {
|
|
16
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteSport200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteSport200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteSport200Response = {
|
|
16
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# EstimateEventPrice200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**currency** | **string** | | [default to undefined]
|
|
9
|
+
**total** | **number** | | [default to undefined]
|
|
10
|
+
**perPayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
11
|
+
**perPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { EstimateEventPrice200Response } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: EstimateEventPrice200Response = {
|
|
19
|
+
currency,
|
|
20
|
+
total,
|
|
21
|
+
perPayer,
|
|
22
|
+
perPlayer,
|
|
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
|
+
# EstimateEventPriceRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**shares** | [**Array<EstimateEventPriceRequestSharesInner>**](EstimateEventPriceRequestSharesInner.md) | | [optional] [default to undefined]
|
|
9
|
+
**playerIds** | **Array<string>** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EstimateEventPriceRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EstimateEventPriceRequest = {
|
|
17
|
+
shares,
|
|
18
|
+
playerIds,
|
|
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,22 @@
|
|
|
1
|
+
# EstimateEventPriceRequestSharesInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**paysAlsoFor** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
**playerId** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EstimateEventPriceRequestSharesInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EstimateEventPriceRequestSharesInner = {
|
|
17
|
+
paysAlsoFor,
|
|
18
|
+
playerId,
|
|
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/Event.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Event
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**title** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**endDate** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**courts** | **Array<string>** | | [optional] [default to undefined]
|
|
15
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
**createdBy** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { Event } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: Event = {
|
|
26
|
+
_id,
|
|
27
|
+
clubId,
|
|
28
|
+
title,
|
|
29
|
+
description,
|
|
30
|
+
startDate,
|
|
31
|
+
endDate,
|
|
32
|
+
courts,
|
|
33
|
+
isActive,
|
|
34
|
+
createdBy,
|
|
35
|
+
createdAt,
|
|
36
|
+
updatedAt,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[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,32 @@
|
|
|
1
|
+
# EventBooking
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**eventId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**teamName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**players** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { EventBooking } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: EventBooking = {
|
|
22
|
+
_id,
|
|
23
|
+
eventId,
|
|
24
|
+
teamName,
|
|
25
|
+
players,
|
|
26
|
+
status,
|
|
27
|
+
createdAt,
|
|
28
|
+
updatedAt,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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
|
+
# EventRegistrationRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**teamName** | **string** | | [default to undefined]
|
|
9
|
+
**players** | **Array<string>** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EventRegistrationRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EventRegistrationRequest = {
|
|
17
|
+
teamName,
|
|
18
|
+
players,
|
|
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/EventResponse.md
CHANGED
|
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
23
23
|
**playerLimit** | **number** | | [optional] [default to undefined]
|
|
24
24
|
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
25
|
+
**playersPerTeam** | **number** | | [optional] [default to undefined]
|
|
25
26
|
**price** | **number** | | [optional] [default to undefined]
|
|
26
27
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
27
28
|
**visibilityType** | **string** | | [default to undefined]
|
|
@@ -53,6 +54,7 @@ const instance: EventResponse = {
|
|
|
53
54
|
teams,
|
|
54
55
|
playerLimit,
|
|
55
56
|
teamLimit,
|
|
57
|
+
playersPerTeam,
|
|
56
58
|
price,
|
|
57
59
|
subscriberPrices,
|
|
58
60
|
visibilityType,
|
package/docs/EventsApi.md
CHANGED
|
@@ -4,11 +4,69 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
|
|
7
8
|
|[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
|
|
8
9
|
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
|
|
9
10
|
|[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
|
|
10
11
|
|[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
|
|
11
12
|
|
|
13
|
+
# **estimateEventPrice**
|
|
14
|
+
> EstimateEventPrice200Response estimateEventPrice(estimateEventPriceRequest)
|
|
15
|
+
|
|
16
|
+
Estime le prix de participation à un événement pour une liste de joueurs
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
EventsApi,
|
|
23
|
+
Configuration,
|
|
24
|
+
EstimateEventPriceRequest
|
|
25
|
+
} from '@tennac-booking/sdk';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new EventsApi(configuration);
|
|
29
|
+
|
|
30
|
+
let eventId: string; // (default to undefined)
|
|
31
|
+
let estimateEventPriceRequest: EstimateEventPriceRequest; //
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.estimateEventPrice(
|
|
34
|
+
eventId,
|
|
35
|
+
estimateEventPriceRequest
|
|
36
|
+
);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
|Name | Type | Description | Notes|
|
|
42
|
+
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **estimateEventPriceRequest** | **EstimateEventPriceRequest**| | |
|
|
44
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**EstimateEventPrice200Response**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
No authorization required
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | Prix estimé pour l\'événement | - |
|
|
65
|
+
|**400** | Requête invalide | - |
|
|
66
|
+
|**404** | Événement introuvable | - |
|
|
67
|
+
|
|
68
|
+
[[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)
|
|
69
|
+
|
|
12
70
|
# **getEventById**
|
|
13
71
|
> PublishEventResponse getEventById()
|
|
14
72
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# FavoriteClubItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | ID du club | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { FavoriteClubItem } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: FavoriteClubItem = {
|
|
19
|
+
_id,
|
|
20
|
+
name,
|
|
21
|
+
address,
|
|
22
|
+
isActive,
|
|
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
|
+
# FavoriteClubResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { FavoriteClubResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: FavoriteClubResponse = {
|
|
17
|
+
message,
|
|
18
|
+
favoriteClubs,
|
|
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)
|