@tennac-booking/sdk 1.0.110 → 1.0.111

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 (65) hide show
  1. package/.openapi-generator/FILES +296 -292
  2. package/README.md +30 -20
  3. package/api.ts +1991 -1063
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1222 -662
  8. package/dist/api.js +1140 -511
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +1222 -662
  16. package/dist/esm/api.js +1126 -501
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveSubscriptionResponse.md +22 -0
  28. package/docs/AgendaBooking.md +30 -0
  29. package/docs/{JoinEventRequestPlayersPaymentMethodsInner.md → AgendaBookingPlayer.md} +9 -5
  30. package/docs/AgendaBookingSlot.md +30 -0
  31. package/docs/AgendaPaymentStatus.md +12 -0
  32. package/docs/BookingsWithTimeBoundsResponse.md +1 -1
  33. package/docs/ClientAccountOnboardingRequest.md +29 -0
  34. package/docs/{ClientFullOnboardingResponse.md → ClientAccountOnboardingResponse.md} +11 -7
  35. package/docs/ClientAccountResponse.md +44 -0
  36. package/docs/ClientAccountsApi.md +408 -0
  37. package/docs/ClientApi.md +4 -59
  38. package/docs/ClientMeResponse.md +28 -0
  39. package/docs/ClientOnboardingResponse.md +27 -0
  40. package/docs/{ClientRegisterRequest.md → ClientRegisterRequestBody.md} +7 -7
  41. package/docs/{CheckInEventParticipantsRequest.md → ClientRegisterResponse.md} +7 -5
  42. package/docs/ClientSubscriptionResponse.md +34 -0
  43. package/docs/ClubPlayerDetailResponse.md +2 -0
  44. package/docs/ClubSummary.md +8 -2
  45. package/docs/ClubsManagerApi.md +56 -0
  46. package/docs/ClubsStaffApi.md +55 -59
  47. package/docs/CreateEventRequest.md +3 -1
  48. package/docs/EventsManagerApi.md +0 -114
  49. package/docs/EventsStaffApi.md +159 -20
  50. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  51. package/docs/JoinEventRequest.md +0 -8
  52. package/docs/PaymentMethod.md +0 -4
  53. package/docs/PublishEventResponse.md +0 -2
  54. package/docs/UpdateUserCreditsRequest.md +20 -0
  55. package/index.ts +1 -1
  56. package/package.json +1 -1
  57. package/docs/CheckInEventParticipants200Response.md +0 -22
  58. package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +0 -28
  59. package/docs/ClientFullOnboardingResponseClub.md +0 -24
  60. package/docs/ClientRegister201Response.md +0 -26
  61. package/docs/CreateOnsiteInvoiceRequest.md +0 -28
  62. package/docs/CreateOnsiteInvoiceResponse.md +0 -22
  63. package/docs/CreateOnsiteInvoiceResponseInvoice.md +0 -31
  64. package/docs/EventConflictCheckRequest.md +0 -28
  65. package/docs/EventConflictCheckResponse.md +0 -26
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.110
7
+ * The version of the OpenAPI document: 1.0.104
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,6 +23,25 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface ActiveSubscriptionResponse
30
+ */
31
+ export interface ActiveSubscriptionResponse {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ActiveSubscriptionResponse
36
+ */
37
+ 'clientAccountId': string;
38
+ /**
39
+ *
40
+ * @type {ClientSubscriptionResponse}
41
+ * @memberof ActiveSubscriptionResponse
42
+ */
43
+ 'subscription': ClientSubscriptionResponse | null;
44
+ }
26
45
  /**
27
46
  *
28
47
  * @export
@@ -110,6 +129,140 @@ export interface AddOrganizationRequest {
110
129
  */
111
130
  'organizationId'?: string;
112
131
  }
132
+ /**
133
+ *
134
+ * @export
135
+ * @interface AgendaBooking
136
+ */
137
+ export interface AgendaBooking {
138
+ /**
139
+ *
140
+ * @type {string}
141
+ * @memberof AgendaBooking
142
+ */
143
+ 'id': string;
144
+ /**
145
+ *
146
+ * @type {BookingStatus}
147
+ * @memberof AgendaBooking
148
+ */
149
+ 'status': BookingStatus;
150
+ /**
151
+ *
152
+ * @type {string}
153
+ * @memberof AgendaBooking
154
+ */
155
+ 'creatorName': string;
156
+ /**
157
+ *
158
+ * @type {Array<AgendaBookingPlayer>}
159
+ * @memberof AgendaBooking
160
+ */
161
+ 'players': Array<AgendaBookingPlayer>;
162
+ /**
163
+ *
164
+ * @type {AgendaPaymentStatus}
165
+ * @memberof AgendaBooking
166
+ */
167
+ 'paymentStatus': AgendaPaymentStatus;
168
+ /**
169
+ *
170
+ * @type {Array<AgendaBookingSlot>}
171
+ * @memberof AgendaBooking
172
+ */
173
+ 'slots': Array<AgendaBookingSlot>;
174
+ }
175
+
176
+
177
+ /**
178
+ *
179
+ * @export
180
+ * @interface AgendaBookingPlayer
181
+ */
182
+ export interface AgendaBookingPlayer {
183
+ /**
184
+ *
185
+ * @type {string}
186
+ * @memberof AgendaBookingPlayer
187
+ */
188
+ 'id': string;
189
+ /**
190
+ *
191
+ * @type {string}
192
+ * @memberof AgendaBookingPlayer
193
+ */
194
+ 'firstName': string;
195
+ /**
196
+ *
197
+ * @type {string}
198
+ * @memberof AgendaBookingPlayer
199
+ */
200
+ 'lastName': string;
201
+ /**
202
+ *
203
+ * @type {string}
204
+ * @memberof AgendaBookingPlayer
205
+ */
206
+ 'profilePictureUrl'?: string;
207
+ }
208
+ /**
209
+ *
210
+ * @export
211
+ * @interface AgendaBookingSlot
212
+ */
213
+ export interface AgendaBookingSlot {
214
+ /**
215
+ *
216
+ * @type {string}
217
+ * @memberof AgendaBookingSlot
218
+ */
219
+ 'start': string;
220
+ /**
221
+ *
222
+ * @type {string}
223
+ * @memberof AgendaBookingSlot
224
+ */
225
+ 'end': string;
226
+ /**
227
+ *
228
+ * @type {string}
229
+ * @memberof AgendaBookingSlot
230
+ */
231
+ 'courtName': string;
232
+ /**
233
+ *
234
+ * @type {string}
235
+ * @memberof AgendaBookingSlot
236
+ */
237
+ 'sportKey': string;
238
+ /**
239
+ *
240
+ * @type {string}
241
+ * @memberof AgendaBookingSlot
242
+ */
243
+ 'surface'?: string;
244
+ /**
245
+ *
246
+ * @type {boolean}
247
+ * @memberof AgendaBookingSlot
248
+ */
249
+ 'isIndoor'?: boolean;
250
+ }
251
+ /**
252
+ *
253
+ * @export
254
+ * @enum {string}
255
+ */
256
+
257
+ export const AgendaPaymentStatus = {
258
+ Pay: 'payé',
259
+ NonPay: 'non payé',
260
+ EnAttente: 'en attente'
261
+ } as const;
262
+
263
+ export type AgendaPaymentStatus = typeof AgendaPaymentStatus[keyof typeof AgendaPaymentStatus];
264
+
265
+
113
266
  /**
114
267
  *
115
268
  * @export
@@ -1131,10 +1284,10 @@ export interface BookingSummaryClubAddress {
1131
1284
  export interface BookingsWithTimeBoundsResponse {
1132
1285
  /**
1133
1286
  *
1134
- * @type {Array<BookingPopulated>}
1287
+ * @type {Array<AgendaBooking>}
1135
1288
  * @memberof BookingsWithTimeBoundsResponse
1136
1289
  */
1137
- 'bookings': Array<BookingPopulated>;
1290
+ 'bookings': Array<AgendaBooking>;
1138
1291
  /**
1139
1292
  *
1140
1293
  * @type {TimeBounds}
@@ -1250,77 +1403,6 @@ export interface ChangePasswordResponse {
1250
1403
  */
1251
1404
  'message': string;
1252
1405
  }
1253
- /**
1254
- *
1255
- * @export
1256
- * @interface CheckInEventParticipants200Response
1257
- */
1258
- export interface CheckInEventParticipants200Response {
1259
- /**
1260
- *
1261
- * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
1262
- * @memberof CheckInEventParticipants200Response
1263
- */
1264
- 'invoices': Array<CheckInEventParticipants200ResponseInvoicesInner>;
1265
- /**
1266
- *
1267
- * @type {string}
1268
- * @memberof CheckInEventParticipants200Response
1269
- */
1270
- 'message': string;
1271
- }
1272
- /**
1273
- *
1274
- * @export
1275
- * @interface CheckInEventParticipants200ResponseInvoicesInner
1276
- */
1277
- export interface CheckInEventParticipants200ResponseInvoicesInner {
1278
- /**
1279
- *
1280
- * @type {PaymentMethod}
1281
- * @memberof CheckInEventParticipants200ResponseInvoicesInner
1282
- */
1283
- 'paymentMethod': PaymentMethod;
1284
- /**
1285
- *
1286
- * @type {string}
1287
- * @memberof CheckInEventParticipants200ResponseInvoicesInner
1288
- */
1289
- 'status': string;
1290
- /**
1291
- *
1292
- * @type {number}
1293
- * @memberof CheckInEventParticipants200ResponseInvoicesInner
1294
- */
1295
- 'amount': number;
1296
- /**
1297
- *
1298
- * @type {string}
1299
- * @memberof CheckInEventParticipants200ResponseInvoicesInner
1300
- */
1301
- 'invoiceId': string;
1302
- /**
1303
- *
1304
- * @type {string}
1305
- * @memberof CheckInEventParticipants200ResponseInvoicesInner
1306
- */
1307
- 'playerId': string;
1308
- }
1309
-
1310
-
1311
- /**
1312
- *
1313
- * @export
1314
- * @interface CheckInEventParticipantsRequest
1315
- */
1316
- export interface CheckInEventParticipantsRequest {
1317
- /**
1318
- *
1319
- * @type {Array<string>}
1320
- * @memberof CheckInEventParticipantsRequest
1321
- */
1322
- 'playerIds': Array<string>;
1323
- }
1324
1406
  /**
1325
1407
  *
1326
1408
  * @export
@@ -1411,188 +1493,422 @@ export interface CheckedInPlayer {
1411
1493
 
1412
1494
 
1413
1495
  /**
1414
- *
1496
+ * Types pour les requêtes/réponses
1415
1497
  * @export
1416
- * @interface ClientFullOnboardingResponse
1498
+ * @interface ClientAccountOnboardingRequest
1417
1499
  */
1418
- export interface ClientFullOnboardingResponse {
1419
- /**
1420
- *
1421
- * @type {string}
1422
- * @memberof ClientFullOnboardingResponse
1423
- */
1424
- 'clientAccountId': string;
1500
+ export interface ClientAccountOnboardingRequest {
1425
1501
  /**
1426
1502
  *
1427
1503
  * @type {string}
1428
- * @memberof ClientFullOnboardingResponse
1504
+ * @memberof ClientAccountOnboardingRequest
1429
1505
  */
1430
- 'stripeCustomerId': string;
1506
+ 'businessName': string;
1431
1507
  /**
1432
1508
  *
1433
1509
  * @type {string}
1434
- * @memberof ClientFullOnboardingResponse
1510
+ * @memberof ClientAccountOnboardingRequest
1435
1511
  */
1436
- 'stripeConnectedAccountId'?: string;
1512
+ 'businessType'?: ClientAccountOnboardingRequestBusinessTypeEnum;
1437
1513
  /**
1438
1514
  *
1439
1515
  * @type {string}
1440
- * @memberof ClientFullOnboardingResponse
1516
+ * @memberof ClientAccountOnboardingRequest
1441
1517
  */
1442
- 'clientOnboardingLink'?: string;
1518
+ 'subscriptionType'?: ClientAccountOnboardingRequestSubscriptionTypeEnum;
1443
1519
  /**
1444
1520
  *
1445
- * @type {ClientFullOnboardingResponseClub}
1446
- * @memberof ClientFullOnboardingResponse
1521
+ * @type {boolean}
1522
+ * @memberof ClientAccountOnboardingRequest
1447
1523
  */
1448
- 'club': ClientFullOnboardingResponseClub;
1524
+ 'isPublicOrganization'?: boolean;
1449
1525
  /**
1450
1526
  *
1451
1527
  * @type {string}
1452
- * @memberof ClientFullOnboardingResponse
1528
+ * @memberof ClientAccountOnboardingRequest
1453
1529
  */
1454
- 'message': string;
1530
+ 'priceId': string;
1455
1531
  }
1532
+
1533
+ export const ClientAccountOnboardingRequestBusinessTypeEnum = {
1534
+ Individual: 'individual',
1535
+ Company: 'company'
1536
+ } as const;
1537
+
1538
+ export type ClientAccountOnboardingRequestBusinessTypeEnum = typeof ClientAccountOnboardingRequestBusinessTypeEnum[keyof typeof ClientAccountOnboardingRequestBusinessTypeEnum];
1539
+ export const ClientAccountOnboardingRequestSubscriptionTypeEnum = {
1540
+ Basic: 'basic',
1541
+ PlatformWithConnect: 'platform_with_connect'
1542
+ } as const;
1543
+
1544
+ export type ClientAccountOnboardingRequestSubscriptionTypeEnum = typeof ClientAccountOnboardingRequestSubscriptionTypeEnum[keyof typeof ClientAccountOnboardingRequestSubscriptionTypeEnum];
1545
+
1456
1546
  /**
1457
1547
  *
1458
1548
  * @export
1459
- * @interface ClientFullOnboardingResponseClub
1549
+ * @interface ClientAccountOnboardingResponse
1460
1550
  */
1461
- export interface ClientFullOnboardingResponseClub {
1551
+ export interface ClientAccountOnboardingResponse {
1462
1552
  /**
1463
1553
  *
1464
1554
  * @type {string}
1465
- * @memberof ClientFullOnboardingResponseClub
1555
+ * @memberof ClientAccountOnboardingResponse
1466
1556
  */
1467
- 'clubOnboardingLink'?: string;
1557
+ 'clientAccountId': string;
1468
1558
  /**
1469
1559
  *
1470
1560
  * @type {string}
1471
- * @memberof ClientFullOnboardingResponseClub
1561
+ * @memberof ClientAccountOnboardingResponse
1472
1562
  */
1473
- 'stripeAccountId': string;
1563
+ 'stripeCustomerId': string;
1474
1564
  /**
1475
1565
  *
1476
1566
  * @type {string}
1477
- * @memberof ClientFullOnboardingResponseClub
1478
- */
1479
- 'clubId': string;
1480
- }
1481
- /**
1482
- * Requête pour l\'onboarding d\'un club
1483
- * @export
1484
- * @interface ClientOnboardingRequestBody
1485
- */
1486
- export interface ClientOnboardingRequestBody {
1487
- /**
1488
- * Nom du club
1489
- * @type {string}
1490
- * @memberof ClientOnboardingRequestBody
1491
- */
1492
- 'clubName': string;
1493
- /**
1494
- * Email du club pour le compte Stripe
1495
- * @type {string}
1496
- * @memberof ClientOnboardingRequestBody
1567
+ * @memberof ClientAccountOnboardingResponse
1497
1568
  */
1498
- 'email': string;
1569
+ 'stripeConnectedAccountId'?: string;
1499
1570
  /**
1500
- * Numéro de téléphone du club (optionnel)
1571
+ *
1501
1572
  * @type {string}
1502
- * @memberof ClientOnboardingRequestBody
1573
+ * @memberof ClientAccountOnboardingResponse
1503
1574
  */
1504
- 'phone'?: string;
1575
+ 'connectedAccountOnboardingLink'?: string;
1505
1576
  /**
1506
- * Adresse du club (optionnel)
1577
+ *
1507
1578
  * @type {string}
1508
- * @memberof ClientOnboardingRequestBody
1579
+ * @memberof ClientAccountOnboardingResponse
1509
1580
  */
1510
- 'address'?: string;
1581
+ 'status': string;
1511
1582
  /**
1512
- * Ville du club (optionnel)
1583
+ *
1513
1584
  * @type {string}
1514
- * @memberof ClientOnboardingRequestBody
1585
+ * @memberof ClientAccountOnboardingResponse
1515
1586
  */
1516
- 'city'?: string;
1587
+ 'message': string;
1517
1588
  /**
1518
- * Code postal du club (optionnel)
1519
- * @type {string}
1520
- * @memberof ClientOnboardingRequestBody
1589
+ *
1590
+ * @type {boolean}
1591
+ * @memberof ClientAccountOnboardingResponse
1521
1592
  */
1522
- 'postalCode'?: string;
1593
+ 'isPublicOrganization': boolean;
1523
1594
  /**
1524
- * Pays du club (optionnel)
1525
- * @type {string}
1526
- * @memberof ClientOnboardingRequestBody
1595
+ *
1596
+ * @type {boolean}
1597
+ * @memberof ClientAccountOnboardingResponse
1527
1598
  */
1528
- 'country'?: string;
1599
+ 'manualInvoiceRequired'?: boolean;
1529
1600
  }
1530
1601
  /**
1531
1602
  *
1532
1603
  * @export
1533
- * @interface ClientRegister201Response
1604
+ * @interface ClientAccountResponse
1534
1605
  */
1535
- export interface ClientRegister201Response {
1606
+ export interface ClientAccountResponse {
1536
1607
  /**
1537
1608
  *
1538
1609
  * @type {string}
1539
- * @memberof ClientRegister201Response
1610
+ * @memberof ClientAccountResponse
1540
1611
  */
1541
- 'message': string;
1612
+ 'id': string;
1542
1613
  /**
1543
1614
  *
1544
1615
  * @type {string}
1545
- * @memberof ClientRegister201Response
1616
+ * @memberof ClientAccountResponse
1546
1617
  */
1547
- 'stripeCustomerId': string;
1618
+ 'email': string;
1548
1619
  /**
1549
1620
  *
1550
1621
  * @type {string}
1551
- * @memberof ClientRegister201Response
1622
+ * @memberof ClientAccountResponse
1552
1623
  */
1553
- 'email': string;
1624
+ 'businessName': string;
1554
1625
  /**
1555
1626
  *
1556
1627
  * @type {string}
1557
- * @memberof ClientRegister201Response
1628
+ * @memberof ClientAccountResponse
1558
1629
  */
1559
- 'userId': string;
1560
- }
1561
- /**
1562
- *
1563
- * @export
1564
- * @interface ClientRegisterRequest
1565
- */
1566
- export interface ClientRegisterRequest {
1630
+ 'businessType': string;
1567
1631
  /**
1568
1632
  *
1569
1633
  * @type {string}
1570
- * @memberof ClientRegisterRequest
1634
+ * @memberof ClientAccountResponse
1571
1635
  */
1572
- 'password': string;
1636
+ 'subscriptionType': string;
1573
1637
  /**
1574
1638
  *
1575
1639
  * @type {string}
1576
- * @memberof ClientRegisterRequest
1640
+ * @memberof ClientAccountResponse
1577
1641
  */
1578
- 'email': string;
1642
+ 'status': string;
1579
1643
  /**
1580
1644
  *
1581
- * @type {string}
1582
- * @memberof ClientRegisterRequest
1645
+ * @type {boolean}
1646
+ * @memberof ClientAccountResponse
1583
1647
  */
1584
- 'lastName': string;
1648
+ 'platformPaymentMethodSetup': boolean;
1585
1649
  /**
1586
1650
  *
1587
1651
  * @type {string}
1588
- * @memberof ClientRegisterRequest
1652
+ * @memberof ClientAccountResponse
1589
1653
  */
1590
- 'firstName': string;
1591
- }
1592
- /**
1593
- *
1594
- * @export
1595
- * @interface ClubDaySchedule
1654
+ 'stripeConnectedAccountId'?: string;
1655
+ /**
1656
+ *
1657
+ * @type {boolean}
1658
+ * @memberof ClientAccountResponse
1659
+ */
1660
+ 'connectedAccountOnboardingRequired'?: boolean;
1661
+ /**
1662
+ *
1663
+ * @type {boolean}
1664
+ * @memberof ClientAccountResponse
1665
+ */
1666
+ 'isPublicOrganization': boolean;
1667
+ /**
1668
+ *
1669
+ * @type {boolean}
1670
+ * @memberof ClientAccountResponse
1671
+ */
1672
+ 'manualInvoiceRequired'?: boolean;
1673
+ /**
1674
+ *
1675
+ * @type {string}
1676
+ * @memberof ClientAccountResponse
1677
+ */
1678
+ 'createdAt': string;
1679
+ /**
1680
+ *
1681
+ * @type {string}
1682
+ * @memberof ClientAccountResponse
1683
+ */
1684
+ 'updatedAt': string;
1685
+ }
1686
+ /**
1687
+ *
1688
+ * @export
1689
+ * @interface ClientMeResponse
1690
+ */
1691
+ export interface ClientMeResponse {
1692
+ /**
1693
+ *
1694
+ * @type {string}
1695
+ * @memberof ClientMeResponse
1696
+ */
1697
+ 'id': string;
1698
+ /**
1699
+ *
1700
+ * @type {string}
1701
+ * @memberof ClientMeResponse
1702
+ */
1703
+ 'email': string;
1704
+ /**
1705
+ *
1706
+ * @type {string}
1707
+ * @memberof ClientMeResponse
1708
+ */
1709
+ 'firstName': string;
1710
+ /**
1711
+ *
1712
+ * @type {string}
1713
+ * @memberof ClientMeResponse
1714
+ */
1715
+ 'lastName': string;
1716
+ /**
1717
+ *
1718
+ * @type {boolean}
1719
+ * @memberof ClientMeResponse
1720
+ */
1721
+ 'isClient': boolean;
1722
+ }
1723
+ /**
1724
+ * Requête pour l\'onboarding d\'un club
1725
+ * @export
1726
+ * @interface ClientOnboardingRequestBody
1727
+ */
1728
+ export interface ClientOnboardingRequestBody {
1729
+ /**
1730
+ * Nom du club
1731
+ * @type {string}
1732
+ * @memberof ClientOnboardingRequestBody
1733
+ */
1734
+ 'clubName': string;
1735
+ /**
1736
+ * Email du club pour le compte Stripe
1737
+ * @type {string}
1738
+ * @memberof ClientOnboardingRequestBody
1739
+ */
1740
+ 'email': string;
1741
+ /**
1742
+ * Numéro de téléphone du club (optionnel)
1743
+ * @type {string}
1744
+ * @memberof ClientOnboardingRequestBody
1745
+ */
1746
+ 'phone'?: string;
1747
+ /**
1748
+ * Adresse du club (optionnel)
1749
+ * @type {string}
1750
+ * @memberof ClientOnboardingRequestBody
1751
+ */
1752
+ 'address'?: string;
1753
+ /**
1754
+ * Ville du club (optionnel)
1755
+ * @type {string}
1756
+ * @memberof ClientOnboardingRequestBody
1757
+ */
1758
+ 'city'?: string;
1759
+ /**
1760
+ * Code postal du club (optionnel)
1761
+ * @type {string}
1762
+ * @memberof ClientOnboardingRequestBody
1763
+ */
1764
+ 'postalCode'?: string;
1765
+ /**
1766
+ * Pays du club (optionnel)
1767
+ * @type {string}
1768
+ * @memberof ClientOnboardingRequestBody
1769
+ */
1770
+ 'country'?: string;
1771
+ }
1772
+ /**
1773
+ * Réponse pour l\'onboarding d\'un club
1774
+ * @export
1775
+ * @interface ClientOnboardingResponse
1776
+ */
1777
+ export interface ClientOnboardingResponse {
1778
+ /**
1779
+ * ID unique du club créé
1780
+ * @type {string}
1781
+ * @memberof ClientOnboardingResponse
1782
+ */
1783
+ 'clubId': string;
1784
+ /**
1785
+ * ID du compte Stripe Connect du club
1786
+ * @type {string}
1787
+ * @memberof ClientOnboardingResponse
1788
+ */
1789
+ 'stripeAccountId': string;
1790
+ /**
1791
+ * Lien d\'onboarding Stripe pour configurer le compte
1792
+ * @type {string}
1793
+ * @memberof ClientOnboardingResponse
1794
+ */
1795
+ 'onboardingLink': string;
1796
+ /**
1797
+ * Message de confirmation
1798
+ * @type {string}
1799
+ * @memberof ClientOnboardingResponse
1800
+ */
1801
+ 'message': string;
1802
+ }
1803
+ /**
1804
+ *
1805
+ * @export
1806
+ * @interface ClientRegisterRequestBody
1807
+ */
1808
+ export interface ClientRegisterRequestBody {
1809
+ /**
1810
+ *
1811
+ * @type {string}
1812
+ * @memberof ClientRegisterRequestBody
1813
+ */
1814
+ 'email': string;
1815
+ /**
1816
+ *
1817
+ * @type {string}
1818
+ * @memberof ClientRegisterRequestBody
1819
+ */
1820
+ 'password': string;
1821
+ /**
1822
+ *
1823
+ * @type {string}
1824
+ * @memberof ClientRegisterRequestBody
1825
+ */
1826
+ 'firstName': string;
1827
+ /**
1828
+ *
1829
+ * @type {string}
1830
+ * @memberof ClientRegisterRequestBody
1831
+ */
1832
+ 'lastName': string;
1833
+ }
1834
+ /**
1835
+ *
1836
+ * @export
1837
+ * @interface ClientRegisterResponse
1838
+ */
1839
+ export interface ClientRegisterResponse {
1840
+ /**
1841
+ *
1842
+ * @type {string}
1843
+ * @memberof ClientRegisterResponse
1844
+ */
1845
+ 'id': string;
1846
+ /**
1847
+ *
1848
+ * @type {string}
1849
+ * @memberof ClientRegisterResponse
1850
+ */
1851
+ 'token': string;
1852
+ }
1853
+ /**
1854
+ *
1855
+ * @export
1856
+ * @interface ClientSubscriptionResponse
1857
+ */
1858
+ export interface ClientSubscriptionResponse {
1859
+ /**
1860
+ *
1861
+ * @type {string}
1862
+ * @memberof ClientSubscriptionResponse
1863
+ */
1864
+ 'id': string;
1865
+ /**
1866
+ *
1867
+ * @type {string}
1868
+ * @memberof ClientSubscriptionResponse
1869
+ */
1870
+ 'subscriptionType': string;
1871
+ /**
1872
+ *
1873
+ * @type {string}
1874
+ * @memberof ClientSubscriptionResponse
1875
+ */
1876
+ 'status': string;
1877
+ /**
1878
+ *
1879
+ * @type {string}
1880
+ * @memberof ClientSubscriptionResponse
1881
+ */
1882
+ 'startDate': string;
1883
+ /**
1884
+ *
1885
+ * @type {string}
1886
+ * @memberof ClientSubscriptionResponse
1887
+ */
1888
+ 'endDate'?: string;
1889
+ /**
1890
+ *
1891
+ * @type {number}
1892
+ * @memberof ClientSubscriptionResponse
1893
+ */
1894
+ 'priceAmountInCents': number;
1895
+ /**
1896
+ *
1897
+ * @type {string}
1898
+ * @memberof ClientSubscriptionResponse
1899
+ */
1900
+ 'currency': string;
1901
+ /**
1902
+ *
1903
+ * @type {string}
1904
+ * @memberof ClientSubscriptionResponse
1905
+ */
1906
+ 'billingCycle': string;
1907
+ }
1908
+ /**
1909
+ *
1910
+ * @export
1911
+ * @interface ClubDaySchedule
1596
1912
  */
1597
1913
  export interface ClubDaySchedule {
1598
1914
  /**
@@ -2146,6 +2462,12 @@ export interface ClubPlayerDetailResponse {
2146
2462
  * @memberof ClubPlayerDetailResponse
2147
2463
  */
2148
2464
  'birthDate': string | null;
2465
+ /**
2466
+ *
2467
+ * @type {number}
2468
+ * @memberof ClubPlayerDetailResponse
2469
+ */
2470
+ 'credits': number | null;
2149
2471
  }
2150
2472
  /**
2151
2473
  *
@@ -2888,7 +3210,19 @@ export interface ClubSummary {
2888
3210
  * @type {string}
2889
3211
  * @memberof ClubSummary
2890
3212
  */
2891
- 'address'?: string | null;
3213
+ 'picture'?: string;
3214
+ /**
3215
+ *
3216
+ * @type {Array<string>}
3217
+ * @memberof ClubSummary
3218
+ */
3219
+ 'bannerPictures'?: Array<string>;
3220
+ /**
3221
+ *
3222
+ * @type {Array<string>}
3223
+ * @memberof ClubSummary
3224
+ */
3225
+ 'galleryPictures'?: Array<string>;
2892
3226
  /**
2893
3227
  *
2894
3228
  * @type {UserLocationSummary}
@@ -2901,6 +3235,12 @@ export interface ClubSummary {
2901
3235
  * @memberof ClubSummary
2902
3236
  */
2903
3237
  'visitCount'?: number;
3238
+ /**
3239
+ *
3240
+ * @type {Array<string>}
3241
+ * @memberof ClubSummary
3242
+ */
3243
+ 'tags'?: Array<string>;
2904
3244
  }
2905
3245
  /**
2906
3246
  *
@@ -3378,13 +3718,19 @@ export interface CreateEventRequest {
3378
3718
  * @type {string}
3379
3719
  * @memberof CreateEventRequest
3380
3720
  */
3381
- 'recurringType': CreateEventRequestRecurringTypeEnum;
3721
+ 'recurringType'?: CreateEventRequestRecurringTypeEnum | null;
3382
3722
  /**
3383
3723
  *
3384
3724
  * @type {string}
3385
3725
  * @memberof CreateEventRequest
3386
3726
  */
3387
3727
  'recurrenceEndDate'?: string;
3728
+ /**
3729
+ *
3730
+ * @type {number}
3731
+ * @memberof CreateEventRequest
3732
+ */
3733
+ 'occurrences'?: number;
3388
3734
  /**
3389
3735
  *
3390
3736
  * @type {string}
@@ -3472,118 +3818,15 @@ export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisi
3472
3818
  /**
3473
3819
  *
3474
3820
  * @export
3475
- * @interface CreateOnsiteInvoiceRequest
3821
+ * @interface CreatePlan201Response
3476
3822
  */
3477
- export interface CreateOnsiteInvoiceRequest {
3478
- /**
3479
- * Payer user id (creator or player)
3480
- * @type {string}
3481
- * @memberof CreateOnsiteInvoiceRequest
3482
- */
3483
- 'userId': string;
3484
- /**
3485
- * Amount in cents
3486
- * @type {number}
3487
- * @memberof CreateOnsiteInvoiceRequest
3488
- */
3489
- 'amount': number;
3823
+ export interface CreatePlan201Response {
3490
3824
  /**
3491
3825
  *
3492
- * @type {PaymentMethod}
3493
- * @memberof CreateOnsiteInvoiceRequest
3826
+ * @type {string}
3827
+ * @memberof CreatePlan201Response
3494
3828
  */
3495
- 'paymentMethod': PaymentMethod;
3496
- /**
3497
- *
3498
- * @type {InvoiceStatus}
3499
- * @memberof CreateOnsiteInvoiceRequest
3500
- */
3501
- 'status': InvoiceStatus;
3502
- /**
3503
- * Optional note/reason about the invoice
3504
- * @type {string}
3505
- * @memberof CreateOnsiteInvoiceRequest
3506
- */
3507
- 'reason'?: string;
3508
- }
3509
-
3510
-
3511
- /**
3512
- *
3513
- * @export
3514
- * @interface CreateOnsiteInvoiceResponse
3515
- */
3516
- export interface CreateOnsiteInvoiceResponse {
3517
- /**
3518
- * Confirmation message
3519
- * @type {string}
3520
- * @memberof CreateOnsiteInvoiceResponse
3521
- */
3522
- 'message': string;
3523
- /**
3524
- *
3525
- * @type {CreateOnsiteInvoiceResponseInvoice}
3526
- * @memberof CreateOnsiteInvoiceResponse
3527
- */
3528
- 'invoice': CreateOnsiteInvoiceResponseInvoice;
3529
- }
3530
- /**
3531
- * Created invoice summary
3532
- * @export
3533
- * @interface CreateOnsiteInvoiceResponseInvoice
3534
- */
3535
- export interface CreateOnsiteInvoiceResponseInvoice {
3536
- /**
3537
- *
3538
- * @type {string}
3539
- * @memberof CreateOnsiteInvoiceResponseInvoice
3540
- */
3541
- 'reason'?: string;
3542
- /**
3543
- *
3544
- * @type {PaymentMethod}
3545
- * @memberof CreateOnsiteInvoiceResponseInvoice
3546
- */
3547
- 'paymentMethod': PaymentMethod;
3548
- /**
3549
- *
3550
- * @type {InvoiceStatus}
3551
- * @memberof CreateOnsiteInvoiceResponseInvoice
3552
- */
3553
- 'status': InvoiceStatus;
3554
- /**
3555
- *
3556
- * @type {number}
3557
- * @memberof CreateOnsiteInvoiceResponseInvoice
3558
- */
3559
- 'amount': number;
3560
- /**
3561
- *
3562
- * @type {string}
3563
- * @memberof CreateOnsiteInvoiceResponseInvoice
3564
- */
3565
- 'userId': string;
3566
- /**
3567
- *
3568
- * @type {string}
3569
- * @memberof CreateOnsiteInvoiceResponseInvoice
3570
- */
3571
- 'id': string;
3572
- }
3573
-
3574
-
3575
- /**
3576
- *
3577
- * @export
3578
- * @interface CreatePlan201Response
3579
- */
3580
- export interface CreatePlan201Response {
3581
- /**
3582
- *
3583
- * @type {string}
3584
- * @memberof CreatePlan201Response
3585
- */
3586
- 'priceId': string;
3829
+ 'priceId': string;
3587
3830
  /**
3588
3831
  *
3589
3832
  * @type {string}
@@ -3905,74 +4148,6 @@ export const DiscountType = {
3905
4148
  export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
3906
4149
 
3907
4150
 
3908
- /**
3909
- *
3910
- * @export
3911
- * @interface EventConflictCheckRequest
3912
- */
3913
- export interface EventConflictCheckRequest {
3914
- /**
3915
- *
3916
- * @type {string}
3917
- * @memberof EventConflictCheckRequest
3918
- */
3919
- 'eventId'?: string;
3920
- /**
3921
- *
3922
- * @type {string}
3923
- * @memberof EventConflictCheckRequest
3924
- */
3925
- 'clubId'?: string;
3926
- /**
3927
- *
3928
- * @type {string}
3929
- * @memberof EventConflictCheckRequest
3930
- */
3931
- 'startDate'?: string;
3932
- /**
3933
- *
3934
- * @type {string}
3935
- * @memberof EventConflictCheckRequest
3936
- */
3937
- 'endDate'?: string;
3938
- /**
3939
- *
3940
- * @type {Array<string>}
3941
- * @memberof EventConflictCheckRequest
3942
- */
3943
- 'courts'?: Array<string>;
3944
- }
3945
- /**
3946
- *
3947
- * @export
3948
- * @interface EventConflictCheckResponse
3949
- */
3950
- export interface EventConflictCheckResponse {
3951
- /**
3952
- *
3953
- * @type {boolean}
3954
- * @memberof EventConflictCheckResponse
3955
- */
3956
- 'hasRegularBookings': boolean;
3957
- /**
3958
- *
3959
- * @type {number}
3960
- * @memberof EventConflictCheckResponse
3961
- */
3962
- 'regularBookingsCount': number;
3963
- /**
3964
- *
3965
- * @type {boolean}
3966
- * @memberof EventConflictCheckResponse
3967
- */
3968
- 'hasEventBookings': boolean;
3969
- /**
3970
- *
3971
- * @type {number}
3972
- * @memberof EventConflictCheckResponse
3973
- */
3974
- 'eventBookingsCount': number;
3975
- }
3976
4151
  /**
3977
4152
  *
3978
4153
  * @export
@@ -4479,6 +4654,25 @@ export interface GetSlotsByClubById200Response {
4479
4654
  */
4480
4655
  'slots': Array<any>;
4481
4656
  }
4657
+ /**
4658
+ *
4659
+ * @export
4660
+ * @interface GetSubscriptionsHistory200Response
4661
+ */
4662
+ export interface GetSubscriptionsHistory200Response {
4663
+ /**
4664
+ *
4665
+ * @type {Array<ClientSubscriptionResponse>}
4666
+ * @memberof GetSubscriptionsHistory200Response
4667
+ */
4668
+ 'subscriptions': Array<ClientSubscriptionResponse>;
4669
+ /**
4670
+ *
4671
+ * @type {string}
4672
+ * @memberof GetSubscriptionsHistory200Response
4673
+ */
4674
+ 'clientAccountId': string;
4675
+ }
4482
4676
  /**
4483
4677
  *
4484
4678
  * @export
@@ -5041,54 +5235,7 @@ export interface JoinEventRequest {
5041
5235
  * @memberof JoinEventRequest
5042
5236
  */
5043
5237
  'players'?: Array<string>;
5044
- /**
5045
- *
5046
- * @type {boolean}
5047
- * @memberof JoinEventRequest
5048
- */
5049
- 'isCreatorPayingAll'?: boolean;
5050
- /**
5051
- *
5052
- * @type {PaymentMethod}
5053
- * @memberof JoinEventRequest
5054
- */
5055
- 'paymentMethod'?: PaymentMethod;
5056
- /**
5057
- *
5058
- * @type {Array<JoinEventRequestPlayersPaymentMethodsInner>}
5059
- * @memberof JoinEventRequest
5060
- */
5061
- 'playersPaymentMethods'?: Array<JoinEventRequestPlayersPaymentMethodsInner>;
5062
- /**
5063
- *
5064
- * @type {boolean}
5065
- * @memberof JoinEventRequest
5066
- */
5067
- 'useDefaultPaymentMethod'?: boolean;
5068
- }
5069
-
5070
-
5071
- /**
5072
- *
5073
- * @export
5074
- * @interface JoinEventRequestPlayersPaymentMethodsInner
5075
- */
5076
- export interface JoinEventRequestPlayersPaymentMethodsInner {
5077
- /**
5078
- *
5079
- * @type {PaymentMethod}
5080
- * @memberof JoinEventRequestPlayersPaymentMethodsInner
5081
- */
5082
- 'paymentMethod': PaymentMethod;
5083
- /**
5084
- *
5085
- * @type {string}
5086
- * @memberof JoinEventRequestPlayersPaymentMethodsInner
5087
- */
5088
- 'id': string;
5089
5238
  }
5090
-
5091
-
5092
5239
  /**
5093
5240
  *
5094
5241
  * @export
@@ -5614,8 +5761,6 @@ export interface PaymentByPlayerInfo {
5614
5761
  export const PaymentMethod = {
5615
5762
  Online: 'online',
5616
5763
  Onsite: 'onsite',
5617
- OnsiteCard: 'onsite_card',
5618
- OnsiteCash: 'onsite_cash',
5619
5764
  Free: 'free'
5620
5765
  } as const;
5621
5766
 
@@ -6218,12 +6363,6 @@ export interface PublishEventResponse {
6218
6363
  * @memberof PublishEventResponse
6219
6364
  */
6220
6365
  'event': EventResponse;
6221
- /**
6222
- *
6223
- * @type {Array<string>}
6224
- * @memberof PublishEventResponse
6225
- */
6226
- 'refundedBookingIds'?: Array<string>;
6227
6366
  }
6228
6367
  /**
6229
6368
  *
@@ -9176,6 +9315,19 @@ export interface UpdateSubscriptionPlanForClub200Response {
9176
9315
  */
9177
9316
  'price': any;
9178
9317
  }
9318
+ /**
9319
+ *
9320
+ * @export
9321
+ * @interface UpdateUserCreditsRequest
9322
+ */
9323
+ export interface UpdateUserCreditsRequest {
9324
+ /**
9325
+ * Variation du crédit à appliquer, exprimée en centimes. Peut être négative pour retirer du crédit.
9326
+ * @type {number}
9327
+ * @memberof UpdateUserCreditsRequest
9328
+ */
9329
+ 'deltaInCents': number;
9330
+ }
9179
9331
  /**
9180
9332
  *
9181
9333
  * @export
@@ -11291,41 +11443,6 @@ export class BookingsUserApi extends BaseAPI {
11291
11443
  */
11292
11444
  export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
11293
11445
  return {
11294
- /**
11295
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11296
- * @param {ClientRegisterRequest} clientRegisterRequest
11297
- * @param {*} [options] Override http request option.
11298
- * @throws {RequiredError}
11299
- */
11300
- clientRegister: async (clientRegisterRequest: ClientRegisterRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11301
- // verify required parameter 'clientRegisterRequest' is not null or undefined
11302
- assertParamExists('clientRegister', 'clientRegisterRequest', clientRegisterRequest)
11303
- const localVarPath = `/clients/register`;
11304
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11305
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11306
- let baseOptions;
11307
- if (configuration) {
11308
- baseOptions = configuration.baseOptions;
11309
- }
11310
-
11311
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11312
- const localVarHeaderParameter = {} as any;
11313
- const localVarQueryParameter = {} as any;
11314
-
11315
-
11316
-
11317
- localVarHeaderParameter['Content-Type'] = 'application/json';
11318
-
11319
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11320
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11321
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11322
- localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration)
11323
-
11324
- return {
11325
- url: toPathString(localVarUrlObj),
11326
- options: localVarRequestOptions,
11327
- };
11328
- },
11329
11446
  /**
11330
11447
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11331
11448
  * @param {*} [options] Override http request option.
@@ -11360,7 +11477,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11360
11477
  };
11361
11478
  },
11362
11479
  /**
11363
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11480
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11364
11481
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11365
11482
  * @param {*} [options] Override http request option.
11366
11483
  * @throws {RequiredError}
@@ -11380,10 +11497,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11380
11497
  const localVarHeaderParameter = {} as any;
11381
11498
  const localVarQueryParameter = {} as any;
11382
11499
 
11383
- // authentication clientAuth required
11384
- // http bearer authentication required
11385
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11386
-
11387
11500
 
11388
11501
 
11389
11502
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -11408,18 +11521,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11408
11521
  export const ClientApiFp = function(configuration?: Configuration) {
11409
11522
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
11410
11523
  return {
11411
- /**
11412
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11413
- * @param {ClientRegisterRequest} clientRegisterRequest
11414
- * @param {*} [options] Override http request option.
11415
- * @throws {RequiredError}
11416
- */
11417
- async clientRegister(clientRegisterRequest: ClientRegisterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegister201Response>> {
11418
- const localVarAxiosArgs = await localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
11419
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11420
- const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
11421
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11422
- },
11423
11524
  /**
11424
11525
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11425
11526
  * @param {*} [options] Override http request option.
@@ -11432,12 +11533,12 @@ export const ClientApiFp = function(configuration?: Configuration) {
11432
11533
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11433
11534
  },
11434
11535
  /**
11435
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11536
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11436
11537
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11437
11538
  * @param {*} [options] Override http request option.
11438
11539
  * @throws {RequiredError}
11439
11540
  */
11440
- async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientFullOnboardingResponse>> {
11541
+ async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientOnboardingResponse>> {
11441
11542
  const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
11442
11543
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11443
11544
  const localVarOperationServerBasePath = operationServerMap['ClientApi.onboardClub']?.[localVarOperationServerIndex]?.url;
@@ -11453,15 +11554,6 @@ export const ClientApiFp = function(configuration?: Configuration) {
11453
11554
  export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11454
11555
  const localVarFp = ClientApiFp(configuration)
11455
11556
  return {
11456
- /**
11457
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11458
- * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
11459
- * @param {*} [options] Override http request option.
11460
- * @throws {RequiredError}
11461
- */
11462
- clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
11463
- return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
11464
- },
11465
11557
  /**
11466
11558
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11467
11559
  * @param {*} [options] Override http request option.
@@ -11471,31 +11563,17 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
11471
11563
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
11472
11564
  },
11473
11565
  /**
11474
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11566
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11475
11567
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11476
11568
  * @param {*} [options] Override http request option.
11477
11569
  * @throws {RequiredError}
11478
11570
  */
11479
- onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientFullOnboardingResponse> {
11571
+ onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientOnboardingResponse> {
11480
11572
  return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
11481
11573
  },
11482
11574
  };
11483
11575
  };
11484
11576
 
11485
- /**
11486
- * Request parameters for clientRegister operation in ClientApi.
11487
- * @export
11488
- * @interface ClientApiClientRegisterRequest
11489
- */
11490
- export interface ClientApiClientRegisterRequest {
11491
- /**
11492
- *
11493
- * @type {ClientRegisterRequest}
11494
- * @memberof ClientApiClientRegister
11495
- */
11496
- readonly clientRegisterRequest: ClientRegisterRequest
11497
- }
11498
-
11499
11577
  /**
11500
11578
  * Request parameters for onboardClub operation in ClientApi.
11501
11579
  * @export
@@ -11517,17 +11595,6 @@ export interface ClientApiOnboardClubRequest {
11517
11595
  * @extends {BaseAPI}
11518
11596
  */
11519
11597
  export class ClientApi extends BaseAPI {
11520
- /**
11521
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11522
- * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
11523
- * @param {*} [options] Override http request option.
11524
- * @throws {RequiredError}
11525
- * @memberof ClientApi
11526
- */
11527
- public clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig) {
11528
- return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
11529
- }
11530
-
11531
11598
  /**
11532
11599
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11533
11600
  * @param {*} [options] Override http request option.
@@ -11539,7 +11606,7 @@ export class ClientApi extends BaseAPI {
11539
11606
  }
11540
11607
 
11541
11608
  /**
11542
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11609
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11543
11610
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11544
11611
  * @param {*} [options] Override http request option.
11545
11612
  * @throws {RequiredError}
@@ -11553,18 +11620,18 @@ export class ClientApi extends BaseAPI {
11553
11620
 
11554
11621
 
11555
11622
  /**
11556
- * ClubAnalyticsApi - axios parameter creator
11623
+ * ClientAccountsApi - axios parameter creator
11557
11624
  * @export
11558
11625
  */
11559
- export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
11626
+ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
11560
11627
  return {
11561
11628
  /**
11562
- * Récupère les clubs les plus aimés
11629
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
11563
11630
  * @param {*} [options] Override http request option.
11564
11631
  * @throws {RequiredError}
11565
11632
  */
11566
- getMostLikedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11567
- const localVarPath = `/api/club-analytics/most-liked-clubs`;
11633
+ clientAuthMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11634
+ const localVarPath = `/client-accounts/client-auth/me`;
11568
11635
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11569
11636
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11570
11637
  let baseOptions;
@@ -11576,7 +11643,7 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
11576
11643
  const localVarHeaderParameter = {} as any;
11577
11644
  const localVarQueryParameter = {} as any;
11578
11645
 
11579
- // authentication bearerAuth required
11646
+ // authentication clientAuth required
11580
11647
  // http bearer authentication required
11581
11648
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11582
11649
 
@@ -11592,12 +11659,16 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
11592
11659
  };
11593
11660
  },
11594
11661
  /**
11595
- * Récupère les clubs populaires
11662
+ * Récupère le compte client par son ID
11663
+ * @param {string} accountId L\&#39;ID du compte client
11596
11664
  * @param {*} [options] Override http request option.
11597
11665
  * @throws {RequiredError}
11598
11666
  */
11599
- getPopularClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11600
- const localVarPath = `/api/club-analytics/popular-clubs`;
11667
+ getClientAccountById: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11668
+ // verify required parameter 'accountId' is not null or undefined
11669
+ assertParamExists('getClientAccountById', 'accountId', accountId)
11670
+ const localVarPath = `/client-accounts/{accountId}`
11671
+ .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
11601
11672
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11602
11673
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11603
11674
  let baseOptions;
@@ -11624,114 +11695,13 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
11624
11695
  options: localVarRequestOptions,
11625
11696
  };
11626
11697
  },
11627
- }
11628
- };
11629
-
11630
- /**
11631
- * ClubAnalyticsApi - functional programming interface
11632
- * @export
11633
- */
11634
- export const ClubAnalyticsApiFp = function(configuration?: Configuration) {
11635
- const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration)
11636
- return {
11637
- /**
11638
- * Récupère les clubs les plus aimés
11639
- * @param {*} [options] Override http request option.
11640
- * @throws {RequiredError}
11641
- */
11642
- async getMostLikedClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
11643
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMostLikedClub(options);
11644
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11645
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getMostLikedClub']?.[localVarOperationServerIndex]?.url;
11646
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11647
- },
11648
- /**
11649
- * Récupère les clubs populaires
11650
- * @param {*} [options] Override http request option.
11651
- * @throws {RequiredError}
11652
- */
11653
- async getPopularClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
11654
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPopularClubs(options);
11655
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11656
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getPopularClubs']?.[localVarOperationServerIndex]?.url;
11657
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11658
- },
11659
- }
11660
- };
11661
-
11662
- /**
11663
- * ClubAnalyticsApi - factory interface
11664
- * @export
11665
- */
11666
- export const ClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11667
- const localVarFp = ClubAnalyticsApiFp(configuration)
11668
- return {
11669
- /**
11670
- * Récupère les clubs les plus aimés
11671
- * @param {*} [options] Override http request option.
11672
- * @throws {RequiredError}
11673
- */
11674
- getMostLikedClub(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
11675
- return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
11676
- },
11677
- /**
11678
- * Récupère les clubs populaires
11679
- * @param {*} [options] Override http request option.
11680
- * @throws {RequiredError}
11681
- */
11682
- getPopularClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
11683
- return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
11684
- },
11685
- };
11686
- };
11687
-
11688
- /**
11689
- * ClubAnalyticsApi - object-oriented interface
11690
- * @export
11691
- * @class ClubAnalyticsApi
11692
- * @extends {BaseAPI}
11693
- */
11694
- export class ClubAnalyticsApi extends BaseAPI {
11695
- /**
11696
- * Récupère les clubs les plus aimés
11697
- * @param {*} [options] Override http request option.
11698
- * @throws {RequiredError}
11699
- * @memberof ClubAnalyticsApi
11700
- */
11701
- public getMostLikedClub(options?: RawAxiosRequestConfig) {
11702
- return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
11703
- }
11704
-
11705
- /**
11706
- * Récupère les clubs populaires
11707
- * @param {*} [options] Override http request option.
11708
- * @throws {RequiredError}
11709
- * @memberof ClubAnalyticsApi
11710
- */
11711
- public getPopularClubs(options?: RawAxiosRequestConfig) {
11712
- return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
11713
- }
11714
- }
11715
-
11716
-
11717
-
11718
- /**
11719
- * ClubAnalyticsStaffApi - axios parameter creator
11720
- * @export
11721
- */
11722
- export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
11723
- return {
11724
11698
  /**
11725
- * Récupère les analytics par sport
11726
- * @param {string} sportId
11699
+ * Récupère l\'abonnement actif du compte client authentifié
11727
11700
  * @param {*} [options] Override http request option.
11728
11701
  * @throws {RequiredError}
11729
11702
  */
11730
- getAnalyticsBySport: async (sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11731
- // verify required parameter 'sportId' is not null or undefined
11732
- assertParamExists('getAnalyticsBySport', 'sportId', sportId)
11733
- const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
11734
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
11703
+ getMyActiveSubscription: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11704
+ const localVarPath = `/client-accounts/me/subscription`;
11735
11705
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11736
11706
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11737
11707
  let baseOptions;
@@ -11759,18 +11729,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11759
11729
  };
11760
11730
  },
11761
11731
  /**
11762
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
11763
- * @param {string} playerId
11764
- * @param {number} [page]
11765
- * @param {number} [pageSize]
11732
+ * Récupère le compte client de l\'utilisateur authentifié
11766
11733
  * @param {*} [options] Override http request option.
11767
11734
  * @throws {RequiredError}
11768
11735
  */
11769
- getClubPlayerBookingsById: async (playerId: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11770
- // verify required parameter 'playerId' is not null or undefined
11771
- assertParamExists('getClubPlayerBookingsById', 'playerId', playerId)
11772
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
11773
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
11736
+ getMyClientAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11737
+ const localVarPath = `/client-accounts/me`;
11774
11738
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11775
11739
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11776
11740
  let baseOptions;
@@ -11786,14 +11750,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11786
11750
  // http bearer authentication required
11787
11751
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11788
11752
 
11789
- if (page !== undefined) {
11790
- localVarQueryParameter['page'] = page;
11791
- }
11792
-
11793
- if (pageSize !== undefined) {
11794
- localVarQueryParameter['pageSize'] = pageSize;
11795
- }
11796
-
11797
11753
 
11798
11754
 
11799
11755
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -11806,16 +11762,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11806
11762
  };
11807
11763
  },
11808
11764
  /**
11809
- * Récupère les informations détaillées d\'un joueur par son ID
11810
- * @param {string} playerId
11765
+ * Récupère l\'historique des abonnements du compte client authentifié
11811
11766
  * @param {*} [options] Override http request option.
11812
11767
  * @throws {RequiredError}
11813
11768
  */
11814
- getClubPlayerById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11815
- // verify required parameter 'playerId' is not null or undefined
11816
- assertParamExists('getClubPlayerById', 'playerId', playerId)
11817
- const localVarPath = `/api/club-analytics/players/{playerId}`
11818
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
11769
+ getSubscriptionsHistory: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11770
+ const localVarPath = `/client-accounts/me/subscriptions-history`;
11819
11771
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11820
11772
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11821
11773
  let baseOptions;
@@ -11843,16 +11795,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11843
11795
  };
11844
11796
  },
11845
11797
  /**
11846
- * Récupère les statistiques d\'un joueur pour le staff
11847
- * @param {string} playerId
11798
+ * Liste les prix Stripe disponibles pour les abonnements client
11848
11799
  * @param {*} [options] Override http request option.
11849
11800
  * @throws {RequiredError}
11850
11801
  */
11851
- getClubPlayerStatisticsById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11852
- // verify required parameter 'playerId' is not null or undefined
11853
- assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId)
11854
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
11855
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
11802
+ listAvailablePrices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11803
+ const localVarPath = `/client-accounts/plans/available-prices`;
11856
11804
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11857
11805
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11858
11806
  let baseOptions;
@@ -11880,12 +11828,15 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11880
11828
  };
11881
11829
  },
11882
11830
  /**
11883
- * Récupère la liste des joueurs du club
11831
+ * Crée un nouveau compte client avec onboarding Stripe
11832
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
11884
11833
  * @param {*} [options] Override http request option.
11885
11834
  * @throws {RequiredError}
11886
11835
  */
11887
- getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11888
- const localVarPath = `/api/club-analytics/players`;
11836
+ onboardClientAccount: async (clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11837
+ // verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
11838
+ assertParamExists('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest)
11839
+ const localVarPath = `/client-accounts/onboarding`;
11889
11840
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11890
11841
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11891
11842
  let baseOptions;
@@ -11893,19 +11844,22 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11893
11844
  baseOptions = configuration.baseOptions;
11894
11845
  }
11895
11846
 
11896
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11847
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11897
11848
  const localVarHeaderParameter = {} as any;
11898
11849
  const localVarQueryParameter = {} as any;
11899
11850
 
11900
- // authentication bearerAuth required
11851
+ // authentication clientAuth required
11901
11852
  // http bearer authentication required
11902
11853
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11903
11854
 
11904
11855
 
11905
11856
 
11857
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11858
+
11906
11859
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11907
11860
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11908
11861
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11862
+ localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration)
11909
11863
 
11910
11864
  return {
11911
11865
  url: toPathString(localVarUrlObj),
@@ -11913,15 +11867,15 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11913
11867
  };
11914
11868
  },
11915
11869
  /**
11916
- * Récupère le chiffre d\'affaires quotidien
11917
- * @param {string} date
11870
+ * Route d\'inscription d\'un utilisateur client (publique)
11871
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
11918
11872
  * @param {*} [options] Override http request option.
11919
11873
  * @throws {RequiredError}
11920
11874
  */
11921
- getDailyTurnOver: async (date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11922
- // verify required parameter 'date' is not null or undefined
11923
- assertParamExists('getDailyTurnOver', 'date', date)
11924
- const localVarPath = `/api/club-analytics/daily-turnover`;
11875
+ registerClientUser: async (clientRegisterRequestBody: ClientRegisterRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11876
+ // verify required parameter 'clientRegisterRequestBody' is not null or undefined
11877
+ assertParamExists('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody)
11878
+ const localVarPath = `/client-accounts/register-client-user`;
11925
11879
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11926
11880
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11927
11881
  let baseOptions;
@@ -11929,131 +11883,842 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11929
11883
  baseOptions = configuration.baseOptions;
11930
11884
  }
11931
11885
 
11932
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11886
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11933
11887
  const localVarHeaderParameter = {} as any;
11934
11888
  const localVarQueryParameter = {} as any;
11935
11889
 
11936
- // authentication bearerAuth required
11937
- // http bearer authentication required
11938
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11939
-
11940
- if (date !== undefined) {
11941
- localVarQueryParameter['date'] = date;
11942
- }
11943
-
11944
11890
 
11945
11891
 
11892
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11893
+
11946
11894
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11947
11895
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11948
11896
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11897
+ localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration)
11949
11898
 
11950
11899
  return {
11951
11900
  url: toPathString(localVarUrlObj),
11952
11901
  options: localVarRequestOptions,
11953
11902
  };
11954
11903
  },
11904
+ }
11905
+ };
11906
+
11907
+ /**
11908
+ * ClientAccountsApi - functional programming interface
11909
+ * @export
11910
+ */
11911
+ export const ClientAccountsApiFp = function(configuration?: Configuration) {
11912
+ const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration)
11913
+ return {
11955
11914
  /**
11956
- * Récupère les pourcentages par genre
11915
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
11957
11916
  * @param {*} [options] Override http request option.
11958
11917
  * @throws {RequiredError}
11959
11918
  */
11960
- getGenderPercentage: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11961
- const localVarPath = `/api/club-analytics/gender-percentage`;
11962
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11963
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11964
- let baseOptions;
11965
- if (configuration) {
11966
- baseOptions = configuration.baseOptions;
11967
- }
11968
-
11969
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11970
- const localVarHeaderParameter = {} as any;
11971
- const localVarQueryParameter = {} as any;
11972
-
11973
- // authentication bearerAuth required
11974
- // http bearer authentication required
11975
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11976
-
11977
-
11978
-
11979
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11980
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11981
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11982
-
11983
- return {
11984
- url: toPathString(localVarUrlObj),
11985
- options: localVarRequestOptions,
11986
- };
11919
+ async clientAuthMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientMeResponse>> {
11920
+ const localVarAxiosArgs = await localVarAxiosParamCreator.clientAuthMe(options);
11921
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11922
+ const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.clientAuthMe']?.[localVarOperationServerIndex]?.url;
11923
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11987
11924
  },
11988
11925
  /**
11989
- * Récupère le taux de remplissage (infill) pour une période donnée
11990
- * @param {string} [startDate]
11991
- * @param {string} [endDate]
11926
+ * Récupère le compte client par son ID
11927
+ * @param {string} accountId L\&#39;ID du compte client
11992
11928
  * @param {*} [options] Override http request option.
11993
11929
  * @throws {RequiredError}
11994
11930
  */
11995
- getInfillPercentagePerPeriod: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11996
- const localVarPath = `/api/club-analytics/infill-percentage`;
11997
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11998
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11999
- let baseOptions;
12000
- if (configuration) {
12001
- baseOptions = configuration.baseOptions;
12002
- }
12003
-
12004
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12005
- const localVarHeaderParameter = {} as any;
12006
- const localVarQueryParameter = {} as any;
12007
-
12008
- // authentication bearerAuth required
12009
- // http bearer authentication required
12010
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12011
-
12012
- if (startDate !== undefined) {
12013
- localVarQueryParameter['startDate'] = startDate;
12014
- }
12015
-
12016
- if (endDate !== undefined) {
12017
- localVarQueryParameter['endDate'] = endDate;
12018
- }
12019
-
12020
-
12021
-
12022
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12023
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12024
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12025
-
12026
- return {
12027
- url: toPathString(localVarUrlObj),
12028
- options: localVarRequestOptions,
12029
- };
11931
+ async getClientAccountById(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>> {
11932
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClientAccountById(accountId, options);
11933
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11934
+ const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getClientAccountById']?.[localVarOperationServerIndex]?.url;
11935
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12030
11936
  },
12031
11937
  /**
12032
- * Récupère le chiffre d\'affaires des 6 derniers mois
11938
+ * Récupère l\'abonnement actif du compte client authentifié
12033
11939
  * @param {*} [options] Override http request option.
12034
11940
  * @throws {RequiredError}
12035
11941
  */
12036
- getLastSixMonthsTurnover: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12037
- const localVarPath = `/api/club-analytics/last-six-months-turnover`;
12038
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12039
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12040
- let baseOptions;
12041
- if (configuration) {
12042
- baseOptions = configuration.baseOptions;
12043
- }
12044
-
12045
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12046
- const localVarHeaderParameter = {} as any;
12047
- const localVarQueryParameter = {} as any;
12048
-
12049
- // authentication bearerAuth required
12050
- // http bearer authentication required
12051
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12052
-
12053
-
12054
-
12055
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12056
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11942
+ async getMyActiveSubscription(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActiveSubscriptionResponse>> {
11943
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyActiveSubscription(options);
11944
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11945
+ const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getMyActiveSubscription']?.[localVarOperationServerIndex]?.url;
11946
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11947
+ },
11948
+ /**
11949
+ * Récupère le compte client de l\'utilisateur authentifié
11950
+ * @param {*} [options] Override http request option.
11951
+ * @throws {RequiredError}
11952
+ */
11953
+ async getMyClientAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>> {
11954
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClientAccount(options);
11955
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11956
+ const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getMyClientAccount']?.[localVarOperationServerIndex]?.url;
11957
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11958
+ },
11959
+ /**
11960
+ * Récupère l\'historique des abonnements du compte client authentifié
11961
+ * @param {*} [options] Override http request option.
11962
+ * @throws {RequiredError}
11963
+ */
11964
+ async getSubscriptionsHistory(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubscriptionsHistory200Response>> {
11965
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionsHistory(options);
11966
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11967
+ const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getSubscriptionsHistory']?.[localVarOperationServerIndex]?.url;
11968
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11969
+ },
11970
+ /**
11971
+ * Liste les prix Stripe disponibles pour les abonnements client
11972
+ * @param {*} [options] Override http request option.
11973
+ * @throws {RequiredError}
11974
+ */
11975
+ async listAvailablePrices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
11976
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailablePrices(options);
11977
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11978
+ const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.listAvailablePrices']?.[localVarOperationServerIndex]?.url;
11979
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11980
+ },
11981
+ /**
11982
+ * Crée un nouveau compte client avec onboarding Stripe
11983
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
11984
+ * @param {*} [options] Override http request option.
11985
+ * @throws {RequiredError}
11986
+ */
11987
+ async onboardClientAccount(clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountOnboardingResponse>> {
11988
+ const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
11989
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11990
+ const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.onboardClientAccount']?.[localVarOperationServerIndex]?.url;
11991
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11992
+ },
11993
+ /**
11994
+ * Route d\'inscription d\'un utilisateur client (publique)
11995
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
11996
+ * @param {*} [options] Override http request option.
11997
+ * @throws {RequiredError}
11998
+ */
11999
+ async registerClientUser(clientRegisterRequestBody: ClientRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegisterResponse>> {
12000
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
12001
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12002
+ const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.registerClientUser']?.[localVarOperationServerIndex]?.url;
12003
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12004
+ },
12005
+ }
12006
+ };
12007
+
12008
+ /**
12009
+ * ClientAccountsApi - factory interface
12010
+ * @export
12011
+ */
12012
+ export const ClientAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12013
+ const localVarFp = ClientAccountsApiFp(configuration)
12014
+ return {
12015
+ /**
12016
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
12017
+ * @param {*} [options] Override http request option.
12018
+ * @throws {RequiredError}
12019
+ */
12020
+ clientAuthMe(options?: RawAxiosRequestConfig): AxiosPromise<ClientMeResponse> {
12021
+ return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
12022
+ },
12023
+ /**
12024
+ * Récupère le compte client par son ID
12025
+ * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
12026
+ * @param {*} [options] Override http request option.
12027
+ * @throws {RequiredError}
12028
+ */
12029
+ getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse> {
12030
+ return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
12031
+ },
12032
+ /**
12033
+ * Récupère l\'abonnement actif du compte client authentifié
12034
+ * @param {*} [options] Override http request option.
12035
+ * @throws {RequiredError}
12036
+ */
12037
+ getMyActiveSubscription(options?: RawAxiosRequestConfig): AxiosPromise<ActiveSubscriptionResponse> {
12038
+ return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
12039
+ },
12040
+ /**
12041
+ * Récupère le compte client de l\'utilisateur authentifié
12042
+ * @param {*} [options] Override http request option.
12043
+ * @throws {RequiredError}
12044
+ */
12045
+ getMyClientAccount(options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse> {
12046
+ return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
12047
+ },
12048
+ /**
12049
+ * Récupère l\'historique des abonnements du compte client authentifié
12050
+ * @param {*} [options] Override http request option.
12051
+ * @throws {RequiredError}
12052
+ */
12053
+ getSubscriptionsHistory(options?: RawAxiosRequestConfig): AxiosPromise<GetSubscriptionsHistory200Response> {
12054
+ return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
12055
+ },
12056
+ /**
12057
+ * Liste les prix Stripe disponibles pour les abonnements client
12058
+ * @param {*} [options] Override http request option.
12059
+ * @throws {RequiredError}
12060
+ */
12061
+ listAvailablePrices(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
12062
+ return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
12063
+ },
12064
+ /**
12065
+ * Crée un nouveau compte client avec onboarding Stripe
12066
+ * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
12067
+ * @param {*} [options] Override http request option.
12068
+ * @throws {RequiredError}
12069
+ */
12070
+ onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountOnboardingResponse> {
12071
+ return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
12072
+ },
12073
+ /**
12074
+ * Route d\'inscription d\'un utilisateur client (publique)
12075
+ * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
12076
+ * @param {*} [options] Override http request option.
12077
+ * @throws {RequiredError}
12078
+ */
12079
+ registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegisterResponse> {
12080
+ return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
12081
+ },
12082
+ };
12083
+ };
12084
+
12085
+ /**
12086
+ * Request parameters for getClientAccountById operation in ClientAccountsApi.
12087
+ * @export
12088
+ * @interface ClientAccountsApiGetClientAccountByIdRequest
12089
+ */
12090
+ export interface ClientAccountsApiGetClientAccountByIdRequest {
12091
+ /**
12092
+ * L\&#39;ID du compte client
12093
+ * @type {string}
12094
+ * @memberof ClientAccountsApiGetClientAccountById
12095
+ */
12096
+ readonly accountId: string
12097
+ }
12098
+
12099
+ /**
12100
+ * Request parameters for onboardClientAccount operation in ClientAccountsApi.
12101
+ * @export
12102
+ * @interface ClientAccountsApiOnboardClientAccountRequest
12103
+ */
12104
+ export interface ClientAccountsApiOnboardClientAccountRequest {
12105
+ /**
12106
+ * Les données du compte à créer
12107
+ * @type {ClientAccountOnboardingRequest}
12108
+ * @memberof ClientAccountsApiOnboardClientAccount
12109
+ */
12110
+ readonly clientAccountOnboardingRequest: ClientAccountOnboardingRequest
12111
+ }
12112
+
12113
+ /**
12114
+ * Request parameters for registerClientUser operation in ClientAccountsApi.
12115
+ * @export
12116
+ * @interface ClientAccountsApiRegisterClientUserRequest
12117
+ */
12118
+ export interface ClientAccountsApiRegisterClientUserRequest {
12119
+ /**
12120
+ *
12121
+ * @type {ClientRegisterRequestBody}
12122
+ * @memberof ClientAccountsApiRegisterClientUser
12123
+ */
12124
+ readonly clientRegisterRequestBody: ClientRegisterRequestBody
12125
+ }
12126
+
12127
+ /**
12128
+ * ClientAccountsApi - object-oriented interface
12129
+ * @export
12130
+ * @class ClientAccountsApi
12131
+ * @extends {BaseAPI}
12132
+ */
12133
+ export class ClientAccountsApi extends BaseAPI {
12134
+ /**
12135
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
12136
+ * @param {*} [options] Override http request option.
12137
+ * @throws {RequiredError}
12138
+ * @memberof ClientAccountsApi
12139
+ */
12140
+ public clientAuthMe(options?: RawAxiosRequestConfig) {
12141
+ return ClientAccountsApiFp(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
12142
+ }
12143
+
12144
+ /**
12145
+ * Récupère le compte client par son ID
12146
+ * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
12147
+ * @param {*} [options] Override http request option.
12148
+ * @throws {RequiredError}
12149
+ * @memberof ClientAccountsApi
12150
+ */
12151
+ public getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig) {
12152
+ return ClientAccountsApiFp(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
12153
+ }
12154
+
12155
+ /**
12156
+ * Récupère l\'abonnement actif du compte client authentifié
12157
+ * @param {*} [options] Override http request option.
12158
+ * @throws {RequiredError}
12159
+ * @memberof ClientAccountsApi
12160
+ */
12161
+ public getMyActiveSubscription(options?: RawAxiosRequestConfig) {
12162
+ return ClientAccountsApiFp(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
12163
+ }
12164
+
12165
+ /**
12166
+ * Récupère le compte client de l\'utilisateur authentifié
12167
+ * @param {*} [options] Override http request option.
12168
+ * @throws {RequiredError}
12169
+ * @memberof ClientAccountsApi
12170
+ */
12171
+ public getMyClientAccount(options?: RawAxiosRequestConfig) {
12172
+ return ClientAccountsApiFp(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
12173
+ }
12174
+
12175
+ /**
12176
+ * Récupère l\'historique des abonnements du compte client authentifié
12177
+ * @param {*} [options] Override http request option.
12178
+ * @throws {RequiredError}
12179
+ * @memberof ClientAccountsApi
12180
+ */
12181
+ public getSubscriptionsHistory(options?: RawAxiosRequestConfig) {
12182
+ return ClientAccountsApiFp(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
12183
+ }
12184
+
12185
+ /**
12186
+ * Liste les prix Stripe disponibles pour les abonnements client
12187
+ * @param {*} [options] Override http request option.
12188
+ * @throws {RequiredError}
12189
+ * @memberof ClientAccountsApi
12190
+ */
12191
+ public listAvailablePrices(options?: RawAxiosRequestConfig) {
12192
+ return ClientAccountsApiFp(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
12193
+ }
12194
+
12195
+ /**
12196
+ * Crée un nouveau compte client avec onboarding Stripe
12197
+ * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
12198
+ * @param {*} [options] Override http request option.
12199
+ * @throws {RequiredError}
12200
+ * @memberof ClientAccountsApi
12201
+ */
12202
+ public onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig) {
12203
+ return ClientAccountsApiFp(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
12204
+ }
12205
+
12206
+ /**
12207
+ * Route d\'inscription d\'un utilisateur client (publique)
12208
+ * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
12209
+ * @param {*} [options] Override http request option.
12210
+ * @throws {RequiredError}
12211
+ * @memberof ClientAccountsApi
12212
+ */
12213
+ public registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig) {
12214
+ return ClientAccountsApiFp(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
12215
+ }
12216
+ }
12217
+
12218
+
12219
+
12220
+ /**
12221
+ * ClubAnalyticsApi - axios parameter creator
12222
+ * @export
12223
+ */
12224
+ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
12225
+ return {
12226
+ /**
12227
+ * Récupère les clubs les plus aimés
12228
+ * @param {*} [options] Override http request option.
12229
+ * @throws {RequiredError}
12230
+ */
12231
+ getMostLikedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12232
+ const localVarPath = `/api/club-analytics/most-liked-clubs`;
12233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12235
+ let baseOptions;
12236
+ if (configuration) {
12237
+ baseOptions = configuration.baseOptions;
12238
+ }
12239
+
12240
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12241
+ const localVarHeaderParameter = {} as any;
12242
+ const localVarQueryParameter = {} as any;
12243
+
12244
+ // authentication bearerAuth required
12245
+ // http bearer authentication required
12246
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12247
+
12248
+
12249
+
12250
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12251
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12252
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12253
+
12254
+ return {
12255
+ url: toPathString(localVarUrlObj),
12256
+ options: localVarRequestOptions,
12257
+ };
12258
+ },
12259
+ /**
12260
+ * Récupère les clubs populaires
12261
+ * @param {*} [options] Override http request option.
12262
+ * @throws {RequiredError}
12263
+ */
12264
+ getPopularClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12265
+ const localVarPath = `/api/club-analytics/popular-clubs`;
12266
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12268
+ let baseOptions;
12269
+ if (configuration) {
12270
+ baseOptions = configuration.baseOptions;
12271
+ }
12272
+
12273
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12274
+ const localVarHeaderParameter = {} as any;
12275
+ const localVarQueryParameter = {} as any;
12276
+
12277
+ // authentication bearerAuth required
12278
+ // http bearer authentication required
12279
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12280
+
12281
+
12282
+
12283
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12284
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12285
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12286
+
12287
+ return {
12288
+ url: toPathString(localVarUrlObj),
12289
+ options: localVarRequestOptions,
12290
+ };
12291
+ },
12292
+ }
12293
+ };
12294
+
12295
+ /**
12296
+ * ClubAnalyticsApi - functional programming interface
12297
+ * @export
12298
+ */
12299
+ export const ClubAnalyticsApiFp = function(configuration?: Configuration) {
12300
+ const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration)
12301
+ return {
12302
+ /**
12303
+ * Récupère les clubs les plus aimés
12304
+ * @param {*} [options] Override http request option.
12305
+ * @throws {RequiredError}
12306
+ */
12307
+ async getMostLikedClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
12308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMostLikedClub(options);
12309
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12310
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getMostLikedClub']?.[localVarOperationServerIndex]?.url;
12311
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12312
+ },
12313
+ /**
12314
+ * Récupère les clubs populaires
12315
+ * @param {*} [options] Override http request option.
12316
+ * @throws {RequiredError}
12317
+ */
12318
+ async getPopularClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
12319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPopularClubs(options);
12320
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12321
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getPopularClubs']?.[localVarOperationServerIndex]?.url;
12322
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12323
+ },
12324
+ }
12325
+ };
12326
+
12327
+ /**
12328
+ * ClubAnalyticsApi - factory interface
12329
+ * @export
12330
+ */
12331
+ export const ClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12332
+ const localVarFp = ClubAnalyticsApiFp(configuration)
12333
+ return {
12334
+ /**
12335
+ * Récupère les clubs les plus aimés
12336
+ * @param {*} [options] Override http request option.
12337
+ * @throws {RequiredError}
12338
+ */
12339
+ getMostLikedClub(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
12340
+ return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
12341
+ },
12342
+ /**
12343
+ * Récupère les clubs populaires
12344
+ * @param {*} [options] Override http request option.
12345
+ * @throws {RequiredError}
12346
+ */
12347
+ getPopularClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
12348
+ return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
12349
+ },
12350
+ };
12351
+ };
12352
+
12353
+ /**
12354
+ * ClubAnalyticsApi - object-oriented interface
12355
+ * @export
12356
+ * @class ClubAnalyticsApi
12357
+ * @extends {BaseAPI}
12358
+ */
12359
+ export class ClubAnalyticsApi extends BaseAPI {
12360
+ /**
12361
+ * Récupère les clubs les plus aimés
12362
+ * @param {*} [options] Override http request option.
12363
+ * @throws {RequiredError}
12364
+ * @memberof ClubAnalyticsApi
12365
+ */
12366
+ public getMostLikedClub(options?: RawAxiosRequestConfig) {
12367
+ return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
12368
+ }
12369
+
12370
+ /**
12371
+ * Récupère les clubs populaires
12372
+ * @param {*} [options] Override http request option.
12373
+ * @throws {RequiredError}
12374
+ * @memberof ClubAnalyticsApi
12375
+ */
12376
+ public getPopularClubs(options?: RawAxiosRequestConfig) {
12377
+ return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
12378
+ }
12379
+ }
12380
+
12381
+
12382
+
12383
+ /**
12384
+ * ClubAnalyticsStaffApi - axios parameter creator
12385
+ * @export
12386
+ */
12387
+ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
12388
+ return {
12389
+ /**
12390
+ * Récupère les analytics par sport
12391
+ * @param {string} sportId
12392
+ * @param {*} [options] Override http request option.
12393
+ * @throws {RequiredError}
12394
+ */
12395
+ getAnalyticsBySport: async (sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12396
+ // verify required parameter 'sportId' is not null or undefined
12397
+ assertParamExists('getAnalyticsBySport', 'sportId', sportId)
12398
+ const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
12399
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
12400
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12401
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12402
+ let baseOptions;
12403
+ if (configuration) {
12404
+ baseOptions = configuration.baseOptions;
12405
+ }
12406
+
12407
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12408
+ const localVarHeaderParameter = {} as any;
12409
+ const localVarQueryParameter = {} as any;
12410
+
12411
+ // authentication bearerAuth required
12412
+ // http bearer authentication required
12413
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12414
+
12415
+
12416
+
12417
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12418
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12419
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12420
+
12421
+ return {
12422
+ url: toPathString(localVarUrlObj),
12423
+ options: localVarRequestOptions,
12424
+ };
12425
+ },
12426
+ /**
12427
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
12428
+ * @param {string} playerId
12429
+ * @param {number} [page]
12430
+ * @param {number} [pageSize]
12431
+ * @param {*} [options] Override http request option.
12432
+ * @throws {RequiredError}
12433
+ */
12434
+ getClubPlayerBookingsById: async (playerId: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12435
+ // verify required parameter 'playerId' is not null or undefined
12436
+ assertParamExists('getClubPlayerBookingsById', 'playerId', playerId)
12437
+ const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
12438
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
12439
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12440
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12441
+ let baseOptions;
12442
+ if (configuration) {
12443
+ baseOptions = configuration.baseOptions;
12444
+ }
12445
+
12446
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12447
+ const localVarHeaderParameter = {} as any;
12448
+ const localVarQueryParameter = {} as any;
12449
+
12450
+ // authentication bearerAuth required
12451
+ // http bearer authentication required
12452
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12453
+
12454
+ if (page !== undefined) {
12455
+ localVarQueryParameter['page'] = page;
12456
+ }
12457
+
12458
+ if (pageSize !== undefined) {
12459
+ localVarQueryParameter['pageSize'] = pageSize;
12460
+ }
12461
+
12462
+
12463
+
12464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12466
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12467
+
12468
+ return {
12469
+ url: toPathString(localVarUrlObj),
12470
+ options: localVarRequestOptions,
12471
+ };
12472
+ },
12473
+ /**
12474
+ * Récupère les informations détaillées d\'un joueur par son ID
12475
+ * @param {string} playerId
12476
+ * @param {*} [options] Override http request option.
12477
+ * @throws {RequiredError}
12478
+ */
12479
+ getClubPlayerById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12480
+ // verify required parameter 'playerId' is not null or undefined
12481
+ assertParamExists('getClubPlayerById', 'playerId', playerId)
12482
+ const localVarPath = `/api/club-analytics/players/{playerId}`
12483
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
12484
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12485
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12486
+ let baseOptions;
12487
+ if (configuration) {
12488
+ baseOptions = configuration.baseOptions;
12489
+ }
12490
+
12491
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12492
+ const localVarHeaderParameter = {} as any;
12493
+ const localVarQueryParameter = {} as any;
12494
+
12495
+ // authentication bearerAuth required
12496
+ // http bearer authentication required
12497
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12498
+
12499
+
12500
+
12501
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12502
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12503
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12504
+
12505
+ return {
12506
+ url: toPathString(localVarUrlObj),
12507
+ options: localVarRequestOptions,
12508
+ };
12509
+ },
12510
+ /**
12511
+ * Récupère les statistiques d\'un joueur pour le staff
12512
+ * @param {string} playerId
12513
+ * @param {*} [options] Override http request option.
12514
+ * @throws {RequiredError}
12515
+ */
12516
+ getClubPlayerStatisticsById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12517
+ // verify required parameter 'playerId' is not null or undefined
12518
+ assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId)
12519
+ const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
12520
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
12521
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12522
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12523
+ let baseOptions;
12524
+ if (configuration) {
12525
+ baseOptions = configuration.baseOptions;
12526
+ }
12527
+
12528
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12529
+ const localVarHeaderParameter = {} as any;
12530
+ const localVarQueryParameter = {} as any;
12531
+
12532
+ // authentication bearerAuth required
12533
+ // http bearer authentication required
12534
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12535
+
12536
+
12537
+
12538
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12539
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12540
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12541
+
12542
+ return {
12543
+ url: toPathString(localVarUrlObj),
12544
+ options: localVarRequestOptions,
12545
+ };
12546
+ },
12547
+ /**
12548
+ * Récupère la liste des joueurs du club
12549
+ * @param {*} [options] Override http request option.
12550
+ * @throws {RequiredError}
12551
+ */
12552
+ getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12553
+ const localVarPath = `/api/club-analytics/players`;
12554
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12555
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12556
+ let baseOptions;
12557
+ if (configuration) {
12558
+ baseOptions = configuration.baseOptions;
12559
+ }
12560
+
12561
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12562
+ const localVarHeaderParameter = {} as any;
12563
+ const localVarQueryParameter = {} as any;
12564
+
12565
+ // authentication bearerAuth required
12566
+ // http bearer authentication required
12567
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12568
+
12569
+
12570
+
12571
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12572
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12573
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12574
+
12575
+ return {
12576
+ url: toPathString(localVarUrlObj),
12577
+ options: localVarRequestOptions,
12578
+ };
12579
+ },
12580
+ /**
12581
+ * Récupère le chiffre d\'affaires quotidien
12582
+ * @param {string} date
12583
+ * @param {*} [options] Override http request option.
12584
+ * @throws {RequiredError}
12585
+ */
12586
+ getDailyTurnOver: async (date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12587
+ // verify required parameter 'date' is not null or undefined
12588
+ assertParamExists('getDailyTurnOver', 'date', date)
12589
+ const localVarPath = `/api/club-analytics/daily-turnover`;
12590
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12591
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12592
+ let baseOptions;
12593
+ if (configuration) {
12594
+ baseOptions = configuration.baseOptions;
12595
+ }
12596
+
12597
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12598
+ const localVarHeaderParameter = {} as any;
12599
+ const localVarQueryParameter = {} as any;
12600
+
12601
+ // authentication bearerAuth required
12602
+ // http bearer authentication required
12603
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12604
+
12605
+ if (date !== undefined) {
12606
+ localVarQueryParameter['date'] = date;
12607
+ }
12608
+
12609
+
12610
+
12611
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12612
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12613
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12614
+
12615
+ return {
12616
+ url: toPathString(localVarUrlObj),
12617
+ options: localVarRequestOptions,
12618
+ };
12619
+ },
12620
+ /**
12621
+ * Récupère les pourcentages par genre
12622
+ * @param {*} [options] Override http request option.
12623
+ * @throws {RequiredError}
12624
+ */
12625
+ getGenderPercentage: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12626
+ const localVarPath = `/api/club-analytics/gender-percentage`;
12627
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12628
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12629
+ let baseOptions;
12630
+ if (configuration) {
12631
+ baseOptions = configuration.baseOptions;
12632
+ }
12633
+
12634
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12635
+ const localVarHeaderParameter = {} as any;
12636
+ const localVarQueryParameter = {} as any;
12637
+
12638
+ // authentication bearerAuth required
12639
+ // http bearer authentication required
12640
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12641
+
12642
+
12643
+
12644
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12646
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12647
+
12648
+ return {
12649
+ url: toPathString(localVarUrlObj),
12650
+ options: localVarRequestOptions,
12651
+ };
12652
+ },
12653
+ /**
12654
+ * Récupère le taux de remplissage (infill) pour une période donnée
12655
+ * @param {string} [startDate]
12656
+ * @param {string} [endDate]
12657
+ * @param {*} [options] Override http request option.
12658
+ * @throws {RequiredError}
12659
+ */
12660
+ getInfillPercentagePerPeriod: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12661
+ const localVarPath = `/api/club-analytics/infill-percentage`;
12662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12663
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12664
+ let baseOptions;
12665
+ if (configuration) {
12666
+ baseOptions = configuration.baseOptions;
12667
+ }
12668
+
12669
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12670
+ const localVarHeaderParameter = {} as any;
12671
+ const localVarQueryParameter = {} as any;
12672
+
12673
+ // authentication bearerAuth required
12674
+ // http bearer authentication required
12675
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12676
+
12677
+ if (startDate !== undefined) {
12678
+ localVarQueryParameter['startDate'] = startDate;
12679
+ }
12680
+
12681
+ if (endDate !== undefined) {
12682
+ localVarQueryParameter['endDate'] = endDate;
12683
+ }
12684
+
12685
+
12686
+
12687
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12688
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12689
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12690
+
12691
+ return {
12692
+ url: toPathString(localVarUrlObj),
12693
+ options: localVarRequestOptions,
12694
+ };
12695
+ },
12696
+ /**
12697
+ * Récupère le chiffre d\'affaires des 6 derniers mois
12698
+ * @param {*} [options] Override http request option.
12699
+ * @throws {RequiredError}
12700
+ */
12701
+ getLastSixMonthsTurnover: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12702
+ const localVarPath = `/api/club-analytics/last-six-months-turnover`;
12703
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12704
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12705
+ let baseOptions;
12706
+ if (configuration) {
12707
+ baseOptions = configuration.baseOptions;
12708
+ }
12709
+
12710
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12711
+ const localVarHeaderParameter = {} as any;
12712
+ const localVarQueryParameter = {} as any;
12713
+
12714
+ // authentication bearerAuth required
12715
+ // http bearer authentication required
12716
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12717
+
12718
+
12719
+
12720
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12721
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12057
12722
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12058
12723
 
12059
12724
  return {
@@ -15498,6 +16163,43 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
15498
16163
 
15499
16164
 
15500
16165
 
16166
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16168
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16169
+
16170
+ return {
16171
+ url: toPathString(localVarUrlObj),
16172
+ options: localVarRequestOptions,
16173
+ };
16174
+ },
16175
+ /**
16176
+ * Supprime un membre d\'un club
16177
+ * @param {string} userId
16178
+ * @param {*} [options] Override http request option.
16179
+ * @throws {RequiredError}
16180
+ */
16181
+ deleteClubMember: async (userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16182
+ // verify required parameter 'userId' is not null or undefined
16183
+ assertParamExists('deleteClubMember', 'userId', userId)
16184
+ const localVarPath = `/api/clubs/members/{userId}`
16185
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
16186
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16187
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16188
+ let baseOptions;
16189
+ if (configuration) {
16190
+ baseOptions = configuration.baseOptions;
16191
+ }
16192
+
16193
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
16194
+ const localVarHeaderParameter = {} as any;
16195
+ const localVarQueryParameter = {} as any;
16196
+
16197
+ // authentication bearerAuth required
16198
+ // http bearer authentication required
16199
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16200
+
16201
+
16202
+
15501
16203
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15502
16204
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15503
16205
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16109,6 +16811,18 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
16109
16811
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteActuality']?.[localVarOperationServerIndex]?.url;
16110
16812
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16111
16813
  },
16814
+ /**
16815
+ * Supprime un membre d\'un club
16816
+ * @param {string} userId
16817
+ * @param {*} [options] Override http request option.
16818
+ * @throws {RequiredError}
16819
+ */
16820
+ async deleteClubMember(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddClubMember201Response>> {
16821
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClubMember(userId, options);
16822
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16823
+ const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteClubMember']?.[localVarOperationServerIndex]?.url;
16824
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16825
+ },
16112
16826
  /**
16113
16827
  * Supprime un terrain et ses créneaux futurs
16114
16828
  * @param {string} courtId
@@ -16341,6 +17055,15 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
16341
17055
  deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
16342
17056
  return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
16343
17057
  },
17058
+ /**
17059
+ * Supprime un membre d\'un club
17060
+ * @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
17061
+ * @param {*} [options] Override http request option.
17062
+ * @throws {RequiredError}
17063
+ */
17064
+ deleteClubMember(requestParameters: ClubsManagerApiDeleteClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddClubMember201Response> {
17065
+ return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
17066
+ },
16344
17067
  /**
16345
17068
  * Supprime un terrain et ses créneaux futurs
16346
17069
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -16565,6 +17288,20 @@ export interface ClubsManagerApiDeleteActualityRequest {
16565
17288
  readonly actualityId: string
16566
17289
  }
16567
17290
 
17291
+ /**
17292
+ * Request parameters for deleteClubMember operation in ClubsManagerApi.
17293
+ * @export
17294
+ * @interface ClubsManagerApiDeleteClubMemberRequest
17295
+ */
17296
+ export interface ClubsManagerApiDeleteClubMemberRequest {
17297
+ /**
17298
+ *
17299
+ * @type {string}
17300
+ * @memberof ClubsManagerApiDeleteClubMember
17301
+ */
17302
+ readonly userId: string
17303
+ }
17304
+
16568
17305
  /**
16569
17306
  * Request parameters for deleteCourt operation in ClubsManagerApi.
16570
17307
  * @export
@@ -16845,6 +17582,17 @@ export class ClubsManagerApi extends BaseAPI {
16845
17582
  return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
16846
17583
  }
16847
17584
 
17585
+ /**
17586
+ * Supprime un membre d\'un club
17587
+ * @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
17588
+ * @param {*} [options] Override http request option.
17589
+ * @throws {RequiredError}
17590
+ * @memberof ClubsManagerApi
17591
+ */
17592
+ public deleteClubMember(requestParameters: ClubsManagerApiDeleteClubMemberRequest, options?: RawAxiosRequestConfig) {
17593
+ return ClubsManagerApiFp(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
17594
+ }
17595
+
16848
17596
  /**
16849
17597
  * Supprime un terrain et ses créneaux futurs
16850
17598
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -16997,19 +17745,12 @@ export class ClubsManagerApi extends BaseAPI {
16997
17745
  export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
16998
17746
  return {
16999
17747
  /**
17000
- * Crée une facture manuelle (on-site) et l\'associe à une réservation
17001
- * @param {string} bookingId
17002
- * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
17748
+ *
17003
17749
  * @param {*} [options] Override http request option.
17004
17750
  * @throws {RequiredError}
17005
17751
  */
17006
- createOnsiteInvoiceForBooking: async (bookingId: string, createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17007
- // verify required parameter 'bookingId' is not null or undefined
17008
- assertParamExists('createOnsiteInvoiceForBooking', 'bookingId', bookingId)
17009
- // verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
17010
- assertParamExists('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest)
17011
- const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
17012
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
17752
+ getActualities: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17753
+ const localVarPath = `/api/clubs/staff/actualities`;
17013
17754
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17014
17755
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17015
17756
  let baseOptions;
@@ -17017,7 +17758,7 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17017
17758
  baseOptions = configuration.baseOptions;
17018
17759
  }
17019
17760
 
17020
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17761
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17021
17762
  const localVarHeaderParameter = {} as any;
17022
17763
  const localVarQueryParameter = {} as any;
17023
17764
 
@@ -17027,12 +17768,9 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17027
17768
 
17028
17769
 
17029
17770
 
17030
- localVarHeaderParameter['Content-Type'] = 'application/json';
17031
-
17032
17771
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17033
17772
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17034
17773
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17035
- localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration)
17036
17774
 
17037
17775
  return {
17038
17776
  url: toPathString(localVarUrlObj),
@@ -17044,8 +17782,8 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17044
17782
  * @param {*} [options] Override http request option.
17045
17783
  * @throws {RequiredError}
17046
17784
  */
17047
- getActualities: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17048
- const localVarPath = `/api/clubs/staff/actualities`;
17785
+ getClubInfos: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17786
+ const localVarPath = `/api/clubs/infos`;
17049
17787
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17050
17788
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17051
17789
  let baseOptions;
@@ -17073,12 +17811,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17073
17811
  };
17074
17812
  },
17075
17813
  /**
17076
- *
17814
+ * Récupère les membres d\'un club
17077
17815
  * @param {*} [options] Override http request option.
17078
17816
  * @throws {RequiredError}
17079
17817
  */
17080
- getClubInfos: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17081
- const localVarPath = `/api/clubs/infos`;
17818
+ getClubMembers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17819
+ const localVarPath = `/api/clubs/members`;
17082
17820
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17083
17821
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17084
17822
  let baseOptions;
@@ -17106,12 +17844,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17106
17844
  };
17107
17845
  },
17108
17846
  /**
17109
- * Récupère les membres d\'un club
17847
+ *
17110
17848
  * @param {*} [options] Override http request option.
17111
17849
  * @throws {RequiredError}
17112
17850
  */
17113
- getClubMembers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17114
- const localVarPath = `/api/clubs/members`;
17851
+ getClubPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17852
+ const localVarPath = `/api/clubs/settings/presentation`;
17115
17853
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17116
17854
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17117
17855
  let baseOptions;
@@ -17139,12 +17877,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17139
17877
  };
17140
17878
  },
17141
17879
  /**
17142
- *
17880
+ * Récupère les rôles d\'un club
17143
17881
  * @param {*} [options] Override http request option.
17144
17882
  * @throws {RequiredError}
17145
17883
  */
17146
- getClubPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17147
- const localVarPath = `/api/clubs/settings/presentation`;
17884
+ getClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17885
+ const localVarPath = `/api/clubs/roles`;
17148
17886
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17149
17887
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17150
17888
  let baseOptions;
@@ -17172,12 +17910,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17172
17910
  };
17173
17911
  },
17174
17912
  /**
17175
- * Récupère les rôles d\'un club
17913
+ * Récupère les terrains d\'un club
17176
17914
  * @param {*} [options] Override http request option.
17177
17915
  * @throws {RequiredError}
17178
17916
  */
17179
- getClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17180
- const localVarPath = `/api/clubs/roles`;
17917
+ getCourtsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17918
+ const localVarPath = `/api/clubs/courts`;
17181
17919
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17182
17920
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17183
17921
  let baseOptions;
@@ -17205,12 +17943,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17205
17943
  };
17206
17944
  },
17207
17945
  /**
17208
- * Récupère les terrains d\'un club
17946
+ *
17209
17947
  * @param {*} [options] Override http request option.
17210
17948
  * @throws {RequiredError}
17211
17949
  */
17212
- getCourtsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17213
- const localVarPath = `/api/clubs/courts`;
17950
+ getInvoices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17951
+ const localVarPath = `/api/clubs/invoices`;
17214
17952
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17215
17953
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17216
17954
  let baseOptions;
@@ -17239,11 +17977,15 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17239
17977
  },
17240
17978
  /**
17241
17979
  *
17980
+ * @param {string} id
17242
17981
  * @param {*} [options] Override http request option.
17243
17982
  * @throws {RequiredError}
17244
17983
  */
17245
- getInvoices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17246
- const localVarPath = `/api/clubs/invoices`;
17984
+ getUserProfileStaff: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17985
+ // verify required parameter 'id' is not null or undefined
17986
+ assertParamExists('getUserProfileStaff', 'id', id)
17987
+ const localVarPath = `/api/clubs/staff/profile/{id}`
17988
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17247
17989
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17248
17990
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17249
17991
  let baseOptions;
@@ -17273,13 +18015,16 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17273
18015
  /**
17274
18016
  *
17275
18017
  * @param {string} id
18018
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
17276
18019
  * @param {*} [options] Override http request option.
17277
18020
  * @throws {RequiredError}
17278
18021
  */
17279
- getUserProfileStaff: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18022
+ updateUserCreditsStaff: async (id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17280
18023
  // verify required parameter 'id' is not null or undefined
17281
- assertParamExists('getUserProfileStaff', 'id', id)
17282
- const localVarPath = `/api/clubs/staff/profile/{id}`
18024
+ assertParamExists('updateUserCreditsStaff', 'id', id)
18025
+ // verify required parameter 'updateUserCreditsRequest' is not null or undefined
18026
+ assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest)
18027
+ const localVarPath = `/api/clubs/staff/user-credits/{id}`
17283
18028
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17284
18029
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17285
18030
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -17288,7 +18033,7 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17288
18033
  baseOptions = configuration.baseOptions;
17289
18034
  }
17290
18035
 
17291
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18036
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17292
18037
  const localVarHeaderParameter = {} as any;
17293
18038
  const localVarQueryParameter = {} as any;
17294
18039
 
@@ -17298,9 +18043,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17298
18043
 
17299
18044
 
17300
18045
 
18046
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18047
+
17301
18048
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17302
18049
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17303
18050
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18051
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration)
17304
18052
 
17305
18053
  return {
17306
18054
  url: toPathString(localVarUrlObj),
@@ -17312,24 +18060,11 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17312
18060
 
17313
18061
  /**
17314
18062
  * ClubsStaffApi - functional programming interface
17315
- * @export
17316
- */
17317
- export const ClubsStaffApiFp = function(configuration?: Configuration) {
17318
- const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration)
17319
- return {
17320
- /**
17321
- * Crée une facture manuelle (on-site) et l\'associe à une réservation
17322
- * @param {string} bookingId
17323
- * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
17324
- * @param {*} [options] Override http request option.
17325
- * @throws {RequiredError}
17326
- */
17327
- async createOnsiteInvoiceForBooking(bookingId: string, createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOnsiteInvoiceResponse>> {
17328
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
17329
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17330
- const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']?.[localVarOperationServerIndex]?.url;
17331
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17332
- },
18063
+ * @export
18064
+ */
18065
+ export const ClubsStaffApiFp = function(configuration?: Configuration) {
18066
+ const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration)
18067
+ return {
17333
18068
  /**
17334
18069
  *
17335
18070
  * @param {*} [options] Override http request option.
@@ -17419,6 +18154,19 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
17419
18154
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getUserProfileStaff']?.[localVarOperationServerIndex]?.url;
17420
18155
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17421
18156
  },
18157
+ /**
18158
+ *
18159
+ * @param {string} id
18160
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
18161
+ * @param {*} [options] Override http request option.
18162
+ * @throws {RequiredError}
18163
+ */
18164
+ async updateUserCreditsStaff(id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffUserProfileResponse>> {
18165
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
18166
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18167
+ const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']?.[localVarOperationServerIndex]?.url;
18168
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18169
+ },
17422
18170
  }
17423
18171
  };
17424
18172
 
@@ -17429,15 +18177,6 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
17429
18177
  export const ClubsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17430
18178
  const localVarFp = ClubsStaffApiFp(configuration)
17431
18179
  return {
17432
- /**
17433
- * Crée une facture manuelle (on-site) et l\'associe à une réservation
17434
- * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
17435
- * @param {*} [options] Override http request option.
17436
- * @throws {RequiredError}
17437
- */
17438
- createOnsiteInvoiceForBooking(requestParameters: ClubsStaffApiCreateOnsiteInvoiceForBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateOnsiteInvoiceResponse> {
17439
- return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
17440
- },
17441
18180
  /**
17442
18181
  *
17443
18182
  * @param {*} [options] Override http request option.
@@ -17503,42 +18242,51 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
17503
18242
  getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
17504
18243
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
17505
18244
  },
18245
+ /**
18246
+ *
18247
+ * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
18248
+ * @param {*} [options] Override http request option.
18249
+ * @throws {RequiredError}
18250
+ */
18251
+ updateUserCreditsStaff(requestParameters: ClubsStaffApiUpdateUserCreditsStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
18252
+ return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
18253
+ },
17506
18254
  };
17507
18255
  };
17508
18256
 
17509
18257
  /**
17510
- * Request parameters for createOnsiteInvoiceForBooking operation in ClubsStaffApi.
18258
+ * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
17511
18259
  * @export
17512
- * @interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest
18260
+ * @interface ClubsStaffApiGetUserProfileStaffRequest
17513
18261
  */
17514
- export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
18262
+ export interface ClubsStaffApiGetUserProfileStaffRequest {
17515
18263
  /**
17516
18264
  *
17517
18265
  * @type {string}
17518
- * @memberof ClubsStaffApiCreateOnsiteInvoiceForBooking
17519
- */
17520
- readonly bookingId: string
17521
-
17522
- /**
17523
- *
17524
- * @type {CreateOnsiteInvoiceRequest}
17525
- * @memberof ClubsStaffApiCreateOnsiteInvoiceForBooking
18266
+ * @memberof ClubsStaffApiGetUserProfileStaff
17526
18267
  */
17527
- readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
18268
+ readonly id: string
17528
18269
  }
17529
18270
 
17530
18271
  /**
17531
- * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
18272
+ * Request parameters for updateUserCreditsStaff operation in ClubsStaffApi.
17532
18273
  * @export
17533
- * @interface ClubsStaffApiGetUserProfileStaffRequest
18274
+ * @interface ClubsStaffApiUpdateUserCreditsStaffRequest
17534
18275
  */
17535
- export interface ClubsStaffApiGetUserProfileStaffRequest {
18276
+ export interface ClubsStaffApiUpdateUserCreditsStaffRequest {
17536
18277
  /**
17537
18278
  *
17538
18279
  * @type {string}
17539
- * @memberof ClubsStaffApiGetUserProfileStaff
18280
+ * @memberof ClubsStaffApiUpdateUserCreditsStaff
17540
18281
  */
17541
18282
  readonly id: string
18283
+
18284
+ /**
18285
+ *
18286
+ * @type {UpdateUserCreditsRequest}
18287
+ * @memberof ClubsStaffApiUpdateUserCreditsStaff
18288
+ */
18289
+ readonly updateUserCreditsRequest: UpdateUserCreditsRequest
17542
18290
  }
17543
18291
 
17544
18292
  /**
@@ -17548,17 +18296,6 @@ export interface ClubsStaffApiGetUserProfileStaffRequest {
17548
18296
  * @extends {BaseAPI}
17549
18297
  */
17550
18298
  export class ClubsStaffApi extends BaseAPI {
17551
- /**
17552
- * Crée une facture manuelle (on-site) et l\'associe à une réservation
17553
- * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
17554
- * @param {*} [options] Override http request option.
17555
- * @throws {RequiredError}
17556
- * @memberof ClubsStaffApi
17557
- */
17558
- public createOnsiteInvoiceForBooking(requestParameters: ClubsStaffApiCreateOnsiteInvoiceForBookingRequest, options?: RawAxiosRequestConfig) {
17559
- return ClubsStaffApiFp(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
17560
- }
17561
-
17562
18299
  /**
17563
18300
  *
17564
18301
  * @param {*} [options] Override http request option.
@@ -17639,6 +18376,17 @@ export class ClubsStaffApi extends BaseAPI {
17639
18376
  public getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig) {
17640
18377
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
17641
18378
  }
18379
+
18380
+ /**
18381
+ *
18382
+ * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
18383
+ * @param {*} [options] Override http request option.
18384
+ * @throws {RequiredError}
18385
+ * @memberof ClubsStaffApi
18386
+ */
18387
+ public updateUserCreditsStaff(requestParameters: ClubsStaffApiUpdateUserCreditsStaffRequest, options?: RawAxiosRequestConfig) {
18388
+ return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
18389
+ }
17642
18390
  }
17643
18391
 
17644
18392
 
@@ -18203,45 +18951,6 @@ export type GetPublishedEventsByClubIdTypeEnum = typeof GetPublishedEventsByClub
18203
18951
  */
18204
18952
  export const EventsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
18205
18953
  return {
18206
- /**
18207
- * Check if there are bookings overlapping an event window (for create/update/delete)
18208
- * @param {EventConflictCheckRequest} eventConflictCheckRequest
18209
- * @param {*} [options] Override http request option.
18210
- * @throws {RequiredError}
18211
- */
18212
- checkEventConflicts: async (eventConflictCheckRequest: EventConflictCheckRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18213
- // verify required parameter 'eventConflictCheckRequest' is not null or undefined
18214
- assertParamExists('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest)
18215
- const localVarPath = `/api/events/manager/checkConflicts`;
18216
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18217
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18218
- let baseOptions;
18219
- if (configuration) {
18220
- baseOptions = configuration.baseOptions;
18221
- }
18222
-
18223
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18224
- const localVarHeaderParameter = {} as any;
18225
- const localVarQueryParameter = {} as any;
18226
-
18227
- // authentication bearerAuth required
18228
- // http bearer authentication required
18229
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
18230
-
18231
-
18232
-
18233
- localVarHeaderParameter['Content-Type'] = 'application/json';
18234
-
18235
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18236
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18237
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18238
- localVarRequestOptions.data = serializeDataIfNeeded(eventConflictCheckRequest, localVarRequestOptions, configuration)
18239
-
18240
- return {
18241
- url: toPathString(localVarUrlObj),
18242
- options: localVarRequestOptions,
18243
- };
18244
- },
18245
18954
  /**
18246
18955
  * Create a new event (manager)
18247
18956
  * @param {CreateEventRequest} createEventRequest
@@ -18423,49 +19132,6 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
18423
19132
 
18424
19133
 
18425
19134
 
18426
- localVarHeaderParameter['Content-Type'] = 'application/json';
18427
-
18428
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18429
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18430
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18431
- localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration)
18432
-
18433
- return {
18434
- url: toPathString(localVarUrlObj),
18435
- options: localVarRequestOptions,
18436
- };
18437
- },
18438
- /**
18439
- * Update a published event (manager) and propagate slot changes and conflicts
18440
- * @param {string} eventId
18441
- * @param {UpdateEventRequest} updateEventRequest
18442
- * @param {*} [options] Override http request option.
18443
- * @throws {RequiredError}
18444
- */
18445
- updatePublishedEvent: async (eventId: string, updateEventRequest: UpdateEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18446
- // verify required parameter 'eventId' is not null or undefined
18447
- assertParamExists('updatePublishedEvent', 'eventId', eventId)
18448
- // verify required parameter 'updateEventRequest' is not null or undefined
18449
- assertParamExists('updatePublishedEvent', 'updateEventRequest', updateEventRequest)
18450
- const localVarPath = `/api/events/manager/updatePublishedEvent/{eventId}`
18451
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
18452
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18453
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18454
- let baseOptions;
18455
- if (configuration) {
18456
- baseOptions = configuration.baseOptions;
18457
- }
18458
-
18459
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18460
- const localVarHeaderParameter = {} as any;
18461
- const localVarQueryParameter = {} as any;
18462
-
18463
- // authentication bearerAuth required
18464
- // http bearer authentication required
18465
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
18466
-
18467
-
18468
-
18469
19135
  localVarHeaderParameter['Content-Type'] = 'application/json';
18470
19136
 
18471
19137
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18488,18 +19154,6 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
18488
19154
  export const EventsManagerApiFp = function(configuration?: Configuration) {
18489
19155
  const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration)
18490
19156
  return {
18491
- /**
18492
- * Check if there are bookings overlapping an event window (for create/update/delete)
18493
- * @param {EventConflictCheckRequest} eventConflictCheckRequest
18494
- * @param {*} [options] Override http request option.
18495
- * @throws {RequiredError}
18496
- */
18497
- async checkEventConflicts(eventConflictCheckRequest: EventConflictCheckRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventConflictCheckResponse>> {
18498
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
18499
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18500
- const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.checkEventConflicts']?.[localVarOperationServerIndex]?.url;
18501
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18502
- },
18503
19157
  /**
18504
19158
  * Create a new event (manager)
18505
19159
  * @param {CreateEventRequest} createEventRequest
@@ -18561,19 +19215,6 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
18561
19215
  const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updateEvent']?.[localVarOperationServerIndex]?.url;
18562
19216
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18563
19217
  },
18564
- /**
18565
- * Update a published event (manager) and propagate slot changes and conflicts
18566
- * @param {string} eventId
18567
- * @param {UpdateEventRequest} updateEventRequest
18568
- * @param {*} [options] Override http request option.
18569
- * @throws {RequiredError}
18570
- */
18571
- async updatePublishedEvent(eventId: string, updateEventRequest: UpdateEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
18572
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
18573
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18574
- const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updatePublishedEvent']?.[localVarOperationServerIndex]?.url;
18575
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18576
- },
18577
19218
  }
18578
19219
  };
18579
19220
 
@@ -18584,15 +19225,6 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
18584
19225
  export const EventsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18585
19226
  const localVarFp = EventsManagerApiFp(configuration)
18586
19227
  return {
18587
- /**
18588
- * Check if there are bookings overlapping an event window (for create/update/delete)
18589
- * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
18590
- * @param {*} [options] Override http request option.
18591
- * @throws {RequiredError}
18592
- */
18593
- checkEventConflicts(requestParameters: EventsManagerApiCheckEventConflictsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventConflictCheckResponse> {
18594
- return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
18595
- },
18596
19228
  /**
18597
19229
  * Create a new event (manager)
18598
19230
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -18638,32 +19270,9 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
18638
19270
  updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
18639
19271
  return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
18640
19272
  },
18641
- /**
18642
- * Update a published event (manager) and propagate slot changes and conflicts
18643
- * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
18644
- * @param {*} [options] Override http request option.
18645
- * @throws {RequiredError}
18646
- */
18647
- updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
18648
- return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
18649
- },
18650
19273
  };
18651
19274
  };
18652
19275
 
18653
- /**
18654
- * Request parameters for checkEventConflicts operation in EventsManagerApi.
18655
- * @export
18656
- * @interface EventsManagerApiCheckEventConflictsRequest
18657
- */
18658
- export interface EventsManagerApiCheckEventConflictsRequest {
18659
- /**
18660
- *
18661
- * @type {EventConflictCheckRequest}
18662
- * @memberof EventsManagerApiCheckEventConflicts
18663
- */
18664
- readonly eventConflictCheckRequest: EventConflictCheckRequest
18665
- }
18666
-
18667
19276
  /**
18668
19277
  * Request parameters for createEvent operation in EventsManagerApi.
18669
19278
  * @export
@@ -18741,27 +19350,6 @@ export interface EventsManagerApiUpdateEventRequest {
18741
19350
  readonly updateEventRequest: UpdateEventRequest
18742
19351
  }
18743
19352
 
18744
- /**
18745
- * Request parameters for updatePublishedEvent operation in EventsManagerApi.
18746
- * @export
18747
- * @interface EventsManagerApiUpdatePublishedEventRequest
18748
- */
18749
- export interface EventsManagerApiUpdatePublishedEventRequest {
18750
- /**
18751
- *
18752
- * @type {string}
18753
- * @memberof EventsManagerApiUpdatePublishedEvent
18754
- */
18755
- readonly eventId: string
18756
-
18757
- /**
18758
- *
18759
- * @type {UpdateEventRequest}
18760
- * @memberof EventsManagerApiUpdatePublishedEvent
18761
- */
18762
- readonly updateEventRequest: UpdateEventRequest
18763
- }
18764
-
18765
19353
  /**
18766
19354
  * EventsManagerApi - object-oriented interface
18767
19355
  * @export
@@ -18769,17 +19357,6 @@ export interface EventsManagerApiUpdatePublishedEventRequest {
18769
19357
  * @extends {BaseAPI}
18770
19358
  */
18771
19359
  export class EventsManagerApi extends BaseAPI {
18772
- /**
18773
- * Check if there are bookings overlapping an event window (for create/update/delete)
18774
- * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
18775
- * @param {*} [options] Override http request option.
18776
- * @throws {RequiredError}
18777
- * @memberof EventsManagerApi
18778
- */
18779
- public checkEventConflicts(requestParameters: EventsManagerApiCheckEventConflictsRequest, options?: RawAxiosRequestConfig) {
18780
- return EventsManagerApiFp(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
18781
- }
18782
-
18783
19360
  /**
18784
19361
  * Create a new event (manager)
18785
19362
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -18834,41 +19411,119 @@ export class EventsManagerApi extends BaseAPI {
18834
19411
  public updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig) {
18835
19412
  return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
18836
19413
  }
19414
+ }
19415
+
19416
+
19417
+
19418
+ /**
19419
+ * EventsStaffApi - axios parameter creator
19420
+ * @export
19421
+ */
19422
+ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
19423
+ return {
19424
+ /**
19425
+ * Get events for the day view (entire week)
19426
+ * @param {string} [clubId]
19427
+ * @param {string} [date]
19428
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
19429
+ * @param {GetDailyEventsTypeEnum} [type]
19430
+ * @param {string} [sportId]
19431
+ * @param {*} [options] Override http request option.
19432
+ * @throws {RequiredError}
19433
+ */
19434
+ getDailyEvents: async (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19435
+ const localVarPath = `/api/events/calendar/daily`;
19436
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19437
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19438
+ let baseOptions;
19439
+ if (configuration) {
19440
+ baseOptions = configuration.baseOptions;
19441
+ }
19442
+
19443
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19444
+ const localVarHeaderParameter = {} as any;
19445
+ const localVarQueryParameter = {} as any;
19446
+
19447
+ // authentication bearerAuth required
19448
+ // http bearer authentication required
19449
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19450
+
19451
+ if (clubId !== undefined) {
19452
+ localVarQueryParameter['clubId'] = clubId;
19453
+ }
19454
+
19455
+ if (date !== undefined) {
19456
+ localVarQueryParameter['date'] = date;
19457
+ }
19458
+
19459
+ if (visibilityType !== undefined) {
19460
+ localVarQueryParameter['visibilityType'] = visibilityType;
19461
+ }
19462
+
19463
+ if (type !== undefined) {
19464
+ localVarQueryParameter['type'] = type;
19465
+ }
19466
+
19467
+ if (sportId !== undefined) {
19468
+ localVarQueryParameter['sportId'] = sportId;
19469
+ }
19470
+
19471
+
19472
+
19473
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19475
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19476
+
19477
+ return {
19478
+ url: toPathString(localVarUrlObj),
19479
+ options: localVarRequestOptions,
19480
+ };
19481
+ },
19482
+ /**
19483
+ * Get all events for a club (staff only)
19484
+ * @param {*} [options] Override http request option.
19485
+ * @throws {RequiredError}
19486
+ */
19487
+ getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19488
+ const localVarPath = `/api/events/staff/getEvents`;
19489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19491
+ let baseOptions;
19492
+ if (configuration) {
19493
+ baseOptions = configuration.baseOptions;
19494
+ }
18837
19495
 
18838
- /**
18839
- * Update a published event (manager) and propagate slot changes and conflicts
18840
- * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
18841
- * @param {*} [options] Override http request option.
18842
- * @throws {RequiredError}
18843
- * @memberof EventsManagerApi
18844
- */
18845
- public updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig) {
18846
- return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
18847
- }
18848
- }
19496
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19497
+ const localVarHeaderParameter = {} as any;
19498
+ const localVarQueryParameter = {} as any;
19499
+
19500
+ // authentication bearerAuth required
19501
+ // http bearer authentication required
19502
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18849
19503
 
18850
19504
 
19505
+
19506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19508
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18851
19509
 
18852
- /**
18853
- * EventsStaffApi - axios parameter creator
18854
- * @export
18855
- */
18856
- export const EventsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
18857
- return {
19510
+ return {
19511
+ url: toPathString(localVarUrlObj),
19512
+ options: localVarRequestOptions,
19513
+ };
19514
+ },
18858
19515
  /**
18859
- * Check-in des participants d\'un EventBooking (clubs avec paiements)
18860
- * @param {string} eventBookingId
18861
- * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
19516
+ * Get events for the entire month view (including recurring occurrences)
19517
+ * @param {string} [clubId]
19518
+ * @param {string} [date]
19519
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
19520
+ * @param {GetMonthlyEventsTypeEnum} [type]
19521
+ * @param {string} [sportId]
18862
19522
  * @param {*} [options] Override http request option.
18863
19523
  * @throws {RequiredError}
18864
19524
  */
18865
- checkInEventParticipants: async (eventBookingId: string, checkInEventParticipantsRequest: CheckInEventParticipantsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18866
- // verify required parameter 'eventBookingId' is not null or undefined
18867
- assertParamExists('checkInEventParticipants', 'eventBookingId', eventBookingId)
18868
- // verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
18869
- assertParamExists('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest)
18870
- const localVarPath = `/api/events/{eventBookingId}/check-in`
18871
- .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
19525
+ getMonthlyEvents: async (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19526
+ const localVarPath = `/api/events/calendar/monthly`;
18872
19527
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18873
19528
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18874
19529
  let baseOptions;
@@ -18876,7 +19531,7 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18876
19531
  baseOptions = configuration.baseOptions;
18877
19532
  }
18878
19533
 
18879
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19534
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18880
19535
  const localVarHeaderParameter = {} as any;
18881
19536
  const localVarQueryParameter = {} as any;
18882
19537
 
@@ -18884,14 +19539,31 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18884
19539
  // http bearer authentication required
18885
19540
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
18886
19541
 
19542
+ if (clubId !== undefined) {
19543
+ localVarQueryParameter['clubId'] = clubId;
19544
+ }
19545
+
19546
+ if (date !== undefined) {
19547
+ localVarQueryParameter['date'] = date;
19548
+ }
19549
+
19550
+ if (visibilityType !== undefined) {
19551
+ localVarQueryParameter['visibilityType'] = visibilityType;
19552
+ }
19553
+
19554
+ if (type !== undefined) {
19555
+ localVarQueryParameter['type'] = type;
19556
+ }
19557
+
19558
+ if (sportId !== undefined) {
19559
+ localVarQueryParameter['sportId'] = sportId;
19560
+ }
18887
19561
 
18888
-
18889
- localVarHeaderParameter['Content-Type'] = 'application/json';
18890
19562
 
19563
+
18891
19564
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18892
19565
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18893
19566
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18894
- localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration)
18895
19567
 
18896
19568
  return {
18897
19569
  url: toPathString(localVarUrlObj),
@@ -18899,12 +19571,17 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18899
19571
  };
18900
19572
  },
18901
19573
  /**
18902
- * Get all events for a club (staff only)
19574
+ * Get events for the week view (30 day sliding window)
19575
+ * @param {string} [clubId]
19576
+ * @param {string} [date]
19577
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
19578
+ * @param {GetWeeklyEventsTypeEnum} [type]
19579
+ * @param {string} [sportId]
18903
19580
  * @param {*} [options] Override http request option.
18904
19581
  * @throws {RequiredError}
18905
19582
  */
18906
- getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18907
- const localVarPath = `/api/events/staff/getEvents`;
19583
+ getWeeklyEvents: async (clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19584
+ const localVarPath = `/api/events/calendar/weekly`;
18908
19585
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18909
19586
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18910
19587
  let baseOptions;
@@ -18920,6 +19597,26 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18920
19597
  // http bearer authentication required
18921
19598
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
18922
19599
 
19600
+ if (clubId !== undefined) {
19601
+ localVarQueryParameter['clubId'] = clubId;
19602
+ }
19603
+
19604
+ if (date !== undefined) {
19605
+ localVarQueryParameter['date'] = date;
19606
+ }
19607
+
19608
+ if (visibilityType !== undefined) {
19609
+ localVarQueryParameter['visibilityType'] = visibilityType;
19610
+ }
19611
+
19612
+ if (type !== undefined) {
19613
+ localVarQueryParameter['type'] = type;
19614
+ }
19615
+
19616
+ if (sportId !== undefined) {
19617
+ localVarQueryParameter['sportId'] = sportId;
19618
+ }
19619
+
18923
19620
 
18924
19621
 
18925
19622
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18942,16 +19639,19 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
18942
19639
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration)
18943
19640
  return {
18944
19641
  /**
18945
- * Check-in des participants d\'un EventBooking (clubs avec paiements)
18946
- * @param {string} eventBookingId
18947
- * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
19642
+ * Get events for the day view (entire week)
19643
+ * @param {string} [clubId]
19644
+ * @param {string} [date]
19645
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
19646
+ * @param {GetDailyEventsTypeEnum} [type]
19647
+ * @param {string} [sportId]
18948
19648
  * @param {*} [options] Override http request option.
18949
19649
  * @throws {RequiredError}
18950
19650
  */
18951
- async checkInEventParticipants(eventBookingId: string, checkInEventParticipantsRequest: CheckInEventParticipantsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInEventParticipants200Response>> {
18952
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options);
19651
+ async getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
19652
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
18953
19653
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18954
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.checkInEventParticipants']?.[localVarOperationServerIndex]?.url;
19654
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
18955
19655
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18956
19656
  },
18957
19657
  /**
@@ -18965,6 +19665,38 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
18965
19665
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
18966
19666
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18967
19667
  },
19668
+ /**
19669
+ * Get events for the entire month view (including recurring occurrences)
19670
+ * @param {string} [clubId]
19671
+ * @param {string} [date]
19672
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
19673
+ * @param {GetMonthlyEventsTypeEnum} [type]
19674
+ * @param {string} [sportId]
19675
+ * @param {*} [options] Override http request option.
19676
+ * @throws {RequiredError}
19677
+ */
19678
+ async getMonthlyEvents(clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
19679
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
19680
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19681
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getMonthlyEvents']?.[localVarOperationServerIndex]?.url;
19682
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19683
+ },
19684
+ /**
19685
+ * Get events for the week view (30 day sliding window)
19686
+ * @param {string} [clubId]
19687
+ * @param {string} [date]
19688
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
19689
+ * @param {GetWeeklyEventsTypeEnum} [type]
19690
+ * @param {string} [sportId]
19691
+ * @param {*} [options] Override http request option.
19692
+ * @throws {RequiredError}
19693
+ */
19694
+ async getWeeklyEvents(clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
19695
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
19696
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19697
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getWeeklyEvents']?.[localVarOperationServerIndex]?.url;
19698
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19699
+ },
18968
19700
  }
18969
19701
  };
18970
19702
 
@@ -18976,13 +19708,13 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
18976
19708
  const localVarFp = EventsStaffApiFp(configuration)
18977
19709
  return {
18978
19710
  /**
18979
- * Check-in des participants d\'un EventBooking (clubs avec paiements)
18980
- * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
19711
+ * Get events for the day view (entire week)
19712
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
18981
19713
  * @param {*} [options] Override http request option.
18982
19714
  * @throws {RequiredError}
18983
19715
  */
18984
- checkInEventParticipants(requestParameters: EventsStaffApiCheckInEventParticipantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInEventParticipants200Response> {
18985
- return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
19716
+ getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
19717
+ return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
18986
19718
  },
18987
19719
  /**
18988
19720
  * Get all events for a club (staff only)
@@ -18992,28 +19724,151 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
18992
19724
  getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
18993
19725
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
18994
19726
  },
19727
+ /**
19728
+ * Get events for the entire month view (including recurring occurrences)
19729
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
19730
+ * @param {*} [options] Override http request option.
19731
+ * @throws {RequiredError}
19732
+ */
19733
+ getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
19734
+ return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
19735
+ },
19736
+ /**
19737
+ * Get events for the week view (30 day sliding window)
19738
+ * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
19739
+ * @param {*} [options] Override http request option.
19740
+ * @throws {RequiredError}
19741
+ */
19742
+ getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
19743
+ return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
19744
+ },
18995
19745
  };
18996
19746
  };
18997
19747
 
18998
19748
  /**
18999
- * Request parameters for checkInEventParticipants operation in EventsStaffApi.
19749
+ * Request parameters for getDailyEvents operation in EventsStaffApi.
19750
+ * @export
19751
+ * @interface EventsStaffApiGetDailyEventsRequest
19752
+ */
19753
+ export interface EventsStaffApiGetDailyEventsRequest {
19754
+ /**
19755
+ *
19756
+ * @type {string}
19757
+ * @memberof EventsStaffApiGetDailyEvents
19758
+ */
19759
+ readonly clubId?: string
19760
+
19761
+ /**
19762
+ *
19763
+ * @type {string}
19764
+ * @memberof EventsStaffApiGetDailyEvents
19765
+ */
19766
+ readonly date?: string
19767
+
19768
+ /**
19769
+ *
19770
+ * @type {'public' | 'private' | 'invitation'}
19771
+ * @memberof EventsStaffApiGetDailyEvents
19772
+ */
19773
+ readonly visibilityType?: GetDailyEventsVisibilityTypeEnum
19774
+
19775
+ /**
19776
+ *
19777
+ * @type {'event' | 'closure'}
19778
+ * @memberof EventsStaffApiGetDailyEvents
19779
+ */
19780
+ readonly type?: GetDailyEventsTypeEnum
19781
+
19782
+ /**
19783
+ *
19784
+ * @type {string}
19785
+ * @memberof EventsStaffApiGetDailyEvents
19786
+ */
19787
+ readonly sportId?: string
19788
+ }
19789
+
19790
+ /**
19791
+ * Request parameters for getMonthlyEvents operation in EventsStaffApi.
19792
+ * @export
19793
+ * @interface EventsStaffApiGetMonthlyEventsRequest
19794
+ */
19795
+ export interface EventsStaffApiGetMonthlyEventsRequest {
19796
+ /**
19797
+ *
19798
+ * @type {string}
19799
+ * @memberof EventsStaffApiGetMonthlyEvents
19800
+ */
19801
+ readonly clubId?: string
19802
+
19803
+ /**
19804
+ *
19805
+ * @type {string}
19806
+ * @memberof EventsStaffApiGetMonthlyEvents
19807
+ */
19808
+ readonly date?: string
19809
+
19810
+ /**
19811
+ *
19812
+ * @type {'public' | 'private' | 'invitation'}
19813
+ * @memberof EventsStaffApiGetMonthlyEvents
19814
+ */
19815
+ readonly visibilityType?: GetMonthlyEventsVisibilityTypeEnum
19816
+
19817
+ /**
19818
+ *
19819
+ * @type {'event' | 'closure'}
19820
+ * @memberof EventsStaffApiGetMonthlyEvents
19821
+ */
19822
+ readonly type?: GetMonthlyEventsTypeEnum
19823
+
19824
+ /**
19825
+ *
19826
+ * @type {string}
19827
+ * @memberof EventsStaffApiGetMonthlyEvents
19828
+ */
19829
+ readonly sportId?: string
19830
+ }
19831
+
19832
+ /**
19833
+ * Request parameters for getWeeklyEvents operation in EventsStaffApi.
19000
19834
  * @export
19001
- * @interface EventsStaffApiCheckInEventParticipantsRequest
19835
+ * @interface EventsStaffApiGetWeeklyEventsRequest
19002
19836
  */
19003
- export interface EventsStaffApiCheckInEventParticipantsRequest {
19837
+ export interface EventsStaffApiGetWeeklyEventsRequest {
19004
19838
  /**
19005
19839
  *
19006
19840
  * @type {string}
19007
- * @memberof EventsStaffApiCheckInEventParticipants
19841
+ * @memberof EventsStaffApiGetWeeklyEvents
19842
+ */
19843
+ readonly clubId?: string
19844
+
19845
+ /**
19846
+ *
19847
+ * @type {string}
19848
+ * @memberof EventsStaffApiGetWeeklyEvents
19849
+ */
19850
+ readonly date?: string
19851
+
19852
+ /**
19853
+ *
19854
+ * @type {'public' | 'private' | 'invitation'}
19855
+ * @memberof EventsStaffApiGetWeeklyEvents
19856
+ */
19857
+ readonly visibilityType?: GetWeeklyEventsVisibilityTypeEnum
19858
+
19859
+ /**
19860
+ *
19861
+ * @type {'event' | 'closure'}
19862
+ * @memberof EventsStaffApiGetWeeklyEvents
19008
19863
  */
19009
- readonly eventBookingId: string
19864
+ readonly type?: GetWeeklyEventsTypeEnum
19010
19865
 
19011
19866
  /**
19012
19867
  *
19013
- * @type {CheckInEventParticipantsRequest}
19014
- * @memberof EventsStaffApiCheckInEventParticipants
19868
+ * @type {string}
19869
+ * @memberof EventsStaffApiGetWeeklyEvents
19015
19870
  */
19016
- readonly checkInEventParticipantsRequest: CheckInEventParticipantsRequest
19871
+ readonly sportId?: string
19017
19872
  }
19018
19873
 
19019
19874
  /**
@@ -19024,14 +19879,14 @@ export interface EventsStaffApiCheckInEventParticipantsRequest {
19024
19879
  */
19025
19880
  export class EventsStaffApi extends BaseAPI {
19026
19881
  /**
19027
- * Check-in des participants d\'un EventBooking (clubs avec paiements)
19028
- * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
19882
+ * Get events for the day view (entire week)
19883
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
19029
19884
  * @param {*} [options] Override http request option.
19030
19885
  * @throws {RequiredError}
19031
19886
  * @memberof EventsStaffApi
19032
19887
  */
19033
- public checkInEventParticipants(requestParameters: EventsStaffApiCheckInEventParticipantsRequest, options?: RawAxiosRequestConfig) {
19034
- return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
19888
+ public getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig) {
19889
+ return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
19035
19890
  }
19036
19891
 
19037
19892
  /**
@@ -19043,8 +19898,81 @@ export class EventsStaffApi extends BaseAPI {
19043
19898
  public getEventsByClub(options?: RawAxiosRequestConfig) {
19044
19899
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
19045
19900
  }
19901
+
19902
+ /**
19903
+ * Get events for the entire month view (including recurring occurrences)
19904
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
19905
+ * @param {*} [options] Override http request option.
19906
+ * @throws {RequiredError}
19907
+ * @memberof EventsStaffApi
19908
+ */
19909
+ public getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig) {
19910
+ return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
19911
+ }
19912
+
19913
+ /**
19914
+ * Get events for the week view (30 day sliding window)
19915
+ * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
19916
+ * @param {*} [options] Override http request option.
19917
+ * @throws {RequiredError}
19918
+ * @memberof EventsStaffApi
19919
+ */
19920
+ public getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig) {
19921
+ return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
19922
+ }
19046
19923
  }
19047
19924
 
19925
+ /**
19926
+ * @export
19927
+ */
19928
+ export const GetDailyEventsVisibilityTypeEnum = {
19929
+ Public: 'public',
19930
+ Private: 'private',
19931
+ Invitation: 'invitation'
19932
+ } as const;
19933
+ export type GetDailyEventsVisibilityTypeEnum = typeof GetDailyEventsVisibilityTypeEnum[keyof typeof GetDailyEventsVisibilityTypeEnum];
19934
+ /**
19935
+ * @export
19936
+ */
19937
+ export const GetDailyEventsTypeEnum = {
19938
+ Event: 'event',
19939
+ Closure: 'closure'
19940
+ } as const;
19941
+ export type GetDailyEventsTypeEnum = typeof GetDailyEventsTypeEnum[keyof typeof GetDailyEventsTypeEnum];
19942
+ /**
19943
+ * @export
19944
+ */
19945
+ export const GetMonthlyEventsVisibilityTypeEnum = {
19946
+ Public: 'public',
19947
+ Private: 'private',
19948
+ Invitation: 'invitation'
19949
+ } as const;
19950
+ export type GetMonthlyEventsVisibilityTypeEnum = typeof GetMonthlyEventsVisibilityTypeEnum[keyof typeof GetMonthlyEventsVisibilityTypeEnum];
19951
+ /**
19952
+ * @export
19953
+ */
19954
+ export const GetMonthlyEventsTypeEnum = {
19955
+ Event: 'event',
19956
+ Closure: 'closure'
19957
+ } as const;
19958
+ export type GetMonthlyEventsTypeEnum = typeof GetMonthlyEventsTypeEnum[keyof typeof GetMonthlyEventsTypeEnum];
19959
+ /**
19960
+ * @export
19961
+ */
19962
+ export const GetWeeklyEventsVisibilityTypeEnum = {
19963
+ Public: 'public',
19964
+ Private: 'private',
19965
+ Invitation: 'invitation'
19966
+ } as const;
19967
+ export type GetWeeklyEventsVisibilityTypeEnum = typeof GetWeeklyEventsVisibilityTypeEnum[keyof typeof GetWeeklyEventsVisibilityTypeEnum];
19968
+ /**
19969
+ * @export
19970
+ */
19971
+ export const GetWeeklyEventsTypeEnum = {
19972
+ Event: 'event',
19973
+ Closure: 'closure'
19974
+ } as const;
19975
+ export type GetWeeklyEventsTypeEnum = typeof GetWeeklyEventsTypeEnum[keyof typeof GetWeeklyEventsTypeEnum];
19048
19976
 
19049
19977
 
19050
19978
  /**