@tennac-booking/sdk 1.0.130 → 1.0.132

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.
Files changed (52) hide show
  1. package/.openapi-generator/FILES +362 -344
  2. package/README.md +23 -2
  3. package/api.ts +1064 -35
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +875 -26
  8. package/dist/api.js +293 -10
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +875 -26
  16. package/dist/esm/api.js +289 -6
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/EstimateEventPrice200Response.md +0 -2
  28. package/docs/EventBookingDetailSummary.md +40 -0
  29. package/docs/EventBookingDetailSummaryPaymentPerPlayersInner.md +30 -0
  30. package/docs/EventBookingResponse.md +38 -0
  31. package/docs/EventBookingResponsePaymentPerPlayersInner.md +30 -0
  32. package/docs/EventBookingResponsePlayersInner.md +28 -0
  33. package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +18 -0
  34. package/docs/EventBookingResponseSetupStatus.md +18 -0
  35. package/docs/EventBookingStatus.md +16 -0
  36. package/docs/EventsApi.md +4 -1
  37. package/docs/EventsManagerApi.md +110 -0
  38. package/docs/InvoiceStatusSETUPPENDING.md +8 -0
  39. package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
  40. package/docs/ParticipationType.md +10 -0
  41. package/docs/PublishEventResponse.md +4 -0
  42. package/docs/RecurringDefinitionResponse.md +34 -0
  43. package/docs/UpdateRecurringDefinition200Response.md +20 -0
  44. package/docs/UpdateRecurringDefinitionRequest.md +56 -0
  45. package/docs/UserClubSubscription.md +2 -0
  46. package/docs/UserEventParticipation.md +22 -0
  47. package/docs/UserEventSummary.md +44 -0
  48. package/docs/UserEventsResponse.md +28 -0
  49. package/docs/UsersApi.md +54 -0
  50. package/docs/VisibilityType.md +12 -0
  51. package/index.ts +1 -1
  52. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ # EventBookingResponse
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
+ **createdAt** | **string** | | [default to undefined]
17
+ **updatedAt** | **string** | | [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { EventBookingResponse } from '@tennac-booking/sdk';
23
+
24
+ const instance: EventBookingResponse = {
25
+ id,
26
+ status,
27
+ teamName,
28
+ players,
29
+ paymentPerPlayers,
30
+ setupLimitDate,
31
+ cancellationLimitDate,
32
+ setupStatus,
33
+ createdAt,
34
+ updatedAt,
35
+ };
36
+ ```
37
+
38
+ [[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,30 @@
1
+ # EventBookingResponsePaymentPerPlayersInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **amount** | **number** | | [optional] [default to undefined]
9
+ **status** | [**EventBookingResponsePlayersInnerInvoiceStatus**](EventBookingResponsePlayersInnerInvoiceStatus.md) | | [optional] [default to undefined]
10
+ **photo** | **string** | | [optional] [default to undefined]
11
+ **lastName** | **string** | | [optional] [default to undefined]
12
+ **firstName** | **string** | | [optional] [default to undefined]
13
+ **id** | **string** | | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { EventBookingResponsePaymentPerPlayersInner } from '@tennac-booking/sdk';
19
+
20
+ const instance: EventBookingResponsePaymentPerPlayersInner = {
21
+ amount,
22
+ status,
23
+ photo,
24
+ lastName,
25
+ firstName,
26
+ id,
27
+ };
28
+ ```
29
+
30
+ [[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,28 @@
1
+ # EventBookingResponsePlayersInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **invoiceStatus** | [**EventBookingResponsePlayersInnerInvoiceStatus**](EventBookingResponsePlayersInnerInvoiceStatus.md) | | [optional] [default to undefined]
9
+ **profilePicture** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **firstName** | **string** | | [optional] [default to undefined]
12
+ **id** | **string** | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { EventBookingResponsePlayersInner } from '@tennac-booking/sdk';
18
+
19
+ const instance: EventBookingResponsePlayersInner = {
20
+ invoiceStatus,
21
+ profilePicture,
22
+ lastName,
23
+ firstName,
24
+ id,
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,18 @@
1
+ # EventBookingResponsePlayersInnerInvoiceStatus
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+
9
+ ## Example
10
+
11
+ ```typescript
12
+ import { EventBookingResponsePlayersInnerInvoiceStatus } from '@tennac-booking/sdk';
13
+
14
+ const instance: EventBookingResponsePlayersInnerInvoiceStatus = {
15
+ };
16
+ ```
17
+
18
+ [[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,18 @@
1
+ # EventBookingResponseSetupStatus
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+
9
+ ## Example
10
+
11
+ ```typescript
12
+ import { EventBookingResponseSetupStatus } from '@tennac-booking/sdk';
13
+
14
+ const instance: EventBookingResponseSetupStatus = {
15
+ };
16
+ ```
17
+
18
+ [[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,16 @@
1
+ # EventBookingStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Pending` (value: `'pending'`)
7
+
8
+ * `Active` (value: `'active'`)
9
+
10
+ * `Paid` (value: `'paid'`)
11
+
12
+ * `Cancelled` (value: `'cancelled'`)
13
+
14
+ * `Expired` (value: `'expired'`)
15
+
16
+ [[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/EventsApi.md CHANGED
@@ -141,9 +141,11 @@ const configuration = new Configuration();
141
141
  const apiInstance = new EventsApi(configuration);
142
142
 
143
143
  let eventId: string; // (default to undefined)
144
+ let userId: string; // (optional) (default to undefined)
144
145
 
145
146
  const { status, data } = await apiInstance.getEventById(
146
- eventId
147
+ eventId,
148
+ userId
147
149
  );
148
150
  ```
149
151
 
@@ -152,6 +154,7 @@ const { status, data } = await apiInstance.getEventById(
152
154
  |Name | Type | Description | Notes|
153
155
  |------------- | ------------- | ------------- | -------------|
154
156
  | **eventId** | [**string**] | | defaults to undefined|
157
+ | **userId** | [**string**] | | (optional) defaults to undefined|
155
158
 
156
159
 
157
160
  ### Return type
@@ -7,10 +7,12 @@ All URIs are relative to *http://localhost*
7
7
  |[**checkEventConflicts**](#checkeventconflicts) | **POST** /api/events/manager/checkConflicts | |
8
8
  |[**createEvent**](#createevent) | **POST** /api/events/manager/createEvent | |
9
9
  |[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | |
10
+ |[**getExpiringRecurringDefinitions**](#getexpiringrecurringdefinitions) | **GET** /api/events/manager/recurring/expiring | |
10
11
  |[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | |
11
12
  |[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | |
12
13
  |[**updateEvent**](#updateevent) | **PUT** /api/events/manager/updateEvent/{eventId} | |
13
14
  |[**updatePublishedEvent**](#updatepublishedevent) | **PUT** /api/events/manager/updatePublishedEvent/{eventId} | |
15
+ |[**updateRecurringDefinition**](#updaterecurringdefinition) | **PUT** /api/events/manager/recurring/{definitionId} | |
14
16
 
15
17
  # **checkEventConflicts**
16
18
  > EventConflictCheckResponse checkEventConflicts(eventConflictCheckRequest)
@@ -175,6 +177,57 @@ const { status, data } = await apiInstance.deleteEvent(
175
177
 
176
178
  [[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)
177
179
 
180
+ # **getExpiringRecurringDefinitions**
181
+ > Array<RecurringDefinitionResponse> getExpiringRecurringDefinitions()
182
+
183
+ List recurring definitions about to expire within `days` (manager)
184
+
185
+ ### Example
186
+
187
+ ```typescript
188
+ import {
189
+ EventsManagerApi,
190
+ Configuration
191
+ } from '@tennac-booking/sdk';
192
+
193
+ const configuration = new Configuration();
194
+ const apiInstance = new EventsManagerApi(configuration);
195
+
196
+ let days: number; // (optional) (default to undefined)
197
+
198
+ const { status, data } = await apiInstance.getExpiringRecurringDefinitions(
199
+ days
200
+ );
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+ |Name | Type | Description | Notes|
206
+ |------------- | ------------- | ------------- | -------------|
207
+ | **days** | [**number**] | | (optional) defaults to undefined|
208
+
209
+
210
+ ### Return type
211
+
212
+ **Array<RecurringDefinitionResponse>**
213
+
214
+ ### Authorization
215
+
216
+ [bearerAuth](../README.md#bearerAuth)
217
+
218
+ ### HTTP request headers
219
+
220
+ - **Content-Type**: Not defined
221
+ - **Accept**: application/json
222
+
223
+
224
+ ### HTTP response details
225
+ | Status code | Description | Response headers |
226
+ |-------------|-------------|------------------|
227
+ |**200** | List of expiring recurring definitions | - |
228
+
229
+ [[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)
230
+
178
231
  # **publishEvent**
179
232
  > PublishEventResponse publishEvent()
180
233
 
@@ -396,3 +449,60 @@ const { status, data } = await apiInstance.updatePublishedEvent(
396
449
 
397
450
  [[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)
398
451
 
452
+ # **updateRecurringDefinition**
453
+ > UpdateRecurringDefinition200Response updateRecurringDefinition(updateRecurringDefinitionRequest)
454
+
455
+ Update a recurring event definition (manager) and propagate changes to generated Events
456
+
457
+ ### Example
458
+
459
+ ```typescript
460
+ import {
461
+ EventsManagerApi,
462
+ Configuration,
463
+ UpdateRecurringDefinitionRequest
464
+ } from '@tennac-booking/sdk';
465
+
466
+ const configuration = new Configuration();
467
+ const apiInstance = new EventsManagerApi(configuration);
468
+
469
+ let definitionId: string; // (default to undefined)
470
+ let updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest; //
471
+
472
+ const { status, data } = await apiInstance.updateRecurringDefinition(
473
+ definitionId,
474
+ updateRecurringDefinitionRequest
475
+ );
476
+ ```
477
+
478
+ ### Parameters
479
+
480
+ |Name | Type | Description | Notes|
481
+ |------------- | ------------- | ------------- | -------------|
482
+ | **updateRecurringDefinitionRequest** | **UpdateRecurringDefinitionRequest**| | |
483
+ | **definitionId** | [**string**] | | defaults to undefined|
484
+
485
+
486
+ ### Return type
487
+
488
+ **UpdateRecurringDefinition200Response**
489
+
490
+ ### Authorization
491
+
492
+ [bearerAuth](../README.md#bearerAuth)
493
+
494
+ ### HTTP request headers
495
+
496
+ - **Content-Type**: application/json
497
+ - **Accept**: application/json
498
+
499
+
500
+ ### HTTP response details
501
+ | Status code | Description | Response headers |
502
+ |-------------|-------------|------------------|
503
+ |**200** | Recurring definition updated | - |
504
+ |**400** | Bad Request | - |
505
+ |**404** | Not Found | - |
506
+
507
+ [[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)
508
+
@@ -0,0 +1,8 @@
1
+ # InvoiceStatusSETUPPENDING
2
+
3
+
4
+ ## Enum
5
+
6
+ * `SetupPending` (value: `'setup_pending'`)
7
+
8
+ [[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,8 @@
1
+ # InvoiceStatusSETUPSUCCESS
2
+
3
+
4
+ ## Enum
5
+
6
+ * `SetupSuccess` (value: `'setup_success'`)
7
+
8
+ [[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
+ # ParticipationType
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Solo` (value: `'solo'`)
7
+
8
+ * `Team` (value: `'team'`)
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)
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
9
9
  **refundedBookingIds** | **Array&lt;string&gt;** | | [optional] [default to undefined]
10
+ **userBooking** | [**EventBookingResponse**](EventBookingResponse.md) | | [optional] [default to undefined]
11
+ **needsToSetupPaymentMethod** | **boolean** | | [optional] [default to undefined]
10
12
 
11
13
  ## Example
12
14
 
@@ -16,6 +18,8 @@ import { PublishEventResponse } from '@tennac-booking/sdk';
16
18
  const instance: PublishEventResponse = {
17
19
  event,
18
20
  refundedBookingIds,
21
+ userBooking,
22
+ needsToSetupPaymentMethod,
19
23
  };
20
24
  ```
21
25
 
@@ -0,0 +1,34 @@
1
+ # RecurringDefinitionResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **clubId** | **string** | | [optional] [default to undefined]
10
+ **title** | **string** | | [default to undefined]
11
+ **baseStartDate** | **string** | | [default to undefined]
12
+ **baseEndDate** | **string** | | [default to undefined]
13
+ **recurringType** | **string** | | [default to undefined]
14
+ **recurrenceEndDate** | **string** | | [optional] [default to undefined]
15
+ **isActive** | **boolean** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { RecurringDefinitionResponse } from '@tennac-booking/sdk';
21
+
22
+ const instance: RecurringDefinitionResponse = {
23
+ id,
24
+ clubId,
25
+ title,
26
+ baseStartDate,
27
+ baseEndDate,
28
+ recurringType,
29
+ recurrenceEndDate,
30
+ isActive,
31
+ };
32
+ ```
33
+
34
+ [[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
+ # UpdateRecurringDefinition200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **ok** | **boolean** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateRecurringDefinition200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: UpdateRecurringDefinition200Response = {
16
+ ok,
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,56 @@
1
+ # UpdateRecurringDefinitionRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **title** | **string** | | [optional] [default to undefined]
9
+ **description** | **string** | | [optional] [default to undefined]
10
+ **photoUrl** | **string** | | [optional] [default to undefined]
11
+ **sportId** | **string** | | [optional] [default to undefined]
12
+ **courts** | **Array&lt;string&gt;** | | [optional] [default to undefined]
13
+ **levels** | **Array&lt;string | null&gt;** | | [optional] [default to undefined]
14
+ **sponsors** | [**Array&lt;EventSponsor&gt;**](EventSponsor.md) | | [optional] [default to undefined]
15
+ **visibilityType** | **string** | | [optional] [default to undefined]
16
+ **type** | **string** | | [optional] [default to undefined]
17
+ **participationType** | **string** | | [optional] [default to undefined]
18
+ **playerLimit** | **number** | | [optional] [default to undefined]
19
+ **teamLimit** | **number** | | [optional] [default to undefined]
20
+ **playersPerTeam** | **number** | | [optional] [default to undefined]
21
+ **price** | **number** | | [optional] [default to undefined]
22
+ **subscriberPrices** | [**Array&lt;SubscriberPrice&gt;**](SubscriberPrice.md) | | [optional] [default to undefined]
23
+ **baseStartDate** | **string** | | [optional] [default to undefined]
24
+ **baseEndDate** | **string** | | [optional] [default to undefined]
25
+ **recurringType** | **string** | | [optional] [default to undefined]
26
+ **recurrenceEndDate** | **string** | | [optional] [default to undefined]
27
+
28
+ ## Example
29
+
30
+ ```typescript
31
+ import { UpdateRecurringDefinitionRequest } from '@tennac-booking/sdk';
32
+
33
+ const instance: UpdateRecurringDefinitionRequest = {
34
+ title,
35
+ description,
36
+ photoUrl,
37
+ sportId,
38
+ courts,
39
+ levels,
40
+ sponsors,
41
+ visibilityType,
42
+ type,
43
+ participationType,
44
+ playerLimit,
45
+ teamLimit,
46
+ playersPerTeam,
47
+ price,
48
+ subscriberPrices,
49
+ baseStartDate,
50
+ baseEndDate,
51
+ recurringType,
52
+ recurrenceEndDate,
53
+ };
54
+ ```
55
+
56
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **amountInCents** | **number** | | [default to undefined]
19
19
  **currency** | **string** | | [default to undefined]
20
20
  **interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
21
+ **productId** | **string** | | [default to undefined]
21
22
 
22
23
  ## Example
23
24
 
@@ -38,6 +39,7 @@ const instance: UserClubSubscription = {
38
39
  amountInCents,
39
40
  currency,
40
41
  interval,
42
+ productId,
41
43
  };
42
44
  ```
43
45
 
@@ -0,0 +1,22 @@
1
+ # UserEventParticipation
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **event** | [**UserEventSummary**](UserEventSummary.md) | | [default to undefined]
9
+ **booking** | [**EventBookingDetailSummary**](EventBookingDetailSummary.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { UserEventParticipation } from '@tennac-booking/sdk';
15
+
16
+ const instance: UserEventParticipation = {
17
+ event,
18
+ booking,
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,44 @@
1
+ # UserEventSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **clubId** | **string** | | [default to undefined]
10
+ **title** | **string** | | [default to undefined]
11
+ **description** | **string** | | [optional] [default to undefined]
12
+ **photoUrl** | **string** | | [optional] [default to undefined]
13
+ **startDate** | **string** | | [default to undefined]
14
+ **endDate** | **string** | | [default to undefined]
15
+ **participationType** | [**ParticipationType**](ParticipationType.md) | | [default to undefined]
16
+ **visibilityType** | [**VisibilityType**](VisibilityType.md) | | [default to undefined]
17
+ **isActive** | **boolean** | | [default to undefined]
18
+ **price** | **number** | | [optional] [default to undefined]
19
+ **sports** | **Array&lt;string&gt;** | | [optional] [default to undefined]
20
+ **courts** | **Array&lt;string&gt;** | | [optional] [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { UserEventSummary } from '@tennac-booking/sdk';
26
+
27
+ const instance: UserEventSummary = {
28
+ id,
29
+ clubId,
30
+ title,
31
+ description,
32
+ photoUrl,
33
+ startDate,
34
+ endDate,
35
+ participationType,
36
+ visibilityType,
37
+ isActive,
38
+ price,
39
+ sports,
40
+ courts,
41
+ };
42
+ ```
43
+
44
+ [[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,28 @@
1
+ # UserEventsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **total** | **number** | | [default to undefined]
9
+ **limit** | **number** | | [default to undefined]
10
+ **skip** | **number** | | [default to undefined]
11
+ **hasMore** | **boolean** | | [default to undefined]
12
+ **participations** | [**Array&lt;UserEventParticipation&gt;**](UserEventParticipation.md) | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { UserEventsResponse } from '@tennac-booking/sdk';
18
+
19
+ const instance: UserEventsResponse = {
20
+ total,
21
+ limit,
22
+ skip,
23
+ hasMore,
24
+ participations,
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)
package/docs/UsersApi.md CHANGED
@@ -22,6 +22,7 @@ All URIs are relative to *http://localhost*
22
22
  |[**getNearestUsersFromCoordinates**](#getnearestusersfromcoordinates) | **GET** /api/users/nearest-players/coordinates | |
23
23
  |[**getPlayerCategories**](#getplayercategories) | **GET** /api/users/players/categories | |
24
24
  |[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | |
25
+ |[**getUserEvents**](#getuserevents) | **GET** /api/users/me/events | |
25
26
  |[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
26
27
  |[**listPlayers**](#listplayers) | **GET** /api/users/players | |
27
28
  |[**login**](#login) | **POST** /api/users/login | |
@@ -911,6 +912,59 @@ const { status, data } = await apiInstance.getUserBookings(
911
912
  - **Accept**: application/json
912
913
 
913
914
 
915
+ ### HTTP response details
916
+ | Status code | Description | Response headers |
917
+ |-------------|-------------|------------------|
918
+ |**200** | Ok | - |
919
+
920
+ [[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)
921
+
922
+ # **getUserEvents**
923
+ > UserEventsResponse getUserEvents()
924
+
925
+
926
+ ### Example
927
+
928
+ ```typescript
929
+ import {
930
+ UsersApi,
931
+ Configuration
932
+ } from '@tennac-booking/sdk';
933
+
934
+ const configuration = new Configuration();
935
+ const apiInstance = new UsersApi(configuration);
936
+
937
+ let limit: number; // (optional) (default to undefined)
938
+ let skip: number; // (optional) (default to undefined)
939
+
940
+ const { status, data } = await apiInstance.getUserEvents(
941
+ limit,
942
+ skip
943
+ );
944
+ ```
945
+
946
+ ### Parameters
947
+
948
+ |Name | Type | Description | Notes|
949
+ |------------- | ------------- | ------------- | -------------|
950
+ | **limit** | [**number**] | | (optional) defaults to undefined|
951
+ | **skip** | [**number**] | | (optional) defaults to undefined|
952
+
953
+
954
+ ### Return type
955
+
956
+ **UserEventsResponse**
957
+
958
+ ### Authorization
959
+
960
+ [bearerAuth](../README.md#bearerAuth)
961
+
962
+ ### HTTP request headers
963
+
964
+ - **Content-Type**: Not defined
965
+ - **Accept**: application/json
966
+
967
+
914
968
  ### HTTP response details
915
969
  | Status code | Description | Response headers |
916
970
  |-------------|-------------|------------------|
@@ -0,0 +1,12 @@
1
+ # VisibilityType
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Public` (value: `'public'`)
7
+
8
+ * `Private` (value: `'private'`)
9
+
10
+ * `Invitation` (value: `'invitation'`)
11
+
12
+ [[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/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.121
7
+ * The version of the OpenAPI document: 1.0.132
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).