@tennac-booking/sdk 1.0.120 → 1.0.122

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 (61) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/README.md +24 -4
  3. package/api.ts +930 -28
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +740 -17
  8. package/dist/api.js +332 -17
  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 +740 -17
  16. package/dist/esm/api.js +324 -13
  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/CheckTeamNameAvailability200Response.md +20 -0
  28. package/docs/ClientApi.md +47 -0
  29. package/docs/ClientFullOnboardingResponseClub.md +2 -0
  30. package/docs/ClientOnboardingRequestBody.md +2 -0
  31. package/docs/ClientSubscription.md +31 -0
  32. package/docs/ClientSubscriptionItem.md +25 -0
  33. package/docs/ClientSubscriptionsResponse.md +21 -0
  34. package/docs/ClubSettingsManagerApi.md +7 -7
  35. package/docs/CreateCourtRequest.md +2 -0
  36. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  37. package/docs/EstimateEventPrice200Response.md +32 -0
  38. package/docs/EstimateEventPriceRequest.md +26 -0
  39. package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
  40. package/docs/EventResponse.md +3 -1
  41. package/docs/EventUser.md +28 -0
  42. package/docs/EventsApi.md +115 -0
  43. package/docs/ImageCleanupItem.md +22 -0
  44. package/docs/ImageCleanupRequestBody.md +20 -0
  45. package/docs/ImageCleanupResponse.md +22 -0
  46. package/docs/ImageContext.md +30 -0
  47. package/docs/ImageContextType.md +20 -0
  48. package/docs/ImageReferencePayload.md +24 -0
  49. package/docs/ImagesApi.md +59 -0
  50. package/docs/JoinEventRequest.md +2 -0
  51. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
  52. package/docs/JoinEventResponse.md +14 -0
  53. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  54. package/docs/OffPeakRule.md +2 -0
  55. package/docs/Team.md +1 -1
  56. package/docs/UpdateClubGeneralSettingsRequest.md +1 -1
  57. package/docs/UpdateClubGeneralSettingsRequestLogo.md +24 -0
  58. package/docs/UpdateClubPresentationSettingsRequest.md +2 -2
  59. package/docs/UserProfileResponse.md +2 -0
  60. package/index.ts +1 -1
  61. package/package.json +1 -1
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.110
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1487,6 +1487,19 @@ 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
+ }
1490
1503
  /**
1491
1504
  *
1492
1505
  * @export
@@ -1593,6 +1606,12 @@ export interface ClientFullOnboardingResponse {
1593
1606
  * @interface ClientFullOnboardingResponseClub
1594
1607
  */
1595
1608
  export interface ClientFullOnboardingResponseClub {
1609
+ /**
1610
+ *
1611
+ * @type {string}
1612
+ * @memberof ClientFullOnboardingResponseClub
1613
+ */
1614
+ 'clubType'?: string;
1596
1615
  /**
1597
1616
  *
1598
1617
  * @type {string}
@@ -1660,7 +1679,21 @@ export interface ClientOnboardingRequestBody {
1660
1679
  * @memberof ClientOnboardingRequestBody
1661
1680
  */
1662
1681
  'country'?: string;
1682
+ /**
1683
+ * Type de club souhaité (public | school)
1684
+ * @type {string}
1685
+ * @memberof ClientOnboardingRequestBody
1686
+ */
1687
+ 'clubType'?: ClientOnboardingRequestBodyClubTypeEnum;
1663
1688
  }
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
+
1664
1697
  /**
1665
1698
  *
1666
1699
  * @export
@@ -1723,6 +1756,87 @@ export interface ClientRegisterRequest {
1723
1756
  */
1724
1757
  'firstName': string;
1725
1758
  }
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
+ }
1726
1840
  /**
1727
1841
  *
1728
1842
  * @export
@@ -3579,6 +3693,12 @@ export interface CreateCourtRequest {
3579
3693
  * @memberof CreateCourtRequest
3580
3694
  */
3581
3695
  'isIndoor': boolean;
3696
+ /**
3697
+ *
3698
+ * @type {number}
3699
+ * @memberof CreateCourtRequest
3700
+ */
3701
+ 'pricePerHour': number;
3582
3702
  /**
3583
3703
  * Commentaires sur le terrain
3584
3704
  * @type {string}
@@ -4020,8 +4140,15 @@ export interface CreateSubscriptionPlanRequestDiscount {
4020
4140
  *
4021
4141
  * @type {Array<OffPeakRule>}
4022
4142
  * @memberof CreateSubscriptionPlanRequestDiscount
4143
+ * @deprecated
4023
4144
  */
4024
4145
  'offPeakRules'?: Array<OffPeakRule>;
4146
+ /**
4147
+ * Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club.
4148
+ * @type {Array<string>}
4149
+ * @memberof CreateSubscriptionPlanRequestDiscount
4150
+ */
4151
+ 'offPeakRuleNames'?: Array<string>;
4025
4152
  /**
4026
4153
  *
4027
4154
  * @type {string}
@@ -4192,6 +4319,105 @@ export const DiscountType = {
4192
4319
  export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
4193
4320
 
4194
4321
 
4322
+ /**
4323
+ *
4324
+ * @export
4325
+ * @interface EstimateEventPrice200Response
4326
+ */
4327
+ export interface EstimateEventPrice200Response {
4328
+ /**
4329
+ * Construct a type with a set of properties K of type T
4330
+ * @type {{ [key: string]: number; }}
4331
+ * @memberof EstimateEventPrice200Response
4332
+ */
4333
+ 'perPayerAfterCredits'?: { [key: string]: number; };
4334
+ /**
4335
+ *
4336
+ * @type {number}
4337
+ * @memberof EstimateEventPrice200Response
4338
+ */
4339
+ 'totalAfterCredits'?: number;
4340
+ /**
4341
+ *
4342
+ * @type {number}
4343
+ * @memberof EstimateEventPrice200Response
4344
+ */
4345
+ 'creditsAppliedInCents'?: number;
4346
+ /**
4347
+ *
4348
+ * @type {string}
4349
+ * @memberof EstimateEventPrice200Response
4350
+ */
4351
+ 'currency': string;
4352
+ /**
4353
+ *
4354
+ * @type {number}
4355
+ * @memberof EstimateEventPrice200Response
4356
+ */
4357
+ 'total': number;
4358
+ /**
4359
+ * Construct a type with a set of properties K of type T
4360
+ * @type {{ [key: string]: number; }}
4361
+ * @memberof EstimateEventPrice200Response
4362
+ */
4363
+ 'perPayer': { [key: string]: number; };
4364
+ /**
4365
+ * Construct a type with a set of properties K of type T
4366
+ * @type {{ [key: string]: number; }}
4367
+ * @memberof EstimateEventPrice200Response
4368
+ */
4369
+ 'perPlayer': { [key: string]: number; };
4370
+ }
4371
+ /**
4372
+ *
4373
+ * @export
4374
+ * @interface EstimateEventPriceRequest
4375
+ */
4376
+ export interface EstimateEventPriceRequest {
4377
+ /**
4378
+ *
4379
+ * @type {number}
4380
+ * @memberof EstimateEventPriceRequest
4381
+ */
4382
+ 'creditToUseInCents'?: number;
4383
+ /**
4384
+ *
4385
+ * @type {string}
4386
+ * @memberof EstimateEventPriceRequest
4387
+ */
4388
+ 'creatorId'?: string;
4389
+ /**
4390
+ *
4391
+ * @type {Array<EstimateEventPriceRequestSharesInner>}
4392
+ * @memberof EstimateEventPriceRequest
4393
+ */
4394
+ 'shares'?: Array<EstimateEventPriceRequestSharesInner>;
4395
+ /**
4396
+ *
4397
+ * @type {Array<string>}
4398
+ * @memberof EstimateEventPriceRequest
4399
+ */
4400
+ 'playerIds': Array<string>;
4401
+ }
4402
+ /**
4403
+ *
4404
+ * @export
4405
+ * @interface EstimateEventPriceRequestSharesInner
4406
+ */
4407
+ export interface EstimateEventPriceRequestSharesInner {
4408
+ /**
4409
+ *
4410
+ * @type {Array<string>}
4411
+ * @memberof EstimateEventPriceRequestSharesInner
4412
+ */
4413
+ 'paysAlsoFor'?: Array<string>;
4414
+ /**
4415
+ *
4416
+ * @type {string}
4417
+ * @memberof EstimateEventPriceRequestSharesInner
4418
+ */
4419
+ 'playerId': string;
4420
+ }
4195
4421
  /**
4196
4422
  *
4197
4423
  * @export
@@ -4346,10 +4572,10 @@ export interface EventResponse {
4346
4572
  'participationType': EventResponseParticipationTypeEnum;
4347
4573
  /**
4348
4574
  *
4349
- * @type {Array<string>}
4575
+ * @type {Array<EventUser>}
4350
4576
  * @memberof EventResponse
4351
4577
  */
4352
- 'participants'?: Array<string>;
4578
+ 'participants'?: Array<EventUser>;
4353
4579
  /**
4354
4580
  *
4355
4581
  * @type {Array<Team>}
@@ -4368,6 +4594,12 @@ export interface EventResponse {
4368
4594
  * @memberof EventResponse
4369
4595
  */
4370
4596
  'teamLimit'?: number;
4597
+ /**
4598
+ *
4599
+ * @type {number}
4600
+ * @memberof EventResponse
4601
+ */
4602
+ 'playersPerTeam'?: number;
4371
4603
  /**
4372
4604
  *
4373
4605
  * @type {number}
@@ -4477,6 +4709,43 @@ export interface EventSponsor {
4477
4709
  */
4478
4710
  'logo'?: string | null;
4479
4711
  }
4712
+ /**
4713
+ *
4714
+ * @export
4715
+ * @interface EventUser
4716
+ */
4717
+ export interface EventUser {
4718
+ /**
4719
+ *
4720
+ * @type {string}
4721
+ * @memberof EventUser
4722
+ */
4723
+ 'id': string;
4724
+ /**
4725
+ *
4726
+ * @type {string}
4727
+ * @memberof EventUser
4728
+ */
4729
+ 'firstName': string;
4730
+ /**
4731
+ *
4732
+ * @type {string}
4733
+ * @memberof EventUser
4734
+ */
4735
+ 'lastName': string;
4736
+ /**
4737
+ *
4738
+ * @type {string}
4739
+ * @memberof EventUser
4740
+ */
4741
+ 'username'?: string;
4742
+ /**
4743
+ *
4744
+ * @type {string}
4745
+ * @memberof EventUser
4746
+ */
4747
+ 'profilePicture'?: string;
4748
+ }
4480
4749
  /**
4481
4750
  *
4482
4751
  * @export
@@ -5302,6 +5571,148 @@ export const IUserLocationTypeEnum = {
5302
5571
 
5303
5572
  export type IUserLocationTypeEnum = typeof IUserLocationTypeEnum[keyof typeof IUserLocationTypeEnum];
5304
5573
 
5574
+ /**
5575
+ *
5576
+ * @export
5577
+ * @interface ImageCleanupItem
5578
+ */
5579
+ export interface ImageCleanupItem {
5580
+ /**
5581
+ *
5582
+ * @type {string}
5583
+ * @memberof ImageCleanupItem
5584
+ */
5585
+ 'imageKey': string;
5586
+ /**
5587
+ *
5588
+ * @type {ImageContext}
5589
+ * @memberof ImageCleanupItem
5590
+ */
5591
+ 'context': ImageContext;
5592
+ }
5593
+ /**
5594
+ *
5595
+ * @export
5596
+ * @interface ImageCleanupRequestBody
5597
+ */
5598
+ export interface ImageCleanupRequestBody {
5599
+ /**
5600
+ *
5601
+ * @type {Array<ImageCleanupItem>}
5602
+ * @memberof ImageCleanupRequestBody
5603
+ */
5604
+ 'items': Array<ImageCleanupItem>;
5605
+ }
5606
+ /**
5607
+ *
5608
+ * @export
5609
+ * @interface ImageCleanupResponse
5610
+ */
5611
+ export interface ImageCleanupResponse {
5612
+ /**
5613
+ *
5614
+ * @type {boolean}
5615
+ * @memberof ImageCleanupResponse
5616
+ */
5617
+ 'success': boolean;
5618
+ /**
5619
+ *
5620
+ * @type {number}
5621
+ * @memberof ImageCleanupResponse
5622
+ */
5623
+ 'deleted': number;
5624
+ }
5625
+ /**
5626
+ *
5627
+ * @export
5628
+ * @interface ImageContext
5629
+ */
5630
+ export interface ImageContext {
5631
+ /**
5632
+ *
5633
+ * @type {ImageContextType}
5634
+ * @memberof ImageContext
5635
+ */
5636
+ 'type': ImageContextType;
5637
+ /**
5638
+ *
5639
+ * @type {string}
5640
+ * @memberof ImageContext
5641
+ */
5642
+ 'entityId': string;
5643
+ /**
5644
+ *
5645
+ * @type {string}
5646
+ * @memberof ImageContext
5647
+ */
5648
+ 'userId'?: string;
5649
+ /**
5650
+ *
5651
+ * @type {string}
5652
+ * @memberof ImageContext
5653
+ */
5654
+ 'clubId'?: string;
5655
+ /**
5656
+ *
5657
+ * @type {string}
5658
+ * @memberof ImageContext
5659
+ */
5660
+ 'sportId'?: string;
5661
+ /**
5662
+ *
5663
+ * @type {string}
5664
+ * @memberof ImageContext
5665
+ */
5666
+ 'eventId'?: string;
5667
+ }
5668
+
5669
+
5670
+ /**
5671
+ *
5672
+ * @export
5673
+ * @enum {string}
5674
+ */
5675
+
5676
+ export const ImageContextType = {
5677
+ UserAvatar: 'user-avatar',
5678
+ ClubAvatar: 'club-avatar',
5679
+ ClubGallery: 'club-gallery',
5680
+ ClubPreview: 'club-preview',
5681
+ ClubCarousel: 'club-carousel',
5682
+ ClubSportImage: 'club-sport-image',
5683
+ ClubEventImage: 'club-event-image'
5684
+ } as const;
5685
+
5686
+ export type ImageContextType = typeof ImageContextType[keyof typeof ImageContextType];
5687
+
5688
+
5689
+ /**
5690
+ *
5691
+ * @export
5692
+ * @interface ImageReferencePayload
5693
+ */
5694
+ export interface ImageReferencePayload {
5695
+ /**
5696
+ *
5697
+ * @type {ImageContextType}
5698
+ * @memberof ImageReferencePayload
5699
+ */
5700
+ 'type': ImageContextType;
5701
+ /**
5702
+ *
5703
+ * @type {string}
5704
+ * @memberof ImageReferencePayload
5705
+ */
5706
+ 'imageKey': string;
5707
+ /**
5708
+ * Construct a type with a set of properties K of type T
5709
+ * @type {{ [key: string]: any; }}
5710
+ * @memberof ImageReferencePayload
5711
+ */
5712
+ 'dbContext'?: { [key: string]: any; } | null;
5713
+ }
5714
+
5715
+
5305
5716
  /**
5306
5717
  *
5307
5718
  * @export
@@ -5389,6 +5800,12 @@ export interface JoinEventRequest {
5389
5800
  * @memberof JoinEventRequest
5390
5801
  */
5391
5802
  'useDefaultPaymentMethod'?: boolean;
5803
+ /**
5804
+ *
5805
+ * @type {number}
5806
+ * @memberof JoinEventRequest
5807
+ */
5808
+ 'creditToUseInCents'?: number;
5392
5809
  }
5393
5810
 
5394
5811
 
@@ -5398,6 +5815,12 @@ export interface JoinEventRequest {
5398
5815
  * @interface JoinEventRequestPlayersPaymentMethodsInner
5399
5816
  */
5400
5817
  export interface JoinEventRequestPlayersPaymentMethodsInner {
5818
+ /**
5819
+ *
5820
+ * @type {Array<string>}
5821
+ * @memberof JoinEventRequestPlayersPaymentMethodsInner
5822
+ */
5823
+ 'paysAlsoFor'?: Array<string>;
5401
5824
  /**
5402
5825
  *
5403
5826
  * @type {PaymentMethod}
@@ -5431,7 +5854,76 @@ export interface JoinEventResponse {
5431
5854
  * @memberof JoinEventResponse
5432
5855
  */
5433
5856
  'event': EventResponse;
5857
+ /**
5858
+ * Construct a type with a set of properties K of type T
5859
+ * @type {{ [key: string]: string; }}
5860
+ * @memberof JoinEventResponse
5861
+ */
5862
+ 'paymentLinks'?: { [key: string]: string; };
5863
+ /**
5864
+ *
5865
+ * @type {Array<JoinEventResponseOnsitePaymentsInner>}
5866
+ * @memberof JoinEventResponse
5867
+ */
5868
+ 'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
5869
+ /**
5870
+ *
5871
+ * @type {string}
5872
+ * @memberof JoinEventResponse
5873
+ */
5874
+ 'setupNoShowPaymentUrl'?: string;
5875
+ /**
5876
+ *
5877
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
5878
+ * @memberof JoinEventResponse
5879
+ */
5880
+ 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
5881
+ /**
5882
+ *
5883
+ * @type {number}
5884
+ * @memberof JoinEventResponse
5885
+ */
5886
+ 'creditsAppliedInCents'?: number;
5887
+ /**
5888
+ *
5889
+ * @type {number}
5890
+ * @memberof JoinEventResponse
5891
+ */
5892
+ 'totalAfterCredits'?: number;
5893
+ /**
5894
+ * Construct a type with a set of properties K of type T
5895
+ * @type {{ [key: string]: number; }}
5896
+ * @memberof JoinEventResponse
5897
+ */
5898
+ 'perPayerAfterCredits'?: { [key: string]: number; };
5899
+ }
5900
+ /**
5901
+ *
5902
+ * @export
5903
+ * @interface JoinEventResponseOnsitePaymentsInner
5904
+ */
5905
+ export interface JoinEventResponseOnsitePaymentsInner {
5906
+ /**
5907
+ *
5908
+ * @type {PaymentMethod}
5909
+ * @memberof JoinEventResponseOnsitePaymentsInner
5910
+ */
5911
+ 'paymentMethod': PaymentMethod;
5912
+ /**
5913
+ *
5914
+ * @type {number}
5915
+ * @memberof JoinEventResponseOnsitePaymentsInner
5916
+ */
5917
+ 'amount': number;
5918
+ /**
5919
+ *
5920
+ * @type {string}
5921
+ * @memberof JoinEventResponseOnsitePaymentsInner
5922
+ */
5923
+ 'playerId': string;
5434
5924
  }
5925
+
5926
+
5435
5927
  /**
5436
5928
  *
5437
5929
  * @export
@@ -5719,6 +6211,12 @@ export interface NoShowFeeResponse {
5719
6211
  * @interface OffPeakRule
5720
6212
  */
5721
6213
  export interface OffPeakRule {
6214
+ /**
6215
+ *
6216
+ * @type {string}
6217
+ * @memberof OffPeakRule
6218
+ */
6219
+ 'pricingPeriodName'?: string;
5722
6220
  /**
5723
6221
  *
5724
6222
  * @type {number}
@@ -9324,10 +9822,10 @@ export interface Team {
9324
9822
  'name': string;
9325
9823
  /**
9326
9824
  *
9327
- * @type {Array<string>}
9825
+ * @type {Array<EventUser>}
9328
9826
  * @memberof Team
9329
9827
  */
9330
- 'players': Array<string>;
9828
+ 'players': Array<EventUser>;
9331
9829
  }
9332
9830
  /**
9333
9831
  *
@@ -9405,10 +9903,10 @@ export interface UpdateClubGeneralSettingsRequest {
9405
9903
  'rib'?: string | null;
9406
9904
  /**
9407
9905
  *
9408
- * @type {string}
9906
+ * @type {UpdateClubGeneralSettingsRequestLogo}
9409
9907
  * @memberof UpdateClubGeneralSettingsRequest
9410
9908
  */
9411
- 'logo'?: string | null;
9909
+ 'logo'?: UpdateClubGeneralSettingsRequestLogo | null;
9412
9910
  /**
9413
9911
  *
9414
9912
  * @type {ClubLocationSettings}
@@ -9416,6 +9914,33 @@ export interface UpdateClubGeneralSettingsRequest {
9416
9914
  */
9417
9915
  'location'?: ClubLocationSettings;
9418
9916
  }
9917
+ /**
9918
+ *
9919
+ * @export
9920
+ * @interface UpdateClubGeneralSettingsRequestLogo
9921
+ */
9922
+ export interface UpdateClubGeneralSettingsRequestLogo {
9923
+ /**
9924
+ *
9925
+ * @type {ImageContextType}
9926
+ * @memberof UpdateClubGeneralSettingsRequestLogo
9927
+ */
9928
+ 'type': ImageContextType;
9929
+ /**
9930
+ *
9931
+ * @type {string}
9932
+ * @memberof UpdateClubGeneralSettingsRequestLogo
9933
+ */
9934
+ 'imageKey': string;
9935
+ /**
9936
+ * Construct a type with a set of properties K of type T
9937
+ * @type {{ [key: string]: any; }}
9938
+ * @memberof UpdateClubGeneralSettingsRequestLogo
9939
+ */
9940
+ 'dbContext'?: { [key: string]: any; } | null;
9941
+ }
9942
+
9943
+
9419
9944
  /**
9420
9945
  *
9421
9946
  * @export
@@ -9483,16 +10008,16 @@ export interface UpdateClubPresentationSettingsRequest {
9483
10008
  'tags'?: Array<string>;
9484
10009
  /**
9485
10010
  *
9486
- * @type {Array<string | null>}
10011
+ * @type {Array<UpdateClubGeneralSettingsRequestLogo>}
9487
10012
  * @memberof UpdateClubPresentationSettingsRequest
9488
10013
  */
9489
- 'bannerImages'?: Array<string | null>;
10014
+ 'bannerImages'?: Array<UpdateClubGeneralSettingsRequestLogo>;
9490
10015
  /**
9491
10016
  *
9492
- * @type {Array<string | null>}
10017
+ * @type {Array<UpdateClubGeneralSettingsRequestLogo>}
9493
10018
  * @memberof UpdateClubPresentationSettingsRequest
9494
10019
  */
9495
- 'galleryImages'?: Array<string | null>;
10020
+ 'galleryImages'?: Array<UpdateClubGeneralSettingsRequestLogo>;
9496
10021
  }
9497
10022
  /**
9498
10023
  *
@@ -10602,6 +11127,12 @@ export interface UserProfileResponse {
10602
11127
  * @memberof UserProfileResponse
10603
11128
  */
10604
11129
  'verifiedSports'?: Array<SportResponse>;
11130
+ /**
11131
+ *
11132
+ * @type {string}
11133
+ * @memberof UserProfileResponse
11134
+ */
11135
+ 'clubId'?: string | null;
10605
11136
  }
10606
11137
 
10607
11138
 
@@ -12320,12 +12851,45 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
12320
12851
 
12321
12852
 
12322
12853
 
12323
- localVarHeaderParameter['Content-Type'] = 'application/json';
12324
-
12854
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12855
+
12856
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12857
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12858
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12859
+ localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration)
12860
+
12861
+ return {
12862
+ url: toPathString(localVarUrlObj),
12863
+ options: localVarRequestOptions,
12864
+ };
12865
+ },
12866
+ /**
12867
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12868
+ * @param {*} [options] Override http request option.
12869
+ * @throws {RequiredError}
12870
+ */
12871
+ getClientSubscriptions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12872
+ const localVarPath = `/clients/subscriptions`;
12873
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12874
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12875
+ let baseOptions;
12876
+ if (configuration) {
12877
+ baseOptions = configuration.baseOptions;
12878
+ }
12879
+
12880
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12881
+ const localVarHeaderParameter = {} as any;
12882
+ const localVarQueryParameter = {} as any;
12883
+
12884
+ // authentication clientAuth required
12885
+ // http bearer authentication required
12886
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12887
+
12888
+
12889
+
12325
12890
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12326
12891
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12327
12892
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12328
- localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration)
12329
12893
 
12330
12894
  return {
12331
12895
  url: toPathString(localVarUrlObj),
@@ -12426,6 +12990,17 @@ export const ClientApiFp = function(configuration?: Configuration) {
12426
12990
  const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
12427
12991
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12428
12992
  },
12993
+ /**
12994
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12995
+ * @param {*} [options] Override http request option.
12996
+ * @throws {RequiredError}
12997
+ */
12998
+ async getClientSubscriptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientSubscriptionsResponse>> {
12999
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClientSubscriptions(options);
13000
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13001
+ const localVarOperationServerBasePath = operationServerMap['ClientApi.getClientSubscriptions']?.[localVarOperationServerIndex]?.url;
13002
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13003
+ },
12429
13004
  /**
12430
13005
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12431
13006
  * @param {*} [options] Override http request option.
@@ -12468,6 +13043,14 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
12468
13043
  clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
12469
13044
  return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
12470
13045
  },
13046
+ /**
13047
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
13048
+ * @param {*} [options] Override http request option.
13049
+ * @throws {RequiredError}
13050
+ */
13051
+ getClientSubscriptions(options?: RawAxiosRequestConfig): AxiosPromise<ClientSubscriptionsResponse> {
13052
+ return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
13053
+ },
12471
13054
  /**
12472
13055
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12473
13056
  * @param {*} [options] Override http request option.
@@ -12534,6 +13117,16 @@ export class ClientApi extends BaseAPI {
12534
13117
  return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
12535
13118
  }
12536
13119
 
13120
+ /**
13121
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
13122
+ * @param {*} [options] Override http request option.
13123
+ * @throws {RequiredError}
13124
+ * @memberof ClientApi
13125
+ */
13126
+ public getClientSubscriptions(options?: RawAxiosRequestConfig) {
13127
+ return ClientApiFp(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
13128
+ }
13129
+
12537
13130
  /**
12538
13131
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12539
13132
  * @param {*} [options] Override http request option.
@@ -14618,7 +15211,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
14618
15211
  baseOptions = configuration.baseOptions;
14619
15212
  }
14620
15213
 
14621
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15214
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
14622
15215
  const localVarHeaderParameter = {} as any;
14623
15216
  const localVarQueryParameter = {} as any;
14624
15217
 
@@ -14681,13 +15274,13 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
14681
15274
  },
14682
15275
  /**
14683
15276
  *
14684
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
15277
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
14685
15278
  * @param {*} [options] Override http request option.
14686
15279
  * @throws {RequiredError}
14687
15280
  */
14688
- updatePresentationSettings: async (clubPresentationSettingsResponse: ClubPresentationSettingsResponse, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14689
- // verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
14690
- assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse)
15281
+ updatePresentationSettings: async (updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15282
+ // verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
15283
+ assertParamExists('updatePresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest)
14691
15284
  const localVarPath = `/api/club-settings/presentation`;
14692
15285
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14693
15286
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14696,7 +15289,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
14696
15289
  baseOptions = configuration.baseOptions;
14697
15290
  }
14698
15291
 
14699
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15292
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
14700
15293
  const localVarHeaderParameter = {} as any;
14701
15294
  const localVarQueryParameter = {} as any;
14702
15295
 
@@ -14711,7 +15304,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
14711
15304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14712
15305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14713
15306
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14714
- localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration)
15307
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration)
14715
15308
 
14716
15309
  return {
14717
15310
  url: toPathString(localVarUrlObj),
@@ -14793,12 +15386,12 @@ export const ClubSettingsManagerApiFp = function(configuration?: Configuration)
14793
15386
  },
14794
15387
  /**
14795
15388
  *
14796
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
15389
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
14797
15390
  * @param {*} [options] Override http request option.
14798
15391
  * @throws {RequiredError}
14799
15392
  */
14800
- async updatePresentationSettings(clubPresentationSettingsResponse: ClubPresentationSettingsResponse, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
14801
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
15393
+ async updatePresentationSettings(updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
15394
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePresentationSettings(updateClubPresentationSettingsRequest, options);
14802
15395
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14803
15396
  const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']?.[localVarOperationServerIndex]?.url;
14804
15397
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14850,7 +15443,7 @@ export const ClubSettingsManagerApiFactory = function (configuration?: Configura
14850
15443
  * @throws {RequiredError}
14851
15444
  */
14852
15445
  updatePresentationSettings(requestParameters: ClubSettingsManagerApiUpdatePresentationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
14853
- return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
15446
+ return localVarFp.updatePresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
14854
15447
  },
14855
15448
  /**
14856
15449
  *
@@ -14900,10 +15493,10 @@ export interface ClubSettingsManagerApiUpdateHoursSettingsRequest {
14900
15493
  export interface ClubSettingsManagerApiUpdatePresentationSettingsRequest {
14901
15494
  /**
14902
15495
  *
14903
- * @type {ClubPresentationSettingsResponse}
15496
+ * @type {UpdateClubPresentationSettingsRequest}
14904
15497
  * @memberof ClubSettingsManagerApiUpdatePresentationSettings
14905
15498
  */
14906
- readonly clubPresentationSettingsResponse: ClubPresentationSettingsResponse
15499
+ readonly updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest
14907
15500
  }
14908
15501
 
14909
15502
  /**
@@ -14957,7 +15550,7 @@ export class ClubSettingsManagerApi extends BaseAPI {
14957
15550
  * @memberof ClubSettingsManagerApi
14958
15551
  */
14959
15552
  public updatePresentationSettings(requestParameters: ClubSettingsManagerApiUpdatePresentationSettingsRequest, options?: RawAxiosRequestConfig) {
14960
- return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
15553
+ return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
14961
15554
  }
14962
15555
 
14963
15556
  /**
@@ -19195,6 +19788,83 @@ export class DefaultApi extends BaseAPI {
19195
19788
  */
19196
19789
  export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
19197
19790
  return {
19791
+ /**
19792
+ * Check team name availability for TEAM participation events
19793
+ * @param {string} eventId
19794
+ * @param {string} [teamName]
19795
+ * @param {*} [options] Override http request option.
19796
+ * @throws {RequiredError}
19797
+ */
19798
+ checkTeamNameAvailability: async (eventId: string, teamName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19799
+ // verify required parameter 'eventId' is not null or undefined
19800
+ assertParamExists('checkTeamNameAvailability', 'eventId', eventId)
19801
+ const localVarPath = `/api/events/{eventId}/team-name-availability`
19802
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
19803
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19804
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19805
+ let baseOptions;
19806
+ if (configuration) {
19807
+ baseOptions = configuration.baseOptions;
19808
+ }
19809
+
19810
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19811
+ const localVarHeaderParameter = {} as any;
19812
+ const localVarQueryParameter = {} as any;
19813
+
19814
+ if (teamName !== undefined) {
19815
+ localVarQueryParameter['teamName'] = teamName;
19816
+ }
19817
+
19818
+
19819
+
19820
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19821
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19822
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19823
+
19824
+ return {
19825
+ url: toPathString(localVarUrlObj),
19826
+ options: localVarRequestOptions,
19827
+ };
19828
+ },
19829
+ /**
19830
+ * Estime le prix de participation à un événement pour une liste de joueurs
19831
+ * @param {string} eventId
19832
+ * @param {EstimateEventPriceRequest} estimateEventPriceRequest
19833
+ * @param {*} [options] Override http request option.
19834
+ * @throws {RequiredError}
19835
+ */
19836
+ estimateEventPrice: async (eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19837
+ // verify required parameter 'eventId' is not null or undefined
19838
+ assertParamExists('estimateEventPrice', 'eventId', eventId)
19839
+ // verify required parameter 'estimateEventPriceRequest' is not null or undefined
19840
+ assertParamExists('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest)
19841
+ const localVarPath = `/api/events/{eventId}/estimate-price`
19842
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
19843
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19844
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19845
+ let baseOptions;
19846
+ if (configuration) {
19847
+ baseOptions = configuration.baseOptions;
19848
+ }
19849
+
19850
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19851
+ const localVarHeaderParameter = {} as any;
19852
+ const localVarQueryParameter = {} as any;
19853
+
19854
+
19855
+
19856
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19857
+
19858
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19859
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19860
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19861
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateEventPriceRequest, localVarRequestOptions, configuration)
19862
+
19863
+ return {
19864
+ url: toPathString(localVarUrlObj),
19865
+ options: localVarRequestOptions,
19866
+ };
19867
+ },
19198
19868
  /**
19199
19869
  * Get a specific event by ID
19200
19870
  * @param {string} eventId
@@ -19367,6 +20037,32 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
19367
20037
  export const EventsApiFp = function(configuration?: Configuration) {
19368
20038
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
19369
20039
  return {
20040
+ /**
20041
+ * Check team name availability for TEAM participation events
20042
+ * @param {string} eventId
20043
+ * @param {string} [teamName]
20044
+ * @param {*} [options] Override http request option.
20045
+ * @throws {RequiredError}
20046
+ */
20047
+ async checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>> {
20048
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
20049
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20050
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.checkTeamNameAvailability']?.[localVarOperationServerIndex]?.url;
20051
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20052
+ },
20053
+ /**
20054
+ * Estime le prix de participation à un événement pour une liste de joueurs
20055
+ * @param {string} eventId
20056
+ * @param {EstimateEventPriceRequest} estimateEventPriceRequest
20057
+ * @param {*} [options] Override http request option.
20058
+ * @throws {RequiredError}
20059
+ */
20060
+ async estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>> {
20061
+ const localVarAxiosArgs = await localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
20062
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20063
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateEventPrice']?.[localVarOperationServerIndex]?.url;
20064
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20065
+ },
19370
20066
  /**
19371
20067
  * Get a specific event by ID
19372
20068
  * @param {string} eventId
@@ -19429,6 +20125,24 @@ export const EventsApiFp = function(configuration?: Configuration) {
19429
20125
  export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19430
20126
  const localVarFp = EventsApiFp(configuration)
19431
20127
  return {
20128
+ /**
20129
+ * Check team name availability for TEAM participation events
20130
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
20131
+ * @param {*} [options] Override http request option.
20132
+ * @throws {RequiredError}
20133
+ */
20134
+ checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response> {
20135
+ return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
20136
+ },
20137
+ /**
20138
+ * Estime le prix de participation à un événement pour une liste de joueurs
20139
+ * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
20140
+ * @param {*} [options] Override http request option.
20141
+ * @throws {RequiredError}
20142
+ */
20143
+ estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response> {
20144
+ return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
20145
+ },
19432
20146
  /**
19433
20147
  * Get a specific event by ID
19434
20148
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -19468,6 +20182,48 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
19468
20182
  };
19469
20183
  };
19470
20184
 
20185
+ /**
20186
+ * Request parameters for checkTeamNameAvailability operation in EventsApi.
20187
+ * @export
20188
+ * @interface EventsApiCheckTeamNameAvailabilityRequest
20189
+ */
20190
+ export interface EventsApiCheckTeamNameAvailabilityRequest {
20191
+ /**
20192
+ *
20193
+ * @type {string}
20194
+ * @memberof EventsApiCheckTeamNameAvailability
20195
+ */
20196
+ readonly eventId: string
20197
+
20198
+ /**
20199
+ *
20200
+ * @type {string}
20201
+ * @memberof EventsApiCheckTeamNameAvailability
20202
+ */
20203
+ readonly teamName?: string
20204
+ }
20205
+
20206
+ /**
20207
+ * Request parameters for estimateEventPrice operation in EventsApi.
20208
+ * @export
20209
+ * @interface EventsApiEstimateEventPriceRequest
20210
+ */
20211
+ export interface EventsApiEstimateEventPriceRequest {
20212
+ /**
20213
+ *
20214
+ * @type {string}
20215
+ * @memberof EventsApiEstimateEventPrice
20216
+ */
20217
+ readonly eventId: string
20218
+
20219
+ /**
20220
+ *
20221
+ * @type {EstimateEventPriceRequest}
20222
+ * @memberof EventsApiEstimateEventPrice
20223
+ */
20224
+ readonly estimateEventPriceRequest: EstimateEventPriceRequest
20225
+ }
20226
+
19471
20227
  /**
19472
20228
  * Request parameters for getEventById operation in EventsApi.
19473
20229
  * @export
@@ -19559,6 +20315,28 @@ export interface EventsApiLeaveEventRequest {
19559
20315
  * @extends {BaseAPI}
19560
20316
  */
19561
20317
  export class EventsApi extends BaseAPI {
20318
+ /**
20319
+ * Check team name availability for TEAM participation events
20320
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
20321
+ * @param {*} [options] Override http request option.
20322
+ * @throws {RequiredError}
20323
+ * @memberof EventsApi
20324
+ */
20325
+ public checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig) {
20326
+ return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
20327
+ }
20328
+
20329
+ /**
20330
+ * Estime le prix de participation à un événement pour une liste de joueurs
20331
+ * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
20332
+ * @param {*} [options] Override http request option.
20333
+ * @throws {RequiredError}
20334
+ * @memberof EventsApi
20335
+ */
20336
+ public estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig) {
20337
+ return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
20338
+ }
20339
+
19562
20340
  /**
19563
20341
  * Get a specific event by ID
19564
20342
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -20932,6 +21710,130 @@ export const GetWeeklyEventsTypeEnum = {
20932
21710
  export type GetWeeklyEventsTypeEnum = typeof GetWeeklyEventsTypeEnum[keyof typeof GetWeeklyEventsTypeEnum];
20933
21711
 
20934
21712
 
21713
+ /**
21714
+ * ImagesApi - axios parameter creator
21715
+ * @export
21716
+ */
21717
+ export const ImagesApiAxiosParamCreator = function (configuration?: Configuration) {
21718
+ return {
21719
+ /**
21720
+ *
21721
+ * @param {ImageCleanupRequestBody} imageCleanupRequestBody
21722
+ * @param {*} [options] Override http request option.
21723
+ * @throws {RequiredError}
21724
+ */
21725
+ cleanupImages: async (imageCleanupRequestBody: ImageCleanupRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21726
+ // verify required parameter 'imageCleanupRequestBody' is not null or undefined
21727
+ assertParamExists('cleanupImages', 'imageCleanupRequestBody', imageCleanupRequestBody)
21728
+ const localVarPath = `/api/images/cleanup`;
21729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21731
+ let baseOptions;
21732
+ if (configuration) {
21733
+ baseOptions = configuration.baseOptions;
21734
+ }
21735
+
21736
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21737
+ const localVarHeaderParameter = {} as any;
21738
+ const localVarQueryParameter = {} as any;
21739
+
21740
+ // authentication bearerAuth required
21741
+ // http bearer authentication required
21742
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21743
+
21744
+
21745
+
21746
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21747
+
21748
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21749
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21750
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21751
+ localVarRequestOptions.data = serializeDataIfNeeded(imageCleanupRequestBody, localVarRequestOptions, configuration)
21752
+
21753
+ return {
21754
+ url: toPathString(localVarUrlObj),
21755
+ options: localVarRequestOptions,
21756
+ };
21757
+ },
21758
+ }
21759
+ };
21760
+
21761
+ /**
21762
+ * ImagesApi - functional programming interface
21763
+ * @export
21764
+ */
21765
+ export const ImagesApiFp = function(configuration?: Configuration) {
21766
+ const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration)
21767
+ return {
21768
+ /**
21769
+ *
21770
+ * @param {ImageCleanupRequestBody} imageCleanupRequestBody
21771
+ * @param {*} [options] Override http request option.
21772
+ * @throws {RequiredError}
21773
+ */
21774
+ async cleanupImages(imageCleanupRequestBody: ImageCleanupRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageCleanupResponse>> {
21775
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cleanupImages(imageCleanupRequestBody, options);
21776
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21777
+ const localVarOperationServerBasePath = operationServerMap['ImagesApi.cleanupImages']?.[localVarOperationServerIndex]?.url;
21778
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21779
+ },
21780
+ }
21781
+ };
21782
+
21783
+ /**
21784
+ * ImagesApi - factory interface
21785
+ * @export
21786
+ */
21787
+ export const ImagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21788
+ const localVarFp = ImagesApiFp(configuration)
21789
+ return {
21790
+ /**
21791
+ *
21792
+ * @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
21793
+ * @param {*} [options] Override http request option.
21794
+ * @throws {RequiredError}
21795
+ */
21796
+ cleanupImages(requestParameters: ImagesApiCleanupImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImageCleanupResponse> {
21797
+ return localVarFp.cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(axios, basePath));
21798
+ },
21799
+ };
21800
+ };
21801
+
21802
+ /**
21803
+ * Request parameters for cleanupImages operation in ImagesApi.
21804
+ * @export
21805
+ * @interface ImagesApiCleanupImagesRequest
21806
+ */
21807
+ export interface ImagesApiCleanupImagesRequest {
21808
+ /**
21809
+ *
21810
+ * @type {ImageCleanupRequestBody}
21811
+ * @memberof ImagesApiCleanupImages
21812
+ */
21813
+ readonly imageCleanupRequestBody: ImageCleanupRequestBody
21814
+ }
21815
+
21816
+ /**
21817
+ * ImagesApi - object-oriented interface
21818
+ * @export
21819
+ * @class ImagesApi
21820
+ * @extends {BaseAPI}
21821
+ */
21822
+ export class ImagesApi extends BaseAPI {
21823
+ /**
21824
+ *
21825
+ * @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
21826
+ * @param {*} [options] Override http request option.
21827
+ * @throws {RequiredError}
21828
+ * @memberof ImagesApi
21829
+ */
21830
+ public cleanupImages(requestParameters: ImagesApiCleanupImagesRequest, options?: RawAxiosRequestConfig) {
21831
+ return ImagesApiFp(this.configuration).cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(this.axios, this.basePath));
21832
+ }
21833
+ }
21834
+
21835
+
21836
+
20935
21837
  /**
20936
21838
  * SportsManagerApi - axios parameter creator
20937
21839
  * @export