fansunited-data-layer 0.0.2 → 0.0.4

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 (48) hide show
  1. package/README.md +70 -2
  2. package/dist/api/sportal365-sports/constants.d.ts +14 -0
  3. package/dist/api/sportal365-sports/constants.d.ts.map +1 -0
  4. package/dist/api/sportal365-sports/football/http.d.ts +8 -0
  5. package/dist/api/sportal365-sports/football/http.d.ts.map +1 -0
  6. package/dist/api/sportal365-sports/football/index.d.ts +2 -2
  7. package/dist/api/sportal365-sports/football/index.d.ts.map +1 -1
  8. package/dist/api/sportal365-sports/football/matches/index.d.ts +36 -2
  9. package/dist/api/sportal365-sports/football/matches/index.d.ts.map +1 -1
  10. package/dist/api/sportal365-sports/football/matches/types/index.d.ts +1 -1
  11. package/dist/api/sportal365-sports/football/matches/types/index.d.ts.map +1 -1
  12. package/dist/api/sportal365-sports/football/matches/types/option.types.d.ts +61 -0
  13. package/dist/api/sportal365-sports/football/matches/types/option.types.d.ts.map +1 -1
  14. package/dist/api/sportal365-sports/http.d.ts +29 -11
  15. package/dist/api/sportal365-sports/http.d.ts.map +1 -1
  16. package/dist/api/sportal365-sports/index.d.ts +2 -2
  17. package/dist/api/sportal365-sports/index.d.ts.map +1 -1
  18. package/dist/config/types.d.ts +0 -1
  19. package/dist/config/types.d.ts.map +1 -1
  20. package/dist/fansunited-data-layer.js +1619 -363
  21. package/dist/fansunited-data-layer.umd.cjs +6 -1
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/use-cases/index.d.ts +13 -0
  25. package/dist/use-cases/index.d.ts.map +1 -0
  26. package/dist/use-cases/mappers/index.d.ts +7 -0
  27. package/dist/use-cases/mappers/index.d.ts.map +1 -0
  28. package/dist/use-cases/mappers/matchMappers.d.ts +45 -0
  29. package/dist/use-cases/mappers/matchMappers.d.ts.map +1 -0
  30. package/dist/use-cases/match/index.d.ts +14 -0
  31. package/dist/use-cases/match/index.d.ts.map +1 -0
  32. package/dist/use-cases/match/prepareMatchList.server.d.ts +53 -0
  33. package/dist/use-cases/match/prepareMatchList.server.d.ts.map +1 -0
  34. package/dist/use-cases/match/prepareMatchScore.server.d.ts +33 -0
  35. package/dist/use-cases/match/prepareMatchScore.server.d.ts.map +1 -0
  36. package/dist/use-cases/match/usePrepareMatchList.d.ts +20 -0
  37. package/dist/use-cases/match/usePrepareMatchList.d.ts.map +1 -0
  38. package/dist/use-cases/match/usePrepareMatchScore.d.ts +31 -0
  39. package/dist/use-cases/match/usePrepareMatchScore.d.ts.map +1 -0
  40. package/dist/use-cases/team/index.d.ts +10 -0
  41. package/dist/use-cases/team/index.d.ts.map +1 -0
  42. package/dist/use-cases/team/prepareTeamMatches.server.d.ts +56 -0
  43. package/dist/use-cases/team/prepareTeamMatches.server.d.ts.map +1 -0
  44. package/dist/use-cases/team/usePrepareTeamMatches.d.ts +26 -0
  45. package/dist/use-cases/team/usePrepareTeamMatches.d.ts.map +1 -0
  46. package/dist/use-cases/types.d.ts +8 -0
  47. package/dist/use-cases/types.d.ts.map +1 -0
  48. package/package.json +5 -1
package/README.md CHANGED
@@ -19,7 +19,6 @@ setConfig({
19
19
  username: "your-username",
20
20
  password: "your-password",
21
21
  projectId: "your-project-id",
22
- domain: "https://api.example.com",
23
22
  },
24
23
  });
25
24
 
@@ -43,8 +42,9 @@ setConfig({
43
42
  username: string; // API username
44
43
  password: string; // API password
45
44
  projectId: string; // Your project ID
46
- domain: string; // API base URL
47
45
  languageCode?: string; // Default language (default: 'en')
46
+ oddClient?: string; // Odd client identifier for odds
47
+ timeout?: number; // Request timeout in ms
48
48
  }
49
49
  });
50
50
  ```
@@ -131,6 +131,66 @@ console.log(team.name);
131
131
  console.log(team.assets?.logo);
132
132
  ```
133
133
 
134
+ ## Use-Cases
135
+
136
+ Use-cases bridge the data layer and UI components from `fansunited-sports-ui`. Each use-case provides:
137
+
138
+ - **Server function** (`prepareX`) - Pure async function for SSR/SSG
139
+ - **Client hook** (`usePrepareX`) - React Query wrapper for client-side
140
+
141
+ ### Match Use-Cases
142
+
143
+ #### `prepareMatchScore` / `usePrepareMatchScore`
144
+
145
+ Single match score display.
146
+
147
+ ```typescript
148
+ import { prepareMatchScore, usePrepareMatchScore } from "fansunited-data-layer";
149
+
150
+ // Server-side
151
+ const data = await prepareMatchScore({ matchId: "7576255" });
152
+
153
+ // Client-side
154
+ const { data, isLoading } = usePrepareMatchScore({ matchId: "7576255" });
155
+ ```
156
+
157
+ #### `prepareMatchList` / `usePrepareMatchList`
158
+
159
+ Match lists with various grouping variants.
160
+
161
+ ```typescript
162
+ import { prepareMatchList } from "fansunited-data-layer";
163
+
164
+ const data = await prepareMatchList({
165
+ variant: "daily",
166
+ date: new Date(),
167
+ tournamentIds: ["premier-league"],
168
+ limit: 20,
169
+ });
170
+ ```
171
+
172
+ **Variants:** `daily`, `round`, `competition`, `teamResults`, `teamFixtures`, `teamMatches`, `teamResultsByCompetition`, `teamFixturesByCompetition`, `teamMatchesByCompetition`
173
+
174
+ ### Team Use-Cases
175
+
176
+ Convenience wrappers for team-specific match queries.
177
+
178
+ ```typescript
179
+ import { prepareTeamResults, usePrepareTeamResults } from "fansunited-data-layer";
180
+
181
+ // Get past matches for a team
182
+ const results = await prepareTeamResults("team-123", {
183
+ groupByCompetition: true,
184
+ limit: 20,
185
+ });
186
+
187
+ // Get upcoming matches
188
+ const fixtures = await prepareTeamFixtures("team-123");
189
+
190
+ // Get all matches (results + fixtures)
191
+ const matches = await prepareTeamMatches("team-123");
192
+ ```
193
+
134
194
  ## Canonical Types
135
195
 
136
196
  All responses are transformed to provider-agnostic canonical types prefixed with `FUSports`:
@@ -153,6 +213,14 @@ Full TypeScript support with exported types:
153
213
  import type { FUSportsMatch, FUSportsMatchEvent, FUSportsCompetitor } from "fansunited-data-layer";
154
214
  ```
155
215
 
216
+ ## Peer Dependencies
217
+
218
+ For use-cases with client hooks, you'll need:
219
+
220
+ ```bash
221
+ npm install @tanstack/react-query
222
+ ```
223
+
156
224
  ## License
157
225
 
158
226
  MIT
@@ -0,0 +1,14 @@
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
+ /** Standings API domain */
13
+ export declare const SPORTAL365_STANDINGS_DOMAIN = "https://standings.api.sportal365.com";
14
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
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;AAE5E,2BAA2B;AAC3B,eAAO,MAAM,2BAA2B,yCAAyC,CAAC"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -4,8 +4,8 @@
4
4
  * Football-specific endpoints for the Sportal365 Sports API.
5
5
  * All functions return canonical FUSports types.
6
6
  */
7
- export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, } from "./matches";
8
- export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, } from "./matches";
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
9
  export { getFootballTeam } from "./teams";
10
10
  export type { GetFootballTeamOptions } from "./teams";
11
11
  //# 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,GAC7B,MAAM,WAAW,CAAC;AAEnB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,GACpB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,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,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"}
@@ -4,8 +4,8 @@
4
4
  * Fetches match data and transforms to canonical FUSports types.
5
5
  */
6
6
  import type { FUSportsMatch, FUSportsMatchEvent, FUSportsMatchLineups, FUSportsMatchStatistics, FUSportsMatchOdds, FUSportsCommentaryItem } from "../../../../types/canonical";
7
- import type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions } from "./types";
8
- export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, } from "./types";
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
9
  /**
10
10
  * Get a football match by ID, UUID, or slug
11
11
  *
@@ -106,4 +106,38 @@ export declare function getFootballMatchStatistics(matchId: string, options?: Ge
106
106
  * ```
107
107
  */
108
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[]>;
109
143
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/matches/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACR,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACzB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EAMR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACpC,MAAM,SAAS,CAAC;AAWjB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,GACpB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,aAAa,CAAC,CAkBrH;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,sBAAsB,CACxC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,6BAAkC,GAC5C,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAW/B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,uBAAuB,CACzC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,8BAAmC,GAC7C,OAAO,CAAC,oBAAoB,CAAC,CAW/B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,oBAAoB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,2BAAgC,GAC1C,OAAO,CAAC,iBAAiB,CAAC,CAiB5B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,0BAA0B,CAC5C,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,iCAAsC,GAChD,OAAO,CAAC,uBAAuB,CAAC,CAWlC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,0BAA0B,CAC5C,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,iCAAsC,GAChD,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAWnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/api/sportal365-sports/football/matches/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAA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B,0BAA0B,CAC5C,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,iCAAsC,GAChD,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAWnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAgDrG"}
@@ -10,7 +10,7 @@ export type { RawMatchMinute } from "./minute.types";
10
10
  export type { RawOddsBookmakerAsset, RawOddsBookmakerLink, RawOddsBookmakerBranding, RawOddsBookmakerEventUrl, RawOddsBookmaker, RawOddsMarketType, RawOddsMarketScope, RawOddsSelectionUrl, RawOddsSelectionProviderInfo, RawOddsSelection, RawOddsMarket, RawMatchOdd, } from "./odds.types";
11
11
  export type { RawLineupCountry, RawLineupPlayerDetails, RawLineupPlayerType, RawLineupPlayerEntry, RawLineupCoach, RawTeamLineup, RawMatchLineups, } from "./lineup.types";
12
12
  export type { RawStatisticsData, RawTeamStatisticsEntry, RawMatchStatisticsResponse } from "./statistics.types";
13
- export type { OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, } from "./option.types";
13
+ export type { OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchesOptions, } from "./option.types";
14
14
  export type { RawCommentaryDetail, RawCommentary, GetFootballMatchCommentaryOptions } from "./commentary.types";
15
15
  export type { RawMatchCoverage, RawLineupStatus, RawMatch } from "./match.types";
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGzE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAGjD,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG1E,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,YAAY,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGtG,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,YAAY,EACR,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,gBAAgB,EAChB,aAAa,EACb,WAAW,GACd,MAAM,cAAc,CAAC;AAGtB,YAAY,EACR,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,eAAe,GAClB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGhH,YAAY,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,GACpC,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAGhH,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGzE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAGjD,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG1E,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,YAAY,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGtG,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,YAAY,EACR,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,gBAAgB,EAChB,aAAa,EACb,WAAW,GACd,MAAM,cAAc,CAAC;AAGtB,YAAY,EACR,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,eAAe,GAClB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGhH,YAAY,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,yBAAyB,GAC5B,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AAGhH,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -52,4 +52,65 @@ export interface GetFootballMatchStatisticsOptions {
52
52
  /** Language code for translations. Defaults to 'en' */
53
53
  languageCode?: string;
54
54
  }
55
+ /** Status types for filtering matches */
56
+ export type MatchStatusType = "FINISHED" | "NOT_STARTED" | "LIVE" | "INTERRUPTED" | "CANCELLED" | "UNKNOWN" | "POSTPONED";
57
+ /** Sort direction for matches */
58
+ export type SortDirection = "asc" | "desc";
59
+ /**
60
+ * Options for fetching multiple football matches
61
+ */
62
+ export interface GetFootballMatchesOptions {
63
+ /** Language code for translations (e.g., 'en', 'bg'). Defaults to 'en' */
64
+ languageCode?: string;
65
+ /** Maximum number of matches to return */
66
+ limit: number;
67
+ /** Offset for pagination */
68
+ offset: number;
69
+ /** Filter by tournament IDs */
70
+ tournamentIds?: string[];
71
+ /** Filter by season IDs */
72
+ seasonIds?: string[];
73
+ /** Filter by stage IDs */
74
+ stageIds?: string[];
75
+ /** Filter by group IDs */
76
+ groupIds?: string[];
77
+ /** Filter by round IDs */
78
+ roundIds?: string[];
79
+ /** Filter by stage:round combinations (format: "stageId:roundId") */
80
+ roundFilter?: string[];
81
+ /** Filter matches from this kickoff time (ISO 8601 format) */
82
+ fromKickoffTime?: string;
83
+ /** Filter matches until this kickoff time (ISO 8601 format) */
84
+ toKickoffTime?: string;
85
+ /** Filter by team IDs */
86
+ teamIds?: string[];
87
+ /** Operator for teamIds filter ('AND' or 'OR'). Defaults to 'AND' */
88
+ teamIdsOperator?: "AND" | "OR";
89
+ /** Filter by referee ID */
90
+ refereeId?: string;
91
+ /** Filter by venue ID */
92
+ venueId?: string;
93
+ /** Filter by player ID */
94
+ playerId?: string;
95
+ /** Filter by status types (e.g., 'FINISHED', 'LIVE') */
96
+ statusTypes?: MatchStatusType[];
97
+ /** Filter by status codes */
98
+ statusCodes?: string[];
99
+ /** Filter by odd client */
100
+ oddClient?: string;
101
+ /** Type of odds to include */
102
+ oddType?: OddType;
103
+ /** Scope type for odds */
104
+ scopeType?: ScopeType;
105
+ /** Format of odds */
106
+ oddFormat?: OddFormat;
107
+ /** Market types to include */
108
+ marketTypes?: MarketType[];
109
+ /** Filter odds by bookmaker IDs */
110
+ bookmakerIds?: string[];
111
+ /** Sort direction by kickoff time */
112
+ sortDirection?: SortDirection;
113
+ /** Optional data to include ('MAIN_EVENTS') */
114
+ optionalData?: "MAIN_EVENTS"[];
115
+ }
55
116
  //# sourceMappingURL=option.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"option.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/option.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,WAAW,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AAC/D,MAAM,MAAM,UAAU,GAChB,KAAK,GACL,IAAI,GACJ,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,GACb,qBAAqB,GACrB,eAAe,GACf,kBAAkB,GAClB,uBAAuB,GACvB,6BAA6B,GAC7B,wBAAwB,GACxB,6BAA6B,CAAC;AACpC,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,eAAe,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACpC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,6BAA6B;IAC1C,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,8BAA8B;IAC3C,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,2BAA2B;IACxC,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAC9C,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"option.types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/api/sportal365-sports/football/matches/types/option.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,WAAW,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AAC/D,MAAM,MAAM,UAAU,GAChB,KAAK,GACL,IAAI,GACJ,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,GACb,qBAAqB,GACrB,eAAe,GACf,kBAAkB,GAClB,uBAAuB,GACvB,6BAA6B,GAC7B,wBAAwB,GACxB,6BAA6B,CAAC;AACpC,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,eAAe,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACpC,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qBAAqB;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAGxB,qCAAqC;IACrC,aAAa,CAAC,EAAE,aAAa,CAAC;IAG9B,+CAA+C;IAC/C,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Sportal365 Sports API - HTTP client
3
- * Shared HTTP layer for all Sportal365 Sports API requests
2
+ * Sportal365 Sports API - HTTP client factory
3
+ * Creates sport-specific HTTP clients for Sportal365 APIs
4
4
  */
5
5
  export interface RequestOptions {
6
6
  /** API path (e.g., '/v2/matches/123') */
@@ -8,17 +8,35 @@ export interface RequestOptions {
8
8
  /** Query parameters */
9
9
  params?: Record<string, string | string[] | undefined>;
10
10
  }
11
+ export interface Sportal365HttpClient {
12
+ /**
13
+ * Make a GET request to the Sportal365 Sports API
14
+ *
15
+ * Handles:
16
+ * - Authentication (Basic Auth)
17
+ * - Project ID header
18
+ * - Timeout
19
+ * - Error handling
20
+ *
21
+ * @param options - Request options
22
+ * @returns Parsed JSON response
23
+ */
24
+ get<T>(options: RequestOptions): Promise<T>;
25
+ }
11
26
  /**
12
- * Make a GET request to the Sportal365 Sports API
27
+ * Create an HTTP client for a specific Sportal365 API domain
28
+ *
29
+ * @param domain - The base URL for the API (e.g., 'https://football.api.sportal365.com')
30
+ * @returns HTTP client configured for the specified domain
13
31
  *
14
- * Handles:
15
- * - Authentication (Basic Auth)
16
- * - Project ID header
17
- * - Timeout
18
- * - Error handling
32
+ * @example
33
+ * ```typescript
34
+ * import { createHttpClient } from '../http';
35
+ * import { SPORTAL365_FOOTBALL_DOMAIN } from '../constants';
19
36
  *
20
- * @param options - Request options
21
- * @returns Parsed JSON response
37
+ * const footballHttp = createHttpClient(SPORTAL365_FOOTBALL_DOMAIN);
38
+ * const data = await footballHttp.get({ path: '/v2/matches/123' });
39
+ * ```
22
40
  */
23
- export declare function get<T>(options: RequestOptions): Promise<T>;
41
+ export declare function createHttpClient(domain: string): Sportal365HttpClient;
24
42
  //# sourceMappingURL=http.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/http.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4BH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;CACxD;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,CA2ChE"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/http.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,WAAW,cAAc;IAC3B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;CAC1D;AAED,MAAM,WAAW,oBAAoB;IACjC;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CAC/C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,oBAAoB,CA0DrE"}
@@ -4,6 +4,6 @@
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, getFootballTeam, } from "./football";
8
- export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballTeamOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, } from "./football";
7
+ export { getFootballMatch, getFootballMatchEvents, getFootballMatchLineups, getFootballMatchOdds, getFootballMatchStatistics, getFootballMatchCommentary, getFootballMatches, getFootballTeam, } from "./football";
8
+ export type { GetFootballMatchOptions, GetFootballMatchEventsOptions, GetFootballMatchLineupsOptions, GetFootballMatchOddsOptions, GetFootballMatchStatisticsOptions, GetFootballMatchCommentaryOptions, GetFootballMatchesOptions, GetFootballTeamOptions, OddType, ScopeType, OddFormat, MarketType, OptionalMatchData, MatchStatusType, SortDirection, } from "./football";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -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,eAAe,GAClB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,sBAAsB,EACtB,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,GACpB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sportal365-sports/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,eAAe,GAClB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACR,uBAAuB,EACvB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,sBAAsB,EACtB,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,GAChB,MAAM,YAAY,CAAC"}
@@ -5,7 +5,6 @@ export interface Sportal365SportsConfig {
5
5
  username: string;
6
6
  password: string;
7
7
  projectId: string;
8
- domain: string;
9
8
  /** Default language code for API responses (e.g., 'en', 'bg'). Defaults to 'en' */
10
9
  languageCode?: string;
11
10
  /** Odd client identifier for fetching odds (e.g., 'sportal_web') */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/config/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,mFAAmF;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC5B,kDAAkD;IAClD,qBAAqB,EAAE,kBAAkB,GAAG,qBAAqB,CAAC;IAElE,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAE1C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