@tennac-booking/sdk 1.0.192 → 1.0.194

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.
@@ -0,0 +1,322 @@
1
+ # JobsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**captureExpiringAuthorizations**](#captureexpiringauthorizations) | **GET** /api/jobs/capture-expiring-authorizations | Capture les autorisations Stripe qui expirent dans moins de 4h|
8
+ |[**capturePastReservations**](#capturepastreservations) | **GET** /api/jobs/capture-past-reservations | Capture les paiements autorisés pour les réservations passées|
9
+ |[**expireBookingWaitingPayments**](#expirebookingwaitingpayments) | **GET** /api/jobs/expire-booking-waiting-payments | Expire les réservations en attente de paiement|
10
+ |[**expireWaitlistPayments**](#expirewaitlistpayments) | **GET** /api/jobs/expire-waitlist-payments | Expire les paiements en attente sur la waitlist|
11
+ |[**health**](#health) | **GET** /api/jobs/health | Health check pour les jobs|
12
+ |[**maintainSlots**](#maintainslots) | **GET** /api/jobs/maintain-slots | Génère les créneaux futurs et nettoie les anciens|
13
+ |[**releaseOldBookings**](#releaseoldbookings) | **GET** /api/jobs/release-old-bookings | Libère les anciennes réservations terminées|
14
+
15
+ # **captureExpiringAuthorizations**
16
+ > JobResult captureExpiringAuthorizations()
17
+
18
+ Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
19
+
20
+ ### Example
21
+
22
+ ```typescript
23
+ import {
24
+ JobsApi,
25
+ Configuration
26
+ } from '@tennac-booking/sdk';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new JobsApi(configuration);
30
+
31
+ const { status, data } = await apiInstance.captureExpiringAuthorizations();
32
+ ```
33
+
34
+ ### Parameters
35
+ This endpoint does not have any parameters.
36
+
37
+
38
+ ### Return type
39
+
40
+ **JobResult**
41
+
42
+ ### Authorization
43
+
44
+ No authorization required
45
+
46
+ ### HTTP request headers
47
+
48
+ - **Content-Type**: Not defined
49
+ - **Accept**: application/json
50
+
51
+
52
+ ### HTTP response details
53
+ | Status code | Description | Response headers |
54
+ |-------------|-------------|------------------|
55
+ |**200** | Job executed successfully | - |
56
+
57
+ [[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)
58
+
59
+ # **capturePastReservations**
60
+ > JobResult capturePastReservations()
61
+
62
+ Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
63
+
64
+ ### Example
65
+
66
+ ```typescript
67
+ import {
68
+ JobsApi,
69
+ Configuration
70
+ } from '@tennac-booking/sdk';
71
+
72
+ const configuration = new Configuration();
73
+ const apiInstance = new JobsApi(configuration);
74
+
75
+ const { status, data } = await apiInstance.capturePastReservations();
76
+ ```
77
+
78
+ ### Parameters
79
+ This endpoint does not have any parameters.
80
+
81
+
82
+ ### Return type
83
+
84
+ **JobResult**
85
+
86
+ ### Authorization
87
+
88
+ No authorization required
89
+
90
+ ### HTTP request headers
91
+
92
+ - **Content-Type**: Not defined
93
+ - **Accept**: application/json
94
+
95
+
96
+ ### HTTP response details
97
+ | Status code | Description | Response headers |
98
+ |-------------|-------------|------------------|
99
+ |**200** | Job executed successfully | - |
100
+
101
+ [[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)
102
+
103
+ # **expireBookingWaitingPayments**
104
+ > JobResult expireBookingWaitingPayments()
105
+
106
+ Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
107
+
108
+ ### Example
109
+
110
+ ```typescript
111
+ import {
112
+ JobsApi,
113
+ Configuration
114
+ } from '@tennac-booking/sdk';
115
+
116
+ const configuration = new Configuration();
117
+ const apiInstance = new JobsApi(configuration);
118
+
119
+ const { status, data } = await apiInstance.expireBookingWaitingPayments();
120
+ ```
121
+
122
+ ### Parameters
123
+ This endpoint does not have any parameters.
124
+
125
+
126
+ ### Return type
127
+
128
+ **JobResult**
129
+
130
+ ### Authorization
131
+
132
+ No authorization required
133
+
134
+ ### HTTP request headers
135
+
136
+ - **Content-Type**: Not defined
137
+ - **Accept**: application/json
138
+
139
+
140
+ ### HTTP response details
141
+ | Status code | Description | Response headers |
142
+ |-------------|-------------|------------------|
143
+ |**200** | Job executed successfully | - |
144
+
145
+ [[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)
146
+
147
+ # **expireWaitlistPayments**
148
+ > JobResult expireWaitlistPayments()
149
+
150
+ Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
151
+
152
+ ### Example
153
+
154
+ ```typescript
155
+ import {
156
+ JobsApi,
157
+ Configuration
158
+ } from '@tennac-booking/sdk';
159
+
160
+ const configuration = new Configuration();
161
+ const apiInstance = new JobsApi(configuration);
162
+
163
+ const { status, data } = await apiInstance.expireWaitlistPayments();
164
+ ```
165
+
166
+ ### Parameters
167
+ This endpoint does not have any parameters.
168
+
169
+
170
+ ### Return type
171
+
172
+ **JobResult**
173
+
174
+ ### Authorization
175
+
176
+ No authorization required
177
+
178
+ ### HTTP request headers
179
+
180
+ - **Content-Type**: Not defined
181
+ - **Accept**: application/json
182
+
183
+
184
+ ### HTTP response details
185
+ | Status code | Description | Response headers |
186
+ |-------------|-------------|------------------|
187
+ |**200** | Job executed successfully | - |
188
+
189
+ [[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)
190
+
191
+ # **health**
192
+ > Health200Response health()
193
+
194
+ Route de santé pour vérifier que le service jobs est opérationnel
195
+
196
+ ### Example
197
+
198
+ ```typescript
199
+ import {
200
+ JobsApi,
201
+ Configuration
202
+ } from '@tennac-booking/sdk';
203
+
204
+ const configuration = new Configuration();
205
+ const apiInstance = new JobsApi(configuration);
206
+
207
+ const { status, data } = await apiInstance.health();
208
+ ```
209
+
210
+ ### Parameters
211
+ This endpoint does not have any parameters.
212
+
213
+
214
+ ### Return type
215
+
216
+ **Health200Response**
217
+
218
+ ### Authorization
219
+
220
+ No authorization required
221
+
222
+ ### HTTP request headers
223
+
224
+ - **Content-Type**: Not defined
225
+ - **Accept**: application/json
226
+
227
+
228
+ ### HTTP response details
229
+ | Status code | Description | Response headers |
230
+ |-------------|-------------|------------------|
231
+ |**200** | Service is healthy | - |
232
+
233
+ [[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)
234
+
235
+ # **maintainSlots**
236
+ > JobResult maintainSlots()
237
+
238
+ Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
239
+
240
+ ### Example
241
+
242
+ ```typescript
243
+ import {
244
+ JobsApi,
245
+ Configuration
246
+ } from '@tennac-booking/sdk';
247
+
248
+ const configuration = new Configuration();
249
+ const apiInstance = new JobsApi(configuration);
250
+
251
+ const { status, data } = await apiInstance.maintainSlots();
252
+ ```
253
+
254
+ ### Parameters
255
+ This endpoint does not have any parameters.
256
+
257
+
258
+ ### Return type
259
+
260
+ **JobResult**
261
+
262
+ ### Authorization
263
+
264
+ No authorization required
265
+
266
+ ### HTTP request headers
267
+
268
+ - **Content-Type**: Not defined
269
+ - **Accept**: application/json
270
+
271
+
272
+ ### HTTP response details
273
+ | Status code | Description | Response headers |
274
+ |-------------|-------------|------------------|
275
+ |**200** | Job executed successfully | - |
276
+
277
+ [[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)
278
+
279
+ # **releaseOldBookings**
280
+ > JobResult releaseOldBookings()
281
+
282
+ Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
283
+
284
+ ### Example
285
+
286
+ ```typescript
287
+ import {
288
+ JobsApi,
289
+ Configuration
290
+ } from '@tennac-booking/sdk';
291
+
292
+ const configuration = new Configuration();
293
+ const apiInstance = new JobsApi(configuration);
294
+
295
+ const { status, data } = await apiInstance.releaseOldBookings();
296
+ ```
297
+
298
+ ### Parameters
299
+ This endpoint does not have any parameters.
300
+
301
+
302
+ ### Return type
303
+
304
+ **JobResult**
305
+
306
+ ### Authorization
307
+
308
+ No authorization required
309
+
310
+ ### HTTP request headers
311
+
312
+ - **Content-Type**: Not defined
313
+ - **Accept**: application/json
314
+
315
+
316
+ ### HTTP response details
317
+ | Status code | Description | Response headers |
318
+ |-------------|-------------|------------------|
319
+ |**200** | Job executed successfully | - |
320
+
321
+ [[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)
322
+
@@ -0,0 +1,44 @@
1
+ # WaitListEntryWithPlayer
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **userId** | **string** | | [default to undefined]
10
+ **clubId** | **string** | | [default to undefined]
11
+ **targetType** | **string** | | [default to undefined]
12
+ **targetId** | **string** | | [default to undefined]
13
+ **status** | **string** | | [default to undefined]
14
+ **position** | **number** | | [default to undefined]
15
+ **priceInCents** | **number** | | [default to undefined]
16
+ **joinedAt** | **string** | | [default to undefined]
17
+ **notifiedAt** | **string** | | [optional] [default to undefined]
18
+ **paymentExpiresAt** | **string** | | [optional] [default to undefined]
19
+ **confirmedAt** | **string** | | [optional] [default to undefined]
20
+ **player** | [**WaitListPlayer**](WaitListPlayer.md) | | [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { WaitListEntryWithPlayer } from '@tennac-booking/sdk';
26
+
27
+ const instance: WaitListEntryWithPlayer = {
28
+ id,
29
+ userId,
30
+ clubId,
31
+ targetType,
32
+ targetId,
33
+ status,
34
+ position,
35
+ priceInCents,
36
+ joinedAt,
37
+ notifiedAt,
38
+ paymentExpiresAt,
39
+ confirmedAt,
40
+ player,
41
+ };
42
+ ```
43
+
44
+ [[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
+ # WaitListPlayer
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **firstName** | **string** | | [default to undefined]
10
+ **lastName** | **string** | | [default to undefined]
11
+ **username** | **string** | | [optional] [default to undefined]
12
+ **profilePicture** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { WaitListPlayer } from '@tennac-booking/sdk';
18
+
19
+ const instance: WaitListPlayer = {
20
+ id,
21
+ firstName,
22
+ lastName,
23
+ username,
24
+ profilePicture,
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)
@@ -0,0 +1,22 @@
1
+ # WaitListPlayersListResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **waitList** | [**Array<WaitListEntryWithPlayer>**](WaitListEntryWithPlayer.md) | | [default to undefined]
9
+ **total** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { WaitListPlayersListResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: WaitListPlayersListResponse = {
17
+ waitList,
18
+ total,
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)
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
7
7
  |[**getBookingWaitList**](#getbookingwaitlist) | **GET** /api/waitlist/booking/{bookingId}/list | |
8
8
  |[**getEventBookingWaitList**](#geteventbookingwaitlist) | **GET** /api/waitlist/event-booking/{eventBookingId}/list | |
9
9
  |[**getEventWaitList**](#geteventwaitlist) | **GET** /api/waitlist/event/{eventId}/list | |
10
+ |[**getEventWaitListPlayers**](#geteventwaitlistplayers) | **GET** /api/waitlist/event/{eventId}/players | |
10
11
  |[**processBookingWaitList**](#processbookingwaitlist) | **POST** /api/waitlist/booking/{bookingId}/process | |
11
12
  |[**processEventBookingWaitList**](#processeventbookingwaitlist) | **POST** /api/waitlist/event-booking/{eventBookingId}/process | |
12
13
  |[**processEventWaitList**](#processeventwaitlist) | **POST** /api/waitlist/event/{eventId}/process | |
@@ -170,6 +171,60 @@ const { status, data } = await apiInstance.getEventWaitList(
170
171
 
171
172
  [[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)
172
173
 
174
+ # **getEventWaitListPlayers**
175
+ > WaitListPlayersListResponse getEventWaitListPlayers()
176
+
177
+ Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
178
+
179
+ ### Example
180
+
181
+ ```typescript
182
+ import {
183
+ WaitListStaffApi,
184
+ Configuration
185
+ } from '@tennac-booking/sdk';
186
+
187
+ const configuration = new Configuration();
188
+ const apiInstance = new WaitListStaffApi(configuration);
189
+
190
+ let eventId: string; // (default to undefined)
191
+
192
+ const { status, data } = await apiInstance.getEventWaitListPlayers(
193
+ eventId
194
+ );
195
+ ```
196
+
197
+ ### Parameters
198
+
199
+ |Name | Type | Description | Notes|
200
+ |------------- | ------------- | ------------- | -------------|
201
+ | **eventId** | [**string**] | | defaults to undefined|
202
+
203
+
204
+ ### Return type
205
+
206
+ **WaitListPlayersListResponse**
207
+
208
+ ### Authorization
209
+
210
+ [bearerAuth](../README.md#bearerAuth)
211
+
212
+ ### HTTP request headers
213
+
214
+ - **Content-Type**: Not defined
215
+ - **Accept**: application/json
216
+
217
+
218
+ ### HTTP response details
219
+ | Status code | Description | Response headers |
220
+ |-------------|-------------|------------------|
221
+ |**200** | Joueurs en file d\'attente récupérés avec succès | - |
222
+ |**400** | Requête invalide | - |
223
+ |**404** | Événement non trouvé | - |
224
+ |**500** | Erreur serveur | - |
225
+
226
+ [[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)
227
+
173
228
  # **processBookingWaitList**
174
229
  > LeaveEventWaitList200Response processBookingWaitList()
175
230
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.192",
3
+ "version": "1.0.194",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {