@tennac-booking/sdk 1.0.18 → 1.0.20
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 +22 -0
- package/README.md +31 -3
- package/api.ts +1983 -271
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1472 -245
- package/dist/api.js +944 -116
- 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 +1472 -245
- package/dist/esm/api.js +927 -111
- 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/BookingPaymentStatusResponse.md +24 -0
- package/docs/BookingPaymentStatusResponseBooking.md +26 -0
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
- package/docs/BookingPaymentStatusResponseSummary.md +28 -0
- package/docs/BookingsApi.md +68 -0
- package/docs/CancelBookingRequest.md +20 -0
- package/docs/CancelBookingResponse.md +2 -2
- package/docs/CancelBookingResponseBooking.md +6 -6
- package/docs/CheckInPlayersRequest.md +20 -0
- package/docs/CheckInPlayersResponse.md +30 -0
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
- package/docs/ClubAnalyticsApi.md +253 -0
- package/docs/ClubInfoResponse.md +2 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +1 -1
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/ManagerBookingsApi.md +243 -0
- package/docs/ManagerCancelBookingRequest.md +20 -0
- package/docs/ManagerCancelBookingResponse.md +2 -2
- package/docs/ManagerCancelBookingResponseBooking.md +6 -6
- package/docs/MonthlyTurnoverResponse.md +28 -0
- package/docs/NoShowFeeResponse.md +30 -0
- package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
- package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
- package/docs/StaffClubAnalyticsApi.md +3 -10
- package/docs/StaffClubSettingsApi.md +5 -13
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.19
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -182,6 +182,168 @@ export interface Booking {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @export
|
|
188
|
+
* @interface BookingPaymentStatusResponse
|
|
189
|
+
*/
|
|
190
|
+
export interface BookingPaymentStatusResponse {
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {BookingPaymentStatusResponseBooking}
|
|
194
|
+
* @memberof BookingPaymentStatusResponse
|
|
195
|
+
*/
|
|
196
|
+
'booking'?: BookingPaymentStatusResponseBooking;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @type {Array<BookingPaymentStatusResponsePaymentStatusInner>}
|
|
200
|
+
* @memberof BookingPaymentStatusResponse
|
|
201
|
+
*/
|
|
202
|
+
'paymentStatus'?: Array<BookingPaymentStatusResponsePaymentStatusInner>;
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @type {BookingPaymentStatusResponseSummary}
|
|
206
|
+
* @memberof BookingPaymentStatusResponse
|
|
207
|
+
*/
|
|
208
|
+
'summary'?: BookingPaymentStatusResponseSummary;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @export
|
|
213
|
+
* @interface BookingPaymentStatusResponseBooking
|
|
214
|
+
*/
|
|
215
|
+
export interface BookingPaymentStatusResponseBooking {
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof BookingPaymentStatusResponseBooking
|
|
220
|
+
*/
|
|
221
|
+
'id'?: string;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof BookingPaymentStatusResponseBooking
|
|
226
|
+
*/
|
|
227
|
+
'status'?: string;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {boolean}
|
|
231
|
+
* @memberof BookingPaymentStatusResponseBooking
|
|
232
|
+
*/
|
|
233
|
+
'isCreatorPayingAll'?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @type {number}
|
|
237
|
+
* @memberof BookingPaymentStatusResponseBooking
|
|
238
|
+
*/
|
|
239
|
+
'totalPrice'?: number;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @export
|
|
244
|
+
* @interface BookingPaymentStatusResponsePaymentStatusInner
|
|
245
|
+
*/
|
|
246
|
+
export interface BookingPaymentStatusResponsePaymentStatusInner {
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
251
|
+
*/
|
|
252
|
+
'playerId'?: string;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @type {string}
|
|
256
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
257
|
+
*/
|
|
258
|
+
'playerName'?: string;
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @type {string}
|
|
262
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
263
|
+
*/
|
|
264
|
+
'playerEmail'?: string;
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
* @type {number}
|
|
268
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
269
|
+
*/
|
|
270
|
+
'amount'?: number;
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @type {string}
|
|
274
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
275
|
+
*/
|
|
276
|
+
'paymentMethod'?: BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum;
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
281
|
+
*/
|
|
282
|
+
'status'?: string;
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @type {boolean}
|
|
286
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
287
|
+
*/
|
|
288
|
+
'accepted'?: boolean;
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @type {boolean}
|
|
292
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
293
|
+
*/
|
|
294
|
+
'hasPaid'?: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Indique si le joueur a besoin d\'être enregistré (paiement sur place en attente)
|
|
297
|
+
* @type {boolean}
|
|
298
|
+
* @memberof BookingPaymentStatusResponsePaymentStatusInner
|
|
299
|
+
*/
|
|
300
|
+
'needsCheckIn'?: boolean;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export const BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = {
|
|
304
|
+
Stripe: 'stripe',
|
|
305
|
+
Onsite: 'onsite'
|
|
306
|
+
} as const;
|
|
307
|
+
|
|
308
|
+
export type BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = typeof BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum[keyof typeof BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum];
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
* @export
|
|
313
|
+
* @interface BookingPaymentStatusResponseSummary
|
|
314
|
+
*/
|
|
315
|
+
export interface BookingPaymentStatusResponseSummary {
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @type {number}
|
|
319
|
+
* @memberof BookingPaymentStatusResponseSummary
|
|
320
|
+
*/
|
|
321
|
+
'totalPlayers'?: number;
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {number}
|
|
325
|
+
* @memberof BookingPaymentStatusResponseSummary
|
|
326
|
+
*/
|
|
327
|
+
'playersWhoHavePaid'?: number;
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @type {number}
|
|
331
|
+
* @memberof BookingPaymentStatusResponseSummary
|
|
332
|
+
*/
|
|
333
|
+
'playersNeedingCheckIn'?: number;
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @type {number}
|
|
337
|
+
* @memberof BookingPaymentStatusResponseSummary
|
|
338
|
+
*/
|
|
339
|
+
'totalAmount'?: number;
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @type {number}
|
|
343
|
+
* @memberof BookingPaymentStatusResponseSummary
|
|
344
|
+
*/
|
|
345
|
+
'paidAmount'?: number;
|
|
346
|
+
}
|
|
185
347
|
/**
|
|
186
348
|
*
|
|
187
349
|
* @export
|
|
@@ -233,6 +395,19 @@ export const BookingStatus = {
|
|
|
233
395
|
export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
234
396
|
|
|
235
397
|
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @export
|
|
401
|
+
* @interface CancelBookingRequest
|
|
402
|
+
*/
|
|
403
|
+
export interface CancelBookingRequest {
|
|
404
|
+
/**
|
|
405
|
+
* ID de l\'utilisateur créateur pour vérification
|
|
406
|
+
* @type {string}
|
|
407
|
+
* @memberof CancelBookingRequest
|
|
408
|
+
*/
|
|
409
|
+
'userId': string;
|
|
410
|
+
}
|
|
236
411
|
/**
|
|
237
412
|
*
|
|
238
413
|
* @export
|
|
@@ -240,17 +415,17 @@ export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
|
240
415
|
*/
|
|
241
416
|
export interface CancelBookingResponse {
|
|
242
417
|
/**
|
|
243
|
-
*
|
|
418
|
+
*
|
|
244
419
|
* @type {string}
|
|
245
420
|
* @memberof CancelBookingResponse
|
|
246
421
|
*/
|
|
247
|
-
'message'
|
|
422
|
+
'message'?: string;
|
|
248
423
|
/**
|
|
249
424
|
*
|
|
250
425
|
* @type {CancelBookingResponseBooking}
|
|
251
426
|
* @memberof CancelBookingResponse
|
|
252
427
|
*/
|
|
253
|
-
'booking'
|
|
428
|
+
'booking'?: CancelBookingResponseBooking;
|
|
254
429
|
}
|
|
255
430
|
/**
|
|
256
431
|
*
|
|
@@ -259,37 +434,37 @@ export interface CancelBookingResponse {
|
|
|
259
434
|
*/
|
|
260
435
|
export interface CancelBookingResponseBooking {
|
|
261
436
|
/**
|
|
262
|
-
*
|
|
437
|
+
*
|
|
263
438
|
* @type {string}
|
|
264
439
|
* @memberof CancelBookingResponseBooking
|
|
265
440
|
*/
|
|
266
|
-
'id'
|
|
441
|
+
'id'?: string;
|
|
267
442
|
/**
|
|
268
|
-
*
|
|
443
|
+
*
|
|
269
444
|
* @type {string}
|
|
270
445
|
* @memberof CancelBookingResponseBooking
|
|
271
446
|
*/
|
|
272
|
-
'status'
|
|
447
|
+
'status'?: CancelBookingResponseBookingStatusEnum;
|
|
273
448
|
/**
|
|
274
|
-
*
|
|
449
|
+
*
|
|
275
450
|
* @type {string}
|
|
276
451
|
* @memberof CancelBookingResponseBooking
|
|
277
452
|
*/
|
|
278
|
-
'cancelledAt'
|
|
453
|
+
'cancelledAt'?: string;
|
|
279
454
|
/**
|
|
280
|
-
*
|
|
455
|
+
*
|
|
281
456
|
* @type {string}
|
|
282
457
|
* @memberof CancelBookingResponseBooking
|
|
283
458
|
*/
|
|
284
|
-
'cancelledBy'
|
|
459
|
+
'cancelledBy'?: string;
|
|
285
460
|
/**
|
|
286
|
-
*
|
|
461
|
+
*
|
|
287
462
|
* @type {boolean}
|
|
288
463
|
* @memberof CancelBookingResponseBooking
|
|
289
464
|
*/
|
|
290
|
-
'cancelledByManager'
|
|
465
|
+
'cancelledByManager'?: boolean;
|
|
291
466
|
/**
|
|
292
|
-
*
|
|
467
|
+
*
|
|
293
468
|
* @type {string}
|
|
294
469
|
* @memberof CancelBookingResponseBooking
|
|
295
470
|
*/
|
|
@@ -334,6 +509,117 @@ export interface ChangePasswordResponse {
|
|
|
334
509
|
*/
|
|
335
510
|
'message'?: string;
|
|
336
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @export
|
|
515
|
+
* @interface CheckInPlayersRequest
|
|
516
|
+
*/
|
|
517
|
+
export interface CheckInPlayersRequest {
|
|
518
|
+
/**
|
|
519
|
+
* Liste des IDs des joueurs qui ont payé/sont arrivés
|
|
520
|
+
* @type {Array<string>}
|
|
521
|
+
* @memberof CheckInPlayersRequest
|
|
522
|
+
*/
|
|
523
|
+
'playerIds': Array<string>;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @export
|
|
528
|
+
* @interface CheckInPlayersResponse
|
|
529
|
+
*/
|
|
530
|
+
export interface CheckInPlayersResponse {
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof CheckInPlayersResponse
|
|
535
|
+
*/
|
|
536
|
+
'message'?: string;
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* @type {Array<CheckInPlayersResponseCheckedInPlayersInner>}
|
|
540
|
+
* @memberof CheckInPlayersResponse
|
|
541
|
+
*/
|
|
542
|
+
'checkedInPlayers'?: Array<CheckInPlayersResponseCheckedInPlayersInner>;
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @type {Array<string>}
|
|
546
|
+
* @memberof CheckInPlayersResponse
|
|
547
|
+
*/
|
|
548
|
+
'notFoundPlayers'?: Array<string>;
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @type {boolean}
|
|
552
|
+
* @memberof CheckInPlayersResponse
|
|
553
|
+
*/
|
|
554
|
+
'allPlayersCheckedIn'?: boolean;
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @type {boolean}
|
|
558
|
+
* @memberof CheckInPlayersResponse
|
|
559
|
+
*/
|
|
560
|
+
'bookingFullyPaid'?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {number}
|
|
564
|
+
* @memberof CheckInPlayersResponse
|
|
565
|
+
*/
|
|
566
|
+
'totalPlayers'?: number;
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
570
|
+
* @export
|
|
571
|
+
* @interface CheckInPlayersResponseCheckedInPlayersInner
|
|
572
|
+
*/
|
|
573
|
+
export interface CheckInPlayersResponseCheckedInPlayersInner {
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @type {string}
|
|
577
|
+
* @memberof CheckInPlayersResponseCheckedInPlayersInner
|
|
578
|
+
*/
|
|
579
|
+
'playerId'?: string;
|
|
580
|
+
/**
|
|
581
|
+
*
|
|
582
|
+
* @type {string}
|
|
583
|
+
* @memberof CheckInPlayersResponseCheckedInPlayersInner
|
|
584
|
+
*/
|
|
585
|
+
'invoiceId'?: string;
|
|
586
|
+
/**
|
|
587
|
+
*
|
|
588
|
+
* @type {number}
|
|
589
|
+
* @memberof CheckInPlayersResponseCheckedInPlayersInner
|
|
590
|
+
*/
|
|
591
|
+
'amount'?: number;
|
|
592
|
+
/**
|
|
593
|
+
*
|
|
594
|
+
* @type {string}
|
|
595
|
+
* @memberof CheckInPlayersResponseCheckedInPlayersInner
|
|
596
|
+
*/
|
|
597
|
+
'previousStatus'?: string;
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @type {string}
|
|
601
|
+
* @memberof CheckInPlayersResponseCheckedInPlayersInner
|
|
602
|
+
*/
|
|
603
|
+
'newStatus'?: string;
|
|
604
|
+
/**
|
|
605
|
+
*
|
|
606
|
+
* @type {string}
|
|
607
|
+
* @memberof CheckInPlayersResponseCheckedInPlayersInner
|
|
608
|
+
*/
|
|
609
|
+
'status'?: string;
|
|
610
|
+
/**
|
|
611
|
+
*
|
|
612
|
+
* @type {string}
|
|
613
|
+
* @memberof CheckInPlayersResponseCheckedInPlayersInner
|
|
614
|
+
*/
|
|
615
|
+
'paymentMethod'?: string;
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @type {string}
|
|
619
|
+
* @memberof CheckInPlayersResponseCheckedInPlayersInner
|
|
620
|
+
*/
|
|
621
|
+
'note'?: string;
|
|
622
|
+
}
|
|
337
623
|
/**
|
|
338
624
|
*
|
|
339
625
|
* @export
|
|
@@ -485,6 +771,12 @@ export interface ClubInfoResponse {
|
|
|
485
771
|
* @memberof ClubInfoResponse
|
|
486
772
|
*/
|
|
487
773
|
'website'?: string;
|
|
774
|
+
/**
|
|
775
|
+
*
|
|
776
|
+
* @type {string}
|
|
777
|
+
* @memberof ClubInfoResponse
|
|
778
|
+
*/
|
|
779
|
+
'rib'?: string;
|
|
488
780
|
/**
|
|
489
781
|
*
|
|
490
782
|
* @type {string}
|
|
@@ -1442,6 +1734,31 @@ export interface CreateSubscriptionPlanRequest {
|
|
|
1442
1734
|
*/
|
|
1443
1735
|
'metadata'?: object;
|
|
1444
1736
|
}
|
|
1737
|
+
/**
|
|
1738
|
+
*
|
|
1739
|
+
* @export
|
|
1740
|
+
* @interface DailyTurnoverResponse
|
|
1741
|
+
*/
|
|
1742
|
+
export interface DailyTurnoverResponse {
|
|
1743
|
+
/**
|
|
1744
|
+
*
|
|
1745
|
+
* @type {string}
|
|
1746
|
+
* @memberof DailyTurnoverResponse
|
|
1747
|
+
*/
|
|
1748
|
+
'date'?: string;
|
|
1749
|
+
/**
|
|
1750
|
+
*
|
|
1751
|
+
* @type {number}
|
|
1752
|
+
* @memberof DailyTurnoverResponse
|
|
1753
|
+
*/
|
|
1754
|
+
'totalTurnover'?: number;
|
|
1755
|
+
/**
|
|
1756
|
+
*
|
|
1757
|
+
* @type {number}
|
|
1758
|
+
* @memberof DailyTurnoverResponse
|
|
1759
|
+
*/
|
|
1760
|
+
'invoiceCount'?: number;
|
|
1761
|
+
}
|
|
1445
1762
|
/**
|
|
1446
1763
|
*
|
|
1447
1764
|
* @export
|
|
@@ -1647,10 +1964,10 @@ export interface GetLastSixMonthsTurnover200ResponseInner {
|
|
|
1647
1964
|
'year'?: number;
|
|
1648
1965
|
/**
|
|
1649
1966
|
*
|
|
1650
|
-
* @type {
|
|
1967
|
+
* @type {string}
|
|
1651
1968
|
* @memberof GetLastSixMonthsTurnover200ResponseInner
|
|
1652
1969
|
*/
|
|
1653
|
-
'month'?:
|
|
1970
|
+
'month'?: string;
|
|
1654
1971
|
/**
|
|
1655
1972
|
*
|
|
1656
1973
|
* @type {number}
|
|
@@ -1825,53 +2142,183 @@ export interface InitiateSubscriptionSessionResponse {
|
|
|
1825
2142
|
/**
|
|
1826
2143
|
*
|
|
1827
2144
|
* @export
|
|
1828
|
-
* @interface
|
|
2145
|
+
* @interface InvoicesResponse
|
|
1829
2146
|
*/
|
|
1830
|
-
export interface
|
|
2147
|
+
export interface InvoicesResponse {
|
|
1831
2148
|
/**
|
|
1832
2149
|
*
|
|
1833
|
-
* @type {
|
|
1834
|
-
* @memberof
|
|
2150
|
+
* @type {Array<InvoicesResponseInvoicesInner>}
|
|
2151
|
+
* @memberof InvoicesResponse
|
|
1835
2152
|
*/
|
|
1836
|
-
'
|
|
2153
|
+
'invoices'?: Array<InvoicesResponseInvoicesInner>;
|
|
1837
2154
|
/**
|
|
1838
2155
|
*
|
|
1839
|
-
* @type {
|
|
1840
|
-
* @memberof
|
|
2156
|
+
* @type {InvoicesResponsePagination}
|
|
2157
|
+
* @memberof InvoicesResponse
|
|
1841
2158
|
*/
|
|
1842
|
-
'
|
|
2159
|
+
'pagination'?: InvoicesResponsePagination;
|
|
1843
2160
|
}
|
|
1844
2161
|
/**
|
|
1845
2162
|
*
|
|
1846
2163
|
* @export
|
|
1847
|
-
* @interface
|
|
2164
|
+
* @interface InvoicesResponseInvoicesInner
|
|
1848
2165
|
*/
|
|
1849
|
-
export interface
|
|
2166
|
+
export interface InvoicesResponseInvoicesInner {
|
|
1850
2167
|
/**
|
|
1851
2168
|
*
|
|
1852
2169
|
* @type {string}
|
|
1853
|
-
* @memberof
|
|
2170
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
1854
2171
|
*/
|
|
1855
|
-
'
|
|
2172
|
+
'billNumber'?: string;
|
|
1856
2173
|
/**
|
|
1857
2174
|
*
|
|
1858
2175
|
* @type {string}
|
|
1859
|
-
* @memberof
|
|
2176
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
1860
2177
|
*/
|
|
1861
|
-
'
|
|
2178
|
+
'date'?: string;
|
|
1862
2179
|
/**
|
|
1863
2180
|
*
|
|
1864
|
-
* @type {
|
|
1865
|
-
* @memberof
|
|
2181
|
+
* @type {string}
|
|
2182
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
1866
2183
|
*/
|
|
1867
|
-
'
|
|
2184
|
+
'clientFirstName'?: string;
|
|
2185
|
+
/**
|
|
2186
|
+
*
|
|
2187
|
+
* @type {string}
|
|
2188
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2189
|
+
*/
|
|
2190
|
+
'clientLastName'?: string;
|
|
2191
|
+
/**
|
|
2192
|
+
*
|
|
2193
|
+
* @type {string}
|
|
2194
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2195
|
+
*/
|
|
2196
|
+
'clientEmail'?: string;
|
|
1868
2197
|
/**
|
|
1869
2198
|
*
|
|
1870
2199
|
* @type {number}
|
|
1871
|
-
* @memberof
|
|
2200
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2201
|
+
*/
|
|
2202
|
+
'totalCost'?: number;
|
|
2203
|
+
/**
|
|
2204
|
+
*
|
|
2205
|
+
* @type {string}
|
|
2206
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2207
|
+
*/
|
|
2208
|
+
'status'?: InvoicesResponseInvoicesInnerStatusEnum;
|
|
2209
|
+
/**
|
|
2210
|
+
*
|
|
2211
|
+
* @type {string}
|
|
2212
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2213
|
+
*/
|
|
2214
|
+
'linkToInvoicePDF'?: string | null;
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
export const InvoicesResponseInvoicesInnerStatusEnum = {
|
|
2218
|
+
Pending: 'pending',
|
|
2219
|
+
Paid: 'paid',
|
|
2220
|
+
Failed: 'failed',
|
|
2221
|
+
Authorized: 'authorized',
|
|
2222
|
+
Canceled: 'canceled',
|
|
2223
|
+
Expired: 'expired'
|
|
2224
|
+
} as const;
|
|
2225
|
+
|
|
2226
|
+
export type InvoicesResponseInvoicesInnerStatusEnum = typeof InvoicesResponseInvoicesInnerStatusEnum[keyof typeof InvoicesResponseInvoicesInnerStatusEnum];
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
*
|
|
2230
|
+
* @export
|
|
2231
|
+
* @interface InvoicesResponsePagination
|
|
2232
|
+
*/
|
|
2233
|
+
export interface InvoicesResponsePagination {
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @type {number}
|
|
2237
|
+
* @memberof InvoicesResponsePagination
|
|
2238
|
+
*/
|
|
2239
|
+
'total'?: number;
|
|
2240
|
+
/**
|
|
2241
|
+
*
|
|
2242
|
+
* @type {number}
|
|
2243
|
+
* @memberof InvoicesResponsePagination
|
|
2244
|
+
*/
|
|
2245
|
+
'page'?: number;
|
|
2246
|
+
/**
|
|
2247
|
+
*
|
|
2248
|
+
* @type {number}
|
|
2249
|
+
* @memberof InvoicesResponsePagination
|
|
2250
|
+
*/
|
|
2251
|
+
'limit'?: number;
|
|
2252
|
+
/**
|
|
2253
|
+
*
|
|
2254
|
+
* @type {number}
|
|
2255
|
+
* @memberof InvoicesResponsePagination
|
|
2256
|
+
*/
|
|
2257
|
+
'totalPages'?: number;
|
|
2258
|
+
}
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @export
|
|
2262
|
+
* @interface LoginRequestBody
|
|
2263
|
+
*/
|
|
2264
|
+
export interface LoginRequestBody {
|
|
2265
|
+
/**
|
|
2266
|
+
*
|
|
2267
|
+
* @type {string}
|
|
2268
|
+
* @memberof LoginRequestBody
|
|
2269
|
+
*/
|
|
2270
|
+
'email': string;
|
|
2271
|
+
/**
|
|
2272
|
+
*
|
|
2273
|
+
* @type {string}
|
|
2274
|
+
* @memberof LoginRequestBody
|
|
2275
|
+
*/
|
|
2276
|
+
'password': string;
|
|
2277
|
+
}
|
|
2278
|
+
/**
|
|
2279
|
+
*
|
|
2280
|
+
* @export
|
|
2281
|
+
* @interface LoginResponse
|
|
2282
|
+
*/
|
|
2283
|
+
export interface LoginResponse {
|
|
2284
|
+
/**
|
|
2285
|
+
*
|
|
2286
|
+
* @type {string}
|
|
2287
|
+
* @memberof LoginResponse
|
|
2288
|
+
*/
|
|
2289
|
+
'token': string;
|
|
2290
|
+
/**
|
|
2291
|
+
*
|
|
2292
|
+
* @type {string}
|
|
2293
|
+
* @memberof LoginResponse
|
|
2294
|
+
*/
|
|
2295
|
+
'refreshToken': string;
|
|
2296
|
+
/**
|
|
2297
|
+
*
|
|
2298
|
+
* @type {number}
|
|
2299
|
+
* @memberof LoginResponse
|
|
2300
|
+
*/
|
|
2301
|
+
'sessionDuration': number;
|
|
2302
|
+
/**
|
|
2303
|
+
*
|
|
2304
|
+
* @type {number}
|
|
2305
|
+
* @memberof LoginResponse
|
|
1872
2306
|
*/
|
|
1873
2307
|
'sessionEnd': number;
|
|
1874
2308
|
}
|
|
2309
|
+
/**
|
|
2310
|
+
*
|
|
2311
|
+
* @export
|
|
2312
|
+
* @interface ManagerCancelBookingRequest
|
|
2313
|
+
*/
|
|
2314
|
+
export interface ManagerCancelBookingRequest {
|
|
2315
|
+
/**
|
|
2316
|
+
* Raison obligatoire de l\'annulation par le gestionnaire
|
|
2317
|
+
* @type {string}
|
|
2318
|
+
* @memberof ManagerCancelBookingRequest
|
|
2319
|
+
*/
|
|
2320
|
+
'reason': string;
|
|
2321
|
+
}
|
|
1875
2322
|
/**
|
|
1876
2323
|
*
|
|
1877
2324
|
* @export
|
|
@@ -1879,17 +2326,17 @@ export interface LoginResponse {
|
|
|
1879
2326
|
*/
|
|
1880
2327
|
export interface ManagerCancelBookingResponse {
|
|
1881
2328
|
/**
|
|
1882
|
-
*
|
|
2329
|
+
*
|
|
1883
2330
|
* @type {string}
|
|
1884
2331
|
* @memberof ManagerCancelBookingResponse
|
|
1885
2332
|
*/
|
|
1886
|
-
'message'
|
|
2333
|
+
'message'?: string;
|
|
1887
2334
|
/**
|
|
1888
2335
|
*
|
|
1889
2336
|
* @type {ManagerCancelBookingResponseBooking}
|
|
1890
2337
|
* @memberof ManagerCancelBookingResponse
|
|
1891
2338
|
*/
|
|
1892
|
-
'booking'
|
|
2339
|
+
'booking'?: ManagerCancelBookingResponseBooking;
|
|
1893
2340
|
}
|
|
1894
2341
|
/**
|
|
1895
2342
|
*
|
|
@@ -1898,41 +2345,41 @@ export interface ManagerCancelBookingResponse {
|
|
|
1898
2345
|
*/
|
|
1899
2346
|
export interface ManagerCancelBookingResponseBooking {
|
|
1900
2347
|
/**
|
|
1901
|
-
*
|
|
2348
|
+
*
|
|
1902
2349
|
* @type {string}
|
|
1903
2350
|
* @memberof ManagerCancelBookingResponseBooking
|
|
1904
2351
|
*/
|
|
1905
|
-
'id'
|
|
2352
|
+
'id'?: string;
|
|
1906
2353
|
/**
|
|
1907
|
-
*
|
|
2354
|
+
*
|
|
1908
2355
|
* @type {string}
|
|
1909
2356
|
* @memberof ManagerCancelBookingResponseBooking
|
|
1910
2357
|
*/
|
|
1911
|
-
'status'
|
|
2358
|
+
'status'?: ManagerCancelBookingResponseBookingStatusEnum;
|
|
1912
2359
|
/**
|
|
1913
|
-
*
|
|
2360
|
+
*
|
|
1914
2361
|
* @type {string}
|
|
1915
2362
|
* @memberof ManagerCancelBookingResponseBooking
|
|
1916
2363
|
*/
|
|
1917
|
-
'cancellationReason'
|
|
2364
|
+
'cancellationReason'?: string;
|
|
1918
2365
|
/**
|
|
1919
|
-
*
|
|
2366
|
+
*
|
|
1920
2367
|
* @type {string}
|
|
1921
2368
|
* @memberof ManagerCancelBookingResponseBooking
|
|
1922
2369
|
*/
|
|
1923
|
-
'cancelledAt'
|
|
2370
|
+
'cancelledAt'?: string;
|
|
1924
2371
|
/**
|
|
1925
|
-
*
|
|
2372
|
+
*
|
|
1926
2373
|
* @type {string}
|
|
1927
2374
|
* @memberof ManagerCancelBookingResponseBooking
|
|
1928
2375
|
*/
|
|
1929
|
-
'cancelledBy'
|
|
2376
|
+
'cancelledBy'?: string;
|
|
1930
2377
|
/**
|
|
1931
|
-
*
|
|
2378
|
+
*
|
|
1932
2379
|
* @type {boolean}
|
|
1933
2380
|
* @memberof ManagerCancelBookingResponseBooking
|
|
1934
2381
|
*/
|
|
1935
|
-
'cancelledByManager'
|
|
2382
|
+
'cancelledByManager'?: boolean;
|
|
1936
2383
|
}
|
|
1937
2384
|
|
|
1938
2385
|
export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
@@ -1941,6 +2388,174 @@ export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
|
1941
2388
|
|
|
1942
2389
|
export type ManagerCancelBookingResponseBookingStatusEnum = typeof ManagerCancelBookingResponseBookingStatusEnum[keyof typeof ManagerCancelBookingResponseBookingStatusEnum];
|
|
1943
2390
|
|
|
2391
|
+
/**
|
|
2392
|
+
*
|
|
2393
|
+
* @export
|
|
2394
|
+
* @interface MonthlyTurnoverResponse
|
|
2395
|
+
*/
|
|
2396
|
+
export interface MonthlyTurnoverResponse {
|
|
2397
|
+
/**
|
|
2398
|
+
*
|
|
2399
|
+
* @type {number}
|
|
2400
|
+
* @memberof MonthlyTurnoverResponse
|
|
2401
|
+
*/
|
|
2402
|
+
'year'?: number;
|
|
2403
|
+
/**
|
|
2404
|
+
*
|
|
2405
|
+
* @type {number}
|
|
2406
|
+
* @memberof MonthlyTurnoverResponse
|
|
2407
|
+
*/
|
|
2408
|
+
'month'?: number;
|
|
2409
|
+
/**
|
|
2410
|
+
*
|
|
2411
|
+
* @type {number}
|
|
2412
|
+
* @memberof MonthlyTurnoverResponse
|
|
2413
|
+
*/
|
|
2414
|
+
'totalTurnover'?: number;
|
|
2415
|
+
/**
|
|
2416
|
+
*
|
|
2417
|
+
* @type {number}
|
|
2418
|
+
* @memberof MonthlyTurnoverResponse
|
|
2419
|
+
*/
|
|
2420
|
+
'invoiceCount'?: number;
|
|
2421
|
+
/**
|
|
2422
|
+
*
|
|
2423
|
+
* @type {string}
|
|
2424
|
+
* @memberof MonthlyTurnoverResponse
|
|
2425
|
+
*/
|
|
2426
|
+
'period'?: string;
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
*
|
|
2430
|
+
* @export
|
|
2431
|
+
* @interface NoShowFeeResponse
|
|
2432
|
+
*/
|
|
2433
|
+
export interface NoShowFeeResponse {
|
|
2434
|
+
/**
|
|
2435
|
+
*
|
|
2436
|
+
* @type {string}
|
|
2437
|
+
* @memberof NoShowFeeResponse
|
|
2438
|
+
*/
|
|
2439
|
+
'message'?: string;
|
|
2440
|
+
/**
|
|
2441
|
+
*
|
|
2442
|
+
* @type {number}
|
|
2443
|
+
* @memberof NoShowFeeResponse
|
|
2444
|
+
*/
|
|
2445
|
+
'totalExpected'?: number;
|
|
2446
|
+
/**
|
|
2447
|
+
*
|
|
2448
|
+
* @type {number}
|
|
2449
|
+
* @memberof NoShowFeeResponse
|
|
2450
|
+
*/
|
|
2451
|
+
'totalCaptured'?: number;
|
|
2452
|
+
/**
|
|
2453
|
+
*
|
|
2454
|
+
* @type {number}
|
|
2455
|
+
* @memberof NoShowFeeResponse
|
|
2456
|
+
*/
|
|
2457
|
+
'missingAmount'?: number;
|
|
2458
|
+
/**
|
|
2459
|
+
*
|
|
2460
|
+
* @type {Array<NoShowFeeResponseCaptureResultsInner>}
|
|
2461
|
+
* @memberof NoShowFeeResponse
|
|
2462
|
+
*/
|
|
2463
|
+
'captureResults'?: Array<NoShowFeeResponseCaptureResultsInner>;
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @type {NoShowFeeResponseCreatorChargeResult}
|
|
2467
|
+
* @memberof NoShowFeeResponse
|
|
2468
|
+
*/
|
|
2469
|
+
'creatorChargeResult'?: NoShowFeeResponseCreatorChargeResult;
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
*
|
|
2473
|
+
* @export
|
|
2474
|
+
* @interface NoShowFeeResponseCaptureResultsInner
|
|
2475
|
+
*/
|
|
2476
|
+
export interface NoShowFeeResponseCaptureResultsInner {
|
|
2477
|
+
/**
|
|
2478
|
+
*
|
|
2479
|
+
* @type {string}
|
|
2480
|
+
* @memberof NoShowFeeResponseCaptureResultsInner
|
|
2481
|
+
*/
|
|
2482
|
+
'type'?: NoShowFeeResponseCaptureResultsInnerTypeEnum;
|
|
2483
|
+
/**
|
|
2484
|
+
*
|
|
2485
|
+
* @type {string}
|
|
2486
|
+
* @memberof NoShowFeeResponseCaptureResultsInner
|
|
2487
|
+
*/
|
|
2488
|
+
'playerId'?: string;
|
|
2489
|
+
/**
|
|
2490
|
+
*
|
|
2491
|
+
* @type {string}
|
|
2492
|
+
* @memberof NoShowFeeResponseCaptureResultsInner
|
|
2493
|
+
*/
|
|
2494
|
+
'paymentIntentId'?: string;
|
|
2495
|
+
/**
|
|
2496
|
+
*
|
|
2497
|
+
* @type {number}
|
|
2498
|
+
* @memberof NoShowFeeResponseCaptureResultsInner
|
|
2499
|
+
*/
|
|
2500
|
+
'amount'?: number;
|
|
2501
|
+
/**
|
|
2502
|
+
*
|
|
2503
|
+
* @type {string}
|
|
2504
|
+
* @memberof NoShowFeeResponseCaptureResultsInner
|
|
2505
|
+
*/
|
|
2506
|
+
'status'?: NoShowFeeResponseCaptureResultsInnerStatusEnum;
|
|
2507
|
+
/**
|
|
2508
|
+
*
|
|
2509
|
+
* @type {string}
|
|
2510
|
+
* @memberof NoShowFeeResponseCaptureResultsInner
|
|
2511
|
+
*/
|
|
2512
|
+
'error'?: string;
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
export const NoShowFeeResponseCaptureResultsInnerTypeEnum = {
|
|
2516
|
+
CreatorPayment: 'creator_payment',
|
|
2517
|
+
PlayerPayment: 'player_payment'
|
|
2518
|
+
} as const;
|
|
2519
|
+
|
|
2520
|
+
export type NoShowFeeResponseCaptureResultsInnerTypeEnum = typeof NoShowFeeResponseCaptureResultsInnerTypeEnum[keyof typeof NoShowFeeResponseCaptureResultsInnerTypeEnum];
|
|
2521
|
+
export const NoShowFeeResponseCaptureResultsInnerStatusEnum = {
|
|
2522
|
+
Captured: 'captured',
|
|
2523
|
+
Failed: 'failed'
|
|
2524
|
+
} as const;
|
|
2525
|
+
|
|
2526
|
+
export type NoShowFeeResponseCaptureResultsInnerStatusEnum = typeof NoShowFeeResponseCaptureResultsInnerStatusEnum[keyof typeof NoShowFeeResponseCaptureResultsInnerStatusEnum];
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
*
|
|
2530
|
+
* @export
|
|
2531
|
+
* @interface NoShowFeeResponseCreatorChargeResult
|
|
2532
|
+
*/
|
|
2533
|
+
export interface NoShowFeeResponseCreatorChargeResult {
|
|
2534
|
+
/**
|
|
2535
|
+
*
|
|
2536
|
+
* @type {boolean}
|
|
2537
|
+
* @memberof NoShowFeeResponseCreatorChargeResult
|
|
2538
|
+
*/
|
|
2539
|
+
'success'?: boolean;
|
|
2540
|
+
/**
|
|
2541
|
+
*
|
|
2542
|
+
* @type {string}
|
|
2543
|
+
* @memberof NoShowFeeResponseCreatorChargeResult
|
|
2544
|
+
*/
|
|
2545
|
+
'paymentIntentId'?: string;
|
|
2546
|
+
/**
|
|
2547
|
+
*
|
|
2548
|
+
* @type {number}
|
|
2549
|
+
* @memberof NoShowFeeResponseCreatorChargeResult
|
|
2550
|
+
*/
|
|
2551
|
+
'amount'?: number;
|
|
2552
|
+
/**
|
|
2553
|
+
*
|
|
2554
|
+
* @type {string}
|
|
2555
|
+
* @memberof NoShowFeeResponseCreatorChargeResult
|
|
2556
|
+
*/
|
|
2557
|
+
'error'?: string;
|
|
2558
|
+
}
|
|
1944
2559
|
/**
|
|
1945
2560
|
* Méthode de paiement
|
|
1946
2561
|
* @export
|
|
@@ -3160,25 +3775,1112 @@ export interface UsersResponse {
|
|
|
3160
3775
|
*/
|
|
3161
3776
|
'total'?: number;
|
|
3162
3777
|
}
|
|
3163
|
-
|
|
3164
3778
|
/**
|
|
3165
|
-
*
|
|
3779
|
+
*
|
|
3166
3780
|
* @export
|
|
3781
|
+
* @interface YearlyTurnoverResponse
|
|
3167
3782
|
*/
|
|
3168
|
-
export
|
|
3169
|
-
|
|
3783
|
+
export interface YearlyTurnoverResponse {
|
|
3784
|
+
/**
|
|
3785
|
+
*
|
|
3786
|
+
* @type {number}
|
|
3787
|
+
* @memberof YearlyTurnoverResponse
|
|
3788
|
+
*/
|
|
3789
|
+
'year'?: number;
|
|
3790
|
+
/**
|
|
3791
|
+
*
|
|
3792
|
+
* @type {number}
|
|
3793
|
+
* @memberof YearlyTurnoverResponse
|
|
3794
|
+
*/
|
|
3795
|
+
'totalTurnover'?: number;
|
|
3796
|
+
/**
|
|
3797
|
+
*
|
|
3798
|
+
* @type {number}
|
|
3799
|
+
* @memberof YearlyTurnoverResponse
|
|
3800
|
+
*/
|
|
3801
|
+
'totalInvoices'?: number;
|
|
3802
|
+
/**
|
|
3803
|
+
*
|
|
3804
|
+
* @type {Array<YearlyTurnoverResponseMonthlyBreakdownInner>}
|
|
3805
|
+
* @memberof YearlyTurnoverResponse
|
|
3806
|
+
*/
|
|
3807
|
+
'monthlyBreakdown'?: Array<YearlyTurnoverResponseMonthlyBreakdownInner>;
|
|
3808
|
+
}
|
|
3809
|
+
/**
|
|
3810
|
+
*
|
|
3811
|
+
* @export
|
|
3812
|
+
* @interface YearlyTurnoverResponseMonthlyBreakdownInner
|
|
3813
|
+
*/
|
|
3814
|
+
export interface YearlyTurnoverResponseMonthlyBreakdownInner {
|
|
3815
|
+
/**
|
|
3816
|
+
*
|
|
3817
|
+
* @type {number}
|
|
3818
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
3819
|
+
*/
|
|
3820
|
+
'month'?: number;
|
|
3821
|
+
/**
|
|
3822
|
+
*
|
|
3823
|
+
* @type {number}
|
|
3824
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
3825
|
+
*/
|
|
3826
|
+
'monthlyTurnover'?: number;
|
|
3827
|
+
/**
|
|
3828
|
+
*
|
|
3829
|
+
* @type {number}
|
|
3830
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
3831
|
+
*/
|
|
3832
|
+
'invoiceCount'?: number;
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* AdminClubSlotsApi - axios parameter creator
|
|
3837
|
+
* @export
|
|
3838
|
+
*/
|
|
3839
|
+
export const AdminClubSlotsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3840
|
+
return {
|
|
3841
|
+
/**
|
|
3842
|
+
*
|
|
3843
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
3844
|
+
* @param {string} id ID du club
|
|
3845
|
+
* @param {*} [options] Override http request option.
|
|
3846
|
+
* @throws {RequiredError}
|
|
3847
|
+
*/
|
|
3848
|
+
generateSlotsForNextThreeWeeks: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3849
|
+
// verify required parameter 'id' is not null or undefined
|
|
3850
|
+
assertParamExists('generateSlotsForNextThreeWeeks', 'id', id)
|
|
3851
|
+
const localVarPath = `/api/clubs/{id}/generate-slots`
|
|
3852
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3853
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3854
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3855
|
+
let baseOptions;
|
|
3856
|
+
if (configuration) {
|
|
3857
|
+
baseOptions = configuration.baseOptions;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3861
|
+
const localVarHeaderParameter = {} as any;
|
|
3862
|
+
const localVarQueryParameter = {} as any;
|
|
3863
|
+
|
|
3864
|
+
// authentication bearerAuth required
|
|
3865
|
+
// http bearer authentication required
|
|
3866
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3867
|
+
|
|
3868
|
+
|
|
3869
|
+
|
|
3870
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3871
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3872
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3873
|
+
|
|
3874
|
+
return {
|
|
3875
|
+
url: toPathString(localVarUrlObj),
|
|
3876
|
+
options: localVarRequestOptions,
|
|
3877
|
+
};
|
|
3878
|
+
},
|
|
3879
|
+
}
|
|
3880
|
+
};
|
|
3881
|
+
|
|
3882
|
+
/**
|
|
3883
|
+
* AdminClubSlotsApi - functional programming interface
|
|
3884
|
+
* @export
|
|
3885
|
+
*/
|
|
3886
|
+
export const AdminClubSlotsApiFp = function(configuration?: Configuration) {
|
|
3887
|
+
const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration)
|
|
3888
|
+
return {
|
|
3889
|
+
/**
|
|
3890
|
+
*
|
|
3891
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
3892
|
+
* @param {string} id ID du club
|
|
3893
|
+
* @param {*} [options] Override http request option.
|
|
3894
|
+
* @throws {RequiredError}
|
|
3895
|
+
*/
|
|
3896
|
+
async generateSlotsForNextThreeWeeks(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateSlotsResponse>> {
|
|
3897
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
|
|
3898
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3899
|
+
const localVarOperationServerBasePath = operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']?.[localVarOperationServerIndex]?.url;
|
|
3900
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3901
|
+
},
|
|
3902
|
+
}
|
|
3903
|
+
};
|
|
3904
|
+
|
|
3905
|
+
/**
|
|
3906
|
+
* AdminClubSlotsApi - factory interface
|
|
3907
|
+
* @export
|
|
3908
|
+
*/
|
|
3909
|
+
export const AdminClubSlotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3910
|
+
const localVarFp = AdminClubSlotsApiFp(configuration)
|
|
3911
|
+
return {
|
|
3912
|
+
/**
|
|
3913
|
+
*
|
|
3914
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
3915
|
+
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
3916
|
+
* @param {*} [options] Override http request option.
|
|
3917
|
+
* @throws {RequiredError}
|
|
3918
|
+
*/
|
|
3919
|
+
generateSlotsForNextThreeWeeks(requestParameters: AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateSlotsResponse> {
|
|
3920
|
+
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3921
|
+
},
|
|
3922
|
+
};
|
|
3923
|
+
};
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* Request parameters for generateSlotsForNextThreeWeeks operation in AdminClubSlotsApi.
|
|
3927
|
+
* @export
|
|
3928
|
+
* @interface AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest
|
|
3929
|
+
*/
|
|
3930
|
+
export interface AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest {
|
|
3931
|
+
/**
|
|
3932
|
+
* ID du club
|
|
3933
|
+
* @type {string}
|
|
3934
|
+
* @memberof AdminClubSlotsApiGenerateSlotsForNextThreeWeeks
|
|
3935
|
+
*/
|
|
3936
|
+
readonly id: string
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
/**
|
|
3940
|
+
* AdminClubSlotsApi - object-oriented interface
|
|
3941
|
+
* @export
|
|
3942
|
+
* @class AdminClubSlotsApi
|
|
3943
|
+
* @extends {BaseAPI}
|
|
3944
|
+
*/
|
|
3945
|
+
export class AdminClubSlotsApi extends BaseAPI {
|
|
3946
|
+
/**
|
|
3947
|
+
*
|
|
3948
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
3949
|
+
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
3950
|
+
* @param {*} [options] Override http request option.
|
|
3951
|
+
* @throws {RequiredError}
|
|
3952
|
+
* @memberof AdminClubSlotsApi
|
|
3953
|
+
*/
|
|
3954
|
+
public generateSlotsForNextThreeWeeks(requestParameters: AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig) {
|
|
3955
|
+
return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* AdminClubsApi - axios parameter creator
|
|
3963
|
+
* @export
|
|
3964
|
+
*/
|
|
3965
|
+
export const AdminClubsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3966
|
+
return {
|
|
3967
|
+
/**
|
|
3968
|
+
*
|
|
3969
|
+
* @summary Créer un nouveau club (Admin uniquement)
|
|
3970
|
+
* @param {CreateClubRequest} createClubRequest
|
|
3971
|
+
* @param {*} [options] Override http request option.
|
|
3972
|
+
* @throws {RequiredError}
|
|
3973
|
+
*/
|
|
3974
|
+
createClub: async (createClubRequest: CreateClubRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3975
|
+
// verify required parameter 'createClubRequest' is not null or undefined
|
|
3976
|
+
assertParamExists('createClub', 'createClubRequest', createClubRequest)
|
|
3977
|
+
const localVarPath = `/api/clubs`;
|
|
3978
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3979
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3980
|
+
let baseOptions;
|
|
3981
|
+
if (configuration) {
|
|
3982
|
+
baseOptions = configuration.baseOptions;
|
|
3983
|
+
}
|
|
3984
|
+
|
|
3985
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3986
|
+
const localVarHeaderParameter = {} as any;
|
|
3987
|
+
const localVarQueryParameter = {} as any;
|
|
3988
|
+
|
|
3989
|
+
// authentication bearerAuth required
|
|
3990
|
+
// http bearer authentication required
|
|
3991
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3992
|
+
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3996
|
+
|
|
3997
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3998
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3999
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4000
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createClubRequest, localVarRequestOptions, configuration)
|
|
4001
|
+
|
|
4002
|
+
return {
|
|
4003
|
+
url: toPathString(localVarUrlObj),
|
|
4004
|
+
options: localVarRequestOptions,
|
|
4005
|
+
};
|
|
4006
|
+
},
|
|
4007
|
+
/**
|
|
4008
|
+
*
|
|
4009
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
4010
|
+
* @param {*} [options] Override http request option.
|
|
4011
|
+
* @throws {RequiredError}
|
|
4012
|
+
*/
|
|
4013
|
+
getAllClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4014
|
+
const localVarPath = `/api/clubs`;
|
|
4015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4016
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4017
|
+
let baseOptions;
|
|
4018
|
+
if (configuration) {
|
|
4019
|
+
baseOptions = configuration.baseOptions;
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4023
|
+
const localVarHeaderParameter = {} as any;
|
|
4024
|
+
const localVarQueryParameter = {} as any;
|
|
4025
|
+
|
|
4026
|
+
// authentication bearerAuth required
|
|
4027
|
+
// http bearer authentication required
|
|
4028
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4029
|
+
|
|
4030
|
+
|
|
4031
|
+
|
|
4032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4034
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4035
|
+
|
|
4036
|
+
return {
|
|
4037
|
+
url: toPathString(localVarUrlObj),
|
|
4038
|
+
options: localVarRequestOptions,
|
|
4039
|
+
};
|
|
4040
|
+
},
|
|
4041
|
+
}
|
|
4042
|
+
};
|
|
4043
|
+
|
|
4044
|
+
/**
|
|
4045
|
+
* AdminClubsApi - functional programming interface
|
|
4046
|
+
* @export
|
|
4047
|
+
*/
|
|
4048
|
+
export const AdminClubsApiFp = function(configuration?: Configuration) {
|
|
4049
|
+
const localVarAxiosParamCreator = AdminClubsApiAxiosParamCreator(configuration)
|
|
4050
|
+
return {
|
|
4051
|
+
/**
|
|
4052
|
+
*
|
|
4053
|
+
* @summary Créer un nouveau club (Admin uniquement)
|
|
4054
|
+
* @param {CreateClubRequest} createClubRequest
|
|
4055
|
+
* @param {*} [options] Override http request option.
|
|
4056
|
+
* @throws {RequiredError}
|
|
4057
|
+
*/
|
|
4058
|
+
async createClub(createClubRequest: CreateClubRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubResponse>> {
|
|
4059
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClub(createClubRequest, options);
|
|
4060
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4061
|
+
const localVarOperationServerBasePath = operationServerMap['AdminClubsApi.createClub']?.[localVarOperationServerIndex]?.url;
|
|
4062
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4063
|
+
},
|
|
4064
|
+
/**
|
|
4065
|
+
*
|
|
4066
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
4067
|
+
* @param {*} [options] Override http request option.
|
|
4068
|
+
* @throws {RequiredError}
|
|
4069
|
+
*/
|
|
4070
|
+
async getAllClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubsResponse>> {
|
|
4071
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllClubs(options);
|
|
4072
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4073
|
+
const localVarOperationServerBasePath = operationServerMap['AdminClubsApi.getAllClubs']?.[localVarOperationServerIndex]?.url;
|
|
4074
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4075
|
+
},
|
|
4076
|
+
}
|
|
4077
|
+
};
|
|
4078
|
+
|
|
4079
|
+
/**
|
|
4080
|
+
* AdminClubsApi - factory interface
|
|
4081
|
+
* @export
|
|
4082
|
+
*/
|
|
4083
|
+
export const AdminClubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4084
|
+
const localVarFp = AdminClubsApiFp(configuration)
|
|
4085
|
+
return {
|
|
4086
|
+
/**
|
|
4087
|
+
*
|
|
4088
|
+
* @summary Créer un nouveau club (Admin uniquement)
|
|
4089
|
+
* @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
|
|
4090
|
+
* @param {*} [options] Override http request option.
|
|
4091
|
+
* @throws {RequiredError}
|
|
4092
|
+
*/
|
|
4093
|
+
createClub(requestParameters: AdminClubsApiCreateClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubResponse> {
|
|
4094
|
+
return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
|
|
4095
|
+
},
|
|
4096
|
+
/**
|
|
4097
|
+
*
|
|
4098
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
4099
|
+
* @param {*} [options] Override http request option.
|
|
4100
|
+
* @throws {RequiredError}
|
|
4101
|
+
*/
|
|
4102
|
+
getAllClubs(options?: RawAxiosRequestConfig): AxiosPromise<ClubsResponse> {
|
|
4103
|
+
return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
|
|
4104
|
+
},
|
|
4105
|
+
};
|
|
4106
|
+
};
|
|
4107
|
+
|
|
4108
|
+
/**
|
|
4109
|
+
* Request parameters for createClub operation in AdminClubsApi.
|
|
4110
|
+
* @export
|
|
4111
|
+
* @interface AdminClubsApiCreateClubRequest
|
|
4112
|
+
*/
|
|
4113
|
+
export interface AdminClubsApiCreateClubRequest {
|
|
4114
|
+
/**
|
|
4115
|
+
*
|
|
4116
|
+
* @type {CreateClubRequest}
|
|
4117
|
+
* @memberof AdminClubsApiCreateClub
|
|
4118
|
+
*/
|
|
4119
|
+
readonly createClubRequest: CreateClubRequest
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4122
|
+
/**
|
|
4123
|
+
* AdminClubsApi - object-oriented interface
|
|
4124
|
+
* @export
|
|
4125
|
+
* @class AdminClubsApi
|
|
4126
|
+
* @extends {BaseAPI}
|
|
4127
|
+
*/
|
|
4128
|
+
export class AdminClubsApi extends BaseAPI {
|
|
4129
|
+
/**
|
|
4130
|
+
*
|
|
4131
|
+
* @summary Créer un nouveau club (Admin uniquement)
|
|
4132
|
+
* @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
|
|
4133
|
+
* @param {*} [options] Override http request option.
|
|
4134
|
+
* @throws {RequiredError}
|
|
4135
|
+
* @memberof AdminClubsApi
|
|
4136
|
+
*/
|
|
4137
|
+
public createClub(requestParameters: AdminClubsApiCreateClubRequest, options?: RawAxiosRequestConfig) {
|
|
4138
|
+
return AdminClubsApiFp(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4139
|
+
}
|
|
4140
|
+
|
|
4141
|
+
/**
|
|
4142
|
+
*
|
|
4143
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
4144
|
+
* @param {*} [options] Override http request option.
|
|
4145
|
+
* @throws {RequiredError}
|
|
4146
|
+
* @memberof AdminClubsApi
|
|
4147
|
+
*/
|
|
4148
|
+
public getAllClubs(options?: RawAxiosRequestConfig) {
|
|
4149
|
+
return AdminClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
|
|
4150
|
+
}
|
|
4151
|
+
}
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
/**
|
|
4156
|
+
* BookingsApi - axios parameter creator
|
|
4157
|
+
* @export
|
|
4158
|
+
*/
|
|
4159
|
+
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4160
|
+
return {
|
|
4161
|
+
/**
|
|
4162
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
4163
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
4164
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
4165
|
+
* @param {CancelBookingRequest} cancelBookingRequest
|
|
4166
|
+
* @param {*} [options] Override http request option.
|
|
4167
|
+
* @throws {RequiredError}
|
|
4168
|
+
*/
|
|
4169
|
+
cancelBooking: async (bookingId: string, cancelBookingRequest: CancelBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4170
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
4171
|
+
assertParamExists('cancelBooking', 'bookingId', bookingId)
|
|
4172
|
+
// verify required parameter 'cancelBookingRequest' is not null or undefined
|
|
4173
|
+
assertParamExists('cancelBooking', 'cancelBookingRequest', cancelBookingRequest)
|
|
4174
|
+
const localVarPath = `/api/bookings/{bookingId}/cancel`
|
|
4175
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
4176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4177
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4178
|
+
let baseOptions;
|
|
4179
|
+
if (configuration) {
|
|
4180
|
+
baseOptions = configuration.baseOptions;
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4184
|
+
const localVarHeaderParameter = {} as any;
|
|
4185
|
+
const localVarQueryParameter = {} as any;
|
|
4186
|
+
|
|
4187
|
+
// authentication bearerAuth required
|
|
4188
|
+
// http bearer authentication required
|
|
4189
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4190
|
+
|
|
4191
|
+
|
|
4192
|
+
|
|
4193
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4194
|
+
|
|
4195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4197
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4198
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cancelBookingRequest, localVarRequestOptions, configuration)
|
|
4199
|
+
|
|
4200
|
+
return {
|
|
4201
|
+
url: toPathString(localVarUrlObj),
|
|
4202
|
+
options: localVarRequestOptions,
|
|
4203
|
+
};
|
|
4204
|
+
},
|
|
4205
|
+
}
|
|
4206
|
+
};
|
|
4207
|
+
|
|
4208
|
+
/**
|
|
4209
|
+
* BookingsApi - functional programming interface
|
|
4210
|
+
* @export
|
|
4211
|
+
*/
|
|
4212
|
+
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
4213
|
+
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
4214
|
+
return {
|
|
4215
|
+
/**
|
|
4216
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
4217
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
4218
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
4219
|
+
* @param {CancelBookingRequest} cancelBookingRequest
|
|
4220
|
+
* @param {*} [options] Override http request option.
|
|
4221
|
+
* @throws {RequiredError}
|
|
4222
|
+
*/
|
|
4223
|
+
async cancelBooking(bookingId: string, cancelBookingRequest: CancelBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelBookingResponse>> {
|
|
4224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelBooking(bookingId, cancelBookingRequest, options);
|
|
4225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4226
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.cancelBooking']?.[localVarOperationServerIndex]?.url;
|
|
4227
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4228
|
+
},
|
|
4229
|
+
}
|
|
4230
|
+
};
|
|
4231
|
+
|
|
4232
|
+
/**
|
|
4233
|
+
* BookingsApi - factory interface
|
|
4234
|
+
* @export
|
|
4235
|
+
*/
|
|
4236
|
+
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4237
|
+
const localVarFp = BookingsApiFp(configuration)
|
|
4238
|
+
return {
|
|
4239
|
+
/**
|
|
4240
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
4241
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
4242
|
+
* @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
|
|
4243
|
+
* @param {*} [options] Override http request option.
|
|
4244
|
+
* @throws {RequiredError}
|
|
4245
|
+
*/
|
|
4246
|
+
cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelBookingResponse> {
|
|
4247
|
+
return localVarFp.cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(axios, basePath));
|
|
4248
|
+
},
|
|
4249
|
+
};
|
|
4250
|
+
};
|
|
4251
|
+
|
|
4252
|
+
/**
|
|
4253
|
+
* Request parameters for cancelBooking operation in BookingsApi.
|
|
4254
|
+
* @export
|
|
4255
|
+
* @interface BookingsApiCancelBookingRequest
|
|
4256
|
+
*/
|
|
4257
|
+
export interface BookingsApiCancelBookingRequest {
|
|
4258
|
+
/**
|
|
4259
|
+
* ID MongoDB de la réservation à annuler
|
|
4260
|
+
* @type {string}
|
|
4261
|
+
* @memberof BookingsApiCancelBooking
|
|
4262
|
+
*/
|
|
4263
|
+
readonly bookingId: string
|
|
4264
|
+
|
|
4265
|
+
/**
|
|
4266
|
+
*
|
|
4267
|
+
* @type {CancelBookingRequest}
|
|
4268
|
+
* @memberof BookingsApiCancelBooking
|
|
4269
|
+
*/
|
|
4270
|
+
readonly cancelBookingRequest: CancelBookingRequest
|
|
4271
|
+
}
|
|
4272
|
+
|
|
4273
|
+
/**
|
|
4274
|
+
* BookingsApi - object-oriented interface
|
|
4275
|
+
* @export
|
|
4276
|
+
* @class BookingsApi
|
|
4277
|
+
* @extends {BaseAPI}
|
|
4278
|
+
*/
|
|
4279
|
+
export class BookingsApi extends BaseAPI {
|
|
4280
|
+
/**
|
|
4281
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
4282
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
4283
|
+
* @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
|
|
4284
|
+
* @param {*} [options] Override http request option.
|
|
4285
|
+
* @throws {RequiredError}
|
|
4286
|
+
* @memberof BookingsApi
|
|
4287
|
+
*/
|
|
4288
|
+
public cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig) {
|
|
4289
|
+
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
|
|
4293
|
+
|
|
4294
|
+
|
|
4295
|
+
/**
|
|
4296
|
+
* ClubAnalyticsApi - axios parameter creator
|
|
4297
|
+
* @export
|
|
4298
|
+
*/
|
|
4299
|
+
export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4300
|
+
return {
|
|
4301
|
+
/**
|
|
4302
|
+
*
|
|
4303
|
+
* @summary Chiffre d\'affaires quotidien
|
|
4304
|
+
* @param {string} id ID du club
|
|
4305
|
+
* @param {string} date Date (format YYYY-MM-DD)
|
|
4306
|
+
* @param {*} [options] Override http request option.
|
|
4307
|
+
* @throws {RequiredError}
|
|
4308
|
+
*/
|
|
4309
|
+
getDailyTurnOver: async (id: string, date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4310
|
+
// verify required parameter 'id' is not null or undefined
|
|
4311
|
+
assertParamExists('getDailyTurnOver', 'id', id)
|
|
4312
|
+
// verify required parameter 'date' is not null or undefined
|
|
4313
|
+
assertParamExists('getDailyTurnOver', 'date', date)
|
|
4314
|
+
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
4315
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4316
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4317
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4318
|
+
let baseOptions;
|
|
4319
|
+
if (configuration) {
|
|
4320
|
+
baseOptions = configuration.baseOptions;
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4324
|
+
const localVarHeaderParameter = {} as any;
|
|
4325
|
+
const localVarQueryParameter = {} as any;
|
|
4326
|
+
|
|
4327
|
+
// authentication bearerAuth required
|
|
4328
|
+
// http bearer authentication required
|
|
4329
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4330
|
+
|
|
4331
|
+
if (date !== undefined) {
|
|
4332
|
+
localVarQueryParameter['date'] = (date as any instanceof Date) ?
|
|
4333
|
+
(date as any).toISOString().substring(0,10) :
|
|
4334
|
+
date;
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
|
|
4338
|
+
|
|
4339
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4341
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4342
|
+
|
|
4343
|
+
return {
|
|
4344
|
+
url: toPathString(localVarUrlObj),
|
|
4345
|
+
options: localVarRequestOptions,
|
|
4346
|
+
};
|
|
4347
|
+
},
|
|
4348
|
+
/**
|
|
4349
|
+
*
|
|
4350
|
+
* @summary Récupérer les factures du club
|
|
4351
|
+
* @param {string} id ID du club
|
|
4352
|
+
* @param {number} [page] Numéro de page
|
|
4353
|
+
* @param {number} [limit] Nombre d\'éléments par page
|
|
4354
|
+
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
4355
|
+
* @param {string} [startDate] Date de début (ISO format)
|
|
4356
|
+
* @param {string} [endDate] Date de fin (ISO format)
|
|
4357
|
+
* @param {*} [options] Override http request option.
|
|
4358
|
+
* @throws {RequiredError}
|
|
4359
|
+
*/
|
|
4360
|
+
getInvoices: async (id: string, page?: number, limit?: number, status?: GetInvoicesStatusEnum, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4361
|
+
// verify required parameter 'id' is not null or undefined
|
|
4362
|
+
assertParamExists('getInvoices', 'id', id)
|
|
4363
|
+
const localVarPath = `/api/clubs/{id}/invoices`
|
|
4364
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4365
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4366
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4367
|
+
let baseOptions;
|
|
4368
|
+
if (configuration) {
|
|
4369
|
+
baseOptions = configuration.baseOptions;
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4373
|
+
const localVarHeaderParameter = {} as any;
|
|
4374
|
+
const localVarQueryParameter = {} as any;
|
|
4375
|
+
|
|
4376
|
+
// authentication bearerAuth required
|
|
4377
|
+
// http bearer authentication required
|
|
4378
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4379
|
+
|
|
4380
|
+
if (page !== undefined) {
|
|
4381
|
+
localVarQueryParameter['page'] = page;
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
if (limit !== undefined) {
|
|
4385
|
+
localVarQueryParameter['limit'] = limit;
|
|
4386
|
+
}
|
|
4387
|
+
|
|
4388
|
+
if (status !== undefined) {
|
|
4389
|
+
localVarQueryParameter['status'] = status;
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
if (startDate !== undefined) {
|
|
4393
|
+
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
4394
|
+
(startDate as any).toISOString() :
|
|
4395
|
+
startDate;
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
if (endDate !== undefined) {
|
|
4399
|
+
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
4400
|
+
(endDate as any).toISOString() :
|
|
4401
|
+
endDate;
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
|
|
4405
|
+
|
|
4406
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4408
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4409
|
+
|
|
4410
|
+
return {
|
|
4411
|
+
url: toPathString(localVarUrlObj),
|
|
4412
|
+
options: localVarRequestOptions,
|
|
4413
|
+
};
|
|
4414
|
+
},
|
|
4415
|
+
/**
|
|
4416
|
+
*
|
|
4417
|
+
* @summary Chiffre d\'affaires mensuel
|
|
4418
|
+
* @param {string} id ID du club
|
|
4419
|
+
* @param {number} year Année
|
|
4420
|
+
* @param {number} month Mois (1-12)
|
|
4421
|
+
* @param {*} [options] Override http request option.
|
|
4422
|
+
* @throws {RequiredError}
|
|
4423
|
+
*/
|
|
4424
|
+
getMonthlyTurnOver: async (id: string, year: number, month: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4425
|
+
// verify required parameter 'id' is not null or undefined
|
|
4426
|
+
assertParamExists('getMonthlyTurnOver', 'id', id)
|
|
4427
|
+
// verify required parameter 'year' is not null or undefined
|
|
4428
|
+
assertParamExists('getMonthlyTurnOver', 'year', year)
|
|
4429
|
+
// verify required parameter 'month' is not null or undefined
|
|
4430
|
+
assertParamExists('getMonthlyTurnOver', 'month', month)
|
|
4431
|
+
const localVarPath = `/api/clubs/{id}/turnover/monthly`
|
|
4432
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4433
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4434
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4435
|
+
let baseOptions;
|
|
4436
|
+
if (configuration) {
|
|
4437
|
+
baseOptions = configuration.baseOptions;
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4441
|
+
const localVarHeaderParameter = {} as any;
|
|
4442
|
+
const localVarQueryParameter = {} as any;
|
|
4443
|
+
|
|
4444
|
+
// authentication bearerAuth required
|
|
4445
|
+
// http bearer authentication required
|
|
4446
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4447
|
+
|
|
4448
|
+
if (year !== undefined) {
|
|
4449
|
+
localVarQueryParameter['year'] = year;
|
|
4450
|
+
}
|
|
4451
|
+
|
|
4452
|
+
if (month !== undefined) {
|
|
4453
|
+
localVarQueryParameter['month'] = month;
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
|
|
4457
|
+
|
|
4458
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4460
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4461
|
+
|
|
4462
|
+
return {
|
|
4463
|
+
url: toPathString(localVarUrlObj),
|
|
4464
|
+
options: localVarRequestOptions,
|
|
4465
|
+
};
|
|
4466
|
+
},
|
|
4467
|
+
/**
|
|
4468
|
+
*
|
|
4469
|
+
* @summary Chiffre d\'affaires annuel
|
|
4470
|
+
* @param {string} id ID du club
|
|
4471
|
+
* @param {number} year Année
|
|
4472
|
+
* @param {*} [options] Override http request option.
|
|
4473
|
+
* @throws {RequiredError}
|
|
4474
|
+
*/
|
|
4475
|
+
getYearlyTurnOver: async (id: string, year: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4476
|
+
// verify required parameter 'id' is not null or undefined
|
|
4477
|
+
assertParamExists('getYearlyTurnOver', 'id', id)
|
|
4478
|
+
// verify required parameter 'year' is not null or undefined
|
|
4479
|
+
assertParamExists('getYearlyTurnOver', 'year', year)
|
|
4480
|
+
const localVarPath = `/api/clubs/{id}/turnover/yearly`
|
|
4481
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4482
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4483
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4484
|
+
let baseOptions;
|
|
4485
|
+
if (configuration) {
|
|
4486
|
+
baseOptions = configuration.baseOptions;
|
|
4487
|
+
}
|
|
4488
|
+
|
|
4489
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4490
|
+
const localVarHeaderParameter = {} as any;
|
|
4491
|
+
const localVarQueryParameter = {} as any;
|
|
4492
|
+
|
|
4493
|
+
// authentication bearerAuth required
|
|
4494
|
+
// http bearer authentication required
|
|
4495
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4496
|
+
|
|
4497
|
+
if (year !== undefined) {
|
|
4498
|
+
localVarQueryParameter['year'] = year;
|
|
4499
|
+
}
|
|
4500
|
+
|
|
4501
|
+
|
|
4502
|
+
|
|
4503
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4504
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4505
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4506
|
+
|
|
4507
|
+
return {
|
|
4508
|
+
url: toPathString(localVarUrlObj),
|
|
4509
|
+
options: localVarRequestOptions,
|
|
4510
|
+
};
|
|
4511
|
+
},
|
|
4512
|
+
}
|
|
4513
|
+
};
|
|
4514
|
+
|
|
4515
|
+
/**
|
|
4516
|
+
* ClubAnalyticsApi - functional programming interface
|
|
4517
|
+
* @export
|
|
4518
|
+
*/
|
|
4519
|
+
export const ClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
4520
|
+
const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration)
|
|
4521
|
+
return {
|
|
4522
|
+
/**
|
|
4523
|
+
*
|
|
4524
|
+
* @summary Chiffre d\'affaires quotidien
|
|
4525
|
+
* @param {string} id ID du club
|
|
4526
|
+
* @param {string} date Date (format YYYY-MM-DD)
|
|
4527
|
+
* @param {*} [options] Override http request option.
|
|
4528
|
+
* @throws {RequiredError}
|
|
4529
|
+
*/
|
|
4530
|
+
async getDailyTurnOver(id: string, date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DailyTurnoverResponse>> {
|
|
4531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyTurnOver(id, date, options);
|
|
4532
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4533
|
+
const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getDailyTurnOver']?.[localVarOperationServerIndex]?.url;
|
|
4534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4535
|
+
},
|
|
4536
|
+
/**
|
|
4537
|
+
*
|
|
4538
|
+
* @summary Récupérer les factures du club
|
|
4539
|
+
* @param {string} id ID du club
|
|
4540
|
+
* @param {number} [page] Numéro de page
|
|
4541
|
+
* @param {number} [limit] Nombre d\'éléments par page
|
|
4542
|
+
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
4543
|
+
* @param {string} [startDate] Date de début (ISO format)
|
|
4544
|
+
* @param {string} [endDate] Date de fin (ISO format)
|
|
4545
|
+
* @param {*} [options] Override http request option.
|
|
4546
|
+
* @throws {RequiredError}
|
|
4547
|
+
*/
|
|
4548
|
+
async getInvoices(id: string, page?: number, limit?: number, status?: GetInvoicesStatusEnum, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvoicesResponse>> {
|
|
4549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoices(id, page, limit, status, startDate, endDate, options);
|
|
4550
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4551
|
+
const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getInvoices']?.[localVarOperationServerIndex]?.url;
|
|
4552
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4553
|
+
},
|
|
4554
|
+
/**
|
|
4555
|
+
*
|
|
4556
|
+
* @summary Chiffre d\'affaires mensuel
|
|
4557
|
+
* @param {string} id ID du club
|
|
4558
|
+
* @param {number} year Année
|
|
4559
|
+
* @param {number} month Mois (1-12)
|
|
4560
|
+
* @param {*} [options] Override http request option.
|
|
4561
|
+
* @throws {RequiredError}
|
|
4562
|
+
*/
|
|
4563
|
+
async getMonthlyTurnOver(id: string, year: number, month: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MonthlyTurnoverResponse>> {
|
|
4564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyTurnOver(id, year, month, options);
|
|
4565
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4566
|
+
const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']?.[localVarOperationServerIndex]?.url;
|
|
4567
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4568
|
+
},
|
|
4569
|
+
/**
|
|
4570
|
+
*
|
|
4571
|
+
* @summary Chiffre d\'affaires annuel
|
|
4572
|
+
* @param {string} id ID du club
|
|
4573
|
+
* @param {number} year Année
|
|
4574
|
+
* @param {*} [options] Override http request option.
|
|
4575
|
+
* @throws {RequiredError}
|
|
4576
|
+
*/
|
|
4577
|
+
async getYearlyTurnOver(id: string, year: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<YearlyTurnoverResponse>> {
|
|
4578
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getYearlyTurnOver(id, year, options);
|
|
4579
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4580
|
+
const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']?.[localVarOperationServerIndex]?.url;
|
|
4581
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4582
|
+
},
|
|
4583
|
+
}
|
|
4584
|
+
};
|
|
4585
|
+
|
|
4586
|
+
/**
|
|
4587
|
+
* ClubAnalyticsApi - factory interface
|
|
4588
|
+
* @export
|
|
4589
|
+
*/
|
|
4590
|
+
export const ClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4591
|
+
const localVarFp = ClubAnalyticsApiFp(configuration)
|
|
4592
|
+
return {
|
|
4593
|
+
/**
|
|
4594
|
+
*
|
|
4595
|
+
* @summary Chiffre d\'affaires quotidien
|
|
4596
|
+
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
4597
|
+
* @param {*} [options] Override http request option.
|
|
4598
|
+
* @throws {RequiredError}
|
|
4599
|
+
*/
|
|
4600
|
+
getDailyTurnOver(requestParameters: ClubAnalyticsApiGetDailyTurnOverRequest, options?: RawAxiosRequestConfig): AxiosPromise<DailyTurnoverResponse> {
|
|
4601
|
+
return localVarFp.getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
4602
|
+
},
|
|
4603
|
+
/**
|
|
4604
|
+
*
|
|
4605
|
+
* @summary Récupérer les factures du club
|
|
4606
|
+
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
4607
|
+
* @param {*} [options] Override http request option.
|
|
4608
|
+
* @throws {RequiredError}
|
|
4609
|
+
*/
|
|
4610
|
+
getInvoices(requestParameters: ClubAnalyticsApiGetInvoicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<InvoicesResponse> {
|
|
4611
|
+
return localVarFp.getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
4612
|
+
},
|
|
4613
|
+
/**
|
|
4614
|
+
*
|
|
4615
|
+
* @summary Chiffre d\'affaires mensuel
|
|
4616
|
+
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
4617
|
+
* @param {*} [options] Override http request option.
|
|
4618
|
+
* @throws {RequiredError}
|
|
4619
|
+
*/
|
|
4620
|
+
getMonthlyTurnOver(requestParameters: ClubAnalyticsApiGetMonthlyTurnOverRequest, options?: RawAxiosRequestConfig): AxiosPromise<MonthlyTurnoverResponse> {
|
|
4621
|
+
return localVarFp.getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
4622
|
+
},
|
|
4623
|
+
/**
|
|
4624
|
+
*
|
|
4625
|
+
* @summary Chiffre d\'affaires annuel
|
|
4626
|
+
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
4627
|
+
* @param {*} [options] Override http request option.
|
|
4628
|
+
* @throws {RequiredError}
|
|
4629
|
+
*/
|
|
4630
|
+
getYearlyTurnOver(requestParameters: ClubAnalyticsApiGetYearlyTurnOverRequest, options?: RawAxiosRequestConfig): AxiosPromise<YearlyTurnoverResponse> {
|
|
4631
|
+
return localVarFp.getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
4632
|
+
},
|
|
4633
|
+
};
|
|
4634
|
+
};
|
|
4635
|
+
|
|
4636
|
+
/**
|
|
4637
|
+
* Request parameters for getDailyTurnOver operation in ClubAnalyticsApi.
|
|
4638
|
+
* @export
|
|
4639
|
+
* @interface ClubAnalyticsApiGetDailyTurnOverRequest
|
|
4640
|
+
*/
|
|
4641
|
+
export interface ClubAnalyticsApiGetDailyTurnOverRequest {
|
|
4642
|
+
/**
|
|
4643
|
+
* ID du club
|
|
4644
|
+
* @type {string}
|
|
4645
|
+
* @memberof ClubAnalyticsApiGetDailyTurnOver
|
|
4646
|
+
*/
|
|
4647
|
+
readonly id: string
|
|
4648
|
+
|
|
4649
|
+
/**
|
|
4650
|
+
* Date (format YYYY-MM-DD)
|
|
4651
|
+
* @type {string}
|
|
4652
|
+
* @memberof ClubAnalyticsApiGetDailyTurnOver
|
|
4653
|
+
*/
|
|
4654
|
+
readonly date: string
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4657
|
+
/**
|
|
4658
|
+
* Request parameters for getInvoices operation in ClubAnalyticsApi.
|
|
4659
|
+
* @export
|
|
4660
|
+
* @interface ClubAnalyticsApiGetInvoicesRequest
|
|
4661
|
+
*/
|
|
4662
|
+
export interface ClubAnalyticsApiGetInvoicesRequest {
|
|
4663
|
+
/**
|
|
4664
|
+
* ID du club
|
|
4665
|
+
* @type {string}
|
|
4666
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4667
|
+
*/
|
|
4668
|
+
readonly id: string
|
|
4669
|
+
|
|
4670
|
+
/**
|
|
4671
|
+
* Numéro de page
|
|
4672
|
+
* @type {number}
|
|
4673
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4674
|
+
*/
|
|
4675
|
+
readonly page?: number
|
|
4676
|
+
|
|
4677
|
+
/**
|
|
4678
|
+
* Nombre d\'éléments par page
|
|
4679
|
+
* @type {number}
|
|
4680
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4681
|
+
*/
|
|
4682
|
+
readonly limit?: number
|
|
4683
|
+
|
|
4684
|
+
/**
|
|
4685
|
+
* Filtrer par statut
|
|
4686
|
+
* @type {'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'}
|
|
4687
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4688
|
+
*/
|
|
4689
|
+
readonly status?: GetInvoicesStatusEnum
|
|
4690
|
+
|
|
4691
|
+
/**
|
|
4692
|
+
* Date de début (ISO format)
|
|
4693
|
+
* @type {string}
|
|
4694
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4695
|
+
*/
|
|
4696
|
+
readonly startDate?: string
|
|
4697
|
+
|
|
4698
|
+
/**
|
|
4699
|
+
* Date de fin (ISO format)
|
|
4700
|
+
* @type {string}
|
|
4701
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4702
|
+
*/
|
|
4703
|
+
readonly endDate?: string
|
|
4704
|
+
}
|
|
4705
|
+
|
|
4706
|
+
/**
|
|
4707
|
+
* Request parameters for getMonthlyTurnOver operation in ClubAnalyticsApi.
|
|
4708
|
+
* @export
|
|
4709
|
+
* @interface ClubAnalyticsApiGetMonthlyTurnOverRequest
|
|
4710
|
+
*/
|
|
4711
|
+
export interface ClubAnalyticsApiGetMonthlyTurnOverRequest {
|
|
4712
|
+
/**
|
|
4713
|
+
* ID du club
|
|
4714
|
+
* @type {string}
|
|
4715
|
+
* @memberof ClubAnalyticsApiGetMonthlyTurnOver
|
|
4716
|
+
*/
|
|
4717
|
+
readonly id: string
|
|
4718
|
+
|
|
4719
|
+
/**
|
|
4720
|
+
* Année
|
|
4721
|
+
* @type {number}
|
|
4722
|
+
* @memberof ClubAnalyticsApiGetMonthlyTurnOver
|
|
4723
|
+
*/
|
|
4724
|
+
readonly year: number
|
|
4725
|
+
|
|
4726
|
+
/**
|
|
4727
|
+
* Mois (1-12)
|
|
4728
|
+
* @type {number}
|
|
4729
|
+
* @memberof ClubAnalyticsApiGetMonthlyTurnOver
|
|
4730
|
+
*/
|
|
4731
|
+
readonly month: number
|
|
4732
|
+
}
|
|
4733
|
+
|
|
4734
|
+
/**
|
|
4735
|
+
* Request parameters for getYearlyTurnOver operation in ClubAnalyticsApi.
|
|
4736
|
+
* @export
|
|
4737
|
+
* @interface ClubAnalyticsApiGetYearlyTurnOverRequest
|
|
4738
|
+
*/
|
|
4739
|
+
export interface ClubAnalyticsApiGetYearlyTurnOverRequest {
|
|
4740
|
+
/**
|
|
4741
|
+
* ID du club
|
|
4742
|
+
* @type {string}
|
|
4743
|
+
* @memberof ClubAnalyticsApiGetYearlyTurnOver
|
|
4744
|
+
*/
|
|
4745
|
+
readonly id: string
|
|
4746
|
+
|
|
4747
|
+
/**
|
|
4748
|
+
* Année
|
|
4749
|
+
* @type {number}
|
|
4750
|
+
* @memberof ClubAnalyticsApiGetYearlyTurnOver
|
|
4751
|
+
*/
|
|
4752
|
+
readonly year: number
|
|
4753
|
+
}
|
|
4754
|
+
|
|
4755
|
+
/**
|
|
4756
|
+
* ClubAnalyticsApi - object-oriented interface
|
|
4757
|
+
* @export
|
|
4758
|
+
* @class ClubAnalyticsApi
|
|
4759
|
+
* @extends {BaseAPI}
|
|
4760
|
+
*/
|
|
4761
|
+
export class ClubAnalyticsApi extends BaseAPI {
|
|
4762
|
+
/**
|
|
4763
|
+
*
|
|
4764
|
+
* @summary Chiffre d\'affaires quotidien
|
|
4765
|
+
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
4766
|
+
* @param {*} [options] Override http request option.
|
|
4767
|
+
* @throws {RequiredError}
|
|
4768
|
+
* @memberof ClubAnalyticsApi
|
|
4769
|
+
*/
|
|
4770
|
+
public getDailyTurnOver(requestParameters: ClubAnalyticsApiGetDailyTurnOverRequest, options?: RawAxiosRequestConfig) {
|
|
4771
|
+
return ClubAnalyticsApiFp(this.configuration).getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
4772
|
+
}
|
|
4773
|
+
|
|
4774
|
+
/**
|
|
4775
|
+
*
|
|
4776
|
+
* @summary Récupérer les factures du club
|
|
4777
|
+
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
4778
|
+
* @param {*} [options] Override http request option.
|
|
4779
|
+
* @throws {RequiredError}
|
|
4780
|
+
* @memberof ClubAnalyticsApi
|
|
4781
|
+
*/
|
|
4782
|
+
public getInvoices(requestParameters: ClubAnalyticsApiGetInvoicesRequest, options?: RawAxiosRequestConfig) {
|
|
4783
|
+
return ClubAnalyticsApiFp(this.configuration).getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
/**
|
|
4787
|
+
*
|
|
4788
|
+
* @summary Chiffre d\'affaires mensuel
|
|
4789
|
+
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
4790
|
+
* @param {*} [options] Override http request option.
|
|
4791
|
+
* @throws {RequiredError}
|
|
4792
|
+
* @memberof ClubAnalyticsApi
|
|
4793
|
+
*/
|
|
4794
|
+
public getMonthlyTurnOver(requestParameters: ClubAnalyticsApiGetMonthlyTurnOverRequest, options?: RawAxiosRequestConfig) {
|
|
4795
|
+
return ClubAnalyticsApiFp(this.configuration).getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
4796
|
+
}
|
|
4797
|
+
|
|
4798
|
+
/**
|
|
4799
|
+
*
|
|
4800
|
+
* @summary Chiffre d\'affaires annuel
|
|
4801
|
+
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
4802
|
+
* @param {*} [options] Override http request option.
|
|
4803
|
+
* @throws {RequiredError}
|
|
4804
|
+
* @memberof ClubAnalyticsApi
|
|
4805
|
+
*/
|
|
4806
|
+
public getYearlyTurnOver(requestParameters: ClubAnalyticsApiGetYearlyTurnOverRequest, options?: RawAxiosRequestConfig) {
|
|
4807
|
+
return ClubAnalyticsApiFp(this.configuration).getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
|
|
4811
|
+
/**
|
|
4812
|
+
* @export
|
|
4813
|
+
*/
|
|
4814
|
+
export const GetInvoicesStatusEnum = {
|
|
4815
|
+
Pending: 'pending',
|
|
4816
|
+
Paid: 'paid',
|
|
4817
|
+
Failed: 'failed',
|
|
4818
|
+
Authorized: 'authorized',
|
|
4819
|
+
Canceled: 'canceled',
|
|
4820
|
+
Expired: 'expired'
|
|
4821
|
+
} as const;
|
|
4822
|
+
export type GetInvoicesStatusEnum = typeof GetInvoicesStatusEnum[keyof typeof GetInvoicesStatusEnum];
|
|
4823
|
+
|
|
4824
|
+
|
|
4825
|
+
/**
|
|
4826
|
+
* ManagerBookingsApi - axios parameter creator
|
|
4827
|
+
* @export
|
|
4828
|
+
*/
|
|
4829
|
+
export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4830
|
+
return {
|
|
4831
|
+
/**
|
|
4832
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
4833
|
+
* @summary Appliquer les frais de no-show
|
|
4834
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
4835
|
+
* @param {*} [options] Override http request option.
|
|
4836
|
+
* @throws {RequiredError}
|
|
4837
|
+
*/
|
|
4838
|
+
applyNoShowFee: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4839
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
4840
|
+
assertParamExists('applyNoShowFee', 'bookingId', bookingId)
|
|
4841
|
+
const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
|
|
4842
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
4843
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4844
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4845
|
+
let baseOptions;
|
|
4846
|
+
if (configuration) {
|
|
4847
|
+
baseOptions = configuration.baseOptions;
|
|
4848
|
+
}
|
|
4849
|
+
|
|
4850
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4851
|
+
const localVarHeaderParameter = {} as any;
|
|
4852
|
+
const localVarQueryParameter = {} as any;
|
|
4853
|
+
|
|
4854
|
+
// authentication bearerAuth required
|
|
4855
|
+
// http bearer authentication required
|
|
4856
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4857
|
+
|
|
4858
|
+
|
|
4859
|
+
|
|
4860
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4862
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4863
|
+
|
|
4864
|
+
return {
|
|
4865
|
+
url: toPathString(localVarUrlObj),
|
|
4866
|
+
options: localVarRequestOptions,
|
|
4867
|
+
};
|
|
4868
|
+
},
|
|
3170
4869
|
/**
|
|
3171
|
-
*
|
|
3172
|
-
* @summary
|
|
3173
|
-
* @param {string}
|
|
4870
|
+
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
4871
|
+
* @summary Enregistrer l\'arrivée des joueurs
|
|
4872
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
4873
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
3174
4874
|
* @param {*} [options] Override http request option.
|
|
3175
4875
|
* @throws {RequiredError}
|
|
3176
4876
|
*/
|
|
3177
|
-
|
|
3178
|
-
// verify required parameter '
|
|
3179
|
-
assertParamExists('
|
|
3180
|
-
|
|
3181
|
-
|
|
4877
|
+
checkInPlayers: async (bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4878
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
4879
|
+
assertParamExists('checkInPlayers', 'bookingId', bookingId)
|
|
4880
|
+
// verify required parameter 'checkInPlayersRequest' is not null or undefined
|
|
4881
|
+
assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest)
|
|
4882
|
+
const localVarPath = `/api/bookings/{bookingId}/checkin-players`
|
|
4883
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
3182
4884
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3183
4885
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3184
4886
|
let baseOptions;
|
|
@@ -3196,114 +4898,30 @@ export const AdminClubSlotsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3196
4898
|
|
|
3197
4899
|
|
|
3198
4900
|
|
|
4901
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4902
|
+
|
|
3199
4903
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3200
4904
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3201
4905
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4906
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
|
|
3202
4907
|
|
|
3203
4908
|
return {
|
|
3204
4909
|
url: toPathString(localVarUrlObj),
|
|
3205
4910
|
options: localVarRequestOptions,
|
|
3206
4911
|
};
|
|
3207
4912
|
},
|
|
3208
|
-
}
|
|
3209
|
-
};
|
|
3210
|
-
|
|
3211
|
-
/**
|
|
3212
|
-
* AdminClubSlotsApi - functional programming interface
|
|
3213
|
-
* @export
|
|
3214
|
-
*/
|
|
3215
|
-
export const AdminClubSlotsApiFp = function(configuration?: Configuration) {
|
|
3216
|
-
const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration)
|
|
3217
|
-
return {
|
|
3218
|
-
/**
|
|
3219
|
-
*
|
|
3220
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
3221
|
-
* @param {string} id ID du club
|
|
3222
|
-
* @param {*} [options] Override http request option.
|
|
3223
|
-
* @throws {RequiredError}
|
|
3224
|
-
*/
|
|
3225
|
-
async generateSlotsForNextThreeWeeks(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateSlotsResponse>> {
|
|
3226
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
|
|
3227
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3228
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']?.[localVarOperationServerIndex]?.url;
|
|
3229
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3230
|
-
},
|
|
3231
|
-
}
|
|
3232
|
-
};
|
|
3233
|
-
|
|
3234
|
-
/**
|
|
3235
|
-
* AdminClubSlotsApi - factory interface
|
|
3236
|
-
* @export
|
|
3237
|
-
*/
|
|
3238
|
-
export const AdminClubSlotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3239
|
-
const localVarFp = AdminClubSlotsApiFp(configuration)
|
|
3240
|
-
return {
|
|
3241
|
-
/**
|
|
3242
|
-
*
|
|
3243
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
3244
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
3245
|
-
* @param {*} [options] Override http request option.
|
|
3246
|
-
* @throws {RequiredError}
|
|
3247
|
-
*/
|
|
3248
|
-
generateSlotsForNextThreeWeeks(requestParameters: AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateSlotsResponse> {
|
|
3249
|
-
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3250
|
-
},
|
|
3251
|
-
};
|
|
3252
|
-
};
|
|
3253
|
-
|
|
3254
|
-
/**
|
|
3255
|
-
* Request parameters for generateSlotsForNextThreeWeeks operation in AdminClubSlotsApi.
|
|
3256
|
-
* @export
|
|
3257
|
-
* @interface AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest
|
|
3258
|
-
*/
|
|
3259
|
-
export interface AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest {
|
|
3260
|
-
/**
|
|
3261
|
-
* ID du club
|
|
3262
|
-
* @type {string}
|
|
3263
|
-
* @memberof AdminClubSlotsApiGenerateSlotsForNextThreeWeeks
|
|
3264
|
-
*/
|
|
3265
|
-
readonly id: string
|
|
3266
|
-
}
|
|
3267
|
-
|
|
3268
|
-
/**
|
|
3269
|
-
* AdminClubSlotsApi - object-oriented interface
|
|
3270
|
-
* @export
|
|
3271
|
-
* @class AdminClubSlotsApi
|
|
3272
|
-
* @extends {BaseAPI}
|
|
3273
|
-
*/
|
|
3274
|
-
export class AdminClubSlotsApi extends BaseAPI {
|
|
3275
|
-
/**
|
|
3276
|
-
*
|
|
3277
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
3278
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
3279
|
-
* @param {*} [options] Override http request option.
|
|
3280
|
-
* @throws {RequiredError}
|
|
3281
|
-
* @memberof AdminClubSlotsApi
|
|
3282
|
-
*/
|
|
3283
|
-
public generateSlotsForNextThreeWeeks(requestParameters: AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig) {
|
|
3284
|
-
return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3285
|
-
}
|
|
3286
|
-
}
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
/**
|
|
3291
|
-
* AdminClubsApi - axios parameter creator
|
|
3292
|
-
* @export
|
|
3293
|
-
*/
|
|
3294
|
-
export const AdminClubsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3295
|
-
return {
|
|
3296
4913
|
/**
|
|
3297
|
-
*
|
|
3298
|
-
* @summary
|
|
3299
|
-
* @param {
|
|
4914
|
+
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
4915
|
+
* @summary Obtenir le statut des paiements d\'une réservation
|
|
4916
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
3300
4917
|
* @param {*} [options] Override http request option.
|
|
3301
4918
|
* @throws {RequiredError}
|
|
3302
4919
|
*/
|
|
3303
|
-
|
|
3304
|
-
// verify required parameter '
|
|
3305
|
-
assertParamExists('
|
|
3306
|
-
const localVarPath = `/api/
|
|
4920
|
+
getBookingPaymentStatus: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4921
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
4922
|
+
assertParamExists('getBookingPaymentStatus', 'bookingId', bookingId)
|
|
4923
|
+
const localVarPath = `/api/bookings/{bookingId}/payment-status`
|
|
4924
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
3307
4925
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3308
4926
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3309
4927
|
let baseOptions;
|
|
@@ -3311,7 +4929,7 @@ export const AdminClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3311
4929
|
baseOptions = configuration.baseOptions;
|
|
3312
4930
|
}
|
|
3313
4931
|
|
|
3314
|
-
const localVarRequestOptions = { method: '
|
|
4932
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3315
4933
|
const localVarHeaderParameter = {} as any;
|
|
3316
4934
|
const localVarQueryParameter = {} as any;
|
|
3317
4935
|
|
|
@@ -3321,12 +4939,9 @@ export const AdminClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3321
4939
|
|
|
3322
4940
|
|
|
3323
4941
|
|
|
3324
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3325
|
-
|
|
3326
4942
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3327
4943
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3328
4944
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3329
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createClubRequest, localVarRequestOptions, configuration)
|
|
3330
4945
|
|
|
3331
4946
|
return {
|
|
3332
4947
|
url: toPathString(localVarUrlObj),
|
|
@@ -3334,13 +4949,20 @@ export const AdminClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3334
4949
|
};
|
|
3335
4950
|
},
|
|
3336
4951
|
/**
|
|
3337
|
-
*
|
|
3338
|
-
* @summary
|
|
4952
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
4953
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
4954
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
4955
|
+
* @param {ManagerCancelBookingRequest} managerCancelBookingRequest
|
|
3339
4956
|
* @param {*} [options] Override http request option.
|
|
3340
4957
|
* @throws {RequiredError}
|
|
3341
4958
|
*/
|
|
3342
|
-
|
|
3343
|
-
|
|
4959
|
+
managerCancelBooking: async (bookingId: string, managerCancelBookingRequest: ManagerCancelBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4960
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
4961
|
+
assertParamExists('managerCancelBooking', 'bookingId', bookingId)
|
|
4962
|
+
// verify required parameter 'managerCancelBookingRequest' is not null or undefined
|
|
4963
|
+
assertParamExists('managerCancelBooking', 'managerCancelBookingRequest', managerCancelBookingRequest)
|
|
4964
|
+
const localVarPath = `/api/bookings/{bookingId}/manager-cancel`
|
|
4965
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
3344
4966
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3345
4967
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3346
4968
|
let baseOptions;
|
|
@@ -3348,7 +4970,7 @@ export const AdminClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3348
4970
|
baseOptions = configuration.baseOptions;
|
|
3349
4971
|
}
|
|
3350
4972
|
|
|
3351
|
-
const localVarRequestOptions = { method: '
|
|
4973
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3352
4974
|
const localVarHeaderParameter = {} as any;
|
|
3353
4975
|
const localVarQueryParameter = {} as any;
|
|
3354
4976
|
|
|
@@ -3358,9 +4980,12 @@ export const AdminClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3358
4980
|
|
|
3359
4981
|
|
|
3360
4982
|
|
|
4983
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4984
|
+
|
|
3361
4985
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3362
4986
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3363
4987
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4988
|
+
localVarRequestOptions.data = serializeDataIfNeeded(managerCancelBookingRequest, localVarRequestOptions, configuration)
|
|
3364
4989
|
|
|
3365
4990
|
return {
|
|
3366
4991
|
url: toPathString(localVarUrlObj),
|
|
@@ -3371,111 +4996,242 @@ export const AdminClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3371
4996
|
};
|
|
3372
4997
|
|
|
3373
4998
|
/**
|
|
3374
|
-
*
|
|
4999
|
+
* ManagerBookingsApi - functional programming interface
|
|
3375
5000
|
* @export
|
|
3376
5001
|
*/
|
|
3377
|
-
export const
|
|
3378
|
-
const localVarAxiosParamCreator =
|
|
5002
|
+
export const ManagerBookingsApiFp = function(configuration?: Configuration) {
|
|
5003
|
+
const localVarAxiosParamCreator = ManagerBookingsApiAxiosParamCreator(configuration)
|
|
3379
5004
|
return {
|
|
3380
5005
|
/**
|
|
3381
|
-
*
|
|
3382
|
-
* @summary
|
|
3383
|
-
* @param {
|
|
5006
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
5007
|
+
* @summary Appliquer les frais de no-show
|
|
5008
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
3384
5009
|
* @param {*} [options] Override http request option.
|
|
3385
5010
|
* @throws {RequiredError}
|
|
3386
5011
|
*/
|
|
3387
|
-
async
|
|
3388
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5012
|
+
async applyNoShowFee(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NoShowFeeResponse>> {
|
|
5013
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.applyNoShowFee(bookingId, options);
|
|
3389
5014
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3390
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5015
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.applyNoShowFee']?.[localVarOperationServerIndex]?.url;
|
|
3391
5016
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3392
5017
|
},
|
|
3393
5018
|
/**
|
|
3394
|
-
*
|
|
3395
|
-
* @summary
|
|
5019
|
+
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
5020
|
+
* @summary Enregistrer l\'arrivée des joueurs
|
|
5021
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
5022
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
3396
5023
|
* @param {*} [options] Override http request option.
|
|
3397
5024
|
* @throws {RequiredError}
|
|
3398
5025
|
*/
|
|
3399
|
-
async
|
|
3400
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5026
|
+
async checkInPlayers(bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayersResponse>> {
|
|
5027
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
|
|
3401
5028
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3402
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5029
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.checkInPlayers']?.[localVarOperationServerIndex]?.url;
|
|
5030
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5031
|
+
},
|
|
5032
|
+
/**
|
|
5033
|
+
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
5034
|
+
* @summary Obtenir le statut des paiements d\'une réservation
|
|
5035
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
5036
|
+
* @param {*} [options] Override http request option.
|
|
5037
|
+
* @throws {RequiredError}
|
|
5038
|
+
*/
|
|
5039
|
+
async getBookingPaymentStatus(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPaymentStatusResponse>> {
|
|
5040
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPaymentStatus(bookingId, options);
|
|
5041
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5042
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.getBookingPaymentStatus']?.[localVarOperationServerIndex]?.url;
|
|
5043
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5044
|
+
},
|
|
5045
|
+
/**
|
|
5046
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
5047
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
5048
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
5049
|
+
* @param {ManagerCancelBookingRequest} managerCancelBookingRequest
|
|
5050
|
+
* @param {*} [options] Override http request option.
|
|
5051
|
+
* @throws {RequiredError}
|
|
5052
|
+
*/
|
|
5053
|
+
async managerCancelBooking(bookingId: string, managerCancelBookingRequest: ManagerCancelBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerCancelBookingResponse>> {
|
|
5054
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.managerCancelBooking(bookingId, managerCancelBookingRequest, options);
|
|
5055
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5056
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.managerCancelBooking']?.[localVarOperationServerIndex]?.url;
|
|
3403
5057
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3404
5058
|
},
|
|
3405
5059
|
}
|
|
3406
5060
|
};
|
|
3407
5061
|
|
|
3408
5062
|
/**
|
|
3409
|
-
*
|
|
5063
|
+
* ManagerBookingsApi - factory interface
|
|
3410
5064
|
* @export
|
|
3411
5065
|
*/
|
|
3412
|
-
export const
|
|
3413
|
-
const localVarFp =
|
|
5066
|
+
export const ManagerBookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5067
|
+
const localVarFp = ManagerBookingsApiFp(configuration)
|
|
3414
5068
|
return {
|
|
3415
5069
|
/**
|
|
3416
|
-
*
|
|
3417
|
-
* @summary
|
|
3418
|
-
* @param {
|
|
5070
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
5071
|
+
* @summary Appliquer les frais de no-show
|
|
5072
|
+
* @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
|
|
3419
5073
|
* @param {*} [options] Override http request option.
|
|
3420
5074
|
* @throws {RequiredError}
|
|
3421
5075
|
*/
|
|
3422
|
-
|
|
3423
|
-
return localVarFp.
|
|
5076
|
+
applyNoShowFee(requestParameters: ManagerBookingsApiApplyNoShowFeeRequest, options?: RawAxiosRequestConfig): AxiosPromise<NoShowFeeResponse> {
|
|
5077
|
+
return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
3424
5078
|
},
|
|
3425
5079
|
/**
|
|
3426
|
-
*
|
|
3427
|
-
* @summary
|
|
5080
|
+
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
5081
|
+
* @summary Enregistrer l\'arrivée des joueurs
|
|
5082
|
+
* @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
3428
5083
|
* @param {*} [options] Override http request option.
|
|
3429
5084
|
* @throws {RequiredError}
|
|
3430
5085
|
*/
|
|
3431
|
-
|
|
3432
|
-
return localVarFp.
|
|
5086
|
+
checkInPlayers(requestParameters: ManagerBookingsApiCheckInPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayersResponse> {
|
|
5087
|
+
return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
|
|
5088
|
+
},
|
|
5089
|
+
/**
|
|
5090
|
+
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
5091
|
+
* @summary Obtenir le statut des paiements d\'une réservation
|
|
5092
|
+
* @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
|
|
5093
|
+
* @param {*} [options] Override http request option.
|
|
5094
|
+
* @throws {RequiredError}
|
|
5095
|
+
*/
|
|
5096
|
+
getBookingPaymentStatus(requestParameters: ManagerBookingsApiGetBookingPaymentStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPaymentStatusResponse> {
|
|
5097
|
+
return localVarFp.getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
5098
|
+
},
|
|
5099
|
+
/**
|
|
5100
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
5101
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
5102
|
+
* @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
|
|
5103
|
+
* @param {*} [options] Override http request option.
|
|
5104
|
+
* @throws {RequiredError}
|
|
5105
|
+
*/
|
|
5106
|
+
managerCancelBooking(requestParameters: ManagerBookingsApiManagerCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerCancelBookingResponse> {
|
|
5107
|
+
return localVarFp.managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(axios, basePath));
|
|
3433
5108
|
},
|
|
3434
5109
|
};
|
|
3435
5110
|
};
|
|
3436
5111
|
|
|
3437
5112
|
/**
|
|
3438
|
-
* Request parameters for
|
|
5113
|
+
* Request parameters for applyNoShowFee operation in ManagerBookingsApi.
|
|
3439
5114
|
* @export
|
|
3440
|
-
* @interface
|
|
5115
|
+
* @interface ManagerBookingsApiApplyNoShowFeeRequest
|
|
3441
5116
|
*/
|
|
3442
|
-
export interface
|
|
5117
|
+
export interface ManagerBookingsApiApplyNoShowFeeRequest {
|
|
5118
|
+
/**
|
|
5119
|
+
* ID MongoDB de la réservation
|
|
5120
|
+
* @type {string}
|
|
5121
|
+
* @memberof ManagerBookingsApiApplyNoShowFee
|
|
5122
|
+
*/
|
|
5123
|
+
readonly bookingId: string
|
|
5124
|
+
}
|
|
5125
|
+
|
|
5126
|
+
/**
|
|
5127
|
+
* Request parameters for checkInPlayers operation in ManagerBookingsApi.
|
|
5128
|
+
* @export
|
|
5129
|
+
* @interface ManagerBookingsApiCheckInPlayersRequest
|
|
5130
|
+
*/
|
|
5131
|
+
export interface ManagerBookingsApiCheckInPlayersRequest {
|
|
5132
|
+
/**
|
|
5133
|
+
* ID MongoDB de la réservation
|
|
5134
|
+
* @type {string}
|
|
5135
|
+
* @memberof ManagerBookingsApiCheckInPlayers
|
|
5136
|
+
*/
|
|
5137
|
+
readonly bookingId: string
|
|
5138
|
+
|
|
3443
5139
|
/**
|
|
3444
5140
|
*
|
|
3445
|
-
* @type {
|
|
3446
|
-
* @memberof
|
|
5141
|
+
* @type {CheckInPlayersRequest}
|
|
5142
|
+
* @memberof ManagerBookingsApiCheckInPlayers
|
|
3447
5143
|
*/
|
|
3448
|
-
readonly
|
|
5144
|
+
readonly checkInPlayersRequest: CheckInPlayersRequest
|
|
3449
5145
|
}
|
|
3450
5146
|
|
|
3451
5147
|
/**
|
|
3452
|
-
*
|
|
5148
|
+
* Request parameters for getBookingPaymentStatus operation in ManagerBookingsApi.
|
|
3453
5149
|
* @export
|
|
3454
|
-
* @
|
|
3455
|
-
* @extends {BaseAPI}
|
|
5150
|
+
* @interface ManagerBookingsApiGetBookingPaymentStatusRequest
|
|
3456
5151
|
*/
|
|
3457
|
-
export
|
|
5152
|
+
export interface ManagerBookingsApiGetBookingPaymentStatusRequest {
|
|
5153
|
+
/**
|
|
5154
|
+
* ID MongoDB de la réservation
|
|
5155
|
+
* @type {string}
|
|
5156
|
+
* @memberof ManagerBookingsApiGetBookingPaymentStatus
|
|
5157
|
+
*/
|
|
5158
|
+
readonly bookingId: string
|
|
5159
|
+
}
|
|
5160
|
+
|
|
5161
|
+
/**
|
|
5162
|
+
* Request parameters for managerCancelBooking operation in ManagerBookingsApi.
|
|
5163
|
+
* @export
|
|
5164
|
+
* @interface ManagerBookingsApiManagerCancelBookingRequest
|
|
5165
|
+
*/
|
|
5166
|
+
export interface ManagerBookingsApiManagerCancelBookingRequest {
|
|
5167
|
+
/**
|
|
5168
|
+
* ID MongoDB de la réservation à annuler
|
|
5169
|
+
* @type {string}
|
|
5170
|
+
* @memberof ManagerBookingsApiManagerCancelBooking
|
|
5171
|
+
*/
|
|
5172
|
+
readonly bookingId: string
|
|
5173
|
+
|
|
3458
5174
|
/**
|
|
3459
5175
|
*
|
|
3460
|
-
* @
|
|
3461
|
-
* @
|
|
5176
|
+
* @type {ManagerCancelBookingRequest}
|
|
5177
|
+
* @memberof ManagerBookingsApiManagerCancelBooking
|
|
5178
|
+
*/
|
|
5179
|
+
readonly managerCancelBookingRequest: ManagerCancelBookingRequest
|
|
5180
|
+
}
|
|
5181
|
+
|
|
5182
|
+
/**
|
|
5183
|
+
* ManagerBookingsApi - object-oriented interface
|
|
5184
|
+
* @export
|
|
5185
|
+
* @class ManagerBookingsApi
|
|
5186
|
+
* @extends {BaseAPI}
|
|
5187
|
+
*/
|
|
5188
|
+
export class ManagerBookingsApi extends BaseAPI {
|
|
5189
|
+
/**
|
|
5190
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
5191
|
+
* @summary Appliquer les frais de no-show
|
|
5192
|
+
* @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
|
|
3462
5193
|
* @param {*} [options] Override http request option.
|
|
3463
5194
|
* @throws {RequiredError}
|
|
3464
|
-
* @memberof
|
|
5195
|
+
* @memberof ManagerBookingsApi
|
|
3465
5196
|
*/
|
|
3466
|
-
public
|
|
3467
|
-
return
|
|
5197
|
+
public applyNoShowFee(requestParameters: ManagerBookingsApiApplyNoShowFeeRequest, options?: RawAxiosRequestConfig) {
|
|
5198
|
+
return ManagerBookingsApiFp(this.configuration).applyNoShowFee(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
3468
5199
|
}
|
|
3469
5200
|
|
|
3470
5201
|
/**
|
|
3471
|
-
*
|
|
3472
|
-
* @summary
|
|
5202
|
+
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
5203
|
+
* @summary Enregistrer l\'arrivée des joueurs
|
|
5204
|
+
* @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
3473
5205
|
* @param {*} [options] Override http request option.
|
|
3474
5206
|
* @throws {RequiredError}
|
|
3475
|
-
* @memberof
|
|
5207
|
+
* @memberof ManagerBookingsApi
|
|
3476
5208
|
*/
|
|
3477
|
-
public
|
|
3478
|
-
return
|
|
5209
|
+
public checkInPlayers(requestParameters: ManagerBookingsApiCheckInPlayersRequest, options?: RawAxiosRequestConfig) {
|
|
5210
|
+
return ManagerBookingsApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5211
|
+
}
|
|
5212
|
+
|
|
5213
|
+
/**
|
|
5214
|
+
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
5215
|
+
* @summary Obtenir le statut des paiements d\'une réservation
|
|
5216
|
+
* @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
|
|
5217
|
+
* @param {*} [options] Override http request option.
|
|
5218
|
+
* @throws {RequiredError}
|
|
5219
|
+
* @memberof ManagerBookingsApi
|
|
5220
|
+
*/
|
|
5221
|
+
public getBookingPaymentStatus(requestParameters: ManagerBookingsApiGetBookingPaymentStatusRequest, options?: RawAxiosRequestConfig) {
|
|
5222
|
+
return ManagerBookingsApiFp(this.configuration).getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
5223
|
+
}
|
|
5224
|
+
|
|
5225
|
+
/**
|
|
5226
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
5227
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
5228
|
+
* @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
|
|
5229
|
+
* @param {*} [options] Override http request option.
|
|
5230
|
+
* @throws {RequiredError}
|
|
5231
|
+
* @memberof ManagerBookingsApi
|
|
5232
|
+
*/
|
|
5233
|
+
public managerCancelBooking(requestParameters: ManagerBookingsApiManagerCancelBookingRequest, options?: RawAxiosRequestConfig) {
|
|
5234
|
+
return ManagerBookingsApiFp(this.configuration).managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3479
5235
|
}
|
|
3480
5236
|
}
|
|
3481
5237
|
|
|
@@ -5992,15 +7748,11 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration?:
|
|
|
5992
7748
|
/**
|
|
5993
7749
|
*
|
|
5994
7750
|
* @summary Get number of users subscribed to the club
|
|
5995
|
-
* @param {string} id ID du club
|
|
5996
7751
|
* @param {*} [options] Override http request option.
|
|
5997
7752
|
* @throws {RequiredError}
|
|
5998
7753
|
*/
|
|
5999
|
-
getNumberOfClubUsers: async (
|
|
6000
|
-
|
|
6001
|
-
assertParamExists('getNumberOfClubUsers', 'id', id)
|
|
6002
|
-
const localVarPath = `/api/clubs/{id}/user-count`
|
|
6003
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7754
|
+
getNumberOfClubUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7755
|
+
const localVarPath = `/api/clubs/user-count`;
|
|
6004
7756
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6005
7757
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6006
7758
|
let baseOptions;
|
|
@@ -6053,12 +7805,11 @@ export const StaffClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
6053
7805
|
/**
|
|
6054
7806
|
*
|
|
6055
7807
|
* @summary Get number of users subscribed to the club
|
|
6056
|
-
* @param {string} id ID du club
|
|
6057
7808
|
* @param {*} [options] Override http request option.
|
|
6058
7809
|
* @throws {RequiredError}
|
|
6059
7810
|
*/
|
|
6060
|
-
async getNumberOfClubUsers(
|
|
6061
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getNumberOfClubUsers(
|
|
7811
|
+
async getNumberOfClubUsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNumberOfClubUsers200Response>> {
|
|
7812
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNumberOfClubUsers(options);
|
|
6062
7813
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6063
7814
|
const localVarOperationServerBasePath = operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']?.[localVarOperationServerIndex]?.url;
|
|
6064
7815
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6086,12 +7837,11 @@ export const StaffClubAnalyticsApiFactory = function (configuration?: Configurat
|
|
|
6086
7837
|
/**
|
|
6087
7838
|
*
|
|
6088
7839
|
* @summary Get number of users subscribed to the club
|
|
6089
|
-
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
6090
7840
|
* @param {*} [options] Override http request option.
|
|
6091
7841
|
* @throws {RequiredError}
|
|
6092
7842
|
*/
|
|
6093
|
-
getNumberOfClubUsers(
|
|
6094
|
-
return localVarFp.getNumberOfClubUsers(
|
|
7843
|
+
getNumberOfClubUsers(options?: RawAxiosRequestConfig): AxiosPromise<GetNumberOfClubUsers200Response> {
|
|
7844
|
+
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
6095
7845
|
},
|
|
6096
7846
|
};
|
|
6097
7847
|
};
|
|
@@ -6110,20 +7860,6 @@ export interface StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest {
|
|
|
6110
7860
|
readonly id: string
|
|
6111
7861
|
}
|
|
6112
7862
|
|
|
6113
|
-
/**
|
|
6114
|
-
* Request parameters for getNumberOfClubUsers operation in StaffClubAnalyticsApi.
|
|
6115
|
-
* @export
|
|
6116
|
-
* @interface StaffClubAnalyticsApiGetNumberOfClubUsersRequest
|
|
6117
|
-
*/
|
|
6118
|
-
export interface StaffClubAnalyticsApiGetNumberOfClubUsersRequest {
|
|
6119
|
-
/**
|
|
6120
|
-
* ID du club
|
|
6121
|
-
* @type {string}
|
|
6122
|
-
* @memberof StaffClubAnalyticsApiGetNumberOfClubUsers
|
|
6123
|
-
*/
|
|
6124
|
-
readonly id: string
|
|
6125
|
-
}
|
|
6126
|
-
|
|
6127
7863
|
/**
|
|
6128
7864
|
* StaffClubAnalyticsApi - object-oriented interface
|
|
6129
7865
|
* @export
|
|
@@ -6146,13 +7882,12 @@ export class StaffClubAnalyticsApi extends BaseAPI {
|
|
|
6146
7882
|
/**
|
|
6147
7883
|
*
|
|
6148
7884
|
* @summary Get number of users subscribed to the club
|
|
6149
|
-
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
6150
7885
|
* @param {*} [options] Override http request option.
|
|
6151
7886
|
* @throws {RequiredError}
|
|
6152
7887
|
* @memberof StaffClubAnalyticsApi
|
|
6153
7888
|
*/
|
|
6154
|
-
public getNumberOfClubUsers(
|
|
6155
|
-
return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(
|
|
7889
|
+
public getNumberOfClubUsers(options?: RawAxiosRequestConfig) {
|
|
7890
|
+
return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
6156
7891
|
}
|
|
6157
7892
|
}
|
|
6158
7893
|
|
|
@@ -6293,13 +8028,10 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration?: C
|
|
|
6293
8028
|
/**
|
|
6294
8029
|
*
|
|
6295
8030
|
* @summary Récupère les paramètres d\'un club
|
|
6296
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
6297
8031
|
* @param {*} [options] Override http request option.
|
|
6298
8032
|
* @throws {RequiredError}
|
|
6299
8033
|
*/
|
|
6300
|
-
getClubSettings: async (
|
|
6301
|
-
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
6302
|
-
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest)
|
|
8034
|
+
getClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6303
8035
|
const localVarPath = `/api/club-settings`;
|
|
6304
8036
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6305
8037
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6318,12 +8050,9 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration?: C
|
|
|
6318
8050
|
|
|
6319
8051
|
|
|
6320
8052
|
|
|
6321
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6322
|
-
|
|
6323
8053
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6324
8054
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6325
8055
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6326
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration)
|
|
6327
8056
|
|
|
6328
8057
|
return {
|
|
6329
8058
|
url: toPathString(localVarUrlObj),
|
|
@@ -6343,12 +8072,11 @@ export const StaffClubSettingsApiFp = function(configuration?: Configuration) {
|
|
|
6343
8072
|
/**
|
|
6344
8073
|
*
|
|
6345
8074
|
* @summary Récupère les paramètres d\'un club
|
|
6346
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
6347
8075
|
* @param {*} [options] Override http request option.
|
|
6348
8076
|
* @throws {RequiredError}
|
|
6349
8077
|
*/
|
|
6350
|
-
async getClubSettings(
|
|
6351
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(
|
|
8078
|
+
async getClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
|
|
8079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(options);
|
|
6352
8080
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6353
8081
|
const localVarOperationServerBasePath = operationServerMap['StaffClubSettingsApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
|
|
6354
8082
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6366,30 +8094,15 @@ export const StaffClubSettingsApiFactory = function (configuration?: Configurati
|
|
|
6366
8094
|
/**
|
|
6367
8095
|
*
|
|
6368
8096
|
* @summary Récupère les paramètres d\'un club
|
|
6369
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
6370
8097
|
* @param {*} [options] Override http request option.
|
|
6371
8098
|
* @throws {RequiredError}
|
|
6372
8099
|
*/
|
|
6373
|
-
getClubSettings(
|
|
6374
|
-
return localVarFp.getClubSettings(
|
|
8100
|
+
getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
|
|
8101
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
6375
8102
|
},
|
|
6376
8103
|
};
|
|
6377
8104
|
};
|
|
6378
8105
|
|
|
6379
|
-
/**
|
|
6380
|
-
* Request parameters for getClubSettings operation in StaffClubSettingsApi.
|
|
6381
|
-
* @export
|
|
6382
|
-
* @interface StaffClubSettingsApiGetClubSettingsRequest
|
|
6383
|
-
*/
|
|
6384
|
-
export interface StaffClubSettingsApiGetClubSettingsRequest {
|
|
6385
|
-
/**
|
|
6386
|
-
*
|
|
6387
|
-
* @type {GetClubSettingsRequest}
|
|
6388
|
-
* @memberof StaffClubSettingsApiGetClubSettings
|
|
6389
|
-
*/
|
|
6390
|
-
readonly getClubSettingsRequest: GetClubSettingsRequest
|
|
6391
|
-
}
|
|
6392
|
-
|
|
6393
8106
|
/**
|
|
6394
8107
|
* StaffClubSettingsApi - object-oriented interface
|
|
6395
8108
|
* @export
|
|
@@ -6400,13 +8113,12 @@ export class StaffClubSettingsApi extends BaseAPI {
|
|
|
6400
8113
|
/**
|
|
6401
8114
|
*
|
|
6402
8115
|
* @summary Récupère les paramètres d\'un club
|
|
6403
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
6404
8116
|
* @param {*} [options] Override http request option.
|
|
6405
8117
|
* @throws {RequiredError}
|
|
6406
8118
|
* @memberof StaffClubSettingsApi
|
|
6407
8119
|
*/
|
|
6408
|
-
public getClubSettings(
|
|
6409
|
-
return StaffClubSettingsApiFp(this.configuration).getClubSettings(
|
|
8120
|
+
public getClubSettings(options?: RawAxiosRequestConfig) {
|
|
8121
|
+
return StaffClubSettingsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
6410
8122
|
}
|
|
6411
8123
|
}
|
|
6412
8124
|
|