@tennac-booking/sdk 1.0.55 → 1.0.60
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 +182 -222
- package/README.md +158 -165
- package/api.ts +6921 -7583
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +4106 -5418
- package/dist/api.js +3585 -2957
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +4106 -5418
- package/dist/esm/api.js +3511 -2862
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- 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 +23 -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/{ManagerClubCourtsApi.md → ClubSettingsManagerApi.md} +64 -63
- package/docs/ClubSettingsResponse.md +41 -0
- package/docs/{AddFavoriteClubRequestBody.md → ClubUserCountResponse.md} +5 -5
- package/docs/ClubsApi.md +515 -8
- package/docs/ClubsManagerApi.md +1005 -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/CreateSportForClub201Response.md +20 -0
- package/docs/{Sport.md → CreateSportForClubRequest.md} +4 -6
- package/docs/CreateSportRequest.md +1 -7
- package/docs/CreateSubscriptionPlanRequest.md +6 -4
- package/docs/CreatorChargeResult.md +26 -0
- package/docs/DailyTurnoverResponse.md +3 -3
- package/docs/{ManagerSportsApi.md → DefaultApi.md} +35 -38
- package/docs/{DeleteEvent200Response.md → DeleteClubResponse.md} +4 -4
- package/docs/{CourtDeleteResponse.md → DeleteClubRoleResponse.md} +4 -4
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/{DeleteClubRole200Response.md → DeleteCourtResponse.md} +4 -4
- package/docs/{DeleteSport200Response.md → DeleteEventResponse.md} +4 -4
- package/docs/DeleteSlotsByClubInRange200Response.md +1 -1
- package/docs/DeleteSportResponse.md +20 -0
- 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/{CourtsResponse.md → GetCourtsByClub200Response.md} +4 -6
- 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/PartialClubResponse.md +49 -0
- package/docs/PaymentByPlayerInfo.md +22 -0
- package/docs/PaymentMethod.md +2 -1
- package/docs/PlayerPaymentInfo.md +36 -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/{StaffClubBookingsApi.md → SportsStaffApi.md} +14 -11
- package/docs/SubscriptionPlanResponse.md +4 -14
- 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/UpdateSportRequest.md +1 -5
- package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
- package/docs/{BookingPopulatedUserId.md → UserInfo.md} +6 -6
- package/docs/UsersApi.md +32 -127
- package/docs/YearlyTurnoverResponse.md +4 -4
- package/index.ts +2 -2
- package/package.json +1 -1
- package/docs/ActiveClub.md +0 -30
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
- 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/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/FrequentlyVisitedClubItem.md +0 -24
- 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/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/StripeStatus.md +0 -16
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- 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/UserClubSportsApi.md +0 -60
- package/docs/UserClubsApi.md +0 -145
- package/docs/UserInfoStaff.md +0 -38
- package/docs/UserStaffResponse.md +0 -40
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CreateSportForClubRequest
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**key** | **string** | | [
|
|
9
|
-
**clubId** | **string** | | [optional] [default to undefined]
|
|
8
|
+
**key** | **string** | | [default to undefined]
|
|
10
9
|
|
|
11
10
|
## Example
|
|
12
11
|
|
|
13
12
|
```typescript
|
|
14
|
-
import {
|
|
13
|
+
import { CreateSportForClubRequest } from '@tennac-booking/sdk';
|
|
15
14
|
|
|
16
|
-
const instance:
|
|
15
|
+
const instance: CreateSportForClubRequest = {
|
|
17
16
|
key,
|
|
18
|
-
clubId,
|
|
19
17
|
};
|
|
20
18
|
```
|
|
21
19
|
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**key** | **string** | | [default to undefined]
|
|
10
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**description** | **string** | | [optional] [default to undefined]
|
|
8
|
+
**key** | **string** | Clé/nom du sport | [default to undefined]
|
|
12
9
|
|
|
13
10
|
## Example
|
|
14
11
|
|
|
@@ -16,10 +13,7 @@ Name | Type | Description | Notes
|
|
|
16
13
|
import { CreateSportRequest } from '@tennac-booking/sdk';
|
|
17
14
|
|
|
18
15
|
const instance: CreateSportRequest = {
|
|
19
|
-
clubId,
|
|
20
16
|
key,
|
|
21
|
-
name,
|
|
22
|
-
description,
|
|
23
17
|
};
|
|
24
18
|
```
|
|
25
19
|
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**name** | **string** | Nom du plan d\'abonnement | [default to undefined]
|
|
9
|
-
**
|
|
10
|
-
**
|
|
9
|
+
**amountInCents** | **number** | Montant en centimes | [default to undefined]
|
|
10
|
+
**currency** | **string** | Devise | [default to undefined]
|
|
11
|
+
**interval** | **string** | Intervalle de facturation (month, year, etc.) | [default to undefined]
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -16,8 +17,9 @@ import { CreateSubscriptionPlanRequest } from '@tennac-booking/sdk';
|
|
|
16
17
|
|
|
17
18
|
const instance: CreateSubscriptionPlanRequest = {
|
|
18
19
|
name,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
amountInCents,
|
|
21
|
+
currency,
|
|
22
|
+
interval,
|
|
21
23
|
};
|
|
22
24
|
```
|
|
23
25
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CreatorChargeResult
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**success** | **boolean** | Succès du prélèvement | [default to undefined]
|
|
9
|
+
**paymentIntentId** | **string** | ID du PaymentIntent | [optional] [default to undefined]
|
|
10
|
+
**amount** | **number** | Montant prélevé | [optional] [default to undefined]
|
|
11
|
+
**error** | **string** | Erreur (si échoué) | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CreatorChargeResult } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: CreatorChargeResult = {
|
|
19
|
+
success,
|
|
20
|
+
paymentIntentId,
|
|
21
|
+
amount,
|
|
22
|
+
error,
|
|
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)
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**date** | **string** |
|
|
9
|
-
**totalTurnover** | **number** |
|
|
10
|
-
**invoiceCount** | **number** |
|
|
8
|
+
**date** | **string** | Date au format YYYY-MM-DD | [default to undefined]
|
|
9
|
+
**totalTurnover** | **number** | Chiffre d\'affaires total du jour | [default to undefined]
|
|
10
|
+
**invoiceCount** | **number** | Nombre de factures | [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DefaultApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *http://localhost*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
7
|
+
|[**createClub**](#createclub) | **POST** /api/clubs | |
|
|
8
|
+
|[**deleteClub**](#deleteclub) | **DELETE** /api/clubs/{id} | |
|
|
9
9
|
|
|
10
|
-
# **
|
|
11
|
-
>
|
|
10
|
+
# **createClub**
|
|
11
|
+
> ClubResponse createClub(createClubRequest)
|
|
12
12
|
|
|
13
|
+
Crée un nouveau club
|
|
13
14
|
|
|
14
15
|
### Example
|
|
15
16
|
|
|
16
17
|
```typescript
|
|
17
18
|
import {
|
|
18
|
-
|
|
19
|
-
Configuration
|
|
19
|
+
DefaultApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
CreateClubRequest
|
|
20
22
|
} from '@tennac-booking/sdk';
|
|
21
23
|
|
|
22
24
|
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new
|
|
25
|
+
const apiInstance = new DefaultApi(configuration);
|
|
24
26
|
|
|
25
|
-
let
|
|
27
|
+
let createClubRequest: CreateClubRequest; //
|
|
26
28
|
|
|
27
|
-
const { status, data } = await apiInstance.
|
|
28
|
-
|
|
29
|
+
const { status, data } = await apiInstance.createClub(
|
|
30
|
+
createClubRequest
|
|
29
31
|
);
|
|
30
32
|
```
|
|
31
33
|
|
|
@@ -33,55 +35,52 @@ const { status, data } = await apiInstance.deleteSport(
|
|
|
33
35
|
|
|
34
36
|
|Name | Type | Description | Notes|
|
|
35
37
|
|------------- | ------------- | ------------- | -------------|
|
|
36
|
-
| **
|
|
38
|
+
| **createClubRequest** | **CreateClubRequest**| | |
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
### Return type
|
|
40
42
|
|
|
41
|
-
**
|
|
43
|
+
**ClubResponse**
|
|
42
44
|
|
|
43
45
|
### Authorization
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
No authorization required
|
|
46
48
|
|
|
47
49
|
### HTTP request headers
|
|
48
50
|
|
|
49
|
-
- **Content-Type**:
|
|
51
|
+
- **Content-Type**: application/json
|
|
50
52
|
- **Accept**: application/json
|
|
51
53
|
|
|
52
54
|
|
|
53
55
|
### HTTP response details
|
|
54
56
|
| Status code | Description | Response headers |
|
|
55
57
|
|-------------|-------------|------------------|
|
|
56
|
-
|**
|
|
57
|
-
|**
|
|
58
|
-
|**
|
|
59
|
-
|**500** | Erreur serveur interne | - |
|
|
58
|
+
|**201** | Club créé | - |
|
|
59
|
+
|**400** | Bad Request | - |
|
|
60
|
+
|**500** | Server Error | - |
|
|
60
61
|
|
|
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)
|
|
62
63
|
|
|
63
|
-
# **
|
|
64
|
-
>
|
|
64
|
+
# **deleteClub**
|
|
65
|
+
> DeleteClubResponse deleteClub()
|
|
65
66
|
|
|
67
|
+
Supprime un club et toutes ses données associées
|
|
66
68
|
|
|
67
69
|
### Example
|
|
68
70
|
|
|
69
71
|
```typescript
|
|
70
72
|
import {
|
|
71
|
-
|
|
72
|
-
Configuration
|
|
73
|
-
UpdateSportRequest
|
|
73
|
+
DefaultApi,
|
|
74
|
+
Configuration
|
|
74
75
|
} from '@tennac-booking/sdk';
|
|
75
76
|
|
|
76
77
|
const configuration = new Configuration();
|
|
77
|
-
const apiInstance = new
|
|
78
|
+
const apiInstance = new DefaultApi(configuration);
|
|
78
79
|
|
|
79
|
-
let id: string; //
|
|
80
|
-
let updateSportRequest: UpdateSportRequest; //
|
|
80
|
+
let id: string; // (default to undefined)
|
|
81
81
|
|
|
82
|
-
const { status, data } = await apiInstance.
|
|
83
|
-
id
|
|
84
|
-
updateSportRequest
|
|
82
|
+
const { status, data } = await apiInstance.deleteClub(
|
|
83
|
+
id
|
|
85
84
|
);
|
|
86
85
|
```
|
|
87
86
|
|
|
@@ -89,13 +88,12 @@ const { status, data } = await apiInstance.updateSport(
|
|
|
89
88
|
|
|
90
89
|
|Name | Type | Description | Notes|
|
|
91
90
|
|------------- | ------------- | ------------- | -------------|
|
|
92
|
-
| **
|
|
93
|
-
| **id** | [**string**] | ID du sport | defaults to undefined|
|
|
91
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
94
92
|
|
|
95
93
|
|
|
96
94
|
### Return type
|
|
97
95
|
|
|
98
|
-
**
|
|
96
|
+
**DeleteClubResponse**
|
|
99
97
|
|
|
100
98
|
### Authorization
|
|
101
99
|
|
|
@@ -103,17 +101,16 @@ const { status, data } = await apiInstance.updateSport(
|
|
|
103
101
|
|
|
104
102
|
### HTTP request headers
|
|
105
103
|
|
|
106
|
-
- **Content-Type**:
|
|
104
|
+
- **Content-Type**: Not defined
|
|
107
105
|
- **Accept**: application/json
|
|
108
106
|
|
|
109
107
|
|
|
110
108
|
### HTTP response details
|
|
111
109
|
| Status code | Description | Response headers |
|
|
112
110
|
|-------------|-------------|------------------|
|
|
113
|
-
|**200** |
|
|
114
|
-
|**
|
|
115
|
-
|**
|
|
116
|
-
|**500** | Erreur serveur interne | - |
|
|
111
|
+
|**200** | Club supprimé | - |
|
|
112
|
+
|**404** | Club non trouvé | - |
|
|
113
|
+
|**500** | Server Error | - |
|
|
117
114
|
|
|
118
115
|
[[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)
|
|
119
116
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DeleteClubResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** |
|
|
8
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { DeleteClubResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: DeleteClubResponse = {
|
|
16
16
|
message,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DeleteClubRoleResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | | [
|
|
8
|
+
**message** | **string** | | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { DeleteClubRoleResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: DeleteClubRoleResponse = {
|
|
16
16
|
message,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteClubSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteClubSettingsResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteClubSettingsResponse = {
|
|
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)
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DeleteCourtResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** |
|
|
8
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { DeleteCourtResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: DeleteCourtResponse = {
|
|
16
16
|
message,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DeleteEventResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | | [
|
|
8
|
+
**message** | **string** | | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { DeleteEventResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: DeleteEventResponse = {
|
|
16
16
|
message,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteSportResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteSportResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteSportResponse = {
|
|
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,40 @@
|
|
|
1
|
+
# EventResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**clubId** | **string** | | [default to undefined]
|
|
10
|
+
**title** | **string** | | [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**startDate** | **string** | | [default to undefined]
|
|
13
|
+
**endDate** | **string** | | [default to undefined]
|
|
14
|
+
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
15
|
+
**createdBy** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**isActive** | **boolean** | | [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { EventResponse } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: EventResponse = {
|
|
26
|
+
id,
|
|
27
|
+
clubId,
|
|
28
|
+
title,
|
|
29
|
+
description,
|
|
30
|
+
startDate,
|
|
31
|
+
endDate,
|
|
32
|
+
courts,
|
|
33
|
+
createdBy,
|
|
34
|
+
isActive,
|
|
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,18 @@
|
|
|
1
|
+
# EventResponseCourtsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { EventResponseCourtsInner } from '@tennac-booking/sdk';
|
|
13
|
+
|
|
14
|
+
const instance: EventResponseCourtsInner = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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/EventsApi.md
CHANGED
|
@@ -4,12 +4,13 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events |
|
|
8
|
-
|[**registerForEvent**](#registerforevent) | **POST** /api/events/{eventId}/register |
|
|
7
|
+
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
|
|
8
|
+
|[**registerForEvent**](#registerforevent) | **POST** /api/events/{eventId}/register | |
|
|
9
9
|
|
|
10
10
|
# **getPublishedEventsByClubId**
|
|
11
|
-
>
|
|
11
|
+
> EventsListResponse getPublishedEventsByClubId()
|
|
12
12
|
|
|
13
|
+
Get all published events for a club
|
|
13
14
|
|
|
14
15
|
### Example
|
|
15
16
|
|
|
@@ -22,7 +23,7 @@ import {
|
|
|
22
23
|
const configuration = new Configuration();
|
|
23
24
|
const apiInstance = new EventsApi(configuration);
|
|
24
25
|
|
|
25
|
-
let clubId: string; // (default to undefined)
|
|
26
|
+
let clubId: string; // (optional) (default to undefined)
|
|
26
27
|
|
|
27
28
|
const { status, data } = await apiInstance.getPublishedEventsByClubId(
|
|
28
29
|
clubId
|
|
@@ -33,16 +34,16 @@ const { status, data } = await apiInstance.getPublishedEventsByClubId(
|
|
|
33
34
|
|
|
34
35
|
|Name | Type | Description | Notes|
|
|
35
36
|
|------------- | ------------- | ------------- | -------------|
|
|
36
|
-
| **clubId** | [**string**] | | defaults to undefined|
|
|
37
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
37
38
|
|
|
38
39
|
|
|
39
40
|
### Return type
|
|
40
41
|
|
|
41
|
-
**
|
|
42
|
+
**EventsListResponse**
|
|
42
43
|
|
|
43
44
|
### Authorization
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
No authorization required
|
|
46
47
|
|
|
47
48
|
### HTTP request headers
|
|
48
49
|
|
|
@@ -54,33 +55,33 @@ const { status, data } = await apiInstance.getPublishedEventsByClubId(
|
|
|
54
55
|
| Status code | Description | Response headers |
|
|
55
56
|
|-------------|-------------|------------------|
|
|
56
57
|
|**200** | List of published events | - |
|
|
57
|
-
|**400** |
|
|
58
|
-
|**500** |
|
|
58
|
+
|**400** | Bad Request | - |
|
|
59
|
+
|**500** | Server Error | - |
|
|
59
60
|
|
|
60
61
|
[[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
62
|
|
|
62
63
|
# **registerForEvent**
|
|
63
|
-
>
|
|
64
|
+
> any registerForEvent(body)
|
|
64
65
|
|
|
66
|
+
Register for an event
|
|
65
67
|
|
|
66
68
|
### Example
|
|
67
69
|
|
|
68
70
|
```typescript
|
|
69
71
|
import {
|
|
70
72
|
EventsApi,
|
|
71
|
-
Configuration
|
|
72
|
-
EventRegistrationRequest
|
|
73
|
+
Configuration
|
|
73
74
|
} from '@tennac-booking/sdk';
|
|
74
75
|
|
|
75
76
|
const configuration = new Configuration();
|
|
76
77
|
const apiInstance = new EventsApi(configuration);
|
|
77
78
|
|
|
78
79
|
let eventId: string; // (default to undefined)
|
|
79
|
-
let
|
|
80
|
+
let body: any; //
|
|
80
81
|
|
|
81
82
|
const { status, data } = await apiInstance.registerForEvent(
|
|
82
83
|
eventId,
|
|
83
|
-
|
|
84
|
+
body
|
|
84
85
|
);
|
|
85
86
|
```
|
|
86
87
|
|
|
@@ -88,13 +89,13 @@ const { status, data } = await apiInstance.registerForEvent(
|
|
|
88
89
|
|
|
89
90
|
|Name | Type | Description | Notes|
|
|
90
91
|
|------------- | ------------- | ------------- | -------------|
|
|
91
|
-
| **
|
|
92
|
+
| **body** | **any**| | |
|
|
92
93
|
| **eventId** | [**string**] | | defaults to undefined|
|
|
93
94
|
|
|
94
95
|
|
|
95
96
|
### Return type
|
|
96
97
|
|
|
97
|
-
**
|
|
98
|
+
**any**
|
|
98
99
|
|
|
99
100
|
### Authorization
|
|
100
101
|
|
|
@@ -109,11 +110,10 @@ const { status, data } = await apiInstance.registerForEvent(
|
|
|
109
110
|
### HTTP response details
|
|
110
111
|
| Status code | Description | Response headers |
|
|
111
112
|
|-------------|-------------|------------------|
|
|
112
|
-
|**201** | Registration
|
|
113
|
-
|**400** |
|
|
114
|
-
|**
|
|
115
|
-
|**
|
|
116
|
-
|**500** | Erreur serveur interne | - |
|
|
113
|
+
|**201** | Registration created | - |
|
|
114
|
+
|**400** | Bad Request | - |
|
|
115
|
+
|**404** | Not Found | - |
|
|
116
|
+
|**500** | Server Error | - |
|
|
117
117
|
|
|
118
118
|
[[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)
|
|
119
119
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# EventsListResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**events** | [**Array<
|
|
8
|
+
**events** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { EventsListResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: EventsListResponse = {
|
|
16
16
|
events,
|
|
17
17
|
};
|
|
18
18
|
```
|