fansunited-data-layer 0.0.1 → 0.0.2
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 +145 -60
- package/dist/api/sportal365-sports/football/index.d.ts +11 -0
- package/dist/api/sportal365-sports/football/index.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/index.d.ts +109 -0
- package/dist/api/sportal365-sports/football/matches/index.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/transformers/commentary.d.ts +12 -0
- package/dist/api/sportal365-sports/football/matches/transformers/commentary.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/transformers/index.d.ts +10 -0
- package/dist/api/sportal365-sports/football/matches/transformers/index.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/transformers/lineup.d.ts +11 -0
- package/dist/api/sportal365-sports/football/matches/transformers/lineup.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/transformers/match-event.d.ts +12 -0
- package/dist/api/sportal365-sports/football/matches/transformers/match-event.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/transformers/match.d.ts +11 -0
- package/dist/api/sportal365-sports/football/matches/transformers/match.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/transformers/odds.d.ts +11 -0
- package/dist/api/sportal365-sports/football/matches/transformers/odds.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/transformers/statistics.d.ts +11 -0
- package/dist/api/sportal365-sports/football/matches/transformers/statistics.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/commentary.types.d.ts +24 -0
- package/dist/api/sportal365-sports/football/matches/types/commentary.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/event.types.d.ts +19 -0
- package/dist/api/sportal365-sports/football/matches/types/event.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/index.d.ts +16 -0
- package/dist/api/sportal365-sports/football/matches/types/index.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/lineup.types.d.ts +78 -0
- package/dist/api/sportal365-sports/football/matches/types/lineup.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/match.types.d.ts +47 -0
- package/dist/api/sportal365-sports/football/matches/types/match.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/minute.types.d.ts +8 -0
- package/dist/api/sportal365-sports/football/matches/types/minute.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/odds.types.d.ts +80 -0
- package/dist/api/sportal365-sports/football/matches/types/odds.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/option.types.d.ts +55 -0
- package/dist/api/sportal365-sports/football/matches/types/option.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/referee.types.d.ts +13 -0
- package/dist/api/sportal365-sports/football/matches/types/referee.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/statistics.types.d.ts +45 -0
- package/dist/api/sportal365-sports/football/matches/types/statistics.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/status.types.d.ts +13 -0
- package/dist/api/sportal365-sports/football/matches/types/status.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/team.types.d.ts +17 -0
- package/dist/api/sportal365-sports/football/matches/types/team.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/matches/types/winner.types.d.ts +15 -0
- package/dist/api/sportal365-sports/football/matches/types/winner.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/teams/index.d.ts +25 -0
- package/dist/api/sportal365-sports/football/teams/index.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/teams/team.types.d.ts +55 -0
- package/dist/api/sportal365-sports/football/teams/team.types.d.ts.map +1 -0
- package/dist/api/sportal365-sports/football/teams/utils.d.ts +11 -0
- package/dist/api/sportal365-sports/football/teams/utils.d.ts.map +1 -0
- package/dist/api/sportal365-sports/http.d.ts +24 -0
- package/dist/api/sportal365-sports/http.d.ts.map +1 -0
- package/dist/api/sportal365-sports/index.d.ts +9 -0
- package/dist/api/sportal365-sports/index.d.ts.map +1 -0
- package/dist/api/sportal365-sports/shared/index.d.ts +5 -0
- package/dist/api/sportal365-sports/shared/index.d.ts.map +1 -0
- package/dist/api/sportal365-sports/shared/types.d.ts +189 -0
- package/dist/api/sportal365-sports/shared/types.d.ts.map +1 -0
- package/dist/config/index.d.ts +31 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/types.d.ts +34 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/fansunited-data-layer.js +1 -1
- package/dist/fansunited-data-layer.umd.cjs +1 -1
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/types/canonical/base.types.d.ts +134 -0
- package/dist/types/canonical/base.types.d.ts.map +1 -0
- package/dist/types/canonical/commentary.types.d.ts +42 -0
- package/dist/types/canonical/commentary.types.d.ts.map +1 -0
- package/dist/types/canonical/event.types.d.ts +31 -0
- package/dist/types/canonical/event.types.d.ts.map +1 -0
- package/dist/types/canonical/index.d.ts +14 -0
- package/dist/types/canonical/index.d.ts.map +1 -0
- package/dist/types/canonical/lineup.types.d.ts +33 -0
- package/dist/types/canonical/lineup.types.d.ts.map +1 -0
- package/dist/types/canonical/match.types.d.ts +139 -0
- package/dist/types/canonical/match.types.d.ts.map +1 -0
- package/dist/types/canonical/odds.types.d.ts +73 -0
- package/dist/types/canonical/odds.types.d.ts.map +1 -0
- package/dist/types/canonical/standing.types.d.ts +57 -0
- package/dist/types/canonical/standing.types.d.ts.map +1 -0
- package/dist/types/canonical/statistics.types.d.ts +27 -0
- package/dist/types/canonical/statistics.types.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core match types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
import type { RawMatchVenue, RawSeason, RawStage, 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;IACb,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACjC,KAAK,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,UAAU,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7B,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,4BAA4B,CAAC;CAChD;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,UAAU,EAAE,gBAAgB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC;IAC3B,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match options types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
export type OddType = "LIVE" | "PRE_EVENT" | "ALL";
|
|
5
|
+
export type ScopeType = "ORDINARY_TIME" | "FULL_TIME";
|
|
6
|
+
export type OddFormat = "FRACTIONAL" | "DECIMAL" | "MONEYLINE";
|
|
7
|
+
export type MarketType = "1x2" | "12" | "OVER_UNDER" | "DOUBLE_CHANCE" | "BOTH_TO_SCORE" | "DRAW_NO_BET" | "FIRST_TEAM_TO_SCORE" | "CORRECT_SCORE" | "FIRST_HALF_GOALS" | "FIRST_PLAYER_TO_SCORE" | "PLAYER_TO_SCORE_DURING_GAME" | "PLAYER_TO_RECEIVE_CARD" | "FIRST_HALF_AND_FINAL_RESULT";
|
|
8
|
+
export type OptionalMatchData = "MAIN_EVENTS" | "LINEUP_STATUS";
|
|
9
|
+
export interface GetFootballMatchOptions {
|
|
10
|
+
/** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
|
|
11
|
+
languageCode?: string;
|
|
12
|
+
/** Filter matches by odd client */
|
|
13
|
+
oddClient?: string;
|
|
14
|
+
/** Type of odds to include. Defaults to 'ALL' */
|
|
15
|
+
oddType?: OddType;
|
|
16
|
+
/** Scope type for odds. Defaults to 'ORDINARY_TIME' */
|
|
17
|
+
scopeType?: ScopeType;
|
|
18
|
+
/** Format of odds */
|
|
19
|
+
oddFormat?: OddFormat;
|
|
20
|
+
/** Market types to include */
|
|
21
|
+
marketTypes?: MarketType[];
|
|
22
|
+
/** Optional data to include in response */
|
|
23
|
+
optionalData?: OptionalMatchData[];
|
|
24
|
+
/** Filter odds by bookmaker IDs */
|
|
25
|
+
bookmakerIds?: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface GetFootballMatchEventsOptions {
|
|
28
|
+
/** Language code for translations. Defaults to 'en' */
|
|
29
|
+
languageCode?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GetFootballMatchLineupsOptions {
|
|
32
|
+
/** Language code for translations. Defaults to 'en' */
|
|
33
|
+
languageCode?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface GetFootballMatchOddsOptions {
|
|
36
|
+
/** Language code for translations. Defaults to 'en' */
|
|
37
|
+
languageCode?: string;
|
|
38
|
+
/** Filter by odd client */
|
|
39
|
+
oddClient?: string;
|
|
40
|
+
/** Type of odds to include */
|
|
41
|
+
oddType?: OddType;
|
|
42
|
+
/** Scope type for odds */
|
|
43
|
+
scopeType?: ScopeType;
|
|
44
|
+
/** Format of odds */
|
|
45
|
+
oddFormat?: OddFormat;
|
|
46
|
+
/** Market types to include */
|
|
47
|
+
marketTypes?: MarketType[];
|
|
48
|
+
/** Filter odds by bookmaker IDs */
|
|
49
|
+
bookmakerIds?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface GetFootballMatchStatisticsOptions {
|
|
52
|
+
/** Language code for translations. Defaults to 'en' */
|
|
53
|
+
languageCode?: string;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=option.types.d.ts.map
|
|
@@ -0,0 +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,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,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,6BAA6B;IAC1C,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,8BAA8B;IAC3C,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,2BAA2B;IACxC,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAC9C,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match referee types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
import type { RawAssets } from "../../../shared/types";
|
|
5
|
+
export interface RawMatchReferee {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
role?: "REFEREE";
|
|
10
|
+
gender?: "MALE" | "FEMALE";
|
|
11
|
+
assets?: RawAssets | null;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=referee.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referee.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/referee.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC7B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team statistics types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Statistics object nested inside each team's data
|
|
6
|
+
*/
|
|
7
|
+
export interface RawStatisticsData {
|
|
8
|
+
pass?: number;
|
|
9
|
+
possession?: number;
|
|
10
|
+
goals?: number;
|
|
11
|
+
corners?: number;
|
|
12
|
+
crosses?: number;
|
|
13
|
+
offside?: number;
|
|
14
|
+
shots_on?: number;
|
|
15
|
+
shots_blocked?: number;
|
|
16
|
+
shots_off?: number;
|
|
17
|
+
throw_in?: number;
|
|
18
|
+
goal_kicks?: number;
|
|
19
|
+
treatments?: number;
|
|
20
|
+
yellow_cards?: number;
|
|
21
|
+
substitutions?: number;
|
|
22
|
+
counter_attacks?: number;
|
|
23
|
+
fouls_committed?: number;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Single team statistics entry from the API array
|
|
28
|
+
*/
|
|
29
|
+
export interface RawTeamStatisticsEntry {
|
|
30
|
+
team: {
|
|
31
|
+
id: number | string;
|
|
32
|
+
name: string;
|
|
33
|
+
slug?: string;
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
home_team: boolean;
|
|
37
|
+
statistics: RawStatisticsData;
|
|
38
|
+
event_id: number;
|
|
39
|
+
[key: string]: unknown;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The API returns an array of team statistics entries
|
|
43
|
+
*/
|
|
44
|
+
export type RawMatchStatisticsResponse = RawTeamStatisticsEntry[];
|
|
45
|
+
//# sourceMappingURL=statistics.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/statistics.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE;QACF,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAC1B,CAAC;IACF,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match status types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
export type RawMatchStatusType = "FINISHED" | "NOT_STARTED" | "LIVE" | "INTERRUPTED" | "CANCELLED" | "UNKNOWN" | "POSTPONED";
|
|
5
|
+
export interface RawMatchStatus {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
short_name: string;
|
|
9
|
+
type: RawMatchStatusType;
|
|
10
|
+
code?: string;
|
|
11
|
+
uuid?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=status.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/status.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,kBAAkB,GACxB,UAAU,GACV,aAAa,GACb,MAAM,GACN,aAAa,GACb,WAAW,GACX,SAAS,GACT,WAAW,CAAC;AAElB,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match team types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
import type { RawAssets } from "../../../shared/types";
|
|
5
|
+
export interface RawMatchTeam {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
three_letter_code?: string;
|
|
10
|
+
gender?: string;
|
|
11
|
+
short_name?: string | null;
|
|
12
|
+
type?: "placeholder" | "national" | "club";
|
|
13
|
+
shirt_color?: string;
|
|
14
|
+
assets?: RawAssets | null;
|
|
15
|
+
uuid?: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=team.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/team.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,MAAM,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Match winner types for Sportal365 Sports API
|
|
3
|
+
*/
|
|
4
|
+
export interface RawMatchWinnerReason {
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface RawMatchOrAggregateWinner {
|
|
8
|
+
id: string;
|
|
9
|
+
reason?: RawMatchWinnerReason;
|
|
10
|
+
}
|
|
11
|
+
export interface RawMatchWinner {
|
|
12
|
+
match?: RawMatchOrAggregateWinner;
|
|
13
|
+
aggregate?: RawMatchOrAggregateWinner;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=winner.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"winner.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/winner.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACzC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sportal365 Sports API - Football Teams
|
|
3
|
+
*
|
|
4
|
+
* Fetches team data and transforms to canonical FUSports types.
|
|
5
|
+
*/
|
|
6
|
+
import type { FUSportsCompetitor } from "../../../../types/canonical";
|
|
7
|
+
import type { GetFootballTeamOptions } from "./team.types";
|
|
8
|
+
export type { GetFootballTeamOptions } from "./team.types";
|
|
9
|
+
/**
|
|
10
|
+
* Get a football team by ID, UUID, or slug
|
|
11
|
+
*
|
|
12
|
+
* Always fetches with `optional_data=form` to include recent match form.
|
|
13
|
+
*
|
|
14
|
+
* @param teamId - The team ID, UUID, or slug
|
|
15
|
+
* @param options - Optional parameters
|
|
16
|
+
* @returns Canonical FUSportsCompetitor
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const team = await getFootballTeam('102');
|
|
21
|
+
* console.log(team.name); // "Manchester United"
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function getFootballTeam(teamId: string, options?: GetFootballTeamOptions): Promise<FUSportsCompetitor>;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/teams/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,OAAO,KAAK,EAAkB,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAI3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CACjC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B,GACrC,OAAO,CAAC,kBAAkB,CAAC,CAY7B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team-specific types for Sportal365 Sports API
|
|
3
|
+
* Types specific to team entities and team profile responses
|
|
4
|
+
*/
|
|
5
|
+
import type { RawAssets, RawCountry, RawVenue, RawSeason, RawFormMatch } from "../../shared/types";
|
|
6
|
+
export interface RawTeamSocial {
|
|
7
|
+
web?: string;
|
|
8
|
+
twitter_id?: string;
|
|
9
|
+
facebook_id?: string;
|
|
10
|
+
instagram_id?: string;
|
|
11
|
+
wikipedia_id?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RawCoach {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
country: RawCountry;
|
|
18
|
+
birthdate: string;
|
|
19
|
+
gender: "MALE" | "FEMALE";
|
|
20
|
+
assets: RawAssets | null;
|
|
21
|
+
uuid: string;
|
|
22
|
+
}
|
|
23
|
+
export interface RawShirtColor {
|
|
24
|
+
type: "home" | "away";
|
|
25
|
+
color_code: string;
|
|
26
|
+
}
|
|
27
|
+
export interface GetFootballTeamOptions {
|
|
28
|
+
/** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
|
|
29
|
+
languageCode?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Full team profile response from /v2/teams/{id}?optional_data=form
|
|
33
|
+
*/
|
|
34
|
+
export interface RawTeamProfile {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
slug: string;
|
|
38
|
+
three_letter_code: string;
|
|
39
|
+
short_name: string | null;
|
|
40
|
+
type: "club" | "national" | "placeholder";
|
|
41
|
+
founded: number;
|
|
42
|
+
country: RawCountry;
|
|
43
|
+
venue: RawVenue;
|
|
44
|
+
social: RawTeamSocial;
|
|
45
|
+
coach: RawCoach | null;
|
|
46
|
+
president: unknown | null;
|
|
47
|
+
gender: "MALE" | "FEMALE";
|
|
48
|
+
active_seasons: RawSeason[];
|
|
49
|
+
assets: RawAssets;
|
|
50
|
+
shirt_colors: RawShirtColor[];
|
|
51
|
+
uuid: string;
|
|
52
|
+
current_season: RawSeason;
|
|
53
|
+
form: RawFormMatch[];
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=team.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/teams/team.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMnG,MAAM,WAAW,aAAa;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,MAAM,WAAW,sBAAsB;IACnC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAMD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,SAAS,CAAC;IAC1B,IAAI,EAAE,YAAY,EAAE,CAAC;CACxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team transformation utilities
|
|
3
|
+
* Transforms raw API responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsCompetitor } from "../../../../types/canonical";
|
|
6
|
+
import type { RawTeamProfile } from "./team.types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw team profile to canonical FUSportsCompetitor
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformTeam(raw: RawTeamProfile): FUSportsCompetitor;
|
|
11
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/teams/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,kBAAkB,CA0BrE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sportal365 Sports API - HTTP client
|
|
3
|
+
* Shared HTTP layer for all Sportal365 Sports API requests
|
|
4
|
+
*/
|
|
5
|
+
export interface RequestOptions {
|
|
6
|
+
/** API path (e.g., '/v2/matches/123') */
|
|
7
|
+
path: string;
|
|
8
|
+
/** Query parameters */
|
|
9
|
+
params?: Record<string, string | string[] | undefined>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Make a GET request to the Sportal365 Sports API
|
|
13
|
+
*
|
|
14
|
+
* Handles:
|
|
15
|
+
* - Authentication (Basic Auth)
|
|
16
|
+
* - Project ID header
|
|
17
|
+
* - Timeout
|
|
18
|
+
* - Error handling
|
|
19
|
+
*
|
|
20
|
+
* @param options - Request options
|
|
21
|
+
* @returns Parsed JSON response
|
|
22
|
+
*/
|
|
23
|
+
export declare function get<T>(options: RequestOptions): Promise<T>;
|
|
24
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/http.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4BH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;CACxD;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,CA2ChE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sportal365 Sports API
|
|
3
|
+
*
|
|
4
|
+
* API layer for communicating with Sportal365 Sports API.
|
|
5
|
+
* All public functions return canonical FUSports types.
|
|
6
|
+
*/
|
|
7
|
+
export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballTeam, } from "./football";
|
|
8
|
+
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballTeamOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, } from "./football";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,eAAe,GAClB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,sBAAsB,EACtB,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,GACpB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/shared/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC"}
|