@tennac-booking/sdk 1.0.113 → 1.0.114
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 +5 -1
- package/README.md +12 -2
- package/api.ts +823 -7
- package/dist/api.d.ts +540 -4
- package/dist/api.js +452 -6
- package/dist/esm/api.d.ts +540 -4
- package/dist/esm/api.js +448 -2
- package/docs/AgendaBooking.md +30 -0
- package/docs/AgendaBookingPlayer.md +26 -0
- package/docs/AgendaBookingSlot.md +30 -0
- package/docs/AgendaPaymentStatus.md +12 -0
- package/docs/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSettingsManagerApi.md +2 -2
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsManagerApi.md +56 -0
- package/docs/ClubsStaffApi.md +55 -0
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsStaffApi.md +198 -0
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# AgendaPaymentStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Pay` (value: `'payé'`)
|
|
7
|
+
|
|
8
|
+
* `NonPay` (value: `'non payé'`)
|
|
9
|
+
|
|
10
|
+
* `EnAttente` (value: `'en attente'`)
|
|
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)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**bookings** | [**Array<
|
|
8
|
+
**bookings** | [**Array<AgendaBooking>**](AgendaBooking.md) | | [default to undefined]
|
|
9
9
|
**timeBounds** | [**TimeBounds**](TimeBounds.md) | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**city** | **string** | Ville | [default to undefined]
|
|
20
20
|
**sportsLevels** | [**Array<ClubPlayerDetailResponseSportsLevelsInner>**](ClubPlayerDetailResponseSportsLevelsInner.md) | Niveaux par sport | [default to undefined]
|
|
21
21
|
**birthDate** | **string** | Date de naissance | [default to undefined]
|
|
22
|
+
**credits** | **number** | | [default to undefined]
|
|
22
23
|
|
|
23
24
|
## Example
|
|
24
25
|
|
|
@@ -40,6 +41,7 @@ const instance: ClubPlayerDetailResponse = {
|
|
|
40
41
|
city,
|
|
41
42
|
sportsLevels,
|
|
42
43
|
birthDate,
|
|
44
|
+
credits,
|
|
43
45
|
};
|
|
44
46
|
```
|
|
45
47
|
|
|
@@ -4,9 +4,9 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **
|
|
7
|
+
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PATCH** /api/club-settings/settings/general | |
|
|
8
8
|
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
9
|
-
|[**updatePresentationSettings**](#updatepresentationsettings) | **
|
|
9
|
+
|[**updatePresentationSettings**](#updatepresentationsettings) | **PATCH** /api/club-settings/presentation | |
|
|
10
10
|
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
11
11
|
|
|
12
12
|
# **updateClubGeneralSettings**
|
package/docs/ClubSummary.md
CHANGED
|
@@ -7,9 +7,12 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
|
-
**
|
|
10
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**bannerPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**galleryPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
11
13
|
**location** | [**UserLocationSummary**](UserLocationSummary.md) | | [default to undefined]
|
|
12
14
|
**visitCount** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
13
16
|
|
|
14
17
|
## Example
|
|
15
18
|
|
|
@@ -19,9 +22,12 @@ import { ClubSummary } from '@tennac-booking/sdk';
|
|
|
19
22
|
const instance: ClubSummary = {
|
|
20
23
|
id,
|
|
21
24
|
name,
|
|
22
|
-
|
|
25
|
+
picture,
|
|
26
|
+
bannerPictures,
|
|
27
|
+
galleryPictures,
|
|
23
28
|
location,
|
|
24
29
|
visitCount,
|
|
30
|
+
tags,
|
|
25
31
|
};
|
|
26
32
|
```
|
|
27
33
|
|
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
|
@@ -13,6 +13,7 @@ All URIs are relative to *http://localhost*
|
|
|
13
13
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
14
14
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
15
15
|
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
|
|
16
|
+
|[**updateUserCreditsStaff**](#updateusercreditsstaff) | **PUT** /api/clubs/staff/user-credits/{id} | |
|
|
16
17
|
|
|
17
18
|
# **createOnsiteInvoiceForBooking**
|
|
18
19
|
> CreateOnsiteInvoiceResponse createOnsiteInvoiceForBooking(createOnsiteInvoiceRequest)
|
|
@@ -430,3 +431,57 @@ const { status, data } = await apiInstance.getUserProfileStaff(
|
|
|
430
431
|
|
|
431
432
|
[[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
433
|
|
|
434
|
+
# **updateUserCreditsStaff**
|
|
435
|
+
> StaffUserProfileResponse updateUserCreditsStaff(updateUserCreditsRequest)
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
### Example
|
|
439
|
+
|
|
440
|
+
```typescript
|
|
441
|
+
import {
|
|
442
|
+
ClubsStaffApi,
|
|
443
|
+
Configuration,
|
|
444
|
+
UpdateUserCreditsRequest
|
|
445
|
+
} from '@tennac-booking/sdk';
|
|
446
|
+
|
|
447
|
+
const configuration = new Configuration();
|
|
448
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
449
|
+
|
|
450
|
+
let id: string; // (default to undefined)
|
|
451
|
+
let updateUserCreditsRequest: UpdateUserCreditsRequest; //
|
|
452
|
+
|
|
453
|
+
const { status, data } = await apiInstance.updateUserCreditsStaff(
|
|
454
|
+
id,
|
|
455
|
+
updateUserCreditsRequest
|
|
456
|
+
);
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
### Parameters
|
|
460
|
+
|
|
461
|
+
|Name | Type | Description | Notes|
|
|
462
|
+
|------------- | ------------- | ------------- | -------------|
|
|
463
|
+
| **updateUserCreditsRequest** | **UpdateUserCreditsRequest**| | |
|
|
464
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
### Return type
|
|
468
|
+
|
|
469
|
+
**StaffUserProfileResponse**
|
|
470
|
+
|
|
471
|
+
### Authorization
|
|
472
|
+
|
|
473
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
474
|
+
|
|
475
|
+
### HTTP request headers
|
|
476
|
+
|
|
477
|
+
- **Content-Type**: application/json
|
|
478
|
+
- **Accept**: application/json
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
### HTTP response details
|
|
482
|
+
| Status code | Description | Response headers |
|
|
483
|
+
|-------------|-------------|------------------|
|
|
484
|
+
|**200** | Ok | - |
|
|
485
|
+
|
|
486
|
+
[[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)
|
|
487
|
+
|
|
@@ -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/EventsStaffApi.md
CHANGED
|
@@ -5,7 +5,10 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
8
|
+
|[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
|
|
8
9
|
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
10
|
+
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
11
|
+
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
9
12
|
|
|
10
13
|
# **checkInEventParticipants**
|
|
11
14
|
> CheckInEventParticipants200Response checkInEventParticipants(checkInEventParticipantsRequest)
|
|
@@ -65,6 +68,71 @@ const { status, data } = await apiInstance.checkInEventParticipants(
|
|
|
65
68
|
|
|
66
69
|
[[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
70
|
|
|
71
|
+
# **getDailyEvents**
|
|
72
|
+
> EventsListResponse getDailyEvents()
|
|
73
|
+
|
|
74
|
+
Get events for the day view (entire week)
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
EventsStaffApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from '@tennac-booking/sdk';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
86
|
+
|
|
87
|
+
let clubId: string; // (optional) (default to undefined)
|
|
88
|
+
let date: string; // (optional) (default to undefined)
|
|
89
|
+
let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
|
|
90
|
+
let type: 'event' | 'closure'; // (optional) (default to undefined)
|
|
91
|
+
let sportId: string; // (optional) (default to undefined)
|
|
92
|
+
|
|
93
|
+
const { status, data } = await apiInstance.getDailyEvents(
|
|
94
|
+
clubId,
|
|
95
|
+
date,
|
|
96
|
+
visibilityType,
|
|
97
|
+
type,
|
|
98
|
+
sportId
|
|
99
|
+
);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Parameters
|
|
103
|
+
|
|
104
|
+
|Name | Type | Description | Notes|
|
|
105
|
+
|------------- | ------------- | ------------- | -------------|
|
|
106
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
107
|
+
| **date** | [**string**] | | (optional) defaults to undefined|
|
|
108
|
+
| **visibilityType** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
109
|
+
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (optional) defaults to undefined|
|
|
110
|
+
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Return type
|
|
114
|
+
|
|
115
|
+
**EventsListResponse**
|
|
116
|
+
|
|
117
|
+
### Authorization
|
|
118
|
+
|
|
119
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
120
|
+
|
|
121
|
+
### HTTP request headers
|
|
122
|
+
|
|
123
|
+
- **Content-Type**: Not defined
|
|
124
|
+
- **Accept**: application/json
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### HTTP response details
|
|
128
|
+
| Status code | Description | Response headers |
|
|
129
|
+
|-------------|-------------|------------------|
|
|
130
|
+
|**200** | List of events for the daily view | - |
|
|
131
|
+
|**400** | Bad Request | - |
|
|
132
|
+
|**500** | Server Error | - |
|
|
133
|
+
|
|
134
|
+
[[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)
|
|
135
|
+
|
|
68
136
|
# **getEventsByClub**
|
|
69
137
|
> EventsListResponse getEventsByClub()
|
|
70
138
|
|
|
@@ -112,3 +180,133 @@ This endpoint does not have any parameters.
|
|
|
112
180
|
|
|
113
181
|
[[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
182
|
|
|
183
|
+
# **getMonthlyEvents**
|
|
184
|
+
> EventsListResponse getMonthlyEvents()
|
|
185
|
+
|
|
186
|
+
Get events for the entire month view (including recurring occurrences)
|
|
187
|
+
|
|
188
|
+
### Example
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
import {
|
|
192
|
+
EventsStaffApi,
|
|
193
|
+
Configuration
|
|
194
|
+
} from '@tennac-booking/sdk';
|
|
195
|
+
|
|
196
|
+
const configuration = new Configuration();
|
|
197
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
198
|
+
|
|
199
|
+
let clubId: string; // (optional) (default to undefined)
|
|
200
|
+
let date: string; // (optional) (default to undefined)
|
|
201
|
+
let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
|
|
202
|
+
let type: 'event' | 'closure'; // (optional) (default to undefined)
|
|
203
|
+
let sportId: string; // (optional) (default to undefined)
|
|
204
|
+
|
|
205
|
+
const { status, data } = await apiInstance.getMonthlyEvents(
|
|
206
|
+
clubId,
|
|
207
|
+
date,
|
|
208
|
+
visibilityType,
|
|
209
|
+
type,
|
|
210
|
+
sportId
|
|
211
|
+
);
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Parameters
|
|
215
|
+
|
|
216
|
+
|Name | Type | Description | Notes|
|
|
217
|
+
|------------- | ------------- | ------------- | -------------|
|
|
218
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
219
|
+
| **date** | [**string**] | | (optional) defaults to undefined|
|
|
220
|
+
| **visibilityType** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
221
|
+
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (optional) defaults to undefined|
|
|
222
|
+
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
### Return type
|
|
226
|
+
|
|
227
|
+
**EventsListResponse**
|
|
228
|
+
|
|
229
|
+
### Authorization
|
|
230
|
+
|
|
231
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
232
|
+
|
|
233
|
+
### HTTP request headers
|
|
234
|
+
|
|
235
|
+
- **Content-Type**: Not defined
|
|
236
|
+
- **Accept**: application/json
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
### HTTP response details
|
|
240
|
+
| Status code | Description | Response headers |
|
|
241
|
+
|-------------|-------------|------------------|
|
|
242
|
+
|**200** | List of events for the selected month | - |
|
|
243
|
+
|**400** | Bad Request | - |
|
|
244
|
+
|**500** | Server Error | - |
|
|
245
|
+
|
|
246
|
+
[[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)
|
|
247
|
+
|
|
248
|
+
# **getWeeklyEvents**
|
|
249
|
+
> EventsListResponse getWeeklyEvents()
|
|
250
|
+
|
|
251
|
+
Get events for the week view (30 day sliding window)
|
|
252
|
+
|
|
253
|
+
### Example
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
import {
|
|
257
|
+
EventsStaffApi,
|
|
258
|
+
Configuration
|
|
259
|
+
} from '@tennac-booking/sdk';
|
|
260
|
+
|
|
261
|
+
const configuration = new Configuration();
|
|
262
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
263
|
+
|
|
264
|
+
let clubId: string; // (optional) (default to undefined)
|
|
265
|
+
let date: string; // (optional) (default to undefined)
|
|
266
|
+
let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
|
|
267
|
+
let type: 'event' | 'closure'; // (optional) (default to undefined)
|
|
268
|
+
let sportId: string; // (optional) (default to undefined)
|
|
269
|
+
|
|
270
|
+
const { status, data } = await apiInstance.getWeeklyEvents(
|
|
271
|
+
clubId,
|
|
272
|
+
date,
|
|
273
|
+
visibilityType,
|
|
274
|
+
type,
|
|
275
|
+
sportId
|
|
276
|
+
);
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### Parameters
|
|
280
|
+
|
|
281
|
+
|Name | Type | Description | Notes|
|
|
282
|
+
|------------- | ------------- | ------------- | -------------|
|
|
283
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
284
|
+
| **date** | [**string**] | | (optional) defaults to undefined|
|
|
285
|
+
| **visibilityType** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
286
|
+
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (optional) defaults to undefined|
|
|
287
|
+
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
### Return type
|
|
291
|
+
|
|
292
|
+
**EventsListResponse**
|
|
293
|
+
|
|
294
|
+
### Authorization
|
|
295
|
+
|
|
296
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
297
|
+
|
|
298
|
+
### HTTP request headers
|
|
299
|
+
|
|
300
|
+
- **Content-Type**: Not defined
|
|
301
|
+
- **Accept**: application/json
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### HTTP response details
|
|
305
|
+
| Status code | Description | Response headers |
|
|
306
|
+
|-------------|-------------|------------------|
|
|
307
|
+
|**200** | List of events for the weekly view | - |
|
|
308
|
+
|**400** | Bad Request | - |
|
|
309
|
+
|**500** | Server Error | - |
|
|
310
|
+
|
|
311
|
+
[[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)
|
|
312
|
+
|
|
@@ -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)
|