@tennac-booking/sdk 1.0.112 → 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.
@@ -0,0 +1,30 @@
1
+ # AgendaBooking
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
10
+ **creatorName** | **string** | | [default to undefined]
11
+ **players** | [**Array<AgendaBookingPlayer>**](AgendaBookingPlayer.md) | | [default to undefined]
12
+ **paymentStatus** | [**AgendaPaymentStatus**](AgendaPaymentStatus.md) | | [default to undefined]
13
+ **slots** | [**Array<AgendaBookingSlot>**](AgendaBookingSlot.md) | | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { AgendaBooking } from '@tennac-booking/sdk';
19
+
20
+ const instance: AgendaBooking = {
21
+ id,
22
+ status,
23
+ creatorName,
24
+ players,
25
+ paymentStatus,
26
+ slots,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # AgendaBookingPlayer
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **firstName** | **string** | | [default to undefined]
10
+ **lastName** | **string** | | [default to undefined]
11
+ **profilePictureUrl** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AgendaBookingPlayer } from '@tennac-booking/sdk';
17
+
18
+ const instance: AgendaBookingPlayer = {
19
+ id,
20
+ firstName,
21
+ lastName,
22
+ profilePictureUrl,
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)
@@ -0,0 +1,30 @@
1
+ # AgendaBookingSlot
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **start** | **string** | | [default to undefined]
9
+ **end** | **string** | | [default to undefined]
10
+ **courtName** | **string** | | [default to undefined]
11
+ **sportKey** | **string** | | [default to undefined]
12
+ **surface** | **string** | | [optional] [default to undefined]
13
+ **isIndoor** | **boolean** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { AgendaBookingSlot } from '@tennac-booking/sdk';
19
+
20
+ const instance: AgendaBookingSlot = {
21
+ start,
22
+ end,
23
+ courtName,
24
+ sportKey,
25
+ surface,
26
+ isIndoor,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,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<BookingPopulated>**](BookingPopulated.md) | | [default to undefined]
8
+ **bookings** | [**Array<AgendaBooking>**](AgendaBooking.md) | | [default to undefined]
9
9
  **timeBounds** | [**TimeBounds**](TimeBounds.md) | | [default to undefined]
10
10
 
11
11
  ## Example
@@ -0,0 +1,30 @@
1
+ # ClubMetadataResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID unique du club | [default to undefined]
9
+ **name** | **string** | Nom du club | [default to undefined]
10
+ **description** | **string** | Description du club | [optional] [default to undefined]
11
+ **picture** | **string** | URL de la photo de profil (pdp) | [optional] [default to undefined]
12
+ **primaryBannerPicture** | **string** | URL de la bannière principale | [optional] [default to undefined]
13
+ **location** | [**ClubMetadataResponseLocation**](ClubMetadataResponseLocation.md) | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ClubMetadataResponse } from '@tennac-booking/sdk';
19
+
20
+ const instance: ClubMetadataResponse = {
21
+ id,
22
+ name,
23
+ description,
24
+ picture,
25
+ primaryBannerPicture,
26
+ location,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,27 @@
1
+ # ClubMetadataResponseLocation
2
+
3
+ Localisation du club
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **country** | **string** | | [optional] [default to undefined]
10
+ **zipCode** | **string** | | [optional] [default to undefined]
11
+ **city** | **string** | | [optional] [default to undefined]
12
+ **address** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ClubMetadataResponseLocation } from '@tennac-booking/sdk';
18
+
19
+ const instance: ClubMetadataResponseLocation = {
20
+ country,
21
+ zipCode,
22
+ city,
23
+ address,
24
+ };
25
+ ```
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -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) | **PUT** /api/club-settings/settings/general | |
7
+ |[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PATCH** /api/club-settings/settings/general | |
8
8
  |[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
9
- |[**updatePresentationSettings**](#updatepresentationsettings) | **PUT** /api/club-settings/presentation | |
9
+ |[**updatePresentationSettings**](#updatepresentationsettings) | **PATCH** /api/club-settings/presentation | |
10
10
  |[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
11
11
 
12
12
  # **updateClubGeneralSettings**
@@ -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
- **address** | **string** | | [optional] [default to undefined]
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
- address,
25
+ picture,
26
+ bannerPictures,
27
+ galleryPictures,
23
28
  location,
24
29
  visitCount,
30
+ tags,
25
31
  };
26
32
  ```
27
33
 
package/docs/ClubsApi.md CHANGED
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost*
10
10
  |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | |
11
11
  |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | |
12
12
  |[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/info | |
13
+ |[**getClubMetadata**](#getclubmetadata) | **GET** /api/clubs/{clubId}/metadata | |
13
14
  |[**getClubPageInfo**](#getclubpageinfo) | **GET** /api/clubs/club-page/{clubId} | |
14
15
  |[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
15
16
  |[**getClubsWithVerificationDomains**](#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains | |
@@ -313,6 +314,60 @@ This endpoint does not have any parameters.
313
314
 
314
315
  [[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)
315
316
 
317
+ # **getClubMetadata**
318
+ > ClubMetadataResponse getClubMetadata()
319
+
320
+ Récupère les métadonnées publiques d\'un club
321
+
322
+ ### Example
323
+
324
+ ```typescript
325
+ import {
326
+ ClubsApi,
327
+ Configuration
328
+ } from '@tennac-booking/sdk';
329
+
330
+ const configuration = new Configuration();
331
+ const apiInstance = new ClubsApi(configuration);
332
+
333
+ let clubId: string; // (default to undefined)
334
+
335
+ const { status, data } = await apiInstance.getClubMetadata(
336
+ clubId
337
+ );
338
+ ```
339
+
340
+ ### Parameters
341
+
342
+ |Name | Type | Description | Notes|
343
+ |------------- | ------------- | ------------- | -------------|
344
+ | **clubId** | [**string**] | | defaults to undefined|
345
+
346
+
347
+ ### Return type
348
+
349
+ **ClubMetadataResponse**
350
+
351
+ ### Authorization
352
+
353
+ No authorization required
354
+
355
+ ### HTTP request headers
356
+
357
+ - **Content-Type**: Not defined
358
+ - **Accept**: application/json
359
+
360
+
361
+ ### HTTP response details
362
+ | Status code | Description | Response headers |
363
+ |-------------|-------------|------------------|
364
+ |**200** | Métadonnées publiques du club | - |
365
+ |**400** | Bad Request | - |
366
+ |**404** | Club non trouvé | - |
367
+ |**500** | Server Error | - |
368
+
369
+ [[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)
370
+
316
371
  # **getClubPageInfo**
317
372
  > ClubPageResponse getClubPageInfo()
318
373
 
@@ -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
 
@@ -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,
@@ -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** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
109
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (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** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
221
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (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** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
286
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (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
+