@sudobility/heavymath_indexer_client 0.0.25 → 0.0.27

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 (49) hide show
  1. package/dist/types/baseball.d.ts +101 -0
  2. package/dist/types/baseball.d.ts.map +1 -0
  3. package/dist/types/baseball.js +2 -0
  4. package/dist/types/baseball.js.map +1 -0
  5. package/dist/types/basketball.d.ts +135 -0
  6. package/dist/types/basketball.d.ts.map +1 -0
  7. package/dist/types/basketball.js +2 -0
  8. package/dist/types/basketball.js.map +1 -0
  9. package/dist/types/f1.d.ts +142 -0
  10. package/dist/types/f1.d.ts.map +1 -0
  11. package/dist/types/f1.js +2 -0
  12. package/dist/types/f1.js.map +1 -0
  13. package/dist/types/football.d.ts +163 -0
  14. package/dist/types/football.d.ts.map +1 -0
  15. package/dist/types/football.js +2 -0
  16. package/dist/types/football.js.map +1 -0
  17. package/dist/types/handball.d.ts +107 -0
  18. package/dist/types/handball.d.ts.map +1 -0
  19. package/dist/types/handball.js +2 -0
  20. package/dist/types/handball.js.map +1 -0
  21. package/dist/types/hockey.d.ts +134 -0
  22. package/dist/types/hockey.d.ts.map +1 -0
  23. package/dist/types/hockey.js +2 -0
  24. package/dist/types/hockey.js.map +1 -0
  25. package/dist/types/mma.d.ts +67 -0
  26. package/dist/types/mma.d.ts.map +1 -0
  27. package/dist/types/mma.js +2 -0
  28. package/dist/types/mma.js.map +1 -0
  29. package/dist/types/nfl.d.ts +130 -0
  30. package/dist/types/nfl.d.ts.map +1 -0
  31. package/dist/types/nfl.js +2 -0
  32. package/dist/types/nfl.js.map +1 -0
  33. package/dist/types/rugby.d.ts +101 -0
  34. package/dist/types/rugby.d.ts.map +1 -0
  35. package/dist/types/rugby.js +2 -0
  36. package/dist/types/rugby.js.map +1 -0
  37. package/dist/types/sports.d.ts +10 -0
  38. package/dist/types/sports.d.ts.map +1 -1
  39. package/dist/types/sports.js +10 -1
  40. package/dist/types/sports.js.map +1 -1
  41. package/dist/types/volleyball.d.ts +109 -0
  42. package/dist/types/volleyball.d.ts.map +1 -0
  43. package/dist/types/volleyball.js +2 -0
  44. package/dist/types/volleyball.js.map +1 -0
  45. package/dist/types.d.ts +1 -1
  46. package/dist/types.d.ts.map +1 -1
  47. package/dist/types.js +1 -1
  48. package/dist/types.js.map +1 -1
  49. package/package.json +5 -5
@@ -0,0 +1,101 @@
1
+ export interface BaseballCountry {
2
+ id: number;
3
+ name: string;
4
+ code: string | null;
5
+ flag: string | null;
6
+ }
7
+ export interface BaseballLeague {
8
+ id: number;
9
+ name: string;
10
+ type: string;
11
+ logo: string | null;
12
+ }
13
+ export interface BaseballSeason {
14
+ season: number;
15
+ start: string;
16
+ end: string;
17
+ current: boolean;
18
+ }
19
+ export interface BaseballLeagueResponse {
20
+ id: number;
21
+ name: string;
22
+ type: string;
23
+ logo: string | null;
24
+ country: BaseballCountry;
25
+ seasons: BaseballSeason[];
26
+ }
27
+ export interface BaseballLeaguesParams {
28
+ id?: number;
29
+ name?: string;
30
+ country?: string;
31
+ country_id?: number;
32
+ type?: string;
33
+ season?: number;
34
+ search?: string;
35
+ }
36
+ export interface BaseballTeam {
37
+ id: number;
38
+ name: string;
39
+ logo: string | null;
40
+ national: boolean;
41
+ }
42
+ export interface BaseballTeamResponse {
43
+ id: number;
44
+ name: string;
45
+ logo: string | null;
46
+ national: boolean;
47
+ country: BaseballCountry;
48
+ }
49
+ export interface BaseballTeamsParams {
50
+ id?: number;
51
+ name?: string;
52
+ country?: string;
53
+ country_id?: number;
54
+ league?: number;
55
+ season?: number;
56
+ search?: string;
57
+ }
58
+ export interface BaseballGameStatus {
59
+ long: string;
60
+ short: string;
61
+ }
62
+ export interface BaseballScores {
63
+ home: {
64
+ hits: number | null;
65
+ errors: number | null;
66
+ innings: Record<string, number | null>;
67
+ total: number | null;
68
+ };
69
+ away: {
70
+ hits: number | null;
71
+ errors: number | null;
72
+ innings: Record<string, number | null>;
73
+ total: number | null;
74
+ };
75
+ }
76
+ export interface BaseballGame {
77
+ id: number;
78
+ date: string;
79
+ time: string;
80
+ timestamp: number;
81
+ timezone: string;
82
+ week: string | null;
83
+ status: BaseballGameStatus;
84
+ country: BaseballCountry;
85
+ league: BaseballLeague;
86
+ teams: {
87
+ home: BaseballTeam;
88
+ away: BaseballTeam;
89
+ };
90
+ scores: BaseballScores;
91
+ }
92
+ export interface BaseballGamesParams {
93
+ id?: number;
94
+ date?: string;
95
+ league?: number;
96
+ season?: number;
97
+ team?: number;
98
+ timezone?: string;
99
+ h2h?: string;
100
+ }
101
+ //# sourceMappingURL=baseball.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseball.d.ts","sourceRoot":"","sources":["../../src/types/baseball.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM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AI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;QACvC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE;QACL,IAAI,EAAE,YAAY,CAAC;QACnB,IAAI,EAAE,YAAY,CAAC;KACpB,CAAC;IACF,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=baseball.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseball.js","sourceRoot":"","sources":["../../src/types/baseball.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @fileoverview Baseball type definitions\n * @description Types for baseball API responses, matching api-sports.io response format.\n */\n\nexport interface BaseballCountry {\n id: number;\n name: string;\n code: string | null;\n flag: string | null;\n}\n\nexport interface BaseballLeague {\n id: number;\n name: string;\n type: string;\n logo: string | null;\n}\n\nexport interface BaseballSeason {\n season: number;\n start: string;\n end: string;\n current: boolean;\n}\n\nexport interface BaseballLeagueResponse {\n id: number;\n name: string;\n type: string;\n logo: string | null;\n country: BaseballCountry;\n seasons: BaseballSeason[];\n}\n\nexport interface BaseballLeaguesParams {\n id?: number;\n name?: string;\n country?: string;\n country_id?: number;\n type?: string;\n season?: number;\n search?: string;\n}\n\nexport interface BaseballTeam {\n id: number;\n name: string;\n logo: string | null;\n national: boolean;\n}\n\nexport interface BaseballTeamResponse {\n id: number;\n name: string;\n logo: string | null;\n national: boolean;\n country: BaseballCountry;\n}\n\nexport interface BaseballTeamsParams {\n id?: number;\n name?: string;\n country?: string;\n country_id?: number;\n league?: number;\n season?: number;\n search?: string;\n}\n\nexport interface BaseballGameStatus {\n long: string;\n short: string;\n}\n\nexport interface BaseballScores {\n home: {\n hits: number | null;\n errors: number | null;\n innings: Record<string, number | null>;\n total: number | null;\n };\n away: {\n hits: number | null;\n errors: number | null;\n innings: Record<string, number | null>;\n total: number | null;\n };\n}\n\nexport interface BaseballGame {\n id: number;\n date: string;\n time: string;\n timestamp: number;\n timezone: string;\n week: string | null;\n status: BaseballGameStatus;\n country: BaseballCountry;\n league: BaseballLeague;\n teams: {\n home: BaseballTeam;\n away: BaseballTeam;\n };\n scores: BaseballScores;\n}\n\nexport interface BaseballGamesParams {\n id?: number;\n date?: string;\n league?: number;\n season?: number;\n team?: number;\n timezone?: string;\n h2h?: string;\n}\n"]}
@@ -0,0 +1,135 @@
1
+ import type { Optional } from '@sudobility/types';
2
+ export interface BasketballCountry {
3
+ id: number;
4
+ name: string;
5
+ code: Optional<string>;
6
+ flag: Optional<string>;
7
+ }
8
+ export interface BasketballLeague {
9
+ id: number;
10
+ name: string;
11
+ type: string;
12
+ logo: Optional<string>;
13
+ }
14
+ export interface BasketballSeason {
15
+ season: string;
16
+ start: string;
17
+ end: string;
18
+ }
19
+ export interface BasketballLeagueResponse {
20
+ id: number;
21
+ name: string;
22
+ type: string;
23
+ logo: Optional<string>;
24
+ country: BasketballCountry;
25
+ seasons: BasketballSeason[];
26
+ }
27
+ export interface BasketballLeaguesParams {
28
+ id?: Optional<number>;
29
+ name?: Optional<string>;
30
+ country?: Optional<string>;
31
+ season?: Optional<string>;
32
+ type?: Optional<string>;
33
+ current?: Optional<boolean>;
34
+ search?: Optional<string>;
35
+ }
36
+ export interface BasketballSeasonsParams {
37
+ league?: Optional<number>;
38
+ }
39
+ export interface BasketballTeam {
40
+ id: number;
41
+ name: string;
42
+ logo: Optional<string>;
43
+ national: boolean;
44
+ }
45
+ export interface BasketballTeamResponse {
46
+ id: number;
47
+ name: string;
48
+ logo: Optional<string>;
49
+ national: boolean;
50
+ country: {
51
+ id: number;
52
+ name: string;
53
+ code: Optional<string>;
54
+ flag: Optional<string>;
55
+ };
56
+ }
57
+ export interface BasketballTeamsParams {
58
+ id?: Optional<number>;
59
+ name?: Optional<string>;
60
+ country?: Optional<number>;
61
+ league?: Optional<number>;
62
+ season?: Optional<string>;
63
+ search?: Optional<string>;
64
+ }
65
+ export interface BasketballGameStatus {
66
+ long: string;
67
+ short: string;
68
+ timer: Optional<string>;
69
+ }
70
+ export interface BasketballScores {
71
+ home: {
72
+ quarter_1: Optional<number>;
73
+ quarter_2: Optional<number>;
74
+ quarter_3: Optional<number>;
75
+ quarter_4: Optional<number>;
76
+ over_time: Optional<number>;
77
+ total: Optional<number>;
78
+ };
79
+ away: {
80
+ quarter_1: Optional<number>;
81
+ quarter_2: Optional<number>;
82
+ quarter_3: Optional<number>;
83
+ quarter_4: Optional<number>;
84
+ over_time: Optional<number>;
85
+ total: Optional<number>;
86
+ };
87
+ }
88
+ export interface BasketballGame {
89
+ id: number;
90
+ date: string;
91
+ time: string;
92
+ timestamp: number;
93
+ timezone: string;
94
+ stage: Optional<string>;
95
+ week: Optional<string>;
96
+ status: BasketballGameStatus;
97
+ league: {
98
+ id: number;
99
+ name: string;
100
+ type: string;
101
+ season: string;
102
+ logo: Optional<string>;
103
+ };
104
+ country: {
105
+ id: number;
106
+ name: string;
107
+ code: Optional<string>;
108
+ flag: Optional<string>;
109
+ };
110
+ teams: {
111
+ home: {
112
+ id: number;
113
+ name: string;
114
+ logo: Optional<string>;
115
+ };
116
+ away: {
117
+ id: number;
118
+ name: string;
119
+ logo: Optional<string>;
120
+ };
121
+ };
122
+ scores: BasketballScores;
123
+ }
124
+ export interface BasketballGamesParams {
125
+ id?: Optional<number>;
126
+ date?: Optional<string>;
127
+ league?: Optional<number>;
128
+ season?: Optional<string>;
129
+ team?: Optional<number>;
130
+ timezone?: Optional<string>;
131
+ live?: Optional<string>;
132
+ from?: Optional<string>;
133
+ to?: Optional<string>;
134
+ }
135
+ //# sourceMappingURL=basketball.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basketball.d.ts","sourceRoot":"","sources":["../../src/types/basketball.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAA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,MAAM,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACxB,EAAE,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACvB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=basketball.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basketball.js","sourceRoot":"","sources":["../../src/types/basketball.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @fileoverview Basketball type definitions\n * @description Types for basketball API responses, matching api-sports.io response format.\n */\n\nimport type { Optional } from '@sudobility/types';\n\nexport interface BasketballCountry {\n id: number;\n name: string;\n code: Optional<string>;\n flag: Optional<string>;\n}\n\nexport interface BasketballLeague {\n id: number;\n name: string;\n type: string;\n logo: Optional<string>;\n}\n\nexport interface BasketballSeason {\n season: string;\n start: string;\n end: string;\n}\n\nexport interface BasketballLeagueResponse {\n id: number;\n name: string;\n type: string;\n logo: Optional<string>;\n country: BasketballCountry;\n seasons: BasketballSeason[];\n}\n\nexport interface BasketballLeaguesParams {\n id?: Optional<number>;\n name?: Optional<string>;\n country?: Optional<string>;\n season?: Optional<string>;\n type?: Optional<string>;\n current?: Optional<boolean>;\n search?: Optional<string>;\n}\n\nexport interface BasketballSeasonsParams {\n league?: Optional<number>;\n}\n\nexport interface BasketballTeam {\n id: number;\n name: string;\n logo: Optional<string>;\n national: boolean;\n}\n\nexport interface BasketballTeamResponse {\n id: number;\n name: string;\n logo: Optional<string>;\n national: boolean;\n country: {\n id: number;\n name: string;\n code: Optional<string>;\n flag: Optional<string>;\n };\n}\n\nexport interface BasketballTeamsParams {\n id?: Optional<number>;\n name?: Optional<string>;\n country?: Optional<number>;\n league?: Optional<number>;\n season?: Optional<string>;\n search?: Optional<string>;\n}\n\nexport interface BasketballGameStatus {\n long: string;\n short: string;\n timer: Optional<string>;\n}\n\nexport interface BasketballScores {\n home: {\n quarter_1: Optional<number>;\n quarter_2: Optional<number>;\n quarter_3: Optional<number>;\n quarter_4: Optional<number>;\n over_time: Optional<number>;\n total: Optional<number>;\n };\n away: {\n quarter_1: Optional<number>;\n quarter_2: Optional<number>;\n quarter_3: Optional<number>;\n quarter_4: Optional<number>;\n over_time: Optional<number>;\n total: Optional<number>;\n };\n}\n\nexport interface BasketballGame {\n id: number;\n date: string;\n time: string;\n timestamp: number;\n timezone: string;\n stage: Optional<string>;\n week: Optional<string>;\n status: BasketballGameStatus;\n league: {\n id: number;\n name: string;\n type: string;\n season: string;\n logo: Optional<string>;\n };\n country: {\n id: number;\n name: string;\n code: Optional<string>;\n flag: Optional<string>;\n };\n teams: {\n home: {\n id: number;\n name: string;\n logo: Optional<string>;\n };\n away: {\n id: number;\n name: string;\n logo: Optional<string>;\n };\n };\n scores: BasketballScores;\n}\n\nexport interface BasketballGamesParams {\n id?: Optional<number>;\n date?: Optional<string>;\n league?: Optional<number>;\n season?: Optional<string>;\n team?: Optional<number>;\n timezone?: Optional<string>;\n live?: Optional<string>;\n from?: Optional<string>;\n to?: Optional<string>;\n}\n"]}
@@ -0,0 +1,142 @@
1
+ export interface F1Competition {
2
+ id: number;
3
+ name: string;
4
+ location: {
5
+ country: string;
6
+ city: string;
7
+ };
8
+ }
9
+ export interface F1CompetitionsParams {
10
+ id?: number;
11
+ name?: string;
12
+ country?: string;
13
+ city?: string;
14
+ search?: string;
15
+ }
16
+ export interface F1Circuit {
17
+ id: number;
18
+ name: string;
19
+ image: string | null;
20
+ competition: {
21
+ id: number;
22
+ name: string;
23
+ location: {
24
+ country: string;
25
+ city: string;
26
+ };
27
+ };
28
+ first_grand_prix: number | null;
29
+ laps: number | null;
30
+ length: string | null;
31
+ race_distance: string | null;
32
+ lap_record: {
33
+ time: string | null;
34
+ driver: string | null;
35
+ year: string | null;
36
+ } | null;
37
+ capacity: number | null;
38
+ opened: number | null;
39
+ owner: string | null;
40
+ }
41
+ export interface F1CircuitsParams {
42
+ id?: number;
43
+ name?: string;
44
+ country?: string;
45
+ city?: string;
46
+ search?: string;
47
+ }
48
+ export interface F1Team {
49
+ id: number;
50
+ name: string;
51
+ logo: string | null;
52
+ base: string | null;
53
+ first_team_entry: number | null;
54
+ world_championships: number | null;
55
+ highest_race_finish: {
56
+ position: number | null;
57
+ number: number | null;
58
+ } | null;
59
+ pole_positions: number | null;
60
+ fastest_laps: number | null;
61
+ president: string | null;
62
+ director: string | null;
63
+ technical_manager: string | null;
64
+ chassis: string | null;
65
+ engine: string | null;
66
+ tyres: string | null;
67
+ }
68
+ export interface F1TeamsParams {
69
+ id?: number;
70
+ name?: string;
71
+ search?: string;
72
+ }
73
+ export interface F1Driver {
74
+ id: number;
75
+ name: string;
76
+ abbr: string | null;
77
+ number: number | null;
78
+ image: string | null;
79
+ nationality: string | null;
80
+ country: {
81
+ name: string | null;
82
+ code: string | null;
83
+ } | null;
84
+ birthdate: string | null;
85
+ birthplace: string | null;
86
+ grands_prix_entered: number | null;
87
+ world_championships: number | null;
88
+ podiums: number | null;
89
+ highest_race_finish: {
90
+ position: number | null;
91
+ number: number | null;
92
+ } | null;
93
+ highest_grid_position: number | null;
94
+ career_points: string | null;
95
+ teams: {
96
+ season: number;
97
+ team: F1Team;
98
+ }[];
99
+ }
100
+ export interface F1DriversParams {
101
+ id?: number;
102
+ name?: string;
103
+ search?: string;
104
+ }
105
+ export interface F1RaceStatus {
106
+ short: string;
107
+ long: string;
108
+ }
109
+ export interface F1Race {
110
+ id: number;
111
+ competition: F1Competition;
112
+ circuit: F1Circuit;
113
+ season: number;
114
+ type: string;
115
+ laps: {
116
+ current: number | null;
117
+ total: number | null;
118
+ };
119
+ fastest_lap: {
120
+ driver: {
121
+ id: number | null;
122
+ };
123
+ time: string | null;
124
+ } | null;
125
+ distance: string | null;
126
+ timezone: string;
127
+ date: string;
128
+ weather: string | null;
129
+ status: F1RaceStatus;
130
+ }
131
+ export interface F1RacesParams {
132
+ id?: number;
133
+ date?: string;
134
+ next?: number;
135
+ last?: number;
136
+ competition?: number;
137
+ circuit?: number;
138
+ season?: number;
139
+ type?: string;
140
+ timezone?: string;
141
+ }
142
+ //# sourceMappingURL=f1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"f1.d.ts","sourceRoot":"","sources":["../../src/types/f1.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE;QACX,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE;YACR,OAAO,EAAE,MAAM,CAAC;YAChB,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;IACF,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,GAAG,IAAI,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nB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,WAAW,EAAE;QACX,MAAM,EAAE;YACN,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;SACnB,CAAC;QACF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,GAAG,IAAI,CAAC;IACT,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=f1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"f1.js","sourceRoot":"","sources":["../../src/types/f1.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @fileoverview Formula 1 type definitions\n * @description Types for F1 API responses, matching api-sports.io response format.\n */\n\nexport interface F1Competition {\n id: number;\n name: string;\n location: {\n country: string;\n city: string;\n };\n}\n\nexport interface F1CompetitionsParams {\n id?: number;\n name?: string;\n country?: string;\n city?: string;\n search?: string;\n}\n\nexport interface F1Circuit {\n id: number;\n name: string;\n image: string | null;\n competition: {\n id: number;\n name: string;\n location: {\n country: string;\n city: string;\n };\n };\n first_grand_prix: number | null;\n laps: number | null;\n length: string | null;\n race_distance: string | null;\n lap_record: {\n time: string | null;\n driver: string | null;\n year: string | null;\n } | null;\n capacity: number | null;\n opened: number | null;\n owner: string | null;\n}\n\nexport interface F1CircuitsParams {\n id?: number;\n name?: string;\n country?: string;\n city?: string;\n search?: string;\n}\n\nexport interface F1Team {\n id: number;\n name: string;\n logo: string | null;\n base: string | null;\n first_team_entry: number | null;\n world_championships: number | null;\n highest_race_finish: {\n position: number | null;\n number: number | null;\n } | null;\n pole_positions: number | null;\n fastest_laps: number | null;\n president: string | null;\n director: string | null;\n technical_manager: string | null;\n chassis: string | null;\n engine: string | null;\n tyres: string | null;\n}\n\nexport interface F1TeamsParams {\n id?: number;\n name?: string;\n search?: string;\n}\n\nexport interface F1Driver {\n id: number;\n name: string;\n abbr: string | null;\n number: number | null;\n image: string | null;\n nationality: string | null;\n country: {\n name: string | null;\n code: string | null;\n } | null;\n birthdate: string | null;\n birthplace: string | null;\n grands_prix_entered: number | null;\n world_championships: number | null;\n podiums: number | null;\n highest_race_finish: {\n position: number | null;\n number: number | null;\n } | null;\n highest_grid_position: number | null;\n career_points: string | null;\n teams: {\n season: number;\n team: F1Team;\n }[];\n}\n\nexport interface F1DriversParams {\n id?: number;\n name?: string;\n search?: string;\n}\n\nexport interface F1RaceStatus {\n short: string;\n long: string;\n}\n\nexport interface F1Race {\n id: number;\n competition: F1Competition;\n circuit: F1Circuit;\n season: number;\n type: string;\n laps: {\n current: number | null;\n total: number | null;\n };\n fastest_lap: {\n driver: {\n id: number | null;\n };\n time: string | null;\n } | null;\n distance: string | null;\n timezone: string;\n date: string;\n weather: string | null;\n status: F1RaceStatus;\n}\n\nexport interface F1RacesParams {\n id?: number;\n date?: string;\n next?: number;\n last?: number;\n competition?: number;\n circuit?: number;\n season?: number;\n type?: string;\n timezone?: string;\n}\n"]}
@@ -0,0 +1,163 @@
1
+ import type { Optional } from '@sudobility/types';
2
+ export interface FootballCountry {
3
+ name: string;
4
+ code: Optional<string>;
5
+ flag: Optional<string>;
6
+ }
7
+ export interface FootballLeague {
8
+ id: number;
9
+ name: string;
10
+ type: 'League' | 'Cup';
11
+ logo: string;
12
+ }
13
+ export interface FootballSeason {
14
+ year: number;
15
+ start: string;
16
+ end: string;
17
+ current: boolean;
18
+ coverage: FootballSeasonCoverage;
19
+ }
20
+ export interface FootballSeasonCoverage {
21
+ fixtures: FootballFixturesCoverage;
22
+ standings: boolean;
23
+ players: boolean;
24
+ top_scorers: boolean;
25
+ top_assists: boolean;
26
+ top_cards: boolean;
27
+ injuries: boolean;
28
+ predictions: boolean;
29
+ odds: boolean;
30
+ }
31
+ export interface FootballFixturesCoverage {
32
+ events: boolean;
33
+ lineups: boolean;
34
+ statistics_fixtures: boolean;
35
+ statistics_players: boolean;
36
+ }
37
+ export interface FootballLeagueResponse {
38
+ league: FootballLeague;
39
+ country: FootballCountry;
40
+ seasons: FootballSeason[];
41
+ }
42
+ export interface FootballLeaguesParams {
43
+ id?: Optional<number>;
44
+ name?: Optional<string>;
45
+ country?: Optional<string>;
46
+ code?: Optional<string>;
47
+ season?: Optional<number>;
48
+ team?: Optional<number>;
49
+ type?: Optional<'league' | 'cup'>;
50
+ current?: Optional<boolean>;
51
+ search?: Optional<string>;
52
+ last?: Optional<number>;
53
+ }
54
+ export interface FootballTeam {
55
+ id: number;
56
+ name: string;
57
+ code: Optional<string>;
58
+ country: string;
59
+ founded: Optional<number>;
60
+ national: boolean;
61
+ logo: string;
62
+ }
63
+ export interface FootballVenue {
64
+ id: Optional<number>;
65
+ name: string;
66
+ address: Optional<string>;
67
+ city: string;
68
+ capacity: Optional<number>;
69
+ surface: Optional<string>;
70
+ image: Optional<string>;
71
+ }
72
+ export interface FootballTeamResponse {
73
+ team: FootballTeam;
74
+ venue: FootballVenue;
75
+ }
76
+ export interface FootballTeamsParams {
77
+ id?: Optional<number>;
78
+ name?: Optional<string>;
79
+ league?: Optional<number>;
80
+ season?: Optional<number>;
81
+ country?: Optional<string>;
82
+ code?: Optional<string>;
83
+ venue?: Optional<number>;
84
+ search?: Optional<string>;
85
+ }
86
+ export interface FootballFixture {
87
+ id: number;
88
+ referee: Optional<string>;
89
+ timezone: string;
90
+ date: string;
91
+ timestamp: number;
92
+ periods: FootballFixturePeriods;
93
+ venue: FootballFixtureVenue;
94
+ status: FootballFixtureStatus;
95
+ }
96
+ export interface FootballFixturePeriods {
97
+ first: Optional<number>;
98
+ second: Optional<number>;
99
+ }
100
+ export interface FootballFixtureVenue {
101
+ id: Optional<number>;
102
+ name: Optional<string>;
103
+ city: Optional<string>;
104
+ }
105
+ export interface FootballFixtureStatus {
106
+ long: string;
107
+ short: FootballFixtureStatusCode;
108
+ elapsed: Optional<number>;
109
+ }
110
+ export type FootballFixtureStatusCode = 'TBD' | 'NS' | '1H' | 'HT' | '2H' | 'ET' | 'P' | 'FT' | 'AET' | 'PEN' | 'BT' | 'SUSP' | 'INT' | 'PST' | 'CANC' | 'ABD' | 'AWD' | 'WO' | 'LIVE';
111
+ export interface FootballFixtureLeague {
112
+ id: number;
113
+ name: string;
114
+ country: string;
115
+ logo: string;
116
+ flag: Optional<string>;
117
+ season: number;
118
+ round: string;
119
+ }
120
+ export interface FootballFixtureTeams {
121
+ home: FootballFixtureTeam;
122
+ away: FootballFixtureTeam;
123
+ }
124
+ export interface FootballFixtureTeam {
125
+ id: number;
126
+ name: string;
127
+ logo: string;
128
+ winner: Optional<boolean>;
129
+ }
130
+ export interface FootballFixtureGoals {
131
+ home: Optional<number>;
132
+ away: Optional<number>;
133
+ }
134
+ export interface FootballFixtureScore {
135
+ halftime: FootballFixtureGoals;
136
+ fulltime: FootballFixtureGoals;
137
+ extratime: FootballFixtureGoals;
138
+ penalty: FootballFixtureGoals;
139
+ }
140
+ export interface FootballFixtureResponse {
141
+ fixture: FootballFixture;
142
+ league: FootballFixtureLeague;
143
+ teams: FootballFixtureTeams;
144
+ goals: FootballFixtureGoals;
145
+ score: FootballFixtureScore;
146
+ }
147
+ export interface FootballFixturesParams {
148
+ id?: Optional<number>;
149
+ live?: Optional<'all' | string>;
150
+ date?: Optional<string>;
151
+ league?: Optional<number>;
152
+ season?: Optional<number>;
153
+ team?: Optional<number>;
154
+ last?: Optional<number>;
155
+ next?: Optional<number>;
156
+ from?: Optional<string>;
157
+ to?: Optional<string>;
158
+ round?: Optional<string>;
159
+ status?: Optional<string>;
160
+ venue?: Optional<number>;
161
+ timezone?: Optional<string>;
162
+ }
163
+ //# sourceMappingURL=football.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"football.d.ts","sourceRoot":"","sources":["../../src/types/football.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,sBAAsB,CAAC;CAClC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE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CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC7B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=football.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"football.js","sourceRoot":"","sources":["../../src/types/football.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @fileoverview Football (soccer) type definitions\n * @description Types for football API responses, matching api-sports.io response format.\n */\n\nimport type { Optional } from '@sudobility/types';\n\nexport interface FootballCountry {\n name: string;\n code: Optional<string>;\n flag: Optional<string>;\n}\n\nexport interface FootballLeague {\n id: number;\n name: string;\n type: 'League' | 'Cup';\n logo: string;\n}\n\nexport interface FootballSeason {\n year: number;\n start: string;\n end: string;\n current: boolean;\n coverage: FootballSeasonCoverage;\n}\n\nexport interface FootballSeasonCoverage {\n fixtures: FootballFixturesCoverage;\n standings: boolean;\n players: boolean;\n top_scorers: boolean;\n top_assists: boolean;\n top_cards: boolean;\n injuries: boolean;\n predictions: boolean;\n odds: boolean;\n}\n\nexport interface FootballFixturesCoverage {\n events: boolean;\n lineups: boolean;\n statistics_fixtures: boolean;\n statistics_players: boolean;\n}\n\nexport interface FootballLeagueResponse {\n league: FootballLeague;\n country: FootballCountry;\n seasons: FootballSeason[];\n}\n\nexport interface FootballLeaguesParams {\n id?: Optional<number>;\n name?: Optional<string>;\n country?: Optional<string>;\n code?: Optional<string>;\n season?: Optional<number>;\n team?: Optional<number>;\n type?: Optional<'league' | 'cup'>;\n current?: Optional<boolean>;\n search?: Optional<string>;\n last?: Optional<number>;\n}\n\nexport interface FootballTeam {\n id: number;\n name: string;\n code: Optional<string>;\n country: string;\n founded: Optional<number>;\n national: boolean;\n logo: string;\n}\n\nexport interface FootballVenue {\n id: Optional<number>;\n name: string;\n address: Optional<string>;\n city: string;\n capacity: Optional<number>;\n surface: Optional<string>;\n image: Optional<string>;\n}\n\nexport interface FootballTeamResponse {\n team: FootballTeam;\n venue: FootballVenue;\n}\n\nexport interface FootballTeamsParams {\n id?: Optional<number>;\n name?: Optional<string>;\n league?: Optional<number>;\n season?: Optional<number>;\n country?: Optional<string>;\n code?: Optional<string>;\n venue?: Optional<number>;\n search?: Optional<string>;\n}\n\nexport interface FootballFixture {\n id: number;\n referee: Optional<string>;\n timezone: string;\n date: string;\n timestamp: number;\n periods: FootballFixturePeriods;\n venue: FootballFixtureVenue;\n status: FootballFixtureStatus;\n}\n\nexport interface FootballFixturePeriods {\n first: Optional<number>;\n second: Optional<number>;\n}\n\nexport interface FootballFixtureVenue {\n id: Optional<number>;\n name: Optional<string>;\n city: Optional<string>;\n}\n\nexport interface FootballFixtureStatus {\n long: string;\n short: FootballFixtureStatusCode;\n elapsed: Optional<number>;\n}\n\nexport type FootballFixtureStatusCode =\n | 'TBD'\n | 'NS'\n | '1H'\n | 'HT'\n | '2H'\n | 'ET'\n | 'P'\n | 'FT'\n | 'AET'\n | 'PEN'\n | 'BT'\n | 'SUSP'\n | 'INT'\n | 'PST'\n | 'CANC'\n | 'ABD'\n | 'AWD'\n | 'WO'\n | 'LIVE';\n\nexport interface FootballFixtureLeague {\n id: number;\n name: string;\n country: string;\n logo: string;\n flag: Optional<string>;\n season: number;\n round: string;\n}\n\nexport interface FootballFixtureTeams {\n home: FootballFixtureTeam;\n away: FootballFixtureTeam;\n}\n\nexport interface FootballFixtureTeam {\n id: number;\n name: string;\n logo: string;\n winner: Optional<boolean>;\n}\n\nexport interface FootballFixtureGoals {\n home: Optional<number>;\n away: Optional<number>;\n}\n\nexport interface FootballFixtureScore {\n halftime: FootballFixtureGoals;\n fulltime: FootballFixtureGoals;\n extratime: FootballFixtureGoals;\n penalty: FootballFixtureGoals;\n}\n\nexport interface FootballFixtureResponse {\n fixture: FootballFixture;\n league: FootballFixtureLeague;\n teams: FootballFixtureTeams;\n goals: FootballFixtureGoals;\n score: FootballFixtureScore;\n}\n\nexport interface FootballFixturesParams {\n id?: Optional<number>;\n live?: Optional<'all' | string>;\n date?: Optional<string>;\n league?: Optional<number>;\n season?: Optional<number>;\n team?: Optional<number>;\n last?: Optional<number>;\n next?: Optional<number>;\n from?: Optional<string>;\n to?: Optional<string>;\n round?: Optional<string>;\n status?: Optional<string>;\n venue?: Optional<number>;\n timezone?: Optional<string>;\n}\n"]}