@tennac-booking/sdk 1.0.111 → 1.0.112

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 +13 -16
  2. package/README.md +20 -30
  3. package/api.ts +1047 -1975
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +654 -1214
  8. package/dist/api.js +480 -1109
  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 +654 -1214
  16. package/dist/esm/api.js +494 -1119
  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/BookingsWithTimeBoundsResponse.md +1 -1
  28. package/docs/CheckInEventParticipants200Response.md +22 -0
  29. package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
  30. package/docs/{ClientRegisterResponse.md → CheckInEventParticipantsRequest.md} +5 -7
  31. package/docs/ClientApi.md +58 -3
  32. package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
  33. package/docs/ClientFullOnboardingResponseClub.md +24 -0
  34. package/docs/ClientRegister201Response.md +26 -0
  35. package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
  36. package/docs/ClubPlayerDetailResponse.md +0 -2
  37. package/docs/ClubSummary.md +2 -8
  38. package/docs/ClubsManagerApi.md +0 -56
  39. package/docs/ClubsStaffApi.md +59 -55
  40. package/docs/CreateEventRequest.md +1 -3
  41. package/docs/CreateOnsiteInvoiceRequest.md +28 -0
  42. package/docs/CreateOnsiteInvoiceResponse.md +22 -0
  43. package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
  44. package/docs/EventConflictCheckRequest.md +28 -0
  45. package/docs/EventConflictCheckResponse.md +26 -0
  46. package/docs/EventsManagerApi.md +114 -0
  47. package/docs/EventsStaffApi.md +20 -159
  48. package/docs/JoinEventRequest.md +8 -0
  49. package/docs/{AgendaBookingPlayer.md → JoinEventRequestPlayersPaymentMethodsInner.md} +5 -9
  50. package/docs/PaymentMethod.md +4 -0
  51. package/docs/PublishEventResponse.md +2 -0
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
  54. package/docs/ActiveSubscriptionResponse.md +0 -22
  55. package/docs/AgendaBooking.md +0 -30
  56. package/docs/AgendaBookingSlot.md +0 -30
  57. package/docs/AgendaPaymentStatus.md +0 -12
  58. package/docs/ClientAccountOnboardingRequest.md +0 -29
  59. package/docs/ClientAccountResponse.md +0 -44
  60. package/docs/ClientAccountsApi.md +0 -408
  61. package/docs/ClientMeResponse.md +0 -28
  62. package/docs/ClientOnboardingResponse.md +0 -27
  63. package/docs/ClientSubscriptionResponse.md +0 -34
  64. package/docs/GetSubscriptionsHistory200Response.md +0 -22
  65. package/docs/UpdateUserCreditsRequest.md +0 -20
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.104
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,25 +23,6 @@ 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
- }
45
26
  /**
46
27
  *
47
28
  * @export
@@ -129,140 +110,6 @@ export interface AddOrganizationRequest {
129
110
  */
130
111
  'organizationId'?: string;
131
112
  }
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
-
266
113
  /**
267
114
  *
268
115
  * @export
@@ -1284,10 +1131,10 @@ export interface BookingSummaryClubAddress {
1284
1131
  export interface BookingsWithTimeBoundsResponse {
1285
1132
  /**
1286
1133
  *
1287
- * @type {Array<AgendaBooking>}
1134
+ * @type {Array<BookingPopulated>}
1288
1135
  * @memberof BookingsWithTimeBoundsResponse
1289
1136
  */
1290
- 'bookings': Array<AgendaBooking>;
1137
+ 'bookings': Array<BookingPopulated>;
1291
1138
  /**
1292
1139
  *
1293
1140
  * @type {TimeBounds}
@@ -1403,6 +1250,77 @@ export interface ChangePasswordResponse {
1403
1250
  */
1404
1251
  'message': string;
1405
1252
  }
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
+ }
1406
1324
  /**
1407
1325
  *
1408
1326
  * @export
@@ -1493,417 +1411,183 @@ export interface CheckedInPlayer {
1493
1411
 
1494
1412
 
1495
1413
  /**
1496
- * Types pour les requêtes/réponses
1414
+ *
1497
1415
  * @export
1498
- * @interface ClientAccountOnboardingRequest
1416
+ * @interface ClientFullOnboardingResponse
1499
1417
  */
1500
- export interface ClientAccountOnboardingRequest {
1418
+ export interface ClientFullOnboardingResponse {
1419
+ /**
1420
+ *
1421
+ * @type {string}
1422
+ * @memberof ClientFullOnboardingResponse
1423
+ */
1424
+ 'clientAccountId': string;
1501
1425
  /**
1502
1426
  *
1503
1427
  * @type {string}
1504
- * @memberof ClientAccountOnboardingRequest
1428
+ * @memberof ClientFullOnboardingResponse
1505
1429
  */
1506
- 'businessName': string;
1430
+ 'stripeCustomerId': string;
1507
1431
  /**
1508
1432
  *
1509
1433
  * @type {string}
1510
- * @memberof ClientAccountOnboardingRequest
1434
+ * @memberof ClientFullOnboardingResponse
1511
1435
  */
1512
- 'businessType'?: ClientAccountOnboardingRequestBusinessTypeEnum;
1436
+ 'stripeConnectedAccountId'?: string;
1513
1437
  /**
1514
1438
  *
1515
1439
  * @type {string}
1516
- * @memberof ClientAccountOnboardingRequest
1440
+ * @memberof ClientFullOnboardingResponse
1517
1441
  */
1518
- 'subscriptionType'?: ClientAccountOnboardingRequestSubscriptionTypeEnum;
1442
+ 'clientOnboardingLink'?: string;
1519
1443
  /**
1520
1444
  *
1521
- * @type {boolean}
1522
- * @memberof ClientAccountOnboardingRequest
1445
+ * @type {ClientFullOnboardingResponseClub}
1446
+ * @memberof ClientFullOnboardingResponse
1523
1447
  */
1524
- 'isPublicOrganization'?: boolean;
1448
+ 'club': ClientFullOnboardingResponseClub;
1525
1449
  /**
1526
1450
  *
1527
1451
  * @type {string}
1528
- * @memberof ClientAccountOnboardingRequest
1452
+ * @memberof ClientFullOnboardingResponse
1529
1453
  */
1530
- 'priceId': string;
1454
+ 'message': string;
1531
1455
  }
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
-
1546
1456
  /**
1547
1457
  *
1548
1458
  * @export
1549
- * @interface ClientAccountOnboardingResponse
1459
+ * @interface ClientFullOnboardingResponseClub
1550
1460
  */
1551
- export interface ClientAccountOnboardingResponse {
1461
+ export interface ClientFullOnboardingResponseClub {
1552
1462
  /**
1553
1463
  *
1554
1464
  * @type {string}
1555
- * @memberof ClientAccountOnboardingResponse
1465
+ * @memberof ClientFullOnboardingResponseClub
1556
1466
  */
1557
- 'clientAccountId': string;
1467
+ 'clubOnboardingLink'?: string;
1558
1468
  /**
1559
1469
  *
1560
1470
  * @type {string}
1561
- * @memberof ClientAccountOnboardingResponse
1471
+ * @memberof ClientFullOnboardingResponseClub
1562
1472
  */
1563
- 'stripeCustomerId': string;
1473
+ 'stripeAccountId': string;
1564
1474
  /**
1565
1475
  *
1566
1476
  * @type {string}
1567
- * @memberof ClientAccountOnboardingResponse
1477
+ * @memberof ClientFullOnboardingResponseClub
1568
1478
  */
1569
- 'stripeConnectedAccountId'?: string;
1479
+ 'clubId': string;
1480
+ }
1481
+ /**
1482
+ * Requête pour l\'onboarding d\'un club
1483
+ * @export
1484
+ * @interface ClientOnboardingRequestBody
1485
+ */
1486
+ export interface ClientOnboardingRequestBody {
1570
1487
  /**
1571
- *
1488
+ * Nom du club
1572
1489
  * @type {string}
1573
- * @memberof ClientAccountOnboardingResponse
1490
+ * @memberof ClientOnboardingRequestBody
1574
1491
  */
1575
- 'connectedAccountOnboardingLink'?: string;
1492
+ 'clubName': string;
1576
1493
  /**
1577
- *
1494
+ * Email du club pour le compte Stripe
1578
1495
  * @type {string}
1579
- * @memberof ClientAccountOnboardingResponse
1496
+ * @memberof ClientOnboardingRequestBody
1580
1497
  */
1581
- 'status': string;
1498
+ 'email': string;
1582
1499
  /**
1583
- *
1500
+ * Numéro de téléphone du club (optionnel)
1584
1501
  * @type {string}
1585
- * @memberof ClientAccountOnboardingResponse
1502
+ * @memberof ClientOnboardingRequestBody
1586
1503
  */
1587
- 'message': string;
1504
+ 'phone'?: string;
1588
1505
  /**
1589
- *
1590
- * @type {boolean}
1591
- * @memberof ClientAccountOnboardingResponse
1506
+ * Adresse du club (optionnel)
1507
+ * @type {string}
1508
+ * @memberof ClientOnboardingRequestBody
1592
1509
  */
1593
- 'isPublicOrganization': boolean;
1510
+ 'address'?: string;
1594
1511
  /**
1595
- *
1596
- * @type {boolean}
1597
- * @memberof ClientAccountOnboardingResponse
1512
+ * Ville du club (optionnel)
1513
+ * @type {string}
1514
+ * @memberof ClientOnboardingRequestBody
1515
+ */
1516
+ 'city'?: string;
1517
+ /**
1518
+ * Code postal du club (optionnel)
1519
+ * @type {string}
1520
+ * @memberof ClientOnboardingRequestBody
1521
+ */
1522
+ 'postalCode'?: string;
1523
+ /**
1524
+ * Pays du club (optionnel)
1525
+ * @type {string}
1526
+ * @memberof ClientOnboardingRequestBody
1598
1527
  */
1599
- 'manualInvoiceRequired'?: boolean;
1528
+ 'country'?: string;
1600
1529
  }
1601
1530
  /**
1602
1531
  *
1603
1532
  * @export
1604
- * @interface ClientAccountResponse
1533
+ * @interface ClientRegister201Response
1605
1534
  */
1606
- export interface ClientAccountResponse {
1535
+ export interface ClientRegister201Response {
1607
1536
  /**
1608
1537
  *
1609
1538
  * @type {string}
1610
- * @memberof ClientAccountResponse
1539
+ * @memberof ClientRegister201Response
1611
1540
  */
1612
- 'id': string;
1541
+ 'message': string;
1613
1542
  /**
1614
1543
  *
1615
1544
  * @type {string}
1616
- * @memberof ClientAccountResponse
1545
+ * @memberof ClientRegister201Response
1617
1546
  */
1618
- 'email': string;
1547
+ 'stripeCustomerId': string;
1619
1548
  /**
1620
1549
  *
1621
1550
  * @type {string}
1622
- * @memberof ClientAccountResponse
1551
+ * @memberof ClientRegister201Response
1623
1552
  */
1624
- 'businessName': string;
1553
+ 'email': string;
1625
1554
  /**
1626
1555
  *
1627
1556
  * @type {string}
1628
- * @memberof ClientAccountResponse
1557
+ * @memberof ClientRegister201Response
1629
1558
  */
1630
- 'businessType': string;
1559
+ 'userId': string;
1560
+ }
1561
+ /**
1562
+ *
1563
+ * @export
1564
+ * @interface ClientRegisterRequest
1565
+ */
1566
+ export interface ClientRegisterRequest {
1631
1567
  /**
1632
1568
  *
1633
1569
  * @type {string}
1634
- * @memberof ClientAccountResponse
1570
+ * @memberof ClientRegisterRequest
1635
1571
  */
1636
- 'subscriptionType': string;
1572
+ 'password': string;
1637
1573
  /**
1638
1574
  *
1639
1575
  * @type {string}
1640
- * @memberof ClientAccountResponse
1641
- */
1642
- 'status': string;
1643
- /**
1644
- *
1645
- * @type {boolean}
1646
- * @memberof ClientAccountResponse
1576
+ * @memberof ClientRegisterRequest
1647
1577
  */
1648
- 'platformPaymentMethodSetup': boolean;
1578
+ 'email': string;
1649
1579
  /**
1650
1580
  *
1651
1581
  * @type {string}
1652
- * @memberof ClientAccountResponse
1582
+ * @memberof ClientRegisterRequest
1653
1583
  */
1654
- 'stripeConnectedAccountId'?: string;
1584
+ 'lastName': string;
1655
1585
  /**
1656
1586
  *
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
1587
+ * @type {string}
1588
+ * @memberof ClientRegisterRequest
1825
1589
  */
1826
1590
  '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
1591
  }
1908
1592
  /**
1909
1593
  *
@@ -2462,12 +2146,6 @@ export interface ClubPlayerDetailResponse {
2462
2146
  * @memberof ClubPlayerDetailResponse
2463
2147
  */
2464
2148
  'birthDate': string | null;
2465
- /**
2466
- *
2467
- * @type {number}
2468
- * @memberof ClubPlayerDetailResponse
2469
- */
2470
- 'credits': number | null;
2471
2149
  }
2472
2150
  /**
2473
2151
  *
@@ -3210,19 +2888,7 @@ export interface ClubSummary {
3210
2888
  * @type {string}
3211
2889
  * @memberof ClubSummary
3212
2890
  */
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>;
2891
+ 'address'?: string | null;
3226
2892
  /**
3227
2893
  *
3228
2894
  * @type {UserLocationSummary}
@@ -3235,12 +2901,6 @@ export interface ClubSummary {
3235
2901
  * @memberof ClubSummary
3236
2902
  */
3237
2903
  'visitCount'?: number;
3238
- /**
3239
- *
3240
- * @type {Array<string>}
3241
- * @memberof ClubSummary
3242
- */
3243
- 'tags'?: Array<string>;
3244
2904
  }
3245
2905
  /**
3246
2906
  *
@@ -3718,19 +3378,13 @@ export interface CreateEventRequest {
3718
3378
  * @type {string}
3719
3379
  * @memberof CreateEventRequest
3720
3380
  */
3721
- 'recurringType'?: CreateEventRequestRecurringTypeEnum | null;
3381
+ 'recurringType': CreateEventRequestRecurringTypeEnum;
3722
3382
  /**
3723
3383
  *
3724
3384
  * @type {string}
3725
3385
  * @memberof CreateEventRequest
3726
3386
  */
3727
3387
  'recurrenceEndDate'?: string;
3728
- /**
3729
- *
3730
- * @type {number}
3731
- * @memberof CreateEventRequest
3732
- */
3733
- 'occurrences'?: number;
3734
3388
  /**
3735
3389
  *
3736
3390
  * @type {string}
@@ -3818,32 +3472,135 @@ export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisi
3818
3472
  /**
3819
3473
  *
3820
3474
  * @export
3821
- * @interface CreatePlan201Response
3475
+ * @interface CreateOnsiteInvoiceRequest
3822
3476
  */
3823
- export interface CreatePlan201Response {
3477
+ export interface CreateOnsiteInvoiceRequest {
3824
3478
  /**
3825
- *
3479
+ * Payer user id (creator or player)
3826
3480
  * @type {string}
3827
- * @memberof CreatePlan201Response
3481
+ * @memberof CreateOnsiteInvoiceRequest
3828
3482
  */
3829
- 'priceId': string;
3483
+ 'userId': string;
3484
+ /**
3485
+ * Amount in cents
3486
+ * @type {number}
3487
+ * @memberof CreateOnsiteInvoiceRequest
3488
+ */
3489
+ 'amount': number;
3490
+ /**
3491
+ *
3492
+ * @type {PaymentMethod}
3493
+ * @memberof CreateOnsiteInvoiceRequest
3494
+ */
3495
+ 'paymentMethod': PaymentMethod;
3830
3496
  /**
3831
3497
  *
3498
+ * @type {InvoiceStatus}
3499
+ * @memberof CreateOnsiteInvoiceRequest
3500
+ */
3501
+ 'status': InvoiceStatus;
3502
+ /**
3503
+ * Optional note/reason about the invoice
3832
3504
  * @type {string}
3833
- * @memberof CreatePlan201Response
3505
+ * @memberof CreateOnsiteInvoiceRequest
3834
3506
  */
3835
- 'productId': string;
3507
+ 'reason'?: string;
3836
3508
  }
3509
+
3510
+
3837
3511
  /**
3838
3512
  *
3839
3513
  * @export
3840
- * @interface CreateSportForClub201Response
3514
+ * @interface CreateOnsiteInvoiceResponse
3841
3515
  */
3842
- export interface CreateSportForClub201Response {
3516
+ export interface CreateOnsiteInvoiceResponse {
3517
+ /**
3518
+ * Confirmation message
3519
+ * @type {string}
3520
+ * @memberof CreateOnsiteInvoiceResponse
3521
+ */
3522
+ 'message': string;
3843
3523
  /**
3844
3524
  *
3845
- * @type {any}
3846
- * @memberof CreateSportForClub201Response
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;
3587
+ /**
3588
+ *
3589
+ * @type {string}
3590
+ * @memberof CreatePlan201Response
3591
+ */
3592
+ 'productId': string;
3593
+ }
3594
+ /**
3595
+ *
3596
+ * @export
3597
+ * @interface CreateSportForClub201Response
3598
+ */
3599
+ export interface CreateSportForClub201Response {
3600
+ /**
3601
+ *
3602
+ * @type {any}
3603
+ * @memberof CreateSportForClub201Response
3847
3604
  */
3848
3605
  'sport': any;
3849
3606
  }
@@ -4148,6 +3905,74 @@ export const DiscountType = {
4148
3905
  export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
4149
3906
 
4150
3907
 
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
+ }
4151
3976
  /**
4152
3977
  *
4153
3978
  * @export
@@ -4654,25 +4479,6 @@ export interface GetSlotsByClubById200Response {
4654
4479
  */
4655
4480
  'slots': Array<any>;
4656
4481
  }
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
- }
4676
4482
  /**
4677
4483
  *
4678
4484
  * @export
@@ -5235,7 +5041,54 @@ export interface JoinEventRequest {
5235
5041
  * @memberof JoinEventRequest
5236
5042
  */
5237
5043
  '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;
5238
5089
  }
5090
+
5091
+
5239
5092
  /**
5240
5093
  *
5241
5094
  * @export
@@ -5761,6 +5614,8 @@ export interface PaymentByPlayerInfo {
5761
5614
  export const PaymentMethod = {
5762
5615
  Online: 'online',
5763
5616
  Onsite: 'onsite',
5617
+ OnsiteCard: 'onsite_card',
5618
+ OnsiteCash: 'onsite_cash',
5764
5619
  Free: 'free'
5765
5620
  } as const;
5766
5621
 
@@ -6363,6 +6218,12 @@ export interface PublishEventResponse {
6363
6218
  * @memberof PublishEventResponse
6364
6219
  */
6365
6220
  'event': EventResponse;
6221
+ /**
6222
+ *
6223
+ * @type {Array<string>}
6224
+ * @memberof PublishEventResponse
6225
+ */
6226
+ 'refundedBookingIds'?: Array<string>;
6366
6227
  }
6367
6228
  /**
6368
6229
  *
@@ -9315,19 +9176,6 @@ export interface UpdateSubscriptionPlanForClub200Response {
9315
9176
  */
9316
9177
  'price': any;
9317
9178
  }
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
- }
9331
9179
  /**
9332
9180
  *
9333
9181
  * @export
@@ -11443,6 +11291,41 @@ export class BookingsUserApi extends BaseAPI {
11443
11291
  */
11444
11292
  export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
11445
11293
  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
+ },
11446
11329
  /**
11447
11330
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11448
11331
  * @param {*} [options] Override http request option.
@@ -11497,6 +11380,10 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11497
11380
  const localVarHeaderParameter = {} as any;
11498
11381
  const localVarQueryParameter = {} as any;
11499
11382
 
11383
+ // authentication clientAuth required
11384
+ // http bearer authentication required
11385
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11386
+
11500
11387
 
11501
11388
 
11502
11389
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -11521,6 +11408,18 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11521
11408
  export const ClientApiFp = function(configuration?: Configuration) {
11522
11409
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
11523
11410
  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
+ },
11524
11423
  /**
11525
11424
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11526
11425
  * @param {*} [options] Override http request option.
@@ -11538,7 +11437,7 @@ export const ClientApiFp = function(configuration?: Configuration) {
11538
11437
  * @param {*} [options] Override http request option.
11539
11438
  * @throws {RequiredError}
11540
11439
  */
11541
- async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientOnboardingResponse>> {
11440
+ async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientFullOnboardingResponse>> {
11542
11441
  const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
11543
11442
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11544
11443
  const localVarOperationServerBasePath = operationServerMap['ClientApi.onboardClub']?.[localVarOperationServerIndex]?.url;
@@ -11554,6 +11453,15 @@ export const ClientApiFp = function(configuration?: Configuration) {
11554
11453
  export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11555
11454
  const localVarFp = ClientApiFp(configuration)
11556
11455
  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
+ },
11557
11465
  /**
11558
11466
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11559
11467
  * @param {*} [options] Override http request option.
@@ -11568,12 +11476,26 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
11568
11476
  * @param {*} [options] Override http request option.
11569
11477
  * @throws {RequiredError}
11570
11478
  */
11571
- onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientOnboardingResponse> {
11479
+ onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientFullOnboardingResponse> {
11572
11480
  return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
11573
11481
  },
11574
11482
  };
11575
11483
  };
11576
11484
 
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
+
11577
11499
  /**
11578
11500
  * Request parameters for onboardClub operation in ClientApi.
11579
11501
  * @export
@@ -11595,6 +11517,17 @@ export interface ClientApiOnboardClubRequest {
11595
11517
  * @extends {BaseAPI}
11596
11518
  */
11597
11519
  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
+
11598
11531
  /**
11599
11532
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11600
11533
  * @param {*} [options] Override http request option.
@@ -11620,18 +11553,18 @@ export class ClientApi extends BaseAPI {
11620
11553
 
11621
11554
 
11622
11555
  /**
11623
- * ClientAccountsApi - axios parameter creator
11556
+ * ClubAnalyticsApi - axios parameter creator
11624
11557
  * @export
11625
11558
  */
11626
- export const ClientAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
11559
+ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
11627
11560
  return {
11628
11561
  /**
11629
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11562
+ * Récupère les clubs les plus aimés
11630
11563
  * @param {*} [options] Override http request option.
11631
11564
  * @throws {RequiredError}
11632
11565
  */
11633
- clientAuthMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11634
- const localVarPath = `/client-accounts/client-auth/me`;
11566
+ getMostLikedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11567
+ const localVarPath = `/api/club-analytics/most-liked-clubs`;
11635
11568
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11636
11569
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11637
11570
  let baseOptions;
@@ -11643,7 +11576,7 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11643
11576
  const localVarHeaderParameter = {} as any;
11644
11577
  const localVarQueryParameter = {} as any;
11645
11578
 
11646
- // authentication clientAuth required
11579
+ // authentication bearerAuth required
11647
11580
  // http bearer authentication required
11648
11581
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11649
11582
 
@@ -11659,16 +11592,12 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11659
11592
  };
11660
11593
  },
11661
11594
  /**
11662
- * Récupère le compte client par son ID
11663
- * @param {string} accountId L\&#39;ID du compte client
11595
+ * Récupère les clubs populaires
11664
11596
  * @param {*} [options] Override http request option.
11665
11597
  * @throws {RequiredError}
11666
11598
  */
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)));
11599
+ getPopularClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11600
+ const localVarPath = `/api/club-analytics/popular-clubs`;
11672
11601
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11673
11602
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11674
11603
  let baseOptions;
@@ -11695,14 +11624,115 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11695
11624
  options: localVarRequestOptions,
11696
11625
  };
11697
11626
  },
11698
- /**
11699
- * Récupère l\'abonnement actif du compte client authentifié
11700
- * @param {*} [options] Override http request option.
11701
- * @throws {RequiredError}
11702
- */
11703
- getMyActiveSubscription: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11704
- const localVarPath = `/client-accounts/me/subscription`;
11705
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
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
+ /**
11725
+ * Récupère les analytics par sport
11726
+ * @param {string} sportId
11727
+ * @param {*} [options] Override http request option.
11728
+ * @throws {RequiredError}
11729
+ */
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)));
11735
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11706
11736
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11707
11737
  let baseOptions;
11708
11738
  if (configuration) {
@@ -11729,12 +11759,18 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11729
11759
  };
11730
11760
  },
11731
11761
  /**
11732
- * Récupère le compte client de l\'utilisateur authentifié
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]
11733
11766
  * @param {*} [options] Override http request option.
11734
11767
  * @throws {RequiredError}
11735
11768
  */
11736
- getMyClientAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11737
- const localVarPath = `/client-accounts/me`;
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)));
11738
11774
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11739
11775
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11740
11776
  let baseOptions;
@@ -11750,6 +11786,14 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11750
11786
  // http bearer authentication required
11751
11787
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11752
11788
 
11789
+ if (page !== undefined) {
11790
+ localVarQueryParameter['page'] = page;
11791
+ }
11792
+
11793
+ if (pageSize !== undefined) {
11794
+ localVarQueryParameter['pageSize'] = pageSize;
11795
+ }
11796
+
11753
11797
 
11754
11798
 
11755
11799
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -11762,12 +11806,16 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11762
11806
  };
11763
11807
  },
11764
11808
  /**
11765
- * Récupère l\'historique des abonnements du compte client authentifié
11809
+ * Récupère les informations détaillées d\'un joueur par son ID
11810
+ * @param {string} playerId
11766
11811
  * @param {*} [options] Override http request option.
11767
11812
  * @throws {RequiredError}
11768
11813
  */
11769
- getSubscriptionsHistory: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11770
- const localVarPath = `/client-accounts/me/subscriptions-history`;
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)));
11771
11819
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11772
11820
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11773
11821
  let baseOptions;
@@ -11795,12 +11843,16 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11795
11843
  };
11796
11844
  },
11797
11845
  /**
11798
- * Liste les prix Stripe disponibles pour les abonnements client
11846
+ * Récupère les statistiques d\'un joueur pour le staff
11847
+ * @param {string} playerId
11799
11848
  * @param {*} [options] Override http request option.
11800
11849
  * @throws {RequiredError}
11801
11850
  */
11802
- listAvailablePrices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11803
- const localVarPath = `/client-accounts/plans/available-prices`;
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)));
11804
11856
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11805
11857
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11806
11858
  let baseOptions;
@@ -11828,15 +11880,12 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11828
11880
  };
11829
11881
  },
11830
11882
  /**
11831
- * Crée un nouveau compte client avec onboarding Stripe
11832
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
11883
+ * Récupère la liste des joueurs du club
11833
11884
  * @param {*} [options] Override http request option.
11834
11885
  * @throws {RequiredError}
11835
11886
  */
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`;
11887
+ getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11888
+ const localVarPath = `/api/club-analytics/players`;
11840
11889
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11841
11890
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11842
11891
  let baseOptions;
@@ -11844,22 +11893,19 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11844
11893
  baseOptions = configuration.baseOptions;
11845
11894
  }
11846
11895
 
11847
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11896
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11848
11897
  const localVarHeaderParameter = {} as any;
11849
11898
  const localVarQueryParameter = {} as any;
11850
11899
 
11851
- // authentication clientAuth required
11900
+ // authentication bearerAuth required
11852
11901
  // http bearer authentication required
11853
11902
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11854
11903
 
11855
11904
 
11856
11905
 
11857
- localVarHeaderParameter['Content-Type'] = 'application/json';
11858
-
11859
11906
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11860
11907
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11861
11908
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11862
- localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration)
11863
11909
 
11864
11910
  return {
11865
11911
  url: toPathString(localVarUrlObj),
@@ -11867,15 +11913,15 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11867
11913
  };
11868
11914
  },
11869
11915
  /**
11870
- * Route d\'inscription d\'un utilisateur client (publique)
11871
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
11916
+ * Récupère le chiffre d\'affaires quotidien
11917
+ * @param {string} date
11872
11918
  * @param {*} [options] Override http request option.
11873
11919
  * @throws {RequiredError}
11874
11920
  */
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`;
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`;
11879
11925
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11880
11926
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11881
11927
  let baseOptions;
@@ -11883,818 +11929,107 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11883
11929
  baseOptions = configuration.baseOptions;
11884
11930
  }
11885
11931
 
11886
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11932
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11887
11933
  const localVarHeaderParameter = {} as any;
11888
11934
  const localVarQueryParameter = {} as any;
11889
11935
 
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
+
11890
11944
 
11891
11945
 
11892
- localVarHeaderParameter['Content-Type'] = 'application/json';
11893
-
11894
11946
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11895
11947
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11896
11948
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11897
- localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration)
11898
11949
 
11899
11950
  return {
11900
11951
  url: toPathString(localVarUrlObj),
11901
11952
  options: localVarRequestOptions,
11902
11953
  };
11903
11954
  },
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 {
11914
- /**
11915
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11916
- * @param {*} [options] Override http request option.
11917
- * @throws {RequiredError}
11918
- */
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);
11924
- },
11925
11955
  /**
11926
- * Récupère le compte client par son ID
11927
- * @param {string} accountId L\&#39;ID du compte client
11956
+ * Récupère les pourcentages par genre
11928
11957
  * @param {*} [options] Override http request option.
11929
11958
  * @throws {RequiredError}
11930
11959
  */
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);
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
+ };
11936
11987
  },
11937
11988
  /**
11938
- * Récupère l\'abonnement actif du compte client authentifié
11989
+ * Récupère le taux de remplissage (infill) pour une période donnée
11990
+ * @param {string} [startDate]
11991
+ * @param {string} [endDate]
11939
11992
  * @param {*} [options] Override http request option.
11940
11993
  * @throws {RequiredError}
11941
11994
  */
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);
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
+ };
11947
12030
  },
11948
12031
  /**
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
12032
+ * Récupère le chiffre d\'affaires des 6 derniers mois
12698
12033
  * @param {*} [options] Override http request option.
12699
12034
  * @throws {RequiredError}
12700
12035
  */
@@ -16163,43 +15498,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
16163
15498
 
16164
15499
 
16165
15500
 
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
-
16203
15501
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16204
15502
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16205
15503
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16811,18 +16109,6 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
16811
16109
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteActuality']?.[localVarOperationServerIndex]?.url;
16812
16110
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16813
16111
  },
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
- },
16826
16112
  /**
16827
16113
  * Supprime un terrain et ses créneaux futurs
16828
16114
  * @param {string} courtId
@@ -17055,15 +16341,6 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
17055
16341
  deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
17056
16342
  return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
17057
16343
  },
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
- },
17067
16344
  /**
17068
16345
  * Supprime un terrain et ses créneaux futurs
17069
16346
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -17288,20 +16565,6 @@ export interface ClubsManagerApiDeleteActualityRequest {
17288
16565
  readonly actualityId: string
17289
16566
  }
17290
16567
 
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
-
17305
16568
  /**
17306
16569
  * Request parameters for deleteCourt operation in ClubsManagerApi.
17307
16570
  * @export
@@ -17582,17 +16845,6 @@ export class ClubsManagerApi extends BaseAPI {
17582
16845
  return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
17583
16846
  }
17584
16847
 
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
-
17596
16848
  /**
17597
16849
  * Supprime un terrain et ses créneaux futurs
17598
16850
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -17745,12 +16997,19 @@ export class ClubsManagerApi extends BaseAPI {
17745
16997
  export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
17746
16998
  return {
17747
16999
  /**
17748
- *
17000
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
17001
+ * @param {string} bookingId
17002
+ * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
17749
17003
  * @param {*} [options] Override http request option.
17750
17004
  * @throws {RequiredError}
17751
17005
  */
17752
- getActualities: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17753
- const localVarPath = `/api/clubs/staff/actualities`;
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)));
17754
17013
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17755
17014
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17756
17015
  let baseOptions;
@@ -17758,7 +17017,7 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17758
17017
  baseOptions = configuration.baseOptions;
17759
17018
  }
17760
17019
 
17761
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17020
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17762
17021
  const localVarHeaderParameter = {} as any;
17763
17022
  const localVarQueryParameter = {} as any;
17764
17023
 
@@ -17768,9 +17027,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17768
17027
 
17769
17028
 
17770
17029
 
17030
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17031
+
17771
17032
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17772
17033
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17773
17034
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17035
+ localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration)
17774
17036
 
17775
17037
  return {
17776
17038
  url: toPathString(localVarUrlObj),
@@ -17782,8 +17044,8 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17782
17044
  * @param {*} [options] Override http request option.
17783
17045
  * @throws {RequiredError}
17784
17046
  */
17785
- getClubInfos: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17786
- const localVarPath = `/api/clubs/infos`;
17047
+ getActualities: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17048
+ const localVarPath = `/api/clubs/staff/actualities`;
17787
17049
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17788
17050
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17789
17051
  let baseOptions;
@@ -17811,12 +17073,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17811
17073
  };
17812
17074
  },
17813
17075
  /**
17814
- * Récupère les membres d\'un club
17076
+ *
17815
17077
  * @param {*} [options] Override http request option.
17816
17078
  * @throws {RequiredError}
17817
17079
  */
17818
- getClubMembers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17819
- const localVarPath = `/api/clubs/members`;
17080
+ getClubInfos: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17081
+ const localVarPath = `/api/clubs/infos`;
17820
17082
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17821
17083
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17822
17084
  let baseOptions;
@@ -17844,12 +17106,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17844
17106
  };
17845
17107
  },
17846
17108
  /**
17847
- *
17109
+ * Récupère les membres d\'un club
17848
17110
  * @param {*} [options] Override http request option.
17849
17111
  * @throws {RequiredError}
17850
17112
  */
17851
- getClubPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17852
- const localVarPath = `/api/clubs/settings/presentation`;
17113
+ getClubMembers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17114
+ const localVarPath = `/api/clubs/members`;
17853
17115
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17854
17116
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17855
17117
  let baseOptions;
@@ -17877,12 +17139,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17877
17139
  };
17878
17140
  },
17879
17141
  /**
17880
- * Récupère les rôles d\'un club
17142
+ *
17881
17143
  * @param {*} [options] Override http request option.
17882
17144
  * @throws {RequiredError}
17883
17145
  */
17884
- getClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17885
- const localVarPath = `/api/clubs/roles`;
17146
+ getClubPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17147
+ const localVarPath = `/api/clubs/settings/presentation`;
17886
17148
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17887
17149
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17888
17150
  let baseOptions;
@@ -17910,12 +17172,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17910
17172
  };
17911
17173
  },
17912
17174
  /**
17913
- * Récupère les terrains d\'un club
17175
+ * Récupère les rôles d\'un club
17914
17176
  * @param {*} [options] Override http request option.
17915
17177
  * @throws {RequiredError}
17916
17178
  */
17917
- getCourtsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17918
- const localVarPath = `/api/clubs/courts`;
17179
+ getClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17180
+ const localVarPath = `/api/clubs/roles`;
17919
17181
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17920
17182
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17921
17183
  let baseOptions;
@@ -17943,12 +17205,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17943
17205
  };
17944
17206
  },
17945
17207
  /**
17946
- *
17208
+ * Récupère les terrains d\'un club
17947
17209
  * @param {*} [options] Override http request option.
17948
17210
  * @throws {RequiredError}
17949
17211
  */
17950
- getInvoices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17951
- const localVarPath = `/api/clubs/invoices`;
17212
+ getCourtsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17213
+ const localVarPath = `/api/clubs/courts`;
17952
17214
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17953
17215
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17954
17216
  let baseOptions;
@@ -17977,15 +17239,11 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17977
17239
  },
17978
17240
  /**
17979
17241
  *
17980
- * @param {string} id
17981
17242
  * @param {*} [options] Override http request option.
17982
17243
  * @throws {RequiredError}
17983
17244
  */
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)));
17245
+ getInvoices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17246
+ const localVarPath = `/api/clubs/invoices`;
17989
17247
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17990
17248
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17991
17249
  let baseOptions;
@@ -18015,16 +17273,13 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
18015
17273
  /**
18016
17274
  *
18017
17275
  * @param {string} id
18018
- * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
18019
17276
  * @param {*} [options] Override http request option.
18020
17277
  * @throws {RequiredError}
18021
17278
  */
18022
- updateUserCreditsStaff: async (id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17279
+ getUserProfileStaff: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18023
17280
  // verify required parameter 'id' is not null or undefined
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}`
17281
+ assertParamExists('getUserProfileStaff', 'id', id)
17282
+ const localVarPath = `/api/clubs/staff/profile/{id}`
18028
17283
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18029
17284
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18030
17285
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18033,7 +17288,7 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
18033
17288
  baseOptions = configuration.baseOptions;
18034
17289
  }
18035
17290
 
18036
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17291
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18037
17292
  const localVarHeaderParameter = {} as any;
18038
17293
  const localVarQueryParameter = {} as any;
18039
17294
 
@@ -18043,12 +17298,9 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
18043
17298
 
18044
17299
 
18045
17300
 
18046
- localVarHeaderParameter['Content-Type'] = 'application/json';
18047
-
18048
17301
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18049
17302
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18050
17303
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18051
- localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration)
18052
17304
 
18053
17305
  return {
18054
17306
  url: toPathString(localVarUrlObj),
@@ -18065,6 +17317,19 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
18065
17317
  export const ClubsStaffApiFp = function(configuration?: Configuration) {
18066
17318
  const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration)
18067
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
+ },
18068
17333
  /**
18069
17334
  *
18070
17335
  * @param {*} [options] Override http request option.
@@ -18154,19 +17419,6 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
18154
17419
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getUserProfileStaff']?.[localVarOperationServerIndex]?.url;
18155
17420
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18156
17421
  },
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
- },
18170
17422
  }
18171
17423
  };
18172
17424
 
@@ -18177,6 +17429,15 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
18177
17429
  export const ClubsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18178
17430
  const localVarFp = ClubsStaffApiFp(configuration)
18179
17431
  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
+ },
18180
17441
  /**
18181
17442
  *
18182
17443
  * @param {*} [options] Override http request option.
@@ -18242,51 +17503,42 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
18242
17503
  getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
18243
17504
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
18244
17505
  },
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
- },
18254
17506
  };
18255
17507
  };
18256
17508
 
18257
17509
  /**
18258
- * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
17510
+ * Request parameters for createOnsiteInvoiceForBooking operation in ClubsStaffApi.
18259
17511
  * @export
18260
- * @interface ClubsStaffApiGetUserProfileStaffRequest
17512
+ * @interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest
18261
17513
  */
18262
- export interface ClubsStaffApiGetUserProfileStaffRequest {
17514
+ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
18263
17515
  /**
18264
17516
  *
18265
17517
  * @type {string}
18266
- * @memberof ClubsStaffApiGetUserProfileStaff
17518
+ * @memberof ClubsStaffApiCreateOnsiteInvoiceForBooking
18267
17519
  */
18268
- readonly id: string
17520
+ readonly bookingId: string
17521
+
17522
+ /**
17523
+ *
17524
+ * @type {CreateOnsiteInvoiceRequest}
17525
+ * @memberof ClubsStaffApiCreateOnsiteInvoiceForBooking
17526
+ */
17527
+ readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
18269
17528
  }
18270
17529
 
18271
17530
  /**
18272
- * Request parameters for updateUserCreditsStaff operation in ClubsStaffApi.
17531
+ * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
18273
17532
  * @export
18274
- * @interface ClubsStaffApiUpdateUserCreditsStaffRequest
17533
+ * @interface ClubsStaffApiGetUserProfileStaffRequest
18275
17534
  */
18276
- export interface ClubsStaffApiUpdateUserCreditsStaffRequest {
17535
+ export interface ClubsStaffApiGetUserProfileStaffRequest {
18277
17536
  /**
18278
17537
  *
18279
17538
  * @type {string}
18280
- * @memberof ClubsStaffApiUpdateUserCreditsStaff
17539
+ * @memberof ClubsStaffApiGetUserProfileStaff
18281
17540
  */
18282
17541
  readonly id: string
18283
-
18284
- /**
18285
- *
18286
- * @type {UpdateUserCreditsRequest}
18287
- * @memberof ClubsStaffApiUpdateUserCreditsStaff
18288
- */
18289
- readonly updateUserCreditsRequest: UpdateUserCreditsRequest
18290
17542
  }
18291
17543
 
18292
17544
  /**
@@ -18296,6 +17548,17 @@ export interface ClubsStaffApiUpdateUserCreditsStaffRequest {
18296
17548
  * @extends {BaseAPI}
18297
17549
  */
18298
17550
  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
+
18299
17562
  /**
18300
17563
  *
18301
17564
  * @param {*} [options] Override http request option.
@@ -18376,17 +17639,6 @@ export class ClubsStaffApi extends BaseAPI {
18376
17639
  public getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig) {
18377
17640
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
18378
17641
  }
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
- }
18390
17642
  }
18391
17643
 
18392
17644
 
@@ -18951,6 +18203,45 @@ export type GetPublishedEventsByClubIdTypeEnum = typeof GetPublishedEventsByClub
18951
18203
  */
18952
18204
  export const EventsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
18953
18205
  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
+ },
18954
18245
  /**
18955
18246
  * Create a new event (manager)
18956
18247
  * @param {CreateEventRequest} createEventRequest
@@ -19132,6 +18423,49 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
19132
18423
 
19133
18424
 
19134
18425
 
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
+
19135
18469
  localVarHeaderParameter['Content-Type'] = 'application/json';
19136
18470
 
19137
18471
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -19154,6 +18488,18 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
19154
18488
  export const EventsManagerApiFp = function(configuration?: Configuration) {
19155
18489
  const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration)
19156
18490
  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
+ },
19157
18503
  /**
19158
18504
  * Create a new event (manager)
19159
18505
  * @param {CreateEventRequest} createEventRequest
@@ -19215,6 +18561,19 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
19215
18561
  const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updateEvent']?.[localVarOperationServerIndex]?.url;
19216
18562
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19217
18563
  },
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
+ },
19218
18577
  }
19219
18578
  };
19220
18579
 
@@ -19225,6 +18584,15 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
19225
18584
  export const EventsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19226
18585
  const localVarFp = EventsManagerApiFp(configuration)
19227
18586
  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
+ },
19228
18596
  /**
19229
18597
  * Create a new event (manager)
19230
18598
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -19270,9 +18638,32 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
19270
18638
  updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
19271
18639
  return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
19272
18640
  },
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
+ },
19273
18650
  };
19274
18651
  };
19275
18652
 
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
+
19276
18667
  /**
19277
18668
  * Request parameters for createEvent operation in EventsManagerApi.
19278
18669
  * @export
@@ -19350,6 +18741,27 @@ export interface EventsManagerApiUpdateEventRequest {
19350
18741
  readonly updateEventRequest: UpdateEventRequest
19351
18742
  }
19352
18743
 
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
+
19353
18765
  /**
19354
18766
  * EventsManagerApi - object-oriented interface
19355
18767
  * @export
@@ -19357,6 +18769,17 @@ export interface EventsManagerApiUpdateEventRequest {
19357
18769
  * @extends {BaseAPI}
19358
18770
  */
19359
18771
  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
+
19360
18783
  /**
19361
18784
  * Create a new event (manager)
19362
18785
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -19402,128 +18825,50 @@ export class EventsManagerApi extends BaseAPI {
19402
18825
  }
19403
18826
 
19404
18827
  /**
19405
- * Update an event (manager)
19406
- * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
19407
- * @param {*} [options] Override http request option.
19408
- * @throws {RequiredError}
19409
- * @memberof EventsManagerApi
19410
- */
19411
- public updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig) {
19412
- return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
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
- }
19495
-
19496
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19497
- const localVarHeaderParameter = {} as any;
19498
- const localVarQueryParameter = {} as any;
18828
+ * Update an event (manager)
18829
+ * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
18830
+ * @param {*} [options] Override http request option.
18831
+ * @throws {RequiredError}
18832
+ * @memberof EventsManagerApi
18833
+ */
18834
+ public updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig) {
18835
+ return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
18836
+ }
19499
18837
 
19500
- // authentication bearerAuth required
19501
- // http bearer authentication required
19502
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
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
+ }
19503
18849
 
19504
18850
 
19505
-
19506
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19507
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19508
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19509
18851
 
19510
- return {
19511
- url: toPathString(localVarUrlObj),
19512
- options: localVarRequestOptions,
19513
- };
19514
- },
18852
+ /**
18853
+ * EventsStaffApi - axios parameter creator
18854
+ * @export
18855
+ */
18856
+ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
18857
+ return {
19515
18858
  /**
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]
18859
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18860
+ * @param {string} eventBookingId
18861
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
19522
18862
  * @param {*} [options] Override http request option.
19523
18863
  * @throws {RequiredError}
19524
18864
  */
19525
- getMonthlyEvents: async (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19526
- const localVarPath = `/api/events/calendar/monthly`;
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)));
19527
18872
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19528
18873
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19529
18874
  let baseOptions;
@@ -19531,7 +18876,7 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
19531
18876
  baseOptions = configuration.baseOptions;
19532
18877
  }
19533
18878
 
19534
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18879
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19535
18880
  const localVarHeaderParameter = {} as any;
19536
18881
  const localVarQueryParameter = {} as any;
19537
18882
 
@@ -19539,31 +18884,14 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
19539
18884
  // http bearer authentication required
19540
18885
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
19541
18886
 
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
- }
19561
-
19562
18887
 
19563
18888
 
18889
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18890
+
19564
18891
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19565
18892
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19566
18893
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18894
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration)
19567
18895
 
19568
18896
  return {
19569
18897
  url: toPathString(localVarUrlObj),
@@ -19571,17 +18899,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
19571
18899
  };
19572
18900
  },
19573
18901
  /**
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]
18902
+ * Get all events for a club (staff only)
19580
18903
  * @param {*} [options] Override http request option.
19581
18904
  * @throws {RequiredError}
19582
18905
  */
19583
- getWeeklyEvents: async (clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19584
- const localVarPath = `/api/events/calendar/weekly`;
18906
+ getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18907
+ const localVarPath = `/api/events/staff/getEvents`;
19585
18908
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19586
18909
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19587
18910
  let baseOptions;
@@ -19597,26 +18920,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
19597
18920
  // http bearer authentication required
19598
18921
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
19599
18922
 
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
-
19620
18923
 
19621
18924
 
19622
18925
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -19639,19 +18942,16 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
19639
18942
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration)
19640
18943
  return {
19641
18944
  /**
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]
18945
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18946
+ * @param {string} eventBookingId
18947
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
19648
18948
  * @param {*} [options] Override http request option.
19649
18949
  * @throws {RequiredError}
19650
18950
  */
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);
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);
19653
18953
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19654
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
18954
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.checkInEventParticipants']?.[localVarOperationServerIndex]?.url;
19655
18955
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19656
18956
  },
19657
18957
  /**
@@ -19665,38 +18965,6 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
19665
18965
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
19666
18966
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19667
18967
  },
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
- },
19700
18968
  }
19701
18969
  };
19702
18970
 
@@ -19708,13 +18976,13 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
19708
18976
  const localVarFp = EventsStaffApiFp(configuration)
19709
18977
  return {
19710
18978
  /**
19711
- * Get events for the day view (entire week)
19712
- * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
18979
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18980
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
19713
18981
  * @param {*} [options] Override http request option.
19714
18982
  * @throws {RequiredError}
19715
18983
  */
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));
18984
+ checkInEventParticipants(requestParameters: EventsStaffApiCheckInEventParticipantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInEventParticipants200Response> {
18985
+ return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
19718
18986
  },
19719
18987
  /**
19720
18988
  * Get all events for a club (staff only)
@@ -19724,151 +18992,28 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
19724
18992
  getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
19725
18993
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
19726
18994
  },
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
- },
19745
18995
  };
19746
18996
  };
19747
18997
 
19748
18998
  /**
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.
18999
+ * Request parameters for checkInEventParticipants operation in EventsStaffApi.
19834
19000
  * @export
19835
- * @interface EventsStaffApiGetWeeklyEventsRequest
19001
+ * @interface EventsStaffApiCheckInEventParticipantsRequest
19836
19002
  */
19837
- export interface EventsStaffApiGetWeeklyEventsRequest {
19003
+ export interface EventsStaffApiCheckInEventParticipantsRequest {
19838
19004
  /**
19839
19005
  *
19840
19006
  * @type {string}
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
19007
+ * @memberof EventsStaffApiCheckInEventParticipants
19863
19008
  */
19864
- readonly type?: GetWeeklyEventsTypeEnum
19009
+ readonly eventBookingId: string
19865
19010
 
19866
19011
  /**
19867
19012
  *
19868
- * @type {string}
19869
- * @memberof EventsStaffApiGetWeeklyEvents
19013
+ * @type {CheckInEventParticipantsRequest}
19014
+ * @memberof EventsStaffApiCheckInEventParticipants
19870
19015
  */
19871
- readonly sportId?: string
19016
+ readonly checkInEventParticipantsRequest: CheckInEventParticipantsRequest
19872
19017
  }
19873
19018
 
19874
19019
  /**
@@ -19879,14 +19024,14 @@ export interface EventsStaffApiGetWeeklyEventsRequest {
19879
19024
  */
19880
19025
  export class EventsStaffApi extends BaseAPI {
19881
19026
  /**
19882
- * Get events for the day view (entire week)
19883
- * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
19027
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
19028
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
19884
19029
  * @param {*} [options] Override http request option.
19885
19030
  * @throws {RequiredError}
19886
19031
  * @memberof EventsStaffApi
19887
19032
  */
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));
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));
19890
19035
  }
19891
19036
 
19892
19037
  /**
@@ -19898,81 +19043,8 @@ export class EventsStaffApi extends BaseAPI {
19898
19043
  public getEventsByClub(options?: RawAxiosRequestConfig) {
19899
19044
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
19900
19045
  }
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
- }
19923
19046
  }
19924
19047
 
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];
19976
19048
 
19977
19049
 
19978
19050
  /**