@tennac-booking/sdk 1.0.82 → 1.0.83
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 +25 -1
- package/README.md +32 -1
- package/api.ts +1565 -73
- package/dist/api.d.ts +1224 -81
- package/dist/api.js +562 -8
- package/dist/esm/api.d.ts +1224 -81
- package/dist/esm/api.js +555 -5
- package/docs/BookingPopulated.md +2 -0
- package/docs/ClubAnalyticsStaffApi.md +7 -1
- package/docs/{EventResponseCourtsInner.md → ClubDaySchedule.md} +7 -3
- package/docs/ClubGeneralSettingsResponse.md +34 -0
- package/docs/ClubHoursSettingsResponse.md +22 -0
- package/docs/ClubLocationSettings.md +26 -0
- package/docs/ClubPlayerBookingsPagination.md +28 -0
- package/docs/ClubPlayerBookingsResponse.md +2 -0
- package/docs/ClubPresentationSettingsResponse.md +26 -0
- package/docs/ClubPricingPeriodResponse.md +30 -0
- package/docs/ClubReservationAccessSettingsResponse.md +26 -0
- package/docs/ClubReservationSettingsResponse.md +36 -0
- package/docs/ClubSettingsManagerApi.md +104 -0
- package/docs/ClubSettingsStaffApi.md +95 -0
- package/docs/ClubWeeklySchedule.md +32 -0
- package/docs/ClubsManagerApi.md +104 -0
- package/docs/ClubsStaffApi.md +88 -0
- package/docs/CreateEventRequest.md +1 -1
- package/docs/EventResponse.md +1 -1
- package/docs/HotelAccessSettings.md +26 -0
- package/docs/PartialClubWeeklySchedule.md +33 -0
- package/docs/PartialHotelAccessSettings.md +27 -0
- package/docs/PartialPaymentRequirementsSettings.md +23 -0
- package/docs/PartialPublicAccessPartialPublicAccessSettingsSchoolAccessPartialSchoolAccessSettingsHotelAccessPartialHotelAccessSettingsPaymentRequirementsPartialPaymentRequirementsSettings.md +27 -0
- package/docs/PartialPublicAccessSettings.md +25 -0
- package/docs/PartialSchoolAccessSettings.md +25 -0
- package/docs/PaymentRequirementsSettings.md +22 -0
- package/docs/PublicAccessSettings.md +24 -0
- package/docs/SchoolAccessSettings.md +24 -0
- package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
- package/docs/UpdateClubHoursSettingsRequest.md +22 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
- package/docs/UpdateClubReservationSettingsRequest.md +34 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/package.json +1 -1
package/docs/BookingPopulated.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**clubId** | **string** | | [default to undefined]
|
|
10
10
|
**creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
11
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]
|
|
@@ -30,6 +31,7 @@ const instance: BookingPopulated = {
|
|
|
30
31
|
clubId,
|
|
31
32
|
creator,
|
|
32
33
|
slotInfos,
|
|
34
|
+
players,
|
|
33
35
|
paymentByPlayers,
|
|
34
36
|
noShowChargeApplied,
|
|
35
37
|
noShowChargeAmount,
|
|
@@ -89,9 +89,13 @@ const configuration = new Configuration();
|
|
|
89
89
|
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
90
90
|
|
|
91
91
|
let playerId: string; // (default to undefined)
|
|
92
|
+
let page: number; // (optional) (default to undefined)
|
|
93
|
+
let pageSize: number; // (optional) (default to undefined)
|
|
92
94
|
|
|
93
95
|
const { status, data } = await apiInstance.getClubPlayerBookingsById(
|
|
94
|
-
playerId
|
|
96
|
+
playerId,
|
|
97
|
+
page,
|
|
98
|
+
pageSize
|
|
95
99
|
);
|
|
96
100
|
```
|
|
97
101
|
|
|
@@ -100,6 +104,8 @@ const { status, data } = await apiInstance.getClubPlayerBookingsById(
|
|
|
100
104
|
|Name | Type | Description | Notes|
|
|
101
105
|
|------------- | ------------- | ------------- | -------------|
|
|
102
106
|
| **playerId** | [**string**] | | defaults to undefined|
|
|
107
|
+
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
108
|
+
| **pageSize** | [**number**] | | (optional) defaults to undefined|
|
|
103
109
|
|
|
104
110
|
|
|
105
111
|
### Return type
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubDaySchedule
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**open** | **string** | | [default to undefined]
|
|
9
|
+
**close** | **string** | | [default to undefined]
|
|
8
10
|
|
|
9
11
|
## Example
|
|
10
12
|
|
|
11
13
|
```typescript
|
|
12
|
-
import {
|
|
14
|
+
import { ClubDaySchedule } from '@tennac-booking/sdk';
|
|
13
15
|
|
|
14
|
-
const instance:
|
|
16
|
+
const instance: ClubDaySchedule = {
|
|
17
|
+
open,
|
|
18
|
+
close,
|
|
15
19
|
};
|
|
16
20
|
```
|
|
17
21
|
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
**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) | | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ClubGeneralSettingsResponse } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ClubGeneralSettingsResponse = {
|
|
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
|
+
# 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,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)
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**upcomingBookings** | [**Array<ClubPlayerBookingItem>**](ClubPlayerBookingItem.md) | Réservations à venir | [default to undefined]
|
|
9
9
|
**pastBookings** | [**Array<ClubPlayerBookingItem>**](ClubPlayerBookingItem.md) | Réservations passées | [default to undefined]
|
|
10
|
+
**pastPagination** | [**ClubPlayerBookingsPagination**](ClubPlayerBookingsPagination.md) | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { ClubPlayerBookingsResponse } from '@tennac-booking/sdk';
|
|
|
16
17
|
const instance: ClubPlayerBookingsResponse = {
|
|
17
18
|
upcomingBookings,
|
|
18
19
|
pastBookings,
|
|
20
|
+
pastPagination,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ClubPresentationSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**tags** | **Array<string>** | | [default to undefined]
|
|
10
|
+
**bannerImages** | **Array<string>** | | [default to undefined]
|
|
11
|
+
**galleryImages** | **Array<string>** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubPresentationSettingsResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubPresentationSettingsResponse = {
|
|
19
|
+
description,
|
|
20
|
+
tags,
|
|
21
|
+
bannerImages,
|
|
22
|
+
galleryImages,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ClubPricingPeriodResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**days** | **Array<string>** | | [default to undefined]
|
|
11
|
+
**startTime** | **string** | | [default to undefined]
|
|
12
|
+
**endTime** | **string** | | [default to undefined]
|
|
13
|
+
**variation** | **number** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ClubPricingPeriodResponse } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ClubPricingPeriodResponse = {
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
days,
|
|
24
|
+
startTime,
|
|
25
|
+
endTime,
|
|
26
|
+
variation,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ClubReservationAccessSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**publicAccess** | [**PublicAccessSettings**](PublicAccessSettings.md) | | [default to undefined]
|
|
9
|
+
**schoolAccess** | [**SchoolAccessSettings**](SchoolAccessSettings.md) | | [default to undefined]
|
|
10
|
+
**hotelAccess** | [**HotelAccessSettings**](HotelAccessSettings.md) | | [default to undefined]
|
|
11
|
+
**paymentRequirements** | [**PaymentRequirementsSettings**](PaymentRequirementsSettings.md) | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubReservationAccessSettingsResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubReservationAccessSettingsResponse = {
|
|
19
|
+
publicAccess,
|
|
20
|
+
schoolAccess,
|
|
21
|
+
hotelAccess,
|
|
22
|
+
paymentRequirements,
|
|
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
|
+
# ClubReservationSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotDuration** | **number** | | [default to undefined]
|
|
9
|
+
**slotPrice** | **number** | | [default to undefined]
|
|
10
|
+
**maxReservations** | **number** | | [default to undefined]
|
|
11
|
+
**unlimitedReservations** | **boolean** | | [default to undefined]
|
|
12
|
+
**cancellationDelay** | **number** | | [default to undefined]
|
|
13
|
+
**bookingPeriod** | **number** | | [default to undefined]
|
|
14
|
+
**limitMultipleReservations** | **number** | | [default to undefined]
|
|
15
|
+
**allowMultipleReservations** | **boolean** | | [default to undefined]
|
|
16
|
+
**accessSettings** | [**ClubReservationAccessSettingsResponse**](ClubReservationAccessSettingsResponse.md) | | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { ClubReservationSettingsResponse } from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const instance: ClubReservationSettingsResponse = {
|
|
24
|
+
slotDuration,
|
|
25
|
+
slotPrice,
|
|
26
|
+
maxReservations,
|
|
27
|
+
unlimitedReservations,
|
|
28
|
+
cancellationDelay,
|
|
29
|
+
bookingPeriod,
|
|
30
|
+
limitMultipleReservations,
|
|
31
|
+
allowMultipleReservations,
|
|
32
|
+
accessSettings,
|
|
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)
|
|
@@ -8,6 +8,8 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | |
|
|
9
9
|
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | |
|
|
10
10
|
|[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | |
|
|
11
|
+
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
12
|
+
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
11
13
|
|
|
12
14
|
# **createClubSettings**
|
|
13
15
|
> ClubSettingsResponse createClubSettings(createClubSettingsRequest)
|
|
@@ -219,3 +221,105 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
219
221
|
|
|
220
222
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
221
223
|
|
|
224
|
+
# **updateHoursSettings**
|
|
225
|
+
> ClubHoursSettingsResponse updateHoursSettings(updateClubHoursSettingsRequest)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### Example
|
|
229
|
+
|
|
230
|
+
```typescript
|
|
231
|
+
import {
|
|
232
|
+
ClubSettingsManagerApi,
|
|
233
|
+
Configuration,
|
|
234
|
+
UpdateClubHoursSettingsRequest
|
|
235
|
+
} from '@tennac-booking/sdk';
|
|
236
|
+
|
|
237
|
+
const configuration = new Configuration();
|
|
238
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
239
|
+
|
|
240
|
+
let updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest; //
|
|
241
|
+
|
|
242
|
+
const { status, data } = await apiInstance.updateHoursSettings(
|
|
243
|
+
updateClubHoursSettingsRequest
|
|
244
|
+
);
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Parameters
|
|
248
|
+
|
|
249
|
+
|Name | Type | Description | Notes|
|
|
250
|
+
|------------- | ------------- | ------------- | -------------|
|
|
251
|
+
| **updateClubHoursSettingsRequest** | **UpdateClubHoursSettingsRequest**| | |
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Return type
|
|
255
|
+
|
|
256
|
+
**ClubHoursSettingsResponse**
|
|
257
|
+
|
|
258
|
+
### Authorization
|
|
259
|
+
|
|
260
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
261
|
+
|
|
262
|
+
### HTTP request headers
|
|
263
|
+
|
|
264
|
+
- **Content-Type**: application/json
|
|
265
|
+
- **Accept**: application/json
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
### HTTP response details
|
|
269
|
+
| Status code | Description | Response headers |
|
|
270
|
+
|-------------|-------------|------------------|
|
|
271
|
+
|**200** | Horaires du club mis à jour | - |
|
|
272
|
+
|
|
273
|
+
[[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)
|
|
274
|
+
|
|
275
|
+
# **updateReservationSettings**
|
|
276
|
+
> ClubReservationSettingsResponse updateReservationSettings(updateClubReservationSettingsRequest)
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
### Example
|
|
280
|
+
|
|
281
|
+
```typescript
|
|
282
|
+
import {
|
|
283
|
+
ClubSettingsManagerApi,
|
|
284
|
+
Configuration,
|
|
285
|
+
UpdateClubReservationSettingsRequest
|
|
286
|
+
} from '@tennac-booking/sdk';
|
|
287
|
+
|
|
288
|
+
const configuration = new Configuration();
|
|
289
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
290
|
+
|
|
291
|
+
let updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest; //
|
|
292
|
+
|
|
293
|
+
const { status, data } = await apiInstance.updateReservationSettings(
|
|
294
|
+
updateClubReservationSettingsRequest
|
|
295
|
+
);
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### Parameters
|
|
299
|
+
|
|
300
|
+
|Name | Type | Description | Notes|
|
|
301
|
+
|------------- | ------------- | ------------- | -------------|
|
|
302
|
+
| **updateClubReservationSettingsRequest** | **UpdateClubReservationSettingsRequest**| | |
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### Return type
|
|
306
|
+
|
|
307
|
+
**ClubReservationSettingsResponse**
|
|
308
|
+
|
|
309
|
+
### Authorization
|
|
310
|
+
|
|
311
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
312
|
+
|
|
313
|
+
### HTTP request headers
|
|
314
|
+
|
|
315
|
+
- **Content-Type**: application/json
|
|
316
|
+
- **Accept**: application/json
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
### HTTP response details
|
|
320
|
+
| Status code | Description | Response headers |
|
|
321
|
+
|-------------|-------------|------------------|
|
|
322
|
+
|**200** | Paramètres de réservation mis à jour | - |
|
|
323
|
+
|
|
324
|
+
[[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)
|
|
325
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# ClubSettingsStaffApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getHoursSettings**](#gethourssettings) | **GET** /api/club-settings/hours | |
|
|
8
|
+
|[**getReservationSettings**](#getreservationsettings) | **GET** /api/club-settings/reservation | |
|
|
9
|
+
|
|
10
|
+
# **getHoursSettings**
|
|
11
|
+
> ClubHoursSettingsResponse getHoursSettings()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
ClubSettingsStaffApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.getHoursSettings();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**ClubHoursSettingsResponse**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | Horaires du club | - |
|
|
50
|
+
|
|
51
|
+
[[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)
|
|
52
|
+
|
|
53
|
+
# **getReservationSettings**
|
|
54
|
+
> ClubReservationSettingsResponse getReservationSettings()
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Example
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
import {
|
|
61
|
+
ClubSettingsStaffApi,
|
|
62
|
+
Configuration
|
|
63
|
+
} from '@tennac-booking/sdk';
|
|
64
|
+
|
|
65
|
+
const configuration = new Configuration();
|
|
66
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
67
|
+
|
|
68
|
+
const { status, data } = await apiInstance.getReservationSettings();
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
This endpoint does not have any parameters.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
**ClubReservationSettingsResponse**
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: Not defined
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### HTTP response details
|
|
90
|
+
| Status code | Description | Response headers |
|
|
91
|
+
|-------------|-------------|------------------|
|
|
92
|
+
|**200** | Paramètres de réservation du club | - |
|
|
93
|
+
|
|
94
|
+
[[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)
|
|
95
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ClubWeeklySchedule
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**dimanche** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
9
|
+
**samedi** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
10
|
+
**vendredi** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
11
|
+
**jeudi** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
12
|
+
**mercredi** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
13
|
+
**mardi** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
|
|
14
|
+
**lundi** | [**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
|
+
dimanche,
|
|
23
|
+
samedi,
|
|
24
|
+
vendredi,
|
|
25
|
+
jeudi,
|
|
26
|
+
mercredi,
|
|
27
|
+
mardi,
|
|
28
|
+
lundi,
|
|
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
|
@@ -19,7 +19,9 @@ All URIs are relative to *http://localhost*
|
|
|
19
19
|
|[**restoreSubscriptionPriceForClub**](#restoresubscriptionpriceforclub) | **POST** /api/clubs/subscription-plans/{priceId}/restore-price | |
|
|
20
20
|
|[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
|
|
21
21
|
|[**updateClub**](#updateclub) | **PUT** /api/clubs | |
|
|
22
|
+
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PUT** /api/clubs/settings/general | |
|
|
22
23
|
|[**updateClubInfos**](#updateclubinfos) | **PUT** /api/clubs/infos | |
|
|
24
|
+
|[**updateClubPresentationSettings**](#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation | |
|
|
23
25
|
|[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | |
|
|
24
26
|
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | |
|
|
25
27
|
|
|
@@ -792,6 +794,57 @@ const { status, data } = await apiInstance.updateClub(
|
|
|
792
794
|
|
|
793
795
|
[[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)
|
|
794
796
|
|
|
797
|
+
# **updateClubGeneralSettings**
|
|
798
|
+
> ClubGeneralSettingsResponse updateClubGeneralSettings(updateClubGeneralSettingsRequest)
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
### Example
|
|
802
|
+
|
|
803
|
+
```typescript
|
|
804
|
+
import {
|
|
805
|
+
ClubsManagerApi,
|
|
806
|
+
Configuration,
|
|
807
|
+
UpdateClubGeneralSettingsRequest
|
|
808
|
+
} from '@tennac-booking/sdk';
|
|
809
|
+
|
|
810
|
+
const configuration = new Configuration();
|
|
811
|
+
const apiInstance = new ClubsManagerApi(configuration);
|
|
812
|
+
|
|
813
|
+
let updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest; //
|
|
814
|
+
|
|
815
|
+
const { status, data } = await apiInstance.updateClubGeneralSettings(
|
|
816
|
+
updateClubGeneralSettingsRequest
|
|
817
|
+
);
|
|
818
|
+
```
|
|
819
|
+
|
|
820
|
+
### Parameters
|
|
821
|
+
|
|
822
|
+
|Name | Type | Description | Notes|
|
|
823
|
+
|------------- | ------------- | ------------- | -------------|
|
|
824
|
+
| **updateClubGeneralSettingsRequest** | **UpdateClubGeneralSettingsRequest**| | |
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
### Return type
|
|
828
|
+
|
|
829
|
+
**ClubGeneralSettingsResponse**
|
|
830
|
+
|
|
831
|
+
### Authorization
|
|
832
|
+
|
|
833
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
834
|
+
|
|
835
|
+
### HTTP request headers
|
|
836
|
+
|
|
837
|
+
- **Content-Type**: application/json
|
|
838
|
+
- **Accept**: application/json
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
### HTTP response details
|
|
842
|
+
| Status code | Description | Response headers |
|
|
843
|
+
|-------------|-------------|------------------|
|
|
844
|
+
|**200** | Paramètres généraux mis à jour | - |
|
|
845
|
+
|
|
846
|
+
[[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)
|
|
847
|
+
|
|
795
848
|
# **updateClubInfos**
|
|
796
849
|
> any updateClubInfos(body)
|
|
797
850
|
|
|
@@ -842,6 +895,57 @@ const { status, data } = await apiInstance.updateClubInfos(
|
|
|
842
895
|
|
|
843
896
|
[[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)
|
|
844
897
|
|
|
898
|
+
# **updateClubPresentationSettings**
|
|
899
|
+
> ClubPresentationSettingsResponse updateClubPresentationSettings(updateClubPresentationSettingsRequest)
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
### Example
|
|
903
|
+
|
|
904
|
+
```typescript
|
|
905
|
+
import {
|
|
906
|
+
ClubsManagerApi,
|
|
907
|
+
Configuration,
|
|
908
|
+
UpdateClubPresentationSettingsRequest
|
|
909
|
+
} from '@tennac-booking/sdk';
|
|
910
|
+
|
|
911
|
+
const configuration = new Configuration();
|
|
912
|
+
const apiInstance = new ClubsManagerApi(configuration);
|
|
913
|
+
|
|
914
|
+
let updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest; //
|
|
915
|
+
|
|
916
|
+
const { status, data } = await apiInstance.updateClubPresentationSettings(
|
|
917
|
+
updateClubPresentationSettingsRequest
|
|
918
|
+
);
|
|
919
|
+
```
|
|
920
|
+
|
|
921
|
+
### Parameters
|
|
922
|
+
|
|
923
|
+
|Name | Type | Description | Notes|
|
|
924
|
+
|------------- | ------------- | ------------- | -------------|
|
|
925
|
+
| **updateClubPresentationSettingsRequest** | **UpdateClubPresentationSettingsRequest**| | |
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
### Return type
|
|
929
|
+
|
|
930
|
+
**ClubPresentationSettingsResponse**
|
|
931
|
+
|
|
932
|
+
### Authorization
|
|
933
|
+
|
|
934
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
935
|
+
|
|
936
|
+
### HTTP request headers
|
|
937
|
+
|
|
938
|
+
- **Content-Type**: application/json
|
|
939
|
+
- **Accept**: application/json
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
### HTTP response details
|
|
943
|
+
| Status code | Description | Response headers |
|
|
944
|
+
|-------------|-------------|------------------|
|
|
945
|
+
|**200** | Présentation mise à jour | - |
|
|
946
|
+
|
|
947
|
+
[[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)
|
|
948
|
+
|
|
845
949
|
# **updateCourt**
|
|
846
950
|
> any updateCourt(body)
|
|
847
951
|
|