@tennac-booking/sdk 1.0.87 → 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.
Files changed (102) hide show
  1. package/.openapi-generator/FILES +247 -256
  2. package/README.md +30 -47
  3. package/api.ts +1722 -2568
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1406 -1986
  8. package/dist/api.js +481 -876
  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 +1406 -1986
  16. package/dist/esm/api.js +472 -871
  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/{ConfirmPaymentMethodRequestBody.md → AddCreditsToCustomer200Response.md} +5 -5
  28. package/docs/AddCreditsToCustomerRequest.md +22 -0
  29. package/docs/BookingClubInfo.md +28 -0
  30. package/docs/BookingCourtInfo.md +22 -0
  31. package/docs/BookingInfo.md +2 -2
  32. package/docs/BookingPaymentStatus.md +24 -0
  33. package/docs/BookingPlayerPaymentSummary.md +34 -0
  34. package/docs/BookingPopulated.md +3 -3
  35. package/docs/BookingPriceBody.md +22 -0
  36. package/docs/BookingPriceResponse.md +22 -0
  37. package/docs/BookingResponse.md +2 -0
  38. package/docs/BookingSlotInfo.md +30 -0
  39. package/docs/{ClubDaySchedule.md → BookingSportInfo.md} +7 -7
  40. package/docs/BookingSummary.md +54 -2
  41. package/docs/BookingsApi.md +55 -0
  42. package/docs/ClubAnalyticsStaffApi.md +0 -173
  43. package/docs/ClubResponse.md +8 -0
  44. package/docs/ClubSettingsManagerApi.md +55 -54
  45. package/docs/ClubSettingsResponse.md +39 -0
  46. package/docs/ClubsApi.md +1 -1
  47. package/docs/ClubsManagerApi.md +58 -52
  48. package/docs/ClubsStaffApi.md +0 -44
  49. package/docs/CreateBookingRequest.md +4 -2
  50. package/docs/CreateClubSettingsRequest.md +34 -0
  51. package/docs/CreateEventRequest.md +1 -3
  52. package/docs/{AddPaymentMethodRequestBody.md → DeleteClubSettingsResponse.md} +5 -5
  53. package/docs/EventResponse.md +1 -1
  54. package/docs/{SetupPaymentMethodRequestBody.md → EventResponseCourtsInner.md} +3 -5
  55. package/docs/IUserAttributes.md +2 -12
  56. package/docs/InvoiceStatus.md +22 -0
  57. package/docs/MyClubInfosResponse.md +26 -0
  58. package/docs/PartialClubResponse.md +8 -0
  59. package/docs/PlayerPrice.md +30 -0
  60. package/docs/QuickReservationClubSport.md +22 -0
  61. package/docs/QuickReservationClubSummary.md +4 -0
  62. package/docs/SlotInfo.md +2 -2
  63. package/docs/SportsPublicApi.md +53 -0
  64. package/docs/StaffUserProfileResponse.md +2 -12
  65. package/docs/SubscribeRequestBody.md +2 -0
  66. package/docs/SubscriptionInfo.md +24 -0
  67. package/docs/UpdateClubSettingsRequest.md +32 -0
  68. package/docs/UpdateEventRequest.md +1 -1
  69. package/docs/UserApi.md +60 -0
  70. package/docs/UserBookingsResponse.md +28 -0
  71. package/docs/UserProfileResponse.md +4 -12
  72. package/docs/UsersApi.md +4 -160
  73. package/index.ts +1 -1
  74. package/package.json +1 -1
  75. package/docs/BookingDetailResponse.md +0 -46
  76. package/docs/ClubGeneralSettingsResponse.md +0 -32
  77. package/docs/ClubHoursSettingsResponse.md +0 -22
  78. package/docs/ClubLocationSettings.md +0 -26
  79. package/docs/ClubPlayerBookingItem.md +0 -36
  80. package/docs/ClubPlayerBookingsPagination.md +0 -28
  81. package/docs/ClubPlayerBookingsResponse.md +0 -24
  82. package/docs/ClubPlayerDetailResponse.md +0 -46
  83. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  84. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  85. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  86. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  87. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  88. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  89. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  90. package/docs/ClubPresentationSettingsResponse.md +0 -26
  91. package/docs/ClubPricingPeriodResponse.md +0 -30
  92. package/docs/ClubReservationSettingsResponse.md +0 -28
  93. package/docs/ClubSettingsStaffApi.md +0 -139
  94. package/docs/ClubWeeklySchedule.md +0 -32
  95. package/docs/ConfirmPaymentMethodResponse.md +0 -22
  96. package/docs/PartialClubWeeklySchedule.md +0 -33
  97. package/docs/PaymentMethodSetupResponse.md +0 -24
  98. package/docs/SetupPaymentMethodResponse.md +0 -24
  99. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  100. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  101. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  102. 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
 
@@ -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é \&quot;no show\&quot; est activée | [optional] [default to undefined]
21
21
  **sports** | **Array&lt;string&gt;** | 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\&#39;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
- |[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PUT** /api/club-settings/settings/general | |
7
+ |[**createClubSettings**](#createclubsettings) | **POST** /api/club-settings/{clubId} | |
8
+ |[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | |
9
+ |[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | |
8
10
  |[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | |
9
- |[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
10
- |[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
11
11
 
12
- # **updateClubGeneralSettings**
13
- > ClubGeneralSettingsResponse updateClubGeneralSettings(updateClubGeneralSettingsRequest)
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
- UpdateClubGeneralSettingsRequest
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 updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest; //
29
+ let clubId: string; // (default to undefined)
30
+ let createClubSettingsRequest: CreateClubSettingsRequest; //
29
31
 
30
- const { status, data } = await apiInstance.updateClubGeneralSettings(
31
- updateClubGeneralSettingsRequest
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
- | **updateClubGeneralSettingsRequest** | **UpdateClubGeneralSettingsRequest**| | |
42
+ | **createClubSettingsRequest** | **CreateClubSettingsRequest**| | |
43
+ | **clubId** | [**string**] | | defaults to undefined|
40
44
 
41
45
 
42
46
  ### Return type
43
47
 
44
- **ClubGeneralSettingsResponse**
48
+ **ClubSettingsResponse**
45
49
 
46
50
  ### Authorization
47
51
 
@@ -56,44 +60,39 @@ const { status, data } = await apiInstance.updateClubGeneralSettings(
56
60
  ### HTTP response details
57
61
  | Status code | Description | Response headers |
58
62
  |-------------|-------------|------------------|
59
- |**200** | Paramètres généraux mis à jour | - |
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
- # **updateClubSettings**
64
- > ClubReservationSettingsResponse updateClubSettings(updateClubReservationSettingsRequest)
70
+ # **deleteClubSettings**
71
+ > DeleteClubSettingsResponse deleteClubSettings()
65
72
 
66
- Met à jour les paramètres d\'un club
73
+ Supprime les paramètres d\'un club
67
74
 
68
75
  ### Example
69
76
 
70
77
  ```typescript
71
78
  import {
72
79
  ClubSettingsManagerApi,
73
- Configuration,
74
- UpdateClubReservationSettingsRequest
80
+ Configuration
75
81
  } from '@tennac-booking/sdk';
76
82
 
77
83
  const configuration = new Configuration();
78
84
  const apiInstance = new ClubSettingsManagerApi(configuration);
79
85
 
80
- let updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest; //
81
-
82
- const { status, data } = await apiInstance.updateClubSettings(
83
- updateClubReservationSettingsRequest
84
- );
86
+ const { status, data } = await apiInstance.deleteClubSettings();
85
87
  ```
86
88
 
87
89
  ### Parameters
88
-
89
- |Name | Type | Description | Notes|
90
- |------------- | ------------- | ------------- | -------------|
91
- | **updateClubReservationSettingsRequest** | **UpdateClubReservationSettingsRequest**| | |
90
+ This endpoint does not have any parameters.
92
91
 
93
92
 
94
93
  ### Return type
95
94
 
96
- **ClubReservationSettingsResponse**
95
+ **DeleteClubSettingsResponse**
97
96
 
98
97
  ### Authorization
99
98
 
@@ -101,14 +100,14 @@ const { status, data } = await apiInstance.updateClubSettings(
101
100
 
102
101
  ### HTTP request headers
103
102
 
104
- - **Content-Type**: application/json
103
+ - **Content-Type**: Not defined
105
104
  - **Accept**: application/json
106
105
 
107
106
 
108
107
  ### HTTP response details
109
108
  | Status code | Description | Response headers |
110
109
  |-------------|-------------|------------------|
111
- |**200** | Paramètres mis à jour | - |
110
+ |**200** | Paramètres supprimés | - |
112
111
  |**400** | Bad Request | - |
113
112
  |**401** | Unauthorized | - |
114
113
  |**404** | Paramètres non trouvés | - |
@@ -116,39 +115,32 @@ const { status, data } = await apiInstance.updateClubSettings(
116
115
 
117
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)
118
117
 
119
- # **updateHoursSettings**
120
- > ClubHoursSettingsResponse updateHoursSettings(updateClubHoursSettingsRequest)
118
+ # **getClubSettings**
119
+ > ClubSettingsResponse getClubSettings()
121
120
 
121
+ Récupère les paramètres d\'un club
122
122
 
123
123
  ### Example
124
124
 
125
125
  ```typescript
126
126
  import {
127
127
  ClubSettingsManagerApi,
128
- Configuration,
129
- UpdateClubHoursSettingsRequest
128
+ Configuration
130
129
  } from '@tennac-booking/sdk';
131
130
 
132
131
  const configuration = new Configuration();
133
132
  const apiInstance = new ClubSettingsManagerApi(configuration);
134
133
 
135
- let updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest; //
136
-
137
- const { status, data } = await apiInstance.updateHoursSettings(
138
- updateClubHoursSettingsRequest
139
- );
134
+ const { status, data } = await apiInstance.getClubSettings();
140
135
  ```
141
136
 
142
137
  ### Parameters
143
-
144
- |Name | Type | Description | Notes|
145
- |------------- | ------------- | ------------- | -------------|
146
- | **updateClubHoursSettingsRequest** | **UpdateClubHoursSettingsRequest**| | |
138
+ This endpoint does not have any parameters.
147
139
 
148
140
 
149
141
  ### Return type
150
142
 
151
- **ClubHoursSettingsResponse**
143
+ **ClubSettingsResponse**
152
144
 
153
145
  ### Authorization
154
146
 
@@ -156,20 +148,25 @@ const { status, data } = await apiInstance.updateHoursSettings(
156
148
 
157
149
  ### HTTP request headers
158
150
 
159
- - **Content-Type**: application/json
151
+ - **Content-Type**: Not defined
160
152
  - **Accept**: application/json
161
153
 
162
154
 
163
155
  ### HTTP response details
164
156
  | Status code | Description | Response headers |
165
157
  |-------------|-------------|------------------|
166
- |**200** | Horaires du club mis à jour | - |
158
+ |**200** | Paramètres du club | - |
159
+ |**400** | Bad Request | - |
160
+ |**401** | Unauthorized | - |
161
+ |**404** | Paramètres non trouvés | - |
162
+ |**500** | Server Error | - |
167
163
 
168
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)
169
165
 
170
- # **updateReservationSettings**
171
- > ClubReservationSettingsResponse updateReservationSettings(updateClubReservationSettingsRequest)
166
+ # **updateClubSettings**
167
+ > ClubSettingsResponse updateClubSettings(updateClubSettingsRequest)
172
168
 
169
+ Met à jour les paramètres d\'un club
173
170
 
174
171
  ### Example
175
172
 
@@ -177,16 +174,16 @@ const { status, data } = await apiInstance.updateHoursSettings(
177
174
  import {
178
175
  ClubSettingsManagerApi,
179
176
  Configuration,
180
- UpdateClubReservationSettingsRequest
177
+ UpdateClubSettingsRequest
181
178
  } from '@tennac-booking/sdk';
182
179
 
183
180
  const configuration = new Configuration();
184
181
  const apiInstance = new ClubSettingsManagerApi(configuration);
185
182
 
186
- let updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest; //
183
+ let updateClubSettingsRequest: UpdateClubSettingsRequest; //
187
184
 
188
- const { status, data } = await apiInstance.updateReservationSettings(
189
- updateClubReservationSettingsRequest
185
+ const { status, data } = await apiInstance.updateClubSettings(
186
+ updateClubSettingsRequest
190
187
  );
191
188
  ```
192
189
 
@@ -194,12 +191,12 @@ const { status, data } = await apiInstance.updateReservationSettings(
194
191
 
195
192
  |Name | Type | Description | Notes|
196
193
  |------------- | ------------- | ------------- | -------------|
197
- | **updateClubReservationSettingsRequest** | **UpdateClubReservationSettingsRequest**| | |
194
+ | **updateClubSettingsRequest** | **UpdateClubSettingsRequest**| | |
198
195
 
199
196
 
200
197
  ### Return type
201
198
 
202
- **ClubReservationSettingsResponse**
199
+ **ClubSettingsResponse**
203
200
 
204
201
  ### Authorization
205
202
 
@@ -214,7 +211,11 @@ const { status, data } = await apiInstance.updateReservationSettings(
214
211
  ### HTTP response details
215
212
  | Status code | Description | Response headers |
216
213
  |-------------|-------------|------------------|
217
- |**200** | Paramètres de réservation mis à jour | - |
214
+ |**200** | Paramètres mis à jour | - |
215
+ |**400** | Bad Request | - |
216
+ |**401** | Unauthorized | - |
217
+ |**404** | Paramètres non trouvés | - |
218
+ |**500** | Server Error | - |
218
219
 
219
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)
220
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\&#39;annulation en heures | [default to undefined]
14
+ **availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
15
+ **sponsors** | **Array&lt;string&gt;** | 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
 
@@ -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