@tennac-booking/sdk 1.0.90 → 1.0.91

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 (51) hide show
  1. package/.openapi-generator/FILES +9 -25
  2. package/README.md +15 -37
  3. package/api.ts +785 -1996
  4. package/dist/api.d.ts +515 -1428
  5. package/dist/api.js +237 -719
  6. package/dist/esm/api.d.ts +515 -1428
  7. package/dist/esm/api.js +234 -711
  8. package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
  9. package/docs/AddCreditsToCustomerRequest.md +22 -0
  10. package/docs/BookingPopulated.md +3 -3
  11. package/docs/ClubAnalyticsStaffApi.md +0 -173
  12. package/docs/ClubSettingsManagerApi.md +60 -54
  13. package/docs/ClubSettingsResponse.md +39 -0
  14. package/docs/ClubsManagerApi.md +58 -52
  15. package/docs/ClubsStaffApi.md +0 -44
  16. package/docs/CreateClubSettingsRequest.md +34 -0
  17. package/docs/CreateEventRequest.md +1 -3
  18. package/docs/DeleteClubSettingsResponse.md +20 -0
  19. package/docs/EventResponse.md +1 -1
  20. package/docs/EventResponseCourtsInner.md +18 -0
  21. package/docs/SlotInfo.md +2 -2
  22. package/docs/UpdateClubSettingsRequest.md +32 -0
  23. package/docs/UpdateEventRequest.md +1 -1
  24. package/docs/UserClubMembership.md +34 -0
  25. package/docs/UserClubMembershipsResponse.md +20 -0
  26. package/docs/UsersApi.md +46 -0
  27. package/package.json +1 -1
  28. package/docs/ClubGeneralSettingsResponse.md +0 -32
  29. package/docs/ClubHoursSettingsResponse.md +0 -22
  30. package/docs/ClubLocationSettings.md +0 -26
  31. package/docs/ClubPlayerBookingItem.md +0 -36
  32. package/docs/ClubPlayerBookingsPagination.md +0 -28
  33. package/docs/ClubPlayerBookingsResponse.md +0 -24
  34. package/docs/ClubPlayerDetailResponse.md +0 -46
  35. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  36. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  37. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  38. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  39. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  40. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  41. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  42. package/docs/ClubPresentationSettingsResponse.md +0 -26
  43. package/docs/ClubPricingPeriodResponse.md +0 -30
  44. package/docs/ClubReservationSettingsResponse.md +0 -28
  45. package/docs/ClubSettingsStaffApi.md +0 -183
  46. package/docs/ClubWeeklySchedule.md +0 -32
  47. package/docs/PartialClubWeeklySchedule.md +0 -33
  48. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  49. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  50. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  51. package/docs/UpdateClubReservationSettingsRequest.md +0 -28
package/api.ts CHANGED
@@ -73,6 +73,38 @@ export interface AddClubMemberRequest {
73
73
  */
74
74
  'rights'?: Array<string>;
75
75
  }
76
+ /**
77
+ *
78
+ * @export
79
+ * @interface AddCreditsToCustomer200Response
80
+ */
81
+ export interface AddCreditsToCustomer200Response {
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof AddCreditsToCustomer200Response
86
+ */
87
+ 'credits': number;
88
+ }
89
+ /**
90
+ *
91
+ * @export
92
+ * @interface AddCreditsToCustomerRequest
93
+ */
94
+ export interface AddCreditsToCustomerRequest {
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof AddCreditsToCustomerRequest
99
+ */
100
+ 'reason'?: string;
101
+ /**
102
+ *
103
+ * @type {number}
104
+ * @memberof AddCreditsToCustomerRequest
105
+ */
106
+ 'amount'?: number;
107
+ }
76
108
  /**
77
109
  *
78
110
  * @export
@@ -576,17 +608,11 @@ export interface BookingPopulated {
576
608
  */
577
609
  'creator': UserInfo;
578
610
  /**
579
- *
580
- * @type {SlotInfo}
581
- * @memberof BookingPopulated
582
- */
583
- 'slotInfos': SlotInfo;
584
- /**
585
- *
586
- * @type {Array<UserInfo>}
611
+ * Information(s) des créneaux
612
+ * @type {Array<SlotInfo>}
587
613
  * @memberof BookingPopulated
588
614
  */
589
- 'players': Array<UserInfo>;
615
+ 'slotInfos': Array<SlotInfo>;
590
616
  /**
591
617
  * Statut des paiements par joueur
592
618
  * @type {Array<PaymentByPlayerInfo>}
@@ -617,6 +643,12 @@ export interface BookingPopulated {
617
643
  * @memberof BookingPopulated
618
644
  */
619
645
  'isCreatorPayingAll': boolean;
646
+ /**
647
+ *
648
+ * @type {Array<string>}
649
+ * @memberof BookingPopulated
650
+ */
651
+ 'playersIds': Array<string>;
620
652
  /**
621
653
  *
622
654
  * @type {Array<BookingHistoryPopulated>}
@@ -1278,124 +1310,6 @@ export interface CheckedInPlayer {
1278
1310
  }
1279
1311
 
1280
1312
 
1281
- /**
1282
- *
1283
- * @export
1284
- * @interface ClubDaySchedule
1285
- */
1286
- export interface ClubDaySchedule {
1287
- /**
1288
- *
1289
- * @type {string}
1290
- * @memberof ClubDaySchedule
1291
- */
1292
- 'open': string;
1293
- /**
1294
- *
1295
- * @type {string}
1296
- * @memberof ClubDaySchedule
1297
- */
1298
- 'close': string;
1299
- }
1300
- /**
1301
- *
1302
- * @export
1303
- * @interface ClubGeneralSettingsResponse
1304
- */
1305
- export interface ClubGeneralSettingsResponse {
1306
- /**
1307
- *
1308
- * @type {string}
1309
- * @memberof ClubGeneralSettingsResponse
1310
- */
1311
- 'name': string;
1312
- /**
1313
- *
1314
- * @type {string}
1315
- * @memberof ClubGeneralSettingsResponse
1316
- */
1317
- 'email'?: string;
1318
- /**
1319
- *
1320
- * @type {string}
1321
- * @memberof ClubGeneralSettingsResponse
1322
- */
1323
- 'phone'?: string;
1324
- /**
1325
- *
1326
- * @type {string}
1327
- * @memberof ClubGeneralSettingsResponse
1328
- */
1329
- 'websiteUrl'?: string;
1330
- /**
1331
- *
1332
- * @type {string}
1333
- * @memberof ClubGeneralSettingsResponse
1334
- */
1335
- 'logo'?: string | null;
1336
- /**
1337
- *
1338
- * @type {ClubLocationSettings}
1339
- * @memberof ClubGeneralSettingsResponse
1340
- */
1341
- 'location': ClubLocationSettings;
1342
- /**
1343
- *
1344
- * @type {string}
1345
- * @memberof ClubGeneralSettingsResponse
1346
- */
1347
- 'stripeUrl'?: string | null;
1348
- }
1349
- /**
1350
- *
1351
- * @export
1352
- * @interface ClubHoursSettingsResponse
1353
- */
1354
- export interface ClubHoursSettingsResponse {
1355
- /**
1356
- *
1357
- * @type {ClubWeeklySchedule}
1358
- * @memberof ClubHoursSettingsResponse
1359
- */
1360
- 'schedule': ClubWeeklySchedule;
1361
- /**
1362
- *
1363
- * @type {Array<ClubPricingPeriodResponse>}
1364
- * @memberof ClubHoursSettingsResponse
1365
- */
1366
- 'pricingPeriods': Array<ClubPricingPeriodResponse>;
1367
- }
1368
- /**
1369
- *
1370
- * @export
1371
- * @interface ClubLocationSettings
1372
- */
1373
- export interface ClubLocationSettings {
1374
- /**
1375
- *
1376
- * @type {string}
1377
- * @memberof ClubLocationSettings
1378
- */
1379
- 'address'?: string;
1380
- /**
1381
- *
1382
- * @type {string}
1383
- * @memberof ClubLocationSettings
1384
- */
1385
- 'zipCode'?: string;
1386
- /**
1387
- *
1388
- * @type {string}
1389
- * @memberof ClubLocationSettings
1390
- */
1391
- 'city'?: string;
1392
- /**
1393
- *
1394
- * @type {string}
1395
- * @memberof ClubLocationSettings
1396
- */
1397
- 'country'?: string;
1398
- }
1399
1313
  /**
1400
1314
  *
1401
1315
  * @export
@@ -1455,714 +1369,160 @@ export interface ClubMemberResponseUser {
1455
1369
  /**
1456
1370
  *
1457
1371
  * @export
1458
- * @interface ClubPlayerBookingItem
1372
+ * @interface ClubPlayerResponse
1459
1373
  */
1460
- export interface ClubPlayerBookingItem {
1374
+ export interface ClubPlayerResponse {
1461
1375
  /**
1462
- * ID de la réservation
1376
+ * ID de l\'utilisateur
1463
1377
  * @type {string}
1464
- * @memberof ClubPlayerBookingItem
1378
+ * @memberof ClubPlayerResponse
1465
1379
  */
1466
1380
  'id': string;
1467
1381
  /**
1468
- * Date de début de la réservation
1382
+ * Prénom
1469
1383
  * @type {string}
1470
- * @memberof ClubPlayerBookingItem
1384
+ * @memberof ClubPlayerResponse
1471
1385
  */
1472
- 'startDate': string | null;
1386
+ 'firstName': string;
1473
1387
  /**
1474
- * Date de fin de la réservation
1388
+ * Nom
1475
1389
  * @type {string}
1476
- * @memberof ClubPlayerBookingItem
1390
+ * @memberof ClubPlayerResponse
1477
1391
  */
1478
- 'endDate': string | null;
1392
+ 'lastName': string;
1479
1393
  /**
1480
- * Nom du terrain ou emplacement
1394
+ * Genre
1481
1395
  * @type {string}
1482
- * @memberof ClubPlayerBookingItem
1396
+ * @memberof ClubPlayerResponse
1483
1397
  */
1484
- 'location': string | null;
1398
+ 'gender'?: string;
1485
1399
  /**
1486
- * Nom du sport associé
1400
+ * Email
1487
1401
  * @type {string}
1488
- * @memberof ClubPlayerBookingItem
1402
+ * @memberof ClubPlayerResponse
1489
1403
  */
1490
- 'sport': string | null;
1404
+ 'email': string;
1491
1405
  /**
1492
- * Statut de la réservation
1406
+ * Photo de profil
1493
1407
  * @type {string}
1494
- * @memberof ClubPlayerBookingItem
1495
- */
1496
- 'status': string;
1497
- /**
1498
- * Prix total de la réservation en centimes
1499
- * @type {number}
1500
- * @memberof ClubPlayerBookingItem
1408
+ * @memberof ClubPlayerResponse
1501
1409
  */
1502
- 'totalPrice': number;
1410
+ 'profilePicture'?: string;
1503
1411
  /**
1504
- * Indique si le joueur est le créateur de la réservation
1412
+ * Compte vérifié
1505
1413
  * @type {boolean}
1506
- * @memberof ClubPlayerBookingItem
1507
- */
1508
- 'isCreator': boolean;
1509
- /**
1510
- * Nombre total de participants
1511
- * @type {number}
1512
- * @memberof ClubPlayerBookingItem
1513
- */
1514
- 'participantsCount': number;
1515
- }
1516
- /**
1517
- *
1518
- * @export
1519
- * @interface ClubPlayerBookingsPagination
1520
- */
1521
- export interface ClubPlayerBookingsPagination {
1522
- /**
1523
- * Page courante (1-based)
1524
- * @type {number}
1525
- * @memberof ClubPlayerBookingsPagination
1526
- */
1527
- 'page': number;
1528
- /**
1529
- * Nombre d\'éléments par page
1530
- * @type {number}
1531
- * @memberof ClubPlayerBookingsPagination
1532
- */
1533
- 'pageSize': number;
1534
- /**
1535
- * Nombre total d\'éléments disponibles
1536
- * @type {number}
1537
- * @memberof ClubPlayerBookingsPagination
1538
- */
1539
- 'totalItems': number;
1540
- /**
1541
- * Nombre total de pages disponibles
1542
- * @type {number}
1543
- * @memberof ClubPlayerBookingsPagination
1414
+ * @memberof ClubPlayerResponse
1544
1415
  */
1545
- 'totalPages': number;
1416
+ 'isAccountVerified': boolean;
1546
1417
  /**
1547
- * Existence d\'une page suivante
1418
+ * Profil visible
1548
1419
  * @type {boolean}
1549
- * @memberof ClubPlayerBookingsPagination
1550
- */
1551
- 'hasMore': boolean;
1552
- }
1553
- /**
1554
- *
1555
- * @export
1556
- * @interface ClubPlayerBookingsResponse
1557
- */
1558
- export interface ClubPlayerBookingsResponse {
1559
- /**
1560
- * Réservations à venir
1561
- * @type {Array<ClubPlayerBookingItem>}
1562
- * @memberof ClubPlayerBookingsResponse
1563
- */
1564
- 'upcomingBookings': Array<ClubPlayerBookingItem>;
1565
- /**
1566
- * Réservations passées
1567
- * @type {Array<ClubPlayerBookingItem>}
1568
- * @memberof ClubPlayerBookingsResponse
1420
+ * @memberof ClubPlayerResponse
1569
1421
  */
1570
- 'pastBookings': Array<ClubPlayerBookingItem>;
1422
+ 'isProfileVisible': boolean;
1571
1423
  /**
1572
- *
1573
- * @type {ClubPlayerBookingsPagination}
1574
- * @memberof ClubPlayerBookingsResponse
1424
+ * Abonné au club
1425
+ * @type {boolean}
1426
+ * @memberof ClubPlayerResponse
1575
1427
  */
1576
- 'pastPagination'?: ClubPlayerBookingsPagination;
1428
+ 'isSubscribedToClub': boolean;
1577
1429
  }
1578
1430
  /**
1579
1431
  *
1580
1432
  * @export
1581
- * @interface ClubPlayerDetailResponse
1433
+ * @interface ClubResponse
1582
1434
  */
1583
- export interface ClubPlayerDetailResponse {
1435
+ export interface ClubResponse {
1584
1436
  /**
1585
- * ID du joueur
1437
+ * ID unique du club
1586
1438
  * @type {string}
1587
- * @memberof ClubPlayerDetailResponse
1439
+ * @memberof ClubResponse
1588
1440
  */
1589
1441
  'id': string;
1590
1442
  /**
1591
- * Nom complet
1443
+ * Nom du club
1592
1444
  * @type {string}
1593
- * @memberof ClubPlayerDetailResponse
1445
+ * @memberof ClubResponse
1594
1446
  */
1595
1447
  'name': string;
1596
1448
  /**
1597
- * Prénom
1449
+ * URL du site web du club
1598
1450
  * @type {string}
1599
- * @memberof ClubPlayerDetailResponse
1451
+ * @memberof ClubResponse
1600
1452
  */
1601
- 'firstName': string;
1453
+ 'websiteUrl'?: string;
1602
1454
  /**
1603
- * Nom
1455
+ * Description du club
1604
1456
  * @type {string}
1605
- * @memberof ClubPlayerDetailResponse
1457
+ * @memberof ClubResponse
1606
1458
  */
1607
- 'lastName': string;
1459
+ 'description'?: string;
1608
1460
  /**
1609
- * Email
1461
+ * Email du club
1610
1462
  * @type {string}
1611
- * @memberof ClubPlayerDetailResponse
1463
+ * @memberof ClubResponse
1612
1464
  */
1613
- 'email': string;
1465
+ 'email'?: string;
1614
1466
  /**
1615
- * Numéro de téléphone
1467
+ * Téléphone du club
1616
1468
  * @type {string}
1617
- * @memberof ClubPlayerDetailResponse
1469
+ * @memberof ClubResponse
1618
1470
  */
1619
- 'phoneNumber': string | null;
1471
+ 'phone'?: string;
1620
1472
  /**
1621
- * URL de la photo de profil
1473
+ * URL de l\'image du club
1622
1474
  * @type {string}
1623
- * @memberof ClubPlayerDetailResponse
1475
+ * @memberof ClubResponse
1624
1476
  */
1625
- 'profilePictureUrl': string | null;
1477
+ 'picture'?: string;
1626
1478
  /**
1627
- * Compte vérifié
1479
+ *
1480
+ * @type {ClubResponseLocation}
1481
+ * @memberof ClubResponse
1482
+ */
1483
+ 'location'?: ClubResponseLocation;
1484
+ /**
1485
+ * Statut d\'activation du club
1628
1486
  * @type {boolean}
1629
- * @memberof ClubPlayerDetailResponse
1487
+ * @memberof ClubResponse
1630
1488
  */
1631
- 'isAccountVerified': boolean;
1489
+ 'isActive': boolean;
1632
1490
  /**
1633
- * Abonnements au club courant
1634
- * @type {Array<ClubPlayerSubscriptionSummary>}
1635
- * @memberof ClubPlayerDetailResponse
1491
+ * Indique si le club utilise la fonctionnalité de paiement
1492
+ * @type {boolean}
1493
+ * @memberof ClubResponse
1636
1494
  */
1637
- 'subscriptionsToMyClub': Array<ClubPlayerSubscriptionSummary>;
1495
+ 'paymentFeature'?: boolean;
1638
1496
  /**
1639
- * Description du profil
1497
+ * ID du compte Stripe du club
1640
1498
  * @type {string}
1641
- * @memberof ClubPlayerDetailResponse
1499
+ * @memberof ClubResponse
1642
1500
  */
1643
- 'profileDescription': string | null;
1501
+ 'stripeAccountId'?: string;
1644
1502
  /**
1645
- * Genre
1503
+ * URL du dashboard Stripe du club
1646
1504
  * @type {string}
1647
- * @memberof ClubPlayerDetailResponse
1505
+ * @memberof ClubResponse
1648
1506
  */
1649
- 'gender': string | null;
1507
+ 'clubDashBoardUrl'?: string;
1650
1508
  /**
1651
- * Ville
1652
- * @type {string}
1653
- * @memberof ClubPlayerDetailResponse
1509
+ * Indique si la fonctionnalité \"no show\" est activée
1510
+ * @type {boolean}
1511
+ * @memberof ClubResponse
1654
1512
  */
1655
- 'city': string | null;
1513
+ 'isNoShowEnabled'?: boolean;
1656
1514
  /**
1657
- * Niveaux par sport
1658
- * @type {Array<ClubPlayerDetailResponseSportsLevelsInner>}
1659
- * @memberof ClubPlayerDetailResponse
1515
+ * Liste des sports proposés par le club (identifiés par leur clé)
1516
+ * @type {Array<string>}
1517
+ * @memberof ClubResponse
1660
1518
  */
1661
- 'sportsLevels': Array<ClubPlayerDetailResponseSportsLevelsInner>;
1519
+ 'sports'?: Array<string>;
1662
1520
  /**
1663
- * Date de naissance
1664
- * @type {string}
1665
- * @memberof ClubPlayerDetailResponse
1521
+ * Autoriser plusieurs réservations en même temps
1522
+ * @type {boolean}
1523
+ * @memberof ClubResponse
1666
1524
  */
1667
- 'birthDate': string | null;
1668
- }
1669
- /**
1670
- *
1671
- * @export
1672
- * @interface ClubPlayerDetailResponseSportsLevelsInner
1673
- */
1674
- export interface ClubPlayerDetailResponseSportsLevelsInner {
1675
- /**
1676
- *
1677
- * @type {string}
1678
- * @memberof ClubPlayerDetailResponseSportsLevelsInner
1679
- */
1680
- 'level': string | null;
1681
- /**
1682
- *
1683
- * @type {string}
1684
- * @memberof ClubPlayerDetailResponseSportsLevelsInner
1685
- */
1686
- 'sport': string | null;
1687
- }
1688
- /**
1689
- *
1690
- * @export
1691
- * @interface ClubPlayerResponse
1692
- */
1693
- export interface ClubPlayerResponse {
1694
- /**
1695
- * ID de l\'utilisateur
1696
- * @type {string}
1697
- * @memberof ClubPlayerResponse
1698
- */
1699
- 'id': string;
1700
- /**
1701
- * Prénom
1702
- * @type {string}
1703
- * @memberof ClubPlayerResponse
1704
- */
1705
- 'firstName': string;
1706
- /**
1707
- * Nom
1708
- * @type {string}
1709
- * @memberof ClubPlayerResponse
1710
- */
1711
- 'lastName': string;
1712
- /**
1713
- * Genre
1714
- * @type {string}
1715
- * @memberof ClubPlayerResponse
1716
- */
1717
- 'gender'?: string;
1718
- /**
1719
- * Email
1720
- * @type {string}
1721
- * @memberof ClubPlayerResponse
1722
- */
1723
- 'email': string;
1724
- /**
1725
- * Photo de profil
1726
- * @type {string}
1727
- * @memberof ClubPlayerResponse
1728
- */
1729
- 'profilePicture'?: string;
1730
- /**
1731
- * Compte vérifié
1732
- * @type {boolean}
1733
- * @memberof ClubPlayerResponse
1734
- */
1735
- 'isAccountVerified': boolean;
1736
- /**
1737
- * Profil visible
1738
- * @type {boolean}
1739
- * @memberof ClubPlayerResponse
1740
- */
1741
- 'isProfileVisible': boolean;
1742
- /**
1743
- * Abonné au club
1744
- * @type {boolean}
1745
- * @memberof ClubPlayerResponse
1746
- */
1747
- 'isSubscribedToClub': boolean;
1748
- }
1749
- /**
1750
- *
1751
- * @export
1752
- * @interface ClubPlayerStatisticsResponse
1753
- */
1754
- export interface ClubPlayerStatisticsResponse {
1755
- /**
1756
- * Nombre total de réservations (tous clubs confondus)
1757
- * @type {number}
1758
- * @memberof ClubPlayerStatisticsResponse
1759
- */
1760
- 'totalBookings': number;
1761
- /**
1762
- * Nombre total de réservations dans le club courant
1763
- * @type {number}
1764
- * @memberof ClubPlayerStatisticsResponse
1765
- */
1766
- 'totalBookingsInMyClub': number;
1767
- /**
1768
- * Somme totale dépensée dans le club courant (centimes)
1769
- * @type {number}
1770
- * @memberof ClubPlayerStatisticsResponse
1771
- */
1772
- 'totalSpentAmount': number;
1773
- /**
1774
- * Sport le plus pratiqué dans le club courant
1775
- * @type {string}
1776
- * @memberof ClubPlayerStatisticsResponse
1777
- */
1778
- 'favoriteSport': string | null;
1779
- /**
1780
- * Temps moyen entre la réservation et le début du créneau (heures)
1781
- * @type {number}
1782
- * @memberof ClubPlayerStatisticsResponse
1783
- */
1784
- 'averageBookingLeadTimeHours': number | null;
1785
- /**
1786
- * Taux d\'annulation dans le club courant (0-1)
1787
- * @type {number}
1788
- * @memberof ClubPlayerStatisticsResponse
1789
- */
1790
- 'bookingCancellationRate': number;
1791
- /**
1792
- * Nombre d\'abonnements actifs au club courant
1793
- * @type {number}
1794
- * @memberof ClubPlayerStatisticsResponse
1795
- */
1796
- 'activeSubscriptionsToMyClub': number;
1797
- /**
1798
- * Heure de créneau favorite dans le club courant (format HH:00)
1799
- * @type {string}
1800
- * @memberof ClubPlayerStatisticsResponse
1801
- */
1802
- 'favoriteTimeSlot': string | null;
1803
- /**
1804
- *
1805
- * @type {ClubPlayerStatisticsResponseFavoriteClub}
1806
- * @memberof ClubPlayerStatisticsResponse
1807
- */
1808
- 'favoriteClub': ClubPlayerStatisticsResponseFavoriteClub | null;
1809
- /**
1810
- *
1811
- * @type {ClubPlayerStatisticsResponseMostPlayedClub}
1812
- * @memberof ClubPlayerStatisticsResponse
1813
- */
1814
- 'mostPlayedClub': ClubPlayerStatisticsResponseMostPlayedClub | null;
1815
- /**
1816
- * Évolution quotidienne des montants dépensés ce mois-ci
1817
- * @type {Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>}
1818
- * @memberof ClubPlayerStatisticsResponse
1819
- */
1820
- 'bookingAmountEvolutionThisMonth': Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>;
1821
- /**
1822
- * Joueurs les plus joués dans le club courant
1823
- * @type {Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>}
1824
- * @memberof ClubPlayerStatisticsResponse
1825
- */
1826
- 'mostPlayedPartners': Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>;
1827
- }
1828
- /**
1829
- *
1830
- * @export
1831
- * @interface ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1832
- */
1833
- export interface ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner {
1834
- /**
1835
- *
1836
- * @type {number}
1837
- * @memberof ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1838
- */
1839
- 'amount': number;
1840
- /**
1841
- *
1842
- * @type {number}
1843
- * @memberof ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1844
- */
1845
- 'day': number;
1846
- }
1847
- /**
1848
- * Club favori selon le profil utilisateur
1849
- * @export
1850
- * @interface ClubPlayerStatisticsResponseFavoriteClub
1851
- */
1852
- export interface ClubPlayerStatisticsResponseFavoriteClub {
1853
- /**
1854
- *
1855
- * @type {string}
1856
- * @memberof ClubPlayerStatisticsResponseFavoriteClub
1857
- */
1858
- 'name': string | null;
1859
- /**
1860
- *
1861
- * @type {string}
1862
- * @memberof ClubPlayerStatisticsResponseFavoriteClub
1863
- */
1864
- 'clubId': string;
1865
- }
1866
- /**
1867
- * Club où le joueur a le plus joué
1868
- * @export
1869
- * @interface ClubPlayerStatisticsResponseMostPlayedClub
1870
- */
1871
- export interface ClubPlayerStatisticsResponseMostPlayedClub {
1872
- /**
1873
- *
1874
- * @type {number}
1875
- * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1876
- */
1877
- 'bookingsCount': number;
1878
- /**
1879
- *
1880
- * @type {string}
1881
- * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1882
- */
1883
- 'name': string | null;
1884
- /**
1885
- *
1886
- * @type {string}
1887
- * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1888
- */
1889
- 'clubId': string;
1890
- }
1891
- /**
1892
- *
1893
- * @export
1894
- * @interface ClubPlayerStatisticsResponseMostPlayedPartnersInner
1895
- */
1896
- export interface ClubPlayerStatisticsResponseMostPlayedPartnersInner {
1897
- /**
1898
- *
1899
- * @type {number}
1900
- * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1901
- */
1902
- 'bookingsTogether': number;
1903
- /**
1904
- *
1905
- * @type {string}
1906
- * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1907
- */
1908
- 'lastName': string | null;
1909
- /**
1910
- *
1911
- * @type {string}
1912
- * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1913
- */
1914
- 'firstName': string | null;
1915
- /**
1916
- *
1917
- * @type {string}
1918
- * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1919
- */
1920
- 'userId': string;
1921
- }
1922
- /**
1923
- *
1924
- * @export
1925
- * @interface ClubPlayerSubscriptionSummary
1926
- */
1927
- export interface ClubPlayerSubscriptionSummary {
1928
- /**
1929
- * ID du plan d\'abonnement
1930
- * @type {string}
1931
- * @memberof ClubPlayerSubscriptionSummary
1932
- */
1933
- 'id': string;
1934
- /**
1935
- * Nom du plan
1936
- * @type {string}
1937
- * @memberof ClubPlayerSubscriptionSummary
1938
- */
1939
- 'name': string | null;
1940
- /**
1941
- * Montant en centimes
1942
- * @type {number}
1943
- * @memberof ClubPlayerSubscriptionSummary
1944
- */
1945
- 'amountInCents': number | null;
1946
- /**
1947
- * Devise
1948
- * @type {string}
1949
- * @memberof ClubPlayerSubscriptionSummary
1950
- */
1951
- 'currency': string | null;
1952
- /**
1953
- * Intervalle de facturation
1954
- * @type {string}
1955
- * @memberof ClubPlayerSubscriptionSummary
1956
- */
1957
- 'interval': string | null;
1958
- }
1959
- /**
1960
- *
1961
- * @export
1962
- * @interface ClubPresentationSettingsResponse
1963
- */
1964
- export interface ClubPresentationSettingsResponse {
1965
- /**
1966
- *
1967
- * @type {string}
1968
- * @memberof ClubPresentationSettingsResponse
1969
- */
1970
- 'description'?: string;
1971
- /**
1972
- *
1973
- * @type {Array<string>}
1974
- * @memberof ClubPresentationSettingsResponse
1975
- */
1976
- 'tags': Array<string>;
1977
- /**
1978
- *
1979
- * @type {Array<string>}
1980
- * @memberof ClubPresentationSettingsResponse
1981
- */
1982
- 'bannerImages': Array<string>;
1983
- /**
1984
- *
1985
- * @type {Array<string>}
1986
- * @memberof ClubPresentationSettingsResponse
1987
- */
1988
- 'galleryImages': Array<string>;
1989
- }
1990
- /**
1991
- *
1992
- * @export
1993
- * @interface ClubPricingPeriodResponse
1994
- */
1995
- export interface ClubPricingPeriodResponse {
1996
- /**
1997
- *
1998
- * @type {string}
1999
- * @memberof ClubPricingPeriodResponse
2000
- */
2001
- 'id': string;
2002
- /**
2003
- *
2004
- * @type {string}
2005
- * @memberof ClubPricingPeriodResponse
2006
- */
2007
- 'name': string;
2008
- /**
2009
- *
2010
- * @type {Array<string>}
2011
- * @memberof ClubPricingPeriodResponse
2012
- */
2013
- 'days': Array<string>;
2014
- /**
2015
- *
2016
- * @type {string}
2017
- * @memberof ClubPricingPeriodResponse
2018
- */
2019
- 'startTime': string;
2020
- /**
2021
- *
2022
- * @type {string}
2023
- * @memberof ClubPricingPeriodResponse
2024
- */
2025
- 'endTime': string;
2026
- /**
2027
- *
2028
- * @type {number}
2029
- * @memberof ClubPricingPeriodResponse
2030
- */
2031
- 'variation': number;
2032
- }
2033
- /**
2034
- *
2035
- * @export
2036
- * @interface ClubReservationSettingsResponse
2037
- */
2038
- export interface ClubReservationSettingsResponse {
2039
- /**
2040
- *
2041
- * @type {number}
2042
- * @memberof ClubReservationSettingsResponse
2043
- */
2044
- 'maxWeeklyBookings': number | null;
2045
- /**
2046
- *
2047
- * @type {boolean}
2048
- * @memberof ClubReservationSettingsResponse
2049
- */
2050
- 'unlimitedWeeklyBookings': boolean;
2051
- /**
2052
- *
2053
- * @type {number}
2054
- * @memberof ClubReservationSettingsResponse
2055
- */
2056
- 'sameTimeBookingsLimit': number;
2057
- /**
2058
- *
2059
- * @type {number}
2060
- * @memberof ClubReservationSettingsResponse
2061
- */
2062
- 'cancellationDelayInHours': number;
2063
- /**
2064
- *
2065
- * @type {number}
2066
- * @memberof ClubReservationSettingsResponse
2067
- */
2068
- 'bookingPeriodInDays': number;
2069
- }
2070
- /**
2071
- *
2072
- * @export
2073
- * @interface ClubResponse
2074
- */
2075
- export interface ClubResponse {
2076
- /**
2077
- * ID unique du club
2078
- * @type {string}
2079
- * @memberof ClubResponse
2080
- */
2081
- 'id': string;
2082
- /**
2083
- * Nom du club
2084
- * @type {string}
2085
- * @memberof ClubResponse
2086
- */
2087
- 'name': string;
2088
- /**
2089
- * URL du site web du club
2090
- * @type {string}
2091
- * @memberof ClubResponse
2092
- */
2093
- 'websiteUrl'?: string;
2094
- /**
2095
- * Description du club
2096
- * @type {string}
2097
- * @memberof ClubResponse
2098
- */
2099
- 'description'?: string;
2100
- /**
2101
- * Email du club
2102
- * @type {string}
2103
- * @memberof ClubResponse
2104
- */
2105
- 'email'?: string;
2106
- /**
2107
- * Téléphone du club
2108
- * @type {string}
2109
- * @memberof ClubResponse
2110
- */
2111
- 'phone'?: string;
2112
- /**
2113
- * URL de l\'image du club
2114
- * @type {string}
2115
- * @memberof ClubResponse
2116
- */
2117
- 'picture'?: string;
2118
- /**
2119
- *
2120
- * @type {ClubResponseLocation}
2121
- * @memberof ClubResponse
2122
- */
2123
- 'location'?: ClubResponseLocation;
2124
- /**
2125
- * Statut d\'activation du club
2126
- * @type {boolean}
2127
- * @memberof ClubResponse
2128
- */
2129
- 'isActive': boolean;
2130
- /**
2131
- * Indique si le club utilise la fonctionnalité de paiement
2132
- * @type {boolean}
2133
- * @memberof ClubResponse
2134
- */
2135
- 'paymentFeature'?: boolean;
2136
- /**
2137
- * ID du compte Stripe du club
2138
- * @type {string}
2139
- * @memberof ClubResponse
2140
- */
2141
- 'stripeAccountId'?: string;
2142
- /**
2143
- * URL du dashboard Stripe du club
2144
- * @type {string}
2145
- * @memberof ClubResponse
2146
- */
2147
- 'clubDashBoardUrl'?: string;
2148
- /**
2149
- * Indique si la fonctionnalité \"no show\" est activée
2150
- * @type {boolean}
2151
- * @memberof ClubResponse
2152
- */
2153
- 'isNoShowEnabled'?: boolean;
2154
- /**
2155
- * Liste des sports proposés par le club (identifiés par leur clé)
2156
- * @type {Array<string>}
2157
- * @memberof ClubResponse
2158
- */
2159
- 'sports'?: Array<string>;
2160
- /**
2161
- * Autoriser plusieurs réservations en même temps
2162
- * @type {boolean}
2163
- * @memberof ClubResponse
2164
- */
2165
- 'allowMultipleBookingsAtTheSameTime'?: boolean | null;
1525
+ 'allowMultipleBookingsAtTheSameTime'?: boolean | null;
2166
1526
  /**
2167
1527
  * Limite de réservations simultanées (même créneau)
2168
1528
  * @type {number}
@@ -2297,31 +1657,98 @@ export interface ClubRoleResponse {
2297
1657
  /**
2298
1658
  * Droits associés
2299
1659
  * @type {Array<string>}
2300
- * @memberof ClubRoleResponse
1660
+ * @memberof ClubRoleResponse
1661
+ */
1662
+ 'rights': Array<string>;
1663
+ /**
1664
+ * Date de création
1665
+ * @type {string}
1666
+ * @memberof ClubRoleResponse
1667
+ */
1668
+ 'createdAt': string;
1669
+ /**
1670
+ * Date de mise à jour
1671
+ * @type {string}
1672
+ * @memberof ClubRoleResponse
1673
+ */
1674
+ 'updatedAt': string;
1675
+ }
1676
+
1677
+ export const ClubRoleResponseRoleEnum = {
1678
+ Admin: 'admin',
1679
+ Manager: 'manager',
1680
+ Staff: 'staff'
1681
+ } as const;
1682
+
1683
+ export type ClubRoleResponseRoleEnum = typeof ClubRoleResponseRoleEnum[keyof typeof ClubRoleResponseRoleEnum];
1684
+
1685
+ /**
1686
+ * Types TSOA pour les paramètres du club
1687
+ * @export
1688
+ * @interface ClubSettingsResponse
1689
+ */
1690
+ export interface ClubSettingsResponse {
1691
+ /**
1692
+ * ID unique des paramètres
1693
+ * @type {string}
1694
+ * @memberof ClubSettingsResponse
1695
+ */
1696
+ '_id': string;
1697
+ /**
1698
+ * ID du club
1699
+ * @type {string}
1700
+ * @memberof ClubSettingsResponse
1701
+ */
1702
+ 'clubId': string;
1703
+ /**
1704
+ * Nombre maximum de réservations par semaine
1705
+ * @type {number}
1706
+ * @memberof ClubSettingsResponse
1707
+ */
1708
+ 'maxWeeklyBookings': number;
1709
+ /**
1710
+ * Limite de réservations simultanées
1711
+ * @type {number}
1712
+ * @memberof ClubSettingsResponse
1713
+ */
1714
+ 'sameTimeBookingsLimit'?: number;
1715
+ /**
1716
+ * Limite d\'annulation en heures
1717
+ * @type {number}
1718
+ * @memberof ClubSettingsResponse
1719
+ */
1720
+ 'cancellationLimitHours': number;
1721
+ /**
1722
+ * Période de disponibilité en jours
1723
+ * @type {number}
1724
+ * @memberof ClubSettingsResponse
1725
+ */
1726
+ 'availabilityPeriodInDays': number;
1727
+ /**
1728
+ * Liste des sponsors
1729
+ * @type {Array<string>}
1730
+ * @memberof ClubSettingsResponse
2301
1731
  */
2302
- 'rights': Array<string>;
1732
+ 'sponsors': Array<string>;
1733
+ /**
1734
+ * Temps avant paiement en minutes
1735
+ * @type {number}
1736
+ * @memberof ClubSettingsResponse
1737
+ */
1738
+ 'timeBeforePayment': number;
2303
1739
  /**
2304
1740
  * Date de création
2305
1741
  * @type {string}
2306
- * @memberof ClubRoleResponse
1742
+ * @memberof ClubSettingsResponse
2307
1743
  */
2308
1744
  'createdAt': string;
2309
1745
  /**
2310
1746
  * Date de mise à jour
2311
1747
  * @type {string}
2312
- * @memberof ClubRoleResponse
1748
+ * @memberof ClubSettingsResponse
2313
1749
  */
2314
1750
  'updatedAt': string;
2315
1751
  }
2316
-
2317
- export const ClubRoleResponseRoleEnum = {
2318
- Admin: 'admin',
2319
- Manager: 'manager',
2320
- Staff: 'staff'
2321
- } as const;
2322
-
2323
- export type ClubRoleResponseRoleEnum = typeof ClubRoleResponseRoleEnum[keyof typeof ClubRoleResponseRoleEnum];
2324
-
2325
1752
  /**
2326
1753
  *
2327
1754
  * @export
@@ -2403,55 +1830,6 @@ export interface ClubUserCountResponse {
2403
1830
  */
2404
1831
  'count': number;
2405
1832
  }
2406
- /**
2407
- *
2408
- * @export
2409
- * @interface ClubWeeklySchedule
2410
- */
2411
- export interface ClubWeeklySchedule {
2412
- /**
2413
- *
2414
- * @type {ClubDaySchedule}
2415
- * @memberof ClubWeeklySchedule
2416
- */
2417
- 'sunday': ClubDaySchedule | null;
2418
- /**
2419
- *
2420
- * @type {ClubDaySchedule}
2421
- * @memberof ClubWeeklySchedule
2422
- */
2423
- 'saturday': ClubDaySchedule | null;
2424
- /**
2425
- *
2426
- * @type {ClubDaySchedule}
2427
- * @memberof ClubWeeklySchedule
2428
- */
2429
- 'friday': ClubDaySchedule | null;
2430
- /**
2431
- *
2432
- * @type {ClubDaySchedule}
2433
- * @memberof ClubWeeklySchedule
2434
- */
2435
- 'thursday': ClubDaySchedule | null;
2436
- /**
2437
- *
2438
- * @type {ClubDaySchedule}
2439
- * @memberof ClubWeeklySchedule
2440
- */
2441
- 'wednesday': ClubDaySchedule | null;
2442
- /**
2443
- *
2444
- * @type {ClubDaySchedule}
2445
- * @memberof ClubWeeklySchedule
2446
- */
2447
- 'tuesday': ClubDaySchedule | null;
2448
- /**
2449
- *
2450
- * @type {ClubDaySchedule}
2451
- * @memberof ClubWeeklySchedule
2452
- */
2453
- 'monday': ClubDaySchedule | null;
2454
- }
2455
1833
  /**
2456
1834
  *
2457
1835
  * @export
@@ -2704,6 +2082,61 @@ export const CreateClubRoleRequestRoleEnum = {
2704
2082
 
2705
2083
  export type CreateClubRoleRequestRoleEnum = typeof CreateClubRoleRequestRoleEnum[keyof typeof CreateClubRoleRequestRoleEnum];
2706
2084
 
2085
+ /**
2086
+ *
2087
+ * @export
2088
+ * @interface CreateClubSettingsRequest
2089
+ */
2090
+ export interface CreateClubSettingsRequest {
2091
+ /**
2092
+ * ID du club
2093
+ * @type {string}
2094
+ * @memberof CreateClubSettingsRequest
2095
+ */
2096
+ 'clubId': string;
2097
+ /**
2098
+ * Nombre maximum de réservations par semaine
2099
+ * @type {number}
2100
+ * @memberof CreateClubSettingsRequest
2101
+ */
2102
+ 'maxWeeklyBookings'?: number;
2103
+ /**
2104
+ * Autoriser plusieurs réservations en même temps
2105
+ * @type {boolean}
2106
+ * @memberof CreateClubSettingsRequest
2107
+ */
2108
+ 'allowMultipleBookingsAtTheSameTime'?: boolean;
2109
+ /**
2110
+ * Limite de réservations simultanées
2111
+ * @type {number}
2112
+ * @memberof CreateClubSettingsRequest
2113
+ */
2114
+ 'sameTimeBookingsLimit'?: number;
2115
+ /**
2116
+ * Limite d\'annulation en heures
2117
+ * @type {number}
2118
+ * @memberof CreateClubSettingsRequest
2119
+ */
2120
+ 'cancellationLimitHours'?: number;
2121
+ /**
2122
+ * Période de disponibilité en jours
2123
+ * @type {number}
2124
+ * @memberof CreateClubSettingsRequest
2125
+ */
2126
+ 'availabilityPeriodInDays'?: number;
2127
+ /**
2128
+ * Liste des sponsors
2129
+ * @type {Array<string>}
2130
+ * @memberof CreateClubSettingsRequest
2131
+ */
2132
+ 'sponsors'?: Array<string>;
2133
+ /**
2134
+ * Temps avant paiement en minutes
2135
+ * @type {number}
2136
+ * @memberof CreateClubSettingsRequest
2137
+ */
2138
+ 'timeBeforePayment'?: number;
2139
+ }
2707
2140
  /**
2708
2141
  *
2709
2142
  * @export
@@ -2816,10 +2249,10 @@ export interface CreateEventRequest {
2816
2249
  'endDate': string;
2817
2250
  /**
2818
2251
  *
2819
- * @type {Array<string>}
2252
+ * @type {Array<EventResponseCourtsInner>}
2820
2253
  * @memberof CreateEventRequest
2821
2254
  */
2822
- 'courts': Array<string>;
2255
+ 'courts': Array<EventResponseCourtsInner>;
2823
2256
  /**
2824
2257
  *
2825
2258
  * @type {Array<string>}
@@ -2880,12 +2313,6 @@ export interface CreateEventRequest {
2880
2313
  * @memberof CreateEventRequest
2881
2314
  */
2882
2315
  'subscriberPrices'?: Array<SubscriberPrice>;
2883
- /**
2884
- *
2885
- * @type {Array<number>}
2886
- * @memberof CreateEventRequest
2887
- */
2888
- 'levels'?: Array<number>;
2889
2316
  /**
2890
2317
  *
2891
2318
  * @type {string}
@@ -3187,6 +2614,19 @@ export interface DeleteClubRoleResponse {
3187
2614
  */
3188
2615
  'message': string;
3189
2616
  }
2617
+ /**
2618
+ *
2619
+ * @export
2620
+ * @interface DeleteClubSettingsResponse
2621
+ */
2622
+ export interface DeleteClubSettingsResponse {
2623
+ /**
2624
+ * Message de confirmation
2625
+ * @type {string}
2626
+ * @memberof DeleteClubSettingsResponse
2627
+ */
2628
+ 'message': string;
2629
+ }
3190
2630
  /**
3191
2631
  *
3192
2632
  * @export
@@ -3311,10 +2751,10 @@ export interface EventResponse {
3311
2751
  'endDate': string;
3312
2752
  /**
3313
2753
  *
3314
- * @type {Array<string>}
2754
+ * @type {Array<EventResponseCourtsInner>}
3315
2755
  * @memberof EventResponse
3316
2756
  */
3317
- 'courts': Array<string>;
2757
+ 'courts': Array<EventResponseCourtsInner>;
3318
2758
  /**
3319
2759
  *
3320
2760
  * @type {Array<SportWithLevels>}
@@ -3435,6 +2875,13 @@ export const EventResponseVisibilityTypeEnum = {
3435
2875
 
3436
2876
  export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityTypeEnum[keyof typeof EventResponseVisibilityTypeEnum];
3437
2877
 
2878
+ /**
2879
+ *
2880
+ * @export
2881
+ * @interface EventResponseCourtsInner
2882
+ */
2883
+ export interface EventResponseCourtsInner {
2884
+ }
3438
2885
  /**
3439
2886
  *
3440
2887
  * @export
@@ -4757,55 +4204,6 @@ export interface PartialClubResponse {
4757
4204
  */
4758
4205
  'updatedAt'?: ClubResponseUpdatedAt;
4759
4206
  }
4760
- /**
4761
- * Make all properties in T optional
4762
- * @export
4763
- * @interface PartialClubWeeklySchedule
4764
- */
4765
- export interface PartialClubWeeklySchedule {
4766
- /**
4767
- *
4768
- * @type {ClubDaySchedule}
4769
- * @memberof PartialClubWeeklySchedule
4770
- */
4771
- 'monday'?: ClubDaySchedule;
4772
- /**
4773
- *
4774
- * @type {ClubDaySchedule}
4775
- * @memberof PartialClubWeeklySchedule
4776
- */
4777
- 'tuesday'?: ClubDaySchedule;
4778
- /**
4779
- *
4780
- * @type {ClubDaySchedule}
4781
- * @memberof PartialClubWeeklySchedule
4782
- */
4783
- 'wednesday'?: ClubDaySchedule;
4784
- /**
4785
- *
4786
- * @type {ClubDaySchedule}
4787
- * @memberof PartialClubWeeklySchedule
4788
- */
4789
- 'thursday'?: ClubDaySchedule;
4790
- /**
4791
- *
4792
- * @type {ClubDaySchedule}
4793
- * @memberof PartialClubWeeklySchedule
4794
- */
4795
- 'friday'?: ClubDaySchedule;
4796
- /**
4797
- *
4798
- * @type {ClubDaySchedule}
4799
- * @memberof PartialClubWeeklySchedule
4800
- */
4801
- 'saturday'?: ClubDaySchedule;
4802
- /**
4803
- *
4804
- * @type {ClubDaySchedule}
4805
- * @memberof PartialClubWeeklySchedule
4806
- */
4807
- 'sunday'?: ClubDaySchedule;
4808
- }
4809
4207
  /**
4810
4208
  *
4811
4209
  * @export
@@ -5904,7 +5302,7 @@ export interface SlotInfo {
5904
5302
  * @type {CourtInfo}
5905
5303
  * @memberof SlotInfo
5906
5304
  */
5907
- 'court': CourtInfo;
5305
+ 'courtId': CourtInfo;
5908
5306
  }
5909
5307
  /**
5910
5308
  *
@@ -7726,111 +7124,6 @@ export interface UpdateActuality200Response {
7726
7124
  */
7727
7125
  'actuality': any;
7728
7126
  }
7729
- /**
7730
- *
7731
- * @export
7732
- * @interface UpdateClubGeneralSettingsRequest
7733
- */
7734
- export interface UpdateClubGeneralSettingsRequest {
7735
- /**
7736
- *
7737
- * @type {string}
7738
- * @memberof UpdateClubGeneralSettingsRequest
7739
- */
7740
- 'name'?: string;
7741
- /**
7742
- *
7743
- * @type {string}
7744
- * @memberof UpdateClubGeneralSettingsRequest
7745
- */
7746
- 'email'?: string;
7747
- /**
7748
- *
7749
- * @type {string}
7750
- * @memberof UpdateClubGeneralSettingsRequest
7751
- */
7752
- 'phone'?: string;
7753
- /**
7754
- *
7755
- * @type {string}
7756
- * @memberof UpdateClubGeneralSettingsRequest
7757
- */
7758
- 'websiteUrl'?: string;
7759
- /**
7760
- *
7761
- * @type {string}
7762
- * @memberof UpdateClubGeneralSettingsRequest
7763
- */
7764
- 'description'?: string;
7765
- /**
7766
- *
7767
- * @type {string}
7768
- * @memberof UpdateClubGeneralSettingsRequest
7769
- */
7770
- 'rib'?: string | null;
7771
- /**
7772
- *
7773
- * @type {string}
7774
- * @memberof UpdateClubGeneralSettingsRequest
7775
- */
7776
- 'logo'?: string | null;
7777
- /**
7778
- *
7779
- * @type {ClubLocationSettings}
7780
- * @memberof UpdateClubGeneralSettingsRequest
7781
- */
7782
- 'location'?: ClubLocationSettings;
7783
- }
7784
- /**
7785
- *
7786
- * @export
7787
- * @interface UpdateClubHoursSettingsRequest
7788
- */
7789
- export interface UpdateClubHoursSettingsRequest {
7790
- /**
7791
- *
7792
- * @type {PartialClubWeeklySchedule}
7793
- * @memberof UpdateClubHoursSettingsRequest
7794
- */
7795
- 'schedule'?: PartialClubWeeklySchedule;
7796
- /**
7797
- *
7798
- * @type {Array<ClubPricingPeriodResponse>}
7799
- * @memberof UpdateClubHoursSettingsRequest
7800
- */
7801
- 'pricingPeriods'?: Array<ClubPricingPeriodResponse>;
7802
- }
7803
- /**
7804
- *
7805
- * @export
7806
- * @interface UpdateClubPresentationSettingsRequest
7807
- */
7808
- export interface UpdateClubPresentationSettingsRequest {
7809
- /**
7810
- *
7811
- * @type {string}
7812
- * @memberof UpdateClubPresentationSettingsRequest
7813
- */
7814
- 'description'?: string;
7815
- /**
7816
- *
7817
- * @type {Array<string>}
7818
- * @memberof UpdateClubPresentationSettingsRequest
7819
- */
7820
- 'tags'?: Array<string>;
7821
- /**
7822
- *
7823
- * @type {Array<string | null>}
7824
- * @memberof UpdateClubPresentationSettingsRequest
7825
- */
7826
- 'bannerImages'?: Array<string | null>;
7827
- /**
7828
- *
7829
- * @type {Array<string | null>}
7830
- * @memberof UpdateClubPresentationSettingsRequest
7831
- */
7832
- 'galleryImages'?: Array<string | null>;
7833
- }
7834
7127
  /**
7835
7128
  *
7836
7129
  * @export
@@ -7945,68 +7238,80 @@ export interface UpdateClubRequestLocationCoordinates {
7945
7238
  /**
7946
7239
  *
7947
7240
  * @export
7948
- * @interface UpdateClubReservationSettingsRequest
7241
+ * @interface UpdateClubRoleRequest
7949
7242
  */
7950
- export interface UpdateClubReservationSettingsRequest {
7243
+ export interface UpdateClubRoleRequest {
7951
7244
  /**
7952
- *
7953
- * @type {number}
7954
- * @memberof UpdateClubReservationSettingsRequest
7245
+ * Rôle (facultatif)
7246
+ * @type {string}
7247
+ * @memberof UpdateClubRoleRequest
7955
7248
  */
7956
- 'maxWeeklyBookings': number | null;
7249
+ 'role'?: UpdateClubRoleRequestRoleEnum;
7957
7250
  /**
7958
- *
7959
- * @type {boolean}
7960
- * @memberof UpdateClubReservationSettingsRequest
7251
+ * Droits (facultatif)
7252
+ * @type {Array<string>}
7253
+ * @memberof UpdateClubRoleRequest
7961
7254
  */
7962
- 'unlimitedWeeklyBookings': boolean;
7255
+ 'rights'?: Array<string>;
7256
+ }
7257
+
7258
+ export const UpdateClubRoleRequestRoleEnum = {
7259
+ Admin: 'admin',
7260
+ Manager: 'manager',
7261
+ Staff: 'staff'
7262
+ } as const;
7263
+
7264
+ export type UpdateClubRoleRequestRoleEnum = typeof UpdateClubRoleRequestRoleEnum[keyof typeof UpdateClubRoleRequestRoleEnum];
7265
+
7266
+ /**
7267
+ *
7268
+ * @export
7269
+ * @interface UpdateClubSettingsRequest
7270
+ */
7271
+ export interface UpdateClubSettingsRequest {
7963
7272
  /**
7964
- *
7273
+ * Nombre maximum de réservations par semaine
7965
7274
  * @type {number}
7966
- * @memberof UpdateClubReservationSettingsRequest
7275
+ * @memberof UpdateClubSettingsRequest
7967
7276
  */
7968
- 'sameTimeBookingsLimit': number;
7277
+ 'maxWeeklyBookings'?: number;
7969
7278
  /**
7970
- *
7279
+ * Autoriser plusieurs réservations en même temps
7280
+ * @type {boolean}
7281
+ * @memberof UpdateClubSettingsRequest
7282
+ */
7283
+ 'allowMultipleBookingsAtTheSameTime'?: boolean;
7284
+ /**
7285
+ * Limite de réservations simultanées
7971
7286
  * @type {number}
7972
- * @memberof UpdateClubReservationSettingsRequest
7287
+ * @memberof UpdateClubSettingsRequest
7973
7288
  */
7974
- 'cancellationDelayInHours': number;
7289
+ 'sameTimeBookingsLimit'?: number;
7975
7290
  /**
7976
- *
7291
+ * Limite d\'annulation en heures
7977
7292
  * @type {number}
7978
- * @memberof UpdateClubReservationSettingsRequest
7293
+ * @memberof UpdateClubSettingsRequest
7979
7294
  */
7980
- 'bookingPeriodInDays': number;
7981
- }
7982
- /**
7983
- *
7984
- * @export
7985
- * @interface UpdateClubRoleRequest
7986
- */
7987
- export interface UpdateClubRoleRequest {
7295
+ 'cancellationLimitHours'?: number;
7988
7296
  /**
7989
- * Rôle (facultatif)
7990
- * @type {string}
7991
- * @memberof UpdateClubRoleRequest
7297
+ * Période de disponibilité en jours
7298
+ * @type {number}
7299
+ * @memberof UpdateClubSettingsRequest
7992
7300
  */
7993
- 'role'?: UpdateClubRoleRequestRoleEnum;
7301
+ 'availabilityPeriodInDays'?: number;
7994
7302
  /**
7995
- * Droits (facultatif)
7303
+ * Liste des sponsors
7996
7304
  * @type {Array<string>}
7997
- * @memberof UpdateClubRoleRequest
7305
+ * @memberof UpdateClubSettingsRequest
7306
+ */
7307
+ 'sponsors'?: Array<string>;
7308
+ /**
7309
+ * Temps avant paiement en minutes
7310
+ * @type {number}
7311
+ * @memberof UpdateClubSettingsRequest
7998
7312
  */
7999
- 'rights'?: Array<string>;
7313
+ 'timeBeforePayment'?: number;
8000
7314
  }
8001
-
8002
- export const UpdateClubRoleRequestRoleEnum = {
8003
- Admin: 'admin',
8004
- Manager: 'manager',
8005
- Staff: 'staff'
8006
- } as const;
8007
-
8008
- export type UpdateClubRoleRequestRoleEnum = typeof UpdateClubRoleRequestRoleEnum[keyof typeof UpdateClubRoleRequestRoleEnum];
8009
-
8010
7315
  /**
8011
7316
  *
8012
7317
  * @export
@@ -8083,10 +7388,10 @@ export interface UpdateEventRequest {
8083
7388
  'endDate'?: string;
8084
7389
  /**
8085
7390
  *
8086
- * @type {Array<string>}
7391
+ * @type {Array<EventResponseCourtsInner>}
8087
7392
  * @memberof UpdateEventRequest
8088
7393
  */
8089
- 'courts'?: Array<string>;
7394
+ 'courts'?: Array<EventResponseCourtsInner>;
8090
7395
  /**
8091
7396
  *
8092
7397
  * @type {Array<string>}
@@ -8390,6 +7695,74 @@ export interface UserBookingsResponse {
8390
7695
  */
8391
7696
  'bookings': Array<BookingSummary>;
8392
7697
  }
7698
+ /**
7699
+ *
7700
+ * @export
7701
+ * @interface UserClubMembership
7702
+ */
7703
+ export interface UserClubMembership {
7704
+ /**
7705
+ *
7706
+ * @type {string}
7707
+ * @memberof UserClubMembership
7708
+ */
7709
+ 'clubId': string;
7710
+ /**
7711
+ *
7712
+ * @type {string}
7713
+ * @memberof UserClubMembership
7714
+ */
7715
+ 'clubName': string | null;
7716
+ /**
7717
+ *
7718
+ * @type {string}
7719
+ * @memberof UserClubMembership
7720
+ */
7721
+ 'clubPicture': string | null;
7722
+ /**
7723
+ *
7724
+ * @type {number}
7725
+ * @memberof UserClubMembership
7726
+ */
7727
+ 'bookingCount': number;
7728
+ /**
7729
+ *
7730
+ * @type {number}
7731
+ * @memberof UserClubMembership
7732
+ */
7733
+ 'credits': number;
7734
+ /**
7735
+ *
7736
+ * @type {string}
7737
+ * @memberof UserClubMembership
7738
+ */
7739
+ 'billingPortalUrl': string | null;
7740
+ /**
7741
+ *
7742
+ * @type {boolean}
7743
+ * @memberof UserClubMembership
7744
+ */
7745
+ 'hasActiveSubscription': boolean;
7746
+ /**
7747
+ *
7748
+ * @type {Array<UserClubSubscription>}
7749
+ * @memberof UserClubMembership
7750
+ */
7751
+ 'subscriptions': Array<UserClubSubscription>;
7752
+ }
7753
+ /**
7754
+ *
7755
+ * @export
7756
+ * @interface UserClubMembershipsResponse
7757
+ */
7758
+ export interface UserClubMembershipsResponse {
7759
+ /**
7760
+ *
7761
+ * @type {Array<UserClubMembership>}
7762
+ * @memberof UserClubMembershipsResponse
7763
+ */
7764
+ 'clubs': Array<UserClubMembership>;
7765
+ }
8393
7766
  /**
8394
7767
  *
8395
7768
  * @export
@@ -10475,127 +9848,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
10475
9848
 
10476
9849
 
10477
9850
 
10478
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10479
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10480
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10481
-
10482
- return {
10483
- url: toPathString(localVarUrlObj),
10484
- options: localVarRequestOptions,
10485
- };
10486
- },
10487
- /**
10488
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10489
- * @param {string} playerId
10490
- * @param {number} [page]
10491
- * @param {number} [pageSize]
10492
- * @param {*} [options] Override http request option.
10493
- * @throws {RequiredError}
10494
- */
10495
- getClubPlayerBookingsById: async (playerId: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10496
- // verify required parameter 'playerId' is not null or undefined
10497
- assertParamExists('getClubPlayerBookingsById', 'playerId', playerId)
10498
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
10499
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
10500
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10501
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10502
- let baseOptions;
10503
- if (configuration) {
10504
- baseOptions = configuration.baseOptions;
10505
- }
10506
-
10507
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10508
- const localVarHeaderParameter = {} as any;
10509
- const localVarQueryParameter = {} as any;
10510
-
10511
- // authentication bearerAuth required
10512
- // http bearer authentication required
10513
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
10514
-
10515
- if (page !== undefined) {
10516
- localVarQueryParameter['page'] = page;
10517
- }
10518
-
10519
- if (pageSize !== undefined) {
10520
- localVarQueryParameter['pageSize'] = pageSize;
10521
- }
10522
-
10523
-
10524
-
10525
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10526
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10527
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10528
-
10529
- return {
10530
- url: toPathString(localVarUrlObj),
10531
- options: localVarRequestOptions,
10532
- };
10533
- },
10534
- /**
10535
- * Récupère les informations détaillées d\'un joueur par son ID
10536
- * @param {string} playerId
10537
- * @param {*} [options] Override http request option.
10538
- * @throws {RequiredError}
10539
- */
10540
- getClubPlayerById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10541
- // verify required parameter 'playerId' is not null or undefined
10542
- assertParamExists('getClubPlayerById', 'playerId', playerId)
10543
- const localVarPath = `/api/club-analytics/players/{playerId}`
10544
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
10545
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10546
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10547
- let baseOptions;
10548
- if (configuration) {
10549
- baseOptions = configuration.baseOptions;
10550
- }
10551
-
10552
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10553
- const localVarHeaderParameter = {} as any;
10554
- const localVarQueryParameter = {} as any;
10555
-
10556
- // authentication bearerAuth required
10557
- // http bearer authentication required
10558
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
10559
-
10560
-
10561
-
10562
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10563
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10564
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10565
-
10566
- return {
10567
- url: toPathString(localVarUrlObj),
10568
- options: localVarRequestOptions,
10569
- };
10570
- },
10571
- /**
10572
- * Récupère les statistiques d\'un joueur pour le staff
10573
- * @param {string} playerId
10574
- * @param {*} [options] Override http request option.
10575
- * @throws {RequiredError}
10576
- */
10577
- getClubPlayerStatisticsById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10578
- // verify required parameter 'playerId' is not null or undefined
10579
- assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId)
10580
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
10581
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
10582
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10583
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10584
- let baseOptions;
10585
- if (configuration) {
10586
- baseOptions = configuration.baseOptions;
10587
- }
10588
-
10589
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10590
- const localVarHeaderParameter = {} as any;
10591
- const localVarQueryParameter = {} as any;
10592
-
10593
- // authentication bearerAuth required
10594
- // http bearer authentication required
10595
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
10596
-
10597
-
10598
-
10599
9851
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10600
9852
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10601
9853
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10962,44 +10214,6 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
10962
10214
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getAnalyticsBySport']?.[localVarOperationServerIndex]?.url;
10963
10215
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10964
10216
  },
10965
- /**
10966
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10967
- * @param {string} playerId
10968
- * @param {number} [page]
10969
- * @param {number} [pageSize]
10970
- * @param {*} [options] Override http request option.
10971
- * @throws {RequiredError}
10972
- */
10973
- async getClubPlayerBookingsById(playerId: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerBookingsResponse>> {
10974
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
10975
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10976
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']?.[localVarOperationServerIndex]?.url;
10977
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10978
- },
10979
- /**
10980
- * Récupère les informations détaillées d\'un joueur par son ID
10981
- * @param {string} playerId
10982
- * @param {*} [options] Override http request option.
10983
- * @throws {RequiredError}
10984
- */
10985
- async getClubPlayerById(playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerDetailResponse>> {
10986
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerById(playerId, options);
10987
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10988
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']?.[localVarOperationServerIndex]?.url;
10989
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10990
- },
10991
- /**
10992
- * Récupère les statistiques d\'un joueur pour le staff
10993
- * @param {string} playerId
10994
- * @param {*} [options] Override http request option.
10995
- * @throws {RequiredError}
10996
- */
10997
- async getClubPlayerStatisticsById(playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerStatisticsResponse>> {
10998
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
10999
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11000
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']?.[localVarOperationServerIndex]?.url;
11001
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11002
- },
11003
10217
  /**
11004
10218
  * Récupère la liste des joueurs du club
11005
10219
  * @param {*} [options] Override http request option.
@@ -11124,33 +10338,6 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
11124
10338
  getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportAnalyticsResponse> {
11125
10339
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
11126
10340
  },
11127
- /**
11128
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
11129
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
11130
- * @param {*} [options] Override http request option.
11131
- * @throws {RequiredError}
11132
- */
11133
- getClubPlayerBookingsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerBookingsResponse> {
11134
- return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
11135
- },
11136
- /**
11137
- * Récupère les informations détaillées d\'un joueur par son ID
11138
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
11139
- * @param {*} [options] Override http request option.
11140
- * @throws {RequiredError}
11141
- */
11142
- getClubPlayerById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerDetailResponse> {
11143
- return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
11144
- },
11145
- /**
11146
- * Récupère les statistiques d\'un joueur pour le staff
11147
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
11148
- * @param {*} [options] Override http request option.
11149
- * @throws {RequiredError}
11150
- */
11151
- getClubPlayerStatisticsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerStatisticsResponse> {
11152
- return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
11153
- },
11154
10341
  /**
11155
10342
  * Récupère la liste des joueurs du club
11156
10343
  * @param {*} [options] Override http request option.
@@ -11244,62 +10431,6 @@ export interface ClubAnalyticsStaffApiGetAnalyticsBySportRequest {
11244
10431
  readonly sportId: string
11245
10432
  }
11246
10433
 
11247
- /**
11248
- * Request parameters for getClubPlayerBookingsById operation in ClubAnalyticsStaffApi.
11249
- * @export
11250
- * @interface ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest
11251
- */
11252
- export interface ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest {
11253
- /**
11254
- *
11255
- * @type {string}
11256
- * @memberof ClubAnalyticsStaffApiGetClubPlayerBookingsById
11257
- */
11258
- readonly playerId: string
11259
-
11260
- /**
11261
- *
11262
- * @type {number}
11263
- * @memberof ClubAnalyticsStaffApiGetClubPlayerBookingsById
11264
- */
11265
- readonly page?: number
11266
-
11267
- /**
11268
- *
11269
- * @type {number}
11270
- * @memberof ClubAnalyticsStaffApiGetClubPlayerBookingsById
11271
- */
11272
- readonly pageSize?: number
11273
- }
11274
-
11275
- /**
11276
- * Request parameters for getClubPlayerById operation in ClubAnalyticsStaffApi.
11277
- * @export
11278
- * @interface ClubAnalyticsStaffApiGetClubPlayerByIdRequest
11279
- */
11280
- export interface ClubAnalyticsStaffApiGetClubPlayerByIdRequest {
11281
- /**
11282
- *
11283
- * @type {string}
11284
- * @memberof ClubAnalyticsStaffApiGetClubPlayerById
11285
- */
11286
- readonly playerId: string
11287
- }
11288
-
11289
- /**
11290
- * Request parameters for getClubPlayerStatisticsById operation in ClubAnalyticsStaffApi.
11291
- * @export
11292
- * @interface ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest
11293
- */
11294
- export interface ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest {
11295
- /**
11296
- *
11297
- * @type {string}
11298
- * @memberof ClubAnalyticsStaffApiGetClubPlayerStatisticsById
11299
- */
11300
- readonly playerId: string
11301
- }
11302
-
11303
10434
  /**
11304
10435
  * Request parameters for getDailyTurnOver operation in ClubAnalyticsStaffApi.
11305
10436
  * @export
@@ -11374,51 +10505,18 @@ export interface ClubAnalyticsStaffApiGetYearlyTurnOverRequest {
11374
10505
  * ClubAnalyticsStaffApi - object-oriented interface
11375
10506
  * @export
11376
10507
  * @class ClubAnalyticsStaffApi
11377
- * @extends {BaseAPI}
11378
- */
11379
- export class ClubAnalyticsStaffApi extends BaseAPI {
11380
- /**
11381
- * Récupère les analytics par sport
11382
- * @param {ClubAnalyticsStaffApiGetAnalyticsBySportRequest} requestParameters Request parameters.
11383
- * @param {*} [options] Override http request option.
11384
- * @throws {RequiredError}
11385
- * @memberof ClubAnalyticsStaffApi
11386
- */
11387
- public getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig) {
11388
- return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11389
- }
11390
-
11391
- /**
11392
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
11393
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
11394
- * @param {*} [options] Override http request option.
11395
- * @throws {RequiredError}
11396
- * @memberof ClubAnalyticsStaffApi
11397
- */
11398
- public getClubPlayerBookingsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest, options?: RawAxiosRequestConfig) {
11399
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
11400
- }
11401
-
11402
- /**
11403
- * Récupère les informations détaillées d\'un joueur par son ID
11404
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
11405
- * @param {*} [options] Override http request option.
11406
- * @throws {RequiredError}
11407
- * @memberof ClubAnalyticsStaffApi
11408
- */
11409
- public getClubPlayerById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerByIdRequest, options?: RawAxiosRequestConfig) {
11410
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
11411
- }
11412
-
10508
+ * @extends {BaseAPI}
10509
+ */
10510
+ export class ClubAnalyticsStaffApi extends BaseAPI {
11413
10511
  /**
11414
- * Récupère les statistiques d\'un joueur pour le staff
11415
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
10512
+ * Récupère les analytics par sport
10513
+ * @param {ClubAnalyticsStaffApiGetAnalyticsBySportRequest} requestParameters Request parameters.
11416
10514
  * @param {*} [options] Override http request option.
11417
10515
  * @throws {RequiredError}
11418
10516
  * @memberof ClubAnalyticsStaffApi
11419
10517
  */
11420
- public getClubPlayerStatisticsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest, options?: RawAxiosRequestConfig) {
11421
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
10518
+ public getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig) {
10519
+ return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11422
10520
  }
11423
10521
 
11424
10522
  /**
@@ -11774,355 +10872,67 @@ export interface ClubRolesManagerApiUpdateClubRoleRequest {
11774
10872
  /**
11775
10873
  *
11776
10874
  * @type {UpdateClubRoleRequest}
11777
- * @memberof ClubRolesManagerApiUpdateClubRole
11778
- */
11779
- readonly updateClubRoleRequest: UpdateClubRoleRequest
11780
- }
11781
-
11782
- /**
11783
- * ClubRolesManagerApi - object-oriented interface
11784
- * @export
11785
- * @class ClubRolesManagerApi
11786
- * @extends {BaseAPI}
11787
- */
11788
- export class ClubRolesManagerApi extends BaseAPI {
11789
- /**
11790
- * Crée un rôle de club
11791
- * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
11792
- * @param {*} [options] Override http request option.
11793
- * @throws {RequiredError}
11794
- * @memberof ClubRolesManagerApi
11795
- */
11796
- public createClubRole(requestParameters: ClubRolesManagerApiCreateClubRoleRequest, options?: RawAxiosRequestConfig) {
11797
- return ClubRolesManagerApiFp(this.configuration).createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
11798
- }
11799
-
11800
- /**
11801
- * Supprime un rôle de club
11802
- * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
11803
- * @param {*} [options] Override http request option.
11804
- * @throws {RequiredError}
11805
- * @memberof ClubRolesManagerApi
11806
- */
11807
- public deleteClubRole(requestParameters: ClubRolesManagerApiDeleteClubRoleRequest, options?: RawAxiosRequestConfig) {
11808
- return ClubRolesManagerApiFp(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
11809
- }
11810
-
11811
- /**
11812
- * Met à jour un rôle de club
11813
- * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
11814
- * @param {*} [options] Override http request option.
11815
- * @throws {RequiredError}
11816
- * @memberof ClubRolesManagerApi
11817
- */
11818
- public updateClubRole(requestParameters: ClubRolesManagerApiUpdateClubRoleRequest, options?: RawAxiosRequestConfig) {
11819
- return ClubRolesManagerApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
11820
- }
11821
- }
11822
-
11823
-
11824
-
11825
- /**
11826
- * ClubRolesStaffApi - axios parameter creator
11827
- * @export
11828
- */
11829
- export const ClubRolesStaffApiAxiosParamCreator = function (configuration?: Configuration) {
11830
- return {
11831
- /**
11832
- * Récupère la liste des rôles d\'un club
11833
- * @param {*} [options] Override http request option.
11834
- * @throws {RequiredError}
11835
- */
11836
- getAllClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11837
- const localVarPath = `/api/club-roles`;
11838
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11839
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11840
- let baseOptions;
11841
- if (configuration) {
11842
- baseOptions = configuration.baseOptions;
11843
- }
11844
-
11845
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11846
- const localVarHeaderParameter = {} as any;
11847
- const localVarQueryParameter = {} as any;
11848
-
11849
- // authentication bearerAuth required
11850
- // http bearer authentication required
11851
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11852
-
11853
-
11854
-
11855
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11856
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11857
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11858
-
11859
- return {
11860
- url: toPathString(localVarUrlObj),
11861
- options: localVarRequestOptions,
11862
- };
11863
- },
11864
- /**
11865
- * Récupère un rôle de club par ID
11866
- * @param {string} id
11867
- * @param {*} [options] Override http request option.
11868
- * @throws {RequiredError}
11869
- */
11870
- getClubRoleById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11871
- // verify required parameter 'id' is not null or undefined
11872
- assertParamExists('getClubRoleById', 'id', id)
11873
- const localVarPath = `/api/club-roles/{id}`
11874
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
11875
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11876
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11877
- let baseOptions;
11878
- if (configuration) {
11879
- baseOptions = configuration.baseOptions;
11880
- }
11881
-
11882
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11883
- const localVarHeaderParameter = {} as any;
11884
- const localVarQueryParameter = {} as any;
11885
-
11886
- // authentication bearerAuth required
11887
- // http bearer authentication required
11888
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11889
-
11890
-
11891
-
11892
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11893
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11894
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11895
-
11896
- return {
11897
- url: toPathString(localVarUrlObj),
11898
- options: localVarRequestOptions,
11899
- };
11900
- },
11901
- /**
11902
- *
11903
- * @param {*} [options] Override http request option.
11904
- * @throws {RequiredError}
11905
- */
11906
- getUserRolesInClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11907
- const localVarPath = `/api/club-roles/me/roles`;
11908
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11909
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11910
- let baseOptions;
11911
- if (configuration) {
11912
- baseOptions = configuration.baseOptions;
11913
- }
11914
-
11915
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11916
- const localVarHeaderParameter = {} as any;
11917
- const localVarQueryParameter = {} as any;
11918
-
11919
- // authentication bearerAuth required
11920
- // http bearer authentication required
11921
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11922
-
11923
-
11924
-
11925
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11926
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11927
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11928
-
11929
- return {
11930
- url: toPathString(localVarUrlObj),
11931
- options: localVarRequestOptions,
11932
- };
11933
- },
11934
- }
11935
- };
11936
-
11937
- /**
11938
- * ClubRolesStaffApi - functional programming interface
11939
- * @export
11940
- */
11941
- export const ClubRolesStaffApiFp = function(configuration?: Configuration) {
11942
- const localVarAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator(configuration)
11943
- return {
11944
- /**
11945
- * Récupère la liste des rôles d\'un club
11946
- * @param {*} [options] Override http request option.
11947
- * @throws {RequiredError}
11948
- */
11949
- async getAllClubRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClubRoleResponse>>> {
11950
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllClubRoles(options);
11951
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11952
- const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getAllClubRoles']?.[localVarOperationServerIndex]?.url;
11953
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11954
- },
11955
- /**
11956
- * Récupère un rôle de club par ID
11957
- * @param {string} id
11958
- * @param {*} [options] Override http request option.
11959
- * @throws {RequiredError}
11960
- */
11961
- async getClubRoleById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubRoleResponse>> {
11962
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubRoleById(id, options);
11963
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11964
- const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getClubRoleById']?.[localVarOperationServerIndex]?.url;
11965
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11966
- },
11967
- /**
11968
- *
11969
- * @param {*} [options] Override http request option.
11970
- * @throws {RequiredError}
11971
- */
11972
- async getUserRolesInClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserRolesResponse>> {
11973
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRolesInClubs(options);
11974
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11975
- const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']?.[localVarOperationServerIndex]?.url;
11976
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11977
- },
11978
- }
11979
- };
11980
-
11981
- /**
11982
- * ClubRolesStaffApi - factory interface
11983
- * @export
11984
- */
11985
- export const ClubRolesStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11986
- const localVarFp = ClubRolesStaffApiFp(configuration)
11987
- return {
11988
- /**
11989
- * Récupère la liste des rôles d\'un club
11990
- * @param {*} [options] Override http request option.
11991
- * @throws {RequiredError}
11992
- */
11993
- getAllClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClubRoleResponse>> {
11994
- return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
11995
- },
11996
- /**
11997
- * Récupère un rôle de club par ID
11998
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
11999
- * @param {*} [options] Override http request option.
12000
- * @throws {RequiredError}
12001
- */
12002
- getClubRoleById(requestParameters: ClubRolesStaffApiGetClubRoleByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubRoleResponse> {
12003
- return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
12004
- },
12005
- /**
12006
- *
12007
- * @param {*} [options] Override http request option.
12008
- * @throws {RequiredError}
12009
- */
12010
- getUserRolesInClubs(options?: RawAxiosRequestConfig): AxiosPromise<UserRolesResponse> {
12011
- return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
12012
- },
12013
- };
12014
- };
12015
-
12016
- /**
12017
- * Request parameters for getClubRoleById operation in ClubRolesStaffApi.
12018
- * @export
12019
- * @interface ClubRolesStaffApiGetClubRoleByIdRequest
12020
- */
12021
- export interface ClubRolesStaffApiGetClubRoleByIdRequest {
12022
- /**
12023
- *
12024
- * @type {string}
12025
- * @memberof ClubRolesStaffApiGetClubRoleById
10875
+ * @memberof ClubRolesManagerApiUpdateClubRole
12026
10876
  */
12027
- readonly id: string
10877
+ readonly updateClubRoleRequest: UpdateClubRoleRequest
12028
10878
  }
12029
10879
 
12030
10880
  /**
12031
- * ClubRolesStaffApi - object-oriented interface
10881
+ * ClubRolesManagerApi - object-oriented interface
12032
10882
  * @export
12033
- * @class ClubRolesStaffApi
10883
+ * @class ClubRolesManagerApi
12034
10884
  * @extends {BaseAPI}
12035
10885
  */
12036
- export class ClubRolesStaffApi extends BaseAPI {
10886
+ export class ClubRolesManagerApi extends BaseAPI {
12037
10887
  /**
12038
- * Récupère la liste des rôles d\'un club
10888
+ * Crée un rôle de club
10889
+ * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
12039
10890
  * @param {*} [options] Override http request option.
12040
10891
  * @throws {RequiredError}
12041
- * @memberof ClubRolesStaffApi
10892
+ * @memberof ClubRolesManagerApi
12042
10893
  */
12043
- public getAllClubRoles(options?: RawAxiosRequestConfig) {
12044
- return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
10894
+ public createClubRole(requestParameters: ClubRolesManagerApiCreateClubRoleRequest, options?: RawAxiosRequestConfig) {
10895
+ return ClubRolesManagerApiFp(this.configuration).createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
12045
10896
  }
12046
10897
 
12047
10898
  /**
12048
- * Récupère un rôle de club par ID
12049
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
10899
+ * Supprime un rôle de club
10900
+ * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
12050
10901
  * @param {*} [options] Override http request option.
12051
10902
  * @throws {RequiredError}
12052
- * @memberof ClubRolesStaffApi
10903
+ * @memberof ClubRolesManagerApi
12053
10904
  */
12054
- public getClubRoleById(requestParameters: ClubRolesStaffApiGetClubRoleByIdRequest, options?: RawAxiosRequestConfig) {
12055
- return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
10905
+ public deleteClubRole(requestParameters: ClubRolesManagerApiDeleteClubRoleRequest, options?: RawAxiosRequestConfig) {
10906
+ return ClubRolesManagerApiFp(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12056
10907
  }
12057
10908
 
12058
10909
  /**
12059
- *
10910
+ * Met à jour un rôle de club
10911
+ * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
12060
10912
  * @param {*} [options] Override http request option.
12061
10913
  * @throws {RequiredError}
12062
- * @memberof ClubRolesStaffApi
10914
+ * @memberof ClubRolesManagerApi
12063
10915
  */
12064
- public getUserRolesInClubs(options?: RawAxiosRequestConfig) {
12065
- return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
10916
+ public updateClubRole(requestParameters: ClubRolesManagerApiUpdateClubRoleRequest, options?: RawAxiosRequestConfig) {
10917
+ return ClubRolesManagerApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
12066
10918
  }
12067
10919
  }
12068
10920
 
12069
10921
 
12070
10922
 
12071
10923
  /**
12072
- * ClubSettingsManagerApi - axios parameter creator
10924
+ * ClubRolesStaffApi - axios parameter creator
12073
10925
  * @export
12074
10926
  */
12075
- export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
10927
+ export const ClubRolesStaffApiAxiosParamCreator = function (configuration?: Configuration) {
12076
10928
  return {
12077
10929
  /**
12078
- *
12079
- * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
12080
- * @param {*} [options] Override http request option.
12081
- * @throws {RequiredError}
12082
- */
12083
- updateClubGeneralSettings: async (updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12084
- // verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
12085
- assertParamExists('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest)
12086
- const localVarPath = `/api/club-settings/settings/general`;
12087
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12088
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12089
- let baseOptions;
12090
- if (configuration) {
12091
- baseOptions = configuration.baseOptions;
12092
- }
12093
-
12094
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12095
- const localVarHeaderParameter = {} as any;
12096
- const localVarQueryParameter = {} as any;
12097
-
12098
- // authentication bearerAuth required
12099
- // http bearer authentication required
12100
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12101
-
12102
-
12103
-
12104
- localVarHeaderParameter['Content-Type'] = 'application/json';
12105
-
12106
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12107
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12108
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12109
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration)
12110
-
12111
- return {
12112
- url: toPathString(localVarUrlObj),
12113
- options: localVarRequestOptions,
12114
- };
12115
- },
12116
- /**
12117
- *
12118
- * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
10930
+ * Récupère la liste des rôles d\'un club
12119
10931
  * @param {*} [options] Override http request option.
12120
10932
  * @throws {RequiredError}
12121
10933
  */
12122
- updateHoursSettings: async (updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12123
- // verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
12124
- assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest)
12125
- const localVarPath = `/api/club-settings/hours`;
10934
+ getAllClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10935
+ const localVarPath = `/api/club-roles`;
12126
10936
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12127
10937
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12128
10938
  let baseOptions;
@@ -12130,7 +10940,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12130
10940
  baseOptions = configuration.baseOptions;
12131
10941
  }
12132
10942
 
12133
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
10943
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12134
10944
  const localVarHeaderParameter = {} as any;
12135
10945
  const localVarQueryParameter = {} as any;
12136
10946
 
@@ -12140,12 +10950,9 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12140
10950
 
12141
10951
 
12142
10952
 
12143
- localVarHeaderParameter['Content-Type'] = 'application/json';
12144
-
12145
10953
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12146
10954
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12147
10955
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12148
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration)
12149
10956
 
12150
10957
  return {
12151
10958
  url: toPathString(localVarUrlObj),
@@ -12153,15 +10960,16 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12153
10960
  };
12154
10961
  },
12155
10962
  /**
12156
- *
12157
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
10963
+ * Récupère un rôle de club par ID
10964
+ * @param {string} id
12158
10965
  * @param {*} [options] Override http request option.
12159
10966
  * @throws {RequiredError}
12160
10967
  */
12161
- updatePresentationSettings: async (clubPresentationSettingsResponse: ClubPresentationSettingsResponse, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12162
- // verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
12163
- assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse)
12164
- const localVarPath = `/api/club-settings/presentation`;
10968
+ getClubRoleById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10969
+ // verify required parameter 'id' is not null or undefined
10970
+ assertParamExists('getClubRoleById', 'id', id)
10971
+ const localVarPath = `/api/club-roles/{id}`
10972
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12165
10973
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12166
10974
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12167
10975
  let baseOptions;
@@ -12169,7 +10977,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12169
10977
  baseOptions = configuration.baseOptions;
12170
10978
  }
12171
10979
 
12172
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
10980
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12173
10981
  const localVarHeaderParameter = {} as any;
12174
10982
  const localVarQueryParameter = {} as any;
12175
10983
 
@@ -12179,12 +10987,9 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12179
10987
 
12180
10988
 
12181
10989
 
12182
- localVarHeaderParameter['Content-Type'] = 'application/json';
12183
-
12184
10990
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12185
10991
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12186
10992
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12187
- localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration)
12188
10993
 
12189
10994
  return {
12190
10995
  url: toPathString(localVarUrlObj),
@@ -12193,14 +10998,11 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12193
10998
  },
12194
10999
  /**
12195
11000
  *
12196
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
12197
11001
  * @param {*} [options] Override http request option.
12198
11002
  * @throws {RequiredError}
12199
11003
  */
12200
- updateReservationSettings: async (updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12201
- // verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
12202
- assertParamExists('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest)
12203
- const localVarPath = `/api/club-settings/reservation`;
11004
+ getUserRolesInClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11005
+ const localVarPath = `/api/club-roles/me/roles`;
12204
11006
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12205
11007
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12206
11008
  let baseOptions;
@@ -12208,7 +11010,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12208
11010
  baseOptions = configuration.baseOptions;
12209
11011
  }
12210
11012
 
12211
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11013
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12212
11014
  const localVarHeaderParameter = {} as any;
12213
11015
  const localVarQueryParameter = {} as any;
12214
11016
 
@@ -12218,12 +11020,9 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12218
11020
 
12219
11021
 
12220
11022
 
12221
- localVarHeaderParameter['Content-Type'] = 'application/json';
12222
-
12223
11023
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12224
11024
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12225
11025
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12226
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration)
12227
11026
 
12228
11027
  return {
12229
11028
  url: toPathString(localVarUrlObj),
@@ -12234,232 +11033,159 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12234
11033
  };
12235
11034
 
12236
11035
  /**
12237
- * ClubSettingsManagerApi - functional programming interface
11036
+ * ClubRolesStaffApi - functional programming interface
12238
11037
  * @export
12239
11038
  */
12240
- export const ClubSettingsManagerApiFp = function(configuration?: Configuration) {
12241
- const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration)
11039
+ export const ClubRolesStaffApiFp = function(configuration?: Configuration) {
11040
+ const localVarAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator(configuration)
12242
11041
  return {
12243
11042
  /**
12244
- *
12245
- * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
12246
- * @param {*} [options] Override http request option.
12247
- * @throws {RequiredError}
12248
- */
12249
- async updateClubGeneralSettings(updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubGeneralSettingsResponse>> {
12250
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
12251
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12252
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']?.[localVarOperationServerIndex]?.url;
12253
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12254
- },
12255
- /**
12256
- *
12257
- * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
11043
+ * Récupère la liste des rôles d\'un club
12258
11044
  * @param {*} [options] Override http request option.
12259
11045
  * @throws {RequiredError}
12260
11046
  */
12261
- async updateHoursSettings(updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubHoursSettingsResponse>> {
12262
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
11047
+ async getAllClubRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClubRoleResponse>>> {
11048
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllClubRoles(options);
12263
11049
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12264
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']?.[localVarOperationServerIndex]?.url;
11050
+ const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getAllClubRoles']?.[localVarOperationServerIndex]?.url;
12265
11051
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12266
11052
  },
12267
11053
  /**
12268
- *
12269
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
11054
+ * Récupère un rôle de club par ID
11055
+ * @param {string} id
12270
11056
  * @param {*} [options] Override http request option.
12271
11057
  * @throws {RequiredError}
12272
11058
  */
12273
- async updatePresentationSettings(clubPresentationSettingsResponse: ClubPresentationSettingsResponse, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
12274
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
11059
+ async getClubRoleById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubRoleResponse>> {
11060
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubRoleById(id, options);
12275
11061
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12276
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']?.[localVarOperationServerIndex]?.url;
11062
+ const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getClubRoleById']?.[localVarOperationServerIndex]?.url;
12277
11063
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12278
11064
  },
12279
11065
  /**
12280
11066
  *
12281
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
12282
11067
  * @param {*} [options] Override http request option.
12283
11068
  * @throws {RequiredError}
12284
11069
  */
12285
- async updateReservationSettings(updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubReservationSettingsResponse>> {
12286
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
11070
+ async getUserRolesInClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserRolesResponse>> {
11071
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRolesInClubs(options);
12287
11072
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12288
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateReservationSettings']?.[localVarOperationServerIndex]?.url;
11073
+ const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']?.[localVarOperationServerIndex]?.url;
12289
11074
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12290
11075
  },
12291
11076
  }
12292
11077
  };
12293
11078
 
12294
11079
  /**
12295
- * ClubSettingsManagerApi - factory interface
11080
+ * ClubRolesStaffApi - factory interface
12296
11081
  * @export
12297
11082
  */
12298
- export const ClubSettingsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12299
- const localVarFp = ClubSettingsManagerApiFp(configuration)
11083
+ export const ClubRolesStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11084
+ const localVarFp = ClubRolesStaffApiFp(configuration)
12300
11085
  return {
12301
11086
  /**
12302
- *
12303
- * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
12304
- * @param {*} [options] Override http request option.
12305
- * @throws {RequiredError}
12306
- */
12307
- updateClubGeneralSettings(requestParameters: ClubSettingsManagerApiUpdateClubGeneralSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubGeneralSettingsResponse> {
12308
- return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
12309
- },
12310
- /**
12311
- *
12312
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
11087
+ * Récupère la liste des rôles d\'un club
12313
11088
  * @param {*} [options] Override http request option.
12314
11089
  * @throws {RequiredError}
12315
11090
  */
12316
- updateHoursSettings(requestParameters: ClubSettingsManagerApiUpdateHoursSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubHoursSettingsResponse> {
12317
- return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
11091
+ getAllClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClubRoleResponse>> {
11092
+ return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
12318
11093
  },
12319
11094
  /**
12320
- *
12321
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
11095
+ * Récupère un rôle de club par ID
11096
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
12322
11097
  * @param {*} [options] Override http request option.
12323
11098
  * @throws {RequiredError}
12324
11099
  */
12325
- updatePresentationSettings(requestParameters: ClubSettingsManagerApiUpdatePresentationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
12326
- return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
11100
+ getClubRoleById(requestParameters: ClubRolesStaffApiGetClubRoleByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubRoleResponse> {
11101
+ return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
12327
11102
  },
12328
11103
  /**
12329
11104
  *
12330
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
12331
11105
  * @param {*} [options] Override http request option.
12332
11106
  * @throws {RequiredError}
12333
11107
  */
12334
- updateReservationSettings(requestParameters: ClubSettingsManagerApiUpdateReservationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubReservationSettingsResponse> {
12335
- return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
11108
+ getUserRolesInClubs(options?: RawAxiosRequestConfig): AxiosPromise<UserRolesResponse> {
11109
+ return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
12336
11110
  },
12337
11111
  };
12338
11112
  };
12339
11113
 
12340
11114
  /**
12341
- * Request parameters for updateClubGeneralSettings operation in ClubSettingsManagerApi.
12342
- * @export
12343
- * @interface ClubSettingsManagerApiUpdateClubGeneralSettingsRequest
12344
- */
12345
- export interface ClubSettingsManagerApiUpdateClubGeneralSettingsRequest {
12346
- /**
12347
- *
12348
- * @type {UpdateClubGeneralSettingsRequest}
12349
- * @memberof ClubSettingsManagerApiUpdateClubGeneralSettings
12350
- */
12351
- readonly updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest
12352
- }
12353
-
12354
- /**
12355
- * Request parameters for updateHoursSettings operation in ClubSettingsManagerApi.
12356
- * @export
12357
- * @interface ClubSettingsManagerApiUpdateHoursSettingsRequest
12358
- */
12359
- export interface ClubSettingsManagerApiUpdateHoursSettingsRequest {
12360
- /**
12361
- *
12362
- * @type {UpdateClubHoursSettingsRequest}
12363
- * @memberof ClubSettingsManagerApiUpdateHoursSettings
12364
- */
12365
- readonly updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest
12366
- }
12367
-
12368
- /**
12369
- * Request parameters for updatePresentationSettings operation in ClubSettingsManagerApi.
12370
- * @export
12371
- * @interface ClubSettingsManagerApiUpdatePresentationSettingsRequest
12372
- */
12373
- export interface ClubSettingsManagerApiUpdatePresentationSettingsRequest {
12374
- /**
12375
- *
12376
- * @type {ClubPresentationSettingsResponse}
12377
- * @memberof ClubSettingsManagerApiUpdatePresentationSettings
12378
- */
12379
- readonly clubPresentationSettingsResponse: ClubPresentationSettingsResponse
12380
- }
12381
-
12382
- /**
12383
- * Request parameters for updateReservationSettings operation in ClubSettingsManagerApi.
11115
+ * Request parameters for getClubRoleById operation in ClubRolesStaffApi.
12384
11116
  * @export
12385
- * @interface ClubSettingsManagerApiUpdateReservationSettingsRequest
11117
+ * @interface ClubRolesStaffApiGetClubRoleByIdRequest
12386
11118
  */
12387
- export interface ClubSettingsManagerApiUpdateReservationSettingsRequest {
11119
+ export interface ClubRolesStaffApiGetClubRoleByIdRequest {
12388
11120
  /**
12389
11121
  *
12390
- * @type {UpdateClubReservationSettingsRequest}
12391
- * @memberof ClubSettingsManagerApiUpdateReservationSettings
11122
+ * @type {string}
11123
+ * @memberof ClubRolesStaffApiGetClubRoleById
12392
11124
  */
12393
- readonly updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest
11125
+ readonly id: string
12394
11126
  }
12395
11127
 
12396
11128
  /**
12397
- * ClubSettingsManagerApi - object-oriented interface
11129
+ * ClubRolesStaffApi - object-oriented interface
12398
11130
  * @export
12399
- * @class ClubSettingsManagerApi
11131
+ * @class ClubRolesStaffApi
12400
11132
  * @extends {BaseAPI}
12401
11133
  */
12402
- export class ClubSettingsManagerApi extends BaseAPI {
12403
- /**
12404
- *
12405
- * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
12406
- * @param {*} [options] Override http request option.
12407
- * @throws {RequiredError}
12408
- * @memberof ClubSettingsManagerApi
12409
- */
12410
- public updateClubGeneralSettings(requestParameters: ClubSettingsManagerApiUpdateClubGeneralSettingsRequest, options?: RawAxiosRequestConfig) {
12411
- return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
12412
- }
12413
-
11134
+ export class ClubRolesStaffApi extends BaseAPI {
12414
11135
  /**
12415
- *
12416
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
11136
+ * Récupère la liste des rôles d\'un club
12417
11137
  * @param {*} [options] Override http request option.
12418
11138
  * @throws {RequiredError}
12419
- * @memberof ClubSettingsManagerApi
11139
+ * @memberof ClubRolesStaffApi
12420
11140
  */
12421
- public updateHoursSettings(requestParameters: ClubSettingsManagerApiUpdateHoursSettingsRequest, options?: RawAxiosRequestConfig) {
12422
- return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11141
+ public getAllClubRoles(options?: RawAxiosRequestConfig) {
11142
+ return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
12423
11143
  }
12424
11144
 
12425
11145
  /**
12426
- *
12427
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
11146
+ * Récupère un rôle de club par ID
11147
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
12428
11148
  * @param {*} [options] Override http request option.
12429
11149
  * @throws {RequiredError}
12430
- * @memberof ClubSettingsManagerApi
11150
+ * @memberof ClubRolesStaffApi
12431
11151
  */
12432
- public updatePresentationSettings(requestParameters: ClubSettingsManagerApiUpdatePresentationSettingsRequest, options?: RawAxiosRequestConfig) {
12433
- return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
11152
+ public getClubRoleById(requestParameters: ClubRolesStaffApiGetClubRoleByIdRequest, options?: RawAxiosRequestConfig) {
11153
+ return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12434
11154
  }
12435
11155
 
12436
11156
  /**
12437
11157
  *
12438
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
12439
11158
  * @param {*} [options] Override http request option.
12440
11159
  * @throws {RequiredError}
12441
- * @memberof ClubSettingsManagerApi
11160
+ * @memberof ClubRolesStaffApi
12442
11161
  */
12443
- public updateReservationSettings(requestParameters: ClubSettingsManagerApiUpdateReservationSettingsRequest, options?: RawAxiosRequestConfig) {
12444
- return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11162
+ public getUserRolesInClubs(options?: RawAxiosRequestConfig) {
11163
+ return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
12445
11164
  }
12446
11165
  }
12447
11166
 
12448
11167
 
12449
11168
 
12450
11169
  /**
12451
- * ClubSettingsStaffApi - axios parameter creator
11170
+ * ClubSettingsManagerApi - axios parameter creator
12452
11171
  * @export
12453
11172
  */
12454
- export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
11173
+ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
12455
11174
  return {
12456
11175
  /**
12457
- *
11176
+ * Crée les paramètres d\'un club
11177
+ * @param {string} clubId
11178
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
12458
11179
  * @param {*} [options] Override http request option.
12459
11180
  * @throws {RequiredError}
12460
11181
  */
12461
- getClubGeneralSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12462
- const localVarPath = `/api/club-settings/settings/general`;
11182
+ createClubSettings: async (clubId: string, createClubSettingsRequest: CreateClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11183
+ // verify required parameter 'clubId' is not null or undefined
11184
+ assertParamExists('createClubSettings', 'clubId', clubId)
11185
+ // verify required parameter 'createClubSettingsRequest' is not null or undefined
11186
+ assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest)
11187
+ const localVarPath = `/api/club-settings/{clubId}`
11188
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
12463
11189
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12464
11190
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12465
11191
  let baseOptions;
@@ -12467,7 +11193,7 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12467
11193
  baseOptions = configuration.baseOptions;
12468
11194
  }
12469
11195
 
12470
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11196
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12471
11197
  const localVarHeaderParameter = {} as any;
12472
11198
  const localVarQueryParameter = {} as any;
12473
11199
 
@@ -12477,9 +11203,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12477
11203
 
12478
11204
 
12479
11205
 
11206
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11207
+
12480
11208
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12481
11209
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12482
11210
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11211
+ localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration)
12483
11212
 
12484
11213
  return {
12485
11214
  url: toPathString(localVarUrlObj),
@@ -12487,12 +11216,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12487
11216
  };
12488
11217
  },
12489
11218
  /**
12490
- *
11219
+ * Supprime les paramètres d\'un club
12491
11220
  * @param {*} [options] Override http request option.
12492
11221
  * @throws {RequiredError}
12493
11222
  */
12494
- getHoursSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12495
- const localVarPath = `/api/club-settings/hours`;
11223
+ deleteClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11224
+ const localVarPath = `/api/club-settings`;
12496
11225
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12497
11226
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12498
11227
  let baseOptions;
@@ -12500,7 +11229,7 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12500
11229
  baseOptions = configuration.baseOptions;
12501
11230
  }
12502
11231
 
12503
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11232
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12504
11233
  const localVarHeaderParameter = {} as any;
12505
11234
  const localVarQueryParameter = {} as any;
12506
11235
 
@@ -12520,12 +11249,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12520
11249
  };
12521
11250
  },
12522
11251
  /**
12523
- *
11252
+ * Récupère les paramètres d\'un club
12524
11253
  * @param {*} [options] Override http request option.
12525
11254
  * @throws {RequiredError}
12526
11255
  */
12527
- getPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12528
- const localVarPath = `/api/club-settings/presentation`;
11256
+ getClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11257
+ const localVarPath = `/api/club-settings`;
12529
11258
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12530
11259
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12531
11260
  let baseOptions;
@@ -12553,12 +11282,15 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12553
11282
  };
12554
11283
  },
12555
11284
  /**
12556
- *
11285
+ * Met à jour les paramètres d\'un club
11286
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
12557
11287
  * @param {*} [options] Override http request option.
12558
11288
  * @throws {RequiredError}
12559
11289
  */
12560
- getReservationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12561
- const localVarPath = `/api/club-settings/reservation`;
11290
+ updateClubSettings: async (updateClubSettingsRequest: UpdateClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11291
+ // verify required parameter 'updateClubSettingsRequest' is not null or undefined
11292
+ assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest)
11293
+ const localVarPath = `/api/club-settings`;
12562
11294
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12563
11295
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12564
11296
  let baseOptions;
@@ -12566,7 +11298,7 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12566
11298
  baseOptions = configuration.baseOptions;
12567
11299
  }
12568
11300
 
12569
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11301
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12570
11302
  const localVarHeaderParameter = {} as any;
12571
11303
  const localVarQueryParameter = {} as any;
12572
11304
 
@@ -12576,9 +11308,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12576
11308
 
12577
11309
 
12578
11310
 
11311
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11312
+
12579
11313
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12580
11314
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12581
11315
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11316
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration)
12582
11317
 
12583
11318
  return {
12584
11319
  url: toPathString(localVarUrlObj),
@@ -12589,146 +11324,188 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12589
11324
  };
12590
11325
 
12591
11326
  /**
12592
- * ClubSettingsStaffApi - functional programming interface
11327
+ * ClubSettingsManagerApi - functional programming interface
12593
11328
  * @export
12594
11329
  */
12595
- export const ClubSettingsStaffApiFp = function(configuration?: Configuration) {
12596
- const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration)
11330
+ export const ClubSettingsManagerApiFp = function(configuration?: Configuration) {
11331
+ const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration)
12597
11332
  return {
12598
11333
  /**
12599
- *
11334
+ * Crée les paramètres d\'un club
11335
+ * @param {string} clubId
11336
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
12600
11337
  * @param {*} [options] Override http request option.
12601
11338
  * @throws {RequiredError}
12602
11339
  */
12603
- async getClubGeneralSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubGeneralSettingsResponse>> {
12604
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubGeneralSettings(options);
11340
+ async createClubSettings(clubId: string, createClubSettingsRequest: CreateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11341
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
12605
11342
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12606
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']?.[localVarOperationServerIndex]?.url;
11343
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.createClubSettings']?.[localVarOperationServerIndex]?.url;
12607
11344
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12608
11345
  },
12609
11346
  /**
12610
- *
11347
+ * Supprime les paramètres d\'un club
12611
11348
  * @param {*} [options] Override http request option.
12612
11349
  * @throws {RequiredError}
12613
11350
  */
12614
- async getHoursSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubHoursSettingsResponse>> {
12615
- const localVarAxiosArgs = await localVarAxiosParamCreator.getHoursSettings(options);
11351
+ async deleteClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteClubSettingsResponse>> {
11352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClubSettings(options);
12616
11353
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12617
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getHoursSettings']?.[localVarOperationServerIndex]?.url;
11354
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.deleteClubSettings']?.[localVarOperationServerIndex]?.url;
12618
11355
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12619
11356
  },
12620
11357
  /**
12621
- *
11358
+ * Récupère les paramètres d\'un club
12622
11359
  * @param {*} [options] Override http request option.
12623
11360
  * @throws {RequiredError}
12624
11361
  */
12625
- async getPresentationSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
12626
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPresentationSettings(options);
11362
+ async getClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(options);
12627
11364
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12628
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getPresentationSettings']?.[localVarOperationServerIndex]?.url;
11365
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
12629
11366
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12630
11367
  },
12631
11368
  /**
12632
- *
11369
+ * Met à jour les paramètres d\'un club
11370
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
12633
11371
  * @param {*} [options] Override http request option.
12634
11372
  * @throws {RequiredError}
12635
11373
  */
12636
- async getReservationSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubReservationSettingsResponse>> {
12637
- const localVarAxiosArgs = await localVarAxiosParamCreator.getReservationSettings(options);
11374
+ async updateClubSettings(updateClubSettingsRequest: UpdateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
12638
11376
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12639
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getReservationSettings']?.[localVarOperationServerIndex]?.url;
11377
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateClubSettings']?.[localVarOperationServerIndex]?.url;
12640
11378
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12641
11379
  },
12642
11380
  }
12643
11381
  };
12644
11382
 
12645
11383
  /**
12646
- * ClubSettingsStaffApi - factory interface
11384
+ * ClubSettingsManagerApi - factory interface
12647
11385
  * @export
12648
11386
  */
12649
- export const ClubSettingsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12650
- const localVarFp = ClubSettingsStaffApiFp(configuration)
11387
+ export const ClubSettingsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11388
+ const localVarFp = ClubSettingsManagerApiFp(configuration)
12651
11389
  return {
12652
11390
  /**
12653
- *
11391
+ * Crée les paramètres d\'un club
11392
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
12654
11393
  * @param {*} [options] Override http request option.
12655
11394
  * @throws {RequiredError}
12656
11395
  */
12657
- getClubGeneralSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubGeneralSettingsResponse> {
12658
- return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
11396
+ createClubSettings(requestParameters: ClubSettingsManagerApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11397
+ return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
12659
11398
  },
12660
11399
  /**
12661
- *
11400
+ * Supprime les paramètres d\'un club
12662
11401
  * @param {*} [options] Override http request option.
12663
11402
  * @throws {RequiredError}
12664
11403
  */
12665
- getHoursSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubHoursSettingsResponse> {
12666
- return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
11404
+ deleteClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<DeleteClubSettingsResponse> {
11405
+ return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
12667
11406
  },
12668
11407
  /**
12669
- *
11408
+ * Récupère les paramètres d\'un club
12670
11409
  * @param {*} [options] Override http request option.
12671
11410
  * @throws {RequiredError}
12672
11411
  */
12673
- getPresentationSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
12674
- return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
11412
+ getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11413
+ return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
12675
11414
  },
12676
11415
  /**
12677
- *
11416
+ * Met à jour les paramètres d\'un club
11417
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
12678
11418
  * @param {*} [options] Override http request option.
12679
11419
  * @throws {RequiredError}
12680
11420
  */
12681
- getReservationSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubReservationSettingsResponse> {
12682
- return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
11421
+ updateClubSettings(requestParameters: ClubSettingsManagerApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11422
+ return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
12683
11423
  },
12684
11424
  };
12685
11425
  };
12686
11426
 
12687
11427
  /**
12688
- * ClubSettingsStaffApi - object-oriented interface
11428
+ * Request parameters for createClubSettings operation in ClubSettingsManagerApi.
11429
+ * @export
11430
+ * @interface ClubSettingsManagerApiCreateClubSettingsRequest
11431
+ */
11432
+ export interface ClubSettingsManagerApiCreateClubSettingsRequest {
11433
+ /**
11434
+ *
11435
+ * @type {string}
11436
+ * @memberof ClubSettingsManagerApiCreateClubSettings
11437
+ */
11438
+ readonly clubId: string
11439
+
11440
+ /**
11441
+ *
11442
+ * @type {CreateClubSettingsRequest}
11443
+ * @memberof ClubSettingsManagerApiCreateClubSettings
11444
+ */
11445
+ readonly createClubSettingsRequest: CreateClubSettingsRequest
11446
+ }
11447
+
11448
+ /**
11449
+ * Request parameters for updateClubSettings operation in ClubSettingsManagerApi.
12689
11450
  * @export
12690
- * @class ClubSettingsStaffApi
12691
- * @extends {BaseAPI}
11451
+ * @interface ClubSettingsManagerApiUpdateClubSettingsRequest
12692
11452
  */
12693
- export class ClubSettingsStaffApi extends BaseAPI {
11453
+ export interface ClubSettingsManagerApiUpdateClubSettingsRequest {
12694
11454
  /**
12695
11455
  *
11456
+ * @type {UpdateClubSettingsRequest}
11457
+ * @memberof ClubSettingsManagerApiUpdateClubSettings
11458
+ */
11459
+ readonly updateClubSettingsRequest: UpdateClubSettingsRequest
11460
+ }
11461
+
11462
+ /**
11463
+ * ClubSettingsManagerApi - object-oriented interface
11464
+ * @export
11465
+ * @class ClubSettingsManagerApi
11466
+ * @extends {BaseAPI}
11467
+ */
11468
+ export class ClubSettingsManagerApi extends BaseAPI {
11469
+ /**
11470
+ * Crée les paramètres d\'un club
11471
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
12696
11472
  * @param {*} [options] Override http request option.
12697
11473
  * @throws {RequiredError}
12698
- * @memberof ClubSettingsStaffApi
11474
+ * @memberof ClubSettingsManagerApi
12699
11475
  */
12700
- public getClubGeneralSettings(options?: RawAxiosRequestConfig) {
12701
- return ClubSettingsStaffApiFp(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
11476
+ public createClubSettings(requestParameters: ClubSettingsManagerApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig) {
11477
+ return ClubSettingsManagerApiFp(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
12702
11478
  }
12703
11479
 
12704
11480
  /**
12705
- *
11481
+ * Supprime les paramètres d\'un club
12706
11482
  * @param {*} [options] Override http request option.
12707
11483
  * @throws {RequiredError}
12708
- * @memberof ClubSettingsStaffApi
11484
+ * @memberof ClubSettingsManagerApi
12709
11485
  */
12710
- public getHoursSettings(options?: RawAxiosRequestConfig) {
12711
- return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
11486
+ public deleteClubSettings(options?: RawAxiosRequestConfig) {
11487
+ return ClubSettingsManagerApiFp(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
12712
11488
  }
12713
11489
 
12714
11490
  /**
12715
- *
11491
+ * Récupère les paramètres d\'un club
12716
11492
  * @param {*} [options] Override http request option.
12717
11493
  * @throws {RequiredError}
12718
- * @memberof ClubSettingsStaffApi
11494
+ * @memberof ClubSettingsManagerApi
12719
11495
  */
12720
- public getPresentationSettings(options?: RawAxiosRequestConfig) {
12721
- return ClubSettingsStaffApiFp(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
11496
+ public getClubSettings(options?: RawAxiosRequestConfig) {
11497
+ return ClubSettingsManagerApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
12722
11498
  }
12723
11499
 
12724
11500
  /**
12725
- *
11501
+ * Met à jour les paramètres d\'un club
11502
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
12726
11503
  * @param {*} [options] Override http request option.
12727
11504
  * @throws {RequiredError}
12728
- * @memberof ClubSettingsStaffApi
11505
+ * @memberof ClubSettingsManagerApi
12729
11506
  */
12730
- public getReservationSettings(options?: RawAxiosRequestConfig) {
12731
- return ClubSettingsStaffApiFp(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
11507
+ public updateClubSettings(requestParameters: ClubSettingsManagerApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig) {
11508
+ return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
12732
11509
  }
12733
11510
  }
12734
11511
 
@@ -13734,6 +12511,49 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
13734
12511
  options: localVarRequestOptions,
13735
12512
  };
13736
12513
  },
12514
+ /**
12515
+ *
12516
+ * @param {string} userId
12517
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
12518
+ * @param {*} [options] Override http request option.
12519
+ * @throws {RequiredError}
12520
+ */
12521
+ addCreditsToCustomer: async (userId: string, addCreditsToCustomerRequest: AddCreditsToCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12522
+ // verify required parameter 'userId' is not null or undefined
12523
+ assertParamExists('addCreditsToCustomer', 'userId', userId)
12524
+ // verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
12525
+ assertParamExists('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest)
12526
+ const localVarPath = `/api/clubs/customers/{userId}/credits`
12527
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
12528
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12529
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12530
+ let baseOptions;
12531
+ if (configuration) {
12532
+ baseOptions = configuration.baseOptions;
12533
+ }
12534
+
12535
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12536
+ const localVarHeaderParameter = {} as any;
12537
+ const localVarQueryParameter = {} as any;
12538
+
12539
+ // authentication bearerAuth required
12540
+ // http bearer authentication required
12541
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12542
+
12543
+
12544
+
12545
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12546
+
12547
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12548
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12549
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12550
+ localVarRequestOptions.data = serializeDataIfNeeded(addCreditsToCustomerRequest, localVarRequestOptions, configuration)
12551
+
12552
+ return {
12553
+ url: toPathString(localVarUrlObj),
12554
+ options: localVarRequestOptions,
12555
+ };
12556
+ },
13737
12557
  /**
13738
12558
  *
13739
12559
  * @param {string} priceId
@@ -14307,45 +13127,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
14307
13127
  options: localVarRequestOptions,
14308
13128
  };
14309
13129
  },
14310
- /**
14311
- *
14312
- * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
14313
- * @param {*} [options] Override http request option.
14314
- * @throws {RequiredError}
14315
- */
14316
- updateClubPresentationSettings: async (updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14317
- // verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
14318
- assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest)
14319
- const localVarPath = `/api/clubs/settings/presentation`;
14320
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
14321
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14322
- let baseOptions;
14323
- if (configuration) {
14324
- baseOptions = configuration.baseOptions;
14325
- }
14326
-
14327
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14328
- const localVarHeaderParameter = {} as any;
14329
- const localVarQueryParameter = {} as any;
14330
-
14331
- // authentication bearerAuth required
14332
- // http bearer authentication required
14333
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
14334
-
14335
-
14336
-
14337
- localVarHeaderParameter['Content-Type'] = 'application/json';
14338
-
14339
- setSearchParams(localVarUrlObj, localVarQueryParameter);
14340
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14341
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14342
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration)
14343
-
14344
- return {
14345
- url: toPathString(localVarUrlObj),
14346
- options: localVarRequestOptions,
14347
- };
14348
- },
14349
13130
  /**
14350
13131
  *
14351
13132
  * @param {string} courtId
@@ -14454,6 +13235,19 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
14454
13235
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.addClubMember']?.[localVarOperationServerIndex]?.url;
14455
13236
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14456
13237
  },
13238
+ /**
13239
+ *
13240
+ * @param {string} userId
13241
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
13242
+ * @param {*} [options] Override http request option.
13243
+ * @throws {RequiredError}
13244
+ */
13245
+ async addCreditsToCustomer(userId: string, addCreditsToCustomerRequest: AddCreditsToCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddCreditsToCustomer200Response>> {
13246
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
13247
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13248
+ const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.addCreditsToCustomer']?.[localVarOperationServerIndex]?.url;
13249
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13250
+ },
14457
13251
  /**
14458
13252
  *
14459
13253
  * @param {string} priceId
@@ -14635,18 +13429,6 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
14635
13429
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.updateClubInfos']?.[localVarOperationServerIndex]?.url;
14636
13430
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14637
13431
  },
14638
- /**
14639
- *
14640
- * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
14641
- * @param {*} [options] Override http request option.
14642
- * @throws {RequiredError}
14643
- */
14644
- async updateClubPresentationSettings(updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
14645
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
14646
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14647
- const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']?.[localVarOperationServerIndex]?.url;
14648
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14649
- },
14650
13432
  /**
14651
13433
  *
14652
13434
  * @param {string} courtId
@@ -14692,6 +13474,15 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
14692
13474
  addClubMember(requestParameters: ClubsManagerApiAddClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response> {
14693
13475
  return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
14694
13476
  },
13477
+ /**
13478
+ *
13479
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
13480
+ * @param {*} [options] Override http request option.
13481
+ * @throws {RequiredError}
13482
+ */
13483
+ addCreditsToCustomer(requestParameters: ClubsManagerApiAddCreditsToCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddCreditsToCustomer200Response> {
13484
+ return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
13485
+ },
14695
13486
  /**
14696
13487
  *
14697
13488
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -14826,15 +13617,6 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
14826
13617
  updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {
14827
13618
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
14828
13619
  },
14829
- /**
14830
- *
14831
- * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
14832
- * @param {*} [options] Override http request option.
14833
- * @throws {RequiredError}
14834
- */
14835
- updateClubPresentationSettings(requestParameters: ClubsManagerApiUpdateClubPresentationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
14836
- return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
14837
- },
14838
13620
  /**
14839
13621
  *
14840
13622
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -14870,6 +13652,27 @@ export interface ClubsManagerApiAddClubMemberRequest {
14870
13652
  readonly addClubMemberRequest: AddClubMemberRequest
14871
13653
  }
14872
13654
 
13655
+ /**
13656
+ * Request parameters for addCreditsToCustomer operation in ClubsManagerApi.
13657
+ * @export
13658
+ * @interface ClubsManagerApiAddCreditsToCustomerRequest
13659
+ */
13660
+ export interface ClubsManagerApiAddCreditsToCustomerRequest {
13661
+ /**
13662
+ *
13663
+ * @type {string}
13664
+ * @memberof ClubsManagerApiAddCreditsToCustomer
13665
+ */
13666
+ readonly userId: string
13667
+
13668
+ /**
13669
+ *
13670
+ * @type {AddCreditsToCustomerRequest}
13671
+ * @memberof ClubsManagerApiAddCreditsToCustomer
13672
+ */
13673
+ readonly addCreditsToCustomerRequest: AddCreditsToCustomerRequest
13674
+ }
13675
+
14873
13676
  /**
14874
13677
  * Request parameters for archivePriceForSubscriptionPlan operation in ClubsManagerApi.
14875
13678
  * @export
@@ -15080,20 +13883,6 @@ export interface ClubsManagerApiUpdateClubInfosRequest {
15080
13883
  readonly body: any
15081
13884
  }
15082
13885
 
15083
- /**
15084
- * Request parameters for updateClubPresentationSettings operation in ClubsManagerApi.
15085
- * @export
15086
- * @interface ClubsManagerApiUpdateClubPresentationSettingsRequest
15087
- */
15088
- export interface ClubsManagerApiUpdateClubPresentationSettingsRequest {
15089
- /**
15090
- *
15091
- * @type {UpdateClubPresentationSettingsRequest}
15092
- * @memberof ClubsManagerApiUpdateClubPresentationSettings
15093
- */
15094
- readonly updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest
15095
- }
15096
-
15097
13886
  /**
15098
13887
  * Request parameters for updateCourt operation in ClubsManagerApi.
15099
13888
  * @export
@@ -15154,6 +13943,17 @@ export class ClubsManagerApi extends BaseAPI {
15154
13943
  return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
15155
13944
  }
15156
13945
 
13946
+ /**
13947
+ *
13948
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
13949
+ * @param {*} [options] Override http request option.
13950
+ * @throws {RequiredError}
13951
+ * @memberof ClubsManagerApi
13952
+ */
13953
+ public addCreditsToCustomer(requestParameters: ClubsManagerApiAddCreditsToCustomerRequest, options?: RawAxiosRequestConfig) {
13954
+ return ClubsManagerApiFp(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
13955
+ }
13956
+
15157
13957
  /**
15158
13958
  *
15159
13959
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -15318,17 +14118,6 @@ export class ClubsManagerApi extends BaseAPI {
15318
14118
  return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
15319
14119
  }
15320
14120
 
15321
- /**
15322
- *
15323
- * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
15324
- * @param {*} [options] Override http request option.
15325
- * @throws {RequiredError}
15326
- * @memberof ClubsManagerApi
15327
- */
15328
- public updateClubPresentationSettings(requestParameters: ClubsManagerApiUpdateClubPresentationSettingsRequest, options?: RawAxiosRequestConfig) {
15329
- return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
15330
- }
15331
-
15332
14121
  /**
15333
14122
  *
15334
14123
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -15450,39 +14239,6 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
15450
14239
 
15451
14240
 
15452
14241
 
15453
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15454
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15455
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15456
-
15457
- return {
15458
- url: toPathString(localVarUrlObj),
15459
- options: localVarRequestOptions,
15460
- };
15461
- },
15462
- /**
15463
- *
15464
- * @param {*} [options] Override http request option.
15465
- * @throws {RequiredError}
15466
- */
15467
- getClubPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15468
- const localVarPath = `/api/clubs/settings/presentation`;
15469
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15470
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15471
- let baseOptions;
15472
- if (configuration) {
15473
- baseOptions = configuration.baseOptions;
15474
- }
15475
-
15476
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15477
- const localVarHeaderParameter = {} as any;
15478
- const localVarQueryParameter = {} as any;
15479
-
15480
- // authentication bearerAuth required
15481
- // http bearer authentication required
15482
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
15483
-
15484
-
15485
-
15486
14242
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15487
14243
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15488
14244
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -15671,17 +14427,6 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
15671
14427
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubMembers']?.[localVarOperationServerIndex]?.url;
15672
14428
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15673
14429
  },
15674
- /**
15675
- *
15676
- * @param {*} [options] Override http request option.
15677
- * @throws {RequiredError}
15678
- */
15679
- async getClubPresentationSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
15680
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPresentationSettings(options);
15681
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15682
- const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubPresentationSettings']?.[localVarOperationServerIndex]?.url;
15683
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15684
- },
15685
14430
  /**
15686
14431
  * Récupère les rôles d\'un club
15687
14432
  * @param {*} [options] Override http request option.
@@ -15761,14 +14506,6 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
15761
14506
  getClubMembers(options?: RawAxiosRequestConfig): AxiosPromise<GetClubMembers200Response> {
15762
14507
  return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
15763
14508
  },
15764
- /**
15765
- *
15766
- * @param {*} [options] Override http request option.
15767
- * @throws {RequiredError}
15768
- */
15769
- getClubPresentationSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
15770
- return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
15771
- },
15772
14509
  /**
15773
14510
  * Récupère les rôles d\'un club
15774
14511
  * @param {*} [options] Override http request option.
@@ -15856,16 +14593,6 @@ export class ClubsStaffApi extends BaseAPI {
15856
14593
  return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
15857
14594
  }
15858
14595
 
15859
- /**
15860
- *
15861
- * @param {*} [options] Override http request option.
15862
- * @throws {RequiredError}
15863
- * @memberof ClubsStaffApi
15864
- */
15865
- public getClubPresentationSettings(options?: RawAxiosRequestConfig) {
15866
- return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
15867
- }
15868
-
15869
14596
  /**
15870
14597
  * Récupère les rôles d\'un club
15871
14598
  * @param {*} [options] Override http request option.
@@ -18937,6 +17664,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
18937
17664
 
18938
17665
 
18939
17666
 
17667
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17668
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17669
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17670
+
17671
+ return {
17672
+ url: toPathString(localVarUrlObj),
17673
+ options: localVarRequestOptions,
17674
+ };
17675
+ },
17676
+ /**
17677
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
17678
+ * @param {*} [options] Override http request option.
17679
+ * @throws {RequiredError}
17680
+ */
17681
+ getMyClubMemberships: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17682
+ const localVarPath = `/api/users/me/club-memberships`;
17683
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17684
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17685
+ let baseOptions;
17686
+ if (configuration) {
17687
+ baseOptions = configuration.baseOptions;
17688
+ }
17689
+
17690
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17691
+ const localVarHeaderParameter = {} as any;
17692
+ const localVarQueryParameter = {} as any;
17693
+
17694
+ // authentication bearerAuth required
17695
+ // http bearer authentication required
17696
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17697
+
17698
+
17699
+
18940
17700
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18941
17701
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18942
17702
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20044,6 +18804,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
20044
18804
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getMe']?.[localVarOperationServerIndex]?.url;
20045
18805
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20046
18806
  },
18807
+ /**
18808
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
18809
+ * @param {*} [options] Override http request option.
18810
+ * @throws {RequiredError}
18811
+ */
18812
+ async getMyClubMemberships(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserClubMembershipsResponse>> {
18813
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClubMemberships(options);
18814
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18815
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.getMyClubMemberships']?.[localVarOperationServerIndex]?.url;
18816
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18817
+ },
20047
18818
  /**
20048
18819
  *
20049
18820
  * @param {number} [radiusInKm]
@@ -20451,6 +19222,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
20451
19222
  getMe(options?: RawAxiosRequestConfig): AxiosPromise<UserProfileResponse> {
20452
19223
  return localVarFp.getMe(options).then((request) => request(axios, basePath));
20453
19224
  },
19225
+ /**
19226
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
19227
+ * @param {*} [options] Override http request option.
19228
+ * @throws {RequiredError}
19229
+ */
19230
+ getMyClubMemberships(options?: RawAxiosRequestConfig): AxiosPromise<UserClubMembershipsResponse> {
19231
+ return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
19232
+ },
20454
19233
  /**
20455
19234
  *
20456
19235
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -21294,6 +20073,16 @@ export class UsersApi extends BaseAPI {
21294
20073
  return UsersApiFp(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
21295
20074
  }
21296
20075
 
20076
+ /**
20077
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
20078
+ * @param {*} [options] Override http request option.
20079
+ * @throws {RequiredError}
20080
+ * @memberof UsersApi
20081
+ */
20082
+ public getMyClubMemberships(options?: RawAxiosRequestConfig) {
20083
+ return UsersApiFp(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
20084
+ }
20085
+
21297
20086
  /**
21298
20087
  *
21299
20088
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.