fansunited-data-layer 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/fansunited-sdk/odds/matches.d.ts.map +1 -1
- 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/statistics/index.d.ts +46 -1
- package/api/sportal365-sports/football/statistics/index.d.ts.map +1 -1
- package/api/sportal365-sports/football/statistics/player-career.transformer.d.ts +11 -0
- package/api/sportal365-sports/football/statistics/player-career.transformer.d.ts.map +1 -0
- package/api/sportal365-sports/football/statistics/player-career.types.d.ts +115 -0
- package/api/sportal365-sports/football/statistics/player-career.types.d.ts.map +1 -0
- package/api/sportal365-sports/football/statistics/player-recent.transformer.d.ts +11 -0
- package/api/sportal365-sports/football/statistics/player-recent.transformer.d.ts.map +1 -0
- package/api/sportal365-sports/football/statistics/player-recent.types.d.ts +31 -0
- package/api/sportal365-sports/football/statistics/player-recent.types.d.ts.map +1 -0
- package/api/sportal365-sports/index.d.ts +2 -2
- package/api/sportal365-sports/index.d.ts.map +1 -1
- package/api/sportal365-sports/shared/odds.transformer.d.ts.map +1 -1
- package/client.cjs +1 -1
- package/client.js +2 -2
- package/fansunited-data-layer.cjs +1 -1
- package/fansunited-data-layer.js +15 -13
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/{matches-CmJlbloT.js → matches-BvHU-bP0.js} +723 -559
- package/matches-Ci0Ci_Mw.cjs +1 -0
- package/package.json +1 -1
- package/types/canonical/index.d.ts +1 -1
- package/types/canonical/index.d.ts.map +1 -1
- package/types/canonical/odds.types.d.ts +1 -0
- package/types/canonical/odds.types.d.ts.map +1 -1
- package/types/canonical/statistics.types.d.ts +102 -0
- package/types/canonical/statistics.types.d.ts.map +1 -1
- package/matches-B4GkQKDb.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matches.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/fansunited-sdk/odds/matches.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,kBAAkB,MAAM,0DAA0D,CAAC;AAC/F,OAAO,KAAK,EAAE,sBAAsB,EAA+B,MAAM,0BAA0B,CAAC;AACpG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,4DAA4D;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK,CAAC;IACvC,mDAAmD;IACnD,SAAS,CAAC,EAAE,eAAe,GAAG,WAAW,CAAC;IAC1C,wCAAwC;IACxC,SAAS,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;CACtD;
|
|
1
|
+
{"version":3,"file":"matches.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/fansunited-sdk/odds/matches.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,kBAAkB,MAAM,0DAA0D,CAAC;AAC/F,OAAO,KAAK,EAAE,sBAAsB,EAA+B,MAAM,0BAA0B,CAAC;AACpG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,4DAA4D;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK,CAAC;IACvC,mDAAmD;IACnD,SAAS,CAAC,EAAE,eAAe,GAAG,WAAW,CAAC;IAC1C,wCAAwC;IACxC,SAAS,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;CACtD;AA+ID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,iBAAiB,CACnC,GAAG,EAAE,kBAAkB,EACvB,QAAQ,EAAE,MAAM,EAAE,EAClB,OAAO,CAAC,EAAE,wBAAwB,GACnC,OAAO,CAAC,sBAAsB,CAAC,CAuBjC"}
|
|
@@ -12,8 +12,8 @@ export { getFootballCompetition, getFootballSeasonDetails } from "./competitions
|
|
|
12
12
|
export type { GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions } from "./competitions";
|
|
13
13
|
export { getFootballStandings } from "./standings";
|
|
14
14
|
export type { GetFootballStandingsOptions, FootballStandingsExpandOption } from "./standings";
|
|
15
|
-
export { getFootballPlayerSeasonStatistics, getFootballPlayerSeasonStatisticsByPlayerIds } from "./statistics";
|
|
16
|
-
export type { GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions } from "./statistics";
|
|
15
|
+
export { getFootballPlayerSeasonStatistics, getFootballPlayerSeasonStatisticsByPlayerIds, getFootballPlayerCareerStatistics, getFootballPlayerRecentStatistics } from "./statistics";
|
|
16
|
+
export type { GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions, GetFootballPlayerCareerStatisticsOptions, GetFootballPlayerRecentStatisticsOptions } from "./statistics";
|
|
17
17
|
export { searchFootball } from "./search";
|
|
18
18
|
export type { GetFootballSearchOptions, SearchEntityType } from "./search";
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,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,4CAA4C,EAAE,MAAM,cAAc,CAAC;
|
|
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,4CAA4C,EAAE,iCAAiC,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AACrL,YAAY,EAAE,wCAAwC,EAAE,mDAAmD,EAAE,wCAAwC,EAAE,wCAAwC,EAAE,MAAM,cAAc,CAAC;AAGtN,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Fetches player statistics and transforms to canonical FUSports types.
|
|
5
5
|
*/
|
|
6
|
-
import type { FUSportsPlayerSeasonStatistics } from "../../../../types/canonical";
|
|
6
|
+
import type { FUSportsPlayerSeasonStatistics, FUSportsPlayerCareerStatistics, FUSportsPlayerRecentStatistics } from "../../../../types/canonical";
|
|
7
7
|
import { type DataLayerConfig } from "../../../../config";
|
|
8
8
|
import type { GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions } from "./player-season.types";
|
|
9
|
+
import type { GetFootballPlayerCareerStatisticsOptions } from "./player-career.types";
|
|
10
|
+
import type { GetFootballPlayerRecentStatisticsOptions } from "./player-recent.types";
|
|
9
11
|
export type { GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions, } from "./player-season.types";
|
|
12
|
+
export type { GetFootballPlayerCareerStatisticsOptions } from "./player-career.types";
|
|
13
|
+
export type { GetFootballPlayerRecentStatisticsOptions } from "./player-recent.types";
|
|
10
14
|
/**
|
|
11
15
|
* Get player season statistics for a team
|
|
12
16
|
*
|
|
@@ -59,4 +63,45 @@ export declare function getFootballPlayerSeasonStatistics(options: GetFootballPl
|
|
|
59
63
|
* ```
|
|
60
64
|
*/
|
|
61
65
|
export declare function getFootballPlayerSeasonStatisticsByPlayerIds(options: GetFootballPlayerSeasonStatisticsByPlayerIdsOptions, config?: DataLayerConfig): Promise<Record<string, FUSportsPlayerSeasonStatistics>>;
|
|
66
|
+
/**
|
|
67
|
+
* Get a player's career statistics across all tournaments and teams
|
|
68
|
+
*
|
|
69
|
+
* Fetches statistics throughout a player's entire career, broken down by
|
|
70
|
+
* tournament season and team.
|
|
71
|
+
*
|
|
72
|
+
* @param options - Required parameters (playerId)
|
|
73
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
74
|
+
* @returns Player career statistics with per-season-per-team entries
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```typescript
|
|
78
|
+
* const career = await getFootballPlayerCareerStatistics({
|
|
79
|
+
* playerId: '3400' // or slug: 'cristiano-ronaldo-3400'
|
|
80
|
+
* });
|
|
81
|
+
* console.log(career.playerName); // "Cristiano Ronaldo"
|
|
82
|
+
* console.log(career.entries[0].goals); // Goals in first entry
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export declare function getFootballPlayerCareerStatistics(options: GetFootballPlayerCareerStatisticsOptions, config?: DataLayerConfig): Promise<FUSportsPlayerCareerStatistics>;
|
|
86
|
+
/**
|
|
87
|
+
* Get a player's recent statistics from their last N matches
|
|
88
|
+
*
|
|
89
|
+
* Fetches aggregated statistics and match details for a player's most recent matches.
|
|
90
|
+
* Optionally filter by tournament or team.
|
|
91
|
+
*
|
|
92
|
+
* @param options - Required parameters (playerId), optional filters (matches, tournamentIds, teamId)
|
|
93
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
94
|
+
* @returns Player recent statistics with matches and aggregated stats
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const recent = await getFootballPlayerRecentStatistics({
|
|
99
|
+
* playerId: '3400',
|
|
100
|
+
* matches: 5
|
|
101
|
+
* });
|
|
102
|
+
* console.log(recent.goals); // Goals in last 5 matches
|
|
103
|
+
* console.log(recent.matches.length); // 5
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
export declare function getFootballPlayerRecentStatistics(options: GetFootballPlayerRecentStatisticsOptions, config?: DataLayerConfig): Promise<FUSportsPlayerRecentStatistics>;
|
|
62
107
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClJ,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAER,wCAAwC,EACxC,mDAAmD,EACtD,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EAER,wCAAwC,EAC3C,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAER,wCAAwC,EAC3C,MAAM,uBAAuB,CAAC;AAI/B,YAAY,EACR,wCAAwC,EACxC,mDAAmD,GACtD,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,wCAAwC,EAAE,MAAM,uBAAuB,CAAC;AAEtF,YAAY,EAAE,wCAAwC,EAAE,MAAM,uBAAuB,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,iCAAiC,CACnD,OAAO,EAAE,wCAAwC,EACjD,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC,CA6DzD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,4CAA4C,CAC9D,OAAO,EAAE,mDAAmD,EAC5D,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC,CAoDzD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,iCAAiC,CACnD,OAAO,EAAE,wCAAwC,EACjD,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,8BAA8B,CAAC,CA4BzC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,iCAAiC,CACnD,OAAO,EAAE,wCAAwC,EACjD,MAAM,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,8BAA8B,CAAC,CAwCzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Player career statistics transformation utilities
|
|
3
|
+
* Transforms raw /players/{id}/statistics responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsPlayerCareerStatistics } from "../../../../types/canonical";
|
|
6
|
+
import type { RawPlayerCareerStatisticsResponse } from "./player-career.types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw player career statistics response to canonical FUSportsPlayerCareerStatistics
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformPlayerCareerStatistics(raw: RawPlayerCareerStatisticsResponse): FUSportsPlayerCareerStatistics;
|
|
11
|
+
//# sourceMappingURL=player-career.transformer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player-career.transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/player-career.transformer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,8BAA8B,EAEjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAER,iCAAiC,EACpC,MAAM,uBAAuB,CAAC;AAgF/B;;GAEG;AACH,wBAAgB,+BAA+B,CAC3C,GAAG,EAAE,iCAAiC,GACvC,8BAA8B,CAUhC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Player career statistics types for Sportal365 Sports API
|
|
3
|
+
* Endpoint: /players/{id}/statistics
|
|
4
|
+
*/
|
|
5
|
+
import type { NextCacheOptions } from "../../http";
|
|
6
|
+
export interface GetFootballPlayerCareerStatisticsOptions {
|
|
7
|
+
/** Player ID or slug */
|
|
8
|
+
playerId: string;
|
|
9
|
+
/** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
|
|
10
|
+
languageCode?: string;
|
|
11
|
+
/** Next.js cache options for ISR/on-demand revalidation */
|
|
12
|
+
next?: NextCacheOptions;
|
|
13
|
+
}
|
|
14
|
+
export interface RawCareerCountry {
|
|
15
|
+
id: number;
|
|
16
|
+
name: string;
|
|
17
|
+
slug: string;
|
|
18
|
+
uuid: string;
|
|
19
|
+
url_flag?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface RawCareerTournament {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
slug: string;
|
|
25
|
+
country: RawCareerCountry;
|
|
26
|
+
regional_league: boolean;
|
|
27
|
+
gender: string;
|
|
28
|
+
type: string;
|
|
29
|
+
region: string;
|
|
30
|
+
uuid: string;
|
|
31
|
+
url_logo?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface RawCareerTournamentSeason {
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
slug: string;
|
|
37
|
+
active: boolean;
|
|
38
|
+
uuid: string;
|
|
39
|
+
tournament: RawCareerTournament;
|
|
40
|
+
}
|
|
41
|
+
export interface RawCareerPlayerSocial {
|
|
42
|
+
web?: string;
|
|
43
|
+
twitter_id?: string;
|
|
44
|
+
facebook_id?: string;
|
|
45
|
+
instagram_id?: string;
|
|
46
|
+
wikipedia_id?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface RawCareerPlayer {
|
|
49
|
+
id: number;
|
|
50
|
+
name: string;
|
|
51
|
+
slug: string;
|
|
52
|
+
country: RawCareerCountry;
|
|
53
|
+
gender: string;
|
|
54
|
+
uuid: string;
|
|
55
|
+
url_thumb?: string;
|
|
56
|
+
url_image?: string;
|
|
57
|
+
url_thumb_transparent_background?: string;
|
|
58
|
+
birthdate?: string;
|
|
59
|
+
active: boolean;
|
|
60
|
+
position: string;
|
|
61
|
+
height?: string;
|
|
62
|
+
weight?: string;
|
|
63
|
+
social?: RawCareerPlayerSocial;
|
|
64
|
+
}
|
|
65
|
+
export interface RawCareerTeam {
|
|
66
|
+
id: number;
|
|
67
|
+
name: string;
|
|
68
|
+
slug: string;
|
|
69
|
+
three_letter_code: string;
|
|
70
|
+
type: string;
|
|
71
|
+
gender: string;
|
|
72
|
+
short_name: string | null;
|
|
73
|
+
uuid: string;
|
|
74
|
+
url_logo?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Single entry in the player career statistics response.
|
|
78
|
+
* Statistics are flat properties on the entry (not nested in a statistics array).
|
|
79
|
+
*/
|
|
80
|
+
export interface RawPlayerCareerStatisticsEntry {
|
|
81
|
+
tournament_season: RawCareerTournamentSeason;
|
|
82
|
+
player: RawCareerPlayer;
|
|
83
|
+
team: RawCareerTeam;
|
|
84
|
+
assists?: number;
|
|
85
|
+
cleansheets?: number;
|
|
86
|
+
fouls_committed?: number;
|
|
87
|
+
goals?: number;
|
|
88
|
+
goals_substitute?: number;
|
|
89
|
+
minutes?: number;
|
|
90
|
+
minutes_substitute?: number;
|
|
91
|
+
offsides?: number;
|
|
92
|
+
own_goals?: number;
|
|
93
|
+
penalties_committed?: number;
|
|
94
|
+
penalties_missed?: number;
|
|
95
|
+
penalties_received?: number;
|
|
96
|
+
penalties_saved?: number;
|
|
97
|
+
penalty_goals?: number;
|
|
98
|
+
played?: number;
|
|
99
|
+
red_cards?: number;
|
|
100
|
+
shots?: number;
|
|
101
|
+
shots_on_target?: number;
|
|
102
|
+
started?: number;
|
|
103
|
+
substitute_in?: number;
|
|
104
|
+
substitute_out?: number;
|
|
105
|
+
yellow_cards?: number;
|
|
106
|
+
shirt_number?: number | null;
|
|
107
|
+
position?: string;
|
|
108
|
+
age?: number;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Player career statistics response from /players/{id}/statistics
|
|
112
|
+
* Returns a flat array of per-season-per-team statistics entries.
|
|
113
|
+
*/
|
|
114
|
+
export type RawPlayerCareerStatisticsResponse = RawPlayerCareerStatisticsEntry[];
|
|
115
|
+
//# sourceMappingURL=player-career.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player-career.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/player-career.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD,MAAM,WAAW,wCAAwC;IACrD,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAMD,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EA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jB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,MAAM,iCAAiC,GAAG,8BAA8B,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Player recent statistics transformation utilities
|
|
3
|
+
* Transforms raw /v2/statistics/players/{id}/recent-statistics responses to canonical FUSports types
|
|
4
|
+
*/
|
|
5
|
+
import type { FUSportsPlayerRecentStatistics } from "../../../../types/canonical";
|
|
6
|
+
import type { RawPlayerRecentStatisticsResponse } from "./player-recent.types";
|
|
7
|
+
/**
|
|
8
|
+
* Transform raw player recent statistics response to canonical type
|
|
9
|
+
*/
|
|
10
|
+
export declare function transformPlayerRecentStatistics(raw: RawPlayerRecentStatisticsResponse): FUSportsPlayerRecentStatistics;
|
|
11
|
+
//# sourceMappingURL=player-recent.transformer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player-recent.transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/player-recent.transformer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,8BAA8B,EAAsB,MAAM,6BAA6B,CAAC;AACtG,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAkC/E;;GAEG;AACH,wBAAgB,+BAA+B,CAC3C,GAAG,EAAE,iCAAiC,GACvC,8BAA8B,CAoChC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Player recent statistics types for Sportal365 Sports API
|
|
3
|
+
* Endpoint: /v2/statistics/players/{id}/recent-statistics
|
|
4
|
+
*/
|
|
5
|
+
import type { RawPlayerInfo, RawTeamInfo, RawPlayerStatistic } from "./player-season.types";
|
|
6
|
+
import type { RawMatch } from "../matches/types/match.types";
|
|
7
|
+
import type { NextCacheOptions } from "../../http";
|
|
8
|
+
export interface GetFootballPlayerRecentStatisticsOptions {
|
|
9
|
+
/** Player ID or slug */
|
|
10
|
+
playerId: string;
|
|
11
|
+
/** Number of recent matches to include (1-20) */
|
|
12
|
+
matches?: number;
|
|
13
|
+
/** CSV list of tournament IDs to filter by */
|
|
14
|
+
tournamentIds?: string[];
|
|
15
|
+
/** Team ID to filter by */
|
|
16
|
+
teamId?: string;
|
|
17
|
+
/** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
|
|
18
|
+
languageCode?: string;
|
|
19
|
+
/** Next.js cache options for ISR/on-demand revalidation */
|
|
20
|
+
next?: NextCacheOptions;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Player recent statistics response from /v2/statistics/players/{id}/recent-statistics
|
|
24
|
+
*/
|
|
25
|
+
export interface RawPlayerRecentStatisticsResponse {
|
|
26
|
+
player: RawPlayerInfo;
|
|
27
|
+
teams: RawTeamInfo[];
|
|
28
|
+
matches: RawMatch[];
|
|
29
|
+
aggregated_statistics: RawPlayerStatistic[];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=player-recent.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player-recent.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/player-recent.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD,MAAM,WAAW,wCAAwC;IACrD,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAMD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,qBAAqB,EAAE,kBAAkB,EAAE,CAAC;CAC/C"}
|
|
@@ -4,11 +4,11 @@
|
|
|
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, getFootballLivescore, getFootballTeam, getFootballTeamSquad, getFootballCompetition, getFootballSeasonDetails, getFootballStandings, getFootballPlayerSeasonStatistics, getFootballPlayerSeasonStatisticsByPlayerIds, searchFootball, } from "./football";
|
|
7
|
+
export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, getFootballLivescore, getFootballTeam, getFootballTeamSquad, getFootballCompetition, getFootballSeasonDetails, getFootballStandings, getFootballPlayerSeasonStatistics, getFootballPlayerSeasonStatisticsByPlayerIds, getFootballPlayerCareerStatistics, getFootballPlayerRecentStatistics, searchFootball, } from "./football";
|
|
8
8
|
export { getBasketballLivescore } from "./basketball";
|
|
9
9
|
export { getTennisLivescore } from "./tennis";
|
|
10
10
|
export { search } from "./search";
|
|
11
|
-
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballLivescoreOptions, GetFootballTeamOptions, GetFootballTeamSquadOptions, GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions, GetFootballStandingsOptions, GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions, GetFootballSearchOptions, SearchEntityType, FootballStandingsExpandOption, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, SelectionFilter, } from "./football";
|
|
11
|
+
export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballLivescoreOptions, GetFootballTeamOptions, GetFootballTeamSquadOptions, GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions, GetFootballStandingsOptions, GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions, GetFootballPlayerCareerStatisticsOptions, GetFootballPlayerRecentStatisticsOptions, GetFootballSearchOptions, SearchEntityType, FootballStandingsExpandOption, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, SelectionFilter, } from "./football";
|
|
12
12
|
export type { GetSportsSearchOptions, SportType, SportsSearchEntityType } from "./search";
|
|
13
13
|
export type { GetBasketballLivescoreOptions, BasketballMatchStatusType } from "./basketball";
|
|
14
14
|
export type { GetTennisLivescoreOptions, TennisMatchStatusType, TennisMatchType, TennisGender } from "./tennis";
|
|
@@ -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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AAM,cAAc,CAAC;AAGnE,YAAY,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
|
|
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,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,iCAAiC,EACjC,4CAA4C,EAC5C,iCAAiC,EACjC,iCAAiC,EACjC,cAAc,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,+BAA+B,EAC/B,2BAA2B,EAC3B,wCAAwC,EACxC,mDAAmD,EACnD,wCAAwC,EACxC,wCAAwC,EACxC,wBAAwB,EACxB,gBAAgB,EAChB,6BAA6B,EAC7B,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,eAAe,GAClB,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,sBAAsB,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAG1F,YAAY,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAG7F,YAAY,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGhH,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,6BAA6B,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGxG,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,YAAY,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAGnE,YAAY,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odds.transformer.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/shared/odds.transformer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,2BAA2B,EAG9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAmC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"odds.transformer.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/shared/odds.transformer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,2BAA2B,EAG9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAmC,MAAM,cAAc,CAAC;AAmFjF;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,2BAA2B,EAAE,CAE/E"}
|
package/client.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),B=require("./matches-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),B=require("./matches-Ci0Ci_Mw.cjs");var at={exports:{}},$e={};var ya;function Ss(){if(ya)return $e;ya=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(i,s,r){var n=null;if(r!==void 0&&(n=""+r),s.key!==void 0&&(n=""+s.key),"key"in s){r={};for(var o in s)o!=="key"&&(r[o]=s[o])}else r=s;return s=r.ref,{$$typeof:e,type:i,key:n,ref:s!==void 0?s:null,props:r}}return $e.Fragment=t,$e.jsx=a,$e.jsxs=a,$e}var Ue={};var wa;function Cs(){return wa||(wa=1,process.env.NODE_ENV!=="production"&&(function(){function e(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===P?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case T:return"Fragment";case O:return"Profiler";case I:return"StrictMode";case g:return"Suspense";case f:return"SuspenseList";case M:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case v:return"Portal";case G:return w.displayName||"Context";case C:return(w._context.displayName||"Context")+".Consumer";case A:var R=w.render;return w=w.displayName,w||(w=R.displayName||R.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case y:return R=w.displayName||null,R!==null?R:e(w.type)||"Memo";case b:R=w._payload,w=w._init;try{return e(w(R))}catch{}}return null}function t(w){return""+w}function a(w){try{t(w);var R=!1}catch{R=!0}if(R){R=console;var F=R.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return F.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),t(w)}}function i(w){if(w===T)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===b)return"<...>";try{var R=e(w);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function s(){var w=D.A;return w===null?null:w.getOwner()}function r(){return Error("react-stack-top-frame")}function n(w){if(U.call(w,"key")){var R=Object.getOwnPropertyDescriptor(w,"key").get;if(R&&R.isReactWarning)return!1}return w.key!==void 0}function o(w,R){function F(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",R))}F.isReactWarning=!0,Object.defineProperty(w,"key",{get:F,configurable:!0})}function l(){var w=e(this.type);return ie[w]||(ie[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}function c(w,R,F,N,ne,Ie){var $=F.ref;return w={$$typeof:_,type:w,key:R,props:F,_owner:N},($!==void 0?$:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:l}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function d(w,R,F,N,ne,Ie){var $=R.children;if($!==void 0)if(N)if(j($)){for(N=0;N<$.length;N++)p($[N]);Object.freeze&&Object.freeze($)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p($);if(U.call(R,"key")){$=e(w);var ee=Object.keys(R).filter(function(Ge){return Ge!=="key"});N=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",Z[$+N]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
package/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import Ds, { createContext as Xe, useContext as Je, useMemo as P, useCallback as v, useState as U, useEffect as ue, useRef as Ls } from "react";
|
|
3
|
-
import { w as xs,
|
|
4
|
-
import {
|
|
3
|
+
import { w as xs, C as Ns, n as Gs, B as ga, D as fa, E as ya, p as wa, r as $s, v as Us, q as Bs, F as Hs, H as Vs, m as Ws } from "./matches-BvHU-bP0.js";
|
|
4
|
+
import { G as fh } from "./matches-BvHU-bP0.js";
|
|
5
5
|
var nt = { exports: {} }, Be = {};
|
|
6
6
|
var _a;
|
|
7
7
|
function zs() {
|