@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,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentFixturesService = void 0;
|
|
4
|
+
class ContentFixturesService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get fixture by ID
|
|
10
|
+
* Retrieve detailed information about a specific fixture including lineups, events, and statistics
|
|
11
|
+
* @param id The fixture ID
|
|
12
|
+
* @returns any Fixture details retrieved successfully
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
getApiV1ContentFixtures(id) {
|
|
16
|
+
return this.httpRequest.request({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
url: '/api/v1/content/fixtures/{id}',
|
|
19
|
+
path: {
|
|
20
|
+
'id': id,
|
|
21
|
+
},
|
|
22
|
+
errors: {
|
|
23
|
+
400: `Invalid fixture ID`,
|
|
24
|
+
404: `Fixture not found`,
|
|
25
|
+
500: `Internal server error`,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get match predictions
|
|
31
|
+
* Retrieve AI-powered predictions for a specific fixture including win probabilities, expected goals, and score predictions
|
|
32
|
+
* @param id The fixture ID
|
|
33
|
+
* @param skipCache Skip cache and fetch fresh predictions
|
|
34
|
+
* @returns any Match predictions retrieved successfully
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
getApiV1ContentFixturesPredictions(id, skipCache) {
|
|
38
|
+
return this.httpRequest.request({
|
|
39
|
+
method: 'GET',
|
|
40
|
+
url: '/api/v1/content/fixtures/{id}/predictions',
|
|
41
|
+
path: {
|
|
42
|
+
'id': id,
|
|
43
|
+
},
|
|
44
|
+
query: {
|
|
45
|
+
'skipCache': skipCache,
|
|
46
|
+
},
|
|
47
|
+
errors: {
|
|
48
|
+
400: `Invalid fixture ID`,
|
|
49
|
+
404: `Predictions not available`,
|
|
50
|
+
500: `Internal server error`,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get fixtures
|
|
56
|
+
* Retrieve fixtures with optional filters (league, date range, team, status)
|
|
57
|
+
* @param league Filter by league ID
|
|
58
|
+
* @param date Filter by specific date (YYYY-MM-DD)
|
|
59
|
+
* @param from Start date for date range filter (YYYY-MM-DD)
|
|
60
|
+
* @param to End date for date range filter (YYYY-MM-DD)
|
|
61
|
+
* @param team Filter by team ID
|
|
62
|
+
* @param season Season year (e.g., '2024')
|
|
63
|
+
* @param status Filter by match status
|
|
64
|
+
* @param timezone Timezone for dates (e.g., 'America/New_York')
|
|
65
|
+
* @returns any Fixtures retrieved successfully
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
getApiV1ContentFixtures1(league, date, from, to, team, season, status, timezone) {
|
|
69
|
+
return this.httpRequest.request({
|
|
70
|
+
method: 'GET',
|
|
71
|
+
url: '/api/v1/content/fixtures',
|
|
72
|
+
query: {
|
|
73
|
+
'league': league,
|
|
74
|
+
'date': date,
|
|
75
|
+
'from': from,
|
|
76
|
+
'to': to,
|
|
77
|
+
'team': team,
|
|
78
|
+
'season': season,
|
|
79
|
+
'status': status,
|
|
80
|
+
'timezone': timezone,
|
|
81
|
+
},
|
|
82
|
+
errors: {
|
|
83
|
+
500: `Internal server error`,
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.ContentFixturesService = ContentFixturesService;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { LeagueDetailDTO } from '../models/LeagueDetailDTO';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class ContentLeaguesService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* Get league by ID
|
|
10
|
+
* Retrieve detailed information about a specific league including season data and country
|
|
11
|
+
* @param id The league ID
|
|
12
|
+
* @returns any League details retrieved successfully
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
getApiV1ContentLeagues(id: number): CancelablePromise<(ApiResponseDTO & {
|
|
16
|
+
data?: LeagueDetailDTO;
|
|
17
|
+
})>;
|
|
18
|
+
/**
|
|
19
|
+
* Get all leagues
|
|
20
|
+
* Retrieve a list of all available leagues with optional filtering by country, type, or season
|
|
21
|
+
* @param leagueId Filter by specific league ID
|
|
22
|
+
* @param country Filter by country name
|
|
23
|
+
* @param type Filter by league type
|
|
24
|
+
* @param season Filter by season year (e.g., '2024')
|
|
25
|
+
* @param search Search leagues by name
|
|
26
|
+
* @returns any Leagues retrieved successfully
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
getApiV1ContentLeagues1(leagueId?: number, country?: string, type?: 'League' | 'Cup', season?: string, search?: string): CancelablePromise<(ApiResponseDTO & {
|
|
30
|
+
data?: Array<LeagueDetailDTO>;
|
|
31
|
+
})>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentLeaguesService = void 0;
|
|
4
|
+
class ContentLeaguesService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get league by ID
|
|
10
|
+
* Retrieve detailed information about a specific league including season data and country
|
|
11
|
+
* @param id The league ID
|
|
12
|
+
* @returns any League details retrieved successfully
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
getApiV1ContentLeagues(id) {
|
|
16
|
+
return this.httpRequest.request({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
url: '/api/v1/content/leagues/{id}',
|
|
19
|
+
path: {
|
|
20
|
+
'id': id,
|
|
21
|
+
},
|
|
22
|
+
errors: {
|
|
23
|
+
400: `Invalid league ID`,
|
|
24
|
+
404: `League not found`,
|
|
25
|
+
500: `Internal server error`,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get all leagues
|
|
31
|
+
* Retrieve a list of all available leagues with optional filtering by country, type, or season
|
|
32
|
+
* @param leagueId Filter by specific league ID
|
|
33
|
+
* @param country Filter by country name
|
|
34
|
+
* @param type Filter by league type
|
|
35
|
+
* @param season Filter by season year (e.g., '2024')
|
|
36
|
+
* @param search Search leagues by name
|
|
37
|
+
* @returns any Leagues retrieved successfully
|
|
38
|
+
* @throws ApiError
|
|
39
|
+
*/
|
|
40
|
+
getApiV1ContentLeagues1(leagueId, country, type, season, search) {
|
|
41
|
+
return this.httpRequest.request({
|
|
42
|
+
method: 'GET',
|
|
43
|
+
url: '/api/v1/content/leagues',
|
|
44
|
+
query: {
|
|
45
|
+
'leagueId': leagueId,
|
|
46
|
+
'country': country,
|
|
47
|
+
'type': type,
|
|
48
|
+
'season': season,
|
|
49
|
+
'search': search,
|
|
50
|
+
},
|
|
51
|
+
errors: {
|
|
52
|
+
500: `Internal server error`,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ContentLeaguesService = ContentLeaguesService;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { NewsArticleDTO } from '../models/NewsArticleDTO';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class ContentNewsService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* Get all news articles
|
|
10
|
+
* Retrieve all news (custom + external) with optional filtering by category, tags, breaking status, etc.
|
|
11
|
+
* @param category Filter by category (e.g., 'transfers', 'match-preview')
|
|
12
|
+
* @param tags Filter by tags (comma-separated)
|
|
13
|
+
* @param isBreaking Filter breaking news only
|
|
14
|
+
* @param isTrending Filter trending news only
|
|
15
|
+
* @param isFeatured Filter featured news only
|
|
16
|
+
* @param source Filter by news source
|
|
17
|
+
* @param limit Number of articles to return
|
|
18
|
+
* @param offset Number of articles to skip
|
|
19
|
+
* @returns any News articles retrieved successfully
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
getApiV1ContentNews(category?: string, tags?: string, isBreaking?: boolean, isTrending?: boolean, isFeatured?: boolean, source?: string, limit?: number, offset?: number): CancelablePromise<(ApiResponseDTO & {
|
|
23
|
+
data?: Array<NewsArticleDTO>;
|
|
24
|
+
})>;
|
|
25
|
+
/**
|
|
26
|
+
* Create custom news article
|
|
27
|
+
* Create a new custom news article (admin only)
|
|
28
|
+
* @param requestBody
|
|
29
|
+
* @returns any News article created successfully
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
postApiV1ContentNews(requestBody: {
|
|
33
|
+
title: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
content: string;
|
|
36
|
+
category: string;
|
|
37
|
+
tags?: Array<string>;
|
|
38
|
+
imageUrl?: string;
|
|
39
|
+
isBreaking?: boolean;
|
|
40
|
+
isTrending?: boolean;
|
|
41
|
+
isFeatured?: boolean;
|
|
42
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
43
|
+
data?: NewsArticleDTO;
|
|
44
|
+
})>;
|
|
45
|
+
/**
|
|
46
|
+
* Get news article by ID
|
|
47
|
+
* Retrieve a single news article by its ID
|
|
48
|
+
* @param id The news article ID
|
|
49
|
+
* @returns any News article retrieved successfully
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
getApiV1ContentNews1(id: string): CancelablePromise<(ApiResponseDTO & {
|
|
53
|
+
data?: NewsArticleDTO;
|
|
54
|
+
})>;
|
|
55
|
+
/**
|
|
56
|
+
* Update news article
|
|
57
|
+
* Update an existing news article (admin only)
|
|
58
|
+
* @param id The news article ID
|
|
59
|
+
* @param requestBody
|
|
60
|
+
* @returns any News article updated successfully
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
putApiV1ContentNews(id: string, requestBody: {
|
|
64
|
+
title?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
content?: string;
|
|
67
|
+
category?: string;
|
|
68
|
+
tags?: Array<string>;
|
|
69
|
+
imageUrl?: string;
|
|
70
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
71
|
+
data?: NewsArticleDTO;
|
|
72
|
+
})>;
|
|
73
|
+
/**
|
|
74
|
+
* Delete news article
|
|
75
|
+
* Soft delete a news article (admin only)
|
|
76
|
+
* @param id The news article ID
|
|
77
|
+
* @returns any News article deleted successfully
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
deleteApiV1ContentNews(id: string): CancelablePromise<(ApiResponseDTO & {
|
|
81
|
+
data?: {
|
|
82
|
+
message?: string;
|
|
83
|
+
};
|
|
84
|
+
})>;
|
|
85
|
+
/**
|
|
86
|
+
* Get news article by slug
|
|
87
|
+
* Retrieve a single news article by its URL-friendly slug
|
|
88
|
+
* @param slug The news article slug
|
|
89
|
+
* @returns any News article retrieved successfully
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
getApiV1ContentNewsSlug(slug: string): CancelablePromise<(ApiResponseDTO & {
|
|
93
|
+
data?: NewsArticleDTO;
|
|
94
|
+
})>;
|
|
95
|
+
/**
|
|
96
|
+
* List all custom news (admin)
|
|
97
|
+
* Get all custom news articles including unpublished (admin only)
|
|
98
|
+
* @param limit Number of articles to return
|
|
99
|
+
* @param offset Number of articles to skip
|
|
100
|
+
* @param includeUnpublished Include unpublished articles
|
|
101
|
+
* @returns any News articles retrieved successfully
|
|
102
|
+
* @throws ApiError
|
|
103
|
+
*/
|
|
104
|
+
getApiV1ContentNewsAdminList(limit?: number, offset?: number, includeUnpublished?: boolean): CancelablePromise<(ApiResponseDTO & {
|
|
105
|
+
data?: {
|
|
106
|
+
articles?: Array<NewsArticleDTO>;
|
|
107
|
+
total?: number;
|
|
108
|
+
};
|
|
109
|
+
})>;
|
|
110
|
+
/**
|
|
111
|
+
* Toggle breaking news status
|
|
112
|
+
* Mark or unmark a news article as breaking news (admin only)
|
|
113
|
+
* @param id The news article ID
|
|
114
|
+
* @param requestBody
|
|
115
|
+
* @returns any Breaking status updated successfully
|
|
116
|
+
* @throws ApiError
|
|
117
|
+
*/
|
|
118
|
+
patchApiV1ContentNewsBreaking(id: string, requestBody: {
|
|
119
|
+
isBreaking: boolean;
|
|
120
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
121
|
+
data?: NewsArticleDTO;
|
|
122
|
+
})>;
|
|
123
|
+
/**
|
|
124
|
+
* Toggle trending news status
|
|
125
|
+
* Mark or unmark a news article as trending (admin only)
|
|
126
|
+
* @param id The news article ID
|
|
127
|
+
* @param requestBody
|
|
128
|
+
* @returns any Trending status updated successfully
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
patchApiV1ContentNewsTrending(id: string, requestBody: {
|
|
132
|
+
isTrending: boolean;
|
|
133
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
134
|
+
data?: NewsArticleDTO;
|
|
135
|
+
})>;
|
|
136
|
+
/**
|
|
137
|
+
* Toggle featured news status
|
|
138
|
+
* Mark or unmark a news article as featured (admin only)
|
|
139
|
+
* @param id The news article ID
|
|
140
|
+
* @param requestBody
|
|
141
|
+
* @returns any Featured status updated successfully
|
|
142
|
+
* @throws ApiError
|
|
143
|
+
*/
|
|
144
|
+
patchApiV1ContentNewsFeatured(id: string, requestBody: {
|
|
145
|
+
isFeatured: boolean;
|
|
146
|
+
}): CancelablePromise<(ApiResponseDTO & {
|
|
147
|
+
data?: NewsArticleDTO;
|
|
148
|
+
})>;
|
|
149
|
+
/**
|
|
150
|
+
* Get available tags
|
|
151
|
+
* Retrieve all available news tags for filtering
|
|
152
|
+
* @returns any Tags retrieved successfully
|
|
153
|
+
* @throws ApiError
|
|
154
|
+
*/
|
|
155
|
+
getApiV1ContentNewsTags(): CancelablePromise<(ApiResponseDTO & {
|
|
156
|
+
data?: Array<string>;
|
|
157
|
+
})>;
|
|
158
|
+
}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentNewsService = void 0;
|
|
4
|
+
class ContentNewsService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get all news articles
|
|
10
|
+
* Retrieve all news (custom + external) with optional filtering by category, tags, breaking status, etc.
|
|
11
|
+
* @param category Filter by category (e.g., 'transfers', 'match-preview')
|
|
12
|
+
* @param tags Filter by tags (comma-separated)
|
|
13
|
+
* @param isBreaking Filter breaking news only
|
|
14
|
+
* @param isTrending Filter trending news only
|
|
15
|
+
* @param isFeatured Filter featured news only
|
|
16
|
+
* @param source Filter by news source
|
|
17
|
+
* @param limit Number of articles to return
|
|
18
|
+
* @param offset Number of articles to skip
|
|
19
|
+
* @returns any News articles retrieved successfully
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
getApiV1ContentNews(category, tags, isBreaking, isTrending, isFeatured, source, limit = 20, offset) {
|
|
23
|
+
return this.httpRequest.request({
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/api/v1/content/news',
|
|
26
|
+
query: {
|
|
27
|
+
'category': category,
|
|
28
|
+
'tags': tags,
|
|
29
|
+
'isBreaking': isBreaking,
|
|
30
|
+
'isTrending': isTrending,
|
|
31
|
+
'isFeatured': isFeatured,
|
|
32
|
+
'source': source,
|
|
33
|
+
'limit': limit,
|
|
34
|
+
'offset': offset,
|
|
35
|
+
},
|
|
36
|
+
errors: {
|
|
37
|
+
500: `Internal server error`,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create custom news article
|
|
43
|
+
* Create a new custom news article (admin only)
|
|
44
|
+
* @param requestBody
|
|
45
|
+
* @returns any News article created successfully
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
postApiV1ContentNews(requestBody) {
|
|
49
|
+
return this.httpRequest.request({
|
|
50
|
+
method: 'POST',
|
|
51
|
+
url: '/api/v1/content/news',
|
|
52
|
+
body: requestBody,
|
|
53
|
+
mediaType: 'application/json',
|
|
54
|
+
errors: {
|
|
55
|
+
400: `Invalid request data`,
|
|
56
|
+
401: `Unauthorized`,
|
|
57
|
+
500: `Internal server error`,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get news article by ID
|
|
63
|
+
* Retrieve a single news article by its ID
|
|
64
|
+
* @param id The news article ID
|
|
65
|
+
* @returns any News article retrieved successfully
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
getApiV1ContentNews1(id) {
|
|
69
|
+
return this.httpRequest.request({
|
|
70
|
+
method: 'GET',
|
|
71
|
+
url: '/api/v1/content/news/{id}',
|
|
72
|
+
path: {
|
|
73
|
+
'id': id,
|
|
74
|
+
},
|
|
75
|
+
errors: {
|
|
76
|
+
400: `Invalid news ID`,
|
|
77
|
+
404: `News article not found`,
|
|
78
|
+
500: `Internal server error`,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Update news article
|
|
84
|
+
* Update an existing news article (admin only)
|
|
85
|
+
* @param id The news article ID
|
|
86
|
+
* @param requestBody
|
|
87
|
+
* @returns any News article updated successfully
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
putApiV1ContentNews(id, requestBody) {
|
|
91
|
+
return this.httpRequest.request({
|
|
92
|
+
method: 'PUT',
|
|
93
|
+
url: '/api/v1/content/news/{id}',
|
|
94
|
+
path: {
|
|
95
|
+
'id': id,
|
|
96
|
+
},
|
|
97
|
+
body: requestBody,
|
|
98
|
+
mediaType: 'application/json',
|
|
99
|
+
errors: {
|
|
100
|
+
400: `Invalid request data`,
|
|
101
|
+
404: `News article not found`,
|
|
102
|
+
500: `Internal server error`,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Delete news article
|
|
108
|
+
* Soft delete a news article (admin only)
|
|
109
|
+
* @param id The news article ID
|
|
110
|
+
* @returns any News article deleted successfully
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
deleteApiV1ContentNews(id) {
|
|
114
|
+
return this.httpRequest.request({
|
|
115
|
+
method: 'DELETE',
|
|
116
|
+
url: '/api/v1/content/news/{id}',
|
|
117
|
+
path: {
|
|
118
|
+
'id': id,
|
|
119
|
+
},
|
|
120
|
+
errors: {
|
|
121
|
+
400: `Invalid news ID`,
|
|
122
|
+
500: `Internal server error`,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Get news article by slug
|
|
128
|
+
* Retrieve a single news article by its URL-friendly slug
|
|
129
|
+
* @param slug The news article slug
|
|
130
|
+
* @returns any News article retrieved successfully
|
|
131
|
+
* @throws ApiError
|
|
132
|
+
*/
|
|
133
|
+
getApiV1ContentNewsSlug(slug) {
|
|
134
|
+
return this.httpRequest.request({
|
|
135
|
+
method: 'GET',
|
|
136
|
+
url: '/api/v1/content/news/slug/{slug}',
|
|
137
|
+
path: {
|
|
138
|
+
'slug': slug,
|
|
139
|
+
},
|
|
140
|
+
errors: {
|
|
141
|
+
400: `Invalid slug`,
|
|
142
|
+
404: `News article not found`,
|
|
143
|
+
500: `Internal server error`,
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* List all custom news (admin)
|
|
149
|
+
* Get all custom news articles including unpublished (admin only)
|
|
150
|
+
* @param limit Number of articles to return
|
|
151
|
+
* @param offset Number of articles to skip
|
|
152
|
+
* @param includeUnpublished Include unpublished articles
|
|
153
|
+
* @returns any News articles retrieved successfully
|
|
154
|
+
* @throws ApiError
|
|
155
|
+
*/
|
|
156
|
+
getApiV1ContentNewsAdminList(limit = 20, offset, includeUnpublished) {
|
|
157
|
+
return this.httpRequest.request({
|
|
158
|
+
method: 'GET',
|
|
159
|
+
url: '/api/v1/content/news/admin/list',
|
|
160
|
+
query: {
|
|
161
|
+
'limit': limit,
|
|
162
|
+
'offset': offset,
|
|
163
|
+
'includeUnpublished': includeUnpublished,
|
|
164
|
+
},
|
|
165
|
+
errors: {
|
|
166
|
+
500: `Internal server error`,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Toggle breaking news status
|
|
172
|
+
* Mark or unmark a news article as breaking news (admin only)
|
|
173
|
+
* @param id The news article ID
|
|
174
|
+
* @param requestBody
|
|
175
|
+
* @returns any Breaking status updated successfully
|
|
176
|
+
* @throws ApiError
|
|
177
|
+
*/
|
|
178
|
+
patchApiV1ContentNewsBreaking(id, requestBody) {
|
|
179
|
+
return this.httpRequest.request({
|
|
180
|
+
method: 'PATCH',
|
|
181
|
+
url: '/api/v1/content/news/{id}/breaking',
|
|
182
|
+
path: {
|
|
183
|
+
'id': id,
|
|
184
|
+
},
|
|
185
|
+
body: requestBody,
|
|
186
|
+
mediaType: 'application/json',
|
|
187
|
+
errors: {
|
|
188
|
+
400: `Invalid request data`,
|
|
189
|
+
500: `Internal server error`,
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Toggle trending news status
|
|
195
|
+
* Mark or unmark a news article as trending (admin only)
|
|
196
|
+
* @param id The news article ID
|
|
197
|
+
* @param requestBody
|
|
198
|
+
* @returns any Trending status updated successfully
|
|
199
|
+
* @throws ApiError
|
|
200
|
+
*/
|
|
201
|
+
patchApiV1ContentNewsTrending(id, requestBody) {
|
|
202
|
+
return this.httpRequest.request({
|
|
203
|
+
method: 'PATCH',
|
|
204
|
+
url: '/api/v1/content/news/{id}/trending',
|
|
205
|
+
path: {
|
|
206
|
+
'id': id,
|
|
207
|
+
},
|
|
208
|
+
body: requestBody,
|
|
209
|
+
mediaType: 'application/json',
|
|
210
|
+
errors: {
|
|
211
|
+
400: `Invalid request data`,
|
|
212
|
+
500: `Internal server error`,
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Toggle featured news status
|
|
218
|
+
* Mark or unmark a news article as featured (admin only)
|
|
219
|
+
* @param id The news article ID
|
|
220
|
+
* @param requestBody
|
|
221
|
+
* @returns any Featured status updated successfully
|
|
222
|
+
* @throws ApiError
|
|
223
|
+
*/
|
|
224
|
+
patchApiV1ContentNewsFeatured(id, requestBody) {
|
|
225
|
+
return this.httpRequest.request({
|
|
226
|
+
method: 'PATCH',
|
|
227
|
+
url: '/api/v1/content/news/{id}/featured',
|
|
228
|
+
path: {
|
|
229
|
+
'id': id,
|
|
230
|
+
},
|
|
231
|
+
body: requestBody,
|
|
232
|
+
mediaType: 'application/json',
|
|
233
|
+
errors: {
|
|
234
|
+
400: `Invalid request data`,
|
|
235
|
+
500: `Internal server error`,
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Get available tags
|
|
241
|
+
* Retrieve all available news tags for filtering
|
|
242
|
+
* @returns any Tags retrieved successfully
|
|
243
|
+
* @throws ApiError
|
|
244
|
+
*/
|
|
245
|
+
getApiV1ContentNewsTags() {
|
|
246
|
+
return this.httpRequest.request({
|
|
247
|
+
method: 'GET',
|
|
248
|
+
url: '/api/v1/content/news/tags',
|
|
249
|
+
errors: {
|
|
250
|
+
500: `Internal server error`,
|
|
251
|
+
},
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
exports.ContentNewsService = ContentNewsService;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ApiResponseDTO } from '../models/ApiResponseDTO';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
4
|
+
export declare class ContentOddsService {
|
|
5
|
+
readonly httpRequest: BaseHttpRequest;
|
|
6
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
7
|
+
/**
|
|
8
|
+
* Get live betting odds
|
|
9
|
+
* Retrieve real-time betting odds for live matches
|
|
10
|
+
* @param fixture Filter by fixture ID
|
|
11
|
+
* @param bookmaker Filter by bookmaker ID
|
|
12
|
+
* @param bet Filter by bet type ID
|
|
13
|
+
* @returns any Live odds retrieved successfully
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
getApiV1ContentOddsLive(fixture?: string, bookmaker?: string, bet?: string): CancelablePromise<(ApiResponseDTO & {
|
|
17
|
+
data?: Array<Record<string, any>>;
|
|
18
|
+
})>;
|
|
19
|
+
/**
|
|
20
|
+
* Get live bet types
|
|
21
|
+
* Retrieve available bet types for live matches
|
|
22
|
+
* @param fixture Filter by fixture ID
|
|
23
|
+
* @returns any Live bets retrieved successfully
|
|
24
|
+
* @throws ApiError
|
|
25
|
+
*/
|
|
26
|
+
getApiV1ContentOddsLiveBets(fixture?: string): CancelablePromise<(ApiResponseDTO & {
|
|
27
|
+
data?: Array<Record<string, any>>;
|
|
28
|
+
})>;
|
|
29
|
+
/**
|
|
30
|
+
* Get betting odds
|
|
31
|
+
* Retrieve betting odds for fixtures with optional filtering
|
|
32
|
+
* @param fixture Filter by fixture ID
|
|
33
|
+
* @param league Filter by league ID
|
|
34
|
+
* @param season Filter by season
|
|
35
|
+
* @param bookmaker Filter by bookmaker ID
|
|
36
|
+
* @param bet Filter by bet type ID
|
|
37
|
+
* @param date Filter by date (YYYY-MM-DD)
|
|
38
|
+
* @returns any Odds retrieved successfully
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
getApiV1ContentOdds(fixture?: string, league?: string, season?: string, bookmaker?: string, bet?: string, date?: string): CancelablePromise<(ApiResponseDTO & {
|
|
42
|
+
data?: Array<Record<string, any>>;
|
|
43
|
+
})>;
|
|
44
|
+
/**
|
|
45
|
+
* Get odds bet mapping
|
|
46
|
+
* Retrieve mapping of bet types and their IDs
|
|
47
|
+
* @returns any Odds mapping retrieved successfully
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
getApiV1ContentOddsMapping(): CancelablePromise<(ApiResponseDTO & {
|
|
51
|
+
data?: Record<string, any>;
|
|
52
|
+
})>;
|
|
53
|
+
/**
|
|
54
|
+
* Get bookmakers
|
|
55
|
+
* Retrieve list of available bookmakers
|
|
56
|
+
* @param id Filter by bookmaker ID
|
|
57
|
+
* @param search Search bookmakers by name
|
|
58
|
+
* @returns any Bookmakers retrieved successfully
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
getApiV1ContentOddsBookmakers(id?: string, search?: string): CancelablePromise<(ApiResponseDTO & {
|
|
62
|
+
data?: Array<{
|
|
63
|
+
id?: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
}>;
|
|
66
|
+
})>;
|
|
67
|
+
/**
|
|
68
|
+
* Get bet types
|
|
69
|
+
* Retrieve list of available bet types and markets
|
|
70
|
+
* @param id Filter by bet type ID
|
|
71
|
+
* @param search Search bet types by name
|
|
72
|
+
* @returns any Bet types retrieved successfully
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
getApiV1ContentOddsBets(id?: string, search?: string): CancelablePromise<(ApiResponseDTO & {
|
|
76
|
+
data?: Array<{
|
|
77
|
+
id?: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
}>;
|
|
80
|
+
})>;
|
|
81
|
+
}
|