@tennac-booking/sdk 1.0.89 → 1.0.90
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 +265 -247
- package/README.md +37 -12
- package/api.ts +2709 -1368
- package/dist/api.d.ts +1563 -557
- package/dist/api.js +739 -199
- package/dist/esm/api.d.ts +1563 -557
- package/dist/esm/api.js +734 -199
- package/docs/BookingPopulated.md +3 -3
- package/docs/ClubAnalyticsStaffApi.md +173 -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 +28 -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/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +1 -1
- package/docs/PartialClubWeeklySchedule.md +33 -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/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/UpdateClubSettingsRequest.md +0 -32
package/docs/BookingPopulated.md
CHANGED
|
@@ -8,13 +8,13 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
9
|
**clubId** | **string** | | [default to undefined]
|
|
10
10
|
**creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
11
|
-
**slotInfos** | [**
|
|
11
|
+
**slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
|
|
12
|
+
**players** | [**Array<UserInfo>**](UserInfo.md) | | [default to undefined]
|
|
12
13
|
**paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
|
|
13
14
|
**noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
|
|
14
15
|
**noShowChargeAmount** | **number** | | [optional] [default to undefined]
|
|
15
16
|
**totalPrice** | **number** | | [default to undefined]
|
|
16
17
|
**isCreatorPayingAll** | **boolean** | | [default to undefined]
|
|
17
|
-
**playersIds** | **Array<string>** | | [default to undefined]
|
|
18
18
|
**history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
|
|
19
19
|
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
20
20
|
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
@@ -31,12 +31,12 @@ const instance: BookingPopulated = {
|
|
|
31
31
|
clubId,
|
|
32
32
|
creator,
|
|
33
33
|
slotInfos,
|
|
34
|
+
players,
|
|
34
35
|
paymentByPlayers,
|
|
35
36
|
noShowChargeApplied,
|
|
36
37
|
noShowChargeAmount,
|
|
37
38
|
totalPrice,
|
|
38
39
|
isCreatorPayingAll,
|
|
39
|
-
playersIds,
|
|
40
40
|
history,
|
|
41
41
|
status,
|
|
42
42
|
cancelledByManager,
|
|
@@ -5,6 +5,9 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getAnalyticsBySport**](#getanalyticsbysport) | **GET** /api/club-analytics/sport/{sportId}/analytics | |
|
|
8
|
+
|[**getClubPlayerBookingsById**](#getclubplayerbookingsbyid) | **GET** /api/club-analytics/players/{playerId}/bookings | |
|
|
9
|
+
|[**getClubPlayerById**](#getclubplayerbyid) | **GET** /api/club-analytics/players/{playerId} | |
|
|
10
|
+
|[**getClubPlayerStatisticsById**](#getclubplayerstatisticsbyid) | **GET** /api/club-analytics/players/{playerId}/statistics | |
|
|
8
11
|
|[**getClubPlayers**](#getclubplayers) | **GET** /api/club-analytics/players | |
|
|
9
12
|
|[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/club-analytics/daily-turnover | |
|
|
10
13
|
|[**getGenderPercentage**](#getgenderpercentage) | **GET** /api/club-analytics/gender-percentage | |
|
|
@@ -69,6 +72,176 @@ const { status, data } = await apiInstance.getAnalyticsBySport(
|
|
|
69
72
|
|
|
70
73
|
[[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)
|
|
71
74
|
|
|
75
|
+
# **getClubPlayerBookingsById**
|
|
76
|
+
> ClubPlayerBookingsResponse getClubPlayerBookingsById()
|
|
77
|
+
|
|
78
|
+
Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
79
|
+
|
|
80
|
+
### Example
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
import {
|
|
84
|
+
ClubAnalyticsStaffApi,
|
|
85
|
+
Configuration
|
|
86
|
+
} from '@tennac-booking/sdk';
|
|
87
|
+
|
|
88
|
+
const configuration = new Configuration();
|
|
89
|
+
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
90
|
+
|
|
91
|
+
let playerId: string; // (default to undefined)
|
|
92
|
+
let page: number; // (optional) (default to undefined)
|
|
93
|
+
let pageSize: number; // (optional) (default to undefined)
|
|
94
|
+
|
|
95
|
+
const { status, data } = await apiInstance.getClubPlayerBookingsById(
|
|
96
|
+
playerId,
|
|
97
|
+
page,
|
|
98
|
+
pageSize
|
|
99
|
+
);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Parameters
|
|
103
|
+
|
|
104
|
+
|Name | Type | Description | Notes|
|
|
105
|
+
|------------- | ------------- | ------------- | -------------|
|
|
106
|
+
| **playerId** | [**string**] | | defaults to undefined|
|
|
107
|
+
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
108
|
+
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Return type
|
|
112
|
+
|
|
113
|
+
**ClubPlayerBookingsResponse**
|
|
114
|
+
|
|
115
|
+
### Authorization
|
|
116
|
+
|
|
117
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
118
|
+
|
|
119
|
+
### HTTP request headers
|
|
120
|
+
|
|
121
|
+
- **Content-Type**: Not defined
|
|
122
|
+
- **Accept**: application/json
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### HTTP response details
|
|
126
|
+
| Status code | Description | Response headers |
|
|
127
|
+
|-------------|-------------|------------------|
|
|
128
|
+
|**200** | Réservations du joueur | - |
|
|
129
|
+
|**400** | Bad Request | - |
|
|
130
|
+
|**401** | Unauthorized | - |
|
|
131
|
+
|**500** | Server Error | - |
|
|
132
|
+
|
|
133
|
+
[[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)
|
|
134
|
+
|
|
135
|
+
# **getClubPlayerById**
|
|
136
|
+
> ClubPlayerDetailResponse getClubPlayerById()
|
|
137
|
+
|
|
138
|
+
Récupère les informations détaillées d\'un joueur par son ID
|
|
139
|
+
|
|
140
|
+
### Example
|
|
141
|
+
|
|
142
|
+
```typescript
|
|
143
|
+
import {
|
|
144
|
+
ClubAnalyticsStaffApi,
|
|
145
|
+
Configuration
|
|
146
|
+
} from '@tennac-booking/sdk';
|
|
147
|
+
|
|
148
|
+
const configuration = new Configuration();
|
|
149
|
+
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
150
|
+
|
|
151
|
+
let playerId: string; // (default to undefined)
|
|
152
|
+
|
|
153
|
+
const { status, data } = await apiInstance.getClubPlayerById(
|
|
154
|
+
playerId
|
|
155
|
+
);
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Parameters
|
|
159
|
+
|
|
160
|
+
|Name | Type | Description | Notes|
|
|
161
|
+
|------------- | ------------- | ------------- | -------------|
|
|
162
|
+
| **playerId** | [**string**] | | defaults to undefined|
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Return type
|
|
166
|
+
|
|
167
|
+
**ClubPlayerDetailResponse**
|
|
168
|
+
|
|
169
|
+
### Authorization
|
|
170
|
+
|
|
171
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
172
|
+
|
|
173
|
+
### HTTP request headers
|
|
174
|
+
|
|
175
|
+
- **Content-Type**: Not defined
|
|
176
|
+
- **Accept**: application/json
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### HTTP response details
|
|
180
|
+
| Status code | Description | Response headers |
|
|
181
|
+
|-------------|-------------|------------------|
|
|
182
|
+
|**200** | Informations du joueur | - |
|
|
183
|
+
|**400** | Bad Request | - |
|
|
184
|
+
|**401** | Unauthorized | - |
|
|
185
|
+
|**404** | Not Found | - |
|
|
186
|
+
|**500** | Server Error | - |
|
|
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
|
+
|
|
190
|
+
# **getClubPlayerStatisticsById**
|
|
191
|
+
> ClubPlayerStatisticsResponse getClubPlayerStatisticsById()
|
|
192
|
+
|
|
193
|
+
Récupère les statistiques d\'un joueur pour le staff
|
|
194
|
+
|
|
195
|
+
### Example
|
|
196
|
+
|
|
197
|
+
```typescript
|
|
198
|
+
import {
|
|
199
|
+
ClubAnalyticsStaffApi,
|
|
200
|
+
Configuration
|
|
201
|
+
} from '@tennac-booking/sdk';
|
|
202
|
+
|
|
203
|
+
const configuration = new Configuration();
|
|
204
|
+
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
205
|
+
|
|
206
|
+
let playerId: string; // (default to undefined)
|
|
207
|
+
|
|
208
|
+
const { status, data } = await apiInstance.getClubPlayerStatisticsById(
|
|
209
|
+
playerId
|
|
210
|
+
);
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Parameters
|
|
214
|
+
|
|
215
|
+
|Name | Type | Description | Notes|
|
|
216
|
+
|------------- | ------------- | ------------- | -------------|
|
|
217
|
+
| **playerId** | [**string**] | | defaults to undefined|
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Return type
|
|
221
|
+
|
|
222
|
+
**ClubPlayerStatisticsResponse**
|
|
223
|
+
|
|
224
|
+
### Authorization
|
|
225
|
+
|
|
226
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
227
|
+
|
|
228
|
+
### HTTP request headers
|
|
229
|
+
|
|
230
|
+
- **Content-Type**: Not defined
|
|
231
|
+
- **Accept**: application/json
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### HTTP response details
|
|
235
|
+
| Status code | Description | Response headers |
|
|
236
|
+
|-------------|-------------|------------------|
|
|
237
|
+
|**200** | Statistiques du joueur | - |
|
|
238
|
+
|**400** | Bad Request | - |
|
|
239
|
+
|**401** | Unauthorized | - |
|
|
240
|
+
|**404** | Not Found | - |
|
|
241
|
+
|**500** | Server Error | - |
|
|
242
|
+
|
|
243
|
+
[[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)
|
|
244
|
+
|
|
72
245
|
# **getClubPlayers**
|
|
73
246
|
> Array<ClubPlayerResponse> getClubPlayers()
|
|
74
247
|
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubDaySchedule
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**open** | **string** | | [default to undefined]
|
|
9
|
+
**close** | **string** | | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { ClubDaySchedule } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: ClubDaySchedule = {
|
|
17
|
+
open,
|
|
18
|
+
close,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ClubGeneralSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [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
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**location** | [**ClubLocationSettings**](ClubLocationSettings.md) | | [default to undefined]
|
|
14
|
+
**stripeUrl** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ClubGeneralSettingsResponse } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: ClubGeneralSettingsResponse = {
|
|
22
|
+
name,
|
|
23
|
+
email,
|
|
24
|
+
phone,
|
|
25
|
+
websiteUrl,
|
|
26
|
+
logo,
|
|
27
|
+
location,
|
|
28
|
+
stripeUrl,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ClubHoursSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**schedule** | [**ClubWeeklySchedule**](ClubWeeklySchedule.md) | | [default to undefined]
|
|
9
|
+
**pricingPeriods** | [**Array<ClubPricingPeriodResponse>**](ClubPricingPeriodResponse.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubHoursSettingsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubHoursSettingsResponse = {
|
|
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,26 @@
|
|
|
1
|
+
# ClubLocationSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**zipCode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubLocationSettings } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubLocationSettings = {
|
|
19
|
+
address,
|
|
20
|
+
zipCode,
|
|
21
|
+
city,
|
|
22
|
+
country,
|
|
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,36 @@
|
|
|
1
|
+
# ClubPlayerBookingItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
|
+
**startDate** | **string** | Date de début de la réservation | [default to undefined]
|
|
10
|
+
**endDate** | **string** | Date de fin de la réservation | [default to undefined]
|
|
11
|
+
**location** | **string** | Nom du terrain ou emplacement | [default to undefined]
|
|
12
|
+
**sport** | **string** | Nom du sport associé | [default to undefined]
|
|
13
|
+
**status** | **string** | Statut de la réservation | [default to undefined]
|
|
14
|
+
**totalPrice** | **number** | Prix total de la réservation en centimes | [default to undefined]
|
|
15
|
+
**isCreator** | **boolean** | Indique si le joueur est le créateur de la réservation | [default to undefined]
|
|
16
|
+
**participantsCount** | **number** | Nombre total de participants | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { ClubPlayerBookingItem } from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const instance: ClubPlayerBookingItem = {
|
|
24
|
+
id,
|
|
25
|
+
startDate,
|
|
26
|
+
endDate,
|
|
27
|
+
location,
|
|
28
|
+
sport,
|
|
29
|
+
status,
|
|
30
|
+
totalPrice,
|
|
31
|
+
isCreator,
|
|
32
|
+
participantsCount,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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
|
+
# 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)
|