@footballbingo/client 1.0.0
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/README.md +420 -0
- package/dist/FootballBingoClient.d.ts +88 -0
- package/dist/FootballBingoClient.js +100 -0
- package/dist/core/ApiError.d.ts +10 -0
- package/dist/core/ApiError.js +15 -0
- package/dist/core/ApiRequestOptions.d.ts +13 -0
- package/dist/core/ApiRequestOptions.js +2 -0
- package/dist/core/ApiResult.d.ts +7 -0
- package/dist/core/ApiResult.js +2 -0
- package/dist/core/BaseHttpRequest.d.ts +8 -0
- package/dist/core/BaseHttpRequest.js +9 -0
- package/dist/core/CancelablePromise.d.ts +20 -0
- package/dist/core/CancelablePromise.js +116 -0
- package/dist/core/FetchHttpRequest.d.ts +14 -0
- package/dist/core/FetchHttpRequest.js +20 -0
- package/dist/core/OpenAPI.d.ts +16 -0
- package/dist/core/OpenAPI.js +14 -0
- package/dist/core/request.d.ts +30 -0
- package/dist/core/request.js +294 -0
- package/dist/index.d.ts +104 -0
- package/dist/index.js +139 -0
- package/dist/models/Achievement.d.ts +12 -0
- package/dist/models/Achievement.js +2 -0
- package/dist/models/ApiError.d.ts +2 -0
- package/dist/models/ApiError.js +2 -0
- package/dist/models/ApiErrorDTO.d.ts +9 -0
- package/dist/models/ApiErrorDTO.js +2 -0
- package/dist/models/ApiResponse.d.ts +2 -0
- package/dist/models/ApiResponse.js +2 -0
- package/dist/models/ApiResponseDTO.d.ts +10 -0
- package/dist/models/ApiResponseDTO.js +2 -0
- package/dist/models/BingoBoard.d.ts +8 -0
- package/dist/models/BingoBoard.js +2 -0
- package/dist/models/BingoGame.d.ts +19 -0
- package/dist/models/BingoGame.js +13 -0
- package/dist/models/BingoTile.d.ts +8 -0
- package/dist/models/BingoTile.js +2 -0
- package/dist/models/Challenge.d.ts +24 -0
- package/dist/models/Challenge.js +18 -0
- package/dist/models/ChatMessage.d.ts +17 -0
- package/dist/models/ChatMessage.js +12 -0
- package/dist/models/ChatSession.d.ts +13 -0
- package/dist/models/ChatSession.js +2 -0
- package/dist/models/CommunityChallengeDTO.d.ts +32 -0
- package/dist/models/CommunityChallengeDTO.js +19 -0
- package/dist/models/CompletedLine.d.ts +12 -0
- package/dist/models/CompletedLine.js +12 -0
- package/dist/models/CountryDTO.d.ts +5 -0
- package/dist/models/CountryDTO.js +2 -0
- package/dist/models/CreateChallengeRequestDTO.d.ts +22 -0
- package/dist/models/CreateChallengeRequestDTO.js +19 -0
- package/dist/models/CreatePredictionRequestDTO.d.ts +24 -0
- package/dist/models/CreatePredictionRequestDTO.js +12 -0
- package/dist/models/CurrencyTransaction.d.ts +27 -0
- package/dist/models/CurrencyTransaction.js +21 -0
- package/dist/models/DailyLoginRewardDTO.d.ts +13 -0
- package/dist/models/DailyLoginRewardDTO.js +2 -0
- package/dist/models/ErrorResponse.d.ts +5 -0
- package/dist/models/ErrorResponse.js +2 -0
- package/dist/models/FixtureDTO.d.ts +36 -0
- package/dist/models/FixtureDTO.js +16 -0
- package/dist/models/FixtureDetailDTO.d.ts +13 -0
- package/dist/models/FixtureDetailDTO.js +2 -0
- package/dist/models/GameChatMessageDTO.d.ts +20 -0
- package/dist/models/GameChatMessageDTO.js +13 -0
- package/dist/models/GetLeaderboardResponseDTO.d.ts +29 -0
- package/dist/models/GetLeaderboardResponseDTO.js +22 -0
- package/dist/models/GetUserInventoryResponseDTO.d.ts +28 -0
- package/dist/models/GetUserInventoryResponseDTO.js +2 -0
- package/dist/models/LeaderboardEntry.d.ts +10 -0
- package/dist/models/LeaderboardEntry.js +2 -0
- package/dist/models/LeaderboardResponseDTO.d.ts +26 -0
- package/dist/models/LeaderboardResponseDTO.js +13 -0
- package/dist/models/League.d.ts +7 -0
- package/dist/models/League.js +2 -0
- package/dist/models/LeagueDetailDTO.d.ts +17 -0
- package/dist/models/LeagueDetailDTO.js +2 -0
- package/dist/models/LineupDTO.d.ts +25 -0
- package/dist/models/LineupDTO.js +2 -0
- package/dist/models/LineupPrediction.d.ts +9 -0
- package/dist/models/LineupPrediction.js +2 -0
- package/dist/models/MatchEvent.d.ts +27 -0
- package/dist/models/MatchEvent.js +13 -0
- package/dist/models/NewsArticleDTO.d.ts +13 -0
- package/dist/models/NewsArticleDTO.js +2 -0
- package/dist/models/PaginationMeta.d.ts +2 -0
- package/dist/models/PaginationMeta.js +2 -0
- package/dist/models/PaginationMetaDTO.d.ts +7 -0
- package/dist/models/PaginationMetaDTO.js +2 -0
- package/dist/models/PlayerDTO.d.ts +18 -0
- package/dist/models/PlayerDTO.js +2 -0
- package/dist/models/PlayerStatisticsDTO.d.ts +25 -0
- package/dist/models/PlayerStatisticsDTO.js +2 -0
- package/dist/models/PredictionDTO.d.ts +31 -0
- package/dist/models/PredictionDTO.js +18 -0
- package/dist/models/PredictionWithLineupDTO.d.ts +8 -0
- package/dist/models/PredictionWithLineupDTO.js +2 -0
- package/dist/models/Pundit.d.ts +8 -0
- package/dist/models/Pundit.js +2 -0
- package/dist/models/Purchase.d.ts +16 -0
- package/dist/models/Purchase.js +12 -0
- package/dist/models/PurchaseResponseDTO.d.ts +25 -0
- package/dist/models/PurchaseResponseDTO.js +12 -0
- package/dist/models/Score.d.ts +4 -0
- package/dist/models/Score.js +2 -0
- package/dist/models/SendChatMessageRequestDTO.d.ts +12 -0
- package/dist/models/SendChatMessageRequestDTO.js +12 -0
- package/dist/models/ShareGameRequestDTO.d.ts +6 -0
- package/dist/models/ShareGameRequestDTO.js +2 -0
- package/dist/models/SharedGameDTO.d.ts +17 -0
- package/dist/models/SharedGameDTO.js +2 -0
- package/dist/models/StandingsDTO.d.ts +19 -0
- package/dist/models/StandingsDTO.js +2 -0
- package/dist/models/StoreItemDTO.d.ts +47 -0
- package/dist/models/StoreItemDTO.js +29 -0
- package/dist/models/TacticsBoardDTO.d.ts +32 -0
- package/dist/models/TacticsBoardDTO.js +2 -0
- package/dist/models/Team.d.ts +6 -0
- package/dist/models/Team.js +2 -0
- package/dist/models/TeamDetailDTO.d.ts +16 -0
- package/dist/models/TeamDetailDTO.js +2 -0
- package/dist/models/TeamStatisticsDTO.d.ts +12 -0
- package/dist/models/TeamStatisticsDTO.js +2 -0
- package/dist/models/TransactionHistoryDTO.d.ts +9 -0
- package/dist/models/TransactionHistoryDTO.js +2 -0
- package/dist/models/TransferDTO.d.ts +14 -0
- package/dist/models/TransferDTO.js +2 -0
- package/dist/models/TransferPlanDTO.d.ts +45 -0
- package/dist/models/TransferPlanDTO.js +12 -0
- package/dist/models/TrophyDTO.d.ts +6 -0
- package/dist/models/TrophyDTO.js +2 -0
- package/dist/models/UserDTO.d.ts +11 -0
- package/dist/models/UserDTO.js +2 -0
- package/dist/models/UserProfileDTO.d.ts +13 -0
- package/dist/models/UserProfileDTO.js +2 -0
- package/dist/models/UserPurchaseDTO.d.ts +26 -0
- package/dist/models/UserPurchaseDTO.js +19 -0
- package/dist/models/WalletBalance.d.ts +5 -0
- package/dist/models/WalletBalance.js +2 -0
- package/dist/models/WalletSummaryDTO.d.ts +16 -0
- package/dist/models/WalletSummaryDTO.js +2 -0
- package/dist/services/AchievementsDeprecatedService.d.ts +148 -0
- package/dist/services/AchievementsDeprecatedService.js +183 -0
- package/dist/services/AchievementsService.d.ts +204 -0
- package/dist/services/AchievementsService.js +197 -0
- package/dist/services/ActivitiesService.d.ts +27 -0
- package/dist/services/ActivitiesService.js +29 -0
- package/dist/services/AdminPurchasesService.d.ts +64 -0
- package/dist/services/AdminPurchasesService.js +109 -0
- package/dist/services/AdminService.d.ts +349 -0
- package/dist/services/AdminService.js +232 -0
- package/dist/services/AdminUsersService.d.ts +64 -0
- package/dist/services/AdminUsersService.js +103 -0
- package/dist/services/AiChatService.d.ts +70 -0
- package/dist/services/AiChatService.js +52 -0
- package/dist/services/ChallengesService.d.ts +215 -0
- package/dist/services/ChallengesService.js +215 -0
- package/dist/services/CommunityChallengesService.d.ts +111 -0
- package/dist/services/CommunityChallengesService.js +150 -0
- package/dist/services/CommunityGameChatService.d.ts +105 -0
- package/dist/services/CommunityGameChatService.js +150 -0
- package/dist/services/CommunityLineupsService.d.ts +197 -0
- package/dist/services/CommunityLineupsService.js +264 -0
- package/dist/services/CommunitySharedGamesService.d.ts +124 -0
- package/dist/services/CommunitySharedGamesService.js +172 -0
- package/dist/services/CommunityTacticsBoardsService.d.ts +230 -0
- package/dist/services/CommunityTacticsBoardsService.js +272 -0
- package/dist/services/CommunityTransferPlansService.d.ts +231 -0
- package/dist/services/CommunityTransferPlansService.js +291 -0
- package/dist/services/ContentCountriesService.d.ts +30 -0
- package/dist/services/ContentCountriesService.js +53 -0
- package/dist/services/ContentFixturesService.d.ts +51 -0
- package/dist/services/ContentFixturesService.js +88 -0
- package/dist/services/ContentLeaguesService.d.ts +32 -0
- package/dist/services/ContentLeaguesService.js +57 -0
- package/dist/services/ContentNewsService.d.ts +158 -0
- package/dist/services/ContentNewsService.js +255 -0
- package/dist/services/ContentOddsService.d.ts +81 -0
- package/dist/services/ContentOddsService.js +137 -0
- package/dist/services/ContentPlayersService.d.ts +64 -0
- package/dist/services/ContentPlayersService.js +104 -0
- package/dist/services/ContentStandingsService.d.ts +20 -0
- package/dist/services/ContentStandingsService.js +33 -0
- package/dist/services/ContentStatisticsService.d.ts +51 -0
- package/dist/services/ContentStatisticsService.js +83 -0
- package/dist/services/ContentTeamsService.d.ts +67 -0
- package/dist/services/ContentTeamsService.js +106 -0
- package/dist/services/ContentTransfersService.d.ts +23 -0
- package/dist/services/ContentTransfersService.js +38 -0
- package/dist/services/ContentTrophiesService.d.ts +23 -0
- package/dist/services/ContentTrophiesService.js +38 -0
- package/dist/services/DailyChallengeCompletionsDeprecatedService.d.ts +78 -0
- package/dist/services/DailyChallengeCompletionsDeprecatedService.js +130 -0
- package/dist/services/DailyChallengesDeprecatedService.d.ts +117 -0
- package/dist/services/DailyChallengesDeprecatedService.js +179 -0
- package/dist/services/DailyLoginService.d.ts +109 -0
- package/dist/services/DailyLoginService.js +111 -0
- package/dist/services/DailyStreaksDeprecatedService.d.ts +80 -0
- package/dist/services/DailyStreaksDeprecatedService.js +130 -0
- package/dist/services/EventPoolsService.d.ts +104 -0
- package/dist/services/EventPoolsService.js +118 -0
- package/dist/services/LeaderboardService.d.ts +18 -0
- package/dist/services/LeaderboardService.js +35 -0
- package/dist/services/NotificationsService.d.ts +143 -0
- package/dist/services/NotificationsService.js +159 -0
- package/dist/services/PredictionsService.d.ts +223 -0
- package/dist/services/PredictionsService.js +204 -0
- package/dist/services/ProgressionService.d.ts +163 -0
- package/dist/services/ProgressionService.js +149 -0
- package/dist/services/SponsorsService.d.ts +105 -0
- package/dist/services/SponsorsService.js +118 -0
- package/dist/services/StoreService.d.ts +92 -0
- package/dist/services/StoreService.js +147 -0
- package/dist/services/UserAchievementsDeprecatedService.d.ts +146 -0
- package/dist/services/UserAchievementsDeprecatedService.js +209 -0
- package/dist/services/UserActivitiesService.d.ts +48 -0
- package/dist/services/UserActivitiesService.js +65 -0
- package/dist/services/UsersService.d.ts +156 -0
- package/dist/services/UsersService.js +244 -0
- package/dist/services/WalletService.d.ts +31 -0
- package/dist/services/WalletService.js +53 -0
- package/package.json +37 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentOddsService = void 0;
|
|
4
|
+
class ContentOddsService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get live betting odds
|
|
10
|
+
* Retrieve real-time betting odds for live matches
|
|
11
|
+
* @param fixture Filter by fixture ID
|
|
12
|
+
* @param bookmaker Filter by bookmaker ID
|
|
13
|
+
* @param bet Filter by bet type ID
|
|
14
|
+
* @returns any Live odds retrieved successfully
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getApiV1ContentOddsLive(fixture, bookmaker, bet) {
|
|
18
|
+
return this.httpRequest.request({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
url: '/api/v1/content/odds/live',
|
|
21
|
+
query: {
|
|
22
|
+
'fixture': fixture,
|
|
23
|
+
'bookmaker': bookmaker,
|
|
24
|
+
'bet': bet,
|
|
25
|
+
},
|
|
26
|
+
errors: {
|
|
27
|
+
500: `Internal server error`,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get live bet types
|
|
33
|
+
* Retrieve available bet types for live matches
|
|
34
|
+
* @param fixture Filter by fixture ID
|
|
35
|
+
* @returns any Live bets retrieved successfully
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
getApiV1ContentOddsLiveBets(fixture) {
|
|
39
|
+
return this.httpRequest.request({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: '/api/v1/content/odds/live-bets',
|
|
42
|
+
query: {
|
|
43
|
+
'fixture': fixture,
|
|
44
|
+
},
|
|
45
|
+
errors: {
|
|
46
|
+
500: `Internal server error`,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get betting odds
|
|
52
|
+
* Retrieve betting odds for fixtures with optional filtering
|
|
53
|
+
* @param fixture Filter by fixture ID
|
|
54
|
+
* @param league Filter by league ID
|
|
55
|
+
* @param season Filter by season
|
|
56
|
+
* @param bookmaker Filter by bookmaker ID
|
|
57
|
+
* @param bet Filter by bet type ID
|
|
58
|
+
* @param date Filter by date (YYYY-MM-DD)
|
|
59
|
+
* @returns any Odds retrieved successfully
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
getApiV1ContentOdds(fixture, league, season, bookmaker, bet, date) {
|
|
63
|
+
return this.httpRequest.request({
|
|
64
|
+
method: 'GET',
|
|
65
|
+
url: '/api/v1/content/odds',
|
|
66
|
+
query: {
|
|
67
|
+
'fixture': fixture,
|
|
68
|
+
'league': league,
|
|
69
|
+
'season': season,
|
|
70
|
+
'bookmaker': bookmaker,
|
|
71
|
+
'bet': bet,
|
|
72
|
+
'date': date,
|
|
73
|
+
},
|
|
74
|
+
errors: {
|
|
75
|
+
500: `Internal server error`,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get odds bet mapping
|
|
81
|
+
* Retrieve mapping of bet types and their IDs
|
|
82
|
+
* @returns any Odds mapping retrieved successfully
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
getApiV1ContentOddsMapping() {
|
|
86
|
+
return this.httpRequest.request({
|
|
87
|
+
method: 'GET',
|
|
88
|
+
url: '/api/v1/content/odds/mapping',
|
|
89
|
+
errors: {
|
|
90
|
+
500: `Internal server error`,
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get bookmakers
|
|
96
|
+
* Retrieve list of available bookmakers
|
|
97
|
+
* @param id Filter by bookmaker ID
|
|
98
|
+
* @param search Search bookmakers by name
|
|
99
|
+
* @returns any Bookmakers retrieved successfully
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
getApiV1ContentOddsBookmakers(id, search) {
|
|
103
|
+
return this.httpRequest.request({
|
|
104
|
+
method: 'GET',
|
|
105
|
+
url: '/api/v1/content/odds/bookmakers',
|
|
106
|
+
query: {
|
|
107
|
+
'id': id,
|
|
108
|
+
'search': search,
|
|
109
|
+
},
|
|
110
|
+
errors: {
|
|
111
|
+
500: `Internal server error`,
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Get bet types
|
|
117
|
+
* Retrieve list of available bet types and markets
|
|
118
|
+
* @param id Filter by bet type ID
|
|
119
|
+
* @param search Search bet types by name
|
|
120
|
+
* @returns any Bet types retrieved successfully
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
getApiV1ContentOddsBets(id, search) {
|
|
124
|
+
return this.httpRequest.request({
|
|
125
|
+
method: 'GET',
|
|
126
|
+
url: '/api/v1/content/odds/bets',
|
|
127
|
+
query: {
|
|
128
|
+
'id': id,
|
|
129
|
+
'search': search,
|
|
130
|
+
},
|
|
131
|
+
errors: {
|
|
132
|
+
500: `Internal server error`,
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.ContentOddsService = ContentOddsService;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { PlayerDTO } from '../models/PlayerDTO';
|
|
3
|
+
import type { PlayerStatisticsDTO } from '../models/PlayerStatisticsDTO';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
6
|
+
export declare class ContentPlayersService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* Get players
|
|
11
|
+
* Retrieve player information with optional filtering by team, league, or search
|
|
12
|
+
* @param id Filter by player ID
|
|
13
|
+
* @param team Filter by team ID
|
|
14
|
+
* @param league Filter by league ID
|
|
15
|
+
* @param season Filter by season year (e.g., '2024')
|
|
16
|
+
* @param search Search players by name
|
|
17
|
+
* @param page Page number for pagination
|
|
18
|
+
* @returns any Players retrieved successfully
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
getApiV1ContentPlayers(id?: string, team?: string, league?: string, season?: string, search?: string, page?: number): CancelablePromise<(ApiResponseDTO & {
|
|
22
|
+
data?: Array<PlayerDTO>;
|
|
23
|
+
})>;
|
|
24
|
+
/**
|
|
25
|
+
* Get player history
|
|
26
|
+
* Retrieve historical data for a player including past teams and transfers
|
|
27
|
+
* @param player Player ID
|
|
28
|
+
* @returns any Player history retrieved successfully
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
getApiV1ContentPlayersHistory(player: string): CancelablePromise<(ApiResponseDTO & {
|
|
32
|
+
data?: {
|
|
33
|
+
player?: PlayerDTO;
|
|
34
|
+
history?: Array<Record<string, any>>;
|
|
35
|
+
};
|
|
36
|
+
})>;
|
|
37
|
+
/**
|
|
38
|
+
* Get player statistics
|
|
39
|
+
* Retrieve detailed statistics for a player including goals, assists, cards, and performance metrics
|
|
40
|
+
* @param id Player ID
|
|
41
|
+
* @param season Filter by season year (e.g., '2024')
|
|
42
|
+
* @param league Filter by league ID
|
|
43
|
+
* @param team Filter by team ID
|
|
44
|
+
* @returns any Player statistics retrieved successfully
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
getApiV1ContentPlayersStatistics(id: string, season?: string, league?: string, team?: string): CancelablePromise<(ApiResponseDTO & {
|
|
48
|
+
data?: PlayerStatisticsDTO;
|
|
49
|
+
})>;
|
|
50
|
+
/**
|
|
51
|
+
* Get player seasons
|
|
52
|
+
* Retrieve all seasons where a player has data available
|
|
53
|
+
* @param player Player ID
|
|
54
|
+
* @returns any Player seasons retrieved successfully
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
getApiV1ContentPlayersSeasons(player: string): CancelablePromise<(ApiResponseDTO & {
|
|
58
|
+
data?: Array<{
|
|
59
|
+
year?: string;
|
|
60
|
+
team?: string;
|
|
61
|
+
league?: string;
|
|
62
|
+
}>;
|
|
63
|
+
})>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentPlayersService = void 0;
|
|
4
|
+
class ContentPlayersService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get players
|
|
10
|
+
* Retrieve player information with optional filtering by team, league, or search
|
|
11
|
+
* @param id Filter by player ID
|
|
12
|
+
* @param team Filter by team ID
|
|
13
|
+
* @param league Filter by league ID
|
|
14
|
+
* @param season Filter by season year (e.g., '2024')
|
|
15
|
+
* @param search Search players by name
|
|
16
|
+
* @param page Page number for pagination
|
|
17
|
+
* @returns any Players retrieved successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
getApiV1ContentPlayers(id, team, league, season, search, page = 1) {
|
|
21
|
+
return this.httpRequest.request({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/api/v1/content/players',
|
|
24
|
+
query: {
|
|
25
|
+
'id': id,
|
|
26
|
+
'team': team,
|
|
27
|
+
'league': league,
|
|
28
|
+
'season': season,
|
|
29
|
+
'search': search,
|
|
30
|
+
'page': page,
|
|
31
|
+
},
|
|
32
|
+
errors: {
|
|
33
|
+
500: `Internal server error`,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Get player history
|
|
39
|
+
* Retrieve historical data for a player including past teams and transfers
|
|
40
|
+
* @param player Player ID
|
|
41
|
+
* @returns any Player history retrieved successfully
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
getApiV1ContentPlayersHistory(player) {
|
|
45
|
+
return this.httpRequest.request({
|
|
46
|
+
method: 'GET',
|
|
47
|
+
url: '/api/v1/content/players/history',
|
|
48
|
+
query: {
|
|
49
|
+
'player': player,
|
|
50
|
+
},
|
|
51
|
+
errors: {
|
|
52
|
+
400: `Missing player ID`,
|
|
53
|
+
500: `Internal server error`,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get player statistics
|
|
59
|
+
* Retrieve detailed statistics for a player including goals, assists, cards, and performance metrics
|
|
60
|
+
* @param id Player ID
|
|
61
|
+
* @param season Filter by season year (e.g., '2024')
|
|
62
|
+
* @param league Filter by league ID
|
|
63
|
+
* @param team Filter by team ID
|
|
64
|
+
* @returns any Player statistics retrieved successfully
|
|
65
|
+
* @throws ApiError
|
|
66
|
+
*/
|
|
67
|
+
getApiV1ContentPlayersStatistics(id, season, league, team) {
|
|
68
|
+
return this.httpRequest.request({
|
|
69
|
+
method: 'GET',
|
|
70
|
+
url: '/api/v1/content/players/statistics',
|
|
71
|
+
query: {
|
|
72
|
+
'id': id,
|
|
73
|
+
'season': season,
|
|
74
|
+
'league': league,
|
|
75
|
+
'team': team,
|
|
76
|
+
},
|
|
77
|
+
errors: {
|
|
78
|
+
400: `Missing player ID`,
|
|
79
|
+
500: `Internal server error`,
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get player seasons
|
|
85
|
+
* Retrieve all seasons where a player has data available
|
|
86
|
+
* @param player Player ID
|
|
87
|
+
* @returns any Player seasons retrieved successfully
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
getApiV1ContentPlayersSeasons(player) {
|
|
91
|
+
return this.httpRequest.request({
|
|
92
|
+
method: 'GET',
|
|
93
|
+
url: '/api/v1/content/players/seasons',
|
|
94
|
+
query: {
|
|
95
|
+
'player': player,
|
|
96
|
+
},
|
|
97
|
+
errors: {
|
|
98
|
+
400: `Missing player ID`,
|
|
99
|
+
500: `Internal server error`,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.ContentPlayersService = ContentPlayersService;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { StandingsDTO } from '../models/StandingsDTO';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class ContentStandingsService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* Get league standings
|
|
10
|
+
* Retrieve league table standings with team rankings, points, and form
|
|
11
|
+
* @param league League ID
|
|
12
|
+
* @param season Season year (e.g., '2024')
|
|
13
|
+
* @param team Filter by specific team ID
|
|
14
|
+
* @returns any Standings retrieved successfully
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getApiV1ContentStandings(league: string, season: string, team?: string): CancelablePromise<(ApiResponseDTO & {
|
|
18
|
+
data?: StandingsDTO;
|
|
19
|
+
})>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentStandingsService = void 0;
|
|
4
|
+
class ContentStandingsService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get league standings
|
|
10
|
+
* Retrieve league table standings with team rankings, points, and form
|
|
11
|
+
* @param league League ID
|
|
12
|
+
* @param season Season year (e.g., '2024')
|
|
13
|
+
* @param team Filter by specific team ID
|
|
14
|
+
* @returns any Standings retrieved successfully
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getApiV1ContentStandings(league, season, team) {
|
|
18
|
+
return this.httpRequest.request({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
url: '/api/v1/content/standings',
|
|
21
|
+
query: {
|
|
22
|
+
'league': league,
|
|
23
|
+
'season': season,
|
|
24
|
+
'team': team,
|
|
25
|
+
},
|
|
26
|
+
errors: {
|
|
27
|
+
400: `Missing required parameters`,
|
|
28
|
+
500: `Internal server error`,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ContentStandingsService = ContentStandingsService;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { PlayerDTO } from '../models/PlayerDTO';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class ContentStatisticsService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* Get football statistics by type
|
|
10
|
+
* Retrieve various types of football statistics (top scorers, top assists, top cards, etc.)
|
|
11
|
+
* @param type Type of statistics to retrieve
|
|
12
|
+
* @param league League ID
|
|
13
|
+
* @param season Season year (e.g., '2024')
|
|
14
|
+
* @returns any Statistics retrieved successfully
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getApiV1ContentStatistics(type: 'topscorers' | 'topassists' | 'topyellowcards' | 'topredcards', league: string, season: string): CancelablePromise<(ApiResponseDTO & {
|
|
18
|
+
data?: Array<Record<string, any>>;
|
|
19
|
+
})>;
|
|
20
|
+
/**
|
|
21
|
+
* Get player injuries
|
|
22
|
+
* Retrieve current player injuries and injury status
|
|
23
|
+
* @param league Filter by league ID
|
|
24
|
+
* @param team Filter by team ID
|
|
25
|
+
* @param player Filter by player ID
|
|
26
|
+
* @param season Filter by season year (e.g., '2024')
|
|
27
|
+
* @returns any Injuries retrieved successfully
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
getApiV1ContentStatisticsInjuries(league?: string, team?: string, player?: string, season?: string): CancelablePromise<(ApiResponseDTO & {
|
|
31
|
+
data?: Array<{
|
|
32
|
+
player?: PlayerDTO;
|
|
33
|
+
type?: string;
|
|
34
|
+
reason?: string;
|
|
35
|
+
start?: string;
|
|
36
|
+
end?: string;
|
|
37
|
+
}>;
|
|
38
|
+
})>;
|
|
39
|
+
/**
|
|
40
|
+
* Get sidelined players
|
|
41
|
+
* Retrieve players who are sidelined (injured, suspended, or unavailable)
|
|
42
|
+
* @param league Filter by league ID
|
|
43
|
+
* @param team Filter by team ID
|
|
44
|
+
* @param player Filter by player ID
|
|
45
|
+
* @returns any Sidelined players retrieved successfully
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
getApiV1ContentStatisticsSidelined(league?: string, team?: string, player?: string): CancelablePromise<(ApiResponseDTO & {
|
|
49
|
+
data?: Array<Record<string, any>>;
|
|
50
|
+
})>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentStatisticsService = void 0;
|
|
4
|
+
class ContentStatisticsService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get football statistics by type
|
|
10
|
+
* Retrieve various types of football statistics (top scorers, top assists, top cards, etc.)
|
|
11
|
+
* @param type Type of statistics to retrieve
|
|
12
|
+
* @param league League ID
|
|
13
|
+
* @param season Season year (e.g., '2024')
|
|
14
|
+
* @returns any Statistics retrieved successfully
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getApiV1ContentStatistics(type, league, season) {
|
|
18
|
+
return this.httpRequest.request({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
url: '/api/v1/content/statistics/{type}',
|
|
21
|
+
path: {
|
|
22
|
+
'type': type,
|
|
23
|
+
},
|
|
24
|
+
query: {
|
|
25
|
+
'league': league,
|
|
26
|
+
'season': season,
|
|
27
|
+
},
|
|
28
|
+
errors: {
|
|
29
|
+
400: `Invalid statistics type or missing parameters`,
|
|
30
|
+
500: `Internal server error`,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get player injuries
|
|
36
|
+
* Retrieve current player injuries and injury status
|
|
37
|
+
* @param league Filter by league ID
|
|
38
|
+
* @param team Filter by team ID
|
|
39
|
+
* @param player Filter by player ID
|
|
40
|
+
* @param season Filter by season year (e.g., '2024')
|
|
41
|
+
* @returns any Injuries retrieved successfully
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
getApiV1ContentStatisticsInjuries(league, team, player, season) {
|
|
45
|
+
return this.httpRequest.request({
|
|
46
|
+
method: 'GET',
|
|
47
|
+
url: '/api/v1/content/statistics/injuries',
|
|
48
|
+
query: {
|
|
49
|
+
'league': league,
|
|
50
|
+
'team': team,
|
|
51
|
+
'player': player,
|
|
52
|
+
'season': season,
|
|
53
|
+
},
|
|
54
|
+
errors: {
|
|
55
|
+
500: `Internal server error`,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get sidelined players
|
|
61
|
+
* Retrieve players who are sidelined (injured, suspended, or unavailable)
|
|
62
|
+
* @param league Filter by league ID
|
|
63
|
+
* @param team Filter by team ID
|
|
64
|
+
* @param player Filter by player ID
|
|
65
|
+
* @returns any Sidelined players retrieved successfully
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
getApiV1ContentStatisticsSidelined(league, team, player) {
|
|
69
|
+
return this.httpRequest.request({
|
|
70
|
+
method: 'GET',
|
|
71
|
+
url: '/api/v1/content/statistics/sidelined',
|
|
72
|
+
query: {
|
|
73
|
+
'league': league,
|
|
74
|
+
'team': team,
|
|
75
|
+
'player': player,
|
|
76
|
+
},
|
|
77
|
+
errors: {
|
|
78
|
+
500: `Internal server error`,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.ContentStatisticsService = ContentStatisticsService;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { PlayerDTO } from '../models/PlayerDTO';
|
|
3
|
+
import type { TeamDetailDTO } from '../models/TeamDetailDTO';
|
|
4
|
+
import type { TeamStatisticsDTO } from '../models/TeamStatisticsDTO';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
7
|
+
export declare class ContentTeamsService {
|
|
8
|
+
readonly httpRequest: BaseHttpRequest;
|
|
9
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
+
/**
|
|
11
|
+
* Get team information
|
|
12
|
+
* Retrieve team details including venue, country, and founding information
|
|
13
|
+
* @param id Filter by team ID
|
|
14
|
+
* @param name Filter by team name
|
|
15
|
+
* @param league Filter by league ID
|
|
16
|
+
* @param season Filter by season year (e.g., '2024')
|
|
17
|
+
* @param country Filter by country name
|
|
18
|
+
* @param search Search teams by name
|
|
19
|
+
* @returns any Team data retrieved successfully
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
getApiV1ContentTeams(id?: string, name?: string, league?: string, season?: string, country?: string, search?: string): CancelablePromise<(ApiResponseDTO & {
|
|
23
|
+
data?: TeamDetailDTO;
|
|
24
|
+
})>;
|
|
25
|
+
/**
|
|
26
|
+
* Get team squad
|
|
27
|
+
* Retrieve current squad/roster for a team including all players
|
|
28
|
+
* @param team Team ID
|
|
29
|
+
* @param season Season year (e.g., '2024')
|
|
30
|
+
* @returns any Squad data retrieved successfully
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
getApiV1ContentTeamsSquad(team: string, season?: string): CancelablePromise<(ApiResponseDTO & {
|
|
34
|
+
data?: Array<PlayerDTO>;
|
|
35
|
+
})>;
|
|
36
|
+
/**
|
|
37
|
+
* Get team coach
|
|
38
|
+
* Retrieve information about the team's current coach/manager
|
|
39
|
+
* @param team Team ID
|
|
40
|
+
* @returns any Coach data retrieved successfully
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
getApiV1ContentTeamsCoach(team: string): CancelablePromise<(ApiResponseDTO & {
|
|
44
|
+
data?: {
|
|
45
|
+
id?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
firstname?: string;
|
|
48
|
+
lastname?: string;
|
|
49
|
+
age?: number;
|
|
50
|
+
nationality?: string;
|
|
51
|
+
photo?: string;
|
|
52
|
+
};
|
|
53
|
+
})>;
|
|
54
|
+
/**
|
|
55
|
+
* Get team season statistics
|
|
56
|
+
* Retrieve detailed season statistics for a team including wins, losses, goals, clean sheets, etc.
|
|
57
|
+
* @param team Team ID
|
|
58
|
+
* @param league League ID
|
|
59
|
+
* @param season Season year (e.g., '2024')
|
|
60
|
+
* @param date Filter by date (YYYY-MM-DD)
|
|
61
|
+
* @returns any Team statistics retrieved successfully
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
getApiV1ContentTeamsStatistics(team: string, league: string, season: string, date?: string): CancelablePromise<(ApiResponseDTO & {
|
|
65
|
+
data?: TeamStatisticsDTO;
|
|
66
|
+
})>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentTeamsService = void 0;
|
|
4
|
+
class ContentTeamsService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get team information
|
|
10
|
+
* Retrieve team details including venue, country, and founding information
|
|
11
|
+
* @param id Filter by team ID
|
|
12
|
+
* @param name Filter by team name
|
|
13
|
+
* @param league Filter by league ID
|
|
14
|
+
* @param season Filter by season year (e.g., '2024')
|
|
15
|
+
* @param country Filter by country name
|
|
16
|
+
* @param search Search teams by name
|
|
17
|
+
* @returns any Team data retrieved successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
getApiV1ContentTeams(id, name, league, season, country, search) {
|
|
21
|
+
return this.httpRequest.request({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/api/v1/content/teams',
|
|
24
|
+
query: {
|
|
25
|
+
'id': id,
|
|
26
|
+
'name': name,
|
|
27
|
+
'league': league,
|
|
28
|
+
'season': season,
|
|
29
|
+
'country': country,
|
|
30
|
+
'search': search,
|
|
31
|
+
},
|
|
32
|
+
errors: {
|
|
33
|
+
500: `Internal server error`,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Get team squad
|
|
39
|
+
* Retrieve current squad/roster for a team including all players
|
|
40
|
+
* @param team Team ID
|
|
41
|
+
* @param season Season year (e.g., '2024')
|
|
42
|
+
* @returns any Squad data retrieved successfully
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
getApiV1ContentTeamsSquad(team, season) {
|
|
46
|
+
return this.httpRequest.request({
|
|
47
|
+
method: 'GET',
|
|
48
|
+
url: '/api/v1/content/teams/squad',
|
|
49
|
+
query: {
|
|
50
|
+
'team': team,
|
|
51
|
+
'season': season,
|
|
52
|
+
},
|
|
53
|
+
errors: {
|
|
54
|
+
400: `Missing team ID`,
|
|
55
|
+
500: `Internal server error`,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get team coach
|
|
61
|
+
* Retrieve information about the team's current coach/manager
|
|
62
|
+
* @param team Team ID
|
|
63
|
+
* @returns any Coach data retrieved successfully
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
getApiV1ContentTeamsCoach(team) {
|
|
67
|
+
return this.httpRequest.request({
|
|
68
|
+
method: 'GET',
|
|
69
|
+
url: '/api/v1/content/teams/coach',
|
|
70
|
+
query: {
|
|
71
|
+
'team': team,
|
|
72
|
+
},
|
|
73
|
+
errors: {
|
|
74
|
+
400: `Missing team ID`,
|
|
75
|
+
500: `Internal server error`,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get team season statistics
|
|
81
|
+
* Retrieve detailed season statistics for a team including wins, losses, goals, clean sheets, etc.
|
|
82
|
+
* @param team Team ID
|
|
83
|
+
* @param league League ID
|
|
84
|
+
* @param season Season year (e.g., '2024')
|
|
85
|
+
* @param date Filter by date (YYYY-MM-DD)
|
|
86
|
+
* @returns any Team statistics retrieved successfully
|
|
87
|
+
* @throws ApiError
|
|
88
|
+
*/
|
|
89
|
+
getApiV1ContentTeamsStatistics(team, league, season, date) {
|
|
90
|
+
return this.httpRequest.request({
|
|
91
|
+
method: 'GET',
|
|
92
|
+
url: '/api/v1/content/teams/statistics',
|
|
93
|
+
query: {
|
|
94
|
+
'team': team,
|
|
95
|
+
'league': league,
|
|
96
|
+
'season': season,
|
|
97
|
+
'date': date,
|
|
98
|
+
},
|
|
99
|
+
errors: {
|
|
100
|
+
400: `Missing required parameters`,
|
|
101
|
+
500: `Internal server error`,
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.ContentTeamsService = ContentTeamsService;
|