@tennac-booking/sdk 1.0.129 → 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.
Files changed (77) hide show
  1. package/.openapi-generator/FILES +344 -346
  2. package/README.md +23 -24
  3. package/api.ts +857 -1035
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +686 -858
  8. package/dist/api.js +289 -315
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +686 -858
  16. package/dist/esm/api.js +285 -311
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingsStaffApi.md +10 -10
  28. package/docs/{EventBookingResponsePlayersInnerInvoiceStatus.md → CheckInPlayerRequest.md} +5 -3
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubAccessSettingsResponse.md +26 -0
  31. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  32. package/docs/ClubSettingsManagerApi.md +52 -0
  33. package/docs/ClubSettingsStaffApi.md +44 -0
  34. package/docs/ClubsStaffApi.md +47 -0
  35. package/docs/CreatePlan201Response.md +2 -0
  36. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  37. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  38. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  39. package/docs/EventsApi.md +1 -4
  40. package/docs/EventsManagerApi.md +0 -110
  41. package/docs/{EventBookingResponseSetupStatus.md → GetClubType200Response.md} +5 -3
  42. package/docs/HotelAccessSettings.md +26 -0
  43. package/docs/MonthlyTurnoverResponse.md +0 -1
  44. package/docs/OffPeakRule.md +2 -0
  45. package/docs/PartialHotelAccessSettings.md +27 -0
  46. package/docs/PartialPaymentRequirementsSettings.md +23 -0
  47. package/docs/PartialPublicAccessSettings.md +25 -0
  48. package/docs/PartialSchoolAccessSettings.md +25 -0
  49. package/docs/PaymentRequirementsSettings.md +22 -0
  50. package/docs/PlanPrice.md +26 -0
  51. package/docs/{CheckInPlayersRequest.md → PlanPriceInput.md} +7 -5
  52. package/docs/PublicAccessSettings.md +24 -0
  53. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  54. package/docs/PublishEventResponse.md +0 -4
  55. package/docs/SchoolAccessSettings.md +24 -0
  56. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  57. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  58. package/docs/SubscriptionPlanResponse.md +7 -1
  59. package/docs/SubscriptionsManagerApi.md +55 -1
  60. package/docs/UpdateClubAccessSettingsRequest.md +26 -0
  61. package/docs/UsersApi.md +0 -54
  62. package/index.ts +1 -1
  63. package/package.json +1 -1
  64. package/docs/EventBookingDetailSummary.md +0 -40
  65. package/docs/EventBookingResponse.md +0 -36
  66. package/docs/EventBookingResponsePlayersInner.md +0 -28
  67. package/docs/EventBookingStatus.md +0 -16
  68. package/docs/InvoiceStatusSETUPPENDING.md +0 -8
  69. package/docs/InvoiceStatusSETUPSUCCESS.md +0 -8
  70. package/docs/ParticipationType.md +0 -10
  71. package/docs/RecurringDefinitionResponse.md +0 -34
  72. package/docs/UpdateRecurringDefinition200Response.md +0 -20
  73. package/docs/UpdateRecurringDefinitionRequest.md +0 -56
  74. package/docs/UserEventParticipation.md +0 -22
  75. package/docs/UserEventSummary.md +0 -44
  76. package/docs/UserEventsResponse.md +0 -28
  77. package/docs/VisibilityType.md +0 -12
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.129
5
+ * The version of the OpenAPI document: 1.0.121
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.129
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.129
5
+ * The version of the OpenAPI document: 1.0.121
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.129
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.129
5
+ * The version of the OpenAPI document: 1.0.121
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.129
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.129
5
+ * The version of the OpenAPI document: 1.0.121
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.129
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.129
5
+ * The version of the OpenAPI document: 1.0.121
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.129
8
+ * The version of the OpenAPI document: 1.0.121
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**checkInPlayers**](#checkinplayers) | **POST** /api/bookings/{bookingId}/check-in | |
7
+ |[**checkInPlayer**](#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in | |
8
8
  |[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
9
9
  |[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
10
10
  |[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
@@ -13,10 +13,10 @@ All URIs are relative to *http://localhost*
13
13
  |[**getWeeklyBookings**](#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} | |
14
14
  |[**listClubBookings**](#listclubbookings) | **GET** /api/bookings/staff | |
15
15
 
16
- # **checkInPlayers**
17
- > CheckInPlayersResponse checkInPlayers(checkInPlayersRequest)
16
+ # **checkInPlayer**
17
+ > CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
18
18
 
19
- Check-in des joueurs only for club with payment features
19
+ Check-in d\'un joueur (paiement en ligne ou sur place)
20
20
 
21
21
  ### Example
22
22
 
@@ -24,18 +24,18 @@ Check-in des joueurs only for club with payment features
24
24
  import {
25
25
  BookingsStaffApi,
26
26
  Configuration,
27
- CheckInPlayersRequest
27
+ CheckInPlayerRequest
28
28
  } from '@tennac-booking/sdk';
29
29
 
30
30
  const configuration = new Configuration();
31
31
  const apiInstance = new BookingsStaffApi(configuration);
32
32
 
33
33
  let bookingId: string; // (default to undefined)
34
- let checkInPlayersRequest: CheckInPlayersRequest; //
34
+ let checkInPlayerRequest: CheckInPlayerRequest; //
35
35
 
36
- const { status, data } = await apiInstance.checkInPlayers(
36
+ const { status, data } = await apiInstance.checkInPlayer(
37
37
  bookingId,
38
- checkInPlayersRequest
38
+ checkInPlayerRequest
39
39
  );
40
40
  ```
41
41
 
@@ -43,13 +43,13 @@ const { status, data } = await apiInstance.checkInPlayers(
43
43
 
44
44
  |Name | Type | Description | Notes|
45
45
  |------------- | ------------- | ------------- | -------------|
46
- | **checkInPlayersRequest** | **CheckInPlayersRequest**| | |
46
+ | **checkInPlayerRequest** | **CheckInPlayerRequest**| | |
47
47
  | **bookingId** | [**string**] | | defaults to undefined|
48
48
 
49
49
 
50
50
  ### Return type
51
51
 
52
- **CheckInPlayersResponse**
52
+ **CheckInPlayerResponse**
53
53
 
54
54
  ### Authorization
55
55
 
@@ -1,17 +1,19 @@
1
- # EventBookingResponsePlayersInnerInvoiceStatus
1
+ # CheckInPlayerRequest
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | ID du joueur qui a payé/est arrivé | [default to undefined]
8
9
 
9
10
  ## Example
10
11
 
11
12
  ```typescript
12
- import { EventBookingResponsePlayersInnerInvoiceStatus } from '@tennac-booking/sdk';
13
+ import { CheckInPlayerRequest } from '@tennac-booking/sdk';
13
14
 
14
- const instance: EventBookingResponsePlayersInnerInvoiceStatus = {
15
+ const instance: CheckInPlayerRequest = {
16
+ playerId,
15
17
  };
16
18
  ```
17
19
 
@@ -1,4 +1,4 @@
1
- # CheckInPlayersResponse
1
+ # CheckInPlayerResponse
2
2
 
3
3
 
4
4
  ## Properties
@@ -6,16 +6,16 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **message** | **string** | Message de confirmation | [default to undefined]
9
- **invoices** | [**Array<CheckedInPlayer>**](CheckedInPlayer.md) | Joueurs ayant effectué le check-in | [default to undefined]
9
+ **invoice** | [**CheckedInPlayer**](CheckedInPlayer.md) | | [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { CheckInPlayersResponse } from '@tennac-booking/sdk';
14
+ import { CheckInPlayerResponse } from '@tennac-booking/sdk';
15
15
 
16
- const instance: CheckInPlayersResponse = {
16
+ const instance: CheckInPlayerResponse = {
17
17
  message,
18
- invoices,
18
+ invoice,
19
19
  };
20
20
  ```
21
21
 
@@ -0,0 +1,26 @@
1
+ # ClubAccessSettingsResponse
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 { ClubAccessSettingsResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: ClubAccessSettingsResponse = {
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)
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | ID du plan d\'abonnement | [default to undefined]
9
9
  **name** | **string** | Nom du plan | [default to undefined]
10
- **amountInCents** | **number** | Montant en centimes | [default to undefined]
10
+ **prices** | [**Array<PlanPrice>**](PlanPrice.md) | Tarifications disponibles | [default to undefined]
11
11
  **currency** | **string** | Devise | [default to undefined]
12
- **interval** | **string** | Intervalle de facturation | [default to undefined]
12
+ **interval** | **string** | Intervalle par défaut | [default to undefined]
13
13
 
14
14
  ## Example
15
15
 
@@ -19,7 +19,7 @@ import { ClubPlayerSubscriptionSummary } from '@tennac-booking/sdk';
19
19
  const instance: ClubPlayerSubscriptionSummary = {
20
20
  id,
21
21
  name,
22
- amountInCents,
22
+ prices,
23
23
  currency,
24
24
  interval,
25
25
  };
@@ -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
 
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost*
10
10
  |[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
11
11
  |[**getClubPresentationSettings**](#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation | |
12
12
  |[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
13
+ |[**getClubType**](#getclubtype) | **GET** /api/clubs/clubType | |
13
14
  |[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
14
15
  |[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
15
16
  |[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
@@ -292,6 +293,52 @@ This endpoint does not have any parameters.
292
293
 
293
294
  [[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)
294
295
 
296
+ # **getClubType**
297
+ > GetClubType200Response getClubType()
298
+
299
+
300
+ ### Example
301
+
302
+ ```typescript
303
+ import {
304
+ ClubsStaffApi,
305
+ Configuration
306
+ } from '@tennac-booking/sdk';
307
+
308
+ const configuration = new Configuration();
309
+ const apiInstance = new ClubsStaffApi(configuration);
310
+
311
+ const { status, data } = await apiInstance.getClubType();
312
+ ```
313
+
314
+ ### Parameters
315
+ This endpoint does not have any parameters.
316
+
317
+
318
+ ### Return type
319
+
320
+ **GetClubType200Response**
321
+
322
+ ### Authorization
323
+
324
+ [bearerAuth](../README.md#bearerAuth)
325
+
326
+ ### HTTP request headers
327
+
328
+ - **Content-Type**: Not defined
329
+ - **Accept**: application/json
330
+
331
+
332
+ ### HTTP response details
333
+ | Status code | Description | Response headers |
334
+ |-------------|-------------|------------------|
335
+ |**200** | Type de club | - |
336
+ |**400** | Bad Request | - |
337
+ |**404** | Club non trouvé | - |
338
+ |**500** | Server Error | - |
339
+
340
+ [[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)
341
+
295
342
  # **getCourtsByClub**
296
343
  > Array<CourtResponse> getCourtsByClub()
297
344
 
@@ -5,6 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
+ **priceIds** | **Array&lt;string&gt;** | | [default to undefined]
8
9
  **priceId** | **string** | | [default to undefined]
9
10
  **productId** | **string** | | [default to undefined]
10
11
 
@@ -14,6 +15,7 @@ Name | Type | Description | Notes
14
15
  import { CreatePlan201Response } from '@tennac-booking/sdk';
15
16
 
16
17
  const instance: CreatePlan201Response = {
18
+ priceIds,
17
19
  priceId,
18
20
  productId,
19
21
  };
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **clubId** | **string** | | [optional] [default to undefined]
9
9
  **name** | **string** | | [default to undefined]
10
10
  **description** | **string** | | [optional] [default to undefined]
11
- **amountInCents** | **number** | | [default to undefined]
11
+ **prices** | [**Array&lt;PlanPriceInput&gt;**](PlanPriceInput.md) | | [default to undefined]
12
12
  **currency** | **string** | | [default to undefined]
13
13
  **interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
14
14
  **discount** | [**CreateSubscriptionPlanRequestDiscount**](CreateSubscriptionPlanRequestDiscount.md) | | [optional] [default to undefined]
@@ -22,7 +22,7 @@ const instance: CreateSubscriptionPlanRequest = {
22
22
  clubId,
23
23
  name,
24
24
  description,
25
- amountInCents,
25
+ prices,
26
26
  currency,
27
27
  interval,
28
28
  discount,
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **bookingFree** | **boolean** | | [optional] [default to undefined]
9
9
  **offPeakRules** | [**Array&lt;OffPeakRule&gt;**](OffPeakRule.md) | | [optional] [default to undefined]
10
+ **offPeakRuleNames** | **Array&lt;string&gt;** | Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\&#39;ouverture du club. | [optional] [default to undefined]
10
11
  **validTo** | **string** | | [optional] [default to undefined]
11
12
  **validFrom** | **string** | | [optional] [default to undefined]
12
13
  **maxDiscountAmountInCents** | **number** | | [optional] [default to undefined]
@@ -21,6 +22,7 @@ import { CreateSubscriptionPlanRequestDiscount } from '@tennac-booking/sdk';
21
22
  const instance: CreateSubscriptionPlanRequestDiscount = {
22
23
  bookingFree,
23
24
  offPeakRules,
25
+ offPeakRuleNames,
24
26
  validTo,
25
27
  validFrom,
26
28
  maxDiscountAmountInCents,
@@ -6,6 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **message** | **string** | | [default to undefined]
9
+ **archivedInstead** | **boolean** | | [optional] [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
@@ -14,6 +15,7 @@ import { DeleteSubscriptionPlanResponse } from '@tennac-booking/sdk';
14
15
 
15
16
  const instance: DeleteSubscriptionPlanResponse = {
16
17
  message,
18
+ archivedInstead,
17
19
  };
18
20
  ```
19
21
 
package/docs/EventsApi.md CHANGED
@@ -141,11 +141,9 @@ const configuration = new Configuration();
141
141
  const apiInstance = new EventsApi(configuration);
142
142
 
143
143
  let eventId: string; // (default to undefined)
144
- let userId: string; // (optional) (default to undefined)
145
144
 
146
145
  const { status, data } = await apiInstance.getEventById(
147
- eventId,
148
- userId
146
+ eventId
149
147
  );
150
148
  ```
151
149
 
@@ -154,7 +152,6 @@ const { status, data } = await apiInstance.getEventById(
154
152
  |Name | Type | Description | Notes|
155
153
  |------------- | ------------- | ------------- | -------------|
156
154
  | **eventId** | [**string**] | | defaults to undefined|
157
- | **userId** | [**string**] | | (optional) defaults to undefined|
158
155
 
159
156
 
160
157
  ### Return type
@@ -7,12 +7,10 @@ All URIs are relative to *http://localhost*
7
7
  |[**checkEventConflicts**](#checkeventconflicts) | **POST** /api/events/manager/checkConflicts | |
8
8
  |[**createEvent**](#createevent) | **POST** /api/events/manager/createEvent | |
9
9
  |[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | |
10
- |[**getExpiringRecurringDefinitions**](#getexpiringrecurringdefinitions) | **GET** /api/events/manager/recurring/expiring | |
11
10
  |[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | |
12
11
  |[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | |
13
12
  |[**updateEvent**](#updateevent) | **PUT** /api/events/manager/updateEvent/{eventId} | |
14
13
  |[**updatePublishedEvent**](#updatepublishedevent) | **PUT** /api/events/manager/updatePublishedEvent/{eventId} | |
15
- |[**updateRecurringDefinition**](#updaterecurringdefinition) | **PUT** /api/events/manager/recurring/{definitionId} | |
16
14
 
17
15
  # **checkEventConflicts**
18
16
  > EventConflictCheckResponse checkEventConflicts(eventConflictCheckRequest)
@@ -177,57 +175,6 @@ const { status, data } = await apiInstance.deleteEvent(
177
175
 
178
176
  [[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)
179
177
 
180
- # **getExpiringRecurringDefinitions**
181
- > Array<RecurringDefinitionResponse> getExpiringRecurringDefinitions()
182
-
183
- List recurring definitions about to expire within `days` (manager)
184
-
185
- ### Example
186
-
187
- ```typescript
188
- import {
189
- EventsManagerApi,
190
- Configuration
191
- } from '@tennac-booking/sdk';
192
-
193
- const configuration = new Configuration();
194
- const apiInstance = new EventsManagerApi(configuration);
195
-
196
- let days: number; // (optional) (default to undefined)
197
-
198
- const { status, data } = await apiInstance.getExpiringRecurringDefinitions(
199
- days
200
- );
201
- ```
202
-
203
- ### Parameters
204
-
205
- |Name | Type | Description | Notes|
206
- |------------- | ------------- | ------------- | -------------|
207
- | **days** | [**number**] | | (optional) defaults to undefined|
208
-
209
-
210
- ### Return type
211
-
212
- **Array<RecurringDefinitionResponse>**
213
-
214
- ### Authorization
215
-
216
- [bearerAuth](../README.md#bearerAuth)
217
-
218
- ### HTTP request headers
219
-
220
- - **Content-Type**: Not defined
221
- - **Accept**: application/json
222
-
223
-
224
- ### HTTP response details
225
- | Status code | Description | Response headers |
226
- |-------------|-------------|------------------|
227
- |**200** | List of expiring recurring definitions | - |
228
-
229
- [[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)
230
-
231
178
  # **publishEvent**
232
179
  > PublishEventResponse publishEvent()
233
180
 
@@ -449,60 +396,3 @@ const { status, data } = await apiInstance.updatePublishedEvent(
449
396
 
450
397
  [[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)
451
398
 
452
- # **updateRecurringDefinition**
453
- > UpdateRecurringDefinition200Response updateRecurringDefinition(updateRecurringDefinitionRequest)
454
-
455
- Update a recurring event definition (manager) and propagate changes to generated Events
456
-
457
- ### Example
458
-
459
- ```typescript
460
- import {
461
- EventsManagerApi,
462
- Configuration,
463
- UpdateRecurringDefinitionRequest
464
- } from '@tennac-booking/sdk';
465
-
466
- const configuration = new Configuration();
467
- const apiInstance = new EventsManagerApi(configuration);
468
-
469
- let definitionId: string; // (default to undefined)
470
- let updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest; //
471
-
472
- const { status, data } = await apiInstance.updateRecurringDefinition(
473
- definitionId,
474
- updateRecurringDefinitionRequest
475
- );
476
- ```
477
-
478
- ### Parameters
479
-
480
- |Name | Type | Description | Notes|
481
- |------------- | ------------- | ------------- | -------------|
482
- | **updateRecurringDefinitionRequest** | **UpdateRecurringDefinitionRequest**| | |
483
- | **definitionId** | [**string**] | | defaults to undefined|
484
-
485
-
486
- ### Return type
487
-
488
- **UpdateRecurringDefinition200Response**
489
-
490
- ### Authorization
491
-
492
- [bearerAuth](../README.md#bearerAuth)
493
-
494
- ### HTTP request headers
495
-
496
- - **Content-Type**: application/json
497
- - **Accept**: application/json
498
-
499
-
500
- ### HTTP response details
501
- | Status code | Description | Response headers |
502
- |-------------|-------------|------------------|
503
- |**200** | Recurring definition updated | - |
504
- |**400** | Bad Request | - |
505
- |**404** | Not Found | - |
506
-
507
- [[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)
508
-