@tennac-booking/sdk 1.0.31 → 1.0.33
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 -12
- package/README.md +10 -28
- package/api.ts +526 -2323
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +333 -1368
- package/dist/api.js +286 -1555
- 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 +333 -1368
- package/dist/esm/api.js +283 -1536
- 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 +47 -0
- package/docs/UpdateCourtRequest.md +38 -0
- 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/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.33
|
|
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
|
|
@@ -2522,6 +2333,25 @@ export interface GetClubInfos200Response {
|
|
|
2522
2333
|
*/
|
|
2523
2334
|
'websiteUrl'?: string;
|
|
2524
2335
|
}
|
|
2336
|
+
/**
|
|
2337
|
+
*
|
|
2338
|
+
* @export
|
|
2339
|
+
* @interface GetClubPlayers200Response
|
|
2340
|
+
*/
|
|
2341
|
+
export interface GetClubPlayers200Response {
|
|
2342
|
+
/**
|
|
2343
|
+
*
|
|
2344
|
+
* @type {Array<UserStaffResponse>}
|
|
2345
|
+
* @memberof GetClubPlayers200Response
|
|
2346
|
+
*/
|
|
2347
|
+
'clubPlayers'?: Array<UserStaffResponse>;
|
|
2348
|
+
/**
|
|
2349
|
+
*
|
|
2350
|
+
* @type {number}
|
|
2351
|
+
* @memberof GetClubPlayers200Response
|
|
2352
|
+
*/
|
|
2353
|
+
'total'?: number;
|
|
2354
|
+
}
|
|
2525
2355
|
/**
|
|
2526
2356
|
*
|
|
2527
2357
|
* @export
|
|
@@ -2929,6 +2759,12 @@ export interface LoginResponse {
|
|
|
2929
2759
|
* @memberof LoginResponse
|
|
2930
2760
|
*/
|
|
2931
2761
|
'token': string;
|
|
2762
|
+
/**
|
|
2763
|
+
*
|
|
2764
|
+
* @type {string}
|
|
2765
|
+
* @memberof LoginResponse
|
|
2766
|
+
*/
|
|
2767
|
+
'role'?: string;
|
|
2932
2768
|
/**
|
|
2933
2769
|
*
|
|
2934
2770
|
* @type {string}
|
|
@@ -4247,6 +4083,88 @@ export interface UpdateClubSettingsRequest {
|
|
|
4247
4083
|
*/
|
|
4248
4084
|
'allowWeekendReservations'?: boolean;
|
|
4249
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
|
+
|
|
4250
4168
|
/**
|
|
4251
4169
|
*
|
|
4252
4170
|
* @export
|
|
@@ -4773,2049 +4691,103 @@ export interface UserResponse {
|
|
|
4773
4691
|
/**
|
|
4774
4692
|
*
|
|
4775
4693
|
* @export
|
|
4776
|
-
* @interface
|
|
4694
|
+
* @interface UserStaffResponse
|
|
4777
4695
|
*/
|
|
4778
|
-
export interface
|
|
4696
|
+
export interface UserStaffResponse {
|
|
4779
4697
|
/**
|
|
4780
4698
|
*
|
|
4781
|
-
* @type {
|
|
4782
|
-
* @memberof
|
|
4699
|
+
* @type {string}
|
|
4700
|
+
* @memberof UserStaffResponse
|
|
4783
4701
|
*/
|
|
4784
|
-
'
|
|
4702
|
+
'id'?: string;
|
|
4785
4703
|
/**
|
|
4786
4704
|
*
|
|
4787
|
-
* @type {
|
|
4788
|
-
* @memberof
|
|
4705
|
+
* @type {string}
|
|
4706
|
+
* @memberof UserStaffResponse
|
|
4789
4707
|
*/
|
|
4790
|
-
'
|
|
4791
|
-
}
|
|
4792
|
-
/**
|
|
4793
|
-
*
|
|
4794
|
-
* @export
|
|
4795
|
-
* @interface YearlyTurnoverResponse
|
|
4796
|
-
*/
|
|
4797
|
-
export interface YearlyTurnoverResponse {
|
|
4798
|
-
/**
|
|
4799
|
-
*
|
|
4800
|
-
* @type {number}
|
|
4801
|
-
* @memberof YearlyTurnoverResponse
|
|
4802
|
-
*/
|
|
4803
|
-
'year'?: number;
|
|
4804
|
-
/**
|
|
4805
|
-
*
|
|
4806
|
-
* @type {number}
|
|
4807
|
-
* @memberof YearlyTurnoverResponse
|
|
4808
|
-
*/
|
|
4809
|
-
'totalTurnover'?: number;
|
|
4810
|
-
/**
|
|
4811
|
-
*
|
|
4812
|
-
* @type {number}
|
|
4813
|
-
* @memberof YearlyTurnoverResponse
|
|
4814
|
-
*/
|
|
4815
|
-
'totalInvoices'?: number;
|
|
4816
|
-
/**
|
|
4817
|
-
*
|
|
4818
|
-
* @type {Array<YearlyTurnoverResponseMonthlyBreakdownInner>}
|
|
4819
|
-
* @memberof YearlyTurnoverResponse
|
|
4820
|
-
*/
|
|
4821
|
-
'monthlyBreakdown'?: Array<YearlyTurnoverResponseMonthlyBreakdownInner>;
|
|
4822
|
-
}
|
|
4823
|
-
/**
|
|
4824
|
-
*
|
|
4825
|
-
* @export
|
|
4826
|
-
* @interface YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4827
|
-
*/
|
|
4828
|
-
export interface YearlyTurnoverResponseMonthlyBreakdownInner {
|
|
4829
|
-
/**
|
|
4830
|
-
*
|
|
4831
|
-
* @type {number}
|
|
4832
|
-
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4833
|
-
*/
|
|
4834
|
-
'month'?: number;
|
|
4835
|
-
/**
|
|
4836
|
-
*
|
|
4837
|
-
* @type {number}
|
|
4838
|
-
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4839
|
-
*/
|
|
4840
|
-
'monthlyTurnover'?: number;
|
|
4841
|
-
/**
|
|
4842
|
-
*
|
|
4843
|
-
* @type {number}
|
|
4844
|
-
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4845
|
-
*/
|
|
4846
|
-
'invoiceCount'?: number;
|
|
4847
|
-
}
|
|
4848
|
-
|
|
4849
|
-
/**
|
|
4850
|
-
* AdminClubAnalyticsApi - axios parameter creator
|
|
4851
|
-
* @export
|
|
4852
|
-
*/
|
|
4853
|
-
export const AdminClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4854
|
-
return {
|
|
4855
|
-
/**
|
|
4856
|
-
*
|
|
4857
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
4858
|
-
* @param {string} id ID du club
|
|
4859
|
-
* @param {string} date Date (YYYY-MM-DD)
|
|
4860
|
-
* @param {*} [options] Override http request option.
|
|
4861
|
-
* @throws {RequiredError}
|
|
4862
|
-
*/
|
|
4863
|
-
getDailyTurnOverAdmin: async (id: string, date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4864
|
-
// verify required parameter 'id' is not null or undefined
|
|
4865
|
-
assertParamExists('getDailyTurnOverAdmin', 'id', id)
|
|
4866
|
-
// verify required parameter 'date' is not null or undefined
|
|
4867
|
-
assertParamExists('getDailyTurnOverAdmin', 'date', date)
|
|
4868
|
-
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
4869
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4870
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4871
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4872
|
-
let baseOptions;
|
|
4873
|
-
if (configuration) {
|
|
4874
|
-
baseOptions = configuration.baseOptions;
|
|
4875
|
-
}
|
|
4876
|
-
|
|
4877
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4878
|
-
const localVarHeaderParameter = {} as any;
|
|
4879
|
-
const localVarQueryParameter = {} as any;
|
|
4880
|
-
|
|
4881
|
-
// authentication bearerAuth required
|
|
4882
|
-
// http bearer authentication required
|
|
4883
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4884
|
-
|
|
4885
|
-
if (date !== undefined) {
|
|
4886
|
-
localVarQueryParameter['date'] = (date as any instanceof Date) ?
|
|
4887
|
-
(date as any).toISOString().substring(0,10) :
|
|
4888
|
-
date;
|
|
4889
|
-
}
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4894
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4895
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4896
|
-
|
|
4897
|
-
return {
|
|
4898
|
-
url: toPathString(localVarUrlObj),
|
|
4899
|
-
options: localVarRequestOptions,
|
|
4900
|
-
};
|
|
4901
|
-
},
|
|
4902
|
-
/**
|
|
4903
|
-
*
|
|
4904
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
4905
|
-
* @param {string} id ID du club
|
|
4906
|
-
* @param {number} [page]
|
|
4907
|
-
* @param {number} [limit]
|
|
4908
|
-
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
4909
|
-
* @param {string} [startDate]
|
|
4910
|
-
* @param {string} [endDate]
|
|
4911
|
-
* @param {*} [options] Override http request option.
|
|
4912
|
-
* @throws {RequiredError}
|
|
4913
|
-
*/
|
|
4914
|
-
getInvoicesAdmin: async (id: string, page?: number, limit?: number, status?: GetInvoicesAdminStatusEnum, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4915
|
-
// verify required parameter 'id' is not null or undefined
|
|
4916
|
-
assertParamExists('getInvoicesAdmin', 'id', id)
|
|
4917
|
-
const localVarPath = `/api/clubs/{id}/invoices`
|
|
4918
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4919
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4920
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4921
|
-
let baseOptions;
|
|
4922
|
-
if (configuration) {
|
|
4923
|
-
baseOptions = configuration.baseOptions;
|
|
4924
|
-
}
|
|
4925
|
-
|
|
4926
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4927
|
-
const localVarHeaderParameter = {} as any;
|
|
4928
|
-
const localVarQueryParameter = {} as any;
|
|
4929
|
-
|
|
4930
|
-
// authentication bearerAuth required
|
|
4931
|
-
// http bearer authentication required
|
|
4932
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4933
|
-
|
|
4934
|
-
if (page !== undefined) {
|
|
4935
|
-
localVarQueryParameter['page'] = page;
|
|
4936
|
-
}
|
|
4937
|
-
|
|
4938
|
-
if (limit !== undefined) {
|
|
4939
|
-
localVarQueryParameter['limit'] = limit;
|
|
4940
|
-
}
|
|
4941
|
-
|
|
4942
|
-
if (status !== undefined) {
|
|
4943
|
-
localVarQueryParameter['status'] = status;
|
|
4944
|
-
}
|
|
4945
|
-
|
|
4946
|
-
if (startDate !== undefined) {
|
|
4947
|
-
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
4948
|
-
(startDate as any).toISOString() :
|
|
4949
|
-
startDate;
|
|
4950
|
-
}
|
|
4951
|
-
|
|
4952
|
-
if (endDate !== undefined) {
|
|
4953
|
-
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
4954
|
-
(endDate as any).toISOString() :
|
|
4955
|
-
endDate;
|
|
4956
|
-
}
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4961
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4962
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4963
|
-
|
|
4964
|
-
return {
|
|
4965
|
-
url: toPathString(localVarUrlObj),
|
|
4966
|
-
options: localVarRequestOptions,
|
|
4967
|
-
};
|
|
4968
|
-
},
|
|
4969
|
-
/**
|
|
4970
|
-
*
|
|
4971
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
4972
|
-
* @param {string} id ID du club
|
|
4973
|
-
* @param {number} year Année
|
|
4974
|
-
* @param {number} month Mois (1-12)
|
|
4975
|
-
* @param {*} [options] Override http request option.
|
|
4976
|
-
* @throws {RequiredError}
|
|
4977
|
-
*/
|
|
4978
|
-
getMonthlyTurnOverAdmin: async (id: string, year: number, month: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4979
|
-
// verify required parameter 'id' is not null or undefined
|
|
4980
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'id', id)
|
|
4981
|
-
// verify required parameter 'year' is not null or undefined
|
|
4982
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'year', year)
|
|
4983
|
-
// verify required parameter 'month' is not null or undefined
|
|
4984
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'month', month)
|
|
4985
|
-
const localVarPath = `/api/clubs/{id}/turnover/monthly`
|
|
4986
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4987
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4988
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4989
|
-
let baseOptions;
|
|
4990
|
-
if (configuration) {
|
|
4991
|
-
baseOptions = configuration.baseOptions;
|
|
4992
|
-
}
|
|
4993
|
-
|
|
4994
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4995
|
-
const localVarHeaderParameter = {} as any;
|
|
4996
|
-
const localVarQueryParameter = {} as any;
|
|
4997
|
-
|
|
4998
|
-
// authentication bearerAuth required
|
|
4999
|
-
// http bearer authentication required
|
|
5000
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5001
|
-
|
|
5002
|
-
if (year !== undefined) {
|
|
5003
|
-
localVarQueryParameter['year'] = year;
|
|
5004
|
-
}
|
|
5005
|
-
|
|
5006
|
-
if (month !== undefined) {
|
|
5007
|
-
localVarQueryParameter['month'] = month;
|
|
5008
|
-
}
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5013
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5014
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5015
|
-
|
|
5016
|
-
return {
|
|
5017
|
-
url: toPathString(localVarUrlObj),
|
|
5018
|
-
options: localVarRequestOptions,
|
|
5019
|
-
};
|
|
5020
|
-
},
|
|
5021
|
-
/**
|
|
5022
|
-
*
|
|
5023
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
5024
|
-
* @param {string} id ID du club
|
|
5025
|
-
* @param {number} year Année
|
|
5026
|
-
* @param {*} [options] Override http request option.
|
|
5027
|
-
* @throws {RequiredError}
|
|
5028
|
-
*/
|
|
5029
|
-
getYearlyTurnOverAdmin: async (id: string, year: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5030
|
-
// verify required parameter 'id' is not null or undefined
|
|
5031
|
-
assertParamExists('getYearlyTurnOverAdmin', 'id', id)
|
|
5032
|
-
// verify required parameter 'year' is not null or undefined
|
|
5033
|
-
assertParamExists('getYearlyTurnOverAdmin', 'year', year)
|
|
5034
|
-
const localVarPath = `/api/clubs/{id}/turnover/yearly`
|
|
5035
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5036
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5037
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5038
|
-
let baseOptions;
|
|
5039
|
-
if (configuration) {
|
|
5040
|
-
baseOptions = configuration.baseOptions;
|
|
5041
|
-
}
|
|
5042
|
-
|
|
5043
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5044
|
-
const localVarHeaderParameter = {} as any;
|
|
5045
|
-
const localVarQueryParameter = {} as any;
|
|
5046
|
-
|
|
5047
|
-
// authentication bearerAuth required
|
|
5048
|
-
// http bearer authentication required
|
|
5049
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5050
|
-
|
|
5051
|
-
if (year !== undefined) {
|
|
5052
|
-
localVarQueryParameter['year'] = year;
|
|
5053
|
-
}
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5058
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5059
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5060
|
-
|
|
5061
|
-
return {
|
|
5062
|
-
url: toPathString(localVarUrlObj),
|
|
5063
|
-
options: localVarRequestOptions,
|
|
5064
|
-
};
|
|
5065
|
-
},
|
|
5066
|
-
}
|
|
5067
|
-
};
|
|
5068
|
-
|
|
5069
|
-
/**
|
|
5070
|
-
* AdminClubAnalyticsApi - functional programming interface
|
|
5071
|
-
* @export
|
|
5072
|
-
*/
|
|
5073
|
-
export const AdminClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
5074
|
-
const localVarAxiosParamCreator = AdminClubAnalyticsApiAxiosParamCreator(configuration)
|
|
5075
|
-
return {
|
|
5076
|
-
/**
|
|
5077
|
-
*
|
|
5078
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
5079
|
-
* @param {string} id ID du club
|
|
5080
|
-
* @param {string} date Date (YYYY-MM-DD)
|
|
5081
|
-
* @param {*} [options] Override http request option.
|
|
5082
|
-
* @throws {RequiredError}
|
|
5083
|
-
*/
|
|
5084
|
-
async getDailyTurnOverAdmin(id: string, date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DailyTurnoverResponse>> {
|
|
5085
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyTurnOverAdmin(id, date, options);
|
|
5086
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5087
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubAnalyticsApi.getDailyTurnOverAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5088
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5089
|
-
},
|
|
5090
|
-
/**
|
|
5091
|
-
*
|
|
5092
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
5093
|
-
* @param {string} id ID du club
|
|
5094
|
-
* @param {number} [page]
|
|
5095
|
-
* @param {number} [limit]
|
|
5096
|
-
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
5097
|
-
* @param {string} [startDate]
|
|
5098
|
-
* @param {string} [endDate]
|
|
5099
|
-
* @param {*} [options] Override http request option.
|
|
5100
|
-
* @throws {RequiredError}
|
|
5101
|
-
*/
|
|
5102
|
-
async getInvoicesAdmin(id: string, page?: number, limit?: number, status?: GetInvoicesAdminStatusEnum, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvoicesResponse>> {
|
|
5103
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoicesAdmin(id, page, limit, status, startDate, endDate, options);
|
|
5104
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5105
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubAnalyticsApi.getInvoicesAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5106
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5107
|
-
},
|
|
5108
|
-
/**
|
|
5109
|
-
*
|
|
5110
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
5111
|
-
* @param {string} id ID du club
|
|
5112
|
-
* @param {number} year Année
|
|
5113
|
-
* @param {number} month Mois (1-12)
|
|
5114
|
-
* @param {*} [options] Override http request option.
|
|
5115
|
-
* @throws {RequiredError}
|
|
5116
|
-
*/
|
|
5117
|
-
async getMonthlyTurnOverAdmin(id: string, year: number, month: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MonthlyTurnoverResponse>> {
|
|
5118
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyTurnOverAdmin(id, year, month, options);
|
|
5119
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5120
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubAnalyticsApi.getMonthlyTurnOverAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5121
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5122
|
-
},
|
|
5123
|
-
/**
|
|
5124
|
-
*
|
|
5125
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
5126
|
-
* @param {string} id ID du club
|
|
5127
|
-
* @param {number} year Année
|
|
5128
|
-
* @param {*} [options] Override http request option.
|
|
5129
|
-
* @throws {RequiredError}
|
|
5130
|
-
*/
|
|
5131
|
-
async getYearlyTurnOverAdmin(id: string, year: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<YearlyTurnoverResponse>> {
|
|
5132
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getYearlyTurnOverAdmin(id, year, options);
|
|
5133
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5134
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubAnalyticsApi.getYearlyTurnOverAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5135
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5136
|
-
},
|
|
5137
|
-
}
|
|
5138
|
-
};
|
|
5139
|
-
|
|
5140
|
-
/**
|
|
5141
|
-
* AdminClubAnalyticsApi - factory interface
|
|
5142
|
-
* @export
|
|
5143
|
-
*/
|
|
5144
|
-
export const AdminClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5145
|
-
const localVarFp = AdminClubAnalyticsApiFp(configuration)
|
|
5146
|
-
return {
|
|
5147
|
-
/**
|
|
5148
|
-
*
|
|
5149
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
5150
|
-
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5151
|
-
* @param {*} [options] Override http request option.
|
|
5152
|
-
* @throws {RequiredError}
|
|
5153
|
-
*/
|
|
5154
|
-
getDailyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetDailyTurnOverAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<DailyTurnoverResponse> {
|
|
5155
|
-
return localVarFp.getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
5156
|
-
},
|
|
5157
|
-
/**
|
|
5158
|
-
*
|
|
5159
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
5160
|
-
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
5161
|
-
* @param {*} [options] Override http request option.
|
|
5162
|
-
* @throws {RequiredError}
|
|
5163
|
-
*/
|
|
5164
|
-
getInvoicesAdmin(requestParameters: AdminClubAnalyticsApiGetInvoicesAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<InvoicesResponse> {
|
|
5165
|
-
return localVarFp.getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
5166
|
-
},
|
|
5167
|
-
/**
|
|
5168
|
-
*
|
|
5169
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
5170
|
-
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5171
|
-
* @param {*} [options] Override http request option.
|
|
5172
|
-
* @throws {RequiredError}
|
|
5173
|
-
*/
|
|
5174
|
-
getMonthlyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<MonthlyTurnoverResponse> {
|
|
5175
|
-
return localVarFp.getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
5176
|
-
},
|
|
5177
|
-
/**
|
|
5178
|
-
*
|
|
5179
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
5180
|
-
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5181
|
-
* @param {*} [options] Override http request option.
|
|
5182
|
-
* @throws {RequiredError}
|
|
5183
|
-
*/
|
|
5184
|
-
getYearlyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<YearlyTurnoverResponse> {
|
|
5185
|
-
return localVarFp.getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
5186
|
-
},
|
|
5187
|
-
};
|
|
5188
|
-
};
|
|
5189
|
-
|
|
5190
|
-
/**
|
|
5191
|
-
* Request parameters for getDailyTurnOverAdmin operation in AdminClubAnalyticsApi.
|
|
5192
|
-
* @export
|
|
5193
|
-
* @interface AdminClubAnalyticsApiGetDailyTurnOverAdminRequest
|
|
5194
|
-
*/
|
|
5195
|
-
export interface AdminClubAnalyticsApiGetDailyTurnOverAdminRequest {
|
|
5196
|
-
/**
|
|
5197
|
-
* ID du club
|
|
5198
|
-
* @type {string}
|
|
5199
|
-
* @memberof AdminClubAnalyticsApiGetDailyTurnOverAdmin
|
|
5200
|
-
*/
|
|
5201
|
-
readonly id: string
|
|
5202
|
-
|
|
5203
|
-
/**
|
|
5204
|
-
* Date (YYYY-MM-DD)
|
|
5205
|
-
* @type {string}
|
|
5206
|
-
* @memberof AdminClubAnalyticsApiGetDailyTurnOverAdmin
|
|
5207
|
-
*/
|
|
5208
|
-
readonly date: string
|
|
5209
|
-
}
|
|
5210
|
-
|
|
5211
|
-
/**
|
|
5212
|
-
* Request parameters for getInvoicesAdmin operation in AdminClubAnalyticsApi.
|
|
5213
|
-
* @export
|
|
5214
|
-
* @interface AdminClubAnalyticsApiGetInvoicesAdminRequest
|
|
5215
|
-
*/
|
|
5216
|
-
export interface AdminClubAnalyticsApiGetInvoicesAdminRequest {
|
|
5217
|
-
/**
|
|
5218
|
-
* ID du club
|
|
5219
|
-
* @type {string}
|
|
5220
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5221
|
-
*/
|
|
5222
|
-
readonly id: string
|
|
5223
|
-
|
|
5224
|
-
/**
|
|
5225
|
-
*
|
|
5226
|
-
* @type {number}
|
|
5227
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5228
|
-
*/
|
|
5229
|
-
readonly page?: number
|
|
5230
|
-
|
|
5231
|
-
/**
|
|
5232
|
-
*
|
|
5233
|
-
* @type {number}
|
|
5234
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5235
|
-
*/
|
|
5236
|
-
readonly limit?: number
|
|
5237
|
-
|
|
5238
|
-
/**
|
|
5239
|
-
*
|
|
5240
|
-
* @type {'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'}
|
|
5241
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5242
|
-
*/
|
|
5243
|
-
readonly status?: GetInvoicesAdminStatusEnum
|
|
5244
|
-
|
|
5245
|
-
/**
|
|
5246
|
-
*
|
|
5247
|
-
* @type {string}
|
|
5248
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5249
|
-
*/
|
|
5250
|
-
readonly startDate?: string
|
|
5251
|
-
|
|
5252
|
-
/**
|
|
5253
|
-
*
|
|
5254
|
-
* @type {string}
|
|
5255
|
-
* @memberof AdminClubAnalyticsApiGetInvoicesAdmin
|
|
5256
|
-
*/
|
|
5257
|
-
readonly endDate?: string
|
|
5258
|
-
}
|
|
5259
|
-
|
|
5260
|
-
/**
|
|
5261
|
-
* Request parameters for getMonthlyTurnOverAdmin operation in AdminClubAnalyticsApi.
|
|
5262
|
-
* @export
|
|
5263
|
-
* @interface AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest
|
|
5264
|
-
*/
|
|
5265
|
-
export interface AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest {
|
|
5266
|
-
/**
|
|
5267
|
-
* ID du club
|
|
5268
|
-
* @type {string}
|
|
5269
|
-
* @memberof AdminClubAnalyticsApiGetMonthlyTurnOverAdmin
|
|
5270
|
-
*/
|
|
5271
|
-
readonly id: string
|
|
5272
|
-
|
|
5273
|
-
/**
|
|
5274
|
-
* Année
|
|
5275
|
-
* @type {number}
|
|
5276
|
-
* @memberof AdminClubAnalyticsApiGetMonthlyTurnOverAdmin
|
|
5277
|
-
*/
|
|
5278
|
-
readonly year: number
|
|
5279
|
-
|
|
5280
|
-
/**
|
|
5281
|
-
* Mois (1-12)
|
|
5282
|
-
* @type {number}
|
|
5283
|
-
* @memberof AdminClubAnalyticsApiGetMonthlyTurnOverAdmin
|
|
5284
|
-
*/
|
|
5285
|
-
readonly month: number
|
|
5286
|
-
}
|
|
5287
|
-
|
|
5288
|
-
/**
|
|
5289
|
-
* Request parameters for getYearlyTurnOverAdmin operation in AdminClubAnalyticsApi.
|
|
5290
|
-
* @export
|
|
5291
|
-
* @interface AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest
|
|
5292
|
-
*/
|
|
5293
|
-
export interface AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest {
|
|
5294
|
-
/**
|
|
5295
|
-
* ID du club
|
|
5296
|
-
* @type {string}
|
|
5297
|
-
* @memberof AdminClubAnalyticsApiGetYearlyTurnOverAdmin
|
|
5298
|
-
*/
|
|
5299
|
-
readonly id: string
|
|
5300
|
-
|
|
5301
|
-
/**
|
|
5302
|
-
* Année
|
|
5303
|
-
* @type {number}
|
|
5304
|
-
* @memberof AdminClubAnalyticsApiGetYearlyTurnOverAdmin
|
|
5305
|
-
*/
|
|
5306
|
-
readonly year: number
|
|
5307
|
-
}
|
|
5308
|
-
|
|
5309
|
-
/**
|
|
5310
|
-
* AdminClubAnalyticsApi - object-oriented interface
|
|
5311
|
-
* @export
|
|
5312
|
-
* @class AdminClubAnalyticsApi
|
|
5313
|
-
* @extends {BaseAPI}
|
|
5314
|
-
*/
|
|
5315
|
-
export class AdminClubAnalyticsApi extends BaseAPI {
|
|
5316
|
-
/**
|
|
5317
|
-
*
|
|
5318
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
5319
|
-
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5320
|
-
* @param {*} [options] Override http request option.
|
|
5321
|
-
* @throws {RequiredError}
|
|
5322
|
-
* @memberof AdminClubAnalyticsApi
|
|
5323
|
-
*/
|
|
5324
|
-
public getDailyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetDailyTurnOverAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5325
|
-
return AdminClubAnalyticsApiFp(this.configuration).getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
5326
|
-
}
|
|
5327
|
-
|
|
5328
|
-
/**
|
|
5329
|
-
*
|
|
5330
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
5331
|
-
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
5332
|
-
* @param {*} [options] Override http request option.
|
|
5333
|
-
* @throws {RequiredError}
|
|
5334
|
-
* @memberof AdminClubAnalyticsApi
|
|
5335
|
-
*/
|
|
5336
|
-
public getInvoicesAdmin(requestParameters: AdminClubAnalyticsApiGetInvoicesAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5337
|
-
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));
|
|
5338
|
-
}
|
|
5339
|
-
|
|
5340
|
-
/**
|
|
5341
|
-
*
|
|
5342
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
5343
|
-
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5344
|
-
* @param {*} [options] Override http request option.
|
|
5345
|
-
* @throws {RequiredError}
|
|
5346
|
-
* @memberof AdminClubAnalyticsApi
|
|
5347
|
-
*/
|
|
5348
|
-
public getMonthlyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5349
|
-
return AdminClubAnalyticsApiFp(this.configuration).getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
5350
|
-
}
|
|
5351
|
-
|
|
5352
|
-
/**
|
|
5353
|
-
*
|
|
5354
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
5355
|
-
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
5356
|
-
* @param {*} [options] Override http request option.
|
|
5357
|
-
* @throws {RequiredError}
|
|
5358
|
-
* @memberof AdminClubAnalyticsApi
|
|
5359
|
-
*/
|
|
5360
|
-
public getYearlyTurnOverAdmin(requestParameters: AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5361
|
-
return AdminClubAnalyticsApiFp(this.configuration).getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
5362
|
-
}
|
|
5363
|
-
}
|
|
5364
|
-
|
|
5365
|
-
/**
|
|
5366
|
-
* @export
|
|
5367
|
-
*/
|
|
5368
|
-
export const GetInvoicesAdminStatusEnum = {
|
|
5369
|
-
Pending: 'pending',
|
|
5370
|
-
Paid: 'paid',
|
|
5371
|
-
Failed: 'failed',
|
|
5372
|
-
Authorized: 'authorized',
|
|
5373
|
-
Canceled: 'canceled',
|
|
5374
|
-
Expired: 'expired'
|
|
5375
|
-
} as const;
|
|
5376
|
-
export type GetInvoicesAdminStatusEnum = typeof GetInvoicesAdminStatusEnum[keyof typeof GetInvoicesAdminStatusEnum];
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
/**
|
|
5380
|
-
* AdminClubSlotsApi - axios parameter creator
|
|
5381
|
-
* @export
|
|
5382
|
-
*/
|
|
5383
|
-
export const AdminClubSlotsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5384
|
-
return {
|
|
5385
|
-
/**
|
|
5386
|
-
*
|
|
5387
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
5388
|
-
* @param {string} id ID du club
|
|
5389
|
-
* @param {string} start Date de début (format ISO)
|
|
5390
|
-
* @param {string} end Date de fin (format ISO)
|
|
5391
|
-
* @param {*} [options] Override http request option.
|
|
5392
|
-
* @throws {RequiredError}
|
|
5393
|
-
*/
|
|
5394
|
-
deleteSlotsByClubInRangeByID: async (id: string, start: string, end: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5395
|
-
// verify required parameter 'id' is not null or undefined
|
|
5396
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'id', id)
|
|
5397
|
-
// verify required parameter 'start' is not null or undefined
|
|
5398
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'start', start)
|
|
5399
|
-
// verify required parameter 'end' is not null or undefined
|
|
5400
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'end', end)
|
|
5401
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
5402
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5403
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5404
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5405
|
-
let baseOptions;
|
|
5406
|
-
if (configuration) {
|
|
5407
|
-
baseOptions = configuration.baseOptions;
|
|
5408
|
-
}
|
|
5409
|
-
|
|
5410
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5411
|
-
const localVarHeaderParameter = {} as any;
|
|
5412
|
-
const localVarQueryParameter = {} as any;
|
|
5413
|
-
|
|
5414
|
-
// authentication bearerAuth required
|
|
5415
|
-
// http bearer authentication required
|
|
5416
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5417
|
-
|
|
5418
|
-
if (start !== undefined) {
|
|
5419
|
-
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
5420
|
-
(start as any).toISOString() :
|
|
5421
|
-
start;
|
|
5422
|
-
}
|
|
5423
|
-
|
|
5424
|
-
if (end !== undefined) {
|
|
5425
|
-
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
5426
|
-
(end as any).toISOString() :
|
|
5427
|
-
end;
|
|
5428
|
-
}
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5433
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5434
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5435
|
-
|
|
5436
|
-
return {
|
|
5437
|
-
url: toPathString(localVarUrlObj),
|
|
5438
|
-
options: localVarRequestOptions,
|
|
5439
|
-
};
|
|
5440
|
-
},
|
|
5441
|
-
/**
|
|
5442
|
-
*
|
|
5443
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
5444
|
-
* @param {string} id ID du club
|
|
5445
|
-
* @param {*} [options] Override http request option.
|
|
5446
|
-
* @throws {RequiredError}
|
|
5447
|
-
*/
|
|
5448
|
-
generateSlotsForNextThreeWeeks: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5449
|
-
// verify required parameter 'id' is not null or undefined
|
|
5450
|
-
assertParamExists('generateSlotsForNextThreeWeeks', 'id', id)
|
|
5451
|
-
const localVarPath = `/api/clubs/{id}/generate-slots`
|
|
5452
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5453
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5454
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5455
|
-
let baseOptions;
|
|
5456
|
-
if (configuration) {
|
|
5457
|
-
baseOptions = configuration.baseOptions;
|
|
5458
|
-
}
|
|
5459
|
-
|
|
5460
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5461
|
-
const localVarHeaderParameter = {} as any;
|
|
5462
|
-
const localVarQueryParameter = {} as any;
|
|
5463
|
-
|
|
5464
|
-
// authentication bearerAuth required
|
|
5465
|
-
// http bearer authentication required
|
|
5466
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5471
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5472
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5473
|
-
|
|
5474
|
-
return {
|
|
5475
|
-
url: toPathString(localVarUrlObj),
|
|
5476
|
-
options: localVarRequestOptions,
|
|
5477
|
-
};
|
|
5478
|
-
},
|
|
5479
|
-
/**
|
|
5480
|
-
*
|
|
5481
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
5482
|
-
* @param {string} id ID du club
|
|
5483
|
-
* @param {string} [start] Date de début (format ISO)
|
|
5484
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
5485
|
-
* @param {*} [options] Override http request option.
|
|
5486
|
-
* @throws {RequiredError}
|
|
5487
|
-
*/
|
|
5488
|
-
getSlotsByClubAdmin: async (id: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5489
|
-
// verify required parameter 'id' is not null or undefined
|
|
5490
|
-
assertParamExists('getSlotsByClubAdmin', 'id', id)
|
|
5491
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
5492
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5493
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5494
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5495
|
-
let baseOptions;
|
|
5496
|
-
if (configuration) {
|
|
5497
|
-
baseOptions = configuration.baseOptions;
|
|
5498
|
-
}
|
|
5499
|
-
|
|
5500
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5501
|
-
const localVarHeaderParameter = {} as any;
|
|
5502
|
-
const localVarQueryParameter = {} as any;
|
|
5503
|
-
|
|
5504
|
-
// authentication bearerAuth required
|
|
5505
|
-
// http bearer authentication required
|
|
5506
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5507
|
-
|
|
5508
|
-
if (start !== undefined) {
|
|
5509
|
-
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
5510
|
-
(start as any).toISOString() :
|
|
5511
|
-
start;
|
|
5512
|
-
}
|
|
5513
|
-
|
|
5514
|
-
if (end !== undefined) {
|
|
5515
|
-
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
5516
|
-
(end as any).toISOString() :
|
|
5517
|
-
end;
|
|
5518
|
-
}
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5523
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5524
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5525
|
-
|
|
5526
|
-
return {
|
|
5527
|
-
url: toPathString(localVarUrlObj),
|
|
5528
|
-
options: localVarRequestOptions,
|
|
5529
|
-
};
|
|
5530
|
-
},
|
|
5531
|
-
}
|
|
5532
|
-
};
|
|
5533
|
-
|
|
5534
|
-
/**
|
|
5535
|
-
* AdminClubSlotsApi - functional programming interface
|
|
5536
|
-
* @export
|
|
5537
|
-
*/
|
|
5538
|
-
export const AdminClubSlotsApiFp = function(configuration?: Configuration) {
|
|
5539
|
-
const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration)
|
|
5540
|
-
return {
|
|
5541
|
-
/**
|
|
5542
|
-
*
|
|
5543
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
5544
|
-
* @param {string} id ID du club
|
|
5545
|
-
* @param {string} start Date de début (format ISO)
|
|
5546
|
-
* @param {string} end Date de fin (format ISO)
|
|
5547
|
-
* @param {*} [options] Override http request option.
|
|
5548
|
-
* @throws {RequiredError}
|
|
5549
|
-
*/
|
|
5550
|
-
async deleteSlotsByClubInRangeByID(id: string, start: string, end: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSlotsResponse>> {
|
|
5551
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSlotsByClubInRangeByID(id, start, end, options);
|
|
5552
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5553
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSlotsApi.deleteSlotsByClubInRangeByID']?.[localVarOperationServerIndex]?.url;
|
|
5554
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5555
|
-
},
|
|
5556
|
-
/**
|
|
5557
|
-
*
|
|
5558
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
5559
|
-
* @param {string} id ID du club
|
|
5560
|
-
* @param {*} [options] Override http request option.
|
|
5561
|
-
* @throws {RequiredError}
|
|
5562
|
-
*/
|
|
5563
|
-
async generateSlotsForNextThreeWeeks(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateSlotsResponse>> {
|
|
5564
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
|
|
5565
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5566
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']?.[localVarOperationServerIndex]?.url;
|
|
5567
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5568
|
-
},
|
|
5569
|
-
/**
|
|
5570
|
-
*
|
|
5571
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
5572
|
-
* @param {string} id ID du club
|
|
5573
|
-
* @param {string} [start] Date de début (format ISO)
|
|
5574
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
5575
|
-
* @param {*} [options] Override http request option.
|
|
5576
|
-
* @throws {RequiredError}
|
|
5577
|
-
*/
|
|
5578
|
-
async getSlotsByClubAdmin(id: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SlotsResponse>> {
|
|
5579
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlotsByClubAdmin(id, start, end, options);
|
|
5580
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5581
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSlotsApi.getSlotsByClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
5582
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5583
|
-
},
|
|
5584
|
-
}
|
|
5585
|
-
};
|
|
5586
|
-
|
|
5587
|
-
/**
|
|
5588
|
-
* AdminClubSlotsApi - factory interface
|
|
5589
|
-
* @export
|
|
5590
|
-
*/
|
|
5591
|
-
export const AdminClubSlotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5592
|
-
const localVarFp = AdminClubSlotsApiFp(configuration)
|
|
5593
|
-
return {
|
|
5594
|
-
/**
|
|
5595
|
-
*
|
|
5596
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
5597
|
-
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
5598
|
-
* @param {*} [options] Override http request option.
|
|
5599
|
-
* @throws {RequiredError}
|
|
5600
|
-
*/
|
|
5601
|
-
deleteSlotsByClubInRangeByID(requestParameters: AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSlotsResponse> {
|
|
5602
|
-
return localVarFp.deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5603
|
-
},
|
|
5604
|
-
/**
|
|
5605
|
-
*
|
|
5606
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
5607
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
5608
|
-
* @param {*} [options] Override http request option.
|
|
5609
|
-
* @throws {RequiredError}
|
|
5610
|
-
*/
|
|
5611
|
-
generateSlotsForNextThreeWeeks(requestParameters: AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateSlotsResponse> {
|
|
5612
|
-
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5613
|
-
},
|
|
5614
|
-
/**
|
|
5615
|
-
*
|
|
5616
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
5617
|
-
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
5618
|
-
* @param {*} [options] Override http request option.
|
|
5619
|
-
* @throws {RequiredError}
|
|
5620
|
-
*/
|
|
5621
|
-
getSlotsByClubAdmin(requestParameters: AdminClubSlotsApiGetSlotsByClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<SlotsResponse> {
|
|
5622
|
-
return localVarFp.getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
5623
|
-
},
|
|
5624
|
-
};
|
|
5625
|
-
};
|
|
5626
|
-
|
|
5627
|
-
/**
|
|
5628
|
-
* Request parameters for deleteSlotsByClubInRangeByID operation in AdminClubSlotsApi.
|
|
5629
|
-
* @export
|
|
5630
|
-
* @interface AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest
|
|
5631
|
-
*/
|
|
5632
|
-
export interface AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest {
|
|
5633
|
-
/**
|
|
5634
|
-
* ID du club
|
|
5635
|
-
* @type {string}
|
|
5636
|
-
* @memberof AdminClubSlotsApiDeleteSlotsByClubInRangeByID
|
|
5637
|
-
*/
|
|
5638
|
-
readonly id: string
|
|
5639
|
-
|
|
5640
|
-
/**
|
|
5641
|
-
* Date de début (format ISO)
|
|
5642
|
-
* @type {string}
|
|
5643
|
-
* @memberof AdminClubSlotsApiDeleteSlotsByClubInRangeByID
|
|
5644
|
-
*/
|
|
5645
|
-
readonly start: string
|
|
5646
|
-
|
|
5647
|
-
/**
|
|
5648
|
-
* Date de fin (format ISO)
|
|
5649
|
-
* @type {string}
|
|
5650
|
-
* @memberof AdminClubSlotsApiDeleteSlotsByClubInRangeByID
|
|
5651
|
-
*/
|
|
5652
|
-
readonly end: string
|
|
5653
|
-
}
|
|
5654
|
-
|
|
5655
|
-
/**
|
|
5656
|
-
* Request parameters for generateSlotsForNextThreeWeeks operation in AdminClubSlotsApi.
|
|
5657
|
-
* @export
|
|
5658
|
-
* @interface AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest
|
|
5659
|
-
*/
|
|
5660
|
-
export interface AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest {
|
|
5661
|
-
/**
|
|
5662
|
-
* ID du club
|
|
5663
|
-
* @type {string}
|
|
5664
|
-
* @memberof AdminClubSlotsApiGenerateSlotsForNextThreeWeeks
|
|
5665
|
-
*/
|
|
5666
|
-
readonly id: string
|
|
5667
|
-
}
|
|
5668
|
-
|
|
5669
|
-
/**
|
|
5670
|
-
* Request parameters for getSlotsByClubAdmin operation in AdminClubSlotsApi.
|
|
5671
|
-
* @export
|
|
5672
|
-
* @interface AdminClubSlotsApiGetSlotsByClubAdminRequest
|
|
5673
|
-
*/
|
|
5674
|
-
export interface AdminClubSlotsApiGetSlotsByClubAdminRequest {
|
|
5675
|
-
/**
|
|
5676
|
-
* ID du club
|
|
5677
|
-
* @type {string}
|
|
5678
|
-
* @memberof AdminClubSlotsApiGetSlotsByClubAdmin
|
|
5679
|
-
*/
|
|
5680
|
-
readonly id: string
|
|
5681
|
-
|
|
5682
|
-
/**
|
|
5683
|
-
* Date de début (format ISO)
|
|
5684
|
-
* @type {string}
|
|
5685
|
-
* @memberof AdminClubSlotsApiGetSlotsByClubAdmin
|
|
5686
|
-
*/
|
|
5687
|
-
readonly start?: string
|
|
5688
|
-
|
|
5689
|
-
/**
|
|
5690
|
-
* Date de fin (format ISO)
|
|
5691
|
-
* @type {string}
|
|
5692
|
-
* @memberof AdminClubSlotsApiGetSlotsByClubAdmin
|
|
5693
|
-
*/
|
|
5694
|
-
readonly end?: string
|
|
5695
|
-
}
|
|
5696
|
-
|
|
5697
|
-
/**
|
|
5698
|
-
* AdminClubSlotsApi - object-oriented interface
|
|
5699
|
-
* @export
|
|
5700
|
-
* @class AdminClubSlotsApi
|
|
5701
|
-
* @extends {BaseAPI}
|
|
5702
|
-
*/
|
|
5703
|
-
export class AdminClubSlotsApi extends BaseAPI {
|
|
5704
|
-
/**
|
|
5705
|
-
*
|
|
5706
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
5707
|
-
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
5708
|
-
* @param {*} [options] Override http request option.
|
|
5709
|
-
* @throws {RequiredError}
|
|
5710
|
-
* @memberof AdminClubSlotsApi
|
|
5711
|
-
*/
|
|
5712
|
-
public deleteSlotsByClubInRangeByID(requestParameters: AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest, options?: RawAxiosRequestConfig) {
|
|
5713
|
-
return AdminClubSlotsApiFp(this.configuration).deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5714
|
-
}
|
|
5715
|
-
|
|
5716
|
-
/**
|
|
5717
|
-
*
|
|
5718
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
5719
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
5720
|
-
* @param {*} [options] Override http request option.
|
|
5721
|
-
* @throws {RequiredError}
|
|
5722
|
-
* @memberof AdminClubSlotsApi
|
|
5723
|
-
*/
|
|
5724
|
-
public generateSlotsForNextThreeWeeks(requestParameters: AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig) {
|
|
5725
|
-
return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5726
|
-
}
|
|
5727
|
-
|
|
5728
|
-
/**
|
|
5729
|
-
*
|
|
5730
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
5731
|
-
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
5732
|
-
* @param {*} [options] Override http request option.
|
|
5733
|
-
* @throws {RequiredError}
|
|
5734
|
-
* @memberof AdminClubSlotsApi
|
|
5735
|
-
*/
|
|
5736
|
-
public getSlotsByClubAdmin(requestParameters: AdminClubSlotsApiGetSlotsByClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
5737
|
-
return AdminClubSlotsApiFp(this.configuration).getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
5738
|
-
}
|
|
5739
|
-
}
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
/**
|
|
5744
|
-
* AdminClubSubscriptionsApi - axios parameter creator
|
|
5745
|
-
* @export
|
|
5746
|
-
*/
|
|
5747
|
-
export const AdminClubSubscriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5748
|
-
return {
|
|
5749
|
-
/**
|
|
5750
|
-
*
|
|
5751
|
-
* @summary Archiver un prix (Admin)
|
|
5752
|
-
* @param {string} id
|
|
5753
|
-
* @param {string} priceId
|
|
5754
|
-
* @param {*} [options] Override http request option.
|
|
5755
|
-
* @throws {RequiredError}
|
|
5756
|
-
*/
|
|
5757
|
-
archivePriceForSubscriptionPlanAdmin: async (id: string, priceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5758
|
-
// verify required parameter 'id' is not null or undefined
|
|
5759
|
-
assertParamExists('archivePriceForSubscriptionPlanAdmin', 'id', id)
|
|
5760
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
5761
|
-
assertParamExists('archivePriceForSubscriptionPlanAdmin', 'priceId', priceId)
|
|
5762
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
|
|
5763
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5764
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
5765
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5766
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5767
|
-
let baseOptions;
|
|
5768
|
-
if (configuration) {
|
|
5769
|
-
baseOptions = configuration.baseOptions;
|
|
5770
|
-
}
|
|
5771
|
-
|
|
5772
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5773
|
-
const localVarHeaderParameter = {} as any;
|
|
5774
|
-
const localVarQueryParameter = {} as any;
|
|
5775
|
-
|
|
5776
|
-
// authentication bearerAuth required
|
|
5777
|
-
// http bearer authentication required
|
|
5778
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5783
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5784
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5785
|
-
|
|
5786
|
-
return {
|
|
5787
|
-
url: toPathString(localVarUrlObj),
|
|
5788
|
-
options: localVarRequestOptions,
|
|
5789
|
-
};
|
|
5790
|
-
},
|
|
5791
|
-
/**
|
|
5792
|
-
*
|
|
5793
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
5794
|
-
* @param {string} id
|
|
5795
|
-
* @param {string} productId
|
|
5796
|
-
* @param {CreatePriceRequest} createPriceRequest
|
|
5797
|
-
* @param {*} [options] Override http request option.
|
|
5798
|
-
* @throws {RequiredError}
|
|
5799
|
-
*/
|
|
5800
|
-
createPriceForSubscriptionPlanAdmin: async (id: string, productId: string, createPriceRequest: CreatePriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5801
|
-
// verify required parameter 'id' is not null or undefined
|
|
5802
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'id', id)
|
|
5803
|
-
// verify required parameter 'productId' is not null or undefined
|
|
5804
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'productId', productId)
|
|
5805
|
-
// verify required parameter 'createPriceRequest' is not null or undefined
|
|
5806
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'createPriceRequest', createPriceRequest)
|
|
5807
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
|
|
5808
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5809
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
5810
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5811
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5812
|
-
let baseOptions;
|
|
5813
|
-
if (configuration) {
|
|
5814
|
-
baseOptions = configuration.baseOptions;
|
|
5815
|
-
}
|
|
5816
|
-
|
|
5817
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5818
|
-
const localVarHeaderParameter = {} as any;
|
|
5819
|
-
const localVarQueryParameter = {} as any;
|
|
5820
|
-
|
|
5821
|
-
// authentication bearerAuth required
|
|
5822
|
-
// http bearer authentication required
|
|
5823
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5828
|
-
|
|
5829
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5830
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5831
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5832
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createPriceRequest, localVarRequestOptions, configuration)
|
|
5833
|
-
|
|
5834
|
-
return {
|
|
5835
|
-
url: toPathString(localVarUrlObj),
|
|
5836
|
-
options: localVarRequestOptions,
|
|
5837
|
-
};
|
|
5838
|
-
},
|
|
5839
|
-
/**
|
|
5840
|
-
*
|
|
5841
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
5842
|
-
* @param {string} id
|
|
5843
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
5844
|
-
* @param {*} [options] Override http request option.
|
|
5845
|
-
* @throws {RequiredError}
|
|
5846
|
-
*/
|
|
5847
|
-
createSubscriptionPlanForClubAdmin: async (id: string, createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5848
|
-
// verify required parameter 'id' is not null or undefined
|
|
5849
|
-
assertParamExists('createSubscriptionPlanForClubAdmin', 'id', id)
|
|
5850
|
-
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
5851
|
-
assertParamExists('createSubscriptionPlanForClubAdmin', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest)
|
|
5852
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans`
|
|
5853
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5854
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5855
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5856
|
-
let baseOptions;
|
|
5857
|
-
if (configuration) {
|
|
5858
|
-
baseOptions = configuration.baseOptions;
|
|
5859
|
-
}
|
|
5860
|
-
|
|
5861
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5862
|
-
const localVarHeaderParameter = {} as any;
|
|
5863
|
-
const localVarQueryParameter = {} as any;
|
|
5864
|
-
|
|
5865
|
-
// authentication bearerAuth required
|
|
5866
|
-
// http bearer authentication required
|
|
5867
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5872
|
-
|
|
5873
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5874
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5875
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5876
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration)
|
|
5877
|
-
|
|
5878
|
-
return {
|
|
5879
|
-
url: toPathString(localVarUrlObj),
|
|
5880
|
-
options: localVarRequestOptions,
|
|
5881
|
-
};
|
|
5882
|
-
},
|
|
5883
|
-
/**
|
|
5884
|
-
*
|
|
5885
|
-
* @summary Supprimer un plan (Admin)
|
|
5886
|
-
* @param {string} id
|
|
5887
|
-
* @param {string} productId
|
|
5888
|
-
* @param {*} [options] Override http request option.
|
|
5889
|
-
* @throws {RequiredError}
|
|
5890
|
-
*/
|
|
5891
|
-
deleteSubscriptionPlanForClubAdmin: async (id: string, productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5892
|
-
// verify required parameter 'id' is not null or undefined
|
|
5893
|
-
assertParamExists('deleteSubscriptionPlanForClubAdmin', 'id', id)
|
|
5894
|
-
// verify required parameter 'productId' is not null or undefined
|
|
5895
|
-
assertParamExists('deleteSubscriptionPlanForClubAdmin', 'productId', productId)
|
|
5896
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
|
|
5897
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5898
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
5899
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5900
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5901
|
-
let baseOptions;
|
|
5902
|
-
if (configuration) {
|
|
5903
|
-
baseOptions = configuration.baseOptions;
|
|
5904
|
-
}
|
|
5905
|
-
|
|
5906
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5907
|
-
const localVarHeaderParameter = {} as any;
|
|
5908
|
-
const localVarQueryParameter = {} as any;
|
|
5909
|
-
|
|
5910
|
-
// authentication bearerAuth required
|
|
5911
|
-
// http bearer authentication required
|
|
5912
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5917
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5918
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5919
|
-
|
|
5920
|
-
return {
|
|
5921
|
-
url: toPathString(localVarUrlObj),
|
|
5922
|
-
options: localVarRequestOptions,
|
|
5923
|
-
};
|
|
5924
|
-
},
|
|
5925
|
-
/**
|
|
5926
|
-
*
|
|
5927
|
-
* @summary Réactiver un plan (Admin)
|
|
5928
|
-
* @param {string} id
|
|
5929
|
-
* @param {string} productId
|
|
5930
|
-
* @param {*} [options] Override http request option.
|
|
5931
|
-
* @throws {RequiredError}
|
|
5932
|
-
*/
|
|
5933
|
-
restoreSubscriptionPlanForClubAdmin: async (id: string, productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5934
|
-
// verify required parameter 'id' is not null or undefined
|
|
5935
|
-
assertParamExists('restoreSubscriptionPlanForClubAdmin', 'id', id)
|
|
5936
|
-
// verify required parameter 'productId' is not null or undefined
|
|
5937
|
-
assertParamExists('restoreSubscriptionPlanForClubAdmin', 'productId', productId)
|
|
5938
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
|
|
5939
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5940
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
5941
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5942
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5943
|
-
let baseOptions;
|
|
5944
|
-
if (configuration) {
|
|
5945
|
-
baseOptions = configuration.baseOptions;
|
|
5946
|
-
}
|
|
5947
|
-
|
|
5948
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5949
|
-
const localVarHeaderParameter = {} as any;
|
|
5950
|
-
const localVarQueryParameter = {} as any;
|
|
5951
|
-
|
|
5952
|
-
// authentication bearerAuth required
|
|
5953
|
-
// http bearer authentication required
|
|
5954
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5959
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5960
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5961
|
-
|
|
5962
|
-
return {
|
|
5963
|
-
url: toPathString(localVarUrlObj),
|
|
5964
|
-
options: localVarRequestOptions,
|
|
5965
|
-
};
|
|
5966
|
-
},
|
|
5967
|
-
/**
|
|
5968
|
-
*
|
|
5969
|
-
* @summary Réactiver un prix (Admin)
|
|
5970
|
-
* @param {string} id
|
|
5971
|
-
* @param {string} priceId
|
|
5972
|
-
* @param {*} [options] Override http request option.
|
|
5973
|
-
* @throws {RequiredError}
|
|
5974
|
-
*/
|
|
5975
|
-
restoreSubscriptionPriceForClubAdmin: async (id: string, priceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5976
|
-
// verify required parameter 'id' is not null or undefined
|
|
5977
|
-
assertParamExists('restoreSubscriptionPriceForClubAdmin', 'id', id)
|
|
5978
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
5979
|
-
assertParamExists('restoreSubscriptionPriceForClubAdmin', 'priceId', priceId)
|
|
5980
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
|
|
5981
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
5982
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
5983
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5984
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5985
|
-
let baseOptions;
|
|
5986
|
-
if (configuration) {
|
|
5987
|
-
baseOptions = configuration.baseOptions;
|
|
5988
|
-
}
|
|
5989
|
-
|
|
5990
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5991
|
-
const localVarHeaderParameter = {} as any;
|
|
5992
|
-
const localVarQueryParameter = {} as any;
|
|
5993
|
-
|
|
5994
|
-
// authentication bearerAuth required
|
|
5995
|
-
// http bearer authentication required
|
|
5996
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6001
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6002
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6003
|
-
|
|
6004
|
-
return {
|
|
6005
|
-
url: toPathString(localVarUrlObj),
|
|
6006
|
-
options: localVarRequestOptions,
|
|
6007
|
-
};
|
|
6008
|
-
},
|
|
6009
|
-
/**
|
|
6010
|
-
*
|
|
6011
|
-
* @summary Mettre à jour un plan (Admin)
|
|
6012
|
-
* @param {string} id
|
|
6013
|
-
* @param {string} priceId
|
|
6014
|
-
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
6015
|
-
* @param {*} [options] Override http request option.
|
|
6016
|
-
* @throws {RequiredError}
|
|
6017
|
-
*/
|
|
6018
|
-
updateSubscriptionPlanForClubAdmin: async (id: string, priceId: string, updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6019
|
-
// verify required parameter 'id' is not null or undefined
|
|
6020
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'id', id)
|
|
6021
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
6022
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'priceId', priceId)
|
|
6023
|
-
// verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
|
|
6024
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest)
|
|
6025
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
|
|
6026
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
6027
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
6028
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6029
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6030
|
-
let baseOptions;
|
|
6031
|
-
if (configuration) {
|
|
6032
|
-
baseOptions = configuration.baseOptions;
|
|
6033
|
-
}
|
|
6034
|
-
|
|
6035
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
6036
|
-
const localVarHeaderParameter = {} as any;
|
|
6037
|
-
const localVarQueryParameter = {} as any;
|
|
6038
|
-
|
|
6039
|
-
// authentication bearerAuth required
|
|
6040
|
-
// http bearer authentication required
|
|
6041
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6046
|
-
|
|
6047
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6048
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6049
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6050
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateSubscriptionPlanRequest, localVarRequestOptions, configuration)
|
|
6051
|
-
|
|
6052
|
-
return {
|
|
6053
|
-
url: toPathString(localVarUrlObj),
|
|
6054
|
-
options: localVarRequestOptions,
|
|
6055
|
-
};
|
|
6056
|
-
},
|
|
6057
|
-
}
|
|
6058
|
-
};
|
|
6059
|
-
|
|
6060
|
-
/**
|
|
6061
|
-
* AdminClubSubscriptionsApi - functional programming interface
|
|
6062
|
-
* @export
|
|
6063
|
-
*/
|
|
6064
|
-
export const AdminClubSubscriptionsApiFp = function(configuration?: Configuration) {
|
|
6065
|
-
const localVarAxiosParamCreator = AdminClubSubscriptionsApiAxiosParamCreator(configuration)
|
|
6066
|
-
return {
|
|
6067
|
-
/**
|
|
6068
|
-
*
|
|
6069
|
-
* @summary Archiver un prix (Admin)
|
|
6070
|
-
* @param {string} id
|
|
6071
|
-
* @param {string} priceId
|
|
6072
|
-
* @param {*} [options] Override http request option.
|
|
6073
|
-
* @throws {RequiredError}
|
|
6074
|
-
*/
|
|
6075
|
-
async archivePriceForSubscriptionPlanAdmin(id: string, priceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6076
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.archivePriceForSubscriptionPlanAdmin(id, priceId, options);
|
|
6077
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6078
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.archivePriceForSubscriptionPlanAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6079
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6080
|
-
},
|
|
6081
|
-
/**
|
|
6082
|
-
*
|
|
6083
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
6084
|
-
* @param {string} id
|
|
6085
|
-
* @param {string} productId
|
|
6086
|
-
* @param {CreatePriceRequest} createPriceRequest
|
|
6087
|
-
* @param {*} [options] Override http request option.
|
|
6088
|
-
* @throws {RequiredError}
|
|
6089
|
-
*/
|
|
6090
|
-
async createPriceForSubscriptionPlanAdmin(id: string, productId: string, createPriceRequest: CreatePriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PriceResponse>> {
|
|
6091
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options);
|
|
6092
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6093
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.createPriceForSubscriptionPlanAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6094
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6095
|
-
},
|
|
6096
|
-
/**
|
|
6097
|
-
*
|
|
6098
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
6099
|
-
* @param {string} id
|
|
6100
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6101
|
-
* @param {*} [options] Override http request option.
|
|
6102
|
-
* @throws {RequiredError}
|
|
6103
|
-
*/
|
|
6104
|
-
async createSubscriptionPlanForClubAdmin(id: string, createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPlanResponse>> {
|
|
6105
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options);
|
|
6106
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6107
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.createSubscriptionPlanForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6108
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6109
|
-
},
|
|
6110
|
-
/**
|
|
6111
|
-
*
|
|
6112
|
-
* @summary Supprimer un plan (Admin)
|
|
6113
|
-
* @param {string} id
|
|
6114
|
-
* @param {string} productId
|
|
6115
|
-
* @param {*} [options] Override http request option.
|
|
6116
|
-
* @throws {RequiredError}
|
|
6117
|
-
*/
|
|
6118
|
-
async deleteSubscriptionPlanForClubAdmin(id: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6119
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSubscriptionPlanForClubAdmin(id, productId, options);
|
|
6120
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6121
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.deleteSubscriptionPlanForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6122
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6123
|
-
},
|
|
6124
|
-
/**
|
|
6125
|
-
*
|
|
6126
|
-
* @summary Réactiver un plan (Admin)
|
|
6127
|
-
* @param {string} id
|
|
6128
|
-
* @param {string} productId
|
|
6129
|
-
* @param {*} [options] Override http request option.
|
|
6130
|
-
* @throws {RequiredError}
|
|
6131
|
-
*/
|
|
6132
|
-
async restoreSubscriptionPlanForClubAdmin(id: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6133
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreSubscriptionPlanForClubAdmin(id, productId, options);
|
|
6134
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6135
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPlanForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6136
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6137
|
-
},
|
|
6138
|
-
/**
|
|
6139
|
-
*
|
|
6140
|
-
* @summary Réactiver un prix (Admin)
|
|
6141
|
-
* @param {string} id
|
|
6142
|
-
* @param {string} priceId
|
|
6143
|
-
* @param {*} [options] Override http request option.
|
|
6144
|
-
* @throws {RequiredError}
|
|
6145
|
-
*/
|
|
6146
|
-
async restoreSubscriptionPriceForClubAdmin(id: string, priceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6147
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreSubscriptionPriceForClubAdmin(id, priceId, options);
|
|
6148
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6149
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPriceForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6150
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6151
|
-
},
|
|
6152
|
-
/**
|
|
6153
|
-
*
|
|
6154
|
-
* @summary Mettre à jour un plan (Admin)
|
|
6155
|
-
* @param {string} id
|
|
6156
|
-
* @param {string} priceId
|
|
6157
|
-
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
6158
|
-
* @param {*} [options] Override http request option.
|
|
6159
|
-
* @throws {RequiredError}
|
|
6160
|
-
*/
|
|
6161
|
-
async updateSubscriptionPlanForClubAdmin(id: string, priceId: string, updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options);
|
|
6163
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6164
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubSubscriptionsApi.updateSubscriptionPlanForClubAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6165
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6166
|
-
},
|
|
6167
|
-
}
|
|
6168
|
-
};
|
|
6169
|
-
|
|
6170
|
-
/**
|
|
6171
|
-
* AdminClubSubscriptionsApi - factory interface
|
|
6172
|
-
* @export
|
|
6173
|
-
*/
|
|
6174
|
-
export const AdminClubSubscriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6175
|
-
const localVarFp = AdminClubSubscriptionsApiFp(configuration)
|
|
6176
|
-
return {
|
|
6177
|
-
/**
|
|
6178
|
-
*
|
|
6179
|
-
* @summary Archiver un prix (Admin)
|
|
6180
|
-
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
6181
|
-
* @param {*} [options] Override http request option.
|
|
6182
|
-
* @throws {RequiredError}
|
|
6183
|
-
*/
|
|
6184
|
-
archivePriceForSubscriptionPlanAdmin(requestParameters: AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6185
|
-
return localVarFp.archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
6186
|
-
},
|
|
6187
|
-
/**
|
|
6188
|
-
*
|
|
6189
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
6190
|
-
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
6191
|
-
* @param {*} [options] Override http request option.
|
|
6192
|
-
* @throws {RequiredError}
|
|
6193
|
-
*/
|
|
6194
|
-
createPriceForSubscriptionPlanAdmin(requestParameters: AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<PriceResponse> {
|
|
6195
|
-
return localVarFp.createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
|
|
6196
|
-
},
|
|
6197
|
-
/**
|
|
6198
|
-
*
|
|
6199
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
6200
|
-
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6201
|
-
* @param {*} [options] Override http request option.
|
|
6202
|
-
* @throws {RequiredError}
|
|
6203
|
-
*/
|
|
6204
|
-
createSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPlanResponse> {
|
|
6205
|
-
return localVarFp.createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
6206
|
-
},
|
|
6207
|
-
/**
|
|
6208
|
-
*
|
|
6209
|
-
* @summary Supprimer un plan (Admin)
|
|
6210
|
-
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6211
|
-
* @param {*} [options] Override http request option.
|
|
6212
|
-
* @throws {RequiredError}
|
|
6213
|
-
*/
|
|
6214
|
-
deleteSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6215
|
-
return localVarFp.deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
6216
|
-
},
|
|
6217
|
-
/**
|
|
6218
|
-
*
|
|
6219
|
-
* @summary Réactiver un plan (Admin)
|
|
6220
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6221
|
-
* @param {*} [options] Override http request option.
|
|
6222
|
-
* @throws {RequiredError}
|
|
6223
|
-
*/
|
|
6224
|
-
restoreSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6225
|
-
return localVarFp.restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
6226
|
-
},
|
|
6227
|
-
/**
|
|
6228
|
-
*
|
|
6229
|
-
* @summary Réactiver un prix (Admin)
|
|
6230
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
6231
|
-
* @param {*} [options] Override http request option.
|
|
6232
|
-
* @throws {RequiredError}
|
|
6233
|
-
*/
|
|
6234
|
-
restoreSubscriptionPriceForClubAdmin(requestParameters: AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6235
|
-
return localVarFp.restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
6236
|
-
},
|
|
6237
|
-
/**
|
|
6238
|
-
*
|
|
6239
|
-
* @summary Mettre à jour un plan (Admin)
|
|
6240
|
-
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6241
|
-
* @param {*} [options] Override http request option.
|
|
6242
|
-
* @throws {RequiredError}
|
|
6243
|
-
*/
|
|
6244
|
-
updateSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6245
|
-
return localVarFp.updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
6246
|
-
},
|
|
6247
|
-
};
|
|
6248
|
-
};
|
|
6249
|
-
|
|
6250
|
-
/**
|
|
6251
|
-
* Request parameters for archivePriceForSubscriptionPlanAdmin operation in AdminClubSubscriptionsApi.
|
|
6252
|
-
* @export
|
|
6253
|
-
* @interface AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest
|
|
6254
|
-
*/
|
|
6255
|
-
export interface AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest {
|
|
6256
|
-
/**
|
|
6257
|
-
*
|
|
6258
|
-
* @type {string}
|
|
6259
|
-
* @memberof AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdmin
|
|
6260
|
-
*/
|
|
6261
|
-
readonly id: string
|
|
6262
|
-
|
|
6263
|
-
/**
|
|
6264
|
-
*
|
|
6265
|
-
* @type {string}
|
|
6266
|
-
* @memberof AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdmin
|
|
6267
|
-
*/
|
|
6268
|
-
readonly priceId: string
|
|
6269
|
-
}
|
|
6270
|
-
|
|
6271
|
-
/**
|
|
6272
|
-
* Request parameters for createPriceForSubscriptionPlanAdmin operation in AdminClubSubscriptionsApi.
|
|
6273
|
-
* @export
|
|
6274
|
-
* @interface AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest
|
|
6275
|
-
*/
|
|
6276
|
-
export interface AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest {
|
|
6277
|
-
/**
|
|
6278
|
-
*
|
|
6279
|
-
* @type {string}
|
|
6280
|
-
* @memberof AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdmin
|
|
6281
|
-
*/
|
|
6282
|
-
readonly id: string
|
|
6283
|
-
|
|
6284
|
-
/**
|
|
6285
|
-
*
|
|
6286
|
-
* @type {string}
|
|
6287
|
-
* @memberof AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdmin
|
|
6288
|
-
*/
|
|
6289
|
-
readonly productId: string
|
|
6290
|
-
|
|
6291
|
-
/**
|
|
6292
|
-
*
|
|
6293
|
-
* @type {CreatePriceRequest}
|
|
6294
|
-
* @memberof AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdmin
|
|
6295
|
-
*/
|
|
6296
|
-
readonly createPriceRequest: CreatePriceRequest
|
|
6297
|
-
}
|
|
6298
|
-
|
|
6299
|
-
/**
|
|
6300
|
-
* Request parameters for createSubscriptionPlanForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6301
|
-
* @export
|
|
6302
|
-
* @interface AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest
|
|
6303
|
-
*/
|
|
6304
|
-
export interface AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest {
|
|
6305
|
-
/**
|
|
6306
|
-
*
|
|
6307
|
-
* @type {string}
|
|
6308
|
-
* @memberof AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdmin
|
|
6309
|
-
*/
|
|
6310
|
-
readonly id: string
|
|
6311
|
-
|
|
6312
|
-
/**
|
|
6313
|
-
*
|
|
6314
|
-
* @type {CreateSubscriptionPlanRequest}
|
|
6315
|
-
* @memberof AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdmin
|
|
6316
|
-
*/
|
|
6317
|
-
readonly createSubscriptionPlanRequest: CreateSubscriptionPlanRequest
|
|
6318
|
-
}
|
|
6319
|
-
|
|
6320
|
-
/**
|
|
6321
|
-
* Request parameters for deleteSubscriptionPlanForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6322
|
-
* @export
|
|
6323
|
-
* @interface AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest
|
|
6324
|
-
*/
|
|
6325
|
-
export interface AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest {
|
|
6326
|
-
/**
|
|
6327
|
-
*
|
|
6328
|
-
* @type {string}
|
|
6329
|
-
* @memberof AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdmin
|
|
6330
|
-
*/
|
|
6331
|
-
readonly id: string
|
|
6332
|
-
|
|
6333
|
-
/**
|
|
6334
|
-
*
|
|
6335
|
-
* @type {string}
|
|
6336
|
-
* @memberof AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdmin
|
|
6337
|
-
*/
|
|
6338
|
-
readonly productId: string
|
|
6339
|
-
}
|
|
6340
|
-
|
|
6341
|
-
/**
|
|
6342
|
-
* Request parameters for restoreSubscriptionPlanForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6343
|
-
* @export
|
|
6344
|
-
* @interface AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest
|
|
6345
|
-
*/
|
|
6346
|
-
export interface AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest {
|
|
6347
|
-
/**
|
|
6348
|
-
*
|
|
6349
|
-
* @type {string}
|
|
6350
|
-
* @memberof AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdmin
|
|
6351
|
-
*/
|
|
6352
|
-
readonly id: string
|
|
6353
|
-
|
|
6354
|
-
/**
|
|
6355
|
-
*
|
|
6356
|
-
* @type {string}
|
|
6357
|
-
* @memberof AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdmin
|
|
6358
|
-
*/
|
|
6359
|
-
readonly productId: string
|
|
6360
|
-
}
|
|
6361
|
-
|
|
6362
|
-
/**
|
|
6363
|
-
* Request parameters for restoreSubscriptionPriceForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6364
|
-
* @export
|
|
6365
|
-
* @interface AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest
|
|
6366
|
-
*/
|
|
6367
|
-
export interface AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest {
|
|
6368
|
-
/**
|
|
6369
|
-
*
|
|
6370
|
-
* @type {string}
|
|
6371
|
-
* @memberof AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdmin
|
|
6372
|
-
*/
|
|
6373
|
-
readonly id: string
|
|
6374
|
-
|
|
6375
|
-
/**
|
|
6376
|
-
*
|
|
6377
|
-
* @type {string}
|
|
6378
|
-
* @memberof AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdmin
|
|
6379
|
-
*/
|
|
6380
|
-
readonly priceId: string
|
|
6381
|
-
}
|
|
6382
|
-
|
|
6383
|
-
/**
|
|
6384
|
-
* Request parameters for updateSubscriptionPlanForClubAdmin operation in AdminClubSubscriptionsApi.
|
|
6385
|
-
* @export
|
|
6386
|
-
* @interface AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest
|
|
6387
|
-
*/
|
|
6388
|
-
export interface AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest {
|
|
6389
|
-
/**
|
|
6390
|
-
*
|
|
6391
|
-
* @type {string}
|
|
6392
|
-
* @memberof AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdmin
|
|
6393
|
-
*/
|
|
6394
|
-
readonly id: string
|
|
6395
|
-
|
|
6396
|
-
/**
|
|
6397
|
-
*
|
|
6398
|
-
* @type {string}
|
|
6399
|
-
* @memberof AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdmin
|
|
6400
|
-
*/
|
|
6401
|
-
readonly priceId: string
|
|
6402
|
-
|
|
6403
|
-
/**
|
|
6404
|
-
*
|
|
6405
|
-
* @type {UpdateSubscriptionPlanRequest}
|
|
6406
|
-
* @memberof AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdmin
|
|
6407
|
-
*/
|
|
6408
|
-
readonly updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest
|
|
6409
|
-
}
|
|
6410
|
-
|
|
6411
|
-
/**
|
|
6412
|
-
* AdminClubSubscriptionsApi - object-oriented interface
|
|
6413
|
-
* @export
|
|
6414
|
-
* @class AdminClubSubscriptionsApi
|
|
6415
|
-
* @extends {BaseAPI}
|
|
6416
|
-
*/
|
|
6417
|
-
export class AdminClubSubscriptionsApi extends BaseAPI {
|
|
6418
|
-
/**
|
|
6419
|
-
*
|
|
6420
|
-
* @summary Archiver un prix (Admin)
|
|
6421
|
-
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
6422
|
-
* @param {*} [options] Override http request option.
|
|
6423
|
-
* @throws {RequiredError}
|
|
6424
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6425
|
-
*/
|
|
6426
|
-
public archivePriceForSubscriptionPlanAdmin(requestParameters: AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6427
|
-
return AdminClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
6428
|
-
}
|
|
6429
|
-
|
|
6430
|
-
/**
|
|
6431
|
-
*
|
|
6432
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
6433
|
-
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
6434
|
-
* @param {*} [options] Override http request option.
|
|
6435
|
-
* @throws {RequiredError}
|
|
6436
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6437
|
-
*/
|
|
6438
|
-
public createPriceForSubscriptionPlanAdmin(requestParameters: AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6439
|
-
return AdminClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6440
|
-
}
|
|
6441
|
-
|
|
6442
|
-
/**
|
|
6443
|
-
*
|
|
6444
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
6445
|
-
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6446
|
-
* @param {*} [options] Override http request option.
|
|
6447
|
-
* @throws {RequiredError}
|
|
6448
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6449
|
-
*/
|
|
6450
|
-
public createSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6451
|
-
return AdminClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6452
|
-
}
|
|
6453
|
-
|
|
6454
|
-
/**
|
|
6455
|
-
*
|
|
6456
|
-
* @summary Supprimer un plan (Admin)
|
|
6457
|
-
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6458
|
-
* @param {*} [options] Override http request option.
|
|
6459
|
-
* @throws {RequiredError}
|
|
6460
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6461
|
-
*/
|
|
6462
|
-
public deleteSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6463
|
-
return AdminClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
6464
|
-
}
|
|
6465
|
-
|
|
6466
|
-
/**
|
|
6467
|
-
*
|
|
6468
|
-
* @summary Réactiver un plan (Admin)
|
|
6469
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6470
|
-
* @param {*} [options] Override http request option.
|
|
6471
|
-
* @throws {RequiredError}
|
|
6472
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6473
|
-
*/
|
|
6474
|
-
public restoreSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6475
|
-
return AdminClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
6476
|
-
}
|
|
6477
|
-
|
|
6478
|
-
/**
|
|
6479
|
-
*
|
|
6480
|
-
* @summary Réactiver un prix (Admin)
|
|
6481
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
6482
|
-
* @param {*} [options] Override http request option.
|
|
6483
|
-
* @throws {RequiredError}
|
|
6484
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6485
|
-
*/
|
|
6486
|
-
public restoreSubscriptionPriceForClubAdmin(requestParameters: AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6487
|
-
return AdminClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
6488
|
-
}
|
|
6489
|
-
|
|
6490
|
-
/**
|
|
6491
|
-
*
|
|
6492
|
-
* @summary Mettre à jour un plan (Admin)
|
|
6493
|
-
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
6494
|
-
* @param {*} [options] Override http request option.
|
|
6495
|
-
* @throws {RequiredError}
|
|
6496
|
-
* @memberof AdminClubSubscriptionsApi
|
|
6497
|
-
*/
|
|
6498
|
-
public updateSubscriptionPlanForClubAdmin(requestParameters: AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest, options?: RawAxiosRequestConfig) {
|
|
6499
|
-
return AdminClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6500
|
-
}
|
|
6501
|
-
}
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
/**
|
|
6506
|
-
* AdminClubsApi - axios parameter creator
|
|
6507
|
-
* @export
|
|
6508
|
-
*/
|
|
6509
|
-
export const AdminClubsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6510
|
-
return {
|
|
6511
|
-
/**
|
|
6512
|
-
*
|
|
6513
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
6514
|
-
* @param {string} id ID du club
|
|
6515
|
-
* @param {*} [options] Override http request option.
|
|
6516
|
-
* @throws {RequiredError}
|
|
6517
|
-
*/
|
|
6518
|
-
deleteClub: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6519
|
-
// verify required parameter 'id' is not null or undefined
|
|
6520
|
-
assertParamExists('deleteClub', 'id', id)
|
|
6521
|
-
const localVarPath = `/api/clubs/{id}`
|
|
6522
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6523
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6524
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6525
|
-
let baseOptions;
|
|
6526
|
-
if (configuration) {
|
|
6527
|
-
baseOptions = configuration.baseOptions;
|
|
6528
|
-
}
|
|
6529
|
-
|
|
6530
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6531
|
-
const localVarHeaderParameter = {} as any;
|
|
6532
|
-
const localVarQueryParameter = {} as any;
|
|
6533
|
-
|
|
6534
|
-
// authentication bearerAuth required
|
|
6535
|
-
// http bearer authentication required
|
|
6536
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6541
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6542
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6543
|
-
|
|
6544
|
-
return {
|
|
6545
|
-
url: toPathString(localVarUrlObj),
|
|
6546
|
-
options: localVarRequestOptions,
|
|
6547
|
-
};
|
|
6548
|
-
},
|
|
6549
|
-
/**
|
|
6550
|
-
*
|
|
6551
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
6552
|
-
* @param {string} id
|
|
6553
|
-
* @param {*} [options] Override http request option.
|
|
6554
|
-
* @throws {RequiredError}
|
|
6555
|
-
*/
|
|
6556
|
-
getClubInfosAdmin: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6557
|
-
// verify required parameter 'id' is not null or undefined
|
|
6558
|
-
assertParamExists('getClubInfosAdmin', 'id', id)
|
|
6559
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
6560
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6561
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6562
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6563
|
-
let baseOptions;
|
|
6564
|
-
if (configuration) {
|
|
6565
|
-
baseOptions = configuration.baseOptions;
|
|
6566
|
-
}
|
|
6567
|
-
|
|
6568
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6569
|
-
const localVarHeaderParameter = {} as any;
|
|
6570
|
-
const localVarQueryParameter = {} as any;
|
|
6571
|
-
|
|
6572
|
-
// authentication bearerAuth required
|
|
6573
|
-
// http bearer authentication required
|
|
6574
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6579
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6580
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6581
|
-
|
|
6582
|
-
return {
|
|
6583
|
-
url: toPathString(localVarUrlObj),
|
|
6584
|
-
options: localVarRequestOptions,
|
|
6585
|
-
};
|
|
6586
|
-
},
|
|
6587
|
-
/**
|
|
6588
|
-
*
|
|
6589
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
6590
|
-
* @param {string} id
|
|
6591
|
-
* @param {object} body
|
|
6592
|
-
* @param {*} [options] Override http request option.
|
|
6593
|
-
* @throws {RequiredError}
|
|
6594
|
-
*/
|
|
6595
|
-
updateClubInfosAdmin: async (id: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6596
|
-
// verify required parameter 'id' is not null or undefined
|
|
6597
|
-
assertParamExists('updateClubInfosAdmin', 'id', id)
|
|
6598
|
-
// verify required parameter 'body' is not null or undefined
|
|
6599
|
-
assertParamExists('updateClubInfosAdmin', 'body', body)
|
|
6600
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
6601
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6602
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6603
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6604
|
-
let baseOptions;
|
|
6605
|
-
if (configuration) {
|
|
6606
|
-
baseOptions = configuration.baseOptions;
|
|
6607
|
-
}
|
|
6608
|
-
|
|
6609
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
6610
|
-
const localVarHeaderParameter = {} as any;
|
|
6611
|
-
const localVarQueryParameter = {} as any;
|
|
6612
|
-
|
|
6613
|
-
// authentication bearerAuth required
|
|
6614
|
-
// http bearer authentication required
|
|
6615
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6620
|
-
|
|
6621
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6622
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6623
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6624
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
6625
|
-
|
|
6626
|
-
return {
|
|
6627
|
-
url: toPathString(localVarUrlObj),
|
|
6628
|
-
options: localVarRequestOptions,
|
|
6629
|
-
};
|
|
6630
|
-
},
|
|
6631
|
-
}
|
|
6632
|
-
};
|
|
6633
|
-
|
|
6634
|
-
/**
|
|
6635
|
-
* AdminClubsApi - functional programming interface
|
|
6636
|
-
* @export
|
|
6637
|
-
*/
|
|
6638
|
-
export const AdminClubsApiFp = function(configuration?: Configuration) {
|
|
6639
|
-
const localVarAxiosParamCreator = AdminClubsApiAxiosParamCreator(configuration)
|
|
6640
|
-
return {
|
|
6641
|
-
/**
|
|
6642
|
-
*
|
|
6643
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
6644
|
-
* @param {string} id ID du club
|
|
6645
|
-
* @param {*} [options] Override http request option.
|
|
6646
|
-
* @throws {RequiredError}
|
|
6647
|
-
*/
|
|
6648
|
-
async deleteClub(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteClub200Response>> {
|
|
6649
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClub(id, options);
|
|
6650
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6651
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubsApi.deleteClub']?.[localVarOperationServerIndex]?.url;
|
|
6652
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6653
|
-
},
|
|
6654
|
-
/**
|
|
6655
|
-
*
|
|
6656
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
6657
|
-
* @param {string} id
|
|
6658
|
-
* @param {*} [options] Override http request option.
|
|
6659
|
-
* @throws {RequiredError}
|
|
6660
|
-
*/
|
|
6661
|
-
async getClubInfosAdmin(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
6662
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubInfosAdmin(id, options);
|
|
6663
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6664
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubsApi.getClubInfosAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6665
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6666
|
-
},
|
|
6667
|
-
/**
|
|
6668
|
-
*
|
|
6669
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
6670
|
-
* @param {string} id
|
|
6671
|
-
* @param {object} body
|
|
6672
|
-
* @param {*} [options] Override http request option.
|
|
6673
|
-
* @throws {RequiredError}
|
|
6674
|
-
*/
|
|
6675
|
-
async updateClubInfosAdmin(id: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
6676
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubInfosAdmin(id, body, options);
|
|
6677
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6678
|
-
const localVarOperationServerBasePath = operationServerMap['AdminClubsApi.updateClubInfosAdmin']?.[localVarOperationServerIndex]?.url;
|
|
6679
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6680
|
-
},
|
|
6681
|
-
}
|
|
6682
|
-
};
|
|
6683
|
-
|
|
6684
|
-
/**
|
|
6685
|
-
* AdminClubsApi - factory interface
|
|
6686
|
-
* @export
|
|
6687
|
-
*/
|
|
6688
|
-
export const AdminClubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6689
|
-
const localVarFp = AdminClubsApiFp(configuration)
|
|
6690
|
-
return {
|
|
6691
|
-
/**
|
|
6692
|
-
*
|
|
6693
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
6694
|
-
* @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
|
|
6695
|
-
* @param {*} [options] Override http request option.
|
|
6696
|
-
* @throws {RequiredError}
|
|
6697
|
-
*/
|
|
6698
|
-
deleteClub(requestParameters: AdminClubsApiDeleteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteClub200Response> {
|
|
6699
|
-
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6700
|
-
},
|
|
6701
|
-
/**
|
|
6702
|
-
*
|
|
6703
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
6704
|
-
* @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
|
|
6705
|
-
* @param {*} [options] Override http request option.
|
|
6706
|
-
* @throws {RequiredError}
|
|
6707
|
-
*/
|
|
6708
|
-
getClubInfosAdmin(requestParameters: AdminClubsApiGetClubInfosAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
6709
|
-
return localVarFp.getClubInfosAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6710
|
-
},
|
|
6711
|
-
/**
|
|
6712
|
-
*
|
|
6713
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
6714
|
-
* @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
|
|
6715
|
-
* @param {*} [options] Override http request option.
|
|
6716
|
-
* @throws {RequiredError}
|
|
6717
|
-
*/
|
|
6718
|
-
updateClubInfosAdmin(requestParameters: AdminClubsApiUpdateClubInfosAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
6719
|
-
return localVarFp.updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
6720
|
-
},
|
|
6721
|
-
};
|
|
6722
|
-
};
|
|
6723
|
-
|
|
6724
|
-
/**
|
|
6725
|
-
* Request parameters for deleteClub operation in AdminClubsApi.
|
|
6726
|
-
* @export
|
|
6727
|
-
* @interface AdminClubsApiDeleteClubRequest
|
|
6728
|
-
*/
|
|
6729
|
-
export interface AdminClubsApiDeleteClubRequest {
|
|
4708
|
+
'firstName'?: string;
|
|
6730
4709
|
/**
|
|
6731
|
-
*
|
|
4710
|
+
*
|
|
6732
4711
|
* @type {string}
|
|
6733
|
-
* @memberof
|
|
4712
|
+
* @memberof UserStaffResponse
|
|
6734
4713
|
*/
|
|
6735
|
-
|
|
6736
|
-
}
|
|
6737
|
-
|
|
6738
|
-
/**
|
|
6739
|
-
* Request parameters for getClubInfosAdmin operation in AdminClubsApi.
|
|
6740
|
-
* @export
|
|
6741
|
-
* @interface AdminClubsApiGetClubInfosAdminRequest
|
|
6742
|
-
*/
|
|
6743
|
-
export interface AdminClubsApiGetClubInfosAdminRequest {
|
|
4714
|
+
'lastName'?: string;
|
|
6744
4715
|
/**
|
|
6745
4716
|
*
|
|
6746
4717
|
* @type {string}
|
|
6747
|
-
* @memberof
|
|
4718
|
+
* @memberof UserStaffResponse
|
|
6748
4719
|
*/
|
|
6749
|
-
|
|
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;
|
|
6750
4733
|
}
|
|
6751
|
-
|
|
6752
4734
|
/**
|
|
6753
|
-
*
|
|
4735
|
+
*
|
|
6754
4736
|
* @export
|
|
6755
|
-
* @interface
|
|
4737
|
+
* @interface YearlyTurnoverResponse
|
|
6756
4738
|
*/
|
|
6757
|
-
export interface
|
|
4739
|
+
export interface YearlyTurnoverResponse {
|
|
6758
4740
|
/**
|
|
6759
4741
|
*
|
|
6760
|
-
* @type {
|
|
6761
|
-
* @memberof
|
|
4742
|
+
* @type {number}
|
|
4743
|
+
* @memberof YearlyTurnoverResponse
|
|
6762
4744
|
*/
|
|
6763
|
-
|
|
6764
|
-
|
|
4745
|
+
'year'?: number;
|
|
6765
4746
|
/**
|
|
6766
4747
|
*
|
|
6767
|
-
* @type {
|
|
6768
|
-
* @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
|
|
6769
4762
|
*/
|
|
6770
|
-
|
|
4763
|
+
'monthlyBreakdown'?: Array<YearlyTurnoverResponseMonthlyBreakdownInner>;
|
|
6771
4764
|
}
|
|
6772
|
-
|
|
6773
4765
|
/**
|
|
6774
|
-
*
|
|
4766
|
+
*
|
|
6775
4767
|
* @export
|
|
6776
|
-
* @
|
|
6777
|
-
* @extends {BaseAPI}
|
|
4768
|
+
* @interface YearlyTurnoverResponseMonthlyBreakdownInner
|
|
6778
4769
|
*/
|
|
6779
|
-
export
|
|
4770
|
+
export interface YearlyTurnoverResponseMonthlyBreakdownInner {
|
|
6780
4771
|
/**
|
|
6781
4772
|
*
|
|
6782
|
-
* @
|
|
6783
|
-
* @
|
|
6784
|
-
* @param {*} [options] Override http request option.
|
|
6785
|
-
* @throws {RequiredError}
|
|
6786
|
-
* @memberof AdminClubsApi
|
|
4773
|
+
* @type {number}
|
|
4774
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
6787
4775
|
*/
|
|
6788
|
-
|
|
6789
|
-
return AdminClubsApiFp(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6790
|
-
}
|
|
6791
|
-
|
|
4776
|
+
'month'?: number;
|
|
6792
4777
|
/**
|
|
6793
4778
|
*
|
|
6794
|
-
* @
|
|
6795
|
-
* @
|
|
6796
|
-
* @param {*} [options] Override http request option.
|
|
6797
|
-
* @throws {RequiredError}
|
|
6798
|
-
* @memberof AdminClubsApi
|
|
4779
|
+
* @type {number}
|
|
4780
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
6799
4781
|
*/
|
|
6800
|
-
|
|
6801
|
-
return AdminClubsApiFp(this.configuration).getClubInfosAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6802
|
-
}
|
|
6803
|
-
|
|
4782
|
+
'monthlyTurnover'?: number;
|
|
6804
4783
|
/**
|
|
6805
4784
|
*
|
|
6806
|
-
* @
|
|
6807
|
-
* @
|
|
6808
|
-
* @param {*} [options] Override http request option.
|
|
6809
|
-
* @throws {RequiredError}
|
|
6810
|
-
* @memberof AdminClubsApi
|
|
4785
|
+
* @type {number}
|
|
4786
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
6811
4787
|
*/
|
|
6812
|
-
|
|
6813
|
-
return AdminClubsApiFp(this.configuration).updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
6814
|
-
}
|
|
4788
|
+
'invoiceCount'?: number;
|
|
6815
4789
|
}
|
|
6816
4790
|
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
4791
|
/**
|
|
6820
4792
|
* ClubAnalyticsApi - axios parameter creator
|
|
6821
4793
|
* @export
|
|
@@ -7889,14 +5861,89 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7889
5861
|
return {
|
|
7890
5862
|
/**
|
|
7891
5863
|
*
|
|
7892
|
-
* @summary Créer un terrain pour le club courant
|
|
7893
|
-
* @param {CreateCourtRequest} createCourtRequest
|
|
5864
|
+
* @summary Créer un terrain pour le club courant
|
|
5865
|
+
* @param {CreateCourtRequest} createCourtRequest
|
|
5866
|
+
* @param {*} [options] Override http request option.
|
|
5867
|
+
* @throws {RequiredError}
|
|
5868
|
+
*/
|
|
5869
|
+
createCourtForClub: async (createCourtRequest: CreateCourtRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5870
|
+
// verify required parameter 'createCourtRequest' is not null or undefined
|
|
5871
|
+
assertParamExists('createCourtForClub', 'createCourtRequest', createCourtRequest)
|
|
5872
|
+
const localVarPath = `/api/clubs/courts`;
|
|
5873
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5874
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5875
|
+
let baseOptions;
|
|
5876
|
+
if (configuration) {
|
|
5877
|
+
baseOptions = configuration.baseOptions;
|
|
5878
|
+
}
|
|
5879
|
+
|
|
5880
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5881
|
+
const localVarHeaderParameter = {} as any;
|
|
5882
|
+
const localVarQueryParameter = {} as any;
|
|
5883
|
+
|
|
5884
|
+
// authentication bearerAuth required
|
|
5885
|
+
// http bearer authentication required
|
|
5886
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5887
|
+
|
|
5888
|
+
|
|
5889
|
+
|
|
5890
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5891
|
+
|
|
5892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5893
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5894
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
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
|
|
7894
5943
|
* @param {*} [options] Override http request option.
|
|
7895
5944
|
* @throws {RequiredError}
|
|
7896
5945
|
*/
|
|
7897
|
-
|
|
7898
|
-
// verify required parameter 'createCourtRequest' is not null or undefined
|
|
7899
|
-
assertParamExists('createCourtForClub', 'createCourtRequest', createCourtRequest)
|
|
5946
|
+
getCourtsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7900
5947
|
const localVarPath = `/api/clubs/courts`;
|
|
7901
5948
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7902
5949
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7905,7 +5952,7 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7905
5952
|
baseOptions = configuration.baseOptions;
|
|
7906
5953
|
}
|
|
7907
5954
|
|
|
7908
|
-
const localVarRequestOptions = { method: '
|
|
5955
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7909
5956
|
const localVarHeaderParameter = {} as any;
|
|
7910
5957
|
const localVarQueryParameter = {} as any;
|
|
7911
5958
|
|
|
@@ -7915,12 +5962,9 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7915
5962
|
|
|
7916
5963
|
|
|
7917
5964
|
|
|
7918
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7919
|
-
|
|
7920
5965
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7921
5966
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7922
5967
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7923
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createCourtRequest, localVarRequestOptions, configuration)
|
|
7924
5968
|
|
|
7925
5969
|
return {
|
|
7926
5970
|
url: toPathString(localVarUrlObj),
|
|
@@ -7929,12 +5973,19 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7929
5973
|
},
|
|
7930
5974
|
/**
|
|
7931
5975
|
*
|
|
7932
|
-
* @summary
|
|
5976
|
+
* @summary Mettre à jour un terrain du club courant
|
|
5977
|
+
* @param {string} courtId ID du terrain à mettre à jour
|
|
5978
|
+
* @param {UpdateCourtRequest} updateCourtRequest
|
|
7933
5979
|
* @param {*} [options] Override http request option.
|
|
7934
5980
|
* @throws {RequiredError}
|
|
7935
5981
|
*/
|
|
7936
|
-
|
|
7937
|
-
|
|
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)));
|
|
7938
5989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7939
5990
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7940
5991
|
let baseOptions;
|
|
@@ -7942,7 +5993,7 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7942
5993
|
baseOptions = configuration.baseOptions;
|
|
7943
5994
|
}
|
|
7944
5995
|
|
|
7945
|
-
const localVarRequestOptions = { method: '
|
|
5996
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
7946
5997
|
const localVarHeaderParameter = {} as any;
|
|
7947
5998
|
const localVarQueryParameter = {} as any;
|
|
7948
5999
|
|
|
@@ -7952,9 +6003,12 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration?: C
|
|
|
7952
6003
|
|
|
7953
6004
|
|
|
7954
6005
|
|
|
6006
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6007
|
+
|
|
7955
6008
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7956
6009
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7957
6010
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6011
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCourtRequest, localVarRequestOptions, configuration)
|
|
7958
6012
|
|
|
7959
6013
|
return {
|
|
7960
6014
|
url: toPathString(localVarUrlObj),
|
|
@@ -7984,6 +6038,19 @@ export const ManagerClubCourtsApiFp = function(configuration?: Configuration) {
|
|
|
7984
6038
|
const localVarOperationServerBasePath = operationServerMap['ManagerClubCourtsApi.createCourtForClub']?.[localVarOperationServerIndex]?.url;
|
|
7985
6039
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7986
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
|
+
},
|
|
7987
6054
|
/**
|
|
7988
6055
|
*
|
|
7989
6056
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -7996,6 +6063,20 @@ export const ManagerClubCourtsApiFp = function(configuration?: Configuration) {
|
|
|
7996
6063
|
const localVarOperationServerBasePath = operationServerMap['ManagerClubCourtsApi.getCourtsByClub']?.[localVarOperationServerIndex]?.url;
|
|
7997
6064
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7998
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
|
+
},
|
|
7999
6080
|
}
|
|
8000
6081
|
};
|
|
8001
6082
|
|
|
@@ -8016,6 +6097,16 @@ export const ManagerClubCourtsApiFactory = function (configuration?: Configurati
|
|
|
8016
6097
|
createCourtForClub(requestParameters: ManagerClubCourtsApiCreateCourtForClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<CourtResponse> {
|
|
8017
6098
|
return localVarFp.createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
8018
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
|
+
},
|
|
8019
6110
|
/**
|
|
8020
6111
|
*
|
|
8021
6112
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -8025,6 +6116,16 @@ export const ManagerClubCourtsApiFactory = function (configuration?: Configurati
|
|
|
8025
6116
|
getCourtsByClub(options?: RawAxiosRequestConfig): AxiosPromise<CourtsResponse> {
|
|
8026
6117
|
return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
|
|
8027
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
|
+
},
|
|
8028
6129
|
};
|
|
8029
6130
|
};
|
|
8030
6131
|
|
|
@@ -8042,6 +6143,41 @@ export interface ManagerClubCourtsApiCreateCourtForClubRequest {
|
|
|
8042
6143
|
readonly createCourtRequest: CreateCourtRequest
|
|
8043
6144
|
}
|
|
8044
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
|
+
|
|
8045
6181
|
/**
|
|
8046
6182
|
* ManagerClubCourtsApi - object-oriented interface
|
|
8047
6183
|
* @export
|
|
@@ -8061,6 +6197,18 @@ export class ManagerClubCourtsApi extends BaseAPI {
|
|
|
8061
6197
|
return ManagerClubCourtsApiFp(this.configuration).createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8062
6198
|
}
|
|
8063
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
|
+
|
|
8064
6212
|
/**
|
|
8065
6213
|
*
|
|
8066
6214
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -8071,6 +6219,18 @@ export class ManagerClubCourtsApi extends BaseAPI {
|
|
|
8071
6219
|
public getCourtsByClub(options?: RawAxiosRequestConfig) {
|
|
8072
6220
|
return ManagerClubCourtsApiFp(this.configuration).getCourtsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
8073
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
|
+
}
|
|
8074
6234
|
}
|
|
8075
6235
|
|
|
8076
6236
|
|
|
@@ -10285,46 +8445,6 @@ export class ManagerEventsApi extends BaseAPI {
|
|
|
10285
8445
|
*/
|
|
10286
8446
|
export const ManagerSportsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10287
8447
|
return {
|
|
10288
|
-
/**
|
|
10289
|
-
*
|
|
10290
|
-
* @summary Créer un sport dans un club
|
|
10291
|
-
* @param {CreateSportRequest} createSportRequest
|
|
10292
|
-
* @param {*} [options] Override http request option.
|
|
10293
|
-
* @throws {RequiredError}
|
|
10294
|
-
*/
|
|
10295
|
-
createSport: async (createSportRequest: CreateSportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10296
|
-
// verify required parameter 'createSportRequest' is not null or undefined
|
|
10297
|
-
assertParamExists('createSport', 'createSportRequest', createSportRequest)
|
|
10298
|
-
const localVarPath = `/api/sports`;
|
|
10299
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10300
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10301
|
-
let baseOptions;
|
|
10302
|
-
if (configuration) {
|
|
10303
|
-
baseOptions = configuration.baseOptions;
|
|
10304
|
-
}
|
|
10305
|
-
|
|
10306
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10307
|
-
const localVarHeaderParameter = {} as any;
|
|
10308
|
-
const localVarQueryParameter = {} as any;
|
|
10309
|
-
|
|
10310
|
-
// authentication bearerAuth required
|
|
10311
|
-
// http bearer authentication required
|
|
10312
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10317
|
-
|
|
10318
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10319
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10320
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10321
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration)
|
|
10322
|
-
|
|
10323
|
-
return {
|
|
10324
|
-
url: toPathString(localVarUrlObj),
|
|
10325
|
-
options: localVarRequestOptions,
|
|
10326
|
-
};
|
|
10327
|
-
},
|
|
10328
8448
|
/**
|
|
10329
8449
|
*
|
|
10330
8450
|
* @summary Supprimer un sport
|
|
@@ -10417,19 +8537,6 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
10417
8537
|
export const ManagerSportsApiFp = function(configuration?: Configuration) {
|
|
10418
8538
|
const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration)
|
|
10419
8539
|
return {
|
|
10420
|
-
/**
|
|
10421
|
-
*
|
|
10422
|
-
* @summary Créer un sport dans un club
|
|
10423
|
-
* @param {CreateSportRequest} createSportRequest
|
|
10424
|
-
* @param {*} [options] Override http request option.
|
|
10425
|
-
* @throws {RequiredError}
|
|
10426
|
-
*/
|
|
10427
|
-
async createSport(createSportRequest: CreateSportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SportResponse>> {
|
|
10428
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createSport(createSportRequest, options);
|
|
10429
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10430
|
-
const localVarOperationServerBasePath = operationServerMap['ManagerSportsApi.createSport']?.[localVarOperationServerIndex]?.url;
|
|
10431
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10432
|
-
},
|
|
10433
8540
|
/**
|
|
10434
8541
|
*
|
|
10435
8542
|
* @summary Supprimer un sport
|
|
@@ -10467,16 +8574,6 @@ export const ManagerSportsApiFp = function(configuration?: Configuration) {
|
|
|
10467
8574
|
export const ManagerSportsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10468
8575
|
const localVarFp = ManagerSportsApiFp(configuration)
|
|
10469
8576
|
return {
|
|
10470
|
-
/**
|
|
10471
|
-
*
|
|
10472
|
-
* @summary Créer un sport dans un club
|
|
10473
|
-
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
10474
|
-
* @param {*} [options] Override http request option.
|
|
10475
|
-
* @throws {RequiredError}
|
|
10476
|
-
*/
|
|
10477
|
-
createSport(requestParameters: ManagerSportsApiCreateSportRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportResponse> {
|
|
10478
|
-
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
10479
|
-
},
|
|
10480
8577
|
/**
|
|
10481
8578
|
*
|
|
10482
8579
|
* @summary Supprimer un sport
|
|
@@ -10500,20 +8597,6 @@ export const ManagerSportsApiFactory = function (configuration?: Configuration,
|
|
|
10500
8597
|
};
|
|
10501
8598
|
};
|
|
10502
8599
|
|
|
10503
|
-
/**
|
|
10504
|
-
* Request parameters for createSport operation in ManagerSportsApi.
|
|
10505
|
-
* @export
|
|
10506
|
-
* @interface ManagerSportsApiCreateSportRequest
|
|
10507
|
-
*/
|
|
10508
|
-
export interface ManagerSportsApiCreateSportRequest {
|
|
10509
|
-
/**
|
|
10510
|
-
*
|
|
10511
|
-
* @type {CreateSportRequest}
|
|
10512
|
-
* @memberof ManagerSportsApiCreateSport
|
|
10513
|
-
*/
|
|
10514
|
-
readonly createSportRequest: CreateSportRequest
|
|
10515
|
-
}
|
|
10516
|
-
|
|
10517
8600
|
/**
|
|
10518
8601
|
* Request parameters for deleteSport operation in ManagerSportsApi.
|
|
10519
8602
|
* @export
|
|
@@ -10556,18 +8639,6 @@ export interface ManagerSportsApiUpdateSportRequest {
|
|
|
10556
8639
|
* @extends {BaseAPI}
|
|
10557
8640
|
*/
|
|
10558
8641
|
export class ManagerSportsApi extends BaseAPI {
|
|
10559
|
-
/**
|
|
10560
|
-
*
|
|
10561
|
-
* @summary Créer un sport dans un club
|
|
10562
|
-
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
10563
|
-
* @param {*} [options] Override http request option.
|
|
10564
|
-
* @throws {RequiredError}
|
|
10565
|
-
* @memberof ManagerSportsApi
|
|
10566
|
-
*/
|
|
10567
|
-
public createSport(requestParameters: ManagerSportsApiCreateSportRequest, options?: RawAxiosRequestConfig) {
|
|
10568
|
-
return ManagerSportsApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10569
|
-
}
|
|
10570
|
-
|
|
10571
8642
|
/**
|
|
10572
8643
|
*
|
|
10573
8644
|
* @summary Supprimer un sport
|
|
@@ -10601,6 +8672,40 @@ export class ManagerSportsApi extends BaseAPI {
|
|
|
10601
8672
|
*/
|
|
10602
8673
|
export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10603
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
|
+
},
|
|
10604
8709
|
/**
|
|
10605
8710
|
*
|
|
10606
8711
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -10681,6 +8786,18 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration?:
|
|
|
10681
8786
|
export const StaffClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
10682
8787
|
const localVarAxiosParamCreator = StaffClubAnalyticsApiAxiosParamCreator(configuration)
|
|
10683
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
|
+
},
|
|
10684
8801
|
/**
|
|
10685
8802
|
*
|
|
10686
8803
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -10716,6 +8833,15 @@ export const StaffClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
10716
8833
|
export const StaffClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10717
8834
|
const localVarFp = StaffClubAnalyticsApiFp(configuration)
|
|
10718
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
|
+
},
|
|
10719
8845
|
/**
|
|
10720
8846
|
*
|
|
10721
8847
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -10759,6 +8885,17 @@ export interface StaffClubAnalyticsApiGetNumberOfClubUsersRequest {
|
|
|
10759
8885
|
* @extends {BaseAPI}
|
|
10760
8886
|
*/
|
|
10761
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
|
+
|
|
10762
8899
|
/**
|
|
10763
8900
|
*
|
|
10764
8901
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -10955,6 +9092,40 @@ export const StaffClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
10955
9092
|
|
|
10956
9093
|
|
|
10957
9094
|
|
|
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
|
+
|
|
9127
|
+
|
|
9128
|
+
|
|
10958
9129
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10959
9130
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10960
9131
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10998,6 +9169,18 @@ export const StaffClubsApiFp = function(configuration?: Configuration) {
|
|
|
10998
9169
|
const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
|
|
10999
9170
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11000
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
|
+
},
|
|
11001
9184
|
}
|
|
11002
9185
|
};
|
|
11003
9186
|
|
|
@@ -11026,6 +9209,15 @@ export const StaffClubsApiFactory = function (configuration?: Configuration, bas
|
|
|
11026
9209
|
getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
|
|
11027
9210
|
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
11028
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));
|
|
9220
|
+
},
|
|
11029
9221
|
};
|
|
11030
9222
|
};
|
|
11031
9223
|
|
|
@@ -11057,6 +9249,17 @@ export class StaffClubsApi extends BaseAPI {
|
|
|
11057
9249
|
public getClubSettings(options?: RawAxiosRequestConfig) {
|
|
11058
9250
|
return StaffClubsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
11059
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));
|
|
9262
|
+
}
|
|
11060
9263
|
}
|
|
11061
9264
|
|
|
11062
9265
|
|