fansunited-data-layer 0.11.2 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/fansunited-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 +22 -2
- package/api/sportal365-sports/football/statistics/index.d.ts.map +1 -1
- package/api/sportal365-sports/football/statistics/player-season.transformer.d.ts +10 -0
- package/api/sportal365-sports/football/statistics/player-season.transformer.d.ts.map +1 -1
- package/api/sportal365-sports/football/statistics/player-season.types.d.ts +10 -0
- package/api/sportal365-sports/football/statistics/player-season.types.d.ts.map +1 -1
- 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 +12 -11
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/{matches-DpXELQ3n.js → matches-CB-dSXEA.js} +525 -405
- package/matches-DvC2VSyO.cjs +1 -0
- package/package.json +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 +1 -1
- package/types/canonical/statistics.types.d.ts.map +1 -1
- package/matches-tjnMum3M.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,C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uBjC"}
|
|
@@ -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 } from "./statistics";
|
|
16
|
-
export type { GetFootballPlayerSeasonStatisticsOptions } from "./statistics";
|
|
15
|
+
export { getFootballPlayerSeasonStatistics, getFootballPlayerSeasonStatisticsByPlayerIds } from "./statistics";
|
|
16
|
+
export type { GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions } 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,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,MAAM,cAAc,CAAC;AAC/G,YAAY,EAAE,wCAAwC,EAAE,mDAAmD,EAAE,MAAM,cAAc,CAAC;AAGlI,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 { FUSportsPlayerSeasonStatistics } from "../../../../types/canonical";
|
|
7
7
|
import { type DataLayerConfig } from "../../../../config";
|
|
8
|
-
import type { GetFootballPlayerSeasonStatisticsOptions } from "./player-season.types";
|
|
9
|
-
export type { GetFootballPlayerSeasonStatisticsOptions } from "./player-season.types";
|
|
8
|
+
import type { GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions } from "./player-season.types";
|
|
9
|
+
export type { GetFootballPlayerSeasonStatisticsOptions, GetFootballPlayerSeasonStatisticsByPlayerIdsOptions, } from "./player-season.types";
|
|
10
10
|
/**
|
|
11
11
|
* Get player season statistics for a team
|
|
12
12
|
*
|
|
@@ -39,4 +39,24 @@ export type { GetFootballPlayerSeasonStatisticsOptions } from "./player-season.t
|
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
41
|
export declare function getFootballPlayerSeasonStatistics(options: GetFootballPlayerSeasonStatisticsOptions, config?: DataLayerConfig): Promise<Record<string, FUSportsPlayerSeasonStatistics>>;
|
|
42
|
+
/**
|
|
43
|
+
* Get player season statistics by player IDs
|
|
44
|
+
*
|
|
45
|
+
* Fetches statistics for specific players in the specified season(s).
|
|
46
|
+
* Stats are aggregated across all teams the player has played for.
|
|
47
|
+
*
|
|
48
|
+
* @param options - Required parameters (playerIds, seasonIds)
|
|
49
|
+
* @param config - Optional data layer config (uses singleton if not provided)
|
|
50
|
+
* @returns Map of player ID to canonical FUSportsPlayerSeasonStatistics
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* const stats = await getFootballPlayerSeasonStatisticsByPlayerIds({
|
|
55
|
+
* playerIds: ['39870'],
|
|
56
|
+
* seasonIds: ['4368438']
|
|
57
|
+
* });
|
|
58
|
+
* console.log(stats['39870']?.goals); // Player goals across all teams
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function getFootballPlayerSeasonStatisticsByPlayerIds(options: GetFootballPlayerSeasonStatisticsByPlayerIdsOptions, config?: DataLayerConfig): Promise<Record<string, FUSportsPlayerSeasonStatistics>>;
|
|
42
62
|
//# 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;AAClF,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAER,wCAAwC,
|
|
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;AAClF,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAER,wCAAwC,EACxC,mDAAmD,EACtD,MAAM,uBAAuB,CAAC;AAQ/B,YAAY,EACR,wCAAwC,EACxC,mDAAmD,GACtD,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
|
@@ -8,4 +8,14 @@ import type { RawPlayerSeasonStatisticsEntry } from "./player-season.types";
|
|
|
8
8
|
* Transform raw player season statistics to canonical FUSportsPlayerSeasonStatistics
|
|
9
9
|
*/
|
|
10
10
|
export declare function transformPlayerSeasonStatistics(raw: RawPlayerSeasonStatisticsEntry, teamId: string): FUSportsPlayerSeasonStatistics;
|
|
11
|
+
/**
|
|
12
|
+
* Transform raw player season statistics without a team context.
|
|
13
|
+
* Used when querying by player IDs - no teamId is set.
|
|
14
|
+
*/
|
|
15
|
+
export declare function transformPlayerSeasonStatisticsWithoutTeam(raw: RawPlayerSeasonStatisticsEntry): FUSportsPlayerSeasonStatistics;
|
|
16
|
+
/**
|
|
17
|
+
* Merge two player season statistics by summing all numeric fields.
|
|
18
|
+
* Used when a player has stats across multiple teams in the same season.
|
|
19
|
+
*/
|
|
20
|
+
export declare function mergePlayerSeasonStatistics(a: FUSportsPlayerSeasonStatistics, b: FUSportsPlayerSeasonStatistics): FUSportsPlayerSeasonStatistics;
|
|
11
21
|
//# sourceMappingURL=player-season.transformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player-season.transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/player-season.transformer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,8BAA8B,EAAsB,MAAM,uBAAuB,CAAC;AAkBhG;;GAEG;AACH,wBAAgB,+BAA+B,CAC3C,GAAG,EAAE,8BAA8B,EACnC,MAAM,EAAE,MAAM,GACf,8BAA8B,CAsDhC"}
|
|
1
|
+
{"version":3,"file":"player-season.transformer.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/player-season.transformer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,8BAA8B,EAAsB,MAAM,uBAAuB,CAAC;AAkBhG;;GAEG;AACH,wBAAgB,+BAA+B,CAC3C,GAAG,EAAE,8BAA8B,EACnC,MAAM,EAAE,MAAM,GACf,8BAA8B,CAsDhC;AAED;;;GAGG;AACH,wBAAgB,0CAA0C,CACtD,GAAG,EAAE,8BAA8B,GACpC,8BAA8B,CAqDhC;AAUD;;;GAGG;AACH,wBAAgB,2BAA2B,CACvC,CAAC,EAAE,8BAA8B,EACjC,CAAC,EAAE,8BAA8B,GAClC,8BAA8B,CAgDhC"}
|
|
@@ -13,6 +13,16 @@ export interface GetFootballPlayerSeasonStatisticsOptions {
|
|
|
13
13
|
/** Next.js cache options for ISR/on-demand revalidation */
|
|
14
14
|
next?: NextCacheOptions;
|
|
15
15
|
}
|
|
16
|
+
export interface GetFootballPlayerSeasonStatisticsByPlayerIdsOptions {
|
|
17
|
+
/** Player IDs to fetch statistics for */
|
|
18
|
+
playerIds: string[];
|
|
19
|
+
/** Season IDs to fetch statistics for */
|
|
20
|
+
seasonIds: string[];
|
|
21
|
+
/** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
|
|
22
|
+
languageCode?: string;
|
|
23
|
+
/** Next.js cache options for ISR/on-demand revalidation */
|
|
24
|
+
next?: NextCacheOptions;
|
|
25
|
+
}
|
|
16
26
|
export interface RawPlayerStatistic {
|
|
17
27
|
name: string;
|
|
18
28
|
value: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player-season.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/player-season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AAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE;QACJ,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC3C,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,MAAM,EAAE,SAAS,GAAG;QAChB,UAAU,EAAE,aAAa,CAAC;KAC7B,CAAC;IACF,UAAU,EAAE,kBAAkB,EAAE,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C,UAAU,EAAE,8BAA8B,EAAE,CAAC;CAChD"}
|
|
1
|
+
{"version":3,"file":"player-season.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/statistics/player-season.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM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E,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE;QACJ,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC3C,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,MAAM,EAAE,SAAS,GAAG;QAChB,UAAU,EAAE,aAAa,CAAC;KAC7B,CAAC;IACF,UAAU,EAAE,kBAAkB,EAAE,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C,UAAU,EAAE,8BAA8B,EAAE,CAAC;CAChD"}
|
|
@@ -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, searchFootball, } from "./football";
|
|
7
|
+
export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, getFootballLivescore, getFootballTeam, getFootballTeamSquad, getFootballCompetition, getFootballSeasonDetails, getFootballStandings, getFootballPlayerSeasonStatistics, getFootballPlayerSeasonStatisticsByPlayerIds, 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, 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, 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,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,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,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,EAA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B,EAC3B,wCAAwC,EACxC,mDAAmD,EACnD,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-DvC2VSyO.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, A as Ns, n as Gs, z as ga, B as fa, C as ya, p as wa, r as $s, v as Us, q as Bs, D as Hs, F as Vs, m as Ws } from "./matches-CB-dSXEA.js";
|
|
4
|
+
import { E as fh } from "./matches-CB-dSXEA.js";
|
|
5
5
|
var nt = { exports: {} }, Be = {};
|
|
6
6
|
var _a;
|
|
7
7
|
function zs() {
|