@tennac-booking/sdk 1.0.309 → 1.0.311
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 +3 -0
- package/README.md +4 -2
- package/api.ts +178 -8
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +122 -7
- package/dist/api.js +117 -7
- 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 +122 -7
- package/dist/esm/api.js +108 -2
- 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/ClubReservationSettingsResponse.md +2 -0
- package/docs/CreateSubscriptionPlanRequest.md +2 -2
- package/docs/InvoiceStatus.md +2 -0
- package/docs/ManagerConsoleInvoicePlayerSummary.md +2 -0
- package/docs/ManagerConsoleInvoiceUserSummary.md +2 -0
- package/docs/PublicSubscriptionPlanResponse.md +2 -2
- package/docs/SubscriptionPlanResponse.md +2 -2
- package/docs/TermsAndConditionsPublicApi.md +61 -0
- package/docs/TermsAndConditionsResponse.md +5 -2
- package/docs/TermsAudience.md +10 -0
- package/docs/UpdateClubReservationSettingsRequest.md +2 -0
- package/docs/UpdateSubscriptionPlanRequest.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**maxWeeklyBookings** | **number** | | [default to undefined]
|
|
9
9
|
**maxSlotsPerBooking** | **number** | | [default to undefined]
|
|
10
10
|
**cancellationDelayInHours** | **number** | | [default to undefined]
|
|
11
|
+
**eventCancellationDelayInHours** | **number** | | [default to undefined]
|
|
11
12
|
**bookingPeriodInDays** | **number** | | [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -19,6 +20,7 @@ const instance: ClubReservationSettingsResponse = {
|
|
|
19
20
|
maxWeeklyBookings,
|
|
20
21
|
maxSlotsPerBooking,
|
|
21
22
|
cancellationDelayInHours,
|
|
23
|
+
eventCancellationDelayInHours,
|
|
22
24
|
bookingPeriodInDays,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**prices** | [**Array<PlanPriceInput>**](PlanPriceInput.md) | | [default to undefined]
|
|
12
12
|
**currency** | **string** | | [default to undefined]
|
|
13
13
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
|
|
14
|
-
**
|
|
14
|
+
**commitmentInDays** | **number** | | [optional] [default to undefined]
|
|
15
15
|
**discount** | [**CreateSubscriptionPlanRequestDiscount**](CreateSubscriptionPlanRequestDiscount.md) | | [optional] [default to undefined]
|
|
16
16
|
|
|
17
17
|
## Example
|
|
@@ -26,7 +26,7 @@ const instance: CreateSubscriptionPlanRequest = {
|
|
|
26
26
|
prices,
|
|
27
27
|
currency,
|
|
28
28
|
interval,
|
|
29
|
-
|
|
29
|
+
commitmentInDays,
|
|
30
30
|
discount,
|
|
31
31
|
};
|
|
32
32
|
```
|
package/docs/InvoiceStatus.md
CHANGED
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**lastName** | **string** | | [default to undefined]
|
|
11
11
|
**email** | **string** | | [default to undefined]
|
|
12
12
|
**reducedAmount** | **number** | | [default to undefined]
|
|
13
|
+
**subscriptionNames** | **Array<string>** | | [optional] [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const instance: ManagerConsoleInvoicePlayerSummary = {
|
|
|
22
23
|
lastName,
|
|
23
24
|
email,
|
|
24
25
|
reducedAmount,
|
|
26
|
+
subscriptionNames,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
27
29
|
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**lastName** | **string** | | [default to undefined]
|
|
11
11
|
**email** | **string** | | [default to undefined]
|
|
12
12
|
**profilePictureUrl** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**subscriptionNames** | **Array<string>** | | [optional] [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const instance: ManagerConsoleInvoiceUserSummary = {
|
|
|
22
23
|
lastName,
|
|
23
24
|
email,
|
|
24
25
|
profilePictureUrl,
|
|
26
|
+
subscriptionNames,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
27
29
|
|
|
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
15
15
|
**description** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
17
|
-
**
|
|
17
|
+
**commitmentInDays** | **number** | | [optional] [default to undefined]
|
|
18
18
|
**isUserSubscribed** | **boolean** | | [optional] [default to undefined]
|
|
19
19
|
**userSubscriptionId** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**userSubscriptionStatus** | **string** | | [optional] [default to undefined]
|
|
@@ -34,7 +34,7 @@ const instance: PublicSubscriptionPlanResponse = {
|
|
|
34
34
|
interval,
|
|
35
35
|
description,
|
|
36
36
|
discount,
|
|
37
|
-
|
|
37
|
+
commitmentInDays,
|
|
38
38
|
isUserSubscribed,
|
|
39
39
|
userSubscriptionId,
|
|
40
40
|
userSubscriptionStatus,
|
|
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
|
|
|
18
18
|
**priceActive** | **boolean** | | [default to undefined]
|
|
19
19
|
**description** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
21
|
-
**
|
|
21
|
+
**commitmentInDays** | **number** | | [optional] [default to undefined]
|
|
22
22
|
|
|
23
23
|
## Example
|
|
24
24
|
|
|
@@ -39,7 +39,7 @@ const instance: SubscriptionPlanResponse = {
|
|
|
39
39
|
priceActive,
|
|
40
40
|
description,
|
|
41
41
|
discount,
|
|
42
|
-
|
|
42
|
+
commitmentInDays,
|
|
43
43
|
};
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# TermsAndConditionsPublicApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getLatestTerms**](#getlatestterms) | **GET** /api/terms-and-conditions/latest | |
|
|
8
|
+
|
|
9
|
+
# **getLatestTerms**
|
|
10
|
+
> TermsAndConditionsResponse getLatestTerms()
|
|
11
|
+
|
|
12
|
+
Récupère la dernière version active des CGU en français
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
TermsAndConditionsPublicApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new TermsAndConditionsPublicApi(configuration);
|
|
24
|
+
|
|
25
|
+
let audience: TermsAudience; //Type de CGU à récupérer: \"user\" pour les utilisateurs finaux, \"manager\" pour les gestionnaires de clubs (optional) (default to undefined)
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.getLatestTerms(
|
|
28
|
+
audience
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **audience** | **TermsAudience** | Type de CGU à récupérer: \"user\" pour les utilisateurs finaux, \"manager\" pour les gestionnaires de clubs | (optional) defaults to undefined|
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**TermsAndConditionsResponse**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
No authorization required
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: Not defined
|
|
50
|
+
- **Accept**: application/json
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### HTTP response details
|
|
54
|
+
| Status code | Description | Response headers |
|
|
55
|
+
|-------------|-------------|------------------|
|
|
56
|
+
|**200** | Dernière version des CGU | - |
|
|
57
|
+
|**404** | Aucune CGU trouvée | - |
|
|
58
|
+
|**500** | Server Error | - |
|
|
59
|
+
|
|
60
|
+
[[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)
|
|
61
|
+
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# TermsAndConditionsResponse
|
|
2
2
|
|
|
3
|
-
CGU (Terms and Conditions)
|
|
4
3
|
|
|
5
4
|
## Properties
|
|
6
5
|
|
|
@@ -9,9 +8,11 @@ Name | Type | Description | Notes
|
|
|
9
8
|
**id** | **string** | ID de la version | [default to undefined]
|
|
10
9
|
**version** | **string** | Numéro de version (ex: \"1.0\", \"2.0\") | [default to undefined]
|
|
11
10
|
**content** | **string** | Contenu des CGU (markdown ou HTML) | [default to undefined]
|
|
12
|
-
**effectiveDate** | **string** | Date d\'effet de cette version | [default to undefined]
|
|
11
|
+
**effectiveDate** | **string** | Date d\'effet de cette version | [optional] [default to undefined]
|
|
13
12
|
**summary** | **string** | Résumé des changements (optionnel) | [optional] [default to undefined]
|
|
13
|
+
**audience** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**language** | **string** | Code de la langue | [default to undefined]
|
|
15
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -24,7 +25,9 @@ const instance: TermsAndConditionsResponse = {
|
|
|
24
25
|
content,
|
|
25
26
|
effectiveDate,
|
|
26
27
|
summary,
|
|
28
|
+
audience,
|
|
27
29
|
language,
|
|
30
|
+
createdAt,
|
|
28
31
|
};
|
|
29
32
|
```
|
|
30
33
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# TermsAudience
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `User` (value: `'user'`)
|
|
7
|
+
|
|
8
|
+
* `Manager` (value: `'manager'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**unlimitedWeeklyBookings** | **boolean** | | [default to undefined]
|
|
10
10
|
**maxSlotsPerBooking** | **number** | | [default to undefined]
|
|
11
11
|
**cancellationDelayInHours** | **number** | | [default to undefined]
|
|
12
|
+
**eventCancellationDelayInHours** | **number** | | [optional] [default to undefined]
|
|
12
13
|
**bookingPeriodInDays** | **number** | | [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const instance: UpdateClubReservationSettingsRequest = {
|
|
|
21
22
|
unlimitedWeeklyBookings,
|
|
22
23
|
maxSlotsPerBooking,
|
|
23
24
|
cancellationDelayInHours,
|
|
25
|
+
eventCancellationDelayInHours,
|
|
24
26
|
bookingPeriodInDays,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**currency** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
14
|
-
**
|
|
14
|
+
**commitmentInDays** | **number** | | [optional] [default to undefined]
|
|
15
15
|
**discount** | [**SubscriptionPlanDiscountUpdateRequest**](SubscriptionPlanDiscountUpdateRequest.md) | | [optional] [default to undefined]
|
|
16
16
|
**newAmountInCents** | **number** | | [optional] [default to undefined]
|
|
17
17
|
|
|
@@ -27,7 +27,7 @@ const instance: UpdateSubscriptionPlanRequest = {
|
|
|
27
27
|
description,
|
|
28
28
|
currency,
|
|
29
29
|
interval,
|
|
30
|
-
|
|
30
|
+
commitmentInDays,
|
|
31
31
|
discount,
|
|
32
32
|
newAmountInCents,
|
|
33
33
|
};
|
package/index.ts
CHANGED