@tennac-booking/sdk 1.0.70 → 1.0.72
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 +239 -230
- package/README.md +18 -5
- package/api.ts +1187 -155
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1097 -274
- package/dist/api.js +413 -50
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1097 -274
- package/dist/esm/api.js +410 -47
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingPriceBody.md +22 -0
- package/docs/BookingStatus.md +2 -0
- package/docs/BookingsApi.md +52 -0
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/CheckInPlayersResponse.md +2 -10
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/CreateEventRequest.md +26 -0
- package/docs/CreateSportForClubRequest.md +6 -0
- package/docs/CreateSportRequest.md +8 -2
- package/docs/EventResponse.md +26 -0
- package/docs/EventsApi.md +131 -12
- package/docs/EventsManagerApi.md +59 -0
- package/docs/JoinEventRequest.md +22 -0
- package/docs/JoinEventResponse.md +22 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/SportKey.md +14 -0
- package/docs/SportLevel.md +22 -0
- package/docs/SportResponse.md +10 -5
- package/docs/SportWithLevels.md +30 -0
- package/docs/SportsManagerApi.md +6 -3
- package/docs/SportsStaffApi.md +3 -3
- package/docs/SubscriberPrice.md +22 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/{GetSportsByClubById200Response.md → Team.md} +7 -5
- package/docs/UpdateEventRequest.md +54 -0
- package/docs/UpdateSportRequest.md +9 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/SportWithAnalytics.md +0 -36
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingPriceBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotIds** | **Array<string>** | | [default to undefined]
|
|
9
|
+
**players** | **Array<string>** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingPriceBody } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingPriceBody = {
|
|
17
|
+
slotIds,
|
|
18
|
+
players,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/BookingStatus.md
CHANGED
package/docs/BookingsApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
8
|
+
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
8
9
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
9
10
|
|
|
10
11
|
# **getBookingHistory**
|
|
@@ -58,6 +59,57 @@ const { status, data } = await apiInstance.getBookingHistory(
|
|
|
58
59
|
|
|
59
60
|
[[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)
|
|
60
61
|
|
|
62
|
+
# **getBookingPrice**
|
|
63
|
+
> Array<PlayerPrice> getBookingPrice(bookingPriceBody)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
BookingsApi,
|
|
71
|
+
Configuration,
|
|
72
|
+
BookingPriceBody
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new BookingsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let bookingPriceBody: BookingPriceBody; //
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.getBookingPrice(
|
|
81
|
+
bookingPriceBody
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **bookingPriceBody** | **BookingPriceBody**| | |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**Array<PlayerPrice>**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: application/json
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | Réservations journalières récupérées | - |
|
|
110
|
+
|
|
111
|
+
[[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)
|
|
112
|
+
|
|
61
113
|
# **getQuickReservationSlots**
|
|
62
114
|
> QuickReservationResponse getQuickReservationSlots()
|
|
63
115
|
|
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
-
**
|
|
10
|
-
**notFoundPlayers** | **Array<string>** | Joueurs non trouvés | [default to undefined]
|
|
11
|
-
**allPlayersCheckedIn** | **boolean** | Tous les joueurs ont fait le check-in | [default to undefined]
|
|
12
|
-
**bookingFullyPaid** | **boolean** | Réservation entièrement payée | [default to undefined]
|
|
13
|
-
**totalPlayers** | **number** | Nombre total de joueurs | [default to undefined]
|
|
9
|
+
**invoices** | [**Array<CheckedInPlayer>**](CheckedInPlayer.md) | Joueurs ayant effectué le check-in | [default to undefined]
|
|
14
10
|
|
|
15
11
|
## Example
|
|
16
12
|
|
|
@@ -19,11 +15,7 @@ import { CheckInPlayersResponse } from '@tennac-booking/sdk';
|
|
|
19
15
|
|
|
20
16
|
const instance: CheckInPlayersResponse = {
|
|
21
17
|
message,
|
|
22
|
-
|
|
23
|
-
notFoundPlayers,
|
|
24
|
-
allPlayersCheckedIn,
|
|
25
|
-
bookingFullyPaid,
|
|
26
|
-
totalPlayers,
|
|
18
|
+
invoices,
|
|
27
19
|
};
|
|
28
20
|
```
|
|
29
21
|
|
package/docs/ClubResponse.md
CHANGED
|
@@ -19,6 +19,10 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
20
20
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
21
21
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
22
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
23
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
24
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
25
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
22
26
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
23
27
|
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
24
28
|
|
|
@@ -42,6 +46,10 @@ const instance: ClubResponse = {
|
|
|
42
46
|
clubDashBoardUrl,
|
|
43
47
|
isNoShowEnabled,
|
|
44
48
|
sports,
|
|
49
|
+
allowMultipleBookingsAtTheSameTime,
|
|
50
|
+
sameTimeBookingsLimit,
|
|
51
|
+
cancellationLimitHours,
|
|
52
|
+
maxWeeklyBookings,
|
|
45
53
|
createdAt,
|
|
46
54
|
updatedAt,
|
|
47
55
|
};
|
package/docs/ClubsApi.md
CHANGED
|
@@ -563,7 +563,7 @@ No authorization required
|
|
|
563
563
|
[[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)
|
|
564
564
|
|
|
565
565
|
# **getSportsByClubById**
|
|
566
|
-
>
|
|
566
|
+
> Array<SportResponse> getSportsByClubById()
|
|
567
567
|
|
|
568
568
|
|
|
569
569
|
### Example
|
|
@@ -593,7 +593,7 @@ const { status, data } = await apiInstance.getSportsByClubById(
|
|
|
593
593
|
|
|
594
594
|
### Return type
|
|
595
595
|
|
|
596
|
-
**
|
|
596
|
+
**Array<SportResponse>**
|
|
597
597
|
|
|
598
598
|
### Authorization
|
|
599
599
|
|
|
@@ -5,11 +5,24 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
8
9
|
**title** | **string** | | [default to undefined]
|
|
9
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
10
12
|
**startDate** | **string** | | [default to undefined]
|
|
11
13
|
**endDate** | **string** | | [default to undefined]
|
|
12
14
|
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
15
|
+
**sports** | **Array<string>** | | [default to undefined]
|
|
16
|
+
**recurringType** | **string** | | [default to undefined]
|
|
17
|
+
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**participationType** | **string** | | [default to undefined]
|
|
19
|
+
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
20
|
+
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
21
|
+
**playerLimit** | **number** | | [optional] [default to undefined]
|
|
22
|
+
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
23
|
+
**price** | **number** | | [optional] [default to undefined]
|
|
24
|
+
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
25
|
+
**visibilityType** | **string** | | [default to undefined]
|
|
13
26
|
|
|
14
27
|
## Example
|
|
15
28
|
|
|
@@ -17,11 +30,24 @@ Name | Type | Description | Notes
|
|
|
17
30
|
import { CreateEventRequest } from '@tennac-booking/sdk';
|
|
18
31
|
|
|
19
32
|
const instance: CreateEventRequest = {
|
|
33
|
+
type,
|
|
20
34
|
title,
|
|
21
35
|
description,
|
|
36
|
+
photoUrl,
|
|
22
37
|
startDate,
|
|
23
38
|
endDate,
|
|
24
39
|
courts,
|
|
40
|
+
sports,
|
|
41
|
+
recurringType,
|
|
42
|
+
recurrenceEndDate,
|
|
43
|
+
participationType,
|
|
44
|
+
participants,
|
|
45
|
+
teams,
|
|
46
|
+
playerLimit,
|
|
47
|
+
teamLimit,
|
|
48
|
+
price,
|
|
49
|
+
subscriberPrices,
|
|
50
|
+
visibilityType,
|
|
25
51
|
};
|
|
26
52
|
```
|
|
27
53
|
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**logos** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
8
11
|
**key** | **string** | | [default to undefined]
|
|
9
12
|
|
|
10
13
|
## Example
|
|
@@ -13,6 +16,9 @@ Name | Type | Description | Notes
|
|
|
13
16
|
import { CreateSportForClubRequest } from '@tennac-booking/sdk';
|
|
14
17
|
|
|
15
18
|
const instance: CreateSportForClubRequest = {
|
|
19
|
+
logos,
|
|
20
|
+
description,
|
|
21
|
+
name,
|
|
16
22
|
key,
|
|
17
23
|
};
|
|
18
24
|
```
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**name** | **string** | Nom affiché du sport | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | Description du sport | [optional] [default to undefined]
|
|
10
|
+
**levels** | [**Array<SportLevel>**](SportLevel.md) | Niveaux associés | [optional] [default to undefined]
|
|
11
|
+
**logos** | **Array<string>** | URLs de logos/images | [optional] [default to undefined]
|
|
9
12
|
|
|
10
13
|
## Example
|
|
11
14
|
|
|
@@ -13,7 +16,10 @@ Name | Type | Description | Notes
|
|
|
13
16
|
import { CreateSportRequest } from '@tennac-booking/sdk';
|
|
14
17
|
|
|
15
18
|
const instance: CreateSportRequest = {
|
|
16
|
-
|
|
19
|
+
name,
|
|
20
|
+
description,
|
|
21
|
+
levels,
|
|
22
|
+
logos,
|
|
17
23
|
};
|
|
18
24
|
```
|
|
19
25
|
|
package/docs/EventResponse.md
CHANGED
|
@@ -7,11 +7,24 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**clubId** | **string** | | [default to undefined]
|
|
10
|
+
**type** | **string** | | [default to undefined]
|
|
10
11
|
**title** | **string** | | [default to undefined]
|
|
11
12
|
**description** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
14
|
**startDate** | **string** | | [default to undefined]
|
|
13
15
|
**endDate** | **string** | | [default to undefined]
|
|
14
16
|
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
17
|
+
**sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
|
|
18
|
+
**recurringType** | **string** | | [default to undefined]
|
|
19
|
+
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**participationType** | **string** | | [default to undefined]
|
|
21
|
+
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
22
|
+
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
23
|
+
**playerLimit** | **number** | | [optional] [default to undefined]
|
|
24
|
+
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
25
|
+
**price** | **number** | | [optional] [default to undefined]
|
|
26
|
+
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
27
|
+
**visibilityType** | **string** | | [default to undefined]
|
|
15
28
|
**createdBy** | **string** | | [optional] [default to undefined]
|
|
16
29
|
**isActive** | **boolean** | | [default to undefined]
|
|
17
30
|
**createdAt** | **string** | | [default to undefined]
|
|
@@ -25,11 +38,24 @@ import { EventResponse } from '@tennac-booking/sdk';
|
|
|
25
38
|
const instance: EventResponse = {
|
|
26
39
|
id,
|
|
27
40
|
clubId,
|
|
41
|
+
type,
|
|
28
42
|
title,
|
|
29
43
|
description,
|
|
44
|
+
photoUrl,
|
|
30
45
|
startDate,
|
|
31
46
|
endDate,
|
|
32
47
|
courts,
|
|
48
|
+
sports,
|
|
49
|
+
recurringType,
|
|
50
|
+
recurrenceEndDate,
|
|
51
|
+
participationType,
|
|
52
|
+
participants,
|
|
53
|
+
teams,
|
|
54
|
+
playerLimit,
|
|
55
|
+
teamLimit,
|
|
56
|
+
price,
|
|
57
|
+
subscriberPrices,
|
|
58
|
+
visibilityType,
|
|
33
59
|
createdBy,
|
|
34
60
|
isActive,
|
|
35
61
|
createdAt,
|
package/docs/EventsApi.md
CHANGED
|
@@ -4,8 +4,63 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
|
|
7
8
|
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
|
|
8
|
-
|[**
|
|
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)
|
|
9
64
|
|
|
10
65
|
# **getPublishedEventsByClubId**
|
|
11
66
|
> EventsListResponse getPublishedEventsByClubId()
|
|
@@ -24,9 +79,15 @@ const configuration = new Configuration();
|
|
|
24
79
|
const apiInstance = new EventsApi(configuration);
|
|
25
80
|
|
|
26
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)
|
|
27
85
|
|
|
28
86
|
const { status, data } = await apiInstance.getPublishedEventsByClubId(
|
|
29
|
-
clubId
|
|
87
|
+
clubId,
|
|
88
|
+
visibilityType,
|
|
89
|
+
type,
|
|
90
|
+
sportId
|
|
30
91
|
);
|
|
31
92
|
```
|
|
32
93
|
|
|
@@ -35,6 +96,9 @@ const { status, data } = await apiInstance.getPublishedEventsByClubId(
|
|
|
35
96
|
|Name | Type | Description | Notes|
|
|
36
97
|
|------------- | ------------- | ------------- | -------------|
|
|
37
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|
|
|
38
102
|
|
|
39
103
|
|
|
40
104
|
### Return type
|
|
@@ -60,28 +124,29 @@ No authorization required
|
|
|
60
124
|
|
|
61
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)
|
|
62
126
|
|
|
63
|
-
# **
|
|
64
|
-
>
|
|
127
|
+
# **joinEvent**
|
|
128
|
+
> JoinEventResponse joinEvent(joinEventRequest)
|
|
65
129
|
|
|
66
|
-
|
|
130
|
+
Join an event (user)
|
|
67
131
|
|
|
68
132
|
### Example
|
|
69
133
|
|
|
70
134
|
```typescript
|
|
71
135
|
import {
|
|
72
136
|
EventsApi,
|
|
73
|
-
Configuration
|
|
137
|
+
Configuration,
|
|
138
|
+
JoinEventRequest
|
|
74
139
|
} from '@tennac-booking/sdk';
|
|
75
140
|
|
|
76
141
|
const configuration = new Configuration();
|
|
77
142
|
const apiInstance = new EventsApi(configuration);
|
|
78
143
|
|
|
79
144
|
let eventId: string; // (default to undefined)
|
|
80
|
-
let
|
|
145
|
+
let joinEventRequest: JoinEventRequest; //
|
|
81
146
|
|
|
82
|
-
const { status, data } = await apiInstance.
|
|
147
|
+
const { status, data } = await apiInstance.joinEvent(
|
|
83
148
|
eventId,
|
|
84
|
-
|
|
149
|
+
joinEventRequest
|
|
85
150
|
);
|
|
86
151
|
```
|
|
87
152
|
|
|
@@ -89,13 +154,13 @@ const { status, data } = await apiInstance.registerForEvent(
|
|
|
89
154
|
|
|
90
155
|
|Name | Type | Description | Notes|
|
|
91
156
|
|------------- | ------------- | ------------- | -------------|
|
|
92
|
-
| **
|
|
157
|
+
| **joinEventRequest** | **JoinEventRequest**| | |
|
|
93
158
|
| **eventId** | [**string**] | | defaults to undefined|
|
|
94
159
|
|
|
95
160
|
|
|
96
161
|
### Return type
|
|
97
162
|
|
|
98
|
-
**
|
|
163
|
+
**JoinEventResponse**
|
|
99
164
|
|
|
100
165
|
### Authorization
|
|
101
166
|
|
|
@@ -110,7 +175,61 @@ const { status, data } = await apiInstance.registerForEvent(
|
|
|
110
175
|
### HTTP response details
|
|
111
176
|
| Status code | Description | Response headers |
|
|
112
177
|
|-------------|-------------|------------------|
|
|
113
|
-
|**
|
|
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 | - |
|
|
114
233
|
|**400** | Bad Request | - |
|
|
115
234
|
|**404** | Not Found | - |
|
|
116
235
|
|**500** | Server Error | - |
|