@tennac-booking/sdk 1.0.128 → 1.0.130
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 +10 -0
- package/README.md +12 -0
- package/api.ts +427 -0
- package/dist/api.d.ts +341 -0
- package/dist/api.js +138 -4
- package/dist/esm/api.d.ts +341 -0
- package/dist/esm/api.js +134 -0
- package/docs/ClubAccessSettingsResponse.md +26 -0
- package/docs/ClubSettingsManagerApi.md +52 -0
- package/docs/ClubSettingsStaffApi.md +44 -0
- package/docs/HotelAccessSettings.md +26 -0
- package/docs/PartialHotelAccessSettings.md +27 -0
- package/docs/PartialPaymentRequirementsSettings.md +23 -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/UpdateClubAccessSettingsRequest.md +26 -0
- package/package.json +1 -1
|
@@ -4,11 +4,63 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**updateAccessSettings**](#updateaccesssettings) | **PATCH** /api/club-settings/access | |
|
|
7
8
|
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PATCH** /api/club-settings/settings/general | |
|
|
8
9
|
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
9
10
|
|[**updatePresentationSettings**](#updatepresentationsettings) | **PATCH** /api/club-settings/presentation | |
|
|
10
11
|
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
11
12
|
|
|
13
|
+
# **updateAccessSettings**
|
|
14
|
+
> ClubAccessSettingsResponse updateAccessSettings(updateClubAccessSettingsRequest)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ClubSettingsManagerApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
UpdateClubAccessSettingsRequest
|
|
24
|
+
} from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
28
|
+
|
|
29
|
+
let updateClubAccessSettingsRequest: UpdateClubAccessSettingsRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.updateAccessSettings(
|
|
32
|
+
updateClubAccessSettingsRequest
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **updateClubAccessSettingsRequest** | **UpdateClubAccessSettingsRequest**| | |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**ClubAccessSettingsResponse**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Paramètres d\'accès mis à jour | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
12
64
|
# **updateClubGeneralSettings**
|
|
13
65
|
> ClubGeneralSettingsResponse updateClubGeneralSettings(updateClubGeneralSettingsRequest)
|
|
14
66
|
|
|
@@ -4,11 +4,55 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getAccessSettings**](#getaccesssettings) | **GET** /api/club-settings/access | |
|
|
7
8
|
|[**getClubGeneralSettings**](#getclubgeneralsettings) | **GET** /api/club-settings/settings/general | |
|
|
8
9
|
|[**getHoursSettings**](#gethourssettings) | **GET** /api/club-settings/hours | |
|
|
9
10
|
|[**getPresentationSettings**](#getpresentationsettings) | **GET** /api/club-settings/presentation | |
|
|
10
11
|
|[**getReservationSettings**](#getreservationsettings) | **GET** /api/club-settings/reservation | |
|
|
11
12
|
|
|
13
|
+
# **getAccessSettings**
|
|
14
|
+
> ClubAccessSettingsResponse getAccessSettings()
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ClubSettingsStaffApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.getAccessSettings();
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
This endpoint does not have any parameters.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Return type
|
|
36
|
+
|
|
37
|
+
**ClubAccessSettingsResponse**
|
|
38
|
+
|
|
39
|
+
### Authorization
|
|
40
|
+
|
|
41
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
42
|
+
|
|
43
|
+
### HTTP request headers
|
|
44
|
+
|
|
45
|
+
- **Content-Type**: Not defined
|
|
46
|
+
- **Accept**: application/json
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### HTTP response details
|
|
50
|
+
| Status code | Description | Response headers |
|
|
51
|
+
|-------------|-------------|------------------|
|
|
52
|
+
|**200** | Paramètres d\'accès du club | - |
|
|
53
|
+
|
|
54
|
+
[[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)
|
|
55
|
+
|
|
12
56
|
# **getClubGeneralSettings**
|
|
13
57
|
> ClubGeneralSettingsResponse getClubGeneralSettings()
|
|
14
58
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# HotelAccessSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | | [default to undefined]
|
|
9
|
+
**accessCode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**validFrom** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**validUntil** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { HotelAccessSettings } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: HotelAccessSettings = {
|
|
19
|
+
enabled,
|
|
20
|
+
accessCode,
|
|
21
|
+
validFrom,
|
|
22
|
+
validUntil,
|
|
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,27 @@
|
|
|
1
|
+
# PartialHotelAccessSettings
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**accessCode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**validFrom** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**validUntil** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PartialHotelAccessSettings } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: PartialHotelAccessSettings = {
|
|
20
|
+
accessCode,
|
|
21
|
+
validFrom,
|
|
22
|
+
validUntil,
|
|
23
|
+
enabled,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[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
|
+
# PartialPaymentRequirementsSettings
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**isNoShowEnabled** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
**requireOnlinePayment** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PartialPaymentRequirementsSettings } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: PartialPaymentRequirementsSettings = {
|
|
18
|
+
isNoShowEnabled,
|
|
19
|
+
requireOnlinePayment,
|
|
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
|
+
# PartialPublicAccessSettings
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**paymentMode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**pricePerAccess** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PartialPublicAccessSettings } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: PartialPublicAccessSettings = {
|
|
19
|
+
paymentMode,
|
|
20
|
+
pricePerAccess,
|
|
21
|
+
enabled,
|
|
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,25 @@
|
|
|
1
|
+
# PartialSchoolAccessSettings
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**emailSuffixes** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
**requireCertification** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PartialSchoolAccessSettings } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: PartialSchoolAccessSettings = {
|
|
19
|
+
emailSuffixes,
|
|
20
|
+
requireCertification,
|
|
21
|
+
enabled,
|
|
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,22 @@
|
|
|
1
|
+
# PaymentRequirementsSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**isNoShowEnabled** | **boolean** | | [default to undefined]
|
|
9
|
+
**requireOnlinePayment** | **boolean** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PaymentRequirementsSettings } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: PaymentRequirementsSettings = {
|
|
17
|
+
isNoShowEnabled,
|
|
18
|
+
requireOnlinePayment,
|
|
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,24 @@
|
|
|
1
|
+
# PublicAccessSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | | [default to undefined]
|
|
9
|
+
**paymentMode** | **string** | | [default to undefined]
|
|
10
|
+
**pricePerAccess** | **number** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PublicAccessSettings } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: PublicAccessSettings = {
|
|
18
|
+
enabled,
|
|
19
|
+
paymentMode,
|
|
20
|
+
pricePerAccess,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SchoolAccessSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | | [default to undefined]
|
|
9
|
+
**emailSuffixes** | **Array<string>** | | [default to undefined]
|
|
10
|
+
**requireCertification** | **boolean** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SchoolAccessSettings } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: SchoolAccessSettings = {
|
|
18
|
+
enabled,
|
|
19
|
+
emailSuffixes,
|
|
20
|
+
requireCertification,
|
|
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,26 @@
|
|
|
1
|
+
# UpdateClubAccessSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**publicAccess** | [**PartialPublicAccessSettings**](PartialPublicAccessSettings.md) | | [optional] [default to undefined]
|
|
9
|
+
**schoolAccess** | [**PartialSchoolAccessSettings**](PartialSchoolAccessSettings.md) | | [optional] [default to undefined]
|
|
10
|
+
**hotelAccess** | [**PartialHotelAccessSettings**](PartialHotelAccessSettings.md) | | [optional] [default to undefined]
|
|
11
|
+
**paymentRequirements** | [**PartialPaymentRequirementsSettings**](PartialPaymentRequirementsSettings.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UpdateClubAccessSettingsRequest } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: UpdateClubAccessSettingsRequest = {
|
|
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)
|