fansunited-data-layer 0.7.0 → 0.8.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/sportal365-sports/basketball/games/index.d.ts +32 -0
- package/api/sportal365-sports/basketball/games/index.d.ts.map +1 -0
- package/api/sportal365-sports/basketball/games/transformers/game.d.ts +11 -0
- package/api/sportal365-sports/basketball/games/transformers/game.d.ts.map +1 -0
- package/api/sportal365-sports/basketball/games/types.d.ts +116 -0
- package/api/sportal365-sports/basketball/games/types.d.ts.map +1 -0
- package/api/sportal365-sports/basketball/http.d.ts +8 -0
- package/api/sportal365-sports/basketball/http.d.ts.map +1 -0
- package/api/sportal365-sports/basketball/index.d.ts +6 -0
- package/api/sportal365-sports/basketball/index.d.ts.map +1 -0
- package/api/sportal365-sports/football/index.d.ts +2 -2
- package/api/sportal365-sports/football/index.d.ts.map +1 -1
- package/api/sportal365-sports/football/matches/index.d.ts +39 -2
- package/api/sportal365-sports/football/matches/index.d.ts.map +1 -1
- package/api/sportal365-sports/football/matches/types/index.d.ts +1 -1
- package/api/sportal365-sports/football/matches/types/index.d.ts.map +1 -1
- package/api/sportal365-sports/football/matches/types/option.types.d.ts +38 -0
- package/api/sportal365-sports/football/matches/types/option.types.d.ts.map +1 -1
- package/api/sportal365-sports/index.d.ts +6 -2
- package/api/sportal365-sports/index.d.ts.map +1 -1
- package/api/sportal365-sports/tennis/http.d.ts +8 -0
- package/api/sportal365-sports/tennis/http.d.ts.map +1 -0
- package/api/sportal365-sports/tennis/index.d.ts +6 -0
- package/api/sportal365-sports/tennis/index.d.ts.map +1 -0
- package/api/sportal365-sports/tennis/matches/index.d.ts +33 -0
- package/api/sportal365-sports/tennis/matches/index.d.ts.map +1 -0
- package/api/sportal365-sports/tennis/matches/transformers/match.d.ts +11 -0
- package/api/sportal365-sports/tennis/matches/transformers/match.d.ts.map +1 -0
- package/api/sportal365-sports/tennis/matches/types.d.ts +153 -0
- package/api/sportal365-sports/tennis/matches/types.d.ts.map +1 -0
- package/client.cjs +1 -1
- package/client.js +2 -2
- package/fansunited-data-layer.cjs +1 -1
- package/fansunited-data-layer.js +778 -444
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/matches-B-ZxR-B9.cjs +1 -0
- package/{matches-CBFdPkPa.js → matches-B8E7KjZU.js} +230 -198
- package/package.json +1 -1
- package/matches-DKjnuuq_.cjs +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Basketball games API functions
|
|
3
|
+
*/
|
|
4
|
+
import type { FUSportsMatch } from "../../../../types/canonical";
|
|
5
|
+
import type { DataLayerConfig } from "../../../../config";
|
|
6
|
+
import type { GetBasketballLivescoreOptions } from "./types";
|
|
7
|
+
/**
|
|
8
|
+
* Get basketball livescore data
|
|
9
|
+
*
|
|
10
|
+
* Fetches live and recent basketball games from the Sportal365 Basketball API.
|
|
11
|
+
* Returns data in canonical FUSportsMatch format.
|
|
12
|
+
*
|
|
13
|
+
* @param options - Optional filters and configuration
|
|
14
|
+
* @param config - Optional data layer configuration
|
|
15
|
+
* @returns Array of basketball matches in canonical format
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* // Get all live basketball games
|
|
20
|
+
* const liveGames = await getBasketballLivescore({
|
|
21
|
+
* statusTypes: ['LIVE']
|
|
22
|
+
* });
|
|
23
|
+
*
|
|
24
|
+
* // Get games for a specific competition
|
|
25
|
+
* const nbaGames = await getBasketballLivescore({
|
|
26
|
+
* competitionList: 'nba',
|
|
27
|
+
* statusTypes: ['LIVE', 'NOT_STARTED']
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function getBasketballLivescore(options?: GetBasketballLivescoreOptions, config?: DataLayerConfig): Promise<FUSportsMatch[]>;
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/basketball/games/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,KAAK,EAAqB,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAGhF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,sBAAsB,CACxC,OAAO,CAAC,EAAE,6BAA6B,EACvC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,aAAa,EAAE,CAAC,CAwB1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Basketball game transformation utilities
|
|
3
|
+
* Transforms raw Basketball API game responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsMatch } from "../../../../../types/canonical";
|
|
6
|
+
import type { RawBasketballGame } from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw basketball game response to canonical FUSportsMatch
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformBasketballGame(raw: RawBasketballGame): FUSportsMatch;
|
|
11
|
+
//# sourceMappingURL=game.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/basketball/games/transformers/game.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,aAAa,EAQhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AA8IlD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,iBAAiB,GAAG,aAAa,CAoC7E"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Basketball game types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
import type { NextCacheOptions } from "../../http";
|
|
5
|
+
export interface RawBasketballTeam {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
type?: "national" | "placeholder" | "club";
|
|
10
|
+
gender?: "MALE" | "FEMALE";
|
|
11
|
+
three_letter_code?: string;
|
|
12
|
+
entity_type: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RawBasketballStatus {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: "NOT_STARTED" | "LIVE" | "FINISHED" | "CANCELLED" | "INTERRUPTED" | "UNKNOWN" | "POSTPONED";
|
|
18
|
+
entity_type: string;
|
|
19
|
+
short_name?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface RawBasketballResultType {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
category: string;
|
|
26
|
+
entity_type: string;
|
|
27
|
+
short_name?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface RawBasketballScore {
|
|
30
|
+
home: number;
|
|
31
|
+
away: number;
|
|
32
|
+
winner?: "HOME" | "AWAY" | "NOT_AVAILABLE";
|
|
33
|
+
result_type: RawBasketballResultType;
|
|
34
|
+
}
|
|
35
|
+
export interface RawBasketballWinner {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
export interface RawBasketballSeason {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
slug: string;
|
|
42
|
+
competition: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
slug: string;
|
|
46
|
+
country: {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
slug: string;
|
|
50
|
+
entity_type: string;
|
|
51
|
+
};
|
|
52
|
+
gender: "MALE" | "FEMALE";
|
|
53
|
+
region: "INTERNATIONAL" | "DOMESTIC";
|
|
54
|
+
entity_type: string;
|
|
55
|
+
};
|
|
56
|
+
status: "ACTIVE" | "INACTIVE";
|
|
57
|
+
entity_type: string;
|
|
58
|
+
}
|
|
59
|
+
export interface RawBasketballStage {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
slug: string;
|
|
63
|
+
status: "ACTIVE" | "INACTIVE";
|
|
64
|
+
entity_type: string;
|
|
65
|
+
type: "PLAYOFF" | "LEAGUE" | "UNKNOWN";
|
|
66
|
+
}
|
|
67
|
+
export interface RawBasketballRound {
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
uuid: string;
|
|
71
|
+
entity_type: string;
|
|
72
|
+
}
|
|
73
|
+
export interface RawBasketballArena {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
slug: string;
|
|
77
|
+
entity_type: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Full game response from /games endpoint
|
|
81
|
+
*/
|
|
82
|
+
export interface RawBasketballGame {
|
|
83
|
+
id: string;
|
|
84
|
+
slug: string;
|
|
85
|
+
stage?: RawBasketballStage;
|
|
86
|
+
season?: RawBasketballSeason;
|
|
87
|
+
status: RawBasketballStatus;
|
|
88
|
+
round?: RawBasketballRound;
|
|
89
|
+
score?: RawBasketballScore[];
|
|
90
|
+
winner?: RawBasketballWinner;
|
|
91
|
+
arena?: RawBasketballArena;
|
|
92
|
+
coverage?: string;
|
|
93
|
+
minute?: number;
|
|
94
|
+
game_time: string;
|
|
95
|
+
home_team: RawBasketballTeam;
|
|
96
|
+
away_team: RawBasketballTeam;
|
|
97
|
+
odds?: unknown[];
|
|
98
|
+
}
|
|
99
|
+
export type BasketballMatchStatusType = "NOT_STARTED" | "LIVE" | "FINISHED" | "CANCELLED" | "INTERRUPTED" | "UNKNOWN" | "POSTPONED";
|
|
100
|
+
export interface GetBasketballLivescoreOptions {
|
|
101
|
+
/** Language code for translations (e.g., 'en', 'bg') */
|
|
102
|
+
languageCode?: string;
|
|
103
|
+
/** Filter by competition list */
|
|
104
|
+
competitionList?: string;
|
|
105
|
+
/** Filter by status types */
|
|
106
|
+
statusTypes?: BasketballMatchStatusType[];
|
|
107
|
+
/** Odd client code */
|
|
108
|
+
oddClient?: string;
|
|
109
|
+
/** Odd type */
|
|
110
|
+
oddType?: "LIVE" | "PRE_EVENT" | "ALL";
|
|
111
|
+
/** Market types for odds */
|
|
112
|
+
marketTypes?: string[];
|
|
113
|
+
/** Next.js cache options */
|
|
114
|
+
next?: NextCacheOptions;
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/basketball/games/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,GAAG,aAAa,GAAG,MAAM,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;IAClG,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM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C,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAEvB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/basketball/http.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;GAEG;AACH,eAAO,MAAM,cAAc,wCAAiD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/basketball/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACjD,YAAY,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Football-specific endpoints for the Sportal365 Sports API.
|
|
5
5
|
* All functions return canonical FUSports types.
|
|
6
6
|
*/
|
|
7
|
-
export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, } from "./matches";
|
|
8
|
-
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, } from "./matches";
|
|
7
|
+
export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, getFootballLivescore, } from "./matches";
|
|
8
|
+
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballLivescoreOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, SelectionFilter, } from "./matches";
|
|
9
9
|
export { getFootballTeam, getFootballTeamSquad } from "./teams";
|
|
10
10
|
export type { GetFootballTeamOptions, GetFootballTeamSquadOptions } from "./teams";
|
|
11
11
|
export { getFootballCompetition, getFootballSeasonDetails } from "./competitions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/football/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/football/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,GACvB,MAAM,WAAW,CAAC;AAEnB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,2BAA2B,EAC3B,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,eAAe,GAClB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAChE,YAAY,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAGnF,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAClF,YAAY,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAGrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAG9F,OAAO,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AACjE,YAAY,EAAE,wCAAwC,EAAE,MAAM,cAAc,CAAC;AAG7E,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { FUSportsMatch, FUSportsMatchEvent, FUSportsMatchLineups, FUSportsMatchStatistics, FUSportsMatchOdds, FUSportsCommentaryItem } from "../../../../types/canonical";
|
|
7
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";
|
|
8
|
+
import type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballLivescoreOptions } from "./types";
|
|
9
|
+
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballLivescoreOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, SelectionFilter, } from "./types";
|
|
10
10
|
/**
|
|
11
11
|
* Get a football match by ID, UUID, or slug
|
|
12
12
|
*
|
|
@@ -148,4 +148,41 @@ export declare function getFootballMatchCommentary(matchId: string, options?: Ge
|
|
|
148
148
|
* ```
|
|
149
149
|
*/
|
|
150
150
|
export declare function getFootballMatches(options: GetFootballMatchesOptions, config?: DataLayerConfig): Promise<FUSportsMatch[]>;
|
|
151
|
+
/**
|
|
152
|
+
* Get livescore matches
|
|
153
|
+
*
|
|
154
|
+
* This endpoint is optimized for livescore use cases and provides a simpler
|
|
155
|
+
* interface compared to the general matches endpoint. It's designed for
|
|
156
|
+
* fetching matches by date, tournament group, or status.
|
|
157
|
+
*
|
|
158
|
+
* @param options - Filter options for livescore matches
|
|
159
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
160
|
+
* @returns Array of canonical FUSportsMatch objects
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```typescript
|
|
164
|
+
* // Get all live matches
|
|
165
|
+
* const liveMatches = await getFootballLivescore({
|
|
166
|
+
* statusTypes: ['LIVE']
|
|
167
|
+
* });
|
|
168
|
+
*
|
|
169
|
+
* // Get matches for a specific date
|
|
170
|
+
* const todayMatches = await getFootballLivescore({
|
|
171
|
+
* date: '2024-01-15',
|
|
172
|
+
* utcOffset: 2
|
|
173
|
+
* });
|
|
174
|
+
*
|
|
175
|
+
* // Get matches for a tournament group with main events
|
|
176
|
+
* const premierLeague = await getFootballLivescore({
|
|
177
|
+
* tournamentGroup: 'premier_league',
|
|
178
|
+
* optionalData: 'MAIN_EVENTS'
|
|
179
|
+
* });
|
|
180
|
+
*
|
|
181
|
+
* // Get specific matches by IDs
|
|
182
|
+
* const matches = await getFootballLivescore({
|
|
183
|
+
* matchIds: ['7576255', '7576256']
|
|
184
|
+
* });
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
export declare function getFootballLivescore(options?: GetFootballLivescoreOptions, config?: DataLayerConfig): Promise<FUSportsMatch[]>;
|
|
151
188
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,
|
|
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,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,2BAA2B,EAC9B,MAAM,SAAS,CAAC;AAWjB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,2BAA2B,EAC3B,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,e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,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,aAAa,EAAE,CAAC,CAsD1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,oBAAoB,CACtC,OAAO,CAAC,EAAE,2BAA2B,EACrC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,aAAa,EAAE,CAAC,CAkC1B"}
|
|
@@ -10,7 +10,7 @@ export type { RawMatchMinute } from "./minute.types";
|
|
|
10
10
|
export type { RawOddsBookmakerAsset, RawOddsBookmakerLink, RawOddsBookmakerBranding, RawOddsBookmakerEventUrl, RawOddsBookmaker, RawOddsMarketType, RawOddsMarketScope, RawOddsSelectionUrl, RawOddsSelectionProviderInfo, RawOddsSelection, RawOddsMarket, RawMatchOdd, } from "./odds.types";
|
|
11
11
|
export type { RawLineupCountry, RawLineupPlayerDetails, RawLineupPlayerType, RawLineupPlayerEntry, RawLineupCoach, RawTeamLineup, RawMatchLineups, } from "./lineup.types";
|
|
12
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";
|
|
13
|
+
export type { OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, SelectionFilter, GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchesOptions, GetFootballLivescoreOptions, } from "./option.types";
|
|
14
14
|
export type { RawCommentaryDetail, RawCommentary, GetFootballMatchCommentaryOptions } from "./commentary.types";
|
|
15
15
|
export type { RawMatchCoverage, RawLineupStatus, RawMatch } from "./match.types";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/index.ts"],"names":[],"mappings":"AAAA;;G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126
|
/** Next.js cache options for ISR/on-demand revalidation */
|
|
127
127
|
next?: NextCacheOptions;
|
|
128
128
|
}
|
|
129
|
+
/** Selection filter for livescore endpoint */
|
|
130
|
+
export type SelectionFilter = "ENABLED" | "DISABLED";
|
|
131
|
+
/**
|
|
132
|
+
* Options for fetching livescore matches
|
|
133
|
+
*
|
|
134
|
+
* This endpoint is optimized for livescore use cases and provides a simpler
|
|
135
|
+
* interface compared to the general matches endpoint.
|
|
136
|
+
*/
|
|
137
|
+
export interface GetFootballLivescoreOptions {
|
|
138
|
+
/** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
|
|
139
|
+
languageCode?: string;
|
|
140
|
+
/** Filter matches by their IDs */
|
|
141
|
+
matchIds?: string[];
|
|
142
|
+
/** Filter matches by the date when they were played (ISO 8601 date format, e.g., '2024-01-15') */
|
|
143
|
+
date?: string;
|
|
144
|
+
/** Filter matches by date and UTC offset, allowed value range: [-12,14] */
|
|
145
|
+
utcOffset?: number;
|
|
146
|
+
/** Filter matches by a tournament group code */
|
|
147
|
+
tournamentGroup?: string;
|
|
148
|
+
/** Filter matches by status types (e.g., 'LIVE', 'FINISHED', 'NOT_STARTED') */
|
|
149
|
+
statusTypes?: MatchStatusType[];
|
|
150
|
+
/** Fetch selected matches for specific date and tournament_group. Defaults to 'ENABLED' */
|
|
151
|
+
selectionFilter?: SelectionFilter;
|
|
152
|
+
/** Filter matches by odd client */
|
|
153
|
+
oddClient?: string;
|
|
154
|
+
/** Type of odds to include. Defaults to 'ALL' */
|
|
155
|
+
oddType?: OddType;
|
|
156
|
+
/** Scope type for odds. Defaults to 'ORDINARY_TIME' */
|
|
157
|
+
scopeType?: ScopeType;
|
|
158
|
+
/** Format of odds */
|
|
159
|
+
oddFormat?: OddFormat;
|
|
160
|
+
/** Market types to include. NOTE: default value is ['1x2'] */
|
|
161
|
+
marketTypes?: MarketType[];
|
|
162
|
+
/** Optional data to include in response (e.g., 'MAIN_EVENTS' for goals, cards, etc.) */
|
|
163
|
+
optionalData?: "MAIN_EVENTS";
|
|
164
|
+
/** Next.js cache options for ISR/on-demand revalidation */
|
|
165
|
+
next?: NextCacheOptions;
|
|
166
|
+
}
|
|
129
167
|
//# sourceMappingURL=option.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/option.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,WAAW,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AAC/D,MAAM,MAAM,UAAU,GAChB,KAAK,GACL,IAAI,GACJ,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,GACb,qBAAqB,GACrB,eAAe,GACf,kBAAkB,GAClB,uBAAuB,GACvB,6BAA6B,GAC7B,wBAAwB,GACxB,6BAA6B,CAAC;AACpC,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,eAAe,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACpC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,mCAAmC;IACnC,YAAY,CAAC,EAAE,M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AC,EAAE,MAAM,EAAE,CAAC;IAGxB,qCAAqC;IACrC,aAAa,CAAC,EAAE,aAAa,CAAC;IAG9B,+CAA+C;IAC/C,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAE/B,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
|
|
1
|
+
{"version":3,"file":"option.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/option.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,WAAW,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AAC/D,MAAM,MAAM,UAAU,GAChB,KAAK,GACL,IAAI,GACJ,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,GACb,qBAAqB,GACrB,eAAe,GACf,kBAAkB,GAClB,uBAAuB,GACvB,6BAA6B,GAC7B,wBAAwB,GACxB,6BAA6B,CAAC;AACpC,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,eAAe,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACpC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,mCA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IAC3B,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAGxB,qCAAqC;IACrC,aAAa,CAAC,EAAE,aAAa,CAAC;IAG9B,+CAA+C;IAC/C,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAE/B,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IACxC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IAChC,2FAA2F;IAC3F,eAAe,CAAC,EAAE,eAAe,CAAC;IAGlC,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAG3B,wFAAwF;IACxF,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
|
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
* API layer for communicating with Sportal365 Sports API.
|
|
5
5
|
* All public functions return canonical FUSports types.
|
|
6
6
|
*/
|
|
7
|
-
export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, getFootballTeam, getFootballTeamSquad, getFootballCompetition, getFootballSeasonDetails, getFootballStandings, getFootballPlayerSeasonStatistics, searchFootball, } from "./football";
|
|
7
|
+
export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, getFootballLivescore, getFootballTeam, getFootballTeamSquad, getFootballCompetition, getFootballSeasonDetails, getFootballStandings, getFootballPlayerSeasonStatistics, searchFootball, } from "./football";
|
|
8
|
+
export { getBasketballLivescore } from "./basketball";
|
|
9
|
+
export { getTennisLivescore } from "./tennis";
|
|
8
10
|
export { search } from "./search";
|
|
9
|
-
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballTeamOptions, GetFootballTeamSquadOptions, GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions, GetFootballStandingsOptions, GetFootballPlayerSeasonStatisticsOptions, GetFootballSearchOptions, SearchEntityType, FootballStandingsExpandOption, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, } from "./football";
|
|
11
|
+
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballLivescoreOptions, GetFootballTeamOptions, GetFootballTeamSquadOptions, GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions, GetFootballStandingsOptions, GetFootballPlayerSeasonStatisticsOptions, GetFootballSearchOptions, SearchEntityType, FootballStandingsExpandOption, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, SelectionFilter, } from "./football";
|
|
10
12
|
export type { GetSportsSearchOptions, SportType, SportsSearchEntityType } from "./search";
|
|
13
|
+
export type { GetBasketballLivescoreOptions, BasketballMatchStatusType } from "./basketball";
|
|
14
|
+
export type { GetTennisLivescoreOptions, TennisMatchStatusType, TennisMatchType, TennisGender } from "./tennis";
|
|
11
15
|
export { getTeamSeasonStatistics } from "./statistics";
|
|
12
16
|
export type { GetTeamSeasonStatisticsOptions } from "./statistics";
|
|
13
17
|
export type { NextCacheOptions } from "./http";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,iCAAiC,EACjC,cAAc,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,+BAA+B,EAC/B,2BAA2B,EAC3B,wCAAwC,EACxC,wBAAwB,EACxB,gBAAgB,EAChB,6BAA6B,EAC7B,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC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AAM,UAAU,wCAA6C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/tennis/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EACR,yBAAyB,EACzB,qBAAqB,EACrB,eAAe,EACf,YAAY,GACf,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tennis matches API functions
|
|
3
|
+
*/
|
|
4
|
+
import type { FUSportsMatch } from "../../../../types/canonical";
|
|
5
|
+
import type { DataLayerConfig } from "../../../../config";
|
|
6
|
+
import type { GetTennisLivescoreOptions } from "./types";
|
|
7
|
+
/**
|
|
8
|
+
* Get tennis livescore data
|
|
9
|
+
*
|
|
10
|
+
* Fetches live and recent tennis matches from the Sportal365 Tennis API.
|
|
11
|
+
* Returns data in canonical FUSportsMatch format.
|
|
12
|
+
*
|
|
13
|
+
* @param options - Optional filters and configuration
|
|
14
|
+
* @param config - Optional data layer configuration
|
|
15
|
+
* @returns Array of tennis matches in canonical format
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* // Get all live tennis matches
|
|
20
|
+
* const liveMatches = await getTennisLivescore({
|
|
21
|
+
* statusType: ['LIVE']
|
|
22
|
+
* });
|
|
23
|
+
*
|
|
24
|
+
* // Get singles matches for a specific date
|
|
25
|
+
* const matches = await getTennisLivescore({
|
|
26
|
+
* date: '2024-01-15',
|
|
27
|
+
* type: 'SINGLE',
|
|
28
|
+
* gender: 'MALE'
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function getTennisLivescore(options?: GetTennisLivescoreOptions, config?: DataLayerConfig): Promise<FUSportsMatch[]>;
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/tennis/matches/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,KAAK,EAAkB,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAGzE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,kBAAkB,CACpC,OAAO,CAAC,EAAE,yBAAyB,EACnC,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,aAAa,EAAE,CAAC,CA4B1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tennis match transformation utilities
|
|
3
|
+
* Transforms raw Tennis API match responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsMatch } from "../../../../../types/canonical";
|
|
6
|
+
import type { RawTennisMatch } from "../types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw tennis match response to canonical FUSportsMatch
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformTennisMatch(raw: RawTennisMatch): FUSportsMatch;
|
|
11
|
+
//# sourceMappingURL=match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/tennis/matches/transformers/match.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,aAAa,EAUhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAwB,MAAM,UAAU,CAAC;AAiMrE;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,aAAa,CA2CvE"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tennis match types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
import type { NextCacheOptions } from "../../http";
|
|
5
|
+
export interface RawTennisCountry {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
entity_type: string;
|
|
10
|
+
}
|
|
11
|
+
export interface RawTennisPlayer {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
country?: RawTennisCountry;
|
|
15
|
+
gender?: string;
|
|
16
|
+
entity_type: string;
|
|
17
|
+
short_name?: string;
|
|
18
|
+
three_letter_code?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface RawTennisTeam {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
country?: RawTennisCountry;
|
|
24
|
+
gender?: string;
|
|
25
|
+
slug?: string;
|
|
26
|
+
entity_type: string;
|
|
27
|
+
short_name?: string;
|
|
28
|
+
three_letter_code?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface RawTennisParticipantProfile {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
country?: RawTennisCountry;
|
|
34
|
+
gender?: string;
|
|
35
|
+
entity_type: string;
|
|
36
|
+
short_name?: string;
|
|
37
|
+
three_letter_code?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface RawTennisParticipant {
|
|
40
|
+
id: string;
|
|
41
|
+
type: "TEAM" | "PLAYER" | "TEAM_DOUBLE";
|
|
42
|
+
name: string;
|
|
43
|
+
position: number;
|
|
44
|
+
winner?: "YES" | "NO" | "NOT_AVAILABLE";
|
|
45
|
+
details?: RawTennisParticipantProfile[];
|
|
46
|
+
short_name?: string;
|
|
47
|
+
three_letter_code?: string;
|
|
48
|
+
entity_type: string;
|
|
49
|
+
current_server?: "NOT_AVAILABLE" | "YES" | "NO";
|
|
50
|
+
}
|
|
51
|
+
export interface RawTennisStatus {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
type: "NOT_STARTED" | "LIVE" | "FINISHED" | "CANCELLED" | "INTERRUPTED" | "POSTPONED";
|
|
55
|
+
entity_type: string;
|
|
56
|
+
short_name?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface RawTennisResultType {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
code: string;
|
|
62
|
+
entity_type: string;
|
|
63
|
+
short_name?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface RawTennisResultValue {
|
|
66
|
+
position: string;
|
|
67
|
+
value: string;
|
|
68
|
+
winner?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface RawTennisResult {
|
|
71
|
+
type: RawTennisResultType;
|
|
72
|
+
values: RawTennisResultValue[];
|
|
73
|
+
tiebreak_values?: RawTennisResultValue[];
|
|
74
|
+
}
|
|
75
|
+
export interface RawTennisRound {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
uuid: string;
|
|
79
|
+
entity_type: string;
|
|
80
|
+
}
|
|
81
|
+
export interface RawTennisCompetition {
|
|
82
|
+
id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
slug: string;
|
|
85
|
+
entity_type: string;
|
|
86
|
+
}
|
|
87
|
+
export interface RawTennisTournament {
|
|
88
|
+
id: string;
|
|
89
|
+
name: string;
|
|
90
|
+
slug: string;
|
|
91
|
+
competition?: RawTennisCompetition;
|
|
92
|
+
country?: RawTennisCountry;
|
|
93
|
+
surface?: "CARPET" | "GRASS" | "CLAY" | "UNKNOWN" | "HARD";
|
|
94
|
+
gender?: string;
|
|
95
|
+
season_year?: string;
|
|
96
|
+
start_date?: string;
|
|
97
|
+
end_date?: string;
|
|
98
|
+
entity_type: string;
|
|
99
|
+
indoor_outdoor?: "INDOOR" | "OUTDOOR";
|
|
100
|
+
}
|
|
101
|
+
export interface RawTennisCoverage {
|
|
102
|
+
type: "LIVE" | "NOT_LIVE" | "UNKNOWN";
|
|
103
|
+
game_points?: "AVAILABLE" | "NOT_AVAILABLE" | "UNKNOWN";
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Full match response from /matches/livescore endpoint
|
|
107
|
+
*/
|
|
108
|
+
export interface RawTennisMatch {
|
|
109
|
+
id: string;
|
|
110
|
+
slug: string;
|
|
111
|
+
status: RawTennisStatus;
|
|
112
|
+
round?: RawTennisRound;
|
|
113
|
+
tournament?: RawTennisTournament;
|
|
114
|
+
participants: RawTennisParticipant[];
|
|
115
|
+
results?: RawTennisResult[];
|
|
116
|
+
coverage?: RawTennisCoverage;
|
|
117
|
+
gender?: string;
|
|
118
|
+
type: "SINGLE" | "DOUBLE" | "TEAM" | "UNKNOWN";
|
|
119
|
+
scheduled_start_time: string;
|
|
120
|
+
started_at?: string;
|
|
121
|
+
finished_at?: string;
|
|
122
|
+
best_of_sets?: number;
|
|
123
|
+
entity_type: string;
|
|
124
|
+
odds?: unknown[];
|
|
125
|
+
}
|
|
126
|
+
export type TennisMatchStatusType = "NOT_STARTED" | "LIVE" | "FINISHED" | "CANCELLED" | "INTERRUPTED" | "POSTPONED";
|
|
127
|
+
export type TennisMatchType = "SINGLE" | "DOUBLE" | "TEAM";
|
|
128
|
+
export type TennisGender = "MALE" | "FEMALE" | "MIXED";
|
|
129
|
+
export interface GetTennisLivescoreOptions {
|
|
130
|
+
/** Language code for translations (e.g., 'en', 'bg') */
|
|
131
|
+
languageCode?: string;
|
|
132
|
+
/** Filter matches by date (ISO 8601 format) */
|
|
133
|
+
date?: string;
|
|
134
|
+
/** UTC offset for date filtering */
|
|
135
|
+
utcOffset?: number;
|
|
136
|
+
/** Filter by match type */
|
|
137
|
+
type?: TennisMatchType;
|
|
138
|
+
/** Filter by gender */
|
|
139
|
+
gender?: TennisGender;
|
|
140
|
+
/** Filter by status types */
|
|
141
|
+
statusType?: TennisMatchStatusType[];
|
|
142
|
+
/** Filter by competition list */
|
|
143
|
+
competitionList?: string;
|
|
144
|
+
/** Odd client code */
|
|
145
|
+
oddClient?: string;
|
|
146
|
+
/** Odd type */
|
|
147
|
+
oddType?: "LIVE" | "PRE_EVENT" | "ALL";
|
|
148
|
+
/** Market types for odds */
|
|
149
|
+
marketTypes?: string[];
|
|
150
|
+
/** Next.js cache options */
|
|
151
|
+
next?: NextCacheOptions;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=types.d.ts.map
|