@tennac-booking/sdk 1.0.119 → 1.0.121

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 (59) hide show
  1. package/.openapi-generator/FILES +329 -313
  2. package/README.md +22 -2
  3. package/api.ts +910 -27
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +721 -17
  8. package/dist/api.js +330 -15
  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 +721 -17
  16. package/dist/esm/api.js +322 -11
  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 +5 -5
  35. package/docs/CreateCourtRequest.md +2 -0
  36. package/docs/EstimateEventPrice200Response.md +32 -0
  37. package/docs/EstimateEventPriceRequest.md +26 -0
  38. package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
  39. package/docs/EventResponse.md +1 -1
  40. package/docs/EventUser.md +28 -0
  41. package/docs/EventsApi.md +115 -0
  42. package/docs/ImageCleanupItem.md +22 -0
  43. package/docs/ImageCleanupRequestBody.md +20 -0
  44. package/docs/ImageCleanupResponse.md +22 -0
  45. package/docs/ImageContext.md +30 -0
  46. package/docs/ImageContextType.md +20 -0
  47. package/docs/ImageReferencePayload.md +24 -0
  48. package/docs/ImagesApi.md +59 -0
  49. package/docs/JoinEventRequest.md +2 -0
  50. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
  51. package/docs/JoinEventResponse.md +14 -0
  52. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  53. package/docs/Team.md +1 -1
  54. package/docs/UpdateClubGeneralSettingsRequest.md +1 -1
  55. package/docs/UpdateClubGeneralSettingsRequestLogo.md +24 -0
  56. package/docs/UpdateClubPresentationSettingsRequest.md +2 -2
  57. package/docs/UserProfileResponse.md +2 -0
  58. package/index.ts +1 -1
  59. 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}
@@ -4192,6 +4312,105 @@ export const DiscountType = {
4192
4312
  export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
4193
4313
 
4194
4314
 
4315
+ /**
4316
+ *
4317
+ * @export
4318
+ * @interface EstimateEventPrice200Response
4319
+ */
4320
+ export interface EstimateEventPrice200Response {
4321
+ /**
4322
+ * Construct a type with a set of properties K of type T
4323
+ * @type {{ [key: string]: number; }}
4324
+ * @memberof EstimateEventPrice200Response
4325
+ */
4326
+ 'perPayerAfterCredits'?: { [key: string]: number; };
4327
+ /**
4328
+ *
4329
+ * @type {number}
4330
+ * @memberof EstimateEventPrice200Response
4331
+ */
4332
+ 'totalAfterCredits'?: number;
4333
+ /**
4334
+ *
4335
+ * @type {number}
4336
+ * @memberof EstimateEventPrice200Response
4337
+ */
4338
+ 'creditsAppliedInCents'?: number;
4339
+ /**
4340
+ *
4341
+ * @type {string}
4342
+ * @memberof EstimateEventPrice200Response
4343
+ */
4344
+ 'currency': string;
4345
+ /**
4346
+ *
4347
+ * @type {number}
4348
+ * @memberof EstimateEventPrice200Response
4349
+ */
4350
+ 'total': number;
4351
+ /**
4352
+ * Construct a type with a set of properties K of type T
4353
+ * @type {{ [key: string]: number; }}
4354
+ * @memberof EstimateEventPrice200Response
4355
+ */
4356
+ 'perPayer': { [key: string]: number; };
4357
+ /**
4358
+ * Construct a type with a set of properties K of type T
4359
+ * @type {{ [key: string]: number; }}
4360
+ * @memberof EstimateEventPrice200Response
4361
+ */
4362
+ 'perPlayer': { [key: string]: number; };
4363
+ }
4364
+ /**
4365
+ *
4366
+ * @export
4367
+ * @interface EstimateEventPriceRequest
4368
+ */
4369
+ export interface EstimateEventPriceRequest {
4370
+ /**
4371
+ *
4372
+ * @type {number}
4373
+ * @memberof EstimateEventPriceRequest
4374
+ */
4375
+ 'creditToUseInCents'?: number;
4376
+ /**
4377
+ *
4378
+ * @type {string}
4379
+ * @memberof EstimateEventPriceRequest
4380
+ */
4381
+ 'creatorId'?: string;
4382
+ /**
4383
+ *
4384
+ * @type {Array<EstimateEventPriceRequestSharesInner>}
4385
+ * @memberof EstimateEventPriceRequest
4386
+ */
4387
+ 'shares'?: Array<EstimateEventPriceRequestSharesInner>;
4388
+ /**
4389
+ *
4390
+ * @type {Array<string>}
4391
+ * @memberof EstimateEventPriceRequest
4392
+ */
4393
+ 'playerIds': Array<string>;
4394
+ }
4395
+ /**
4396
+ *
4397
+ * @export
4398
+ * @interface EstimateEventPriceRequestSharesInner
4399
+ */
4400
+ export interface EstimateEventPriceRequestSharesInner {
4401
+ /**
4402
+ *
4403
+ * @type {Array<string>}
4404
+ * @memberof EstimateEventPriceRequestSharesInner
4405
+ */
4406
+ 'paysAlsoFor'?: Array<string>;
4407
+ /**
4408
+ *
4409
+ * @type {string}
4410
+ * @memberof EstimateEventPriceRequestSharesInner
4411
+ */
4412
+ 'playerId': string;
4413
+ }
4195
4414
  /**
4196
4415
  *
4197
4416
  * @export
@@ -4346,10 +4565,10 @@ export interface EventResponse {
4346
4565
  'participationType': EventResponseParticipationTypeEnum;
4347
4566
  /**
4348
4567
  *
4349
- * @type {Array<string>}
4568
+ * @type {Array<EventUser>}
4350
4569
  * @memberof EventResponse
4351
4570
  */
4352
- 'participants'?: Array<string>;
4571
+ 'participants'?: Array<EventUser>;
4353
4572
  /**
4354
4573
  *
4355
4574
  * @type {Array<Team>}
@@ -4483,6 +4702,43 @@ export interface EventSponsor {
4483
4702
  */
4484
4703
  'logo'?: string | null;
4485
4704
  }
4705
+ /**
4706
+ *
4707
+ * @export
4708
+ * @interface EventUser
4709
+ */
4710
+ export interface EventUser {
4711
+ /**
4712
+ *
4713
+ * @type {string}
4714
+ * @memberof EventUser
4715
+ */
4716
+ 'id': string;
4717
+ /**
4718
+ *
4719
+ * @type {string}
4720
+ * @memberof EventUser
4721
+ */
4722
+ 'firstName': string;
4723
+ /**
4724
+ *
4725
+ * @type {string}
4726
+ * @memberof EventUser
4727
+ */
4728
+ 'lastName': string;
4729
+ /**
4730
+ *
4731
+ * @type {string}
4732
+ * @memberof EventUser
4733
+ */
4734
+ 'username'?: string;
4735
+ /**
4736
+ *
4737
+ * @type {string}
4738
+ * @memberof EventUser
4739
+ */
4740
+ 'profilePicture'?: string;
4741
+ }
4486
4742
  /**
4487
4743
  *
4488
4744
  * @export
@@ -5308,6 +5564,148 @@ export const IUserLocationTypeEnum = {
5308
5564
 
5309
5565
  export type IUserLocationTypeEnum = typeof IUserLocationTypeEnum[keyof typeof IUserLocationTypeEnum];
5310
5566
 
5567
+ /**
5568
+ *
5569
+ * @export
5570
+ * @interface ImageCleanupItem
5571
+ */
5572
+ export interface ImageCleanupItem {
5573
+ /**
5574
+ *
5575
+ * @type {string}
5576
+ * @memberof ImageCleanupItem
5577
+ */
5578
+ 'imageKey': string;
5579
+ /**
5580
+ *
5581
+ * @type {ImageContext}
5582
+ * @memberof ImageCleanupItem
5583
+ */
5584
+ 'context': ImageContext;
5585
+ }
5586
+ /**
5587
+ *
5588
+ * @export
5589
+ * @interface ImageCleanupRequestBody
5590
+ */
5591
+ export interface ImageCleanupRequestBody {
5592
+ /**
5593
+ *
5594
+ * @type {Array<ImageCleanupItem>}
5595
+ * @memberof ImageCleanupRequestBody
5596
+ */
5597
+ 'items': Array<ImageCleanupItem>;
5598
+ }
5599
+ /**
5600
+ *
5601
+ * @export
5602
+ * @interface ImageCleanupResponse
5603
+ */
5604
+ export interface ImageCleanupResponse {
5605
+ /**
5606
+ *
5607
+ * @type {boolean}
5608
+ * @memberof ImageCleanupResponse
5609
+ */
5610
+ 'success': boolean;
5611
+ /**
5612
+ *
5613
+ * @type {number}
5614
+ * @memberof ImageCleanupResponse
5615
+ */
5616
+ 'deleted': number;
5617
+ }
5618
+ /**
5619
+ *
5620
+ * @export
5621
+ * @interface ImageContext
5622
+ */
5623
+ export interface ImageContext {
5624
+ /**
5625
+ *
5626
+ * @type {ImageContextType}
5627
+ * @memberof ImageContext
5628
+ */
5629
+ 'type': ImageContextType;
5630
+ /**
5631
+ *
5632
+ * @type {string}
5633
+ * @memberof ImageContext
5634
+ */
5635
+ 'entityId': string;
5636
+ /**
5637
+ *
5638
+ * @type {string}
5639
+ * @memberof ImageContext
5640
+ */
5641
+ 'userId'?: string;
5642
+ /**
5643
+ *
5644
+ * @type {string}
5645
+ * @memberof ImageContext
5646
+ */
5647
+ 'clubId'?: string;
5648
+ /**
5649
+ *
5650
+ * @type {string}
5651
+ * @memberof ImageContext
5652
+ */
5653
+ 'sportId'?: string;
5654
+ /**
5655
+ *
5656
+ * @type {string}
5657
+ * @memberof ImageContext
5658
+ */
5659
+ 'eventId'?: string;
5660
+ }
5661
+
5662
+
5663
+ /**
5664
+ *
5665
+ * @export
5666
+ * @enum {string}
5667
+ */
5668
+
5669
+ export const ImageContextType = {
5670
+ UserAvatar: 'user-avatar',
5671
+ ClubAvatar: 'club-avatar',
5672
+ ClubGallery: 'club-gallery',
5673
+ ClubPreview: 'club-preview',
5674
+ ClubCarousel: 'club-carousel',
5675
+ ClubSportImage: 'club-sport-image',
5676
+ ClubEventImage: 'club-event-image'
5677
+ } as const;
5678
+
5679
+ export type ImageContextType = typeof ImageContextType[keyof typeof ImageContextType];
5680
+
5681
+
5682
+ /**
5683
+ *
5684
+ * @export
5685
+ * @interface ImageReferencePayload
5686
+ */
5687
+ export interface ImageReferencePayload {
5688
+ /**
5689
+ *
5690
+ * @type {ImageContextType}
5691
+ * @memberof ImageReferencePayload
5692
+ */
5693
+ 'type': ImageContextType;
5694
+ /**
5695
+ *
5696
+ * @type {string}
5697
+ * @memberof ImageReferencePayload
5698
+ */
5699
+ 'imageKey': string;
5700
+ /**
5701
+ * Construct a type with a set of properties K of type T
5702
+ * @type {{ [key: string]: any; }}
5703
+ * @memberof ImageReferencePayload
5704
+ */
5705
+ 'dbContext'?: { [key: string]: any; } | null;
5706
+ }
5707
+
5708
+
5311
5709
  /**
5312
5710
  *
5313
5711
  * @export
@@ -5395,6 +5793,12 @@ export interface JoinEventRequest {
5395
5793
  * @memberof JoinEventRequest
5396
5794
  */
5397
5795
  'useDefaultPaymentMethod'?: boolean;
5796
+ /**
5797
+ *
5798
+ * @type {number}
5799
+ * @memberof JoinEventRequest
5800
+ */
5801
+ 'creditToUseInCents'?: number;
5398
5802
  }
5399
5803
 
5400
5804
 
@@ -5404,6 +5808,12 @@ export interface JoinEventRequest {
5404
5808
  * @interface JoinEventRequestPlayersPaymentMethodsInner
5405
5809
  */
5406
5810
  export interface JoinEventRequestPlayersPaymentMethodsInner {
5811
+ /**
5812
+ *
5813
+ * @type {Array<string>}
5814
+ * @memberof JoinEventRequestPlayersPaymentMethodsInner
5815
+ */
5816
+ 'paysAlsoFor'?: Array<string>;
5407
5817
  /**
5408
5818
  *
5409
5819
  * @type {PaymentMethod}
@@ -5437,7 +5847,76 @@ export interface JoinEventResponse {
5437
5847
  * @memberof JoinEventResponse
5438
5848
  */
5439
5849
  'event': EventResponse;
5850
+ /**
5851
+ * Construct a type with a set of properties K of type T
5852
+ * @type {{ [key: string]: string; }}
5853
+ * @memberof JoinEventResponse
5854
+ */
5855
+ 'paymentLinks'?: { [key: string]: string; };
5856
+ /**
5857
+ *
5858
+ * @type {Array<JoinEventResponseOnsitePaymentsInner>}
5859
+ * @memberof JoinEventResponse
5860
+ */
5861
+ 'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
5862
+ /**
5863
+ *
5864
+ * @type {string}
5865
+ * @memberof JoinEventResponse
5866
+ */
5867
+ 'setupNoShowPaymentUrl'?: string;
5868
+ /**
5869
+ *
5870
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
5871
+ * @memberof JoinEventResponse
5872
+ */
5873
+ 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
5874
+ /**
5875
+ *
5876
+ * @type {number}
5877
+ * @memberof JoinEventResponse
5878
+ */
5879
+ 'creditsAppliedInCents'?: number;
5880
+ /**
5881
+ *
5882
+ * @type {number}
5883
+ * @memberof JoinEventResponse
5884
+ */
5885
+ 'totalAfterCredits'?: number;
5886
+ /**
5887
+ * Construct a type with a set of properties K of type T
5888
+ * @type {{ [key: string]: number; }}
5889
+ * @memberof JoinEventResponse
5890
+ */
5891
+ 'perPayerAfterCredits'?: { [key: string]: number; };
5892
+ }
5893
+ /**
5894
+ *
5895
+ * @export
5896
+ * @interface JoinEventResponseOnsitePaymentsInner
5897
+ */
5898
+ export interface JoinEventResponseOnsitePaymentsInner {
5899
+ /**
5900
+ *
5901
+ * @type {PaymentMethod}
5902
+ * @memberof JoinEventResponseOnsitePaymentsInner
5903
+ */
5904
+ 'paymentMethod': PaymentMethod;
5905
+ /**
5906
+ *
5907
+ * @type {number}
5908
+ * @memberof JoinEventResponseOnsitePaymentsInner
5909
+ */
5910
+ 'amount': number;
5911
+ /**
5912
+ *
5913
+ * @type {string}
5914
+ * @memberof JoinEventResponseOnsitePaymentsInner
5915
+ */
5916
+ 'playerId': string;
5440
5917
  }
5918
+
5919
+
5441
5920
  /**
5442
5921
  *
5443
5922
  * @export
@@ -9330,10 +9809,10 @@ export interface Team {
9330
9809
  'name': string;
9331
9810
  /**
9332
9811
  *
9333
- * @type {Array<string>}
9812
+ * @type {Array<EventUser>}
9334
9813
  * @memberof Team
9335
9814
  */
9336
- 'players': Array<string>;
9815
+ 'players': Array<EventUser>;
9337
9816
  }
9338
9817
  /**
9339
9818
  *
@@ -9411,10 +9890,10 @@ export interface UpdateClubGeneralSettingsRequest {
9411
9890
  'rib'?: string | null;
9412
9891
  /**
9413
9892
  *
9414
- * @type {string}
9893
+ * @type {UpdateClubGeneralSettingsRequestLogo}
9415
9894
  * @memberof UpdateClubGeneralSettingsRequest
9416
9895
  */
9417
- 'logo'?: string | null;
9896
+ 'logo'?: UpdateClubGeneralSettingsRequestLogo | null;
9418
9897
  /**
9419
9898
  *
9420
9899
  * @type {ClubLocationSettings}
@@ -9422,6 +9901,33 @@ export interface UpdateClubGeneralSettingsRequest {
9422
9901
  */
9423
9902
  'location'?: ClubLocationSettings;
9424
9903
  }
9904
+ /**
9905
+ *
9906
+ * @export
9907
+ * @interface UpdateClubGeneralSettingsRequestLogo
9908
+ */
9909
+ export interface UpdateClubGeneralSettingsRequestLogo {
9910
+ /**
9911
+ *
9912
+ * @type {ImageContextType}
9913
+ * @memberof UpdateClubGeneralSettingsRequestLogo
9914
+ */
9915
+ 'type': ImageContextType;
9916
+ /**
9917
+ *
9918
+ * @type {string}
9919
+ * @memberof UpdateClubGeneralSettingsRequestLogo
9920
+ */
9921
+ 'imageKey': string;
9922
+ /**
9923
+ * Construct a type with a set of properties K of type T
9924
+ * @type {{ [key: string]: any; }}
9925
+ * @memberof UpdateClubGeneralSettingsRequestLogo
9926
+ */
9927
+ 'dbContext'?: { [key: string]: any; } | null;
9928
+ }
9929
+
9930
+
9425
9931
  /**
9426
9932
  *
9427
9933
  * @export
@@ -9489,16 +9995,16 @@ export interface UpdateClubPresentationSettingsRequest {
9489
9995
  'tags'?: Array<string>;
9490
9996
  /**
9491
9997
  *
9492
- * @type {Array<string | null>}
9998
+ * @type {Array<UpdateClubGeneralSettingsRequestLogo>}
9493
9999
  * @memberof UpdateClubPresentationSettingsRequest
9494
10000
  */
9495
- 'bannerImages'?: Array<string | null>;
10001
+ 'bannerImages'?: Array<UpdateClubGeneralSettingsRequestLogo>;
9496
10002
  /**
9497
10003
  *
9498
- * @type {Array<string | null>}
10004
+ * @type {Array<UpdateClubGeneralSettingsRequestLogo>}
9499
10005
  * @memberof UpdateClubPresentationSettingsRequest
9500
10006
  */
9501
- 'galleryImages'?: Array<string | null>;
10007
+ 'galleryImages'?: Array<UpdateClubGeneralSettingsRequestLogo>;
9502
10008
  }
9503
10009
  /**
9504
10010
  *
@@ -10608,6 +11114,12 @@ export interface UserProfileResponse {
10608
11114
  * @memberof UserProfileResponse
10609
11115
  */
10610
11116
  'verifiedSports'?: Array<SportResponse>;
11117
+ /**
11118
+ *
11119
+ * @type {string}
11120
+ * @memberof UserProfileResponse
11121
+ */
11122
+ 'clubId'?: string | null;
10611
11123
  }
10612
11124
 
10613
11125
 
@@ -12320,18 +12832,51 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
12320
12832
  baseOptions = configuration.baseOptions;
12321
12833
  }
12322
12834
 
12323
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12835
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12836
+ const localVarHeaderParameter = {} as any;
12837
+ const localVarQueryParameter = {} as any;
12838
+
12839
+
12840
+
12841
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12842
+
12843
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12844
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12845
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12846
+ localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration)
12847
+
12848
+ return {
12849
+ url: toPathString(localVarUrlObj),
12850
+ options: localVarRequestOptions,
12851
+ };
12852
+ },
12853
+ /**
12854
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12855
+ * @param {*} [options] Override http request option.
12856
+ * @throws {RequiredError}
12857
+ */
12858
+ getClientSubscriptions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12859
+ const localVarPath = `/clients/subscriptions`;
12860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12862
+ let baseOptions;
12863
+ if (configuration) {
12864
+ baseOptions = configuration.baseOptions;
12865
+ }
12866
+
12867
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12324
12868
  const localVarHeaderParameter = {} as any;
12325
12869
  const localVarQueryParameter = {} as any;
12326
12870
 
12871
+ // authentication clientAuth required
12872
+ // http bearer authentication required
12873
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12327
12874
 
12328
-
12329
- localVarHeaderParameter['Content-Type'] = 'application/json';
12330
12875
 
12876
+
12331
12877
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12332
12878
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12333
12879
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12334
- localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration)
12335
12880
 
12336
12881
  return {
12337
12882
  url: toPathString(localVarUrlObj),
@@ -12432,6 +12977,17 @@ export const ClientApiFp = function(configuration?: Configuration) {
12432
12977
  const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
12433
12978
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12434
12979
  },
12980
+ /**
12981
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
12982
+ * @param {*} [options] Override http request option.
12983
+ * @throws {RequiredError}
12984
+ */
12985
+ async getClientSubscriptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientSubscriptionsResponse>> {
12986
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClientSubscriptions(options);
12987
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12988
+ const localVarOperationServerBasePath = operationServerMap['ClientApi.getClientSubscriptions']?.[localVarOperationServerIndex]?.url;
12989
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12990
+ },
12435
12991
  /**
12436
12992
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12437
12993
  * @param {*} [options] Override http request option.
@@ -12474,6 +13030,14 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
12474
13030
  clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
12475
13031
  return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
12476
13032
  },
13033
+ /**
13034
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
13035
+ * @param {*} [options] Override http request option.
13036
+ * @throws {RequiredError}
13037
+ */
13038
+ getClientSubscriptions(options?: RawAxiosRequestConfig): AxiosPromise<ClientSubscriptionsResponse> {
13039
+ return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
13040
+ },
12477
13041
  /**
12478
13042
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12479
13043
  * @param {*} [options] Override http request option.
@@ -12540,6 +13104,16 @@ export class ClientApi extends BaseAPI {
12540
13104
  return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
12541
13105
  }
12542
13106
 
13107
+ /**
13108
+ * Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
13109
+ * @param {*} [options] Override http request option.
13110
+ * @throws {RequiredError}
13111
+ * @memberof ClientApi
13112
+ */
13113
+ public getClientSubscriptions(options?: RawAxiosRequestConfig) {
13114
+ return ClientApiFp(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
13115
+ }
13116
+
12543
13117
  /**
12544
13118
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
12545
13119
  * @param {*} [options] Override http request option.
@@ -14687,13 +15261,13 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
14687
15261
  },
14688
15262
  /**
14689
15263
  *
14690
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
15264
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
14691
15265
  * @param {*} [options] Override http request option.
14692
15266
  * @throws {RequiredError}
14693
15267
  */
14694
- updatePresentationSettings: async (clubPresentationSettingsResponse: ClubPresentationSettingsResponse, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14695
- // verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
14696
- assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse)
15268
+ updatePresentationSettings: async (updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15269
+ // verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
15270
+ assertParamExists('updatePresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest)
14697
15271
  const localVarPath = `/api/club-settings/presentation`;
14698
15272
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14699
15273
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14717,7 +15291,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
14717
15291
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14718
15292
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14719
15293
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14720
- localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration)
15294
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration)
14721
15295
 
14722
15296
  return {
14723
15297
  url: toPathString(localVarUrlObj),
@@ -14799,12 +15373,12 @@ export const ClubSettingsManagerApiFp = function(configuration?: Configuration)
14799
15373
  },
14800
15374
  /**
14801
15375
  *
14802
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
15376
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
14803
15377
  * @param {*} [options] Override http request option.
14804
15378
  * @throws {RequiredError}
14805
15379
  */
14806
- async updatePresentationSettings(clubPresentationSettingsResponse: ClubPresentationSettingsResponse, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
14807
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
15380
+ async updatePresentationSettings(updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
15381
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePresentationSettings(updateClubPresentationSettingsRequest, options);
14808
15382
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14809
15383
  const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']?.[localVarOperationServerIndex]?.url;
14810
15384
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14856,7 +15430,7 @@ export const ClubSettingsManagerApiFactory = function (configuration?: Configura
14856
15430
  * @throws {RequiredError}
14857
15431
  */
14858
15432
  updatePresentationSettings(requestParameters: ClubSettingsManagerApiUpdatePresentationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
14859
- return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
15433
+ return localVarFp.updatePresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
14860
15434
  },
14861
15435
  /**
14862
15436
  *
@@ -14906,10 +15480,10 @@ export interface ClubSettingsManagerApiUpdateHoursSettingsRequest {
14906
15480
  export interface ClubSettingsManagerApiUpdatePresentationSettingsRequest {
14907
15481
  /**
14908
15482
  *
14909
- * @type {ClubPresentationSettingsResponse}
15483
+ * @type {UpdateClubPresentationSettingsRequest}
14910
15484
  * @memberof ClubSettingsManagerApiUpdatePresentationSettings
14911
15485
  */
14912
- readonly clubPresentationSettingsResponse: ClubPresentationSettingsResponse
15486
+ readonly updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest
14913
15487
  }
14914
15488
 
14915
15489
  /**
@@ -14963,7 +15537,7 @@ export class ClubSettingsManagerApi extends BaseAPI {
14963
15537
  * @memberof ClubSettingsManagerApi
14964
15538
  */
14965
15539
  public updatePresentationSettings(requestParameters: ClubSettingsManagerApiUpdatePresentationSettingsRequest, options?: RawAxiosRequestConfig) {
14966
- return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
15540
+ return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
14967
15541
  }
14968
15542
 
14969
15543
  /**
@@ -19201,6 +19775,83 @@ export class DefaultApi extends BaseAPI {
19201
19775
  */
19202
19776
  export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
19203
19777
  return {
19778
+ /**
19779
+ * Check team name availability for TEAM participation events
19780
+ * @param {string} eventId
19781
+ * @param {string} [teamName]
19782
+ * @param {*} [options] Override http request option.
19783
+ * @throws {RequiredError}
19784
+ */
19785
+ checkTeamNameAvailability: async (eventId: string, teamName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19786
+ // verify required parameter 'eventId' is not null or undefined
19787
+ assertParamExists('checkTeamNameAvailability', 'eventId', eventId)
19788
+ const localVarPath = `/api/events/{eventId}/team-name-availability`
19789
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
19790
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19791
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19792
+ let baseOptions;
19793
+ if (configuration) {
19794
+ baseOptions = configuration.baseOptions;
19795
+ }
19796
+
19797
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19798
+ const localVarHeaderParameter = {} as any;
19799
+ const localVarQueryParameter = {} as any;
19800
+
19801
+ if (teamName !== undefined) {
19802
+ localVarQueryParameter['teamName'] = teamName;
19803
+ }
19804
+
19805
+
19806
+
19807
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19809
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19810
+
19811
+ return {
19812
+ url: toPathString(localVarUrlObj),
19813
+ options: localVarRequestOptions,
19814
+ };
19815
+ },
19816
+ /**
19817
+ * Estime le prix de participation à un événement pour une liste de joueurs
19818
+ * @param {string} eventId
19819
+ * @param {EstimateEventPriceRequest} estimateEventPriceRequest
19820
+ * @param {*} [options] Override http request option.
19821
+ * @throws {RequiredError}
19822
+ */
19823
+ estimateEventPrice: async (eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19824
+ // verify required parameter 'eventId' is not null or undefined
19825
+ assertParamExists('estimateEventPrice', 'eventId', eventId)
19826
+ // verify required parameter 'estimateEventPriceRequest' is not null or undefined
19827
+ assertParamExists('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest)
19828
+ const localVarPath = `/api/events/{eventId}/estimate-price`
19829
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
19830
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19831
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19832
+ let baseOptions;
19833
+ if (configuration) {
19834
+ baseOptions = configuration.baseOptions;
19835
+ }
19836
+
19837
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19838
+ const localVarHeaderParameter = {} as any;
19839
+ const localVarQueryParameter = {} as any;
19840
+
19841
+
19842
+
19843
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19844
+
19845
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19846
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19847
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19848
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateEventPriceRequest, localVarRequestOptions, configuration)
19849
+
19850
+ return {
19851
+ url: toPathString(localVarUrlObj),
19852
+ options: localVarRequestOptions,
19853
+ };
19854
+ },
19204
19855
  /**
19205
19856
  * Get a specific event by ID
19206
19857
  * @param {string} eventId
@@ -19373,6 +20024,32 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
19373
20024
  export const EventsApiFp = function(configuration?: Configuration) {
19374
20025
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
19375
20026
  return {
20027
+ /**
20028
+ * Check team name availability for TEAM participation events
20029
+ * @param {string} eventId
20030
+ * @param {string} [teamName]
20031
+ * @param {*} [options] Override http request option.
20032
+ * @throws {RequiredError}
20033
+ */
20034
+ async checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>> {
20035
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
20036
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20037
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.checkTeamNameAvailability']?.[localVarOperationServerIndex]?.url;
20038
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20039
+ },
20040
+ /**
20041
+ * Estime le prix de participation à un événement pour une liste de joueurs
20042
+ * @param {string} eventId
20043
+ * @param {EstimateEventPriceRequest} estimateEventPriceRequest
20044
+ * @param {*} [options] Override http request option.
20045
+ * @throws {RequiredError}
20046
+ */
20047
+ async estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>> {
20048
+ const localVarAxiosArgs = await localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
20049
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20050
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateEventPrice']?.[localVarOperationServerIndex]?.url;
20051
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20052
+ },
19376
20053
  /**
19377
20054
  * Get a specific event by ID
19378
20055
  * @param {string} eventId
@@ -19435,6 +20112,24 @@ export const EventsApiFp = function(configuration?: Configuration) {
19435
20112
  export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19436
20113
  const localVarFp = EventsApiFp(configuration)
19437
20114
  return {
20115
+ /**
20116
+ * Check team name availability for TEAM participation events
20117
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
20118
+ * @param {*} [options] Override http request option.
20119
+ * @throws {RequiredError}
20120
+ */
20121
+ checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response> {
20122
+ return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
20123
+ },
20124
+ /**
20125
+ * Estime le prix de participation à un événement pour une liste de joueurs
20126
+ * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
20127
+ * @param {*} [options] Override http request option.
20128
+ * @throws {RequiredError}
20129
+ */
20130
+ estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response> {
20131
+ return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
20132
+ },
19438
20133
  /**
19439
20134
  * Get a specific event by ID
19440
20135
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -19474,6 +20169,48 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
19474
20169
  };
19475
20170
  };
19476
20171
 
20172
+ /**
20173
+ * Request parameters for checkTeamNameAvailability operation in EventsApi.
20174
+ * @export
20175
+ * @interface EventsApiCheckTeamNameAvailabilityRequest
20176
+ */
20177
+ export interface EventsApiCheckTeamNameAvailabilityRequest {
20178
+ /**
20179
+ *
20180
+ * @type {string}
20181
+ * @memberof EventsApiCheckTeamNameAvailability
20182
+ */
20183
+ readonly eventId: string
20184
+
20185
+ /**
20186
+ *
20187
+ * @type {string}
20188
+ * @memberof EventsApiCheckTeamNameAvailability
20189
+ */
20190
+ readonly teamName?: string
20191
+ }
20192
+
20193
+ /**
20194
+ * Request parameters for estimateEventPrice operation in EventsApi.
20195
+ * @export
20196
+ * @interface EventsApiEstimateEventPriceRequest
20197
+ */
20198
+ export interface EventsApiEstimateEventPriceRequest {
20199
+ /**
20200
+ *
20201
+ * @type {string}
20202
+ * @memberof EventsApiEstimateEventPrice
20203
+ */
20204
+ readonly eventId: string
20205
+
20206
+ /**
20207
+ *
20208
+ * @type {EstimateEventPriceRequest}
20209
+ * @memberof EventsApiEstimateEventPrice
20210
+ */
20211
+ readonly estimateEventPriceRequest: EstimateEventPriceRequest
20212
+ }
20213
+
19477
20214
  /**
19478
20215
  * Request parameters for getEventById operation in EventsApi.
19479
20216
  * @export
@@ -19565,6 +20302,28 @@ export interface EventsApiLeaveEventRequest {
19565
20302
  * @extends {BaseAPI}
19566
20303
  */
19567
20304
  export class EventsApi extends BaseAPI {
20305
+ /**
20306
+ * Check team name availability for TEAM participation events
20307
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
20308
+ * @param {*} [options] Override http request option.
20309
+ * @throws {RequiredError}
20310
+ * @memberof EventsApi
20311
+ */
20312
+ public checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig) {
20313
+ return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
20314
+ }
20315
+
20316
+ /**
20317
+ * Estime le prix de participation à un événement pour une liste de joueurs
20318
+ * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
20319
+ * @param {*} [options] Override http request option.
20320
+ * @throws {RequiredError}
20321
+ * @memberof EventsApi
20322
+ */
20323
+ public estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig) {
20324
+ return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
20325
+ }
20326
+
19568
20327
  /**
19569
20328
  * Get a specific event by ID
19570
20329
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -20938,6 +21697,130 @@ export const GetWeeklyEventsTypeEnum = {
20938
21697
  export type GetWeeklyEventsTypeEnum = typeof GetWeeklyEventsTypeEnum[keyof typeof GetWeeklyEventsTypeEnum];
20939
21698
 
20940
21699
 
21700
+ /**
21701
+ * ImagesApi - axios parameter creator
21702
+ * @export
21703
+ */
21704
+ export const ImagesApiAxiosParamCreator = function (configuration?: Configuration) {
21705
+ return {
21706
+ /**
21707
+ *
21708
+ * @param {ImageCleanupRequestBody} imageCleanupRequestBody
21709
+ * @param {*} [options] Override http request option.
21710
+ * @throws {RequiredError}
21711
+ */
21712
+ cleanupImages: async (imageCleanupRequestBody: ImageCleanupRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21713
+ // verify required parameter 'imageCleanupRequestBody' is not null or undefined
21714
+ assertParamExists('cleanupImages', 'imageCleanupRequestBody', imageCleanupRequestBody)
21715
+ const localVarPath = `/api/images/cleanup`;
21716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21717
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21718
+ let baseOptions;
21719
+ if (configuration) {
21720
+ baseOptions = configuration.baseOptions;
21721
+ }
21722
+
21723
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21724
+ const localVarHeaderParameter = {} as any;
21725
+ const localVarQueryParameter = {} as any;
21726
+
21727
+ // authentication bearerAuth required
21728
+ // http bearer authentication required
21729
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21730
+
21731
+
21732
+
21733
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21734
+
21735
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21736
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21737
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21738
+ localVarRequestOptions.data = serializeDataIfNeeded(imageCleanupRequestBody, localVarRequestOptions, configuration)
21739
+
21740
+ return {
21741
+ url: toPathString(localVarUrlObj),
21742
+ options: localVarRequestOptions,
21743
+ };
21744
+ },
21745
+ }
21746
+ };
21747
+
21748
+ /**
21749
+ * ImagesApi - functional programming interface
21750
+ * @export
21751
+ */
21752
+ export const ImagesApiFp = function(configuration?: Configuration) {
21753
+ const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration)
21754
+ return {
21755
+ /**
21756
+ *
21757
+ * @param {ImageCleanupRequestBody} imageCleanupRequestBody
21758
+ * @param {*} [options] Override http request option.
21759
+ * @throws {RequiredError}
21760
+ */
21761
+ async cleanupImages(imageCleanupRequestBody: ImageCleanupRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageCleanupResponse>> {
21762
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cleanupImages(imageCleanupRequestBody, options);
21763
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21764
+ const localVarOperationServerBasePath = operationServerMap['ImagesApi.cleanupImages']?.[localVarOperationServerIndex]?.url;
21765
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21766
+ },
21767
+ }
21768
+ };
21769
+
21770
+ /**
21771
+ * ImagesApi - factory interface
21772
+ * @export
21773
+ */
21774
+ export const ImagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21775
+ const localVarFp = ImagesApiFp(configuration)
21776
+ return {
21777
+ /**
21778
+ *
21779
+ * @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
21780
+ * @param {*} [options] Override http request option.
21781
+ * @throws {RequiredError}
21782
+ */
21783
+ cleanupImages(requestParameters: ImagesApiCleanupImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImageCleanupResponse> {
21784
+ return localVarFp.cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(axios, basePath));
21785
+ },
21786
+ };
21787
+ };
21788
+
21789
+ /**
21790
+ * Request parameters for cleanupImages operation in ImagesApi.
21791
+ * @export
21792
+ * @interface ImagesApiCleanupImagesRequest
21793
+ */
21794
+ export interface ImagesApiCleanupImagesRequest {
21795
+ /**
21796
+ *
21797
+ * @type {ImageCleanupRequestBody}
21798
+ * @memberof ImagesApiCleanupImages
21799
+ */
21800
+ readonly imageCleanupRequestBody: ImageCleanupRequestBody
21801
+ }
21802
+
21803
+ /**
21804
+ * ImagesApi - object-oriented interface
21805
+ * @export
21806
+ * @class ImagesApi
21807
+ * @extends {BaseAPI}
21808
+ */
21809
+ export class ImagesApi extends BaseAPI {
21810
+ /**
21811
+ *
21812
+ * @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
21813
+ * @param {*} [options] Override http request option.
21814
+ * @throws {RequiredError}
21815
+ * @memberof ImagesApi
21816
+ */
21817
+ public cleanupImages(requestParameters: ImagesApiCleanupImagesRequest, options?: RawAxiosRequestConfig) {
21818
+ return ImagesApiFp(this.configuration).cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(this.axios, this.basePath));
21819
+ }
21820
+ }
21821
+
21822
+
21823
+
20941
21824
  /**
20942
21825
  * SportsManagerApi - axios parameter creator
20943
21826
  * @export