@tennac-booking/sdk 1.0.118 → 1.0.120

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 (67) hide show
  1. package/.openapi-generator/FILES +313 -309
  2. package/README.md +20 -16
  3. package/api.ts +1052 -641
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +826 -511
  8. package/dist/api.js +327 -235
  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 +826 -511
  16. package/dist/esm/api.js +326 -234
  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/ClubSettingsManagerApi.md +2 -2
  35. package/docs/ClubsApi.md +2 -2
  36. package/docs/ClubsStaffApi.md +27 -2
  37. package/docs/CreateEventRequest.md +3 -1
  38. package/docs/EventResponse.md +5 -3
  39. package/docs/EventSponsor.md +24 -0
  40. package/docs/EventsApi.md +0 -115
  41. package/docs/JoinEventRequest.md +0 -2
  42. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +0 -2
  43. package/docs/JoinEventResponse.md +0 -14
  44. package/docs/SendSubscriptionInvitationRequest.md +22 -0
  45. package/docs/{CheckTeamNameAvailability200Response.md → SendSubscriptionInvitationResponse.md} +7 -5
  46. package/docs/StaffBookingCourtSummary.md +26 -0
  47. package/docs/StaffBookingCustomerPayload.md +28 -0
  48. package/docs/StaffBookingListItem.md +54 -0
  49. package/docs/StaffBookingPaymentState.md +18 -0
  50. package/docs/StaffBookingPaymentSummary.md +34 -0
  51. package/docs/StaffBookingSportSummary.md +24 -0
  52. package/docs/StaffBookingUserSummary.md +28 -0
  53. package/docs/StaffBookingsPaginatedResponse.md +28 -0
  54. package/docs/StaffCreateBookingRequest.md +26 -0
  55. package/docs/SubscriptionsStaffApi.md +55 -0
  56. package/docs/Team.md +1 -1
  57. package/docs/UpdateEventRequest.md +6 -0
  58. package/index.ts +1 -1
  59. package/package.json +1 -1
  60. package/docs/ClientSubscription.md +0 -31
  61. package/docs/ClientSubscriptionItem.md +0 -25
  62. package/docs/ClientSubscriptionsResponse.md +0 -21
  63. package/docs/EstimateEventPrice200Response.md +0 -32
  64. package/docs/EstimateEventPriceRequest.md +0 -26
  65. package/docs/EstimateEventPriceRequestSharesInner.md +0 -22
  66. package/docs/EventUser.md +0 -28
  67. 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.118
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
@@ -4516,10 +4346,10 @@ export interface EventResponse {
4516
4346
  'participationType': EventResponseParticipationTypeEnum;
4517
4347
  /**
4518
4348
  *
4519
- * @type {Array<EventUser>}
4349
+ * @type {Array<string>}
4520
4350
  * @memberof EventResponse
4521
4351
  */
4522
- 'participants'?: Array<EventUser>;
4352
+ 'participants'?: Array<string>;
4523
4353
  /**
4524
4354
  *
4525
4355
  * @type {Array<Team>}
@@ -4538,12 +4368,6 @@ export interface EventResponse {
4538
4368
  * @memberof EventResponse
4539
4369
  */
4540
4370
  'teamLimit'?: number;
4541
- /**
4542
- *
4543
- * @type {number}
4544
- * @memberof EventResponse
4545
- */
4546
- 'playersPerTeam'?: number;
4547
4371
  /**
4548
4372
  *
4549
4373
  * @type {number}
@@ -4562,6 +4386,18 @@ export interface EventResponse {
4562
4386
  * @memberof EventResponse
4563
4387
  */
4564
4388
  'visibilityType': EventResponseVisibilityTypeEnum;
4389
+ /**
4390
+ *
4391
+ * @type {Array<string | null>}
4392
+ * @memberof EventResponse
4393
+ */
4394
+ 'levels'?: Array<string | null>;
4395
+ /**
4396
+ *
4397
+ * @type {Array<EventSponsor>}
4398
+ * @memberof EventResponse
4399
+ */
4400
+ 'sponsors'?: Array<EventSponsor>;
4565
4401
  /**
4566
4402
  *
4567
4403
  * @type {string}
@@ -4619,39 +4455,27 @@ export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityType
4619
4455
  /**
4620
4456
  *
4621
4457
  * @export
4622
- * @interface EventUser
4458
+ * @interface EventSponsor
4623
4459
  */
4624
- export interface EventUser {
4625
- /**
4626
- *
4627
- * @type {string}
4628
- * @memberof EventUser
4629
- */
4630
- 'id': string;
4460
+ export interface EventSponsor {
4631
4461
  /**
4632
4462
  *
4633
4463
  * @type {string}
4634
- * @memberof EventUser
4464
+ * @memberof EventSponsor
4635
4465
  */
4636
- 'firstName': string;
4637
- /**
4638
- *
4639
- * @type {string}
4640
- * @memberof EventUser
4641
- */
4642
- 'lastName': string;
4466
+ 'name'?: string;
4643
4467
  /**
4644
4468
  *
4645
4469
  * @type {string}
4646
- * @memberof EventUser
4470
+ * @memberof EventSponsor
4647
4471
  */
4648
- 'username'?: string;
4472
+ 'website'?: string;
4649
4473
  /**
4650
4474
  *
4651
4475
  * @type {string}
4652
- * @memberof EventUser
4476
+ * @memberof EventSponsor
4653
4477
  */
4654
- 'profilePicture'?: string;
4478
+ 'logo'?: string | null;
4655
4479
  }
4656
4480
  /**
4657
4481
  *
@@ -5565,12 +5389,6 @@ export interface JoinEventRequest {
5565
5389
  * @memberof JoinEventRequest
5566
5390
  */
5567
5391
  'useDefaultPaymentMethod'?: boolean;
5568
- /**
5569
- *
5570
- * @type {number}
5571
- * @memberof JoinEventRequest
5572
- */
5573
- 'creditToUseInCents'?: number;
5574
5392
  }
5575
5393
 
5576
5394
 
@@ -5580,12 +5398,6 @@ export interface JoinEventRequest {
5580
5398
  * @interface JoinEventRequestPlayersPaymentMethodsInner
5581
5399
  */
5582
5400
  export interface JoinEventRequestPlayersPaymentMethodsInner {
5583
- /**
5584
- *
5585
- * @type {Array<string>}
5586
- * @memberof JoinEventRequestPlayersPaymentMethodsInner
5587
- */
5588
- 'paysAlsoFor'?: Array<string>;
5589
5401
  /**
5590
5402
  *
5591
5403
  * @type {PaymentMethod}
@@ -5619,107 +5431,38 @@ export interface JoinEventResponse {
5619
5431
  * @memberof JoinEventResponse
5620
5432
  */
5621
5433
  'event': EventResponse;
5434
+ }
5435
+ /**
5436
+ *
5437
+ * @export
5438
+ * @interface LastSixMonthsTurnoverItem
5439
+ */
5440
+ export interface LastSixMonthsTurnoverItem {
5622
5441
  /**
5623
- * Construct a type with a set of properties K of type T
5624
- * @type {{ [key: string]: string; }}
5625
- * @memberof JoinEventResponse
5442
+ * Nom du mois (Jan, Feb, etc.)
5443
+ * @type {string}
5444
+ * @memberof LastSixMonthsTurnoverItem
5626
5445
  */
5627
- 'paymentLinks'?: { [key: string]: string; };
5446
+ 'month': string;
5628
5447
  /**
5629
- *
5630
- * @type {Array<JoinEventResponseOnsitePaymentsInner>}
5631
- * @memberof JoinEventResponse
5448
+ * Valeur du chiffre d\'affaires
5449
+ * @type {number}
5450
+ * @memberof LastSixMonthsTurnoverItem
5632
5451
  */
5633
- 'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
5452
+ 'value': number;
5453
+ }
5454
+ /**
5455
+ *
5456
+ * @export
5457
+ * @interface LevelBySportEntry
5458
+ */
5459
+ export interface LevelBySportEntry {
5634
5460
  /**
5635
5461
  *
5636
5462
  * @type {string}
5637
- * @memberof JoinEventResponse
5463
+ * @memberof LevelBySportEntry
5638
5464
  */
5639
- 'setupNoShowPaymentUrl'?: string;
5640
- /**
5641
- *
5642
- * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
5643
- * @memberof JoinEventResponse
5644
- */
5645
- 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
5646
- /**
5647
- *
5648
- * @type {number}
5649
- * @memberof JoinEventResponse
5650
- */
5651
- 'creditsAppliedInCents'?: number;
5652
- /**
5653
- *
5654
- * @type {number}
5655
- * @memberof JoinEventResponse
5656
- */
5657
- 'totalAfterCredits'?: number;
5658
- /**
5659
- * Construct a type with a set of properties K of type T
5660
- * @type {{ [key: string]: number; }}
5661
- * @memberof JoinEventResponse
5662
- */
5663
- 'perPayerAfterCredits'?: { [key: string]: number; };
5664
- }
5665
- /**
5666
- *
5667
- * @export
5668
- * @interface JoinEventResponseOnsitePaymentsInner
5669
- */
5670
- export interface JoinEventResponseOnsitePaymentsInner {
5671
- /**
5672
- *
5673
- * @type {PaymentMethod}
5674
- * @memberof JoinEventResponseOnsitePaymentsInner
5675
- */
5676
- 'paymentMethod': PaymentMethod;
5677
- /**
5678
- *
5679
- * @type {number}
5680
- * @memberof JoinEventResponseOnsitePaymentsInner
5681
- */
5682
- 'amount': number;
5683
- /**
5684
- *
5685
- * @type {string}
5686
- * @memberof JoinEventResponseOnsitePaymentsInner
5687
- */
5688
- 'playerId': string;
5689
- }
5690
-
5691
-
5692
- /**
5693
- *
5694
- * @export
5695
- * @interface LastSixMonthsTurnoverItem
5696
- */
5697
- export interface LastSixMonthsTurnoverItem {
5698
- /**
5699
- * Nom du mois (Jan, Feb, etc.)
5700
- * @type {string}
5701
- * @memberof LastSixMonthsTurnoverItem
5702
- */
5703
- 'month': string;
5704
- /**
5705
- * Valeur du chiffre d\'affaires
5706
- * @type {number}
5707
- * @memberof LastSixMonthsTurnoverItem
5708
- */
5709
- 'value': number;
5710
- }
5711
- /**
5712
- *
5713
- * @export
5714
- * @interface LevelBySportEntry
5715
- */
5716
- export interface LevelBySportEntry {
5717
- /**
5718
- *
5719
- * @type {string}
5720
- * @memberof LevelBySportEntry
5721
- */
5722
- 'level': string;
5465
+ 'level': string;
5723
5466
  /**
5724
5467
  *
5725
5468
  * @type {string}
@@ -7312,6 +7055,44 @@ export interface RevenueBySportItem {
7312
7055
  */
7313
7056
  'totalTurnover': number;
7314
7057
  }
7058
+ /**
7059
+ *
7060
+ * @export
7061
+ * @interface SendSubscriptionInvitationRequest
7062
+ */
7063
+ export interface SendSubscriptionInvitationRequest {
7064
+ /**
7065
+ *
7066
+ * @type {string}
7067
+ * @memberof SendSubscriptionInvitationRequest
7068
+ */
7069
+ 'userId': string;
7070
+ /**
7071
+ * Identifiant Stripe (productId) du plan sélectionné par le staff.
7072
+ * @type {string}
7073
+ * @memberof SendSubscriptionInvitationRequest
7074
+ */
7075
+ 'productId': string;
7076
+ }
7077
+ /**
7078
+ *
7079
+ * @export
7080
+ * @interface SendSubscriptionInvitationResponse
7081
+ */
7082
+ export interface SendSubscriptionInvitationResponse {
7083
+ /**
7084
+ *
7085
+ * @type {string}
7086
+ * @memberof SendSubscriptionInvitationResponse
7087
+ */
7088
+ 'invitationUrl': string;
7089
+ /**
7090
+ *
7091
+ * @type {string}
7092
+ * @memberof SendSubscriptionInvitationResponse
7093
+ */
7094
+ 'message': string;
7095
+ }
7315
7096
  /**
7316
7097
  *
7317
7098
  * @export
@@ -7534,6 +7315,398 @@ export interface SportWithLevels {
7534
7315
  */
7535
7316
  'logos'?: Array<string>;
7536
7317
  }
7318
+ /**
7319
+ *
7320
+ * @export
7321
+ * @interface StaffBookingCourtSummary
7322
+ */
7323
+ export interface StaffBookingCourtSummary {
7324
+ /**
7325
+ * ID du terrain
7326
+ * @type {string}
7327
+ * @memberof StaffBookingCourtSummary
7328
+ */
7329
+ 'id': string;
7330
+ /**
7331
+ * Nom du terrain
7332
+ * @type {string}
7333
+ * @memberof StaffBookingCourtSummary
7334
+ */
7335
+ 'name'?: string | null;
7336
+ /**
7337
+ * Surface
7338
+ * @type {string}
7339
+ * @memberof StaffBookingCourtSummary
7340
+ */
7341
+ 'surface'?: string | null;
7342
+ /**
7343
+ * Terrain intérieur
7344
+ * @type {boolean}
7345
+ * @memberof StaffBookingCourtSummary
7346
+ */
7347
+ 'isIndoor'?: boolean;
7348
+ }
7349
+ /**
7350
+ *
7351
+ * @export
7352
+ * @interface StaffBookingCustomerPayload
7353
+ */
7354
+ export interface StaffBookingCustomerPayload {
7355
+ /**
7356
+ * Identifiant d\'un utilisateur existant
7357
+ * @type {string}
7358
+ * @memberof StaffBookingCustomerPayload
7359
+ */
7360
+ 'userId'?: string;
7361
+ /**
7362
+ * Prénom de l\'invité (requis si userId absent)
7363
+ * @type {string}
7364
+ * @memberof StaffBookingCustomerPayload
7365
+ */
7366
+ 'firstName'?: string;
7367
+ /**
7368
+ * Nom de famille de l\'invité (requis si userId absent)
7369
+ * @type {string}
7370
+ * @memberof StaffBookingCustomerPayload
7371
+ */
7372
+ 'lastName'?: string;
7373
+ /**
7374
+ * Email de contact (requis si userId absent)
7375
+ * @type {string}
7376
+ * @memberof StaffBookingCustomerPayload
7377
+ */
7378
+ 'email'?: string;
7379
+ /**
7380
+ * Numéro de téléphone optionnel
7381
+ * @type {string}
7382
+ * @memberof StaffBookingCustomerPayload
7383
+ */
7384
+ 'phoneNumber'?: string;
7385
+ }
7386
+ /**
7387
+ *
7388
+ * @export
7389
+ * @interface StaffBookingListItem
7390
+ */
7391
+ export interface StaffBookingListItem {
7392
+ /**
7393
+ * ID de la réservation
7394
+ * @type {string}
7395
+ * @memberof StaffBookingListItem
7396
+ */
7397
+ 'id': string;
7398
+ /**
7399
+ * ID du club
7400
+ * @type {string}
7401
+ * @memberof StaffBookingListItem
7402
+ */
7403
+ 'clubId': string;
7404
+ /**
7405
+ *
7406
+ * @type {BookingStatus}
7407
+ * @memberof StaffBookingListItem
7408
+ */
7409
+ 'status': BookingStatus;
7410
+ /**
7411
+ * Date de début
7412
+ * @type {string}
7413
+ * @memberof StaffBookingListItem
7414
+ */
7415
+ 'startDate'?: string | null;
7416
+ /**
7417
+ * Date de fin
7418
+ * @type {string}
7419
+ * @memberof StaffBookingListItem
7420
+ */
7421
+ 'endDate'?: string | null;
7422
+ /**
7423
+ * Durée estimée en minutes
7424
+ * @type {number}
7425
+ * @memberof StaffBookingListItem
7426
+ */
7427
+ 'durationMinutes'?: number | null;
7428
+ /**
7429
+ * Date de création
7430
+ * @type {string}
7431
+ * @memberof StaffBookingListItem
7432
+ */
7433
+ 'createdAt'?: string | null;
7434
+ /**
7435
+ * Dernière mise à jour
7436
+ * @type {string}
7437
+ * @memberof StaffBookingListItem
7438
+ */
7439
+ 'updatedAt'?: string | null;
7440
+ /**
7441
+ * Nombre total de participants (créateur inclus)
7442
+ * @type {number}
7443
+ * @memberof StaffBookingListItem
7444
+ */
7445
+ 'playersCount': number;
7446
+ /**
7447
+ * Prix total (centimes)
7448
+ * @type {number}
7449
+ * @memberof StaffBookingListItem
7450
+ */
7451
+ 'totalPrice': number;
7452
+ /**
7453
+ * Créateur
7454
+ * @type {StaffBookingUserSummary}
7455
+ * @memberof StaffBookingListItem
7456
+ */
7457
+ 'creator'?: StaffBookingUserSummary | null;
7458
+ /**
7459
+ * Participants
7460
+ * @type {Array<StaffBookingUserSummary>}
7461
+ * @memberof StaffBookingListItem
7462
+ */
7463
+ 'players': Array<StaffBookingUserSummary>;
7464
+ /**
7465
+ * Terrains impliqués
7466
+ * @type {Array<StaffBookingCourtSummary>}
7467
+ * @memberof StaffBookingListItem
7468
+ */
7469
+ 'courts': Array<StaffBookingCourtSummary>;
7470
+ /**
7471
+ * Sports associés
7472
+ * @type {Array<StaffBookingSportSummary>}
7473
+ * @memberof StaffBookingListItem
7474
+ */
7475
+ 'sports': Array<StaffBookingSportSummary>;
7476
+ /**
7477
+ *
7478
+ * @type {StaffBookingPaymentSummary}
7479
+ * @memberof StaffBookingListItem
7480
+ */
7481
+ 'paymentSummary': StaffBookingPaymentSummary;
7482
+ /**
7483
+ * Indique si le créateur paie pour tous
7484
+ * @type {boolean}
7485
+ * @memberof StaffBookingListItem
7486
+ */
7487
+ 'isCreatorPayingAll': boolean;
7488
+ /**
7489
+ * Réservation publique
7490
+ * @type {boolean}
7491
+ * @memberof StaffBookingListItem
7492
+ */
7493
+ 'isPublic': boolean;
7494
+ /**
7495
+ * Nombre de créneaux
7496
+ * @type {number}
7497
+ * @memberof StaffBookingListItem
7498
+ */
7499
+ 'slotCount': number;
7500
+ }
7501
+
7502
+
7503
+ /**
7504
+ *
7505
+ * @export
7506
+ * @enum {string}
7507
+ */
7508
+
7509
+ export const StaffBookingPaymentState = {
7510
+ None: 'none',
7511
+ Paid: 'paid',
7512
+ Pending: 'pending',
7513
+ Authorized: 'authorized',
7514
+ Failed: 'failed',
7515
+ Partial: 'partial'
7516
+ } as const;
7517
+
7518
+ export type StaffBookingPaymentState = typeof StaffBookingPaymentState[keyof typeof StaffBookingPaymentState];
7519
+
7520
+
7521
+ /**
7522
+ *
7523
+ * @export
7524
+ * @interface StaffBookingPaymentSummary
7525
+ */
7526
+ export interface StaffBookingPaymentSummary {
7527
+ /**
7528
+ *
7529
+ * @type {StaffBookingPaymentState}
7530
+ * @memberof StaffBookingPaymentSummary
7531
+ */
7532
+ 'status': StaffBookingPaymentState;
7533
+ /**
7534
+ * Nombre total de factures
7535
+ * @type {number}
7536
+ * @memberof StaffBookingPaymentSummary
7537
+ */
7538
+ 'totalInvoices': number;
7539
+ /**
7540
+ * Factures payées
7541
+ * @type {number}
7542
+ * @memberof StaffBookingPaymentSummary
7543
+ */
7544
+ 'paidInvoices': number;
7545
+ /**
7546
+ * Factures en attente
7547
+ * @type {number}
7548
+ * @memberof StaffBookingPaymentSummary
7549
+ */
7550
+ 'pendingInvoices': number;
7551
+ /**
7552
+ * Factures autorisées
7553
+ * @type {number}
7554
+ * @memberof StaffBookingPaymentSummary
7555
+ */
7556
+ 'authorizedInvoices': number;
7557
+ /**
7558
+ * Factures échouées ou annulées
7559
+ * @type {number}
7560
+ * @memberof StaffBookingPaymentSummary
7561
+ */
7562
+ 'failedInvoices': number;
7563
+ /**
7564
+ * Méthodes de paiement impliquées
7565
+ * @type {Array<PaymentMethod>}
7566
+ * @memberof StaffBookingPaymentSummary
7567
+ */
7568
+ 'paymentMethods': Array<PaymentMethod>;
7569
+ /**
7570
+ * Statuts des factures rencontrés
7571
+ * @type {Array<InvoiceStatus>}
7572
+ * @memberof StaffBookingPaymentSummary
7573
+ */
7574
+ 'invoiceStatuses': Array<InvoiceStatus>;
7575
+ }
7576
+
7577
+
7578
+ /**
7579
+ *
7580
+ * @export
7581
+ * @interface StaffBookingSportSummary
7582
+ */
7583
+ export interface StaffBookingSportSummary {
7584
+ /**
7585
+ * ID du sport
7586
+ * @type {string}
7587
+ * @memberof StaffBookingSportSummary
7588
+ */
7589
+ 'id': string;
7590
+ /**
7591
+ * Nom du sport
7592
+ * @type {string}
7593
+ * @memberof StaffBookingSportSummary
7594
+ */
7595
+ 'name'?: string | null;
7596
+ /**
7597
+ * Clé du sport
7598
+ * @type {string}
7599
+ * @memberof StaffBookingSportSummary
7600
+ */
7601
+ 'key'?: string | null;
7602
+ }
7603
+ /**
7604
+ *
7605
+ * @export
7606
+ * @interface StaffBookingUserSummary
7607
+ */
7608
+ export interface StaffBookingUserSummary {
7609
+ /**
7610
+ * ID de l\'utilisateur
7611
+ * @type {string}
7612
+ * @memberof StaffBookingUserSummary
7613
+ */
7614
+ 'id': string;
7615
+ /**
7616
+ * Prénom
7617
+ * @type {string}
7618
+ * @memberof StaffBookingUserSummary
7619
+ */
7620
+ 'firstName'?: string | null;
7621
+ /**
7622
+ * Nom
7623
+ * @type {string}
7624
+ * @memberof StaffBookingUserSummary
7625
+ */
7626
+ 'lastName'?: string | null;
7627
+ /**
7628
+ * Email
7629
+ * @type {string}
7630
+ * @memberof StaffBookingUserSummary
7631
+ */
7632
+ 'email'?: string | null;
7633
+ /**
7634
+ * Photo de profil
7635
+ * @type {string}
7636
+ * @memberof StaffBookingUserSummary
7637
+ */
7638
+ 'profilePictureUrl'?: string | null;
7639
+ }
7640
+ /**
7641
+ *
7642
+ * @export
7643
+ * @interface StaffBookingsPaginatedResponse
7644
+ */
7645
+ export interface StaffBookingsPaginatedResponse {
7646
+ /**
7647
+ * Réservations
7648
+ * @type {Array<StaffBookingListItem>}
7649
+ * @memberof StaffBookingsPaginatedResponse
7650
+ */
7651
+ 'bookings': Array<StaffBookingListItem>;
7652
+ /**
7653
+ * Page courante (1-based)
7654
+ * @type {number}
7655
+ * @memberof StaffBookingsPaginatedResponse
7656
+ */
7657
+ 'page': number;
7658
+ /**
7659
+ * Taille de page
7660
+ * @type {number}
7661
+ * @memberof StaffBookingsPaginatedResponse
7662
+ */
7663
+ 'pageSize': number;
7664
+ /**
7665
+ * Nombre total d\'éléments
7666
+ * @type {number}
7667
+ * @memberof StaffBookingsPaginatedResponse
7668
+ */
7669
+ 'total': number;
7670
+ /**
7671
+ * Nombre total de pages
7672
+ * @type {number}
7673
+ * @memberof StaffBookingsPaginatedResponse
7674
+ */
7675
+ 'totalPages': number;
7676
+ }
7677
+ /**
7678
+ *
7679
+ * @export
7680
+ * @interface StaffCreateBookingRequest
7681
+ */
7682
+ export interface StaffCreateBookingRequest {
7683
+ /**
7684
+ * Liste des créneaux à réserver
7685
+ * @type {Array<string>}
7686
+ * @memberof StaffCreateBookingRequest
7687
+ */
7688
+ 'slotIds': Array<string>;
7689
+ /**
7690
+ *
7691
+ * @type {StaffBookingCustomerPayload}
7692
+ * @memberof StaffCreateBookingRequest
7693
+ */
7694
+ 'customer': StaffBookingCustomerPayload;
7695
+ /**
7696
+ * Autres joueurs existants à associer
7697
+ * @type {Array<string>}
7698
+ * @memberof StaffCreateBookingRequest
7699
+ */
7700
+ 'playerIds'?: Array<string>;
7701
+ /**
7702
+ *
7703
+ * @type {PaymentMethod}
7704
+ * @memberof StaffCreateBookingRequest
7705
+ */
7706
+ 'paymentMethod'?: PaymentMethod;
7707
+ }
7708
+
7709
+
7537
7710
  /**
7538
7711
  *
7539
7712
  * @export
@@ -9151,10 +9324,10 @@ export interface Team {
9151
9324
  'name': string;
9152
9325
  /**
9153
9326
  *
9154
- * @type {Array<EventUser>}
9327
+ * @type {Array<string>}
9155
9328
  * @memberof Team
9156
9329
  */
9157
- 'players': Array<EventUser>;
9330
+ 'players': Array<string>;
9158
9331
  }
9159
9332
  /**
9160
9333
  *
@@ -9625,6 +9798,12 @@ export interface UpdateEventRequest {
9625
9798
  * @memberof UpdateEventRequest
9626
9799
  */
9627
9800
  'teamLimit'?: number;
9801
+ /**
9802
+ *
9803
+ * @type {number}
9804
+ * @memberof UpdateEventRequest
9805
+ */
9806
+ 'playersPerTeam'?: number;
9628
9807
  /**
9629
9808
  *
9630
9809
  * @type {number}
@@ -9643,6 +9822,18 @@ export interface UpdateEventRequest {
9643
9822
  * @memberof UpdateEventRequest
9644
9823
  */
9645
9824
  'visibilityType'?: UpdateEventRequestVisibilityTypeEnum;
9825
+ /**
9826
+ *
9827
+ * @type {Array<string | null>}
9828
+ * @memberof UpdateEventRequest
9829
+ */
9830
+ 'levels'?: Array<string | null>;
9831
+ /**
9832
+ *
9833
+ * @type {Array<EventSponsor>}
9834
+ * @memberof UpdateEventRequest
9835
+ */
9836
+ 'sponsors'?: Array<EventSponsor>;
9646
9837
  }
9647
9838
 
9648
9839
  export const UpdateEventRequestTypeEnum = {
@@ -11163,7 +11354,46 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
11163
11354
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11164
11355
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11165
11356
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11166
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
11357
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
11358
+
11359
+ return {
11360
+ url: toPathString(localVarUrlObj),
11361
+ options: localVarRequestOptions,
11362
+ };
11363
+ },
11364
+ /**
11365
+ * Créer une réservation pour un joueur depuis l\'espace staff
11366
+ * @param {StaffCreateBookingRequest} staffCreateBookingRequest
11367
+ * @param {*} [options] Override http request option.
11368
+ * @throws {RequiredError}
11369
+ */
11370
+ createStaffBooking: async (staffCreateBookingRequest: StaffCreateBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11371
+ // verify required parameter 'staffCreateBookingRequest' is not null or undefined
11372
+ assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest)
11373
+ const localVarPath = `/api/bookings/staff`;
11374
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11375
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11376
+ let baseOptions;
11377
+ if (configuration) {
11378
+ baseOptions = configuration.baseOptions;
11379
+ }
11380
+
11381
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11382
+ const localVarHeaderParameter = {} as any;
11383
+ const localVarQueryParameter = {} as any;
11384
+
11385
+ // authentication bearerAuth required
11386
+ // http bearer authentication required
11387
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11388
+
11389
+
11390
+
11391
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11392
+
11393
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11395
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11396
+ localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration)
11167
11397
 
11168
11398
  return {
11169
11399
  url: toPathString(localVarUrlObj),
@@ -11346,6 +11576,64 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
11346
11576
 
11347
11577
 
11348
11578
 
11579
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11580
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11581
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11582
+
11583
+ return {
11584
+ url: toPathString(localVarUrlObj),
11585
+ options: localVarRequestOptions,
11586
+ };
11587
+ },
11588
+ /**
11589
+ * Liste paginée des réservations du club pour le staff
11590
+ * @param {number} [page]
11591
+ * @param {number} [pageSize]
11592
+ * @param {string} [search]
11593
+ * @param {string} [filters]
11594
+ * @param {string} [sorting]
11595
+ * @param {*} [options] Override http request option.
11596
+ * @throws {RequiredError}
11597
+ */
11598
+ listClubBookings: async (page?: number, pageSize?: number, search?: string, filters?: string, sorting?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11599
+ const localVarPath = `/api/bookings/staff`;
11600
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11601
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11602
+ let baseOptions;
11603
+ if (configuration) {
11604
+ baseOptions = configuration.baseOptions;
11605
+ }
11606
+
11607
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11608
+ const localVarHeaderParameter = {} as any;
11609
+ const localVarQueryParameter = {} as any;
11610
+
11611
+ // authentication bearerAuth required
11612
+ // http bearer authentication required
11613
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11614
+
11615
+ if (page !== undefined) {
11616
+ localVarQueryParameter['page'] = page;
11617
+ }
11618
+
11619
+ if (pageSize !== undefined) {
11620
+ localVarQueryParameter['pageSize'] = pageSize;
11621
+ }
11622
+
11623
+ if (search !== undefined) {
11624
+ localVarQueryParameter['search'] = search;
11625
+ }
11626
+
11627
+ if (filters !== undefined) {
11628
+ localVarQueryParameter['filters'] = filters;
11629
+ }
11630
+
11631
+ if (sorting !== undefined) {
11632
+ localVarQueryParameter['sorting'] = sorting;
11633
+ }
11634
+
11635
+
11636
+
11349
11637
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11350
11638
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11351
11639
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -11378,6 +11666,18 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
11378
11666
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayers']?.[localVarOperationServerIndex]?.url;
11379
11667
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11380
11668
  },
11669
+ /**
11670
+ * Créer une réservation pour un joueur depuis l\'espace staff
11671
+ * @param {StaffCreateBookingRequest} staffCreateBookingRequest
11672
+ * @param {*} [options] Override http request option.
11673
+ * @throws {RequiredError}
11674
+ */
11675
+ async createStaffBooking(staffCreateBookingRequest: StaffCreateBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponse>> {
11676
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createStaffBooking(staffCreateBookingRequest, options);
11677
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11678
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.createStaffBooking']?.[localVarOperationServerIndex]?.url;
11679
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11680
+ },
11381
11681
  /**
11382
11682
  * Obtenir une réservation par ID
11383
11683
  * @param {string} bookingId
@@ -11438,6 +11738,22 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
11438
11738
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getWeeklyBookings']?.[localVarOperationServerIndex]?.url;
11439
11739
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11440
11740
  },
11741
+ /**
11742
+ * Liste paginée des réservations du club pour le staff
11743
+ * @param {number} [page]
11744
+ * @param {number} [pageSize]
11745
+ * @param {string} [search]
11746
+ * @param {string} [filters]
11747
+ * @param {string} [sorting]
11748
+ * @param {*} [options] Override http request option.
11749
+ * @throws {RequiredError}
11750
+ */
11751
+ async listClubBookings(page?: number, pageSize?: number, search?: string, filters?: string, sorting?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffBookingsPaginatedResponse>> {
11752
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClubBookings(page, pageSize, search, filters, sorting, options);
11753
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11754
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.listClubBookings']?.[localVarOperationServerIndex]?.url;
11755
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11756
+ },
11441
11757
  }
11442
11758
  };
11443
11759
 
@@ -11457,6 +11773,15 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
11457
11773
  checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayersResponse> {
11458
11774
  return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
11459
11775
  },
11776
+ /**
11777
+ * Créer une réservation pour un joueur depuis l\'espace staff
11778
+ * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
11779
+ * @param {*} [options] Override http request option.
11780
+ * @throws {RequiredError}
11781
+ */
11782
+ createStaffBooking(requestParameters: BookingsStaffApiCreateStaffBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
11783
+ return localVarFp.createStaffBooking(requestParameters.staffCreateBookingRequest, options).then((request) => request(axios, basePath));
11784
+ },
11460
11785
  /**
11461
11786
  * Obtenir une réservation par ID
11462
11787
  * @param {BookingsStaffApiGetBookingByIdRequest} requestParameters Request parameters.
@@ -11502,6 +11827,15 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
11502
11827
  getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse> {
11503
11828
  return localVarFp.getWeeklyBookings(requestParameters.weekId, options).then((request) => request(axios, basePath));
11504
11829
  },
11830
+ /**
11831
+ * Liste paginée des réservations du club pour le staff
11832
+ * @param {BookingsStaffApiListClubBookingsRequest} requestParameters Request parameters.
11833
+ * @param {*} [options] Override http request option.
11834
+ * @throws {RequiredError}
11835
+ */
11836
+ listClubBookings(requestParameters: BookingsStaffApiListClubBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<StaffBookingsPaginatedResponse> {
11837
+ return localVarFp.listClubBookings(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.sorting, options).then((request) => request(axios, basePath));
11838
+ },
11505
11839
  };
11506
11840
  };
11507
11841
 
@@ -11526,6 +11860,20 @@ export interface BookingsStaffApiCheckInPlayersRequest {
11526
11860
  readonly checkInPlayersRequest: CheckInPlayersRequest
11527
11861
  }
11528
11862
 
11863
+ /**
11864
+ * Request parameters for createStaffBooking operation in BookingsStaffApi.
11865
+ * @export
11866
+ * @interface BookingsStaffApiCreateStaffBookingRequest
11867
+ */
11868
+ export interface BookingsStaffApiCreateStaffBookingRequest {
11869
+ /**
11870
+ *
11871
+ * @type {StaffCreateBookingRequest}
11872
+ * @memberof BookingsStaffApiCreateStaffBooking
11873
+ */
11874
+ readonly staffCreateBookingRequest: StaffCreateBookingRequest
11875
+ }
11876
+
11529
11877
  /**
11530
11878
  * Request parameters for getBookingById operation in BookingsStaffApi.
11531
11879
  * @export
@@ -11596,6 +11944,48 @@ export interface BookingsStaffApiGetWeeklyBookingsRequest {
11596
11944
  readonly weekId: string
11597
11945
  }
11598
11946
 
11947
+ /**
11948
+ * Request parameters for listClubBookings operation in BookingsStaffApi.
11949
+ * @export
11950
+ * @interface BookingsStaffApiListClubBookingsRequest
11951
+ */
11952
+ export interface BookingsStaffApiListClubBookingsRequest {
11953
+ /**
11954
+ *
11955
+ * @type {number}
11956
+ * @memberof BookingsStaffApiListClubBookings
11957
+ */
11958
+ readonly page?: number
11959
+
11960
+ /**
11961
+ *
11962
+ * @type {number}
11963
+ * @memberof BookingsStaffApiListClubBookings
11964
+ */
11965
+ readonly pageSize?: number
11966
+
11967
+ /**
11968
+ *
11969
+ * @type {string}
11970
+ * @memberof BookingsStaffApiListClubBookings
11971
+ */
11972
+ readonly search?: string
11973
+
11974
+ /**
11975
+ *
11976
+ * @type {string}
11977
+ * @memberof BookingsStaffApiListClubBookings
11978
+ */
11979
+ readonly filters?: string
11980
+
11981
+ /**
11982
+ *
11983
+ * @type {string}
11984
+ * @memberof BookingsStaffApiListClubBookings
11985
+ */
11986
+ readonly sorting?: string
11987
+ }
11988
+
11599
11989
  /**
11600
11990
  * BookingsStaffApi - object-oriented interface
11601
11991
  * @export
@@ -11614,6 +12004,17 @@ export class BookingsStaffApi extends BaseAPI {
11614
12004
  return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
11615
12005
  }
11616
12006
 
12007
+ /**
12008
+ * Créer une réservation pour un joueur depuis l\'espace staff
12009
+ * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
12010
+ * @param {*} [options] Override http request option.
12011
+ * @throws {RequiredError}
12012
+ * @memberof BookingsStaffApi
12013
+ */
12014
+ public createStaffBooking(requestParameters: BookingsStaffApiCreateStaffBookingRequest, options?: RawAxiosRequestConfig) {
12015
+ return BookingsStaffApiFp(this.configuration).createStaffBooking(requestParameters.staffCreateBookingRequest, options).then((request) => request(this.axios, this.basePath));
12016
+ }
12017
+
11617
12018
  /**
11618
12019
  * Obtenir une réservation par ID
11619
12020
  * @param {BookingsStaffApiGetBookingByIdRequest} requestParameters Request parameters.
@@ -11668,6 +12069,17 @@ export class BookingsStaffApi extends BaseAPI {
11668
12069
  public getWeeklyBookings(requestParameters: BookingsStaffApiGetWeeklyBookingsRequest, options?: RawAxiosRequestConfig) {
11669
12070
  return BookingsStaffApiFp(this.configuration).getWeeklyBookings(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
11670
12071
  }
12072
+
12073
+ /**
12074
+ * Liste paginée des réservations du club pour le staff
12075
+ * @param {BookingsStaffApiListClubBookingsRequest} requestParameters Request parameters.
12076
+ * @param {*} [options] Override http request option.
12077
+ * @throws {RequiredError}
12078
+ * @memberof BookingsStaffApi
12079
+ */
12080
+ public listClubBookings(requestParameters: BookingsStaffApiListClubBookingsRequest = {}, options?: RawAxiosRequestConfig) {
12081
+ return BookingsStaffApiFp(this.configuration).listClubBookings(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.sorting, options).then((request) => request(this.axios, this.basePath));
12082
+ }
11671
12083
  }
11672
12084
 
11673
12085
 
@@ -11716,7 +12128,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
11716
12128
  };
11717
12129
  },
11718
12130
  /**
11719
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
12131
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
11720
12132
  * @param {CreateBookingRequest} createBookingRequest
11721
12133
  * @param {*} [options] Override http request option.
11722
12134
  * @throws {RequiredError}
@@ -11777,7 +12189,7 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
11777
12189
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11778
12190
  },
11779
12191
  /**
11780
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
12192
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
11781
12193
  * @param {CreateBookingRequest} createBookingRequest
11782
12194
  * @param {*} [options] Override http request option.
11783
12195
  * @throws {RequiredError}
@@ -11808,7 +12220,7 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
11808
12220
  return localVarFp.cancelBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
11809
12221
  },
11810
12222
  /**
11811
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
12223
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
11812
12224
  * @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
11813
12225
  * @param {*} [options] Override http request option.
11814
12226
  * @throws {RequiredError}
@@ -11866,7 +12278,7 @@ export class BookingsUserApi extends BaseAPI {
11866
12278
  }
11867
12279
 
11868
12280
  /**
11869
- * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
12281
+ * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
11870
12282
  * @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
11871
12283
  * @param {*} [options] Override http request option.
11872
12284
  * @throws {RequiredError}
@@ -11886,7 +12298,7 @@ export class BookingsUserApi extends BaseAPI {
11886
12298
  export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
11887
12299
  return {
11888
12300
  /**
11889
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12301
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11890
12302
  * @param {ClientRegisterRequest} clientRegisterRequest
11891
12303
  * @param {*} [options] Override http request option.
11892
12304
  * @throws {RequiredError}
@@ -11920,39 +12332,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11920
12332
  options: localVarRequestOptions,
11921
12333
  };
11922
12334
  },
11923
- /**
11924
- * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
11925
- * @param {*} [options] Override http request option.
11926
- * @throws {RequiredError}
11927
- */
11928
- getClientSubscriptions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11929
- const localVarPath = `/clients/subscriptions`;
11930
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11931
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11932
- let baseOptions;
11933
- if (configuration) {
11934
- baseOptions = configuration.baseOptions;
11935
- }
11936
-
11937
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11938
- const localVarHeaderParameter = {} as any;
11939
- const localVarQueryParameter = {} as any;
11940
-
11941
- // authentication clientAuth required
11942
- // http bearer authentication required
11943
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11944
-
11945
-
11946
-
11947
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11948
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11949
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11950
-
11951
- return {
11952
- url: toPathString(localVarUrlObj),
11953
- options: localVarRequestOptions,
11954
- };
11955
- },
11956
12335
  /**
11957
12336
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11958
12337
  * @param {*} [options] Override http request option.
@@ -11987,7 +12366,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11987
12366
  };
11988
12367
  },
11989
12368
  /**
11990
- * 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
12369
+ * 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
11991
12370
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11992
12371
  * @param {*} [options] Override http request option.
11993
12372
  * @throws {RequiredError}
@@ -12036,7 +12415,7 @@ export const ClientApiFp = function(configuration?: Configuration) {
12036
12415
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
12037
12416
  return {
12038
12417
  /**
12039
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12418
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12040
12419
  * @param {ClientRegisterRequest} clientRegisterRequest
12041
12420
  * @param {*} [options] Override http request option.
12042
12421
  * @throws {RequiredError}
@@ -12047,17 +12426,6 @@ export const ClientApiFp = function(configuration?: Configuration) {
12047
12426
  const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
12048
12427
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12049
12428
  },
12050
- /**
12051
- * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12052
- * @param {*} [options] Override http request option.
12053
- * @throws {RequiredError}
12054
- */
12055
- async getClientSubscriptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientSubscriptionsResponse>> {
12056
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClientSubscriptions(options);
12057
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12058
- const localVarOperationServerBasePath = operationServerMap['ClientApi.getClientSubscriptions']?.[localVarOperationServerIndex]?.url;
12059
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12060
- },
12061
12429
  /**
12062
12430
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12063
12431
  * @param {*} [options] Override http request option.
@@ -12070,7 +12438,7 @@ export const ClientApiFp = function(configuration?: Configuration) {
12070
12438
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12071
12439
  },
12072
12440
  /**
12073
- * 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
12441
+ * 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
12074
12442
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
12075
12443
  * @param {*} [options] Override http request option.
12076
12444
  * @throws {RequiredError}
@@ -12092,7 +12460,7 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
12092
12460
  const localVarFp = ClientApiFp(configuration)
12093
12461
  return {
12094
12462
  /**
12095
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12463
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12096
12464
  * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
12097
12465
  * @param {*} [options] Override http request option.
12098
12466
  * @throws {RequiredError}
@@ -12100,14 +12468,6 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
12100
12468
  clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
12101
12469
  return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
12102
12470
  },
12103
- /**
12104
- * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12105
- * @param {*} [options] Override http request option.
12106
- * @throws {RequiredError}
12107
- */
12108
- getClientSubscriptions(options?: RawAxiosRequestConfig): AxiosPromise<ClientSubscriptionsResponse> {
12109
- return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
12110
- },
12111
12471
  /**
12112
12472
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12113
12473
  * @param {*} [options] Override http request option.
@@ -12117,7 +12477,7 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
12117
12477
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
12118
12478
  },
12119
12479
  /**
12120
- * 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
12480
+ * 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
12121
12481
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
12122
12482
  * @param {*} [options] Override http request option.
12123
12483
  * @throws {RequiredError}
@@ -12164,7 +12524,7 @@ export interface ClientApiOnboardClubRequest {
12164
12524
  */
12165
12525
  export class ClientApi extends BaseAPI {
12166
12526
  /**
12167
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12527
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
12168
12528
  * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
12169
12529
  * @param {*} [options] Override http request option.
12170
12530
  * @throws {RequiredError}
@@ -12174,16 +12534,6 @@ export class ClientApi extends BaseAPI {
12174
12534
  return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
12175
12535
  }
12176
12536
 
12177
- /**
12178
- * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12179
- * @param {*} [options] Override http request option.
12180
- * @throws {RequiredError}
12181
- * @memberof ClientApi
12182
- */
12183
- public getClientSubscriptions(options?: RawAxiosRequestConfig) {
12184
- return ClientApiFp(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
12185
- }
12186
-
12187
12537
  /**
12188
12538
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12189
12539
  * @param {*} [options] Override http request option.
@@ -12195,7 +12545,7 @@ export class ClientApi extends BaseAPI {
12195
12545
  }
12196
12546
 
12197
12547
  /**
12198
- * 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
12548
+ * 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
12199
12549
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
12200
12550
  * @param {*} [options] Override http request option.
12201
12551
  * @throws {RequiredError}
@@ -12537,10 +12887,14 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
12537
12887
  },
12538
12888
  /**
12539
12889
  * Récupère la liste des joueurs du club
12890
+ * @param {number} [page]
12891
+ * @param {number} [pageSize]
12892
+ * @param {string} [search]
12893
+ * @param {string} [filters]
12540
12894
  * @param {*} [options] Override http request option.
12541
12895
  * @throws {RequiredError}
12542
12896
  */
12543
- getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12897
+ getClubPlayers: async (page?: number, pageSize?: number, search?: string, filters?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12544
12898
  const localVarPath = `/api/club-analytics/players`;
12545
12899
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12546
12900
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -12557,6 +12911,22 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
12557
12911
  // http bearer authentication required
12558
12912
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
12559
12913
 
12914
+ if (page !== undefined) {
12915
+ localVarQueryParameter['page'] = page;
12916
+ }
12917
+
12918
+ if (pageSize !== undefined) {
12919
+ localVarQueryParameter['pageSize'] = pageSize;
12920
+ }
12921
+
12922
+ if (search !== undefined) {
12923
+ localVarQueryParameter['search'] = search;
12924
+ }
12925
+
12926
+ if (filters !== undefined) {
12927
+ localVarQueryParameter['filters'] = filters;
12928
+ }
12929
+
12560
12930
 
12561
12931
 
12562
12932
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13031,11 +13401,15 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
13031
13401
  },
13032
13402
  /**
13033
13403
  * Récupère la liste des joueurs du club
13404
+ * @param {number} [page]
13405
+ * @param {number} [pageSize]
13406
+ * @param {string} [search]
13407
+ * @param {string} [filters]
13034
13408
  * @param {*} [options] Override http request option.
13035
13409
  * @throws {RequiredError}
13036
13410
  */
13037
- async getClubPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClubPlayerResponse>>> {
13038
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayers(options);
13411
+ async getClubPlayers(page?: number, pageSize?: number, search?: string, filters?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayersPaginatedResponse>> {
13412
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayers(page, pageSize, search, filters, options);
13039
13413
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13040
13414
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayers']?.[localVarOperationServerIndex]?.url;
13041
13415
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13215,11 +13589,12 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
13215
13589
  },
13216
13590
  /**
13217
13591
  * Récupère la liste des joueurs du club
13592
+ * @param {ClubAnalyticsStaffApiGetClubPlayersRequest} requestParameters Request parameters.
13218
13593
  * @param {*} [options] Override http request option.
13219
13594
  * @throws {RequiredError}
13220
13595
  */
13221
- getClubPlayers(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClubPlayerResponse>> {
13222
- return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
13596
+ getClubPlayers(requestParameters: ClubAnalyticsStaffApiGetClubPlayersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayersPaginatedResponse> {
13597
+ return localVarFp.getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(axios, basePath));
13223
13598
  },
13224
13599
  /**
13225
13600
  * Récupère le chiffre d\'affaires quotidien
@@ -13386,6 +13761,41 @@ export interface ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest {
13386
13761
  readonly playerId: string
13387
13762
  }
13388
13763
 
13764
+ /**
13765
+ * Request parameters for getClubPlayers operation in ClubAnalyticsStaffApi.
13766
+ * @export
13767
+ * @interface ClubAnalyticsStaffApiGetClubPlayersRequest
13768
+ */
13769
+ export interface ClubAnalyticsStaffApiGetClubPlayersRequest {
13770
+ /**
13771
+ *
13772
+ * @type {number}
13773
+ * @memberof ClubAnalyticsStaffApiGetClubPlayers
13774
+ */
13775
+ readonly page?: number
13776
+
13777
+ /**
13778
+ *
13779
+ * @type {number}
13780
+ * @memberof ClubAnalyticsStaffApiGetClubPlayers
13781
+ */
13782
+ readonly pageSize?: number
13783
+
13784
+ /**
13785
+ *
13786
+ * @type {string}
13787
+ * @memberof ClubAnalyticsStaffApiGetClubPlayers
13788
+ */
13789
+ readonly search?: string
13790
+
13791
+ /**
13792
+ *
13793
+ * @type {string}
13794
+ * @memberof ClubAnalyticsStaffApiGetClubPlayers
13795
+ */
13796
+ readonly filters?: string
13797
+ }
13798
+
13389
13799
  /**
13390
13800
  * Request parameters for getDailyTurnOver operation in ClubAnalyticsStaffApi.
13391
13801
  * @export
@@ -13509,12 +13919,13 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
13509
13919
 
13510
13920
  /**
13511
13921
  * Récupère la liste des joueurs du club
13922
+ * @param {ClubAnalyticsStaffApiGetClubPlayersRequest} requestParameters Request parameters.
13512
13923
  * @param {*} [options] Override http request option.
13513
13924
  * @throws {RequiredError}
13514
13925
  * @memberof ClubAnalyticsStaffApi
13515
13926
  */
13516
- public getClubPlayers(options?: RawAxiosRequestConfig) {
13517
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
13927
+ public getClubPlayers(requestParameters: ClubAnalyticsStaffApiGetClubPlayersRequest = {}, options?: RawAxiosRequestConfig) {
13928
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
13518
13929
  }
13519
13930
 
13520
13931
  /**
@@ -14207,7 +14618,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
14207
14618
  baseOptions = configuration.baseOptions;
14208
14619
  }
14209
14620
 
14210
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
14621
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14211
14622
  const localVarHeaderParameter = {} as any;
14212
14623
  const localVarQueryParameter = {} as any;
14213
14624
 
@@ -14285,7 +14696,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
14285
14696
  baseOptions = configuration.baseOptions;
14286
14697
  }
14287
14698
 
14288
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
14699
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14289
14700
  const localVarHeaderParameter = {} as any;
14290
14701
  const localVarQueryParameter = {} as any;
14291
14702
 
@@ -14857,7 +15268,7 @@ export class ClubSettingsStaffApi extends BaseAPI {
14857
15268
  export const ClubsApiAxiosParamCreator = function (configuration?: Configuration) {
14858
15269
  return {
14859
15270
  /**
14860
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15271
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
14861
15272
  * @param {*} [options] Override http request option.
14862
15273
  * @throws {RequiredError}
14863
15274
  */
@@ -15158,7 +15569,7 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
15158
15569
  };
15159
15570
  },
15160
15571
  /**
15161
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15572
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15162
15573
  * @param {*} [options] Override http request option.
15163
15574
  * @throws {RequiredError}
15164
15575
  */
@@ -15333,7 +15744,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
15333
15744
  const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration)
15334
15745
  return {
15335
15746
  /**
15336
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15747
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15337
15748
  * @param {*} [options] Override http request option.
15338
15749
  * @throws {RequiredError}
15339
15750
  */
@@ -15441,7 +15852,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
15441
15852
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15442
15853
  },
15443
15854
  /**
15444
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15855
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15445
15856
  * @param {*} [options] Override http request option.
15446
15857
  * @throws {RequiredError}
15447
15858
  */
@@ -15511,7 +15922,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
15511
15922
  const localVarFp = ClubsApiFp(configuration)
15512
15923
  return {
15513
15924
  /**
15514
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15925
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15515
15926
  * @param {*} [options] Override http request option.
15516
15927
  * @throws {RequiredError}
15517
15928
  */
@@ -15589,7 +16000,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
15589
16000
  return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
15590
16001
  },
15591
16002
  /**
15592
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
16003
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15593
16004
  * @param {*} [options] Override http request option.
15594
16005
  * @throws {RequiredError}
15595
16006
  */
@@ -15811,7 +16222,7 @@ export interface ClubsApiGetSportsByClubByIdRequest {
15811
16222
  */
15812
16223
  export class ClubsApi extends BaseAPI {
15813
16224
  /**
15814
- * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
16225
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
15815
16226
  * @param {*} [options] Override http request option.
15816
16227
  * @throws {RequiredError}
15817
16228
  * @memberof ClubsApi
@@ -15907,7 +16318,7 @@ export class ClubsApi extends BaseAPI {
15907
16318
  }
15908
16319
 
15909
16320
  /**
15910
- * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
16321
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
15911
16322
  * @param {*} [options] Override http request option.
15912
16323
  * @throws {RequiredError}
15913
16324
  * @memberof ClubsApi
@@ -18057,10 +18468,17 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
18057
18468
  },
18058
18469
  /**
18059
18470
  *
18471
+ * @param {number} [page]
18472
+ * @param {number} [pageSize]
18473
+ * @param {string} [search]
18474
+ * @param {string} [filters]
18475
+ * @param {string} [status]
18476
+ * @param {string} [startDate]
18477
+ * @param {string} [endDate]
18060
18478
  * @param {*} [options] Override http request option.
18061
18479
  * @throws {RequiredError}
18062
18480
  */
18063
- getInvoices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18481
+ getInvoices: async (page?: number, pageSize?: number, search?: string, filters?: string, status?: string, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18064
18482
  const localVarPath = `/api/clubs/invoices`;
18065
18483
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18066
18484
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18069,13 +18487,41 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
18069
18487
  baseOptions = configuration.baseOptions;
18070
18488
  }
18071
18489
 
18072
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18073
- const localVarHeaderParameter = {} as any;
18074
- const localVarQueryParameter = {} as any;
18490
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18491
+ const localVarHeaderParameter = {} as any;
18492
+ const localVarQueryParameter = {} as any;
18493
+
18494
+ // authentication bearerAuth required
18495
+ // http bearer authentication required
18496
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18497
+
18498
+ if (page !== undefined) {
18499
+ localVarQueryParameter['page'] = page;
18500
+ }
18501
+
18502
+ if (pageSize !== undefined) {
18503
+ localVarQueryParameter['pageSize'] = pageSize;
18504
+ }
18505
+
18506
+ if (search !== undefined) {
18507
+ localVarQueryParameter['search'] = search;
18508
+ }
18509
+
18510
+ if (filters !== undefined) {
18511
+ localVarQueryParameter['filters'] = filters;
18512
+ }
18075
18513
 
18076
- // authentication bearerAuth required
18077
- // http bearer authentication required
18078
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
18514
+ if (status !== undefined) {
18515
+ localVarQueryParameter['status'] = status;
18516
+ }
18517
+
18518
+ if (startDate !== undefined) {
18519
+ localVarQueryParameter['startDate'] = startDate;
18520
+ }
18521
+
18522
+ if (endDate !== undefined) {
18523
+ localVarQueryParameter['endDate'] = endDate;
18524
+ }
18079
18525
 
18080
18526
 
18081
18527
 
@@ -18259,11 +18705,18 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
18259
18705
  },
18260
18706
  /**
18261
18707
  *
18708
+ * @param {number} [page]
18709
+ * @param {number} [pageSize]
18710
+ * @param {string} [search]
18711
+ * @param {string} [filters]
18712
+ * @param {string} [status]
18713
+ * @param {string} [startDate]
18714
+ * @param {string} [endDate]
18262
18715
  * @param {*} [options] Override http request option.
18263
18716
  * @throws {RequiredError}
18264
18717
  */
18265
- async getInvoices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
18266
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoices(options);
18718
+ 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>> {
18719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoices(page, pageSize, search, filters, status, startDate, endDate, options);
18267
18720
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18268
18721
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getInvoices']?.[localVarOperationServerIndex]?.url;
18269
18722
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18362,11 +18815,12 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
18362
18815
  },
18363
18816
  /**
18364
18817
  *
18818
+ * @param {ClubsStaffApiGetInvoicesRequest} requestParameters Request parameters.
18365
18819
  * @param {*} [options] Override http request option.
18366
18820
  * @throws {RequiredError}
18367
18821
  */
18368
- getInvoices(options?: RawAxiosRequestConfig): AxiosPromise<any> {
18369
- return localVarFp.getInvoices(options).then((request) => request(axios, basePath));
18822
+ getInvoices(requestParameters: ClubsStaffApiGetInvoicesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<any> {
18823
+ return localVarFp.getInvoices(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
18370
18824
  },
18371
18825
  /**
18372
18826
  *
@@ -18410,6 +18864,62 @@ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
18410
18864
  readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
18411
18865
  }
18412
18866
 
18867
+ /**
18868
+ * Request parameters for getInvoices operation in ClubsStaffApi.
18869
+ * @export
18870
+ * @interface ClubsStaffApiGetInvoicesRequest
18871
+ */
18872
+ export interface ClubsStaffApiGetInvoicesRequest {
18873
+ /**
18874
+ *
18875
+ * @type {number}
18876
+ * @memberof ClubsStaffApiGetInvoices
18877
+ */
18878
+ readonly page?: number
18879
+
18880
+ /**
18881
+ *
18882
+ * @type {number}
18883
+ * @memberof ClubsStaffApiGetInvoices
18884
+ */
18885
+ readonly pageSize?: number
18886
+
18887
+ /**
18888
+ *
18889
+ * @type {string}
18890
+ * @memberof ClubsStaffApiGetInvoices
18891
+ */
18892
+ readonly search?: string
18893
+
18894
+ /**
18895
+ *
18896
+ * @type {string}
18897
+ * @memberof ClubsStaffApiGetInvoices
18898
+ */
18899
+ readonly filters?: string
18900
+
18901
+ /**
18902
+ *
18903
+ * @type {string}
18904
+ * @memberof ClubsStaffApiGetInvoices
18905
+ */
18906
+ readonly status?: string
18907
+
18908
+ /**
18909
+ *
18910
+ * @type {string}
18911
+ * @memberof ClubsStaffApiGetInvoices
18912
+ */
18913
+ readonly startDate?: string
18914
+
18915
+ /**
18916
+ *
18917
+ * @type {string}
18918
+ * @memberof ClubsStaffApiGetInvoices
18919
+ */
18920
+ readonly endDate?: string
18921
+ }
18922
+
18413
18923
  /**
18414
18924
  * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
18415
18925
  * @export
@@ -18525,12 +19035,13 @@ export class ClubsStaffApi extends BaseAPI {
18525
19035
 
18526
19036
  /**
18527
19037
  *
19038
+ * @param {ClubsStaffApiGetInvoicesRequest} requestParameters Request parameters.
18528
19039
  * @param {*} [options] Override http request option.
18529
19040
  * @throws {RequiredError}
18530
19041
  * @memberof ClubsStaffApi
18531
19042
  */
18532
- public getInvoices(options?: RawAxiosRequestConfig) {
18533
- return ClubsStaffApiFp(this.configuration).getInvoices(options).then((request) => request(this.axios, this.basePath));
19043
+ public getInvoices(requestParameters: ClubsStaffApiGetInvoicesRequest = {}, options?: RawAxiosRequestConfig) {
19044
+ 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));
18534
19045
  }
18535
19046
 
18536
19047
  /**
@@ -18684,83 +19195,6 @@ export class DefaultApi extends BaseAPI {
18684
19195
  */
18685
19196
  export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
18686
19197
  return {
18687
- /**
18688
- * Check team name availability for TEAM participation events
18689
- * @param {string} eventId
18690
- * @param {string} [teamName]
18691
- * @param {*} [options] Override http request option.
18692
- * @throws {RequiredError}
18693
- */
18694
- checkTeamNameAvailability: async (eventId: string, teamName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18695
- // verify required parameter 'eventId' is not null or undefined
18696
- assertParamExists('checkTeamNameAvailability', 'eventId', eventId)
18697
- const localVarPath = `/api/events/{eventId}/team-name-availability`
18698
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
18699
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18700
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18701
- let baseOptions;
18702
- if (configuration) {
18703
- baseOptions = configuration.baseOptions;
18704
- }
18705
-
18706
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18707
- const localVarHeaderParameter = {} as any;
18708
- const localVarQueryParameter = {} as any;
18709
-
18710
- if (teamName !== undefined) {
18711
- localVarQueryParameter['teamName'] = teamName;
18712
- }
18713
-
18714
-
18715
-
18716
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18717
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18718
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18719
-
18720
- return {
18721
- url: toPathString(localVarUrlObj),
18722
- options: localVarRequestOptions,
18723
- };
18724
- },
18725
- /**
18726
- * Estime le prix de participation à un événement pour une liste de joueurs
18727
- * @param {string} eventId
18728
- * @param {EstimateEventPriceRequest} estimateEventPriceRequest
18729
- * @param {*} [options] Override http request option.
18730
- * @throws {RequiredError}
18731
- */
18732
- estimateEventPrice: async (eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18733
- // verify required parameter 'eventId' is not null or undefined
18734
- assertParamExists('estimateEventPrice', 'eventId', eventId)
18735
- // verify required parameter 'estimateEventPriceRequest' is not null or undefined
18736
- assertParamExists('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest)
18737
- const localVarPath = `/api/events/{eventId}/estimate-price`
18738
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
18739
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18740
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18741
- let baseOptions;
18742
- if (configuration) {
18743
- baseOptions = configuration.baseOptions;
18744
- }
18745
-
18746
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18747
- const localVarHeaderParameter = {} as any;
18748
- const localVarQueryParameter = {} as any;
18749
-
18750
-
18751
-
18752
- localVarHeaderParameter['Content-Type'] = 'application/json';
18753
-
18754
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18755
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18756
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18757
- localVarRequestOptions.data = serializeDataIfNeeded(estimateEventPriceRequest, localVarRequestOptions, configuration)
18758
-
18759
- return {
18760
- url: toPathString(localVarUrlObj),
18761
- options: localVarRequestOptions,
18762
- };
18763
- },
18764
19198
  /**
18765
19199
  * Get a specific event by ID
18766
19200
  * @param {string} eventId
@@ -18933,32 +19367,6 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
18933
19367
  export const EventsApiFp = function(configuration?: Configuration) {
18934
19368
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
18935
19369
  return {
18936
- /**
18937
- * Check team name availability for TEAM participation events
18938
- * @param {string} eventId
18939
- * @param {string} [teamName]
18940
- * @param {*} [options] Override http request option.
18941
- * @throws {RequiredError}
18942
- */
18943
- async checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>> {
18944
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
18945
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18946
- const localVarOperationServerBasePath = operationServerMap['EventsApi.checkTeamNameAvailability']?.[localVarOperationServerIndex]?.url;
18947
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18948
- },
18949
- /**
18950
- * Estime le prix de participation à un événement pour une liste de joueurs
18951
- * @param {string} eventId
18952
- * @param {EstimateEventPriceRequest} estimateEventPriceRequest
18953
- * @param {*} [options] Override http request option.
18954
- * @throws {RequiredError}
18955
- */
18956
- async estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>> {
18957
- const localVarAxiosArgs = await localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
18958
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18959
- const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateEventPrice']?.[localVarOperationServerIndex]?.url;
18960
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18961
- },
18962
19370
  /**
18963
19371
  * Get a specific event by ID
18964
19372
  * @param {string} eventId
@@ -19021,24 +19429,6 @@ export const EventsApiFp = function(configuration?: Configuration) {
19021
19429
  export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19022
19430
  const localVarFp = EventsApiFp(configuration)
19023
19431
  return {
19024
- /**
19025
- * Check team name availability for TEAM participation events
19026
- * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
19027
- * @param {*} [options] Override http request option.
19028
- * @throws {RequiredError}
19029
- */
19030
- checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response> {
19031
- return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
19032
- },
19033
- /**
19034
- * Estime le prix de participation à un événement pour une liste de joueurs
19035
- * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
19036
- * @param {*} [options] Override http request option.
19037
- * @throws {RequiredError}
19038
- */
19039
- estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response> {
19040
- return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
19041
- },
19042
19432
  /**
19043
19433
  * Get a specific event by ID
19044
19434
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -19078,48 +19468,6 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
19078
19468
  };
19079
19469
  };
19080
19470
 
19081
- /**
19082
- * Request parameters for checkTeamNameAvailability operation in EventsApi.
19083
- * @export
19084
- * @interface EventsApiCheckTeamNameAvailabilityRequest
19085
- */
19086
- export interface EventsApiCheckTeamNameAvailabilityRequest {
19087
- /**
19088
- *
19089
- * @type {string}
19090
- * @memberof EventsApiCheckTeamNameAvailability
19091
- */
19092
- readonly eventId: string
19093
-
19094
- /**
19095
- *
19096
- * @type {string}
19097
- * @memberof EventsApiCheckTeamNameAvailability
19098
- */
19099
- readonly teamName?: string
19100
- }
19101
-
19102
- /**
19103
- * Request parameters for estimateEventPrice operation in EventsApi.
19104
- * @export
19105
- * @interface EventsApiEstimateEventPriceRequest
19106
- */
19107
- export interface EventsApiEstimateEventPriceRequest {
19108
- /**
19109
- *
19110
- * @type {string}
19111
- * @memberof EventsApiEstimateEventPrice
19112
- */
19113
- readonly eventId: string
19114
-
19115
- /**
19116
- *
19117
- * @type {EstimateEventPriceRequest}
19118
- * @memberof EventsApiEstimateEventPrice
19119
- */
19120
- readonly estimateEventPriceRequest: EstimateEventPriceRequest
19121
- }
19122
-
19123
19471
  /**
19124
19472
  * Request parameters for getEventById operation in EventsApi.
19125
19473
  * @export
@@ -19211,28 +19559,6 @@ export interface EventsApiLeaveEventRequest {
19211
19559
  * @extends {BaseAPI}
19212
19560
  */
19213
19561
  export class EventsApi extends BaseAPI {
19214
- /**
19215
- * Check team name availability for TEAM participation events
19216
- * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
19217
- * @param {*} [options] Override http request option.
19218
- * @throws {RequiredError}
19219
- * @memberof EventsApi
19220
- */
19221
- public checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig) {
19222
- return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
19223
- }
19224
-
19225
- /**
19226
- * Estime le prix de participation à un événement pour une liste de joueurs
19227
- * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
19228
- * @param {*} [options] Override http request option.
19229
- * @throws {RequiredError}
19230
- * @memberof EventsApi
19231
- */
19232
- public estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig) {
19233
- return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
19234
- }
19235
-
19236
19562
  /**
19237
19563
  * Get a specific event by ID
19238
19564
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -21451,6 +21777,45 @@ export const SubscriptionsStaffApiAxiosParamCreator = function (configuration?:
21451
21777
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21452
21778
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21453
21779
 
21780
+ return {
21781
+ url: toPathString(localVarUrlObj),
21782
+ options: localVarRequestOptions,
21783
+ };
21784
+ },
21785
+ /**
21786
+ * Envoie une invitation d\'abonnement à un joueur (staff)
21787
+ * @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
21788
+ * @param {*} [options] Override http request option.
21789
+ * @throws {RequiredError}
21790
+ */
21791
+ sendSubscriptionInvitation: async (sendSubscriptionInvitationRequest: SendSubscriptionInvitationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21792
+ // verify required parameter 'sendSubscriptionInvitationRequest' is not null or undefined
21793
+ assertParamExists('sendSubscriptionInvitation', 'sendSubscriptionInvitationRequest', sendSubscriptionInvitationRequest)
21794
+ const localVarPath = `/api/subscriptions/invitations`;
21795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21796
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21797
+ let baseOptions;
21798
+ if (configuration) {
21799
+ baseOptions = configuration.baseOptions;
21800
+ }
21801
+
21802
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21803
+ const localVarHeaderParameter = {} as any;
21804
+ const localVarQueryParameter = {} as any;
21805
+
21806
+ // authentication bearerAuth required
21807
+ // http bearer authentication required
21808
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21809
+
21810
+
21811
+
21812
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21813
+
21814
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21815
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21816
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21817
+ localVarRequestOptions.data = serializeDataIfNeeded(sendSubscriptionInvitationRequest, localVarRequestOptions, configuration)
21818
+
21454
21819
  return {
21455
21820
  url: toPathString(localVarUrlObj),
21456
21821
  options: localVarRequestOptions,
@@ -21477,6 +21842,18 @@ export const SubscriptionsStaffApiFp = function(configuration?: Configuration) {
21477
21842
  const localVarOperationServerBasePath = operationServerMap['SubscriptionsStaffApi.getClubPlans']?.[localVarOperationServerIndex]?.url;
21478
21843
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21479
21844
  },
21845
+ /**
21846
+ * Envoie une invitation d\'abonnement à un joueur (staff)
21847
+ * @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
21848
+ * @param {*} [options] Override http request option.
21849
+ * @throws {RequiredError}
21850
+ */
21851
+ async sendSubscriptionInvitation(sendSubscriptionInvitationRequest: SendSubscriptionInvitationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendSubscriptionInvitationResponse>> {
21852
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendSubscriptionInvitation(sendSubscriptionInvitationRequest, options);
21853
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21854
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsStaffApi.sendSubscriptionInvitation']?.[localVarOperationServerIndex]?.url;
21855
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21856
+ },
21480
21857
  }
21481
21858
  };
21482
21859
 
@@ -21495,9 +21872,32 @@ export const SubscriptionsStaffApiFactory = function (configuration?: Configurat
21495
21872
  getClubPlans(options?: RawAxiosRequestConfig): AxiosPromise<Array<SubscriptionPlanResponse>> {
21496
21873
  return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
21497
21874
  },
21875
+ /**
21876
+ * Envoie une invitation d\'abonnement à un joueur (staff)
21877
+ * @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
21878
+ * @param {*} [options] Override http request option.
21879
+ * @throws {RequiredError}
21880
+ */
21881
+ sendSubscriptionInvitation(requestParameters: SubscriptionsStaffApiSendSubscriptionInvitationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SendSubscriptionInvitationResponse> {
21882
+ return localVarFp.sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(axios, basePath));
21883
+ },
21498
21884
  };
21499
21885
  };
21500
21886
 
21887
+ /**
21888
+ * Request parameters for sendSubscriptionInvitation operation in SubscriptionsStaffApi.
21889
+ * @export
21890
+ * @interface SubscriptionsStaffApiSendSubscriptionInvitationRequest
21891
+ */
21892
+ export interface SubscriptionsStaffApiSendSubscriptionInvitationRequest {
21893
+ /**
21894
+ *
21895
+ * @type {SendSubscriptionInvitationRequest}
21896
+ * @memberof SubscriptionsStaffApiSendSubscriptionInvitation
21897
+ */
21898
+ readonly sendSubscriptionInvitationRequest: SendSubscriptionInvitationRequest
21899
+ }
21900
+
21501
21901
  /**
21502
21902
  * SubscriptionsStaffApi - object-oriented interface
21503
21903
  * @export
@@ -21514,6 +21914,17 @@ export class SubscriptionsStaffApi extends BaseAPI {
21514
21914
  public getClubPlans(options?: RawAxiosRequestConfig) {
21515
21915
  return SubscriptionsStaffApiFp(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
21516
21916
  }
21917
+
21918
+ /**
21919
+ * Envoie une invitation d\'abonnement à un joueur (staff)
21920
+ * @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
21921
+ * @param {*} [options] Override http request option.
21922
+ * @throws {RequiredError}
21923
+ * @memberof SubscriptionsStaffApi
21924
+ */
21925
+ public sendSubscriptionInvitation(requestParameters: SubscriptionsStaffApiSendSubscriptionInvitationRequest, options?: RawAxiosRequestConfig) {
21926
+ return SubscriptionsStaffApiFp(this.configuration).sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(this.axios, this.basePath));
21927
+ }
21517
21928
  }
21518
21929
 
21519
21930