@tennac-booking/sdk 1.0.109 → 1.0.110

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 (60) hide show
  1. package/.openapi-generator/FILES +292 -292
  2. package/README.md +20 -25
  3. package/api.ts +952 -1663
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +563 -953
  8. package/dist/api.js +509 -1063
  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 +563 -953
  16. package/dist/esm/api.js +501 -1051
  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/CheckInEventParticipants200Response.md +22 -0
  28. package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
  29. package/docs/{ClientRegisterResponse.md → CheckInEventParticipantsRequest.md} +5 -7
  30. package/docs/ClientApi.md +59 -4
  31. package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
  32. package/docs/ClientFullOnboardingResponseClub.md +24 -0
  33. package/docs/ClientRegister201Response.md +26 -0
  34. package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
  35. package/docs/ClubPlayerDetailResponse.md +0 -2
  36. package/docs/ClubSummary.md +2 -8
  37. package/docs/ClubsStaffApi.md +59 -55
  38. package/docs/CreateEventRequest.md +1 -3
  39. package/docs/CreateOnsiteInvoiceRequest.md +28 -0
  40. package/docs/CreateOnsiteInvoiceResponse.md +22 -0
  41. package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
  42. package/docs/EventConflictCheckRequest.md +28 -0
  43. package/docs/EventConflictCheckResponse.md +26 -0
  44. package/docs/EventsManagerApi.md +114 -0
  45. package/docs/EventsStaffApi.md +20 -159
  46. package/docs/JoinEventRequest.md +8 -0
  47. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +22 -0
  48. package/docs/PaymentMethod.md +4 -0
  49. package/docs/PublishEventResponse.md +2 -0
  50. package/index.ts +1 -1
  51. package/package.json +1 -1
  52. package/docs/ActiveSubscriptionResponse.md +0 -22
  53. package/docs/ClientAccountOnboardingRequest.md +0 -29
  54. package/docs/ClientAccountResponse.md +0 -44
  55. package/docs/ClientAccountsApi.md +0 -408
  56. package/docs/ClientMeResponse.md +0 -28
  57. package/docs/ClientOnboardingResponse.md +0 -27
  58. package/docs/ClientSubscriptionResponse.md +0 -34
  59. package/docs/GetSubscriptionsHistory200Response.md +0 -22
  60. 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
@@ -1269,6 +1250,77 @@ export interface ChangePasswordResponse {
1269
1250
  */
1270
1251
  'message': string;
1271
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
+ }
1272
1324
  /**
1273
1325
  *
1274
1326
  * @export
@@ -1358,233 +1410,73 @@ export interface CheckedInPlayer {
1358
1410
  }
1359
1411
 
1360
1412
 
1361
- /**
1362
- * Types pour les requêtes/réponses
1363
- * @export
1364
- * @interface ClientAccountOnboardingRequest
1365
- */
1366
- export interface ClientAccountOnboardingRequest {
1367
- /**
1368
- *
1369
- * @type {string}
1370
- * @memberof ClientAccountOnboardingRequest
1371
- */
1372
- 'businessName': string;
1373
- /**
1374
- *
1375
- * @type {string}
1376
- * @memberof ClientAccountOnboardingRequest
1377
- */
1378
- 'businessType'?: ClientAccountOnboardingRequestBusinessTypeEnum;
1379
- /**
1380
- *
1381
- * @type {string}
1382
- * @memberof ClientAccountOnboardingRequest
1383
- */
1384
- 'subscriptionType'?: ClientAccountOnboardingRequestSubscriptionTypeEnum;
1385
- /**
1386
- *
1387
- * @type {boolean}
1388
- * @memberof ClientAccountOnboardingRequest
1389
- */
1390
- 'isPublicOrganization'?: boolean;
1391
- /**
1392
- *
1393
- * @type {string}
1394
- * @memberof ClientAccountOnboardingRequest
1395
- */
1396
- 'priceId': string;
1397
- }
1398
-
1399
- export const ClientAccountOnboardingRequestBusinessTypeEnum = {
1400
- Individual: 'individual',
1401
- Company: 'company'
1402
- } as const;
1403
-
1404
- export type ClientAccountOnboardingRequestBusinessTypeEnum = typeof ClientAccountOnboardingRequestBusinessTypeEnum[keyof typeof ClientAccountOnboardingRequestBusinessTypeEnum];
1405
- export const ClientAccountOnboardingRequestSubscriptionTypeEnum = {
1406
- Basic: 'basic',
1407
- PlatformWithConnect: 'platform_with_connect'
1408
- } as const;
1409
-
1410
- export type ClientAccountOnboardingRequestSubscriptionTypeEnum = typeof ClientAccountOnboardingRequestSubscriptionTypeEnum[keyof typeof ClientAccountOnboardingRequestSubscriptionTypeEnum];
1411
-
1412
1413
  /**
1413
1414
  *
1414
1415
  * @export
1415
- * @interface ClientAccountOnboardingResponse
1416
+ * @interface ClientFullOnboardingResponse
1416
1417
  */
1417
- export interface ClientAccountOnboardingResponse {
1418
+ export interface ClientFullOnboardingResponse {
1418
1419
  /**
1419
1420
  *
1420
1421
  * @type {string}
1421
- * @memberof ClientAccountOnboardingResponse
1422
+ * @memberof ClientFullOnboardingResponse
1422
1423
  */
1423
1424
  'clientAccountId': string;
1424
1425
  /**
1425
1426
  *
1426
1427
  * @type {string}
1427
- * @memberof ClientAccountOnboardingResponse
1428
+ * @memberof ClientFullOnboardingResponse
1428
1429
  */
1429
1430
  'stripeCustomerId': string;
1430
1431
  /**
1431
1432
  *
1432
1433
  * @type {string}
1433
- * @memberof ClientAccountOnboardingResponse
1434
+ * @memberof ClientFullOnboardingResponse
1434
1435
  */
1435
1436
  'stripeConnectedAccountId'?: string;
1436
1437
  /**
1437
1438
  *
1438
1439
  * @type {string}
1439
- * @memberof ClientAccountOnboardingResponse
1440
+ * @memberof ClientFullOnboardingResponse
1440
1441
  */
1441
- 'connectedAccountOnboardingLink'?: string;
1442
+ 'clientOnboardingLink'?: string;
1442
1443
  /**
1443
1444
  *
1444
- * @type {string}
1445
- * @memberof ClientAccountOnboardingResponse
1445
+ * @type {ClientFullOnboardingResponseClub}
1446
+ * @memberof ClientFullOnboardingResponse
1446
1447
  */
1447
- 'status': string;
1448
+ 'club': ClientFullOnboardingResponseClub;
1448
1449
  /**
1449
1450
  *
1450
1451
  * @type {string}
1451
- * @memberof ClientAccountOnboardingResponse
1452
+ * @memberof ClientFullOnboardingResponse
1452
1453
  */
1453
1454
  'message': string;
1454
- /**
1455
- *
1456
- * @type {boolean}
1457
- * @memberof ClientAccountOnboardingResponse
1458
- */
1459
- 'isPublicOrganization': boolean;
1460
- /**
1461
- *
1462
- * @type {boolean}
1463
- * @memberof ClientAccountOnboardingResponse
1464
- */
1465
- 'manualInvoiceRequired'?: boolean;
1466
- }
1467
- /**
1468
- *
1469
- * @export
1470
- * @interface ClientAccountResponse
1471
- */
1472
- export interface ClientAccountResponse {
1473
- /**
1474
- *
1475
- * @type {string}
1476
- * @memberof ClientAccountResponse
1477
- */
1478
- 'id': string;
1479
- /**
1480
- *
1481
- * @type {string}
1482
- * @memberof ClientAccountResponse
1483
- */
1484
- 'email': string;
1485
- /**
1486
- *
1487
- * @type {string}
1488
- * @memberof ClientAccountResponse
1489
- */
1490
- 'businessName': string;
1491
- /**
1492
- *
1493
- * @type {string}
1494
- * @memberof ClientAccountResponse
1495
- */
1496
- 'businessType': string;
1497
- /**
1498
- *
1499
- * @type {string}
1500
- * @memberof ClientAccountResponse
1501
- */
1502
- 'subscriptionType': string;
1503
- /**
1504
- *
1505
- * @type {string}
1506
- * @memberof ClientAccountResponse
1507
- */
1508
- 'status': string;
1509
- /**
1510
- *
1511
- * @type {boolean}
1512
- * @memberof ClientAccountResponse
1513
- */
1514
- 'platformPaymentMethodSetup': boolean;
1515
- /**
1516
- *
1517
- * @type {string}
1518
- * @memberof ClientAccountResponse
1519
- */
1520
- 'stripeConnectedAccountId'?: string;
1521
- /**
1522
- *
1523
- * @type {boolean}
1524
- * @memberof ClientAccountResponse
1525
- */
1526
- 'connectedAccountOnboardingRequired'?: boolean;
1527
- /**
1528
- *
1529
- * @type {boolean}
1530
- * @memberof ClientAccountResponse
1531
- */
1532
- 'isPublicOrganization': boolean;
1533
- /**
1534
- *
1535
- * @type {boolean}
1536
- * @memberof ClientAccountResponse
1537
- */
1538
- 'manualInvoiceRequired'?: boolean;
1539
- /**
1540
- *
1541
- * @type {string}
1542
- * @memberof ClientAccountResponse
1543
- */
1544
- 'createdAt': string;
1545
- /**
1546
- *
1547
- * @type {string}
1548
- * @memberof ClientAccountResponse
1549
- */
1550
- 'updatedAt': string;
1551
1455
  }
1552
1456
  /**
1553
1457
  *
1554
1458
  * @export
1555
- * @interface ClientMeResponse
1459
+ * @interface ClientFullOnboardingResponseClub
1556
1460
  */
1557
- export interface ClientMeResponse {
1558
- /**
1559
- *
1560
- * @type {string}
1561
- * @memberof ClientMeResponse
1562
- */
1563
- 'id': string;
1461
+ export interface ClientFullOnboardingResponseClub {
1564
1462
  /**
1565
1463
  *
1566
1464
  * @type {string}
1567
- * @memberof ClientMeResponse
1465
+ * @memberof ClientFullOnboardingResponseClub
1568
1466
  */
1569
- 'email': string;
1467
+ 'clubOnboardingLink'?: string;
1570
1468
  /**
1571
1469
  *
1572
1470
  * @type {string}
1573
- * @memberof ClientMeResponse
1471
+ * @memberof ClientFullOnboardingResponseClub
1574
1472
  */
1575
- 'firstName': string;
1473
+ 'stripeAccountId': string;
1576
1474
  /**
1577
1475
  *
1578
1476
  * @type {string}
1579
- * @memberof ClientMeResponse
1580
- */
1581
- 'lastName': string;
1582
- /**
1583
- *
1584
- * @type {boolean}
1585
- * @memberof ClientMeResponse
1477
+ * @memberof ClientFullOnboardingResponseClub
1586
1478
  */
1587
- 'isClient': boolean;
1479
+ 'clubId': string;
1588
1480
  }
1589
1481
  /**
1590
1482
  * Requête pour l\'onboarding d\'un club
@@ -1635,141 +1527,67 @@ export interface ClientOnboardingRequestBody {
1635
1527
  */
1636
1528
  'country'?: string;
1637
1529
  }
1638
- /**
1639
- * Réponse pour l\'onboarding d\'un club
1640
- * @export
1641
- * @interface ClientOnboardingResponse
1642
- */
1643
- export interface ClientOnboardingResponse {
1644
- /**
1645
- * ID unique du club créé
1646
- * @type {string}
1647
- * @memberof ClientOnboardingResponse
1648
- */
1649
- 'clubId': string;
1650
- /**
1651
- * ID du compte Stripe Connect du club
1652
- * @type {string}
1653
- * @memberof ClientOnboardingResponse
1654
- */
1655
- 'stripeAccountId': string;
1656
- /**
1657
- * Lien d\'onboarding Stripe pour configurer le compte
1658
- * @type {string}
1659
- * @memberof ClientOnboardingResponse
1660
- */
1661
- 'onboardingLink': string;
1662
- /**
1663
- * Message de confirmation
1664
- * @type {string}
1665
- * @memberof ClientOnboardingResponse
1666
- */
1667
- 'message': string;
1668
- }
1669
1530
  /**
1670
1531
  *
1671
1532
  * @export
1672
- * @interface ClientRegisterRequestBody
1533
+ * @interface ClientRegister201Response
1673
1534
  */
1674
- export interface ClientRegisterRequestBody {
1675
- /**
1676
- *
1677
- * @type {string}
1678
- * @memberof ClientRegisterRequestBody
1679
- */
1680
- 'email': string;
1681
- /**
1682
- *
1683
- * @type {string}
1684
- * @memberof ClientRegisterRequestBody
1685
- */
1686
- 'password': string;
1535
+ export interface ClientRegister201Response {
1687
1536
  /**
1688
1537
  *
1689
1538
  * @type {string}
1690
- * @memberof ClientRegisterRequestBody
1539
+ * @memberof ClientRegister201Response
1691
1540
  */
1692
- 'firstName': string;
1541
+ 'message': string;
1693
1542
  /**
1694
1543
  *
1695
1544
  * @type {string}
1696
- * @memberof ClientRegisterRequestBody
1545
+ * @memberof ClientRegister201Response
1697
1546
  */
1698
- 'lastName': string;
1699
- }
1700
- /**
1701
- *
1702
- * @export
1703
- * @interface ClientRegisterResponse
1704
- */
1705
- export interface ClientRegisterResponse {
1547
+ 'stripeCustomerId': string;
1706
1548
  /**
1707
1549
  *
1708
1550
  * @type {string}
1709
- * @memberof ClientRegisterResponse
1551
+ * @memberof ClientRegister201Response
1710
1552
  */
1711
- 'id': string;
1553
+ 'email': string;
1712
1554
  /**
1713
1555
  *
1714
1556
  * @type {string}
1715
- * @memberof ClientRegisterResponse
1557
+ * @memberof ClientRegister201Response
1716
1558
  */
1717
- 'token': string;
1559
+ 'userId': string;
1718
1560
  }
1719
1561
  /**
1720
1562
  *
1721
1563
  * @export
1722
- * @interface ClientSubscriptionResponse
1564
+ * @interface ClientRegisterRequest
1723
1565
  */
1724
- export interface ClientSubscriptionResponse {
1725
- /**
1726
- *
1727
- * @type {string}
1728
- * @memberof ClientSubscriptionResponse
1729
- */
1730
- 'id': string;
1731
- /**
1732
- *
1733
- * @type {string}
1734
- * @memberof ClientSubscriptionResponse
1735
- */
1736
- 'subscriptionType': string;
1737
- /**
1738
- *
1739
- * @type {string}
1740
- * @memberof ClientSubscriptionResponse
1741
- */
1742
- 'status': string;
1566
+ export interface ClientRegisterRequest {
1743
1567
  /**
1744
1568
  *
1745
1569
  * @type {string}
1746
- * @memberof ClientSubscriptionResponse
1570
+ * @memberof ClientRegisterRequest
1747
1571
  */
1748
- 'startDate': string;
1572
+ 'password': string;
1749
1573
  /**
1750
1574
  *
1751
1575
  * @type {string}
1752
- * @memberof ClientSubscriptionResponse
1753
- */
1754
- 'endDate'?: string;
1755
- /**
1756
- *
1757
- * @type {number}
1758
- * @memberof ClientSubscriptionResponse
1576
+ * @memberof ClientRegisterRequest
1759
1577
  */
1760
- 'priceAmountInCents': number;
1578
+ 'email': string;
1761
1579
  /**
1762
1580
  *
1763
1581
  * @type {string}
1764
- * @memberof ClientSubscriptionResponse
1582
+ * @memberof ClientRegisterRequest
1765
1583
  */
1766
- 'currency': string;
1584
+ 'lastName': string;
1767
1585
  /**
1768
1586
  *
1769
1587
  * @type {string}
1770
- * @memberof ClientSubscriptionResponse
1588
+ * @memberof ClientRegisterRequest
1771
1589
  */
1772
- 'billingCycle': string;
1590
+ 'firstName': string;
1773
1591
  }
1774
1592
  /**
1775
1593
  *
@@ -2328,12 +2146,6 @@ export interface ClubPlayerDetailResponse {
2328
2146
  * @memberof ClubPlayerDetailResponse
2329
2147
  */
2330
2148
  'birthDate': string | null;
2331
- /**
2332
- *
2333
- * @type {number}
2334
- * @memberof ClubPlayerDetailResponse
2335
- */
2336
- 'credits': number | null;
2337
2149
  }
2338
2150
  /**
2339
2151
  *
@@ -3076,19 +2888,7 @@ export interface ClubSummary {
3076
2888
  * @type {string}
3077
2889
  * @memberof ClubSummary
3078
2890
  */
3079
- 'picture'?: string;
3080
- /**
3081
- *
3082
- * @type {Array<string>}
3083
- * @memberof ClubSummary
3084
- */
3085
- 'bannerPictures'?: Array<string>;
3086
- /**
3087
- *
3088
- * @type {Array<string>}
3089
- * @memberof ClubSummary
3090
- */
3091
- 'galleryPictures'?: Array<string>;
2891
+ 'address'?: string | null;
3092
2892
  /**
3093
2893
  *
3094
2894
  * @type {UserLocationSummary}
@@ -3101,12 +2901,6 @@ export interface ClubSummary {
3101
2901
  * @memberof ClubSummary
3102
2902
  */
3103
2903
  'visitCount'?: number;
3104
- /**
3105
- *
3106
- * @type {Array<string>}
3107
- * @memberof ClubSummary
3108
- */
3109
- 'tags'?: Array<string>;
3110
2904
  }
3111
2905
  /**
3112
2906
  *
@@ -3584,19 +3378,13 @@ export interface CreateEventRequest {
3584
3378
  * @type {string}
3585
3379
  * @memberof CreateEventRequest
3586
3380
  */
3587
- 'recurringType'?: CreateEventRequestRecurringTypeEnum | null;
3381
+ 'recurringType': CreateEventRequestRecurringTypeEnum;
3588
3382
  /**
3589
3383
  *
3590
3384
  * @type {string}
3591
3385
  * @memberof CreateEventRequest
3592
3386
  */
3593
3387
  'recurrenceEndDate'?: string;
3594
- /**
3595
- *
3596
- * @type {number}
3597
- * @memberof CreateEventRequest
3598
- */
3599
- 'occurrences'?: number;
3600
3388
  /**
3601
3389
  *
3602
3390
  * @type {string}
@@ -3681,6 +3469,109 @@ export const CreateEventRequestVisibilityTypeEnum = {
3681
3469
 
3682
3470
  export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisibilityTypeEnum[keyof typeof CreateEventRequestVisibilityTypeEnum];
3683
3471
 
3472
+ /**
3473
+ *
3474
+ * @export
3475
+ * @interface CreateOnsiteInvoiceRequest
3476
+ */
3477
+ export interface CreateOnsiteInvoiceRequest {
3478
+ /**
3479
+ * Payer user id (creator or player)
3480
+ * @type {string}
3481
+ * @memberof CreateOnsiteInvoiceRequest
3482
+ */
3483
+ 'userId': string;
3484
+ /**
3485
+ * Amount in cents
3486
+ * @type {number}
3487
+ * @memberof CreateOnsiteInvoiceRequest
3488
+ */
3489
+ 'amount': number;
3490
+ /**
3491
+ *
3492
+ * @type {PaymentMethod}
3493
+ * @memberof CreateOnsiteInvoiceRequest
3494
+ */
3495
+ 'paymentMethod': PaymentMethod;
3496
+ /**
3497
+ *
3498
+ * @type {InvoiceStatus}
3499
+ * @memberof CreateOnsiteInvoiceRequest
3500
+ */
3501
+ 'status': InvoiceStatus;
3502
+ /**
3503
+ * Optional note/reason about the invoice
3504
+ * @type {string}
3505
+ * @memberof CreateOnsiteInvoiceRequest
3506
+ */
3507
+ 'reason'?: string;
3508
+ }
3509
+
3510
+
3511
+ /**
3512
+ *
3513
+ * @export
3514
+ * @interface CreateOnsiteInvoiceResponse
3515
+ */
3516
+ export interface CreateOnsiteInvoiceResponse {
3517
+ /**
3518
+ * Confirmation message
3519
+ * @type {string}
3520
+ * @memberof CreateOnsiteInvoiceResponse
3521
+ */
3522
+ 'message': string;
3523
+ /**
3524
+ *
3525
+ * @type {CreateOnsiteInvoiceResponseInvoice}
3526
+ * @memberof CreateOnsiteInvoiceResponse
3527
+ */
3528
+ 'invoice': CreateOnsiteInvoiceResponseInvoice;
3529
+ }
3530
+ /**
3531
+ * Created invoice summary
3532
+ * @export
3533
+ * @interface CreateOnsiteInvoiceResponseInvoice
3534
+ */
3535
+ export interface CreateOnsiteInvoiceResponseInvoice {
3536
+ /**
3537
+ *
3538
+ * @type {string}
3539
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3540
+ */
3541
+ 'reason'?: string;
3542
+ /**
3543
+ *
3544
+ * @type {PaymentMethod}
3545
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3546
+ */
3547
+ 'paymentMethod': PaymentMethod;
3548
+ /**
3549
+ *
3550
+ * @type {InvoiceStatus}
3551
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3552
+ */
3553
+ 'status': InvoiceStatus;
3554
+ /**
3555
+ *
3556
+ * @type {number}
3557
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3558
+ */
3559
+ 'amount': number;
3560
+ /**
3561
+ *
3562
+ * @type {string}
3563
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3564
+ */
3565
+ 'userId': string;
3566
+ /**
3567
+ *
3568
+ * @type {string}
3569
+ * @memberof CreateOnsiteInvoiceResponseInvoice
3570
+ */
3571
+ 'id': string;
3572
+ }
3573
+
3574
+
3684
3575
  /**
3685
3576
  *
3686
3577
  * @export
@@ -4014,6 +3905,74 @@ export const DiscountType = {
4014
3905
  export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
4015
3906
 
4016
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
+ }
4017
3976
  /**
4018
3977
  *
4019
3978
  * @export
@@ -4520,25 +4479,6 @@ export interface GetSlotsByClubById200Response {
4520
4479
  */
4521
4480
  'slots': Array<any>;
4522
4481
  }
4523
- /**
4524
- *
4525
- * @export
4526
- * @interface GetSubscriptionsHistory200Response
4527
- */
4528
- export interface GetSubscriptionsHistory200Response {
4529
- /**
4530
- *
4531
- * @type {Array<ClientSubscriptionResponse>}
4532
- * @memberof GetSubscriptionsHistory200Response
4533
- */
4534
- 'subscriptions': Array<ClientSubscriptionResponse>;
4535
- /**
4536
- *
4537
- * @type {string}
4538
- * @memberof GetSubscriptionsHistory200Response
4539
- */
4540
- 'clientAccountId': string;
4541
- }
4542
4482
  /**
4543
4483
  *
4544
4484
  * @export
@@ -5101,7 +5041,54 @@ export interface JoinEventRequest {
5101
5041
  * @memberof JoinEventRequest
5102
5042
  */
5103
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;
5104
5089
  }
5090
+
5091
+
5105
5092
  /**
5106
5093
  *
5107
5094
  * @export
@@ -5627,6 +5614,8 @@ export interface PaymentByPlayerInfo {
5627
5614
  export const PaymentMethod = {
5628
5615
  Online: 'online',
5629
5616
  Onsite: 'onsite',
5617
+ OnsiteCard: 'onsite_card',
5618
+ OnsiteCash: 'onsite_cash',
5630
5619
  Free: 'free'
5631
5620
  } as const;
5632
5621
 
@@ -6229,6 +6218,12 @@ export interface PublishEventResponse {
6229
6218
  * @memberof PublishEventResponse
6230
6219
  */
6231
6220
  'event': EventResponse;
6221
+ /**
6222
+ *
6223
+ * @type {Array<string>}
6224
+ * @memberof PublishEventResponse
6225
+ */
6226
+ 'refundedBookingIds'?: Array<string>;
6232
6227
  }
6233
6228
  /**
6234
6229
  *
@@ -9181,19 +9176,6 @@ export interface UpdateSubscriptionPlanForClub200Response {
9181
9176
  */
9182
9177
  'price': any;
9183
9178
  }
9184
- /**
9185
- *
9186
- * @export
9187
- * @interface UpdateUserCreditsRequest
9188
- */
9189
- export interface UpdateUserCreditsRequest {
9190
- /**
9191
- * Variation du crédit à appliquer, exprimée en centimes. Peut être négative pour retirer du crédit.
9192
- * @type {number}
9193
- * @memberof UpdateUserCreditsRequest
9194
- */
9195
- 'deltaInCents': number;
9196
- }
9197
9179
  /**
9198
9180
  *
9199
9181
  * @export
@@ -11309,6 +11291,41 @@ export class BookingsUserApi extends BaseAPI {
11309
11291
  */
11310
11292
  export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
11311
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
+ },
11312
11329
  /**
11313
11330
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11314
11331
  * @param {*} [options] Override http request option.
@@ -11343,7 +11360,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11343
11360
  };
11344
11361
  },
11345
11362
  /**
11346
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11363
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11347
11364
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11348
11365
  * @param {*} [options] Override http request option.
11349
11366
  * @throws {RequiredError}
@@ -11363,6 +11380,10 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11363
11380
  const localVarHeaderParameter = {} as any;
11364
11381
  const localVarQueryParameter = {} as any;
11365
11382
 
11383
+ // authentication clientAuth required
11384
+ // http bearer authentication required
11385
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11386
+
11366
11387
 
11367
11388
 
11368
11389
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -11388,23 +11409,35 @@ export const ClientApiFp = function(configuration?: Configuration) {
11388
11409
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
11389
11410
  return {
11390
11411
  /**
11391
- * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11412
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11413
+ * @param {ClientRegisterRequest} clientRegisterRequest
11392
11414
  * @param {*} [options] Override http request option.
11393
11415
  * @throws {RequiredError}
11394
11416
  */
11395
- async getManagedClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagedClubsResponse>> {
11396
- const localVarAxiosArgs = await localVarAxiosParamCreator.getManagedClubs(options);
11417
+ async clientRegister(clientRegisterRequest: ClientRegisterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegister201Response>> {
11418
+ const localVarAxiosArgs = await localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
11397
11419
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11398
- const localVarOperationServerBasePath = operationServerMap['ClientApi.getManagedClubs']?.[localVarOperationServerIndex]?.url;
11420
+ const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
11399
11421
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11400
11422
  },
11401
11423
  /**
11402
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11403
- * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11424
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11404
11425
  * @param {*} [options] Override http request option.
11405
11426
  * @throws {RequiredError}
11406
11427
  */
11407
- async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientOnboardingResponse>> {
11428
+ async getManagedClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagedClubsResponse>> {
11429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getManagedClubs(options);
11430
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11431
+ const localVarOperationServerBasePath = operationServerMap['ClientApi.getManagedClubs']?.[localVarOperationServerIndex]?.url;
11432
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11433
+ },
11434
+ /**
11435
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11436
+ * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11437
+ * @param {*} [options] Override http request option.
11438
+ * @throws {RequiredError}
11439
+ */
11440
+ async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientFullOnboardingResponse>> {
11408
11441
  const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
11409
11442
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11410
11443
  const localVarOperationServerBasePath = operationServerMap['ClientApi.onboardClub']?.[localVarOperationServerIndex]?.url;
@@ -11420,6 +11453,15 @@ export const ClientApiFp = function(configuration?: Configuration) {
11420
11453
  export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11421
11454
  const localVarFp = ClientApiFp(configuration)
11422
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
+ },
11423
11465
  /**
11424
11466
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11425
11467
  * @param {*} [options] Override http request option.
@@ -11429,17 +11471,31 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
11429
11471
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
11430
11472
  },
11431
11473
  /**
11432
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11474
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11433
11475
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11434
11476
  * @param {*} [options] Override http request option.
11435
11477
  * @throws {RequiredError}
11436
11478
  */
11437
- onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientOnboardingResponse> {
11479
+ onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientFullOnboardingResponse> {
11438
11480
  return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
11439
11481
  },
11440
11482
  };
11441
11483
  };
11442
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
+
11443
11499
  /**
11444
11500
  * Request parameters for onboardClub operation in ClientApi.
11445
11501
  * @export
@@ -11461,6 +11517,17 @@ export interface ClientApiOnboardClubRequest {
11461
11517
  * @extends {BaseAPI}
11462
11518
  */
11463
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
+
11464
11531
  /**
11465
11532
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11466
11533
  * @param {*} [options] Override http request option.
@@ -11472,7 +11539,7 @@ export class ClientApi extends BaseAPI {
11472
11539
  }
11473
11540
 
11474
11541
  /**
11475
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11542
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11476
11543
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11477
11544
  * @param {*} [options] Override http request option.
11478
11545
  * @throws {RequiredError}
@@ -11486,18 +11553,18 @@ export class ClientApi extends BaseAPI {
11486
11553
 
11487
11554
 
11488
11555
  /**
11489
- * ClientAccountsApi - axios parameter creator
11556
+ * ClubAnalyticsApi - axios parameter creator
11490
11557
  * @export
11491
11558
  */
11492
- export const ClientAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
11559
+ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
11493
11560
  return {
11494
11561
  /**
11495
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11562
+ * Récupère les clubs les plus aimés
11496
11563
  * @param {*} [options] Override http request option.
11497
11564
  * @throws {RequiredError}
11498
11565
  */
11499
- clientAuthMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11500
- const localVarPath = `/client-accounts/client-auth/me`;
11566
+ getMostLikedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11567
+ const localVarPath = `/api/club-analytics/most-liked-clubs`;
11501
11568
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11502
11569
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11503
11570
  let baseOptions;
@@ -11509,7 +11576,7 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11509
11576
  const localVarHeaderParameter = {} as any;
11510
11577
  const localVarQueryParameter = {} as any;
11511
11578
 
11512
- // authentication clientAuth required
11579
+ // authentication bearerAuth required
11513
11580
  // http bearer authentication required
11514
11581
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11515
11582
 
@@ -11525,16 +11592,12 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11525
11592
  };
11526
11593
  },
11527
11594
  /**
11528
- * Récupère le compte client par son ID
11529
- * @param {string} accountId L\&#39;ID du compte client
11595
+ * Récupère les clubs populaires
11530
11596
  * @param {*} [options] Override http request option.
11531
11597
  * @throws {RequiredError}
11532
11598
  */
11533
- getClientAccountById: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11534
- // verify required parameter 'accountId' is not null or undefined
11535
- assertParamExists('getClientAccountById', 'accountId', accountId)
11536
- const localVarPath = `/client-accounts/{accountId}`
11537
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
11599
+ getPopularClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11600
+ const localVarPath = `/api/club-analytics/popular-clubs`;
11538
11601
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11539
11602
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11540
11603
  let baseOptions;
@@ -11561,13 +11624,114 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11561
11624
  options: localVarRequestOptions,
11562
11625
  };
11563
11626
  },
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 {
11564
11724
  /**
11565
- * Récupère l\'abonnement actif du compte client authentifié
11725
+ * Récupère les analytics par sport
11726
+ * @param {string} sportId
11566
11727
  * @param {*} [options] Override http request option.
11567
11728
  * @throws {RequiredError}
11568
11729
  */
11569
- getMyActiveSubscription: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11570
- const localVarPath = `/client-accounts/me/subscription`;
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)));
11571
11735
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11572
11736
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11573
11737
  let baseOptions;
@@ -11595,12 +11759,18 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11595
11759
  };
11596
11760
  },
11597
11761
  /**
11598
- * 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]
11599
11766
  * @param {*} [options] Override http request option.
11600
11767
  * @throws {RequiredError}
11601
11768
  */
11602
- getMyClientAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11603
- 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)));
11604
11774
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11605
11775
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11606
11776
  let baseOptions;
@@ -11616,6 +11786,14 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11616
11786
  // http bearer authentication required
11617
11787
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11618
11788
 
11789
+ if (page !== undefined) {
11790
+ localVarQueryParameter['page'] = page;
11791
+ }
11792
+
11793
+ if (pageSize !== undefined) {
11794
+ localVarQueryParameter['pageSize'] = pageSize;
11795
+ }
11796
+
11619
11797
 
11620
11798
 
11621
11799
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -11628,12 +11806,16 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11628
11806
  };
11629
11807
  },
11630
11808
  /**
11631
- * 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
11632
11811
  * @param {*} [options] Override http request option.
11633
11812
  * @throws {RequiredError}
11634
11813
  */
11635
- getSubscriptionsHistory: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11636
- 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)));
11637
11819
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11638
11820
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11639
11821
  let baseOptions;
@@ -11661,12 +11843,16 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11661
11843
  };
11662
11844
  },
11663
11845
  /**
11664
- * 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
11665
11848
  * @param {*} [options] Override http request option.
11666
11849
  * @throws {RequiredError}
11667
11850
  */
11668
- listAvailablePrices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11669
- 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)));
11670
11856
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11671
11857
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11672
11858
  let baseOptions;
@@ -11694,15 +11880,12 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11694
11880
  };
11695
11881
  },
11696
11882
  /**
11697
- * Crée un nouveau compte client avec onboarding Stripe
11698
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
11883
+ * Récupère la liste des joueurs du club
11699
11884
  * @param {*} [options] Override http request option.
11700
11885
  * @throws {RequiredError}
11701
11886
  */
11702
- onboardClientAccount: async (clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11703
- // verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
11704
- assertParamExists('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest)
11705
- const localVarPath = `/client-accounts/onboarding`;
11887
+ getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11888
+ const localVarPath = `/api/club-analytics/players`;
11706
11889
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11707
11890
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11708
11891
  let baseOptions;
@@ -11710,22 +11893,19 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11710
11893
  baseOptions = configuration.baseOptions;
11711
11894
  }
11712
11895
 
11713
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11896
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11714
11897
  const localVarHeaderParameter = {} as any;
11715
11898
  const localVarQueryParameter = {} as any;
11716
11899
 
11717
- // authentication clientAuth required
11900
+ // authentication bearerAuth required
11718
11901
  // http bearer authentication required
11719
11902
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11720
11903
 
11721
11904
 
11722
11905
 
11723
- localVarHeaderParameter['Content-Type'] = 'application/json';
11724
-
11725
11906
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11726
11907
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11727
11908
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11728
- localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration)
11729
11909
 
11730
11910
  return {
11731
11911
  url: toPathString(localVarUrlObj),
@@ -11733,15 +11913,15 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11733
11913
  };
11734
11914
  },
11735
11915
  /**
11736
- * Route d\'inscription d\'un utilisateur client (publique)
11737
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
11916
+ * Récupère le chiffre d\'affaires quotidien
11917
+ * @param {string} date
11738
11918
  * @param {*} [options] Override http request option.
11739
11919
  * @throws {RequiredError}
11740
11920
  */
11741
- registerClientUser: async (clientRegisterRequestBody: ClientRegisterRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11742
- // verify required parameter 'clientRegisterRequestBody' is not null or undefined
11743
- assertParamExists('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody)
11744
- 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`;
11745
11925
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11746
11926
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11747
11927
  let baseOptions;
@@ -11749,777 +11929,66 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Conf
11749
11929
  baseOptions = configuration.baseOptions;
11750
11930
  }
11751
11931
 
11752
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11932
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11753
11933
  const localVarHeaderParameter = {} as any;
11754
11934
  const localVarQueryParameter = {} as any;
11755
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
+ }
11756
11943
 
11757
-
11758
- localVarHeaderParameter['Content-Type'] = 'application/json';
11759
11944
 
11945
+
11760
11946
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11761
11947
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11762
11948
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11763
- localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration)
11764
11949
 
11765
11950
  return {
11766
11951
  url: toPathString(localVarUrlObj),
11767
11952
  options: localVarRequestOptions,
11768
11953
  };
11769
11954
  },
11770
- }
11771
- };
11772
-
11773
- /**
11774
- * ClientAccountsApi - functional programming interface
11775
- * @export
11776
- */
11777
- export const ClientAccountsApiFp = function(configuration?: Configuration) {
11778
- const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration)
11779
- return {
11780
- /**
11781
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11782
- * @param {*} [options] Override http request option.
11783
- * @throws {RequiredError}
11784
- */
11785
- async clientAuthMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientMeResponse>> {
11786
- const localVarAxiosArgs = await localVarAxiosParamCreator.clientAuthMe(options);
11787
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11788
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.clientAuthMe']?.[localVarOperationServerIndex]?.url;
11789
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11790
- },
11791
11955
  /**
11792
- * Récupère le compte client par son ID
11793
- * @param {string} accountId L\&#39;ID du compte client
11956
+ * Récupère les pourcentages par genre
11794
11957
  * @param {*} [options] Override http request option.
11795
11958
  * @throws {RequiredError}
11796
11959
  */
11797
- async getClientAccountById(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>> {
11798
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClientAccountById(accountId, options);
11799
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11800
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getClientAccountById']?.[localVarOperationServerIndex]?.url;
11801
- 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
+ };
11802
11987
  },
11803
11988
  /**
11804
- * Récupère l\'abonnement actif du compte client authentifié
11805
- * @param {*} [options] Override http request option.
11806
- * @throws {RequiredError}
11807
- */
11808
- async getMyActiveSubscription(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActiveSubscriptionResponse>> {
11809
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMyActiveSubscription(options);
11810
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11811
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getMyActiveSubscription']?.[localVarOperationServerIndex]?.url;
11812
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11813
- },
11814
- /**
11815
- * Récupère le compte client de l\'utilisateur authentifié
11816
- * @param {*} [options] Override http request option.
11817
- * @throws {RequiredError}
11818
- */
11819
- async getMyClientAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>> {
11820
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClientAccount(options);
11821
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11822
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getMyClientAccount']?.[localVarOperationServerIndex]?.url;
11823
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11824
- },
11825
- /**
11826
- * Récupère l\'historique des abonnements du compte client authentifié
11827
- * @param {*} [options] Override http request option.
11828
- * @throws {RequiredError}
11829
- */
11830
- async getSubscriptionsHistory(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubscriptionsHistory200Response>> {
11831
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionsHistory(options);
11832
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11833
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getSubscriptionsHistory']?.[localVarOperationServerIndex]?.url;
11834
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11835
- },
11836
- /**
11837
- * Liste les prix Stripe disponibles pour les abonnements client
11838
- * @param {*} [options] Override http request option.
11839
- * @throws {RequiredError}
11840
- */
11841
- async listAvailablePrices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
11842
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailablePrices(options);
11843
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11844
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.listAvailablePrices']?.[localVarOperationServerIndex]?.url;
11845
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11846
- },
11847
- /**
11848
- * Crée un nouveau compte client avec onboarding Stripe
11849
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
11850
- * @param {*} [options] Override http request option.
11851
- * @throws {RequiredError}
11852
- */
11853
- async onboardClientAccount(clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountOnboardingResponse>> {
11854
- const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
11855
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11856
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.onboardClientAccount']?.[localVarOperationServerIndex]?.url;
11857
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11858
- },
11859
- /**
11860
- * Route d\'inscription d\'un utilisateur client (publique)
11861
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
11862
- * @param {*} [options] Override http request option.
11863
- * @throws {RequiredError}
11864
- */
11865
- async registerClientUser(clientRegisterRequestBody: ClientRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegisterResponse>> {
11866
- const localVarAxiosArgs = await localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
11867
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11868
- const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.registerClientUser']?.[localVarOperationServerIndex]?.url;
11869
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11870
- },
11871
- }
11872
- };
11873
-
11874
- /**
11875
- * ClientAccountsApi - factory interface
11876
- * @export
11877
- */
11878
- export const ClientAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11879
- const localVarFp = ClientAccountsApiFp(configuration)
11880
- return {
11881
- /**
11882
- * Informations de l\'utilisateur client authentifié (token clientAuth)
11883
- * @param {*} [options] Override http request option.
11884
- * @throws {RequiredError}
11885
- */
11886
- clientAuthMe(options?: RawAxiosRequestConfig): AxiosPromise<ClientMeResponse> {
11887
- return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
11888
- },
11889
- /**
11890
- * Récupère le compte client par son ID
11891
- * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
11892
- * @param {*} [options] Override http request option.
11893
- * @throws {RequiredError}
11894
- */
11895
- getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse> {
11896
- return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
11897
- },
11898
- /**
11899
- * Récupère l\'abonnement actif du compte client authentifié
11900
- * @param {*} [options] Override http request option.
11901
- * @throws {RequiredError}
11902
- */
11903
- getMyActiveSubscription(options?: RawAxiosRequestConfig): AxiosPromise<ActiveSubscriptionResponse> {
11904
- return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
11905
- },
11906
- /**
11907
- * Récupère le compte client de l\'utilisateur authentifié
11908
- * @param {*} [options] Override http request option.
11909
- * @throws {RequiredError}
11910
- */
11911
- getMyClientAccount(options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse> {
11912
- return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
11913
- },
11914
- /**
11915
- * Récupère l\'historique des abonnements du compte client authentifié
11916
- * @param {*} [options] Override http request option.
11917
- * @throws {RequiredError}
11918
- */
11919
- getSubscriptionsHistory(options?: RawAxiosRequestConfig): AxiosPromise<GetSubscriptionsHistory200Response> {
11920
- return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
11921
- },
11922
- /**
11923
- * Liste les prix Stripe disponibles pour les abonnements client
11924
- * @param {*} [options] Override http request option.
11925
- * @throws {RequiredError}
11926
- */
11927
- listAvailablePrices(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
11928
- return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
11929
- },
11930
- /**
11931
- * Crée un nouveau compte client avec onboarding Stripe
11932
- * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
11933
- * @param {*} [options] Override http request option.
11934
- * @throws {RequiredError}
11935
- */
11936
- onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountOnboardingResponse> {
11937
- return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
11938
- },
11939
- /**
11940
- * Route d\'inscription d\'un utilisateur client (publique)
11941
- * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
11942
- * @param {*} [options] Override http request option.
11943
- * @throws {RequiredError}
11944
- */
11945
- registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegisterResponse> {
11946
- return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
11947
- },
11948
- };
11949
- };
11950
-
11951
- /**
11952
- * Request parameters for getClientAccountById operation in ClientAccountsApi.
11953
- * @export
11954
- * @interface ClientAccountsApiGetClientAccountByIdRequest
11955
- */
11956
- export interface ClientAccountsApiGetClientAccountByIdRequest {
11957
- /**
11958
- * L\&#39;ID du compte client
11959
- * @type {string}
11960
- * @memberof ClientAccountsApiGetClientAccountById
11961
- */
11962
- readonly accountId: string
11963
- }
11964
-
11965
- /**
11966
- * Request parameters for onboardClientAccount operation in ClientAccountsApi.
11967
- * @export
11968
- * @interface ClientAccountsApiOnboardClientAccountRequest
11969
- */
11970
- export interface ClientAccountsApiOnboardClientAccountRequest {
11971
- /**
11972
- * Les données du compte à créer
11973
- * @type {ClientAccountOnboardingRequest}
11974
- * @memberof ClientAccountsApiOnboardClientAccount
11975
- */
11976
- readonly clientAccountOnboardingRequest: ClientAccountOnboardingRequest
11977
- }
11978
-
11979
- /**
11980
- * Request parameters for registerClientUser operation in ClientAccountsApi.
11981
- * @export
11982
- * @interface ClientAccountsApiRegisterClientUserRequest
11983
- */
11984
- export interface ClientAccountsApiRegisterClientUserRequest {
11985
- /**
11986
- *
11987
- * @type {ClientRegisterRequestBody}
11988
- * @memberof ClientAccountsApiRegisterClientUser
11989
- */
11990
- readonly clientRegisterRequestBody: ClientRegisterRequestBody
11991
- }
11992
-
11993
- /**
11994
- * ClientAccountsApi - object-oriented interface
11995
- * @export
11996
- * @class ClientAccountsApi
11997
- * @extends {BaseAPI}
11998
- */
11999
- export class ClientAccountsApi extends BaseAPI {
12000
- /**
12001
- * Informations de l\'utilisateur client authentifié (token clientAuth)
12002
- * @param {*} [options] Override http request option.
12003
- * @throws {RequiredError}
12004
- * @memberof ClientAccountsApi
12005
- */
12006
- public clientAuthMe(options?: RawAxiosRequestConfig) {
12007
- return ClientAccountsApiFp(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
12008
- }
12009
-
12010
- /**
12011
- * Récupère le compte client par son ID
12012
- * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
12013
- * @param {*} [options] Override http request option.
12014
- * @throws {RequiredError}
12015
- * @memberof ClientAccountsApi
12016
- */
12017
- public getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig) {
12018
- return ClientAccountsApiFp(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
12019
- }
12020
-
12021
- /**
12022
- * Récupère l\'abonnement actif du compte client authentifié
12023
- * @param {*} [options] Override http request option.
12024
- * @throws {RequiredError}
12025
- * @memberof ClientAccountsApi
12026
- */
12027
- public getMyActiveSubscription(options?: RawAxiosRequestConfig) {
12028
- return ClientAccountsApiFp(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
12029
- }
12030
-
12031
- /**
12032
- * Récupère le compte client de l\'utilisateur authentifié
12033
- * @param {*} [options] Override http request option.
12034
- * @throws {RequiredError}
12035
- * @memberof ClientAccountsApi
12036
- */
12037
- public getMyClientAccount(options?: RawAxiosRequestConfig) {
12038
- return ClientAccountsApiFp(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
12039
- }
12040
-
12041
- /**
12042
- * Récupère l\'historique des abonnements du compte client authentifié
12043
- * @param {*} [options] Override http request option.
12044
- * @throws {RequiredError}
12045
- * @memberof ClientAccountsApi
12046
- */
12047
- public getSubscriptionsHistory(options?: RawAxiosRequestConfig) {
12048
- return ClientAccountsApiFp(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
12049
- }
12050
-
12051
- /**
12052
- * Liste les prix Stripe disponibles pour les abonnements client
12053
- * @param {*} [options] Override http request option.
12054
- * @throws {RequiredError}
12055
- * @memberof ClientAccountsApi
12056
- */
12057
- public listAvailablePrices(options?: RawAxiosRequestConfig) {
12058
- return ClientAccountsApiFp(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
12059
- }
12060
-
12061
- /**
12062
- * Crée un nouveau compte client avec onboarding Stripe
12063
- * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
12064
- * @param {*} [options] Override http request option.
12065
- * @throws {RequiredError}
12066
- * @memberof ClientAccountsApi
12067
- */
12068
- public onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig) {
12069
- return ClientAccountsApiFp(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
12070
- }
12071
-
12072
- /**
12073
- * Route d\'inscription d\'un utilisateur client (publique)
12074
- * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
12075
- * @param {*} [options] Override http request option.
12076
- * @throws {RequiredError}
12077
- * @memberof ClientAccountsApi
12078
- */
12079
- public registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig) {
12080
- return ClientAccountsApiFp(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
12081
- }
12082
- }
12083
-
12084
-
12085
-
12086
- /**
12087
- * ClubAnalyticsApi - axios parameter creator
12088
- * @export
12089
- */
12090
- export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
12091
- return {
12092
- /**
12093
- * Récupère les clubs les plus aimés
12094
- * @param {*} [options] Override http request option.
12095
- * @throws {RequiredError}
12096
- */
12097
- getMostLikedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12098
- const localVarPath = `/api/club-analytics/most-liked-clubs`;
12099
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12100
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12101
- let baseOptions;
12102
- if (configuration) {
12103
- baseOptions = configuration.baseOptions;
12104
- }
12105
-
12106
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12107
- const localVarHeaderParameter = {} as any;
12108
- const localVarQueryParameter = {} as any;
12109
-
12110
- // authentication bearerAuth required
12111
- // http bearer authentication required
12112
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12113
-
12114
-
12115
-
12116
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12117
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12118
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12119
-
12120
- return {
12121
- url: toPathString(localVarUrlObj),
12122
- options: localVarRequestOptions,
12123
- };
12124
- },
12125
- /**
12126
- * Récupère les clubs populaires
12127
- * @param {*} [options] Override http request option.
12128
- * @throws {RequiredError}
12129
- */
12130
- getPopularClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12131
- const localVarPath = `/api/club-analytics/popular-clubs`;
12132
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12133
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12134
- let baseOptions;
12135
- if (configuration) {
12136
- baseOptions = configuration.baseOptions;
12137
- }
12138
-
12139
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12140
- const localVarHeaderParameter = {} as any;
12141
- const localVarQueryParameter = {} as any;
12142
-
12143
- // authentication bearerAuth required
12144
- // http bearer authentication required
12145
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12146
-
12147
-
12148
-
12149
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12150
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12151
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12152
-
12153
- return {
12154
- url: toPathString(localVarUrlObj),
12155
- options: localVarRequestOptions,
12156
- };
12157
- },
12158
- }
12159
- };
12160
-
12161
- /**
12162
- * ClubAnalyticsApi - functional programming interface
12163
- * @export
12164
- */
12165
- export const ClubAnalyticsApiFp = function(configuration?: Configuration) {
12166
- const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration)
12167
- return {
12168
- /**
12169
- * Récupère les clubs les plus aimés
12170
- * @param {*} [options] Override http request option.
12171
- * @throws {RequiredError}
12172
- */
12173
- async getMostLikedClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
12174
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMostLikedClub(options);
12175
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12176
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getMostLikedClub']?.[localVarOperationServerIndex]?.url;
12177
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12178
- },
12179
- /**
12180
- * Récupère les clubs populaires
12181
- * @param {*} [options] Override http request option.
12182
- * @throws {RequiredError}
12183
- */
12184
- async getPopularClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
12185
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPopularClubs(options);
12186
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12187
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getPopularClubs']?.[localVarOperationServerIndex]?.url;
12188
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12189
- },
12190
- }
12191
- };
12192
-
12193
- /**
12194
- * ClubAnalyticsApi - factory interface
12195
- * @export
12196
- */
12197
- export const ClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12198
- const localVarFp = ClubAnalyticsApiFp(configuration)
12199
- return {
12200
- /**
12201
- * Récupère les clubs les plus aimés
12202
- * @param {*} [options] Override http request option.
12203
- * @throws {RequiredError}
12204
- */
12205
- getMostLikedClub(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
12206
- return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
12207
- },
12208
- /**
12209
- * Récupère les clubs populaires
12210
- * @param {*} [options] Override http request option.
12211
- * @throws {RequiredError}
12212
- */
12213
- getPopularClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
12214
- return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
12215
- },
12216
- };
12217
- };
12218
-
12219
- /**
12220
- * ClubAnalyticsApi - object-oriented interface
12221
- * @export
12222
- * @class ClubAnalyticsApi
12223
- * @extends {BaseAPI}
12224
- */
12225
- export class ClubAnalyticsApi extends BaseAPI {
12226
- /**
12227
- * Récupère les clubs les plus aimés
12228
- * @param {*} [options] Override http request option.
12229
- * @throws {RequiredError}
12230
- * @memberof ClubAnalyticsApi
12231
- */
12232
- public getMostLikedClub(options?: RawAxiosRequestConfig) {
12233
- return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
12234
- }
12235
-
12236
- /**
12237
- * Récupère les clubs populaires
12238
- * @param {*} [options] Override http request option.
12239
- * @throws {RequiredError}
12240
- * @memberof ClubAnalyticsApi
12241
- */
12242
- public getPopularClubs(options?: RawAxiosRequestConfig) {
12243
- return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
12244
- }
12245
- }
12246
-
12247
-
12248
-
12249
- /**
12250
- * ClubAnalyticsStaffApi - axios parameter creator
12251
- * @export
12252
- */
12253
- export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
12254
- return {
12255
- /**
12256
- * Récupère les analytics par sport
12257
- * @param {string} sportId
12258
- * @param {*} [options] Override http request option.
12259
- * @throws {RequiredError}
12260
- */
12261
- getAnalyticsBySport: async (sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12262
- // verify required parameter 'sportId' is not null or undefined
12263
- assertParamExists('getAnalyticsBySport', 'sportId', sportId)
12264
- const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
12265
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
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
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
12294
- * @param {string} playerId
12295
- * @param {number} [page]
12296
- * @param {number} [pageSize]
12297
- * @param {*} [options] Override http request option.
12298
- * @throws {RequiredError}
12299
- */
12300
- getClubPlayerBookingsById: async (playerId: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12301
- // verify required parameter 'playerId' is not null or undefined
12302
- assertParamExists('getClubPlayerBookingsById', 'playerId', playerId)
12303
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
12304
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
12305
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12306
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12307
- let baseOptions;
12308
- if (configuration) {
12309
- baseOptions = configuration.baseOptions;
12310
- }
12311
-
12312
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12313
- const localVarHeaderParameter = {} as any;
12314
- const localVarQueryParameter = {} as any;
12315
-
12316
- // authentication bearerAuth required
12317
- // http bearer authentication required
12318
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12319
-
12320
- if (page !== undefined) {
12321
- localVarQueryParameter['page'] = page;
12322
- }
12323
-
12324
- if (pageSize !== undefined) {
12325
- localVarQueryParameter['pageSize'] = pageSize;
12326
- }
12327
-
12328
-
12329
-
12330
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12331
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12332
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12333
-
12334
- return {
12335
- url: toPathString(localVarUrlObj),
12336
- options: localVarRequestOptions,
12337
- };
12338
- },
12339
- /**
12340
- * Récupère les informations détaillées d\'un joueur par son ID
12341
- * @param {string} playerId
12342
- * @param {*} [options] Override http request option.
12343
- * @throws {RequiredError}
12344
- */
12345
- getClubPlayerById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12346
- // verify required parameter 'playerId' is not null or undefined
12347
- assertParamExists('getClubPlayerById', 'playerId', playerId)
12348
- const localVarPath = `/api/club-analytics/players/{playerId}`
12349
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
12350
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12351
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12352
- let baseOptions;
12353
- if (configuration) {
12354
- baseOptions = configuration.baseOptions;
12355
- }
12356
-
12357
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12358
- const localVarHeaderParameter = {} as any;
12359
- const localVarQueryParameter = {} as any;
12360
-
12361
- // authentication bearerAuth required
12362
- // http bearer authentication required
12363
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12364
-
12365
-
12366
-
12367
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12368
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12369
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12370
-
12371
- return {
12372
- url: toPathString(localVarUrlObj),
12373
- options: localVarRequestOptions,
12374
- };
12375
- },
12376
- /**
12377
- * Récupère les statistiques d\'un joueur pour le staff
12378
- * @param {string} playerId
12379
- * @param {*} [options] Override http request option.
12380
- * @throws {RequiredError}
12381
- */
12382
- getClubPlayerStatisticsById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12383
- // verify required parameter 'playerId' is not null or undefined
12384
- assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId)
12385
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
12386
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
12387
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12388
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12389
- let baseOptions;
12390
- if (configuration) {
12391
- baseOptions = configuration.baseOptions;
12392
- }
12393
-
12394
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12395
- const localVarHeaderParameter = {} as any;
12396
- const localVarQueryParameter = {} as any;
12397
-
12398
- // authentication bearerAuth required
12399
- // http bearer authentication required
12400
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12401
-
12402
-
12403
-
12404
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12405
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12406
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12407
-
12408
- return {
12409
- url: toPathString(localVarUrlObj),
12410
- options: localVarRequestOptions,
12411
- };
12412
- },
12413
- /**
12414
- * Récupère la liste des joueurs du club
12415
- * @param {*} [options] Override http request option.
12416
- * @throws {RequiredError}
12417
- */
12418
- getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12419
- const localVarPath = `/api/club-analytics/players`;
12420
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12421
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12422
- let baseOptions;
12423
- if (configuration) {
12424
- baseOptions = configuration.baseOptions;
12425
- }
12426
-
12427
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12428
- const localVarHeaderParameter = {} as any;
12429
- const localVarQueryParameter = {} as any;
12430
-
12431
- // authentication bearerAuth required
12432
- // http bearer authentication required
12433
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12434
-
12435
-
12436
-
12437
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12438
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12439
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12440
-
12441
- return {
12442
- url: toPathString(localVarUrlObj),
12443
- options: localVarRequestOptions,
12444
- };
12445
- },
12446
- /**
12447
- * Récupère le chiffre d\'affaires quotidien
12448
- * @param {string} date
12449
- * @param {*} [options] Override http request option.
12450
- * @throws {RequiredError}
12451
- */
12452
- getDailyTurnOver: async (date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12453
- // verify required parameter 'date' is not null or undefined
12454
- assertParamExists('getDailyTurnOver', 'date', date)
12455
- const localVarPath = `/api/club-analytics/daily-turnover`;
12456
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12457
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12458
- let baseOptions;
12459
- if (configuration) {
12460
- baseOptions = configuration.baseOptions;
12461
- }
12462
-
12463
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12464
- const localVarHeaderParameter = {} as any;
12465
- const localVarQueryParameter = {} as any;
12466
-
12467
- // authentication bearerAuth required
12468
- // http bearer authentication required
12469
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12470
-
12471
- if (date !== undefined) {
12472
- localVarQueryParameter['date'] = date;
12473
- }
12474
-
12475
-
12476
-
12477
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12478
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12479
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12480
-
12481
- return {
12482
- url: toPathString(localVarUrlObj),
12483
- options: localVarRequestOptions,
12484
- };
12485
- },
12486
- /**
12487
- * Récupère les pourcentages par genre
12488
- * @param {*} [options] Override http request option.
12489
- * @throws {RequiredError}
12490
- */
12491
- getGenderPercentage: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12492
- const localVarPath = `/api/club-analytics/gender-percentage`;
12493
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12494
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12495
- let baseOptions;
12496
- if (configuration) {
12497
- baseOptions = configuration.baseOptions;
12498
- }
12499
-
12500
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12501
- const localVarHeaderParameter = {} as any;
12502
- const localVarQueryParameter = {} as any;
12503
-
12504
- // authentication bearerAuth required
12505
- // http bearer authentication required
12506
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
12507
-
12508
-
12509
-
12510
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12511
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12512
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12513
-
12514
- return {
12515
- url: toPathString(localVarUrlObj),
12516
- options: localVarRequestOptions,
12517
- };
12518
- },
12519
- /**
12520
- * Récupère le taux de remplissage (infill) pour une période donnée
12521
- * @param {string} [startDate]
12522
- * @param {string} [endDate]
11989
+ * Récupère le taux de remplissage (infill) pour une période donnée
11990
+ * @param {string} [startDate]
11991
+ * @param {string} [endDate]
12523
11992
  * @param {*} [options] Override http request option.
12524
11993
  * @throws {RequiredError}
12525
11994
  */
@@ -17528,12 +16997,19 @@ export class ClubsManagerApi extends BaseAPI {
17528
16997
  export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
17529
16998
  return {
17530
16999
  /**
17531
- *
17000
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
17001
+ * @param {string} bookingId
17002
+ * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
17532
17003
  * @param {*} [options] Override http request option.
17533
17004
  * @throws {RequiredError}
17534
17005
  */
17535
- getActualities: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17536
- 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)));
17537
17013
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17538
17014
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17539
17015
  let baseOptions;
@@ -17541,7 +17017,7 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17541
17017
  baseOptions = configuration.baseOptions;
17542
17018
  }
17543
17019
 
17544
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17020
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17545
17021
  const localVarHeaderParameter = {} as any;
17546
17022
  const localVarQueryParameter = {} as any;
17547
17023
 
@@ -17551,9 +17027,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17551
17027
 
17552
17028
 
17553
17029
 
17030
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17031
+
17554
17032
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17555
17033
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17556
17034
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17035
+ localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration)
17557
17036
 
17558
17037
  return {
17559
17038
  url: toPathString(localVarUrlObj),
@@ -17565,8 +17044,8 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17565
17044
  * @param {*} [options] Override http request option.
17566
17045
  * @throws {RequiredError}
17567
17046
  */
17568
- getClubInfos: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17569
- const localVarPath = `/api/clubs/infos`;
17047
+ getActualities: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17048
+ const localVarPath = `/api/clubs/staff/actualities`;
17570
17049
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17571
17050
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17572
17051
  let baseOptions;
@@ -17594,12 +17073,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17594
17073
  };
17595
17074
  },
17596
17075
  /**
17597
- * Récupère les membres d\'un club
17076
+ *
17598
17077
  * @param {*} [options] Override http request option.
17599
17078
  * @throws {RequiredError}
17600
17079
  */
17601
- getClubMembers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17602
- const localVarPath = `/api/clubs/members`;
17080
+ getClubInfos: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17081
+ const localVarPath = `/api/clubs/infos`;
17603
17082
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17604
17083
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17605
17084
  let baseOptions;
@@ -17627,12 +17106,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17627
17106
  };
17628
17107
  },
17629
17108
  /**
17630
- *
17109
+ * Récupère les membres d\'un club
17631
17110
  * @param {*} [options] Override http request option.
17632
17111
  * @throws {RequiredError}
17633
17112
  */
17634
- getClubPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17635
- const localVarPath = `/api/clubs/settings/presentation`;
17113
+ getClubMembers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17114
+ const localVarPath = `/api/clubs/members`;
17636
17115
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17637
17116
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17638
17117
  let baseOptions;
@@ -17660,12 +17139,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17660
17139
  };
17661
17140
  },
17662
17141
  /**
17663
- * Récupère les rôles d\'un club
17142
+ *
17664
17143
  * @param {*} [options] Override http request option.
17665
17144
  * @throws {RequiredError}
17666
17145
  */
17667
- getClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17668
- const localVarPath = `/api/clubs/roles`;
17146
+ getClubPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17147
+ const localVarPath = `/api/clubs/settings/presentation`;
17669
17148
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17670
17149
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17671
17150
  let baseOptions;
@@ -17693,12 +17172,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17693
17172
  };
17694
17173
  },
17695
17174
  /**
17696
- * Récupère les terrains d\'un club
17175
+ * Récupère les rôles d\'un club
17697
17176
  * @param {*} [options] Override http request option.
17698
17177
  * @throws {RequiredError}
17699
17178
  */
17700
- getCourtsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17701
- const localVarPath = `/api/clubs/courts`;
17179
+ getClubRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17180
+ const localVarPath = `/api/clubs/roles`;
17702
17181
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17703
17182
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17704
17183
  let baseOptions;
@@ -17726,12 +17205,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17726
17205
  };
17727
17206
  },
17728
17207
  /**
17729
- *
17208
+ * Récupère les terrains d\'un club
17730
17209
  * @param {*} [options] Override http request option.
17731
17210
  * @throws {RequiredError}
17732
17211
  */
17733
- getInvoices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17734
- const localVarPath = `/api/clubs/invoices`;
17212
+ getCourtsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17213
+ const localVarPath = `/api/clubs/courts`;
17735
17214
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17736
17215
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17737
17216
  let baseOptions;
@@ -17760,15 +17239,11 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17760
17239
  },
17761
17240
  /**
17762
17241
  *
17763
- * @param {string} id
17764
17242
  * @param {*} [options] Override http request option.
17765
17243
  * @throws {RequiredError}
17766
17244
  */
17767
- getUserProfileStaff: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17768
- // verify required parameter 'id' is not null or undefined
17769
- assertParamExists('getUserProfileStaff', 'id', id)
17770
- const localVarPath = `/api/clubs/staff/profile/{id}`
17771
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17245
+ getInvoices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17246
+ const localVarPath = `/api/clubs/invoices`;
17772
17247
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17773
17248
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17774
17249
  let baseOptions;
@@ -17798,16 +17273,13 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17798
17273
  /**
17799
17274
  *
17800
17275
  * @param {string} id
17801
- * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
17802
17276
  * @param {*} [options] Override http request option.
17803
17277
  * @throws {RequiredError}
17804
17278
  */
17805
- updateUserCreditsStaff: async (id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17279
+ getUserProfileStaff: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17806
17280
  // verify required parameter 'id' is not null or undefined
17807
- assertParamExists('updateUserCreditsStaff', 'id', id)
17808
- // verify required parameter 'updateUserCreditsRequest' is not null or undefined
17809
- assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest)
17810
- const localVarPath = `/api/clubs/staff/user-credits/{id}`
17281
+ assertParamExists('getUserProfileStaff', 'id', id)
17282
+ const localVarPath = `/api/clubs/staff/profile/{id}`
17811
17283
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17812
17284
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17813
17285
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -17816,7 +17288,7 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17816
17288
  baseOptions = configuration.baseOptions;
17817
17289
  }
17818
17290
 
17819
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17291
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17820
17292
  const localVarHeaderParameter = {} as any;
17821
17293
  const localVarQueryParameter = {} as any;
17822
17294
 
@@ -17826,12 +17298,9 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17826
17298
 
17827
17299
 
17828
17300
 
17829
- localVarHeaderParameter['Content-Type'] = 'application/json';
17830
-
17831
17301
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17832
17302
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17833
17303
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17834
- localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration)
17835
17304
 
17836
17305
  return {
17837
17306
  url: toPathString(localVarUrlObj),
@@ -17848,6 +17317,19 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
17848
17317
  export const ClubsStaffApiFp = function(configuration?: Configuration) {
17849
17318
  const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration)
17850
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
+ },
17851
17333
  /**
17852
17334
  *
17853
17335
  * @param {*} [options] Override http request option.
@@ -17937,19 +17419,6 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
17937
17419
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getUserProfileStaff']?.[localVarOperationServerIndex]?.url;
17938
17420
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17939
17421
  },
17940
- /**
17941
- *
17942
- * @param {string} id
17943
- * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
17944
- * @param {*} [options] Override http request option.
17945
- * @throws {RequiredError}
17946
- */
17947
- async updateUserCreditsStaff(id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffUserProfileResponse>> {
17948
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
17949
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17950
- const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']?.[localVarOperationServerIndex]?.url;
17951
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17952
- },
17953
17422
  }
17954
17423
  };
17955
17424
 
@@ -17960,6 +17429,15 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
17960
17429
  export const ClubsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17961
17430
  const localVarFp = ClubsStaffApiFp(configuration)
17962
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
+ },
17963
17441
  /**
17964
17442
  *
17965
17443
  * @param {*} [options] Override http request option.
@@ -18025,51 +17503,42 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
18025
17503
  getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
18026
17504
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
18027
17505
  },
18028
- /**
18029
- *
18030
- * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
18031
- * @param {*} [options] Override http request option.
18032
- * @throws {RequiredError}
18033
- */
18034
- updateUserCreditsStaff(requestParameters: ClubsStaffApiUpdateUserCreditsStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
18035
- return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
18036
- },
18037
17506
  };
18038
17507
  };
18039
17508
 
18040
17509
  /**
18041
- * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
17510
+ * Request parameters for createOnsiteInvoiceForBooking operation in ClubsStaffApi.
18042
17511
  * @export
18043
- * @interface ClubsStaffApiGetUserProfileStaffRequest
17512
+ * @interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest
18044
17513
  */
18045
- export interface ClubsStaffApiGetUserProfileStaffRequest {
17514
+ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
18046
17515
  /**
18047
17516
  *
18048
17517
  * @type {string}
18049
- * @memberof ClubsStaffApiGetUserProfileStaff
17518
+ * @memberof ClubsStaffApiCreateOnsiteInvoiceForBooking
18050
17519
  */
18051
- readonly id: string
17520
+ readonly bookingId: string
17521
+
17522
+ /**
17523
+ *
17524
+ * @type {CreateOnsiteInvoiceRequest}
17525
+ * @memberof ClubsStaffApiCreateOnsiteInvoiceForBooking
17526
+ */
17527
+ readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
18052
17528
  }
18053
17529
 
18054
17530
  /**
18055
- * Request parameters for updateUserCreditsStaff operation in ClubsStaffApi.
17531
+ * Request parameters for getUserProfileStaff operation in ClubsStaffApi.
18056
17532
  * @export
18057
- * @interface ClubsStaffApiUpdateUserCreditsStaffRequest
17533
+ * @interface ClubsStaffApiGetUserProfileStaffRequest
18058
17534
  */
18059
- export interface ClubsStaffApiUpdateUserCreditsStaffRequest {
17535
+ export interface ClubsStaffApiGetUserProfileStaffRequest {
18060
17536
  /**
18061
17537
  *
18062
17538
  * @type {string}
18063
- * @memberof ClubsStaffApiUpdateUserCreditsStaff
17539
+ * @memberof ClubsStaffApiGetUserProfileStaff
18064
17540
  */
18065
17541
  readonly id: string
18066
-
18067
- /**
18068
- *
18069
- * @type {UpdateUserCreditsRequest}
18070
- * @memberof ClubsStaffApiUpdateUserCreditsStaff
18071
- */
18072
- readonly updateUserCreditsRequest: UpdateUserCreditsRequest
18073
17542
  }
18074
17543
 
18075
17544
  /**
@@ -18079,6 +17548,17 @@ export interface ClubsStaffApiUpdateUserCreditsStaffRequest {
18079
17548
  * @extends {BaseAPI}
18080
17549
  */
18081
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
+
18082
17562
  /**
18083
17563
  *
18084
17564
  * @param {*} [options] Override http request option.
@@ -18159,17 +17639,6 @@ export class ClubsStaffApi extends BaseAPI {
18159
17639
  public getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig) {
18160
17640
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
18161
17641
  }
18162
-
18163
- /**
18164
- *
18165
- * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
18166
- * @param {*} [options] Override http request option.
18167
- * @throws {RequiredError}
18168
- * @memberof ClubsStaffApi
18169
- */
18170
- public updateUserCreditsStaff(requestParameters: ClubsStaffApiUpdateUserCreditsStaffRequest, options?: RawAxiosRequestConfig) {
18171
- return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
18172
- }
18173
17642
  }
18174
17643
 
18175
17644
 
@@ -18734,6 +18203,45 @@ export type GetPublishedEventsByClubIdTypeEnum = typeof GetPublishedEventsByClub
18734
18203
  */
18735
18204
  export const EventsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
18736
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
+ },
18737
18245
  /**
18738
18246
  * Create a new event (manager)
18739
18247
  * @param {CreateEventRequest} createEventRequest
@@ -18915,6 +18423,49 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
18915
18423
 
18916
18424
 
18917
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
+
18918
18469
  localVarHeaderParameter['Content-Type'] = 'application/json';
18919
18470
 
18920
18471
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18937,6 +18488,18 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
18937
18488
  export const EventsManagerApiFp = function(configuration?: Configuration) {
18938
18489
  const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration)
18939
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
+ },
18940
18503
  /**
18941
18504
  * Create a new event (manager)
18942
18505
  * @param {CreateEventRequest} createEventRequest
@@ -18998,6 +18561,19 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
18998
18561
  const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updateEvent']?.[localVarOperationServerIndex]?.url;
18999
18562
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19000
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
+ },
19001
18577
  }
19002
18578
  };
19003
18579
 
@@ -19008,6 +18584,15 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
19008
18584
  export const EventsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19009
18585
  const localVarFp = EventsManagerApiFp(configuration)
19010
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
+ },
19011
18596
  /**
19012
18597
  * Create a new event (manager)
19013
18598
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -19053,9 +18638,32 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
19053
18638
  updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
19054
18639
  return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
19055
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
+ },
19056
18650
  };
19057
18651
  };
19058
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
+
19059
18667
  /**
19060
18668
  * Request parameters for createEvent operation in EventsManagerApi.
19061
18669
  * @export
@@ -19133,6 +18741,27 @@ export interface EventsManagerApiUpdateEventRequest {
19133
18741
  readonly updateEventRequest: UpdateEventRequest
19134
18742
  }
19135
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
+
19136
18765
  /**
19137
18766
  * EventsManagerApi - object-oriented interface
19138
18767
  * @export
@@ -19140,6 +18769,17 @@ export interface EventsManagerApiUpdateEventRequest {
19140
18769
  * @extends {BaseAPI}
19141
18770
  */
19142
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
+
19143
18783
  /**
19144
18784
  * Create a new event (manager)
19145
18785
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -19185,128 +18825,50 @@ export class EventsManagerApi extends BaseAPI {
19185
18825
  }
19186
18826
 
19187
18827
  /**
19188
- * Update an event (manager)
19189
- * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
19190
- * @param {*} [options] Override http request option.
19191
- * @throws {RequiredError}
19192
- * @memberof EventsManagerApi
19193
- */
19194
- public updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig) {
19195
- return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
19196
- }
19197
- }
19198
-
19199
-
19200
-
19201
- /**
19202
- * EventsStaffApi - axios parameter creator
19203
- * @export
19204
- */
19205
- export const EventsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
19206
- return {
19207
- /**
19208
- * Get events for the day view (entire week)
19209
- * @param {string} [clubId]
19210
- * @param {string} [date]
19211
- * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
19212
- * @param {GetDailyEventsTypeEnum} [type]
19213
- * @param {string} [sportId]
19214
- * @param {*} [options] Override http request option.
19215
- * @throws {RequiredError}
19216
- */
19217
- getDailyEvents: async (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19218
- const localVarPath = `/api/events/calendar/daily`;
19219
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19220
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19221
- let baseOptions;
19222
- if (configuration) {
19223
- baseOptions = configuration.baseOptions;
19224
- }
19225
-
19226
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19227
- const localVarHeaderParameter = {} as any;
19228
- const localVarQueryParameter = {} as any;
19229
-
19230
- // authentication bearerAuth required
19231
- // http bearer authentication required
19232
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
19233
-
19234
- if (clubId !== undefined) {
19235
- localVarQueryParameter['clubId'] = clubId;
19236
- }
19237
-
19238
- if (date !== undefined) {
19239
- localVarQueryParameter['date'] = date;
19240
- }
19241
-
19242
- if (visibilityType !== undefined) {
19243
- localVarQueryParameter['visibilityType'] = visibilityType;
19244
- }
19245
-
19246
- if (type !== undefined) {
19247
- localVarQueryParameter['type'] = type;
19248
- }
19249
-
19250
- if (sportId !== undefined) {
19251
- localVarQueryParameter['sportId'] = sportId;
19252
- }
19253
-
19254
-
19255
-
19256
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19257
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19258
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19259
-
19260
- return {
19261
- url: toPathString(localVarUrlObj),
19262
- options: localVarRequestOptions,
19263
- };
19264
- },
19265
- /**
19266
- * Get all events for a club (staff only)
19267
- * @param {*} [options] Override http request option.
19268
- * @throws {RequiredError}
19269
- */
19270
- getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19271
- const localVarPath = `/api/events/staff/getEvents`;
19272
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19273
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19274
- let baseOptions;
19275
- if (configuration) {
19276
- baseOptions = configuration.baseOptions;
19277
- }
19278
-
19279
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19280
- const localVarHeaderParameter = {} as any;
19281
- 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
+ }
19282
18837
 
19283
- // authentication bearerAuth required
19284
- // http bearer authentication required
19285
- 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
+ }
19286
18849
 
19287
18850
 
19288
-
19289
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19290
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19291
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19292
18851
 
19293
- return {
19294
- url: toPathString(localVarUrlObj),
19295
- options: localVarRequestOptions,
19296
- };
19297
- },
18852
+ /**
18853
+ * EventsStaffApi - axios parameter creator
18854
+ * @export
18855
+ */
18856
+ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
18857
+ return {
19298
18858
  /**
19299
- * Get events for the entire month view (including recurring occurrences)
19300
- * @param {string} [clubId]
19301
- * @param {string} [date]
19302
- * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
19303
- * @param {GetMonthlyEventsTypeEnum} [type]
19304
- * @param {string} [sportId]
18859
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18860
+ * @param {string} eventBookingId
18861
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
19305
18862
  * @param {*} [options] Override http request option.
19306
18863
  * @throws {RequiredError}
19307
18864
  */
19308
- getMonthlyEvents: async (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19309
- 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)));
19310
18872
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19311
18873
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19312
18874
  let baseOptions;
@@ -19314,7 +18876,7 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
19314
18876
  baseOptions = configuration.baseOptions;
19315
18877
  }
19316
18878
 
19317
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18879
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19318
18880
  const localVarHeaderParameter = {} as any;
19319
18881
  const localVarQueryParameter = {} as any;
19320
18882
 
@@ -19322,31 +18884,14 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
19322
18884
  // http bearer authentication required
19323
18885
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
19324
18886
 
19325
- if (clubId !== undefined) {
19326
- localVarQueryParameter['clubId'] = clubId;
19327
- }
19328
-
19329
- if (date !== undefined) {
19330
- localVarQueryParameter['date'] = date;
19331
- }
19332
-
19333
- if (visibilityType !== undefined) {
19334
- localVarQueryParameter['visibilityType'] = visibilityType;
19335
- }
19336
-
19337
- if (type !== undefined) {
19338
- localVarQueryParameter['type'] = type;
19339
- }
19340
-
19341
- if (sportId !== undefined) {
19342
- localVarQueryParameter['sportId'] = sportId;
19343
- }
19344
-
19345
18887
 
19346
18888
 
18889
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18890
+
19347
18891
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19348
18892
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19349
18893
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18894
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration)
19350
18895
 
19351
18896
  return {
19352
18897
  url: toPathString(localVarUrlObj),
@@ -19354,17 +18899,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
19354
18899
  };
19355
18900
  },
19356
18901
  /**
19357
- * Get events for the week view (30 day sliding window)
19358
- * @param {string} [clubId]
19359
- * @param {string} [date]
19360
- * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
19361
- * @param {GetWeeklyEventsTypeEnum} [type]
19362
- * @param {string} [sportId]
18902
+ * Get all events for a club (staff only)
19363
18903
  * @param {*} [options] Override http request option.
19364
18904
  * @throws {RequiredError}
19365
18905
  */
19366
- getWeeklyEvents: async (clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19367
- const localVarPath = `/api/events/calendar/weekly`;
18906
+ getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18907
+ const localVarPath = `/api/events/staff/getEvents`;
19368
18908
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19369
18909
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19370
18910
  let baseOptions;
@@ -19380,26 +18920,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
19380
18920
  // http bearer authentication required
19381
18921
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
19382
18922
 
19383
- if (clubId !== undefined) {
19384
- localVarQueryParameter['clubId'] = clubId;
19385
- }
19386
-
19387
- if (date !== undefined) {
19388
- localVarQueryParameter['date'] = date;
19389
- }
19390
-
19391
- if (visibilityType !== undefined) {
19392
- localVarQueryParameter['visibilityType'] = visibilityType;
19393
- }
19394
-
19395
- if (type !== undefined) {
19396
- localVarQueryParameter['type'] = type;
19397
- }
19398
-
19399
- if (sportId !== undefined) {
19400
- localVarQueryParameter['sportId'] = sportId;
19401
- }
19402
-
19403
18923
 
19404
18924
 
19405
18925
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -19422,19 +18942,16 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
19422
18942
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration)
19423
18943
  return {
19424
18944
  /**
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]
18945
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18946
+ * @param {string} eventBookingId
18947
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
19431
18948
  * @param {*} [options] Override http request option.
19432
18949
  * @throws {RequiredError}
19433
18950
  */
19434
- async getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
19435
- 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);
19436
18953
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19437
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
18954
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.checkInEventParticipants']?.[localVarOperationServerIndex]?.url;
19438
18955
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19439
18956
  },
19440
18957
  /**
@@ -19448,38 +18965,6 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
19448
18965
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
19449
18966
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19450
18967
  },
19451
- /**
19452
- * Get events for the entire month view (including recurring occurrences)
19453
- * @param {string} [clubId]
19454
- * @param {string} [date]
19455
- * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
19456
- * @param {GetMonthlyEventsTypeEnum} [type]
19457
- * @param {string} [sportId]
19458
- * @param {*} [options] Override http request option.
19459
- * @throws {RequiredError}
19460
- */
19461
- async getMonthlyEvents(clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
19462
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
19463
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19464
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getMonthlyEvents']?.[localVarOperationServerIndex]?.url;
19465
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19466
- },
19467
- /**
19468
- * Get events for the week view (30 day sliding window)
19469
- * @param {string} [clubId]
19470
- * @param {string} [date]
19471
- * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
19472
- * @param {GetWeeklyEventsTypeEnum} [type]
19473
- * @param {string} [sportId]
19474
- * @param {*} [options] Override http request option.
19475
- * @throws {RequiredError}
19476
- */
19477
- async getWeeklyEvents(clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
19478
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
19479
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19480
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getWeeklyEvents']?.[localVarOperationServerIndex]?.url;
19481
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19482
- },
19483
18968
  }
19484
18969
  };
19485
18970
 
@@ -19491,13 +18976,13 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
19491
18976
  const localVarFp = EventsStaffApiFp(configuration)
19492
18977
  return {
19493
18978
  /**
19494
- * Get events for the day view (entire week)
19495
- * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
18979
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
18980
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
19496
18981
  * @param {*} [options] Override http request option.
19497
18982
  * @throws {RequiredError}
19498
18983
  */
19499
- getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
19500
- 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));
19501
18986
  },
19502
18987
  /**
19503
18988
  * Get all events for a club (staff only)
@@ -19507,151 +18992,28 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
19507
18992
  getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
19508
18993
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
19509
18994
  },
19510
- /**
19511
- * Get events for the entire month view (including recurring occurrences)
19512
- * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
19513
- * @param {*} [options] Override http request option.
19514
- * @throws {RequiredError}
19515
- */
19516
- getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
19517
- return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
19518
- },
19519
- /**
19520
- * Get events for the week view (30 day sliding window)
19521
- * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
19522
- * @param {*} [options] Override http request option.
19523
- * @throws {RequiredError}
19524
- */
19525
- getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
19526
- return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
19527
- },
19528
18995
  };
19529
18996
  };
19530
18997
 
19531
18998
  /**
19532
- * Request parameters for getDailyEvents operation in EventsStaffApi.
19533
- * @export
19534
- * @interface EventsStaffApiGetDailyEventsRequest
19535
- */
19536
- export interface EventsStaffApiGetDailyEventsRequest {
19537
- /**
19538
- *
19539
- * @type {string}
19540
- * @memberof EventsStaffApiGetDailyEvents
19541
- */
19542
- readonly clubId?: string
19543
-
19544
- /**
19545
- *
19546
- * @type {string}
19547
- * @memberof EventsStaffApiGetDailyEvents
19548
- */
19549
- readonly date?: string
19550
-
19551
- /**
19552
- *
19553
- * @type {'public' | 'private' | 'invitation'}
19554
- * @memberof EventsStaffApiGetDailyEvents
19555
- */
19556
- readonly visibilityType?: GetDailyEventsVisibilityTypeEnum
19557
-
19558
- /**
19559
- *
19560
- * @type {'event' | 'closure'}
19561
- * @memberof EventsStaffApiGetDailyEvents
19562
- */
19563
- readonly type?: GetDailyEventsTypeEnum
19564
-
19565
- /**
19566
- *
19567
- * @type {string}
19568
- * @memberof EventsStaffApiGetDailyEvents
19569
- */
19570
- readonly sportId?: string
19571
- }
19572
-
19573
- /**
19574
- * Request parameters for getMonthlyEvents operation in EventsStaffApi.
19575
- * @export
19576
- * @interface EventsStaffApiGetMonthlyEventsRequest
19577
- */
19578
- export interface EventsStaffApiGetMonthlyEventsRequest {
19579
- /**
19580
- *
19581
- * @type {string}
19582
- * @memberof EventsStaffApiGetMonthlyEvents
19583
- */
19584
- readonly clubId?: string
19585
-
19586
- /**
19587
- *
19588
- * @type {string}
19589
- * @memberof EventsStaffApiGetMonthlyEvents
19590
- */
19591
- readonly date?: string
19592
-
19593
- /**
19594
- *
19595
- * @type {'public' | 'private' | 'invitation'}
19596
- * @memberof EventsStaffApiGetMonthlyEvents
19597
- */
19598
- readonly visibilityType?: GetMonthlyEventsVisibilityTypeEnum
19599
-
19600
- /**
19601
- *
19602
- * @type {'event' | 'closure'}
19603
- * @memberof EventsStaffApiGetMonthlyEvents
19604
- */
19605
- readonly type?: GetMonthlyEventsTypeEnum
19606
-
19607
- /**
19608
- *
19609
- * @type {string}
19610
- * @memberof EventsStaffApiGetMonthlyEvents
19611
- */
19612
- readonly sportId?: string
19613
- }
19614
-
19615
- /**
19616
- * Request parameters for getWeeklyEvents operation in EventsStaffApi.
18999
+ * Request parameters for checkInEventParticipants operation in EventsStaffApi.
19617
19000
  * @export
19618
- * @interface EventsStaffApiGetWeeklyEventsRequest
19001
+ * @interface EventsStaffApiCheckInEventParticipantsRequest
19619
19002
  */
19620
- export interface EventsStaffApiGetWeeklyEventsRequest {
19003
+ export interface EventsStaffApiCheckInEventParticipantsRequest {
19621
19004
  /**
19622
19005
  *
19623
19006
  * @type {string}
19624
- * @memberof EventsStaffApiGetWeeklyEvents
19625
- */
19626
- readonly clubId?: string
19627
-
19628
- /**
19629
- *
19630
- * @type {string}
19631
- * @memberof EventsStaffApiGetWeeklyEvents
19632
- */
19633
- readonly date?: string
19634
-
19635
- /**
19636
- *
19637
- * @type {'public' | 'private' | 'invitation'}
19638
- * @memberof EventsStaffApiGetWeeklyEvents
19639
- */
19640
- readonly visibilityType?: GetWeeklyEventsVisibilityTypeEnum
19641
-
19642
- /**
19643
- *
19644
- * @type {'event' | 'closure'}
19645
- * @memberof EventsStaffApiGetWeeklyEvents
19007
+ * @memberof EventsStaffApiCheckInEventParticipants
19646
19008
  */
19647
- readonly type?: GetWeeklyEventsTypeEnum
19009
+ readonly eventBookingId: string
19648
19010
 
19649
19011
  /**
19650
19012
  *
19651
- * @type {string}
19652
- * @memberof EventsStaffApiGetWeeklyEvents
19013
+ * @type {CheckInEventParticipantsRequest}
19014
+ * @memberof EventsStaffApiCheckInEventParticipants
19653
19015
  */
19654
- readonly sportId?: string
19016
+ readonly checkInEventParticipantsRequest: CheckInEventParticipantsRequest
19655
19017
  }
19656
19018
 
19657
19019
  /**
@@ -19662,14 +19024,14 @@ export interface EventsStaffApiGetWeeklyEventsRequest {
19662
19024
  */
19663
19025
  export class EventsStaffApi extends BaseAPI {
19664
19026
  /**
19665
- * Get events for the day view (entire week)
19666
- * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
19027
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
19028
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
19667
19029
  * @param {*} [options] Override http request option.
19668
19030
  * @throws {RequiredError}
19669
19031
  * @memberof EventsStaffApi
19670
19032
  */
19671
- public getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig) {
19672
- 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));
19673
19035
  }
19674
19036
 
19675
19037
  /**
@@ -19681,81 +19043,8 @@ export class EventsStaffApi extends BaseAPI {
19681
19043
  public getEventsByClub(options?: RawAxiosRequestConfig) {
19682
19044
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
19683
19045
  }
19684
-
19685
- /**
19686
- * Get events for the entire month view (including recurring occurrences)
19687
- * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
19688
- * @param {*} [options] Override http request option.
19689
- * @throws {RequiredError}
19690
- * @memberof EventsStaffApi
19691
- */
19692
- public getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig) {
19693
- return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
19694
- }
19695
-
19696
- /**
19697
- * Get events for the week view (30 day sliding window)
19698
- * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
19699
- * @param {*} [options] Override http request option.
19700
- * @throws {RequiredError}
19701
- * @memberof EventsStaffApi
19702
- */
19703
- public getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig) {
19704
- return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
19705
- }
19706
19046
  }
19707
19047
 
19708
- /**
19709
- * @export
19710
- */
19711
- export const GetDailyEventsVisibilityTypeEnum = {
19712
- Public: 'public',
19713
- Private: 'private',
19714
- Invitation: 'invitation'
19715
- } as const;
19716
- export type GetDailyEventsVisibilityTypeEnum = typeof GetDailyEventsVisibilityTypeEnum[keyof typeof GetDailyEventsVisibilityTypeEnum];
19717
- /**
19718
- * @export
19719
- */
19720
- export const GetDailyEventsTypeEnum = {
19721
- Event: 'event',
19722
- Closure: 'closure'
19723
- } as const;
19724
- export type GetDailyEventsTypeEnum = typeof GetDailyEventsTypeEnum[keyof typeof GetDailyEventsTypeEnum];
19725
- /**
19726
- * @export
19727
- */
19728
- export const GetMonthlyEventsVisibilityTypeEnum = {
19729
- Public: 'public',
19730
- Private: 'private',
19731
- Invitation: 'invitation'
19732
- } as const;
19733
- export type GetMonthlyEventsVisibilityTypeEnum = typeof GetMonthlyEventsVisibilityTypeEnum[keyof typeof GetMonthlyEventsVisibilityTypeEnum];
19734
- /**
19735
- * @export
19736
- */
19737
- export const GetMonthlyEventsTypeEnum = {
19738
- Event: 'event',
19739
- Closure: 'closure'
19740
- } as const;
19741
- export type GetMonthlyEventsTypeEnum = typeof GetMonthlyEventsTypeEnum[keyof typeof GetMonthlyEventsTypeEnum];
19742
- /**
19743
- * @export
19744
- */
19745
- export const GetWeeklyEventsVisibilityTypeEnum = {
19746
- Public: 'public',
19747
- Private: 'private',
19748
- Invitation: 'invitation'
19749
- } as const;
19750
- export type GetWeeklyEventsVisibilityTypeEnum = typeof GetWeeklyEventsVisibilityTypeEnum[keyof typeof GetWeeklyEventsVisibilityTypeEnum];
19751
- /**
19752
- * @export
19753
- */
19754
- export const GetWeeklyEventsTypeEnum = {
19755
- Event: 'event',
19756
- Closure: 'closure'
19757
- } as const;
19758
- export type GetWeeklyEventsTypeEnum = typeof GetWeeklyEventsTypeEnum[keyof typeof GetWeeklyEventsTypeEnum];
19759
19048
 
19760
19049
 
19761
19050
  /**