fansunited-data-layer 0.2.0 → 0.2.1
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/api/fansunited/constants.d.ts +5 -0
- package/api/fansunited/constants.d.ts.map +1 -0
- package/api/fansunited/football/competition/index.d.ts +30 -0
- package/api/fansunited/football/competition/index.d.ts.map +1 -0
- package/api/fansunited/football/competition/transformer.d.ts +11 -0
- package/api/fansunited/football/competition/transformer.d.ts.map +1 -0
- package/api/fansunited/football/competition/types.d.ts +70 -0
- package/api/fansunited/football/competition/types.d.ts.map +1 -0
- package/api/fansunited/football/competitions/index.d.ts +27 -0
- package/api/fansunited/football/competitions/index.d.ts.map +1 -0
- package/api/fansunited/football/competitions/transformer.d.ts +14 -0
- package/api/fansunited/football/competitions/transformer.d.ts.map +1 -0
- package/api/fansunited/football/competitions/types.d.ts +67 -0
- package/api/fansunited/football/competitions/types.d.ts.map +1 -0
- package/api/fansunited/football/http.d.ts +8 -0
- package/api/fansunited/football/http.d.ts.map +1 -0
- package/api/fansunited/football/index.d.ts +19 -0
- package/api/fansunited/football/index.d.ts.map +1 -0
- package/api/fansunited/football/matches/index.d.ts +61 -0
- package/api/fansunited/football/matches/index.d.ts.map +1 -0
- package/api/fansunited/football/matches/transformer.d.ts +28 -0
- package/api/fansunited/football/matches/transformer.d.ts.map +1 -0
- package/api/fansunited/football/matches/types.d.ts +328 -0
- package/api/fansunited/football/matches/types.d.ts.map +1 -0
- package/api/fansunited/football/players/index.d.ts +30 -0
- package/api/fansunited/football/players/index.d.ts.map +1 -0
- package/api/fansunited/football/players/transformer.d.ts +10 -0
- package/api/fansunited/football/players/transformer.d.ts.map +1 -0
- package/api/fansunited/football/players/types.d.ts +70 -0
- package/api/fansunited/football/players/types.d.ts.map +1 -0
- package/api/fansunited/football/search/index.d.ts +49 -0
- package/api/fansunited/football/search/index.d.ts.map +1 -0
- package/api/fansunited/football/search/transformer.d.ts +10 -0
- package/api/fansunited/football/search/transformer.d.ts.map +1 -0
- package/api/fansunited/football/search/types.d.ts +151 -0
- package/api/fansunited/football/search/types.d.ts.map +1 -0
- package/api/fansunited/football/teams/index.d.ts +30 -0
- package/api/fansunited/football/teams/index.d.ts.map +1 -0
- package/api/fansunited/football/teams/transformer.d.ts +10 -0
- package/api/fansunited/football/teams/transformer.d.ts.map +1 -0
- package/api/fansunited/football/teams/types.d.ts +87 -0
- package/api/fansunited/football/teams/types.d.ts.map +1 -0
- package/api/fansunited/http.d.ts +54 -0
- package/api/fansunited/http.d.ts.map +1 -0
- package/api/fansunited/index.d.ts +10 -0
- package/api/fansunited/index.d.ts.map +1 -0
- package/api/sportal365-sports/constants.d.ts +16 -0
- package/api/sportal365-sports/constants.d.ts.map +1 -0
- package/api/sportal365-sports/football/competitions/competition.types.d.ts +148 -0
- package/api/sportal365-sports/football/competitions/competition.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/competitions/index.d.ts +54 -0
- package/api/sportal365-sports/football/competitions/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/competitions/utils.d.ts +14 -0
- package/api/sportal365-sports/football/competitions/utils.d.ts.map +1 -0
- package/api/sportal365-sports/football/http.d.ts +8 -0
- package/api/sportal365-sports/football/http.d.ts.map +1 -0
- package/api/sportal365-sports/football/index.d.ts +19 -0
- package/api/sportal365-sports/football/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/index.d.ts +151 -0
- package/api/sportal365-sports/football/matches/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/transformers/commentary.d.ts +12 -0
- package/api/sportal365-sports/football/matches/transformers/commentary.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/transformers/index.d.ts +10 -0
- package/api/sportal365-sports/football/matches/transformers/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/transformers/lineup.d.ts +11 -0
- package/api/sportal365-sports/football/matches/transformers/lineup.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/transformers/match-event.d.ts +12 -0
- package/api/sportal365-sports/football/matches/transformers/match-event.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/transformers/match.d.ts +11 -0
- package/api/sportal365-sports/football/matches/transformers/match.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/transformers/odds.d.ts +11 -0
- package/api/sportal365-sports/football/matches/transformers/odds.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/transformers/statistics.d.ts +11 -0
- package/api/sportal365-sports/football/matches/transformers/statistics.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/commentary.types.d.ts +27 -0
- package/api/sportal365-sports/football/matches/types/commentary.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/event.types.d.ts +19 -0
- package/api/sportal365-sports/football/matches/types/event.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/index.d.ts +16 -0
- package/api/sportal365-sports/football/matches/types/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/lineup.types.d.ts +80 -0
- package/api/sportal365-sports/football/matches/types/lineup.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/match.types.d.ts +47 -0
- package/api/sportal365-sports/football/matches/types/match.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/minute.types.d.ts +8 -0
- package/api/sportal365-sports/football/matches/types/minute.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/odds.types.d.ts +80 -0
- package/api/sportal365-sports/football/matches/types/odds.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/option.types.d.ts +129 -0
- package/api/sportal365-sports/football/matches/types/option.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/referee.types.d.ts +13 -0
- package/api/sportal365-sports/football/matches/types/referee.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/statistics.types.d.ts +45 -0
- package/api/sportal365-sports/football/matches/types/statistics.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/status.types.d.ts +13 -0
- package/api/sportal365-sports/football/matches/types/status.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/team.types.d.ts +17 -0
- package/api/sportal365-sports/football/matches/types/team.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/matches/types/winner.types.d.ts +15 -0
- package/api/sportal365-sports/football/matches/types/winner.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/search/index.d.ts +45 -0
- package/api/sportal365-sports/football/search/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/search/search.transformer.d.ts +10 -0
- package/api/sportal365-sports/football/search/search.transformer.d.ts.map +1 -0
- package/api/sportal365-sports/football/search/search.types.d.ts +147 -0
- package/api/sportal365-sports/football/search/search.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/standings/index.d.ts +43 -0
- package/api/sportal365-sports/football/standings/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/standings/standing.transformer.d.ts +15 -0
- package/api/sportal365-sports/football/standings/standing.transformer.d.ts.map +1 -0
- package/api/sportal365-sports/football/standings/standing.types.d.ts +73 -0
- package/api/sportal365-sports/football/standings/standing.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/statistics/index.d.ts +42 -0
- package/api/sportal365-sports/football/statistics/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/statistics/player-season.transformer.d.ts +11 -0
- package/api/sportal365-sports/football/statistics/player-season.transformer.d.ts.map +1 -0
- package/api/sportal365-sports/football/statistics/player-season.types.d.ts +84 -0
- package/api/sportal365-sports/football/statistics/player-season.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/teams/index.d.ts +53 -0
- package/api/sportal365-sports/football/teams/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/teams/squad.types.d.ts +63 -0
- package/api/sportal365-sports/football/teams/squad.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/teams/team.types.d.ts +58 -0
- package/api/sportal365-sports/football/teams/team.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/teams/utils.d.ts +24 -0
- package/api/sportal365-sports/football/teams/utils.d.ts.map +1 -0
- package/api/sportal365-sports/http.d.ts +59 -0
- package/api/sportal365-sports/http.d.ts.map +1 -0
- package/api/sportal365-sports/index.d.ts +14 -0
- package/api/sportal365-sports/index.d.ts.map +1 -0
- package/api/sportal365-sports/search/http.d.ts +8 -0
- package/api/sportal365-sports/search/http.d.ts.map +1 -0
- package/api/sportal365-sports/search/index.d.ts +43 -0
- package/api/sportal365-sports/search/index.d.ts.map +1 -0
- package/api/sportal365-sports/search/search.transformer.d.ts +10 -0
- package/api/sportal365-sports/search/search.transformer.d.ts.map +1 -0
- package/api/sportal365-sports/search/search.types.d.ts +209 -0
- package/api/sportal365-sports/search/search.types.d.ts.map +1 -0
- package/api/sportal365-sports/shared/index.d.ts +6 -0
- package/api/sportal365-sports/shared/index.d.ts.map +1 -0
- package/api/sportal365-sports/shared/providerRef.helper.d.ts +79 -0
- package/api/sportal365-sports/shared/providerRef.helper.d.ts.map +1 -0
- package/api/sportal365-sports/shared/types.d.ts +189 -0
- package/api/sportal365-sports/shared/types.d.ts.map +1 -0
- package/api/sportal365-sports/statistics/http.d.ts +8 -0
- package/api/sportal365-sports/statistics/http.d.ts.map +1 -0
- package/api/sportal365-sports/statistics/index.d.ts +55 -0
- package/api/sportal365-sports/statistics/index.d.ts.map +1 -0
- package/api/sportal365-sports/statistics/team-stats.transformer.d.ts +14 -0
- package/api/sportal365-sports/statistics/team-stats.transformer.d.ts.map +1 -0
- package/api/sportal365-sports/statistics/team-stats.types.d.ts +45 -0
- package/api/sportal365-sports/statistics/team-stats.types.d.ts.map +1 -0
- package/client.cjs +8 -0
- package/client.d.ts +20 -0
- package/client.d.ts.map +1 -0
- package/client.js +12065 -0
- package/config/index.d.ts +31 -0
- package/config/index.d.ts.map +1 -0
- package/config/types.d.ts +36 -0
- package/config/types.d.ts.map +1 -0
- package/fansunited-data-layer.cjs +1 -0
- package/fansunited-data-layer.js +1739 -0
- package/helpers/competition.helpers.d.ts +22 -0
- package/helpers/competition.helpers.d.ts.map +1 -0
- package/helpers/index.d.ts +7 -0
- package/helpers/index.d.ts.map +1 -0
- package/helpers/team.helpers.d.ts +289 -0
- package/helpers/team.helpers.d.ts.map +1 -0
- package/index-Cogo-Kkd.cjs +1 -0
- package/index-D7T2Yy11.js +1170 -0
- package/index.d.ts +39 -0
- package/index.d.ts.map +1 -0
- package/package.json +12 -15
- package/providers/competition/hooks/index.d.ts +6 -0
- package/providers/competition/hooks/index.d.ts.map +1 -0
- package/providers/competition/hooks/useCompetitionStats.d.ts +8 -0
- package/providers/competition/hooks/useCompetitionStats.d.ts.map +1 -0
- package/providers/competition/hooks/useGoalDistribution.d.ts +11 -0
- package/providers/competition/hooks/useGoalDistribution.d.ts.map +1 -0
- package/providers/competition/hooks/useMatchHelpers.d.ts +16 -0
- package/providers/competition/hooks/useMatchHelpers.d.ts.map +1 -0
- package/providers/competition/hooks/useStandingsCalculations.d.ts +18 -0
- package/providers/competition/hooks/useStandingsCalculations.d.ts.map +1 -0
- package/providers/competition/hooks/useStandingsHelpers.d.ts +23 -0
- package/providers/competition/hooks/useStandingsHelpers.d.ts.map +1 -0
- package/providers/competition/hooks/useTeamPosition.d.ts +8 -0
- package/providers/competition/hooks/useTeamPosition.d.ts.map +1 -0
- package/providers/competition/hooks/useTeamResultsTable.d.ts +9 -0
- package/providers/competition/hooks/useTeamResultsTable.d.ts.map +1 -0
- package/providers/competition/utils/competitionStats.d.ts +42 -0
- package/providers/competition/utils/competitionStats.d.ts.map +1 -0
- package/providers/competition/utils/goalDistribution.d.ts +41 -0
- package/providers/competition/utils/goalDistribution.d.ts.map +1 -0
- package/providers/competition/utils/index.d.ts +6 -0
- package/providers/competition/utils/index.d.ts.map +1 -0
- package/providers/competition/utils/standingsCalculations.d.ts +24 -0
- package/providers/competition/utils/standingsCalculations.d.ts.map +1 -0
- package/providers/competition.context.d.ts +8 -0
- package/providers/competition.context.d.ts.map +1 -0
- package/providers/competition.provider.d.ts +3 -0
- package/providers/competition.provider.d.ts.map +1 -0
- package/providers/competition.types.d.ts +118 -0
- package/providers/competition.types.d.ts.map +1 -0
- package/providers/fansunited-config.context.d.ts +6 -0
- package/providers/fansunited-config.context.d.ts.map +1 -0
- package/providers/fansunited-config.hooks.d.ts +19 -0
- package/providers/fansunited-config.hooks.d.ts.map +1 -0
- package/providers/fansunited-config.provider.d.ts +44 -0
- package/providers/fansunited-config.provider.d.ts.map +1 -0
- package/providers/fansunited-config.types.d.ts +48 -0
- package/providers/fansunited-config.types.d.ts.map +1 -0
- package/providers/fansunited-sdk.hook.d.ts +40 -0
- package/providers/fansunited-sdk.hook.d.ts.map +1 -0
- package/providers/index.d.ts +20 -0
- package/providers/index.d.ts.map +1 -0
- package/providers/match/hooks/useEventHelpers.d.ts +12 -0
- package/providers/match/hooks/useEventHelpers.d.ts.map +1 -0
- package/providers/match/hooks/useHeadToHeadHelpers.d.ts +13 -0
- package/providers/match/hooks/useHeadToHeadHelpers.d.ts.map +1 -0
- package/providers/match/hooks/useLineupHelpers.d.ts +13 -0
- package/providers/match/hooks/useLineupHelpers.d.ts.map +1 -0
- package/providers/match/hooks/useMatchStandingsCalculations.d.ts +20 -0
- package/providers/match/hooks/useMatchStandingsCalculations.d.ts.map +1 -0
- package/providers/match/hooks/useMatchStatus.d.ts +12 -0
- package/providers/match/hooks/useMatchStatus.d.ts.map +1 -0
- package/providers/match/hooks/useOddsHelpers.d.ts +10 -0
- package/providers/match/hooks/useOddsHelpers.d.ts.map +1 -0
- package/providers/match/hooks/useScoreHelpers.d.ts +16 -0
- package/providers/match/hooks/useScoreHelpers.d.ts.map +1 -0
- package/providers/match/hooks/useStandingsHelpers.d.ts +22 -0
- package/providers/match/hooks/useStandingsHelpers.d.ts.map +1 -0
- package/providers/match/hooks/useStatisticsHelpers.d.ts +13 -0
- package/providers/match/hooks/useStatisticsHelpers.d.ts.map +1 -0
- package/providers/match/hooks/useTeamHelpers.d.ts +11 -0
- package/providers/match/hooks/useTeamHelpers.d.ts.map +1 -0
- package/providers/match/hooks/useTeamStatsHelpers.d.ts +12 -0
- package/providers/match/hooks/useTeamStatsHelpers.d.ts.map +1 -0
- package/providers/match.context.d.ts +8 -0
- package/providers/match.context.d.ts.map +1 -0
- package/providers/match.provider.d.ts +3 -0
- package/providers/match.provider.d.ts.map +1 -0
- package/providers/match.types.d.ts +151 -0
- package/providers/match.types.d.ts.map +1 -0
- package/providers/team/hooks/useFormStats.d.ts +49 -0
- package/providers/team/hooks/useFormStats.d.ts.map +1 -0
- package/providers/team/hooks/useMatchHelpers.d.ts +12 -0
- package/providers/team/hooks/useMatchHelpers.d.ts.map +1 -0
- package/providers/team/hooks/useSquadHelpers.d.ts +17 -0
- package/providers/team/hooks/useSquadHelpers.d.ts.map +1 -0
- package/providers/team.context.d.ts +8 -0
- package/providers/team.context.d.ts.map +1 -0
- package/providers/team.provider.d.ts +3 -0
- package/providers/team.provider.d.ts.map +1 -0
- package/providers/team.types.d.ts +68 -0
- package/providers/team.types.d.ts.map +1 -0
- package/types/canonical/base.types.d.ts +366 -0
- package/types/canonical/base.types.d.ts.map +1 -0
- package/types/canonical/commentary.types.d.ts +42 -0
- package/types/canonical/commentary.types.d.ts.map +1 -0
- package/types/canonical/event.types.d.ts +31 -0
- package/types/canonical/event.types.d.ts.map +1 -0
- package/types/canonical/index.d.ts +17 -0
- package/types/canonical/index.d.ts.map +1 -0
- package/types/canonical/lineup.types.d.ts +33 -0
- package/types/canonical/lineup.types.d.ts.map +1 -0
- package/types/canonical/match.types.d.ts +153 -0
- package/types/canonical/match.types.d.ts.map +1 -0
- package/types/canonical/odds.types.d.ts +73 -0
- package/types/canonical/odds.types.d.ts.map +1 -0
- package/types/canonical/search.types.d.ts +101 -0
- package/types/canonical/search.types.d.ts.map +1 -0
- package/types/canonical/sports-search.types.d.ts +151 -0
- package/types/canonical/sports-search.types.d.ts.map +1 -0
- package/types/canonical/squad.types.d.ts +30 -0
- package/types/canonical/squad.types.d.ts.map +1 -0
- package/types/canonical/standing.types.d.ts +85 -0
- package/types/canonical/standing.types.d.ts.map +1 -0
- package/types/canonical/statistics.types.d.ts +81 -0
- package/types/canonical/statistics.types.d.ts.map +1 -0
- package/types/index.d.ts +10 -0
- package/types/index.d.ts.map +1 -0
- package/utilities/stats/core/helpers.d.ts +65 -0
- package/utilities/stats/core/helpers.d.ts.map +1 -0
- package/utilities/stats/core/index.d.ts +7 -0
- package/utilities/stats/core/index.d.ts.map +1 -0
- package/utilities/stats/core/types.d.ts +39 -0
- package/utilities/stats/core/types.d.ts.map +1 -0
- package/utilities/stats/index.d.ts +27 -0
- package/utilities/stats/index.d.ts.map +1 -0
- package/utilities/stats/match/headToHead.d.ts +73 -0
- package/utilities/stats/match/headToHead.d.ts.map +1 -0
- package/utilities/stats/match/homeVsAway.d.ts +30 -0
- package/utilities/stats/match/homeVsAway.d.ts.map +1 -0
- package/utilities/stats/match/index.d.ts +8 -0
- package/utilities/stats/match/index.d.ts.map +1 -0
- package/utilities/stats/match/overUnder.d.ts +59 -0
- package/utilities/stats/match/overUnder.d.ts.map +1 -0
- package/utilities/stats/match/result.d.ts +13 -0
- package/utilities/stats/match/result.d.ts.map +1 -0
- package/utilities/stats/team/commonOpponents.d.ts +28 -0
- package/utilities/stats/team/commonOpponents.d.ts.map +1 -0
- package/utilities/stats/team/goalStats.d.ts +42 -0
- package/utilities/stats/team/goalStats.d.ts.map +1 -0
- package/utilities/stats/team/index.d.ts +7 -0
- package/utilities/stats/team/index.d.ts.map +1 -0
- package/utilities/stats/team/streaks.d.ts +48 -0
- package/utilities/stats/team/streaks.d.ts.map +1 -0
- package/vite.svg +1 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sportal365 Sports API - Football Matches
|
|
3
|
+
*
|
|
4
|
+
* Fetches match data and transforms to canonical FUSports types.
|
|
5
|
+
*/
|
|
6
|
+
import type { FUSportsMatch, FUSportsMatchEvent, FUSportsMatchLineups, FUSportsMatchStatistics, FUSportsMatchOdds, FUSportsCommentaryItem } from "../../../../types/canonical";
|
|
7
|
+
import { type DataLayerConfig } from "../../../../config";
|
|
8
|
+
import type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions } from "./types";
|
|
9
|
+
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, } from "./types";
|
|
10
|
+
/**
|
|
11
|
+
* Get a football match by ID, UUID, or slug
|
|
12
|
+
*
|
|
13
|
+
* @param matchId - The match ID, UUID, or slug
|
|
14
|
+
* @param options - Optional parameters for odds, events, lineups
|
|
15
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
16
|
+
* @returns Canonical FUSportsMatch
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* // Basic usage
|
|
21
|
+
* const match = await getFootballMatch('7576255');
|
|
22
|
+
* console.log(match.competitorOne.name); // "Manchester United"
|
|
23
|
+
*
|
|
24
|
+
* // With main events and lineup status
|
|
25
|
+
* const match = await getFootballMatch('7576255', {
|
|
26
|
+
* optionalData: ['MAIN_EVENTS', 'LINEUP_STATUS']
|
|
27
|
+
* });
|
|
28
|
+
* console.log(match.mainEvents); // Goals, cards, etc.
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function getFootballMatch(matchId: string, options?: GetFootballMatchOptions, config?: DataLayerConfig): Promise<FUSportsMatch>;
|
|
32
|
+
/**
|
|
33
|
+
* Get all events for a football match
|
|
34
|
+
*
|
|
35
|
+
* @param matchId - The match ID
|
|
36
|
+
* @param options - Optional parameters
|
|
37
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
38
|
+
* @returns Array of match events (goals, cards, substitutions, etc.)
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* const events = await getFootballMatchEvents('7576255');
|
|
43
|
+
* events.forEach(e => console.log(`${e.minute}' - ${e.type}`));
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function getFootballMatchEvents(matchId: string, options?: GetFootballMatchEventsOptions, config?: DataLayerConfig): Promise<FUSportsMatchEvent[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Get lineups for a football match
|
|
49
|
+
*
|
|
50
|
+
* @param matchId - The match ID
|
|
51
|
+
* @param options - Optional parameters
|
|
52
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
53
|
+
* @returns Canonical match lineups with formations and players
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```typescript
|
|
57
|
+
* const lineups = await getFootballMatchLineups('7576255');
|
|
58
|
+
* console.log(lineups.home.formation); // "4-3-3"
|
|
59
|
+
* console.log(lineups.home.starters);
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare function getFootballMatchLineups(matchId: string, options?: GetFootballMatchLineupsOptions, config?: DataLayerConfig): Promise<FUSportsMatchLineups>;
|
|
63
|
+
/**
|
|
64
|
+
* Get odds for a football match
|
|
65
|
+
*
|
|
66
|
+
* Odds are fetched from the match endpoint with odds parameters.
|
|
67
|
+
* Uses `oddClient` and `languageCode` from config if not provided in options.
|
|
68
|
+
*
|
|
69
|
+
* @param matchId - The match ID
|
|
70
|
+
* @param options - Optional parameters for filtering odds
|
|
71
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
72
|
+
* @returns Canonical match odds with bookmaker details
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```typescript
|
|
76
|
+
* const odds = await getFootballMatchOdds('7576255', {
|
|
77
|
+
* marketTypes: ['1x2', 'OVER_UNDER']
|
|
78
|
+
* });
|
|
79
|
+
* console.log(`${odds.bookmakers.length} bookmakers available`);
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare function getFootballMatchOdds(matchId: string, options?: GetFootballMatchOddsOptions, config?: DataLayerConfig): Promise<FUSportsMatchOdds>;
|
|
83
|
+
/**
|
|
84
|
+
* Get team statistics for a football match
|
|
85
|
+
*
|
|
86
|
+
* @param matchId - The match ID (event ID)
|
|
87
|
+
* @param options - Optional parameters
|
|
88
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
89
|
+
* @returns Canonical match statistics for both teams
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```typescript
|
|
93
|
+
* const stats = await getFootballMatchStatistics('7576255');
|
|
94
|
+
* console.log(`Possession: ${stats.home.possession}% - ${stats.away.possession}%`);
|
|
95
|
+
* console.log(`Shots: ${stats.home.shotsTotal} - ${stats.away.shotsTotal}`);
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export declare function getFootballMatchStatistics(matchId: string, options?: GetFootballMatchStatisticsOptions, config?: DataLayerConfig): Promise<FUSportsMatchStatistics>;
|
|
99
|
+
/**
|
|
100
|
+
* Get live commentary for a football match
|
|
101
|
+
*
|
|
102
|
+
* @param matchId - The match ID, UUID, or slug
|
|
103
|
+
* @param options - Optional parameters
|
|
104
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
105
|
+
* @returns Array of commentary entries
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```typescript
|
|
109
|
+
* const commentary = await getFootballMatchCommentary('7576255');
|
|
110
|
+
* commentary.forEach(c => {
|
|
111
|
+
* console.log(`${c.elapsed}' - ${c.autoText}`);
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
export declare function getFootballMatchCommentary(matchId: string, options?: GetFootballMatchCommentaryOptions, config?: DataLayerConfig): Promise<FUSportsCommentaryItem[]>;
|
|
116
|
+
/**
|
|
117
|
+
* Get a list of football matches
|
|
118
|
+
*
|
|
119
|
+
* @param options - Filter and pagination options (limit and offset are required)
|
|
120
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
121
|
+
* @returns Array of canonical FUSportsMatch objects
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```typescript
|
|
125
|
+
* // Get 10 upcoming matches for a specific tournament
|
|
126
|
+
* const matches = await getFootballMatches({
|
|
127
|
+
* tournamentIds: ['123'],
|
|
128
|
+
* fromKickoffTime: new Date().toISOString(),
|
|
129
|
+
* sortDirection: 'asc',
|
|
130
|
+
* limit: 10,
|
|
131
|
+
* offset: 0
|
|
132
|
+
* });
|
|
133
|
+
*
|
|
134
|
+
* // Get matches by team
|
|
135
|
+
* const teamMatches = await getFootballMatches({
|
|
136
|
+
* teamIds: ['102', '103'],
|
|
137
|
+
* teamIdsOperator: 'OR',
|
|
138
|
+
* limit: 20,
|
|
139
|
+
* offset: 0
|
|
140
|
+
* });
|
|
141
|
+
*
|
|
142
|
+
* // Get live matches
|
|
143
|
+
* const liveMatches = await getFootballMatches({
|
|
144
|
+
* statusTypes: ['LIVE'],
|
|
145
|
+
* limit: 50,
|
|
146
|
+
* offset: 0
|
|
147
|
+
* });
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
export declare function getFootballMatches(options: GetFootballMatchesOptions, config?: DataLayerConfig): Promise<FUSportsMatch[]>;
|
|
151
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/matches/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACR,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAMR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B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sB,0BAA0B,CAC5C,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,iCAAiC,EAC3C,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAiBnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,kBAAkB,CACpC,OAAO,EAAE,yBAAyB,EAClC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,aAAa,EAAE,CAAC,CAsD1B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commentary transformers
|
|
3
|
+
*
|
|
4
|
+
* Transforms raw API commentary data to canonical FUSportsCommentary type.
|
|
5
|
+
*/
|
|
6
|
+
import type { FUSportsCommentaryItem } from "../../../../../types/canonical";
|
|
7
|
+
import type { RawCommentary } from "../types";
|
|
8
|
+
/**
|
|
9
|
+
* Transform raw commentary entry to canonical format
|
|
10
|
+
*/
|
|
11
|
+
export declare function transformCommentary(raw: RawCommentary): FUSportsCommentaryItem;
|
|
12
|
+
//# sourceMappingURL=commentary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commentary.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/commentary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAa9C;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,sBAAsB,CAe9E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transformers barrel file
|
|
3
|
+
*/
|
|
4
|
+
export { transformEvent } from "./match-event";
|
|
5
|
+
export { transformMatch } from "./match";
|
|
6
|
+
export { transformLineups } from "./lineup";
|
|
7
|
+
export { transformStatistics } from "./statistics";
|
|
8
|
+
export { transformMatchOdds } from "./odds";
|
|
9
|
+
export { transformCommentary } from "./commentary";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lineup transformation utilities
|
|
3
|
+
* Transforms raw API lineup responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsMatchLineups } from "../../../../../types/canonical";
|
|
6
|
+
import type { RawMatchLineups } from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw match lineups to canonical format
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformLineups(raw: RawMatchLineups): FUSportsMatchLineups;
|
|
11
|
+
//# sourceMappingURL=lineup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lineup.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/lineup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,oBAAoB,EAIvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAuC,MAAM,UAAU,CAAC;AAsFrF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,eAAe,GAAG,oBAAoB,CAO3E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event transformation utilities
|
|
3
|
+
* Transforms raw API event responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsMatchEvent } from "../../../../../types/canonical";
|
|
6
|
+
import type { RawMatchEvent } from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw event to canonical format
|
|
9
|
+
* Returns null for unknown event types
|
|
10
|
+
*/
|
|
11
|
+
export declare function transformEvent(raw: RawMatchEvent): FUSportsMatchEvent | null;
|
|
12
|
+
//# sourceMappingURL=match-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-event.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/match-event.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAuB,MAAM,gCAAgC,CAAC;AAC9F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAoD9C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,kBAAkB,GAAG,IAAI,CAkB5E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match transformation utilities
|
|
3
|
+
* Transforms raw API match responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsMatch } from "../../../../../types/canonical";
|
|
6
|
+
import type { RawMatch } from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw match response to canonical FUSportsMatch
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformMatch(raw: RawMatch): FUSportsMatch;
|
|
11
|
+
//# sourceMappingURL=match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/match.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,aAAa,EAUhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,UAAU,CAAC;AA0N1D;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,QAAQ,GAAG,aAAa,CA+C3D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Odds transformation utilities
|
|
3
|
+
* Transforms raw API odds responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsMatchOdds } from "../../../../../types/canonical";
|
|
6
|
+
import type { RawMatchOdd } from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw match odds array to canonical format
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformMatchOdds(matchId: string, raw: RawMatchOdd[]): FUSportsMatchOdds;
|
|
11
|
+
//# sourceMappingURL=odds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odds.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/odds.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAIR,iBAAiB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAmC,MAAM,UAAU,CAAC;AA+F7E;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,iBAAiB,CAKzF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Statistics transformation utilities
|
|
3
|
+
* Transforms raw API statistics responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsMatchStatistics } from "../../../../../types/canonical";
|
|
6
|
+
import type { RawMatchStatisticsResponse } from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw match statistics response to canonical format
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformStatistics(raw: RawMatchStatisticsResponse): FUSportsMatchStatistics;
|
|
11
|
+
//# sourceMappingURL=statistics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/statistics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,uBAAuB,EAG1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAqB,MAAM,UAAU,CAAC;AA2C9E;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,0BAA0B,GAAG,uBAAuB,CAY5F"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commentary types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
import type { NextCacheOptions } from "../../../http";
|
|
5
|
+
export interface RawCommentaryDetail {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface RawCommentary {
|
|
9
|
+
external_id?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
commentary_type?: string;
|
|
12
|
+
subtype_1?: string;
|
|
13
|
+
subtype_2?: string;
|
|
14
|
+
template_text?: string;
|
|
15
|
+
auto_text?: string;
|
|
16
|
+
elapsed?: string | number;
|
|
17
|
+
elapsed_plus?: string | number;
|
|
18
|
+
details?: RawCommentaryDetail[];
|
|
19
|
+
incident_timestamp?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetFootballMatchCommentaryOptions {
|
|
22
|
+
/** Language code for translations. Required by the API. Defaults to 'en' */
|
|
23
|
+
languageCode?: string;
|
|
24
|
+
/** Next.js cache options for ISR/on-demand revalidation */
|
|
25
|
+
next?: NextCacheOptions;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=commentary.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commentary.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/commentary.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,aAAa;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,iCAAiC;IAC9C,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match event types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
import type { RawPartialPlayer, RawTeamScore } from "../../../shared/types";
|
|
5
|
+
export type RawMatchEventTypeCode = "YELLOW_RED_CARD" | "PENALTY_SHOOTOUT_MISSED" | "PENALTY_SHOOTOUT_SCORED" | "SUBSTITUTION" | "GOAL" | "RED_CARD" | "PENALTY_MISS" | "YELLOW_CARD" | "ASSIST" | "PENALTY_GOAL" | "OWN_GOAL" | "DISALLOWED_GOAL" | "DISALLOWED_MISSED_PENALTY" | "DISALLOWED_PENALTY" | "DISALLOWED_OWN_GOAL" | "KICKOFF" | "HALFTIME" | "START_SECOND_HALF" | "FINISHED_FIRST_HALF" | "FINISHED_AFTER_EXTRA_TIME" | "FINISHED_AFTER_PENALTIES" | "OVERTIME_FIRST_HALF" | "OVERTIME_FIRST_HALF_END" | "OVERTIME_SECOND_HALF" | "INJURY_TIME" | "FINISHED";
|
|
6
|
+
export interface RawMatchEvent {
|
|
7
|
+
id: string;
|
|
8
|
+
match_id: string;
|
|
9
|
+
type_code: RawMatchEventTypeCode;
|
|
10
|
+
team_position?: "HOME" | "AWAY";
|
|
11
|
+
minute?: number;
|
|
12
|
+
injury_minute?: number;
|
|
13
|
+
injury_time_minutes?: number;
|
|
14
|
+
team_id?: string;
|
|
15
|
+
primary_player?: RawPartialPlayer;
|
|
16
|
+
secondary_player?: RawPartialPlayer;
|
|
17
|
+
score?: RawTeamScore;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=event.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/event.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAC3B,iBAAiB,GACjB,yBAAyB,GACzB,yBAAyB,GACzB,cAAc,GACd,MAAM,GACN,UAAU,GACV,cAAc,GACd,aAAa,GACb,QAAQ,GACR,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,2BAA2B,GAC3B,oBAAoB,GACpB,qBAAqB,GACrB,SAAS,GACT,UAAU,GACV,mBAAmB,GACnB,qBAAqB,GACrB,2BAA2B,GAC3B,0BAA0B,GAC1B,qBAAqB,GACrB,yBAAyB,GACzB,sBAAsB,GACtB,aAAa,GACb,UAAU,CAAC;AAEjB,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,qBAAqB,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,KAAK,CAAC,EAAE,YAAY,CAAC;CACxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match types barrel file
|
|
3
|
+
*/
|
|
4
|
+
export type { RawMatchStatusType, RawMatchStatus } from "./status.types";
|
|
5
|
+
export type { RawMatchTeam } from "./team.types";
|
|
6
|
+
export type { RawMatchEventTypeCode, RawMatchEvent } from "./event.types";
|
|
7
|
+
export type { RawMatchReferee } from "./referee.types";
|
|
8
|
+
export type { RawMatchWinnerReason, RawMatchOrAggregateWinner, RawMatchWinner } from "./winner.types";
|
|
9
|
+
export type { RawMatchMinute } from "./minute.types";
|
|
10
|
+
export type { RawOddsBookmakerAsset, RawOddsBookmakerLink, RawOddsBookmakerBranding, RawOddsBookmakerEventUrl, RawOddsBookmaker, RawOddsMarketType, RawOddsMarketScope, RawOddsSelectionUrl, RawOddsSelectionProviderInfo, RawOddsSelection, RawOddsMarket, RawMatchOdd, } from "./odds.types";
|
|
11
|
+
export type { RawLineupCountry, RawLineupPlayerDetails, RawLineupPlayerType, RawLineupPlayerEntry, RawLineupCoach, RawTeamLineup, RawMatchLineups, } from "./lineup.types";
|
|
12
|
+
export type { RawStatisticsData, RawTeamStatisticsEntry, RawMatchStatisticsResponse } from "./statistics.types";
|
|
13
|
+
export type { OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchesOptions, } from "./option.types";
|
|
14
|
+
export type { RawCommentaryDetail, RawCommentary, GetFootballMatchCommentaryOptions } from "./commentary.types";
|
|
15
|
+
export type { RawMatchCoverage, RawLineupStatus, RawMatch } from "./match.types";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGzE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAGjD,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG1E,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,YAAY,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGtG,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,YAAY,EACR,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,gBAAgB,EAChB,aAAa,EACb,WAAW,GACd,MAAM,cAAc,CAAC;AAGtB,YAAY,EACR,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,eAAe,GAClB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGhH,YAAY,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,yBAAyB,GAC5B,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAGhH,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lineup types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
import type { RawMatchEvent } from "./event.types";
|
|
5
|
+
import type { RawAssets } from "../../../shared/types";
|
|
6
|
+
export interface RawLineupCountry {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
code?: string;
|
|
11
|
+
uuid?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RawLineupPlayerDetails {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
position?: string;
|
|
18
|
+
gender?: "MALE" | "FEMALE";
|
|
19
|
+
country?: RawLineupCountry;
|
|
20
|
+
active?: boolean;
|
|
21
|
+
birthdate?: string;
|
|
22
|
+
birth_city?: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
country?: RawLineupCountry;
|
|
26
|
+
uuid?: string;
|
|
27
|
+
};
|
|
28
|
+
profile?: {
|
|
29
|
+
height?: string;
|
|
30
|
+
weight?: string;
|
|
31
|
+
};
|
|
32
|
+
social?: {
|
|
33
|
+
web?: string;
|
|
34
|
+
twitter_id?: string;
|
|
35
|
+
facebook_id?: string;
|
|
36
|
+
instagram_id?: string;
|
|
37
|
+
wikipedia_id?: string;
|
|
38
|
+
youtube_channel_id?: string;
|
|
39
|
+
};
|
|
40
|
+
assets?: RawAssets | null;
|
|
41
|
+
uuid?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface RawLineupPlayerType {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
category: "start" | "sub" | "miss";
|
|
47
|
+
code: string;
|
|
48
|
+
uuid?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface RawLineupPlayerEntry {
|
|
51
|
+
type: RawLineupPlayerType;
|
|
52
|
+
player: RawLineupPlayerDetails;
|
|
53
|
+
position_x?: number | null;
|
|
54
|
+
position_y?: number | null;
|
|
55
|
+
shirt_number?: number;
|
|
56
|
+
uuid?: string;
|
|
57
|
+
events?: RawMatchEvent[];
|
|
58
|
+
}
|
|
59
|
+
export interface RawLineupCoach {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
slug?: string;
|
|
63
|
+
country?: RawLineupCountry;
|
|
64
|
+
birthdate?: string;
|
|
65
|
+
gender?: "MALE" | "FEMALE";
|
|
66
|
+
uuid?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface RawTeamLineup {
|
|
69
|
+
formation?: string;
|
|
70
|
+
coach?: RawLineupCoach;
|
|
71
|
+
team_id: string;
|
|
72
|
+
players: RawLineupPlayerEntry[];
|
|
73
|
+
}
|
|
74
|
+
export interface RawMatchLineups {
|
|
75
|
+
match_id: string;
|
|
76
|
+
status: "CONFIRMED" | "UNCONFIRMED" | "NOT_AVAILABLE";
|
|
77
|
+
home_team: RawTeamLineup;
|
|
78
|
+
away_team: RawTeamLineup;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=lineup.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lineup.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/lineup.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CA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Stage, RawGroup, RawRound, RawScore } from "../../../shared/types";
|
|
5
|
+
import type { RawMatchStatus } from "./status.types";
|
|
6
|
+
import type { RawMatchTeam } from "./team.types";
|
|
7
|
+
import type { RawMatchEvent } from "./event.types";
|
|
8
|
+
import type { RawMatchReferee } from "./referee.types";
|
|
9
|
+
import type { RawMatchWinner } from "./winner.types";
|
|
10
|
+
import type { RawMatchMinute } from "./minute.types";
|
|
11
|
+
import type { RawMatchOdd } from "./odds.types";
|
|
12
|
+
export type RawMatchCoverage = "LIVE" | "NOT_LIVE" | "UNKNOWN";
|
|
13
|
+
export type RawLineupStatus = "CONFIRMED" | "UNCONFIRMED" | "NOT_AVAILABLE";
|
|
14
|
+
/**
|
|
15
|
+
* Full match response from /v2/matches/{id}
|
|
16
|
+
*/
|
|
17
|
+
export interface RawMatch {
|
|
18
|
+
id: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
status: RawMatchStatus;
|
|
21
|
+
kickoff_time: string;
|
|
22
|
+
stage?: RawStage;
|
|
23
|
+
season?: RawSeason;
|
|
24
|
+
group?: RawGroup;
|
|
25
|
+
round?: RawRound;
|
|
26
|
+
home_team: RawMatchTeam;
|
|
27
|
+
away_team: RawMatchTeam;
|
|
28
|
+
referees?: RawMatchReferee[];
|
|
29
|
+
venue?: RawMatchVenue;
|
|
30
|
+
spectators?: number;
|
|
31
|
+
coverage?: RawMatchCoverage;
|
|
32
|
+
minute?: RawMatchMinute;
|
|
33
|
+
phase_started_at?: string;
|
|
34
|
+
finished_at?: string;
|
|
35
|
+
score?: RawScore;
|
|
36
|
+
main_events?: RawMatchEvent[];
|
|
37
|
+
penalty_shootout_events?: RawMatchEvent[];
|
|
38
|
+
winner?: RawMatchWinner;
|
|
39
|
+
uuid: string;
|
|
40
|
+
odds?: RawMatchOdd[];
|
|
41
|
+
first_half_started_at?: string;
|
|
42
|
+
second_half_started_at?: string;
|
|
43
|
+
extra_time_first_half_started_at?: string;
|
|
44
|
+
extra_time_second_half_started_at?: string;
|
|
45
|
+
lineup_status?: RawLineupStatus;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=match.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/match.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC9G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAMhD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAC/D,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,aAAa,GAAG,eAAe,CAAC;AAM5E;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,YAAY,CAAC;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAC9B,uBAAuB,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1C,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,WAAW,EAAE,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,aAAa,CAAC,EAAE,eAAe,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minute.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/minute.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,cAAc;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match odds types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
export interface RawOddsBookmakerAsset {
|
|
5
|
+
logo: string;
|
|
6
|
+
type: string;
|
|
7
|
+
transparent_background_url?: string;
|
|
8
|
+
background_color?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface RawOddsBookmakerLink {
|
|
11
|
+
appType: string;
|
|
12
|
+
selectionTemplateUrl: string | null;
|
|
13
|
+
eventTemplateUrl: string;
|
|
14
|
+
homepageUrl: string;
|
|
15
|
+
}
|
|
16
|
+
export interface RawOddsBookmakerBranding {
|
|
17
|
+
background_color: string;
|
|
18
|
+
text_color: string;
|
|
19
|
+
}
|
|
20
|
+
export interface RawOddsBookmakerEventUrl {
|
|
21
|
+
url: string;
|
|
22
|
+
app_type: string;
|
|
23
|
+
}
|
|
24
|
+
export interface RawOddsBookmaker {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
url?: string;
|
|
28
|
+
assets?: RawOddsBookmakerAsset[];
|
|
29
|
+
links?: RawOddsBookmakerLink[];
|
|
30
|
+
branding?: RawOddsBookmakerBranding;
|
|
31
|
+
event_urls?: RawOddsBookmakerEventUrl[];
|
|
32
|
+
stakes_disclaimer?: string;
|
|
33
|
+
domain_name?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface RawOddsMarketType {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
code: string;
|
|
39
|
+
entity_type: string;
|
|
40
|
+
}
|
|
41
|
+
export interface RawOddsMarketScope {
|
|
42
|
+
id: string;
|
|
43
|
+
type: string;
|
|
44
|
+
name: string;
|
|
45
|
+
entity_type: string;
|
|
46
|
+
}
|
|
47
|
+
export interface RawOddsSelectionUrl {
|
|
48
|
+
url: string;
|
|
49
|
+
app_type: string;
|
|
50
|
+
}
|
|
51
|
+
export interface RawOddsSelectionProviderInfo {
|
|
52
|
+
selection_id: string;
|
|
53
|
+
event_id: string;
|
|
54
|
+
market_id: string;
|
|
55
|
+
competition_id: string;
|
|
56
|
+
}
|
|
57
|
+
export interface RawOddsSelection {
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
code: string;
|
|
61
|
+
value: string | null;
|
|
62
|
+
odds: string;
|
|
63
|
+
urls?: RawOddsSelectionUrl[];
|
|
64
|
+
movement?: "UP" | "DOWN" | "STABLE";
|
|
65
|
+
odds_old?: string;
|
|
66
|
+
entity_type?: string;
|
|
67
|
+
additional_info?: unknown;
|
|
68
|
+
provider_info?: RawOddsSelectionProviderInfo;
|
|
69
|
+
}
|
|
70
|
+
export interface RawOddsMarket {
|
|
71
|
+
type: RawOddsMarketType;
|
|
72
|
+
scope: RawOddsMarketScope;
|
|
73
|
+
selections: RawOddsSelection[];
|
|
74
|
+
}
|
|
75
|
+
export interface RawMatchOdd {
|
|
76
|
+
bookmaker: RawOddsBookmaker;
|
|
77
|
+
type: "PRE_EVENT" | "LIVE";
|
|
78
|
+
markets: RawOddsMarket[];
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=odds.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odds.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/odds.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;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