@tennac-booking/sdk 1.0.117 → 1.0.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/.openapi-generator/FILES +313 -308
  2. package/README.md +18 -13
  3. package/api.ts +1065 -611
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +841 -483
  8. package/dist/api.js +325 -233
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +841 -483
  16. package/dist/esm/api.js +324 -232
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingsStaffApi.md +117 -0
  28. package/docs/BookingsUserApi.md +1 -1
  29. package/docs/ClientApi.md +2 -49
  30. package/docs/ClientFullOnboardingResponseClub.md +0 -2
  31. package/docs/ClientOnboardingRequestBody.md +0 -2
  32. package/docs/ClubAnalyticsStaffApi.md +20 -4
  33. package/docs/ClubPlayersPaginatedResponse.md +28 -0
  34. package/docs/ClubsApi.md +2 -2
  35. package/docs/ClubsStaffApi.md +27 -2
  36. package/docs/CreateEventRequest.md +3 -1
  37. package/docs/EventResponse.md +4 -0
  38. package/docs/EventSponsor.md +24 -0
  39. package/docs/EventsApi.md +0 -115
  40. package/docs/JoinEventRequest.md +0 -2
  41. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +0 -2
  42. package/docs/JoinEventResponse.md +0 -14
  43. package/docs/SendSubscriptionInvitationRequest.md +22 -0
  44. package/docs/{CheckTeamNameAvailability200Response.md → SendSubscriptionInvitationResponse.md} +7 -5
  45. package/docs/StaffBookingCourtSummary.md +26 -0
  46. package/docs/StaffBookingCustomerPayload.md +28 -0
  47. package/docs/StaffBookingListItem.md +54 -0
  48. package/docs/StaffBookingPaymentState.md +18 -0
  49. package/docs/StaffBookingPaymentSummary.md +34 -0
  50. package/docs/StaffBookingSportSummary.md +24 -0
  51. package/docs/StaffBookingUserSummary.md +28 -0
  52. package/docs/StaffBookingsPaginatedResponse.md +28 -0
  53. package/docs/StaffCreateBookingRequest.md +26 -0
  54. package/docs/SubscriptionsStaffApi.md +55 -0
  55. package/docs/UpdateEventRequest.md +6 -0
  56. package/index.ts +1 -1
  57. package/package.json +1 -1
  58. package/docs/ClientSubscription.md +0 -31
  59. package/docs/ClientSubscriptionItem.md +0 -25
  60. package/docs/ClientSubscriptionsResponse.md +0 -21
  61. package/docs/EstimateEventPrice200Response.md +0 -32
  62. package/docs/EstimateEventPriceRequest.md +0 -26
  63. package/docs/EstimateEventPriceRequestSharesInner.md +0 -22
  64. package/docs/JoinEventResponseOnsitePaymentsInner.md +0 -24
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.117
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1487,19 +1487,6 @@ export interface CheckInPlayersResponse {
1487
1487
  */
1488
1488
  'invoices': Array<CheckedInPlayer>;
1489
1489
  }
1490
- /**
1491
- *
1492
- * @export
1493
- * @interface CheckTeamNameAvailability200Response
1494
- */
1495
- export interface CheckTeamNameAvailability200Response {
1496
- /**
1497
- *
1498
- * @type {boolean}
1499
- * @memberof CheckTeamNameAvailability200Response
1500
- */
1501
- 'available': boolean;
1502
- }
1503
1490
  /**
1504
1491
  *
1505
1492
  * @export
@@ -1606,12 +1593,6 @@ export interface ClientFullOnboardingResponse {
1606
1593
  * @interface ClientFullOnboardingResponseClub
1607
1594
  */
1608
1595
  export interface ClientFullOnboardingResponseClub {
1609
- /**
1610
- *
1611
- * @type {string}
1612
- * @memberof ClientFullOnboardingResponseClub
1613
- */
1614
- 'clubType'?: string;
1615
1596
  /**
1616
1597
  *
1617
1598
  * @type {string}
@@ -1679,21 +1660,7 @@ export interface ClientOnboardingRequestBody {
1679
1660
  * @memberof ClientOnboardingRequestBody
1680
1661
  */
1681
1662
  'country'?: string;
1682
- /**
1683
- * Type de club souhaité (public | school)
1684
- * @type {string}
1685
- * @memberof ClientOnboardingRequestBody
1686
- */
1687
- 'clubType'?: ClientOnboardingRequestBodyClubTypeEnum;
1688
1663
  }
1689
-
1690
- export const ClientOnboardingRequestBodyClubTypeEnum = {
1691
- Public: 'public',
1692
- School: 'school'
1693
- } as const;
1694
-
1695
- export type ClientOnboardingRequestBodyClubTypeEnum = typeof ClientOnboardingRequestBodyClubTypeEnum[keyof typeof ClientOnboardingRequestBodyClubTypeEnum];
1696
-
1697
1664
  /**
1698
1665
  *
1699
1666
  * @export
@@ -1756,87 +1723,6 @@ export interface ClientRegisterRequest {
1756
1723
  */
1757
1724
  'firstName': string;
1758
1725
  }
1759
- /**
1760
- * Abonnement Stripe simplifié
1761
- * @export
1762
- * @interface ClientSubscription
1763
- */
1764
- export interface ClientSubscription {
1765
- /**
1766
- *
1767
- * @type {string}
1768
- * @memberof ClientSubscription
1769
- */
1770
- 'id': string;
1771
- /**
1772
- *
1773
- * @type {string}
1774
- * @memberof ClientSubscription
1775
- */
1776
- 'status': string;
1777
- /**
1778
- *
1779
- * @type {number}
1780
- * @memberof ClientSubscription
1781
- */
1782
- 'currentPeriodStart': number;
1783
- /**
1784
- *
1785
- * @type {number}
1786
- * @memberof ClientSubscription
1787
- */
1788
- 'currentPeriodEnd': number;
1789
- /**
1790
- *
1791
- * @type {boolean}
1792
- * @memberof ClientSubscription
1793
- */
1794
- 'cancelAtPeriodEnd': boolean;
1795
- /**
1796
- *
1797
- * @type {Array<ClientSubscriptionItem>}
1798
- * @memberof ClientSubscription
1799
- */
1800
- 'items': Array<ClientSubscriptionItem>;
1801
- }
1802
- /**
1803
- * Item d\'abonnement Stripe simplifié
1804
- * @export
1805
- * @interface ClientSubscriptionItem
1806
- */
1807
- export interface ClientSubscriptionItem {
1808
- /**
1809
- *
1810
- * @type {string}
1811
- * @memberof ClientSubscriptionItem
1812
- */
1813
- 'priceId': string;
1814
- /**
1815
- *
1816
- * @type {string}
1817
- * @memberof ClientSubscriptionItem
1818
- */
1819
- 'productId'?: string;
1820
- /**
1821
- *
1822
- * @type {number}
1823
- * @memberof ClientSubscriptionItem
1824
- */
1825
- 'quantity'?: number;
1826
- }
1827
- /**
1828
- * Réponse liste des abonnements Stripe du client
1829
- * @export
1830
- * @interface ClientSubscriptionsResponse
1831
- */
1832
- export interface ClientSubscriptionsResponse {
1833
- /**
1834
- *
1835
- * @type {Array<ClientSubscription>}
1836
- * @memberof ClientSubscriptionsResponse
1837
- */
1838
- 'subscriptions': Array<ClientSubscription>;
1839
- }
1840
1726
  /**
1841
1727
  *
1842
1728
  * @export
@@ -2765,6 +2651,43 @@ export interface ClubPlayerSubscriptionSummary {
2765
2651
  */
2766
2652
  'interval': string | null;
2767
2653
  }
2654
+ /**
2655
+ *
2656
+ * @export
2657
+ * @interface ClubPlayersPaginatedResponse
2658
+ */
2659
+ export interface ClubPlayersPaginatedResponse {
2660
+ /**
2661
+ * Joueurs trouvés
2662
+ * @type {Array<ClubPlayerResponse>}
2663
+ * @memberof ClubPlayersPaginatedResponse
2664
+ */
2665
+ 'players': Array<ClubPlayerResponse>;
2666
+ /**
2667
+ * Page courante (1-based)
2668
+ * @type {number}
2669
+ * @memberof ClubPlayersPaginatedResponse
2670
+ */
2671
+ 'page': number;
2672
+ /**
2673
+ * Nombre d\'éléments par page
2674
+ * @type {number}
2675
+ * @memberof ClubPlayersPaginatedResponse
2676
+ */
2677
+ 'pageSize': number;
2678
+ /**
2679
+ * Nombre total de joueurs
2680
+ * @type {number}
2681
+ * @memberof ClubPlayersPaginatedResponse
2682
+ */
2683
+ 'total': number;
2684
+ /**
2685
+ * Nombre total de pages disponibles
2686
+ * @type {number}
2687
+ * @memberof ClubPlayersPaginatedResponse
2688
+ */
2689
+ 'totalPages': number;
2690
+ }
2768
2691
  /**
2769
2692
  *
2770
2693
  * @export
@@ -3787,10 +3710,16 @@ export interface CreateEventRequest {
3787
3710
  'subscriberPrices'?: Array<SubscriberPrice>;
3788
3711
  /**
3789
3712
  *
3790
- * @type {Array<number>}
3713
+ * @type {Array<string | null>}
3714
+ * @memberof CreateEventRequest
3715
+ */
3716
+ 'levels'?: Array<string | null>;
3717
+ /**
3718
+ *
3719
+ * @type {Array<EventSponsor>}
3791
3720
  * @memberof CreateEventRequest
3792
3721
  */
3793
- 'levels'?: Array<number>;
3722
+ 'sponsors'?: Array<EventSponsor>;
3794
3723
  /**
3795
3724
  *
3796
3725
  * @type {string}
@@ -4263,105 +4192,6 @@ export const DiscountType = {
4263
4192
  export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
4264
4193
 
4265
4194
 
4266
- /**
4267
- *
4268
- * @export
4269
- * @interface EstimateEventPrice200Response
4270
- */
4271
- export interface EstimateEventPrice200Response {
4272
- /**
4273
- * Construct a type with a set of properties K of type T
4274
- * @type {{ [key: string]: number; }}
4275
- * @memberof EstimateEventPrice200Response
4276
- */
4277
- 'perPayerAfterCredits'?: { [key: string]: number; };
4278
- /**
4279
- *
4280
- * @type {number}
4281
- * @memberof EstimateEventPrice200Response
4282
- */
4283
- 'totalAfterCredits'?: number;
4284
- /**
4285
- *
4286
- * @type {number}
4287
- * @memberof EstimateEventPrice200Response
4288
- */
4289
- 'creditsAppliedInCents'?: number;
4290
- /**
4291
- *
4292
- * @type {string}
4293
- * @memberof EstimateEventPrice200Response
4294
- */
4295
- 'currency': string;
4296
- /**
4297
- *
4298
- * @type {number}
4299
- * @memberof EstimateEventPrice200Response
4300
- */
4301
- 'total': number;
4302
- /**
4303
- * Construct a type with a set of properties K of type T
4304
- * @type {{ [key: string]: number; }}
4305
- * @memberof EstimateEventPrice200Response
4306
- */
4307
- 'perPayer': { [key: string]: number; };
4308
- /**
4309
- * Construct a type with a set of properties K of type T
4310
- * @type {{ [key: string]: number; }}
4311
- * @memberof EstimateEventPrice200Response
4312
- */
4313
- 'perPlayer': { [key: string]: number; };
4314
- }
4315
- /**
4316
- *
4317
- * @export
4318
- * @interface EstimateEventPriceRequest
4319
- */
4320
- export interface EstimateEventPriceRequest {
4321
- /**
4322
- *
4323
- * @type {number}
4324
- * @memberof EstimateEventPriceRequest
4325
- */
4326
- 'creditToUseInCents'?: number;
4327
- /**
4328
- *
4329
- * @type {string}
4330
- * @memberof EstimateEventPriceRequest
4331
- */
4332
- 'creatorId'?: string;
4333
- /**
4334
- *
4335
- * @type {Array<EstimateEventPriceRequestSharesInner>}
4336
- * @memberof EstimateEventPriceRequest
4337
- */
4338
- 'shares'?: Array<EstimateEventPriceRequestSharesInner>;
4339
- /**
4340
- *
4341
- * @type {Array<string>}
4342
- * @memberof EstimateEventPriceRequest
4343
- */
4344
- 'playerIds': Array<string>;
4345
- }
4346
- /**
4347
- *
4348
- * @export
4349
- * @interface EstimateEventPriceRequestSharesInner
4350
- */
4351
- export interface EstimateEventPriceRequestSharesInner {
4352
- /**
4353
- *
4354
- * @type {Array<string>}
4355
- * @memberof EstimateEventPriceRequestSharesInner
4356
- */
4357
- 'paysAlsoFor'?: Array<string>;
4358
- /**
4359
- *
4360
- * @type {string}
4361
- * @memberof EstimateEventPriceRequestSharesInner
4362
- */
4363
- 'playerId': string;
4364
- }
4365
4195
  /**
4366
4196
  *
4367
4197
  * @export
@@ -4562,6 +4392,18 @@ export interface EventResponse {
4562
4392
  * @memberof EventResponse
4563
4393
  */
4564
4394
  'visibilityType': EventResponseVisibilityTypeEnum;
4395
+ /**
4396
+ *
4397
+ * @type {Array<string | null>}
4398
+ * @memberof EventResponse
4399
+ */
4400
+ 'levels'?: Array<string | null>;
4401
+ /**
4402
+ *
4403
+ * @type {Array<EventSponsor>}
4404
+ * @memberof EventResponse
4405
+ */
4406
+ 'sponsors'?: Array<EventSponsor>;
4565
4407
  /**
4566
4408
  *
4567
4409
  * @type {string}
@@ -4616,6 +4458,31 @@ export const EventResponseVisibilityTypeEnum = {
4616
4458
 
4617
4459
  export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityTypeEnum[keyof typeof EventResponseVisibilityTypeEnum];
4618
4460
 
4461
+ /**
4462
+ *
4463
+ * @export
4464
+ * @interface EventSponsor
4465
+ */
4466
+ export interface EventSponsor {
4467
+ /**
4468
+ *
4469
+ * @type {string}
4470
+ * @memberof EventSponsor
4471
+ */
4472
+ 'name'?: string;
4473
+ /**
4474
+ *
4475
+ * @type {string}
4476
+ * @memberof EventSponsor
4477
+ */
4478
+ 'website'?: string;
4479
+ /**
4480
+ *
4481
+ * @type {string}
4482
+ * @memberof EventSponsor
4483
+ */
4484
+ 'logo'?: string | null;
4485
+ }
4619
4486
  /**
4620
4487
  *
4621
4488
  * @export
@@ -5528,12 +5395,6 @@ export interface JoinEventRequest {
5528
5395
  * @memberof JoinEventRequest
5529
5396
  */
5530
5397
  'useDefaultPaymentMethod'?: boolean;
5531
- /**
5532
- *
5533
- * @type {number}
5534
- * @memberof JoinEventRequest
5535
- */
5536
- 'creditToUseInCents'?: number;
5537
5398
  }
5538
5399
 
5539
5400
 
@@ -5543,12 +5404,6 @@ export interface JoinEventRequest {
5543
5404
  * @interface JoinEventRequestPlayersPaymentMethodsInner
5544
5405
  */
5545
5406
  export interface JoinEventRequestPlayersPaymentMethodsInner {
5546
- /**
5547
- *
5548
- * @type {Array<string>}
5549
- * @memberof JoinEventRequestPlayersPaymentMethodsInner
5550
- */
5551
- 'paysAlsoFor'?: Array<string>;
5552
5407
  /**
5553
5408
  *
5554
5409
  * @type {PaymentMethod}
@@ -5582,111 +5437,42 @@ export interface JoinEventResponse {
5582
5437
  * @memberof JoinEventResponse
5583
5438
  */
5584
5439
  'event': EventResponse;
5440
+ }
5441
+ /**
5442
+ *
5443
+ * @export
5444
+ * @interface LastSixMonthsTurnoverItem
5445
+ */
5446
+ export interface LastSixMonthsTurnoverItem {
5585
5447
  /**
5586
- * Construct a type with a set of properties K of type T
5587
- * @type {{ [key: string]: string; }}
5588
- * @memberof JoinEventResponse
5448
+ * Nom du mois (Jan, Feb, etc.)
5449
+ * @type {string}
5450
+ * @memberof LastSixMonthsTurnoverItem
5589
5451
  */
5590
- 'paymentLinks'?: { [key: string]: string; };
5452
+ 'month': string;
5591
5453
  /**
5592
- *
5593
- * @type {Array<JoinEventResponseOnsitePaymentsInner>}
5594
- * @memberof JoinEventResponse
5454
+ * Valeur du chiffre d\'affaires
5455
+ * @type {number}
5456
+ * @memberof LastSixMonthsTurnoverItem
5595
5457
  */
5596
- 'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
5458
+ 'value': number;
5459
+ }
5460
+ /**
5461
+ *
5462
+ * @export
5463
+ * @interface LevelBySportEntry
5464
+ */
5465
+ export interface LevelBySportEntry {
5597
5466
  /**
5598
5467
  *
5599
5468
  * @type {string}
5600
- * @memberof JoinEventResponse
5469
+ * @memberof LevelBySportEntry
5601
5470
  */
5602
- 'setupNoShowPaymentUrl'?: string;
5471
+ 'level': string;
5603
5472
  /**
5604
5473
  *
5605
- * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
5606
- * @memberof JoinEventResponse
5607
- */
5608
- 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
5609
- /**
5610
- *
5611
- * @type {number}
5612
- * @memberof JoinEventResponse
5613
- */
5614
- 'creditsAppliedInCents'?: number;
5615
- /**
5616
- *
5617
- * @type {number}
5618
- * @memberof JoinEventResponse
5619
- */
5620
- 'totalAfterCredits'?: number;
5621
- /**
5622
- * Construct a type with a set of properties K of type T
5623
- * @type {{ [key: string]: number; }}
5624
- * @memberof JoinEventResponse
5625
- */
5626
- 'perPayerAfterCredits'?: { [key: string]: number; };
5627
- }
5628
- /**
5629
- *
5630
- * @export
5631
- * @interface JoinEventResponseOnsitePaymentsInner
5632
- */
5633
- export interface JoinEventResponseOnsitePaymentsInner {
5634
- /**
5635
- *
5636
- * @type {PaymentMethod}
5637
- * @memberof JoinEventResponseOnsitePaymentsInner
5638
- */
5639
- 'paymentMethod': PaymentMethod;
5640
- /**
5641
- *
5642
- * @type {number}
5643
- * @memberof JoinEventResponseOnsitePaymentsInner
5644
- */
5645
- 'amount': number;
5646
- /**
5647
- *
5648
- * @type {string}
5649
- * @memberof JoinEventResponseOnsitePaymentsInner
5650
- */
5651
- 'playerId': string;
5652
- }
5653
-
5654
-
5655
- /**
5656
- *
5657
- * @export
5658
- * @interface LastSixMonthsTurnoverItem
5659
- */
5660
- export interface LastSixMonthsTurnoverItem {
5661
- /**
5662
- * Nom du mois (Jan, Feb, etc.)
5663
- * @type {string}
5664
- * @memberof LastSixMonthsTurnoverItem
5665
- */
5666
- 'month': string;
5667
- /**
5668
- * Valeur du chiffre d\'affaires
5669
- * @type {number}
5670
- * @memberof LastSixMonthsTurnoverItem
5671
- */
5672
- 'value': number;
5673
- }
5674
- /**
5675
- *
5676
- * @export
5677
- * @interface LevelBySportEntry
5678
- */
5679
- export interface LevelBySportEntry {
5680
- /**
5681
- *
5682
- * @type {string}
5683
- * @memberof LevelBySportEntry
5684
- */
5685
- 'level': string;
5686
- /**
5687
- *
5688
- * @type {string}
5689
- * @memberof LevelBySportEntry
5474
+ * @type {string}
5475
+ * @memberof LevelBySportEntry
5690
5476
  */
5691
5477
  'sport': string;
5692
5478
  }
@@ -7275,6 +7061,44 @@ export interface RevenueBySportItem {
7275
7061
  */
7276
7062
  'totalTurnover': number;
7277
7063
  }
7064
+ /**
7065
+ *
7066
+ * @export
7067
+ * @interface SendSubscriptionInvitationRequest
7068
+ */
7069
+ export interface SendSubscriptionInvitationRequest {
7070
+ /**
7071
+ *
7072
+ * @type {string}
7073
+ * @memberof SendSubscriptionInvitationRequest
7074
+ */
7075
+ 'userId': string;
7076
+ /**
7077
+ * Identifiant Stripe (productId) du plan sélectionné par le staff.
7078
+ * @type {string}
7079
+ * @memberof SendSubscriptionInvitationRequest
7080
+ */
7081
+ 'productId': string;
7082
+ }
7083
+ /**
7084
+ *
7085
+ * @export
7086
+ * @interface SendSubscriptionInvitationResponse
7087
+ */
7088
+ export interface SendSubscriptionInvitationResponse {
7089
+ /**
7090
+ *
7091
+ * @type {string}
7092
+ * @memberof SendSubscriptionInvitationResponse
7093
+ */
7094
+ 'invitationUrl': string;
7095
+ /**
7096
+ *
7097
+ * @type {string}
7098
+ * @memberof SendSubscriptionInvitationResponse
7099
+ */
7100
+ 'message': string;
7101
+ }
7278
7102
  /**
7279
7103
  *
7280
7104
  * @export
@@ -7497,6 +7321,398 @@ export interface SportWithLevels {
7497
7321
  */
7498
7322
  'logos'?: Array<string>;
7499
7323
  }
7324
+ /**
7325
+ *
7326
+ * @export
7327
+ * @interface StaffBookingCourtSummary
7328
+ */
7329
+ export interface StaffBookingCourtSummary {
7330
+ /**
7331
+ * ID du terrain
7332
+ * @type {string}
7333
+ * @memberof StaffBookingCourtSummary
7334
+ */
7335
+ 'id': string;
7336
+ /**
7337
+ * Nom du terrain
7338
+ * @type {string}
7339
+ * @memberof StaffBookingCourtSummary
7340
+ */
7341
+ 'name'?: string | null;
7342
+ /**
7343
+ * Surface
7344
+ * @type {string}
7345
+ * @memberof StaffBookingCourtSummary
7346
+ */
7347
+ 'surface'?: string | null;
7348
+ /**
7349
+ * Terrain intérieur
7350
+ * @type {boolean}
7351
+ * @memberof StaffBookingCourtSummary
7352
+ */
7353
+ 'isIndoor'?: boolean;
7354
+ }
7355
+ /**
7356
+ *
7357
+ * @export
7358
+ * @interface StaffBookingCustomerPayload
7359
+ */
7360
+ export interface StaffBookingCustomerPayload {
7361
+ /**
7362
+ * Identifiant d\'un utilisateur existant
7363
+ * @type {string}
7364
+ * @memberof StaffBookingCustomerPayload
7365
+ */
7366
+ 'userId'?: string;
7367
+ /**
7368
+ * Prénom de l\'invité (requis si userId absent)
7369
+ * @type {string}
7370
+ * @memberof StaffBookingCustomerPayload
7371
+ */
7372
+ 'firstName'?: string;
7373
+ /**
7374
+ * Nom de famille de l\'invité (requis si userId absent)
7375
+ * @type {string}
7376
+ * @memberof StaffBookingCustomerPayload
7377
+ */
7378
+ 'lastName'?: string;
7379
+ /**
7380
+ * Email de contact (requis si userId absent)
7381
+ * @type {string}
7382
+ * @memberof StaffBookingCustomerPayload
7383
+ */
7384
+ 'email'?: string;
7385
+ /**
7386
+ * Numéro de téléphone optionnel
7387
+ * @type {string}
7388
+ * @memberof StaffBookingCustomerPayload
7389
+ */
7390
+ 'phoneNumber'?: string;
7391
+ }
7392
+ /**
7393
+ *
7394
+ * @export
7395
+ * @interface StaffBookingListItem
7396
+ */
7397
+ export interface StaffBookingListItem {
7398
+ /**
7399
+ * ID de la réservation
7400
+ * @type {string}
7401
+ * @memberof StaffBookingListItem
7402
+ */
7403
+ 'id': string;
7404
+ /**
7405
+ * ID du club
7406
+ * @type {string}
7407
+ * @memberof StaffBookingListItem
7408
+ */
7409
+ 'clubId': string;
7410
+ /**
7411
+ *
7412
+ * @type {BookingStatus}
7413
+ * @memberof StaffBookingListItem
7414
+ */
7415
+ 'status': BookingStatus;
7416
+ /**
7417
+ * Date de début
7418
+ * @type {string}
7419
+ * @memberof StaffBookingListItem
7420
+ */
7421
+ 'startDate'?: string | null;
7422
+ /**
7423
+ * Date de fin
7424
+ * @type {string}
7425
+ * @memberof StaffBookingListItem
7426
+ */
7427
+ 'endDate'?: string | null;
7428
+ /**
7429
+ * Durée estimée en minutes
7430
+ * @type {number}
7431
+ * @memberof StaffBookingListItem
7432
+ */
7433
+ 'durationMinutes'?: number | null;
7434
+ /**
7435
+ * Date de création
7436
+ * @type {string}
7437
+ * @memberof StaffBookingListItem
7438
+ */
7439
+ 'createdAt'?: string | null;
7440
+ /**
7441
+ * Dernière mise à jour
7442
+ * @type {string}
7443
+ * @memberof StaffBookingListItem
7444
+ */
7445
+ 'updatedAt'?: string | null;
7446
+ /**
7447
+ * Nombre total de participants (créateur inclus)
7448
+ * @type {number}
7449
+ * @memberof StaffBookingListItem
7450
+ */
7451
+ 'playersCount': number;
7452
+ /**
7453
+ * Prix total (centimes)
7454
+ * @type {number}
7455
+ * @memberof StaffBookingListItem
7456
+ */
7457
+ 'totalPrice': number;
7458
+ /**
7459
+ * Créateur
7460
+ * @type {StaffBookingUserSummary}
7461
+ * @memberof StaffBookingListItem
7462
+ */
7463
+ 'creator'?: StaffBookingUserSummary | null;
7464
+ /**
7465
+ * Participants
7466
+ * @type {Array<StaffBookingUserSummary>}
7467
+ * @memberof StaffBookingListItem
7468
+ */
7469
+ 'players': Array<StaffBookingUserSummary>;
7470
+ /**
7471
+ * Terrains impliqués
7472
+ * @type {Array<StaffBookingCourtSummary>}
7473
+ * @memberof StaffBookingListItem
7474
+ */
7475
+ 'courts': Array<StaffBookingCourtSummary>;
7476
+ /**
7477
+ * Sports associés
7478
+ * @type {Array<StaffBookingSportSummary>}
7479
+ * @memberof StaffBookingListItem
7480
+ */
7481
+ 'sports': Array<StaffBookingSportSummary>;
7482
+ /**
7483
+ *
7484
+ * @type {StaffBookingPaymentSummary}
7485
+ * @memberof StaffBookingListItem
7486
+ */
7487
+ 'paymentSummary': StaffBookingPaymentSummary;
7488
+ /**
7489
+ * Indique si le créateur paie pour tous
7490
+ * @type {boolean}
7491
+ * @memberof StaffBookingListItem
7492
+ */
7493
+ 'isCreatorPayingAll': boolean;
7494
+ /**
7495
+ * Réservation publique
7496
+ * @type {boolean}
7497
+ * @memberof StaffBookingListItem
7498
+ */
7499
+ 'isPublic': boolean;
7500
+ /**
7501
+ * Nombre de créneaux
7502
+ * @type {number}
7503
+ * @memberof StaffBookingListItem
7504
+ */
7505
+ 'slotCount': number;
7506
+ }
7507
+
7508
+
7509
+ /**
7510
+ *
7511
+ * @export
7512
+ * @enum {string}
7513
+ */
7514
+
7515
+ export const StaffBookingPaymentState = {
7516
+ None: 'none',
7517
+ Paid: 'paid',
7518
+ Pending: 'pending',
7519
+ Authorized: 'authorized',
7520
+ Failed: 'failed',
7521
+ Partial: 'partial'
7522
+ } as const;
7523
+
7524
+ export type StaffBookingPaymentState = typeof StaffBookingPaymentState[keyof typeof StaffBookingPaymentState];
7525
+
7526
+
7527
+ /**
7528
+ *
7529
+ * @export
7530
+ * @interface StaffBookingPaymentSummary
7531
+ */
7532
+ export interface StaffBookingPaymentSummary {
7533
+ /**
7534
+ *
7535
+ * @type {StaffBookingPaymentState}
7536
+ * @memberof StaffBookingPaymentSummary
7537
+ */
7538
+ 'status': StaffBookingPaymentState;
7539
+ /**
7540
+ * Nombre total de factures
7541
+ * @type {number}
7542
+ * @memberof StaffBookingPaymentSummary
7543
+ */
7544
+ 'totalInvoices': number;
7545
+ /**
7546
+ * Factures payées
7547
+ * @type {number}
7548
+ * @memberof StaffBookingPaymentSummary
7549
+ */
7550
+ 'paidInvoices': number;
7551
+ /**
7552
+ * Factures en attente
7553
+ * @type {number}
7554
+ * @memberof StaffBookingPaymentSummary
7555
+ */
7556
+ 'pendingInvoices': number;
7557
+ /**
7558
+ * Factures autorisées
7559
+ * @type {number}
7560
+ * @memberof StaffBookingPaymentSummary
7561
+ */
7562
+ 'authorizedInvoices': number;
7563
+ /**
7564
+ * Factures échouées ou annulées
7565
+ * @type {number}
7566
+ * @memberof StaffBookingPaymentSummary
7567
+ */
7568
+ 'failedInvoices': number;
7569
+ /**
7570
+ * Méthodes de paiement impliquées
7571
+ * @type {Array<PaymentMethod>}
7572
+ * @memberof StaffBookingPaymentSummary
7573
+ */
7574
+ 'paymentMethods': Array<PaymentMethod>;
7575
+ /**
7576
+ * Statuts des factures rencontrés
7577
+ * @type {Array<InvoiceStatus>}
7578
+ * @memberof StaffBookingPaymentSummary
7579
+ */
7580
+ 'invoiceStatuses': Array<InvoiceStatus>;
7581
+ }
7582
+
7583
+
7584
+ /**
7585
+ *
7586
+ * @export
7587
+ * @interface StaffBookingSportSummary
7588
+ */
7589
+ export interface StaffBookingSportSummary {
7590
+ /**
7591
+ * ID du sport
7592
+ * @type {string}
7593
+ * @memberof StaffBookingSportSummary
7594
+ */
7595
+ 'id': string;
7596
+ /**
7597
+ * Nom du sport
7598
+ * @type {string}
7599
+ * @memberof StaffBookingSportSummary
7600
+ */
7601
+ 'name'?: string | null;
7602
+ /**
7603
+ * Clé du sport
7604
+ * @type {string}
7605
+ * @memberof StaffBookingSportSummary
7606
+ */
7607
+ 'key'?: string | null;
7608
+ }
7609
+ /**
7610
+ *
7611
+ * @export
7612
+ * @interface StaffBookingUserSummary
7613
+ */
7614
+ export interface StaffBookingUserSummary {
7615
+ /**
7616
+ * ID de l\'utilisateur
7617
+ * @type {string}
7618
+ * @memberof StaffBookingUserSummary
7619
+ */
7620
+ 'id': string;
7621
+ /**
7622
+ * Prénom
7623
+ * @type {string}
7624
+ * @memberof StaffBookingUserSummary
7625
+ */
7626
+ 'firstName'?: string | null;
7627
+ /**
7628
+ * Nom
7629
+ * @type {string}
7630
+ * @memberof StaffBookingUserSummary
7631
+ */
7632
+ 'lastName'?: string | null;
7633
+ /**
7634
+ * Email
7635
+ * @type {string}
7636
+ * @memberof StaffBookingUserSummary
7637
+ */
7638
+ 'email'?: string | null;
7639
+ /**
7640
+ * Photo de profil
7641
+ * @type {string}
7642
+ * @memberof StaffBookingUserSummary
7643
+ */
7644
+ 'profilePictureUrl'?: string | null;
7645
+ }
7646
+ /**
7647
+ *
7648
+ * @export
7649
+ * @interface StaffBookingsPaginatedResponse
7650
+ */
7651
+ export interface StaffBookingsPaginatedResponse {
7652
+ /**
7653
+ * Réservations
7654
+ * @type {Array<StaffBookingListItem>}
7655
+ * @memberof StaffBookingsPaginatedResponse
7656
+ */
7657
+ 'bookings': Array<StaffBookingListItem>;
7658
+ /**
7659
+ * Page courante (1-based)
7660
+ * @type {number}
7661
+ * @memberof StaffBookingsPaginatedResponse
7662
+ */
7663
+ 'page': number;
7664
+ /**
7665
+ * Taille de page
7666
+ * @type {number}
7667
+ * @memberof StaffBookingsPaginatedResponse
7668
+ */
7669
+ 'pageSize': number;
7670
+ /**
7671
+ * Nombre total d\'éléments
7672
+ * @type {number}
7673
+ * @memberof StaffBookingsPaginatedResponse
7674
+ */
7675
+ 'total': number;
7676
+ /**
7677
+ * Nombre total de pages
7678
+ * @type {number}
7679
+ * @memberof StaffBookingsPaginatedResponse
7680
+ */
7681
+ 'totalPages': number;
7682
+ }
7683
+ /**
7684
+ *
7685
+ * @export
7686
+ * @interface StaffCreateBookingRequest
7687
+ */
7688
+ export interface StaffCreateBookingRequest {
7689
+ /**
7690
+ * Liste des créneaux à réserver
7691
+ * @type {Array<string>}
7692
+ * @memberof StaffCreateBookingRequest
7693
+ */
7694
+ 'slotIds': Array<string>;
7695
+ /**
7696
+ *
7697
+ * @type {StaffBookingCustomerPayload}
7698
+ * @memberof StaffCreateBookingRequest
7699
+ */
7700
+ 'customer': StaffBookingCustomerPayload;
7701
+ /**
7702
+ * Autres joueurs existants à associer
7703
+ * @type {Array<string>}
7704
+ * @memberof StaffCreateBookingRequest
7705
+ */
7706
+ 'playerIds'?: Array<string>;
7707
+ /**
7708
+ *
7709
+ * @type {PaymentMethod}
7710
+ * @memberof StaffCreateBookingRequest
7711
+ */
7712
+ 'paymentMethod'?: PaymentMethod;
7713
+ }
7714
+
7715
+
7500
7716
  /**
7501
7717
  *
7502
7718
  * @export
@@ -9588,6 +9804,12 @@ export interface UpdateEventRequest {
9588
9804
  * @memberof UpdateEventRequest
9589
9805
  */
9590
9806
  'teamLimit'?: number;
9807
+ /**
9808
+ *
9809
+ * @type {number}
9810
+ * @memberof UpdateEventRequest
9811
+ */
9812
+ 'playersPerTeam'?: number;
9591
9813
  /**
9592
9814
  *
9593
9815
  * @type {number}
@@ -9606,6 +9828,18 @@ export interface UpdateEventRequest {
9606
9828
  * @memberof UpdateEventRequest
9607
9829
  */
9608
9830
  'visibilityType'?: UpdateEventRequestVisibilityTypeEnum;
9831
+ /**
9832
+ *
9833
+ * @type {Array<string | null>}
9834
+ * @memberof UpdateEventRequest
9835
+ */
9836
+ 'levels'?: Array<string | null>;
9837
+ /**
9838
+ *
9839
+ * @type {Array<EventSponsor>}
9840
+ * @memberof UpdateEventRequest
9841
+ */
9842
+ 'sponsors'?: Array<EventSponsor>;
9609
9843
  }
9610
9844
 
9611
9845
  export const UpdateEventRequestTypeEnum = {
@@ -11126,7 +11360,46 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
11126
11360
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11127
11361
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11128
11362
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11129
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
11363
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
11364
+
11365
+ return {
11366
+ url: toPathString(localVarUrlObj),
11367
+ options: localVarRequestOptions,
11368
+ };
11369
+ },
11370
+ /**
11371
+ * Créer une réservation pour un joueur depuis l\'espace staff
11372
+ * @param {StaffCreateBookingRequest} staffCreateBookingRequest
11373
+ * @param {*} [options] Override http request option.
11374
+ * @throws {RequiredError}
11375
+ */
11376
+ createStaffBooking: async (staffCreateBookingRequest: StaffCreateBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11377
+ // verify required parameter 'staffCreateBookingRequest' is not null or undefined
11378
+ assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest)
11379
+ const localVarPath = `/api/bookings/staff`;
11380
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11381
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11382
+ let baseOptions;
11383
+ if (configuration) {
11384
+ baseOptions = configuration.baseOptions;
11385
+ }
11386
+
11387
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11388
+ const localVarHeaderParameter = {} as any;
11389
+ const localVarQueryParameter = {} as any;
11390
+
11391
+ // authentication bearerAuth required
11392
+ // http bearer authentication required
11393
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11394
+
11395
+
11396
+
11397
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11398
+
11399
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11400
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11401
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11402
+ localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration)
11130
11403
 
11131
11404
  return {
11132
11405
  url: toPathString(localVarUrlObj),
@@ -11309,6 +11582,64 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
11309
11582
 
11310
11583
 
11311
11584
 
11585
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11586
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11587
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11588
+
11589
+ return {
11590
+ url: toPathString(localVarUrlObj),
11591
+ options: localVarRequestOptions,
11592
+ };
11593
+ },
11594
+ /**
11595
+ * Liste paginée des réservations du club pour le staff
11596
+ * @param {number} [page]
11597
+ * @param {number} [pageSize]
11598
+ * @param {string} [search]
11599
+ * @param {string} [filters]
11600
+ * @param {string} [sorting]
11601
+ * @param {*} [options] Override http request option.
11602
+ * @throws {RequiredError}
11603
+ */
11604
+ listClubBookings: async (page?: number, pageSize?: number, search?: string, filters?: string, sorting?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11605
+ const localVarPath = `/api/bookings/staff`;
11606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11608
+ let baseOptions;
11609
+ if (configuration) {
11610
+ baseOptions = configuration.baseOptions;
11611
+ }
11612
+
11613
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11614
+ const localVarHeaderParameter = {} as any;
11615
+ const localVarQueryParameter = {} as any;
11616
+
11617
+ // authentication bearerAuth required
11618
+ // http bearer authentication required
11619
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11620
+
11621
+ if (page !== undefined) {
11622
+ localVarQueryParameter['page'] = page;
11623
+ }
11624
+
11625
+ if (pageSize !== undefined) {
11626
+ localVarQueryParameter['pageSize'] = pageSize;
11627
+ }
11628
+
11629
+ if (search !== undefined) {
11630
+ localVarQueryParameter['search'] = search;
11631
+ }
11632
+
11633
+ if (filters !== undefined) {
11634
+ localVarQueryParameter['filters'] = filters;
11635
+ }
11636
+
11637
+ if (sorting !== undefined) {
11638
+ localVarQueryParameter['sorting'] = sorting;
11639
+ }
11640
+
11641
+
11642
+
11312
11643
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11313
11644
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11314
11645
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -11341,6 +11672,18 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
11341
11672
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayers']?.[localVarOperationServerIndex]?.url;
11342
11673
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11343
11674
  },
11675
+ /**
11676
+ * Créer une réservation pour un joueur depuis l\'espace staff
11677
+ * @param {StaffCreateBookingRequest} staffCreateBookingRequest
11678
+ * @param {*} [options] Override http request option.
11679
+ * @throws {RequiredError}
11680
+ */
11681
+ async createStaffBooking(staffCreateBookingRequest: StaffCreateBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponse>> {
11682
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createStaffBooking(staffCreateBookingRequest, options);
11683
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11684
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.createStaffBooking']?.[localVarOperationServerIndex]?.url;
11685
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11686
+ },
11344
11687
  /**
11345
11688
  * Obtenir une réservation par ID
11346
11689
  * @param {string} bookingId
@@ -11401,6 +11744,22 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
11401
11744
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getWeeklyBookings']?.[localVarOperationServerIndex]?.url;
11402
11745
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11403
11746
  },
11747
+ /**
11748
+ * Liste paginée des réservations du club pour le staff
11749
+ * @param {number} [page]
11750
+ * @param {number} [pageSize]
11751
+ * @param {string} [search]
11752
+ * @param {string} [filters]
11753
+ * @param {string} [sorting]
11754
+ * @param {*} [options] Override http request option.
11755
+ * @throws {RequiredError}
11756
+ */
11757
+ async listClubBookings(page?: number, pageSize?: number, search?: string, filters?: string, sorting?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffBookingsPaginatedResponse>> {
11758
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClubBookings(page, pageSize, search, filters, sorting, options);
11759
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11760
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.listClubBookings']?.[localVarOperationServerIndex]?.url;
11761
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11762
+ },
11404
11763
  }
11405
11764
  };
11406
11765
 
@@ -11420,6 +11779,15 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
11420
11779
  checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayersResponse> {
11421
11780
  return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
11422
11781
  },
11782
+ /**
11783
+ * Créer une réservation pour un joueur depuis l\'espace staff
11784
+ * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
11785
+ * @param {*} [options] Override http request option.
11786
+ * @throws {RequiredError}
11787
+ */
11788
+ createStaffBooking(requestParameters: BookingsStaffApiCreateStaffBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
11789
+ return localVarFp.createStaffBooking(requestParameters.staffCreateBookingRequest, options).then((request) => request(axios, basePath));
11790
+ },
11423
11791
  /**
11424
11792
  * Obtenir une réservation par ID
11425
11793
  * @param {BookingsStaffApiGetBookingByIdRequest} requestParameters Request parameters.
@@ -11465,6 +11833,15 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
11465
11833
  getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse> {
11466
11834
  return localVarFp.getWeeklyBookings(requestParameters.weekId, options).then((request) => request(axios, basePath));
11467
11835
  },
11836
+ /**
11837
+ * Liste paginée des réservations du club pour le staff
11838
+ * @param {BookingsStaffApiListClubBookingsRequest} requestParameters Request parameters.
11839
+ * @param {*} [options] Override http request option.
11840
+ * @throws {RequiredError}
11841
+ */
11842
+ listClubBookings(requestParameters: BookingsStaffApiListClubBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<StaffBookingsPaginatedResponse> {
11843
+ return localVarFp.listClubBookings(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.sorting, options).then((request) => request(axios, basePath));
11844
+ },
11468
11845
  };
11469
11846
  };
11470
11847
 
@@ -11489,6 +11866,20 @@ export interface BookingsStaffApiCheckInPlayersRequest {
11489
11866
  readonly checkInPlayersRequest: CheckInPlayersRequest
11490
11867
  }
11491
11868
 
11869
+ /**
11870
+ * Request parameters for createStaffBooking operation in BookingsStaffApi.
11871
+ * @export
11872
+ * @interface BookingsStaffApiCreateStaffBookingRequest
11873
+ */
11874
+ export interface BookingsStaffApiCreateStaffBookingRequest {
11875
+ /**
11876
+ *
11877
+ * @type {StaffCreateBookingRequest}
11878
+ * @memberof BookingsStaffApiCreateStaffBooking
11879
+ */
11880
+ readonly staffCreateBookingRequest: StaffCreateBookingRequest
11881
+ }
11882
+
11492
11883
  /**
11493
11884
  * Request parameters for getBookingById operation in BookingsStaffApi.
11494
11885
  * @export
@@ -11559,6 +11950,48 @@ export interface BookingsStaffApiGetWeeklyBookingsRequest {
11559
11950
  readonly weekId: string
11560
11951
  }
11561
11952
 
11953
+ /**
11954
+ * Request parameters for listClubBookings operation in BookingsStaffApi.
11955
+ * @export
11956
+ * @interface BookingsStaffApiListClubBookingsRequest
11957
+ */
11958
+ export interface BookingsStaffApiListClubBookingsRequest {
11959
+ /**
11960
+ *
11961
+ * @type {number}
11962
+ * @memberof BookingsStaffApiListClubBookings
11963
+ */
11964
+ readonly page?: number
11965
+
11966
+ /**
11967
+ *
11968
+ * @type {number}
11969
+ * @memberof BookingsStaffApiListClubBookings
11970
+ */
11971
+ readonly pageSize?: number
11972
+
11973
+ /**
11974
+ *
11975
+ * @type {string}
11976
+ * @memberof BookingsStaffApiListClubBookings
11977
+ */
11978
+ readonly search?: string
11979
+
11980
+ /**
11981
+ *
11982
+ * @type {string}
11983
+ * @memberof BookingsStaffApiListClubBookings
11984
+ */
11985
+ readonly filters?: string
11986
+
11987
+ /**
11988
+ *
11989
+ * @type {string}
11990
+ * @memberof BookingsStaffApiListClubBookings
11991
+ */
11992
+ readonly sorting?: string
11993
+ }
11994
+
11562
11995
  /**
11563
11996
  * BookingsStaffApi - object-oriented interface
11564
11997
  * @export
@@ -11577,6 +12010,17 @@ export class BookingsStaffApi extends BaseAPI {
11577
12010
  return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
11578
12011
  }
11579
12012
 
12013
+ /**
12014
+ * Créer une réservation pour un joueur depuis l\'espace staff
12015
+ * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
12016
+ * @param {*} [options] Override http request option.
12017
+ * @throws {RequiredError}
12018
+ * @memberof BookingsStaffApi
12019
+ */
12020
+ public createStaffBooking(requestParameters: BookingsStaffApiCreateStaffBookingRequest, options?: RawAxiosRequestConfig) {
12021
+ return BookingsStaffApiFp(this.configuration).createStaffBooking(requestParameters.staffCreateBookingRequest, options).then((request) => request(this.axios, this.basePath));
12022
+ }
12023
+
11580
12024
  /**
11581
12025
  * Obtenir une réservation par ID
11582
12026
  * @param {BookingsStaffApiGetBookingByIdRequest} requestParameters Request parameters.
@@ -11631,6 +12075,17 @@ export class BookingsStaffApi extends BaseAPI {
11631
12075
  public getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig) {
11632
12076
  return BookingsStaffApiFp(this.configuration).getWeeklyBookings(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
11633
12077
  }
12078
+
12079
+ /**
12080
+ * Liste paginée des réservations du club pour le staff
12081
+ * @param {BookingsStaffApiListClubBookingsRequest} requestParameters Request parameters.
12082
+ * @param {*} [options] Override http request option.
12083
+ * @throws {RequiredError}
12084
+ * @memberof BookingsStaffApi
12085
+ */
12086
+ public listClubBookings(requestParameters: BookingsStaffApiListClubBookingsRequest = {}, options?: RawAxiosRequestConfig) {
12087
+ return BookingsStaffApiFp(this.configuration).listClubBookings(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.sorting, options).then((request) => request(this.axios, this.basePath));
12088
+ }
11634
12089
  }
11635
12090
 
11636
12091
 
@@ -11679,7 +12134,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
11679
12134
  };
11680
12135
  },
11681
12136
  /**
11682
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
12137
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
11683
12138
  * @param {CreateBookingRequest} createBookingRequest
11684
12139
  * @param {*} [options] Override http request option.
11685
12140
  * @throws {RequiredError}
@@ -11740,7 +12195,7 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
11740
12195
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11741
12196
  },
11742
12197
  /**
11743
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
12198
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
11744
12199
  * @param {CreateBookingRequest} createBookingRequest
11745
12200
  * @param {*} [options] Override http request option.
11746
12201
  * @throws {RequiredError}
@@ -11771,7 +12226,7 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
11771
12226
  return localVarFp.cancelBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
11772
12227
  },
11773
12228
  /**
11774
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
12229
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
11775
12230
  * @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
11776
12231
  * @param {*} [options] Override http request option.
11777
12232
  * @throws {RequiredError}
@@ -11829,7 +12284,7 @@ export class BookingsUserApi extends BaseAPI {
11829
12284
  }
11830
12285
 
11831
12286
  /**
11832
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
12287
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
11833
12288
  * @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
11834
12289
  * @param {*} [options] Override http request option.
11835
12290
  * @throws {RequiredError}
@@ -11849,7 +12304,7 @@ export class BookingsUserApi extends BaseAPI {
11849
12304
  export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
11850
12305
  return {
11851
12306
  /**
11852
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12307
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11853
12308
  * @param {ClientRegisterRequest} clientRegisterRequest
11854
12309
  * @param {*} [options] Override http request option.
11855
12310
  * @throws {RequiredError}
@@ -11883,39 +12338,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11883
12338
  options: localVarRequestOptions,
11884
12339
  };
11885
12340
  },
11886
- /**
11887
- * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
11888
- * @param {*} [options] Override http request option.
11889
- * @throws {RequiredError}
11890
- */
11891
- getClientSubscriptions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11892
- const localVarPath = `/clients/subscriptions`;
11893
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11894
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11895
- let baseOptions;
11896
- if (configuration) {
11897
- baseOptions = configuration.baseOptions;
11898
- }
11899
-
11900
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11901
- const localVarHeaderParameter = {} as any;
11902
- const localVarQueryParameter = {} as any;
11903
-
11904
- // authentication clientAuth required
11905
- // http bearer authentication required
11906
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11907
-
11908
-
11909
-
11910
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11911
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11912
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11913
-
11914
- return {
11915
- url: toPathString(localVarUrlObj),
11916
- options: localVarRequestOptions,
11917
- };
11918
- },
11919
12341
  /**
11920
12342
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11921
12343
  * @param {*} [options] Override http request option.
@@ -11950,7 +12372,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11950
12372
  };
11951
12373
  },
11952
12374
  /**
11953
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
12375
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11954
12376
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11955
12377
  * @param {*} [options] Override http request option.
11956
12378
  * @throws {RequiredError}
@@ -11999,7 +12421,7 @@ export const ClientApiFp = function(configuration?: Configuration) {
11999
12421
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
12000
12422
  return {
12001
12423
  /**
12002
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12424
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12003
12425
  * @param {ClientRegisterRequest} clientRegisterRequest
12004
12426
  * @param {*} [options] Override http request option.
12005
12427
  * @throws {RequiredError}
@@ -12010,17 +12432,6 @@ export const ClientApiFp = function(configuration?: Configuration) {
12010
12432
  const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
12011
12433
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12012
12434
  },
12013
- /**
12014
- * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12015
- * @param {*} [options] Override http request option.
12016
- * @throws {RequiredError}
12017
- */
12018
- async getClientSubscriptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientSubscriptionsResponse>> {
12019
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClientSubscriptions(options);
12020
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12021
- const localVarOperationServerBasePath = operationServerMap['ClientApi.getClientSubscriptions']?.[localVarOperationServerIndex]?.url;
12022
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12023
- },
12024
12435
  /**
12025
12436
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12026
12437
  * @param {*} [options] Override http request option.
@@ -12033,7 +12444,7 @@ export const ClientApiFp = function(configuration?: Configuration) {
12033
12444
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12034
12445
  },
12035
12446
  /**
12036
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
12447
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
12037
12448
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
12038
12449
  * @param {*} [options] Override http request option.
12039
12450
  * @throws {RequiredError}
@@ -12055,7 +12466,7 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
12055
12466
  const localVarFp = ClientApiFp(configuration)
12056
12467
  return {
12057
12468
  /**
12058
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12469
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12059
12470
  * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
12060
12471
  * @param {*} [options] Override http request option.
12061
12472
  * @throws {RequiredError}
@@ -12063,14 +12474,6 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
12063
12474
  clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
12064
12475
  return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
12065
12476
  },
12066
- /**
12067
- * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12068
- * @param {*} [options] Override http request option.
12069
- * @throws {RequiredError}
12070
- */
12071
- getClientSubscriptions(options?: RawAxiosRequestConfig): AxiosPromise<ClientSubscriptionsResponse> {
12072
- return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
12073
- },
12074
12477
  /**
12075
12478
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12076
12479
  * @param {*} [options] Override http request option.
@@ -12080,7 +12483,7 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
12080
12483
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
12081
12484
  },
12082
12485
  /**
12083
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
12486
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
12084
12487
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
12085
12488
  * @param {*} [options] Override http request option.
12086
12489
  * @throws {RequiredError}
@@ -12127,7 +12530,7 @@ export interface ClientApiOnboardClubRequest {
12127
12530
  */
12128
12531
  export class ClientApi extends BaseAPI {
12129
12532
  /**
12130
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12533
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12131
12534
  * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
12132
12535
  * @param {*} [options] Override http request option.
12133
12536
  * @throws {RequiredError}
@@ -12137,16 +12540,6 @@ export class ClientApi extends BaseAPI {
12137
12540
  return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
12138
12541
  }
12139
12542
 
12140
- /**
12141
- * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12142
- * @param {*} [options] Override http request option.
12143
- * @throws {RequiredError}
12144
- * @memberof ClientApi
12145
- */
12146
- public getClientSubscriptions(options?: RawAxiosRequestConfig) {
12147
- return ClientApiFp(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
12148
- }
12149
-
12150
12543
  /**
12151
12544
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12152
12545
  * @param {*} [options] Override http request option.
@@ -12158,7 +12551,7 @@ export class ClientApi extends BaseAPI {
12158
12551
  }
12159
12552
 
12160
12553
  /**
12161
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
12554
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
12162
12555
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
12163
12556
  * @param {*} [options] Override http request option.
12164
12557
  * @throws {RequiredError}
@@ -12500,10 +12893,14 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
12500
12893
  },
12501
12894
  /**
12502
12895
  * Récupère la liste des joueurs du club
12896
+ * @param {number} [page]
12897
+ * @param {number} [pageSize]
12898
+ * @param {string} [search]
12899
+ * @param {string} [filters]
12503
12900
  * @param {*} [options] Override http request option.
12504
12901
  * @throws {RequiredError}
12505
12902
  */
12506
- getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12903
+ getClubPlayers: async (page?: number, pageSize?: number, search?: string, filters?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12507
12904
  const localVarPath = `/api/club-analytics/players`;
12508
12905
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12509
12906
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -12520,6 +12917,22 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
12520
12917
  // http bearer authentication required
12521
12918
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
12522
12919
 
12920
+ if (page !== undefined) {
12921
+ localVarQueryParameter['page'] = page;
12922
+ }
12923
+
12924
+ if (pageSize !== undefined) {
12925
+ localVarQueryParameter['pageSize'] = pageSize;
12926
+ }
12927
+
12928
+ if (search !== undefined) {
12929
+ localVarQueryParameter['search'] = search;
12930
+ }
12931
+
12932
+ if (filters !== undefined) {
12933
+ localVarQueryParameter['filters'] = filters;
12934
+ }
12935
+
12523
12936
 
12524
12937
 
12525
12938
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -12994,11 +13407,15 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
12994
13407
  },
12995
13408
  /**
12996
13409
  * Récupère la liste des joueurs du club
13410
+ * @param {number} [page]
13411
+ * @param {number} [pageSize]
13412
+ * @param {string} [search]
13413
+ * @param {string} [filters]
12997
13414
  * @param {*} [options] Override http request option.
12998
13415
  * @throws {RequiredError}
12999
13416
  */
13000
- async getClubPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClubPlayerResponse>>> {
13001
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayers(options);
13417
+ async getClubPlayers(page?: number, pageSize?: number, search?: string, filters?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayersPaginatedResponse>> {
13418
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayers(page, pageSize, search, filters, options);
13002
13419
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13003
13420
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayers']?.[localVarOperationServerIndex]?.url;
13004
13421
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13178,11 +13595,12 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
13178
13595
  },
13179
13596
  /**
13180
13597
  * Récupère la liste des joueurs du club
13598
+ * @param {ClubAnalyticsStaffApiGetClubPlayersRequest} requestParameters Request parameters.
13181
13599
  * @param {*} [options] Override http request option.
13182
13600
  * @throws {RequiredError}
13183
13601
  */
13184
- getClubPlayers(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClubPlayerResponse>> {
13185
- return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
13602
+ getClubPlayers(requestParameters: ClubAnalyticsStaffApiGetClubPlayersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayersPaginatedResponse> {
13603
+ return localVarFp.getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(axios, basePath));
13186
13604
  },
13187
13605
  /**
13188
13606
  * Récupère le chiffre d\'affaires quotidien
@@ -13349,6 +13767,41 @@ export interface ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest {
13349
13767
  readonly playerId: string
13350
13768
  }
13351
13769
 
13770
+ /**
13771
+ * Request parameters for getClubPlayers operation in ClubAnalyticsStaffApi.
13772
+ * @export
13773
+ * @interface ClubAnalyticsStaffApiGetClubPlayersRequest
13774
+ */
13775
+ export interface ClubAnalyticsStaffApiGetClubPlayersRequest {
13776
+ /**
13777
+ *
13778
+ * @type {number}
13779
+ * @memberof ClubAnalyticsStaffApiGetClubPlayers
13780
+ */
13781
+ readonly page?: number
13782
+
13783
+ /**
13784
+ *
13785
+ * @type {number}
13786
+ * @memberof ClubAnalyticsStaffApiGetClubPlayers
13787
+ */
13788
+ readonly pageSize?: number
13789
+
13790
+ /**
13791
+ *
13792
+ * @type {string}
13793
+ * @memberof ClubAnalyticsStaffApiGetClubPlayers
13794
+ */
13795
+ readonly search?: string
13796
+
13797
+ /**
13798
+ *
13799
+ * @type {string}
13800
+ * @memberof ClubAnalyticsStaffApiGetClubPlayers
13801
+ */
13802
+ readonly filters?: string
13803
+ }
13804
+
13352
13805
  /**
13353
13806
  * Request parameters for getDailyTurnOver operation in ClubAnalyticsStaffApi.
13354
13807
  * @export
@@ -13472,12 +13925,13 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
13472
13925
 
13473
13926
  /**
13474
13927
  * Récupère la liste des joueurs du club
13928
+ * @param {ClubAnalyticsStaffApiGetClubPlayersRequest} requestParameters Request parameters.
13475
13929
  * @param {*} [options] Override http request option.
13476
13930
  * @throws {RequiredError}
13477
13931
  * @memberof ClubAnalyticsStaffApi
13478
13932
  */
13479
- public getClubPlayers(options?: RawAxiosRequestConfig) {
13480
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
13933
+ public getClubPlayers(requestParameters: ClubAnalyticsStaffApiGetClubPlayersRequest = {}, options?: RawAxiosRequestConfig) {
13934
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
13481
13935
  }
13482
13936
 
13483
13937
  /**
@@ -14820,7 +15274,7 @@ export class ClubSettingsStaffApi extends BaseAPI {
14820
15274
  export const ClubsApiAxiosParamCreator = function (configuration?: Configuration) {
14821
15275
  return {
14822
15276
  /**
14823
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15277
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
14824
15278
  * @param {*} [options] Override http request option.
14825
15279
  * @throws {RequiredError}
14826
15280
  */
@@ -15121,7 +15575,7 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
15121
15575
  };
15122
15576
  },
15123
15577
  /**
15124
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15578
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15125
15579
  * @param {*} [options] Override http request option.
15126
15580
  * @throws {RequiredError}
15127
15581
  */
@@ -15296,7 +15750,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
15296
15750
  const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration)
15297
15751
  return {
15298
15752
  /**
15299
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15753
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15300
15754
  * @param {*} [options] Override http request option.
15301
15755
  * @throws {RequiredError}
15302
15756
  */
@@ -15404,7 +15858,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
15404
15858
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15405
15859
  },
15406
15860
  /**
15407
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15861
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15408
15862
  * @param {*} [options] Override http request option.
15409
15863
  * @throws {RequiredError}
15410
15864
  */
@@ -15474,7 +15928,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
15474
15928
  const localVarFp = ClubsApiFp(configuration)
15475
15929
  return {
15476
15930
  /**
15477
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15931
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15478
15932
  * @param {*} [options] Override http request option.
15479
15933
  * @throws {RequiredError}
15480
15934
  */
@@ -15552,7 +16006,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
15552
16006
  return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
15553
16007
  },
15554
16008
  /**
15555
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
16009
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15556
16010
  * @param {*} [options] Override http request option.
15557
16011
  * @throws {RequiredError}
15558
16012
  */
@@ -15774,7 +16228,7 @@ export interface ClubsApiGetSportsByClubByIdRequest {
15774
16228
  */
15775
16229
  export class ClubsApi extends BaseAPI {
15776
16230
  /**
15777
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
16231
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15778
16232
  * @param {*} [options] Override http request option.
15779
16233
  * @throws {RequiredError}
15780
16234
  * @memberof ClubsApi
@@ -15870,7 +16324,7 @@ export class ClubsApi extends BaseAPI {
15870
16324
  }
15871
16325
 
15872
16326
  /**
15873
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
16327
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15874
16328
  * @param {*} [options] Override http request option.
15875
16329
  * @throws {RequiredError}
15876
16330
  * @memberof ClubsApi
@@ -18020,10 +18474,17 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
18020
18474
  },
18021
18475
  /**
18022
18476
  *
18477
+ * @param {number} [page]
18478
+ * @param {number} [pageSize]
18479
+ * @param {string} [search]
18480
+ * @param {string} [filters]
18481
+ * @param {string} [status]
18482
+ * @param {string} [startDate]
18483
+ * @param {string} [endDate]
18023
18484
  * @param {*} [options] Override http request option.
18024
18485
  * @throws {RequiredError}
18025
18486
  */
18026
- getInvoices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18487
+ getInvoices: async (page?: number, pageSize?: number, search?: string, filters?: string, status?: string, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18027
18488
  const localVarPath = `/api/clubs/invoices`;
18028
18489
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18029
18490
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18032,13 +18493,41 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
18032
18493
  baseOptions = configuration.baseOptions;
18033
18494
  }
18034
18495
 
18035
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18036
- const localVarHeaderParameter = {} as any;
18037
- const localVarQueryParameter = {} as any;
18496
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18497
+ const localVarHeaderParameter = {} as any;
18498
+ const localVarQueryParameter = {} as any;
18499
+
18500
+ // authentication bearerAuth required
18501
+ // http bearer authentication required
18502
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18503
+
18504
+ if (page !== undefined) {
18505
+ localVarQueryParameter['page'] = page;
18506
+ }
18507
+
18508
+ if (pageSize !== undefined) {
18509
+ localVarQueryParameter['pageSize'] = pageSize;
18510
+ }
18511
+
18512
+ if (search !== undefined) {
18513
+ localVarQueryParameter['search'] = search;
18514
+ }
18515
+
18516
+ if (filters !== undefined) {
18517
+ localVarQueryParameter['filters'] = filters;
18518
+ }
18038
18519
 
18039
- // authentication bearerAuth required
18040
- // http bearer authentication required
18041
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
18520
+ if (status !== undefined) {
18521
+ localVarQueryParameter['status'] = status;
18522
+ }
18523
+
18524
+ if (startDate !== undefined) {
18525
+ localVarQueryParameter['startDate'] = startDate;
18526
+ }
18527
+
18528
+ if (endDate !== undefined) {
18529
+ localVarQueryParameter['endDate'] = endDate;
18530
+ }
18042
18531
 
18043
18532
 
18044
18533
 
@@ -18222,11 +18711,18 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
18222
18711
  },
18223
18712
  /**
18224
18713
  *
18714
+ * @param {number} [page]
18715
+ * @param {number} [pageSize]
18716
+ * @param {string} [search]
18717
+ * @param {string} [filters]
18718
+ * @param {string} [status]
18719
+ * @param {string} [startDate]
18720
+ * @param {string} [endDate]
18225
18721
  * @param {*} [options] Override http request option.
18226
18722
  * @throws {RequiredError}
18227
18723
  */
18228
- async getInvoices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
18229
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoices(options);
18724
+ async getInvoices(page?: number, pageSize?: number, search?: string, filters?: string, status?: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
18725
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoices(page, pageSize, search, filters, status, startDate, endDate, options);
18230
18726
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18231
18727
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getInvoices']?.[localVarOperationServerIndex]?.url;
18232
18728
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18325,11 +18821,12 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
18325
18821
  },
18326
18822
  /**
18327
18823
  *
18824
+ * @param {ClubsStaffApiGetInvoicesRequest} requestParameters Request parameters.
18328
18825
  * @param {*} [options] Override http request option.
18329
18826
  * @throws {RequiredError}
18330
18827
  */
18331
- getInvoices(options?: RawAxiosRequestConfig): AxiosPromise<any> {
18332
- return localVarFp.getInvoices(options).then((request) => request(axios, basePath));
18828
+ getInvoices(requestParameters: ClubsStaffApiGetInvoicesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<any> {
18829
+ return localVarFp.getInvoices(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
18333
18830
  },
18334
18831
  /**
18335
18832
  *
@@ -18373,6 +18870,62 @@ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
18373
18870
  readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
18374
18871
  }
18375
18872
 
18873
+ /**
18874
+ * Request parameters for getInvoices operation in ClubsStaffApi.
18875
+ * @export
18876
+ * @interface ClubsStaffApiGetInvoicesRequest
18877
+ */
18878
+ export interface ClubsStaffApiGetInvoicesRequest {
18879
+ /**
18880
+ *
18881
+ * @type {number}
18882
+ * @memberof ClubsStaffApiGetInvoices
18883
+ */
18884
+ readonly page?: number
18885
+
18886
+ /**
18887
+ *
18888
+ * @type {number}
18889
+ * @memberof ClubsStaffApiGetInvoices
18890
+ */
18891
+ readonly pageSize?: number
18892
+
18893
+ /**
18894
+ *
18895
+ * @type {string}
18896
+ * @memberof ClubsStaffApiGetInvoices
18897
+ */
18898
+ readonly search?: string
18899
+
18900
+ /**
18901
+ *
18902
+ * @type {string}
18903
+ * @memberof ClubsStaffApiGetInvoices
18904
+ */
18905
+ readonly filters?: string
18906
+
18907
+ /**
18908
+ *
18909
+ * @type {string}
18910
+ * @memberof ClubsStaffApiGetInvoices
18911
+ */
18912
+ readonly status?: string
18913
+
18914
+ /**
18915
+ *
18916
+ * @type {string}
18917
+ * @memberof ClubsStaffApiGetInvoices
18918
+ */
18919
+ readonly startDate?: string
18920
+
18921
+ /**
18922
+ *
18923
+ * @type {string}
18924
+ * @memberof ClubsStaffApiGetInvoices
18925
+ */
18926
+ readonly endDate?: string
18927
+ }
18928
+
18376
18929
  /**
18377
18930
  * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
18378
18931
  * @export
@@ -18488,12 +19041,13 @@ export class ClubsStaffApi extends BaseAPI {
18488
19041
 
18489
19042
  /**
18490
19043
  *
19044
+ * @param {ClubsStaffApiGetInvoicesRequest} requestParameters Request parameters.
18491
19045
  * @param {*} [options] Override http request option.
18492
19046
  * @throws {RequiredError}
18493
19047
  * @memberof ClubsStaffApi
18494
19048
  */
18495
- public getInvoices(options?: RawAxiosRequestConfig) {
18496
- return ClubsStaffApiFp(this.configuration).getInvoices(options).then((request) => request(this.axios, this.basePath));
19049
+ public getInvoices(requestParameters: ClubsStaffApiGetInvoicesRequest = {}, options?: RawAxiosRequestConfig) {
19050
+ return ClubsStaffApiFp(this.configuration).getInvoices(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
18497
19051
  }
18498
19052
 
18499
19053
  /**
@@ -18647,83 +19201,6 @@ export class DefaultApi extends BaseAPI {
18647
19201
  */
18648
19202
  export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
18649
19203
  return {
18650
- /**
18651
- * Check team name availability for TEAM participation events
18652
- * @param {string} eventId
18653
- * @param {string} [teamName]
18654
- * @param {*} [options] Override http request option.
18655
- * @throws {RequiredError}
18656
- */
18657
- checkTeamNameAvailability: async (eventId: string, teamName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18658
- // verify required parameter 'eventId' is not null or undefined
18659
- assertParamExists('checkTeamNameAvailability', 'eventId', eventId)
18660
- const localVarPath = `/api/events/{eventId}/team-name-availability`
18661
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
18662
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18663
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18664
- let baseOptions;
18665
- if (configuration) {
18666
- baseOptions = configuration.baseOptions;
18667
- }
18668
-
18669
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18670
- const localVarHeaderParameter = {} as any;
18671
- const localVarQueryParameter = {} as any;
18672
-
18673
- if (teamName !== undefined) {
18674
- localVarQueryParameter['teamName'] = teamName;
18675
- }
18676
-
18677
-
18678
-
18679
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18680
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18681
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18682
-
18683
- return {
18684
- url: toPathString(localVarUrlObj),
18685
- options: localVarRequestOptions,
18686
- };
18687
- },
18688
- /**
18689
- * Estime le prix de participation à un événement pour une liste de joueurs
18690
- * @param {string} eventId
18691
- * @param {EstimateEventPriceRequest} estimateEventPriceRequest
18692
- * @param {*} [options] Override http request option.
18693
- * @throws {RequiredError}
18694
- */
18695
- estimateEventPrice: async (eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18696
- // verify required parameter 'eventId' is not null or undefined
18697
- assertParamExists('estimateEventPrice', 'eventId', eventId)
18698
- // verify required parameter 'estimateEventPriceRequest' is not null or undefined
18699
- assertParamExists('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest)
18700
- const localVarPath = `/api/events/{eventId}/estimate-price`
18701
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
18702
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18703
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18704
- let baseOptions;
18705
- if (configuration) {
18706
- baseOptions = configuration.baseOptions;
18707
- }
18708
-
18709
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18710
- const localVarHeaderParameter = {} as any;
18711
- const localVarQueryParameter = {} as any;
18712
-
18713
-
18714
-
18715
- localVarHeaderParameter['Content-Type'] = 'application/json';
18716
-
18717
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18718
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18719
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18720
- localVarRequestOptions.data = serializeDataIfNeeded(estimateEventPriceRequest, localVarRequestOptions, configuration)
18721
-
18722
- return {
18723
- url: toPathString(localVarUrlObj),
18724
- options: localVarRequestOptions,
18725
- };
18726
- },
18727
19204
  /**
18728
19205
  * Get a specific event by ID
18729
19206
  * @param {string} eventId
@@ -18896,32 +19373,6 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
18896
19373
  export const EventsApiFp = function(configuration?: Configuration) {
18897
19374
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
18898
19375
  return {
18899
- /**
18900
- * Check team name availability for TEAM participation events
18901
- * @param {string} eventId
18902
- * @param {string} [teamName]
18903
- * @param {*} [options] Override http request option.
18904
- * @throws {RequiredError}
18905
- */
18906
- async checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>> {
18907
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
18908
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18909
- const localVarOperationServerBasePath = operationServerMap['EventsApi.checkTeamNameAvailability']?.[localVarOperationServerIndex]?.url;
18910
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18911
- },
18912
- /**
18913
- * Estime le prix de participation à un événement pour une liste de joueurs
18914
- * @param {string} eventId
18915
- * @param {EstimateEventPriceRequest} estimateEventPriceRequest
18916
- * @param {*} [options] Override http request option.
18917
- * @throws {RequiredError}
18918
- */
18919
- async estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>> {
18920
- const localVarAxiosArgs = await localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
18921
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18922
- const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateEventPrice']?.[localVarOperationServerIndex]?.url;
18923
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18924
- },
18925
19376
  /**
18926
19377
  * Get a specific event by ID
18927
19378
  * @param {string} eventId
@@ -18984,24 +19435,6 @@ export const EventsApiFp = function(configuration?: Configuration) {
18984
19435
  export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18985
19436
  const localVarFp = EventsApiFp(configuration)
18986
19437
  return {
18987
- /**
18988
- * Check team name availability for TEAM participation events
18989
- * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
18990
- * @param {*} [options] Override http request option.
18991
- * @throws {RequiredError}
18992
- */
18993
- checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response> {
18994
- return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
18995
- },
18996
- /**
18997
- * Estime le prix de participation à un événement pour une liste de joueurs
18998
- * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
18999
- * @param {*} [options] Override http request option.
19000
- * @throws {RequiredError}
19001
- */
19002
- estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response> {
19003
- return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
19004
- },
19005
19438
  /**
19006
19439
  * Get a specific event by ID
19007
19440
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -19041,48 +19474,6 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
19041
19474
  };
19042
19475
  };
19043
19476
 
19044
- /**
19045
- * Request parameters for checkTeamNameAvailability operation in EventsApi.
19046
- * @export
19047
- * @interface EventsApiCheckTeamNameAvailabilityRequest
19048
- */
19049
- export interface EventsApiCheckTeamNameAvailabilityRequest {
19050
- /**
19051
- *
19052
- * @type {string}
19053
- * @memberof EventsApiCheckTeamNameAvailability
19054
- */
19055
- readonly eventId: string
19056
-
19057
- /**
19058
- *
19059
- * @type {string}
19060
- * @memberof EventsApiCheckTeamNameAvailability
19061
- */
19062
- readonly teamName?: string
19063
- }
19064
-
19065
- /**
19066
- * Request parameters for estimateEventPrice operation in EventsApi.
19067
- * @export
19068
- * @interface EventsApiEstimateEventPriceRequest
19069
- */
19070
- export interface EventsApiEstimateEventPriceRequest {
19071
- /**
19072
- *
19073
- * @type {string}
19074
- * @memberof EventsApiEstimateEventPrice
19075
- */
19076
- readonly eventId: string
19077
-
19078
- /**
19079
- *
19080
- * @type {EstimateEventPriceRequest}
19081
- * @memberof EventsApiEstimateEventPrice
19082
- */
19083
- readonly estimateEventPriceRequest: EstimateEventPriceRequest
19084
- }
19085
-
19086
19477
  /**
19087
19478
  * Request parameters for getEventById operation in EventsApi.
19088
19479
  * @export
@@ -19174,28 +19565,6 @@ export interface EventsApiLeaveEventRequest {
19174
19565
  * @extends {BaseAPI}
19175
19566
  */
19176
19567
  export class EventsApi extends BaseAPI {
19177
- /**
19178
- * Check team name availability for TEAM participation events
19179
- * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
19180
- * @param {*} [options] Override http request option.
19181
- * @throws {RequiredError}
19182
- * @memberof EventsApi
19183
- */
19184
- public checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig) {
19185
- return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
19186
- }
19187
-
19188
- /**
19189
- * Estime le prix de participation à un événement pour une liste de joueurs
19190
- * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
19191
- * @param {*} [options] Override http request option.
19192
- * @throws {RequiredError}
19193
- * @memberof EventsApi
19194
- */
19195
- public estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig) {
19196
- return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
19197
- }
19198
-
19199
19568
  /**
19200
19569
  * Get a specific event by ID
19201
19570
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -21414,6 +21783,45 @@ export const SubscriptionsStaffApiAxiosParamCreator = function (configuration?:
21414
21783
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21415
21784
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21416
21785
 
21786
+ return {
21787
+ url: toPathString(localVarUrlObj),
21788
+ options: localVarRequestOptions,
21789
+ };
21790
+ },
21791
+ /**
21792
+ * Envoie une invitation d\'abonnement à un joueur (staff)
21793
+ * @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
21794
+ * @param {*} [options] Override http request option.
21795
+ * @throws {RequiredError}
21796
+ */
21797
+ sendSubscriptionInvitation: async (sendSubscriptionInvitationRequest: SendSubscriptionInvitationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21798
+ // verify required parameter 'sendSubscriptionInvitationRequest' is not null or undefined
21799
+ assertParamExists('sendSubscriptionInvitation', 'sendSubscriptionInvitationRequest', sendSubscriptionInvitationRequest)
21800
+ const localVarPath = `/api/subscriptions/invitations`;
21801
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21802
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21803
+ let baseOptions;
21804
+ if (configuration) {
21805
+ baseOptions = configuration.baseOptions;
21806
+ }
21807
+
21808
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21809
+ const localVarHeaderParameter = {} as any;
21810
+ const localVarQueryParameter = {} as any;
21811
+
21812
+ // authentication bearerAuth required
21813
+ // http bearer authentication required
21814
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21815
+
21816
+
21817
+
21818
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21819
+
21820
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21821
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21822
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21823
+ localVarRequestOptions.data = serializeDataIfNeeded(sendSubscriptionInvitationRequest, localVarRequestOptions, configuration)
21824
+
21417
21825
  return {
21418
21826
  url: toPathString(localVarUrlObj),
21419
21827
  options: localVarRequestOptions,
@@ -21440,6 +21848,18 @@ export const SubscriptionsStaffApiFp = function(configuration?: Configuration) {
21440
21848
  const localVarOperationServerBasePath = operationServerMap['SubscriptionsStaffApi.getClubPlans']?.[localVarOperationServerIndex]?.url;
21441
21849
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21442
21850
  },
21851
+ /**
21852
+ * Envoie une invitation d\'abonnement à un joueur (staff)
21853
+ * @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
21854
+ * @param {*} [options] Override http request option.
21855
+ * @throws {RequiredError}
21856
+ */
21857
+ async sendSubscriptionInvitation(sendSubscriptionInvitationRequest: SendSubscriptionInvitationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendSubscriptionInvitationResponse>> {
21858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendSubscriptionInvitation(sendSubscriptionInvitationRequest, options);
21859
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21860
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsStaffApi.sendSubscriptionInvitation']?.[localVarOperationServerIndex]?.url;
21861
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21862
+ },
21443
21863
  }
21444
21864
  };
21445
21865
 
@@ -21458,9 +21878,32 @@ export const SubscriptionsStaffApiFactory = function (configuration?: Configurat
21458
21878
  getClubPlans(options?: RawAxiosRequestConfig): AxiosPromise<Array<SubscriptionPlanResponse>> {
21459
21879
  return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
21460
21880
  },
21881
+ /**
21882
+ * Envoie une invitation d\'abonnement à un joueur (staff)
21883
+ * @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
21884
+ * @param {*} [options] Override http request option.
21885
+ * @throws {RequiredError}
21886
+ */
21887
+ sendSubscriptionInvitation(requestParameters: SubscriptionsStaffApiSendSubscriptionInvitationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SendSubscriptionInvitationResponse> {
21888
+ return localVarFp.sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(axios, basePath));
21889
+ },
21461
21890
  };
21462
21891
  };
21463
21892
 
21893
+ /**
21894
+ * Request parameters for sendSubscriptionInvitation operation in SubscriptionsStaffApi.
21895
+ * @export
21896
+ * @interface SubscriptionsStaffApiSendSubscriptionInvitationRequest
21897
+ */
21898
+ export interface SubscriptionsStaffApiSendSubscriptionInvitationRequest {
21899
+ /**
21900
+ *
21901
+ * @type {SendSubscriptionInvitationRequest}
21902
+ * @memberof SubscriptionsStaffApiSendSubscriptionInvitation
21903
+ */
21904
+ readonly sendSubscriptionInvitationRequest: SendSubscriptionInvitationRequest
21905
+ }
21906
+
21464
21907
  /**
21465
21908
  * SubscriptionsStaffApi - object-oriented interface
21466
21909
  * @export
@@ -21477,6 +21920,17 @@ export class SubscriptionsStaffApi extends BaseAPI {
21477
21920
  public getClubPlans(options?: RawAxiosRequestConfig) {
21478
21921
  return SubscriptionsStaffApiFp(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
21479
21922
  }
21923
+
21924
+ /**
21925
+ * Envoie une invitation d\'abonnement à un joueur (staff)
21926
+ * @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
21927
+ * @param {*} [options] Override http request option.
21928
+ * @throws {RequiredError}
21929
+ * @memberof SubscriptionsStaffApi
21930
+ */
21931
+ public sendSubscriptionInvitation(requestParameters: SubscriptionsStaffApiSendSubscriptionInvitationRequest, options?: RawAxiosRequestConfig) {
21932
+ return SubscriptionsStaffApiFp(this.configuration).sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(this.axios, this.basePath));
21933
+ }
21480
21934
  }
21481
21935
 
21482
21936