@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,183 @@
|
|
|
1
|
+
# ClubSettingsStaffApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getClubGeneralSettings**](#getclubgeneralsettings) | **GET** /api/club-settings/settings/general | |
|
|
8
|
+
|[**getHoursSettings**](#gethourssettings) | **GET** /api/club-settings/hours | |
|
|
9
|
+
|[**getPresentationSettings**](#getpresentationsettings) | **GET** /api/club-settings/presentation | |
|
|
10
|
+
|[**getReservationSettings**](#getreservationsettings) | **GET** /api/club-settings/reservation | |
|
|
11
|
+
|
|
12
|
+
# **getClubGeneralSettings**
|
|
13
|
+
> ClubGeneralSettingsResponse getClubGeneralSettings()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
ClubSettingsStaffApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.getClubGeneralSettings();
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Parameters
|
|
31
|
+
This endpoint does not have any parameters.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Return type
|
|
35
|
+
|
|
36
|
+
**ClubGeneralSettingsResponse**
|
|
37
|
+
|
|
38
|
+
### Authorization
|
|
39
|
+
|
|
40
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
41
|
+
|
|
42
|
+
### HTTP request headers
|
|
43
|
+
|
|
44
|
+
- **Content-Type**: Not defined
|
|
45
|
+
- **Accept**: application/json
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### HTTP response details
|
|
49
|
+
| Status code | Description | Response headers |
|
|
50
|
+
|-------------|-------------|------------------|
|
|
51
|
+
|**200** | Paramètres généraux du club | - |
|
|
52
|
+
|
|
53
|
+
[[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)
|
|
54
|
+
|
|
55
|
+
# **getHoursSettings**
|
|
56
|
+
> ClubHoursSettingsResponse getHoursSettings()
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Example
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
import {
|
|
63
|
+
ClubSettingsStaffApi,
|
|
64
|
+
Configuration
|
|
65
|
+
} from '@tennac-booking/sdk';
|
|
66
|
+
|
|
67
|
+
const configuration = new Configuration();
|
|
68
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
69
|
+
|
|
70
|
+
const { status, data } = await apiInstance.getHoursSettings();
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Parameters
|
|
74
|
+
This endpoint does not have any parameters.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Return type
|
|
78
|
+
|
|
79
|
+
**ClubHoursSettingsResponse**
|
|
80
|
+
|
|
81
|
+
### Authorization
|
|
82
|
+
|
|
83
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
84
|
+
|
|
85
|
+
### HTTP request headers
|
|
86
|
+
|
|
87
|
+
- **Content-Type**: Not defined
|
|
88
|
+
- **Accept**: application/json
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### HTTP response details
|
|
92
|
+
| Status code | Description | Response headers |
|
|
93
|
+
|-------------|-------------|------------------|
|
|
94
|
+
|**200** | Horaires du club | - |
|
|
95
|
+
|
|
96
|
+
[[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)
|
|
97
|
+
|
|
98
|
+
# **getPresentationSettings**
|
|
99
|
+
> ClubPresentationSettingsResponse getPresentationSettings()
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Example
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
import {
|
|
106
|
+
ClubSettingsStaffApi,
|
|
107
|
+
Configuration
|
|
108
|
+
} from '@tennac-booking/sdk';
|
|
109
|
+
|
|
110
|
+
const configuration = new Configuration();
|
|
111
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
112
|
+
|
|
113
|
+
const { status, data } = await apiInstance.getPresentationSettings();
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Parameters
|
|
117
|
+
This endpoint does not have any parameters.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Return type
|
|
121
|
+
|
|
122
|
+
**ClubPresentationSettingsResponse**
|
|
123
|
+
|
|
124
|
+
### Authorization
|
|
125
|
+
|
|
126
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
127
|
+
|
|
128
|
+
### HTTP request headers
|
|
129
|
+
|
|
130
|
+
- **Content-Type**: Not defined
|
|
131
|
+
- **Accept**: application/json
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### HTTP response details
|
|
135
|
+
| Status code | Description | Response headers |
|
|
136
|
+
|-------------|-------------|------------------|
|
|
137
|
+
|**200** | Paramètres de présentation du club | - |
|
|
138
|
+
|
|
139
|
+
[[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)
|
|
140
|
+
|
|
141
|
+
# **getReservationSettings**
|
|
142
|
+
> ClubReservationSettingsResponse getReservationSettings()
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Example
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
import {
|
|
149
|
+
ClubSettingsStaffApi,
|
|
150
|
+
Configuration
|
|
151
|
+
} from '@tennac-booking/sdk';
|
|
152
|
+
|
|
153
|
+
const configuration = new Configuration();
|
|
154
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
155
|
+
|
|
156
|
+
const { status, data } = await apiInstance.getReservationSettings();
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Parameters
|
|
160
|
+
This endpoint does not have any parameters.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Return type
|
|
164
|
+
|
|
165
|
+
**ClubReservationSettingsResponse**
|
|
166
|
+
|
|
167
|
+
### Authorization
|
|
168
|
+
|
|
169
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
170
|
+
|
|
171
|
+
### HTTP request headers
|
|
172
|
+
|
|
173
|
+
- **Content-Type**: Not defined
|
|
174
|
+
- **Accept**: application/json
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### HTTP response details
|
|
178
|
+
| Status code | Description | Response headers |
|
|
179
|
+
|-------------|-------------|------------------|
|
|
180
|
+
|**200** | Paramètres de réservation du club | - |
|
|
181
|
+
|
|
182
|
+
[[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)
|
|
183
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ClubWeeklySchedule
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sunday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
9
|
+
**saturday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
10
|
+
**friday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
11
|
+
**thursday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
12
|
+
**wednesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
13
|
+
**tuesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
14
|
+
**monday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ClubWeeklySchedule } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: ClubWeeklySchedule = {
|
|
22
|
+
sunday,
|
|
23
|
+
saturday,
|
|
24
|
+
friday,
|
|
25
|
+
thursday,
|
|
26
|
+
wednesday,
|
|
27
|
+
tuesday,
|
|
28
|
+
monday,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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/ClubsManagerApi.md
CHANGED
|
@@ -5,7 +5,6 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**addClubMember**](#addclubmember) | **POST** /api/clubs/members | |
|
|
8
|
-
|[**addCreditsToCustomer**](#addcreditstocustomer) | **POST** /api/clubs/customers/{userId}/credits | |
|
|
9
8
|
|[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/subscription-plans/{priceId}/archive-price | |
|
|
10
9
|
|[**createActuality**](#createactuality) | **POST** /api/clubs/actualities | |
|
|
11
10
|
|[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/courts | |
|
|
@@ -21,6 +20,7 @@ All URIs are relative to *http://localhost*
|
|
|
21
20
|
|[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
|
|
22
21
|
|[**updateClub**](#updateclub) | **PUT** /api/clubs | |
|
|
23
22
|
|[**updateClubInfos**](#updateclubinfos) | **PUT** /api/clubs/infos | |
|
|
23
|
+
|[**updateClubPresentationSettings**](#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation | |
|
|
24
24
|
|[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | |
|
|
25
25
|
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | |
|
|
26
26
|
|
|
@@ -79,63 +79,6 @@ const { status, data } = await apiInstance.addClubMember(
|
|
|
79
79
|
|
|
80
80
|
[[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)
|
|
81
81
|
|
|
82
|
-
# **addCreditsToCustomer**
|
|
83
|
-
> AddCreditsToCustomer200Response addCreditsToCustomer(addCreditsToCustomerRequest)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
### Example
|
|
87
|
-
|
|
88
|
-
```typescript
|
|
89
|
-
import {
|
|
90
|
-
ClubsManagerApi,
|
|
91
|
-
Configuration,
|
|
92
|
-
AddCreditsToCustomerRequest
|
|
93
|
-
} from '@tennac-booking/sdk';
|
|
94
|
-
|
|
95
|
-
const configuration = new Configuration();
|
|
96
|
-
const apiInstance = new ClubsManagerApi(configuration);
|
|
97
|
-
|
|
98
|
-
let userId: string; // (default to undefined)
|
|
99
|
-
let addCreditsToCustomerRequest: AddCreditsToCustomerRequest; //
|
|
100
|
-
|
|
101
|
-
const { status, data } = await apiInstance.addCreditsToCustomer(
|
|
102
|
-
userId,
|
|
103
|
-
addCreditsToCustomerRequest
|
|
104
|
-
);
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Parameters
|
|
108
|
-
|
|
109
|
-
|Name | Type | Description | Notes|
|
|
110
|
-
|------------- | ------------- | ------------- | -------------|
|
|
111
|
-
| **addCreditsToCustomerRequest** | **AddCreditsToCustomerRequest**| | |
|
|
112
|
-
| **userId** | [**string**] | | defaults to undefined|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Return type
|
|
116
|
-
|
|
117
|
-
**AddCreditsToCustomer200Response**
|
|
118
|
-
|
|
119
|
-
### Authorization
|
|
120
|
-
|
|
121
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
122
|
-
|
|
123
|
-
### HTTP request headers
|
|
124
|
-
|
|
125
|
-
- **Content-Type**: application/json
|
|
126
|
-
- **Accept**: application/json
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### HTTP response details
|
|
130
|
-
| Status code | Description | Response headers |
|
|
131
|
-
|-------------|-------------|------------------|
|
|
132
|
-
|**200** | Crédits mis à jour | - |
|
|
133
|
-
|**400** | Bad Request | - |
|
|
134
|
-
|**404** | ClubCustomer non trouvé | - |
|
|
135
|
-
|**500** | Server Error | - |
|
|
136
|
-
|
|
137
|
-
[[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)
|
|
138
|
-
|
|
139
82
|
# **archivePriceForSubscriptionPlan**
|
|
140
83
|
> UpdateSubscriptionPlanForClub200Response archivePriceForSubscriptionPlan()
|
|
141
84
|
|
|
@@ -900,6 +843,57 @@ const { status, data } = await apiInstance.updateClubInfos(
|
|
|
900
843
|
|
|
901
844
|
[[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)
|
|
902
845
|
|
|
846
|
+
# **updateClubPresentationSettings**
|
|
847
|
+
> ClubPresentationSettingsResponse updateClubPresentationSettings(updateClubPresentationSettingsRequest)
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
### Example
|
|
851
|
+
|
|
852
|
+
```typescript
|
|
853
|
+
import {
|
|
854
|
+
ClubsManagerApi,
|
|
855
|
+
Configuration,
|
|
856
|
+
UpdateClubPresentationSettingsRequest
|
|
857
|
+
} from '@tennac-booking/sdk';
|
|
858
|
+
|
|
859
|
+
const configuration = new Configuration();
|
|
860
|
+
const apiInstance = new ClubsManagerApi(configuration);
|
|
861
|
+
|
|
862
|
+
let updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest; //
|
|
863
|
+
|
|
864
|
+
const { status, data } = await apiInstance.updateClubPresentationSettings(
|
|
865
|
+
updateClubPresentationSettingsRequest
|
|
866
|
+
);
|
|
867
|
+
```
|
|
868
|
+
|
|
869
|
+
### Parameters
|
|
870
|
+
|
|
871
|
+
|Name | Type | Description | Notes|
|
|
872
|
+
|------------- | ------------- | ------------- | -------------|
|
|
873
|
+
| **updateClubPresentationSettingsRequest** | **UpdateClubPresentationSettingsRequest**| | |
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
### Return type
|
|
877
|
+
|
|
878
|
+
**ClubPresentationSettingsResponse**
|
|
879
|
+
|
|
880
|
+
### Authorization
|
|
881
|
+
|
|
882
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
883
|
+
|
|
884
|
+
### HTTP request headers
|
|
885
|
+
|
|
886
|
+
- **Content-Type**: application/json
|
|
887
|
+
- **Accept**: application/json
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
### HTTP response details
|
|
891
|
+
| Status code | Description | Response headers |
|
|
892
|
+
|-------------|-------------|------------------|
|
|
893
|
+
|**200** | Présentation mise à jour | - |
|
|
894
|
+
|
|
895
|
+
[[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)
|
|
896
|
+
|
|
903
897
|
# **updateCourt**
|
|
904
898
|
> any updateCourt(body)
|
|
905
899
|
|
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
|
|
|
@@ -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)
|