@tennac-booking/sdk 1.0.88 → 1.0.89
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 +247 -256
- package/README.md +31 -49
- package/api.ts +4761 -5669
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1405 -2010
- package/dist/api.js +483 -936
- 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 +1405 -2010
- package/dist/esm/api.js +471 -928
- 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/{ConfirmPaymentMethodRequestBody.md → AddCreditsToCustomer200Response.md} +5 -5
- package/docs/AddCreditsToCustomerRequest.md +22 -0
- package/docs/BookingClubInfo.md +28 -0
- package/docs/BookingCourtInfo.md +22 -0
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/BookingPopulated.md +3 -3
- package/docs/BookingPriceBody.md +22 -0
- package/docs/BookingPriceResponse.md +22 -0
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/{ClubDaySchedule.md → BookingSportInfo.md} +7 -7
- package/docs/BookingSummary.md +54 -2
- package/docs/BookingsApi.md +55 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -173
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubSettingsManagerApi.md +60 -54
- package/docs/ClubSettingsResponse.md +39 -0
- package/docs/ClubsApi.md +1 -1
- package/docs/ClubsManagerApi.md +58 -52
- package/docs/ClubsStaffApi.md +0 -44
- package/docs/CreateBookingRequest.md +4 -2
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/CreateEventRequest.md +1 -3
- package/docs/{AddPaymentMethodRequestBody.md → DeleteClubSettingsResponse.md} +5 -5
- package/docs/EventResponse.md +1 -1
- package/docs/{SetupPaymentMethodRequestBody.md → EventResponseCourtsInner.md} +3 -5
- package/docs/IUserAttributes.md +2 -12
- package/docs/InvoiceStatus.md +22 -0
- package/docs/MyClubInfosResponse.md +26 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/QuickReservationClubSport.md +22 -0
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +32 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserApi.md +60 -0
- package/docs/UserBookingsResponse.md +28 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +4 -160
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingDetailResponse.md +0 -46
- package/docs/ClubGeneralSettingsResponse.md +0 -32
- package/docs/ClubHoursSettingsResponse.md +0 -22
- package/docs/ClubLocationSettings.md +0 -26
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsPagination.md +0 -28
- package/docs/ClubPlayerBookingsResponse.md +0 -24
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ClubPresentationSettingsResponse.md +0 -26
- package/docs/ClubPricingPeriodResponse.md +0 -30
- package/docs/ClubReservationSettingsResponse.md +0 -28
- package/docs/ClubSettingsStaffApi.md +0 -183
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/PartialClubWeeklySchedule.md +0 -33
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
- package/docs/UpdateClubHoursSettingsRequest.md +0 -22
- package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
- package/docs/UpdateClubReservationSettingsRequest.md +0 -28
|
@@ -5,9 +5,6 @@ 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 | |
|
|
11
8
|
|[**getClubPlayers**](#getclubplayers) | **GET** /api/club-analytics/players | |
|
|
12
9
|
|[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/club-analytics/daily-turnover | |
|
|
13
10
|
|[**getGenderPercentage**](#getgenderpercentage) | **GET** /api/club-analytics/gender-percentage | |
|
|
@@ -72,176 +69,6 @@ const { status, data } = await apiInstance.getAnalyticsBySport(
|
|
|
72
69
|
|
|
73
70
|
[[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)
|
|
74
71
|
|
|
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
|
-
|
|
245
72
|
# **getClubPlayers**
|
|
246
73
|
> Array<ClubPlayerResponse> getClubPlayers()
|
|
247
74
|
|
package/docs/ClubResponse.md
CHANGED
|
@@ -19,6 +19,10 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
20
20
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
21
21
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
22
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
23
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
24
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
25
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
22
26
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
23
27
|
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
24
28
|
|
|
@@ -42,6 +46,10 @@ const instance: ClubResponse = {
|
|
|
42
46
|
clubDashBoardUrl,
|
|
43
47
|
isNoShowEnabled,
|
|
44
48
|
sports,
|
|
49
|
+
allowMultipleBookingsAtTheSameTime,
|
|
50
|
+
sameTimeBookingsLimit,
|
|
51
|
+
cancellationLimitHours,
|
|
52
|
+
maxWeeklyBookings,
|
|
45
53
|
createdAt,
|
|
46
54
|
updatedAt,
|
|
47
55
|
};
|
|
@@ -4,14 +4,15 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
7
|
+
|[**createClubSettings**](#createclubsettings) | **POST** /api/club-settings/{clubId} | |
|
|
8
|
+
|[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | |
|
|
9
|
+
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | |
|
|
10
|
+
|[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | |
|
|
11
11
|
|
|
12
|
-
# **
|
|
13
|
-
>
|
|
12
|
+
# **createClubSettings**
|
|
13
|
+
> ClubSettingsResponse createClubSettings(createClubSettingsRequest)
|
|
14
14
|
|
|
15
|
+
Crée les paramètres d\'un club
|
|
15
16
|
|
|
16
17
|
### Example
|
|
17
18
|
|
|
@@ -19,16 +20,18 @@ All URIs are relative to *http://localhost*
|
|
|
19
20
|
import {
|
|
20
21
|
ClubSettingsManagerApi,
|
|
21
22
|
Configuration,
|
|
22
|
-
|
|
23
|
+
CreateClubSettingsRequest
|
|
23
24
|
} from '@tennac-booking/sdk';
|
|
24
25
|
|
|
25
26
|
const configuration = new Configuration();
|
|
26
27
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
27
28
|
|
|
28
|
-
let
|
|
29
|
+
let clubId: string; // (default to undefined)
|
|
30
|
+
let createClubSettingsRequest: CreateClubSettingsRequest; //
|
|
29
31
|
|
|
30
|
-
const { status, data } = await apiInstance.
|
|
31
|
-
|
|
32
|
+
const { status, data } = await apiInstance.createClubSettings(
|
|
33
|
+
clubId,
|
|
34
|
+
createClubSettingsRequest
|
|
32
35
|
);
|
|
33
36
|
```
|
|
34
37
|
|
|
@@ -36,12 +39,13 @@ const { status, data } = await apiInstance.updateClubGeneralSettings(
|
|
|
36
39
|
|
|
37
40
|
|Name | Type | Description | Notes|
|
|
38
41
|
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **
|
|
42
|
+
| **createClubSettingsRequest** | **CreateClubSettingsRequest**| | |
|
|
43
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
40
44
|
|
|
41
45
|
|
|
42
46
|
### Return type
|
|
43
47
|
|
|
44
|
-
**
|
|
48
|
+
**ClubSettingsResponse**
|
|
45
49
|
|
|
46
50
|
### Authorization
|
|
47
51
|
|
|
@@ -56,43 +60,39 @@ const { status, data } = await apiInstance.updateClubGeneralSettings(
|
|
|
56
60
|
### HTTP response details
|
|
57
61
|
| Status code | Description | Response headers |
|
|
58
62
|
|-------------|-------------|------------------|
|
|
59
|
-
|**
|
|
63
|
+
|**201** | Paramètres créés | - |
|
|
64
|
+
|**400** | Bad Request | - |
|
|
65
|
+
|**401** | Unauthorized | - |
|
|
66
|
+
|**500** | Server Error | - |
|
|
60
67
|
|
|
61
68
|
[[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)
|
|
62
69
|
|
|
63
|
-
# **
|
|
64
|
-
>
|
|
70
|
+
# **deleteClubSettings**
|
|
71
|
+
> DeleteClubSettingsResponse deleteClubSettings()
|
|
65
72
|
|
|
73
|
+
Supprime les paramètres d\'un club
|
|
66
74
|
|
|
67
75
|
### Example
|
|
68
76
|
|
|
69
77
|
```typescript
|
|
70
78
|
import {
|
|
71
79
|
ClubSettingsManagerApi,
|
|
72
|
-
Configuration
|
|
73
|
-
UpdateClubHoursSettingsRequest
|
|
80
|
+
Configuration
|
|
74
81
|
} from '@tennac-booking/sdk';
|
|
75
82
|
|
|
76
83
|
const configuration = new Configuration();
|
|
77
84
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
78
85
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const { status, data } = await apiInstance.updateHoursSettings(
|
|
82
|
-
updateClubHoursSettingsRequest
|
|
83
|
-
);
|
|
86
|
+
const { status, data } = await apiInstance.deleteClubSettings();
|
|
84
87
|
```
|
|
85
88
|
|
|
86
89
|
### Parameters
|
|
87
|
-
|
|
88
|
-
|Name | Type | Description | Notes|
|
|
89
|
-
|------------- | ------------- | ------------- | -------------|
|
|
90
|
-
| **updateClubHoursSettingsRequest** | **UpdateClubHoursSettingsRequest**| | |
|
|
90
|
+
This endpoint does not have any parameters.
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
### Return type
|
|
94
94
|
|
|
95
|
-
**
|
|
95
|
+
**DeleteClubSettingsResponse**
|
|
96
96
|
|
|
97
97
|
### Authorization
|
|
98
98
|
|
|
@@ -100,50 +100,47 @@ const { status, data } = await apiInstance.updateHoursSettings(
|
|
|
100
100
|
|
|
101
101
|
### HTTP request headers
|
|
102
102
|
|
|
103
|
-
- **Content-Type**:
|
|
103
|
+
- **Content-Type**: Not defined
|
|
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** |
|
|
110
|
+
|**200** | Paramètres supprimés | - |
|
|
111
|
+
|**400** | Bad Request | - |
|
|
112
|
+
|**401** | Unauthorized | - |
|
|
113
|
+
|**404** | Paramètres non trouvés | - |
|
|
114
|
+
|**500** | Server Error | - |
|
|
111
115
|
|
|
112
116
|
[[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)
|
|
113
117
|
|
|
114
|
-
# **
|
|
115
|
-
>
|
|
118
|
+
# **getClubSettings**
|
|
119
|
+
> ClubSettingsResponse getClubSettings()
|
|
116
120
|
|
|
121
|
+
Récupère les paramètres d\'un club
|
|
117
122
|
|
|
118
123
|
### Example
|
|
119
124
|
|
|
120
125
|
```typescript
|
|
121
126
|
import {
|
|
122
127
|
ClubSettingsManagerApi,
|
|
123
|
-
Configuration
|
|
124
|
-
ClubPresentationSettingsResponse
|
|
128
|
+
Configuration
|
|
125
129
|
} from '@tennac-booking/sdk';
|
|
126
130
|
|
|
127
131
|
const configuration = new Configuration();
|
|
128
132
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
129
133
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
const { status, data } = await apiInstance.updatePresentationSettings(
|
|
133
|
-
clubPresentationSettingsResponse
|
|
134
|
-
);
|
|
134
|
+
const { status, data } = await apiInstance.getClubSettings();
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
### Parameters
|
|
138
|
-
|
|
139
|
-
|Name | Type | Description | Notes|
|
|
140
|
-
|------------- | ------------- | ------------- | -------------|
|
|
141
|
-
| **clubPresentationSettingsResponse** | **ClubPresentationSettingsResponse**| | |
|
|
138
|
+
This endpoint does not have any parameters.
|
|
142
139
|
|
|
143
140
|
|
|
144
141
|
### Return type
|
|
145
142
|
|
|
146
|
-
**
|
|
143
|
+
**ClubSettingsResponse**
|
|
147
144
|
|
|
148
145
|
### Authorization
|
|
149
146
|
|
|
@@ -151,20 +148,25 @@ const { status, data } = await apiInstance.updatePresentationSettings(
|
|
|
151
148
|
|
|
152
149
|
### HTTP request headers
|
|
153
150
|
|
|
154
|
-
- **Content-Type**:
|
|
151
|
+
- **Content-Type**: Not defined
|
|
155
152
|
- **Accept**: application/json
|
|
156
153
|
|
|
157
154
|
|
|
158
155
|
### HTTP response details
|
|
159
156
|
| Status code | Description | Response headers |
|
|
160
157
|
|-------------|-------------|------------------|
|
|
161
|
-
|**200** | Paramètres
|
|
158
|
+
|**200** | Paramètres du club | - |
|
|
159
|
+
|**400** | Bad Request | - |
|
|
160
|
+
|**401** | Unauthorized | - |
|
|
161
|
+
|**404** | Paramètres non trouvés | - |
|
|
162
|
+
|**500** | Server Error | - |
|
|
162
163
|
|
|
163
164
|
[[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)
|
|
164
165
|
|
|
165
|
-
# **
|
|
166
|
-
>
|
|
166
|
+
# **updateClubSettings**
|
|
167
|
+
> ClubSettingsResponse updateClubSettings(updateClubSettingsRequest)
|
|
167
168
|
|
|
169
|
+
Met à jour les paramètres d\'un club
|
|
168
170
|
|
|
169
171
|
### Example
|
|
170
172
|
|
|
@@ -172,16 +174,16 @@ const { status, data } = await apiInstance.updatePresentationSettings(
|
|
|
172
174
|
import {
|
|
173
175
|
ClubSettingsManagerApi,
|
|
174
176
|
Configuration,
|
|
175
|
-
|
|
177
|
+
UpdateClubSettingsRequest
|
|
176
178
|
} from '@tennac-booking/sdk';
|
|
177
179
|
|
|
178
180
|
const configuration = new Configuration();
|
|
179
181
|
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
180
182
|
|
|
181
|
-
let
|
|
183
|
+
let updateClubSettingsRequest: UpdateClubSettingsRequest; //
|
|
182
184
|
|
|
183
|
-
const { status, data } = await apiInstance.
|
|
184
|
-
|
|
185
|
+
const { status, data } = await apiInstance.updateClubSettings(
|
|
186
|
+
updateClubSettingsRequest
|
|
185
187
|
);
|
|
186
188
|
```
|
|
187
189
|
|
|
@@ -189,12 +191,12 @@ const { status, data } = await apiInstance.updateReservationSettings(
|
|
|
189
191
|
|
|
190
192
|
|Name | Type | Description | Notes|
|
|
191
193
|
|------------- | ------------- | ------------- | -------------|
|
|
192
|
-
| **
|
|
194
|
+
| **updateClubSettingsRequest** | **UpdateClubSettingsRequest**| | |
|
|
193
195
|
|
|
194
196
|
|
|
195
197
|
### Return type
|
|
196
198
|
|
|
197
|
-
**
|
|
199
|
+
**ClubSettingsResponse**
|
|
198
200
|
|
|
199
201
|
### Authorization
|
|
200
202
|
|
|
@@ -209,7 +211,11 @@ const { status, data } = await apiInstance.updateReservationSettings(
|
|
|
209
211
|
### HTTP response details
|
|
210
212
|
| Status code | Description | Response headers |
|
|
211
213
|
|-------------|-------------|------------------|
|
|
212
|
-
|**200** | Paramètres
|
|
214
|
+
|**200** | Paramètres mis à jour | - |
|
|
215
|
+
|**400** | Bad Request | - |
|
|
216
|
+
|**401** | Unauthorized | - |
|
|
217
|
+
|**404** | Paramètres non trouvés | - |
|
|
218
|
+
|**500** | Server Error | - |
|
|
213
219
|
|
|
214
220
|
[[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)
|
|
215
221
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# ClubSettingsResponse
|
|
2
|
+
|
|
3
|
+
Types TSOA pour les paramètres du club
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**_id** | **string** | ID unique des paramètres | [default to undefined]
|
|
10
|
+
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
|
|
12
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
13
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
|
|
14
|
+
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
|
|
15
|
+
**sponsors** | **Array<string>** | Liste des sponsors | [default to undefined]
|
|
16
|
+
**timeBeforePayment** | **number** | Temps avant paiement en minutes | [default to undefined]
|
|
17
|
+
**createdAt** | **string** | Date de création | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | Date de mise à jour | [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { ClubSettingsResponse } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: ClubSettingsResponse = {
|
|
26
|
+
_id,
|
|
27
|
+
clubId,
|
|
28
|
+
maxWeeklyBookings,
|
|
29
|
+
sameTimeBookingsLimit,
|
|
30
|
+
cancellationLimitHours,
|
|
31
|
+
availabilityPeriodInDays,
|
|
32
|
+
sponsors,
|
|
33
|
+
timeBeforePayment,
|
|
34
|
+
createdAt,
|
|
35
|
+
updatedAt,
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ClubsApi.md
CHANGED
|
@@ -20,7 +20,7 @@ All URIs are relative to *http://localhost*
|
|
|
20
20
|
# **getActiveClubs**
|
|
21
21
|
> Array<PartialClubResponse> getActiveClubs()
|
|
22
22
|
|
|
23
|
-
Récupère la liste des clubs actifs
|
|
23
|
+
Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
24
24
|
|
|
25
25
|
### Example
|
|
26
26
|
|
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -5,6 +5,7 @@ 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 | |
|
|
8
9
|
|[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/subscription-plans/{priceId}/archive-price | |
|
|
9
10
|
|[**createActuality**](#createactuality) | **POST** /api/clubs/actualities | |
|
|
10
11
|
|[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/courts | |
|
|
@@ -20,7 +21,6 @@ All URIs are relative to *http://localhost*
|
|
|
20
21
|
|[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
|
|
21
22
|
|[**updateClub**](#updateclub) | **PUT** /api/clubs | |
|
|
22
23
|
|[**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,6 +79,63 @@ 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
|
+
|
|
82
139
|
# **archivePriceForSubscriptionPlan**
|
|
83
140
|
> UpdateSubscriptionPlanForClub200Response archivePriceForSubscriptionPlan()
|
|
84
141
|
|
|
@@ -843,57 +900,6 @@ const { status, data } = await apiInstance.updateClubInfos(
|
|
|
843
900
|
|
|
844
901
|
[[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)
|
|
845
902
|
|
|
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
|
-
|
|
897
903
|
# **updateCourt**
|
|
898
904
|
> any updateCourt(body)
|
|
899
905
|
|