@tennac-booking/sdk 1.0.143 → 1.0.145

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/docs/EventsApi.md CHANGED
@@ -7,9 +7,12 @@ 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
  |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
10
+ |[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
10
11
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
11
12
  |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
13
+ |[**joinOpenEventBooking**](#joinopeneventbooking) | **POST** /api/events/{eventBookingId}/open/join | |
12
14
  |[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
15
+ |[**leaveOpenEventBooking**](#leaveopeneventbooking) | **DELETE** /api/events/{eventBookingId}/open/leave | |
13
16
 
14
17
  # **checkTeamNameAvailability**
15
18
  > CheckTeamNameAvailability200Response checkTeamNameAvailability()
@@ -180,6 +183,59 @@ No authorization required
180
183
 
181
184
  [[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)
182
185
 
186
+ # **getOpenEventBookings**
187
+ > GetOpenEventBookings200Response getOpenEventBookings()
188
+
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 clubId: string; // (optional) (default to undefined)
202
+ let eventId: string; // (optional) (default to undefined)
203
+
204
+ const { status, data } = await apiInstance.getOpenEventBookings(
205
+ clubId,
206
+ eventId
207
+ );
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ |Name | Type | Description | Notes|
213
+ |------------- | ------------- | ------------- | -------------|
214
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
215
+ | **eventId** | [**string**] | | (optional) defaults to undefined|
216
+
217
+
218
+ ### Return type
219
+
220
+ **GetOpenEventBookings200Response**
221
+
222
+ ### Authorization
223
+
224
+ No authorization required
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ### HTTP response details
233
+ | Status code | Description | Response headers |
234
+ |-------------|-------------|------------------|
235
+ |**200** | List of open event bookings | - |
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
+
183
239
  # **getPublishedEventsByClubId**
184
240
  > EventsListResponse getPublishedEventsByClubId()
185
241
 
@@ -300,6 +356,62 @@ const { status, data } = await apiInstance.joinEvent(
300
356
 
301
357
  [[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)
302
358
 
359
+ # **joinOpenEventBooking**
360
+ > JoinOpenEventResponse joinOpenEventBooking(joinOpenEventBookingRequest)
361
+
362
+
363
+ ### Example
364
+
365
+ ```typescript
366
+ import {
367
+ EventsApi,
368
+ Configuration,
369
+ JoinOpenEventBookingRequest
370
+ } from '@tennac-booking/sdk';
371
+
372
+ const configuration = new Configuration();
373
+ const apiInstance = new EventsApi(configuration);
374
+
375
+ let eventBookingId: string; // (default to undefined)
376
+ let joinOpenEventBookingRequest: JoinOpenEventBookingRequest; //
377
+
378
+ const { status, data } = await apiInstance.joinOpenEventBooking(
379
+ eventBookingId,
380
+ joinOpenEventBookingRequest
381
+ );
382
+ ```
383
+
384
+ ### Parameters
385
+
386
+ |Name | Type | Description | Notes|
387
+ |------------- | ------------- | ------------- | -------------|
388
+ | **joinOpenEventBookingRequest** | **JoinOpenEventBookingRequest**| | |
389
+ | **eventBookingId** | [**string**] | | defaults to undefined|
390
+
391
+
392
+ ### Return type
393
+
394
+ **JoinOpenEventResponse**
395
+
396
+ ### Authorization
397
+
398
+ [bearerAuth](../README.md#bearerAuth)
399
+
400
+ ### HTTP request headers
401
+
402
+ - **Content-Type**: application/json
403
+ - **Accept**: application/json
404
+
405
+
406
+ ### HTTP response details
407
+ | Status code | Description | Response headers |
408
+ |-------------|-------------|------------------|
409
+ |**200** | Joined open event booking | - |
410
+ |**400** | Bad Request | - |
411
+ |**404** | Not Found | - |
412
+
413
+ [[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)
414
+
303
415
  # **leaveEvent**
304
416
  > JoinEventResponse leaveEvent()
305
417
 
@@ -354,3 +466,55 @@ const { status, data } = await apiInstance.leaveEvent(
354
466
 
355
467
  [[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)
356
468
 
469
+ # **leaveOpenEventBooking**
470
+ > RequestPasswordReset200Response leaveOpenEventBooking()
471
+
472
+
473
+ ### Example
474
+
475
+ ```typescript
476
+ import {
477
+ EventsApi,
478
+ Configuration
479
+ } from '@tennac-booking/sdk';
480
+
481
+ const configuration = new Configuration();
482
+ const apiInstance = new EventsApi(configuration);
483
+
484
+ let eventBookingId: string; // (default to undefined)
485
+
486
+ const { status, data } = await apiInstance.leaveOpenEventBooking(
487
+ eventBookingId
488
+ );
489
+ ```
490
+
491
+ ### Parameters
492
+
493
+ |Name | Type | Description | Notes|
494
+ |------------- | ------------- | ------------- | -------------|
495
+ | **eventBookingId** | [**string**] | | defaults to undefined|
496
+
497
+
498
+ ### Return type
499
+
500
+ **RequestPasswordReset200Response**
501
+
502
+ ### Authorization
503
+
504
+ [bearerAuth](../README.md#bearerAuth)
505
+
506
+ ### HTTP request headers
507
+
508
+ - **Content-Type**: Not defined
509
+ - **Accept**: application/json
510
+
511
+
512
+ ### HTTP response details
513
+ | Status code | Description | Response headers |
514
+ |-------------|-------------|------------------|
515
+ |**200** | Left open event booking | - |
516
+ |**400** | Bad Request | - |
517
+ |**404** | Not Found | - |
518
+
519
+ [[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)
520
+
@@ -136,7 +136,7 @@ const { status, data } = await apiInstance.getDailyEvents(
136
136
  # **getEventsByClub**
137
137
  > EventsListResponse getEventsByClub()
138
138
 
139
- Get all events for a club (staff only)
139
+ // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
140
140
 
141
141
  ### Example
142
142
 
@@ -0,0 +1,20 @@
1
+ # GetOpenBookings200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bookings** | [**Array<BookingInfo>**](BookingInfo.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetOpenBookings200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetOpenBookings200Response = {
16
+ bookings,
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,20 @@
1
+ # GetOpenEventBookings200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **eventBookings** | [**Array<EventBookingResponse>**](EventBookingResponse.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetOpenEventBookings200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetOpenEventBookings200Response = {
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)
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **teamName** | **string** | | [optional] [default to undefined]
9
9
  **players** | **Array<string>** | | [optional] [default to undefined]
10
+ **isOpen** | **boolean** | | [optional] [default to undefined]
10
11
  **isCreatorPayingAll** | **boolean** | | [optional] [default to undefined]
11
12
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
13
  **playersPaymentMethods** | [**Array<JoinEventRequestPlayersPaymentMethodsInner>**](JoinEventRequestPlayersPaymentMethodsInner.md) | | [optional] [default to undefined]
@@ -21,6 +22,7 @@ import { JoinEventRequest } from '@tennac-booking/sdk';
21
22
  const instance: JoinEventRequest = {
22
23
  teamName,
23
24
  players,
25
+ isOpen,
24
26
  isCreatorPayingAll,
25
27
  paymentMethod,
26
28
  playersPaymentMethods,
@@ -0,0 +1,28 @@
1
+ # JoinOpenBookingResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **invoiceUrl** | **string** | | [optional] [default to undefined]
10
+ **paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
11
+ **onsitePayments** | [**Array<BookingResponseOnsitePaymentsInner>**](BookingResponseOnsitePaymentsInner.md) | | [optional] [default to undefined]
12
+ **invoices** | [**Array<CheckInEventParticipants200ResponseInvoicesInner>**](CheckInEventParticipants200ResponseInvoicesInner.md) | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { JoinOpenBookingResponse } from '@tennac-booking/sdk';
18
+
19
+ const instance: JoinOpenBookingResponse = {
20
+ message,
21
+ invoiceUrl,
22
+ paymentLinks,
23
+ onsitePayments,
24
+ invoices,
25
+ };
26
+ ```
27
+
28
+ [[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,24 @@
1
+ # JoinOpenEventBookingRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **creditToUseInCents** | **number** | | [optional] [default to undefined]
9
+ **useDefaultPaymentMethod** | **boolean** | | [optional] [default to undefined]
10
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { JoinOpenEventBookingRequest } from '@tennac-booking/sdk';
16
+
17
+ const instance: JoinOpenEventBookingRequest = {
18
+ creditToUseInCents,
19
+ useDefaultPaymentMethod,
20
+ paymentMethod,
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)
@@ -0,0 +1,26 @@
1
+ # JoinOpenEventResponse
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
+ **paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
11
+ **invoices** | [**Array<CheckInEventParticipants200ResponseInvoicesInner>**](CheckInEventParticipants200ResponseInvoicesInner.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { JoinOpenEventResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: JoinOpenEventResponse = {
19
+ message,
20
+ event,
21
+ paymentLinks,
22
+ invoices,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
25
25
  **subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
26
26
  **visibilityType** | **string** | | [optional] [default to undefined]
27
27
  **levels** | **Array<string | null>** | | [optional] [default to undefined]
28
+ **registrationOpeningDate** | **string** | | [optional] [default to undefined]
28
29
  **sponsors** | [**Array<EventSponsor>**](EventSponsor.md) | | [optional] [default to undefined]
29
30
 
30
31
  ## Example
@@ -53,6 +54,7 @@ const instance: UpdateEventRequest = {
53
54
  subscriberPrices,
54
55
  visibilityType,
55
56
  levels,
57
+ registrationOpeningDate,
56
58
  sponsors,
57
59
  };
58
60
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.143",
3
+ "version": "1.0.145",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {