@tennac-booking/sdk 1.0.102 → 1.0.104
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 +31 -8
- package/README.md +50 -16
- package/api.ts +3941 -2237
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1785 -531
- package/dist/api.js +965 -272
- 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 +1785 -531
- package/dist/esm/api.js +957 -264
- 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/AddClubMemberRequest.md +7 -1
- package/docs/BookingPopulated.md +3 -3
- package/docs/BookingsStaffApi.md +4 -4
- package/docs/BookingsWithTimeBoundsResponse.md +22 -0
- package/docs/ClientAccountOnboardingRequest.md +2 -2
- package/docs/ClientAccountsApi.md +1 -1
- package/docs/ClubAnalyticsStaffApi.md +314 -0
- package/docs/{AddCreditsToCustomer200Response.md → ClubDaySchedule.md} +7 -5
- package/docs/ClubGeneralSettingsResponse.md +32 -0
- package/docs/ClubHoursSettingsResponse.md +22 -0
- package/docs/ClubLocationSettings.md +26 -0
- package/docs/ClubPlayerBookingItem.md +36 -0
- package/docs/ClubPlayerBookingsPagination.md +28 -0
- package/docs/ClubPlayerBookingsResponse.md +24 -0
- package/docs/ClubPlayerDetailResponse.md +46 -0
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponse.md +42 -0
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +28 -0
- package/docs/ClubPresentationSettingsResponse.md +26 -0
- package/docs/ClubPricingPeriodResponse.md +30 -0
- package/docs/ClubReservationSettingsResponse.md +26 -0
- package/docs/ClubResponse.md +2 -0
- package/docs/ClubSettingsManagerApi.md +54 -60
- package/docs/ClubSettingsStaffApi.md +183 -0
- package/docs/ClubWeeklySchedule.md +32 -0
- package/docs/ClubsManagerApi.md +112 -58
- package/docs/ClubsStaffApi.md +44 -0
- package/docs/CourtBookingShareItem.md +26 -0
- package/docs/CourtResponse.md +1 -1
- package/docs/CreateCourtRequest.md +1 -1
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +1 -1
- package/docs/PartialClubResponse.md +2 -0
- package/docs/PartialClubWeeklySchedule.md +33 -0
- package/docs/RetentionRateResponse.md +24 -0
- package/docs/RevenueBySportItem.md +24 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/{DeleteClubSettingsResponse.md → TimeBounds.md} +7 -5
- package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
- package/docs/UpdateClubHoursSettingsRequest.md +22 -0
- package/docs/UpdateClubMemberRequest.md +22 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
- package/docs/UpdateClubReservationSettingsRequest.md +28 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserInfo.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AddCreditsToCustomerRequest.md +0 -22
- package/docs/ClubSettingsResponse.md +0 -39
- package/docs/CreateClubSettingsRequest.md +0 -34
- package/docs/EventResponseCourtsInner.md +0 -18
- package/docs/SportsStaffApi.md +0 -55
- package/docs/UpdateClubSettingsRequest.md +0 -32
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
|
|
8
8
|
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
|
|
9
9
|
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
10
|
+
|[**getClubPresentationSettings**](#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation | |
|
|
10
11
|
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
|
|
11
12
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
12
13
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
@@ -143,6 +144,49 @@ This endpoint does not have any parameters.
|
|
|
143
144
|
|
|
144
145
|
[[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)
|
|
145
146
|
|
|
147
|
+
# **getClubPresentationSettings**
|
|
148
|
+
> ClubPresentationSettingsResponse getClubPresentationSettings()
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Example
|
|
152
|
+
|
|
153
|
+
```typescript
|
|
154
|
+
import {
|
|
155
|
+
ClubsStaffApi,
|
|
156
|
+
Configuration
|
|
157
|
+
} from '@tennac-booking/sdk';
|
|
158
|
+
|
|
159
|
+
const configuration = new Configuration();
|
|
160
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
161
|
+
|
|
162
|
+
const { status, data } = await apiInstance.getClubPresentationSettings();
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
This endpoint does not have any parameters.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Return type
|
|
170
|
+
|
|
171
|
+
**ClubPresentationSettingsResponse**
|
|
172
|
+
|
|
173
|
+
### Authorization
|
|
174
|
+
|
|
175
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
176
|
+
|
|
177
|
+
### HTTP request headers
|
|
178
|
+
|
|
179
|
+
- **Content-Type**: Not defined
|
|
180
|
+
- **Accept**: application/json
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### HTTP response details
|
|
184
|
+
| Status code | Description | Response headers |
|
|
185
|
+
|-------------|-------------|------------------|
|
|
186
|
+
|**200** | Présentation du club | - |
|
|
187
|
+
|
|
188
|
+
[[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)
|
|
189
|
+
|
|
146
190
|
# **getClubRoles**
|
|
147
191
|
> GetClubRoles200Response getClubRoles()
|
|
148
192
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CourtBookingShareItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**courtId** | **string** | ID du terrain | [default to undefined]
|
|
9
|
+
**courtName** | **string** | Nom du terrain | [default to undefined]
|
|
10
|
+
**bookingPercentage** | **number** | Pourcentage des réservations associées à ce terrain | [default to undefined]
|
|
11
|
+
**totalBookings** | **number** | Nombre total de réservations utilisant ce terrain | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CourtBookingShareItem } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: CourtBookingShareItem = {
|
|
19
|
+
courtId,
|
|
20
|
+
courtName,
|
|
21
|
+
bookingPercentage,
|
|
22
|
+
totalBookings,
|
|
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/CourtResponse.md
CHANGED
|
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**endTimeInTheDayInMinutes** | **number** | Heure de fin en minutes depuis minuit | [default to undefined]
|
|
17
17
|
**sportId** | **string** | ID du sport associé au terrain | [default to undefined]
|
|
18
18
|
**sportName** | **string** | Nom du sport associé au terrain | [optional] [default to undefined]
|
|
19
|
-
**surface** | **
|
|
19
|
+
**surface** | [**SurfaceType**](SurfaceType.md) | | [default to undefined]
|
|
20
20
|
**isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
|
|
21
21
|
**clubId** | **string** | ID du club auquel appartient le terrain | [default to undefined]
|
|
22
22
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**startTimeInTheDayInMinutes** | **number** | Heure de début en minutes depuis minuit | [default to undefined]
|
|
11
11
|
**endTimeInTheDayInMinutes** | **number** | Heure de fin en minutes depuis minuit | [default to undefined]
|
|
12
12
|
**sportId** | **string** | ID du sport associé au terrain | [default to undefined]
|
|
13
|
-
**surface** | **
|
|
13
|
+
**surface** | [**SurfaceType**](SurfaceType.md) | | [default to undefined]
|
|
14
14
|
**isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
|
|
15
15
|
**comments** | **string** | Commentaires sur le terrain | [optional] [default to undefined]
|
|
16
16
|
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**startDate** | **string** | | [default to undefined]
|
|
13
13
|
**endDate** | **string** | | [default to undefined]
|
|
14
|
-
**courts** |
|
|
14
|
+
**courts** | **Array<string>** | | [default to undefined]
|
|
15
15
|
**sports** | **Array<string>** | | [default to undefined]
|
|
16
16
|
**recurringType** | **string** | | [default to undefined]
|
|
17
17
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
23
23
|
**price** | **number** | | [optional] [default to undefined]
|
|
24
24
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
25
|
+
**levels** | **Array<number>** | | [optional] [default to undefined]
|
|
25
26
|
**visibilityType** | **string** | | [default to undefined]
|
|
26
27
|
|
|
27
28
|
## Example
|
|
@@ -47,6 +48,7 @@ const instance: CreateEventRequest = {
|
|
|
47
48
|
teamLimit,
|
|
48
49
|
price,
|
|
49
50
|
subscriberPrices,
|
|
51
|
+
levels,
|
|
50
52
|
visibilityType,
|
|
51
53
|
};
|
|
52
54
|
```
|
package/docs/EventResponse.md
CHANGED
|
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**startDate** | **string** | | [default to undefined]
|
|
15
15
|
**endDate** | **string** | | [default to undefined]
|
|
16
|
-
**courts** |
|
|
16
|
+
**courts** | **Array<string>** | | [default to undefined]
|
|
17
17
|
**sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
|
|
18
18
|
**recurringType** | **string** | | [default to undefined]
|
|
19
19
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
23
23
|
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
24
24
|
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
25
|
+
**maxSlotsPerBooking** | **number** | | [optional] [default to undefined]
|
|
25
26
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
26
27
|
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
27
28
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
@@ -49,6 +50,7 @@ const instance: PartialClubResponse = {
|
|
|
49
50
|
sports,
|
|
50
51
|
allowMultipleBookingsAtTheSameTime,
|
|
51
52
|
sameTimeBookingsLimit,
|
|
53
|
+
maxSlotsPerBooking,
|
|
52
54
|
cancellationLimitHours,
|
|
53
55
|
maxWeeklyBookings,
|
|
54
56
|
createdAt,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# PartialClubWeeklySchedule
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**monday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
10
|
+
**tuesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
11
|
+
**wednesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
12
|
+
**thursday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
13
|
+
**friday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
14
|
+
**saturday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
15
|
+
**sunday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { PartialClubWeeklySchedule } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: PartialClubWeeklySchedule = {
|
|
23
|
+
monday,
|
|
24
|
+
tuesday,
|
|
25
|
+
wednesday,
|
|
26
|
+
thursday,
|
|
27
|
+
friday,
|
|
28
|
+
saturday,
|
|
29
|
+
sunday,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[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,24 @@
|
|
|
1
|
+
# RetentionRateResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**retentionRate** | **number** | Pourcentage de joueurs fidèles (>= 2 réservations) | [default to undefined]
|
|
9
|
+
**loyalPlayers** | **number** | Nombre de joueurs fidèles | [default to undefined]
|
|
10
|
+
**totalPlayers** | **number** | Nombre total de joueurs ayant réservé | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RetentionRateResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: RetentionRateResponse = {
|
|
18
|
+
retentionRate,
|
|
19
|
+
loyalPlayers,
|
|
20
|
+
totalPlayers,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[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,24 @@
|
|
|
1
|
+
# RevenueBySportItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sportId** | **string** | ID du sport | [default to undefined]
|
|
9
|
+
**sportName** | **string** | Nom du sport (si disponible) | [default to undefined]
|
|
10
|
+
**totalTurnover** | **number** | Chiffre d\'affaires total pour ce sport | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RevenueBySportItem } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: RevenueBySportItem = {
|
|
18
|
+
sportId,
|
|
19
|
+
sportName,
|
|
20
|
+
totalTurnover,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[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/SlotInfo.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | ID du slot | [default to undefined]
|
|
9
9
|
**startDate** | **string** | Date de début | [default to undefined]
|
|
10
10
|
**endDate** | **string** | Date de fin | [default to undefined]
|
|
11
|
-
**
|
|
11
|
+
**court** | [**CourtInfo**](CourtInfo.md) | | [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ const instance: SlotInfo = {
|
|
|
19
19
|
id,
|
|
20
20
|
startDate,
|
|
21
21
|
endDate,
|
|
22
|
-
|
|
22
|
+
court,
|
|
23
23
|
};
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TimeBounds
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**start** | **string** | Heure de début au format HH:mm | [default to undefined]
|
|
9
|
+
**end** | **string** | Heure de fin au format HH:mm | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { TimeBounds } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: TimeBounds = {
|
|
17
|
+
start,
|
|
18
|
+
end,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# UpdateClubGeneralSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**websiteUrl** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**rib** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**location** | [**ClubLocationSettings**](ClubLocationSettings.md) | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { UpdateClubGeneralSettingsRequest } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: UpdateClubGeneralSettingsRequest = {
|
|
23
|
+
name,
|
|
24
|
+
email,
|
|
25
|
+
phone,
|
|
26
|
+
websiteUrl,
|
|
27
|
+
description,
|
|
28
|
+
rib,
|
|
29
|
+
logo,
|
|
30
|
+
location,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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
|
+
# UpdateClubHoursSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**schedule** | [**PartialClubWeeklySchedule**](PartialClubWeeklySchedule.md) | | [optional] [default to undefined]
|
|
9
|
+
**pricingPeriods** | [**Array<ClubPricingPeriodResponse>**](ClubPricingPeriodResponse.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateClubHoursSettingsRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateClubHoursSettingsRequest = {
|
|
17
|
+
schedule,
|
|
18
|
+
pricingPeriods,
|
|
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,22 @@
|
|
|
1
|
+
# UpdateClubMemberRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**role** | **string** | Rôle du membre dans le club | [optional] [default to undefined]
|
|
9
|
+
**rights** | **Array<string>** | Droits du membre dans le club | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateClubMemberRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateClubMemberRequest = {
|
|
17
|
+
role,
|
|
18
|
+
rights,
|
|
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,26 @@
|
|
|
1
|
+
# UpdateClubPresentationSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
**bannerImages** | **Array<string | null>** | | [optional] [default to undefined]
|
|
11
|
+
**galleryImages** | **Array<string | null>** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UpdateClubPresentationSettingsRequest } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: UpdateClubPresentationSettingsRequest = {
|
|
19
|
+
description,
|
|
20
|
+
tags,
|
|
21
|
+
bannerImages,
|
|
22
|
+
galleryImages,
|
|
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,28 @@
|
|
|
1
|
+
# UpdateClubReservationSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**maxWeeklyBookings** | **number** | | [default to undefined]
|
|
9
|
+
**unlimitedWeeklyBookings** | **boolean** | | [default to undefined]
|
|
10
|
+
**sameTimeBookingsLimit** | **number** | | [default to undefined]
|
|
11
|
+
**cancellationDelayInHours** | **number** | | [default to undefined]
|
|
12
|
+
**bookingPeriodInDays** | **number** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UpdateClubReservationSettingsRequest } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: UpdateClubReservationSettingsRequest = {
|
|
20
|
+
maxWeeklyBookings,
|
|
21
|
+
unlimitedWeeklyBookings,
|
|
22
|
+
sameTimeBookingsLimit,
|
|
23
|
+
cancellationDelayInHours,
|
|
24
|
+
bookingPeriodInDays,
|
|
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)
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**endDate** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**courts** |
|
|
14
|
+
**courts** | **Array<string>** | | [optional] [default to undefined]
|
|
15
15
|
**sports** | **Array<string>** | | [optional] [default to undefined]
|
|
16
16
|
**recurringType** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
package/docs/UserInfo.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**firstName** | **string** | Prénom | [default to undefined]
|
|
10
10
|
**lastName** | **string** | Nom | [default to undefined]
|
|
11
11
|
**email** | **string** | | [default to undefined]
|
|
12
|
+
**phoneNumber** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**profilePictureUrl** | **string** | | [optional] [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const instance: UserInfo = {
|
|
|
21
22
|
firstName,
|
|
22
23
|
lastName,
|
|
23
24
|
email,
|
|
25
|
+
phoneNumber,
|
|
24
26
|
profilePictureUrl,
|
|
25
27
|
};
|
|
26
28
|
```
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# AddCreditsToCustomerRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**reason** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**amount** | **number** | | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { AddCreditsToCustomerRequest } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: AddCreditsToCustomerRequest = {
|
|
17
|
-
reason,
|
|
18
|
-
amount,
|
|
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)
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# ClubSettingsResponse
|
|
2
|
-
|
|
3
|
-
Types TSOA pour les paramètres du club
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**_id** | **string** | ID unique des paramètres | [default to undefined]
|
|
10
|
-
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
|
-
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
|
|
12
|
-
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
13
|
-
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
|
|
14
|
-
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
|
|
15
|
-
**sponsors** | **Array<string>** | Liste des sponsors | [default to undefined]
|
|
16
|
-
**timeBeforePayment** | **number** | Temps avant paiement en minutes | [default to undefined]
|
|
17
|
-
**createdAt** | **string** | Date de création | [default to undefined]
|
|
18
|
-
**updatedAt** | **string** | Date de mise à jour | [default to undefined]
|
|
19
|
-
|
|
20
|
-
## Example
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { ClubSettingsResponse } from '@tennac-booking/sdk';
|
|
24
|
-
|
|
25
|
-
const instance: ClubSettingsResponse = {
|
|
26
|
-
_id,
|
|
27
|
-
clubId,
|
|
28
|
-
maxWeeklyBookings,
|
|
29
|
-
sameTimeBookingsLimit,
|
|
30
|
-
cancellationLimitHours,
|
|
31
|
-
availabilityPeriodInDays,
|
|
32
|
-
sponsors,
|
|
33
|
-
timeBeforePayment,
|
|
34
|
-
createdAt,
|
|
35
|
-
updatedAt,
|
|
36
|
-
};
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# CreateClubSettingsRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** | ID du club | [default to undefined]
|
|
9
|
-
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
10
|
-
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
11
|
-
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
12
|
-
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
13
|
-
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [optional] [default to undefined]
|
|
14
|
-
**sponsors** | **Array<string>** | Liste des sponsors | [optional] [default to undefined]
|
|
15
|
-
**timeBeforePayment** | **number** | Temps avant paiement en minutes | [optional] [default to undefined]
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { CreateClubSettingsRequest } from '@tennac-booking/sdk';
|
|
21
|
-
|
|
22
|
-
const instance: CreateClubSettingsRequest = {
|
|
23
|
-
clubId,
|
|
24
|
-
maxWeeklyBookings,
|
|
25
|
-
allowMultipleBookingsAtTheSameTime,
|
|
26
|
-
sameTimeBookingsLimit,
|
|
27
|
-
cancellationLimitHours,
|
|
28
|
-
availabilityPeriodInDays,
|
|
29
|
-
sponsors,
|
|
30
|
-
timeBeforePayment,
|
|
31
|
-
};
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# EventResponseCourtsInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
import { EventResponseCourtsInner } from '@tennac-booking/sdk';
|
|
13
|
-
|
|
14
|
-
const instance: EventResponseCourtsInner = {
|
|
15
|
-
};
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
[[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/SportsStaffApi.md
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# SportsStaffApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getAllSports**](#getallsports) | **GET** /api/sports | |
|
|
8
|
-
|
|
9
|
-
# **getAllSports**
|
|
10
|
-
> Array<SportResponse> getAllSports()
|
|
11
|
-
|
|
12
|
-
Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
SportsStaffApi,
|
|
19
|
-
Configuration
|
|
20
|
-
} from '@tennac-booking/sdk';
|
|
21
|
-
|
|
22
|
-
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new SportsStaffApi(configuration);
|
|
24
|
-
|
|
25
|
-
const { status, data } = await apiInstance.getAllSports();
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Parameters
|
|
29
|
-
This endpoint does not have any parameters.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Return type
|
|
33
|
-
|
|
34
|
-
**Array<SportResponse>**
|
|
35
|
-
|
|
36
|
-
### Authorization
|
|
37
|
-
|
|
38
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
39
|
-
|
|
40
|
-
### HTTP request headers
|
|
41
|
-
|
|
42
|
-
- **Content-Type**: Not defined
|
|
43
|
-
- **Accept**: staff
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### HTTP response details
|
|
47
|
-
| Status code | Description | Response headers |
|
|
48
|
-
|-------------|-------------|------------------|
|
|
49
|
-
|**200** | Liste des sports | - |
|
|
50
|
-
|**400** | Bad Request | - |
|
|
51
|
-
|**401** | Unauthorized | - |
|
|
52
|
-
|**500** | Server Error | - |
|
|
53
|
-
|
|
54
|
-
[[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)
|
|
55
|
-
|