@tennac-booking/sdk 1.0.111 → 1.0.113
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 +15 -16
- package/README.md +23 -30
- package/api.ts +1150 -1925
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +838 -1282
- package/dist/api.js +542 -1109
- 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 +838 -1282
- package/dist/esm/api.js +556 -1119
- 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/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/CheckInEventParticipants200Response.md +22 -0
- package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
- package/docs/{ClientRegisterResponse.md → CheckInEventParticipantsRequest.md} +5 -7
- package/docs/ClientApi.md +58 -3
- package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
- package/docs/ClientFullOnboardingResponseClub.md +24 -0
- package/docs/ClientRegister201Response.md +26 -0
- package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
- package/docs/ClubMetadataResponse.md +30 -0
- package/docs/ClubMetadataResponseLocation.md +27 -0
- package/docs/ClubPlayerDetailResponse.md +0 -2
- package/docs/ClubSummary.md +2 -8
- package/docs/ClubsApi.md +55 -0
- package/docs/ClubsManagerApi.md +0 -56
- package/docs/ClubsStaffApi.md +59 -55
- package/docs/CreateEventRequest.md +1 -3
- 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 +20 -159
- package/docs/JoinEventRequest.md +8 -0
- package/docs/{AgendaBookingPlayer.md → JoinEventRequestPlayersPaymentMethodsInner.md} +5 -9
- package/docs/PaymentMethod.md +4 -0
- package/docs/PublishEventResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveSubscriptionResponse.md +0 -22
- package/docs/AgendaBooking.md +0 -30
- package/docs/AgendaBookingSlot.md +0 -30
- package/docs/AgendaPaymentStatus.md +0 -12
- package/docs/ClientAccountOnboardingRequest.md +0 -29
- package/docs/ClientAccountResponse.md +0 -44
- package/docs/ClientAccountsApi.md +0 -408
- package/docs/ClientMeResponse.md +0 -28
- package/docs/ClientOnboardingResponse.md +0 -27
- package/docs/ClientSubscriptionResponse.md +0 -34
- package/docs/GetSubscriptionsHistory200Response.md +0 -22
- package/docs/UpdateUserCreditsRequest.md +0 -20
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createOnsiteInvoiceForBooking**](#createonsiteinvoiceforbooking) | **POST** /api/clubs/staff/bookings/{bookingId}/invoices | |
|
|
7
8
|
|[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
|
|
8
9
|
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
|
|
9
10
|
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
@@ -12,7 +13,64 @@ All URIs are relative to *http://localhost*
|
|
|
12
13
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
13
14
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
14
15
|
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
# **createOnsiteInvoiceForBooking**
|
|
18
|
+
> CreateOnsiteInvoiceResponse createOnsiteInvoiceForBooking(createOnsiteInvoiceRequest)
|
|
19
|
+
|
|
20
|
+
Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import {
|
|
26
|
+
ClubsStaffApi,
|
|
27
|
+
Configuration,
|
|
28
|
+
CreateOnsiteInvoiceRequest
|
|
29
|
+
} from '@tennac-booking/sdk';
|
|
30
|
+
|
|
31
|
+
const configuration = new Configuration();
|
|
32
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
33
|
+
|
|
34
|
+
let bookingId: string; // (default to undefined)
|
|
35
|
+
let createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest; //
|
|
36
|
+
|
|
37
|
+
const { status, data } = await apiInstance.createOnsiteInvoiceForBooking(
|
|
38
|
+
bookingId,
|
|
39
|
+
createOnsiteInvoiceRequest
|
|
40
|
+
);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
|Name | Type | Description | Notes|
|
|
46
|
+
|------------- | ------------- | ------------- | -------------|
|
|
47
|
+
| **createOnsiteInvoiceRequest** | **CreateOnsiteInvoiceRequest**| | |
|
|
48
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**CreateOnsiteInvoiceResponse**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: application/json
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### HTTP response details
|
|
66
|
+
| Status code | Description | Response headers |
|
|
67
|
+
|-------------|-------------|------------------|
|
|
68
|
+
|**201** | Invoice créé et lié à la réservation | - |
|
|
69
|
+
|**400** | Requête invalide | - |
|
|
70
|
+
|**404** | Réservation non trouvée | - |
|
|
71
|
+
|**500** | Erreur serveur | - |
|
|
72
|
+
|
|
73
|
+
[[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)
|
|
16
74
|
|
|
17
75
|
# **getActualities**
|
|
18
76
|
> GetActualities200Response getActualities()
|
|
@@ -372,57 +430,3 @@ const { status, data } = await apiInstance.getUserProfileStaff(
|
|
|
372
430
|
|
|
373
431
|
[[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)
|
|
374
432
|
|
|
375
|
-
# **updateUserCreditsStaff**
|
|
376
|
-
> StaffUserProfileResponse updateUserCreditsStaff(updateUserCreditsRequest)
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
### Example
|
|
380
|
-
|
|
381
|
-
```typescript
|
|
382
|
-
import {
|
|
383
|
-
ClubsStaffApi,
|
|
384
|
-
Configuration,
|
|
385
|
-
UpdateUserCreditsRequest
|
|
386
|
-
} from '@tennac-booking/sdk';
|
|
387
|
-
|
|
388
|
-
const configuration = new Configuration();
|
|
389
|
-
const apiInstance = new ClubsStaffApi(configuration);
|
|
390
|
-
|
|
391
|
-
let id: string; // (default to undefined)
|
|
392
|
-
let updateUserCreditsRequest: UpdateUserCreditsRequest; //
|
|
393
|
-
|
|
394
|
-
const { status, data } = await apiInstance.updateUserCreditsStaff(
|
|
395
|
-
id,
|
|
396
|
-
updateUserCreditsRequest
|
|
397
|
-
);
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
### Parameters
|
|
401
|
-
|
|
402
|
-
|Name | Type | Description | Notes|
|
|
403
|
-
|------------- | ------------- | ------------- | -------------|
|
|
404
|
-
| **updateUserCreditsRequest** | **UpdateUserCreditsRequest**| | |
|
|
405
|
-
| **id** | [**string**] | | defaults to undefined|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
### Return type
|
|
409
|
-
|
|
410
|
-
**StaffUserProfileResponse**
|
|
411
|
-
|
|
412
|
-
### Authorization
|
|
413
|
-
|
|
414
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
415
|
-
|
|
416
|
-
### HTTP request headers
|
|
417
|
-
|
|
418
|
-
- **Content-Type**: application/json
|
|
419
|
-
- **Accept**: application/json
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
### HTTP response details
|
|
423
|
-
| Status code | Description | Response headers |
|
|
424
|
-
|-------------|-------------|------------------|
|
|
425
|
-
|**200** | Ok | - |
|
|
426
|
-
|
|
427
|
-
[[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)
|
|
428
|
-
|
|
@@ -13,9 +13,8 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**endDate** | **string** | | [default to undefined]
|
|
14
14
|
**courts** | **Array<string>** | | [default to undefined]
|
|
15
15
|
**sports** | **Array<string>** | | [default to undefined]
|
|
16
|
-
**recurringType** | **string** | | [
|
|
16
|
+
**recurringType** | **string** | | [default to undefined]
|
|
17
17
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**occurrences** | **number** | | [optional] [default to undefined]
|
|
19
18
|
**participationType** | **string** | | [default to undefined]
|
|
20
19
|
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
21
20
|
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
@@ -42,7 +41,6 @@ const instance: CreateEventRequest = {
|
|
|
42
41
|
sports,
|
|
43
42
|
recurringType,
|
|
44
43
|
recurrenceEndDate,
|
|
45
|
-
occurrences,
|
|
46
44
|
participationType,
|
|
47
45
|
participants,
|
|
48
46
|
teams,
|
|
@@ -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,39 +4,32 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
8
8
|
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
9
|
-
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
10
|
-
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
11
9
|
|
|
12
|
-
# **
|
|
13
|
-
>
|
|
10
|
+
# **checkInEventParticipants**
|
|
11
|
+
> CheckInEventParticipants200Response checkInEventParticipants(checkInEventParticipantsRequest)
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
16
14
|
|
|
17
15
|
### Example
|
|
18
16
|
|
|
19
17
|
```typescript
|
|
20
18
|
import {
|
|
21
19
|
EventsStaffApi,
|
|
22
|
-
Configuration
|
|
20
|
+
Configuration,
|
|
21
|
+
CheckInEventParticipantsRequest
|
|
23
22
|
} from '@tennac-booking/sdk';
|
|
24
23
|
|
|
25
24
|
const configuration = new Configuration();
|
|
26
25
|
const apiInstance = new EventsStaffApi(configuration);
|
|
27
26
|
|
|
28
|
-
let
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const { status, data } = await apiInstance.getDailyEvents(
|
|
35
|
-
clubId,
|
|
36
|
-
date,
|
|
37
|
-
visibilityType,
|
|
38
|
-
type,
|
|
39
|
-
sportId
|
|
27
|
+
let eventBookingId: string; // (default to undefined)
|
|
28
|
+
let checkInEventParticipantsRequest: CheckInEventParticipantsRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.checkInEventParticipants(
|
|
31
|
+
eventBookingId,
|
|
32
|
+
checkInEventParticipantsRequest
|
|
40
33
|
);
|
|
41
34
|
```
|
|
42
35
|
|
|
@@ -44,16 +37,13 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
44
37
|
|
|
45
38
|
|Name | Type | Description | Notes|
|
|
46
39
|
|------------- | ------------- | ------------- | -------------|
|
|
47
|
-
| **
|
|
48
|
-
| **
|
|
49
|
-
| **visibilityType** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
50
|
-
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (optional) defaults to undefined|
|
|
51
|
-
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
40
|
+
| **checkInEventParticipantsRequest** | **CheckInEventParticipantsRequest**| | |
|
|
41
|
+
| **eventBookingId** | [**string**] | | defaults to undefined|
|
|
52
42
|
|
|
53
43
|
|
|
54
44
|
### Return type
|
|
55
45
|
|
|
56
|
-
**
|
|
46
|
+
**CheckInEventParticipants200Response**
|
|
57
47
|
|
|
58
48
|
### Authorization
|
|
59
49
|
|
|
@@ -61,16 +51,17 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
61
51
|
|
|
62
52
|
### HTTP request headers
|
|
63
53
|
|
|
64
|
-
- **Content-Type**:
|
|
54
|
+
- **Content-Type**: application/json
|
|
65
55
|
- **Accept**: application/json
|
|
66
56
|
|
|
67
57
|
|
|
68
58
|
### HTTP response details
|
|
69
59
|
| Status code | Description | Response headers |
|
|
70
60
|
|-------------|-------------|------------------|
|
|
71
|
-
|**200** |
|
|
72
|
-
|**400** |
|
|
73
|
-
|**
|
|
61
|
+
|**200** | Check-in effectué avec succès | - |
|
|
62
|
+
|**400** | Requête invalide | - |
|
|
63
|
+
|**404** | EventBooking non trouvé | - |
|
|
64
|
+
|**500** | Erreur serveur | - |
|
|
74
65
|
|
|
75
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)
|
|
76
67
|
|
|
@@ -121,133 +112,3 @@ This endpoint does not have any parameters.
|
|
|
121
112
|
|
|
122
113
|
[[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)
|
|
123
114
|
|
|
124
|
-
# **getMonthlyEvents**
|
|
125
|
-
> EventsListResponse getMonthlyEvents()
|
|
126
|
-
|
|
127
|
-
Get events for the entire month view (including recurring occurrences)
|
|
128
|
-
|
|
129
|
-
### Example
|
|
130
|
-
|
|
131
|
-
```typescript
|
|
132
|
-
import {
|
|
133
|
-
EventsStaffApi,
|
|
134
|
-
Configuration
|
|
135
|
-
} from '@tennac-booking/sdk';
|
|
136
|
-
|
|
137
|
-
const configuration = new Configuration();
|
|
138
|
-
const apiInstance = new EventsStaffApi(configuration);
|
|
139
|
-
|
|
140
|
-
let clubId: string; // (optional) (default to undefined)
|
|
141
|
-
let date: string; // (optional) (default to undefined)
|
|
142
|
-
let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
|
|
143
|
-
let type: 'event' | 'closure'; // (optional) (default to undefined)
|
|
144
|
-
let sportId: string; // (optional) (default to undefined)
|
|
145
|
-
|
|
146
|
-
const { status, data } = await apiInstance.getMonthlyEvents(
|
|
147
|
-
clubId,
|
|
148
|
-
date,
|
|
149
|
-
visibilityType,
|
|
150
|
-
type,
|
|
151
|
-
sportId
|
|
152
|
-
);
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
### Parameters
|
|
156
|
-
|
|
157
|
-
|Name | Type | Description | Notes|
|
|
158
|
-
|------------- | ------------- | ------------- | -------------|
|
|
159
|
-
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
160
|
-
| **date** | [**string**] | | (optional) defaults to undefined|
|
|
161
|
-
| **visibilityType** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
162
|
-
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (optional) defaults to undefined|
|
|
163
|
-
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
### Return type
|
|
167
|
-
|
|
168
|
-
**EventsListResponse**
|
|
169
|
-
|
|
170
|
-
### Authorization
|
|
171
|
-
|
|
172
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
173
|
-
|
|
174
|
-
### HTTP request headers
|
|
175
|
-
|
|
176
|
-
- **Content-Type**: Not defined
|
|
177
|
-
- **Accept**: application/json
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
### HTTP response details
|
|
181
|
-
| Status code | Description | Response headers |
|
|
182
|
-
|-------------|-------------|------------------|
|
|
183
|
-
|**200** | List of events for the selected month | - |
|
|
184
|
-
|**400** | Bad Request | - |
|
|
185
|
-
|**500** | Server Error | - |
|
|
186
|
-
|
|
187
|
-
[[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)
|
|
188
|
-
|
|
189
|
-
# **getWeeklyEvents**
|
|
190
|
-
> EventsListResponse getWeeklyEvents()
|
|
191
|
-
|
|
192
|
-
Get events for the week view (30 day sliding window)
|
|
193
|
-
|
|
194
|
-
### Example
|
|
195
|
-
|
|
196
|
-
```typescript
|
|
197
|
-
import {
|
|
198
|
-
EventsStaffApi,
|
|
199
|
-
Configuration
|
|
200
|
-
} from '@tennac-booking/sdk';
|
|
201
|
-
|
|
202
|
-
const configuration = new Configuration();
|
|
203
|
-
const apiInstance = new EventsStaffApi(configuration);
|
|
204
|
-
|
|
205
|
-
let clubId: string; // (optional) (default to undefined)
|
|
206
|
-
let date: string; // (optional) (default to undefined)
|
|
207
|
-
let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
|
|
208
|
-
let type: 'event' | 'closure'; // (optional) (default to undefined)
|
|
209
|
-
let sportId: string; // (optional) (default to undefined)
|
|
210
|
-
|
|
211
|
-
const { status, data } = await apiInstance.getWeeklyEvents(
|
|
212
|
-
clubId,
|
|
213
|
-
date,
|
|
214
|
-
visibilityType,
|
|
215
|
-
type,
|
|
216
|
-
sportId
|
|
217
|
-
);
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### Parameters
|
|
221
|
-
|
|
222
|
-
|Name | Type | Description | Notes|
|
|
223
|
-
|------------- | ------------- | ------------- | -------------|
|
|
224
|
-
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
225
|
-
| **date** | [**string**] | | (optional) defaults to undefined|
|
|
226
|
-
| **visibilityType** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
227
|
-
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (optional) defaults to undefined|
|
|
228
|
-
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
### Return type
|
|
232
|
-
|
|
233
|
-
**EventsListResponse**
|
|
234
|
-
|
|
235
|
-
### Authorization
|
|
236
|
-
|
|
237
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
238
|
-
|
|
239
|
-
### HTTP request headers
|
|
240
|
-
|
|
241
|
-
- **Content-Type**: Not defined
|
|
242
|
-
- **Accept**: application/json
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
### HTTP response details
|
|
246
|
-
| Status code | Description | Response headers |
|
|
247
|
-
|-------------|-------------|------------------|
|
|
248
|
-
|**200** | List of events for the weekly view | - |
|
|
249
|
-
|**400** | Bad Request | - |
|
|
250
|
-
|**500** | Server Error | - |
|
|
251
|
-
|
|
252
|
-
[[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)
|
|
253
|
-
|
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
|
|