@tennac-booking/sdk 1.0.81 → 1.0.82
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 +246 -134
- package/README.md +325 -123
- package/api.ts +17109 -6137
- package/base.ts +4 -4
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +11466 -3726
- package/dist/api.js +7819 -2859
- package/dist/base.d.ts +3 -3
- package/dist/base.js +4 -4
- 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 +11466 -3726
- package/dist/esm/api.js +7724 -2760
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +4 -4
- 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/{DeleteSlotsByClubInRange200Response.md → AddClubMember201Response.md} +6 -4
- package/docs/AddClubMemberRequest.md +7 -3
- package/docs/AddOrganizationRequest.md +22 -0
- package/docs/AddPaymentMethodRequestBody.md +20 -0
- package/docs/BookingAnalyticsResponse.md +34 -0
- package/docs/BookingDetailResponse.md +46 -0
- package/docs/BookingHistoryPopulated.md +34 -0
- package/docs/BookingInfo.md +50 -0
- package/docs/BookingPaymentStatusResponse.md +24 -0
- package/docs/BookingPaymentStatusResponseBooking.md +27 -0
- package/docs/BookingPaymentStatusResponseSummary.md +29 -0
- package/docs/BookingPopulated.md +46 -0
- package/docs/BookingResponse.md +4 -4
- package/docs/BookingResponseOnsitePaymentsInner.md +22 -0
- package/docs/BookingStatus.md +11 -1
- package/docs/BookingSummary.md +44 -0
- package/docs/{GetAllSportsRequest.md → BookingSummaryClubAddress.md} +3 -5
- package/docs/BookingsApi.md +138 -0
- package/docs/{ManagerSportsApi.md → BookingsManagerApi.md} +30 -34
- package/docs/BookingsStaffApi.md +323 -0
- package/docs/{UserBookingsApi.md → BookingsUserApi.md} +18 -26
- package/docs/CancelBookingResponse.md +1 -1
- package/docs/CaptureResult.md +30 -0
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/CheckInPlayersRequest.md +20 -0
- package/docs/CheckInPlayersResponse.md +22 -0
- package/docs/CheckedInPlayer.md +34 -0
- package/docs/{AdminClubsApi.md → ClubAnalyticsApi.md} +27 -34
- package/docs/ClubAnalyticsStaffApi.md +690 -0
- package/docs/ClubMemberResponse.md +24 -0
- package/docs/ClubMemberResponseUser.md +27 -0
- package/docs/ClubPlayerBookingItem.md +36 -0
- package/docs/ClubPlayerBookingsResponse.md +22 -0
- package/docs/ClubPlayerDetailResponse.md +46 -0
- package/docs/{RestoreSubscriptionPlanForClub200Response.md → ClubPlayerDetailResponseSportsLevelsInner.md} +7 -5
- package/docs/ClubPlayerResponse.md +36 -0
- package/docs/ClubPlayerStatisticsResponse.md +42 -0
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +28 -0
- package/docs/ClubResponse.md +26 -22
- package/docs/ClubResponseCreatedAt.md +19 -0
- package/docs/ClubResponseLocation.md +29 -0
- package/docs/ClubResponseLocationCoordinates.md +22 -0
- package/docs/ClubResponseUpdatedAt.md +19 -0
- package/docs/ClubRoleResponse.md +11 -9
- package/docs/ClubRolesManagerApi.md +177 -0
- package/docs/ClubRolesStaffApi.md +154 -0
- package/docs/ClubSettingsManagerApi.md +221 -0
- package/docs/ClubSettingsResponse.md +41 -0
- package/docs/ClubSubscriptions.md +26 -0
- package/docs/ClubSummary.md +28 -0
- package/docs/{GetNumberOfClubUsers200Response.md → ClubUserCountResponse.md} +4 -4
- package/docs/ClubsApi.md +614 -0
- package/docs/ClubsManagerApi.md +950 -0
- package/docs/ClubsStaffApi.md +329 -0
- package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodResponse.md +22 -0
- package/docs/CourtInfo.md +28 -0
- package/docs/CourtResponse.md +20 -16
- package/docs/CourtStatus.md +2 -5
- package/docs/CreateBookingRequest.md +3 -3
- package/docs/CreateClubRequest.md +0 -18
- package/docs/{ConfirmPaymentMethodSetupRequestBody.md → CreateClubRoleRequest.md} +7 -5
- package/docs/CreateClubSettingsRequest.md +15 -9
- package/docs/CreateCourtForClub201Response.md +20 -0
- package/docs/CreateCourtRequest.md +10 -12
- package/docs/CreateEventRequest.md +56 -0
- package/docs/CreatePlan201Response.md +22 -0
- package/docs/CreateSportForClub201Response.md +20 -0
- package/docs/CreateSportForClubRequest.md +26 -0
- package/docs/CreateSportRequest.md +6 -6
- package/docs/CreateSubscriptionPlanRequest.md +12 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
- package/docs/CreatorChargeResult.md +26 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/{StaffSportsApi.md → DefaultApi.md} +18 -18
- package/docs/{DeleteSlotsResponse.md → DeleteClubRoleResponse.md} +4 -4
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/{DeleteSport200Response.md → DeleteCourtResponse.md} +4 -4
- package/docs/{GenerateSlotsResponse.md → DeleteEventResponse.md} +4 -4
- 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 +66 -0
- package/docs/EventResponseCourtsInner.md +18 -0
- package/docs/EventsApi.md +238 -0
- package/docs/EventsListResponse.md +20 -0
- package/docs/{ManagerClubsApi.md → EventsManagerApi.md} +79 -75
- package/docs/{StaffProfileApi.md → EventsStaffApi.md} +14 -13
- package/docs/{AddClubMemberResponse.md → FavoriteClubMutationResponse.md} +6 -6
- package/docs/{GetClubSettingsRequest.md → FavoriteClubRequestBody.md} +3 -3
- package/docs/{BlockSlotResponse.md → FavoriteClubsResponse.md} +5 -7
- package/docs/FavoritePlayerMutationResponse.md +22 -0
- package/docs/FavoritePlayerRequestBody.md +20 -0
- package/docs/FavoritePlayersResponse.md +20 -0
- package/docs/Gender.md +12 -0
- package/docs/GenderPercentageResponse.md +26 -0
- 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 +20 -0
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +26 -0
- package/docs/GetCourtsByClubAndSportById200Response.md +26 -0
- package/docs/GetInfillPercentagePerPeriod200Response.md +24 -0
- package/docs/{SlotsResponse.md → GetSlotsByClubById200Response.md} +6 -6
- package/docs/GoogleAuthRequestBody.md +20 -0
- package/docs/GoogleAuthResponse.md +30 -0
- package/docs/GoogleAuthResponseUser.md +26 -0
- package/docs/{Court.md → ICourtData.md} +18 -6
- package/docs/ILevelBySports.md +22 -0
- package/docs/IUserAttributes.md +82 -0
- package/docs/IUserAttributesOrganizationsInner.md +28 -0
- package/docs/IUserLocation.md +44 -0
- package/docs/InvoiceInfo.md +24 -0
- package/docs/JoinEventRequest.md +22 -0
- package/docs/{ApiErrorResponse.md → JoinEventResponse.md} +6 -6
- package/docs/LastSixMonthsTurnoverItem.md +22 -0
- package/docs/{ActiveClub.md → LevelBySportEntry.md} +7 -7
- package/docs/LoginResponse.md +2 -0
- package/docs/ManagerCancelBookingRequest.md +20 -0
- package/docs/ManagerCancelBookingResponse.md +1 -1
- package/docs/MonthlyBreakdown.md +24 -0
- package/docs/MonthlyTurnoverResponse.md +29 -0
- package/docs/NoShowFeeResponse.md +30 -0
- package/docs/OffPeakRule.md +26 -0
- package/docs/PartialClubResponse.md +51 -0
- package/docs/PasswordResetRequestBody.md +20 -0
- package/docs/PaymentByPlayerInfo.md +22 -0
- package/docs/PaymentMethod.md +2 -1
- package/docs/PaymentMethodSetupResponse.md +24 -0
- package/docs/PickIUserLocationExcludeKeyofIUserLocationType.md +43 -0
- package/docs/PlanInterval.md +14 -0
- package/docs/PlayerCategoriesResponse.md +20 -0
- package/docs/PlayerCategory.md +26 -0
- package/docs/PlayerCategoryId.md +16 -0
- package/docs/PlayerListResponse.md +26 -0
- package/docs/PlayerPaymentInfo.md +36 -0
- package/docs/PlayerSummary.md +42 -0
- package/docs/ProfilePictureResponse.md +20 -0
- package/docs/{ActiveClubListResponse.md → ProfilePictureUpdateRequestBody.md} +5 -5
- package/docs/PublicSubscriptionPlanResponse.md +30 -0
- package/docs/PublicUserProfileResponse.md +44 -0
- package/docs/PublishEventResponse.md +20 -0
- package/docs/QuickReservationClubSummary.md +28 -0
- package/docs/QuickReservationClubSummaryLocation.md +31 -0
- package/docs/QuickReservationResponse.md +22 -0
- package/docs/QuickReservationSlotSummary.md +42 -0
- package/docs/RefreshTokenResponse.md +6 -2
- package/docs/RegisterRequestBody.md +6 -0
- package/docs/RegisterRequestBodyLocation.md +44 -0
- package/docs/RequestPasswordReset200Response.md +20 -0
- package/docs/{GoogleSignInResponse.md → ResetPasswordRequest.md} +5 -7
- package/docs/SetupPaymentMethodRequestBody.md +1 -3
- package/docs/SetupPaymentMethodResponse.md +3 -3
- package/docs/SlotInfo.md +26 -0
- package/docs/SportAnalyticsResponse.md +24 -0
- package/docs/SportInfo.md +22 -0
- package/docs/SportKey.md +14 -0
- package/docs/SportLevel.md +22 -0
- package/docs/SportResponse.md +14 -8
- package/docs/SportWithLevels.md +30 -0
- package/docs/SportsManagerApi.md +180 -0
- package/docs/SportsStaffApi.md +55 -0
- package/docs/StaffUserProfileResponse.md +86 -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/StripeStripeProductMarketingFeature.md +20 -0
- 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/{DeleteClubSettingsRequest.md → SubscribeRequestBody.md} +5 -3
- package/docs/SubscriberPrice.md +22 -0
- package/docs/SubscriptionMutationResponse.md +20 -0
- package/docs/SubscriptionPlanResponse.md +16 -14
- package/docs/SubscriptionsManagerApi.md +171 -0
- package/docs/{StaffClubsApi.md → SubscriptionsPublicApi.md} +16 -15
- package/docs/{UserClubsApi.md → SubscriptionsStaffApi.md} +13 -12
- package/docs/SubscriptionsUserApi.md +222 -0
- package/docs/SurfaceType.md +12 -0
- package/docs/Team.md +22 -0
- package/docs/UpdateActuality200Response.md +20 -0
- package/docs/UpdateClubRequest.md +14 -20
- package/docs/UpdateClubRequestLocation.md +29 -0
- package/docs/UpdateClubRequestLocationCoordinates.md +22 -0
- package/docs/UpdateClubRoleRequest.md +22 -0
- package/docs/UpdateClubSettingsRequest.md +14 -10
- package/docs/UpdateCustomerRequestBody.md +3 -7
- package/docs/UpdateCustomerResponse.md +1 -3
- package/docs/UpdateEventRequest.md +54 -0
- package/docs/{ClubListResponse.md → UpdateLevelBySportsRequestBody.md} +5 -7
- package/docs/UpdatePlanRequest.md +22 -0
- package/docs/UpdateSportRequest.md +7 -3
- package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
- package/docs/UpdateUserRequestBody.md +8 -2
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserClubSubscription.md +42 -0
- package/docs/UserInfo.md +28 -0
- package/docs/UserLocationSummary.md +44 -0
- package/docs/UserProfileResponse.md +94 -0
- package/docs/UserRolesResponse.md +20 -0
- package/docs/{GetActiveClubs200Response.md → UserSubscriptionsResponse.md} +5 -5
- package/docs/UsersApi.md +1963 -0
- package/docs/VerifyEmailRequest.md +20 -0
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/index.ts +3 -3
- package/package.json +5 -4
- package/docs/AdminClubSlotsApi.md +0 -62
- package/docs/Booking.md +0 -32
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/Club.md +0 -46
- package/docs/ClubInfoResponse.md +0 -46
- package/docs/ClubMember.md +0 -34
- package/docs/ClubRole.md +0 -30
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubSettings.md +0 -34
- package/docs/ClubsResponse.md +0 -22
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/CourtsResponse.md +0 -22
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -24
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserRolesResponseRolesInner.md +0 -26
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubCourtsApi.md +0 -118
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -125
- package/docs/ManagerClubSubscriptionsApi.md +0 -408
- package/docs/PriceResponse.md +0 -32
- package/docs/Slot.md +0 -24
- package/docs/SlotException.md +0 -26
- package/docs/SlotResponse.md +0 -34
- package/docs/Sport.md +0 -24
- package/docs/SportsResponse.md +0 -22
- package/docs/StaffClubAnalyticsApi.md +0 -111
- package/docs/StaffClubBookingsApi.md +0 -59
- package/docs/StaffClubSettingsApi.md +0 -62
- package/docs/SubscribeToClubRequestBody.md +0 -22
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
- package/docs/UpdateCustomerResponseCustomer.md +0 -28
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/User.md +0 -40
- package/docs/UserApi.md +0 -119
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserPaymentApi.md +0 -121
- package/docs/UserProfileApi.md +0 -224
- package/docs/UserResponse.md +0 -38
- package/docs/UserSubscriptionsApi.md +0 -222
- package/docs/UsersResponse.md +0 -22
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# EventsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
|
|
8
|
+
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
|
|
9
|
+
|[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
|
|
10
|
+
|[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
|
|
11
|
+
|
|
12
|
+
# **getEventById**
|
|
13
|
+
> PublishEventResponse getEventById()
|
|
14
|
+
|
|
15
|
+
Get a specific event by ID
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
EventsApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new EventsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let eventId: string; // (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.getEventById(
|
|
31
|
+
eventId
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**PublishEventResponse**
|
|
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** | Event details | - |
|
|
60
|
+
|**404** | Not Found | - |
|
|
61
|
+
|**500** | Server Error | - |
|
|
62
|
+
|
|
63
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
64
|
+
|
|
65
|
+
# **getPublishedEventsByClubId**
|
|
66
|
+
> EventsListResponse getPublishedEventsByClubId()
|
|
67
|
+
|
|
68
|
+
Get all published events for a club
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
EventsApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@tennac-booking/sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new EventsApi(configuration);
|
|
80
|
+
|
|
81
|
+
let clubId: string; // (optional) (default to undefined)
|
|
82
|
+
let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
|
|
83
|
+
let type: 'event' | 'closure'; // (optional) (default to undefined)
|
|
84
|
+
let sportId: string; // (optional) (default to undefined)
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.getPublishedEventsByClubId(
|
|
87
|
+
clubId,
|
|
88
|
+
visibilityType,
|
|
89
|
+
type,
|
|
90
|
+
sportId
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
99
|
+
| **visibilityType** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
100
|
+
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (optional) defaults to undefined|
|
|
101
|
+
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
**EventsListResponse**
|
|
107
|
+
|
|
108
|
+
### Authorization
|
|
109
|
+
|
|
110
|
+
No authorization required
|
|
111
|
+
|
|
112
|
+
### HTTP request headers
|
|
113
|
+
|
|
114
|
+
- **Content-Type**: Not defined
|
|
115
|
+
- **Accept**: application/json
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**200** | List of published events | - |
|
|
122
|
+
|**400** | Bad Request | - |
|
|
123
|
+
|**500** | Server Error | - |
|
|
124
|
+
|
|
125
|
+
[[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)
|
|
126
|
+
|
|
127
|
+
# **joinEvent**
|
|
128
|
+
> JoinEventResponse joinEvent(joinEventRequest)
|
|
129
|
+
|
|
130
|
+
Join an event (user)
|
|
131
|
+
|
|
132
|
+
### Example
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import {
|
|
136
|
+
EventsApi,
|
|
137
|
+
Configuration,
|
|
138
|
+
JoinEventRequest
|
|
139
|
+
} from '@tennac-booking/sdk';
|
|
140
|
+
|
|
141
|
+
const configuration = new Configuration();
|
|
142
|
+
const apiInstance = new EventsApi(configuration);
|
|
143
|
+
|
|
144
|
+
let eventId: string; // (default to undefined)
|
|
145
|
+
let joinEventRequest: JoinEventRequest; //
|
|
146
|
+
|
|
147
|
+
const { status, data } = await apiInstance.joinEvent(
|
|
148
|
+
eventId,
|
|
149
|
+
joinEventRequest
|
|
150
|
+
);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Parameters
|
|
154
|
+
|
|
155
|
+
|Name | Type | Description | Notes|
|
|
156
|
+
|------------- | ------------- | ------------- | -------------|
|
|
157
|
+
| **joinEventRequest** | **JoinEventRequest**| | |
|
|
158
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Return type
|
|
162
|
+
|
|
163
|
+
**JoinEventResponse**
|
|
164
|
+
|
|
165
|
+
### Authorization
|
|
166
|
+
|
|
167
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
168
|
+
|
|
169
|
+
### HTTP request headers
|
|
170
|
+
|
|
171
|
+
- **Content-Type**: application/json
|
|
172
|
+
- **Accept**: application/json
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### HTTP response details
|
|
176
|
+
| Status code | Description | Response headers |
|
|
177
|
+
|-------------|-------------|------------------|
|
|
178
|
+
|**200** | Successfully joined event | - |
|
|
179
|
+
|**400** | Bad Request | - |
|
|
180
|
+
|**404** | Not Found | - |
|
|
181
|
+
|**500** | Server Error | - |
|
|
182
|
+
|
|
183
|
+
[[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)
|
|
184
|
+
|
|
185
|
+
# **leaveEvent**
|
|
186
|
+
> JoinEventResponse leaveEvent()
|
|
187
|
+
|
|
188
|
+
Leave an event (user)
|
|
189
|
+
|
|
190
|
+
### Example
|
|
191
|
+
|
|
192
|
+
```typescript
|
|
193
|
+
import {
|
|
194
|
+
EventsApi,
|
|
195
|
+
Configuration
|
|
196
|
+
} from '@tennac-booking/sdk';
|
|
197
|
+
|
|
198
|
+
const configuration = new Configuration();
|
|
199
|
+
const apiInstance = new EventsApi(configuration);
|
|
200
|
+
|
|
201
|
+
let eventId: string; // (default to undefined)
|
|
202
|
+
|
|
203
|
+
const { status, data } = await apiInstance.leaveEvent(
|
|
204
|
+
eventId
|
|
205
|
+
);
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
|Name | Type | Description | Notes|
|
|
211
|
+
|------------- | ------------- | ------------- | -------------|
|
|
212
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Return type
|
|
216
|
+
|
|
217
|
+
**JoinEventResponse**
|
|
218
|
+
|
|
219
|
+
### Authorization
|
|
220
|
+
|
|
221
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
222
|
+
|
|
223
|
+
### HTTP request headers
|
|
224
|
+
|
|
225
|
+
- **Content-Type**: Not defined
|
|
226
|
+
- **Accept**: application/json
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### HTTP response details
|
|
230
|
+
| Status code | Description | Response headers |
|
|
231
|
+
|-------------|-------------|------------------|
|
|
232
|
+
|**200** | Successfully left event | - |
|
|
233
|
+
|**400** | Bad Request | - |
|
|
234
|
+
|**404** | Not Found | - |
|
|
235
|
+
|**500** | Server Error | - |
|
|
236
|
+
|
|
237
|
+
[[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)
|
|
238
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# EventsListResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**events** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { EventsListResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: EventsListResponse = {
|
|
16
|
+
events,
|
|
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,37 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# EventsManagerApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
11
|
-
|[**
|
|
7
|
+
|[**createEvent**](#createevent) | **POST** /api/events/manager/createEvent | |
|
|
8
|
+
|[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | |
|
|
9
|
+
|[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | |
|
|
10
|
+
|[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | |
|
|
11
|
+
|[**updateEvent**](#updateevent) | **PUT** /api/events/manager/updateEvent/{eventId} | |
|
|
12
12
|
|
|
13
|
-
# **
|
|
14
|
-
>
|
|
13
|
+
# **createEvent**
|
|
14
|
+
> PublishEventResponse createEvent(createEventRequest)
|
|
15
15
|
|
|
16
|
+
Create a new event (manager)
|
|
16
17
|
|
|
17
18
|
### Example
|
|
18
19
|
|
|
19
20
|
```typescript
|
|
20
21
|
import {
|
|
21
|
-
|
|
22
|
+
EventsManagerApi,
|
|
22
23
|
Configuration,
|
|
23
|
-
|
|
24
|
+
CreateEventRequest
|
|
24
25
|
} from '@tennac-booking/sdk';
|
|
25
26
|
|
|
26
27
|
const configuration = new Configuration();
|
|
27
|
-
const apiInstance = new
|
|
28
|
+
const apiInstance = new EventsManagerApi(configuration);
|
|
28
29
|
|
|
29
|
-
let
|
|
30
|
-
let addClubMemberRequest: AddClubMemberRequest; //
|
|
30
|
+
let createEventRequest: CreateEventRequest; //
|
|
31
31
|
|
|
32
|
-
const { status, data } = await apiInstance.
|
|
33
|
-
|
|
34
|
-
addClubMemberRequest
|
|
32
|
+
const { status, data } = await apiInstance.createEvent(
|
|
33
|
+
createEventRequest
|
|
35
34
|
);
|
|
36
35
|
```
|
|
37
36
|
|
|
@@ -39,13 +38,12 @@ const { status, data } = await apiInstance.addClubMember(
|
|
|
39
38
|
|
|
40
39
|
|Name | Type | Description | Notes|
|
|
41
40
|
|------------- | ------------- | ------------- | -------------|
|
|
42
|
-
| **
|
|
43
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
41
|
+
| **createEventRequest** | **CreateEventRequest**| | |
|
|
44
42
|
|
|
45
43
|
|
|
46
44
|
### Return type
|
|
47
45
|
|
|
48
|
-
**
|
|
46
|
+
**PublishEventResponse**
|
|
49
47
|
|
|
50
48
|
### Authorization
|
|
51
49
|
|
|
@@ -60,32 +58,33 @@ const { status, data } = await apiInstance.addClubMember(
|
|
|
60
58
|
### HTTP response details
|
|
61
59
|
| Status code | Description | Response headers |
|
|
62
60
|
|-------------|-------------|------------------|
|
|
63
|
-
|**201** |
|
|
64
|
-
|**400** |
|
|
65
|
-
|**
|
|
66
|
-
|**500** |
|
|
61
|
+
|**201** | Event created | - |
|
|
62
|
+
|**400** | Bad Request | - |
|
|
63
|
+
|**401** | Unauthorized | - |
|
|
64
|
+
|**500** | Server Error | - |
|
|
67
65
|
|
|
68
66
|
[[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
67
|
|
|
70
|
-
# **
|
|
71
|
-
>
|
|
68
|
+
# **deleteEvent**
|
|
69
|
+
> DeleteEventResponse deleteEvent()
|
|
72
70
|
|
|
71
|
+
Delete an event (manager)
|
|
73
72
|
|
|
74
73
|
### Example
|
|
75
74
|
|
|
76
75
|
```typescript
|
|
77
76
|
import {
|
|
78
|
-
|
|
77
|
+
EventsManagerApi,
|
|
79
78
|
Configuration
|
|
80
79
|
} from '@tennac-booking/sdk';
|
|
81
80
|
|
|
82
81
|
const configuration = new Configuration();
|
|
83
|
-
const apiInstance = new
|
|
82
|
+
const apiInstance = new EventsManagerApi(configuration);
|
|
84
83
|
|
|
85
|
-
let
|
|
84
|
+
let eventId: string; // (default to undefined)
|
|
86
85
|
|
|
87
|
-
const { status, data } = await apiInstance.
|
|
88
|
-
|
|
86
|
+
const { status, data } = await apiInstance.deleteEvent(
|
|
87
|
+
eventId
|
|
89
88
|
);
|
|
90
89
|
```
|
|
91
90
|
|
|
@@ -93,12 +92,12 @@ const { status, data } = await apiInstance.getClubInfo(
|
|
|
93
92
|
|
|
94
93
|
|Name | Type | Description | Notes|
|
|
95
94
|
|------------- | ------------- | ------------- | -------------|
|
|
96
|
-
| **
|
|
95
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
97
96
|
|
|
98
97
|
|
|
99
98
|
### Return type
|
|
100
99
|
|
|
101
|
-
**
|
|
100
|
+
**DeleteEventResponse**
|
|
102
101
|
|
|
103
102
|
### Authorization
|
|
104
103
|
|
|
@@ -113,31 +112,32 @@ const { status, data } = await apiInstance.getClubInfo(
|
|
|
113
112
|
### HTTP response details
|
|
114
113
|
| Status code | Description | Response headers |
|
|
115
114
|
|-------------|-------------|------------------|
|
|
116
|
-
|**200** |
|
|
117
|
-
|**404** |
|
|
118
|
-
|**500** |
|
|
115
|
+
|**200** | Event deleted | - |
|
|
116
|
+
|**404** | Not Found | - |
|
|
117
|
+
|**500** | Server Error | - |
|
|
119
118
|
|
|
120
119
|
[[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)
|
|
121
120
|
|
|
122
|
-
# **
|
|
123
|
-
>
|
|
121
|
+
# **publishEvent**
|
|
122
|
+
> PublishEventResponse publishEvent()
|
|
124
123
|
|
|
124
|
+
Publish an event (manager)
|
|
125
125
|
|
|
126
126
|
### Example
|
|
127
127
|
|
|
128
128
|
```typescript
|
|
129
129
|
import {
|
|
130
|
-
|
|
130
|
+
EventsManagerApi,
|
|
131
131
|
Configuration
|
|
132
132
|
} from '@tennac-booking/sdk';
|
|
133
133
|
|
|
134
134
|
const configuration = new Configuration();
|
|
135
|
-
const apiInstance = new
|
|
135
|
+
const apiInstance = new EventsManagerApi(configuration);
|
|
136
136
|
|
|
137
|
-
let
|
|
137
|
+
let eventId: string; // (default to undefined)
|
|
138
138
|
|
|
139
|
-
const { status, data } = await apiInstance.
|
|
140
|
-
|
|
139
|
+
const { status, data } = await apiInstance.publishEvent(
|
|
140
|
+
eventId
|
|
141
141
|
);
|
|
142
142
|
```
|
|
143
143
|
|
|
@@ -145,12 +145,12 @@ const { status, data } = await apiInstance.getClubMembers(
|
|
|
145
145
|
|
|
146
146
|
|Name | Type | Description | Notes|
|
|
147
147
|
|------------- | ------------- | ------------- | -------------|
|
|
148
|
-
| **
|
|
148
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
### Return type
|
|
152
152
|
|
|
153
|
-
**
|
|
153
|
+
**PublishEventResponse**
|
|
154
154
|
|
|
155
155
|
### Authorization
|
|
156
156
|
|
|
@@ -165,30 +165,32 @@ const { status, data } = await apiInstance.getClubMembers(
|
|
|
165
165
|
### HTTP response details
|
|
166
166
|
| Status code | Description | Response headers |
|
|
167
167
|
|-------------|-------------|------------------|
|
|
168
|
-
|**200** |
|
|
169
|
-
|**
|
|
168
|
+
|**200** | Event published | - |
|
|
169
|
+
|**404** | Not Found | - |
|
|
170
|
+
|**500** | Server Error | - |
|
|
170
171
|
|
|
171
172
|
[[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)
|
|
172
173
|
|
|
173
|
-
# **
|
|
174
|
-
>
|
|
174
|
+
# **unpublishEvent**
|
|
175
|
+
> PublishEventResponse unpublishEvent()
|
|
175
176
|
|
|
177
|
+
Unpublish an event (manager)
|
|
176
178
|
|
|
177
179
|
### Example
|
|
178
180
|
|
|
179
181
|
```typescript
|
|
180
182
|
import {
|
|
181
|
-
|
|
183
|
+
EventsManagerApi,
|
|
182
184
|
Configuration
|
|
183
185
|
} from '@tennac-booking/sdk';
|
|
184
186
|
|
|
185
187
|
const configuration = new Configuration();
|
|
186
|
-
const apiInstance = new
|
|
188
|
+
const apiInstance = new EventsManagerApi(configuration);
|
|
187
189
|
|
|
188
|
-
let
|
|
190
|
+
let eventId: string; // (default to undefined)
|
|
189
191
|
|
|
190
|
-
const { status, data } = await apiInstance.
|
|
191
|
-
|
|
192
|
+
const { status, data } = await apiInstance.unpublishEvent(
|
|
193
|
+
eventId
|
|
192
194
|
);
|
|
193
195
|
```
|
|
194
196
|
|
|
@@ -196,12 +198,12 @@ const { status, data } = await apiInstance.getClubRoles(
|
|
|
196
198
|
|
|
197
199
|
|Name | Type | Description | Notes|
|
|
198
200
|
|------------- | ------------- | ------------- | -------------|
|
|
199
|
-
| **
|
|
201
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
200
202
|
|
|
201
203
|
|
|
202
204
|
### Return type
|
|
203
205
|
|
|
204
|
-
**
|
|
206
|
+
**PublishEventResponse**
|
|
205
207
|
|
|
206
208
|
### Authorization
|
|
207
209
|
|
|
@@ -216,33 +218,35 @@ const { status, data } = await apiInstance.getClubRoles(
|
|
|
216
218
|
### HTTP response details
|
|
217
219
|
| Status code | Description | Response headers |
|
|
218
220
|
|-------------|-------------|------------------|
|
|
219
|
-
|**200** |
|
|
220
|
-
|**
|
|
221
|
+
|**200** | Event unpublished | - |
|
|
222
|
+
|**404** | Not Found | - |
|
|
223
|
+
|**500** | Server Error | - |
|
|
221
224
|
|
|
222
225
|
[[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)
|
|
223
226
|
|
|
224
|
-
# **
|
|
225
|
-
>
|
|
227
|
+
# **updateEvent**
|
|
228
|
+
> PublishEventResponse updateEvent(updateEventRequest)
|
|
226
229
|
|
|
230
|
+
Update an event (manager)
|
|
227
231
|
|
|
228
232
|
### Example
|
|
229
233
|
|
|
230
234
|
```typescript
|
|
231
235
|
import {
|
|
232
|
-
|
|
236
|
+
EventsManagerApi,
|
|
233
237
|
Configuration,
|
|
234
|
-
|
|
238
|
+
UpdateEventRequest
|
|
235
239
|
} from '@tennac-booking/sdk';
|
|
236
240
|
|
|
237
241
|
const configuration = new Configuration();
|
|
238
|
-
const apiInstance = new
|
|
242
|
+
const apiInstance = new EventsManagerApi(configuration);
|
|
239
243
|
|
|
240
|
-
let
|
|
241
|
-
let
|
|
244
|
+
let eventId: string; // (default to undefined)
|
|
245
|
+
let updateEventRequest: UpdateEventRequest; //
|
|
242
246
|
|
|
243
|
-
const { status, data } = await apiInstance.
|
|
244
|
-
|
|
245
|
-
|
|
247
|
+
const { status, data } = await apiInstance.updateEvent(
|
|
248
|
+
eventId,
|
|
249
|
+
updateEventRequest
|
|
246
250
|
);
|
|
247
251
|
```
|
|
248
252
|
|
|
@@ -250,13 +254,13 @@ const { status, data } = await apiInstance.updateClub(
|
|
|
250
254
|
|
|
251
255
|
|Name | Type | Description | Notes|
|
|
252
256
|
|------------- | ------------- | ------------- | -------------|
|
|
253
|
-
| **
|
|
254
|
-
| **
|
|
257
|
+
| **updateEventRequest** | **UpdateEventRequest**| | |
|
|
258
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
255
259
|
|
|
256
260
|
|
|
257
261
|
### Return type
|
|
258
262
|
|
|
259
|
-
**
|
|
263
|
+
**PublishEventResponse**
|
|
260
264
|
|
|
261
265
|
### Authorization
|
|
262
266
|
|
|
@@ -271,10 +275,10 @@ const { status, data } = await apiInstance.updateClub(
|
|
|
271
275
|
### HTTP response details
|
|
272
276
|
| Status code | Description | Response headers |
|
|
273
277
|
|-------------|-------------|------------------|
|
|
274
|
-
|**200** |
|
|
275
|
-
|**400** |
|
|
276
|
-
|**404** |
|
|
277
|
-
|**500** |
|
|
278
|
+
|**200** | Event updated | - |
|
|
279
|
+
|**400** | Bad Request | - |
|
|
280
|
+
|**404** | Not Found | - |
|
|
281
|
+
|**500** | Server Error | - |
|
|
278
282
|
|
|
279
283
|
[[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)
|
|
280
284
|
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# EventsStaffApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
8
8
|
|
|
9
|
-
# **
|
|
10
|
-
>
|
|
9
|
+
# **getEventsByClub**
|
|
10
|
+
> EventsListResponse getEventsByClub()
|
|
11
11
|
|
|
12
|
+
Get all events for a club (staff only)
|
|
12
13
|
|
|
13
14
|
### Example
|
|
14
15
|
|
|
15
16
|
```typescript
|
|
16
17
|
import {
|
|
17
|
-
|
|
18
|
+
EventsStaffApi,
|
|
18
19
|
Configuration
|
|
19
20
|
} from '@tennac-booking/sdk';
|
|
20
21
|
|
|
21
22
|
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new
|
|
23
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
23
24
|
|
|
24
|
-
const { status, data } = await apiInstance.
|
|
25
|
+
const { status, data } = await apiInstance.getEventsByClub();
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
### Parameters
|
|
@@ -30,7 +31,7 @@ This endpoint does not have any parameters.
|
|
|
30
31
|
|
|
31
32
|
### Return type
|
|
32
33
|
|
|
33
|
-
**
|
|
34
|
+
**EventsListResponse**
|
|
34
35
|
|
|
35
36
|
### Authorization
|
|
36
37
|
|
|
@@ -45,10 +46,10 @@ This endpoint does not have any parameters.
|
|
|
45
46
|
### HTTP response details
|
|
46
47
|
| Status code | Description | Response headers |
|
|
47
48
|
|-------------|-------------|------------------|
|
|
48
|
-
|**200** |
|
|
49
|
-
|**400** |
|
|
50
|
-
|**401** |
|
|
51
|
-
|**500** |
|
|
49
|
+
|**200** | List of events | - |
|
|
50
|
+
|**400** | Bad Request | - |
|
|
51
|
+
|**401** | Unauthorized | - |
|
|
52
|
+
|**500** | Server Error | - |
|
|
52
53
|
|
|
53
54
|
[[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)
|
|
54
55
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FavoriteClubMutationResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | | [
|
|
9
|
-
**
|
|
8
|
+
**message** | **string** | | [default to undefined]
|
|
9
|
+
**favoriteClubs** | **Array<string>** | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { FavoriteClubMutationResponse } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: FavoriteClubMutationResponse = {
|
|
17
17
|
message,
|
|
18
|
-
|
|
18
|
+
favoriteClubs,
|
|
19
19
|
};
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FavoriteClubRequestBody
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { FavoriteClubRequestBody } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: FavoriteClubRequestBody = {
|
|
16
16
|
clubId,
|
|
17
17
|
};
|
|
18
18
|
```
|