fansunited-data-layer 0.0.14 → 0.0.16-RC1

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.
Files changed (127) hide show
  1. package/README.md +2 -2
  2. package/package.json +8 -2
  3. package/dist/api/sportal365-sports/constants.d.ts +0 -12
  4. package/dist/api/sportal365-sports/constants.d.ts.map +0 -1
  5. package/dist/api/sportal365-sports/football/competitions/competition.types.d.ts +0 -148
  6. package/dist/api/sportal365-sports/football/competitions/competition.types.d.ts.map +0 -1
  7. package/dist/api/sportal365-sports/football/competitions/index.d.ts +0 -51
  8. package/dist/api/sportal365-sports/football/competitions/index.d.ts.map +0 -1
  9. package/dist/api/sportal365-sports/football/competitions/utils.d.ts +0 -14
  10. package/dist/api/sportal365-sports/football/competitions/utils.d.ts.map +0 -1
  11. package/dist/api/sportal365-sports/football/http.d.ts +0 -8
  12. package/dist/api/sportal365-sports/football/http.d.ts.map +0 -1
  13. package/dist/api/sportal365-sports/football/index.d.ts +0 -15
  14. package/dist/api/sportal365-sports/football/index.d.ts.map +0 -1
  15. package/dist/api/sportal365-sports/football/matches/index.d.ts +0 -143
  16. package/dist/api/sportal365-sports/football/matches/index.d.ts.map +0 -1
  17. package/dist/api/sportal365-sports/football/matches/transformers/commentary.d.ts +0 -12
  18. package/dist/api/sportal365-sports/football/matches/transformers/commentary.d.ts.map +0 -1
  19. package/dist/api/sportal365-sports/football/matches/transformers/index.d.ts +0 -10
  20. package/dist/api/sportal365-sports/football/matches/transformers/index.d.ts.map +0 -1
  21. package/dist/api/sportal365-sports/football/matches/transformers/lineup.d.ts +0 -11
  22. package/dist/api/sportal365-sports/football/matches/transformers/lineup.d.ts.map +0 -1
  23. package/dist/api/sportal365-sports/football/matches/transformers/match-event.d.ts +0 -12
  24. package/dist/api/sportal365-sports/football/matches/transformers/match-event.d.ts.map +0 -1
  25. package/dist/api/sportal365-sports/football/matches/transformers/match.d.ts +0 -11
  26. package/dist/api/sportal365-sports/football/matches/transformers/match.d.ts.map +0 -1
  27. package/dist/api/sportal365-sports/football/matches/transformers/odds.d.ts +0 -11
  28. package/dist/api/sportal365-sports/football/matches/transformers/odds.d.ts.map +0 -1
  29. package/dist/api/sportal365-sports/football/matches/transformers/statistics.d.ts +0 -11
  30. package/dist/api/sportal365-sports/football/matches/transformers/statistics.d.ts.map +0 -1
  31. package/dist/api/sportal365-sports/football/matches/types/commentary.types.d.ts +0 -27
  32. package/dist/api/sportal365-sports/football/matches/types/commentary.types.d.ts.map +0 -1
  33. package/dist/api/sportal365-sports/football/matches/types/event.types.d.ts +0 -19
  34. package/dist/api/sportal365-sports/football/matches/types/event.types.d.ts.map +0 -1
  35. package/dist/api/sportal365-sports/football/matches/types/index.d.ts +0 -16
  36. package/dist/api/sportal365-sports/football/matches/types/index.d.ts.map +0 -1
  37. package/dist/api/sportal365-sports/football/matches/types/lineup.types.d.ts +0 -78
  38. package/dist/api/sportal365-sports/football/matches/types/lineup.types.d.ts.map +0 -1
  39. package/dist/api/sportal365-sports/football/matches/types/match.types.d.ts +0 -47
  40. package/dist/api/sportal365-sports/football/matches/types/match.types.d.ts.map +0 -1
  41. package/dist/api/sportal365-sports/football/matches/types/minute.types.d.ts +0 -8
  42. package/dist/api/sportal365-sports/football/matches/types/minute.types.d.ts.map +0 -1
  43. package/dist/api/sportal365-sports/football/matches/types/odds.types.d.ts +0 -80
  44. package/dist/api/sportal365-sports/football/matches/types/odds.types.d.ts.map +0 -1
  45. package/dist/api/sportal365-sports/football/matches/types/option.types.d.ts +0 -129
  46. package/dist/api/sportal365-sports/football/matches/types/option.types.d.ts.map +0 -1
  47. package/dist/api/sportal365-sports/football/matches/types/referee.types.d.ts +0 -13
  48. package/dist/api/sportal365-sports/football/matches/types/referee.types.d.ts.map +0 -1
  49. package/dist/api/sportal365-sports/football/matches/types/statistics.types.d.ts +0 -45
  50. package/dist/api/sportal365-sports/football/matches/types/statistics.types.d.ts.map +0 -1
  51. package/dist/api/sportal365-sports/football/matches/types/status.types.d.ts +0 -13
  52. package/dist/api/sportal365-sports/football/matches/types/status.types.d.ts.map +0 -1
  53. package/dist/api/sportal365-sports/football/matches/types/team.types.d.ts +0 -17
  54. package/dist/api/sportal365-sports/football/matches/types/team.types.d.ts.map +0 -1
  55. package/dist/api/sportal365-sports/football/matches/types/winner.types.d.ts +0 -15
  56. package/dist/api/sportal365-sports/football/matches/types/winner.types.d.ts.map +0 -1
  57. package/dist/api/sportal365-sports/football/standings/index.d.ts +0 -35
  58. package/dist/api/sportal365-sports/football/standings/index.d.ts.map +0 -1
  59. package/dist/api/sportal365-sports/football/standings/standing.transformer.d.ts +0 -15
  60. package/dist/api/sportal365-sports/football/standings/standing.transformer.d.ts.map +0 -1
  61. package/dist/api/sportal365-sports/football/standings/standing.types.d.ts +0 -71
  62. package/dist/api/sportal365-sports/football/standings/standing.types.d.ts.map +0 -1
  63. package/dist/api/sportal365-sports/football/teams/index.d.ts +0 -25
  64. package/dist/api/sportal365-sports/football/teams/index.d.ts.map +0 -1
  65. package/dist/api/sportal365-sports/football/teams/team.types.d.ts +0 -58
  66. package/dist/api/sportal365-sports/football/teams/team.types.d.ts.map +0 -1
  67. package/dist/api/sportal365-sports/football/teams/utils.d.ts +0 -11
  68. package/dist/api/sportal365-sports/football/teams/utils.d.ts.map +0 -1
  69. package/dist/api/sportal365-sports/http.d.ts +0 -54
  70. package/dist/api/sportal365-sports/http.d.ts.map +0 -1
  71. package/dist/api/sportal365-sports/index.d.ts +0 -10
  72. package/dist/api/sportal365-sports/index.d.ts.map +0 -1
  73. package/dist/api/sportal365-sports/shared/index.d.ts +0 -5
  74. package/dist/api/sportal365-sports/shared/index.d.ts.map +0 -1
  75. package/dist/api/sportal365-sports/shared/types.d.ts +0 -189
  76. package/dist/api/sportal365-sports/shared/types.d.ts.map +0 -1
  77. package/dist/client.cjs +0 -6
  78. package/dist/client.d.ts +0 -20
  79. package/dist/client.d.ts.map +0 -1
  80. package/dist/client.js +0 -454
  81. package/dist/config/index.d.ts +0 -31
  82. package/dist/config/index.d.ts.map +0 -1
  83. package/dist/config/types.d.ts +0 -33
  84. package/dist/config/types.d.ts.map +0 -1
  85. package/dist/fansunited-data-layer.cjs +0 -1
  86. package/dist/fansunited-data-layer.js +0 -150
  87. package/dist/helpers/competition.helpers.d.ts +0 -22
  88. package/dist/helpers/competition.helpers.d.ts.map +0 -1
  89. package/dist/helpers/index.d.ts +0 -7
  90. package/dist/helpers/index.d.ts.map +0 -1
  91. package/dist/helpers/standings.helpers.d.ts +0 -70
  92. package/dist/helpers/standings.helpers.d.ts.map +0 -1
  93. package/dist/helpers/team.helpers.d.ts +0 -45
  94. package/dist/helpers/team.helpers.d.ts.map +0 -1
  95. package/dist/index-D1EJvAqY.js +0 -763
  96. package/dist/index-DbaLZvqQ.cjs +0 -1
  97. package/dist/index.d.ts +0 -31
  98. package/dist/index.d.ts.map +0 -1
  99. package/dist/providers/competition.context.d.ts +0 -8
  100. package/dist/providers/competition.context.d.ts.map +0 -1
  101. package/dist/providers/competition.provider.d.ts +0 -3
  102. package/dist/providers/competition.provider.d.ts.map +0 -1
  103. package/dist/providers/competition.types.d.ts +0 -86
  104. package/dist/providers/competition.types.d.ts.map +0 -1
  105. package/dist/providers/index.d.ts +0 -7
  106. package/dist/providers/index.d.ts.map +0 -1
  107. package/dist/types/canonical/base.types.d.ts +0 -194
  108. package/dist/types/canonical/base.types.d.ts.map +0 -1
  109. package/dist/types/canonical/commentary.types.d.ts +0 -42
  110. package/dist/types/canonical/commentary.types.d.ts.map +0 -1
  111. package/dist/types/canonical/event.types.d.ts +0 -31
  112. package/dist/types/canonical/event.types.d.ts.map +0 -1
  113. package/dist/types/canonical/index.d.ts +0 -14
  114. package/dist/types/canonical/index.d.ts.map +0 -1
  115. package/dist/types/canonical/lineup.types.d.ts +0 -33
  116. package/dist/types/canonical/lineup.types.d.ts.map +0 -1
  117. package/dist/types/canonical/match.types.d.ts +0 -142
  118. package/dist/types/canonical/match.types.d.ts.map +0 -1
  119. package/dist/types/canonical/odds.types.d.ts +0 -73
  120. package/dist/types/canonical/odds.types.d.ts.map +0 -1
  121. package/dist/types/canonical/standing.types.d.ts +0 -84
  122. package/dist/types/canonical/standing.types.d.ts.map +0 -1
  123. package/dist/types/canonical/statistics.types.d.ts +0 -27
  124. package/dist/types/canonical/statistics.types.d.ts.map +0 -1
  125. package/dist/types/index.d.ts +0 -10
  126. package/dist/types/index.d.ts.map +0 -1
  127. package/dist/vite.svg +0 -1
package/README.md CHANGED
@@ -185,9 +185,9 @@ All responses are transformed to provider-agnostic canonical types prefixed with
185
185
  - `FUSportsMatchStatistics` - Match statistics
186
186
  - `FUSportsMatchOdds` - Betting odds
187
187
  - `FUSportsCommentaryItem` - Commentary entries
188
- - `FUSportsCompetitor` - Team/competitor data
188
+ - `FUSportsCompetitor` - Team/competitor data (discriminated union: team, player, or pair)
189
189
  - `FUSportsCompetition` - Tournament/league data
190
- - `FUSportsPlayer` - Player data
190
+ - `FUSportsMember` - Team member/player data (for squads, lineups, events)
191
191
 
192
192
  ## TypeScript
193
193
 
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "fansunited-data-layer",
3
+ "author": "Fans United",
4
+ "description": "A TypeScript library for fetching and transforming sports data from multiple API providers. Returns clean, canonical types that are provider-agnostic.",
5
+ "homepage": "https://fansunited.com/",
3
6
  "private": false,
4
- "version": "0.0.14",
7
+ "version": "0.0.16-RC1",
5
8
  "type": "module",
6
9
  "files": [
7
10
  "dist"
@@ -24,11 +27,13 @@
24
27
  "scripts": {
25
28
  "dev": "vite",
26
29
  "build": "tsc -b && vite build",
27
- "build:lib": "vite build && tsc --project tsconfig.lib.json",
30
+ "build:lib": "vite build && tsc --project tsconfig.lib.json && sh scripts/add-use-client.sh",
31
+ "build:lib:watch": "vite build --watch",
28
32
  "lint": "eslint .",
29
33
  "preview": "vite preview"
30
34
  },
31
35
  "peerDependencies": {
36
+ "fansunited-sdk-esm": "^1.119.2",
32
37
  "fansunited-sports-ui": "^0.0.1",
33
38
  "react": "^18.0.0 || ^19.0.0",
34
39
  "react-dom": "^18.0.0 || ^19.0.0"
@@ -42,6 +47,7 @@
42
47
  "eslint": "^9.39.1",
43
48
  "eslint-plugin-react-hooks": "^7.0.1",
44
49
  "eslint-plugin-react-refresh": "^0.4.24",
50
+ "fansunited-sdk-esm": "^1.119.2",
45
51
  "fansunited-sports-ui": "^0.0.1",
46
52
  "globals": "^16.5.0",
47
53
  "prettier": "^3.7.3",
@@ -1,12 +0,0 @@
1
- /**
2
- * Sportal365 API Domain Constants
3
- *
4
- * Each Sportal365 API has its own domain based on the sport/functionality.
5
- */
6
- /** Football API domain */
7
- export declare const SPORTAL365_FOOTBALL_DOMAIN = "https://football.api.sportal365.com";
8
- /** Basketball API domain */
9
- export declare const SPORTAL365_BASKETBALL_DOMAIN = "https://basketball.api.sportal365.com";
10
- /** Tennis API domain */
11
- export declare const SPORTAL365_TENNIS_DOMAIN = "https://tennis.api.sportal365.com";
12
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0BAA0B;AAC1B,eAAO,MAAM,0BAA0B,wCAAwC,CAAC;AAEhF,4BAA4B;AAC5B,eAAO,MAAM,4BAA4B,0CAA0C,CAAC;AAEpF,wBAAwB;AACxB,eAAO,MAAM,wBAAwB,sCAAsC,CAAC"}
@@ -1,148 +0,0 @@
1
- /**
2
- * Competition types for Sportal365 Sports API
3
- * Types for tournament/competition entity responses
4
- */
5
- import type { NextCacheOptions } from "../../http";
6
- /**
7
- * Country in tournament response (v1 format)
8
- */
9
- export interface RawTournamentCountry {
10
- id: number;
11
- name: string;
12
- slug: string;
13
- uuid: string;
14
- url_flag?: string;
15
- }
16
- /**
17
- * Season in tournament response
18
- */
19
- export interface RawTournamentSeason {
20
- id: number;
21
- name: string;
22
- slug: string;
23
- active: boolean;
24
- uuid: string;
25
- }
26
- /**
27
- * Raw tournament response from /tournaments/{id}
28
- */
29
- export interface RawTournamentResponse {
30
- id: number;
31
- name: string;
32
- slug: string;
33
- country: RawTournamentCountry;
34
- regional_league: boolean;
35
- gender: "MALE" | "FEMALE";
36
- type: "LEAGUE" | "CUP";
37
- region: "DOMESTIC" | "INTERNATIONAL";
38
- uuid: string;
39
- seasons: RawTournamentSeason[];
40
- url_logo?: string;
41
- }
42
- /**
43
- * Country in v2 season details response
44
- */
45
- export interface RawSeasonDetailsCountry {
46
- id: string;
47
- name: string;
48
- slug: string;
49
- code: string | null;
50
- assets?: {
51
- flag?: {
52
- url: string;
53
- };
54
- };
55
- uuid: string;
56
- }
57
- /**
58
- * Tournament in v2 season details response
59
- */
60
- export interface RawSeasonDetailsTournament {
61
- id: string;
62
- name: string;
63
- slug: string;
64
- country: RawSeasonDetailsCountry;
65
- gender: "MALE" | "FEMALE";
66
- type: "LEAGUE" | "CUP";
67
- region: "DOMESTIC" | "INTERNATIONAL";
68
- assets?: {
69
- logo?: {
70
- url: string;
71
- };
72
- };
73
- uuid: string;
74
- }
75
- /**
76
- * Season in v2 season details response
77
- */
78
- export interface RawSeasonDetailsSeason {
79
- id: string;
80
- name: string;
81
- slug: string;
82
- tournament: RawSeasonDetailsTournament;
83
- status: "ACTIVE" | "INACTIVE";
84
- uuid: string;
85
- }
86
- /**
87
- * Round in v2 season details response
88
- */
89
- export interface RawSeasonDetailsRound {
90
- id: string;
91
- key: string;
92
- name: string;
93
- type: "LEAGUE" | "CUP" | "QUALIFICATION" | "PLAYOFF";
94
- status: "ACTIVE" | "INACTIVE";
95
- start_date: string;
96
- end_date: string;
97
- uuid: string;
98
- }
99
- /**
100
- * Stage in v2 season details response
101
- */
102
- export interface RawSeasonDetailsStage {
103
- id: string;
104
- name: string;
105
- slug: string;
106
- type: "LEAGUE" | "CUP" | "GROUP" | "KNOCKOUT" | "PLAYOFF" | "QUALIFICATION";
107
- status: "ACTIVE" | "INACTIVE";
108
- coverage: "LIVE" | "HIGHLIGHTS" | "NONE";
109
- order_in_season: number;
110
- start_date: string;
111
- end_date: string;
112
- short_name: string | null;
113
- uuid: string;
114
- }
115
- /**
116
- * Stage with rounds in v2 season details response
117
- */
118
- export interface RawSeasonDetailsStageWithRounds {
119
- stage: RawSeasonDetailsStage;
120
- rounds: RawSeasonDetailsRound[];
121
- uuid: string;
122
- }
123
- /**
124
- * Full response from /v2/seasons/details endpoint
125
- */
126
- export interface RawSeasonDetailsResponse {
127
- season: RawSeasonDetailsSeason;
128
- stages: RawSeasonDetailsStageWithRounds[];
129
- }
130
- export interface GetFootballCompetitionOptions {
131
- /** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
132
- languageCode?: string;
133
- /** Next.js cache options for ISR/on-demand revalidation */
134
- next?: NextCacheOptions;
135
- }
136
- export interface GetFootballSeasonDetailsOptions {
137
- /** Season ID to fetch details for */
138
- seasonId?: string;
139
- /** Tournament/competition ID (used with status to get current season) */
140
- competitionId?: string;
141
- /** Season status filter (e.g., 'CURRENT'). Used with competitionId */
142
- status?: "CURRENT";
143
- /** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
144
- languageCode?: string;
145
- /** Next.js cache options for ISR/on-demand revalidation */
146
- next?: NextCacheOptions;
147
- }
148
- //# sourceMappingURL=competition.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"competition.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/competitions/competition.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAE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,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,MAAM,EAAE,+BAA+B,EAAE,CAAC;CAC7C;AAMD,MAAM,WAAW,6BAA6B;IAC1C,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,+BAA+B;IAC5C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -1,51 +0,0 @@
1
- /**
2
- * Sportal365 Sports API - Football Competitions
3
- *
4
- * Fetches competition/tournament data and transforms to canonical FUSports types.
5
- */
6
- import type { FUSportsCompetition, FUSportsSeasonDetails } from "../../../../types/canonical";
7
- import type { GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions } from "./competition.types";
8
- export type { GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions } from "./competition.types";
9
- /**
10
- * Get a football competition/tournament by ID
11
- *
12
- * Fetches full competition details including all available seasons.
13
- *
14
- * @param competitionId - The competition ID, UUID, or slug
15
- * @param options - Optional parameters
16
- * @returns Canonical FUSportsCompetition with all seasons
17
- *
18
- * @example
19
- * ```typescript
20
- * const competition = await getFootballCompetition('3');
21
- * console.log(competition.name); // "Premier League"
22
- * console.log(competition.seasons?.length); // 27
23
- * ```
24
- */
25
- export declare function getFootballCompetition(competitionId: string, options?: GetFootballCompetitionOptions): Promise<FUSportsCompetition>;
26
- /**
27
- * Get detailed season information with stages and rounds
28
- *
29
- * Can be called with either:
30
- * - `seasonId` to get a specific season's details
31
- * - `competitionId` + `status: 'CURRENT'` to get the current season for a competition
32
- *
33
- * @param options - Options including seasonId or competitionId+status
34
- * @returns Canonical FUSportsSeasonDetails with competition, stages, and rounds
35
- *
36
- * @example
37
- * ```typescript
38
- * // Get by season ID
39
- * const season = await getFootballSeasonDetails({ seasonId: '7575016' });
40
- * console.log(season.name); // "2025/2026"
41
- * console.log(season.stages?.length); // 1
42
- *
43
- * // Get current season for a competition
44
- * const currentSeason = await getFootballSeasonDetails({
45
- * competitionId: '3',
46
- * status: 'CURRENT'
47
- * });
48
- * ```
49
- */
50
- export declare function getFootballSeasonDetails(options?: GetFootballSeasonDetailsOptions): Promise<FUSportsSeasonDetails>;
51
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/competitions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAG9F,OAAO,KAAK,EAGR,6BAA6B,EAC7B,+BAA+B,EAClC,MAAM,qBAAqB,CAAC;AAI7B,YAAY,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAE1G;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,sBAAsB,CACxC,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,6BAAkC,GAC5C,OAAO,CAAC,mBAAmB,CAAC,CAY9B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,wBAAwB,CAC1C,OAAO,GAAE,+BAAoC,GAC9C,OAAO,CAAC,qBAAqB,CAAC,CA2BhC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Competition transformers for Sportal365 Sports API
3
- */
4
- import type { FUSportsCompetition, FUSportsSeasonDetails } from "../../../../types/canonical";
5
- import type { RawTournamentResponse, RawSeasonDetailsResponse } from "./competition.types";
6
- /**
7
- * Transform raw tournament response to canonical FUSportsCompetition
8
- */
9
- export declare function transformCompetition(raw: RawTournamentResponse): FUSportsCompetition;
10
- /**
11
- * Transform raw season details response to canonical FUSportsSeasonDetails
12
- */
13
- export declare function transformSeasonDetails(raw: RawSeasonDetailsResponse): FUSportsSeasonDetails;
14
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/competitions/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACR,mBAAmB,EACnB,qBAAqB,EAGxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACR,qBAAqB,EACrB,wBAAwB,EAE3B,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,qBAAqB,GAAG,mBAAmB,CA4BpF;AAiCD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,wBAAwB,GAAG,qBAAqB,CAoC3F"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Football HTTP client for Sportal365 API
3
- */
4
- /**
5
- * HTTP client configured for the Sportal365 Football API
6
- */
7
- export declare const footballHttp: import("../http").Sportal365HttpClient;
8
- //# sourceMappingURL=http.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/lib/api/sportal365-sports/football/http.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;GAEG;AACH,eAAO,MAAM,YAAY,wCAA+C,CAAC"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Sportal365 Sports API - Football
3
- *
4
- * Football-specific endpoints for the Sportal365 Sports API.
5
- * All functions return canonical FUSports types.
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";
9
- export { getFootballTeam } from "./teams";
10
- export type { GetFootballTeamOptions } from "./teams";
11
- export { getFootballCompetition, getFootballSeasonDetails } from "./competitions";
12
- export type { GetFootballCompetitionOptions, GetFootballSeasonDetailsOptions } from "./competitions";
13
- export { getFootballStandings } from "./standings";
14
- export type { GetFootballStandingsOptions, FootballStandingsExpandOption } from "./standings";
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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,GACrB,MAAM,WAAW,CAAC;AAEnB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,GAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGtD,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"}
@@ -1,143 +0,0 @@
1
- /**
2
- * Sportal365 Sports API - Football Matches
3
- *
4
- * Fetches match data and transforms to canonical FUSports types.
5
- */
6
- import type { FUSportsMatch, FUSportsMatchEvent, FUSportsMatchLineups, FUSportsMatchStatistics, FUSportsMatchOdds, FUSportsCommentaryItem } from "../../../../types/canonical";
7
- import type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions } from "./types";
8
- export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, } from "./types";
9
- /**
10
- * Get a football match by ID, UUID, or slug
11
- *
12
- * @param matchId - The match ID, UUID, or slug
13
- * @param options - Optional parameters for odds, events, lineups
14
- * @returns Canonical FUSportsMatch
15
- *
16
- * @example
17
- * ```typescript
18
- * // Basic usage
19
- * const match = await getFootballMatch('7576255');
20
- * console.log(match.competitorOne.name); // "Manchester United"
21
- *
22
- * // With main events and lineup status
23
- * const match = await getFootballMatch('7576255', {
24
- * optionalData: ['MAIN_EVENTS', 'LINEUP_STATUS']
25
- * });
26
- * console.log(match.mainEvents); // Goals, cards, etc.
27
- * ```
28
- */
29
- export declare function getFootballMatch(matchId: string, options?: GetFootballMatchOptions): Promise<FUSportsMatch>;
30
- /**
31
- * Get all events for a football match
32
- *
33
- * @param matchId - The match ID
34
- * @param options - Optional parameters
35
- * @returns Array of match events (goals, cards, substitutions, etc.)
36
- *
37
- * @example
38
- * ```typescript
39
- * const events = await getFootballMatchEvents('7576255');
40
- * events.forEach(e => console.log(`${e.minute}' - ${e.type}`));
41
- * ```
42
- */
43
- export declare function getFootballMatchEvents(matchId: string, options?: GetFootballMatchEventsOptions): Promise<FUSportsMatchEvent[]>;
44
- /**
45
- * Get lineups for a football match
46
- *
47
- * @param matchId - The match ID
48
- * @param options - Optional parameters
49
- * @returns Canonical match lineups with formations and players
50
- *
51
- * @example
52
- * ```typescript
53
- * const lineups = await getFootballMatchLineups('7576255');
54
- * console.log(lineups.home.formation); // "4-3-3"
55
- * console.log(lineups.home.starters);
56
- * ```
57
- */
58
- export declare function getFootballMatchLineups(matchId: string, options?: GetFootballMatchLineupsOptions): Promise<FUSportsMatchLineups>;
59
- /**
60
- * Get odds for a football match
61
- *
62
- * Odds are fetched from the match endpoint with odds parameters.
63
- * Uses `oddClient` and `languageCode` from config if not provided in options.
64
- *
65
- * @param matchId - The match ID
66
- * @param options - Optional parameters for filtering odds
67
- * @returns Canonical match odds with bookmaker details
68
- *
69
- * @example
70
- * ```typescript
71
- * const odds = await getFootballMatchOdds('7576255', {
72
- * marketTypes: ['1x2', 'OVER_UNDER']
73
- * });
74
- * console.log(`${odds.bookmakers.length} bookmakers available`);
75
- * ```
76
- */
77
- export declare function getFootballMatchOdds(matchId: string, options?: GetFootballMatchOddsOptions): Promise<FUSportsMatchOdds>;
78
- /**
79
- * Get team statistics for a football match
80
- *
81
- * @param matchId - The match ID (event ID)
82
- * @param options - Optional parameters
83
- * @returns Canonical match statistics for both teams
84
- *
85
- * @example
86
- * ```typescript
87
- * const stats = await getFootballMatchStatistics('7576255');
88
- * console.log(`Possession: ${stats.home.possession}% - ${stats.away.possession}%`);
89
- * console.log(`Shots: ${stats.home.shotsTotal} - ${stats.away.shotsTotal}`);
90
- * ```
91
- */
92
- export declare function getFootballMatchStatistics(matchId: string, options?: GetFootballMatchStatisticsOptions): Promise<FUSportsMatchStatistics>;
93
- /**
94
- * Get live commentary for a football match
95
- *
96
- * @param matchId - The match ID, UUID, or slug
97
- * @param options - Optional parameters
98
- * @returns Array of commentary entries
99
- *
100
- * @example
101
- * ```typescript
102
- * const commentary = await getFootballMatchCommentary('7576255');
103
- * commentary.forEach(c => {
104
- * console.log(`${c.elapsed}' - ${c.autoText}`);
105
- * });
106
- * ```
107
- */
108
- export declare function getFootballMatchCommentary(matchId: string, options?: GetFootballMatchCommentaryOptions): Promise<FUSportsCommentaryItem[]>;
109
- /**
110
- * Get a list of football matches
111
- *
112
- * @param options - Filter and pagination options (limit and offset are required)
113
- * @returns Array of canonical FUSportsMatch objects
114
- *
115
- * @example
116
- * ```typescript
117
- * // Get 10 upcoming matches for a specific tournament
118
- * const matches = await getFootballMatches({
119
- * tournamentIds: ['123'],
120
- * fromKickoffTime: new Date().toISOString(),
121
- * sortDirection: 'asc',
122
- * limit: 10,
123
- * offset: 0
124
- * });
125
- *
126
- * // Get matches by team
127
- * const teamMatches = await getFootballMatches({
128
- * teamIds: ['102', '103'],
129
- * teamIdsOperator: 'OR',
130
- * limit: 20,
131
- * offset: 0
132
- * });
133
- *
134
- * // Get live matches
135
- * const liveMatches = await getFootballMatches({
136
- * statusTypes: ['LIVE'],
137
- * limit: 50,
138
- * offset: 0
139
- * });
140
- * ```
141
- */
142
- export declare function getFootballMatches(options: GetFootballMatchesOptions): Promise<FUSportsMatch[]>;
143
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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;AAGrC,OAAO,KAAK,EAMR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EAC5B,MAAM,SAAS,CAAC;AAWjB,YAAY,EACR,uBAAuB,EACvB,6B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- * Transforms raw API commentary data to canonical FUSportsCommentary type.
5
- */
6
- import type { FUSportsCommentaryItem } from "../../../../../types/canonical";
7
- import type { RawCommentary } from "../types";
8
- /**
9
- * Transform raw commentary entry to canonical format
10
- */
11
- export declare function transformCommentary(raw: RawCommentary): FUSportsCommentaryItem;
12
- //# sourceMappingURL=commentary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commentary.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/commentary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAa9C;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,sBAAsB,CAe9E"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Transformers barrel file
3
- */
4
- export { transformEvent } from "./match-event";
5
- export { transformMatch } from "./match";
6
- export { transformLineups } from "./lineup";
7
- export { transformStatistics } from "./statistics";
8
- export { transformMatchOdds } from "./odds";
9
- export { transformCommentary } from "./commentary";
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Lineup transformation utilities
3
- * Transforms raw API lineup responses to canonical FUSports types
4
- */
5
- import type { FUSportsMatchLineups } from "../../../../../types/canonical";
6
- import type { RawMatchLineups } from "../types";
7
- /**
8
- * Transform raw match lineups to canonical format
9
- */
10
- export declare function transformLineups(raw: RawMatchLineups): FUSportsMatchLineups;
11
- //# sourceMappingURL=lineup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lineup.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/lineup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,oBAAoB,EAIvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAuC,MAAM,UAAU,CAAC;AA+ErF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,eAAe,GAAG,oBAAoB,CAO3E"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Event transformation utilities
3
- * Transforms raw API event responses to canonical FUSports types
4
- */
5
- import type { FUSportsMatchEvent } from "../../../../../types/canonical";
6
- import type { RawMatchEvent } from "../types";
7
- /**
8
- * Transform raw event to canonical format
9
- * Returns null for unknown event types
10
- */
11
- export declare function transformEvent(raw: RawMatchEvent): FUSportsMatchEvent | null;
12
- //# sourceMappingURL=match-event.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"match-event.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/match-event.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAuB,MAAM,gCAAgC,CAAC;AAC9F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAoD9C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,kBAAkB,GAAG,IAAI,CAkB5E"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Match transformation utilities
3
- * Transforms raw API match responses to canonical FUSports types
4
- */
5
- import type { FUSportsMatch } from "../../../../../types/canonical";
6
- import type { RawMatch } from "../types";
7
- /**
8
- * Transform raw match response to canonical FUSportsMatch
9
- */
10
- export declare function transformMatch(raw: RawMatch): FUSportsMatch;
11
- //# sourceMappingURL=match.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/match.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,aAAa,EAUhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,UAAU,CAAC;AA0L1D;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,QAAQ,GAAG,aAAa,CA+C3D"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Odds transformation utilities
3
- * Transforms raw API odds responses to canonical FUSports types
4
- */
5
- import type { FUSportsMatchOdds } from "../../../../../types/canonical";
6
- import type { RawMatchOdd } from "../types";
7
- /**
8
- * Transform raw match odds array to canonical format
9
- */
10
- export declare function transformMatchOdds(matchId: string, raw: RawMatchOdd[]): FUSportsMatchOdds;
11
- //# sourceMappingURL=odds.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odds.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/odds.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAIR,iBAAiB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAmC,MAAM,UAAU,CAAC;AA8D7E;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,iBAAiB,CAKzF"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Statistics transformation utilities
3
- * Transforms raw API statistics responses to canonical FUSports types
4
- */
5
- import type { FUSportsMatchStatistics } from "../../../../../types/canonical";
6
- import type { RawMatchStatisticsResponse } from "../types";
7
- /**
8
- * Transform raw match statistics response to canonical format
9
- */
10
- export declare function transformStatistics(raw: RawMatchStatisticsResponse): FUSportsMatchStatistics;
11
- //# sourceMappingURL=statistics.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/transformers/statistics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,uBAAuB,EAG1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAqB,MAAM,UAAU,CAAC;AA2C9E;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,0BAA0B,GAAG,uBAAuB,CAY5F"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Commentary types for Sportal365 Sports API
3
- */
4
- import type { NextCacheOptions } from "../../../http";
5
- export interface RawCommentaryDetail {
6
- [key: string]: unknown;
7
- }
8
- export interface RawCommentary {
9
- external_id?: string;
10
- type?: string;
11
- commentary_type?: string;
12
- subtype_1?: string;
13
- subtype_2?: string;
14
- template_text?: string;
15
- auto_text?: string;
16
- elapsed?: string | number;
17
- elapsed_plus?: string | number;
18
- details?: RawCommentaryDetail[];
19
- incident_timestamp?: string;
20
- }
21
- export interface GetFootballMatchCommentaryOptions {
22
- /** Language code for translations. Required by the API. Defaults to 'en' */
23
- languageCode?: string;
24
- /** Next.js cache options for ISR/on-demand revalidation */
25
- next?: NextCacheOptions;
26
- }
27
- //# sourceMappingURL=commentary.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commentary.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/commentary.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,aAAa;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,iCAAiC;IAC9C,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}