@tennac-booking/sdk 1.0.55 → 1.0.61
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 +217 -222
- package/README.md +199 -173
- package/api.ts +8275 -7164
- package/base.ts +3 -3
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +5952 -5687
- package/dist/api.js +4344 -3312
- package/dist/base.d.ts +3 -3
- package/dist/base.js +3 -3
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +5952 -5687
- package/dist/esm/api.js +4251 -3215
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +3 -3
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +3 -3
- package/dist/esm/configuration.d.ts +3 -3
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/docs/{ApiErrorResponse.md → AddClubMember201Response.md} +6 -6
- package/docs/AddClubMemberRequest.md +7 -3
- package/docs/BookingAnalyticsResponse.md +34 -0
- package/docs/BookingHistory.md +34 -0
- package/docs/BookingInfo.md +50 -0
- package/docs/BookingPaymentStatusResponse.md +3 -3
- package/docs/BookingPaymentStatusResponseBooking.md +8 -7
- package/docs/BookingPaymentStatusResponseSummary.md +10 -9
- package/docs/BookingPopulated.md +5 -5
- package/docs/BookingResponse.md +4 -4
- package/docs/{UpdateProfileVisibilityRequestBody.md → BookingResponseOnsitePaymentsInner.md} +7 -5
- package/docs/BookingStatus.md +9 -1
- package/docs/BookingsApi.md +10 -64
- package/docs/{ManagerBookingsApi.md → BookingsManagerApi.md} +14 -24
- package/docs/BookingsStaffApi.md +323 -0
- package/docs/{UserBookingsApi.md → BookingsUserApi.md} +17 -25
- package/docs/CancelBookingResponse.md +2 -2
- package/docs/CaptureResult.md +30 -0
- package/docs/CheckInPlayersRequest.md +20 -0
- package/docs/CheckInPlayersResponse.md +6 -6
- package/docs/CheckedInPlayer.md +34 -0
- package/docs/ClubAnalyticsApi.md +20 -160
- package/docs/ClubAnalyticsStaffApi.md +523 -0
- package/docs/ClubMemberResponse.md +24 -0
- package/docs/ClubMemberResponseUser.md +27 -0
- package/docs/ClubPlayerResponse.md +36 -0
- package/docs/ClubResponse.md +22 -14
- package/docs/ClubResponseCreatedAt.md +19 -0
- package/docs/{Location.md → ClubResponseLocation.md} +9 -12
- package/docs/{GetNumberOfClubUsers200Response.md → ClubResponseLocationCoordinates.md} +7 -5
- package/docs/ClubResponseUpdatedAt.md +19 -0
- package/docs/ClubRoleResponse.md +11 -9
- package/docs/ClubRolesManagerApi.md +177 -0
- package/docs/{StaffClubsApi.md → ClubRolesStaffApi.md} +41 -34
- package/docs/ClubSettingsManagerApi.md +221 -0
- package/docs/ClubSettingsResponse.md +41 -0
- package/docs/{AddFavoriteClubRequestBody.md → ClubUserCountResponse.md} +5 -5
- package/docs/ClubsApi.md +515 -8
- package/docs/ClubsManagerApi.md +950 -0
- package/docs/{ManagerClubsApi.md → ClubsStaffApi.md} +138 -62
- package/docs/CourtInfo.md +28 -0
- package/docs/CourtResponse.md +16 -16
- package/docs/CourtStatus.md +2 -5
- package/docs/CreateBookingRequest.md +1 -3
- package/docs/CreateClubRequest.md +22 -0
- package/docs/CreateClubRoleRequest.md +24 -0
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/{ActiveClubListResponse.md → CreateCourtForClub201Response.md} +5 -5
- package/docs/CreateCourtRequest.md +10 -12
- package/docs/CreateEventRequest.md +1 -3
- package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
- package/docs/CreateSportForClub201Response.md +20 -0
- package/docs/{Sport.md → CreateSportForClubRequest.md} +4 -6
- package/docs/CreateSportRequest.md +1 -7
- package/docs/CreateSubscriptionPlanRequest.md +12 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
- package/docs/CreatorChargeResult.md +26 -0
- package/docs/DailyTurnoverResponse.md +3 -3
- package/docs/DefaultApi.md +62 -0
- package/docs/{CourtDeleteResponse.md → DeleteClubRoleResponse.md} +4 -4
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/{DeleteSport200Response.md → DeleteCourtResponse.md} +4 -4
- package/docs/{DeleteEvent200Response.md → DeleteEventResponse.md} +4 -4
- package/docs/DeleteSlotsByClubInRange200Response.md +1 -1
- package/docs/{DeleteClubRole200Response.md → DeleteSportResponse.md} +4 -4
- package/docs/DeleteSubscriptionPlanResponse.md +20 -0
- package/docs/{StripeStatus.md → DiscountType.md} +5 -7
- package/docs/EventResponse.md +40 -0
- package/docs/EventResponseCourtsInner.md +18 -0
- package/docs/EventsApi.md +21 -21
- package/docs/{StaffEventResponse.md → EventsListResponse.md} +4 -4
- package/docs/{ManagerEventsApi.md → EventsManagerApi.md} +38 -40
- package/docs/{StaffEventsApi.md → EventsStaffApi.md} +11 -10
- package/docs/{GenderPercentage.md → GenderPercentageResponse.md} +7 -7
- package/docs/GetActualities200Response.md +20 -0
- package/docs/GetAvailableSlotsBySports200Response.md +20 -0
- package/docs/{ClubMembersResponse.md → GetClubMembers200Response.md} +6 -6
- package/docs/GetClubRoles200Response.md +20 -0
- package/docs/GetClubUsersById200Response.md +1 -1
- package/docs/GetCourtsByClubAndSportById200Response.md +26 -0
- package/docs/GetInfillPercentagePerPeriod200Response.md +5 -5
- package/docs/{SlotsResponse.md → GetSlotsByClubById200Response.md} +6 -6
- package/docs/GetSportsByClubById200Response.md +20 -0
- package/docs/{Court.md → ICourtData.md} +18 -6
- package/docs/{DiagnosticsResponse.md → InvoiceInfo.md} +8 -8
- package/docs/{ClubListResponse.md → LastSixMonthsTurnoverItem.md} +7 -7
- package/docs/ManagerCancelBookingRequest.md +1 -1
- package/docs/ManagerCancelBookingResponse.md +2 -2
- package/docs/MonthlyBreakdown.md +24 -0
- package/docs/MonthlyTurnoverResponse.md +6 -5
- package/docs/NoShowFeeResponse.md +6 -6
- package/docs/OffPeakRule.md +26 -0
- package/docs/PartialClubResponse.md +49 -0
- package/docs/PaymentByPlayerInfo.md +22 -0
- package/docs/PaymentMethod.md +2 -1
- package/docs/PlanInterval.md +14 -0
- package/docs/PlayerPaymentInfo.md +36 -0
- package/docs/PublicSubscriptionPlanResponse.md +30 -0
- package/docs/PublishEventResponse.md +20 -0
- package/docs/SlotInfo.md +26 -0
- package/docs/SportAnalyticsResponse.md +24 -0
- package/docs/SportInfo.md +22 -0
- package/docs/SportResponse.md +8 -11
- package/docs/SportWithAnalytics.md +36 -0
- package/docs/SportsManagerApi.md +177 -0
- package/docs/SportsStaffApi.md +55 -0
- package/docs/StripeStripeDeletedProduct.md +25 -0
- package/docs/StripeStripePrice.md +63 -0
- package/docs/StripeStripePriceBillingScheme.md +10 -0
- package/docs/StripeStripePriceCurrencyOptions.md +28 -0
- package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
- package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
- package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceProduct.md +59 -0
- package/docs/StripeStripePriceRecurring.md +28 -0
- package/docs/StripeStripePriceRecurringInterval.md +14 -0
- package/docs/StripeStripePriceRecurringUsageType.md +10 -0
- package/docs/StripeStripePriceTaxBehavior.md +12 -0
- package/docs/StripeStripePriceTier.md +28 -0
- package/docs/StripeStripePriceTiersMode.md +10 -0
- package/docs/StripeStripePriceTransformQuantity.md +22 -0
- package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
- package/docs/StripeStripePriceType.md +10 -0
- package/docs/StripeStripeProduct.md +59 -0
- package/docs/StripeStripeProductDefaultPrice.md +63 -0
- package/docs/{AddPaymentMethodSetupRequestBody.md → StripeStripeProductMarketingFeature.md} +5 -5
- package/docs/StripeStripeProductPackageDimensions.md +26 -0
- package/docs/StripeStripeProductTaxCode.md +27 -0
- package/docs/StripeStripeProductType.md +10 -0
- package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
- package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
- package/docs/StripeStripeTaxCode.md +27 -0
- package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
- package/docs/SubscriptionPlanResponse.md +16 -14
- package/docs/SubscriptionsManagerApi.md +171 -0
- package/docs/{UserClubSportsApi.md → SubscriptionsPublicApi.md} +15 -15
- package/docs/{StaffClubBookingsApi.md → SubscriptionsStaffApi.md} +12 -10
- package/docs/{ManagerClubCourtsApi.md → SubscriptionsUserApi.md} +68 -66
- package/docs/SurfaceType.md +12 -0
- package/docs/UpdateActuality200Response.md +20 -0
- package/docs/UpdateClubRequest.md +11 -11
- package/docs/UpdateClubRequestLocation.md +29 -0
- package/docs/{BookingPopulatedSlotIdCourtIdSportId.md → UpdateClubRequestLocationCoordinates.md} +7 -7
- package/docs/UpdateClubRoleRequest.md +22 -0
- package/docs/UpdateClubSettingsRequest.md +14 -10
- package/docs/{FrequentlyVisitedClubItem.md → UpdatePlanRequest.md} +7 -7
- package/docs/UpdateSportRequest.md +1 -5
- package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
- package/docs/{BookingPopulatedUserId.md → UserInfo.md} +6 -6
- package/docs/UsersApi.md +27 -378
- package/docs/YearlyTurnoverResponse.md +4 -4
- package/index.ts +3 -3
- package/package.json +1 -1
- package/docs/ActiveClub.md +0 -30
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddPaymentMethodSetupResponse.md +0 -24
- package/docs/BlockSlotResponse.md +0 -22
- package/docs/Booking.md +0 -32
- package/docs/BookingHistoryResponse.md +0 -22
- package/docs/BookingHistoryResponseHistoryInner.md +0 -32
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
- package/docs/BookingPopulatedSlotId.md +0 -26
- package/docs/BookingPopulatedSlotIdCourtId.md +0 -28
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
- package/docs/Club.md +0 -40
- package/docs/ClubInfoResponse.md +0 -48
- package/docs/ClubMember.md +0 -24
- package/docs/ClubRole.md +0 -30
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubSettings.md +0 -40
- package/docs/ClubStaffResponse.md +0 -48
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/CourtWithNameResponse.md +0 -48
- package/docs/CourtsResponse.md +0 -22
- package/docs/CourtsWithNameResponse.md +0 -22
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/DiagnosticsApi.md +0 -97
- package/docs/Event.md +0 -40
- package/docs/EventBooking.md +0 -32
- package/docs/EventRegistrationRequest.md +0 -22
- package/docs/FrequentlyPlayedWithItem.md +0 -28
- package/docs/GetActiveClubs200Response.md +0 -20
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
- package/docs/GetPublishedEventsByClubId200Response.md +0 -20
- package/docs/InvoicesResponse.md +0 -22
- package/docs/InvoicesResponseInvoicesInner.md +0 -34
- package/docs/InvoicesResponsePagination.md +0 -26
- package/docs/LevelBySportsItem.md +0 -22
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -119
- package/docs/ManagerClubSubscriptionsApi.md +0 -387
- package/docs/ManagerEventResponse.md +0 -22
- package/docs/ManagerSportsApi.md +0 -119
- package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
- package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
- package/docs/PaymentStatus.md +0 -30
- package/docs/PriceResponse.md +0 -32
- package/docs/PublicClubUser.md +0 -46
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
- package/docs/PublicClubUserLevelBySportsInner.md +0 -22
- package/docs/RegisterForEvent201Response.md +0 -20
- package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
- package/docs/SdkDiagnosticsResponse.md +0 -28
- package/docs/SdkDiagnosticsResponseOpenapi.md +0 -24
- package/docs/SdkDiagnosticsResponseSdk.md +0 -24
- package/docs/Slot.md +0 -24
- package/docs/SlotException.md +0 -26
- package/docs/SlotResponse.md +0 -34
- package/docs/StaffBookingsApi.md +0 -61
- package/docs/StaffClubAnalyticsApi.md +0 -254
- package/docs/StripeLink.md +0 -26
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- package/docs/SubscriptionSessionResponse.md +0 -20
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateCourtRequest.md +0 -38
- package/docs/UpdateProfilePictureRequestBody.md +0 -20
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/UpdateUserCityRequestBody.md +0 -20
- package/docs/UpdateUserDescriptionRequestBody.md +0 -20
- package/docs/UserBookingItem.md +0 -46
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubsApi.md +0 -145
- package/docs/UserInfoStaff.md +0 -38
- package/docs/UserStaffResponse.md +0 -40
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# ClubSettingsResponse
|
|
2
|
+
|
|
3
|
+
Types TSOA pour les paramètres du club
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**_id** | **string** | ID unique des paramètres | [default to undefined]
|
|
10
|
+
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
|
|
12
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [default to undefined]
|
|
13
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
14
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
|
|
15
|
+
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
|
|
16
|
+
**sponsors** | **Array<string>** | Liste des sponsors | [default to undefined]
|
|
17
|
+
**timeBeforePayment** | **number** | Temps avant paiement en minutes | [default to undefined]
|
|
18
|
+
**createdAt** | **string** | Date de création | [default to undefined]
|
|
19
|
+
**updatedAt** | **string** | Date de mise à jour | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { ClubSettingsResponse } from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const instance: ClubSettingsResponse = {
|
|
27
|
+
_id,
|
|
28
|
+
clubId,
|
|
29
|
+
maxWeeklyBookings,
|
|
30
|
+
allowMultipleBookingsAtTheSameTime,
|
|
31
|
+
sameTimeBookingsLimit,
|
|
32
|
+
cancellationLimitHours,
|
|
33
|
+
availabilityPeriodInDays,
|
|
34
|
+
sponsors,
|
|
35
|
+
timeBeforePayment,
|
|
36
|
+
createdAt,
|
|
37
|
+
updatedAt,
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[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,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubUserCountResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**count** | **number** | Nombre d\'utilisateurs du club | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { ClubUserCountResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: ClubUserCountResponse = {
|
|
16
|
+
count,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
package/docs/ClubsApi.md
CHANGED
|
@@ -4,12 +4,316 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/active | |
|
|
8
|
+
|[**getAllClubs**](#getallclubs) | **GET** /api/clubs | |
|
|
9
|
+
|[**getAvailableSlotsByClubById**](#getavailableslotsbyclubbyid) | **GET** /api/clubs/{clubID}/availableSlots | |
|
|
10
|
+
|[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | |
|
|
11
|
+
|[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | |
|
|
12
|
+
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/info | |
|
|
13
|
+
|[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
|
|
14
|
+
|[**getCourtsByClubAndSportById**](#getcourtsbyclubandsportbyid) | **GET** /api/clubs/{id}/sports/{sportId}/courts | |
|
|
15
|
+
|[**getPublishedActualities**](#getpublishedactualities) | **GET** /api/clubs/{id}/actualities | |
|
|
16
|
+
|[**getSlotsByClubById**](#getslotsbyclubbyid) | **GET** /api/clubs/{id}/slots | |
|
|
17
|
+
|[**getSportsByClubById**](#getsportsbyclubbyid) | **GET** /api/clubs/{id}/sports | |
|
|
18
|
+
|
|
19
|
+
# **getActiveClubs**
|
|
20
|
+
> Array<PartialClubResponse> getActiveClubs()
|
|
21
|
+
|
|
22
|
+
Récupère la liste des clubs actifs
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import {
|
|
28
|
+
ClubsApi,
|
|
29
|
+
Configuration
|
|
30
|
+
} from '@tennac-booking/sdk';
|
|
31
|
+
|
|
32
|
+
const configuration = new Configuration();
|
|
33
|
+
const apiInstance = new ClubsApi(configuration);
|
|
34
|
+
|
|
35
|
+
const { status, data } = await apiInstance.getActiveClubs();
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
This endpoint does not have any parameters.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**Array<PartialClubResponse>**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | Liste des clubs actifs | - |
|
|
60
|
+
|**500** | Server Error | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **getAllClubs**
|
|
65
|
+
> Array<ClubResponse> getAllClubs()
|
|
66
|
+
|
|
67
|
+
Récupère la liste de tous les clubs
|
|
68
|
+
|
|
69
|
+
### Example
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import {
|
|
73
|
+
ClubsApi,
|
|
74
|
+
Configuration
|
|
75
|
+
} from '@tennac-booking/sdk';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new ClubsApi(configuration);
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.getAllClubs();
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Parameters
|
|
84
|
+
This endpoint does not have any parameters.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Return type
|
|
88
|
+
|
|
89
|
+
**Array<ClubResponse>**
|
|
90
|
+
|
|
91
|
+
### Authorization
|
|
92
|
+
|
|
93
|
+
No authorization required
|
|
94
|
+
|
|
95
|
+
### HTTP request headers
|
|
96
|
+
|
|
97
|
+
- **Content-Type**: Not defined
|
|
98
|
+
- **Accept**: application/json
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### HTTP response details
|
|
102
|
+
| Status code | Description | Response headers |
|
|
103
|
+
|-------------|-------------|------------------|
|
|
104
|
+
|**200** | Liste des clubs | - |
|
|
105
|
+
|**500** | Server Error | - |
|
|
106
|
+
|
|
107
|
+
[[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)
|
|
108
|
+
|
|
109
|
+
# **getAvailableSlotsByClubById**
|
|
110
|
+
> GetSlotsByClubById200Response getAvailableSlotsByClubById()
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Example
|
|
114
|
+
|
|
115
|
+
```typescript
|
|
116
|
+
import {
|
|
117
|
+
ClubsApi,
|
|
118
|
+
Configuration
|
|
119
|
+
} from '@tennac-booking/sdk';
|
|
120
|
+
|
|
121
|
+
const configuration = new Configuration();
|
|
122
|
+
const apiInstance = new ClubsApi(configuration);
|
|
123
|
+
|
|
124
|
+
let clubID: string; // (default to undefined)
|
|
125
|
+
|
|
126
|
+
const { status, data } = await apiInstance.getAvailableSlotsByClubById(
|
|
127
|
+
clubID
|
|
128
|
+
);
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Parameters
|
|
132
|
+
|
|
133
|
+
|Name | Type | Description | Notes|
|
|
134
|
+
|------------- | ------------- | ------------- | -------------|
|
|
135
|
+
| **clubID** | [**string**] | | defaults to undefined|
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Return type
|
|
139
|
+
|
|
140
|
+
**GetSlotsByClubById200Response**
|
|
141
|
+
|
|
142
|
+
### Authorization
|
|
143
|
+
|
|
144
|
+
No authorization required
|
|
145
|
+
|
|
146
|
+
### HTTP request headers
|
|
147
|
+
|
|
148
|
+
- **Content-Type**: Not defined
|
|
149
|
+
- **Accept**: application/json
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### HTTP response details
|
|
153
|
+
| Status code | Description | Response headers |
|
|
154
|
+
|-------------|-------------|------------------|
|
|
155
|
+
|**200** | Available slots | - |
|
|
156
|
+
|
|
157
|
+
[[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)
|
|
158
|
+
|
|
159
|
+
# **getAvailableSlotsBySports**
|
|
160
|
+
> GetAvailableSlotsBySports200Response getAvailableSlotsBySports()
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Example
|
|
164
|
+
|
|
165
|
+
```typescript
|
|
166
|
+
import {
|
|
167
|
+
ClubsApi,
|
|
168
|
+
Configuration
|
|
169
|
+
} from '@tennac-booking/sdk';
|
|
170
|
+
|
|
171
|
+
const configuration = new Configuration();
|
|
172
|
+
const apiInstance = new ClubsApi(configuration);
|
|
173
|
+
|
|
174
|
+
let id: string; // (default to undefined)
|
|
175
|
+
let sportId: string; // (default to undefined)
|
|
176
|
+
|
|
177
|
+
const { status, data } = await apiInstance.getAvailableSlotsBySports(
|
|
178
|
+
id,
|
|
179
|
+
sportId
|
|
180
|
+
);
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Parameters
|
|
184
|
+
|
|
185
|
+
|Name | Type | Description | Notes|
|
|
186
|
+
|------------- | ------------- | ------------- | -------------|
|
|
187
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
188
|
+
| **sportId** | [**string**] | | defaults to undefined|
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### Return type
|
|
192
|
+
|
|
193
|
+
**GetAvailableSlotsBySports200Response**
|
|
194
|
+
|
|
195
|
+
### Authorization
|
|
196
|
+
|
|
197
|
+
No authorization required
|
|
198
|
+
|
|
199
|
+
### HTTP request headers
|
|
200
|
+
|
|
201
|
+
- **Content-Type**: Not defined
|
|
202
|
+
- **Accept**: application/json
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### HTTP response details
|
|
206
|
+
| Status code | Description | Response headers |
|
|
207
|
+
|-------------|-------------|------------------|
|
|
208
|
+
|**200** | Available slots by sport | - |
|
|
209
|
+
|
|
210
|
+
[[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)
|
|
211
|
+
|
|
212
|
+
# **getAvailableSlotsBySportsAndDay**
|
|
213
|
+
> GetAvailableSlotsBySports200Response getAvailableSlotsBySportsAndDay()
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### Example
|
|
217
|
+
|
|
218
|
+
```typescript
|
|
219
|
+
import {
|
|
220
|
+
ClubsApi,
|
|
221
|
+
Configuration
|
|
222
|
+
} from '@tennac-booking/sdk';
|
|
223
|
+
|
|
224
|
+
const configuration = new Configuration();
|
|
225
|
+
const apiInstance = new ClubsApi(configuration);
|
|
226
|
+
|
|
227
|
+
let id: string; // (default to undefined)
|
|
228
|
+
let sportId: string; // (default to undefined)
|
|
229
|
+
let day: string; // (default to undefined)
|
|
230
|
+
|
|
231
|
+
const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
|
|
232
|
+
id,
|
|
233
|
+
sportId,
|
|
234
|
+
day
|
|
235
|
+
);
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Parameters
|
|
239
|
+
|
|
240
|
+
|Name | Type | Description | Notes|
|
|
241
|
+
|------------- | ------------- | ------------- | -------------|
|
|
242
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
243
|
+
| **sportId** | [**string**] | | defaults to undefined|
|
|
244
|
+
| **day** | [**string**] | | defaults to undefined|
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### Return type
|
|
248
|
+
|
|
249
|
+
**GetAvailableSlotsBySports200Response**
|
|
250
|
+
|
|
251
|
+
### Authorization
|
|
252
|
+
|
|
253
|
+
No authorization required
|
|
254
|
+
|
|
255
|
+
### HTTP request headers
|
|
256
|
+
|
|
257
|
+
- **Content-Type**: Not defined
|
|
258
|
+
- **Accept**: application/json
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### HTTP response details
|
|
262
|
+
| Status code | Description | Response headers |
|
|
263
|
+
|-------------|-------------|------------------|
|
|
264
|
+
|**200** | Available slots by sport and day | - |
|
|
265
|
+
|
|
266
|
+
[[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)
|
|
267
|
+
|
|
268
|
+
# **getClubInfo**
|
|
269
|
+
> ClubResponse getClubInfo()
|
|
270
|
+
|
|
271
|
+
Récupère les informations d\'un club spécifique
|
|
272
|
+
|
|
273
|
+
### Example
|
|
274
|
+
|
|
275
|
+
```typescript
|
|
276
|
+
import {
|
|
277
|
+
ClubsApi,
|
|
278
|
+
Configuration
|
|
279
|
+
} from '@tennac-booking/sdk';
|
|
280
|
+
|
|
281
|
+
const configuration = new Configuration();
|
|
282
|
+
const apiInstance = new ClubsApi(configuration);
|
|
283
|
+
|
|
284
|
+
const { status, data } = await apiInstance.getClubInfo();
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Parameters
|
|
288
|
+
This endpoint does not have any parameters.
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
### Return type
|
|
292
|
+
|
|
293
|
+
**ClubResponse**
|
|
294
|
+
|
|
295
|
+
### Authorization
|
|
296
|
+
|
|
297
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
298
|
+
|
|
299
|
+
### HTTP request headers
|
|
300
|
+
|
|
301
|
+
- **Content-Type**: Not defined
|
|
302
|
+
- **Accept**: application/json
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### HTTP response details
|
|
306
|
+
| Status code | Description | Response headers |
|
|
307
|
+
|-------------|-------------|------------------|
|
|
308
|
+
|**200** | Informations du club | - |
|
|
309
|
+
|**404** | Club non trouvé | - |
|
|
310
|
+
|**500** | Server Error | - |
|
|
311
|
+
|
|
312
|
+
[[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)
|
|
8
313
|
|
|
9
314
|
# **getClubUsersById**
|
|
10
315
|
> GetClubUsersById200Response getClubUsersById()
|
|
11
316
|
|
|
12
|
-
Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
13
317
|
|
|
14
318
|
### Example
|
|
15
319
|
|
|
@@ -22,7 +326,7 @@ import {
|
|
|
22
326
|
const configuration = new Configuration();
|
|
23
327
|
const apiInstance = new ClubsApi(configuration);
|
|
24
328
|
|
|
25
|
-
let id: string; //
|
|
329
|
+
let id: string; // (default to undefined)
|
|
26
330
|
|
|
27
331
|
const { status, data } = await apiInstance.getClubUsersById(
|
|
28
332
|
id
|
|
@@ -33,7 +337,7 @@ const { status, data } = await apiInstance.getClubUsersById(
|
|
|
33
337
|
|
|
34
338
|
|Name | Type | Description | Notes|
|
|
35
339
|
|------------- | ------------- | ------------- | -------------|
|
|
36
|
-
| **id** | [**string**] |
|
|
340
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
37
341
|
|
|
38
342
|
|
|
39
343
|
### Return type
|
|
@@ -42,7 +346,212 @@ const { status, data } = await apiInstance.getClubUsersById(
|
|
|
42
346
|
|
|
43
347
|
### Authorization
|
|
44
348
|
|
|
45
|
-
|
|
349
|
+
No authorization required
|
|
350
|
+
|
|
351
|
+
### HTTP request headers
|
|
352
|
+
|
|
353
|
+
- **Content-Type**: Not defined
|
|
354
|
+
- **Accept**: application/json
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
### HTTP response details
|
|
358
|
+
| Status code | Description | Response headers |
|
|
359
|
+
|-------------|-------------|------------------|
|
|
360
|
+
|**200** | Utilisateurs du club récupérés | - |
|
|
361
|
+
|**400** | Bad Request | - |
|
|
362
|
+
|**500** | Server Error | - |
|
|
363
|
+
|
|
364
|
+
[[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)
|
|
365
|
+
|
|
366
|
+
# **getCourtsByClubAndSportById**
|
|
367
|
+
> GetCourtsByClubAndSportById200Response getCourtsByClubAndSportById()
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### Example
|
|
371
|
+
|
|
372
|
+
```typescript
|
|
373
|
+
import {
|
|
374
|
+
ClubsApi,
|
|
375
|
+
Configuration
|
|
376
|
+
} from '@tennac-booking/sdk';
|
|
377
|
+
|
|
378
|
+
const configuration = new Configuration();
|
|
379
|
+
const apiInstance = new ClubsApi(configuration);
|
|
380
|
+
|
|
381
|
+
let id: string; // (default to undefined)
|
|
382
|
+
let sportId: string; // (default to undefined)
|
|
383
|
+
|
|
384
|
+
const { status, data } = await apiInstance.getCourtsByClubAndSportById(
|
|
385
|
+
id,
|
|
386
|
+
sportId
|
|
387
|
+
);
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Parameters
|
|
391
|
+
|
|
392
|
+
|Name | Type | Description | Notes|
|
|
393
|
+
|------------- | ------------- | ------------- | -------------|
|
|
394
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
395
|
+
| **sportId** | [**string**] | | defaults to undefined|
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
### Return type
|
|
399
|
+
|
|
400
|
+
**GetCourtsByClubAndSportById200Response**
|
|
401
|
+
|
|
402
|
+
### Authorization
|
|
403
|
+
|
|
404
|
+
No authorization required
|
|
405
|
+
|
|
406
|
+
### HTTP request headers
|
|
407
|
+
|
|
408
|
+
- **Content-Type**: Not defined
|
|
409
|
+
- **Accept**: application/json
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
### HTTP response details
|
|
413
|
+
| Status code | Description | Response headers |
|
|
414
|
+
|-------------|-------------|------------------|
|
|
415
|
+
|**200** | Terrains par club et sport | - |
|
|
416
|
+
|
|
417
|
+
[[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)
|
|
418
|
+
|
|
419
|
+
# **getPublishedActualities**
|
|
420
|
+
> GetActualities200Response getPublishedActualities()
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
### Example
|
|
424
|
+
|
|
425
|
+
```typescript
|
|
426
|
+
import {
|
|
427
|
+
ClubsApi,
|
|
428
|
+
Configuration
|
|
429
|
+
} from '@tennac-booking/sdk';
|
|
430
|
+
|
|
431
|
+
const configuration = new Configuration();
|
|
432
|
+
const apiInstance = new ClubsApi(configuration);
|
|
433
|
+
|
|
434
|
+
let id: string; // (default to undefined)
|
|
435
|
+
|
|
436
|
+
const { status, data } = await apiInstance.getPublishedActualities(
|
|
437
|
+
id
|
|
438
|
+
);
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
### Parameters
|
|
442
|
+
|
|
443
|
+
|Name | Type | Description | Notes|
|
|
444
|
+
|------------- | ------------- | ------------- | -------------|
|
|
445
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
### Return type
|
|
449
|
+
|
|
450
|
+
**GetActualities200Response**
|
|
451
|
+
|
|
452
|
+
### Authorization
|
|
453
|
+
|
|
454
|
+
No authorization required
|
|
455
|
+
|
|
456
|
+
### HTTP request headers
|
|
457
|
+
|
|
458
|
+
- **Content-Type**: Not defined
|
|
459
|
+
- **Accept**: application/json
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
### HTTP response details
|
|
463
|
+
| Status code | Description | Response headers |
|
|
464
|
+
|-------------|-------------|------------------|
|
|
465
|
+
|**200** | Actualités publiées | - |
|
|
466
|
+
|
|
467
|
+
[[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)
|
|
468
|
+
|
|
469
|
+
# **getSlotsByClubById**
|
|
470
|
+
> GetSlotsByClubById200Response getSlotsByClubById()
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
### Example
|
|
474
|
+
|
|
475
|
+
```typescript
|
|
476
|
+
import {
|
|
477
|
+
ClubsApi,
|
|
478
|
+
Configuration
|
|
479
|
+
} from '@tennac-booking/sdk';
|
|
480
|
+
|
|
481
|
+
const configuration = new Configuration();
|
|
482
|
+
const apiInstance = new ClubsApi(configuration);
|
|
483
|
+
|
|
484
|
+
let id: string; // (default to undefined)
|
|
485
|
+
|
|
486
|
+
const { status, data } = await apiInstance.getSlotsByClubById(
|
|
487
|
+
id
|
|
488
|
+
);
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
### Parameters
|
|
492
|
+
|
|
493
|
+
|Name | Type | Description | Notes|
|
|
494
|
+
|------------- | ------------- | ------------- | -------------|
|
|
495
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
### Return type
|
|
499
|
+
|
|
500
|
+
**GetSlotsByClubById200Response**
|
|
501
|
+
|
|
502
|
+
### Authorization
|
|
503
|
+
|
|
504
|
+
No authorization required
|
|
505
|
+
|
|
506
|
+
### HTTP request headers
|
|
507
|
+
|
|
508
|
+
- **Content-Type**: Not defined
|
|
509
|
+
- **Accept**: application/json
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
### HTTP response details
|
|
513
|
+
| Status code | Description | Response headers |
|
|
514
|
+
|-------------|-------------|------------------|
|
|
515
|
+
|**200** | Slots du club | - |
|
|
516
|
+
|
|
517
|
+
[[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)
|
|
518
|
+
|
|
519
|
+
# **getSportsByClubById**
|
|
520
|
+
> GetSportsByClubById200Response getSportsByClubById()
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
### Example
|
|
524
|
+
|
|
525
|
+
```typescript
|
|
526
|
+
import {
|
|
527
|
+
ClubsApi,
|
|
528
|
+
Configuration
|
|
529
|
+
} from '@tennac-booking/sdk';
|
|
530
|
+
|
|
531
|
+
const configuration = new Configuration();
|
|
532
|
+
const apiInstance = new ClubsApi(configuration);
|
|
533
|
+
|
|
534
|
+
let id: string; // (default to undefined)
|
|
535
|
+
|
|
536
|
+
const { status, data } = await apiInstance.getSportsByClubById(
|
|
537
|
+
id
|
|
538
|
+
);
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
### Parameters
|
|
542
|
+
|
|
543
|
+
|Name | Type | Description | Notes|
|
|
544
|
+
|------------- | ------------- | ------------- | -------------|
|
|
545
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
### Return type
|
|
549
|
+
|
|
550
|
+
**GetSportsByClubById200Response**
|
|
551
|
+
|
|
552
|
+
### Authorization
|
|
553
|
+
|
|
554
|
+
No authorization required
|
|
46
555
|
|
|
47
556
|
### HTTP request headers
|
|
48
557
|
|
|
@@ -53,9 +562,7 @@ const { status, data } = await apiInstance.getClubUsersById(
|
|
|
53
562
|
### HTTP response details
|
|
54
563
|
| Status code | Description | Response headers |
|
|
55
564
|
|-------------|-------------|------------------|
|
|
56
|
-
|**200** | Liste des
|
|
57
|
-
|**400** | Requête invalide | - |
|
|
58
|
-
|**500** | Erreur serveur interne | - |
|
|
565
|
+
|**200** | Liste des sports du club | - |
|
|
59
566
|
|
|
60
567
|
[[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)
|
|
61
568
|
|