@tennac-booking/sdk 1.0.70 → 1.0.71
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 +236 -230
- package/README.md +14 -5
- package/api.ts +957 -145
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +909 -263
- package/dist/api.js +347 -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 +909 -263
- package/dist/esm/api.js +344 -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/BookingStatus.md +2 -0
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/CheckInPlayersResponse.md +2 -10
- 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/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/{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
package/docs/BookingStatus.md
CHANGED
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/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 | - |
|
package/docs/EventsManagerApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | |
|
|
9
9
|
|[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | |
|
|
10
10
|
|[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | |
|
|
11
|
+
|[**updateEvent**](#updateevent) | **PUT** /api/events/manager/updateEvent/{eventId} | |
|
|
11
12
|
|
|
12
13
|
# **createEvent**
|
|
13
14
|
> PublishEventResponse createEvent(createEventRequest)
|
|
@@ -223,3 +224,61 @@ const { status, data } = await apiInstance.unpublishEvent(
|
|
|
223
224
|
|
|
224
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)
|
|
225
226
|
|
|
227
|
+
# **updateEvent**
|
|
228
|
+
> PublishEventResponse updateEvent(updateEventRequest)
|
|
229
|
+
|
|
230
|
+
Update an event (manager)
|
|
231
|
+
|
|
232
|
+
### Example
|
|
233
|
+
|
|
234
|
+
```typescript
|
|
235
|
+
import {
|
|
236
|
+
EventsManagerApi,
|
|
237
|
+
Configuration,
|
|
238
|
+
UpdateEventRequest
|
|
239
|
+
} from '@tennac-booking/sdk';
|
|
240
|
+
|
|
241
|
+
const configuration = new Configuration();
|
|
242
|
+
const apiInstance = new EventsManagerApi(configuration);
|
|
243
|
+
|
|
244
|
+
let eventId: string; // (default to undefined)
|
|
245
|
+
let updateEventRequest: UpdateEventRequest; //
|
|
246
|
+
|
|
247
|
+
const { status, data } = await apiInstance.updateEvent(
|
|
248
|
+
eventId,
|
|
249
|
+
updateEventRequest
|
|
250
|
+
);
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Parameters
|
|
254
|
+
|
|
255
|
+
|Name | Type | Description | Notes|
|
|
256
|
+
|------------- | ------------- | ------------- | -------------|
|
|
257
|
+
| **updateEventRequest** | **UpdateEventRequest**| | |
|
|
258
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### Return type
|
|
262
|
+
|
|
263
|
+
**PublishEventResponse**
|
|
264
|
+
|
|
265
|
+
### Authorization
|
|
266
|
+
|
|
267
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
268
|
+
|
|
269
|
+
### HTTP request headers
|
|
270
|
+
|
|
271
|
+
- **Content-Type**: application/json
|
|
272
|
+
- **Accept**: application/json
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### HTTP response details
|
|
276
|
+
| Status code | Description | Response headers |
|
|
277
|
+
|-------------|-------------|------------------|
|
|
278
|
+
|**200** | Event updated | - |
|
|
279
|
+
|**400** | Bad Request | - |
|
|
280
|
+
|**404** | Not Found | - |
|
|
281
|
+
|**500** | Server Error | - |
|
|
282
|
+
|
|
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)
|
|
284
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# JoinEventRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**teamName** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**players** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { JoinEventRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: JoinEventRequest = {
|
|
17
|
+
teamName,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# JoinEventResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to undefined]
|
|
9
|
+
**event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { JoinEventResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: JoinEventResponse = {
|
|
17
|
+
message,
|
|
18
|
+
event,
|
|
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/SportKey.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# SportKey
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Padel` (value: `'Padel'`)
|
|
7
|
+
|
|
8
|
+
* `Tennis` (value: `'Tennis'`)
|
|
9
|
+
|
|
10
|
+
* `Pickleball` (value: `'Pickleball'`)
|
|
11
|
+
|
|
12
|
+
* `Autres` (value: `'Autres'`)
|
|
13
|
+
|
|
14
|
+
[[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,22 @@
|
|
|
1
|
+
# SportLevel
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Nom du niveau (ex: Débutant, Intermédiaire, Avancé) | [default to undefined]
|
|
9
|
+
**order** | **number** | Ordre du niveau, du plus faible (petit) au plus fort (grand) | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SportLevel } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: SportLevel = {
|
|
17
|
+
name,
|
|
18
|
+
order,
|
|
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)
|