@tennac-booking/sdk 1.0.102 → 1.0.103
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 +28 -8
- package/README.md +46 -16
- package/api.ts +7999 -6458
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1689 -548
- package/dist/api.js +883 -266
- 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 +1689 -548
- package/dist/esm/api.js +871 -254
- 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/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 +52 -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/UpdateClubGeneralSettingsRequest.md +34 -0
- package/docs/UpdateClubHoursSettingsRequest.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/DeleteClubSettingsResponse.md +0 -20
- package/docs/EventResponseCourtsInner.md +0 -18
- package/docs/SportsStaffApi.md +0 -55
- package/docs/UpdateClubSettingsRequest.md +0 -32
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ClubPlayerBookingsPagination
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**page** | **number** | Page courante (1-based) | [default to undefined]
|
|
9
|
+
**pageSize** | **number** | Nombre d\'éléments par page | [default to undefined]
|
|
10
|
+
**totalItems** | **number** | Nombre total d\'éléments disponibles | [default to undefined]
|
|
11
|
+
**totalPages** | **number** | Nombre total de pages disponibles | [default to undefined]
|
|
12
|
+
**hasMore** | **boolean** | Existence d\'une page suivante | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ClubPlayerBookingsPagination } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ClubPlayerBookingsPagination = {
|
|
20
|
+
page,
|
|
21
|
+
pageSize,
|
|
22
|
+
totalItems,
|
|
23
|
+
totalPages,
|
|
24
|
+
hasMore,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ClubPlayerBookingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**upcomingBookings** | [**Array<ClubPlayerBookingItem>**](ClubPlayerBookingItem.md) | Réservations à venir | [default to undefined]
|
|
9
|
+
**pastBookings** | [**Array<ClubPlayerBookingItem>**](ClubPlayerBookingItem.md) | Réservations passées | [default to undefined]
|
|
10
|
+
**pastPagination** | [**ClubPlayerBookingsPagination**](ClubPlayerBookingsPagination.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ClubPlayerBookingsResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ClubPlayerBookingsResponse = {
|
|
18
|
+
upcomingBookings,
|
|
19
|
+
pastBookings,
|
|
20
|
+
pastPagination,
|
|
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,46 @@
|
|
|
1
|
+
# ClubPlayerDetailResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID du joueur | [default to undefined]
|
|
9
|
+
**name** | **string** | Nom complet | [default to undefined]
|
|
10
|
+
**firstName** | **string** | Prénom | [default to undefined]
|
|
11
|
+
**lastName** | **string** | Nom | [default to undefined]
|
|
12
|
+
**email** | **string** | Email | [default to undefined]
|
|
13
|
+
**phoneNumber** | **string** | Numéro de téléphone | [default to undefined]
|
|
14
|
+
**profilePictureUrl** | **string** | URL de la photo de profil | [default to undefined]
|
|
15
|
+
**isAccountVerified** | **boolean** | Compte vérifié | [default to undefined]
|
|
16
|
+
**subscriptionsToMyClub** | [**Array<ClubPlayerSubscriptionSummary>**](ClubPlayerSubscriptionSummary.md) | Abonnements au club courant | [default to undefined]
|
|
17
|
+
**profileDescription** | **string** | Description du profil | [default to undefined]
|
|
18
|
+
**gender** | **string** | Genre | [default to undefined]
|
|
19
|
+
**city** | **string** | Ville | [default to undefined]
|
|
20
|
+
**sportsLevels** | [**Array<ClubPlayerDetailResponseSportsLevelsInner>**](ClubPlayerDetailResponseSportsLevelsInner.md) | Niveaux par sport | [default to undefined]
|
|
21
|
+
**birthDate** | **string** | Date de naissance | [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { ClubPlayerDetailResponse } from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const instance: ClubPlayerDetailResponse = {
|
|
29
|
+
id,
|
|
30
|
+
name,
|
|
31
|
+
firstName,
|
|
32
|
+
lastName,
|
|
33
|
+
email,
|
|
34
|
+
phoneNumber,
|
|
35
|
+
profilePictureUrl,
|
|
36
|
+
isAccountVerified,
|
|
37
|
+
subscriptionsToMyClub,
|
|
38
|
+
profileDescription,
|
|
39
|
+
gender,
|
|
40
|
+
city,
|
|
41
|
+
sportsLevels,
|
|
42
|
+
birthDate,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[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
|
+
# ClubPlayerDetailResponseSportsLevelsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**level** | **string** | | [default to undefined]
|
|
9
|
+
**sport** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubPlayerDetailResponseSportsLevelsInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubPlayerDetailResponseSportsLevelsInner = {
|
|
17
|
+
level,
|
|
18
|
+
sport,
|
|
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,42 @@
|
|
|
1
|
+
# ClubPlayerStatisticsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**totalBookings** | **number** | Nombre total de réservations (tous clubs confondus) | [default to undefined]
|
|
9
|
+
**totalBookingsInMyClub** | **number** | Nombre total de réservations dans le club courant | [default to undefined]
|
|
10
|
+
**totalSpentAmount** | **number** | Somme totale dépensée dans le club courant (centimes) | [default to undefined]
|
|
11
|
+
**favoriteSport** | **string** | Sport le plus pratiqué dans le club courant | [default to undefined]
|
|
12
|
+
**averageBookingLeadTimeHours** | **number** | Temps moyen entre la réservation et le début du créneau (heures) | [default to undefined]
|
|
13
|
+
**bookingCancellationRate** | **number** | Taux d\'annulation dans le club courant (0-1) | [default to undefined]
|
|
14
|
+
**activeSubscriptionsToMyClub** | **number** | Nombre d\'abonnements actifs au club courant | [default to undefined]
|
|
15
|
+
**favoriteTimeSlot** | **string** | Heure de créneau favorite dans le club courant (format HH:00) | [default to undefined]
|
|
16
|
+
**favoriteClub** | [**ClubPlayerStatisticsResponseFavoriteClub**](ClubPlayerStatisticsResponseFavoriteClub.md) | | [default to undefined]
|
|
17
|
+
**mostPlayedClub** | [**ClubPlayerStatisticsResponseMostPlayedClub**](ClubPlayerStatisticsResponseMostPlayedClub.md) | | [default to undefined]
|
|
18
|
+
**bookingAmountEvolutionThisMonth** | [**Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>**](ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md) | Évolution quotidienne des montants dépensés ce mois-ci | [default to undefined]
|
|
19
|
+
**mostPlayedPartners** | [**Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>**](ClubPlayerStatisticsResponseMostPlayedPartnersInner.md) | Joueurs les plus joués dans le club courant | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { ClubPlayerStatisticsResponse } from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const instance: ClubPlayerStatisticsResponse = {
|
|
27
|
+
totalBookings,
|
|
28
|
+
totalBookingsInMyClub,
|
|
29
|
+
totalSpentAmount,
|
|
30
|
+
favoriteSport,
|
|
31
|
+
averageBookingLeadTimeHours,
|
|
32
|
+
bookingCancellationRate,
|
|
33
|
+
activeSubscriptionsToMyClub,
|
|
34
|
+
favoriteTimeSlot,
|
|
35
|
+
favoriteClub,
|
|
36
|
+
mostPlayedClub,
|
|
37
|
+
bookingAmountEvolutionThisMonth,
|
|
38
|
+
mostPlayedPartners,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[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
|
+
# ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**amount** | **number** | | [default to undefined]
|
|
9
|
+
**day** | **number** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner = {
|
|
17
|
+
amount,
|
|
18
|
+
day,
|
|
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,23 @@
|
|
|
1
|
+
# ClubPlayerStatisticsResponseFavoriteClub
|
|
2
|
+
|
|
3
|
+
Club favori selon le profil utilisateur
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**clubId** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ClubPlayerStatisticsResponseFavoriteClub } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ClubPlayerStatisticsResponseFavoriteClub = {
|
|
18
|
+
name,
|
|
19
|
+
clubId,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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,25 @@
|
|
|
1
|
+
# ClubPlayerStatisticsResponseMostPlayedClub
|
|
2
|
+
|
|
3
|
+
Club où le joueur a le plus joué
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**bookingsCount** | **number** | | [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**clubId** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubPlayerStatisticsResponseMostPlayedClub } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubPlayerStatisticsResponseMostPlayedClub = {
|
|
19
|
+
bookingsCount,
|
|
20
|
+
name,
|
|
21
|
+
clubId,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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
|
+
# ClubPlayerStatisticsResponseMostPlayedPartnersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**bookingsTogether** | **number** | | [default to undefined]
|
|
9
|
+
**lastName** | **string** | | [default to undefined]
|
|
10
|
+
**firstName** | **string** | | [default to undefined]
|
|
11
|
+
**userId** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubPlayerStatisticsResponseMostPlayedPartnersInner } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubPlayerStatisticsResponseMostPlayedPartnersInner = {
|
|
19
|
+
bookingsTogether,
|
|
20
|
+
lastName,
|
|
21
|
+
firstName,
|
|
22
|
+
userId,
|
|
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
|
+
# ClubPlayerSubscriptionSummary
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID du plan d\'abonnement | [default to undefined]
|
|
9
|
+
**name** | **string** | Nom du plan | [default to undefined]
|
|
10
|
+
**amountInCents** | **number** | Montant en centimes | [default to undefined]
|
|
11
|
+
**currency** | **string** | Devise | [default to undefined]
|
|
12
|
+
**interval** | **string** | Intervalle de facturation | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ClubPlayerSubscriptionSummary } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ClubPlayerSubscriptionSummary = {
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
amountInCents,
|
|
23
|
+
currency,
|
|
24
|
+
interval,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ClubPresentationSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**tags** | **Array<string>** | | [default to undefined]
|
|
10
|
+
**bannerImages** | **Array<string>** | | [default to undefined]
|
|
11
|
+
**galleryImages** | **Array<string>** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubPresentationSettingsResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubPresentationSettingsResponse = {
|
|
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,30 @@
|
|
|
1
|
+
# ClubPricingPeriodResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**days** | **Array<string>** | | [default to undefined]
|
|
11
|
+
**startTime** | **string** | | [default to undefined]
|
|
12
|
+
**endTime** | **string** | | [default to undefined]
|
|
13
|
+
**variation** | **number** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ClubPricingPeriodResponse } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ClubPricingPeriodResponse = {
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
days,
|
|
24
|
+
startTime,
|
|
25
|
+
endTime,
|
|
26
|
+
variation,
|
|
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
|
+
# ClubReservationSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**maxWeeklyBookings** | **number** | | [default to undefined]
|
|
9
|
+
**sameTimeBookingsLimit** | **number** | | [default to undefined]
|
|
10
|
+
**cancellationDelayInHours** | **number** | | [default to undefined]
|
|
11
|
+
**bookingPeriodInDays** | **number** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubReservationSettingsResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubReservationSettingsResponse = {
|
|
19
|
+
maxWeeklyBookings,
|
|
20
|
+
sameTimeBookingsLimit,
|
|
21
|
+
cancellationDelayInHours,
|
|
22
|
+
bookingPeriodInDays,
|
|
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/ClubResponse.md
CHANGED
|
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
|
|
|
21
21
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
22
22
|
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
23
23
|
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
24
|
+
**maxSlotsPerBooking** | **number** | | [optional] [default to undefined]
|
|
24
25
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
25
26
|
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
26
27
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
@@ -48,6 +49,7 @@ const instance: ClubResponse = {
|
|
|
48
49
|
sports,
|
|
49
50
|
allowMultipleBookingsAtTheSameTime,
|
|
50
51
|
sameTimeBookingsLimit,
|
|
52
|
+
maxSlotsPerBooking,
|
|
51
53
|
cancellationLimitHours,
|
|
52
54
|
maxWeeklyBookings,
|
|
53
55
|
createdAt,
|
|
@@ -4,15 +4,14 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
7
|
+
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PUT** /api/club-settings/settings/general | |
|
|
8
|
+
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
9
|
+
|[**updatePresentationSettings**](#updatepresentationsettings) | **PUT** /api/club-settings/presentation | |
|
|
10
|
+
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
11
11
|
|
|
12
|
-
# **
|
|
13
|
-
>
|
|
12
|
+
# **updateClubGeneralSettings**
|
|
13
|
+
> ClubGeneralSettingsResponse updateClubGeneralSettings(updateClubGeneralSettingsRequest)
|
|
14
14
|
|
|
15
|
-
Crée les paramètres d\'un club
|
|
16
15
|
|
|
17
16
|
### Example
|
|
18
17
|
|
|
@@ -20,18 +19,16 @@ Crée les paramètres d\'un club
|
|
|
20
19
|
import {
|
|
21
20
|
ClubSettingsManagerApi,
|
|
22
21
|
Configuration,
|
|
23
|
-
|
|
22
|
+
UpdateClubGeneralSettingsRequest
|
|
24
23
|
} from '@tennac-booking/sdk';
|
|
25
24
|
|
|
26
25
|
const configuration = new Configuration();
|
|
27
26
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
28
27
|
|
|
29
|
-
let
|
|
30
|
-
let createClubSettingsRequest: CreateClubSettingsRequest; //
|
|
28
|
+
let updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest; //
|
|
31
29
|
|
|
32
|
-
const { status, data } = await apiInstance.
|
|
33
|
-
|
|
34
|
-
createClubSettingsRequest
|
|
30
|
+
const { status, data } = await apiInstance.updateClubGeneralSettings(
|
|
31
|
+
updateClubGeneralSettingsRequest
|
|
35
32
|
);
|
|
36
33
|
```
|
|
37
34
|
|
|
@@ -39,13 +36,12 @@ const { status, data } = await apiInstance.createClubSettings(
|
|
|
39
36
|
|
|
40
37
|
|Name | Type | Description | Notes|
|
|
41
38
|
|------------- | ------------- | ------------- | -------------|
|
|
42
|
-
| **
|
|
43
|
-
| **clubId** | [**string**] | | defaults to undefined|
|
|
39
|
+
| **updateClubGeneralSettingsRequest** | **UpdateClubGeneralSettingsRequest**| | |
|
|
44
40
|
|
|
45
41
|
|
|
46
42
|
### Return type
|
|
47
43
|
|
|
48
|
-
**
|
|
44
|
+
**ClubGeneralSettingsResponse**
|
|
49
45
|
|
|
50
46
|
### Authorization
|
|
51
47
|
|
|
@@ -60,39 +56,43 @@ const { status, data } = await apiInstance.createClubSettings(
|
|
|
60
56
|
### HTTP response details
|
|
61
57
|
| Status code | Description | Response headers |
|
|
62
58
|
|-------------|-------------|------------------|
|
|
63
|
-
|**
|
|
64
|
-
|**400** | Bad Request | - |
|
|
65
|
-
|**401** | Unauthorized | - |
|
|
66
|
-
|**500** | Server Error | - |
|
|
59
|
+
|**200** | Paramètres généraux mis à jour | - |
|
|
67
60
|
|
|
68
61
|
[[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
62
|
|
|
70
|
-
# **
|
|
71
|
-
>
|
|
63
|
+
# **updateHoursSettings**
|
|
64
|
+
> ClubHoursSettingsResponse updateHoursSettings(updateClubHoursSettingsRequest)
|
|
72
65
|
|
|
73
|
-
Supprime les paramètres d\'un club
|
|
74
66
|
|
|
75
67
|
### Example
|
|
76
68
|
|
|
77
69
|
```typescript
|
|
78
70
|
import {
|
|
79
71
|
ClubSettingsManagerApi,
|
|
80
|
-
Configuration
|
|
72
|
+
Configuration,
|
|
73
|
+
UpdateClubHoursSettingsRequest
|
|
81
74
|
} from '@tennac-booking/sdk';
|
|
82
75
|
|
|
83
76
|
const configuration = new Configuration();
|
|
84
77
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
85
78
|
|
|
86
|
-
|
|
79
|
+
let updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest; //
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.updateHoursSettings(
|
|
82
|
+
updateClubHoursSettingsRequest
|
|
83
|
+
);
|
|
87
84
|
```
|
|
88
85
|
|
|
89
86
|
### Parameters
|
|
90
|
-
|
|
87
|
+
|
|
88
|
+
|Name | Type | Description | Notes|
|
|
89
|
+
|------------- | ------------- | ------------- | -------------|
|
|
90
|
+
| **updateClubHoursSettingsRequest** | **UpdateClubHoursSettingsRequest**| | |
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
### Return type
|
|
94
94
|
|
|
95
|
-
**
|
|
95
|
+
**ClubHoursSettingsResponse**
|
|
96
96
|
|
|
97
97
|
### Authorization
|
|
98
98
|
|
|
@@ -100,47 +100,50 @@ This endpoint does not have any parameters.
|
|
|
100
100
|
|
|
101
101
|
### HTTP request headers
|
|
102
102
|
|
|
103
|
-
- **Content-Type**:
|
|
103
|
+
- **Content-Type**: application/json
|
|
104
104
|
- **Accept**: application/json
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
### HTTP response details
|
|
108
108
|
| Status code | Description | Response headers |
|
|
109
109
|
|-------------|-------------|------------------|
|
|
110
|
-
|**200** |
|
|
111
|
-
|**400** | Bad Request | - |
|
|
112
|
-
|**401** | Unauthorized | - |
|
|
113
|
-
|**404** | Paramètres non trouvés | - |
|
|
114
|
-
|**500** | Server Error | - |
|
|
110
|
+
|**200** | Horaires du club mis à jour | - |
|
|
115
111
|
|
|
116
112
|
[[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)
|
|
117
113
|
|
|
118
|
-
# **
|
|
119
|
-
>
|
|
114
|
+
# **updatePresentationSettings**
|
|
115
|
+
> ClubPresentationSettingsResponse updatePresentationSettings(clubPresentationSettingsResponse)
|
|
120
116
|
|
|
121
|
-
Récupère les paramètres d\'un club
|
|
122
117
|
|
|
123
118
|
### Example
|
|
124
119
|
|
|
125
120
|
```typescript
|
|
126
121
|
import {
|
|
127
122
|
ClubSettingsManagerApi,
|
|
128
|
-
Configuration
|
|
123
|
+
Configuration,
|
|
124
|
+
ClubPresentationSettingsResponse
|
|
129
125
|
} from '@tennac-booking/sdk';
|
|
130
126
|
|
|
131
127
|
const configuration = new Configuration();
|
|
132
128
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
133
129
|
|
|
134
|
-
|
|
130
|
+
let clubPresentationSettingsResponse: ClubPresentationSettingsResponse; //
|
|
131
|
+
|
|
132
|
+
const { status, data } = await apiInstance.updatePresentationSettings(
|
|
133
|
+
clubPresentationSettingsResponse
|
|
134
|
+
);
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
### Parameters
|
|
138
|
-
|
|
138
|
+
|
|
139
|
+
|Name | Type | Description | Notes|
|
|
140
|
+
|------------- | ------------- | ------------- | -------------|
|
|
141
|
+
| **clubPresentationSettingsResponse** | **ClubPresentationSettingsResponse**| | |
|
|
139
142
|
|
|
140
143
|
|
|
141
144
|
### Return type
|
|
142
145
|
|
|
143
|
-
**
|
|
146
|
+
**ClubPresentationSettingsResponse**
|
|
144
147
|
|
|
145
148
|
### Authorization
|
|
146
149
|
|
|
@@ -148,25 +151,20 @@ This endpoint does not have any parameters.
|
|
|
148
151
|
|
|
149
152
|
### HTTP request headers
|
|
150
153
|
|
|
151
|
-
- **Content-Type**:
|
|
154
|
+
- **Content-Type**: application/json
|
|
152
155
|
- **Accept**: application/json
|
|
153
156
|
|
|
154
157
|
|
|
155
158
|
### HTTP response details
|
|
156
159
|
| Status code | Description | Response headers |
|
|
157
160
|
|-------------|-------------|------------------|
|
|
158
|
-
|**200** | Paramètres
|
|
159
|
-
|**400** | Bad Request | - |
|
|
160
|
-
|**401** | Unauthorized | - |
|
|
161
|
-
|**404** | Paramètres non trouvés | - |
|
|
162
|
-
|**500** | Server Error | - |
|
|
161
|
+
|**200** | Paramètres de présentation mis à jour | - |
|
|
163
162
|
|
|
164
163
|
[[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)
|
|
165
164
|
|
|
166
|
-
# **
|
|
167
|
-
>
|
|
165
|
+
# **updateReservationSettings**
|
|
166
|
+
> ClubReservationSettingsResponse updateReservationSettings(updateClubReservationSettingsRequest)
|
|
168
167
|
|
|
169
|
-
Met à jour les paramètres d\'un club
|
|
170
168
|
|
|
171
169
|
### Example
|
|
172
170
|
|
|
@@ -174,16 +172,16 @@ Met à jour les paramètres d\'un club
|
|
|
174
172
|
import {
|
|
175
173
|
ClubSettingsManagerApi,
|
|
176
174
|
Configuration,
|
|
177
|
-
|
|
175
|
+
UpdateClubReservationSettingsRequest
|
|
178
176
|
} from '@tennac-booking/sdk';
|
|
179
177
|
|
|
180
178
|
const configuration = new Configuration();
|
|
181
179
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
182
180
|
|
|
183
|
-
let
|
|
181
|
+
let updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest; //
|
|
184
182
|
|
|
185
|
-
const { status, data } = await apiInstance.
|
|
186
|
-
|
|
183
|
+
const { status, data } = await apiInstance.updateReservationSettings(
|
|
184
|
+
updateClubReservationSettingsRequest
|
|
187
185
|
);
|
|
188
186
|
```
|
|
189
187
|
|
|
@@ -191,12 +189,12 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
191
189
|
|
|
192
190
|
|Name | Type | Description | Notes|
|
|
193
191
|
|------------- | ------------- | ------------- | -------------|
|
|
194
|
-
| **
|
|
192
|
+
| **updateClubReservationSettingsRequest** | **UpdateClubReservationSettingsRequest**| | |
|
|
195
193
|
|
|
196
194
|
|
|
197
195
|
### Return type
|
|
198
196
|
|
|
199
|
-
**
|
|
197
|
+
**ClubReservationSettingsResponse**
|
|
200
198
|
|
|
201
199
|
### Authorization
|
|
202
200
|
|
|
@@ -211,11 +209,7 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
211
209
|
### HTTP response details
|
|
212
210
|
| Status code | Description | Response headers |
|
|
213
211
|
|-------------|-------------|------------------|
|
|
214
|
-
|**200** | Paramètres mis à jour | - |
|
|
215
|
-
|**400** | Bad Request | - |
|
|
216
|
-
|**401** | Unauthorized | - |
|
|
217
|
-
|**404** | Paramètres non trouvés | - |
|
|
218
|
-
|**500** | Server Error | - |
|
|
212
|
+
|**200** | Paramètres de réservation mis à jour | - |
|
|
219
213
|
|
|
220
214
|
[[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)
|
|
221
215
|
|