@tennac-booking/sdk 1.0.90 → 1.0.92

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 (53) hide show
  1. package/.openapi-generator/FILES +9 -25
  2. package/README.md +15 -37
  3. package/api.ts +791 -1990
  4. package/dist/api.d.ts +527 -1428
  5. package/dist/api.js +237 -719
  6. package/dist/esm/api.d.ts +527 -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/BookingPlayerPaymentSummary.md +2 -0
  11. package/docs/BookingPopulated.md +3 -3
  12. package/docs/BookingSummary.md +2 -0
  13. package/docs/ClubAnalyticsStaffApi.md +0 -173
  14. package/docs/ClubSettingsManagerApi.md +60 -54
  15. package/docs/ClubSettingsResponse.md +39 -0
  16. package/docs/ClubsManagerApi.md +58 -52
  17. package/docs/ClubsStaffApi.md +0 -44
  18. package/docs/CreateClubSettingsRequest.md +34 -0
  19. package/docs/CreateEventRequest.md +1 -3
  20. package/docs/DeleteClubSettingsResponse.md +20 -0
  21. package/docs/EventResponse.md +1 -1
  22. package/docs/EventResponseCourtsInner.md +18 -0
  23. package/docs/SlotInfo.md +2 -2
  24. package/docs/UpdateClubSettingsRequest.md +32 -0
  25. package/docs/UpdateEventRequest.md +1 -1
  26. package/docs/UserClubMembership.md +34 -0
  27. package/docs/UserClubMembershipsResponse.md +20 -0
  28. package/docs/UsersApi.md +46 -0
  29. package/package.json +1 -1
  30. package/docs/ClubGeneralSettingsResponse.md +0 -32
  31. package/docs/ClubHoursSettingsResponse.md +0 -22
  32. package/docs/ClubLocationSettings.md +0 -26
  33. package/docs/ClubPlayerBookingItem.md +0 -36
  34. package/docs/ClubPlayerBookingsPagination.md +0 -28
  35. package/docs/ClubPlayerBookingsResponse.md +0 -24
  36. package/docs/ClubPlayerDetailResponse.md +0 -46
  37. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  38. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  39. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  40. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  41. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  42. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  43. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  44. package/docs/ClubPresentationSettingsResponse.md +0 -26
  45. package/docs/ClubPricingPeriodResponse.md +0 -30
  46. package/docs/ClubReservationSettingsResponse.md +0 -28
  47. package/docs/ClubSettingsStaffApi.md +0 -183
  48. package/docs/ClubWeeklySchedule.md +0 -32
  49. package/docs/PartialClubWeeklySchedule.md +0 -33
  50. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  51. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  52. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  53. 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
@@ -542,6 +574,12 @@ export interface BookingPlayerPaymentSummary {
542
574
  * @memberof BookingPlayerPaymentSummary
543
575
  */
544
576
  'invoiceStatus'?: InvoiceStatus | null;
577
+ /**
578
+ *
579
+ * @type {string}
580
+ * @memberof BookingPlayerPaymentSummary
581
+ */
582
+ 'invoicePaymentUrl'?: string | null;
545
583
  /**
546
584
  *
547
585
  * @type {boolean}
@@ -576,17 +614,11 @@ export interface BookingPopulated {
576
614
  */
577
615
  'creator': UserInfo;
578
616
  /**
579
- *
580
- * @type {SlotInfo}
581
- * @memberof BookingPopulated
582
- */
583
- 'slotInfos': SlotInfo;
584
- /**
585
- *
586
- * @type {Array<UserInfo>}
617
+ * Information(s) des créneaux
618
+ * @type {Array<SlotInfo>}
587
619
  * @memberof BookingPopulated
588
620
  */
589
- 'players': Array<UserInfo>;
621
+ 'slotInfos': Array<SlotInfo>;
590
622
  /**
591
623
  * Statut des paiements par joueur
592
624
  * @type {Array<PaymentByPlayerInfo>}
@@ -617,6 +649,12 @@ export interface BookingPopulated {
617
649
  * @memberof BookingPopulated
618
650
  */
619
651
  'isCreatorPayingAll': boolean;
652
+ /**
653
+ *
654
+ * @type {Array<string>}
655
+ * @memberof BookingPopulated
656
+ */
657
+ 'playersIds': Array<string>;
620
658
  /**
621
659
  *
622
660
  * @type {Array<BookingHistoryPopulated>}
@@ -1017,6 +1055,12 @@ export interface BookingSummary {
1017
1055
  * @memberof BookingSummary
1018
1056
  */
1019
1057
  'myAmountToPay': number;
1058
+ /**
1059
+ *
1060
+ * @type {string}
1061
+ * @memberof BookingSummary
1062
+ */
1063
+ 'myPaymentLink'?: string | null;
1020
1064
  /**
1021
1065
  *
1022
1066
  * @type {number}
@@ -1278,124 +1322,6 @@ export interface CheckedInPlayer {
1278
1322
  }
1279
1323
 
1280
1324
 
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
1325
  /**
1400
1326
  *
1401
1327
  * @export
@@ -1455,706 +1381,152 @@ export interface ClubMemberResponseUser {
1455
1381
  /**
1456
1382
  *
1457
1383
  * @export
1458
- * @interface ClubPlayerBookingItem
1384
+ * @interface ClubPlayerResponse
1459
1385
  */
1460
- export interface ClubPlayerBookingItem {
1386
+ export interface ClubPlayerResponse {
1461
1387
  /**
1462
- * ID de la réservation
1388
+ * ID de l\'utilisateur
1463
1389
  * @type {string}
1464
- * @memberof ClubPlayerBookingItem
1390
+ * @memberof ClubPlayerResponse
1465
1391
  */
1466
1392
  'id': string;
1467
1393
  /**
1468
- * Date de début de la réservation
1394
+ * Prénom
1469
1395
  * @type {string}
1470
- * @memberof ClubPlayerBookingItem
1396
+ * @memberof ClubPlayerResponse
1471
1397
  */
1472
- 'startDate': string | null;
1398
+ 'firstName': string;
1473
1399
  /**
1474
- * Date de fin de la réservation
1400
+ * Nom
1475
1401
  * @type {string}
1476
- * @memberof ClubPlayerBookingItem
1402
+ * @memberof ClubPlayerResponse
1477
1403
  */
1478
- 'endDate': string | null;
1404
+ 'lastName': string;
1479
1405
  /**
1480
- * Nom du terrain ou emplacement
1406
+ * Genre
1481
1407
  * @type {string}
1482
- * @memberof ClubPlayerBookingItem
1408
+ * @memberof ClubPlayerResponse
1483
1409
  */
1484
- 'location': string | null;
1410
+ 'gender'?: string;
1485
1411
  /**
1486
- * Nom du sport associé
1412
+ * Email
1487
1413
  * @type {string}
1488
- * @memberof ClubPlayerBookingItem
1414
+ * @memberof ClubPlayerResponse
1489
1415
  */
1490
- 'sport': string | null;
1416
+ 'email': string;
1491
1417
  /**
1492
- * Statut de la réservation
1418
+ * Photo de profil
1493
1419
  * @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
1420
+ * @memberof ClubPlayerResponse
1501
1421
  */
1502
- 'totalPrice': number;
1422
+ 'profilePicture'?: string;
1503
1423
  /**
1504
- * Indique si le joueur est le créateur de la réservation
1424
+ * Compte vérifié
1505
1425
  * @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
1426
+ * @memberof ClubPlayerResponse
1544
1427
  */
1545
- 'totalPages': number;
1428
+ 'isAccountVerified': boolean;
1546
1429
  /**
1547
- * Existence d\'une page suivante
1430
+ * Profil visible
1548
1431
  * @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
1432
+ * @memberof ClubPlayerResponse
1569
1433
  */
1570
- 'pastBookings': Array<ClubPlayerBookingItem>;
1434
+ 'isProfileVisible': boolean;
1571
1435
  /**
1572
- *
1573
- * @type {ClubPlayerBookingsPagination}
1574
- * @memberof ClubPlayerBookingsResponse
1436
+ * Abonné au club
1437
+ * @type {boolean}
1438
+ * @memberof ClubPlayerResponse
1575
1439
  */
1576
- 'pastPagination'?: ClubPlayerBookingsPagination;
1440
+ 'isSubscribedToClub': boolean;
1577
1441
  }
1578
1442
  /**
1579
1443
  *
1580
1444
  * @export
1581
- * @interface ClubPlayerDetailResponse
1445
+ * @interface ClubResponse
1582
1446
  */
1583
- export interface ClubPlayerDetailResponse {
1447
+ export interface ClubResponse {
1584
1448
  /**
1585
- * ID du joueur
1449
+ * ID unique du club
1586
1450
  * @type {string}
1587
- * @memberof ClubPlayerDetailResponse
1451
+ * @memberof ClubResponse
1588
1452
  */
1589
1453
  'id': string;
1590
1454
  /**
1591
- * Nom complet
1455
+ * Nom du club
1592
1456
  * @type {string}
1593
- * @memberof ClubPlayerDetailResponse
1457
+ * @memberof ClubResponse
1594
1458
  */
1595
1459
  'name': string;
1596
1460
  /**
1597
- * Prénom
1461
+ * URL du site web du club
1598
1462
  * @type {string}
1599
- * @memberof ClubPlayerDetailResponse
1463
+ * @memberof ClubResponse
1600
1464
  */
1601
- 'firstName': string;
1465
+ 'websiteUrl'?: string;
1602
1466
  /**
1603
- * Nom
1467
+ * Description du club
1604
1468
  * @type {string}
1605
- * @memberof ClubPlayerDetailResponse
1469
+ * @memberof ClubResponse
1606
1470
  */
1607
- 'lastName': string;
1471
+ 'description'?: string;
1608
1472
  /**
1609
- * Email
1473
+ * Email du club
1610
1474
  * @type {string}
1611
- * @memberof ClubPlayerDetailResponse
1475
+ * @memberof ClubResponse
1612
1476
  */
1613
- 'email': string;
1477
+ 'email'?: string;
1614
1478
  /**
1615
- * Numéro de téléphone
1479
+ * Téléphone du club
1616
1480
  * @type {string}
1617
- * @memberof ClubPlayerDetailResponse
1481
+ * @memberof ClubResponse
1618
1482
  */
1619
- 'phoneNumber': string | null;
1483
+ 'phone'?: string;
1620
1484
  /**
1621
- * URL de la photo de profil
1485
+ * URL de l\'image du club
1622
1486
  * @type {string}
1623
- * @memberof ClubPlayerDetailResponse
1487
+ * @memberof ClubResponse
1624
1488
  */
1625
- 'profilePictureUrl': string | null;
1489
+ 'picture'?: string;
1626
1490
  /**
1627
- * Compte vérifié
1628
- * @type {boolean}
1629
- * @memberof ClubPlayerDetailResponse
1491
+ *
1492
+ * @type {ClubResponseLocation}
1493
+ * @memberof ClubResponse
1630
1494
  */
1631
- 'isAccountVerified': boolean;
1495
+ 'location'?: ClubResponseLocation;
1632
1496
  /**
1633
- * Abonnements au club courant
1634
- * @type {Array<ClubPlayerSubscriptionSummary>}
1635
- * @memberof ClubPlayerDetailResponse
1497
+ * Statut d\'activation du club
1498
+ * @type {boolean}
1499
+ * @memberof ClubResponse
1636
1500
  */
1637
- 'subscriptionsToMyClub': Array<ClubPlayerSubscriptionSummary>;
1501
+ 'isActive': boolean;
1638
1502
  /**
1639
- * Description du profil
1640
- * @type {string}
1641
- * @memberof ClubPlayerDetailResponse
1503
+ * Indique si le club utilise la fonctionnalité de paiement
1504
+ * @type {boolean}
1505
+ * @memberof ClubResponse
1642
1506
  */
1643
- 'profileDescription': string | null;
1507
+ 'paymentFeature'?: boolean;
1644
1508
  /**
1645
- * Genre
1509
+ * ID du compte Stripe du club
1646
1510
  * @type {string}
1647
- * @memberof ClubPlayerDetailResponse
1511
+ * @memberof ClubResponse
1648
1512
  */
1649
- 'gender': string | null;
1513
+ 'stripeAccountId'?: string;
1650
1514
  /**
1651
- * Ville
1515
+ * URL du dashboard Stripe du club
1652
1516
  * @type {string}
1653
- * @memberof ClubPlayerDetailResponse
1517
+ * @memberof ClubResponse
1654
1518
  */
1655
- 'city': string | null;
1519
+ 'clubDashBoardUrl'?: string;
1656
1520
  /**
1657
- * Niveaux par sport
1658
- * @type {Array<ClubPlayerDetailResponseSportsLevelsInner>}
1659
- * @memberof ClubPlayerDetailResponse
1521
+ * Indique si la fonctionnalité \"no show\" est activée
1522
+ * @type {boolean}
1523
+ * @memberof ClubResponse
1660
1524
  */
1661
- 'sportsLevels': Array<ClubPlayerDetailResponseSportsLevelsInner>;
1525
+ 'isNoShowEnabled'?: boolean;
1662
1526
  /**
1663
- * Date de naissance
1664
- * @type {string}
1665
- * @memberof ClubPlayerDetailResponse
1666
- */
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
1527
+ * Liste des sports proposés par le club (identifiés par leur clé)
1528
+ * @type {Array<string>}
1529
+ * @memberof ClubResponse
2158
1530
  */
2159
1531
  'sports'?: Array<string>;
2160
1532
  /**
@@ -2297,31 +1669,98 @@ export interface ClubRoleResponse {
2297
1669
  /**
2298
1670
  * Droits associés
2299
1671
  * @type {Array<string>}
2300
- * @memberof ClubRoleResponse
1672
+ * @memberof ClubRoleResponse
1673
+ */
1674
+ 'rights': Array<string>;
1675
+ /**
1676
+ * Date de création
1677
+ * @type {string}
1678
+ * @memberof ClubRoleResponse
1679
+ */
1680
+ 'createdAt': string;
1681
+ /**
1682
+ * Date de mise à jour
1683
+ * @type {string}
1684
+ * @memberof ClubRoleResponse
1685
+ */
1686
+ 'updatedAt': string;
1687
+ }
1688
+
1689
+ export const ClubRoleResponseRoleEnum = {
1690
+ Admin: 'admin',
1691
+ Manager: 'manager',
1692
+ Staff: 'staff'
1693
+ } as const;
1694
+
1695
+ export type ClubRoleResponseRoleEnum = typeof ClubRoleResponseRoleEnum[keyof typeof ClubRoleResponseRoleEnum];
1696
+
1697
+ /**
1698
+ * Types TSOA pour les paramètres du club
1699
+ * @export
1700
+ * @interface ClubSettingsResponse
1701
+ */
1702
+ export interface ClubSettingsResponse {
1703
+ /**
1704
+ * ID unique des paramètres
1705
+ * @type {string}
1706
+ * @memberof ClubSettingsResponse
1707
+ */
1708
+ '_id': string;
1709
+ /**
1710
+ * ID du club
1711
+ * @type {string}
1712
+ * @memberof ClubSettingsResponse
1713
+ */
1714
+ 'clubId': string;
1715
+ /**
1716
+ * Nombre maximum de réservations par semaine
1717
+ * @type {number}
1718
+ * @memberof ClubSettingsResponse
1719
+ */
1720
+ 'maxWeeklyBookings': number;
1721
+ /**
1722
+ * Limite de réservations simultanées
1723
+ * @type {number}
1724
+ * @memberof ClubSettingsResponse
1725
+ */
1726
+ 'sameTimeBookingsLimit'?: number;
1727
+ /**
1728
+ * Limite d\'annulation en heures
1729
+ * @type {number}
1730
+ * @memberof ClubSettingsResponse
1731
+ */
1732
+ 'cancellationLimitHours': number;
1733
+ /**
1734
+ * Période de disponibilité en jours
1735
+ * @type {number}
1736
+ * @memberof ClubSettingsResponse
1737
+ */
1738
+ 'availabilityPeriodInDays': number;
1739
+ /**
1740
+ * Liste des sponsors
1741
+ * @type {Array<string>}
1742
+ * @memberof ClubSettingsResponse
2301
1743
  */
2302
- 'rights': Array<string>;
1744
+ 'sponsors': Array<string>;
1745
+ /**
1746
+ * Temps avant paiement en minutes
1747
+ * @type {number}
1748
+ * @memberof ClubSettingsResponse
1749
+ */
1750
+ 'timeBeforePayment': number;
2303
1751
  /**
2304
1752
  * Date de création
2305
1753
  * @type {string}
2306
- * @memberof ClubRoleResponse
1754
+ * @memberof ClubSettingsResponse
2307
1755
  */
2308
1756
  'createdAt': string;
2309
1757
  /**
2310
1758
  * Date de mise à jour
2311
1759
  * @type {string}
2312
- * @memberof ClubRoleResponse
1760
+ * @memberof ClubSettingsResponse
2313
1761
  */
2314
1762
  'updatedAt': string;
2315
1763
  }
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
1764
  /**
2326
1765
  *
2327
1766
  * @export
@@ -2403,55 +1842,6 @@ export interface ClubUserCountResponse {
2403
1842
  */
2404
1843
  'count': number;
2405
1844
  }
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
1845
  /**
2456
1846
  *
2457
1847
  * @export
@@ -2704,6 +2094,61 @@ export const CreateClubRoleRequestRoleEnum = {
2704
2094
 
2705
2095
  export type CreateClubRoleRequestRoleEnum = typeof CreateClubRoleRequestRoleEnum[keyof typeof CreateClubRoleRequestRoleEnum];
2706
2096
 
2097
+ /**
2098
+ *
2099
+ * @export
2100
+ * @interface CreateClubSettingsRequest
2101
+ */
2102
+ export interface CreateClubSettingsRequest {
2103
+ /**
2104
+ * ID du club
2105
+ * @type {string}
2106
+ * @memberof CreateClubSettingsRequest
2107
+ */
2108
+ 'clubId': string;
2109
+ /**
2110
+ * Nombre maximum de réservations par semaine
2111
+ * @type {number}
2112
+ * @memberof CreateClubSettingsRequest
2113
+ */
2114
+ 'maxWeeklyBookings'?: number;
2115
+ /**
2116
+ * Autoriser plusieurs réservations en même temps
2117
+ * @type {boolean}
2118
+ * @memberof CreateClubSettingsRequest
2119
+ */
2120
+ 'allowMultipleBookingsAtTheSameTime'?: boolean;
2121
+ /**
2122
+ * Limite de réservations simultanées
2123
+ * @type {number}
2124
+ * @memberof CreateClubSettingsRequest
2125
+ */
2126
+ 'sameTimeBookingsLimit'?: number;
2127
+ /**
2128
+ * Limite d\'annulation en heures
2129
+ * @type {number}
2130
+ * @memberof CreateClubSettingsRequest
2131
+ */
2132
+ 'cancellationLimitHours'?: number;
2133
+ /**
2134
+ * Période de disponibilité en jours
2135
+ * @type {number}
2136
+ * @memberof CreateClubSettingsRequest
2137
+ */
2138
+ 'availabilityPeriodInDays'?: number;
2139
+ /**
2140
+ * Liste des sponsors
2141
+ * @type {Array<string>}
2142
+ * @memberof CreateClubSettingsRequest
2143
+ */
2144
+ 'sponsors'?: Array<string>;
2145
+ /**
2146
+ * Temps avant paiement en minutes
2147
+ * @type {number}
2148
+ * @memberof CreateClubSettingsRequest
2149
+ */
2150
+ 'timeBeforePayment'?: number;
2151
+ }
2707
2152
  /**
2708
2153
  *
2709
2154
  * @export
@@ -2816,10 +2261,10 @@ export interface CreateEventRequest {
2816
2261
  'endDate': string;
2817
2262
  /**
2818
2263
  *
2819
- * @type {Array<string>}
2264
+ * @type {Array<EventResponseCourtsInner>}
2820
2265
  * @memberof CreateEventRequest
2821
2266
  */
2822
- 'courts': Array<string>;
2267
+ 'courts': Array<EventResponseCourtsInner>;
2823
2268
  /**
2824
2269
  *
2825
2270
  * @type {Array<string>}
@@ -2880,12 +2325,6 @@ export interface CreateEventRequest {
2880
2325
  * @memberof CreateEventRequest
2881
2326
  */
2882
2327
  'subscriberPrices'?: Array<SubscriberPrice>;
2883
- /**
2884
- *
2885
- * @type {Array<number>}
2886
- * @memberof CreateEventRequest
2887
- */
2888
- 'levels'?: Array<number>;
2889
2328
  /**
2890
2329
  *
2891
2330
  * @type {string}
@@ -3187,6 +2626,19 @@ export interface DeleteClubRoleResponse {
3187
2626
  */
3188
2627
  'message': string;
3189
2628
  }
2629
+ /**
2630
+ *
2631
+ * @export
2632
+ * @interface DeleteClubSettingsResponse
2633
+ */
2634
+ export interface DeleteClubSettingsResponse {
2635
+ /**
2636
+ * Message de confirmation
2637
+ * @type {string}
2638
+ * @memberof DeleteClubSettingsResponse
2639
+ */
2640
+ 'message': string;
2641
+ }
3190
2642
  /**
3191
2643
  *
3192
2644
  * @export
@@ -3311,10 +2763,10 @@ export interface EventResponse {
3311
2763
  'endDate': string;
3312
2764
  /**
3313
2765
  *
3314
- * @type {Array<string>}
2766
+ * @type {Array<EventResponseCourtsInner>}
3315
2767
  * @memberof EventResponse
3316
2768
  */
3317
- 'courts': Array<string>;
2769
+ 'courts': Array<EventResponseCourtsInner>;
3318
2770
  /**
3319
2771
  *
3320
2772
  * @type {Array<SportWithLevels>}
@@ -3435,6 +2887,13 @@ export const EventResponseVisibilityTypeEnum = {
3435
2887
 
3436
2888
  export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityTypeEnum[keyof typeof EventResponseVisibilityTypeEnum];
3437
2889
 
2890
+ /**
2891
+ *
2892
+ * @export
2893
+ * @interface EventResponseCourtsInner
2894
+ */
2895
+ export interface EventResponseCourtsInner {
2896
+ }
3438
2897
  /**
3439
2898
  *
3440
2899
  * @export
@@ -4757,55 +4216,6 @@ export interface PartialClubResponse {
4757
4216
  */
4758
4217
  'updatedAt'?: ClubResponseUpdatedAt;
4759
4218
  }
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
4219
  /**
4810
4220
  *
4811
4221
  * @export
@@ -5904,7 +5314,7 @@ export interface SlotInfo {
5904
5314
  * @type {CourtInfo}
5905
5315
  * @memberof SlotInfo
5906
5316
  */
5907
- 'court': CourtInfo;
5317
+ 'courtId': CourtInfo;
5908
5318
  }
5909
5319
  /**
5910
5320
  *
@@ -7726,111 +7136,6 @@ export interface UpdateActuality200Response {
7726
7136
  */
7727
7137
  'actuality': any;
7728
7138
  }
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
7139
  /**
7835
7140
  *
7836
7141
  * @export
@@ -7945,68 +7250,80 @@ export interface UpdateClubRequestLocationCoordinates {
7945
7250
  /**
7946
7251
  *
7947
7252
  * @export
7948
- * @interface UpdateClubReservationSettingsRequest
7253
+ * @interface UpdateClubRoleRequest
7949
7254
  */
7950
- export interface UpdateClubReservationSettingsRequest {
7255
+ export interface UpdateClubRoleRequest {
7951
7256
  /**
7952
- *
7953
- * @type {number}
7954
- * @memberof UpdateClubReservationSettingsRequest
7257
+ * Rôle (facultatif)
7258
+ * @type {string}
7259
+ * @memberof UpdateClubRoleRequest
7955
7260
  */
7956
- 'maxWeeklyBookings': number | null;
7261
+ 'role'?: UpdateClubRoleRequestRoleEnum;
7957
7262
  /**
7958
- *
7959
- * @type {boolean}
7960
- * @memberof UpdateClubReservationSettingsRequest
7263
+ * Droits (facultatif)
7264
+ * @type {Array<string>}
7265
+ * @memberof UpdateClubRoleRequest
7961
7266
  */
7962
- 'unlimitedWeeklyBookings': boolean;
7267
+ 'rights'?: Array<string>;
7268
+ }
7269
+
7270
+ export const UpdateClubRoleRequestRoleEnum = {
7271
+ Admin: 'admin',
7272
+ Manager: 'manager',
7273
+ Staff: 'staff'
7274
+ } as const;
7275
+
7276
+ export type UpdateClubRoleRequestRoleEnum = typeof UpdateClubRoleRequestRoleEnum[keyof typeof UpdateClubRoleRequestRoleEnum];
7277
+
7278
+ /**
7279
+ *
7280
+ * @export
7281
+ * @interface UpdateClubSettingsRequest
7282
+ */
7283
+ export interface UpdateClubSettingsRequest {
7963
7284
  /**
7964
- *
7285
+ * Nombre maximum de réservations par semaine
7965
7286
  * @type {number}
7966
- * @memberof UpdateClubReservationSettingsRequest
7287
+ * @memberof UpdateClubSettingsRequest
7967
7288
  */
7968
- 'sameTimeBookingsLimit': number;
7289
+ 'maxWeeklyBookings'?: number;
7969
7290
  /**
7970
- *
7291
+ * Autoriser plusieurs réservations en même temps
7292
+ * @type {boolean}
7293
+ * @memberof UpdateClubSettingsRequest
7294
+ */
7295
+ 'allowMultipleBookingsAtTheSameTime'?: boolean;
7296
+ /**
7297
+ * Limite de réservations simultanées
7971
7298
  * @type {number}
7972
- * @memberof UpdateClubReservationSettingsRequest
7299
+ * @memberof UpdateClubSettingsRequest
7973
7300
  */
7974
- 'cancellationDelayInHours': number;
7301
+ 'sameTimeBookingsLimit'?: number;
7975
7302
  /**
7976
- *
7303
+ * Limite d\'annulation en heures
7977
7304
  * @type {number}
7978
- * @memberof UpdateClubReservationSettingsRequest
7305
+ * @memberof UpdateClubSettingsRequest
7979
7306
  */
7980
- 'bookingPeriodInDays': number;
7981
- }
7982
- /**
7983
- *
7984
- * @export
7985
- * @interface UpdateClubRoleRequest
7986
- */
7987
- export interface UpdateClubRoleRequest {
7307
+ 'cancellationLimitHours'?: number;
7988
7308
  /**
7989
- * Rôle (facultatif)
7990
- * @type {string}
7991
- * @memberof UpdateClubRoleRequest
7309
+ * Période de disponibilité en jours
7310
+ * @type {number}
7311
+ * @memberof UpdateClubSettingsRequest
7992
7312
  */
7993
- 'role'?: UpdateClubRoleRequestRoleEnum;
7313
+ 'availabilityPeriodInDays'?: number;
7994
7314
  /**
7995
- * Droits (facultatif)
7315
+ * Liste des sponsors
7996
7316
  * @type {Array<string>}
7997
- * @memberof UpdateClubRoleRequest
7317
+ * @memberof UpdateClubSettingsRequest
7318
+ */
7319
+ 'sponsors'?: Array<string>;
7320
+ /**
7321
+ * Temps avant paiement en minutes
7322
+ * @type {number}
7323
+ * @memberof UpdateClubSettingsRequest
7998
7324
  */
7999
- 'rights'?: Array<string>;
7325
+ 'timeBeforePayment'?: number;
8000
7326
  }
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
7327
  /**
8011
7328
  *
8012
7329
  * @export
@@ -8083,10 +7400,10 @@ export interface UpdateEventRequest {
8083
7400
  'endDate'?: string;
8084
7401
  /**
8085
7402
  *
8086
- * @type {Array<string>}
7403
+ * @type {Array<EventResponseCourtsInner>}
8087
7404
  * @memberof UpdateEventRequest
8088
7405
  */
8089
- 'courts'?: Array<string>;
7406
+ 'courts'?: Array<EventResponseCourtsInner>;
8090
7407
  /**
8091
7408
  *
8092
7409
  * @type {Array<string>}
@@ -8390,6 +7707,74 @@ export interface UserBookingsResponse {
8390
7707
  */
8391
7708
  'bookings': Array<BookingSummary>;
8392
7709
  }
7710
+ /**
7711
+ *
7712
+ * @export
7713
+ * @interface UserClubMembership
7714
+ */
7715
+ export interface UserClubMembership {
7716
+ /**
7717
+ *
7718
+ * @type {string}
7719
+ * @memberof UserClubMembership
7720
+ */
7721
+ 'clubId': string;
7722
+ /**
7723
+ *
7724
+ * @type {string}
7725
+ * @memberof UserClubMembership
7726
+ */
7727
+ 'clubName': string | null;
7728
+ /**
7729
+ *
7730
+ * @type {string}
7731
+ * @memberof UserClubMembership
7732
+ */
7733
+ 'clubPicture': string | null;
7734
+ /**
7735
+ *
7736
+ * @type {number}
7737
+ * @memberof UserClubMembership
7738
+ */
7739
+ 'bookingCount': number;
7740
+ /**
7741
+ *
7742
+ * @type {number}
7743
+ * @memberof UserClubMembership
7744
+ */
7745
+ 'credits': number;
7746
+ /**
7747
+ *
7748
+ * @type {string}
7749
+ * @memberof UserClubMembership
7750
+ */
7751
+ 'billingPortalUrl': string | null;
7752
+ /**
7753
+ *
7754
+ * @type {boolean}
7755
+ * @memberof UserClubMembership
7756
+ */
7757
+ 'hasActiveSubscription': boolean;
7758
+ /**
7759
+ *
7760
+ * @type {Array<UserClubSubscription>}
7761
+ * @memberof UserClubMembership
7762
+ */
7763
+ 'subscriptions': Array<UserClubSubscription>;
7764
+ }
7765
+ /**
7766
+ *
7767
+ * @export
7768
+ * @interface UserClubMembershipsResponse
7769
+ */
7770
+ export interface UserClubMembershipsResponse {
7771
+ /**
7772
+ *
7773
+ * @type {Array<UserClubMembership>}
7774
+ * @memberof UserClubMembershipsResponse
7775
+ */
7776
+ 'clubs': Array<UserClubMembership>;
7777
+ }
8393
7778
  /**
8394
7779
  *
8395
7780
  * @export
@@ -10475,127 +9860,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
10475
9860
 
10476
9861
 
10477
9862
 
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
9863
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10600
9864
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10601
9865
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10962,44 +10226,6 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
10962
10226
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getAnalyticsBySport']?.[localVarOperationServerIndex]?.url;
10963
10227
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10964
10228
  },
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
10229
  /**
11004
10230
  * Récupère la liste des joueurs du club
11005
10231
  * @param {*} [options] Override http request option.
@@ -11124,33 +10350,6 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
11124
10350
  getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportAnalyticsResponse> {
11125
10351
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
11126
10352
  },
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
10353
  /**
11155
10354
  * Récupère la liste des joueurs du club
11156
10355
  * @param {*} [options] Override http request option.
@@ -11244,62 +10443,6 @@ export interface ClubAnalyticsStaffApiGetAnalyticsBySportRequest {
11244
10443
  readonly sportId: string
11245
10444
  }
11246
10445
 
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
10446
  /**
11304
10447
  * Request parameters for getDailyTurnOver operation in ClubAnalyticsStaffApi.
11305
10448
  * @export
@@ -11374,51 +10517,18 @@ export interface ClubAnalyticsStaffApiGetYearlyTurnOverRequest {
11374
10517
  * ClubAnalyticsStaffApi - object-oriented interface
11375
10518
  * @export
11376
10519
  * @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
-
10520
+ * @extends {BaseAPI}
10521
+ */
10522
+ export class ClubAnalyticsStaffApi extends BaseAPI {
11413
10523
  /**
11414
- * Récupère les statistiques d\'un joueur pour le staff
11415
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
10524
+ * Récupère les analytics par sport
10525
+ * @param {ClubAnalyticsStaffApiGetAnalyticsBySportRequest} requestParameters Request parameters.
11416
10526
  * @param {*} [options] Override http request option.
11417
10527
  * @throws {RequiredError}
11418
10528
  * @memberof ClubAnalyticsStaffApi
11419
10529
  */
11420
- public getClubPlayerStatisticsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest, options?: RawAxiosRequestConfig) {
11421
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
10530
+ public getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig) {
10531
+ return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11422
10532
  }
11423
10533
 
11424
10534
  /**
@@ -11774,355 +10884,67 @@ export interface ClubRolesManagerApiUpdateClubRoleRequest {
11774
10884
  /**
11775
10885
  *
11776
10886
  * @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
10887
+ * @memberof ClubRolesManagerApiUpdateClubRole
12026
10888
  */
12027
- readonly id: string
10889
+ readonly updateClubRoleRequest: UpdateClubRoleRequest
12028
10890
  }
12029
10891
 
12030
10892
  /**
12031
- * ClubRolesStaffApi - object-oriented interface
10893
+ * ClubRolesManagerApi - object-oriented interface
12032
10894
  * @export
12033
- * @class ClubRolesStaffApi
10895
+ * @class ClubRolesManagerApi
12034
10896
  * @extends {BaseAPI}
12035
10897
  */
12036
- export class ClubRolesStaffApi extends BaseAPI {
10898
+ export class ClubRolesManagerApi extends BaseAPI {
12037
10899
  /**
12038
- * Récupère la liste des rôles d\'un club
10900
+ * Crée un rôle de club
10901
+ * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
12039
10902
  * @param {*} [options] Override http request option.
12040
10903
  * @throws {RequiredError}
12041
- * @memberof ClubRolesStaffApi
10904
+ * @memberof ClubRolesManagerApi
12042
10905
  */
12043
- public getAllClubRoles(options?: RawAxiosRequestConfig) {
12044
- return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
10906
+ public createClubRole(requestParameters: ClubRolesManagerApiCreateClubRoleRequest, options?: RawAxiosRequestConfig) {
10907
+ return ClubRolesManagerApiFp(this.configuration).createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
12045
10908
  }
12046
10909
 
12047
10910
  /**
12048
- * Récupère un rôle de club par ID
12049
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
10911
+ * Supprime un rôle de club
10912
+ * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
12050
10913
  * @param {*} [options] Override http request option.
12051
10914
  * @throws {RequiredError}
12052
- * @memberof ClubRolesStaffApi
10915
+ * @memberof ClubRolesManagerApi
12053
10916
  */
12054
- public getClubRoleById(requestParameters: ClubRolesStaffApiGetClubRoleByIdRequest, options?: RawAxiosRequestConfig) {
12055
- return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
10917
+ public deleteClubRole(requestParameters: ClubRolesManagerApiDeleteClubRoleRequest, options?: RawAxiosRequestConfig) {
10918
+ return ClubRolesManagerApiFp(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12056
10919
  }
12057
10920
 
12058
10921
  /**
12059
- *
10922
+ * Met à jour un rôle de club
10923
+ * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
12060
10924
  * @param {*} [options] Override http request option.
12061
10925
  * @throws {RequiredError}
12062
- * @memberof ClubRolesStaffApi
10926
+ * @memberof ClubRolesManagerApi
12063
10927
  */
12064
- public getUserRolesInClubs(options?: RawAxiosRequestConfig) {
12065
- return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
10928
+ public updateClubRole(requestParameters: ClubRolesManagerApiUpdateClubRoleRequest, options?: RawAxiosRequestConfig) {
10929
+ return ClubRolesManagerApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
12066
10930
  }
12067
10931
  }
12068
10932
 
12069
10933
 
12070
10934
 
12071
10935
  /**
12072
- * ClubSettingsManagerApi - axios parameter creator
10936
+ * ClubRolesStaffApi - axios parameter creator
12073
10937
  * @export
12074
10938
  */
12075
- export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
10939
+ export const ClubRolesStaffApiAxiosParamCreator = function (configuration?: Configuration) {
12076
10940
  return {
12077
10941
  /**
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
10942
+ * Récupère la liste des rôles d\'un club
12119
10943
  * @param {*} [options] Override http request option.
12120
10944
  * @throws {RequiredError}
12121
10945
  */
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`;
10946
+ getAllClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10947
+ const localVarPath = `/api/club-roles`;
12126
10948
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12127
10949
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12128
10950
  let baseOptions;
@@ -12130,7 +10952,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12130
10952
  baseOptions = configuration.baseOptions;
12131
10953
  }
12132
10954
 
12133
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
10955
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12134
10956
  const localVarHeaderParameter = {} as any;
12135
10957
  const localVarQueryParameter = {} as any;
12136
10958
 
@@ -12140,12 +10962,9 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12140
10962
 
12141
10963
 
12142
10964
 
12143
- localVarHeaderParameter['Content-Type'] = 'application/json';
12144
-
12145
10965
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12146
10966
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12147
10967
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12148
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration)
12149
10968
 
12150
10969
  return {
12151
10970
  url: toPathString(localVarUrlObj),
@@ -12153,15 +10972,16 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12153
10972
  };
12154
10973
  },
12155
10974
  /**
12156
- *
12157
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
10975
+ * Récupère un rôle de club par ID
10976
+ * @param {string} id
12158
10977
  * @param {*} [options] Override http request option.
12159
10978
  * @throws {RequiredError}
12160
10979
  */
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`;
10980
+ getClubRoleById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10981
+ // verify required parameter 'id' is not null or undefined
10982
+ assertParamExists('getClubRoleById', 'id', id)
10983
+ const localVarPath = `/api/club-roles/{id}`
10984
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12165
10985
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12166
10986
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12167
10987
  let baseOptions;
@@ -12169,7 +10989,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12169
10989
  baseOptions = configuration.baseOptions;
12170
10990
  }
12171
10991
 
12172
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
10992
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12173
10993
  const localVarHeaderParameter = {} as any;
12174
10994
  const localVarQueryParameter = {} as any;
12175
10995
 
@@ -12179,12 +10999,9 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12179
10999
 
12180
11000
 
12181
11001
 
12182
- localVarHeaderParameter['Content-Type'] = 'application/json';
12183
-
12184
11002
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12185
11003
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12186
11004
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12187
- localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration)
12188
11005
 
12189
11006
  return {
12190
11007
  url: toPathString(localVarUrlObj),
@@ -12193,14 +11010,11 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12193
11010
  },
12194
11011
  /**
12195
11012
  *
12196
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
12197
11013
  * @param {*} [options] Override http request option.
12198
11014
  * @throws {RequiredError}
12199
11015
  */
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`;
11016
+ getUserRolesInClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11017
+ const localVarPath = `/api/club-roles/me/roles`;
12204
11018
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12205
11019
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12206
11020
  let baseOptions;
@@ -12208,7 +11022,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12208
11022
  baseOptions = configuration.baseOptions;
12209
11023
  }
12210
11024
 
12211
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11025
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12212
11026
  const localVarHeaderParameter = {} as any;
12213
11027
  const localVarQueryParameter = {} as any;
12214
11028
 
@@ -12218,12 +11032,9 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12218
11032
 
12219
11033
 
12220
11034
 
12221
- localVarHeaderParameter['Content-Type'] = 'application/json';
12222
-
12223
11035
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12224
11036
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12225
11037
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12226
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration)
12227
11038
 
12228
11039
  return {
12229
11040
  url: toPathString(localVarUrlObj),
@@ -12234,232 +11045,159 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
12234
11045
  };
12235
11046
 
12236
11047
  /**
12237
- * ClubSettingsManagerApi - functional programming interface
11048
+ * ClubRolesStaffApi - functional programming interface
12238
11049
  * @export
12239
11050
  */
12240
- export const ClubSettingsManagerApiFp = function(configuration?: Configuration) {
12241
- const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration)
11051
+ export const ClubRolesStaffApiFp = function(configuration?: Configuration) {
11052
+ const localVarAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator(configuration)
12242
11053
  return {
12243
11054
  /**
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
11055
+ * Récupère la liste des rôles d\'un club
12258
11056
  * @param {*} [options] Override http request option.
12259
11057
  * @throws {RequiredError}
12260
11058
  */
12261
- async updateHoursSettings(updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubHoursSettingsResponse>> {
12262
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
11059
+ async getAllClubRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClubRoleResponse>>> {
11060
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllClubRoles(options);
12263
11061
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12264
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']?.[localVarOperationServerIndex]?.url;
11062
+ const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getAllClubRoles']?.[localVarOperationServerIndex]?.url;
12265
11063
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12266
11064
  },
12267
11065
  /**
12268
- *
12269
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
11066
+ * Récupère un rôle de club par ID
11067
+ * @param {string} id
12270
11068
  * @param {*} [options] Override http request option.
12271
11069
  * @throws {RequiredError}
12272
11070
  */
12273
- async updatePresentationSettings(clubPresentationSettingsResponse: ClubPresentationSettingsResponse, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
12274
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
11071
+ async getClubRoleById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubRoleResponse>> {
11072
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubRoleById(id, options);
12275
11073
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12276
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']?.[localVarOperationServerIndex]?.url;
11074
+ const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getClubRoleById']?.[localVarOperationServerIndex]?.url;
12277
11075
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12278
11076
  },
12279
11077
  /**
12280
11078
  *
12281
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
12282
11079
  * @param {*} [options] Override http request option.
12283
11080
  * @throws {RequiredError}
12284
11081
  */
12285
- async updateReservationSettings(updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubReservationSettingsResponse>> {
12286
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
11082
+ async getUserRolesInClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserRolesResponse>> {
11083
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRolesInClubs(options);
12287
11084
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12288
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateReservationSettings']?.[localVarOperationServerIndex]?.url;
11085
+ const localVarOperationServerBasePath = operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']?.[localVarOperationServerIndex]?.url;
12289
11086
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12290
11087
  },
12291
11088
  }
12292
11089
  };
12293
11090
 
12294
11091
  /**
12295
- * ClubSettingsManagerApi - factory interface
11092
+ * ClubRolesStaffApi - factory interface
12296
11093
  * @export
12297
11094
  */
12298
- export const ClubSettingsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12299
- const localVarFp = ClubSettingsManagerApiFp(configuration)
11095
+ export const ClubRolesStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11096
+ const localVarFp = ClubRolesStaffApiFp(configuration)
12300
11097
  return {
12301
11098
  /**
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.
11099
+ * Récupère la liste des rôles d\'un club
12313
11100
  * @param {*} [options] Override http request option.
12314
11101
  * @throws {RequiredError}
12315
11102
  */
12316
- updateHoursSettings(requestParameters: ClubSettingsManagerApiUpdateHoursSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubHoursSettingsResponse> {
12317
- return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
11103
+ getAllClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClubRoleResponse>> {
11104
+ return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
12318
11105
  },
12319
11106
  /**
12320
- *
12321
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
11107
+ * Récupère un rôle de club par ID
11108
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
12322
11109
  * @param {*} [options] Override http request option.
12323
11110
  * @throws {RequiredError}
12324
11111
  */
12325
- updatePresentationSettings(requestParameters: ClubSettingsManagerApiUpdatePresentationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
12326
- return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
11112
+ getClubRoleById(requestParameters: ClubRolesStaffApiGetClubRoleByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubRoleResponse> {
11113
+ return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
12327
11114
  },
12328
11115
  /**
12329
11116
  *
12330
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
12331
11117
  * @param {*} [options] Override http request option.
12332
11118
  * @throws {RequiredError}
12333
11119
  */
12334
- updateReservationSettings(requestParameters: ClubSettingsManagerApiUpdateReservationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubReservationSettingsResponse> {
12335
- return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
11120
+ getUserRolesInClubs(options?: RawAxiosRequestConfig): AxiosPromise<UserRolesResponse> {
11121
+ return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
12336
11122
  },
12337
11123
  };
12338
11124
  };
12339
11125
 
12340
11126
  /**
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.
11127
+ * Request parameters for getClubRoleById operation in ClubRolesStaffApi.
12384
11128
  * @export
12385
- * @interface ClubSettingsManagerApiUpdateReservationSettingsRequest
11129
+ * @interface ClubRolesStaffApiGetClubRoleByIdRequest
12386
11130
  */
12387
- export interface ClubSettingsManagerApiUpdateReservationSettingsRequest {
11131
+ export interface ClubRolesStaffApiGetClubRoleByIdRequest {
12388
11132
  /**
12389
11133
  *
12390
- * @type {UpdateClubReservationSettingsRequest}
12391
- * @memberof ClubSettingsManagerApiUpdateReservationSettings
11134
+ * @type {string}
11135
+ * @memberof ClubRolesStaffApiGetClubRoleById
12392
11136
  */
12393
- readonly updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest
11137
+ readonly id: string
12394
11138
  }
12395
11139
 
12396
11140
  /**
12397
- * ClubSettingsManagerApi - object-oriented interface
11141
+ * ClubRolesStaffApi - object-oriented interface
12398
11142
  * @export
12399
- * @class ClubSettingsManagerApi
11143
+ * @class ClubRolesStaffApi
12400
11144
  * @extends {BaseAPI}
12401
11145
  */
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
-
11146
+ export class ClubRolesStaffApi extends BaseAPI {
12414
11147
  /**
12415
- *
12416
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
11148
+ * Récupère la liste des rôles d\'un club
12417
11149
  * @param {*} [options] Override http request option.
12418
11150
  * @throws {RequiredError}
12419
- * @memberof ClubSettingsManagerApi
11151
+ * @memberof ClubRolesStaffApi
12420
11152
  */
12421
- public updateHoursSettings(requestParameters: ClubSettingsManagerApiUpdateHoursSettingsRequest, options?: RawAxiosRequestConfig) {
12422
- return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11153
+ public getAllClubRoles(options?: RawAxiosRequestConfig) {
11154
+ return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
12423
11155
  }
12424
11156
 
12425
11157
  /**
12426
- *
12427
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
11158
+ * Récupère un rôle de club par ID
11159
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
12428
11160
  * @param {*} [options] Override http request option.
12429
11161
  * @throws {RequiredError}
12430
- * @memberof ClubSettingsManagerApi
11162
+ * @memberof ClubRolesStaffApi
12431
11163
  */
12432
- public updatePresentationSettings(requestParameters: ClubSettingsManagerApiUpdatePresentationSettingsRequest, options?: RawAxiosRequestConfig) {
12433
- return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
11164
+ public getClubRoleById(requestParameters: ClubRolesStaffApiGetClubRoleByIdRequest, options?: RawAxiosRequestConfig) {
11165
+ return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12434
11166
  }
12435
11167
 
12436
11168
  /**
12437
11169
  *
12438
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
12439
11170
  * @param {*} [options] Override http request option.
12440
11171
  * @throws {RequiredError}
12441
- * @memberof ClubSettingsManagerApi
11172
+ * @memberof ClubRolesStaffApi
12442
11173
  */
12443
- public updateReservationSettings(requestParameters: ClubSettingsManagerApiUpdateReservationSettingsRequest, options?: RawAxiosRequestConfig) {
12444
- return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11174
+ public getUserRolesInClubs(options?: RawAxiosRequestConfig) {
11175
+ return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
12445
11176
  }
12446
11177
  }
12447
11178
 
12448
11179
 
12449
11180
 
12450
11181
  /**
12451
- * ClubSettingsStaffApi - axios parameter creator
11182
+ * ClubSettingsManagerApi - axios parameter creator
12452
11183
  * @export
12453
11184
  */
12454
- export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
11185
+ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
12455
11186
  return {
12456
11187
  /**
12457
- *
11188
+ * Crée les paramètres d\'un club
11189
+ * @param {string} clubId
11190
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
12458
11191
  * @param {*} [options] Override http request option.
12459
11192
  * @throws {RequiredError}
12460
11193
  */
12461
- getClubGeneralSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12462
- const localVarPath = `/api/club-settings/settings/general`;
11194
+ createClubSettings: async (clubId: string, createClubSettingsRequest: CreateClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11195
+ // verify required parameter 'clubId' is not null or undefined
11196
+ assertParamExists('createClubSettings', 'clubId', clubId)
11197
+ // verify required parameter 'createClubSettingsRequest' is not null or undefined
11198
+ assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest)
11199
+ const localVarPath = `/api/club-settings/{clubId}`
11200
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
12463
11201
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12464
11202
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12465
11203
  let baseOptions;
@@ -12467,7 +11205,7 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12467
11205
  baseOptions = configuration.baseOptions;
12468
11206
  }
12469
11207
 
12470
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11208
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12471
11209
  const localVarHeaderParameter = {} as any;
12472
11210
  const localVarQueryParameter = {} as any;
12473
11211
 
@@ -12477,9 +11215,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12477
11215
 
12478
11216
 
12479
11217
 
11218
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11219
+
12480
11220
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12481
11221
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12482
11222
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11223
+ localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration)
12483
11224
 
12484
11225
  return {
12485
11226
  url: toPathString(localVarUrlObj),
@@ -12487,12 +11228,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12487
11228
  };
12488
11229
  },
12489
11230
  /**
12490
- *
11231
+ * Supprime les paramètres d\'un club
12491
11232
  * @param {*} [options] Override http request option.
12492
11233
  * @throws {RequiredError}
12493
11234
  */
12494
- getHoursSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12495
- const localVarPath = `/api/club-settings/hours`;
11235
+ deleteClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11236
+ const localVarPath = `/api/club-settings`;
12496
11237
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12497
11238
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12498
11239
  let baseOptions;
@@ -12500,7 +11241,7 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12500
11241
  baseOptions = configuration.baseOptions;
12501
11242
  }
12502
11243
 
12503
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11244
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12504
11245
  const localVarHeaderParameter = {} as any;
12505
11246
  const localVarQueryParameter = {} as any;
12506
11247
 
@@ -12520,12 +11261,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12520
11261
  };
12521
11262
  },
12522
11263
  /**
12523
- *
11264
+ * Récupère les paramètres d\'un club
12524
11265
  * @param {*} [options] Override http request option.
12525
11266
  * @throws {RequiredError}
12526
11267
  */
12527
- getPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12528
- const localVarPath = `/api/club-settings/presentation`;
11268
+ getClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11269
+ const localVarPath = `/api/club-settings`;
12529
11270
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12530
11271
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12531
11272
  let baseOptions;
@@ -12553,12 +11294,15 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12553
11294
  };
12554
11295
  },
12555
11296
  /**
12556
- *
11297
+ * Met à jour les paramètres d\'un club
11298
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
12557
11299
  * @param {*} [options] Override http request option.
12558
11300
  * @throws {RequiredError}
12559
11301
  */
12560
- getReservationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12561
- const localVarPath = `/api/club-settings/reservation`;
11302
+ updateClubSettings: async (updateClubSettingsRequest: UpdateClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11303
+ // verify required parameter 'updateClubSettingsRequest' is not null or undefined
11304
+ assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest)
11305
+ const localVarPath = `/api/club-settings`;
12562
11306
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12563
11307
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12564
11308
  let baseOptions;
@@ -12566,7 +11310,7 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12566
11310
  baseOptions = configuration.baseOptions;
12567
11311
  }
12568
11312
 
12569
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11313
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12570
11314
  const localVarHeaderParameter = {} as any;
12571
11315
  const localVarQueryParameter = {} as any;
12572
11316
 
@@ -12576,9 +11320,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12576
11320
 
12577
11321
 
12578
11322
 
11323
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11324
+
12579
11325
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12580
11326
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12581
11327
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11328
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration)
12582
11329
 
12583
11330
  return {
12584
11331
  url: toPathString(localVarUrlObj),
@@ -12589,146 +11336,188 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
12589
11336
  };
12590
11337
 
12591
11338
  /**
12592
- * ClubSettingsStaffApi - functional programming interface
11339
+ * ClubSettingsManagerApi - functional programming interface
12593
11340
  * @export
12594
11341
  */
12595
- export const ClubSettingsStaffApiFp = function(configuration?: Configuration) {
12596
- const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration)
11342
+ export const ClubSettingsManagerApiFp = function(configuration?: Configuration) {
11343
+ const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration)
12597
11344
  return {
12598
11345
  /**
12599
- *
11346
+ * Crée les paramètres d\'un club
11347
+ * @param {string} clubId
11348
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
12600
11349
  * @param {*} [options] Override http request option.
12601
11350
  * @throws {RequiredError}
12602
11351
  */
12603
- async getClubGeneralSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubGeneralSettingsResponse>> {
12604
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubGeneralSettings(options);
11352
+ async createClubSettings(clubId: string, createClubSettingsRequest: CreateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
12605
11354
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12606
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']?.[localVarOperationServerIndex]?.url;
11355
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.createClubSettings']?.[localVarOperationServerIndex]?.url;
12607
11356
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12608
11357
  },
12609
11358
  /**
12610
- *
11359
+ * Supprime les paramètres d\'un club
12611
11360
  * @param {*} [options] Override http request option.
12612
11361
  * @throws {RequiredError}
12613
11362
  */
12614
- async getHoursSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubHoursSettingsResponse>> {
12615
- const localVarAxiosArgs = await localVarAxiosParamCreator.getHoursSettings(options);
11363
+ async deleteClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteClubSettingsResponse>> {
11364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClubSettings(options);
12616
11365
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12617
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getHoursSettings']?.[localVarOperationServerIndex]?.url;
11366
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.deleteClubSettings']?.[localVarOperationServerIndex]?.url;
12618
11367
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12619
11368
  },
12620
11369
  /**
12621
- *
11370
+ * Récupère les paramètres d\'un club
12622
11371
  * @param {*} [options] Override http request option.
12623
11372
  * @throws {RequiredError}
12624
11373
  */
12625
- async getPresentationSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
12626
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPresentationSettings(options);
11374
+ async getClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(options);
12627
11376
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12628
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getPresentationSettings']?.[localVarOperationServerIndex]?.url;
11377
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
12629
11378
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12630
11379
  },
12631
11380
  /**
12632
- *
11381
+ * Met à jour les paramètres d\'un club
11382
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
12633
11383
  * @param {*} [options] Override http request option.
12634
11384
  * @throws {RequiredError}
12635
11385
  */
12636
- async getReservationSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubReservationSettingsResponse>> {
12637
- const localVarAxiosArgs = await localVarAxiosParamCreator.getReservationSettings(options);
11386
+ async updateClubSettings(updateClubSettingsRequest: UpdateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11387
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
12638
11388
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12639
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getReservationSettings']?.[localVarOperationServerIndex]?.url;
11389
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateClubSettings']?.[localVarOperationServerIndex]?.url;
12640
11390
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12641
11391
  },
12642
11392
  }
12643
11393
  };
12644
11394
 
12645
11395
  /**
12646
- * ClubSettingsStaffApi - factory interface
11396
+ * ClubSettingsManagerApi - factory interface
12647
11397
  * @export
12648
11398
  */
12649
- export const ClubSettingsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12650
- const localVarFp = ClubSettingsStaffApiFp(configuration)
11399
+ export const ClubSettingsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11400
+ const localVarFp = ClubSettingsManagerApiFp(configuration)
12651
11401
  return {
12652
11402
  /**
12653
- *
11403
+ * Crée les paramètres d\'un club
11404
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
12654
11405
  * @param {*} [options] Override http request option.
12655
11406
  * @throws {RequiredError}
12656
11407
  */
12657
- getClubGeneralSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubGeneralSettingsResponse> {
12658
- return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
11408
+ createClubSettings(requestParameters: ClubSettingsManagerApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11409
+ return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
12659
11410
  },
12660
11411
  /**
12661
- *
11412
+ * Supprime les paramètres d\'un club
12662
11413
  * @param {*} [options] Override http request option.
12663
11414
  * @throws {RequiredError}
12664
11415
  */
12665
- getHoursSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubHoursSettingsResponse> {
12666
- return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
11416
+ deleteClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<DeleteClubSettingsResponse> {
11417
+ return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
12667
11418
  },
12668
11419
  /**
12669
- *
11420
+ * Récupère les paramètres d\'un club
12670
11421
  * @param {*} [options] Override http request option.
12671
11422
  * @throws {RequiredError}
12672
11423
  */
12673
- getPresentationSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
12674
- return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
11424
+ getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11425
+ return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
12675
11426
  },
12676
11427
  /**
12677
- *
11428
+ * Met à jour les paramètres d\'un club
11429
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
12678
11430
  * @param {*} [options] Override http request option.
12679
11431
  * @throws {RequiredError}
12680
11432
  */
12681
- getReservationSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubReservationSettingsResponse> {
12682
- return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
11433
+ updateClubSettings(requestParameters: ClubSettingsManagerApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11434
+ return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
12683
11435
  },
12684
11436
  };
12685
11437
  };
12686
11438
 
12687
11439
  /**
12688
- * ClubSettingsStaffApi - object-oriented interface
11440
+ * Request parameters for createClubSettings operation in ClubSettingsManagerApi.
11441
+ * @export
11442
+ * @interface ClubSettingsManagerApiCreateClubSettingsRequest
11443
+ */
11444
+ export interface ClubSettingsManagerApiCreateClubSettingsRequest {
11445
+ /**
11446
+ *
11447
+ * @type {string}
11448
+ * @memberof ClubSettingsManagerApiCreateClubSettings
11449
+ */
11450
+ readonly clubId: string
11451
+
11452
+ /**
11453
+ *
11454
+ * @type {CreateClubSettingsRequest}
11455
+ * @memberof ClubSettingsManagerApiCreateClubSettings
11456
+ */
11457
+ readonly createClubSettingsRequest: CreateClubSettingsRequest
11458
+ }
11459
+
11460
+ /**
11461
+ * Request parameters for updateClubSettings operation in ClubSettingsManagerApi.
12689
11462
  * @export
12690
- * @class ClubSettingsStaffApi
12691
- * @extends {BaseAPI}
11463
+ * @interface ClubSettingsManagerApiUpdateClubSettingsRequest
12692
11464
  */
12693
- export class ClubSettingsStaffApi extends BaseAPI {
11465
+ export interface ClubSettingsManagerApiUpdateClubSettingsRequest {
12694
11466
  /**
12695
11467
  *
11468
+ * @type {UpdateClubSettingsRequest}
11469
+ * @memberof ClubSettingsManagerApiUpdateClubSettings
11470
+ */
11471
+ readonly updateClubSettingsRequest: UpdateClubSettingsRequest
11472
+ }
11473
+
11474
+ /**
11475
+ * ClubSettingsManagerApi - object-oriented interface
11476
+ * @export
11477
+ * @class ClubSettingsManagerApi
11478
+ * @extends {BaseAPI}
11479
+ */
11480
+ export class ClubSettingsManagerApi extends BaseAPI {
11481
+ /**
11482
+ * Crée les paramètres d\'un club
11483
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
12696
11484
  * @param {*} [options] Override http request option.
12697
11485
  * @throws {RequiredError}
12698
- * @memberof ClubSettingsStaffApi
11486
+ * @memberof ClubSettingsManagerApi
12699
11487
  */
12700
- public getClubGeneralSettings(options?: RawAxiosRequestConfig) {
12701
- return ClubSettingsStaffApiFp(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
11488
+ public createClubSettings(requestParameters: ClubSettingsManagerApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig) {
11489
+ return ClubSettingsManagerApiFp(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
12702
11490
  }
12703
11491
 
12704
11492
  /**
12705
- *
11493
+ * Supprime les paramètres d\'un club
12706
11494
  * @param {*} [options] Override http request option.
12707
11495
  * @throws {RequiredError}
12708
- * @memberof ClubSettingsStaffApi
11496
+ * @memberof ClubSettingsManagerApi
12709
11497
  */
12710
- public getHoursSettings(options?: RawAxiosRequestConfig) {
12711
- return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
11498
+ public deleteClubSettings(options?: RawAxiosRequestConfig) {
11499
+ return ClubSettingsManagerApiFp(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
12712
11500
  }
12713
11501
 
12714
11502
  /**
12715
- *
11503
+ * Récupère les paramètres d\'un club
12716
11504
  * @param {*} [options] Override http request option.
12717
11505
  * @throws {RequiredError}
12718
- * @memberof ClubSettingsStaffApi
11506
+ * @memberof ClubSettingsManagerApi
12719
11507
  */
12720
- public getPresentationSettings(options?: RawAxiosRequestConfig) {
12721
- return ClubSettingsStaffApiFp(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
11508
+ public getClubSettings(options?: RawAxiosRequestConfig) {
11509
+ return ClubSettingsManagerApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
12722
11510
  }
12723
11511
 
12724
11512
  /**
12725
- *
11513
+ * Met à jour les paramètres d\'un club
11514
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
12726
11515
  * @param {*} [options] Override http request option.
12727
11516
  * @throws {RequiredError}
12728
- * @memberof ClubSettingsStaffApi
11517
+ * @memberof ClubSettingsManagerApi
12729
11518
  */
12730
- public getReservationSettings(options?: RawAxiosRequestConfig) {
12731
- return ClubSettingsStaffApiFp(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
11519
+ public updateClubSettings(requestParameters: ClubSettingsManagerApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig) {
11520
+ return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
12732
11521
  }
12733
11522
  }
12734
11523
 
@@ -13734,6 +12523,49 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
13734
12523
  options: localVarRequestOptions,
13735
12524
  };
13736
12525
  },
12526
+ /**
12527
+ *
12528
+ * @param {string} userId
12529
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
12530
+ * @param {*} [options] Override http request option.
12531
+ * @throws {RequiredError}
12532
+ */
12533
+ addCreditsToCustomer: async (userId: string, addCreditsToCustomerRequest: AddCreditsToCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12534
+ // verify required parameter 'userId' is not null or undefined
12535
+ assertParamExists('addCreditsToCustomer', 'userId', userId)
12536
+ // verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
12537
+ assertParamExists('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest)
12538
+ const localVarPath = `/api/clubs/customers/{userId}/credits`
12539
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
12540
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12541
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12542
+ let baseOptions;
12543
+ if (configuration) {
12544
+ baseOptions = configuration.baseOptions;
12545
+ }
12546
+
12547
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12548
+ const localVarHeaderParameter = {} as any;
12549
+ const localVarQueryParameter = {} as any;
12550
+
12551
+ // authentication bearerAuth required
12552
+ // http bearer authentication required
12553
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12554
+
12555
+
12556
+
12557
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12558
+
12559
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12560
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12561
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12562
+ localVarRequestOptions.data = serializeDataIfNeeded(addCreditsToCustomerRequest, localVarRequestOptions, configuration)
12563
+
12564
+ return {
12565
+ url: toPathString(localVarUrlObj),
12566
+ options: localVarRequestOptions,
12567
+ };
12568
+ },
13737
12569
  /**
13738
12570
  *
13739
12571
  * @param {string} priceId
@@ -14307,45 +13139,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
14307
13139
  options: localVarRequestOptions,
14308
13140
  };
14309
13141
  },
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
13142
  /**
14350
13143
  *
14351
13144
  * @param {string} courtId
@@ -14454,6 +13247,19 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
14454
13247
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.addClubMember']?.[localVarOperationServerIndex]?.url;
14455
13248
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14456
13249
  },
13250
+ /**
13251
+ *
13252
+ * @param {string} userId
13253
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
13254
+ * @param {*} [options] Override http request option.
13255
+ * @throws {RequiredError}
13256
+ */
13257
+ async addCreditsToCustomer(userId: string, addCreditsToCustomerRequest: AddCreditsToCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddCreditsToCustomer200Response>> {
13258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
13259
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13260
+ const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.addCreditsToCustomer']?.[localVarOperationServerIndex]?.url;
13261
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13262
+ },
14457
13263
  /**
14458
13264
  *
14459
13265
  * @param {string} priceId
@@ -14635,18 +13441,6 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
14635
13441
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.updateClubInfos']?.[localVarOperationServerIndex]?.url;
14636
13442
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14637
13443
  },
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
13444
  /**
14651
13445
  *
14652
13446
  * @param {string} courtId
@@ -14692,6 +13486,15 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
14692
13486
  addClubMember(requestParameters: ClubsManagerApiAddClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response> {
14693
13487
  return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
14694
13488
  },
13489
+ /**
13490
+ *
13491
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
13492
+ * @param {*} [options] Override http request option.
13493
+ * @throws {RequiredError}
13494
+ */
13495
+ addCreditsToCustomer(requestParameters: ClubsManagerApiAddCreditsToCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddCreditsToCustomer200Response> {
13496
+ return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
13497
+ },
14695
13498
  /**
14696
13499
  *
14697
13500
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -14826,15 +13629,6 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
14826
13629
  updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {
14827
13630
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
14828
13631
  },
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
13632
  /**
14839
13633
  *
14840
13634
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -14870,6 +13664,27 @@ export interface ClubsManagerApiAddClubMemberRequest {
14870
13664
  readonly addClubMemberRequest: AddClubMemberRequest
14871
13665
  }
14872
13666
 
13667
+ /**
13668
+ * Request parameters for addCreditsToCustomer operation in ClubsManagerApi.
13669
+ * @export
13670
+ * @interface ClubsManagerApiAddCreditsToCustomerRequest
13671
+ */
13672
+ export interface ClubsManagerApiAddCreditsToCustomerRequest {
13673
+ /**
13674
+ *
13675
+ * @type {string}
13676
+ * @memberof ClubsManagerApiAddCreditsToCustomer
13677
+ */
13678
+ readonly userId: string
13679
+
13680
+ /**
13681
+ *
13682
+ * @type {AddCreditsToCustomerRequest}
13683
+ * @memberof ClubsManagerApiAddCreditsToCustomer
13684
+ */
13685
+ readonly addCreditsToCustomerRequest: AddCreditsToCustomerRequest
13686
+ }
13687
+
14873
13688
  /**
14874
13689
  * Request parameters for archivePriceForSubscriptionPlan operation in ClubsManagerApi.
14875
13690
  * @export
@@ -15080,20 +13895,6 @@ export interface ClubsManagerApiUpdateClubInfosRequest {
15080
13895
  readonly body: any
15081
13896
  }
15082
13897
 
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
13898
  /**
15098
13899
  * Request parameters for updateCourt operation in ClubsManagerApi.
15099
13900
  * @export
@@ -15154,6 +13955,17 @@ export class ClubsManagerApi extends BaseAPI {
15154
13955
  return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
15155
13956
  }
15156
13957
 
13958
+ /**
13959
+ *
13960
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
13961
+ * @param {*} [options] Override http request option.
13962
+ * @throws {RequiredError}
13963
+ * @memberof ClubsManagerApi
13964
+ */
13965
+ public addCreditsToCustomer(requestParameters: ClubsManagerApiAddCreditsToCustomerRequest, options?: RawAxiosRequestConfig) {
13966
+ return ClubsManagerApiFp(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
13967
+ }
13968
+
15157
13969
  /**
15158
13970
  *
15159
13971
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -15318,17 +14130,6 @@ export class ClubsManagerApi extends BaseAPI {
15318
14130
  return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
15319
14131
  }
15320
14132
 
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
14133
  /**
15333
14134
  *
15334
14135
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -15450,39 +14251,6 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
15450
14251
 
15451
14252
 
15452
14253
 
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
14254
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15487
14255
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15488
14256
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -15671,17 +14439,6 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
15671
14439
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubMembers']?.[localVarOperationServerIndex]?.url;
15672
14440
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15673
14441
  },
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
14442
  /**
15686
14443
  * Récupère les rôles d\'un club
15687
14444
  * @param {*} [options] Override http request option.
@@ -15761,14 +14518,6 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
15761
14518
  getClubMembers(options?: RawAxiosRequestConfig): AxiosPromise<GetClubMembers200Response> {
15762
14519
  return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
15763
14520
  },
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
14521
  /**
15773
14522
  * Récupère les rôles d\'un club
15774
14523
  * @param {*} [options] Override http request option.
@@ -15856,16 +14605,6 @@ export class ClubsStaffApi extends BaseAPI {
15856
14605
  return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
15857
14606
  }
15858
14607
 
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
14608
  /**
15870
14609
  * Récupère les rôles d\'un club
15871
14610
  * @param {*} [options] Override http request option.
@@ -18937,6 +17676,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
18937
17676
 
18938
17677
 
18939
17678
 
17679
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17681
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17682
+
17683
+ return {
17684
+ url: toPathString(localVarUrlObj),
17685
+ options: localVarRequestOptions,
17686
+ };
17687
+ },
17688
+ /**
17689
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
17690
+ * @param {*} [options] Override http request option.
17691
+ * @throws {RequiredError}
17692
+ */
17693
+ getMyClubMemberships: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17694
+ const localVarPath = `/api/users/me/club-memberships`;
17695
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17696
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17697
+ let baseOptions;
17698
+ if (configuration) {
17699
+ baseOptions = configuration.baseOptions;
17700
+ }
17701
+
17702
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17703
+ const localVarHeaderParameter = {} as any;
17704
+ const localVarQueryParameter = {} as any;
17705
+
17706
+ // authentication bearerAuth required
17707
+ // http bearer authentication required
17708
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17709
+
17710
+
17711
+
18940
17712
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18941
17713
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18942
17714
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20044,6 +18816,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
20044
18816
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getMe']?.[localVarOperationServerIndex]?.url;
20045
18817
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20046
18818
  },
18819
+ /**
18820
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
18821
+ * @param {*} [options] Override http request option.
18822
+ * @throws {RequiredError}
18823
+ */
18824
+ async getMyClubMemberships(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserClubMembershipsResponse>> {
18825
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClubMemberships(options);
18826
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18827
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.getMyClubMemberships']?.[localVarOperationServerIndex]?.url;
18828
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18829
+ },
20047
18830
  /**
20048
18831
  *
20049
18832
  * @param {number} [radiusInKm]
@@ -20451,6 +19234,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
20451
19234
  getMe(options?: RawAxiosRequestConfig): AxiosPromise<UserProfileResponse> {
20452
19235
  return localVarFp.getMe(options).then((request) => request(axios, basePath));
20453
19236
  },
19237
+ /**
19238
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
19239
+ * @param {*} [options] Override http request option.
19240
+ * @throws {RequiredError}
19241
+ */
19242
+ getMyClubMemberships(options?: RawAxiosRequestConfig): AxiosPromise<UserClubMembershipsResponse> {
19243
+ return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
19244
+ },
20454
19245
  /**
20455
19246
  *
20456
19247
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -21294,6 +20085,16 @@ export class UsersApi extends BaseAPI {
21294
20085
  return UsersApiFp(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
21295
20086
  }
21296
20087
 
20088
+ /**
20089
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
20090
+ * @param {*} [options] Override http request option.
20091
+ * @throws {RequiredError}
20092
+ * @memberof UsersApi
20093
+ */
20094
+ public getMyClubMemberships(options?: RawAxiosRequestConfig) {
20095
+ return UsersApiFp(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
20096
+ }
20097
+
21297
20098
  /**
21298
20099
  *
21299
20100
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.