@tennac-booking/sdk 1.0.110 → 1.0.111
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 +296 -292
- package/README.md +30 -20
- package/api.ts +1991 -1063
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1222 -662
- package/dist/api.js +1140 -511
- 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 +1222 -662
- package/dist/esm/api.js +1126 -501
- 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/ActiveSubscriptionResponse.md +22 -0
- package/docs/AgendaBooking.md +30 -0
- package/docs/{JoinEventRequestPlayersPaymentMethodsInner.md → AgendaBookingPlayer.md} +9 -5
- package/docs/AgendaBookingSlot.md +30 -0
- package/docs/AgendaPaymentStatus.md +12 -0
- package/docs/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/ClientAccountOnboardingRequest.md +29 -0
- package/docs/{ClientFullOnboardingResponse.md → ClientAccountOnboardingResponse.md} +11 -7
- package/docs/ClientAccountResponse.md +44 -0
- package/docs/ClientAccountsApi.md +408 -0
- package/docs/ClientApi.md +4 -59
- package/docs/ClientMeResponse.md +28 -0
- package/docs/ClientOnboardingResponse.md +27 -0
- package/docs/{ClientRegisterRequest.md → ClientRegisterRequestBody.md} +7 -7
- package/docs/{CheckInEventParticipantsRequest.md → ClientRegisterResponse.md} +7 -5
- package/docs/ClientSubscriptionResponse.md +34 -0
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsManagerApi.md +56 -0
- package/docs/ClubsStaffApi.md +55 -59
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsManagerApi.md +0 -114
- package/docs/EventsStaffApi.md +159 -20
- package/docs/GetSubscriptionsHistory200Response.md +22 -0
- package/docs/JoinEventRequest.md +0 -8
- package/docs/PaymentMethod.md +0 -4
- package/docs/PublishEventResponse.md +0 -2
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/CheckInEventParticipants200Response.md +0 -22
- package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +0 -28
- package/docs/ClientFullOnboardingResponseClub.md +0 -24
- package/docs/ClientRegister201Response.md +0 -26
- package/docs/CreateOnsiteInvoiceRequest.md +0 -28
- package/docs/CreateOnsiteInvoiceResponse.md +0 -22
- package/docs/CreateOnsiteInvoiceResponseInvoice.md +0 -31
- package/docs/EventConflictCheckRequest.md +0 -28
- package/docs/EventConflictCheckResponse.md +0 -26
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost*
|
|
|
11
11
|
|[**createPriceForSubscriptionPlan**](#createpriceforsubscriptionplan) | **POST** /api/clubs/subscription-plans/{productId}/prices | |
|
|
12
12
|
|[**createSportForClub**](#createsportforclub) | **POST** /api/clubs/sports | |
|
|
13
13
|
|[**deleteActuality**](#deleteactuality) | **DELETE** /api/clubs/actualities/{actualityId} | |
|
|
14
|
+
|[**deleteClubMember**](#deleteclubmember) | **DELETE** /api/clubs/members/{userId} | |
|
|
14
15
|
|[**deleteCourt**](#deletecourt) | **DELETE** /api/clubs/courts/{courtId} | |
|
|
15
16
|
|[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/slots | |
|
|
16
17
|
|[**deleteSubscriptionPlanForClub**](#deletesubscriptionplanforclub) | **DELETE** /api/clubs/subscription-plans/{productId} | |
|
|
@@ -389,6 +390,61 @@ const { status, data } = await apiInstance.deleteActuality(
|
|
|
389
390
|
|
|
390
391
|
[[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)
|
|
391
392
|
|
|
393
|
+
# **deleteClubMember**
|
|
394
|
+
> AddClubMember201Response deleteClubMember()
|
|
395
|
+
|
|
396
|
+
Supprime un membre d\'un club
|
|
397
|
+
|
|
398
|
+
### Example
|
|
399
|
+
|
|
400
|
+
```typescript
|
|
401
|
+
import {
|
|
402
|
+
ClubsManagerApi,
|
|
403
|
+
Configuration
|
|
404
|
+
} from '@tennac-booking/sdk';
|
|
405
|
+
|
|
406
|
+
const configuration = new Configuration();
|
|
407
|
+
const apiInstance = new ClubsManagerApi(configuration);
|
|
408
|
+
|
|
409
|
+
let userId: string; // (default to undefined)
|
|
410
|
+
|
|
411
|
+
const { status, data } = await apiInstance.deleteClubMember(
|
|
412
|
+
userId
|
|
413
|
+
);
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
### Parameters
|
|
417
|
+
|
|
418
|
+
|Name | Type | Description | Notes|
|
|
419
|
+
|------------- | ------------- | ------------- | -------------|
|
|
420
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
### Return type
|
|
424
|
+
|
|
425
|
+
**AddClubMember201Response**
|
|
426
|
+
|
|
427
|
+
### Authorization
|
|
428
|
+
|
|
429
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
430
|
+
|
|
431
|
+
### HTTP request headers
|
|
432
|
+
|
|
433
|
+
- **Content-Type**: Not defined
|
|
434
|
+
- **Accept**: application/json
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### HTTP response details
|
|
438
|
+
| Status code | Description | Response headers |
|
|
439
|
+
|-------------|-------------|------------------|
|
|
440
|
+
|**200** | Membre supprimé | - |
|
|
441
|
+
|**400** | Bad Request | - |
|
|
442
|
+
|**403** | Forbidden | - |
|
|
443
|
+
|**404** | Membre introuvable | - |
|
|
444
|
+
|**500** | Server Error | - |
|
|
445
|
+
|
|
446
|
+
[[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)
|
|
447
|
+
|
|
392
448
|
# **deleteCourt**
|
|
393
449
|
> DeleteCourtResponse deleteCourt()
|
|
394
450
|
|
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -4,7 +4,6 @@ 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 | |
|
|
8
7
|
|[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
|
|
9
8
|
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
|
|
10
9
|
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
@@ -13,64 +12,7 @@ All URIs are relative to *http://localhost*
|
|
|
13
12
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
14
13
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
15
14
|
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
|
|
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)
|
|
15
|
+
|[**updateUserCreditsStaff**](#updateusercreditsstaff) | **PUT** /api/clubs/staff/user-credits/{id} | |
|
|
74
16
|
|
|
75
17
|
# **getActualities**
|
|
76
18
|
> GetActualities200Response getActualities()
|
|
@@ -430,3 +372,57 @@ const { status, data } = await apiInstance.getUserProfileStaff(
|
|
|
430
372
|
|
|
431
373
|
[[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)
|
|
432
374
|
|
|
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,8 +13,9 @@ 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** | | [default to undefined]
|
|
16
|
+
**recurringType** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**occurrences** | **number** | | [optional] [default to undefined]
|
|
18
19
|
**participationType** | **string** | | [default to undefined]
|
|
19
20
|
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
20
21
|
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
@@ -41,6 +42,7 @@ const instance: CreateEventRequest = {
|
|
|
41
42
|
sports,
|
|
42
43
|
recurringType,
|
|
43
44
|
recurrenceEndDate,
|
|
45
|
+
occurrences,
|
|
44
46
|
participationType,
|
|
45
47
|
participants,
|
|
46
48
|
teams,
|
package/docs/EventsManagerApi.md
CHANGED
|
@@ -4,68 +4,11 @@ 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 | |
|
|
8
7
|
|[**createEvent**](#createevent) | **POST** /api/events/manager/createEvent | |
|
|
9
8
|
|[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | |
|
|
10
9
|
|[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | |
|
|
11
10
|
|[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | |
|
|
12
11
|
|[**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)
|
|
69
12
|
|
|
70
13
|
# **createEvent**
|
|
71
14
|
> PublishEventResponse createEvent(createEventRequest)
|
|
@@ -339,60 +282,3 @@ const { status, data } = await apiInstance.updateEvent(
|
|
|
339
282
|
|
|
340
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)
|
|
341
284
|
|
|
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,32 +4,39 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
|
|
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 | |
|
|
9
11
|
|
|
10
|
-
# **
|
|
11
|
-
>
|
|
12
|
+
# **getDailyEvents**
|
|
13
|
+
> EventsListResponse getDailyEvents()
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
Get events for the day view (entire week)
|
|
14
16
|
|
|
15
17
|
### Example
|
|
16
18
|
|
|
17
19
|
```typescript
|
|
18
20
|
import {
|
|
19
21
|
EventsStaffApi,
|
|
20
|
-
Configuration
|
|
21
|
-
CheckInEventParticipantsRequest
|
|
22
|
+
Configuration
|
|
22
23
|
} from '@tennac-booking/sdk';
|
|
23
24
|
|
|
24
25
|
const configuration = new Configuration();
|
|
25
26
|
const apiInstance = new EventsStaffApi(configuration);
|
|
26
27
|
|
|
27
|
-
let
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
let clubId: string; // (optional) (default to undefined)
|
|
29
|
+
let date: string; // (optional) (default to undefined)
|
|
30
|
+
let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
|
|
31
|
+
let type: 'event' | 'closure'; // (optional) (default to undefined)
|
|
32
|
+
let sportId: string; // (optional) (default to undefined)
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.getDailyEvents(
|
|
35
|
+
clubId,
|
|
36
|
+
date,
|
|
37
|
+
visibilityType,
|
|
38
|
+
type,
|
|
39
|
+
sportId
|
|
33
40
|
);
|
|
34
41
|
```
|
|
35
42
|
|
|
@@ -37,13 +44,16 @@ const { status, data } = await apiInstance.checkInEventParticipants(
|
|
|
37
44
|
|
|
38
45
|
|Name | Type | Description | Notes|
|
|
39
46
|
|------------- | ------------- | ------------- | -------------|
|
|
40
|
-
| **
|
|
41
|
-
| **
|
|
47
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
48
|
+
| **date** | [**string**] | | (optional) defaults to undefined|
|
|
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|
|
|
42
52
|
|
|
43
53
|
|
|
44
54
|
### Return type
|
|
45
55
|
|
|
46
|
-
**
|
|
56
|
+
**EventsListResponse**
|
|
47
57
|
|
|
48
58
|
### Authorization
|
|
49
59
|
|
|
@@ -51,17 +61,16 @@ const { status, data } = await apiInstance.checkInEventParticipants(
|
|
|
51
61
|
|
|
52
62
|
### HTTP request headers
|
|
53
63
|
|
|
54
|
-
- **Content-Type**:
|
|
64
|
+
- **Content-Type**: Not defined
|
|
55
65
|
- **Accept**: application/json
|
|
56
66
|
|
|
57
67
|
|
|
58
68
|
### HTTP response details
|
|
59
69
|
| Status code | Description | Response headers |
|
|
60
70
|
|-------------|-------------|------------------|
|
|
61
|
-
|**200** |
|
|
62
|
-
|**400** |
|
|
63
|
-
|**
|
|
64
|
-
|**500** | Erreur serveur | - |
|
|
71
|
+
|**200** | List of events for the daily view | - |
|
|
72
|
+
|**400** | Bad Request | - |
|
|
73
|
+
|**500** | Server Error | - |
|
|
65
74
|
|
|
66
75
|
[[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
76
|
|
|
@@ -112,3 +121,133 @@ This endpoint does not have any parameters.
|
|
|
112
121
|
|
|
113
122
|
[[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)
|
|
114
123
|
|
|
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
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GetSubscriptionsHistory200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscriptions** | [**Array<ClientSubscriptionResponse>**](ClientSubscriptionResponse.md) | | [default to undefined]
|
|
9
|
+
**clientAccountId** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { GetSubscriptionsHistory200Response } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: GetSubscriptionsHistory200Response = {
|
|
17
|
+
subscriptions,
|
|
18
|
+
clientAccountId,
|
|
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/JoinEventRequest.md
CHANGED
|
@@ -7,10 +7,6 @@ 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]
|
|
14
10
|
|
|
15
11
|
## Example
|
|
16
12
|
|
|
@@ -20,10 +16,6 @@ import { JoinEventRequest } from '@tennac-booking/sdk';
|
|
|
20
16
|
const instance: JoinEventRequest = {
|
|
21
17
|
teamName,
|
|
22
18
|
players,
|
|
23
|
-
isCreatorPayingAll,
|
|
24
|
-
paymentMethod,
|
|
25
|
-
playersPaymentMethods,
|
|
26
|
-
useDefaultPaymentMethod,
|
|
27
19
|
};
|
|
28
20
|
```
|
|
29
21
|
|
package/docs/PaymentMethod.md
CHANGED
|
@@ -7,10 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
* `Onsite` (value: `'onsite'`)
|
|
9
9
|
|
|
10
|
-
* `OnsiteCard` (value: `'onsite_card'`)
|
|
11
|
-
|
|
12
|
-
* `OnsiteCash` (value: `'onsite_cash'`)
|
|
13
|
-
|
|
14
10
|
* `Free` (value: `'free'`)
|
|
15
11
|
|
|
16
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)
|
|
@@ -6,7 +6,6 @@
|
|
|
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]
|
|
10
9
|
|
|
11
10
|
## Example
|
|
12
11
|
|
|
@@ -15,7 +14,6 @@ import { PublishEventResponse } from '@tennac-booking/sdk';
|
|
|
15
14
|
|
|
16
15
|
const instance: PublishEventResponse = {
|
|
17
16
|
event,
|
|
18
|
-
refundedBookingIds,
|
|
19
17
|
};
|
|
20
18
|
```
|
|
21
19
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UpdateUserCreditsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**deltaInCents** | **number** | Variation du crédit à appliquer, exprimée en centimes. Peut être négative pour retirer du crédit. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateUserCreditsRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateUserCreditsRequest = {
|
|
16
|
+
deltaInCents,
|
|
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)
|
package/index.ts
CHANGED