@tennac-booking/sdk 1.0.108 → 1.0.109

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 (49) hide show
  1. package/.openapi-generator/FILES +292 -284
  2. package/README.md +25 -7
  3. package/api.ts +1721 -339
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +961 -94
  8. package/dist/api.js +1104 -271
  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 +961 -94
  16. package/dist/esm/api.js +1096 -267
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveSubscriptionResponse.md +22 -0
  28. package/docs/ClientAccountOnboardingRequest.md +29 -0
  29. package/docs/{ClientFullOnboardingResponse.md → ClientAccountOnboardingResponse.md} +11 -7
  30. package/docs/ClientAccountResponse.md +44 -0
  31. package/docs/ClientAccountsApi.md +408 -0
  32. package/docs/ClientApi.md +4 -59
  33. package/docs/ClientMeResponse.md +28 -0
  34. package/docs/ClientOnboardingResponse.md +27 -0
  35. package/docs/{ClientRegisterRequest.md → ClientRegisterRequestBody.md} +7 -7
  36. package/docs/ClientRegisterResponse.md +22 -0
  37. package/docs/ClientSubscriptionResponse.md +34 -0
  38. package/docs/ClubPlayerDetailResponse.md +2 -0
  39. package/docs/ClubSummary.md +8 -2
  40. package/docs/ClubsStaffApi.md +55 -0
  41. package/docs/CreateEventRequest.md +3 -1
  42. package/docs/EventsStaffApi.md +198 -0
  43. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  44. package/docs/PaymentMethod.md +0 -4
  45. package/docs/UpdateUserCreditsRequest.md +20 -0
  46. package/index.ts +1 -1
  47. package/package.json +1 -1
  48. package/docs/ClientFullOnboardingResponseClub.md +0 -24
  49. package/docs/ClientRegister201Response.md +0 -26
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.108
7
+ * The version of the OpenAPI document: 1.0.104
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,6 +23,25 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface ActiveSubscriptionResponse
30
+ */
31
+ export interface ActiveSubscriptionResponse {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ActiveSubscriptionResponse
36
+ */
37
+ 'clientAccountId': string;
38
+ /**
39
+ *
40
+ * @type {ClientSubscriptionResponse}
41
+ * @memberof ActiveSubscriptionResponse
42
+ */
43
+ 'subscription': ClientSubscriptionResponse | null;
44
+ }
26
45
  /**
27
46
  *
28
47
  * @export
@@ -1339,73 +1358,233 @@ export interface CheckedInPlayer {
1339
1358
  }
1340
1359
 
1341
1360
 
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
+
1342
1412
  /**
1343
1413
  *
1344
1414
  * @export
1345
- * @interface ClientFullOnboardingResponse
1415
+ * @interface ClientAccountOnboardingResponse
1346
1416
  */
1347
- export interface ClientFullOnboardingResponse {
1417
+ export interface ClientAccountOnboardingResponse {
1348
1418
  /**
1349
1419
  *
1350
1420
  * @type {string}
1351
- * @memberof ClientFullOnboardingResponse
1421
+ * @memberof ClientAccountOnboardingResponse
1352
1422
  */
1353
1423
  'clientAccountId': string;
1354
1424
  /**
1355
1425
  *
1356
1426
  * @type {string}
1357
- * @memberof ClientFullOnboardingResponse
1427
+ * @memberof ClientAccountOnboardingResponse
1358
1428
  */
1359
1429
  'stripeCustomerId': string;
1360
1430
  /**
1361
1431
  *
1362
1432
  * @type {string}
1363
- * @memberof ClientFullOnboardingResponse
1433
+ * @memberof ClientAccountOnboardingResponse
1364
1434
  */
1365
1435
  'stripeConnectedAccountId'?: string;
1366
1436
  /**
1367
1437
  *
1368
1438
  * @type {string}
1369
- * @memberof ClientFullOnboardingResponse
1439
+ * @memberof ClientAccountOnboardingResponse
1370
1440
  */
1371
- 'clientOnboardingLink'?: string;
1441
+ 'connectedAccountOnboardingLink'?: string;
1372
1442
  /**
1373
1443
  *
1374
- * @type {ClientFullOnboardingResponseClub}
1375
- * @memberof ClientFullOnboardingResponse
1444
+ * @type {string}
1445
+ * @memberof ClientAccountOnboardingResponse
1376
1446
  */
1377
- 'club': ClientFullOnboardingResponseClub;
1447
+ 'status': string;
1378
1448
  /**
1379
1449
  *
1380
1450
  * @type {string}
1381
- * @memberof ClientFullOnboardingResponse
1451
+ * @memberof ClientAccountOnboardingResponse
1382
1452
  */
1383
1453
  '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;
1384
1466
  }
1385
1467
  /**
1386
1468
  *
1387
1469
  * @export
1388
- * @interface ClientFullOnboardingResponseClub
1470
+ * @interface ClientAccountResponse
1389
1471
  */
1390
- export interface ClientFullOnboardingResponseClub {
1472
+ export interface ClientAccountResponse {
1391
1473
  /**
1392
1474
  *
1393
1475
  * @type {string}
1394
- * @memberof ClientFullOnboardingResponseClub
1476
+ * @memberof ClientAccountResponse
1395
1477
  */
1396
- 'clubOnboardingLink'?: string;
1478
+ 'id': string;
1397
1479
  /**
1398
1480
  *
1399
1481
  * @type {string}
1400
- * @memberof ClientFullOnboardingResponseClub
1482
+ * @memberof ClientAccountResponse
1401
1483
  */
1402
- 'stripeAccountId': string;
1484
+ 'email': string;
1403
1485
  /**
1404
1486
  *
1405
1487
  * @type {string}
1406
- * @memberof ClientFullOnboardingResponseClub
1488
+ * @memberof ClientAccountResponse
1407
1489
  */
1408
- 'clubId': string;
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
+ }
1552
+ /**
1553
+ *
1554
+ * @export
1555
+ * @interface ClientMeResponse
1556
+ */
1557
+ export interface ClientMeResponse {
1558
+ /**
1559
+ *
1560
+ * @type {string}
1561
+ * @memberof ClientMeResponse
1562
+ */
1563
+ 'id': string;
1564
+ /**
1565
+ *
1566
+ * @type {string}
1567
+ * @memberof ClientMeResponse
1568
+ */
1569
+ 'email': string;
1570
+ /**
1571
+ *
1572
+ * @type {string}
1573
+ * @memberof ClientMeResponse
1574
+ */
1575
+ 'firstName': string;
1576
+ /**
1577
+ *
1578
+ * @type {string}
1579
+ * @memberof ClientMeResponse
1580
+ */
1581
+ 'lastName': string;
1582
+ /**
1583
+ *
1584
+ * @type {boolean}
1585
+ * @memberof ClientMeResponse
1586
+ */
1587
+ 'isClient': boolean;
1409
1588
  }
1410
1589
  /**
1411
1590
  * Requête pour l\'onboarding d\'un club
@@ -1456,67 +1635,141 @@ export interface ClientOnboardingRequestBody {
1456
1635
  */
1457
1636
  'country'?: string;
1458
1637
  }
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
+ }
1459
1669
  /**
1460
1670
  *
1461
1671
  * @export
1462
- * @interface ClientRegister201Response
1672
+ * @interface ClientRegisterRequestBody
1463
1673
  */
1464
- export interface ClientRegister201Response {
1674
+ export interface ClientRegisterRequestBody {
1465
1675
  /**
1466
1676
  *
1467
1677
  * @type {string}
1468
- * @memberof ClientRegister201Response
1678
+ * @memberof ClientRegisterRequestBody
1469
1679
  */
1470
- 'message': string;
1680
+ 'email': string;
1471
1681
  /**
1472
1682
  *
1473
1683
  * @type {string}
1474
- * @memberof ClientRegister201Response
1684
+ * @memberof ClientRegisterRequestBody
1475
1685
  */
1476
- 'stripeCustomerId': string;
1686
+ 'password': string;
1477
1687
  /**
1478
1688
  *
1479
1689
  * @type {string}
1480
- * @memberof ClientRegister201Response
1690
+ * @memberof ClientRegisterRequestBody
1481
1691
  */
1482
- 'email': string;
1692
+ 'firstName': string;
1483
1693
  /**
1484
1694
  *
1485
1695
  * @type {string}
1486
- * @memberof ClientRegister201Response
1696
+ * @memberof ClientRegisterRequestBody
1487
1697
  */
1488
- 'userId': string;
1698
+ 'lastName': string;
1489
1699
  }
1490
1700
  /**
1491
1701
  *
1492
1702
  * @export
1493
- * @interface ClientRegisterRequest
1703
+ * @interface ClientRegisterResponse
1494
1704
  */
1495
- export interface ClientRegisterRequest {
1705
+ export interface ClientRegisterResponse {
1496
1706
  /**
1497
1707
  *
1498
1708
  * @type {string}
1499
- * @memberof ClientRegisterRequest
1709
+ * @memberof ClientRegisterResponse
1500
1710
  */
1501
- 'password': string;
1711
+ 'id': string;
1502
1712
  /**
1503
1713
  *
1504
1714
  * @type {string}
1505
- * @memberof ClientRegisterRequest
1715
+ * @memberof ClientRegisterResponse
1506
1716
  */
1507
- 'email': string;
1717
+ 'token': string;
1718
+ }
1719
+ /**
1720
+ *
1721
+ * @export
1722
+ * @interface ClientSubscriptionResponse
1723
+ */
1724
+ export interface ClientSubscriptionResponse {
1508
1725
  /**
1509
1726
  *
1510
1727
  * @type {string}
1511
- * @memberof ClientRegisterRequest
1728
+ * @memberof ClientSubscriptionResponse
1512
1729
  */
1513
- 'lastName': string;
1730
+ 'id': string;
1514
1731
  /**
1515
1732
  *
1516
1733
  * @type {string}
1517
- * @memberof ClientRegisterRequest
1734
+ * @memberof ClientSubscriptionResponse
1518
1735
  */
1519
- 'firstName': string;
1736
+ 'subscriptionType': string;
1737
+ /**
1738
+ *
1739
+ * @type {string}
1740
+ * @memberof ClientSubscriptionResponse
1741
+ */
1742
+ 'status': string;
1743
+ /**
1744
+ *
1745
+ * @type {string}
1746
+ * @memberof ClientSubscriptionResponse
1747
+ */
1748
+ 'startDate': string;
1749
+ /**
1750
+ *
1751
+ * @type {string}
1752
+ * @memberof ClientSubscriptionResponse
1753
+ */
1754
+ 'endDate'?: string;
1755
+ /**
1756
+ *
1757
+ * @type {number}
1758
+ * @memberof ClientSubscriptionResponse
1759
+ */
1760
+ 'priceAmountInCents': number;
1761
+ /**
1762
+ *
1763
+ * @type {string}
1764
+ * @memberof ClientSubscriptionResponse
1765
+ */
1766
+ 'currency': string;
1767
+ /**
1768
+ *
1769
+ * @type {string}
1770
+ * @memberof ClientSubscriptionResponse
1771
+ */
1772
+ 'billingCycle': string;
1520
1773
  }
1521
1774
  /**
1522
1775
  *
@@ -2075,6 +2328,12 @@ export interface ClubPlayerDetailResponse {
2075
2328
  * @memberof ClubPlayerDetailResponse
2076
2329
  */
2077
2330
  'birthDate': string | null;
2331
+ /**
2332
+ *
2333
+ * @type {number}
2334
+ * @memberof ClubPlayerDetailResponse
2335
+ */
2336
+ 'credits': number | null;
2078
2337
  }
2079
2338
  /**
2080
2339
  *
@@ -2817,7 +3076,19 @@ export interface ClubSummary {
2817
3076
  * @type {string}
2818
3077
  * @memberof ClubSummary
2819
3078
  */
2820
- 'address'?: string | null;
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>;
2821
3092
  /**
2822
3093
  *
2823
3094
  * @type {UserLocationSummary}
@@ -2830,6 +3101,12 @@ export interface ClubSummary {
2830
3101
  * @memberof ClubSummary
2831
3102
  */
2832
3103
  'visitCount'?: number;
3104
+ /**
3105
+ *
3106
+ * @type {Array<string>}
3107
+ * @memberof ClubSummary
3108
+ */
3109
+ 'tags'?: Array<string>;
2833
3110
  }
2834
3111
  /**
2835
3112
  *
@@ -3307,13 +3584,19 @@ export interface CreateEventRequest {
3307
3584
  * @type {string}
3308
3585
  * @memberof CreateEventRequest
3309
3586
  */
3310
- 'recurringType': CreateEventRequestRecurringTypeEnum;
3587
+ 'recurringType'?: CreateEventRequestRecurringTypeEnum | null;
3311
3588
  /**
3312
3589
  *
3313
3590
  * @type {string}
3314
3591
  * @memberof CreateEventRequest
3315
3592
  */
3316
3593
  'recurrenceEndDate'?: string;
3594
+ /**
3595
+ *
3596
+ * @type {number}
3597
+ * @memberof CreateEventRequest
3598
+ */
3599
+ 'occurrences'?: number;
3317
3600
  /**
3318
3601
  *
3319
3602
  * @type {string}
@@ -4237,6 +4520,25 @@ export interface GetSlotsByClubById200Response {
4237
4520
  */
4238
4521
  'slots': Array<any>;
4239
4522
  }
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
+ }
4240
4542
  /**
4241
4543
  *
4242
4544
  * @export
@@ -5325,8 +5627,6 @@ export interface PaymentByPlayerInfo {
5325
5627
  export const PaymentMethod = {
5326
5628
  Online: 'online',
5327
5629
  Onsite: 'onsite',
5328
- OnsiteCard: 'onsite_card',
5329
- OnsiteCash: 'onsite_cash',
5330
5630
  Free: 'free'
5331
5631
  } as const;
5332
5632
 
@@ -8881,6 +9181,19 @@ export interface UpdateSubscriptionPlanForClub200Response {
8881
9181
  */
8882
9182
  'price': any;
8883
9183
  }
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
+ }
8884
9197
  /**
8885
9198
  *
8886
9199
  * @export
@@ -10997,15 +11310,12 @@ export class BookingsUserApi extends BaseAPI {
10997
11310
  export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
10998
11311
  return {
10999
11312
  /**
11000
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11001
- * @param {ClientRegisterRequest} clientRegisterRequest
11313
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11002
11314
  * @param {*} [options] Override http request option.
11003
11315
  * @throws {RequiredError}
11004
11316
  */
11005
- clientRegister: async (clientRegisterRequest: ClientRegisterRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11006
- // verify required parameter 'clientRegisterRequest' is not null or undefined
11007
- assertParamExists('clientRegister', 'clientRegisterRequest', clientRegisterRequest)
11008
- const localVarPath = `/clients/register`;
11317
+ getManagedClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11318
+ const localVarPath = `/clients/managed-clubs`;
11009
11319
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11010
11320
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11011
11321
  let baseOptions;
@@ -11013,39 +11323,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11013
11323
  baseOptions = configuration.baseOptions;
11014
11324
  }
11015
11325
 
11016
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11017
- const localVarHeaderParameter = {} as any;
11018
- const localVarQueryParameter = {} as any;
11019
-
11020
-
11021
-
11022
- localVarHeaderParameter['Content-Type'] = 'application/json';
11023
-
11024
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11025
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11026
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11027
- localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration)
11028
-
11029
- return {
11030
- url: toPathString(localVarUrlObj),
11031
- options: localVarRequestOptions,
11032
- };
11033
- },
11034
- /**
11035
- * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11036
- * @param {*} [options] Override http request option.
11037
- * @throws {RequiredError}
11038
- */
11039
- getManagedClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11040
- const localVarPath = `/clients/managed-clubs`;
11041
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11042
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11043
- let baseOptions;
11044
- if (configuration) {
11045
- baseOptions = configuration.baseOptions;
11046
- }
11047
-
11048
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11326
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11049
11327
  const localVarHeaderParameter = {} as any;
11050
11328
  const localVarQueryParameter = {} as any;
11051
11329
 
@@ -11065,7 +11343,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11065
11343
  };
11066
11344
  },
11067
11345
  /**
11068
- * 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
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
11069
11347
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11070
11348
  * @param {*} [options] Override http request option.
11071
11349
  * @throws {RequiredError}
@@ -11085,10 +11363,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11085
11363
  const localVarHeaderParameter = {} as any;
11086
11364
  const localVarQueryParameter = {} as any;
11087
11365
 
11088
- // authentication clientAuth required
11089
- // http bearer authentication required
11090
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11091
-
11092
11366
 
11093
11367
 
11094
11368
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -11113,18 +11387,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
11113
11387
  export const ClientApiFp = function(configuration?: Configuration) {
11114
11388
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
11115
11389
  return {
11116
- /**
11117
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11118
- * @param {ClientRegisterRequest} clientRegisterRequest
11119
- * @param {*} [options] Override http request option.
11120
- * @throws {RequiredError}
11121
- */
11122
- async clientRegister(clientRegisterRequest: ClientRegisterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegister201Response>> {
11123
- const localVarAxiosArgs = await localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
11124
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11125
- const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
11126
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11127
- },
11128
11390
  /**
11129
11391
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11130
11392
  * @param {*} [options] Override http request option.
@@ -11137,12 +11399,12 @@ export const ClientApiFp = function(configuration?: Configuration) {
11137
11399
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11138
11400
  },
11139
11401
  /**
11140
- * 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
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
11141
11403
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
11142
11404
  * @param {*} [options] Override http request option.
11143
11405
  * @throws {RequiredError}
11144
11406
  */
11145
- async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientFullOnboardingResponse>> {
11407
+ async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientOnboardingResponse>> {
11146
11408
  const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
11147
11409
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11148
11410
  const localVarOperationServerBasePath = operationServerMap['ClientApi.onboardClub']?.[localVarOperationServerIndex]?.url;
@@ -11158,15 +11420,6 @@ export const ClientApiFp = function(configuration?: Configuration) {
11158
11420
  export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11159
11421
  const localVarFp = ClientApiFp(configuration)
11160
11422
  return {
11161
- /**
11162
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11163
- * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
11164
- * @param {*} [options] Override http request option.
11165
- * @throws {RequiredError}
11166
- */
11167
- clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
11168
- return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
11169
- },
11170
11423
  /**
11171
11424
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11172
11425
  * @param {*} [options] Override http request option.
@@ -11176,31 +11429,17 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
11176
11429
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
11177
11430
  },
11178
11431
  /**
11179
- * 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
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
11180
11433
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11181
11434
  * @param {*} [options] Override http request option.
11182
11435
  * @throws {RequiredError}
11183
11436
  */
11184
- onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientFullOnboardingResponse> {
11437
+ onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientOnboardingResponse> {
11185
11438
  return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
11186
11439
  },
11187
11440
  };
11188
11441
  };
11189
11442
 
11190
- /**
11191
- * Request parameters for clientRegister operation in ClientApi.
11192
- * @export
11193
- * @interface ClientApiClientRegisterRequest
11194
- */
11195
- export interface ClientApiClientRegisterRequest {
11196
- /**
11197
- *
11198
- * @type {ClientRegisterRequest}
11199
- * @memberof ClientApiClientRegister
11200
- */
11201
- readonly clientRegisterRequest: ClientRegisterRequest
11202
- }
11203
-
11204
11443
  /**
11205
11444
  * Request parameters for onboardClub operation in ClientApi.
11206
11445
  * @export
@@ -11222,17 +11461,6 @@ export interface ClientApiOnboardClubRequest {
11222
11461
  * @extends {BaseAPI}
11223
11462
  */
11224
11463
  export class ClientApi extends BaseAPI {
11225
- /**
11226
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
11227
- * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
11228
- * @param {*} [options] Override http request option.
11229
- * @throws {RequiredError}
11230
- * @memberof ClientApi
11231
- */
11232
- public clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig) {
11233
- return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
11234
- }
11235
-
11236
11464
  /**
11237
11465
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
11238
11466
  * @param {*} [options] Override http request option.
@@ -11244,7 +11472,7 @@ export class ClientApi extends BaseAPI {
11244
11472
  }
11245
11473
 
11246
11474
  /**
11247
- * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
11475
+ * 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
11248
11476
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
11249
11477
  * @param {*} [options] Override http request option.
11250
11478
  * @throws {RequiredError}
@@ -11258,18 +11486,18 @@ export class ClientApi extends BaseAPI {
11258
11486
 
11259
11487
 
11260
11488
  /**
11261
- * ClubAnalyticsApi - axios parameter creator
11489
+ * ClientAccountsApi - axios parameter creator
11262
11490
  * @export
11263
11491
  */
11264
- export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
11492
+ export const ClientAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
11265
11493
  return {
11266
11494
  /**
11267
- * Récupère les clubs les plus aimés
11495
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
11268
11496
  * @param {*} [options] Override http request option.
11269
11497
  * @throws {RequiredError}
11270
11498
  */
11271
- getMostLikedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11272
- const localVarPath = `/api/club-analytics/most-liked-clubs`;
11499
+ clientAuthMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11500
+ const localVarPath = `/client-accounts/client-auth/me`;
11273
11501
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11274
11502
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11275
11503
  let baseOptions;
@@ -11281,7 +11509,7 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
11281
11509
  const localVarHeaderParameter = {} as any;
11282
11510
  const localVarQueryParameter = {} as any;
11283
11511
 
11284
- // authentication bearerAuth required
11512
+ // authentication clientAuth required
11285
11513
  // http bearer authentication required
11286
11514
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11287
11515
 
@@ -11297,12 +11525,16 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
11297
11525
  };
11298
11526
  },
11299
11527
  /**
11300
- * Récupère les clubs populaires
11528
+ * Récupère le compte client par son ID
11529
+ * @param {string} accountId L\&#39;ID du compte client
11301
11530
  * @param {*} [options] Override http request option.
11302
11531
  * @throws {RequiredError}
11303
11532
  */
11304
- getPopularClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11305
- const localVarPath = `/api/club-analytics/popular-clubs`;
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)));
11306
11538
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11307
11539
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11308
11540
  let baseOptions;
@@ -11329,114 +11561,13 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
11329
11561
  options: localVarRequestOptions,
11330
11562
  };
11331
11563
  },
11332
- }
11333
- };
11334
-
11335
- /**
11336
- * ClubAnalyticsApi - functional programming interface
11337
- * @export
11338
- */
11339
- export const ClubAnalyticsApiFp = function(configuration?: Configuration) {
11340
- const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration)
11341
- return {
11342
- /**
11343
- * Récupère les clubs les plus aimés
11344
- * @param {*} [options] Override http request option.
11345
- * @throws {RequiredError}
11346
- */
11347
- async getMostLikedClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
11348
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMostLikedClub(options);
11349
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11350
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getMostLikedClub']?.[localVarOperationServerIndex]?.url;
11351
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11352
- },
11353
- /**
11354
- * Récupère les clubs populaires
11355
- * @param {*} [options] Override http request option.
11356
- * @throws {RequiredError}
11357
- */
11358
- async getPopularClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
11359
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPopularClubs(options);
11360
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11361
- const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getPopularClubs']?.[localVarOperationServerIndex]?.url;
11362
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11363
- },
11364
- }
11365
- };
11366
-
11367
- /**
11368
- * ClubAnalyticsApi - factory interface
11369
- * @export
11370
- */
11371
- export const ClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11372
- const localVarFp = ClubAnalyticsApiFp(configuration)
11373
- return {
11374
- /**
11375
- * Récupère les clubs les plus aimés
11376
- * @param {*} [options] Override http request option.
11377
- * @throws {RequiredError}
11378
- */
11379
- getMostLikedClub(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
11380
- return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
11381
- },
11382
- /**
11383
- * Récupère les clubs populaires
11384
- * @param {*} [options] Override http request option.
11385
- * @throws {RequiredError}
11386
- */
11387
- getPopularClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
11388
- return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
11389
- },
11390
- };
11391
- };
11392
-
11393
- /**
11394
- * ClubAnalyticsApi - object-oriented interface
11395
- * @export
11396
- * @class ClubAnalyticsApi
11397
- * @extends {BaseAPI}
11398
- */
11399
- export class ClubAnalyticsApi extends BaseAPI {
11400
- /**
11401
- * Récupère les clubs les plus aimés
11402
- * @param {*} [options] Override http request option.
11403
- * @throws {RequiredError}
11404
- * @memberof ClubAnalyticsApi
11405
- */
11406
- public getMostLikedClub(options?: RawAxiosRequestConfig) {
11407
- return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
11408
- }
11409
-
11410
- /**
11411
- * Récupère les clubs populaires
11412
- * @param {*} [options] Override http request option.
11413
- * @throws {RequiredError}
11414
- * @memberof ClubAnalyticsApi
11415
- */
11416
- public getPopularClubs(options?: RawAxiosRequestConfig) {
11417
- return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
11418
- }
11419
- }
11420
-
11421
-
11422
-
11423
- /**
11424
- * ClubAnalyticsStaffApi - axios parameter creator
11425
- * @export
11426
- */
11427
- export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
11428
- return {
11429
11564
  /**
11430
- * Récupère les analytics par sport
11431
- * @param {string} sportId
11565
+ * Récupère l\'abonnement actif du compte client authentifié
11432
11566
  * @param {*} [options] Override http request option.
11433
11567
  * @throws {RequiredError}
11434
11568
  */
11435
- getAnalyticsBySport: async (sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11436
- // verify required parameter 'sportId' is not null or undefined
11437
- assertParamExists('getAnalyticsBySport', 'sportId', sportId)
11438
- const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
11439
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
11569
+ getMyActiveSubscription: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11570
+ const localVarPath = `/client-accounts/me/subscription`;
11440
11571
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11441
11572
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11442
11573
  let baseOptions;
@@ -11464,18 +11595,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11464
11595
  };
11465
11596
  },
11466
11597
  /**
11467
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
11468
- * @param {string} playerId
11469
- * @param {number} [page]
11470
- * @param {number} [pageSize]
11598
+ * Récupère le compte client de l\'utilisateur authentifié
11471
11599
  * @param {*} [options] Override http request option.
11472
11600
  * @throws {RequiredError}
11473
11601
  */
11474
- getClubPlayerBookingsById: async (playerId: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11475
- // verify required parameter 'playerId' is not null or undefined
11476
- assertParamExists('getClubPlayerBookingsById', 'playerId', playerId)
11477
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
11478
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
11602
+ getMyClientAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11603
+ const localVarPath = `/client-accounts/me`;
11479
11604
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11480
11605
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11481
11606
  let baseOptions;
@@ -11491,14 +11616,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11491
11616
  // http bearer authentication required
11492
11617
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11493
11618
 
11494
- if (page !== undefined) {
11495
- localVarQueryParameter['page'] = page;
11496
- }
11497
-
11498
- if (pageSize !== undefined) {
11499
- localVarQueryParameter['pageSize'] = pageSize;
11500
- }
11501
-
11502
11619
 
11503
11620
 
11504
11621
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -11511,16 +11628,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11511
11628
  };
11512
11629
  },
11513
11630
  /**
11514
- * Récupère les informations détaillées d\'un joueur par son ID
11515
- * @param {string} playerId
11631
+ * Récupère l\'historique des abonnements du compte client authentifié
11516
11632
  * @param {*} [options] Override http request option.
11517
11633
  * @throws {RequiredError}
11518
11634
  */
11519
- getClubPlayerById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11520
- // verify required parameter 'playerId' is not null or undefined
11521
- assertParamExists('getClubPlayerById', 'playerId', playerId)
11522
- const localVarPath = `/api/club-analytics/players/{playerId}`
11523
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
11635
+ getSubscriptionsHistory: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11636
+ const localVarPath = `/client-accounts/me/subscriptions-history`;
11524
11637
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11525
11638
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11526
11639
  let baseOptions;
@@ -11548,16 +11661,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11548
11661
  };
11549
11662
  },
11550
11663
  /**
11551
- * Récupère les statistiques d\'un joueur pour le staff
11552
- * @param {string} playerId
11664
+ * Liste les prix Stripe disponibles pour les abonnements client
11553
11665
  * @param {*} [options] Override http request option.
11554
11666
  * @throws {RequiredError}
11555
11667
  */
11556
- getClubPlayerStatisticsById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11557
- // verify required parameter 'playerId' is not null or undefined
11558
- assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId)
11559
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
11560
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
11668
+ listAvailablePrices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11669
+ const localVarPath = `/client-accounts/plans/available-prices`;
11561
11670
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11562
11671
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11563
11672
  let baseOptions;
@@ -11585,12 +11694,15 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11585
11694
  };
11586
11695
  },
11587
11696
  /**
11588
- * Récupère la liste des joueurs du club
11697
+ * Crée un nouveau compte client avec onboarding Stripe
11698
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
11589
11699
  * @param {*} [options] Override http request option.
11590
11700
  * @throws {RequiredError}
11591
11701
  */
11592
- getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11593
- const localVarPath = `/api/club-analytics/players`;
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`;
11594
11706
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11595
11707
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11596
11708
  let baseOptions;
@@ -11598,19 +11710,22 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11598
11710
  baseOptions = configuration.baseOptions;
11599
11711
  }
11600
11712
 
11601
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11713
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11602
11714
  const localVarHeaderParameter = {} as any;
11603
11715
  const localVarQueryParameter = {} as any;
11604
11716
 
11605
- // authentication bearerAuth required
11717
+ // authentication clientAuth required
11606
11718
  // http bearer authentication required
11607
11719
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11608
11720
 
11609
11721
 
11610
11722
 
11723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11724
+
11611
11725
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11612
11726
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11613
11727
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11728
+ localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration)
11614
11729
 
11615
11730
  return {
11616
11731
  url: toPathString(localVarUrlObj),
@@ -11618,15 +11733,15 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11618
11733
  };
11619
11734
  },
11620
11735
  /**
11621
- * Récupère le chiffre d\'affaires quotidien
11622
- * @param {string} date
11736
+ * Route d\'inscription d\'un utilisateur client (publique)
11737
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
11623
11738
  * @param {*} [options] Override http request option.
11624
11739
  * @throws {RequiredError}
11625
11740
  */
11626
- getDailyTurnOver: async (date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11627
- // verify required parameter 'date' is not null or undefined
11628
- assertParamExists('getDailyTurnOver', 'date', date)
11629
- const localVarPath = `/api/club-analytics/daily-turnover`;
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`;
11630
11745
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11631
11746
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11632
11747
  let baseOptions;
@@ -11634,49 +11749,760 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
11634
11749
  baseOptions = configuration.baseOptions;
11635
11750
  }
11636
11751
 
11637
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11752
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11638
11753
  const localVarHeaderParameter = {} as any;
11639
11754
  const localVarQueryParameter = {} as any;
11640
11755
 
11641
- // authentication bearerAuth required
11642
- // http bearer authentication required
11643
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11644
-
11645
- if (date !== undefined) {
11646
- localVarQueryParameter['date'] = date;
11647
- }
11648
-
11649
11756
 
11650
11757
 
11758
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11759
+
11651
11760
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11652
11761
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11653
11762
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11763
+ localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration)
11654
11764
 
11655
11765
  return {
11656
11766
  url: toPathString(localVarUrlObj),
11657
11767
  options: localVarRequestOptions,
11658
11768
  };
11659
11769
  },
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 {
11660
11780
  /**
11661
- * Récupère les pourcentages par genre
11781
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
11662
11782
  * @param {*} [options] Override http request option.
11663
11783
  * @throws {RequiredError}
11664
11784
  */
11665
- getGenderPercentage: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11666
- const localVarPath = `/api/club-analytics/gender-percentage`;
11667
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11668
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11669
- let baseOptions;
11670
- if (configuration) {
11671
- baseOptions = configuration.baseOptions;
11672
- }
11673
-
11674
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11675
- const localVarHeaderParameter = {} as any;
11676
- const localVarQueryParameter = {} as any;
11677
-
11678
- // authentication bearerAuth required
11679
- // http bearer authentication required
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
+ /**
11792
+ * Récupère le compte client par son ID
11793
+ * @param {string} accountId L\&#39;ID du compte client
11794
+ * @param {*} [options] Override http request option.
11795
+ * @throws {RequiredError}
11796
+ */
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);
11802
+ },
11803
+ /**
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
11680
12506
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11681
12507
 
11682
12508
 
@@ -16964,6 +17790,49 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
16964
17790
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16965
17791
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16966
17792
 
17793
+ return {
17794
+ url: toPathString(localVarUrlObj),
17795
+ options: localVarRequestOptions,
17796
+ };
17797
+ },
17798
+ /**
17799
+ *
17800
+ * @param {string} id
17801
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
17802
+ * @param {*} [options] Override http request option.
17803
+ * @throws {RequiredError}
17804
+ */
17805
+ updateUserCreditsStaff: async (id: string, updateUserCreditsRequest: UpdateUserCreditsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17806
+ // 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}`
17811
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17812
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17813
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17814
+ let baseOptions;
17815
+ if (configuration) {
17816
+ baseOptions = configuration.baseOptions;
17817
+ }
17818
+
17819
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17820
+ const localVarHeaderParameter = {} as any;
17821
+ const localVarQueryParameter = {} as any;
17822
+
17823
+ // authentication bearerAuth required
17824
+ // http bearer authentication required
17825
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17826
+
17827
+
17828
+
17829
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17830
+
17831
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17832
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17833
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17834
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration)
17835
+
16967
17836
  return {
16968
17837
  url: toPathString(localVarUrlObj),
16969
17838
  options: localVarRequestOptions,
@@ -17068,6 +17937,19 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
17068
17937
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getUserProfileStaff']?.[localVarOperationServerIndex]?.url;
17069
17938
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17070
17939
  },
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
+ },
17071
17953
  }
17072
17954
  };
17073
17955
 
@@ -17143,6 +18025,15 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
17143
18025
  getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffUserProfileResponse> {
17144
18026
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
17145
18027
  },
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
+ },
17146
18037
  };
17147
18038
  };
17148
18039
 
@@ -17160,6 +18051,27 @@ export interface ClubsStaffApiGetUserProfileStaffRequest {
17160
18051
  readonly id: string
17161
18052
  }
17162
18053
 
18054
+ /**
18055
+ * Request parameters for updateUserCreditsStaff operation in ClubsStaffApi.
18056
+ * @export
18057
+ * @interface ClubsStaffApiUpdateUserCreditsStaffRequest
18058
+ */
18059
+ export interface ClubsStaffApiUpdateUserCreditsStaffRequest {
18060
+ /**
18061
+ *
18062
+ * @type {string}
18063
+ * @memberof ClubsStaffApiUpdateUserCreditsStaff
18064
+ */
18065
+ readonly id: string
18066
+
18067
+ /**
18068
+ *
18069
+ * @type {UpdateUserCreditsRequest}
18070
+ * @memberof ClubsStaffApiUpdateUserCreditsStaff
18071
+ */
18072
+ readonly updateUserCreditsRequest: UpdateUserCreditsRequest
18073
+ }
18074
+
17163
18075
  /**
17164
18076
  * ClubsStaffApi - object-oriented interface
17165
18077
  * @export
@@ -17247,6 +18159,17 @@ export class ClubsStaffApi extends BaseAPI {
17247
18159
  public getUserProfileStaff(requestParameters: ClubsStaffApiGetUserProfileStaffRequest, options?: RawAxiosRequestConfig) {
17248
18160
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
17249
18161
  }
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
+ }
17250
18173
  }
17251
18174
 
17252
18175
 
@@ -18261,33 +19184,187 @@ export class EventsManagerApi extends BaseAPI {
18261
19184
  return EventsManagerApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
18262
19185
  }
18263
19186
 
18264
- /**
18265
- * Update an event (manager)
18266
- * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
18267
- * @param {*} [options] Override http request option.
18268
- * @throws {RequiredError}
18269
- * @memberof EventsManagerApi
18270
- */
18271
- public updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig) {
18272
- return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
18273
- }
18274
- }
19187
+ /**
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;
19282
+
19283
+ // authentication bearerAuth required
19284
+ // http bearer authentication required
19285
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19286
+
19287
+
19288
+
19289
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19290
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19291
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19292
+
19293
+ return {
19294
+ url: toPathString(localVarUrlObj),
19295
+ options: localVarRequestOptions,
19296
+ };
19297
+ },
19298
+ /**
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]
19305
+ * @param {*} [options] Override http request option.
19306
+ * @throws {RequiredError}
19307
+ */
19308
+ getMonthlyEvents: async (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19309
+ const localVarPath = `/api/events/calendar/monthly`;
19310
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19311
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19312
+ let baseOptions;
19313
+ if (configuration) {
19314
+ baseOptions = configuration.baseOptions;
19315
+ }
19316
+
19317
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19318
+ const localVarHeaderParameter = {} as any;
19319
+ const localVarQueryParameter = {} as any;
19320
+
19321
+ // authentication bearerAuth required
19322
+ // http bearer authentication required
19323
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19324
+
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
+ }
18275
19344
 
18276
19345
 
19346
+
19347
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19348
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19349
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18277
19350
 
18278
- /**
18279
- * EventsStaffApi - axios parameter creator
18280
- * @export
18281
- */
18282
- export const EventsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
18283
- return {
19351
+ return {
19352
+ url: toPathString(localVarUrlObj),
19353
+ options: localVarRequestOptions,
19354
+ };
19355
+ },
18284
19356
  /**
18285
- * Get all events for a club (staff only)
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]
18286
19363
  * @param {*} [options] Override http request option.
18287
19364
  * @throws {RequiredError}
18288
19365
  */
18289
- getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18290
- const localVarPath = `/api/events/staff/getEvents`;
19366
+ getWeeklyEvents: async (clubId?: string, date?: string, visibilityType?: GetWeeklyEventsVisibilityTypeEnum, type?: GetWeeklyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19367
+ const localVarPath = `/api/events/calendar/weekly`;
18291
19368
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18292
19369
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18293
19370
  let baseOptions;
@@ -18303,6 +19380,26 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18303
19380
  // http bearer authentication required
18304
19381
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
18305
19382
 
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
+
18306
19403
 
18307
19404
 
18308
19405
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18324,6 +19421,22 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
18324
19421
  export const EventsStaffApiFp = function(configuration?: Configuration) {
18325
19422
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration)
18326
19423
  return {
19424
+ /**
19425
+ * Get events for the day view (entire week)
19426
+ * @param {string} [clubId]
19427
+ * @param {string} [date]
19428
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
19429
+ * @param {GetDailyEventsTypeEnum} [type]
19430
+ * @param {string} [sportId]
19431
+ * @param {*} [options] Override http request option.
19432
+ * @throws {RequiredError}
19433
+ */
19434
+ 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);
19436
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19437
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
19438
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19439
+ },
18327
19440
  /**
18328
19441
  * Get all events for a club (staff only)
18329
19442
  * @param {*} [options] Override http request option.
@@ -18335,6 +19448,38 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
18335
19448
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
18336
19449
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18337
19450
  },
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
+ },
18338
19483
  }
18339
19484
  };
18340
19485
 
@@ -18345,6 +19490,15 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
18345
19490
  export const EventsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18346
19491
  const localVarFp = EventsStaffApiFp(configuration)
18347
19492
  return {
19493
+ /**
19494
+ * Get events for the day view (entire week)
19495
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
19496
+ * @param {*} [options] Override http request option.
19497
+ * @throws {RequiredError}
19498
+ */
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));
19501
+ },
18348
19502
  /**
18349
19503
  * Get all events for a club (staff only)
18350
19504
  * @param {*} [options] Override http request option.
@@ -18353,9 +19507,153 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
18353
19507
  getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
18354
19508
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
18355
19509
  },
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
+ },
18356
19528
  };
18357
19529
  };
18358
19530
 
19531
+ /**
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.
19617
+ * @export
19618
+ * @interface EventsStaffApiGetWeeklyEventsRequest
19619
+ */
19620
+ export interface EventsStaffApiGetWeeklyEventsRequest {
19621
+ /**
19622
+ *
19623
+ * @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
19646
+ */
19647
+ readonly type?: GetWeeklyEventsTypeEnum
19648
+
19649
+ /**
19650
+ *
19651
+ * @type {string}
19652
+ * @memberof EventsStaffApiGetWeeklyEvents
19653
+ */
19654
+ readonly sportId?: string
19655
+ }
19656
+
18359
19657
  /**
18360
19658
  * EventsStaffApi - object-oriented interface
18361
19659
  * @export
@@ -18363,6 +19661,17 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
18363
19661
  * @extends {BaseAPI}
18364
19662
  */
18365
19663
  export class EventsStaffApi extends BaseAPI {
19664
+ /**
19665
+ * Get events for the day view (entire week)
19666
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
19667
+ * @param {*} [options] Override http request option.
19668
+ * @throws {RequiredError}
19669
+ * @memberof EventsStaffApi
19670
+ */
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));
19673
+ }
19674
+
18366
19675
  /**
18367
19676
  * Get all events for a club (staff only)
18368
19677
  * @param {*} [options] Override http request option.
@@ -18372,8 +19681,81 @@ export class EventsStaffApi extends BaseAPI {
18372
19681
  public getEventsByClub(options?: RawAxiosRequestConfig) {
18373
19682
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
18374
19683
  }
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
+ }
18375
19706
  }
18376
19707
 
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];
18377
19759
 
18378
19760
 
18379
19761
  /**