@tennac-booking/sdk 1.0.228 → 1.0.230
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 +455 -434
- package/README.md +76 -48
- package/api.ts +4772 -3570
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +4850 -3759
- package/dist/api.js +3707 -4214
- package/dist/base.d.ts +1 -1
- package/dist/base.js +6 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +23 -39
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +63 -3
- package/dist/esm/api.d.ts +4850 -3759
- package/dist/esm/api.js +3694 -4197
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +6 -3
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +23 -39
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +63 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgendaBooking.md +2 -0
- package/docs/AuthApi.md +113 -0
- package/docs/BookingPopulated.md +9 -1
- package/docs/BookingSummary.md +4 -4
- package/docs/BookingsApi.md +29 -80
- package/docs/BookingsStaffApi.md +1 -57
- package/docs/BookingsUserApi.md +58 -6
- package/docs/{CheckInPlayerSumupResponse.md → CloseOpenBookingResponse.md} +5 -7
- package/docs/ClubPageResponse.md +16 -0
- package/docs/ClubPageResponseClubCustomerStatus.md +27 -0
- package/docs/ClubPageResponseSportsIdsLookup.md +23 -0
- package/docs/ClubPricingPeriodPayload.md +32 -0
- package/docs/ClubPricingPeriodResponse.md +6 -6
- package/docs/ClubReservationSettingsResponse.md +2 -2
- package/docs/ClubResponse.md +12 -2
- package/docs/ClubSummary.md +6 -0
- package/docs/ComingEventsPageResponse.md +22 -0
- package/docs/CourtEnvironment.md +10 -0
- package/docs/CreateBookingRequest.md +0 -4
- package/docs/CreateOpenBookingRequest.md +7 -5
- package/docs/CreateSubscriptionPlanRequestDiscount.md +4 -0
- package/docs/EstimateOpenBookingJoinRequest.md +24 -0
- package/docs/EventBookingDetailSummary.md +2 -0
- package/docs/EventBookingResponse.md +2 -0
- package/docs/EventResponse.md +2 -0
- package/docs/EventsApi.md +113 -0
- package/docs/EventsStaffApi.md +119 -25
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +2 -0
- package/docs/GetOpenEventBookingsBySport200Response.md +20 -0
- package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +46 -0
- package/docs/{SumupPairReaderResponse.md → Health200Response.md} +7 -5
- package/docs/IUserAttributes.md +4 -0
- package/docs/{SumupReaderInfoDevice.md → JobResult.md} +9 -7
- package/docs/JobsApi.md +367 -0
- package/docs/JoinOpenBookingRequest.md +28 -0
- package/docs/MarkNotificationsReadRequest.md +22 -0
- package/docs/{SumupConnectUrlResponse.md → MarkNotificationsReadResponse.md} +5 -5
- package/docs/MyClubInfosResponse.md +0 -2
- package/docs/{PaymentStatus.md → NotificationActorType.md} +4 -6
- package/docs/NotificationData.md +22 -0
- package/docs/NotificationInitiator.md +28 -0
- package/docs/NotificationParticipantPreview.md +24 -0
- package/docs/NotificationPreview.md +78 -0
- package/docs/NotificationResponse.md +46 -0
- package/docs/{SumupUpdateReaderRequest.md → NotificationResponseClub.md} +7 -5
- package/docs/NotificationSlotPreview.md +24 -0
- package/docs/NotificationSportPreview.md +24 -0
- package/docs/{SumupReaderStatusResponse.md → NotificationTargetPreview.md} +7 -5
- package/docs/NotificationType.md +26 -0
- package/docs/OpenBookingBasePriceResponse.md +24 -0
- package/docs/OpenBookingInfo.md +7 -5
- package/docs/OpenBookingJoinEstimateResponse.md +26 -0
- package/docs/OpenBookingPriceBody.md +26 -0
- package/docs/PartnerSearchItem.md +28 -0
- package/docs/PartnerSearchResponse.md +22 -0
- package/docs/PartnerSearchResponseMeta.md +26 -0
- package/docs/PlayerPrice.md +3 -1
- package/docs/PricingPeriodDiscount.md +24 -0
- package/docs/PublicEmailApi.md +4 -4
- package/docs/QuickReservationClubSummary.md +12 -0
- package/docs/QuickReservationCourtType.md +10 -0
- package/docs/RequestOrganizationEmailCodeBody.md +22 -0
- package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
- package/docs/RequestVerificationCodeBody.md +26 -0
- package/docs/{SumupReaderResponse.md → RequestVerificationCodeResponse.md} +5 -5
- package/docs/SportResponse.md +2 -0
- package/docs/StaffEventBookingResponse.md +2 -0
- package/docs/StaffEventsPageResponse.md +22 -0
- package/docs/StaffUserProfileResponse.md +4 -0
- package/docs/SubscriptionPlanDiscountResponse.md +2 -0
- package/docs/SubscriptionPlanDiscountUpdateRequest.md +2 -0
- package/docs/{PaymentProviderType.md → SupportedLanguage.md} +3 -3
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/docs/UpdateClubReservationSettingsRequest.md +2 -2
- package/docs/UserClubMembership.md +2 -0
- package/docs/UserNextBookingSummary.md +26 -0
- package/docs/UserNotificationsResponse.md +22 -0
- package/docs/UserNotificationsResponseMeta.md +28 -0
- package/docs/UserProfileResponse.md +12 -0
- package/docs/UsersApi.md +273 -0
- package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
- package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
- package/docs/VerifyVerificationCodeBody.md +24 -0
- package/docs/{SumupCancelPaymentRequest.md → VerifyVerificationCodeResponse.md} +5 -5
- package/docs/WaitListEntryWithPlayer.md +44 -0
- package/docs/WaitListPlayer.md +28 -0
- package/docs/WaitListPlayersListResponse.md +22 -0
- package/docs/WaitListStaffApi.md +55 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/docs/CheckInPlayerSumupRequest.md +0 -22
- package/docs/CheckInSumupPaymentInfo.md +0 -26
- package/docs/GetOpenBookingPrice200Response.md +0 -24
- package/docs/GetOpenBookingPriceRequest.md +0 -26
- package/docs/JoinPriceEstimateResponse.md +0 -38
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
- package/docs/OpenBookingSlotInfo.md +0 -24
- package/docs/PaymentIntentResult.md +0 -28
- package/docs/PaymentsStaffApi.md +0 -124
- package/docs/StaffEventsPaginatedResponse.md +0 -26
- package/docs/SumUpApi.md +0 -63
- package/docs/SumUpManagerApi.md +0 -617
- package/docs/SumupAccountStatusResponse.md +0 -32
- package/docs/SumupCreatePaymentRequest.md +0 -32
- package/docs/SumupOAuthCallbackResponse.md +0 -24
- package/docs/SumupPairReaderRequest.md +0 -24
- package/docs/SumupReaderInfo.md +0 -42
- package/docs/SumupReaderStatusInfo.md +0 -32
- package/docs/SumupReadersResponse.md +0 -20
package/docs/ClubSummary.md
CHANGED
|
@@ -14,6 +14,9 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**address** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**description** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**visitCount** | **number** | | [optional] [default to undefined]
|
|
17
|
+
**lastPlayedAt** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**distanceInMeters** | **number** | | [optional] [default to undefined]
|
|
19
|
+
**distanceInKm** | **number** | | [optional] [default to undefined]
|
|
17
20
|
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
18
21
|
|
|
19
22
|
## Example
|
|
@@ -31,6 +34,9 @@ const instance: ClubSummary = {
|
|
|
31
34
|
address,
|
|
32
35
|
description,
|
|
33
36
|
visitCount,
|
|
37
|
+
lastPlayedAt,
|
|
38
|
+
distanceInMeters,
|
|
39
|
+
distanceInKm,
|
|
34
40
|
tags,
|
|
35
41
|
};
|
|
36
42
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ComingEventsPageResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**events** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
|
+
**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ComingEventsPageResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ComingEventsPageResponse = {
|
|
17
|
+
events,
|
|
18
|
+
pagination,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CourtEnvironment
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Indoor` (value: `'indoor'`)
|
|
7
|
+
|
|
8
|
+
* `Outdoor` (value: `'outdoor'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -11,8 +11,6 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
12
12
|
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
13
13
|
**creditToUseInCents** | **number** | | [optional] [default to undefined]
|
|
14
|
-
**maxPlayersDesired** | **number** | Pour créneau ouvert: nombre maximal de joueurs souhaités (incluant le créateur) | [optional] [default to undefined]
|
|
15
|
-
**maxPlayers** | **number** | Pour créneau ouvert: nombre maximal de joueurs total (incluant le créateur) - alias de maxPlayersDesired | [optional] [default to undefined]
|
|
16
14
|
|
|
17
15
|
## Example
|
|
18
16
|
|
|
@@ -26,8 +24,6 @@ const instance: CreateBookingRequest = {
|
|
|
26
24
|
paymentMethod,
|
|
27
25
|
useDefaultPaymentMethod,
|
|
28
26
|
creditToUseInCents,
|
|
29
|
-
maxPlayersDesired,
|
|
30
|
-
maxPlayers,
|
|
31
27
|
};
|
|
32
28
|
```
|
|
33
29
|
|
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
|
|
9
|
+
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste de tous les joueurs avec leurs méthodes de paiement (INCLUT LE CRÉATEUR) | [default to undefined]
|
|
10
|
+
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
|
|
9
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
10
12
|
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
11
|
-
**creditToUseInCents** | **number** |
|
|
12
|
-
**
|
|
13
|
+
**creditToUseInCents** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**maxPlayersDesired** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
|
|
13
15
|
**description** | **string** | Description de la réservation ouverte | [optional] [default to undefined]
|
|
14
16
|
**minLevel** | **string** | Niveau minimal souhaité pour rejoindre | [optional] [default to undefined]
|
|
15
|
-
**initialPlayerIds** | **Array<string>** | IDs des joueurs inclus de base dans la réservation (en plus du créateur) | [optional] [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -21,13 +22,14 @@ import { CreateOpenBookingRequest } from '@tennac-booking/sdk';
|
|
|
21
22
|
|
|
22
23
|
const instance: CreateOpenBookingRequest = {
|
|
23
24
|
slotIds,
|
|
25
|
+
players,
|
|
26
|
+
isCreatorPayingAll,
|
|
24
27
|
paymentMethod,
|
|
25
28
|
useDefaultPaymentMethod,
|
|
26
29
|
creditToUseInCents,
|
|
27
|
-
|
|
30
|
+
maxPlayersDesired,
|
|
28
31
|
description,
|
|
29
32
|
minLevel,
|
|
30
|
-
initialPlayerIds,
|
|
31
33
|
};
|
|
32
34
|
```
|
|
33
35
|
|
|
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**bookingFree** | **boolean** | | [optional] [default to undefined]
|
|
9
9
|
**offPeakRules** | [**Array<OffPeakRule>**](OffPeakRule.md) | | [optional] [default to undefined]
|
|
10
|
+
**pricingPeriodDiscounts** | [**Array<PricingPeriodDiscount>**](PricingPeriodDiscount.md) | | [optional] [default to undefined]
|
|
11
|
+
**pricingPeriodIds** | **Array<string>** | | [optional] [default to undefined]
|
|
10
12
|
**offPeakRuleNames** | **Array<string>** | Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club. | [optional] [default to undefined]
|
|
11
13
|
**validTo** | **string** | | [optional] [default to undefined]
|
|
12
14
|
**validFrom** | **string** | | [optional] [default to undefined]
|
|
@@ -22,6 +24,8 @@ import { CreateSubscriptionPlanRequestDiscount } from '@tennac-booking/sdk';
|
|
|
22
24
|
const instance: CreateSubscriptionPlanRequestDiscount = {
|
|
23
25
|
bookingFree,
|
|
24
26
|
offPeakRules,
|
|
27
|
+
pricingPeriodDiscounts,
|
|
28
|
+
pricingPeriodIds,
|
|
25
29
|
offPeakRuleNames,
|
|
26
30
|
validTo,
|
|
27
31
|
validFrom,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# EstimateOpenBookingJoinRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll) | [optional] [default to undefined]
|
|
9
|
+
**isCreatorPayingAll** | **boolean** | Indique si le joueur qui rejoint paie pour tous les joueurs qu\'il ajoute (incompatible avec playerShares) | [optional] [default to undefined]
|
|
10
|
+
**creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { EstimateOpenBookingJoinRequest } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: EstimateOpenBookingJoinRequest = {
|
|
18
|
+
playerShares,
|
|
19
|
+
isCreatorPayingAll,
|
|
20
|
+
creditToUseInCents,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**limitSetupDate** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**limitCancellationDate** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**waitListPosition** | **number** | Position dans la file d\'attente si l\'utilisateur est en waitlist pour cet événement | [optional] [default to undefined]
|
|
18
|
+
**userParticipationStatus** | **string** | Statut de participation de l\'utilisateur pour cet event booking | [optional] [default to undefined]
|
|
18
19
|
**createdAt** | **string** | | [default to undefined]
|
|
19
20
|
**updatedAt** | **string** | | [default to undefined]
|
|
20
21
|
|
|
@@ -34,6 +35,7 @@ const instance: EventBookingDetailSummary = {
|
|
|
34
35
|
limitSetupDate,
|
|
35
36
|
limitCancellationDate,
|
|
36
37
|
waitListPosition,
|
|
38
|
+
userParticipationStatus,
|
|
37
39
|
createdAt,
|
|
38
40
|
updatedAt,
|
|
39
41
|
};
|
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**setupLimitDate** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**cancellationLimitDate** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**setupStatus** | [**EventBookingResponseSetupStatus**](EventBookingResponseSetupStatus.md) | | [optional] [default to undefined]
|
|
16
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
16
17
|
**createdAt** | **string** | | [default to undefined]
|
|
17
18
|
**updatedAt** | **string** | | [default to undefined]
|
|
18
19
|
|
|
@@ -30,6 +31,7 @@ const instance: EventBookingResponse = {
|
|
|
30
31
|
setupLimitDate,
|
|
31
32
|
cancellationLimitDate,
|
|
32
33
|
setupStatus,
|
|
34
|
+
amount,
|
|
33
35
|
createdAt,
|
|
34
36
|
updatedAt,
|
|
35
37
|
};
|
package/docs/EventResponse.md
CHANGED
|
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
|
|
|
31
31
|
**levels** | **Array<string | null>** | | [optional] [default to undefined]
|
|
32
32
|
**sponsors** | [**Array<EventSponsor>**](EventSponsor.md) | | [optional] [default to undefined]
|
|
33
33
|
**registrationOpenDaysBefore** | **number** | | [default to undefined]
|
|
34
|
+
**isUserRegistered** | **boolean** | | [optional] [default to undefined]
|
|
34
35
|
**createdBy** | **string** | | [optional] [default to undefined]
|
|
35
36
|
**isActive** | **boolean** | | [default to undefined]
|
|
36
37
|
**createdAt** | **string** | | [default to undefined]
|
|
@@ -68,6 +69,7 @@ const instance: EventResponse = {
|
|
|
68
69
|
levels,
|
|
69
70
|
sponsors,
|
|
70
71
|
registrationOpenDaysBefore,
|
|
72
|
+
isUserRegistered,
|
|
71
73
|
createdBy,
|
|
72
74
|
isActive,
|
|
73
75
|
createdAt,
|
package/docs/EventsApi.md
CHANGED
|
@@ -7,9 +7,11 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**checkTeamNameAvailability**](#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability | |
|
|
8
8
|
|[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
|
|
9
9
|
|[**estimateOpenEventBookingJoinPrice**](#estimateopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/estimate | |
|
|
10
|
+
|[**getComingEvent**](#getcomingevent) | **GET** /api/events/coming | |
|
|
10
11
|
|[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
|
|
11
12
|
|[**getOpenEventBookingJoinPrice**](#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price | |
|
|
12
13
|
|[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
|
|
14
|
+
|[**getOpenEventBookingsBySport**](#getopeneventbookingsbysport) | **GET** /api/events/open/by-sport | |
|
|
13
15
|
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
|
|
14
16
|
|[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
|
|
15
17
|
|[**joinOpenEventBooking**](#joinopeneventbooking) | **POST** /api/events/{eventBookingId}/open/join | |
|
|
@@ -185,6 +187,63 @@ const { status, data } = await apiInstance.estimateOpenEventBookingJoinPrice(
|
|
|
185
187
|
|
|
186
188
|
[[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)
|
|
187
189
|
|
|
190
|
+
# **getComingEvent**
|
|
191
|
+
> ComingEventsPageResponse getComingEvent()
|
|
192
|
+
|
|
193
|
+
Get upcoming events for a club with pagination (max 10 per page)
|
|
194
|
+
|
|
195
|
+
### Example
|
|
196
|
+
|
|
197
|
+
```typescript
|
|
198
|
+
import {
|
|
199
|
+
EventsApi,
|
|
200
|
+
Configuration
|
|
201
|
+
} from '@tennac-booking/sdk';
|
|
202
|
+
|
|
203
|
+
const configuration = new Configuration();
|
|
204
|
+
const apiInstance = new EventsApi(configuration);
|
|
205
|
+
|
|
206
|
+
let clubId: string; // (optional) (default to undefined)
|
|
207
|
+
let page: number; // (optional) (default to undefined)
|
|
208
|
+
|
|
209
|
+
const { status, data } = await apiInstance.getComingEvent(
|
|
210
|
+
clubId,
|
|
211
|
+
page
|
|
212
|
+
);
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
|Name | Type | Description | Notes|
|
|
218
|
+
|------------- | ------------- | ------------- | -------------|
|
|
219
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
220
|
+
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
**ComingEventsPageResponse**
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: Not defined
|
|
234
|
+
- **Accept**: application/json
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### HTTP response details
|
|
238
|
+
| Status code | Description | Response headers |
|
|
239
|
+
|-------------|-------------|------------------|
|
|
240
|
+
|**200** | List of upcoming events | - |
|
|
241
|
+
|**400** | Bad Request | - |
|
|
242
|
+
|**401** | Unauthorized | - |
|
|
243
|
+
|**500** | Server Error | - |
|
|
244
|
+
|
|
245
|
+
[[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)
|
|
246
|
+
|
|
188
247
|
# **getEventById**
|
|
189
248
|
> PublishEventResponse getEventById()
|
|
190
249
|
|
|
@@ -347,6 +406,60 @@ No authorization required
|
|
|
347
406
|
|
|
348
407
|
[[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)
|
|
349
408
|
|
|
409
|
+
# **getOpenEventBookingsBySport**
|
|
410
|
+
> GetOpenEventBookingsBySport200Response getOpenEventBookingsBySport()
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
### Example
|
|
414
|
+
|
|
415
|
+
```typescript
|
|
416
|
+
import {
|
|
417
|
+
EventsApi,
|
|
418
|
+
Configuration
|
|
419
|
+
} from '@tennac-booking/sdk';
|
|
420
|
+
|
|
421
|
+
const configuration = new Configuration();
|
|
422
|
+
const apiInstance = new EventsApi(configuration);
|
|
423
|
+
|
|
424
|
+
let clubId: string; // (optional) (default to undefined)
|
|
425
|
+
let sportId: string; // (optional) (default to undefined)
|
|
426
|
+
|
|
427
|
+
const { status, data } = await apiInstance.getOpenEventBookingsBySport(
|
|
428
|
+
clubId,
|
|
429
|
+
sportId
|
|
430
|
+
);
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
### Parameters
|
|
434
|
+
|
|
435
|
+
|Name | Type | Description | Notes|
|
|
436
|
+
|------------- | ------------- | ------------- | -------------|
|
|
437
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
438
|
+
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
### Return type
|
|
442
|
+
|
|
443
|
+
**GetOpenEventBookingsBySport200Response**
|
|
444
|
+
|
|
445
|
+
### Authorization
|
|
446
|
+
|
|
447
|
+
No authorization required
|
|
448
|
+
|
|
449
|
+
### HTTP request headers
|
|
450
|
+
|
|
451
|
+
- **Content-Type**: Not defined
|
|
452
|
+
- **Accept**: application/json
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
### HTTP response details
|
|
456
|
+
| Status code | Description | Response headers |
|
|
457
|
+
|-------------|-------------|------------------|
|
|
458
|
+
|**200** | List of open event bookings filtered by sport | - |
|
|
459
|
+
|**400** | Bad Request | - |
|
|
460
|
+
|
|
461
|
+
[[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)
|
|
462
|
+
|
|
350
463
|
# **getPublishedEventsByClubId**
|
|
351
464
|
> EventsListResponse getPublishedEventsByClubId()
|
|
352
465
|
|
package/docs/EventsStaffApi.md
CHANGED
|
@@ -6,9 +6,11 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
8
8
|
|[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
|
|
9
|
+
|[**getDraftEventsByClub**](#getdrafteventsbyclub) | **GET** /api/events/staff/getEvents/drafts | |
|
|
9
10
|
|[**getEventByIdForStaff**](#geteventbyidforstaff) | **GET** /api/events/staff/{eventId} | |
|
|
10
|
-
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
11
11
|
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
12
|
+
|[**getPastEventsByClub**](#getpasteventsbyclub) | **GET** /api/events/staff/getEvents/past | |
|
|
13
|
+
|[**getUpcomingEventsByClub**](#getupcomingeventsbyclub) | **GET** /api/events/staff/getEvents/upcoming | |
|
|
12
14
|
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
13
15
|
|
|
14
16
|
# **checkInEventParticipants**
|
|
@@ -134,10 +136,9 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
134
136
|
|
|
135
137
|
[[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)
|
|
136
138
|
|
|
137
|
-
# **
|
|
138
|
-
>
|
|
139
|
+
# **getDraftEventsByClub**
|
|
140
|
+
> StaffEventsPageResponse getDraftEventsByClub()
|
|
139
141
|
|
|
140
|
-
Get a specific event by ID (staff)
|
|
141
142
|
|
|
142
143
|
### Example
|
|
143
144
|
|
|
@@ -150,23 +151,16 @@ import {
|
|
|
150
151
|
const configuration = new Configuration();
|
|
151
152
|
const apiInstance = new EventsStaffApi(configuration);
|
|
152
153
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
156
|
-
eventId
|
|
157
|
-
);
|
|
154
|
+
const { status, data } = await apiInstance.getDraftEventsByClub();
|
|
158
155
|
```
|
|
159
156
|
|
|
160
157
|
### Parameters
|
|
161
|
-
|
|
162
|
-
|Name | Type | Description | Notes|
|
|
163
|
-
|------------- | ------------- | ------------- | -------------|
|
|
164
|
-
| **eventId** | [**string**] | | defaults to undefined|
|
|
158
|
+
This endpoint does not have any parameters.
|
|
165
159
|
|
|
166
160
|
|
|
167
161
|
### Return type
|
|
168
162
|
|
|
169
|
-
**
|
|
163
|
+
**StaffEventsPageResponse**
|
|
170
164
|
|
|
171
165
|
### Authorization
|
|
172
166
|
|
|
@@ -181,16 +175,17 @@ const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
|
181
175
|
### HTTP response details
|
|
182
176
|
| Status code | Description | Response headers |
|
|
183
177
|
|-------------|-------------|------------------|
|
|
184
|
-
|**200** |
|
|
178
|
+
|**200** | Draft events | - |
|
|
185
179
|
|**400** | Bad Request | - |
|
|
186
|
-
|**
|
|
180
|
+
|**401** | Unauthorized | - |
|
|
181
|
+
|**500** | Server Error | - |
|
|
187
182
|
|
|
188
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)
|
|
189
184
|
|
|
190
|
-
# **
|
|
191
|
-
>
|
|
185
|
+
# **getEventByIdForStaff**
|
|
186
|
+
> StaffEventDetailResponse getEventByIdForStaff()
|
|
192
187
|
|
|
193
|
-
|
|
188
|
+
Get a specific event by ID (staff)
|
|
194
189
|
|
|
195
190
|
### Example
|
|
196
191
|
|
|
@@ -203,16 +198,23 @@ import {
|
|
|
203
198
|
const configuration = new Configuration();
|
|
204
199
|
const apiInstance = new EventsStaffApi(configuration);
|
|
205
200
|
|
|
206
|
-
|
|
201
|
+
let eventId: string; // (default to undefined)
|
|
202
|
+
|
|
203
|
+
const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
204
|
+
eventId
|
|
205
|
+
);
|
|
207
206
|
```
|
|
208
207
|
|
|
209
208
|
### Parameters
|
|
210
|
-
|
|
209
|
+
|
|
210
|
+
|Name | Type | Description | Notes|
|
|
211
|
+
|------------- | ------------- | ------------- | -------------|
|
|
212
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
211
213
|
|
|
212
214
|
|
|
213
215
|
### Return type
|
|
214
216
|
|
|
215
|
-
**
|
|
217
|
+
**StaffEventDetailResponse**
|
|
216
218
|
|
|
217
219
|
### Authorization
|
|
218
220
|
|
|
@@ -227,10 +229,9 @@ This endpoint does not have any parameters.
|
|
|
227
229
|
### HTTP response details
|
|
228
230
|
| Status code | Description | Response headers |
|
|
229
231
|
|-------------|-------------|------------------|
|
|
230
|
-
|**200** |
|
|
232
|
+
|**200** | Event details | - |
|
|
231
233
|
|**400** | Bad Request | - |
|
|
232
|
-
|**
|
|
233
|
-
|**500** | Server Error | - |
|
|
234
|
+
|**404** | Not Found | - |
|
|
234
235
|
|
|
235
236
|
[[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)
|
|
236
237
|
|
|
@@ -299,6 +300,99 @@ const { status, data } = await apiInstance.getMonthlyEvents(
|
|
|
299
300
|
|
|
300
301
|
[[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)
|
|
301
302
|
|
|
303
|
+
# **getPastEventsByClub**
|
|
304
|
+
> StaffEventsPageResponse getPastEventsByClub()
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### Example
|
|
308
|
+
|
|
309
|
+
```typescript
|
|
310
|
+
import {
|
|
311
|
+
EventsStaffApi,
|
|
312
|
+
Configuration
|
|
313
|
+
} from '@tennac-booking/sdk';
|
|
314
|
+
|
|
315
|
+
const configuration = new Configuration();
|
|
316
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
317
|
+
|
|
318
|
+
const { status, data } = await apiInstance.getPastEventsByClub();
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Parameters
|
|
322
|
+
This endpoint does not have any parameters.
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Return type
|
|
326
|
+
|
|
327
|
+
**StaffEventsPageResponse**
|
|
328
|
+
|
|
329
|
+
### Authorization
|
|
330
|
+
|
|
331
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
332
|
+
|
|
333
|
+
### HTTP request headers
|
|
334
|
+
|
|
335
|
+
- **Content-Type**: Not defined
|
|
336
|
+
- **Accept**: application/json
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### HTTP response details
|
|
340
|
+
| Status code | Description | Response headers |
|
|
341
|
+
|-------------|-------------|------------------|
|
|
342
|
+
|**200** | Past events | - |
|
|
343
|
+
|**400** | Bad Request | - |
|
|
344
|
+
|**401** | Unauthorized | - |
|
|
345
|
+
|**500** | Server Error | - |
|
|
346
|
+
|
|
347
|
+
[[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)
|
|
348
|
+
|
|
349
|
+
# **getUpcomingEventsByClub**
|
|
350
|
+
> StaffEventsPageResponse getUpcomingEventsByClub()
|
|
351
|
+
|
|
352
|
+
// Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
353
|
+
|
|
354
|
+
### Example
|
|
355
|
+
|
|
356
|
+
```typescript
|
|
357
|
+
import {
|
|
358
|
+
EventsStaffApi,
|
|
359
|
+
Configuration
|
|
360
|
+
} from '@tennac-booking/sdk';
|
|
361
|
+
|
|
362
|
+
const configuration = new Configuration();
|
|
363
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
364
|
+
|
|
365
|
+
const { status, data } = await apiInstance.getUpcomingEventsByClub();
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### Parameters
|
|
369
|
+
This endpoint does not have any parameters.
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### Return type
|
|
373
|
+
|
|
374
|
+
**StaffEventsPageResponse**
|
|
375
|
+
|
|
376
|
+
### Authorization
|
|
377
|
+
|
|
378
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
379
|
+
|
|
380
|
+
### HTTP request headers
|
|
381
|
+
|
|
382
|
+
- **Content-Type**: Not defined
|
|
383
|
+
- **Accept**: application/json
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### HTTP response details
|
|
387
|
+
| Status code | Description | Response headers |
|
|
388
|
+
|-------------|-------------|------------------|
|
|
389
|
+
|**200** | Upcoming events | - |
|
|
390
|
+
|**400** | Bad Request | - |
|
|
391
|
+
|**401** | Unauthorized | - |
|
|
392
|
+
|**500** | Server Error | - |
|
|
393
|
+
|
|
394
|
+
[[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)
|
|
395
|
+
|
|
302
396
|
# **getWeeklyEvents**
|
|
303
397
|
> EventsListResponse getWeeklyEvents()
|
|
304
398
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
8
9
|
**allowedEmailDomains** | **Array<string>** | | [default to undefined]
|
|
9
10
|
**address** | **string** | | [optional] [default to undefined]
|
|
10
11
|
**name** | **string** | | [default to undefined]
|
|
@@ -16,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
16
17
|
import { GetClubsWithVerificationDomains200ResponseInner } from '@tennac-booking/sdk';
|
|
17
18
|
|
|
18
19
|
const instance: GetClubsWithVerificationDomains200ResponseInner = {
|
|
20
|
+
logo,
|
|
19
21
|
allowedEmailDomains,
|
|
20
22
|
address,
|
|
21
23
|
name,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GetOpenEventBookingsBySport200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**eventBookings** | [**Array<GetOpenEventBookingsBySport200ResponseEventBookingsInner>**](GetOpenEventBookingsBySport200ResponseEventBookingsInner.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetOpenEventBookingsBySport200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetOpenEventBookingsBySport200Response = {
|
|
16
|
+
eventBookings,
|
|
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,46 @@
|
|
|
1
|
+
# GetOpenEventBookingsBySport200ResponseEventBookingsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
|
|
10
|
+
**teamName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**players** | [**Array<EventBookingResponsePlayersInner>**](EventBookingResponsePlayersInner.md) | | [default to undefined]
|
|
12
|
+
**paymentPerPlayers** | [**Array<EventBookingResponsePaymentPerPlayersInner>**](EventBookingResponsePaymentPerPlayersInner.md) | | [optional] [default to undefined]
|
|
13
|
+
**setupLimitDate** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**cancellationLimitDate** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**setupStatus** | [**EventBookingResponseSetupStatus**](EventBookingResponseSetupStatus.md) | | [optional] [default to undefined]
|
|
16
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**eventId** | **string** | | [default to undefined]
|
|
21
|
+
**event** | **any** | | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { GetOpenEventBookingsBySport200ResponseEventBookingsInner } from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const instance: GetOpenEventBookingsBySport200ResponseEventBookingsInner = {
|
|
29
|
+
id,
|
|
30
|
+
status,
|
|
31
|
+
teamName,
|
|
32
|
+
players,
|
|
33
|
+
paymentPerPlayers,
|
|
34
|
+
setupLimitDate,
|
|
35
|
+
cancellationLimitDate,
|
|
36
|
+
setupStatus,
|
|
37
|
+
amount,
|
|
38
|
+
createdAt,
|
|
39
|
+
updatedAt,
|
|
40
|
+
clubId,
|
|
41
|
+
eventId,
|
|
42
|
+
event,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[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,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Health200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**timestamp** | **string** | | [default to undefined]
|
|
9
|
+
**status** | **string** | | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { Health200Response } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: Health200Response = {
|
|
17
|
+
timestamp,
|
|
18
|
+
status,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|