@tennac-booking/sdk 1.0.30 → 1.0.32
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.
- package/.openapi-generator/FILES +4 -13
- package/README.md +11 -30
- package/api.ts +518 -2354
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +327 -1392
- package/dist/api.js +294 -1573
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +327 -1392
- package/dist/esm/api.js +291 -1554
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ClubMember.md +3 -13
- package/docs/{DeleteSlotsResponse.md → CourtDeleteResponse.md} +3 -3
- package/docs/{ClubsResponse.md → GetClubPlayers200Response.md} +5 -5
- package/docs/LoginResponse.md +2 -0
- package/docs/ManagerClubCourtsApi.md +112 -0
- package/docs/ManagerSportsApi.md +0 -55
- package/docs/StaffClubAnalyticsApi.md +45 -0
- package/docs/StaffClubsApi.md +52 -13
- package/docs/UpdateCourtRequest.md +38 -0
- package/docs/UserProfileApi.md +1 -1
- package/docs/UserStaffResponse.md +30 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AdminClubAnalyticsApi.md +0 -249
- package/docs/AdminClubSlotsApi.md +0 -182
- package/docs/AdminClubSubscriptionsApi.md +0 -394
- package/docs/AdminClubsApi.md +0 -170
- package/docs/CreateClubRequest.md +0 -40
- package/docs/CreateClubSettingsRequest.md +0 -28
- package/docs/DeleteClub200Response.md +0 -20
- package/docs/DeleteClubSettingsRequest.md +0 -20
- package/docs/GenerateSlotsResponse.md +0 -20
- package/docs/GetClubSettingsRequest.md +0 -20
- package/docs/UsersResponse.md +0 -22
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.32
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1052,53 +1052,32 @@ export interface ClubListResponse {
|
|
|
1052
1052
|
export interface ClubMember {
|
|
1053
1053
|
/**
|
|
1054
1054
|
*
|
|
1055
|
-
* @type {
|
|
1056
|
-
* @memberof ClubMember
|
|
1057
|
-
*/
|
|
1058
|
-
'id'?: string;
|
|
1059
|
-
/**
|
|
1060
|
-
*
|
|
1061
|
-
* @type {string}
|
|
1062
|
-
* @memberof ClubMember
|
|
1063
|
-
*/
|
|
1064
|
-
'userId'?: string;
|
|
1065
|
-
/**
|
|
1066
|
-
*
|
|
1067
|
-
* @type {string}
|
|
1068
|
-
* @memberof ClubMember
|
|
1069
|
-
*/
|
|
1070
|
-
'clubId'?: string;
|
|
1071
|
-
/**
|
|
1072
|
-
*
|
|
1073
|
-
* @type {string}
|
|
1055
|
+
* @type {UserResponse}
|
|
1074
1056
|
* @memberof ClubMember
|
|
1075
1057
|
*/
|
|
1076
|
-
'
|
|
1058
|
+
'user'?: UserResponse;
|
|
1077
1059
|
/**
|
|
1078
1060
|
*
|
|
1079
1061
|
* @type {string}
|
|
1080
1062
|
* @memberof ClubMember
|
|
1081
1063
|
*/
|
|
1082
|
-
'
|
|
1083
|
-
/**
|
|
1084
|
-
*
|
|
1085
|
-
* @type {boolean}
|
|
1086
|
-
* @memberof ClubMember
|
|
1087
|
-
*/
|
|
1088
|
-
'isActive'?: boolean;
|
|
1089
|
-
/**
|
|
1090
|
-
*
|
|
1091
|
-
* @type {UserResponse}
|
|
1092
|
-
* @memberof ClubMember
|
|
1093
|
-
*/
|
|
1094
|
-
'user'?: UserResponse;
|
|
1064
|
+
'role'?: ClubMemberRoleEnum;
|
|
1095
1065
|
/**
|
|
1096
1066
|
*
|
|
1097
|
-
* @type {
|
|
1067
|
+
* @type {Array<string>}
|
|
1098
1068
|
* @memberof ClubMember
|
|
1099
1069
|
*/
|
|
1100
|
-
'
|
|
1070
|
+
'rights'?: Array<string>;
|
|
1101
1071
|
}
|
|
1072
|
+
|
|
1073
|
+
export const ClubMemberRoleEnum = {
|
|
1074
|
+
Admin: 'admin',
|
|
1075
|
+
Manager: 'manager',
|
|
1076
|
+
Staff: 'staff'
|
|
1077
|
+
} as const;
|
|
1078
|
+
|
|
1079
|
+
export type ClubMemberRoleEnum = typeof ClubMemberRoleEnum[keyof typeof ClubMemberRoleEnum];
|
|
1080
|
+
|
|
1102
1081
|
/**
|
|
1103
1082
|
*
|
|
1104
1083
|
* @export
|
|
@@ -1387,25 +1366,6 @@ export interface ClubSettings {
|
|
|
1387
1366
|
*/
|
|
1388
1367
|
'updatedAt'?: string;
|
|
1389
1368
|
}
|
|
1390
|
-
/**
|
|
1391
|
-
*
|
|
1392
|
-
* @export
|
|
1393
|
-
* @interface ClubsResponse
|
|
1394
|
-
*/
|
|
1395
|
-
export interface ClubsResponse {
|
|
1396
|
-
/**
|
|
1397
|
-
*
|
|
1398
|
-
* @type {Array<ClubResponse>}
|
|
1399
|
-
* @memberof ClubsResponse
|
|
1400
|
-
*/
|
|
1401
|
-
'clubs'?: Array<ClubResponse>;
|
|
1402
|
-
/**
|
|
1403
|
-
*
|
|
1404
|
-
* @type {number}
|
|
1405
|
-
* @memberof ClubsResponse
|
|
1406
|
-
*/
|
|
1407
|
-
'total'?: number;
|
|
1408
|
-
}
|
|
1409
1369
|
/**
|
|
1410
1370
|
*
|
|
1411
1371
|
* @export
|
|
@@ -1489,6 +1449,19 @@ export interface Court {
|
|
|
1489
1449
|
}
|
|
1490
1450
|
|
|
1491
1451
|
|
|
1452
|
+
/**
|
|
1453
|
+
*
|
|
1454
|
+
* @export
|
|
1455
|
+
* @interface CourtDeleteResponse
|
|
1456
|
+
*/
|
|
1457
|
+
export interface CourtDeleteResponse {
|
|
1458
|
+
/**
|
|
1459
|
+
*
|
|
1460
|
+
* @type {string}
|
|
1461
|
+
* @memberof CourtDeleteResponse
|
|
1462
|
+
*/
|
|
1463
|
+
'message'?: string;
|
|
1464
|
+
}
|
|
1492
1465
|
/**
|
|
1493
1466
|
*
|
|
1494
1467
|
* @export
|
|
@@ -1668,79 +1641,6 @@ export interface CreateBookingRequest {
|
|
|
1668
1641
|
}
|
|
1669
1642
|
|
|
1670
1643
|
|
|
1671
|
-
/**
|
|
1672
|
-
*
|
|
1673
|
-
* @export
|
|
1674
|
-
* @interface CreateClubRequest
|
|
1675
|
-
*/
|
|
1676
|
-
export interface CreateClubRequest {
|
|
1677
|
-
/**
|
|
1678
|
-
* Nom du club
|
|
1679
|
-
* @type {string}
|
|
1680
|
-
* @memberof CreateClubRequest
|
|
1681
|
-
*/
|
|
1682
|
-
'name': string;
|
|
1683
|
-
/**
|
|
1684
|
-
* Adresse du club
|
|
1685
|
-
* @type {string}
|
|
1686
|
-
* @memberof CreateClubRequest
|
|
1687
|
-
*/
|
|
1688
|
-
'address': string;
|
|
1689
|
-
/**
|
|
1690
|
-
* Ville du club
|
|
1691
|
-
* @type {string}
|
|
1692
|
-
* @memberof CreateClubRequest
|
|
1693
|
-
*/
|
|
1694
|
-
'city': string;
|
|
1695
|
-
/**
|
|
1696
|
-
* Code postal du club
|
|
1697
|
-
* @type {string}
|
|
1698
|
-
* @memberof CreateClubRequest
|
|
1699
|
-
*/
|
|
1700
|
-
'zipCode': string;
|
|
1701
|
-
/**
|
|
1702
|
-
* Pays du club
|
|
1703
|
-
* @type {string}
|
|
1704
|
-
* @memberof CreateClubRequest
|
|
1705
|
-
*/
|
|
1706
|
-
'country': string;
|
|
1707
|
-
/**
|
|
1708
|
-
* Téléphone du club
|
|
1709
|
-
* @type {string}
|
|
1710
|
-
* @memberof CreateClubRequest
|
|
1711
|
-
*/
|
|
1712
|
-
'phone': string;
|
|
1713
|
-
/**
|
|
1714
|
-
* Email du club
|
|
1715
|
-
* @type {string}
|
|
1716
|
-
* @memberof CreateClubRequest
|
|
1717
|
-
*/
|
|
1718
|
-
'email': string;
|
|
1719
|
-
/**
|
|
1720
|
-
* Site web du club
|
|
1721
|
-
* @type {string}
|
|
1722
|
-
* @memberof CreateClubRequest
|
|
1723
|
-
*/
|
|
1724
|
-
'website'?: string;
|
|
1725
|
-
/**
|
|
1726
|
-
* Description du club
|
|
1727
|
-
* @type {string}
|
|
1728
|
-
* @memberof CreateClubRequest
|
|
1729
|
-
*/
|
|
1730
|
-
'description'?: string;
|
|
1731
|
-
/**
|
|
1732
|
-
* Logo du club
|
|
1733
|
-
* @type {string}
|
|
1734
|
-
* @memberof CreateClubRequest
|
|
1735
|
-
*/
|
|
1736
|
-
'logo'?: string;
|
|
1737
|
-
/**
|
|
1738
|
-
* Statut actif du club
|
|
1739
|
-
* @type {boolean}
|
|
1740
|
-
* @memberof CreateClubRequest
|
|
1741
|
-
*/
|
|
1742
|
-
'isActive'?: boolean;
|
|
1743
|
-
}
|
|
1744
1644
|
/**
|
|
1745
1645
|
*
|
|
1746
1646
|
* @export
|
|
@@ -1766,43 +1666,6 @@ export interface CreateClubRoleRequestBody {
|
|
|
1766
1666
|
*/
|
|
1767
1667
|
'permissions'?: Array<string>;
|
|
1768
1668
|
}
|
|
1769
|
-
/**
|
|
1770
|
-
*
|
|
1771
|
-
* @export
|
|
1772
|
-
* @interface CreateClubSettingsRequest
|
|
1773
|
-
*/
|
|
1774
|
-
export interface CreateClubSettingsRequest {
|
|
1775
|
-
/**
|
|
1776
|
-
*
|
|
1777
|
-
* @type {string}
|
|
1778
|
-
* @memberof CreateClubSettingsRequest
|
|
1779
|
-
*/
|
|
1780
|
-
'clubId': string;
|
|
1781
|
-
/**
|
|
1782
|
-
*
|
|
1783
|
-
* @type {string}
|
|
1784
|
-
* @memberof CreateClubSettingsRequest
|
|
1785
|
-
*/
|
|
1786
|
-
'reservationStartTime'?: string;
|
|
1787
|
-
/**
|
|
1788
|
-
*
|
|
1789
|
-
* @type {string}
|
|
1790
|
-
* @memberof CreateClubSettingsRequest
|
|
1791
|
-
*/
|
|
1792
|
-
'reservationEndTime'?: string;
|
|
1793
|
-
/**
|
|
1794
|
-
*
|
|
1795
|
-
* @type {number}
|
|
1796
|
-
* @memberof CreateClubSettingsRequest
|
|
1797
|
-
*/
|
|
1798
|
-
'maxSimultaneousReservations'?: number;
|
|
1799
|
-
/**
|
|
1800
|
-
*
|
|
1801
|
-
* @type {boolean}
|
|
1802
|
-
* @memberof CreateClubSettingsRequest
|
|
1803
|
-
*/
|
|
1804
|
-
'allowWeekendReservations'?: boolean;
|
|
1805
|
-
}
|
|
1806
1669
|
/**
|
|
1807
1670
|
*
|
|
1808
1671
|
* @export
|
|
@@ -2031,19 +1894,6 @@ export interface DailyTurnoverResponse {
|
|
|
2031
1894
|
*/
|
|
2032
1895
|
'invoiceCount'?: number;
|
|
2033
1896
|
}
|
|
2034
|
-
/**
|
|
2035
|
-
*
|
|
2036
|
-
* @export
|
|
2037
|
-
* @interface DeleteClub200Response
|
|
2038
|
-
*/
|
|
2039
|
-
export interface DeleteClub200Response {
|
|
2040
|
-
/**
|
|
2041
|
-
*
|
|
2042
|
-
* @type {string}
|
|
2043
|
-
* @memberof DeleteClub200Response
|
|
2044
|
-
*/
|
|
2045
|
-
'message'?: string;
|
|
2046
|
-
}
|
|
2047
1897
|
/**
|
|
2048
1898
|
*
|
|
2049
1899
|
* @export
|
|
@@ -2057,19 +1907,6 @@ export interface DeleteClubRole200Response {
|
|
|
2057
1907
|
*/
|
|
2058
1908
|
'message'?: string;
|
|
2059
1909
|
}
|
|
2060
|
-
/**
|
|
2061
|
-
*
|
|
2062
|
-
* @export
|
|
2063
|
-
* @interface DeleteClubSettingsRequest
|
|
2064
|
-
*/
|
|
2065
|
-
export interface DeleteClubSettingsRequest {
|
|
2066
|
-
/**
|
|
2067
|
-
*
|
|
2068
|
-
* @type {string}
|
|
2069
|
-
* @memberof DeleteClubSettingsRequest
|
|
2070
|
-
*/
|
|
2071
|
-
'clubId': string;
|
|
2072
|
-
}
|
|
2073
1910
|
/**
|
|
2074
1911
|
*
|
|
2075
1912
|
* @export
|
|
@@ -2096,19 +1933,6 @@ export interface DeleteSlotsByClubInRange200Response {
|
|
|
2096
1933
|
*/
|
|
2097
1934
|
'message'?: string;
|
|
2098
1935
|
}
|
|
2099
|
-
/**
|
|
2100
|
-
*
|
|
2101
|
-
* @export
|
|
2102
|
-
* @interface DeleteSlotsResponse
|
|
2103
|
-
*/
|
|
2104
|
-
export interface DeleteSlotsResponse {
|
|
2105
|
-
/**
|
|
2106
|
-
*
|
|
2107
|
-
* @type {string}
|
|
2108
|
-
* @memberof DeleteSlotsResponse
|
|
2109
|
-
*/
|
|
2110
|
-
'message'?: string;
|
|
2111
|
-
}
|
|
2112
1936
|
/**
|
|
2113
1937
|
*
|
|
2114
1938
|
* @export
|
|
@@ -2453,19 +2277,6 @@ export interface FrequentlyVisitedClubItem {
|
|
|
2453
2277
|
*/
|
|
2454
2278
|
'visitCount'?: number;
|
|
2455
2279
|
}
|
|
2456
|
-
/**
|
|
2457
|
-
*
|
|
2458
|
-
* @export
|
|
2459
|
-
* @interface GenerateSlotsResponse
|
|
2460
|
-
*/
|
|
2461
|
-
export interface GenerateSlotsResponse {
|
|
2462
|
-
/**
|
|
2463
|
-
*
|
|
2464
|
-
* @type {string}
|
|
2465
|
-
* @memberof GenerateSlotsResponse
|
|
2466
|
-
*/
|
|
2467
|
-
'message'?: string;
|
|
2468
|
-
}
|
|
2469
2280
|
/**
|
|
2470
2281
|
*
|
|
2471
2282
|
* @export
|
|
@@ -2525,15 +2336,21 @@ export interface GetClubInfos200Response {
|
|
|
2525
2336
|
/**
|
|
2526
2337
|
*
|
|
2527
2338
|
* @export
|
|
2528
|
-
* @interface
|
|
2339
|
+
* @interface GetClubPlayers200Response
|
|
2529
2340
|
*/
|
|
2530
|
-
export interface
|
|
2341
|
+
export interface GetClubPlayers200Response {
|
|
2531
2342
|
/**
|
|
2532
2343
|
*
|
|
2533
|
-
* @type {
|
|
2534
|
-
* @memberof
|
|
2344
|
+
* @type {Array<UserStaffResponse>}
|
|
2345
|
+
* @memberof GetClubPlayers200Response
|
|
2535
2346
|
*/
|
|
2536
|
-
'
|
|
2347
|
+
'clubPlayers'?: Array<UserStaffResponse>;
|
|
2348
|
+
/**
|
|
2349
|
+
*
|
|
2350
|
+
* @type {number}
|
|
2351
|
+
* @memberof GetClubPlayers200Response
|
|
2352
|
+
*/
|
|
2353
|
+
'total'?: number;
|
|
2537
2354
|
}
|
|
2538
2355
|
/**
|
|
2539
2356
|
*
|
|
@@ -2942,6 +2759,12 @@ export interface LoginResponse {
|
|
|
2942
2759
|
* @memberof LoginResponse
|
|
2943
2760
|
*/
|
|
2944
2761
|
'token': string;
|
|
2762
|
+
/**
|
|
2763
|
+
*
|
|
2764
|
+
* @type {string}
|
|
2765
|
+
* @memberof LoginResponse
|
|
2766
|
+
*/
|
|
2767
|
+
'role'?: string;
|
|
2945
2768
|
/**
|
|
2946
2769
|
*
|
|
2947
2770
|
* @type {string}
|
|
@@ -4260,6 +4083,88 @@ export interface UpdateClubSettingsRequest {
|
|
|
4260
4083
|
*/
|
|
4261
4084
|
'allowWeekendReservations'?: boolean;
|
|
4262
4085
|
}
|
|
4086
|
+
/**
|
|
4087
|
+
*
|
|
4088
|
+
* @export
|
|
4089
|
+
* @interface UpdateCourtRequest
|
|
4090
|
+
*/
|
|
4091
|
+
export interface UpdateCourtRequest {
|
|
4092
|
+
/**
|
|
4093
|
+
* Nom du terrain
|
|
4094
|
+
* @type {string}
|
|
4095
|
+
* @memberof UpdateCourtRequest
|
|
4096
|
+
*/
|
|
4097
|
+
'name': string;
|
|
4098
|
+
/**
|
|
4099
|
+
* Statut du terrain
|
|
4100
|
+
* @type {string}
|
|
4101
|
+
* @memberof UpdateCourtRequest
|
|
4102
|
+
*/
|
|
4103
|
+
'status': UpdateCourtRequestStatusEnum;
|
|
4104
|
+
/**
|
|
4105
|
+
* Commentaires sur le terrain
|
|
4106
|
+
* @type {string}
|
|
4107
|
+
* @memberof UpdateCourtRequest
|
|
4108
|
+
*/
|
|
4109
|
+
'comments'?: string;
|
|
4110
|
+
/**
|
|
4111
|
+
* Durée par défaut d’un créneau (en minutes)
|
|
4112
|
+
* @type {number}
|
|
4113
|
+
* @memberof UpdateCourtRequest
|
|
4114
|
+
*/
|
|
4115
|
+
'slotDefaultDuration': number;
|
|
4116
|
+
/**
|
|
4117
|
+
* Prix par créneau en centimes
|
|
4118
|
+
* @type {number}
|
|
4119
|
+
* @memberof UpdateCourtRequest
|
|
4120
|
+
*/
|
|
4121
|
+
'pricePerSlotInCents'?: number;
|
|
4122
|
+
/**
|
|
4123
|
+
* Heure de début (minutes depuis minuit)
|
|
4124
|
+
* @type {number}
|
|
4125
|
+
* @memberof UpdateCourtRequest
|
|
4126
|
+
*/
|
|
4127
|
+
'startTimeInTheDayInMinutes': number;
|
|
4128
|
+
/**
|
|
4129
|
+
* Heure de fin (minutes depuis minuit)
|
|
4130
|
+
* @type {number}
|
|
4131
|
+
* @memberof UpdateCourtRequest
|
|
4132
|
+
*/
|
|
4133
|
+
'endTimeInTheDayInMinutes': number;
|
|
4134
|
+
/**
|
|
4135
|
+
* ID du sport associé
|
|
4136
|
+
* @type {string}
|
|
4137
|
+
* @memberof UpdateCourtRequest
|
|
4138
|
+
*/
|
|
4139
|
+
'sportId': string;
|
|
4140
|
+
/**
|
|
4141
|
+
* Type de surface
|
|
4142
|
+
* @type {string}
|
|
4143
|
+
* @memberof UpdateCourtRequest
|
|
4144
|
+
*/
|
|
4145
|
+
'surface': UpdateCourtRequestSurfaceEnum;
|
|
4146
|
+
/**
|
|
4147
|
+
* Terrain intérieur ou extérieur
|
|
4148
|
+
* @type {boolean}
|
|
4149
|
+
* @memberof UpdateCourtRequest
|
|
4150
|
+
*/
|
|
4151
|
+
'isIndoor': boolean;
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
export const UpdateCourtRequestStatusEnum = {
|
|
4155
|
+
Available: 'available',
|
|
4156
|
+
Unavailable: 'unavailable'
|
|
4157
|
+
} as const;
|
|
4158
|
+
|
|
4159
|
+
export type UpdateCourtRequestStatusEnum = typeof UpdateCourtRequestStatusEnum[keyof typeof UpdateCourtRequestStatusEnum];
|
|
4160
|
+
export const UpdateCourtRequestSurfaceEnum = {
|
|
4161
|
+
Clay: 'clay',
|
|
4162
|
+
Grass: 'grass',
|
|
4163
|
+
Hard: 'hard'
|
|
4164
|
+
} as const;
|
|
4165
|
+
|
|
4166
|
+
export type UpdateCourtRequestSurfaceEnum = typeof UpdateCourtRequestSurfaceEnum[keyof typeof UpdateCourtRequestSurfaceEnum];
|
|
4167
|
+
|
|
4263
4168
|
/**
|
|
4264
4169
|
*
|
|
4265
4170
|
* @export
|
|
@@ -4786,2049 +4691,103 @@ export interface UserResponse {
|
|
|
4786
4691
|
/**
|
|
4787
4692
|
*
|
|
4788
4693
|
* @export
|
|
4789
|
-
* @interface
|
|
4694
|
+
* @interface UserStaffResponse
|
|
4790
4695
|
*/
|
|
4791
|
-
export interface
|
|
4696
|
+
export interface UserStaffResponse {
|
|
4792
4697
|
/**
|
|
4793
4698
|
*
|
|
4794
|
-
* @type {
|
|
4795
|
-
* @memberof
|
|
4699
|
+
* @type {string}
|
|
4700
|
+
* @memberof UserStaffResponse
|
|
4796
4701
|
*/
|
|
4797
|
-
'
|
|
4702
|
+
'id'?: string;
|
|
4798
4703
|
/**
|
|
4799
4704
|
*
|
|
4800
|
-
* @type {
|
|
4801
|
-
* @memberof
|
|
4705
|
+
* @type {string}
|
|
4706
|
+
* @memberof UserStaffResponse
|
|
4802
4707
|
*/
|
|
4803
|
-
'
|
|
4804
|
-
}
|
|
4805
|
-
/**
|
|
4806
|
-
*
|
|
4807
|
-
* @export
|
|
4808
|
-
* @interface YearlyTurnoverResponse
|
|
4809
|
-
*/
|
|
4810
|
-
export interface YearlyTurnoverResponse {
|
|
4811
|
-
/**
|
|
4812
|
-
*
|
|
4813
|
-
* @type {number}
|
|
4814
|
-
* @memberof YearlyTurnoverResponse
|
|
4815
|
-
*/
|
|
4816
|
-
'year'?: number;
|
|
4817
|
-
/**
|
|
4818
|
-
*
|
|
4819
|
-
* @type {number}
|
|
4820
|
-
* @memberof YearlyTurnoverResponse
|
|
4821
|
-
*/
|
|
4822
|
-
'totalTurnover'?: number;
|
|
4823
|
-
/**
|
|
4824
|
-
*
|
|
4825
|
-
* @type {number}
|
|
4826
|
-
* @memberof YearlyTurnoverResponse
|
|
4827
|
-
*/
|
|
4828
|
-
'totalInvoices'?: number;
|
|
4829
|
-
/**
|
|
4830
|
-
*
|
|
4831
|
-
* @type {Array<YearlyTurnoverResponseMonthlyBreakdownInner>}
|
|
4832
|
-
* @memberof YearlyTurnoverResponse
|
|
4833
|
-
*/
|
|
4834
|
-
'monthlyBreakdown'?: Array<YearlyTurnoverResponseMonthlyBreakdownInner>;
|
|
4835
|
-
}
|
|
4836
|
-
/**
|
|
4837
|
-
*
|
|
4838
|
-
* @export
|
|
4839
|
-
* @interface YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4840
|
-
*/
|
|
4841
|
-
export interface YearlyTurnoverResponseMonthlyBreakdownInner {
|
|
4842
|
-
/**
|
|
4843
|
-
*
|
|
4844
|
-
* @type {number}
|
|
4845
|
-
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4846
|
-
*/
|
|
4847
|
-
'month'?: number;
|
|
4848
|
-
/**
|
|
4849
|
-
*
|
|
4850
|
-
* @type {number}
|
|
4851
|
-
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4852
|
-
*/
|
|
4853
|
-
'monthlyTurnover'?: number;
|
|
4854
|
-
/**
|
|
4855
|
-
*
|
|
4856
|
-
* @type {number}
|
|
4857
|
-
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4858
|
-
*/
|
|
4859
|
-
'invoiceCount'?: number;
|
|
4860
|
-
}
|
|
4861
|
-
|
|
4862
|
-
/**
|
|
4863
|
-
* AdminClubAnalyticsApi - axios parameter creator
|
|
4864
|
-
* @export
|
|
4865
|
-
*/
|
|
4866
|
-
export const AdminClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4867
|
-
return {
|
|
4868
|
-
/**
|
|
4869
|
-
*
|
|
4870
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
4871
|
-
* @param {string} id ID du club
|
|
4872
|
-
* @param {string} date Date (YYYY-MM-DD)
|
|
4873
|
-
* @param {*} [options] Override http request option.
|
|
4874
|
-
* @throws {RequiredError}
|
|
4875
|
-
*/
|
|
4876
|
-
getDailyTurnOverAdmin: async (id: string, date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4877
|
-
// verify required parameter 'id' is not null or undefined
|
|
4878
|
-
assertParamExists('getDailyTurnOverAdmin', 'id', id)
|
|
4879
|
-
// verify required parameter 'date' is not null or undefined
|
|
4880
|
-
assertParamExists('getDailyTurnOverAdmin', 'date', date)
|
|
4881
|
-
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
4882
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4883
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4884
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4885
|
-
let baseOptions;
|
|
4886
|
-
if (configuration) {
|
|
4887
|
-
baseOptions = configuration.baseOptions;
|
|
4888
|
-
}
|
|
4889
|
-
|
|
4890
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4891
|
-
const localVarHeaderParameter = {} as any;
|
|
4892
|
-
const localVarQueryParameter = {} as any;
|
|
4893
|
-
|
|
4894
|
-
// authentication bearerAuth required
|
|
4895
|
-
// http bearer authentication required
|
|
4896
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4897
|
-
|
|
4898
|
-
if (date !== undefined) {
|
|
4899
|
-
localVarQueryParameter['date'] = (date as any instanceof Date) ?
|
|
4900
|
-
(date as any).toISOString().substring(0,10) :
|
|
4901
|
-
date;
|
|
4902
|
-
}
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4907
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4908
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4909
|
-
|
|
4910
|
-
return {
|
|
4911
|
-
url: toPathString(localVarUrlObj),
|
|
4912
|
-
options: localVarRequestOptions,
|
|
4913
|
-
};
|
|
4914
|
-
},
|
|
4915
|
-
/**
|
|
4916
|
-
*
|
|
4917
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
4918
|
-
* @param {string} id ID du club
|
|
4919
|
-
* @param {number} [page]
|
|
4920
|
-
* @param {number} [limit]
|
|
4921
|
-
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
4922
|
-
* @param {string} [startDate]
|
|
4923
|
-
* @param {string} [endDate]
|
|
4924
|
-
* @param {*} [options] Override http request option.
|
|
4925
|
-
* @throws {RequiredError}
|
|
4926
|
-
*/
|
|
4927
|
-
getInvoicesAdmin: async (id: string, page?: number, limit?: number, status?: GetInvoicesAdminStatusEnum, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4928
|
-
// verify required parameter 'id' is not null or undefined
|
|
4929
|
-
assertParamExists('getInvoicesAdmin', 'id', id)
|
|
4930
|
-
const localVarPath = `/api/clubs/{id}/invoices`
|
|
4931
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4932
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4933
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4934
|
-
let baseOptions;
|
|
4935
|
-
if (configuration) {
|
|
4936
|
-
baseOptions = configuration.baseOptions;
|
|
4937
|
-
}
|
|
4938
|
-
|
|
4939
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4940
|
-
const localVarHeaderParameter = {} as any;
|
|
4941
|
-
const localVarQueryParameter = {} as any;
|
|
4942
|
-
|
|
4943
|
-
// authentication bearerAuth required
|
|
4944
|
-
// http bearer authentication required
|
|
4945
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4946
|
-
|
|
4947
|
-
if (page !== undefined) {
|
|
4948
|
-
localVarQueryParameter['page'] = page;
|
|
4949
|
-
}
|
|
4950
|
-
|
|
4951
|
-
if (limit !== undefined) {
|
|
4952
|
-
localVarQueryParameter['limit'] = limit;
|
|
4953
|
-
}
|
|
4954
|
-
|
|
4955
|
-
if (status !== undefined) {
|
|
4956
|
-
localVarQueryParameter['status'] = status;
|
|
4957
|
-
}
|
|
4958
|
-
|
|
4959
|
-
if (startDate !== undefined) {
|
|
4960
|
-
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
4961
|
-
(startDate as any).toISOString() :
|
|
4962
|
-
startDate;
|
|
4963
|
-
}
|
|
4964
|
-
|
|
4965
|
-
if (endDate !== undefined) {
|
|
4966
|
-
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
4967
|
-
(endDate as any).toISOString() :
|
|
4968
|
-
endDate;
|
|
4969
|
-
}
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4974
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4975
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4976
|
-
|
|
4977
|
-
return {
|
|
4978
|
-
url: toPathString(localVarUrlObj),
|
|
4979
|
-
options: localVarRequestOptions,
|
|
4980
|
-
};
|
|
4981
|
-
},
|
|
4982
|
-
/**
|
|
4983
|
-
*
|
|
4984
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
4985
|
-
* @param {string} id ID du club
|
|
4986
|
-
* @param {number} year Année
|
|
4987
|
-
* @param {number} month Mois (1-12)
|
|
4988
|
-
* @param {*} [options] Override http request option.
|
|
4989
|
-
* @throws {RequiredError}
|
|
4990
|
-
*/
|
|
4991
|
-
getMonthlyTurnOverAdmin: async (id: string, year: number, month: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4992
|
-
// verify required parameter 'id' is not null or undefined
|
|
4993
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'id', id)
|
|
4994
|
-
// verify required parameter 'year' is not null or undefined
|
|
4995
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'year', year)
|
|
4996
|
-
// verify required parameter 'month' is not null or undefined
|
|
4997
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'month', month)
|
|
4998
|
-
const localVarPath = `/api/clubs/{id}/turnover/monthly`
|
|
4999
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5000
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5001
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5002
|
-
let baseOptions;
|
|
5003
|
-
if (configuration) {
|
|
5004
|
-
baseOptions = configuration.baseOptions;
|
|
5005
|
-
}
|
|
5006
|
-
|
|
5007
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5008
|
-
const localVarHeaderParameter = {} as any;
|
|
5009
|
-
const localVarQueryParameter = {} as any;
|
|
5010
|
-
|
|
5011
|
-
// authentication bearerAuth required
|
|
5012
|
-
// http bearer authentication required
|
|
5013
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5014
|
-
|
|
5015
|
-
if (year !== undefined) {
|
|
5016
|
-
localVarQueryParameter['year'] = year;
|
|
5017
|
-
}
|
|
5018
|
-
|
|
5019
|
-
if (month !== undefined) {
|
|
5020
|
-
localVarQueryParameter['month'] = month;
|
|
5021
|
-
}
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5026
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5027
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5028
|
-
|
|
5029
|
-
return {
|
|
5030
|
-
url: toPathString(localVarUrlObj),
|
|
5031
|
-
options: localVarRequestOptions,
|
|
5032
|
-
};
|
|
5033
|
-
},
|
|
5034
|
-
/**
|
|
5035
|
-
*
|
|
5036
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
5037
|
-
* @param {string} id ID du club
|
|
5038
|
-
* @param {number} year Année
|
|
5039
|
-
* @param {*} [options] Override http request option.
|
|
5040
|
-
* @throws {RequiredError}
|
|
5041
|
-
*/
|
|
5042
|
-
getYearlyTurnOverAdmin: async (id: string, year: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5043
|
-
// verify required parameter 'id' is not null or undefined
|
|
5044
|
-
assertParamExists('getYearlyTurnOverAdmin', 'id', id)
|
|
5045
|
-
// verify required parameter 'year' is not null or undefined
|
|
5046
|
-
assertParamExists('getYearlyTurnOverAdmin', 'year', year)
|
|
5047
|
-
const localVarPath = `/api/clubs/{id}/turnover/yearly`
|
|
5048
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5049
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5050
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5051
|
-
let baseOptions;
|
|
5052
|
-
if (configuration) {
|
|
5053
|
-
baseOptions = configuration.baseOptions;
|
|
5054
|
-
}
|
|
5055
|
-
|
|
5056
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5057
|
-
const localVarHeaderParameter = {} as any;
|
|
5058
|
-
const localVarQueryParameter = {} as any;
|
|
5059
|
-
|
|
5060
|
-
// authentication bearerAuth required
|
|
5061
|
-
// http bearer authentication required
|
|
5062
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5063
|
-
|
|
5064
|
-
if (year !== undefined) {
|
|
5065
|
-
localVarQueryParameter['year'] = year;
|
|
5066
|
-
}
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5071
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5072
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5073
|
-
|
|
5074
|
-
return {
|
|
5075
|
-
url: toPathString(localVarUrlObj),
|
|
5076
|
-
options: localVarRequestOptions,
|
|
5077
|
-
};
|
|
5078
|
-
},
|
|
5079
|
-
}
|
|
5080
|
-
};
|
|
5081
|
-
|
|
5082
|
-
/**
|
|
5083
|
-
* AdminClubAnalyticsApi - functional programming interface
|
|
5084
|
-
* @export
|
|
5085
|
-
*/
|
|
5086
|
-
export const AdminClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
5087
|
-
const localVarAxiosParamCreator = AdminClubAnalyticsApiAxiosParamCreator(configuration)
|
|
5088
|
-
return {
|
|
5089
|
-
/**
|
|
5090
|
-
*
|
|
5091
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
5092
|
-
* @param {string} id ID du club
|
|
5093
|
-
* @param {string} date Date (YYYY-MM-DD)
|
|
5094
|
-
* @param {*} [options] Override http request option.
|
|
5095
|
-
* @throws {RequiredError}
|
|
5096
|
-
*/
|
|
5097
|
-
async getDailyTurnOverAdmin(id: string, date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DailyTurnoverResponse>> {
|
|
5098
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyTurnOverAdmin(id, date, options);
|
|
5099
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5100
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubAnalyticsApi.getDailyTurnOverAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5101
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5102
|
-
},
|
|
5103
|
-
/**
|
|
5104
|
-
*
|
|
5105
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
5106
|
-
* @param {string} id ID du club
|
|
5107
|
-
* @param {number} [page]
|
|
5108
|
-
* @param {number} [limit]
|
|
5109
|
-
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
5110
|
-
* @param {string} [startDate]
|
|
5111
|
-
* @param {string} [endDate]
|
|
5112
|
-
* @param {*} [options] Override http request option.
|
|
5113
|
-
* @throws {RequiredError}
|
|
5114
|
-
*/
|
|
5115
|
-
async getInvoicesAdmin(id: string, page?: number, limit?: number, status?: GetInvoicesAdminStatusEnum, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvoicesResponse>> {
|
|
5116
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoicesAdmin(id, page, limit, status, startDate, endDate, options);
|
|
5117
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5118
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubAnalyticsApi.getInvoicesAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5119
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5120
|
-
},
|
|
5121
|
-
/**
|
|
5122
|
-
*
|
|
5123
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
5124
|
-
* @param {string} id ID du club
|
|
5125
|
-
* @param {number} year Année
|
|
5126
|
-
* @param {number} month Mois (1-12)
|
|
5127
|
-
* @param {*} [options] Override http request option.
|
|
5128
|
-
* @throws {RequiredError}
|
|
5129
|
-
*/
|
|
5130
|
-
async getMonthlyTurnOverAdmin(id: string, year: number, month: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MonthlyTurnoverResponse>> {
|
|
5131
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyTurnOverAdmin(id, year, month, options);
|
|
5132
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5133
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubAnalyticsApi.getMonthlyTurnOverAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5134
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5135
|
-
},
|
|
5136
|
-
/**
|
|
5137
|
-
*
|
|
5138
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
5139
|
-
* @param {string} id ID du club
|
|
5140
|
-
* @param {number} year Année
|
|
5141
|
-
* @param {*} [options] Override http request option.
|
|
5142
|
-
* @throws {RequiredError}
|
|
5143
|
-
*/
|
|
5144
|
-
async getYearlyTurnOverAdmin(id: string, year: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<YearlyTurnoverResponse>> {
|
|
5145
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getYearlyTurnOverAdmin(id, year, options);
|
|
5146
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5147
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubAnalyticsApi.getYearlyTurnOverAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5148
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5149
|
-
},
|
|
5150
|
-
}
|
|
5151
|
-
};
|
|
5152
|
-
|
|
5153
|
-
/**
|
|
5154
|
-
* AdminClubAnalyticsApi - factory interface
|
|
5155
|
-
* @export
|
|
5156
|
-
*/
|
|
5157
|
-
export const AdminClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5158
|
-
const localVarFp = AdminClubAnalyticsApiFp(configuration)
|
|
5159
|
-
return {
|
|
5160
|
-
/**
|
|
5161
|
-
*
|
|
5162
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
5163
|
-
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5164
|
-
* @param {*} [options] Override http request option.
|
|
5165
|
-
* @throws {RequiredError}
|
|
5166
|
-
*/
|
|
5167
|
-
getDailyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetDailyTurnOverAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<DailyTurnoverResponse> {
|
|
5168
|
-
return localVarFp.getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
5169
|
-
},
|
|
5170
|
-
/**
|
|
5171
|
-
*
|
|
5172
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
5173
|
-
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
5174
|
-
* @param {*} [options] Override http request option.
|
|
5175
|
-
* @throws {RequiredError}
|
|
5176
|
-
*/
|
|
5177
|
-
getInvoicesAdmin(requestParameters: AdminClubAnalyticsApiGetInvoicesAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<InvoicesResponse> {
|
|
5178
|
-
return localVarFp.getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
5179
|
-
},
|
|
5180
|
-
/**
|
|
5181
|
-
*
|
|
5182
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
5183
|
-
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5184
|
-
* @param {*} [options] Override http request option.
|
|
5185
|
-
* @throws {RequiredError}
|
|
5186
|
-
*/
|
|
5187
|
-
getMonthlyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<MonthlyTurnoverResponse> {
|
|
5188
|
-
return localVarFp.getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
5189
|
-
},
|
|
5190
|
-
/**
|
|
5191
|
-
*
|
|
5192
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
5193
|
-
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5194
|
-
* @param {*} [options] Override http request option.
|
|
5195
|
-
* @throws {RequiredError}
|
|
5196
|
-
*/
|
|
5197
|
-
getYearlyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<YearlyTurnoverResponse> {
|
|
5198
|
-
return localVarFp.getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
5199
|
-
},
|
|
5200
|
-
};
|
|
5201
|
-
};
|
|
5202
|
-
|
|
5203
|
-
/**
|
|
5204
|
-
* Request parameters for getDailyTurnOverAdmin operation in AdminClubAnalyticsApi.
|
|
5205
|
-
* @export
|
|
5206
|
-
* @interface AdminClubAnalyticsApiGetDailyTurnOverAdminRequest
|
|
5207
|
-
*/
|
|
5208
|
-
export interface AdminClubAnalyticsApiGetDailyTurnOverAdminRequest {
|
|
5209
|
-
/**
|
|
5210
|
-
* ID du club
|
|
5211
|
-
* @type {string}
|
|
5212
|
-
* @memberof AdminClubAnalyticsApiGetDailyTurnOverAdmin
|
|
5213
|
-
*/
|
|
5214
|
-
readonly id: string
|
|
5215
|
-
|
|
5216
|
-
/**
|
|
5217
|
-
* Date (YYYY-MM-DD)
|
|
5218
|
-
* @type {string}
|
|
5219
|
-
* @memberof AdminClubAnalyticsApiGetDailyTurnOverAdmin
|
|
5220
|
-
*/
|
|
5221
|
-
readonly date: string
|
|
5222
|
-
}
|
|
5223
|
-
|
|
5224
|
-
/**
|
|
5225
|
-
* Request parameters for getInvoicesAdmin operation in AdminClubAnalyticsApi.
|
|
5226
|
-
* @export
|
|
5227
|
-
* @interface AdminClubAnalyticsApiGetInvoicesAdminRequest
|
|
5228
|
-
*/
|
|
5229
|
-
export interface AdminClubAnalyticsApiGetInvoicesAdminRequest {
|
|
5230
|
-
/**
|
|
5231
|
-
* ID du club
|
|
5232
|
-
* @type {string}
|
|
5233
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5234
|
-
*/
|
|
5235
|
-
readonly id: string
|
|
5236
|
-
|
|
5237
|
-
/**
|
|
5238
|
-
*
|
|
5239
|
-
* @type {number}
|
|
5240
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5241
|
-
*/
|
|
5242
|
-
readonly page?: number
|
|
5243
|
-
|
|
5244
|
-
/**
|
|
5245
|
-
*
|
|
5246
|
-
* @type {number}
|
|
5247
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5248
|
-
*/
|
|
5249
|
-
readonly limit?: number
|
|
5250
|
-
|
|
5251
|
-
/**
|
|
5252
|
-
*
|
|
5253
|
-
* @type {'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'}
|
|
5254
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5255
|
-
*/
|
|
5256
|
-
readonly status?: GetInvoicesAdminStatusEnum
|
|
5257
|
-
|
|
5258
|
-
/**
|
|
5259
|
-
*
|
|
5260
|
-
* @type {string}
|
|
5261
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5262
|
-
*/
|
|
5263
|
-
readonly startDate?: string
|
|
5264
|
-
|
|
5265
|
-
/**
|
|
5266
|
-
*
|
|
5267
|
-
* @type {string}
|
|
5268
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5269
|
-
*/
|
|
5270
|
-
readonly endDate?: string
|
|
5271
|
-
}
|
|
5272
|
-
|
|
5273
|
-
/**
|
|
5274
|
-
* Request parameters for getMonthlyTurnOverAdmin operation in AdminClubAnalyticsApi.
|
|
5275
|
-
* @export
|
|
5276
|
-
* @interface AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest
|
|
5277
|
-
*/
|
|
5278
|
-
export interface AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest {
|
|
5279
|
-
/**
|
|
5280
|
-
* ID du club
|
|
5281
|
-
* @type {string}
|
|
5282
|
-
* @memberof AdminClubAnalyticsApiGetMonthlyTurnOverAdmin
|
|
5283
|
-
*/
|
|
5284
|
-
readonly id: string
|
|
5285
|
-
|
|
5286
|
-
/**
|
|
5287
|
-
* Année
|
|
5288
|
-
* @type {number}
|
|
5289
|
-
* @memberof AdminClubAnalyticsApiGetMonthlyTurnOverAdmin
|
|
5290
|
-
*/
|
|
5291
|
-
readonly year: number
|
|
5292
|
-
|
|
5293
|
-
/**
|
|
5294
|
-
* Mois (1-12)
|
|
5295
|
-
* @type {number}
|
|
5296
|
-
* @memberof AdminClubAnalyticsApiGetMonthlyTurnOverAdmin
|
|
5297
|
-
*/
|
|
5298
|
-
readonly month: number
|
|
5299
|
-
}
|
|
5300
|
-
|
|
5301
|
-
/**
|
|
5302
|
-
* Request parameters for getYearlyTurnOverAdmin operation in AdminClubAnalyticsApi.
|
|
5303
|
-
* @export
|
|
5304
|
-
* @interface AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest
|
|
5305
|
-
*/
|
|
5306
|
-
export interface AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest {
|
|
5307
|
-
/**
|
|
5308
|
-
* ID du club
|
|
5309
|
-
* @type {string}
|
|
5310
|
-
* @memberof AdminClubAnalyticsApiGetYearlyTurnOverAdmin
|
|
5311
|
-
*/
|
|
5312
|
-
readonly id: string
|
|
5313
|
-
|
|
5314
|
-
/**
|
|
5315
|
-
* Année
|
|
5316
|
-
* @type {number}
|
|
5317
|
-
* @memberof AdminClubAnalyticsApiGetYearlyTurnOverAdmin
|
|
5318
|
-
*/
|
|
5319
|
-
readonly year: number
|
|
5320
|
-
}
|
|
5321
|
-
|
|
5322
|
-
/**
|
|
5323
|
-
* AdminClubAnalyticsApi - object-oriented interface
|
|
5324
|
-
* @export
|
|
5325
|
-
* @class AdminClubAnalyticsApi
|
|
5326
|
-
* @extends {BaseAPI}
|
|
5327
|
-
*/
|
|
5328
|
-
export class AdminClubAnalyticsApi extends BaseAPI {
|
|
5329
|
-
/**
|
|
5330
|
-
*
|
|
5331
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
5332
|
-
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5333
|
-
* @param {*} [options] Override http request option.
|
|
5334
|
-
* @throws {RequiredError}
|
|
5335
|
-
* @memberof AdminClubAnalyticsApi
|
|
5336
|
-
*/
|
|
5337
|
-
public getDailyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetDailyTurnOverAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5338
|
-
return AdminClubAnalyticsApiFp(this.configuration).getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
5339
|
-
}
|
|
5340
|
-
|
|
5341
|
-
/**
|
|
5342
|
-
*
|
|
5343
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
5344
|
-
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
5345
|
-
* @param {*} [options] Override http request option.
|
|
5346
|
-
* @throws {RequiredError}
|
|
5347
|
-
* @memberof AdminClubAnalyticsApi
|
|
5348
|
-
*/
|
|
5349
|
-
public getInvoicesAdmin(requestParameters: AdminClubAnalyticsApiGetInvoicesAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5350
|
-
return AdminClubAnalyticsApiFp(this.configuration).getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
5351
|
-
}
|
|
5352
|
-
|
|
5353
|
-
/**
|
|
5354
|
-
*
|
|
5355
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
5356
|
-
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5357
|
-
* @param {*} [options] Override http request option.
|
|
5358
|
-
* @throws {RequiredError}
|
|
5359
|
-
* @memberof AdminClubAnalyticsApi
|
|
5360
|
-
*/
|
|
5361
|
-
public getMonthlyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5362
|
-
return AdminClubAnalyticsApiFp(this.configuration).getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
5363
|
-
}
|
|
5364
|
-
|
|
5365
|
-
/**
|
|
5366
|
-
*
|
|
5367
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
5368
|
-
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5369
|
-
* @param {*} [options] Override http request option.
|
|
5370
|
-
* @throws {RequiredError}
|
|
5371
|
-
* @memberof AdminClubAnalyticsApi
|
|
5372
|
-
*/
|
|
5373
|
-
public getYearlyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5374
|
-
return AdminClubAnalyticsApiFp(this.configuration).getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
5375
|
-
}
|
|
5376
|
-
}
|
|
5377
|
-
|
|
5378
|
-
/**
|
|
5379
|
-
* @export
|
|
5380
|
-
*/
|
|
5381
|
-
export const GetInvoicesAdminStatusEnum = {
|
|
5382
|
-
Pending: 'pending',
|
|
5383
|
-
Paid: 'paid',
|
|
5384
|
-
Failed: 'failed',
|
|
5385
|
-
Authorized: 'authorized',
|
|
5386
|
-
Canceled: 'canceled',
|
|
5387
|
-
Expired: 'expired'
|
|
5388
|
-
} as const;
|
|
5389
|
-
export type GetInvoicesAdminStatusEnum = typeof GetInvoicesAdminStatusEnum[keyof typeof GetInvoicesAdminStatusEnum];
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
/**
|
|
5393
|
-
* AdminClubSlotsApi - axios parameter creator
|
|
5394
|
-
* @export
|
|
5395
|
-
*/
|
|
5396
|
-
export const AdminClubSlotsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5397
|
-
return {
|
|
5398
|
-
/**
|
|
5399
|
-
*
|
|
5400
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
5401
|
-
* @param {string} id ID du club
|
|
5402
|
-
* @param {string} start Date de début (format ISO)
|
|
5403
|
-
* @param {string} end Date de fin (format ISO)
|
|
5404
|
-
* @param {*} [options] Override http request option.
|
|
5405
|
-
* @throws {RequiredError}
|
|
5406
|
-
*/
|
|
5407
|
-
deleteSlotsByClubInRangeByID: async (id: string, start: string, end: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5408
|
-
// verify required parameter 'id' is not null or undefined
|
|
5409
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'id', id)
|
|
5410
|
-
// verify required parameter 'start' is not null or undefined
|
|
5411
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'start', start)
|
|
5412
|
-
// verify required parameter 'end' is not null or undefined
|
|
5413
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'end', end)
|
|
5414
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
5415
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5416
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5417
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5418
|
-
let baseOptions;
|
|
5419
|
-
if (configuration) {
|
|
5420
|
-
baseOptions = configuration.baseOptions;
|
|
5421
|
-
}
|
|
5422
|
-
|
|
5423
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5424
|
-
const localVarHeaderParameter = {} as any;
|
|
5425
|
-
const localVarQueryParameter = {} as any;
|
|
5426
|
-
|
|
5427
|
-
// authentication bearerAuth required
|
|
5428
|
-
// http bearer authentication required
|
|
5429
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5430
|
-
|
|
5431
|
-
if (start !== undefined) {
|
|
5432
|
-
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
5433
|
-
(start as any).toISOString() :
|
|
5434
|
-
start;
|
|
5435
|
-
}
|
|
5436
|
-
|
|
5437
|
-
if (end !== undefined) {
|
|
5438
|
-
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
5439
|
-
(end as any).toISOString() :
|
|
5440
|
-
end;
|
|
5441
|
-
}
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5446
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5447
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5448
|
-
|
|
5449
|
-
return {
|
|
5450
|
-
url: toPathString(localVarUrlObj),
|
|
5451
|
-
options: localVarRequestOptions,
|
|
5452
|
-
};
|
|
5453
|
-
},
|
|
5454
|
-
/**
|
|
5455
|
-
*
|
|
5456
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
5457
|
-
* @param {string} id ID du club
|
|
5458
|
-
* @param {*} [options] Override http request option.
|
|
5459
|
-
* @throws {RequiredError}
|
|
5460
|
-
*/
|
|
5461
|
-
generateSlotsForNextThreeWeeks: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5462
|
-
// verify required parameter 'id' is not null or undefined
|
|
5463
|
-
assertParamExists('generateSlotsForNextThreeWeeks', 'id', id)
|
|
5464
|
-
const localVarPath = `/api/clubs/{id}/generate-slots`
|
|
5465
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5466
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5467
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5468
|
-
let baseOptions;
|
|
5469
|
-
if (configuration) {
|
|
5470
|
-
baseOptions = configuration.baseOptions;
|
|
5471
|
-
}
|
|
5472
|
-
|
|
5473
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5474
|
-
const localVarHeaderParameter = {} as any;
|
|
5475
|
-
const localVarQueryParameter = {} as any;
|
|
5476
|
-
|
|
5477
|
-
// authentication bearerAuth required
|
|
5478
|
-
// http bearer authentication required
|
|
5479
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5484
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5485
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5486
|
-
|
|
5487
|
-
return {
|
|
5488
|
-
url: toPathString(localVarUrlObj),
|
|
5489
|
-
options: localVarRequestOptions,
|
|
5490
|
-
};
|
|
5491
|
-
},
|
|
5492
|
-
/**
|
|
5493
|
-
*
|
|
5494
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
5495
|
-
* @param {string} id ID du club
|
|
5496
|
-
* @param {string} [start] Date de début (format ISO)
|
|
5497
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
5498
|
-
* @param {*} [options] Override http request option.
|
|
5499
|
-
* @throws {RequiredError}
|
|
5500
|
-
*/
|
|
5501
|
-
getSlotsByClubAdmin: async (id: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5502
|
-
// verify required parameter 'id' is not null or undefined
|
|
5503
|
-
assertParamExists('getSlotsByClubAdmin', 'id', id)
|
|
5504
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
5505
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5506
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5507
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5508
|
-
let baseOptions;
|
|
5509
|
-
if (configuration) {
|
|
5510
|
-
baseOptions = configuration.baseOptions;
|
|
5511
|
-
}
|
|
5512
|
-
|
|
5513
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5514
|
-
const localVarHeaderParameter = {} as any;
|
|
5515
|
-
const localVarQueryParameter = {} as any;
|
|
5516
|
-
|
|
5517
|
-
// authentication bearerAuth required
|
|
5518
|
-
// http bearer authentication required
|
|
5519
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5520
|
-
|
|
5521
|
-
if (start !== undefined) {
|
|
5522
|
-
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
5523
|
-
(start as any).toISOString() :
|
|
5524
|
-
start;
|
|
5525
|
-
}
|
|
5526
|
-
|
|
5527
|
-
if (end !== undefined) {
|
|
5528
|
-
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
5529
|
-
(end as any).toISOString() :
|
|
5530
|
-
end;
|
|
5531
|
-
}
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5536
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5537
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5538
|
-
|
|
5539
|
-
return {
|
|
5540
|
-
url: toPathString(localVarUrlObj),
|
|
5541
|
-
options: localVarRequestOptions,
|
|
5542
|
-
};
|
|
5543
|
-
},
|
|
5544
|
-
}
|
|
5545
|
-
};
|
|
5546
|
-
|
|
5547
|
-
/**
|
|
5548
|
-
* AdminClubSlotsApi - functional programming interface
|
|
5549
|
-
* @export
|
|
5550
|
-
*/
|
|
5551
|
-
export const AdminClubSlotsApiFp = function(configuration?: Configuration) {
|
|
5552
|
-
const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration)
|
|
5553
|
-
return {
|
|
5554
|
-
/**
|
|
5555
|
-
*
|
|
5556
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
5557
|
-
* @param {string} id ID du club
|
|
5558
|
-
* @param {string} start Date de début (format ISO)
|
|
5559
|
-
* @param {string} end Date de fin (format ISO)
|
|
5560
|
-
* @param {*} [options] Override http request option.
|
|
5561
|
-
* @throws {RequiredError}
|
|
5562
|
-
*/
|
|
5563
|
-
async deleteSlotsByClubInRangeByID(id: string, start: string, end: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSlotsResponse>> {
|
|
5564
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSlotsByClubInRangeByID(id, start, end, options);
|
|
5565
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5566
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSlotsApi.deleteSlotsByClubInRangeByID']?.[localVarOperationServerIndex]?.url;
|
|
5567
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5568
|
-
},
|
|
5569
|
-
/**
|
|
5570
|
-
*
|
|
5571
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
5572
|
-
* @param {string} id ID du club
|
|
5573
|
-
* @param {*} [options] Override http request option.
|
|
5574
|
-
* @throws {RequiredError}
|
|
5575
|
-
*/
|
|
5576
|
-
async generateSlotsForNextThreeWeeks(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateSlotsResponse>> {
|
|
5577
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
|
|
5578
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5579
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']?.[localVarOperationServerIndex]?.url;
|
|
5580
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5581
|
-
},
|
|
5582
|
-
/**
|
|
5583
|
-
*
|
|
5584
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
5585
|
-
* @param {string} id ID du club
|
|
5586
|
-
* @param {string} [start] Date de début (format ISO)
|
|
5587
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
5588
|
-
* @param {*} [options] Override http request option.
|
|
5589
|
-
* @throws {RequiredError}
|
|
5590
|
-
*/
|
|
5591
|
-
async getSlotsByClubAdmin(id: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SlotsResponse>> {
|
|
5592
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlotsByClubAdmin(id, start, end, options);
|
|
5593
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5594
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSlotsApi.getSlotsByClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5595
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5596
|
-
},
|
|
5597
|
-
}
|
|
5598
|
-
};
|
|
5599
|
-
|
|
5600
|
-
/**
|
|
5601
|
-
* AdminClubSlotsApi - factory interface
|
|
5602
|
-
* @export
|
|
5603
|
-
*/
|
|
5604
|
-
export const AdminClubSlotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5605
|
-
const localVarFp = AdminClubSlotsApiFp(configuration)
|
|
5606
|
-
return {
|
|
5607
|
-
/**
|
|
5608
|
-
*
|
|
5609
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
5610
|
-
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
5611
|
-
* @param {*} [options] Override http request option.
|
|
5612
|
-
* @throws {RequiredError}
|
|
5613
|
-
*/
|
|
5614
|
-
deleteSlotsByClubInRangeByID(requestParameters: AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSlotsResponse> {
|
|
5615
|
-
return localVarFp.deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5616
|
-
},
|
|
5617
|
-
/**
|
|
5618
|
-
*
|
|
5619
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
5620
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
5621
|
-
* @param {*} [options] Override http request option.
|
|
5622
|
-
* @throws {RequiredError}
|
|
5623
|
-
*/
|
|
5624
|
-
generateSlotsForNextThreeWeeks(requestParameters: AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateSlotsResponse> {
|
|
5625
|
-
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5626
|
-
},
|
|
5627
|
-
/**
|
|
5628
|
-
*
|
|
5629
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
5630
|
-
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
5631
|
-
* @param {*} [options] Override http request option.
|
|
5632
|
-
* @throws {RequiredError}
|
|
5633
|
-
*/
|
|
5634
|
-
getSlotsByClubAdmin(requestParameters: AdminClubSlotsApiGetSlotsByClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<SlotsResponse> {
|
|
5635
|
-
return localVarFp.getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5636
|
-
},
|
|
5637
|
-
};
|
|
5638
|
-
};
|
|
5639
|
-
|
|
5640
|
-
/**
|
|
5641
|
-
* Request parameters for deleteSlotsByClubInRangeByID operation in AdminClubSlotsApi.
|
|
5642
|
-
* @export
|
|
5643
|
-
* @interface AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest
|
|
5644
|
-
*/
|
|
5645
|
-
export interface AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest {
|
|
5646
|
-
/**
|
|
5647
|
-
* ID du club
|
|
5648
|
-
* @type {string}
|
|
5649
|
-
* @memberof AdminClubSlotsApiDeleteSlotsByClubInRangeByID
|
|
5650
|
-
*/
|
|
5651
|
-
readonly id: string
|
|
5652
|
-
|
|
5653
|
-
/**
|
|
5654
|
-
* Date de début (format ISO)
|
|
5655
|
-
* @type {string}
|
|
5656
|
-
* @memberof AdminClubSlotsApiDeleteSlotsByClubInRangeByID
|
|
5657
|
-
*/
|
|
5658
|
-
readonly start: string
|
|
5659
|
-
|
|
5660
|
-
/**
|
|
5661
|
-
* Date de fin (format ISO)
|
|
5662
|
-
* @type {string}
|
|
5663
|
-
* @memberof AdminClubSlotsApiDeleteSlotsByClubInRangeByID
|
|
5664
|
-
*/
|
|
5665
|
-
readonly end: string
|
|
5666
|
-
}
|
|
5667
|
-
|
|
5668
|
-
/**
|
|
5669
|
-
* Request parameters for generateSlotsForNextThreeWeeks operation in AdminClubSlotsApi.
|
|
5670
|
-
* @export
|
|
5671
|
-
* @interface AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest
|
|
5672
|
-
*/
|
|
5673
|
-
export interface AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest {
|
|
5674
|
-
/**
|
|
5675
|
-
* ID du club
|
|
5676
|
-
* @type {string}
|
|
5677
|
-
* @memberof AdminClubSlotsApiGenerateSlotsForNextThreeWeeks
|
|
5678
|
-
*/
|
|
5679
|
-
readonly id: string
|
|
5680
|
-
}
|
|
5681
|
-
|
|
5682
|
-
/**
|
|
5683
|
-
* Request parameters for getSlotsByClubAdmin operation in AdminClubSlotsApi.
|
|
5684
|
-
* @export
|
|
5685
|
-
* @interface AdminClubSlotsApiGetSlotsByClubAdminRequest
|
|
5686
|
-
*/
|
|
5687
|
-
export interface AdminClubSlotsApiGetSlotsByClubAdminRequest {
|
|
5688
|
-
/**
|
|
5689
|
-
* ID du club
|
|
5690
|
-
* @type {string}
|
|
5691
|
-
* @memberof AdminClubSlotsApiGetSlotsByClubAdmin
|
|
5692
|
-
*/
|
|
5693
|
-
readonly id: string
|
|
5694
|
-
|
|
5695
|
-
/**
|
|
5696
|
-
* Date de début (format ISO)
|
|
5697
|
-
* @type {string}
|
|
5698
|
-
* @memberof AdminClubSlotsApiGetSlotsByClubAdmin
|
|
5699
|
-
*/
|
|
5700
|
-
readonly start?: string
|
|
5701
|
-
|
|
5702
|
-
/**
|
|
5703
|
-
* Date de fin (format ISO)
|
|
5704
|
-
* @type {string}
|
|
5705
|
-
* @memberof AdminClubSlotsApiGetSlotsByClubAdmin
|
|
5706
|
-
*/
|
|
5707
|
-
readonly end?: string
|
|
5708
|
-
}
|
|
5709
|
-
|
|
5710
|
-
/**
|
|
5711
|
-
* AdminClubSlotsApi - object-oriented interface
|
|
5712
|
-
* @export
|
|
5713
|
-
* @class AdminClubSlotsApi
|
|
5714
|
-
* @extends {BaseAPI}
|
|
5715
|
-
*/
|
|
5716
|
-
export class AdminClubSlotsApi extends BaseAPI {
|
|
5717
|
-
/**
|
|
5718
|
-
*
|
|
5719
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
5720
|
-
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
5721
|
-
* @param {*} [options] Override http request option.
|
|
5722
|
-
* @throws {RequiredError}
|
|
5723
|
-
* @memberof AdminClubSlotsApi
|
|
5724
|
-
*/
|
|
5725
|
-
public deleteSlotsByClubInRangeByID(requestParameters: AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest, options?: RawAxiosRequestConfig) {
|
|
5726
|
-
return AdminClubSlotsApiFp(this.configuration).deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5727
|
-
}
|
|
5728
|
-
|
|
5729
|
-
/**
|
|
5730
|
-
*
|
|
5731
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
5732
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
5733
|
-
* @param {*} [options] Override http request option.
|
|
5734
|
-
* @throws {RequiredError}
|
|
5735
|
-
* @memberof AdminClubSlotsApi
|
|
5736
|
-
*/
|
|
5737
|
-
public generateSlotsForNextThreeWeeks(requestParameters: AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig) {
|
|
5738
|
-
return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5739
|
-
}
|
|
5740
|
-
|
|
5741
|
-
/**
|
|
5742
|
-
*
|
|
5743
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
5744
|
-
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
5745
|
-
* @param {*} [options] Override http request option.
|
|
5746
|
-
* @throws {RequiredError}
|
|
5747
|
-
* @memberof AdminClubSlotsApi
|
|
5748
|
-
*/
|
|
5749
|
-
public getSlotsByClubAdmin(requestParameters: AdminClubSlotsApiGetSlotsByClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5750
|
-
return AdminClubSlotsApiFp(this.configuration).getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5751
|
-
}
|
|
5752
|
-
}
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
/**
|
|
5757
|
-
* AdminClubSubscriptionsApi - axios parameter creator
|
|
5758
|
-
* @export
|
|
5759
|
-
*/
|
|
5760
|
-
export const AdminClubSubscriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5761
|
-
return {
|
|
5762
|
-
/**
|
|
5763
|
-
*
|
|
5764
|
-
* @summary Archiver un prix (Admin)
|
|
5765
|
-
* @param {string} id
|
|
5766
|
-
* @param {string} priceId
|
|
5767
|
-
* @param {*} [options] Override http request option.
|
|
5768
|
-
* @throws {RequiredError}
|
|
5769
|
-
*/
|
|
5770
|
-
archivePriceForSubscriptionPlanAdmin: async (id: string, priceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5771
|
-
// verify required parameter 'id' is not null or undefined
|
|
5772
|
-
assertParamExists('archivePriceForSubscriptionPlanAdmin', 'id', id)
|
|
5773
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
5774
|
-
assertParamExists('archivePriceForSubscriptionPlanAdmin', 'priceId', priceId)
|
|
5775
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
|
|
5776
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5777
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
5778
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5779
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5780
|
-
let baseOptions;
|
|
5781
|
-
if (configuration) {
|
|
5782
|
-
baseOptions = configuration.baseOptions;
|
|
5783
|
-
}
|
|
5784
|
-
|
|
5785
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5786
|
-
const localVarHeaderParameter = {} as any;
|
|
5787
|
-
const localVarQueryParameter = {} as any;
|
|
5788
|
-
|
|
5789
|
-
// authentication bearerAuth required
|
|
5790
|
-
// http bearer authentication required
|
|
5791
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5796
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5797
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5798
|
-
|
|
5799
|
-
return {
|
|
5800
|
-
url: toPathString(localVarUrlObj),
|
|
5801
|
-
options: localVarRequestOptions,
|
|
5802
|
-
};
|
|
5803
|
-
},
|
|
5804
|
-
/**
|
|
5805
|
-
*
|
|
5806
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
5807
|
-
* @param {string} id
|
|
5808
|
-
* @param {string} productId
|
|
5809
|
-
* @param {CreatePriceRequest} createPriceRequest
|
|
5810
|
-
* @param {*} [options] Override http request option.
|
|
5811
|
-
* @throws {RequiredError}
|
|
5812
|
-
*/
|
|
5813
|
-
createPriceForSubscriptionPlanAdmin: async (id: string, productId: string, createPriceRequest: CreatePriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5814
|
-
// verify required parameter 'id' is not null or undefined
|
|
5815
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'id', id)
|
|
5816
|
-
// verify required parameter 'productId' is not null or undefined
|
|
5817
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'productId', productId)
|
|
5818
|
-
// verify required parameter 'createPriceRequest' is not null or undefined
|
|
5819
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'createPriceRequest', createPriceRequest)
|
|
5820
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
|
|
5821
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5822
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
5823
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5824
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5825
|
-
let baseOptions;
|
|
5826
|
-
if (configuration) {
|
|
5827
|
-
baseOptions = configuration.baseOptions;
|
|
5828
|
-
}
|
|
5829
|
-
|
|
5830
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5831
|
-
const localVarHeaderParameter = {} as any;
|
|
5832
|
-
const localVarQueryParameter = {} as any;
|
|
5833
|
-
|
|
5834
|
-
// authentication bearerAuth required
|
|
5835
|
-
// http bearer authentication required
|
|
5836
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5841
|
-
|
|
5842
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5843
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5844
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5845
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createPriceRequest, localVarRequestOptions, configuration)
|
|
5846
|
-
|
|
5847
|
-
return {
|
|
5848
|
-
url: toPathString(localVarUrlObj),
|
|
5849
|
-
options: localVarRequestOptions,
|
|
5850
|
-
};
|
|
5851
|
-
},
|
|
5852
|
-
/**
|
|
5853
|
-
*
|
|
5854
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
5855
|
-
* @param {string} id
|
|
5856
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
5857
|
-
* @param {*} [options] Override http request option.
|
|
5858
|
-
* @throws {RequiredError}
|
|
5859
|
-
*/
|
|
5860
|
-
createSubscriptionPlanForClubAdmin: async (id: string, createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5861
|
-
// verify required parameter 'id' is not null or undefined
|
|
5862
|
-
assertParamExists('createSubscriptionPlanForClubAdmin', 'id', id)
|
|
5863
|
-
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
5864
|
-
assertParamExists('createSubscriptionPlanForClubAdmin', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest)
|
|
5865
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans`
|
|
5866
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5867
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5868
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5869
|
-
let baseOptions;
|
|
5870
|
-
if (configuration) {
|
|
5871
|
-
baseOptions = configuration.baseOptions;
|
|
5872
|
-
}
|
|
5873
|
-
|
|
5874
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5875
|
-
const localVarHeaderParameter = {} as any;
|
|
5876
|
-
const localVarQueryParameter = {} as any;
|
|
5877
|
-
|
|
5878
|
-
// authentication bearerAuth required
|
|
5879
|
-
// http bearer authentication required
|
|
5880
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5885
|
-
|
|
5886
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5887
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5888
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5889
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration)
|
|
5890
|
-
|
|
5891
|
-
return {
|
|
5892
|
-
url: toPathString(localVarUrlObj),
|
|
5893
|
-
options: localVarRequestOptions,
|
|
5894
|
-
};
|
|
5895
|
-
},
|
|
5896
|
-
/**
|
|
5897
|
-
*
|
|
5898
|
-
* @summary Supprimer un plan (Admin)
|
|
5899
|
-
* @param {string} id
|
|
5900
|
-
* @param {string} productId
|
|
5901
|
-
* @param {*} [options] Override http request option.
|
|
5902
|
-
* @throws {RequiredError}
|
|
5903
|
-
*/
|
|
5904
|
-
deleteSubscriptionPlanForClubAdmin: async (id: string, productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5905
|
-
// verify required parameter 'id' is not null or undefined
|
|
5906
|
-
assertParamExists('deleteSubscriptionPlanForClubAdmin', 'id', id)
|
|
5907
|
-
// verify required parameter 'productId' is not null or undefined
|
|
5908
|
-
assertParamExists('deleteSubscriptionPlanForClubAdmin', 'productId', productId)
|
|
5909
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
|
|
5910
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5911
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
5912
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5913
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5914
|
-
let baseOptions;
|
|
5915
|
-
if (configuration) {
|
|
5916
|
-
baseOptions = configuration.baseOptions;
|
|
5917
|
-
}
|
|
5918
|
-
|
|
5919
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5920
|
-
const localVarHeaderParameter = {} as any;
|
|
5921
|
-
const localVarQueryParameter = {} as any;
|
|
5922
|
-
|
|
5923
|
-
// authentication bearerAuth required
|
|
5924
|
-
// http bearer authentication required
|
|
5925
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5930
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5931
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5932
|
-
|
|
5933
|
-
return {
|
|
5934
|
-
url: toPathString(localVarUrlObj),
|
|
5935
|
-
options: localVarRequestOptions,
|
|
5936
|
-
};
|
|
5937
|
-
},
|
|
5938
|
-
/**
|
|
5939
|
-
*
|
|
5940
|
-
* @summary Réactiver un plan (Admin)
|
|
5941
|
-
* @param {string} id
|
|
5942
|
-
* @param {string} productId
|
|
5943
|
-
* @param {*} [options] Override http request option.
|
|
5944
|
-
* @throws {RequiredError}
|
|
5945
|
-
*/
|
|
5946
|
-
restoreSubscriptionPlanForClubAdmin: async (id: string, productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5947
|
-
// verify required parameter 'id' is not null or undefined
|
|
5948
|
-
assertParamExists('restoreSubscriptionPlanForClubAdmin', 'id', id)
|
|
5949
|
-
// verify required parameter 'productId' is not null or undefined
|
|
5950
|
-
assertParamExists('restoreSubscriptionPlanForClubAdmin', 'productId', productId)
|
|
5951
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
|
|
5952
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5953
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
5954
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5955
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5956
|
-
let baseOptions;
|
|
5957
|
-
if (configuration) {
|
|
5958
|
-
baseOptions = configuration.baseOptions;
|
|
5959
|
-
}
|
|
5960
|
-
|
|
5961
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5962
|
-
const localVarHeaderParameter = {} as any;
|
|
5963
|
-
const localVarQueryParameter = {} as any;
|
|
5964
|
-
|
|
5965
|
-
// authentication bearerAuth required
|
|
5966
|
-
// http bearer authentication required
|
|
5967
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5972
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5973
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5974
|
-
|
|
5975
|
-
return {
|
|
5976
|
-
url: toPathString(localVarUrlObj),
|
|
5977
|
-
options: localVarRequestOptions,
|
|
5978
|
-
};
|
|
5979
|
-
},
|
|
5980
|
-
/**
|
|
5981
|
-
*
|
|
5982
|
-
* @summary Réactiver un prix (Admin)
|
|
5983
|
-
* @param {string} id
|
|
5984
|
-
* @param {string} priceId
|
|
5985
|
-
* @param {*} [options] Override http request option.
|
|
5986
|
-
* @throws {RequiredError}
|
|
5987
|
-
*/
|
|
5988
|
-
restoreSubscriptionPriceForClubAdmin: async (id: string, priceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5989
|
-
// verify required parameter 'id' is not null or undefined
|
|
5990
|
-
assertParamExists('restoreSubscriptionPriceForClubAdmin', 'id', id)
|
|
5991
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
5992
|
-
assertParamExists('restoreSubscriptionPriceForClubAdmin', 'priceId', priceId)
|
|
5993
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
|
|
5994
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5995
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
5996
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5997
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5998
|
-
let baseOptions;
|
|
5999
|
-
if (configuration) {
|
|
6000
|
-
baseOptions = configuration.baseOptions;
|
|
6001
|
-
}
|
|
6002
|
-
|
|
6003
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6004
|
-
const localVarHeaderParameter = {} as any;
|
|
6005
|
-
const localVarQueryParameter = {} as any;
|
|
6006
|
-
|
|
6007
|
-
// authentication bearerAuth required
|
|
6008
|
-
// http bearer authentication required
|
|
6009
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6014
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6015
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6016
|
-
|
|
6017
|
-
return {
|
|
6018
|
-
url: toPathString(localVarUrlObj),
|
|
6019
|
-
options: localVarRequestOptions,
|
|
6020
|
-
};
|
|
6021
|
-
},
|
|
6022
|
-
/**
|
|
6023
|
-
*
|
|
6024
|
-
* @summary Mettre à jour un plan (Admin)
|
|
6025
|
-
* @param {string} id
|
|
6026
|
-
* @param {string} priceId
|
|
6027
|
-
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
6028
|
-
* @param {*} [options] Override http request option.
|
|
6029
|
-
* @throws {RequiredError}
|
|
6030
|
-
*/
|
|
6031
|
-
updateSubscriptionPlanForClubAdmin: async (id: string, priceId: string, updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6032
|
-
// verify required parameter 'id' is not null or undefined
|
|
6033
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'id', id)
|
|
6034
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
6035
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'priceId', priceId)
|
|
6036
|
-
// verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
|
|
6037
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest)
|
|
6038
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
|
|
6039
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
6040
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
6041
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6042
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6043
|
-
let baseOptions;
|
|
6044
|
-
if (configuration) {
|
|
6045
|
-
baseOptions = configuration.baseOptions;
|
|
6046
|
-
}
|
|
6047
|
-
|
|
6048
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
6049
|
-
const localVarHeaderParameter = {} as any;
|
|
6050
|
-
const localVarQueryParameter = {} as any;
|
|
6051
|
-
|
|
6052
|
-
// authentication bearerAuth required
|
|
6053
|
-
// http bearer authentication required
|
|
6054
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6059
|
-
|
|
6060
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6061
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6062
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6063
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateSubscriptionPlanRequest, localVarRequestOptions, configuration)
|
|
6064
|
-
|
|
6065
|
-
return {
|
|
6066
|
-
url: toPathString(localVarUrlObj),
|
|
6067
|
-
options: localVarRequestOptions,
|
|
6068
|
-
};
|
|
6069
|
-
},
|
|
6070
|
-
}
|
|
6071
|
-
};
|
|
6072
|
-
|
|
6073
|
-
/**
|
|
6074
|
-
* AdminClubSubscriptionsApi - functional programming interface
|
|
6075
|
-
* @export
|
|
6076
|
-
*/
|
|
6077
|
-
export const AdminClubSubscriptionsApiFp = function(configuration?: Configuration) {
|
|
6078
|
-
const localVarAxiosParamCreator = AdminClubSubscriptionsApiAxiosParamCreator(configuration)
|
|
6079
|
-
return {
|
|
6080
|
-
/**
|
|
6081
|
-
*
|
|
6082
|
-
* @summary Archiver un prix (Admin)
|
|
6083
|
-
* @param {string} id
|
|
6084
|
-
* @param {string} priceId
|
|
6085
|
-
* @param {*} [options] Override http request option.
|
|
6086
|
-
* @throws {RequiredError}
|
|
6087
|
-
*/
|
|
6088
|
-
async archivePriceForSubscriptionPlanAdmin(id: string, priceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6089
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.archivePriceForSubscriptionPlanAdmin(id, priceId, options);
|
|
6090
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6091
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.archivePriceForSubscriptionPlanAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6092
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6093
|
-
},
|
|
6094
|
-
/**
|
|
6095
|
-
*
|
|
6096
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
6097
|
-
* @param {string} id
|
|
6098
|
-
* @param {string} productId
|
|
6099
|
-
* @param {CreatePriceRequest} createPriceRequest
|
|
6100
|
-
* @param {*} [options] Override http request option.
|
|
6101
|
-
* @throws {RequiredError}
|
|
6102
|
-
*/
|
|
6103
|
-
async createPriceForSubscriptionPlanAdmin(id: string, productId: string, createPriceRequest: CreatePriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PriceResponse>> {
|
|
6104
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options);
|
|
6105
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6106
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.createPriceForSubscriptionPlanAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6107
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6108
|
-
},
|
|
6109
|
-
/**
|
|
6110
|
-
*
|
|
6111
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
6112
|
-
* @param {string} id
|
|
6113
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6114
|
-
* @param {*} [options] Override http request option.
|
|
6115
|
-
* @throws {RequiredError}
|
|
6116
|
-
*/
|
|
6117
|
-
async createSubscriptionPlanForClubAdmin(id: string, createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPlanResponse>> {
|
|
6118
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options);
|
|
6119
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6120
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.createSubscriptionPlanForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6121
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6122
|
-
},
|
|
6123
|
-
/**
|
|
6124
|
-
*
|
|
6125
|
-
* @summary Supprimer un plan (Admin)
|
|
6126
|
-
* @param {string} id
|
|
6127
|
-
* @param {string} productId
|
|
6128
|
-
* @param {*} [options] Override http request option.
|
|
6129
|
-
* @throws {RequiredError}
|
|
6130
|
-
*/
|
|
6131
|
-
async deleteSubscriptionPlanForClubAdmin(id: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6132
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSubscriptionPlanForClubAdmin(id, productId, options);
|
|
6133
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6134
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.deleteSubscriptionPlanForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6135
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6136
|
-
},
|
|
6137
|
-
/**
|
|
6138
|
-
*
|
|
6139
|
-
* @summary Réactiver un plan (Admin)
|
|
6140
|
-
* @param {string} id
|
|
6141
|
-
* @param {string} productId
|
|
6142
|
-
* @param {*} [options] Override http request option.
|
|
6143
|
-
* @throws {RequiredError}
|
|
6144
|
-
*/
|
|
6145
|
-
async restoreSubscriptionPlanForClubAdmin(id: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6146
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreSubscriptionPlanForClubAdmin(id, productId, options);
|
|
6147
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6148
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPlanForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6149
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6150
|
-
},
|
|
6151
|
-
/**
|
|
6152
|
-
*
|
|
6153
|
-
* @summary Réactiver un prix (Admin)
|
|
6154
|
-
* @param {string} id
|
|
6155
|
-
* @param {string} priceId
|
|
6156
|
-
* @param {*} [options] Override http request option.
|
|
6157
|
-
* @throws {RequiredError}
|
|
6158
|
-
*/
|
|
6159
|
-
async restoreSubscriptionPriceForClubAdmin(id: string, priceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6160
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreSubscriptionPriceForClubAdmin(id, priceId, options);
|
|
6161
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6162
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPriceForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6163
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6164
|
-
},
|
|
6165
|
-
/**
|
|
6166
|
-
*
|
|
6167
|
-
* @summary Mettre à jour un plan (Admin)
|
|
6168
|
-
* @param {string} id
|
|
6169
|
-
* @param {string} priceId
|
|
6170
|
-
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
6171
|
-
* @param {*} [options] Override http request option.
|
|
6172
|
-
* @throws {RequiredError}
|
|
6173
|
-
*/
|
|
6174
|
-
async updateSubscriptionPlanForClubAdmin(id: string, priceId: string, updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6175
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options);
|
|
6176
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6177
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.updateSubscriptionPlanForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6178
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6179
|
-
},
|
|
6180
|
-
}
|
|
6181
|
-
};
|
|
6182
|
-
|
|
6183
|
-
/**
|
|
6184
|
-
* AdminClubSubscriptionsApi - factory interface
|
|
6185
|
-
* @export
|
|
6186
|
-
*/
|
|
6187
|
-
export const AdminClubSubscriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6188
|
-
const localVarFp = AdminClubSubscriptionsApiFp(configuration)
|
|
6189
|
-
return {
|
|
6190
|
-
/**
|
|
6191
|
-
*
|
|
6192
|
-
* @summary Archiver un prix (Admin)
|
|
6193
|
-
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
6194
|
-
* @param {*} [options] Override http request option.
|
|
6195
|
-
* @throws {RequiredError}
|
|
6196
|
-
*/
|
|
6197
|
-
archivePriceForSubscriptionPlanAdmin(requestParameters: AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6198
|
-
return localVarFp.archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
6199
|
-
},
|
|
6200
|
-
/**
|
|
6201
|
-
*
|
|
6202
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
6203
|
-
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
6204
|
-
* @param {*} [options] Override http request option.
|
|
6205
|
-
* @throws {RequiredError}
|
|
6206
|
-
*/
|
|
6207
|
-
createPriceForSubscriptionPlanAdmin(requestParameters: AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<PriceResponse> {
|
|
6208
|
-
return localVarFp.createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
|
|
6209
|
-
},
|
|
6210
|
-
/**
|
|
6211
|
-
*
|
|
6212
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
6213
|
-
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6214
|
-
* @param {*} [options] Override http request option.
|
|
6215
|
-
* @throws {RequiredError}
|
|
6216
|
-
*/
|
|
6217
|
-
createSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPlanResponse> {
|
|
6218
|
-
return localVarFp.createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
6219
|
-
},
|
|
6220
|
-
/**
|
|
6221
|
-
*
|
|
6222
|
-
* @summary Supprimer un plan (Admin)
|
|
6223
|
-
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6224
|
-
* @param {*} [options] Override http request option.
|
|
6225
|
-
* @throws {RequiredError}
|
|
6226
|
-
*/
|
|
6227
|
-
deleteSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6228
|
-
return localVarFp.deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
6229
|
-
},
|
|
6230
|
-
/**
|
|
6231
|
-
*
|
|
6232
|
-
* @summary Réactiver un plan (Admin)
|
|
6233
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6234
|
-
* @param {*} [options] Override http request option.
|
|
6235
|
-
* @throws {RequiredError}
|
|
6236
|
-
*/
|
|
6237
|
-
restoreSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6238
|
-
return localVarFp.restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
6239
|
-
},
|
|
6240
|
-
/**
|
|
6241
|
-
*
|
|
6242
|
-
* @summary Réactiver un prix (Admin)
|
|
6243
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
6244
|
-
* @param {*} [options] Override http request option.
|
|
6245
|
-
* @throws {RequiredError}
|
|
6246
|
-
*/
|
|
6247
|
-
restoreSubscriptionPriceForClubAdmin(requestParameters: AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6248
|
-
return localVarFp.restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
6249
|
-
},
|
|
6250
|
-
/**
|
|
6251
|
-
*
|
|
6252
|
-
* @summary Mettre à jour un plan (Admin)
|
|
6253
|
-
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6254
|
-
* @param {*} [options] Override http request option.
|
|
6255
|
-
* @throws {RequiredError}
|
|
6256
|
-
*/
|
|
6257
|
-
updateSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6258
|
-
return localVarFp.updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
6259
|
-
},
|
|
6260
|
-
};
|
|
6261
|
-
};
|
|
6262
|
-
|
|
6263
|
-
/**
|
|
6264
|
-
* Request parameters for archivePriceForSubscriptionPlanAdmin operation in AdminClubSubscriptionsApi.
|
|
6265
|
-
* @export
|
|
6266
|
-
* @interface AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest
|
|
6267
|
-
*/
|
|
6268
|
-
export interface AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest {
|
|
6269
|
-
/**
|
|
6270
|
-
*
|
|
6271
|
-
* @type {string}
|
|
6272
|
-
* @memberof AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdmin
|
|
6273
|
-
*/
|
|
6274
|
-
readonly id: string
|
|
6275
|
-
|
|
6276
|
-
/**
|
|
6277
|
-
*
|
|
6278
|
-
* @type {string}
|
|
6279
|
-
* @memberof AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdmin
|
|
6280
|
-
*/
|
|
6281
|
-
readonly priceId: string
|
|
6282
|
-
}
|
|
6283
|
-
|
|
6284
|
-
/**
|
|
6285
|
-
* Request parameters for createPriceForSubscriptionPlanAdmin operation in AdminClubSubscriptionsApi.
|
|
6286
|
-
* @export
|
|
6287
|
-
* @interface AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest
|
|
6288
|
-
*/
|
|
6289
|
-
export interface AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest {
|
|
6290
|
-
/**
|
|
6291
|
-
*
|
|
6292
|
-
* @type {string}
|
|
6293
|
-
* @memberof AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdmin
|
|
6294
|
-
*/
|
|
6295
|
-
readonly id: string
|
|
6296
|
-
|
|
6297
|
-
/**
|
|
6298
|
-
*
|
|
6299
|
-
* @type {string}
|
|
6300
|
-
* @memberof AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdmin
|
|
6301
|
-
*/
|
|
6302
|
-
readonly productId: string
|
|
6303
|
-
|
|
6304
|
-
/**
|
|
6305
|
-
*
|
|
6306
|
-
* @type {CreatePriceRequest}
|
|
6307
|
-
* @memberof AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdmin
|
|
6308
|
-
*/
|
|
6309
|
-
readonly createPriceRequest: CreatePriceRequest
|
|
6310
|
-
}
|
|
6311
|
-
|
|
6312
|
-
/**
|
|
6313
|
-
* Request parameters for createSubscriptionPlanForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6314
|
-
* @export
|
|
6315
|
-
* @interface AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest
|
|
6316
|
-
*/
|
|
6317
|
-
export interface AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest {
|
|
6318
|
-
/**
|
|
6319
|
-
*
|
|
6320
|
-
* @type {string}
|
|
6321
|
-
* @memberof AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdmin
|
|
6322
|
-
*/
|
|
6323
|
-
readonly id: string
|
|
6324
|
-
|
|
6325
|
-
/**
|
|
6326
|
-
*
|
|
6327
|
-
* @type {CreateSubscriptionPlanRequest}
|
|
6328
|
-
* @memberof AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdmin
|
|
6329
|
-
*/
|
|
6330
|
-
readonly createSubscriptionPlanRequest: CreateSubscriptionPlanRequest
|
|
6331
|
-
}
|
|
6332
|
-
|
|
6333
|
-
/**
|
|
6334
|
-
* Request parameters for deleteSubscriptionPlanForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6335
|
-
* @export
|
|
6336
|
-
* @interface AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest
|
|
6337
|
-
*/
|
|
6338
|
-
export interface AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest {
|
|
6339
|
-
/**
|
|
6340
|
-
*
|
|
6341
|
-
* @type {string}
|
|
6342
|
-
* @memberof AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdmin
|
|
6343
|
-
*/
|
|
6344
|
-
readonly id: string
|
|
6345
|
-
|
|
6346
|
-
/**
|
|
6347
|
-
*
|
|
6348
|
-
* @type {string}
|
|
6349
|
-
* @memberof AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdmin
|
|
6350
|
-
*/
|
|
6351
|
-
readonly productId: string
|
|
6352
|
-
}
|
|
6353
|
-
|
|
6354
|
-
/**
|
|
6355
|
-
* Request parameters for restoreSubscriptionPlanForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6356
|
-
* @export
|
|
6357
|
-
* @interface AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest
|
|
6358
|
-
*/
|
|
6359
|
-
export interface AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest {
|
|
6360
|
-
/**
|
|
6361
|
-
*
|
|
6362
|
-
* @type {string}
|
|
6363
|
-
* @memberof AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdmin
|
|
6364
|
-
*/
|
|
6365
|
-
readonly id: string
|
|
6366
|
-
|
|
6367
|
-
/**
|
|
6368
|
-
*
|
|
6369
|
-
* @type {string}
|
|
6370
|
-
* @memberof AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdmin
|
|
6371
|
-
*/
|
|
6372
|
-
readonly productId: string
|
|
6373
|
-
}
|
|
6374
|
-
|
|
6375
|
-
/**
|
|
6376
|
-
* Request parameters for restoreSubscriptionPriceForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6377
|
-
* @export
|
|
6378
|
-
* @interface AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest
|
|
6379
|
-
*/
|
|
6380
|
-
export interface AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest {
|
|
6381
|
-
/**
|
|
6382
|
-
*
|
|
6383
|
-
* @type {string}
|
|
6384
|
-
* @memberof AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdmin
|
|
6385
|
-
*/
|
|
6386
|
-
readonly id: string
|
|
6387
|
-
|
|
6388
|
-
/**
|
|
6389
|
-
*
|
|
6390
|
-
* @type {string}
|
|
6391
|
-
* @memberof AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdmin
|
|
6392
|
-
*/
|
|
6393
|
-
readonly priceId: string
|
|
6394
|
-
}
|
|
6395
|
-
|
|
6396
|
-
/**
|
|
6397
|
-
* Request parameters for updateSubscriptionPlanForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6398
|
-
* @export
|
|
6399
|
-
* @interface AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest
|
|
6400
|
-
*/
|
|
6401
|
-
export interface AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest {
|
|
6402
|
-
/**
|
|
6403
|
-
*
|
|
6404
|
-
* @type {string}
|
|
6405
|
-
* @memberof AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdmin
|
|
6406
|
-
*/
|
|
6407
|
-
readonly id: string
|
|
6408
|
-
|
|
6409
|
-
/**
|
|
6410
|
-
*
|
|
6411
|
-
* @type {string}
|
|
6412
|
-
* @memberof AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdmin
|
|
6413
|
-
*/
|
|
6414
|
-
readonly priceId: string
|
|
6415
|
-
|
|
6416
|
-
/**
|
|
6417
|
-
*
|
|
6418
|
-
* @type {UpdateSubscriptionPlanRequest}
|
|
6419
|
-
* @memberof AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdmin
|
|
6420
|
-
*/
|
|
6421
|
-
readonly updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest
|
|
6422
|
-
}
|
|
6423
|
-
|
|
6424
|
-
/**
|
|
6425
|
-
* AdminClubSubscriptionsApi - object-oriented interface
|
|
6426
|
-
* @export
|
|
6427
|
-
* @class AdminClubSubscriptionsApi
|
|
6428
|
-
* @extends {BaseAPI}
|
|
6429
|
-
*/
|
|
6430
|
-
export class AdminClubSubscriptionsApi extends BaseAPI {
|
|
6431
|
-
/**
|
|
6432
|
-
*
|
|
6433
|
-
* @summary Archiver un prix (Admin)
|
|
6434
|
-
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
6435
|
-
* @param {*} [options] Override http request option.
|
|
6436
|
-
* @throws {RequiredError}
|
|
6437
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6438
|
-
*/
|
|
6439
|
-
public archivePriceForSubscriptionPlanAdmin(requestParameters: AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6440
|
-
return AdminClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
6441
|
-
}
|
|
6442
|
-
|
|
6443
|
-
/**
|
|
6444
|
-
*
|
|
6445
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
6446
|
-
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
6447
|
-
* @param {*} [options] Override http request option.
|
|
6448
|
-
* @throws {RequiredError}
|
|
6449
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6450
|
-
*/
|
|
6451
|
-
public createPriceForSubscriptionPlanAdmin(requestParameters: AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6452
|
-
return AdminClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6453
|
-
}
|
|
6454
|
-
|
|
6455
|
-
/**
|
|
6456
|
-
*
|
|
6457
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
6458
|
-
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6459
|
-
* @param {*} [options] Override http request option.
|
|
6460
|
-
* @throws {RequiredError}
|
|
6461
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6462
|
-
*/
|
|
6463
|
-
public createSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6464
|
-
return AdminClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6465
|
-
}
|
|
6466
|
-
|
|
6467
|
-
/**
|
|
6468
|
-
*
|
|
6469
|
-
* @summary Supprimer un plan (Admin)
|
|
6470
|
-
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6471
|
-
* @param {*} [options] Override http request option.
|
|
6472
|
-
* @throws {RequiredError}
|
|
6473
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6474
|
-
*/
|
|
6475
|
-
public deleteSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6476
|
-
return AdminClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
6477
|
-
}
|
|
6478
|
-
|
|
6479
|
-
/**
|
|
6480
|
-
*
|
|
6481
|
-
* @summary Réactiver un plan (Admin)
|
|
6482
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6483
|
-
* @param {*} [options] Override http request option.
|
|
6484
|
-
* @throws {RequiredError}
|
|
6485
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6486
|
-
*/
|
|
6487
|
-
public restoreSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6488
|
-
return AdminClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
6489
|
-
}
|
|
6490
|
-
|
|
6491
|
-
/**
|
|
6492
|
-
*
|
|
6493
|
-
* @summary Réactiver un prix (Admin)
|
|
6494
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
6495
|
-
* @param {*} [options] Override http request option.
|
|
6496
|
-
* @throws {RequiredError}
|
|
6497
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6498
|
-
*/
|
|
6499
|
-
public restoreSubscriptionPriceForClubAdmin(requestParameters: AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6500
|
-
return AdminClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
6501
|
-
}
|
|
6502
|
-
|
|
6503
|
-
/**
|
|
6504
|
-
*
|
|
6505
|
-
* @summary Mettre à jour un plan (Admin)
|
|
6506
|
-
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6507
|
-
* @param {*} [options] Override http request option.
|
|
6508
|
-
* @throws {RequiredError}
|
|
6509
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6510
|
-
*/
|
|
6511
|
-
public updateSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6512
|
-
return AdminClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6513
|
-
}
|
|
6514
|
-
}
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
/**
|
|
6519
|
-
* AdminClubsApi - axios parameter creator
|
|
6520
|
-
* @export
|
|
6521
|
-
*/
|
|
6522
|
-
export const AdminClubsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6523
|
-
return {
|
|
6524
|
-
/**
|
|
6525
|
-
*
|
|
6526
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
6527
|
-
* @param {string} id ID du club
|
|
6528
|
-
* @param {*} [options] Override http request option.
|
|
6529
|
-
* @throws {RequiredError}
|
|
6530
|
-
*/
|
|
6531
|
-
deleteClub: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6532
|
-
// verify required parameter 'id' is not null or undefined
|
|
6533
|
-
assertParamExists('deleteClub', 'id', id)
|
|
6534
|
-
const localVarPath = `/api/clubs/{id}`
|
|
6535
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6536
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6537
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6538
|
-
let baseOptions;
|
|
6539
|
-
if (configuration) {
|
|
6540
|
-
baseOptions = configuration.baseOptions;
|
|
6541
|
-
}
|
|
6542
|
-
|
|
6543
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6544
|
-
const localVarHeaderParameter = {} as any;
|
|
6545
|
-
const localVarQueryParameter = {} as any;
|
|
6546
|
-
|
|
6547
|
-
// authentication bearerAuth required
|
|
6548
|
-
// http bearer authentication required
|
|
6549
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6554
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6555
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6556
|
-
|
|
6557
|
-
return {
|
|
6558
|
-
url: toPathString(localVarUrlObj),
|
|
6559
|
-
options: localVarRequestOptions,
|
|
6560
|
-
};
|
|
6561
|
-
},
|
|
6562
|
-
/**
|
|
6563
|
-
*
|
|
6564
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
6565
|
-
* @param {string} id
|
|
6566
|
-
* @param {*} [options] Override http request option.
|
|
6567
|
-
* @throws {RequiredError}
|
|
6568
|
-
*/
|
|
6569
|
-
getClubInfosAdmin: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6570
|
-
// verify required parameter 'id' is not null or undefined
|
|
6571
|
-
assertParamExists('getClubInfosAdmin', 'id', id)
|
|
6572
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
6573
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6574
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6575
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6576
|
-
let baseOptions;
|
|
6577
|
-
if (configuration) {
|
|
6578
|
-
baseOptions = configuration.baseOptions;
|
|
6579
|
-
}
|
|
6580
|
-
|
|
6581
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6582
|
-
const localVarHeaderParameter = {} as any;
|
|
6583
|
-
const localVarQueryParameter = {} as any;
|
|
6584
|
-
|
|
6585
|
-
// authentication bearerAuth required
|
|
6586
|
-
// http bearer authentication required
|
|
6587
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6592
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6593
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6594
|
-
|
|
6595
|
-
return {
|
|
6596
|
-
url: toPathString(localVarUrlObj),
|
|
6597
|
-
options: localVarRequestOptions,
|
|
6598
|
-
};
|
|
6599
|
-
},
|
|
6600
|
-
/**
|
|
6601
|
-
*
|
|
6602
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
6603
|
-
* @param {string} id
|
|
6604
|
-
* @param {object} body
|
|
6605
|
-
* @param {*} [options] Override http request option.
|
|
6606
|
-
* @throws {RequiredError}
|
|
6607
|
-
*/
|
|
6608
|
-
updateClubInfosAdmin: async (id: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6609
|
-
// verify required parameter 'id' is not null or undefined
|
|
6610
|
-
assertParamExists('updateClubInfosAdmin', 'id', id)
|
|
6611
|
-
// verify required parameter 'body' is not null or undefined
|
|
6612
|
-
assertParamExists('updateClubInfosAdmin', 'body', body)
|
|
6613
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
6614
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6615
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6616
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6617
|
-
let baseOptions;
|
|
6618
|
-
if (configuration) {
|
|
6619
|
-
baseOptions = configuration.baseOptions;
|
|
6620
|
-
}
|
|
6621
|
-
|
|
6622
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
6623
|
-
const localVarHeaderParameter = {} as any;
|
|
6624
|
-
const localVarQueryParameter = {} as any;
|
|
6625
|
-
|
|
6626
|
-
// authentication bearerAuth required
|
|
6627
|
-
// http bearer authentication required
|
|
6628
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6633
|
-
|
|
6634
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6635
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6636
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6637
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
6638
|
-
|
|
6639
|
-
return {
|
|
6640
|
-
url: toPathString(localVarUrlObj),
|
|
6641
|
-
options: localVarRequestOptions,
|
|
6642
|
-
};
|
|
6643
|
-
},
|
|
6644
|
-
}
|
|
6645
|
-
};
|
|
6646
|
-
|
|
6647
|
-
/**
|
|
6648
|
-
* AdminClubsApi - functional programming interface
|
|
6649
|
-
* @export
|
|
6650
|
-
*/
|
|
6651
|
-
export const AdminClubsApiFp = function(configuration?: Configuration) {
|
|
6652
|
-
const localVarAxiosParamCreator = AdminClubsApiAxiosParamCreator(configuration)
|
|
6653
|
-
return {
|
|
6654
|
-
/**
|
|
6655
|
-
*
|
|
6656
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
6657
|
-
* @param {string} id ID du club
|
|
6658
|
-
* @param {*} [options] Override http request option.
|
|
6659
|
-
* @throws {RequiredError}
|
|
6660
|
-
*/
|
|
6661
|
-
async deleteClub(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteClub200Response>> {
|
|
6662
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClub(id, options);
|
|
6663
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6664
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubsApi.deleteClub']?.[localVarOperationServerIndex]?.url;
|
|
6665
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6666
|
-
},
|
|
6667
|
-
/**
|
|
6668
|
-
*
|
|
6669
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
6670
|
-
* @param {string} id
|
|
6671
|
-
* @param {*} [options] Override http request option.
|
|
6672
|
-
* @throws {RequiredError}
|
|
6673
|
-
*/
|
|
6674
|
-
async getClubInfosAdmin(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
6675
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubInfosAdmin(id, options);
|
|
6676
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6677
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubsApi.getClubInfosAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6678
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6679
|
-
},
|
|
6680
|
-
/**
|
|
6681
|
-
*
|
|
6682
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
6683
|
-
* @param {string} id
|
|
6684
|
-
* @param {object} body
|
|
6685
|
-
* @param {*} [options] Override http request option.
|
|
6686
|
-
* @throws {RequiredError}
|
|
6687
|
-
*/
|
|
6688
|
-
async updateClubInfosAdmin(id: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
6689
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubInfosAdmin(id, body, options);
|
|
6690
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6691
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubsApi.updateClubInfosAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6692
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6693
|
-
},
|
|
6694
|
-
}
|
|
6695
|
-
};
|
|
6696
|
-
|
|
6697
|
-
/**
|
|
6698
|
-
* AdminClubsApi - factory interface
|
|
6699
|
-
* @export
|
|
6700
|
-
*/
|
|
6701
|
-
export const AdminClubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6702
|
-
const localVarFp = AdminClubsApiFp(configuration)
|
|
6703
|
-
return {
|
|
6704
|
-
/**
|
|
6705
|
-
*
|
|
6706
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
6707
|
-
* @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
|
|
6708
|
-
* @param {*} [options] Override http request option.
|
|
6709
|
-
* @throws {RequiredError}
|
|
6710
|
-
*/
|
|
6711
|
-
deleteClub(requestParameters: AdminClubsApiDeleteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteClub200Response> {
|
|
6712
|
-
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6713
|
-
},
|
|
6714
|
-
/**
|
|
6715
|
-
*
|
|
6716
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
6717
|
-
* @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
|
|
6718
|
-
* @param {*} [options] Override http request option.
|
|
6719
|
-
* @throws {RequiredError}
|
|
6720
|
-
*/
|
|
6721
|
-
getClubInfosAdmin(requestParameters: AdminClubsApiGetClubInfosAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
6722
|
-
return localVarFp.getClubInfosAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6723
|
-
},
|
|
6724
|
-
/**
|
|
6725
|
-
*
|
|
6726
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
6727
|
-
* @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
|
|
6728
|
-
* @param {*} [options] Override http request option.
|
|
6729
|
-
* @throws {RequiredError}
|
|
6730
|
-
*/
|
|
6731
|
-
updateClubInfosAdmin(requestParameters: AdminClubsApiUpdateClubInfosAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
6732
|
-
return localVarFp.updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
6733
|
-
},
|
|
6734
|
-
};
|
|
6735
|
-
};
|
|
6736
|
-
|
|
6737
|
-
/**
|
|
6738
|
-
* Request parameters for deleteClub operation in AdminClubsApi.
|
|
6739
|
-
* @export
|
|
6740
|
-
* @interface AdminClubsApiDeleteClubRequest
|
|
6741
|
-
*/
|
|
6742
|
-
export interface AdminClubsApiDeleteClubRequest {
|
|
4708
|
+
'firstName'?: string;
|
|
6743
4709
|
/**
|
|
6744
|
-
*
|
|
4710
|
+
*
|
|
6745
4711
|
* @type {string}
|
|
6746
|
-
* @memberof
|
|
4712
|
+
* @memberof UserStaffResponse
|
|
6747
4713
|
*/
|
|
6748
|
-
|
|
6749
|
-
}
|
|
6750
|
-
|
|
6751
|
-
/**
|
|
6752
|
-
* Request parameters for getClubInfosAdmin operation in AdminClubsApi.
|
|
6753
|
-
* @export
|
|
6754
|
-
* @interface AdminClubsApiGetClubInfosAdminRequest
|
|
6755
|
-
*/
|
|
6756
|
-
export interface AdminClubsApiGetClubInfosAdminRequest {
|
|
4714
|
+
'lastName'?: string;
|
|
6757
4715
|
/**
|
|
6758
4716
|
*
|
|
6759
4717
|
* @type {string}
|
|
6760
|
-
* @memberof
|
|
4718
|
+
* @memberof UserStaffResponse
|
|
6761
4719
|
*/
|
|
6762
|
-
|
|
4720
|
+
'profilePicture'?: string | null;
|
|
4721
|
+
/**
|
|
4722
|
+
*
|
|
4723
|
+
* @type {boolean}
|
|
4724
|
+
* @memberof UserStaffResponse
|
|
4725
|
+
*/
|
|
4726
|
+
'isAccountVerified'?: boolean;
|
|
4727
|
+
/**
|
|
4728
|
+
*
|
|
4729
|
+
* @type {boolean}
|
|
4730
|
+
* @memberof UserStaffResponse
|
|
4731
|
+
*/
|
|
4732
|
+
'isProfileVisible'?: boolean;
|
|
6763
4733
|
}
|
|
6764
|
-
|
|
6765
4734
|
/**
|
|
6766
|
-
*
|
|
4735
|
+
*
|
|
6767
4736
|
* @export
|
|
6768
|
-
* @interface
|
|
4737
|
+
* @interface YearlyTurnoverResponse
|
|
6769
4738
|
*/
|
|
6770
|
-
export interface
|
|
4739
|
+
export interface YearlyTurnoverResponse {
|
|
6771
4740
|
/**
|
|
6772
4741
|
*
|
|
6773
|
-
* @type {
|
|
6774
|
-
* @memberof
|
|
4742
|
+
* @type {number}
|
|
4743
|
+
* @memberof YearlyTurnoverResponse
|
|
6775
4744
|
*/
|
|
6776
|
-
|
|
6777
|
-
|
|
4745
|
+
'year'?: number;
|
|
6778
4746
|
/**
|
|
6779
4747
|
*
|
|
6780
|
-
* @type {
|
|
6781
|
-
* @memberof
|
|
4748
|
+
* @type {number}
|
|
4749
|
+
* @memberof YearlyTurnoverResponse
|
|
4750
|
+
*/
|
|
4751
|
+
'totalTurnover'?: number;
|
|
4752
|
+
/**
|
|
4753
|
+
*
|
|
4754
|
+
* @type {number}
|
|
4755
|
+
* @memberof YearlyTurnoverResponse
|
|
4756
|
+
*/
|
|
4757
|
+
'totalInvoices'?: number;
|
|
4758
|
+
/**
|
|
4759
|
+
*
|
|
4760
|
+
* @type {Array<YearlyTurnoverResponseMonthlyBreakdownInner>}
|
|
4761
|
+
* @memberof YearlyTurnoverResponse
|
|
6782
4762
|
*/
|
|
6783
|
-
|
|
4763
|
+
'monthlyBreakdown'?: Array<YearlyTurnoverResponseMonthlyBreakdownInner>;
|
|
6784
4764
|
}
|
|
6785
|
-
|
|
6786
4765
|
/**
|
|
6787
|
-
*
|
|
4766
|
+
*
|
|
6788
4767
|
* @export
|
|
6789
|
-
* @
|
|
6790
|
-
* @extends {BaseAPI}
|
|
4768
|
+
* @interface YearlyTurnoverResponseMonthlyBreakdownInner
|
|
6791
4769
|
*/
|
|
6792
|
-
export
|
|
4770
|
+
export interface YearlyTurnoverResponseMonthlyBreakdownInner {
|
|
6793
4771
|
/**
|
|
6794
4772
|
*
|
|
6795
|
-
* @
|
|
6796
|
-
* @
|
|
6797
|
-
* @param {*} [options] Override http request option.
|
|
6798
|
-
* @throws {RequiredError}
|
|
6799
|
-
* @memberof AdminClubsApi
|
|
4773
|
+
* @type {number}
|
|
4774
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
6800
4775
|
*/
|
|
6801
|
-
|
|
6802
|
-
return AdminClubsApiFp(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6803
|
-
}
|
|
6804
|
-
|
|
4776
|
+
'month'?: number;
|
|
6805
4777
|
/**
|
|
6806
4778
|
*
|
|
6807
|
-
* @
|
|
6808
|
-
* @
|
|
6809
|
-
* @param {*} [options] Override http request option.
|
|
6810
|
-
* @throws {RequiredError}
|
|
6811
|
-
* @memberof AdminClubsApi
|
|
4779
|
+
* @type {number}
|
|
4780
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
6812
4781
|
*/
|
|
6813
|
-
|
|
6814
|
-
return AdminClubsApiFp(this.configuration).getClubInfosAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6815
|
-
}
|
|
6816
|
-
|
|
4782
|
+
'monthlyTurnover'?: number;
|
|
6817
4783
|
/**
|
|
6818
4784
|
*
|
|
6819
|
-
* @
|
|
6820
|
-
* @
|
|
6821
|
-
* @param {*} [options] Override http request option.
|
|
6822
|
-
* @throws {RequiredError}
|
|
6823
|
-
* @memberof AdminClubsApi
|
|
4785
|
+
* @type {number}
|
|
4786
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
6824
4787
|
*/
|
|
6825
|
-
|
|
6826
|
-
return AdminClubsApiFp(this.configuration).updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
6827
|
-
}
|
|
4788
|
+
'invoiceCount'?: number;
|
|
6828
4789
|
}
|
|
6829
4790
|
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
4791
|
/**
|
|
6833
4792
|
* ClubAnalyticsApi - axios parameter creator
|
|
6834
4793
|
* @export
|
|
@@ -7933,7 +5892,79 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7933
5892
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7934
5893
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7935
5894
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7936
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createCourtRequest, localVarRequestOptions, configuration)
|
|
5895
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCourtRequest, localVarRequestOptions, configuration)
|
|
5896
|
+
|
|
5897
|
+
return {
|
|
5898
|
+
url: toPathString(localVarUrlObj),
|
|
5899
|
+
options: localVarRequestOptions,
|
|
5900
|
+
};
|
|
5901
|
+
},
|
|
5902
|
+
/**
|
|
5903
|
+
*
|
|
5904
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
5905
|
+
* @param {string} courtId ID du terrain à supprimer
|
|
5906
|
+
* @param {*} [options] Override http request option.
|
|
5907
|
+
* @throws {RequiredError}
|
|
5908
|
+
*/
|
|
5909
|
+
deleteCourt: async (courtId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5910
|
+
// verify required parameter 'courtId' is not null or undefined
|
|
5911
|
+
assertParamExists('deleteCourt', 'courtId', courtId)
|
|
5912
|
+
const localVarPath = `/api/clubs/courts/{courtId}`
|
|
5913
|
+
.replace(`{${"courtId"}}`, encodeURIComponent(String(courtId)));
|
|
5914
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5915
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5916
|
+
let baseOptions;
|
|
5917
|
+
if (configuration) {
|
|
5918
|
+
baseOptions = configuration.baseOptions;
|
|
5919
|
+
}
|
|
5920
|
+
|
|
5921
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5922
|
+
const localVarHeaderParameter = {} as any;
|
|
5923
|
+
const localVarQueryParameter = {} as any;
|
|
5924
|
+
|
|
5925
|
+
// authentication bearerAuth required
|
|
5926
|
+
// http bearer authentication required
|
|
5927
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5928
|
+
|
|
5929
|
+
|
|
5930
|
+
|
|
5931
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5932
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5933
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5934
|
+
|
|
5935
|
+
return {
|
|
5936
|
+
url: toPathString(localVarUrlObj),
|
|
5937
|
+
options: localVarRequestOptions,
|
|
5938
|
+
};
|
|
5939
|
+
},
|
|
5940
|
+
/**
|
|
5941
|
+
*
|
|
5942
|
+
* @summary Récupérer tous les terrains du club courant
|
|
5943
|
+
* @param {*} [options] Override http request option.
|
|
5944
|
+
* @throws {RequiredError}
|
|
5945
|
+
*/
|
|
5946
|
+
getCourtsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5947
|
+
const localVarPath = `/api/clubs/courts`;
|
|
5948
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5949
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5950
|
+
let baseOptions;
|
|
5951
|
+
if (configuration) {
|
|
5952
|
+
baseOptions = configuration.baseOptions;
|
|
5953
|
+
}
|
|
5954
|
+
|
|
5955
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5956
|
+
const localVarHeaderParameter = {} as any;
|
|
5957
|
+
const localVarQueryParameter = {} as any;
|
|
5958
|
+
|
|
5959
|
+
// authentication bearerAuth required
|
|
5960
|
+
// http bearer authentication required
|
|
5961
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5962
|
+
|
|
5963
|
+
|
|
5964
|
+
|
|
5965
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5966
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5967
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7937
5968
|
|
|
7938
5969
|
return {
|
|
7939
5970
|
url: toPathString(localVarUrlObj),
|
|
@@ -7942,12 +5973,19 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7942
5973
|
},
|
|
7943
5974
|
/**
|
|
7944
5975
|
*
|
|
7945
|
-
* @summary
|
|
5976
|
+
* @summary Mettre à jour un terrain du club courant
|
|
5977
|
+
* @param {string} courtId ID du terrain à mettre à jour
|
|
5978
|
+
* @param {UpdateCourtRequest} updateCourtRequest
|
|
7946
5979
|
* @param {*} [options] Override http request option.
|
|
7947
5980
|
* @throws {RequiredError}
|
|
7948
5981
|
*/
|
|
7949
|
-
|
|
7950
|
-
|
|
5982
|
+
updateCourt: async (courtId: string, updateCourtRequest: UpdateCourtRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5983
|
+
// verify required parameter 'courtId' is not null or undefined
|
|
5984
|
+
assertParamExists('updateCourt', 'courtId', courtId)
|
|
5985
|
+
// verify required parameter 'updateCourtRequest' is not null or undefined
|
|
5986
|
+
assertParamExists('updateCourt', 'updateCourtRequest', updateCourtRequest)
|
|
5987
|
+
const localVarPath = `/api/clubs/courts/{courtId}`
|
|
5988
|
+
.replace(`{${"courtId"}}`, encodeURIComponent(String(courtId)));
|
|
7951
5989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7952
5990
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7953
5991
|
let baseOptions;
|
|
@@ -7955,7 +5993,7 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7955
5993
|
baseOptions = configuration.baseOptions;
|
|
7956
5994
|
}
|
|
7957
5995
|
|
|
7958
|
-
const localVarRequestOptions = { method: '
|
|
5996
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
7959
5997
|
const localVarHeaderParameter = {} as any;
|
|
7960
5998
|
const localVarQueryParameter = {} as any;
|
|
7961
5999
|
|
|
@@ -7965,9 +6003,12 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7965
6003
|
|
|
7966
6004
|
|
|
7967
6005
|
|
|
6006
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6007
|
+
|
|
7968
6008
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7969
6009
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7970
6010
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6011
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCourtRequest, localVarRequestOptions, configuration)
|
|
7971
6012
|
|
|
7972
6013
|
return {
|
|
7973
6014
|
url: toPathString(localVarUrlObj),
|
|
@@ -7997,6 +6038,19 @@ export const ManagerClubCourtsApiFp = function(configuration?: Configuration) {
|
|
|
7997
6038
|
const localVarOperationServerBasePath = operationServerMap['ManagerClubCourtsApi.createCourtForClub']?.[localVarOperationServerIndex]?.url;
|
|
7998
6039
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7999
6040
|
},
|
|
6041
|
+
/**
|
|
6042
|
+
*
|
|
6043
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
6044
|
+
* @param {string} courtId ID du terrain à supprimer
|
|
6045
|
+
* @param {*} [options] Override http request option.
|
|
6046
|
+
* @throws {RequiredError}
|
|
6047
|
+
*/
|
|
6048
|
+
async deleteCourt(courtId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CourtDeleteResponse>> {
|
|
6049
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCourt(courtId, options);
|
|
6050
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6051
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerClubCourtsApi.deleteCourt']?.[localVarOperationServerIndex]?.url;
|
|
6052
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6053
|
+
},
|
|
8000
6054
|
/**
|
|
8001
6055
|
*
|
|
8002
6056
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -8009,6 +6063,20 @@ export const ManagerClubCourtsApiFp = function(configuration?: Configuration) {
|
|
|
8009
6063
|
const localVarOperationServerBasePath = operationServerMap['ManagerClubCourtsApi.getCourtsByClub']?.[localVarOperationServerIndex]?.url;
|
|
8010
6064
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8011
6065
|
},
|
|
6066
|
+
/**
|
|
6067
|
+
*
|
|
6068
|
+
* @summary Mettre à jour un terrain du club courant
|
|
6069
|
+
* @param {string} courtId ID du terrain à mettre à jour
|
|
6070
|
+
* @param {UpdateCourtRequest} updateCourtRequest
|
|
6071
|
+
* @param {*} [options] Override http request option.
|
|
6072
|
+
* @throws {RequiredError}
|
|
6073
|
+
*/
|
|
6074
|
+
async updateCourt(courtId: string, updateCourtRequest: UpdateCourtRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CourtResponse>> {
|
|
6075
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCourt(courtId, updateCourtRequest, options);
|
|
6076
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6077
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerClubCourtsApi.updateCourt']?.[localVarOperationServerIndex]?.url;
|
|
6078
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6079
|
+
},
|
|
8012
6080
|
}
|
|
8013
6081
|
};
|
|
8014
6082
|
|
|
@@ -8029,6 +6097,16 @@ export const ManagerClubCourtsApiFactory = function (configuration?: Configurati
|
|
|
8029
6097
|
createCourtForClub(requestParameters: ManagerClubCourtsApiCreateCourtForClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<CourtResponse> {
|
|
8030
6098
|
return localVarFp.createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
8031
6099
|
},
|
|
6100
|
+
/**
|
|
6101
|
+
*
|
|
6102
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
6103
|
+
* @param {ManagerClubCourtsApiDeleteCourtRequest} requestParameters Request parameters.
|
|
6104
|
+
* @param {*} [options] Override http request option.
|
|
6105
|
+
* @throws {RequiredError}
|
|
6106
|
+
*/
|
|
6107
|
+
deleteCourt(requestParameters: ManagerClubCourtsApiDeleteCourtRequest, options?: RawAxiosRequestConfig): AxiosPromise<CourtDeleteResponse> {
|
|
6108
|
+
return localVarFp.deleteCourt(requestParameters.courtId, options).then((request) => request(axios, basePath));
|
|
6109
|
+
},
|
|
8032
6110
|
/**
|
|
8033
6111
|
*
|
|
8034
6112
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -8038,6 +6116,16 @@ export const ManagerClubCourtsApiFactory = function (configuration?: Configurati
|
|
|
8038
6116
|
getCourtsByClub(options?: RawAxiosRequestConfig): AxiosPromise<CourtsResponse> {
|
|
8039
6117
|
return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
|
|
8040
6118
|
},
|
|
6119
|
+
/**
|
|
6120
|
+
*
|
|
6121
|
+
* @summary Mettre à jour un terrain du club courant
|
|
6122
|
+
* @param {ManagerClubCourtsApiUpdateCourtRequest} requestParameters Request parameters.
|
|
6123
|
+
* @param {*} [options] Override http request option.
|
|
6124
|
+
* @throws {RequiredError}
|
|
6125
|
+
*/
|
|
6126
|
+
updateCourt(requestParameters: ManagerClubCourtsApiUpdateCourtRequest, options?: RawAxiosRequestConfig): AxiosPromise<CourtResponse> {
|
|
6127
|
+
return localVarFp.updateCourt(requestParameters.courtId, requestParameters.updateCourtRequest, options).then((request) => request(axios, basePath));
|
|
6128
|
+
},
|
|
8041
6129
|
};
|
|
8042
6130
|
};
|
|
8043
6131
|
|
|
@@ -8055,6 +6143,41 @@ export interface ManagerClubCourtsApiCreateCourtForClubRequest {
|
|
|
8055
6143
|
readonly createCourtRequest: CreateCourtRequest
|
|
8056
6144
|
}
|
|
8057
6145
|
|
|
6146
|
+
/**
|
|
6147
|
+
* Request parameters for deleteCourt operation in ManagerClubCourtsApi.
|
|
6148
|
+
* @export
|
|
6149
|
+
* @interface ManagerClubCourtsApiDeleteCourtRequest
|
|
6150
|
+
*/
|
|
6151
|
+
export interface ManagerClubCourtsApiDeleteCourtRequest {
|
|
6152
|
+
/**
|
|
6153
|
+
* ID du terrain à supprimer
|
|
6154
|
+
* @type {string}
|
|
6155
|
+
* @memberof ManagerClubCourtsApiDeleteCourt
|
|
6156
|
+
*/
|
|
6157
|
+
readonly courtId: string
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6160
|
+
/**
|
|
6161
|
+
* Request parameters for updateCourt operation in ManagerClubCourtsApi.
|
|
6162
|
+
* @export
|
|
6163
|
+
* @interface ManagerClubCourtsApiUpdateCourtRequest
|
|
6164
|
+
*/
|
|
6165
|
+
export interface ManagerClubCourtsApiUpdateCourtRequest {
|
|
6166
|
+
/**
|
|
6167
|
+
* ID du terrain à mettre à jour
|
|
6168
|
+
* @type {string}
|
|
6169
|
+
* @memberof ManagerClubCourtsApiUpdateCourt
|
|
6170
|
+
*/
|
|
6171
|
+
readonly courtId: string
|
|
6172
|
+
|
|
6173
|
+
/**
|
|
6174
|
+
*
|
|
6175
|
+
* @type {UpdateCourtRequest}
|
|
6176
|
+
* @memberof ManagerClubCourtsApiUpdateCourt
|
|
6177
|
+
*/
|
|
6178
|
+
readonly updateCourtRequest: UpdateCourtRequest
|
|
6179
|
+
}
|
|
6180
|
+
|
|
8058
6181
|
/**
|
|
8059
6182
|
* ManagerClubCourtsApi - object-oriented interface
|
|
8060
6183
|
* @export
|
|
@@ -8074,6 +6197,18 @@ export class ManagerClubCourtsApi extends BaseAPI {
|
|
|
8074
6197
|
return ManagerClubCourtsApiFp(this.configuration).createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8075
6198
|
}
|
|
8076
6199
|
|
|
6200
|
+
/**
|
|
6201
|
+
*
|
|
6202
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
6203
|
+
* @param {ManagerClubCourtsApiDeleteCourtRequest} requestParameters Request parameters.
|
|
6204
|
+
* @param {*} [options] Override http request option.
|
|
6205
|
+
* @throws {RequiredError}
|
|
6206
|
+
* @memberof ManagerClubCourtsApi
|
|
6207
|
+
*/
|
|
6208
|
+
public deleteCourt(requestParameters: ManagerClubCourtsApiDeleteCourtRequest, options?: RawAxiosRequestConfig) {
|
|
6209
|
+
return ManagerClubCourtsApiFp(this.configuration).deleteCourt(requestParameters.courtId, options).then((request) => request(this.axios, this.basePath));
|
|
6210
|
+
}
|
|
6211
|
+
|
|
8077
6212
|
/**
|
|
8078
6213
|
*
|
|
8079
6214
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -8084,6 +6219,18 @@ export class ManagerClubCourtsApi extends BaseAPI {
|
|
|
8084
6219
|
public getCourtsByClub(options?: RawAxiosRequestConfig) {
|
|
8085
6220
|
return ManagerClubCourtsApiFp(this.configuration).getCourtsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
8086
6221
|
}
|
|
6222
|
+
|
|
6223
|
+
/**
|
|
6224
|
+
*
|
|
6225
|
+
* @summary Mettre à jour un terrain du club courant
|
|
6226
|
+
* @param {ManagerClubCourtsApiUpdateCourtRequest} requestParameters Request parameters.
|
|
6227
|
+
* @param {*} [options] Override http request option.
|
|
6228
|
+
* @throws {RequiredError}
|
|
6229
|
+
* @memberof ManagerClubCourtsApi
|
|
6230
|
+
*/
|
|
6231
|
+
public updateCourt(requestParameters: ManagerClubCourtsApiUpdateCourtRequest, options?: RawAxiosRequestConfig) {
|
|
6232
|
+
return ManagerClubCourtsApiFp(this.configuration).updateCourt(requestParameters.courtId, requestParameters.updateCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6233
|
+
}
|
|
8087
6234
|
}
|
|
8088
6235
|
|
|
8089
6236
|
|
|
@@ -10298,46 +8445,6 @@ export class ManagerEventsApi extends BaseAPI {
|
|
|
10298
8445
|
*/
|
|
10299
8446
|
export const ManagerSportsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10300
8447
|
return {
|
|
10301
|
-
/**
|
|
10302
|
-
*
|
|
10303
|
-
* @summary Créer un sport dans un club
|
|
10304
|
-
* @param {CreateSportRequest} createSportRequest
|
|
10305
|
-
* @param {*} [options] Override http request option.
|
|
10306
|
-
* @throws {RequiredError}
|
|
10307
|
-
*/
|
|
10308
|
-
createSport: async (createSportRequest: CreateSportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10309
|
-
// verify required parameter 'createSportRequest' is not null or undefined
|
|
10310
|
-
assertParamExists('createSport', 'createSportRequest', createSportRequest)
|
|
10311
|
-
const localVarPath = `/api/sports`;
|
|
10312
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10313
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10314
|
-
let baseOptions;
|
|
10315
|
-
if (configuration) {
|
|
10316
|
-
baseOptions = configuration.baseOptions;
|
|
10317
|
-
}
|
|
10318
|
-
|
|
10319
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10320
|
-
const localVarHeaderParameter = {} as any;
|
|
10321
|
-
const localVarQueryParameter = {} as any;
|
|
10322
|
-
|
|
10323
|
-
// authentication bearerAuth required
|
|
10324
|
-
// http bearer authentication required
|
|
10325
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10330
|
-
|
|
10331
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10332
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10333
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10334
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration)
|
|
10335
|
-
|
|
10336
|
-
return {
|
|
10337
|
-
url: toPathString(localVarUrlObj),
|
|
10338
|
-
options: localVarRequestOptions,
|
|
10339
|
-
};
|
|
10340
|
-
},
|
|
10341
8448
|
/**
|
|
10342
8449
|
*
|
|
10343
8450
|
* @summary Supprimer un sport
|
|
@@ -10430,19 +8537,6 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
10430
8537
|
export const ManagerSportsApiFp = function(configuration?: Configuration) {
|
|
10431
8538
|
const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration)
|
|
10432
8539
|
return {
|
|
10433
|
-
/**
|
|
10434
|
-
*
|
|
10435
|
-
* @summary Créer un sport dans un club
|
|
10436
|
-
* @param {CreateSportRequest} createSportRequest
|
|
10437
|
-
* @param {*} [options] Override http request option.
|
|
10438
|
-
* @throws {RequiredError}
|
|
10439
|
-
*/
|
|
10440
|
-
async createSport(createSportRequest: CreateSportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SportResponse>> {
|
|
10441
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createSport(createSportRequest, options);
|
|
10442
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10443
|
-
const localVarOperationServerBasePath = operationServerMap['ManagerSportsApi.createSport']?.[localVarOperationServerIndex]?.url;
|
|
10444
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10445
|
-
},
|
|
10446
8540
|
/**
|
|
10447
8541
|
*
|
|
10448
8542
|
* @summary Supprimer un sport
|
|
@@ -10480,16 +8574,6 @@ export const ManagerSportsApiFp = function(configuration?: Configuration) {
|
|
|
10480
8574
|
export const ManagerSportsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10481
8575
|
const localVarFp = ManagerSportsApiFp(configuration)
|
|
10482
8576
|
return {
|
|
10483
|
-
/**
|
|
10484
|
-
*
|
|
10485
|
-
* @summary Créer un sport dans un club
|
|
10486
|
-
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
10487
|
-
* @param {*} [options] Override http request option.
|
|
10488
|
-
* @throws {RequiredError}
|
|
10489
|
-
*/
|
|
10490
|
-
createSport(requestParameters: ManagerSportsApiCreateSportRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportResponse> {
|
|
10491
|
-
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
10492
|
-
},
|
|
10493
8577
|
/**
|
|
10494
8578
|
*
|
|
10495
8579
|
* @summary Supprimer un sport
|
|
@@ -10513,20 +8597,6 @@ export const ManagerSportsApiFactory = function (configuration?: Configuration,
|
|
|
10513
8597
|
};
|
|
10514
8598
|
};
|
|
10515
8599
|
|
|
10516
|
-
/**
|
|
10517
|
-
* Request parameters for createSport operation in ManagerSportsApi.
|
|
10518
|
-
* @export
|
|
10519
|
-
* @interface ManagerSportsApiCreateSportRequest
|
|
10520
|
-
*/
|
|
10521
|
-
export interface ManagerSportsApiCreateSportRequest {
|
|
10522
|
-
/**
|
|
10523
|
-
*
|
|
10524
|
-
* @type {CreateSportRequest}
|
|
10525
|
-
* @memberof ManagerSportsApiCreateSport
|
|
10526
|
-
*/
|
|
10527
|
-
readonly createSportRequest: CreateSportRequest
|
|
10528
|
-
}
|
|
10529
|
-
|
|
10530
8600
|
/**
|
|
10531
8601
|
* Request parameters for deleteSport operation in ManagerSportsApi.
|
|
10532
8602
|
* @export
|
|
@@ -10569,18 +8639,6 @@ export interface ManagerSportsApiUpdateSportRequest {
|
|
|
10569
8639
|
* @extends {BaseAPI}
|
|
10570
8640
|
*/
|
|
10571
8641
|
export class ManagerSportsApi extends BaseAPI {
|
|
10572
|
-
/**
|
|
10573
|
-
*
|
|
10574
|
-
* @summary Créer un sport dans un club
|
|
10575
|
-
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
10576
|
-
* @param {*} [options] Override http request option.
|
|
10577
|
-
* @throws {RequiredError}
|
|
10578
|
-
* @memberof ManagerSportsApi
|
|
10579
|
-
*/
|
|
10580
|
-
public createSport(requestParameters: ManagerSportsApiCreateSportRequest, options?: RawAxiosRequestConfig) {
|
|
10581
|
-
return ManagerSportsApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10582
|
-
}
|
|
10583
|
-
|
|
10584
8642
|
/**
|
|
10585
8643
|
*
|
|
10586
8644
|
* @summary Supprimer un sport
|
|
@@ -10614,6 +8672,40 @@ export class ManagerSportsApi extends BaseAPI {
|
|
|
10614
8672
|
*/
|
|
10615
8673
|
export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10616
8674
|
return {
|
|
8675
|
+
/**
|
|
8676
|
+
*
|
|
8677
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
8678
|
+
* @param {*} [options] Override http request option.
|
|
8679
|
+
* @throws {RequiredError}
|
|
8680
|
+
*/
|
|
8681
|
+
getClubPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8682
|
+
const localVarPath = `/api/analytics/players`;
|
|
8683
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8684
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8685
|
+
let baseOptions;
|
|
8686
|
+
if (configuration) {
|
|
8687
|
+
baseOptions = configuration.baseOptions;
|
|
8688
|
+
}
|
|
8689
|
+
|
|
8690
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8691
|
+
const localVarHeaderParameter = {} as any;
|
|
8692
|
+
const localVarQueryParameter = {} as any;
|
|
8693
|
+
|
|
8694
|
+
// authentication bearerAuth required
|
|
8695
|
+
// http bearer authentication required
|
|
8696
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8697
|
+
|
|
8698
|
+
|
|
8699
|
+
|
|
8700
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8701
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8702
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8703
|
+
|
|
8704
|
+
return {
|
|
8705
|
+
url: toPathString(localVarUrlObj),
|
|
8706
|
+
options: localVarRequestOptions,
|
|
8707
|
+
};
|
|
8708
|
+
},
|
|
10617
8709
|
/**
|
|
10618
8710
|
*
|
|
10619
8711
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -10694,6 +8786,18 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration?:
|
|
|
10694
8786
|
export const StaffClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
10695
8787
|
const localVarAxiosParamCreator = StaffClubAnalyticsApiAxiosParamCreator(configuration)
|
|
10696
8788
|
return {
|
|
8789
|
+
/**
|
|
8790
|
+
*
|
|
8791
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
8792
|
+
* @param {*} [options] Override http request option.
|
|
8793
|
+
* @throws {RequiredError}
|
|
8794
|
+
*/
|
|
8795
|
+
async getClubPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubPlayers200Response>> {
|
|
8796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayers(options);
|
|
8797
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8798
|
+
const localVarOperationServerBasePath = operationServerMap['StaffClubAnalyticsApi.getClubPlayers']?.[localVarOperationServerIndex]?.url;
|
|
8799
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8800
|
+
},
|
|
10697
8801
|
/**
|
|
10698
8802
|
*
|
|
10699
8803
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -10729,6 +8833,15 @@ export const StaffClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
10729
8833
|
export const StaffClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10730
8834
|
const localVarFp = StaffClubAnalyticsApiFp(configuration)
|
|
10731
8835
|
return {
|
|
8836
|
+
/**
|
|
8837
|
+
*
|
|
8838
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
8839
|
+
* @param {*} [options] Override http request option.
|
|
8840
|
+
* @throws {RequiredError}
|
|
8841
|
+
*/
|
|
8842
|
+
getClubPlayers(options?: RawAxiosRequestConfig): AxiosPromise<GetClubPlayers200Response> {
|
|
8843
|
+
return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
|
|
8844
|
+
},
|
|
10732
8845
|
/**
|
|
10733
8846
|
*
|
|
10734
8847
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -10772,6 +8885,17 @@ export interface StaffClubAnalyticsApiGetNumberOfClubUsersRequest {
|
|
|
10772
8885
|
* @extends {BaseAPI}
|
|
10773
8886
|
*/
|
|
10774
8887
|
export class StaffClubAnalyticsApi extends BaseAPI {
|
|
8888
|
+
/**
|
|
8889
|
+
*
|
|
8890
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
8891
|
+
* @param {*} [options] Override http request option.
|
|
8892
|
+
* @throws {RequiredError}
|
|
8893
|
+
* @memberof StaffClubAnalyticsApi
|
|
8894
|
+
*/
|
|
8895
|
+
public getClubPlayers(options?: RawAxiosRequestConfig) {
|
|
8896
|
+
return StaffClubAnalyticsApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
8897
|
+
}
|
|
8898
|
+
|
|
10775
8899
|
/**
|
|
10776
8900
|
*
|
|
10777
8901
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -10946,13 +9070,10 @@ export const StaffClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
10946
9070
|
/**
|
|
10947
9071
|
*
|
|
10948
9072
|
* @summary Récupère les paramètres d’un club
|
|
10949
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
10950
9073
|
* @param {*} [options] Override http request option.
|
|
10951
9074
|
* @throws {RequiredError}
|
|
10952
9075
|
*/
|
|
10953
|
-
getClubSettings: async (
|
|
10954
|
-
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
10955
|
-
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest)
|
|
9076
|
+
getClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10956
9077
|
const localVarPath = `/api/club-settings`;
|
|
10957
9078
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10958
9079
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -10971,12 +9092,43 @@ export const StaffClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
10971
9092
|
|
|
10972
9093
|
|
|
10973
9094
|
|
|
10974
|
-
|
|
9095
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9096
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9097
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9098
|
+
|
|
9099
|
+
return {
|
|
9100
|
+
url: toPathString(localVarUrlObj),
|
|
9101
|
+
options: localVarRequestOptions,
|
|
9102
|
+
};
|
|
9103
|
+
},
|
|
9104
|
+
/**
|
|
9105
|
+
*
|
|
9106
|
+
* @summary Récupère la liste des sports du club courant
|
|
9107
|
+
* @param {*} [options] Override http request option.
|
|
9108
|
+
* @throws {RequiredError}
|
|
9109
|
+
*/
|
|
9110
|
+
getSports: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9111
|
+
const localVarPath = `/api/sports`;
|
|
9112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9113
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9114
|
+
let baseOptions;
|
|
9115
|
+
if (configuration) {
|
|
9116
|
+
baseOptions = configuration.baseOptions;
|
|
9117
|
+
}
|
|
9118
|
+
|
|
9119
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9120
|
+
const localVarHeaderParameter = {} as any;
|
|
9121
|
+
const localVarQueryParameter = {} as any;
|
|
9122
|
+
|
|
9123
|
+
// authentication bearerAuth required
|
|
9124
|
+
// http bearer authentication required
|
|
9125
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9126
|
+
|
|
10975
9127
|
|
|
9128
|
+
|
|
10976
9129
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10977
9130
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10978
9131
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10979
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration)
|
|
10980
9132
|
|
|
10981
9133
|
return {
|
|
10982
9134
|
url: toPathString(localVarUrlObj),
|
|
@@ -11008,16 +9160,27 @@ export const StaffClubsApiFp = function(configuration?: Configuration) {
|
|
|
11008
9160
|
/**
|
|
11009
9161
|
*
|
|
11010
9162
|
* @summary Récupère les paramètres d’un club
|
|
11011
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
11012
9163
|
* @param {*} [options] Override http request option.
|
|
11013
9164
|
* @throws {RequiredError}
|
|
11014
9165
|
*/
|
|
11015
|
-
async getClubSettings(
|
|
11016
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(
|
|
9166
|
+
async getClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
|
|
9167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(options);
|
|
11017
9168
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11018
9169
|
const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
|
|
11019
9170
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11020
9171
|
},
|
|
9172
|
+
/**
|
|
9173
|
+
*
|
|
9174
|
+
* @summary Récupère la liste des sports du club courant
|
|
9175
|
+
* @param {*} [options] Override http request option.
|
|
9176
|
+
* @throws {RequiredError}
|
|
9177
|
+
*/
|
|
9178
|
+
async getSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SportsResponse>> {
|
|
9179
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSports(options);
|
|
9180
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9181
|
+
const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getSports']?.[localVarOperationServerIndex]?.url;
|
|
9182
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9183
|
+
},
|
|
11021
9184
|
}
|
|
11022
9185
|
};
|
|
11023
9186
|
|
|
@@ -11040,30 +9203,24 @@ export const StaffClubsApiFactory = function (configuration?: Configuration, bas
|
|
|
11040
9203
|
/**
|
|
11041
9204
|
*
|
|
11042
9205
|
* @summary Récupère les paramètres d’un club
|
|
11043
|
-
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
11044
9206
|
* @param {*} [options] Override http request option.
|
|
11045
9207
|
* @throws {RequiredError}
|
|
11046
9208
|
*/
|
|
11047
|
-
getClubSettings(
|
|
11048
|
-
return localVarFp.getClubSettings(
|
|
9209
|
+
getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
|
|
9210
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
9211
|
+
},
|
|
9212
|
+
/**
|
|
9213
|
+
*
|
|
9214
|
+
* @summary Récupère la liste des sports du club courant
|
|
9215
|
+
* @param {*} [options] Override http request option.
|
|
9216
|
+
* @throws {RequiredError}
|
|
9217
|
+
*/
|
|
9218
|
+
getSports(options?: RawAxiosRequestConfig): AxiosPromise<SportsResponse> {
|
|
9219
|
+
return localVarFp.getSports(options).then((request) => request(axios, basePath));
|
|
11049
9220
|
},
|
|
11050
9221
|
};
|
|
11051
9222
|
};
|
|
11052
9223
|
|
|
11053
|
-
/**
|
|
11054
|
-
* Request parameters for getClubSettings operation in StaffClubsApi.
|
|
11055
|
-
* @export
|
|
11056
|
-
* @interface StaffClubsApiGetClubSettingsRequest
|
|
11057
|
-
*/
|
|
11058
|
-
export interface StaffClubsApiGetClubSettingsRequest {
|
|
11059
|
-
/**
|
|
11060
|
-
*
|
|
11061
|
-
* @type {GetClubSettingsRequest}
|
|
11062
|
-
* @memberof StaffClubsApiGetClubSettings
|
|
11063
|
-
*/
|
|
11064
|
-
readonly getClubSettingsRequest: GetClubSettingsRequest
|
|
11065
|
-
}
|
|
11066
|
-
|
|
11067
9224
|
/**
|
|
11068
9225
|
* StaffClubsApi - object-oriented interface
|
|
11069
9226
|
* @export
|
|
@@ -11085,13 +9242,23 @@ export class StaffClubsApi extends BaseAPI {
|
|
|
11085
9242
|
/**
|
|
11086
9243
|
*
|
|
11087
9244
|
* @summary Récupère les paramètres d’un club
|
|
11088
|
-
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
11089
9245
|
* @param {*} [options] Override http request option.
|
|
11090
9246
|
* @throws {RequiredError}
|
|
11091
9247
|
* @memberof StaffClubsApi
|
|
11092
9248
|
*/
|
|
11093
|
-
public getClubSettings(
|
|
11094
|
-
return StaffClubsApiFp(this.configuration).getClubSettings(
|
|
9249
|
+
public getClubSettings(options?: RawAxiosRequestConfig) {
|
|
9250
|
+
return StaffClubsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
9251
|
+
}
|
|
9252
|
+
|
|
9253
|
+
/**
|
|
9254
|
+
*
|
|
9255
|
+
* @summary Récupère la liste des sports du club courant
|
|
9256
|
+
* @param {*} [options] Override http request option.
|
|
9257
|
+
* @throws {RequiredError}
|
|
9258
|
+
* @memberof StaffClubsApi
|
|
9259
|
+
*/
|
|
9260
|
+
public getSports(options?: RawAxiosRequestConfig) {
|
|
9261
|
+
return StaffClubsApiFp(this.configuration).getSports(options).then((request) => request(this.axios, this.basePath));
|
|
11095
9262
|
}
|
|
11096
9263
|
}
|
|
11097
9264
|
|
|
@@ -13659,7 +11826,8 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13659
11826
|
removeFavoriteClub: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13660
11827
|
// verify required parameter 'clubId' is not null or undefined
|
|
13661
11828
|
assertParamExists('removeFavoriteClub', 'clubId', clubId)
|
|
13662
|
-
const localVarPath = `/api/users/me/favorite-clubs
|
|
11829
|
+
const localVarPath = `/api/users/me/favorite-clubs/{clubId}`
|
|
11830
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13663
11831
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13664
11832
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13665
11833
|
let baseOptions;
|
|
@@ -13675,10 +11843,6 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13675
11843
|
// http bearer authentication required
|
|
13676
11844
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13677
11845
|
|
|
13678
|
-
if (clubId !== undefined) {
|
|
13679
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
13680
|
-
}
|
|
13681
|
-
|
|
13682
11846
|
|
|
13683
11847
|
|
|
13684
11848
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|