@tennac-booking/sdk 1.0.108 → 1.0.110
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 +9 -1
- package/README.md +15 -2
- package/api.ts +672 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +478 -1
- package/dist/api.js +280 -1
- 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 +478 -1
- package/dist/esm/api.js +280 -1
- 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/CheckInEventParticipants200Response.md +22 -0
- package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
- package/docs/CheckInEventParticipantsRequest.md +20 -0
- package/docs/ClubsStaffApi.md +59 -0
- package/docs/CreateOnsiteInvoiceRequest.md +28 -0
- package/docs/CreateOnsiteInvoiceResponse.md +22 -0
- package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
- package/docs/EventConflictCheckRequest.md +28 -0
- package/docs/EventConflictCheckResponse.md +26 -0
- package/docs/EventsManagerApi.md +114 -0
- package/docs/EventsStaffApi.md +59 -0
- package/docs/JoinEventRequest.md +8 -0
- package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +22 -0
- package/docs/PublishEventResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CreateOnsiteInvoiceRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**userId** | **string** | Payer user id (creator or player) | [default to undefined]
|
|
9
|
+
**amount** | **number** | Amount in cents | [default to undefined]
|
|
10
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
|
|
11
|
+
**status** | [**InvoiceStatus**](InvoiceStatus.md) | | [default to undefined]
|
|
12
|
+
**reason** | **string** | Optional note/reason about the invoice | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { CreateOnsiteInvoiceRequest } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: CreateOnsiteInvoiceRequest = {
|
|
20
|
+
userId,
|
|
21
|
+
amount,
|
|
22
|
+
paymentMethod,
|
|
23
|
+
status,
|
|
24
|
+
reason,
|
|
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,22 @@
|
|
|
1
|
+
# CreateOnsiteInvoiceResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Confirmation message | [default to undefined]
|
|
9
|
+
**invoice** | [**CreateOnsiteInvoiceResponseInvoice**](CreateOnsiteInvoiceResponseInvoice.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CreateOnsiteInvoiceResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CreateOnsiteInvoiceResponse = {
|
|
17
|
+
message,
|
|
18
|
+
invoice,
|
|
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,31 @@
|
|
|
1
|
+
# CreateOnsiteInvoiceResponseInvoice
|
|
2
|
+
|
|
3
|
+
Created invoice summary
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**reason** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
|
|
11
|
+
**status** | [**InvoiceStatus**](InvoiceStatus.md) | | [default to undefined]
|
|
12
|
+
**amount** | **number** | | [default to undefined]
|
|
13
|
+
**userId** | **string** | | [default to undefined]
|
|
14
|
+
**id** | **string** | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CreateOnsiteInvoiceResponseInvoice } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: CreateOnsiteInvoiceResponseInvoice = {
|
|
22
|
+
reason,
|
|
23
|
+
paymentMethod,
|
|
24
|
+
status,
|
|
25
|
+
amount,
|
|
26
|
+
userId,
|
|
27
|
+
id,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[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
|
+
# EventConflictCheckRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**eventId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**endDate** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**courts** | **Array<string>** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { EventConflictCheckRequest } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: EventConflictCheckRequest = {
|
|
20
|
+
eventId,
|
|
21
|
+
clubId,
|
|
22
|
+
startDate,
|
|
23
|
+
endDate,
|
|
24
|
+
courts,
|
|
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,26 @@
|
|
|
1
|
+
# EventConflictCheckResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**hasRegularBookings** | **boolean** | | [default to undefined]
|
|
9
|
+
**regularBookingsCount** | **number** | | [default to undefined]
|
|
10
|
+
**hasEventBookings** | **boolean** | | [default to undefined]
|
|
11
|
+
**eventBookingsCount** | **number** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { EventConflictCheckResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: EventConflictCheckResponse = {
|
|
19
|
+
hasRegularBookings,
|
|
20
|
+
regularBookingsCount,
|
|
21
|
+
hasEventBookings,
|
|
22
|
+
eventBookingsCount,
|
|
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)
|
package/docs/EventsManagerApi.md
CHANGED
|
@@ -4,11 +4,68 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**checkEventConflicts**](#checkeventconflicts) | **POST** /api/events/manager/checkConflicts | |
|
|
7
8
|
|[**createEvent**](#createevent) | **POST** /api/events/manager/createEvent | |
|
|
8
9
|
|[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | |
|
|
9
10
|
|[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | |
|
|
10
11
|
|[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | |
|
|
11
12
|
|[**updateEvent**](#updateevent) | **PUT** /api/events/manager/updateEvent/{eventId} | |
|
|
13
|
+
|[**updatePublishedEvent**](#updatepublishedevent) | **PUT** /api/events/manager/updatePublishedEvent/{eventId} | |
|
|
14
|
+
|
|
15
|
+
# **checkEventConflicts**
|
|
16
|
+
> EventConflictCheckResponse checkEventConflicts(eventConflictCheckRequest)
|
|
17
|
+
|
|
18
|
+
Check if there are bookings overlapping an event window (for create/update/delete)
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import {
|
|
24
|
+
EventsManagerApi,
|
|
25
|
+
Configuration,
|
|
26
|
+
EventConflictCheckRequest
|
|
27
|
+
} from '@tennac-booking/sdk';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration();
|
|
30
|
+
const apiInstance = new EventsManagerApi(configuration);
|
|
31
|
+
|
|
32
|
+
let eventConflictCheckRequest: EventConflictCheckRequest; //
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.checkEventConflicts(
|
|
35
|
+
eventConflictCheckRequest
|
|
36
|
+
);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
|Name | Type | Description | Notes|
|
|
42
|
+
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **eventConflictCheckRequest** | **EventConflictCheckRequest**| | |
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**EventConflictCheckResponse**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | Conflict counts retrieved | - |
|
|
64
|
+
|**400** | Bad Request | - |
|
|
65
|
+
|**401** | Unauthorized | - |
|
|
66
|
+
|**404** | Not Found | - |
|
|
67
|
+
|
|
68
|
+
[[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)
|
|
12
69
|
|
|
13
70
|
# **createEvent**
|
|
14
71
|
> PublishEventResponse createEvent(createEventRequest)
|
|
@@ -282,3 +339,60 @@ const { status, data } = await apiInstance.updateEvent(
|
|
|
282
339
|
|
|
283
340
|
[[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
341
|
|
|
342
|
+
# **updatePublishedEvent**
|
|
343
|
+
> PublishEventResponse updatePublishedEvent(updateEventRequest)
|
|
344
|
+
|
|
345
|
+
Update a published event (manager) and propagate slot changes and conflicts
|
|
346
|
+
|
|
347
|
+
### Example
|
|
348
|
+
|
|
349
|
+
```typescript
|
|
350
|
+
import {
|
|
351
|
+
EventsManagerApi,
|
|
352
|
+
Configuration,
|
|
353
|
+
UpdateEventRequest
|
|
354
|
+
} from '@tennac-booking/sdk';
|
|
355
|
+
|
|
356
|
+
const configuration = new Configuration();
|
|
357
|
+
const apiInstance = new EventsManagerApi(configuration);
|
|
358
|
+
|
|
359
|
+
let eventId: string; // (default to undefined)
|
|
360
|
+
let updateEventRequest: UpdateEventRequest; //
|
|
361
|
+
|
|
362
|
+
const { status, data } = await apiInstance.updatePublishedEvent(
|
|
363
|
+
eventId,
|
|
364
|
+
updateEventRequest
|
|
365
|
+
);
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### Parameters
|
|
369
|
+
|
|
370
|
+
|Name | Type | Description | Notes|
|
|
371
|
+
|------------- | ------------- | ------------- | -------------|
|
|
372
|
+
| **updateEventRequest** | **UpdateEventRequest**| | |
|
|
373
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
### Return type
|
|
377
|
+
|
|
378
|
+
**PublishEventResponse**
|
|
379
|
+
|
|
380
|
+
### Authorization
|
|
381
|
+
|
|
382
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
383
|
+
|
|
384
|
+
### HTTP request headers
|
|
385
|
+
|
|
386
|
+
- **Content-Type**: application/json
|
|
387
|
+
- **Accept**: application/json
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
### HTTP response details
|
|
391
|
+
| Status code | Description | Response headers |
|
|
392
|
+
|-------------|-------------|------------------|
|
|
393
|
+
|**200** | Published event updated | - |
|
|
394
|
+
|**404** | Not Found | - |
|
|
395
|
+
|**500** | Server Error | - |
|
|
396
|
+
|
|
397
|
+
[[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
|
+
|
package/docs/EventsStaffApi.md
CHANGED
|
@@ -4,8 +4,67 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
7
8
|
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
8
9
|
|
|
10
|
+
# **checkInEventParticipants**
|
|
11
|
+
> CheckInEventParticipants200Response checkInEventParticipants(checkInEventParticipantsRequest)
|
|
12
|
+
|
|
13
|
+
Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
EventsStaffApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
CheckInEventParticipantsRequest
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
26
|
+
|
|
27
|
+
let eventBookingId: string; // (default to undefined)
|
|
28
|
+
let checkInEventParticipantsRequest: CheckInEventParticipantsRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.checkInEventParticipants(
|
|
31
|
+
eventBookingId,
|
|
32
|
+
checkInEventParticipantsRequest
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **checkInEventParticipantsRequest** | **CheckInEventParticipantsRequest**| | |
|
|
41
|
+
| **eventBookingId** | [**string**] | | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**CheckInEventParticipants200Response**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: application/json
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Check-in effectué avec succès | - |
|
|
62
|
+
|**400** | Requête invalide | - |
|
|
63
|
+
|**404** | EventBooking non trouvé | - |
|
|
64
|
+
|**500** | Erreur serveur | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
9
68
|
# **getEventsByClub**
|
|
10
69
|
> EventsListResponse getEventsByClub()
|
|
11
70
|
|
package/docs/JoinEventRequest.md
CHANGED
|
@@ -7,6 +7,10 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**teamName** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**players** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
**isCreatorPayingAll** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
12
|
+
**playersPaymentMethods** | [**Array<JoinEventRequestPlayersPaymentMethodsInner>**](JoinEventRequestPlayersPaymentMethodsInner.md) | | [optional] [default to undefined]
|
|
13
|
+
**useDefaultPaymentMethod** | **boolean** | | [optional] [default to undefined]
|
|
10
14
|
|
|
11
15
|
## Example
|
|
12
16
|
|
|
@@ -16,6 +20,10 @@ import { JoinEventRequest } from '@tennac-booking/sdk';
|
|
|
16
20
|
const instance: JoinEventRequest = {
|
|
17
21
|
teamName,
|
|
18
22
|
players,
|
|
23
|
+
isCreatorPayingAll,
|
|
24
|
+
paymentMethod,
|
|
25
|
+
playersPaymentMethods,
|
|
26
|
+
useDefaultPaymentMethod,
|
|
19
27
|
};
|
|
20
28
|
```
|
|
21
29
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# JoinEventRequestPlayersPaymentMethodsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
|
|
9
|
+
**id** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { JoinEventRequestPlayersPaymentMethodsInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: JoinEventRequestPlayersPaymentMethodsInner = {
|
|
17
|
+
paymentMethod,
|
|
18
|
+
id,
|
|
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)
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
|
|
9
|
+
**refundedBookingIds** | **Array<string>** | | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ import { PublishEventResponse } from '@tennac-booking/sdk';
|
|
|
14
15
|
|
|
15
16
|
const instance: PublishEventResponse = {
|
|
16
17
|
event,
|
|
18
|
+
refundedBookingIds,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
package/index.ts
CHANGED