@bp1222/stats-api 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,969 +1,3811 @@
1
- declare const BASE_PATH: string;
2
- interface ConfigurationParameters {
3
- basePath?: string;
4
- fetchApi?: FetchAPI;
5
- middleware?: Middleware[];
6
- queryParamsStringify?: (params: HTTPQuery) => string;
7
- username?: string;
8
- password?: string;
9
- apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
10
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
11
- headers?: HTTPHeaders;
12
- credentials?: RequestCredentials;
13
- }
14
- declare class Configuration {
15
- private configuration;
16
- constructor(configuration?: ConfigurationParameters);
17
- set config(configuration: Configuration);
18
- get basePath(): string;
19
- get fetchApi(): FetchAPI | undefined;
20
- get middleware(): Middleware[];
21
- get queryParamsStringify(): (params: HTTPQuery) => string;
22
- get username(): string | undefined;
23
- get password(): string | undefined;
24
- get apiKey(): ((name: string) => string | Promise<string>) | undefined;
25
- get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
26
- get headers(): HTTPHeaders | undefined;
27
- get credentials(): RequestCredentials | undefined;
28
- }
29
- declare const DefaultConfig: Configuration;
30
- declare class BaseAPI {
31
- protected configuration: Configuration;
32
- private static readonly jsonRegex;
33
- private middleware;
34
- constructor(configuration?: Configuration);
35
- withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
36
- withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
37
- withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
38
- protected isJsonMime(mime: string | null | undefined): boolean;
39
- protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
40
- private createFetchParams;
41
- private fetchApi;
42
- private clone;
43
- }
44
- declare class ResponseError extends Error {
45
- response: Response;
46
- name: "ResponseError";
47
- constructor(response: Response, msg?: string);
48
- }
49
- declare class FetchError extends Error {
50
- cause: Error;
51
- name: "FetchError";
52
- constructor(cause: Error, msg?: string);
53
- }
54
- declare class RequiredError extends Error {
55
- field: string;
56
- name: "RequiredError";
57
- constructor(field: string, msg?: string);
58
- }
59
- declare const COLLECTION_FORMATS: {
60
- csv: string;
61
- ssv: string;
62
- tsv: string;
63
- pipes: string;
64
- };
65
- type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
66
- type Json = any;
67
- type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
68
- type HTTPHeaders = {
69
- [key: string]: string;
70
- };
71
- type HTTPQuery = {
72
- [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
73
- };
74
- type HTTPBody = Json | FormData | URLSearchParams;
75
- type HTTPRequestInit = {
76
- headers?: HTTPHeaders;
77
- method: HTTPMethod;
78
- credentials?: RequestCredentials;
79
- body?: HTTPBody;
80
- };
81
- type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
82
- type InitOverrideFunction = (requestContext: {
83
- init: HTTPRequestInit;
84
- context: RequestOpts;
85
- }) => Promise<RequestInit>;
86
- interface FetchParams {
87
- url: string;
88
- init: RequestInit;
89
- }
90
- interface RequestOpts {
91
- path: string;
92
- method: HTTPMethod;
93
- headers: HTTPHeaders;
94
- query?: HTTPQuery;
95
- body?: HTTPBody;
96
- }
97
- declare function querystring(params: HTTPQuery, prefix?: string): string;
98
- declare function exists(json: any, key: string): boolean;
99
- declare function mapValues(data: any, fn: (item: any) => any): {
100
- [key: string]: any;
101
- };
102
- declare function canConsumeForm(consumes: Consume[]): boolean;
103
- interface Consume {
104
- contentType: string;
105
- }
106
- interface RequestContext {
107
- fetch: FetchAPI;
108
- url: string;
109
- init: RequestInit;
110
- }
111
- interface ResponseContext {
112
- fetch: FetchAPI;
113
- url: string;
114
- init: RequestInit;
115
- response: Response;
116
- }
117
- interface ErrorContext {
118
- fetch: FetchAPI;
119
- url: string;
120
- init: RequestInit;
121
- error: unknown;
122
- response?: Response;
123
- }
124
- interface Middleware {
125
- pre?(context: RequestContext): Promise<FetchParams | void>;
126
- post?(context: ResponseContext): Promise<Response | void>;
127
- onError?(context: ErrorContext): Promise<Response | void>;
128
- }
129
- interface ApiResponse<T> {
130
- raw: Response;
131
- value(): Promise<T>;
132
- }
133
- interface ResponseTransformer<T> {
134
- (json: any): T;
135
- }
136
- declare class JSONApiResponse<T> {
137
- raw: Response;
138
- private transformer;
139
- constructor(raw: Response, transformer?: ResponseTransformer<T>);
140
- value(): Promise<T>;
141
- }
142
- declare class VoidApiResponse {
143
- raw: Response;
144
- constructor(raw: Response);
145
- value(): Promise<void>;
146
- }
147
- declare class BlobApiResponse {
148
- raw: Response;
149
- constructor(raw: Response);
150
- value(): Promise<Blob>;
151
- }
152
- declare class TextApiResponse {
153
- raw: Response;
154
- constructor(raw: Response);
155
- value(): Promise<string>;
156
- }
157
-
158
- interface BattingStats {
159
- flyOuts?: number;
160
- groundOuts?: number;
161
- airOuts?: number;
162
- runs?: number;
163
- doubles?: number;
164
- triples?: number;
165
- homeRuns?: number;
166
- strikeOuts?: number;
167
- baseOnBalls?: number;
168
- intentionalWalks?: number;
169
- hits?: number;
170
- hitByPitch?: number;
171
- avg?: string;
172
- atBats?: number;
173
- obp?: string;
174
- slg?: string;
175
- ops?: string;
176
- caughtStealing?: number;
177
- stolenBases?: number;
178
- stolenBasePercentage?: string;
179
- groundIntoDoublePlay?: number;
180
- groundIntoTriplePlay?: number;
181
- plateAppearances?: number;
182
- totalBases?: number;
183
- rbi?: number;
184
- leftOnBase?: number;
185
- sacBunts?: number;
186
- sacFlies?: number;
187
- catchersInterference?: number;
188
- pickoffs?: number;
189
- atBatsPerHomeRun?: string;
190
- popOuts?: number;
191
- lineOuts?: number;
192
- }
193
- declare function instanceOfBattingStats(value: object): value is BattingStats;
194
- declare function BattingStatsFromJSON(json: any): BattingStats;
195
- declare function BattingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BattingStats;
196
- declare function BattingStatsToJSON(json: any): BattingStats;
197
- declare function BattingStatsToJSONTyped(value?: BattingStats | null, ignoreDiscriminator?: boolean): any;
198
-
199
- interface Official {
200
- id?: number;
201
- fullName?: string;
202
- link?: string;
203
- }
204
- declare function instanceOfOfficial(value: object): value is Official;
205
- declare function OfficialFromJSON(json: any): Official;
206
- declare function OfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): Official;
207
- declare function OfficialToJSON(json: any): Official;
208
- declare function OfficialToJSONTyped(value?: Official | null, ignoreDiscriminator?: boolean): any;
209
-
210
- interface GameOfficial {
211
- official?: Official;
212
- officialType?: string;
213
- }
214
- declare function instanceOfGameOfficial(value: object): value is GameOfficial;
215
- declare function GameOfficialFromJSON(json: any): GameOfficial;
216
- declare function GameOfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameOfficial;
217
- declare function GameOfficialToJSON(json: any): GameOfficial;
218
- declare function GameOfficialToJSONTyped(value?: GameOfficial | null, ignoreDiscriminator?: boolean): any;
219
-
220
- interface FieldingStats {
221
- caughtStealing?: number;
222
- stolenBases?: number;
223
- stolenBasePercentage?: string;
224
- assists?: number;
225
- putOuts?: number;
226
- errors?: number;
227
- chances?: number;
228
- passedBall?: number;
229
- pickoffs?: number;
230
- }
231
- declare function instanceOfFieldingStats(value: object): value is FieldingStats;
232
- declare function FieldingStatsFromJSON(json: any): FieldingStats;
233
- declare function FieldingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldingStats;
234
- declare function FieldingStatsToJSON(json: any): FieldingStats;
235
- declare function FieldingStatsToJSONTyped(value?: FieldingStats | null, ignoreDiscriminator?: boolean): any;
236
-
237
- interface PitchingStats {
238
- flyOuts?: number;
239
- groundOuts?: number;
240
- airOuts?: number;
241
- runs?: number;
242
- doubles?: number;
243
- triples?: number;
244
- homeRuns?: number;
245
- strikeOuts?: number;
246
- baseOnBalls?: number;
247
- intentionalWalks?: number;
248
- hits?: number;
249
- hitByPitch?: number;
250
- atBats?: number;
251
- obp?: string;
252
- caughtStealing?: number;
253
- stolenBases?: number;
254
- stolenBasePercentage?: string;
255
- numberOfPitches?: number;
256
- era?: string;
257
- inningsPitched?: string;
258
- saveOpportunities?: number;
259
- earnedRuns?: number;
260
- whip?: string;
261
- battersFaced?: number;
262
- outs?: number;
263
- completeGames?: number;
264
- shutouts?: number;
265
- pitchesThrown?: number;
266
- balls?: number;
267
- strikes?: number;
268
- strikePercentage?: string;
269
- hitBatsmen?: number;
270
- balks?: number;
271
- wildPitches?: number;
272
- pickoffs?: number;
273
- groundOutsToAirouts?: string;
274
- rbi?: number;
275
- pitchesPerInning?: string;
276
- runsScoredPer9?: string;
277
- homeRunsPer9?: string;
278
- inheritedRunners?: number;
279
- inheritedRunnersScored?: number;
280
- catchersInterference?: number;
281
- sacBunts?: number;
282
- sacFlies?: number;
283
- passedBall?: number;
284
- popOuts?: number;
285
- lineOuts?: number;
286
- }
287
- declare function instanceOfPitchingStats(value: object): value is PitchingStats;
288
- declare function PitchingStatsFromJSON(json: any): PitchingStats;
289
- declare function PitchingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PitchingStats;
290
- declare function PitchingStatsToJSON(json: any): PitchingStats;
291
- declare function PitchingStatsToJSONTyped(value?: PitchingStats | null, ignoreDiscriminator?: boolean): any;
292
-
293
- interface PlayerSeasonStats {
294
- batting: BattingStats;
295
- pitching: PitchingStats;
296
- fielding: FieldingStats;
297
- }
298
- declare function instanceOfPlayerSeasonStats(value: object): value is PlayerSeasonStats;
299
- declare function PlayerSeasonStatsFromJSON(json: any): PlayerSeasonStats;
300
- declare function PlayerSeasonStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerSeasonStats;
301
- declare function PlayerSeasonStatsToJSON(json: any): PlayerSeasonStats;
302
- declare function PlayerSeasonStatsToJSONTyped(value?: PlayerSeasonStats | null, ignoreDiscriminator?: boolean): any;
303
-
304
- interface PlayerGameStatus {
305
- isCurrentBatter?: boolean;
306
- isCurrentPitcher?: boolean;
307
- isOnBench?: boolean;
308
- isSubstitute?: boolean;
309
- }
310
- declare function instanceOfPlayerGameStatus(value: object): value is PlayerGameStatus;
311
- declare function PlayerGameStatusFromJSON(json: any): PlayerGameStatus;
312
- declare function PlayerGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerGameStatus;
313
- declare function PlayerGameStatusToJSON(json: any): PlayerGameStatus;
314
- declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | null, ignoreDiscriminator?: boolean): any;
315
-
316
- interface Position {
317
- code?: string;
318
- name?: string;
319
- type?: string;
320
- abbreviation?: string;
321
- }
322
- declare function instanceOfPosition(value: object): value is Position;
323
- declare function PositionFromJSON(json: any): Position;
324
- declare function PositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Position;
325
- declare function PositionToJSON(json: any): Position;
326
- declare function PositionToJSONTyped(value?: Position | null, ignoreDiscriminator?: boolean): any;
327
-
328
- interface PlayerPerson {
329
- id: string;
330
- fullName: string;
331
- link: string;
332
- boxscoreName: string;
333
- }
334
- declare function instanceOfPlayerPerson(value: object): value is PlayerPerson;
335
- declare function PlayerPersonFromJSON(json: any): PlayerPerson;
336
- declare function PlayerPersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPerson;
337
- declare function PlayerPersonToJSON(json: any): PlayerPerson;
338
- declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ignoreDiscriminator?: boolean): any;
339
-
340
- interface PlayerPosition {
341
- code?: string;
342
- name?: string;
343
- type?: string;
344
- abbreviation?: string;
345
- }
346
- declare function instanceOfPlayerPosition(value: object): value is PlayerPosition;
347
- declare function PlayerPositionFromJSON(json: any): PlayerPosition;
348
- declare function PlayerPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPosition;
349
- declare function PlayerPositionToJSON(json: any): PlayerPosition;
350
- declare function PlayerPositionToJSONTyped(value?: PlayerPosition | null, ignoreDiscriminator?: boolean): any;
351
-
352
- interface PlayerStatus {
353
- code?: string;
354
- description?: string;
355
- }
356
- declare function instanceOfPlayerStatus(value: object): value is PlayerStatus;
357
- declare function PlayerStatusFromJSON(json: any): PlayerStatus;
358
- declare function PlayerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStatus;
359
- declare function PlayerStatusToJSON(json: any): PlayerStatus;
360
- declare function PlayerStatusToJSONTyped(value?: PlayerStatus | null, ignoreDiscriminator?: boolean): any;
361
-
362
- interface PlayerStats {
363
- batting: BattingStats;
364
- pitching: PitchingStats;
365
- fielding: FieldingStats;
366
- }
367
- declare function instanceOfPlayerStats(value: object): value is PlayerStats;
368
- declare function PlayerStatsFromJSON(json: any): PlayerStats;
369
- declare function PlayerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStats;
370
- declare function PlayerStatsToJSON(json: any): PlayerStats;
371
- declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignoreDiscriminator?: boolean): any;
372
-
373
- interface Player {
374
- person: PlayerPerson;
375
- jerseyNumber?: string;
376
- position: PlayerPosition;
377
- status?: PlayerStatus;
378
- parentTeamId?: number;
379
- battingOrder?: number;
380
- stats: PlayerStats;
381
- seasonStats: PlayerSeasonStats;
382
- gameStatus?: PlayerGameStatus;
383
- allPositions?: Array<Position>;
384
- type?: string;
385
- gameScore?: number;
386
- hittingGameScore?: number;
387
- }
388
- declare function instanceOfPlayer(value: object): value is Player;
389
- declare function PlayerFromJSON(json: any): Player;
390
- declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Player;
391
- declare function PlayerToJSON(json: any): Player;
392
- declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscriminator?: boolean): any;
393
-
394
- interface LeagueDates {
395
- seasonId?: string;
396
- preSeasonStartDate?: string;
397
- preSeasonEndDate?: string;
398
- seasonStartDate?: string;
399
- springStartDate?: string;
400
- springEndDate?: string;
401
- offseasonStartDate?: string;
402
- offseasonEndDate?: string;
403
- seasonLevelGamedayType?: string;
404
- gameLevelGamedayType?: string;
405
- }
406
- declare function instanceOfLeagueDates(value: object): value is LeagueDates;
407
- declare function LeagueDatesFromJSON(json: any): LeagueDates;
408
- declare function LeagueDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueDates;
409
- declare function LeagueDatesToJSON(json: any): LeagueDates;
410
- declare function LeagueDatesToJSONTyped(value?: LeagueDates | null, ignoreDiscriminator?: boolean): any;
411
-
412
- interface League {
413
- id: number;
414
- name: string;
415
- link?: string;
416
- abbreviation?: string;
417
- nameShort?: string;
418
- seasonState?: string;
419
- hasWildCard?: boolean;
420
- hasSplitSeason?: boolean;
421
- hasPlayoffPoints?: boolean;
422
- seasonDateInfo?: LeagueDates;
423
- season?: string;
424
- orgCode?: string;
425
- conferencesInUse?: boolean;
426
- divisionsInUse?: boolean;
427
- sortOrder?: number;
428
- active?: boolean;
429
- }
430
- declare function instanceOfLeague(value: object): value is League;
431
- declare function LeagueFromJSON(json: any): League;
432
- declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): League;
433
- declare function LeagueToJSON(json: any): League;
434
- declare function LeagueToJSONTyped(value?: League | null, ignoreDiscriminator?: boolean): any;
435
-
436
- interface Sport {
437
- id: number;
438
- code?: string;
439
- link?: string;
440
- name?: string;
441
- abbreviation?: string;
442
- sortOrder?: number;
443
- activeStatus?: boolean;
444
- }
445
- declare function instanceOfSport(value: object): value is Sport;
446
- declare function SportFromJSON(json: any): Sport;
447
- declare function SportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sport;
448
- declare function SportToJSON(json: any): Sport;
449
- declare function SportToJSONTyped(value?: Sport | null, ignoreDiscriminator?: boolean): any;
450
-
451
- interface Venue {
452
- id: number;
453
- name: string;
454
- link?: string;
455
- active?: boolean;
456
- season?: string;
457
- }
458
- declare function instanceOfVenue(value: object): value is Venue;
459
- declare function VenueFromJSON(json: any): Venue;
460
- declare function VenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): Venue;
461
- declare function VenueToJSON(json: any): Venue;
462
- declare function VenueToJSONTyped(value?: Venue | null, ignoreDiscriminator?: boolean): any;
463
-
464
- interface Division {
465
- id: number;
466
- name: string;
467
- season?: string;
468
- nameShort?: string;
469
- link?: string;
470
- abbreviation?: string;
471
- league?: League;
472
- sport?: Sport;
473
- hasWildcard?: boolean;
474
- sortOrder?: number;
475
- numPlayoffTeams?: number;
476
- active?: boolean;
477
- }
478
- declare function instanceOfDivision(value: object): value is Division;
479
- declare function DivisionFromJSON(json: any): Division;
480
- declare function DivisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Division;
481
- declare function DivisionToJSON(json: any): Division;
482
- declare function DivisionToJSONTyped(value?: Division | null, ignoreDiscriminator?: boolean): any;
483
-
484
- interface Streak {
485
- streakType?: StreakStreakTypeEnum;
486
- }
487
- declare enum StreakStreakTypeEnum {
488
- Losing = "losses",
489
- Winning = "wins"
490
- }
491
- declare function instanceOfStreak(value: object): value is Streak;
492
- declare function StreakFromJSON(json: any): Streak;
493
- declare function StreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): Streak;
494
- declare function StreakToJSON(json: any): Streak;
495
- declare function StreakToJSONTyped(value?: Streak | null, ignoreDiscriminator?: boolean): any;
496
-
497
- interface LeagueRecord {
498
- wins: number;
499
- losses: number;
500
- ties?: number;
501
- pct: string;
502
- }
503
- declare function instanceOfLeagueRecord(value: object): value is LeagueRecord;
504
- declare function LeagueRecordFromJSON(json: any): LeagueRecord;
505
- declare function LeagueRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueRecord;
506
- declare function LeagueRecordToJSON(json: any): LeagueRecord;
507
- declare function LeagueRecordToJSONTyped(value?: LeagueRecord | null, ignoreDiscriminator?: boolean): any;
508
-
509
- interface Record {
510
- team: Team;
511
- season: string;
512
- streak: Streak;
513
- divisionRank: string;
514
- leagueRank: string;
515
- sportRank?: string;
516
- gamesPlayed?: number;
517
- gamesBack: string;
518
- wildCardGamesBack?: string;
519
- leagueGamesBack?: string;
520
- sportGamesBack?: string;
521
- divisionGamesBack?: string;
522
- conferenceGamesBack?: string;
523
- leagueRecord: LeagueRecord;
524
- lastUpdated?: string;
525
- runsAllowed?: number;
526
- runsScored?: number;
527
- divisionChamp?: boolean;
528
- divisionLeader?: boolean;
529
- hasWildcard?: boolean;
530
- clinched?: boolean;
531
- eliminationNumber?: string;
532
- eliminationNumberSport?: string;
533
- eliminationNumberLeague?: string;
534
- eliminationNumberDivision?: string;
535
- eliminationNumberConference?: string;
536
- wildCardEliminationNumber?: string;
537
- magicNumber?: string;
538
- wins: number;
539
- losses: number;
540
- runDifferential?: number;
541
- winningPercentage?: string;
542
- }
543
- declare function instanceOfRecord(value: object): value is Record;
544
- declare function RecordFromJSON(json: any): Record;
545
- declare function RecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Record;
546
- declare function RecordToJSON(json: any): Record;
547
- declare function RecordToJSONTyped(value?: Record | null, ignoreDiscriminator?: boolean): any;
548
-
549
- interface Team {
550
- id: number;
551
- name: string;
552
- link?: string;
553
- allStarStatus?: string;
554
- season?: number;
555
- venue?: Venue;
556
- springVenue?: Venue;
557
- teamCode?: string;
558
- fileCode?: string;
559
- abbreviation?: string;
560
- teamName?: string;
561
- locationName?: string;
562
- firstYearOfPlay?: string;
563
- league?: League;
564
- springLeague?: League;
565
- division?: Division;
566
- sport?: Sport;
567
- record?: Record;
568
- shortName?: string;
569
- franchiseName?: string;
570
- clubName?: string;
571
- active?: boolean;
572
- }
573
- declare function instanceOfTeam(value: object): value is Team;
574
- declare function TeamFromJSON(json: any): Team;
575
- declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team;
576
- declare function TeamToJSON(json: any): Team;
577
- declare function TeamToJSONTyped(value?: Team | null, ignoreDiscriminator?: boolean): any;
578
-
579
- interface TeamStats {
580
- batting: BattingStats;
581
- pitching: PitchingStats;
582
- fielding: FieldingStats;
583
- }
584
- declare function instanceOfTeamStats(value: object): value is TeamStats;
585
- declare function TeamStatsFromJSON(json: any): TeamStats;
586
- declare function TeamStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamStats;
587
- declare function TeamStatsToJSON(json: any): TeamStats;
588
- declare function TeamStatsToJSONTyped(value?: TeamStats | null, ignoreDiscriminator?: boolean): any;
589
-
590
- interface BoxscoreTeam {
591
- team: Team;
592
- teamStats: TeamStats;
593
- players: {
594
- [key: string]: Player;
595
- };
596
- }
597
- declare function instanceOfBoxscoreTeam(value: object): value is BoxscoreTeam;
598
- declare function BoxscoreTeamFromJSON(json: any): BoxscoreTeam;
599
- declare function BoxscoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeam;
600
- declare function BoxscoreTeamToJSON(json: any): BoxscoreTeam;
601
- declare function BoxscoreTeamToJSONTyped(value?: BoxscoreTeam | null, ignoreDiscriminator?: boolean): any;
602
-
603
- interface BoxscoreTeams {
604
- away: BoxscoreTeam;
605
- home: BoxscoreTeam;
606
- }
607
- declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
608
- declare function BoxscoreTeamsFromJSON(json: any): BoxscoreTeams;
609
- declare function BoxscoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeams;
610
- declare function BoxscoreTeamsToJSON(json: any): BoxscoreTeams;
611
- declare function BoxscoreTeamsToJSONTyped(value?: BoxscoreTeams | null, ignoreDiscriminator?: boolean): any;
612
-
613
- interface Boxscore {
614
- teams: BoxscoreTeams;
615
- officials: Array<GameOfficial>;
616
- }
617
- declare function instanceOfBoxscore(value: object): value is Boxscore;
618
- declare function BoxscoreFromJSON(json: any): Boxscore;
619
- declare function BoxscoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Boxscore;
620
- declare function BoxscoreToJSON(json: any): Boxscore;
621
- declare function BoxscoreToJSONTyped(value?: Boxscore | null, ignoreDiscriminator?: boolean): any;
622
-
623
- interface DivisionStandings {
624
- standingsType?: string;
625
- league: League;
626
- division: Division;
627
- sport: Sport;
628
- lastUpdated?: string;
629
- teamRecords: Array<Record>;
630
- }
631
- declare function instanceOfDivisionStandings(value: object): value is DivisionStandings;
632
- declare function DivisionStandingsFromJSON(json: any): DivisionStandings;
633
- declare function DivisionStandingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandings;
634
- declare function DivisionStandingsToJSON(json: any): DivisionStandings;
635
- declare function DivisionStandingsToJSONTyped(value?: DivisionStandings | null, ignoreDiscriminator?: boolean): any;
636
-
637
- interface DivisionStandingsList {
638
- records: Array<DivisionStandings>;
639
- }
640
- declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
641
- declare function DivisionStandingsListFromJSON(json: any): DivisionStandingsList;
642
- declare function DivisionStandingsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandingsList;
643
- declare function DivisionStandingsListToJSON(json: any): DivisionStandingsList;
644
- declare function DivisionStandingsListToJSONTyped(value?: DivisionStandingsList | null, ignoreDiscriminator?: boolean): any;
645
-
646
- interface Divisions {
647
- divisions: Array<Division>;
648
- }
649
- declare function instanceOfDivisions(value: object): value is Divisions;
650
- declare function DivisionsFromJSON(json: any): Divisions;
651
- declare function DivisionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Divisions;
652
- declare function DivisionsToJSON(json: any): Divisions;
653
- declare function DivisionsToJSONTyped(value?: Divisions | null, ignoreDiscriminator?: boolean): any;
654
-
655
- declare enum GameStatusCode {
656
- Final = "F",
657
- Postponed = "D",
658
- Scheduled = "S",
659
- InProgress = "I",
660
- Pregame = "P",
661
- GameOver = "O",
662
- Canceled = "C"
663
- }
664
- declare function instanceOfGameStatusCode(value: any): boolean;
665
- declare function GameStatusCodeFromJSON(json: any): GameStatusCode;
666
- declare function GameStatusCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatusCode;
667
- declare function GameStatusCodeToJSON(value?: GameStatusCode | null): any;
668
- declare function GameStatusCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameStatusCode;
669
-
670
- interface GameStatus {
671
- abstractGameState?: string;
672
- codedGameState?: GameStatusCode;
673
- detailedState?: string;
674
- statusCode?: string;
675
- startTimeTBD?: boolean;
676
- abstractGameCode?: string;
677
- }
678
- declare function instanceOfGameStatus(value: object): value is GameStatus;
679
- declare function GameStatusFromJSON(json: any): GameStatus;
680
- declare function GameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatus;
681
- declare function GameStatusToJSON(json: any): GameStatus;
682
- declare function GameStatusToJSONTyped(value?: GameStatus | null, ignoreDiscriminator?: boolean): any;
683
-
684
- interface GameTeam {
685
- leagueRecord?: LeagueRecord;
686
- score: number;
687
- team: Team;
688
- isWinner: boolean;
689
- splitSquad?: boolean;
690
- seriesNumber?: number;
691
- }
692
- declare function instanceOfGameTeam(value: object): value is GameTeam;
693
- declare function GameTeamFromJSON(json: any): GameTeam;
694
- declare function GameTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeam;
695
- declare function GameTeamToJSON(json: any): GameTeam;
696
- declare function GameTeamToJSONTyped(value?: GameTeam | null, ignoreDiscriminator?: boolean): any;
697
-
698
- interface GameTeams {
699
- away: GameTeam;
700
- home: GameTeam;
701
- }
702
- declare function instanceOfGameTeams(value: object): value is GameTeams;
703
- declare function GameTeamsFromJSON(json: any): GameTeams;
704
- declare function GameTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeams;
705
- declare function GameTeamsToJSON(json: any): GameTeams;
706
- declare function GameTeamsToJSONTyped(value?: GameTeams | null, ignoreDiscriminator?: boolean): any;
707
-
708
- declare enum GameType {
709
- Exhibition = "E",
710
- SpringTraining = "S",
711
- Regular = "R",
712
- WildCardSeries = "F",
713
- DivisionSeries = "D",
714
- LeagueChampionshipSeries = "L",
715
- WorldSeries = "W"
716
- }
717
- declare function instanceOfGameType(value: any): boolean;
718
- declare function GameTypeFromJSON(json: any): GameType;
719
- declare function GameTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameType;
720
- declare function GameTypeToJSON(value?: GameType | null): any;
721
- declare function GameTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameType;
722
-
723
- interface Game {
724
- gamePk: number;
725
- gameGuid: string;
726
- link?: string;
727
- gameType: GameType;
728
- season: number;
729
- gameDate: string;
730
- officialDate: string;
731
- rescheduledTo?: number;
732
- rescheduledToDate?: string;
733
- rescheduledFrom?: number;
734
- rescheduledFromDate?: string;
735
- status: GameStatus;
736
- teams: GameTeams;
737
- venue?: Venue;
738
- isTie?: boolean;
739
- gameNumber: number;
740
- publicFacing?: boolean;
741
- doubleHeader?: string;
742
- gamedayType?: string;
743
- tiebreaker?: string;
744
- calendarEventID?: string;
745
- seasonDisplay?: string;
746
- dayNight?: string;
747
- description?: string;
748
- scheduledInnings?: number;
749
- reverseHomeAwayStatus?: boolean;
750
- inningBreakLength?: number;
751
- gamesInSeries: number;
752
- seriesGameNumber: number;
753
- seriesDescription?: string;
754
- recordSource?: string;
755
- ifNecessary?: string;
756
- ifNecessaryDescription?: string;
757
- }
758
- declare function instanceOfGame(value: object): value is Game;
759
- declare function GameFromJSON(json: any): Game;
760
- declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
761
- declare function GameToJSON(json: any): Game;
762
- declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator?: boolean): any;
763
-
764
- interface LinescoreTeam {
765
- runs: number;
766
- hits: number;
767
- errors: number;
768
- leftOnBase: number;
769
- }
770
- declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
771
- declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
772
- declare function LinescoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeam;
773
- declare function LinescoreTeamToJSON(json: any): LinescoreTeam;
774
- declare function LinescoreTeamToJSONTyped(value?: LinescoreTeam | null, ignoreDiscriminator?: boolean): any;
775
-
776
- interface Inning {
777
- num: number;
778
- ordinalNum: string;
779
- home: LinescoreTeam;
780
- away: LinescoreTeam;
781
- }
782
- declare function instanceOfInning(value: object): value is Inning;
783
- declare function InningFromJSON(json: any): Inning;
784
- declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inning;
785
- declare function InningToJSON(json: any): Inning;
786
- declare function InningToJSONTyped(value?: Inning | null, ignoreDiscriminator?: boolean): any;
787
-
788
- interface Leagues {
789
- leagues: Array<League>;
790
- }
791
- declare function instanceOfLeagues(value: object): value is Leagues;
792
- declare function LeaguesFromJSON(json: any): Leagues;
793
- declare function LeaguesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Leagues;
794
- declare function LeaguesToJSON(json: any): Leagues;
795
- declare function LeaguesToJSONTyped(value?: Leagues | null, ignoreDiscriminator?: boolean): any;
796
-
797
- interface LinescoreTeams {
798
- away: LinescoreTeam;
799
- home: LinescoreTeam;
800
- }
801
- declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
802
- declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
803
- declare function LinescoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeams;
804
- declare function LinescoreTeamsToJSON(json: any): LinescoreTeams;
805
- declare function LinescoreTeamsToJSONTyped(value?: LinescoreTeams | null, ignoreDiscriminator?: boolean): any;
806
-
807
- interface Linescore {
808
- currentInning?: number;
809
- currentInningOrdinal?: string;
810
- inningState?: string;
811
- inningHalf?: string;
812
- isTopInning?: boolean;
813
- scheduledInnings?: number;
814
- innings?: Array<Inning>;
815
- teams: LinescoreTeams;
816
- balls: number;
817
- strikes: number;
818
- outs: number;
819
- }
820
- declare function instanceOfLinescore(value: object): value is Linescore;
821
- declare function LinescoreFromJSON(json: any): Linescore;
822
- declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Linescore;
823
- declare function LinescoreToJSON(json: any): Linescore;
824
- declare function LinescoreToJSONTyped(value?: Linescore | null, ignoreDiscriminator?: boolean): any;
825
-
826
- interface ScheduleDay {
827
- date?: string;
828
- totalItems?: number;
829
- totalEvents?: number;
830
- totalGames?: number;
831
- totalGamesInProgress?: number;
832
- games: Array<Game>;
833
- }
834
- declare function instanceOfScheduleDay(value: object): value is ScheduleDay;
835
- declare function ScheduleDayFromJSON(json: any): ScheduleDay;
836
- declare function ScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleDay;
837
- declare function ScheduleDayToJSON(json: any): ScheduleDay;
838
- declare function ScheduleDayToJSONTyped(value?: ScheduleDay | null, ignoreDiscriminator?: boolean): any;
839
-
840
- interface Schedule {
841
- totalItems: number;
842
- totalEvents: number;
843
- totalGames: number;
844
- totalGamesInProgress: number;
845
- dates: Array<ScheduleDay>;
846
- }
847
- declare function instanceOfSchedule(value: object): value is Schedule;
848
- declare function ScheduleFromJSON(json: any): Schedule;
849
- declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
850
- declare function ScheduleToJSON(json: any): Schedule;
851
- declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
852
-
853
- interface Season {
854
- seasonId: string;
855
- hasWildcard?: boolean;
856
- preSeasonStartDate?: string;
857
- preSeasonEndDate?: string;
858
- seasonStartDate: string;
859
- seasonEndDate: string;
860
- springStartDate?: string;
861
- springEndDate?: string;
862
- regularSeasonStartDate: string;
863
- lastDate1stHalf?: string;
864
- allStartDate?: string;
865
- firstDate2ndHalf?: string;
866
- regularSeasonEndDate: string;
867
- postSeasonStartDate?: string;
868
- postSeasonEndDate?: string;
869
- offSeasonStartDate?: string;
870
- offSeasonEndDate?: string;
871
- seasonLevelGamedayType?: string;
872
- gameLevelGamedayType?: string;
873
- qualifierPlateAppearances?: number;
874
- qualifierOutsPitched?: number;
875
- }
876
- declare function instanceOfSeason(value: object): value is Season;
877
- declare function SeasonFromJSON(json: any): Season;
878
- declare function SeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Season;
879
- declare function SeasonToJSON(json: any): Season;
880
- declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscriminator?: boolean): any;
881
-
882
- interface Seasons {
883
- seasons: Array<Season>;
884
- }
885
- declare function instanceOfSeasons(value: object): value is Seasons;
886
- declare function SeasonsFromJSON(json: any): Seasons;
887
- declare function SeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seasons;
888
- declare function SeasonsToJSON(json: any): Seasons;
889
- declare function SeasonsToJSONTyped(value?: Seasons | null, ignoreDiscriminator?: boolean): any;
890
-
891
- interface Teams {
892
- teams: Array<Team>;
893
- }
894
- declare function instanceOfTeams(value: object): value is Teams;
895
- declare function TeamsFromJSON(json: any): Teams;
896
- declare function TeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Teams;
897
- declare function TeamsToJSON(json: any): Teams;
898
- declare function TeamsToJSONTyped(value?: Teams | null, ignoreDiscriminator?: boolean): any;
899
-
900
- interface GetAllSeasonsRequest {
901
- sportId: number;
902
- }
903
- interface GetBoxscoreRequest {
904
- gamePk: number;
905
- fields?: Array<string>;
906
- }
907
- interface GetDivisionsRequest {
908
- sportId: number;
909
- season: string;
910
- }
911
- interface GetLeaguesRequest {
912
- sportId: number;
913
- season: string;
914
- }
915
- interface GetLinescoreRequest {
916
- gamePk: number;
917
- fields?: Array<string>;
918
- }
919
- interface GetScheduleRequest {
920
- sportId: number;
921
- gamePk?: number;
922
- teamId?: number;
923
- gameTypes?: Array<GameType>;
924
- startDate?: string;
925
- endDate?: string;
926
- fields?: Array<string>;
927
- hydrate?: string;
928
- leagueIds?: Array<number>;
929
- }
930
- interface GetSeasonRequest {
931
- sportId: number;
932
- season: string;
933
- }
934
- interface GetStandingsRequest {
935
- leagueId: number;
936
- season: string;
937
- date?: string;
938
- fields?: Array<string>;
939
- hydrate?: string;
940
- }
941
- interface GetTeamsRequest {
942
- sportId: number;
943
- season: string;
944
- leagueIds?: Array<number>;
945
- fields?: Array<string>;
946
- hydrate?: string;
947
- }
948
- declare class MlbApi extends BaseAPI {
949
- getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
950
- getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
951
- getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Boxscore>>;
952
- getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Boxscore>;
953
- getDivisionsRaw(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Divisions>>;
954
- getDivisions(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Divisions>;
955
- getLeaguesRaw(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Leagues>>;
956
- getLeagues(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Leagues>;
957
- getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Linescore>>;
958
- getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Linescore>;
959
- getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Schedule>>;
960
- getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Schedule>;
961
- getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
962
- getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
963
- getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<DivisionStandingsList>>;
964
- getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<DivisionStandingsList>;
965
- getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Teams>>;
966
- getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
967
- }
968
-
969
- export { type ApiResponse, BASE_PATH, BaseAPI, type BattingStats, BattingStatsFromJSON, BattingStatsFromJSONTyped, BattingStatsToJSON, BattingStatsToJSONTyped, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, type BoxscoreTeam, BoxscoreTeamFromJSON, BoxscoreTeamFromJSONTyped, BoxscoreTeamToJSON, BoxscoreTeamToJSONTyped, type BoxscoreTeams, BoxscoreTeamsFromJSON, BoxscoreTeamsFromJSONTyped, BoxscoreTeamsToJSON, BoxscoreTeamsToJSONTyped, BoxscoreToJSON, BoxscoreToJSONTyped, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsListToJSONTyped, DivisionStandingsToJSON, DivisionStandingsToJSONTyped, DivisionToJSON, DivisionToJSONTyped, type Divisions, DivisionsFromJSON, DivisionsFromJSONTyped, DivisionsToJSON, DivisionsToJSONTyped, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type FieldingStats, FieldingStatsFromJSON, FieldingStatsFromJSONTyped, FieldingStatsToJSON, FieldingStatsToJSONTyped, type Game, GameFromJSON, GameFromJSONTyped, type GameOfficial, GameOfficialFromJSON, GameOfficialFromJSONTyped, GameOfficialToJSON, GameOfficialToJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusCodeToJSONTyped, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, GameStatusToJSONTyped, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, GameTeamToJSONTyped, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameTeamsToJSONTyped, GameToJSON, GameToJSONTyped, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, GameTypeToJSONTyped, type GetAllSeasonsRequest, type GetBoxscoreRequest, type GetDivisionsRequest, type GetLeaguesRequest, type GetLinescoreRequest, type GetScheduleRequest, type GetSeasonRequest, type GetStandingsRequest, type GetTeamsRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type InitOverrideFunction, type Inning, InningFromJSON, InningFromJSONTyped, InningToJSON, InningToJSONTyped, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueDatesToJSONTyped, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueRecordToJSONTyped, LeagueToJSON, LeagueToJSONTyped, type Leagues, LeaguesFromJSON, LeaguesFromJSONTyped, LeaguesToJSON, LeaguesToJSONTyped, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, LinescoreTeamToJSONTyped, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreTeamsToJSONTyped, LinescoreToJSON, LinescoreToJSONTyped, type Middleware, MlbApi, type ModelPropertyNaming, type Official, OfficialFromJSON, OfficialFromJSONTyped, OfficialToJSON, OfficialToJSONTyped, type PitchingStats, PitchingStatsFromJSON, PitchingStatsFromJSONTyped, PitchingStatsToJSON, PitchingStatsToJSONTyped, type Player, PlayerFromJSON, PlayerFromJSONTyped, type PlayerGameStatus, PlayerGameStatusFromJSON, PlayerGameStatusFromJSONTyped, PlayerGameStatusToJSON, PlayerGameStatusToJSONTyped, type PlayerPerson, PlayerPersonFromJSON, PlayerPersonFromJSONTyped, PlayerPersonToJSON, PlayerPersonToJSONTyped, type PlayerPosition, PlayerPositionFromJSON, PlayerPositionFromJSONTyped, PlayerPositionToJSON, PlayerPositionToJSONTyped, type PlayerSeasonStats, PlayerSeasonStatsFromJSON, PlayerSeasonStatsFromJSONTyped, PlayerSeasonStatsToJSON, PlayerSeasonStatsToJSONTyped, type PlayerStats, PlayerStatsFromJSON, PlayerStatsFromJSONTyped, PlayerStatsToJSON, PlayerStatsToJSONTyped, type PlayerStatus, PlayerStatusFromJSON, PlayerStatusFromJSONTyped, PlayerStatusToJSON, PlayerStatusToJSONTyped, PlayerToJSON, PlayerToJSONTyped, type Position, PositionFromJSON, PositionFromJSONTyped, PositionToJSON, PositionToJSONTyped, type Record, RecordFromJSON, RecordFromJSONTyped, RecordToJSON, RecordToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleDayToJSONTyped, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, ScheduleToJSONTyped, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, SeasonToJSONTyped, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, SeasonsToJSONTyped, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, SportToJSONTyped, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, StreakToJSONTyped, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamStats, TeamStatsFromJSON, TeamStatsFromJSONTyped, TeamStatsToJSON, TeamStatsToJSONTyped, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfBattingStats, instanceOfBoxscore, instanceOfBoxscoreTeam, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfDivisions, instanceOfFieldingStats, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLeagues, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfPitchingStats, instanceOfPlayer, instanceOfPlayerGameStatus, instanceOfPlayerPerson, instanceOfPlayerPosition, instanceOfPlayerSeasonStats, instanceOfPlayerStats, instanceOfPlayerStatus, instanceOfPosition, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamStats, instanceOfTeams, instanceOfVenue, mapValues, querystring };
1
+ export declare interface ApiResponse<T> {
2
+ raw: Response;
3
+ value(): Promise<T>;
4
+ }
5
+
6
+ /**
7
+ * MLB StatAPI
8
+ * An spec API to consume the MLB Stat API
9
+ *
10
+ * The version of the OpenAPI document: 0.5.0
11
+ *
12
+ *
13
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
14
+ * https://openapi-generator.tech
15
+ * Do not edit the class manually.
16
+ */
17
+ export declare const BASE_PATH: string;
18
+
19
+ /**
20
+ * This is the base class for all generated API classes.
21
+ */
22
+ export declare class BaseAPI {
23
+ protected configuration: Configuration;
24
+ private static readonly jsonRegex;
25
+ private middleware;
26
+ constructor(configuration?: Configuration);
27
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
28
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
29
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
30
+ /**
31
+ * Check if the given MIME is a JSON MIME.
32
+ * JSON MIME examples:
33
+ * application/json
34
+ * application/json; charset=UTF8
35
+ * APPLICATION/JSON
36
+ * application/vnd.company+json
37
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
38
+ * @return True if the given MIME is JSON, false otherwise.
39
+ */
40
+ protected isJsonMime(mime: string | null | undefined): boolean;
41
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
42
+ private createFetchParams;
43
+ private fetchApi;
44
+ /**
45
+ * Create a shallow clone of `this` by constructing a new instance
46
+ * and then shallow cloning data members.
47
+ */
48
+ private clone;
49
+ }
50
+
51
+ /**
52
+ * MLB StatAPI
53
+ * An spec API to consume the MLB Stat API
54
+ *
55
+ * The version of the OpenAPI document: 0.5.0
56
+ *
57
+ *
58
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
59
+ * https://openapi-generator.tech
60
+ * Do not edit the class manually.
61
+ */
62
+ /**
63
+ * Batting Stats
64
+ *
65
+ * @export
66
+ * @interface BattingStats
67
+ */
68
+ export declare interface BattingStats {
69
+ /**
70
+ *
71
+ * @type {number}
72
+ * @memberof BattingStats
73
+ */
74
+ flyOuts?: number;
75
+ /**
76
+ *
77
+ * @type {number}
78
+ * @memberof BattingStats
79
+ */
80
+ groundOuts?: number;
81
+ /**
82
+ *
83
+ * @type {number}
84
+ * @memberof BattingStats
85
+ */
86
+ airOuts?: number;
87
+ /**
88
+ *
89
+ * @type {number}
90
+ * @memberof BattingStats
91
+ */
92
+ runs?: number;
93
+ /**
94
+ *
95
+ * @type {number}
96
+ * @memberof BattingStats
97
+ */
98
+ doubles?: number;
99
+ /**
100
+ *
101
+ * @type {number}
102
+ * @memberof BattingStats
103
+ */
104
+ triples?: number;
105
+ /**
106
+ *
107
+ * @type {number}
108
+ * @memberof BattingStats
109
+ */
110
+ homeRuns?: number;
111
+ /**
112
+ *
113
+ * @type {number}
114
+ * @memberof BattingStats
115
+ */
116
+ strikeOuts?: number;
117
+ /**
118
+ *
119
+ * @type {number}
120
+ * @memberof BattingStats
121
+ */
122
+ baseOnBalls?: number;
123
+ /**
124
+ *
125
+ * @type {number}
126
+ * @memberof BattingStats
127
+ */
128
+ intentionalWalks?: number;
129
+ /**
130
+ *
131
+ * @type {number}
132
+ * @memberof BattingStats
133
+ */
134
+ hits?: number;
135
+ /**
136
+ *
137
+ * @type {number}
138
+ * @memberof BattingStats
139
+ */
140
+ hitByPitch?: number;
141
+ /**
142
+ *
143
+ * @type {string}
144
+ * @memberof BattingStats
145
+ */
146
+ avg?: string;
147
+ /**
148
+ *
149
+ * @type {number}
150
+ * @memberof BattingStats
151
+ */
152
+ atBats?: number;
153
+ /**
154
+ *
155
+ * @type {string}
156
+ * @memberof BattingStats
157
+ */
158
+ obp?: string;
159
+ /**
160
+ *
161
+ * @type {string}
162
+ * @memberof BattingStats
163
+ */
164
+ slg?: string;
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof BattingStats
169
+ */
170
+ ops?: string;
171
+ /**
172
+ *
173
+ * @type {number}
174
+ * @memberof BattingStats
175
+ */
176
+ caughtStealing?: number;
177
+ /**
178
+ *
179
+ * @type {number}
180
+ * @memberof BattingStats
181
+ */
182
+ stolenBases?: number;
183
+ /**
184
+ *
185
+ * @type {string}
186
+ * @memberof BattingStats
187
+ */
188
+ stolenBasePercentage?: string;
189
+ /**
190
+ *
191
+ * @type {number}
192
+ * @memberof BattingStats
193
+ */
194
+ groundIntoDoublePlay?: number;
195
+ /**
196
+ *
197
+ * @type {number}
198
+ * @memberof BattingStats
199
+ */
200
+ groundIntoTriplePlay?: number;
201
+ /**
202
+ *
203
+ * @type {number}
204
+ * @memberof BattingStats
205
+ */
206
+ plateAppearances?: number;
207
+ /**
208
+ *
209
+ * @type {number}
210
+ * @memberof BattingStats
211
+ */
212
+ totalBases?: number;
213
+ /**
214
+ *
215
+ * @type {number}
216
+ * @memberof BattingStats
217
+ */
218
+ rbi?: number;
219
+ /**
220
+ *
221
+ * @type {number}
222
+ * @memberof BattingStats
223
+ */
224
+ leftOnBase?: number;
225
+ /**
226
+ *
227
+ * @type {number}
228
+ * @memberof BattingStats
229
+ */
230
+ sacBunts?: number;
231
+ /**
232
+ *
233
+ * @type {number}
234
+ * @memberof BattingStats
235
+ */
236
+ sacFlies?: number;
237
+ /**
238
+ *
239
+ * @type {number}
240
+ * @memberof BattingStats
241
+ */
242
+ catchersInterference?: number;
243
+ /**
244
+ *
245
+ * @type {number}
246
+ * @memberof BattingStats
247
+ */
248
+ pickoffs?: number;
249
+ /**
250
+ *
251
+ * @type {string}
252
+ * @memberof BattingStats
253
+ */
254
+ atBatsPerHomeRun?: string;
255
+ /**
256
+ *
257
+ * @type {number}
258
+ * @memberof BattingStats
259
+ */
260
+ popOuts?: number;
261
+ /**
262
+ *
263
+ * @type {number}
264
+ * @memberof BattingStats
265
+ */
266
+ lineOuts?: number;
267
+ }
268
+
269
+ export declare function BattingStatsFromJSON(json: any): BattingStats;
270
+
271
+ export declare function BattingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BattingStats;
272
+
273
+ export declare function BattingStatsToJSON(json: any): BattingStats;
274
+
275
+ export declare function BattingStatsToJSONTyped(value?: BattingStats | null, ignoreDiscriminator?: boolean): any;
276
+
277
+ export declare class BlobApiResponse {
278
+ raw: Response;
279
+ constructor(raw: Response);
280
+ value(): Promise<Blob>;
281
+ }
282
+
283
+ /**
284
+ * Boxscore
285
+ *
286
+ * @export
287
+ * @interface Boxscore
288
+ */
289
+ export declare interface Boxscore {
290
+ /**
291
+ *
292
+ * @type {BoxscoreTeams}
293
+ * @memberof Boxscore
294
+ */
295
+ teams: BoxscoreTeams;
296
+ /**
297
+ *
298
+ * @type {Array<GameOfficial>}
299
+ * @memberof Boxscore
300
+ */
301
+ officials: Array<GameOfficial>;
302
+ }
303
+
304
+ export declare function BoxscoreFromJSON(json: any): Boxscore;
305
+
306
+ export declare function BoxscoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Boxscore;
307
+
308
+ /**
309
+ * Boxscore Team
310
+ *
311
+ * @export
312
+ * @interface BoxscoreTeam
313
+ */
314
+ export declare interface BoxscoreTeam {
315
+ /**
316
+ *
317
+ * @type {Team}
318
+ * @memberof BoxscoreTeam
319
+ */
320
+ team: Team;
321
+ /**
322
+ *
323
+ * @type {TeamStats}
324
+ * @memberof BoxscoreTeam
325
+ */
326
+ teamStats: TeamStats;
327
+ /**
328
+ *
329
+ * @type {Array<number>}
330
+ * @memberof BoxscoreTeam
331
+ */
332
+ batters: Array<number>;
333
+ /**
334
+ *
335
+ * @type {Array<number>}
336
+ * @memberof BoxscoreTeam
337
+ */
338
+ pitchers: Array<number>;
339
+ /**
340
+ *
341
+ * @type {Array<number>}
342
+ * @memberof BoxscoreTeam
343
+ */
344
+ bullpen: Array<number>;
345
+ /**
346
+ *
347
+ * @type {Array<number>}
348
+ * @memberof BoxscoreTeam
349
+ */
350
+ bench: Array<number>;
351
+ /**
352
+ *
353
+ * @type {{ [key: string]: Player; }}
354
+ * @memberof BoxscoreTeam
355
+ */
356
+ players: {
357
+ [key: string]: Player;
358
+ };
359
+ }
360
+
361
+ export declare function BoxscoreTeamFromJSON(json: any): BoxscoreTeam;
362
+
363
+ export declare function BoxscoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeam;
364
+
365
+ /**
366
+ *
367
+ * @export
368
+ * @interface BoxscoreTeams
369
+ */
370
+ export declare interface BoxscoreTeams {
371
+ /**
372
+ *
373
+ * @type {BoxscoreTeam}
374
+ * @memberof BoxscoreTeams
375
+ */
376
+ away: BoxscoreTeam;
377
+ /**
378
+ *
379
+ * @type {BoxscoreTeam}
380
+ * @memberof BoxscoreTeams
381
+ */
382
+ home: BoxscoreTeam;
383
+ }
384
+
385
+ export declare function BoxscoreTeamsFromJSON(json: any): BoxscoreTeams;
386
+
387
+ export declare function BoxscoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeams;
388
+
389
+ export declare function BoxscoreTeamsToJSON(json: any): BoxscoreTeams;
390
+
391
+ export declare function BoxscoreTeamsToJSONTyped(value?: BoxscoreTeams | null, ignoreDiscriminator?: boolean): any;
392
+
393
+ export declare function BoxscoreTeamToJSON(json: any): BoxscoreTeam;
394
+
395
+ export declare function BoxscoreTeamToJSONTyped(value?: BoxscoreTeam | null, ignoreDiscriminator?: boolean): any;
396
+
397
+ export declare function BoxscoreToJSON(json: any): Boxscore;
398
+
399
+ export declare function BoxscoreToJSONTyped(value?: Boxscore | null, ignoreDiscriminator?: boolean): any;
400
+
401
+ export declare function canConsumeForm(consumes: Consume[]): boolean;
402
+
403
+ export declare const COLLECTION_FORMATS: {
404
+ csv: string;
405
+ ssv: string;
406
+ tsv: string;
407
+ pipes: string;
408
+ };
409
+
410
+ export declare class Configuration {
411
+ private configuration;
412
+ constructor(configuration?: ConfigurationParameters);
413
+ set config(configuration: Configuration);
414
+ get basePath(): string;
415
+ get fetchApi(): FetchAPI | undefined;
416
+ get middleware(): Middleware[];
417
+ get queryParamsStringify(): (params: HTTPQuery) => string;
418
+ get username(): string | undefined;
419
+ get password(): string | undefined;
420
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
421
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
422
+ get headers(): HTTPHeaders | undefined;
423
+ get credentials(): RequestCredentials | undefined;
424
+ }
425
+
426
+ export declare interface ConfigurationParameters {
427
+ basePath?: string;
428
+ fetchApi?: FetchAPI;
429
+ middleware?: Middleware[];
430
+ queryParamsStringify?: (params: HTTPQuery) => string;
431
+ username?: string;
432
+ password?: string;
433
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
434
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
435
+ headers?: HTTPHeaders;
436
+ credentials?: RequestCredentials;
437
+ }
438
+
439
+ export declare interface Consume {
440
+ contentType: string;
441
+ }
442
+
443
+ export declare const DefaultConfig: Configuration;
444
+
445
+ /**
446
+ * Division
447
+ *
448
+ * @export
449
+ * @interface Division
450
+ */
451
+ export declare interface Division {
452
+ /**
453
+ *
454
+ * @type {number}
455
+ * @memberof Division
456
+ */
457
+ id: number;
458
+ /**
459
+ *
460
+ * @type {string}
461
+ * @memberof Division
462
+ */
463
+ name: string;
464
+ /**
465
+ *
466
+ * @type {string}
467
+ * @memberof Division
468
+ */
469
+ season?: string;
470
+ /**
471
+ *
472
+ * @type {string}
473
+ * @memberof Division
474
+ */
475
+ nameShort?: string;
476
+ /**
477
+ *
478
+ * @type {string}
479
+ * @memberof Division
480
+ */
481
+ link?: string;
482
+ /**
483
+ *
484
+ * @type {string}
485
+ * @memberof Division
486
+ */
487
+ abbreviation?: string;
488
+ /**
489
+ *
490
+ * @type {League}
491
+ * @memberof Division
492
+ */
493
+ league?: League;
494
+ /**
495
+ *
496
+ * @type {Sport}
497
+ * @memberof Division
498
+ */
499
+ sport?: Sport;
500
+ /**
501
+ *
502
+ * @type {boolean}
503
+ * @memberof Division
504
+ */
505
+ hasWildcard?: boolean;
506
+ /**
507
+ *
508
+ * @type {number}
509
+ * @memberof Division
510
+ */
511
+ sortOrder?: number;
512
+ /**
513
+ *
514
+ * @type {number}
515
+ * @memberof Division
516
+ */
517
+ numPlayoffTeams?: number;
518
+ /**
519
+ *
520
+ * @type {boolean}
521
+ * @memberof Division
522
+ */
523
+ active?: boolean;
524
+ }
525
+
526
+ export declare function DivisionFromJSON(json: any): Division;
527
+
528
+ export declare function DivisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Division;
529
+
530
+ /**
531
+ *
532
+ * @export
533
+ * @interface Divisions
534
+ */
535
+ export declare interface Divisions {
536
+ /**
537
+ *
538
+ * @type {Array<Division>}
539
+ * @memberof Divisions
540
+ */
541
+ divisions: Array<Division>;
542
+ }
543
+
544
+ export declare function DivisionsFromJSON(json: any): Divisions;
545
+
546
+ export declare function DivisionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Divisions;
547
+
548
+ /**
549
+ * Standings
550
+ *
551
+ * @export
552
+ * @interface DivisionStandings
553
+ */
554
+ export declare interface DivisionStandings {
555
+ /**
556
+ *
557
+ * @type {string}
558
+ * @memberof DivisionStandings
559
+ */
560
+ standingsType?: string;
561
+ /**
562
+ *
563
+ * @type {League}
564
+ * @memberof DivisionStandings
565
+ */
566
+ league: League;
567
+ /**
568
+ *
569
+ * @type {Division}
570
+ * @memberof DivisionStandings
571
+ */
572
+ division: Division;
573
+ /**
574
+ *
575
+ * @type {Sport}
576
+ * @memberof DivisionStandings
577
+ */
578
+ sport: Sport;
579
+ /**
580
+ *
581
+ * @type {string}
582
+ * @memberof DivisionStandings
583
+ */
584
+ lastUpdated?: string;
585
+ /**
586
+ *
587
+ * @type {Array<Record>}
588
+ * @memberof DivisionStandings
589
+ */
590
+ teamRecords: Array<Record_2>;
591
+ }
592
+
593
+ export declare function DivisionStandingsFromJSON(json: any): DivisionStandings;
594
+
595
+ export declare function DivisionStandingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandings;
596
+
597
+ /**
598
+ *
599
+ * @export
600
+ * @interface DivisionStandingsList
601
+ */
602
+ export declare interface DivisionStandingsList {
603
+ /**
604
+ *
605
+ * @type {Array<DivisionStandings>}
606
+ * @memberof DivisionStandingsList
607
+ */
608
+ records: Array<DivisionStandings>;
609
+ }
610
+
611
+ export declare function DivisionStandingsListFromJSON(json: any): DivisionStandingsList;
612
+
613
+ export declare function DivisionStandingsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandingsList;
614
+
615
+ export declare function DivisionStandingsListToJSON(json: any): DivisionStandingsList;
616
+
617
+ export declare function DivisionStandingsListToJSONTyped(value?: DivisionStandingsList | null, ignoreDiscriminator?: boolean): any;
618
+
619
+ export declare function DivisionStandingsToJSON(json: any): DivisionStandings;
620
+
621
+ export declare function DivisionStandingsToJSONTyped(value?: DivisionStandings | null, ignoreDiscriminator?: boolean): any;
622
+
623
+ export declare function DivisionsToJSON(json: any): Divisions;
624
+
625
+ export declare function DivisionsToJSONTyped(value?: Divisions | null, ignoreDiscriminator?: boolean): any;
626
+
627
+ export declare function DivisionToJSON(json: any): Division;
628
+
629
+ export declare function DivisionToJSONTyped(value?: Division | null, ignoreDiscriminator?: boolean): any;
630
+
631
+ export declare interface ErrorContext {
632
+ fetch: FetchAPI;
633
+ url: string;
634
+ init: RequestInit;
635
+ error: unknown;
636
+ response?: Response;
637
+ }
638
+
639
+ export declare function exists(json: any, key: string): boolean;
640
+
641
+ export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
642
+
643
+ export declare class FetchError extends Error {
644
+ cause: Error;
645
+ name: "FetchError";
646
+ constructor(cause: Error, msg?: string);
647
+ }
648
+
649
+ export declare interface FetchParams {
650
+ url: string;
651
+ init: RequestInit;
652
+ }
653
+
654
+ /**
655
+ * MLB StatAPI
656
+ * An spec API to consume the MLB Stat API
657
+ *
658
+ * The version of the OpenAPI document: 0.5.0
659
+ *
660
+ *
661
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
662
+ * https://openapi-generator.tech
663
+ * Do not edit the class manually.
664
+ */
665
+ /**
666
+ * Fielding Stats
667
+ *
668
+ * @export
669
+ * @interface FieldingStats
670
+ */
671
+ export declare interface FieldingStats {
672
+ /**
673
+ *
674
+ * @type {number}
675
+ * @memberof FieldingStats
676
+ */
677
+ caughtStealing?: number;
678
+ /**
679
+ *
680
+ * @type {number}
681
+ * @memberof FieldingStats
682
+ */
683
+ stolenBases?: number;
684
+ /**
685
+ *
686
+ * @type {string}
687
+ * @memberof FieldingStats
688
+ */
689
+ stolenBasePercentage?: string;
690
+ /**
691
+ *
692
+ * @type {number}
693
+ * @memberof FieldingStats
694
+ */
695
+ assists?: number;
696
+ /**
697
+ *
698
+ * @type {number}
699
+ * @memberof FieldingStats
700
+ */
701
+ putOuts?: number;
702
+ /**
703
+ *
704
+ * @type {number}
705
+ * @memberof FieldingStats
706
+ */
707
+ errors?: number;
708
+ /**
709
+ *
710
+ * @type {number}
711
+ * @memberof FieldingStats
712
+ */
713
+ chances?: number;
714
+ /**
715
+ *
716
+ * @type {number}
717
+ * @memberof FieldingStats
718
+ */
719
+ passedBall?: number;
720
+ /**
721
+ *
722
+ * @type {number}
723
+ * @memberof FieldingStats
724
+ */
725
+ pickoffs?: number;
726
+ }
727
+
728
+ export declare function FieldingStatsFromJSON(json: any): FieldingStats;
729
+
730
+ export declare function FieldingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldingStats;
731
+
732
+ export declare function FieldingStatsToJSON(json: any): FieldingStats;
733
+
734
+ export declare function FieldingStatsToJSONTyped(value?: FieldingStats | null, ignoreDiscriminator?: boolean): any;
735
+
736
+ /**
737
+ * Game Thing
738
+ *
739
+ * @export
740
+ * @interface Game
741
+ */
742
+ export declare interface Game {
743
+ /**
744
+ *
745
+ * @type {number}
746
+ * @memberof Game
747
+ */
748
+ gamePk: number;
749
+ /**
750
+ *
751
+ * @type {string}
752
+ * @memberof Game
753
+ */
754
+ gameGuid: string;
755
+ /**
756
+ *
757
+ * @type {string}
758
+ * @memberof Game
759
+ */
760
+ link?: string;
761
+ /**
762
+ *
763
+ * @type {GameType}
764
+ * @memberof Game
765
+ */
766
+ gameType: GameType;
767
+ /**
768
+ *
769
+ * @type {number}
770
+ * @memberof Game
771
+ */
772
+ season: number;
773
+ /**
774
+ *
775
+ * @type {string}
776
+ * @memberof Game
777
+ */
778
+ gameDate: string;
779
+ /**
780
+ *
781
+ * @type {string}
782
+ * @memberof Game
783
+ */
784
+ officialDate: string;
785
+ /**
786
+ *
787
+ * @type {number}
788
+ * @memberof Game
789
+ */
790
+ rescheduledTo?: number;
791
+ /**
792
+ *
793
+ * @type {string}
794
+ * @memberof Game
795
+ */
796
+ rescheduledToDate?: string;
797
+ /**
798
+ *
799
+ * @type {number}
800
+ * @memberof Game
801
+ */
802
+ rescheduledFrom?: number;
803
+ /**
804
+ *
805
+ * @type {string}
806
+ * @memberof Game
807
+ */
808
+ rescheduledFromDate?: string;
809
+ /**
810
+ *
811
+ * @type {GameStatus}
812
+ * @memberof Game
813
+ */
814
+ status: GameStatus;
815
+ /**
816
+ *
817
+ * @type {GameTeams}
818
+ * @memberof Game
819
+ */
820
+ teams: GameTeams;
821
+ /**
822
+ *
823
+ * @type {Venue}
824
+ * @memberof Game
825
+ */
826
+ venue?: Venue;
827
+ /**
828
+ *
829
+ * @type {boolean}
830
+ * @memberof Game
831
+ */
832
+ isTie?: boolean;
833
+ /**
834
+ *
835
+ * @type {number}
836
+ * @memberof Game
837
+ */
838
+ gameNumber: number;
839
+ /**
840
+ *
841
+ * @type {boolean}
842
+ * @memberof Game
843
+ */
844
+ publicFacing?: boolean;
845
+ /**
846
+ *
847
+ * @type {string}
848
+ * @memberof Game
849
+ */
850
+ doubleHeader?: string;
851
+ /**
852
+ *
853
+ * @type {string}
854
+ * @memberof Game
855
+ */
856
+ gamedayType?: string;
857
+ /**
858
+ *
859
+ * @type {string}
860
+ * @memberof Game
861
+ */
862
+ tiebreaker?: string;
863
+ /**
864
+ *
865
+ * @type {string}
866
+ * @memberof Game
867
+ */
868
+ calendarEventID?: string;
869
+ /**
870
+ *
871
+ * @type {string}
872
+ * @memberof Game
873
+ */
874
+ seasonDisplay?: string;
875
+ /**
876
+ *
877
+ * @type {string}
878
+ * @memberof Game
879
+ */
880
+ dayNight?: string;
881
+ /**
882
+ *
883
+ * @type {string}
884
+ * @memberof Game
885
+ */
886
+ description?: string;
887
+ /**
888
+ *
889
+ * @type {number}
890
+ * @memberof Game
891
+ */
892
+ scheduledInnings?: number;
893
+ /**
894
+ *
895
+ * @type {boolean}
896
+ * @memberof Game
897
+ */
898
+ reverseHomeAwayStatus?: boolean;
899
+ /**
900
+ *
901
+ * @type {number}
902
+ * @memberof Game
903
+ */
904
+ inningBreakLength?: number;
905
+ /**
906
+ *
907
+ * @type {number}
908
+ * @memberof Game
909
+ */
910
+ gamesInSeries: number;
911
+ /**
912
+ *
913
+ * @type {number}
914
+ * @memberof Game
915
+ */
916
+ seriesGameNumber: number;
917
+ /**
918
+ *
919
+ * @type {string}
920
+ * @memberof Game
921
+ */
922
+ seriesDescription?: string;
923
+ /**
924
+ *
925
+ * @type {string}
926
+ * @memberof Game
927
+ */
928
+ recordSource?: string;
929
+ /**
930
+ *
931
+ * @type {string}
932
+ * @memberof Game
933
+ */
934
+ ifNecessary?: string;
935
+ /**
936
+ *
937
+ * @type {string}
938
+ * @memberof Game
939
+ */
940
+ ifNecessaryDescription?: string;
941
+ }
942
+
943
+ export declare function GameFromJSON(json: any): Game;
944
+
945
+ export declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
946
+
947
+ /**
948
+ *
949
+ * @export
950
+ * @interface GameOfficial
951
+ */
952
+ export declare interface GameOfficial {
953
+ /**
954
+ *
955
+ * @type {Official}
956
+ * @memberof GameOfficial
957
+ */
958
+ official?: Official;
959
+ /**
960
+ *
961
+ * @type {string}
962
+ * @memberof GameOfficial
963
+ */
964
+ officialType?: string;
965
+ }
966
+
967
+ export declare function GameOfficialFromJSON(json: any): GameOfficial;
968
+
969
+ export declare function GameOfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameOfficial;
970
+
971
+ export declare function GameOfficialToJSON(json: any): GameOfficial;
972
+
973
+ export declare function GameOfficialToJSONTyped(value?: GameOfficial | null, ignoreDiscriminator?: boolean): any;
974
+
975
+ /**
976
+ *
977
+ * @export
978
+ * @interface GameStatus
979
+ */
980
+ export declare interface GameStatus {
981
+ /**
982
+ *
983
+ * @type {string}
984
+ * @memberof GameStatus
985
+ */
986
+ abstractGameState?: string;
987
+ /**
988
+ *
989
+ * @type {GameStatusCode}
990
+ * @memberof GameStatus
991
+ */
992
+ codedGameState?: GameStatusCode;
993
+ /**
994
+ *
995
+ * @type {string}
996
+ * @memberof GameStatus
997
+ */
998
+ detailedState?: string;
999
+ /**
1000
+ *
1001
+ * @type {string}
1002
+ * @memberof GameStatus
1003
+ */
1004
+ statusCode?: string;
1005
+ /**
1006
+ *
1007
+ * @type {boolean}
1008
+ * @memberof GameStatus
1009
+ */
1010
+ startTimeTBD?: boolean;
1011
+ /**
1012
+ *
1013
+ * @type {string}
1014
+ * @memberof GameStatus
1015
+ */
1016
+ abstractGameCode?: string;
1017
+ }
1018
+
1019
+ /**
1020
+ * MLB StatAPI
1021
+ * An spec API to consume the MLB Stat API
1022
+ *
1023
+ * The version of the OpenAPI document: 0.5.0
1024
+ *
1025
+ *
1026
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1027
+ * https://openapi-generator.tech
1028
+ * Do not edit the class manually.
1029
+ */
1030
+ /**
1031
+ * Coded Game State
1032
+ * * `F` - Final
1033
+ * * `D` - Delayed/Postponed
1034
+ * * `S` - Scheduled
1035
+ * * `I` - In Progress
1036
+ * * `P` - Pregame
1037
+ * * `O` - Game Over
1038
+ * * `C` - Canceled
1039
+ *
1040
+ * @export
1041
+ * @enum {string}
1042
+ */
1043
+ export declare enum GameStatusCode {
1044
+ Final = "F",
1045
+ Postponed = "D",
1046
+ Scheduled = "S",
1047
+ InProgress = "I",
1048
+ Pregame = "P",
1049
+ GameOver = "O",
1050
+ Canceled = "C"
1051
+ }
1052
+
1053
+ export declare function GameStatusCodeFromJSON(json: any): GameStatusCode;
1054
+
1055
+ export declare function GameStatusCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatusCode;
1056
+
1057
+ export declare function GameStatusCodeToJSON(value?: GameStatusCode | null): any;
1058
+
1059
+ export declare function GameStatusCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameStatusCode;
1060
+
1061
+ export declare function GameStatusFromJSON(json: any): GameStatus;
1062
+
1063
+ export declare function GameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatus;
1064
+
1065
+ export declare function GameStatusToJSON(json: any): GameStatus;
1066
+
1067
+ export declare function GameStatusToJSONTyped(value?: GameStatus | null, ignoreDiscriminator?: boolean): any;
1068
+
1069
+ /**
1070
+ * Game Team
1071
+ *
1072
+ * @export
1073
+ * @interface GameTeam
1074
+ */
1075
+ export declare interface GameTeam {
1076
+ /**
1077
+ *
1078
+ * @type {LeagueRecord}
1079
+ * @memberof GameTeam
1080
+ */
1081
+ leagueRecord?: LeagueRecord;
1082
+ /**
1083
+ *
1084
+ * @type {number}
1085
+ * @memberof GameTeam
1086
+ */
1087
+ score: number;
1088
+ /**
1089
+ *
1090
+ * @type {Team}
1091
+ * @memberof GameTeam
1092
+ */
1093
+ team: Team;
1094
+ /**
1095
+ *
1096
+ * @type {boolean}
1097
+ * @memberof GameTeam
1098
+ */
1099
+ isWinner: boolean;
1100
+ /**
1101
+ *
1102
+ * @type {boolean}
1103
+ * @memberof GameTeam
1104
+ */
1105
+ splitSquad?: boolean;
1106
+ /**
1107
+ *
1108
+ * @type {number}
1109
+ * @memberof GameTeam
1110
+ */
1111
+ seriesNumber?: number;
1112
+ }
1113
+
1114
+ export declare function GameTeamFromJSON(json: any): GameTeam;
1115
+
1116
+ export declare function GameTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeam;
1117
+
1118
+ /**
1119
+ *
1120
+ * @export
1121
+ * @interface GameTeams
1122
+ */
1123
+ export declare interface GameTeams {
1124
+ /**
1125
+ *
1126
+ * @type {GameTeam}
1127
+ * @memberof GameTeams
1128
+ */
1129
+ away: GameTeam;
1130
+ /**
1131
+ *
1132
+ * @type {GameTeam}
1133
+ * @memberof GameTeams
1134
+ */
1135
+ home: GameTeam;
1136
+ }
1137
+
1138
+ export declare function GameTeamsFromJSON(json: any): GameTeams;
1139
+
1140
+ export declare function GameTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeams;
1141
+
1142
+ export declare function GameTeamsToJSON(json: any): GameTeams;
1143
+
1144
+ export declare function GameTeamsToJSONTyped(value?: GameTeams | null, ignoreDiscriminator?: boolean): any;
1145
+
1146
+ export declare function GameTeamToJSON(json: any): GameTeam;
1147
+
1148
+ export declare function GameTeamToJSONTyped(value?: GameTeam | null, ignoreDiscriminator?: boolean): any;
1149
+
1150
+ export declare function GameToJSON(json: any): Game;
1151
+
1152
+ export declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator?: boolean): any;
1153
+
1154
+ /**
1155
+ * MLB StatAPI
1156
+ * An spec API to consume the MLB Stat API
1157
+ *
1158
+ * The version of the OpenAPI document: 0.5.0
1159
+ *
1160
+ *
1161
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1162
+ * https://openapi-generator.tech
1163
+ * Do not edit the class manually.
1164
+ */
1165
+ /**
1166
+ * Game Type:
1167
+ * * `E` - Exhibition
1168
+ * * `S` - Spring Training
1169
+ * * `R` - Regular Season
1170
+ * * `F` - Wild Card Series
1171
+ * * `D` - Division Series
1172
+ * * `L` - League Championship Series
1173
+ * * `W` - World Series
1174
+ *
1175
+ * @export
1176
+ * @enum {string}
1177
+ */
1178
+ export declare enum GameType {
1179
+ Exhibition = "E",
1180
+ SpringTraining = "S",
1181
+ Regular = "R",
1182
+ WildCardSeries = "F",
1183
+ DivisionSeries = "D",
1184
+ LeagueChampionshipSeries = "L",
1185
+ WorldSeries = "W"
1186
+ }
1187
+
1188
+ export declare function GameTypeFromJSON(json: any): GameType;
1189
+
1190
+ export declare function GameTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameType;
1191
+
1192
+ export declare function GameTypeToJSON(value?: GameType | null): any;
1193
+
1194
+ export declare function GameTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameType;
1195
+
1196
+ export declare interface GetAllSeasonsRequest {
1197
+ sportId: number;
1198
+ }
1199
+
1200
+ export declare interface GetBoxscoreRequest {
1201
+ gamePk: number;
1202
+ fields?: Array<string>;
1203
+ }
1204
+
1205
+ export declare interface GetDivisionsRequest {
1206
+ sportId: number;
1207
+ season: string;
1208
+ }
1209
+
1210
+ export declare interface GetLeaguesRequest {
1211
+ sportId: number;
1212
+ season: string;
1213
+ }
1214
+
1215
+ export declare interface GetLinescoreRequest {
1216
+ gamePk: number;
1217
+ fields?: Array<string>;
1218
+ }
1219
+
1220
+ export declare interface GetScheduleRequest {
1221
+ sportId: number;
1222
+ gamePk?: number;
1223
+ gameTypes?: Array<GameType>;
1224
+ startDate?: string;
1225
+ endDate?: string;
1226
+ fields?: Array<string>;
1227
+ hydrate?: string;
1228
+ leagueIds?: Array<number>;
1229
+ teamId?: Array<number>;
1230
+ }
1231
+
1232
+ export declare interface GetSeasonRequest {
1233
+ sportId: number;
1234
+ season: string;
1235
+ }
1236
+
1237
+ export declare interface GetStandingsRequest {
1238
+ leagueId: number;
1239
+ season: string;
1240
+ date?: string;
1241
+ fields?: Array<string>;
1242
+ hydrate?: string;
1243
+ }
1244
+
1245
+ export declare interface GetTeamsRequest {
1246
+ sportId: number;
1247
+ season: string;
1248
+ leagueIds?: Array<number>;
1249
+ fields?: Array<string>;
1250
+ hydrate?: string;
1251
+ }
1252
+
1253
+ export declare type HTTPBody = Json | FormData | URLSearchParams;
1254
+
1255
+ export declare type HTTPHeaders = {
1256
+ [key: string]: string;
1257
+ };
1258
+
1259
+ export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
1260
+
1261
+ export declare type HTTPQuery = {
1262
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
1263
+ };
1264
+
1265
+ export declare type HTTPRequestInit = {
1266
+ headers?: HTTPHeaders;
1267
+ method: HTTPMethod;
1268
+ credentials?: RequestCredentials;
1269
+ body?: HTTPBody;
1270
+ };
1271
+
1272
+ export declare type InitOverrideFunction = (requestContext: {
1273
+ init: HTTPRequestInit;
1274
+ context: RequestOpts;
1275
+ }) => Promise<RequestInit>;
1276
+
1277
+ /**
1278
+ * Inning
1279
+ *
1280
+ * @export
1281
+ * @interface Inning
1282
+ */
1283
+ export declare interface Inning {
1284
+ /**
1285
+ *
1286
+ * @type {number}
1287
+ * @memberof Inning
1288
+ */
1289
+ num: number;
1290
+ /**
1291
+ *
1292
+ * @type {string}
1293
+ * @memberof Inning
1294
+ */
1295
+ ordinalNum: string;
1296
+ /**
1297
+ *
1298
+ * @type {LinescoreTeam}
1299
+ * @memberof Inning
1300
+ */
1301
+ home: LinescoreTeam;
1302
+ /**
1303
+ *
1304
+ * @type {LinescoreTeam}
1305
+ * @memberof Inning
1306
+ */
1307
+ away: LinescoreTeam;
1308
+ }
1309
+
1310
+ export declare function InningFromJSON(json: any): Inning;
1311
+
1312
+ export declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inning;
1313
+
1314
+ export declare function InningToJSON(json: any): Inning;
1315
+
1316
+ export declare function InningToJSONTyped(value?: Inning | null, ignoreDiscriminator?: boolean): any;
1317
+
1318
+ /**
1319
+ * Check if a given object implements the BattingStats interface.
1320
+ */
1321
+ export declare function instanceOfBattingStats(value: object): value is BattingStats;
1322
+
1323
+ /**
1324
+ * Check if a given object implements the Boxscore interface.
1325
+ */
1326
+ export declare function instanceOfBoxscore(value: object): value is Boxscore;
1327
+
1328
+ /**
1329
+ * Check if a given object implements the BoxscoreTeam interface.
1330
+ */
1331
+ export declare function instanceOfBoxscoreTeam(value: object): value is BoxscoreTeam;
1332
+
1333
+ /**
1334
+ * Check if a given object implements the BoxscoreTeams interface.
1335
+ */
1336
+ export declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
1337
+
1338
+ /**
1339
+ * Check if a given object implements the Division interface.
1340
+ */
1341
+ export declare function instanceOfDivision(value: object): value is Division;
1342
+
1343
+ /**
1344
+ * Check if a given object implements the Divisions interface.
1345
+ */
1346
+ export declare function instanceOfDivisions(value: object): value is Divisions;
1347
+
1348
+ /**
1349
+ * Check if a given object implements the DivisionStandings interface.
1350
+ */
1351
+ export declare function instanceOfDivisionStandings(value: object): value is DivisionStandings;
1352
+
1353
+ /**
1354
+ * Check if a given object implements the DivisionStandingsList interface.
1355
+ */
1356
+ export declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
1357
+
1358
+ /**
1359
+ * Check if a given object implements the FieldingStats interface.
1360
+ */
1361
+ export declare function instanceOfFieldingStats(value: object): value is FieldingStats;
1362
+
1363
+ /**
1364
+ * Check if a given object implements the Game interface.
1365
+ */
1366
+ export declare function instanceOfGame(value: object): value is Game;
1367
+
1368
+ /**
1369
+ * Check if a given object implements the GameOfficial interface.
1370
+ */
1371
+ export declare function instanceOfGameOfficial(value: object): value is GameOfficial;
1372
+
1373
+ /**
1374
+ * Check if a given object implements the GameStatus interface.
1375
+ */
1376
+ export declare function instanceOfGameStatus(value: object): value is GameStatus;
1377
+
1378
+ export declare function instanceOfGameStatusCode(value: any): boolean;
1379
+
1380
+ /**
1381
+ * Check if a given object implements the GameTeam interface.
1382
+ */
1383
+ export declare function instanceOfGameTeam(value: object): value is GameTeam;
1384
+
1385
+ /**
1386
+ * Check if a given object implements the GameTeams interface.
1387
+ */
1388
+ export declare function instanceOfGameTeams(value: object): value is GameTeams;
1389
+
1390
+ export declare function instanceOfGameType(value: any): boolean;
1391
+
1392
+ /**
1393
+ * Check if a given object implements the Inning interface.
1394
+ */
1395
+ export declare function instanceOfInning(value: object): value is Inning;
1396
+
1397
+ /**
1398
+ * Check if a given object implements the League interface.
1399
+ */
1400
+ export declare function instanceOfLeague(value: object): value is League;
1401
+
1402
+ /**
1403
+ * Check if a given object implements the LeagueDates interface.
1404
+ */
1405
+ export declare function instanceOfLeagueDates(value: object): value is LeagueDates;
1406
+
1407
+ /**
1408
+ * Check if a given object implements the LeagueRecord interface.
1409
+ */
1410
+ export declare function instanceOfLeagueRecord(value: object): value is LeagueRecord;
1411
+
1412
+ /**
1413
+ * Check if a given object implements the Leagues interface.
1414
+ */
1415
+ export declare function instanceOfLeagues(value: object): value is Leagues;
1416
+
1417
+ /**
1418
+ * Check if a given object implements the Linescore interface.
1419
+ */
1420
+ export declare function instanceOfLinescore(value: object): value is Linescore;
1421
+
1422
+ /**
1423
+ * Check if a given object implements the LinescoreTeam interface.
1424
+ */
1425
+ export declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
1426
+
1427
+ /**
1428
+ * Check if a given object implements the LinescoreTeams interface.
1429
+ */
1430
+ export declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
1431
+
1432
+ /**
1433
+ * Check if a given object implements the Official interface.
1434
+ */
1435
+ export declare function instanceOfOfficial(value: object): value is Official;
1436
+
1437
+ /**
1438
+ * Check if a given object implements the PitchingStats interface.
1439
+ */
1440
+ export declare function instanceOfPitchingStats(value: object): value is PitchingStats;
1441
+
1442
+ /**
1443
+ * Check if a given object implements the Player interface.
1444
+ */
1445
+ export declare function instanceOfPlayer(value: object): value is Player;
1446
+
1447
+ /**
1448
+ * Check if a given object implements the PlayerGameStatus interface.
1449
+ */
1450
+ export declare function instanceOfPlayerGameStatus(value: object): value is PlayerGameStatus;
1451
+
1452
+ /**
1453
+ * Check if a given object implements the PlayerPerson interface.
1454
+ */
1455
+ export declare function instanceOfPlayerPerson(value: object): value is PlayerPerson;
1456
+
1457
+ /**
1458
+ * Check if a given object implements the PlayerPosition interface.
1459
+ */
1460
+ export declare function instanceOfPlayerPosition(value: object): value is PlayerPosition;
1461
+
1462
+ /**
1463
+ * Check if a given object implements the PlayerSeasonStats interface.
1464
+ */
1465
+ export declare function instanceOfPlayerSeasonStats(value: object): value is PlayerSeasonStats;
1466
+
1467
+ /**
1468
+ * Check if a given object implements the PlayerStats interface.
1469
+ */
1470
+ export declare function instanceOfPlayerStats(value: object): value is PlayerStats;
1471
+
1472
+ /**
1473
+ * Check if a given object implements the PlayerStatus interface.
1474
+ */
1475
+ export declare function instanceOfPlayerStatus(value: object): value is PlayerStatus;
1476
+
1477
+ /**
1478
+ * Check if a given object implements the Position interface.
1479
+ */
1480
+ export declare function instanceOfPosition(value: object): value is Position;
1481
+
1482
+ /**
1483
+ * Check if a given object implements the Record interface.
1484
+ */
1485
+ export declare function instanceOfRecord(value: object): value is Record_2;
1486
+
1487
+ /**
1488
+ * Check if a given object implements the Schedule interface.
1489
+ */
1490
+ export declare function instanceOfSchedule(value: object): value is Schedule;
1491
+
1492
+ /**
1493
+ * Check if a given object implements the ScheduleDay interface.
1494
+ */
1495
+ export declare function instanceOfScheduleDay(value: object): value is ScheduleDay;
1496
+
1497
+ /**
1498
+ * Check if a given object implements the Season interface.
1499
+ */
1500
+ export declare function instanceOfSeason(value: object): value is Season;
1501
+
1502
+ /**
1503
+ * Check if a given object implements the Seasons interface.
1504
+ */
1505
+ export declare function instanceOfSeasons(value: object): value is Seasons;
1506
+
1507
+ /**
1508
+ * Check if a given object implements the Sport interface.
1509
+ */
1510
+ export declare function instanceOfSport(value: object): value is Sport;
1511
+
1512
+ /**
1513
+ * Check if a given object implements the Streak interface.
1514
+ */
1515
+ export declare function instanceOfStreak(value: object): value is Streak;
1516
+
1517
+ /**
1518
+ * Check if a given object implements the Team interface.
1519
+ */
1520
+ export declare function instanceOfTeam(value: object): value is Team;
1521
+
1522
+ /**
1523
+ * Check if a given object implements the Teams interface.
1524
+ */
1525
+ export declare function instanceOfTeams(value: object): value is Teams;
1526
+
1527
+ /**
1528
+ * Check if a given object implements the TeamStats interface.
1529
+ */
1530
+ export declare function instanceOfTeamStats(value: object): value is TeamStats;
1531
+
1532
+ /**
1533
+ * Check if a given object implements the Venue interface.
1534
+ */
1535
+ export declare function instanceOfVenue(value: object): value is Venue;
1536
+
1537
+ export declare type Json = any;
1538
+
1539
+ export declare class JSONApiResponse<T> {
1540
+ raw: Response;
1541
+ private transformer;
1542
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
1543
+ value(): Promise<T>;
1544
+ }
1545
+
1546
+ /**
1547
+ * League
1548
+ *
1549
+ * @export
1550
+ * @interface League
1551
+ */
1552
+ export declare interface League {
1553
+ /**
1554
+ *
1555
+ * @type {number}
1556
+ * @memberof League
1557
+ */
1558
+ id: number;
1559
+ /**
1560
+ *
1561
+ * @type {string}
1562
+ * @memberof League
1563
+ */
1564
+ name: string;
1565
+ /**
1566
+ *
1567
+ * @type {string}
1568
+ * @memberof League
1569
+ */
1570
+ link?: string;
1571
+ /**
1572
+ *
1573
+ * @type {string}
1574
+ * @memberof League
1575
+ */
1576
+ abbreviation?: string;
1577
+ /**
1578
+ *
1579
+ * @type {string}
1580
+ * @memberof League
1581
+ */
1582
+ nameShort?: string;
1583
+ /**
1584
+ *
1585
+ * @type {string}
1586
+ * @memberof League
1587
+ */
1588
+ seasonState?: string;
1589
+ /**
1590
+ *
1591
+ * @type {boolean}
1592
+ * @memberof League
1593
+ */
1594
+ hasWildCard?: boolean;
1595
+ /**
1596
+ *
1597
+ * @type {boolean}
1598
+ * @memberof League
1599
+ */
1600
+ hasSplitSeason?: boolean;
1601
+ /**
1602
+ *
1603
+ * @type {boolean}
1604
+ * @memberof League
1605
+ */
1606
+ hasPlayoffPoints?: boolean;
1607
+ /**
1608
+ *
1609
+ * @type {LeagueDates}
1610
+ * @memberof League
1611
+ */
1612
+ seasonDateInfo?: LeagueDates;
1613
+ /**
1614
+ *
1615
+ * @type {string}
1616
+ * @memberof League
1617
+ */
1618
+ season?: string;
1619
+ /**
1620
+ *
1621
+ * @type {string}
1622
+ * @memberof League
1623
+ */
1624
+ orgCode?: string;
1625
+ /**
1626
+ *
1627
+ * @type {boolean}
1628
+ * @memberof League
1629
+ */
1630
+ conferencesInUse?: boolean;
1631
+ /**
1632
+ *
1633
+ * @type {boolean}
1634
+ * @memberof League
1635
+ */
1636
+ divisionsInUse?: boolean;
1637
+ /**
1638
+ *
1639
+ * @type {number}
1640
+ * @memberof League
1641
+ */
1642
+ sortOrder?: number;
1643
+ /**
1644
+ *
1645
+ * @type {boolean}
1646
+ * @memberof League
1647
+ */
1648
+ active?: boolean;
1649
+ }
1650
+
1651
+ /**
1652
+ * MLB StatAPI
1653
+ * An spec API to consume the MLB Stat API
1654
+ *
1655
+ * The version of the OpenAPI document: 0.5.0
1656
+ *
1657
+ *
1658
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1659
+ * https://openapi-generator.tech
1660
+ * Do not edit the class manually.
1661
+ */
1662
+ /**
1663
+ *
1664
+ * @export
1665
+ * @interface LeagueDates
1666
+ */
1667
+ export declare interface LeagueDates {
1668
+ /**
1669
+ *
1670
+ * @type {string}
1671
+ * @memberof LeagueDates
1672
+ */
1673
+ seasonId?: string;
1674
+ /**
1675
+ *
1676
+ * @type {string}
1677
+ * @memberof LeagueDates
1678
+ */
1679
+ preSeasonStartDate?: string;
1680
+ /**
1681
+ *
1682
+ * @type {string}
1683
+ * @memberof LeagueDates
1684
+ */
1685
+ preSeasonEndDate?: string;
1686
+ /**
1687
+ *
1688
+ * @type {string}
1689
+ * @memberof LeagueDates
1690
+ */
1691
+ seasonStartDate?: string;
1692
+ /**
1693
+ *
1694
+ * @type {string}
1695
+ * @memberof LeagueDates
1696
+ */
1697
+ springStartDate?: string;
1698
+ /**
1699
+ *
1700
+ * @type {string}
1701
+ * @memberof LeagueDates
1702
+ */
1703
+ springEndDate?: string;
1704
+ /**
1705
+ *
1706
+ * @type {string}
1707
+ * @memberof LeagueDates
1708
+ */
1709
+ offseasonStartDate?: string;
1710
+ /**
1711
+ *
1712
+ * @type {string}
1713
+ * @memberof LeagueDates
1714
+ */
1715
+ offseasonEndDate?: string;
1716
+ /**
1717
+ *
1718
+ * @type {string}
1719
+ * @memberof LeagueDates
1720
+ */
1721
+ seasonLevelGamedayType?: string;
1722
+ /**
1723
+ *
1724
+ * @type {string}
1725
+ * @memberof LeagueDates
1726
+ */
1727
+ gameLevelGamedayType?: string;
1728
+ }
1729
+
1730
+ export declare function LeagueDatesFromJSON(json: any): LeagueDates;
1731
+
1732
+ export declare function LeagueDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueDates;
1733
+
1734
+ export declare function LeagueDatesToJSON(json: any): LeagueDates;
1735
+
1736
+ export declare function LeagueDatesToJSONTyped(value?: LeagueDates | null, ignoreDiscriminator?: boolean): any;
1737
+
1738
+ export declare function LeagueFromJSON(json: any): League;
1739
+
1740
+ export declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): League;
1741
+
1742
+ /**
1743
+ * MLB StatAPI
1744
+ * An spec API to consume the MLB Stat API
1745
+ *
1746
+ * The version of the OpenAPI document: 0.5.0
1747
+ *
1748
+ *
1749
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1750
+ * https://openapi-generator.tech
1751
+ * Do not edit the class manually.
1752
+ */
1753
+ /**
1754
+ *
1755
+ * @export
1756
+ * @interface LeagueRecord
1757
+ */
1758
+ export declare interface LeagueRecord {
1759
+ /**
1760
+ *
1761
+ * @type {number}
1762
+ * @memberof LeagueRecord
1763
+ */
1764
+ wins: number;
1765
+ /**
1766
+ *
1767
+ * @type {number}
1768
+ * @memberof LeagueRecord
1769
+ */
1770
+ losses: number;
1771
+ /**
1772
+ *
1773
+ * @type {number}
1774
+ * @memberof LeagueRecord
1775
+ */
1776
+ ties?: number;
1777
+ /**
1778
+ *
1779
+ * @type {string}
1780
+ * @memberof LeagueRecord
1781
+ */
1782
+ pct: string;
1783
+ }
1784
+
1785
+ export declare function LeagueRecordFromJSON(json: any): LeagueRecord;
1786
+
1787
+ export declare function LeagueRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueRecord;
1788
+
1789
+ export declare function LeagueRecordToJSON(json: any): LeagueRecord;
1790
+
1791
+ export declare function LeagueRecordToJSONTyped(value?: LeagueRecord | null, ignoreDiscriminator?: boolean): any;
1792
+
1793
+ /**
1794
+ *
1795
+ * @export
1796
+ * @interface Leagues
1797
+ */
1798
+ export declare interface Leagues {
1799
+ /**
1800
+ *
1801
+ * @type {Array<League>}
1802
+ * @memberof Leagues
1803
+ */
1804
+ leagues: Array<League>;
1805
+ }
1806
+
1807
+ export declare function LeaguesFromJSON(json: any): Leagues;
1808
+
1809
+ export declare function LeaguesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Leagues;
1810
+
1811
+ export declare function LeaguesToJSON(json: any): Leagues;
1812
+
1813
+ export declare function LeaguesToJSONTyped(value?: Leagues | null, ignoreDiscriminator?: boolean): any;
1814
+
1815
+ export declare function LeagueToJSON(json: any): League;
1816
+
1817
+ export declare function LeagueToJSONTyped(value?: League | null, ignoreDiscriminator?: boolean): any;
1818
+
1819
+ /**
1820
+ * Linescore
1821
+ *
1822
+ * @export
1823
+ * @interface Linescore
1824
+ */
1825
+ export declare interface Linescore {
1826
+ /**
1827
+ *
1828
+ * @type {number}
1829
+ * @memberof Linescore
1830
+ */
1831
+ currentInning?: number;
1832
+ /**
1833
+ *
1834
+ * @type {string}
1835
+ * @memberof Linescore
1836
+ */
1837
+ currentInningOrdinal?: string;
1838
+ /**
1839
+ *
1840
+ * @type {string}
1841
+ * @memberof Linescore
1842
+ */
1843
+ inningState?: string;
1844
+ /**
1845
+ *
1846
+ * @type {string}
1847
+ * @memberof Linescore
1848
+ */
1849
+ inningHalf?: string;
1850
+ /**
1851
+ *
1852
+ * @type {boolean}
1853
+ * @memberof Linescore
1854
+ */
1855
+ isTopInning?: boolean;
1856
+ /**
1857
+ *
1858
+ * @type {number}
1859
+ * @memberof Linescore
1860
+ */
1861
+ scheduledInnings?: number;
1862
+ /**
1863
+ *
1864
+ * @type {Array<Inning>}
1865
+ * @memberof Linescore
1866
+ */
1867
+ innings?: Array<Inning>;
1868
+ /**
1869
+ *
1870
+ * @type {LinescoreTeams}
1871
+ * @memberof Linescore
1872
+ */
1873
+ teams: LinescoreTeams;
1874
+ /**
1875
+ *
1876
+ * @type {number}
1877
+ * @memberof Linescore
1878
+ */
1879
+ balls: number;
1880
+ /**
1881
+ *
1882
+ * @type {number}
1883
+ * @memberof Linescore
1884
+ */
1885
+ strikes: number;
1886
+ /**
1887
+ *
1888
+ * @type {number}
1889
+ * @memberof Linescore
1890
+ */
1891
+ outs: number;
1892
+ }
1893
+
1894
+ export declare function LinescoreFromJSON(json: any): Linescore;
1895
+
1896
+ export declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Linescore;
1897
+
1898
+ /**
1899
+ * MLB StatAPI
1900
+ * An spec API to consume the MLB Stat API
1901
+ *
1902
+ * The version of the OpenAPI document: 0.5.0
1903
+ *
1904
+ *
1905
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1906
+ * https://openapi-generator.tech
1907
+ * Do not edit the class manually.
1908
+ */
1909
+ /**
1910
+ * InningTeam
1911
+ *
1912
+ * @export
1913
+ * @interface LinescoreTeam
1914
+ */
1915
+ export declare interface LinescoreTeam {
1916
+ /**
1917
+ *
1918
+ * @type {number}
1919
+ * @memberof LinescoreTeam
1920
+ */
1921
+ runs: number;
1922
+ /**
1923
+ *
1924
+ * @type {number}
1925
+ * @memberof LinescoreTeam
1926
+ */
1927
+ hits: number;
1928
+ /**
1929
+ *
1930
+ * @type {number}
1931
+ * @memberof LinescoreTeam
1932
+ */
1933
+ errors: number;
1934
+ /**
1935
+ *
1936
+ * @type {number}
1937
+ * @memberof LinescoreTeam
1938
+ */
1939
+ leftOnBase: number;
1940
+ }
1941
+
1942
+ export declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
1943
+
1944
+ export declare function LinescoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeam;
1945
+
1946
+ /**
1947
+ *
1948
+ * @export
1949
+ * @interface LinescoreTeams
1950
+ */
1951
+ export declare interface LinescoreTeams {
1952
+ /**
1953
+ *
1954
+ * @type {LinescoreTeam}
1955
+ * @memberof LinescoreTeams
1956
+ */
1957
+ away: LinescoreTeam;
1958
+ /**
1959
+ *
1960
+ * @type {LinescoreTeam}
1961
+ * @memberof LinescoreTeams
1962
+ */
1963
+ home: LinescoreTeam;
1964
+ }
1965
+
1966
+ export declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
1967
+
1968
+ export declare function LinescoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeams;
1969
+
1970
+ export declare function LinescoreTeamsToJSON(json: any): LinescoreTeams;
1971
+
1972
+ export declare function LinescoreTeamsToJSONTyped(value?: LinescoreTeams | null, ignoreDiscriminator?: boolean): any;
1973
+
1974
+ export declare function LinescoreTeamToJSON(json: any): LinescoreTeam;
1975
+
1976
+ export declare function LinescoreTeamToJSONTyped(value?: LinescoreTeam | null, ignoreDiscriminator?: boolean): any;
1977
+
1978
+ export declare function LinescoreToJSON(json: any): Linescore;
1979
+
1980
+ export declare function LinescoreToJSONTyped(value?: Linescore | null, ignoreDiscriminator?: boolean): any;
1981
+
1982
+ export declare function mapValues(data: any, fn: (item: any) => any): {
1983
+ [key: string]: any;
1984
+ };
1985
+
1986
+ export declare interface Middleware {
1987
+ pre?(context: RequestContext): Promise<FetchParams | void>;
1988
+ post?(context: ResponseContext): Promise<Response | void>;
1989
+ onError?(context: ErrorContext): Promise<Response | void>;
1990
+ }
1991
+
1992
+ /**
1993
+ *
1994
+ */
1995
+ export declare class MlbApi extends runtime.BaseAPI {
1996
+ /**
1997
+ * Returns All Seasons
1998
+ * Retrieves All Seasons over time
1999
+ */
2000
+ getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Seasons>>;
2001
+ /**
2002
+ * Returns All Seasons
2003
+ * Retrieves All Seasons over time
2004
+ */
2005
+ getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Seasons>;
2006
+ /**
2007
+ * Returns Boxscore
2008
+ * Retrieves boxscore
2009
+ */
2010
+ getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Boxscore>>;
2011
+ /**
2012
+ * Returns Boxscore
2013
+ * Retrieves boxscore
2014
+ */
2015
+ getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Boxscore>;
2016
+ /**
2017
+ * Returns Divisions
2018
+ * Retrieves Divisions
2019
+ */
2020
+ getDivisionsRaw(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Divisions>>;
2021
+ /**
2022
+ * Returns Divisions
2023
+ * Retrieves Divisions
2024
+ */
2025
+ getDivisions(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Divisions>;
2026
+ /**
2027
+ * Returns Leagues
2028
+ * Retrieves Leagues
2029
+ */
2030
+ getLeaguesRaw(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Leagues>>;
2031
+ /**
2032
+ * Returns Leagues
2033
+ * Retrieves Leagues
2034
+ */
2035
+ getLeagues(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Leagues>;
2036
+ /**
2037
+ * Returns Linescore
2038
+ * Retrieves linescore
2039
+ */
2040
+ getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Linescore>>;
2041
+ /**
2042
+ * Returns Linescore
2043
+ * Retrieves linescore
2044
+ */
2045
+ getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Linescore>;
2046
+ /**
2047
+ * Returns Schedule
2048
+ * Retrieves schedule
2049
+ */
2050
+ getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Schedule>>;
2051
+ /**
2052
+ * Returns Schedule
2053
+ * Retrieves schedule
2054
+ */
2055
+ getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Schedule>;
2056
+ /**
2057
+ * Returns Season
2058
+ * Retrieves season
2059
+ */
2060
+ getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Seasons>>;
2061
+ /**
2062
+ * Returns Season
2063
+ * Retrieves season
2064
+ */
2065
+ getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Seasons>;
2066
+ /**
2067
+ * Returns Standing
2068
+ * Retrieves Standings
2069
+ */
2070
+ getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DivisionStandingsList>>;
2071
+ /**
2072
+ * Returns Standing
2073
+ * Retrieves Standings
2074
+ */
2075
+ getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DivisionStandingsList>;
2076
+ /**
2077
+ * Returns Teams
2078
+ * Retrieves Teams
2079
+ */
2080
+ getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Teams>>;
2081
+ /**
2082
+ * Returns Teams
2083
+ * Retrieves Teams
2084
+ */
2085
+ getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Teams>;
2086
+ }
2087
+
2088
+ export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
2089
+
2090
+ /**
2091
+ * MLB StatAPI
2092
+ * An spec API to consume the MLB Stat API
2093
+ *
2094
+ * The version of the OpenAPI document: 0.5.0
2095
+ *
2096
+ *
2097
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2098
+ * https://openapi-generator.tech
2099
+ * Do not edit the class manually.
2100
+ */
2101
+ /**
2102
+ *
2103
+ * @export
2104
+ * @interface Official
2105
+ */
2106
+ export declare interface Official {
2107
+ /**
2108
+ *
2109
+ * @type {number}
2110
+ * @memberof Official
2111
+ */
2112
+ id?: number;
2113
+ /**
2114
+ *
2115
+ * @type {string}
2116
+ * @memberof Official
2117
+ */
2118
+ fullName?: string;
2119
+ /**
2120
+ *
2121
+ * @type {string}
2122
+ * @memberof Official
2123
+ */
2124
+ link?: string;
2125
+ }
2126
+
2127
+ export declare function OfficialFromJSON(json: any): Official;
2128
+
2129
+ export declare function OfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): Official;
2130
+
2131
+ export declare function OfficialToJSON(json: any): Official;
2132
+
2133
+ export declare function OfficialToJSONTyped(value?: Official | null, ignoreDiscriminator?: boolean): any;
2134
+
2135
+ /**
2136
+ * MLB StatAPI
2137
+ * An spec API to consume the MLB Stat API
2138
+ *
2139
+ * The version of the OpenAPI document: 0.5.0
2140
+ *
2141
+ *
2142
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2143
+ * https://openapi-generator.tech
2144
+ * Do not edit the class manually.
2145
+ */
2146
+ /**
2147
+ * Pitching Stats
2148
+ *
2149
+ * @export
2150
+ * @interface PitchingStats
2151
+ */
2152
+ export declare interface PitchingStats {
2153
+ /**
2154
+ *
2155
+ * @type {number}
2156
+ * @memberof PitchingStats
2157
+ */
2158
+ flyOuts?: number;
2159
+ /**
2160
+ *
2161
+ * @type {number}
2162
+ * @memberof PitchingStats
2163
+ */
2164
+ groundOuts?: number;
2165
+ /**
2166
+ *
2167
+ * @type {number}
2168
+ * @memberof PitchingStats
2169
+ */
2170
+ airOuts?: number;
2171
+ /**
2172
+ *
2173
+ * @type {number}
2174
+ * @memberof PitchingStats
2175
+ */
2176
+ runs?: number;
2177
+ /**
2178
+ *
2179
+ * @type {number}
2180
+ * @memberof PitchingStats
2181
+ */
2182
+ doubles?: number;
2183
+ /**
2184
+ *
2185
+ * @type {number}
2186
+ * @memberof PitchingStats
2187
+ */
2188
+ triples?: number;
2189
+ /**
2190
+ *
2191
+ * @type {number}
2192
+ * @memberof PitchingStats
2193
+ */
2194
+ homeRuns?: number;
2195
+ /**
2196
+ *
2197
+ * @type {number}
2198
+ * @memberof PitchingStats
2199
+ */
2200
+ strikeOuts?: number;
2201
+ /**
2202
+ *
2203
+ * @type {number}
2204
+ * @memberof PitchingStats
2205
+ */
2206
+ baseOnBalls?: number;
2207
+ /**
2208
+ *
2209
+ * @type {number}
2210
+ * @memberof PitchingStats
2211
+ */
2212
+ intentionalWalks?: number;
2213
+ /**
2214
+ *
2215
+ * @type {number}
2216
+ * @memberof PitchingStats
2217
+ */
2218
+ hits?: number;
2219
+ /**
2220
+ *
2221
+ * @type {number}
2222
+ * @memberof PitchingStats
2223
+ */
2224
+ hitByPitch?: number;
2225
+ /**
2226
+ *
2227
+ * @type {number}
2228
+ * @memberof PitchingStats
2229
+ */
2230
+ atBats?: number;
2231
+ /**
2232
+ *
2233
+ * @type {string}
2234
+ * @memberof PitchingStats
2235
+ */
2236
+ obp?: string;
2237
+ /**
2238
+ *
2239
+ * @type {number}
2240
+ * @memberof PitchingStats
2241
+ */
2242
+ caughtStealing?: number;
2243
+ /**
2244
+ *
2245
+ * @type {number}
2246
+ * @memberof PitchingStats
2247
+ */
2248
+ stolenBases?: number;
2249
+ /**
2250
+ *
2251
+ * @type {string}
2252
+ * @memberof PitchingStats
2253
+ */
2254
+ stolenBasePercentage?: string;
2255
+ /**
2256
+ *
2257
+ * @type {number}
2258
+ * @memberof PitchingStats
2259
+ */
2260
+ numberOfPitches?: number;
2261
+ /**
2262
+ *
2263
+ * @type {string}
2264
+ * @memberof PitchingStats
2265
+ */
2266
+ era?: string;
2267
+ /**
2268
+ *
2269
+ * @type {string}
2270
+ * @memberof PitchingStats
2271
+ */
2272
+ inningsPitched?: string;
2273
+ /**
2274
+ *
2275
+ * @type {number}
2276
+ * @memberof PitchingStats
2277
+ */
2278
+ saveOpportunities?: number;
2279
+ /**
2280
+ *
2281
+ * @type {number}
2282
+ * @memberof PitchingStats
2283
+ */
2284
+ earnedRuns?: number;
2285
+ /**
2286
+ *
2287
+ * @type {string}
2288
+ * @memberof PitchingStats
2289
+ */
2290
+ whip?: string;
2291
+ /**
2292
+ *
2293
+ * @type {number}
2294
+ * @memberof PitchingStats
2295
+ */
2296
+ battersFaced?: number;
2297
+ /**
2298
+ *
2299
+ * @type {number}
2300
+ * @memberof PitchingStats
2301
+ */
2302
+ outs?: number;
2303
+ /**
2304
+ *
2305
+ * @type {number}
2306
+ * @memberof PitchingStats
2307
+ */
2308
+ completeGames?: number;
2309
+ /**
2310
+ *
2311
+ * @type {number}
2312
+ * @memberof PitchingStats
2313
+ */
2314
+ shutouts?: number;
2315
+ /**
2316
+ *
2317
+ * @type {number}
2318
+ * @memberof PitchingStats
2319
+ */
2320
+ pitchesThrown?: number;
2321
+ /**
2322
+ *
2323
+ * @type {number}
2324
+ * @memberof PitchingStats
2325
+ */
2326
+ balls?: number;
2327
+ /**
2328
+ *
2329
+ * @type {number}
2330
+ * @memberof PitchingStats
2331
+ */
2332
+ strikes?: number;
2333
+ /**
2334
+ *
2335
+ * @type {string}
2336
+ * @memberof PitchingStats
2337
+ */
2338
+ strikePercentage?: string;
2339
+ /**
2340
+ *
2341
+ * @type {number}
2342
+ * @memberof PitchingStats
2343
+ */
2344
+ hitBatsmen?: number;
2345
+ /**
2346
+ *
2347
+ * @type {number}
2348
+ * @memberof PitchingStats
2349
+ */
2350
+ balks?: number;
2351
+ /**
2352
+ *
2353
+ * @type {number}
2354
+ * @memberof PitchingStats
2355
+ */
2356
+ wildPitches?: number;
2357
+ /**
2358
+ *
2359
+ * @type {number}
2360
+ * @memberof PitchingStats
2361
+ */
2362
+ pickoffs?: number;
2363
+ /**
2364
+ *
2365
+ * @type {string}
2366
+ * @memberof PitchingStats
2367
+ */
2368
+ groundOutsToAirouts?: string;
2369
+ /**
2370
+ *
2371
+ * @type {number}
2372
+ * @memberof PitchingStats
2373
+ */
2374
+ rbi?: number;
2375
+ /**
2376
+ *
2377
+ * @type {string}
2378
+ * @memberof PitchingStats
2379
+ */
2380
+ pitchesPerInning?: string;
2381
+ /**
2382
+ *
2383
+ * @type {string}
2384
+ * @memberof PitchingStats
2385
+ */
2386
+ runsScoredPer9?: string;
2387
+ /**
2388
+ *
2389
+ * @type {string}
2390
+ * @memberof PitchingStats
2391
+ */
2392
+ homeRunsPer9?: string;
2393
+ /**
2394
+ *
2395
+ * @type {number}
2396
+ * @memberof PitchingStats
2397
+ */
2398
+ inheritedRunners?: number;
2399
+ /**
2400
+ *
2401
+ * @type {number}
2402
+ * @memberof PitchingStats
2403
+ */
2404
+ inheritedRunnersScored?: number;
2405
+ /**
2406
+ *
2407
+ * @type {number}
2408
+ * @memberof PitchingStats
2409
+ */
2410
+ catchersInterference?: number;
2411
+ /**
2412
+ *
2413
+ * @type {number}
2414
+ * @memberof PitchingStats
2415
+ */
2416
+ sacBunts?: number;
2417
+ /**
2418
+ *
2419
+ * @type {number}
2420
+ * @memberof PitchingStats
2421
+ */
2422
+ sacFlies?: number;
2423
+ /**
2424
+ *
2425
+ * @type {number}
2426
+ * @memberof PitchingStats
2427
+ */
2428
+ passedBall?: number;
2429
+ /**
2430
+ *
2431
+ * @type {number}
2432
+ * @memberof PitchingStats
2433
+ */
2434
+ popOuts?: number;
2435
+ /**
2436
+ *
2437
+ * @type {number}
2438
+ * @memberof PitchingStats
2439
+ */
2440
+ lineOuts?: number;
2441
+ }
2442
+
2443
+ export declare function PitchingStatsFromJSON(json: any): PitchingStats;
2444
+
2445
+ export declare function PitchingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PitchingStats;
2446
+
2447
+ export declare function PitchingStatsToJSON(json: any): PitchingStats;
2448
+
2449
+ export declare function PitchingStatsToJSONTyped(value?: PitchingStats | null, ignoreDiscriminator?: boolean): any;
2450
+
2451
+ /**
2452
+ * Player
2453
+ *
2454
+ * @export
2455
+ * @interface Player
2456
+ */
2457
+ export declare interface Player {
2458
+ /**
2459
+ *
2460
+ * @type {PlayerPerson}
2461
+ * @memberof Player
2462
+ */
2463
+ person: PlayerPerson;
2464
+ /**
2465
+ *
2466
+ * @type {string}
2467
+ * @memberof Player
2468
+ */
2469
+ jerseyNumber?: string;
2470
+ /**
2471
+ *
2472
+ * @type {PlayerPosition}
2473
+ * @memberof Player
2474
+ */
2475
+ position: PlayerPosition;
2476
+ /**
2477
+ *
2478
+ * @type {PlayerStatus}
2479
+ * @memberof Player
2480
+ */
2481
+ status?: PlayerStatus;
2482
+ /**
2483
+ *
2484
+ * @type {number}
2485
+ * @memberof Player
2486
+ */
2487
+ parentTeamId?: number;
2488
+ /**
2489
+ *
2490
+ * @type {number}
2491
+ * @memberof Player
2492
+ */
2493
+ battingOrder?: number;
2494
+ /**
2495
+ *
2496
+ * @type {PlayerStats}
2497
+ * @memberof Player
2498
+ */
2499
+ stats: PlayerStats;
2500
+ /**
2501
+ *
2502
+ * @type {PlayerSeasonStats}
2503
+ * @memberof Player
2504
+ */
2505
+ seasonStats: PlayerSeasonStats;
2506
+ /**
2507
+ *
2508
+ * @type {PlayerGameStatus}
2509
+ * @memberof Player
2510
+ */
2511
+ gameStatus?: PlayerGameStatus;
2512
+ /**
2513
+ *
2514
+ * @type {Array<Position>}
2515
+ * @memberof Player
2516
+ */
2517
+ allPositions?: Array<Position>;
2518
+ /**
2519
+ *
2520
+ * @type {string}
2521
+ * @memberof Player
2522
+ */
2523
+ type?: string;
2524
+ /**
2525
+ *
2526
+ * @type {number}
2527
+ * @memberof Player
2528
+ */
2529
+ gameScore?: number;
2530
+ /**
2531
+ *
2532
+ * @type {number}
2533
+ * @memberof Player
2534
+ */
2535
+ hittingGameScore?: number;
2536
+ }
2537
+
2538
+ export declare function PlayerFromJSON(json: any): Player;
2539
+
2540
+ export declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Player;
2541
+
2542
+ /**
2543
+ * MLB StatAPI
2544
+ * An spec API to consume the MLB Stat API
2545
+ *
2546
+ * The version of the OpenAPI document: 0.5.0
2547
+ *
2548
+ *
2549
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2550
+ * https://openapi-generator.tech
2551
+ * Do not edit the class manually.
2552
+ */
2553
+ /**
2554
+ *
2555
+ * @export
2556
+ * @interface PlayerGameStatus
2557
+ */
2558
+ export declare interface PlayerGameStatus {
2559
+ /**
2560
+ *
2561
+ * @type {boolean}
2562
+ * @memberof PlayerGameStatus
2563
+ */
2564
+ isCurrentBatter?: boolean;
2565
+ /**
2566
+ *
2567
+ * @type {boolean}
2568
+ * @memberof PlayerGameStatus
2569
+ */
2570
+ isCurrentPitcher?: boolean;
2571
+ /**
2572
+ *
2573
+ * @type {boolean}
2574
+ * @memberof PlayerGameStatus
2575
+ */
2576
+ isOnBench?: boolean;
2577
+ /**
2578
+ *
2579
+ * @type {boolean}
2580
+ * @memberof PlayerGameStatus
2581
+ */
2582
+ isSubstitute?: boolean;
2583
+ }
2584
+
2585
+ export declare function PlayerGameStatusFromJSON(json: any): PlayerGameStatus;
2586
+
2587
+ export declare function PlayerGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerGameStatus;
2588
+
2589
+ export declare function PlayerGameStatusToJSON(json: any): PlayerGameStatus;
2590
+
2591
+ export declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | null, ignoreDiscriminator?: boolean): any;
2592
+
2593
+ /**
2594
+ * MLB StatAPI
2595
+ * An spec API to consume the MLB Stat API
2596
+ *
2597
+ * The version of the OpenAPI document: 0.5.0
2598
+ *
2599
+ *
2600
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2601
+ * https://openapi-generator.tech
2602
+ * Do not edit the class manually.
2603
+ */
2604
+ /**
2605
+ *
2606
+ * @export
2607
+ * @interface PlayerPerson
2608
+ */
2609
+ export declare interface PlayerPerson {
2610
+ /**
2611
+ *
2612
+ * @type {string}
2613
+ * @memberof PlayerPerson
2614
+ */
2615
+ id: string;
2616
+ /**
2617
+ *
2618
+ * @type {string}
2619
+ * @memberof PlayerPerson
2620
+ */
2621
+ fullName: string;
2622
+ /**
2623
+ *
2624
+ * @type {string}
2625
+ * @memberof PlayerPerson
2626
+ */
2627
+ link: string;
2628
+ /**
2629
+ *
2630
+ * @type {string}
2631
+ * @memberof PlayerPerson
2632
+ */
2633
+ boxscoreName: string;
2634
+ }
2635
+
2636
+ export declare function PlayerPersonFromJSON(json: any): PlayerPerson;
2637
+
2638
+ export declare function PlayerPersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPerson;
2639
+
2640
+ export declare function PlayerPersonToJSON(json: any): PlayerPerson;
2641
+
2642
+ export declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ignoreDiscriminator?: boolean): any;
2643
+
2644
+ /**
2645
+ * MLB StatAPI
2646
+ * An spec API to consume the MLB Stat API
2647
+ *
2648
+ * The version of the OpenAPI document: 0.5.0
2649
+ *
2650
+ *
2651
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2652
+ * https://openapi-generator.tech
2653
+ * Do not edit the class manually.
2654
+ */
2655
+ /**
2656
+ *
2657
+ * @export
2658
+ * @interface PlayerPosition
2659
+ */
2660
+ export declare interface PlayerPosition {
2661
+ /**
2662
+ *
2663
+ * @type {string}
2664
+ * @memberof PlayerPosition
2665
+ */
2666
+ code?: string;
2667
+ /**
2668
+ *
2669
+ * @type {string}
2670
+ * @memberof PlayerPosition
2671
+ */
2672
+ name?: string;
2673
+ /**
2674
+ *
2675
+ * @type {string}
2676
+ * @memberof PlayerPosition
2677
+ */
2678
+ type?: string;
2679
+ /**
2680
+ *
2681
+ * @type {string}
2682
+ * @memberof PlayerPosition
2683
+ */
2684
+ abbreviation?: string;
2685
+ }
2686
+
2687
+ export declare function PlayerPositionFromJSON(json: any): PlayerPosition;
2688
+
2689
+ export declare function PlayerPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPosition;
2690
+
2691
+ export declare function PlayerPositionToJSON(json: any): PlayerPosition;
2692
+
2693
+ export declare function PlayerPositionToJSONTyped(value?: PlayerPosition | null, ignoreDiscriminator?: boolean): any;
2694
+
2695
+ /**
2696
+ *
2697
+ * @export
2698
+ * @interface PlayerSeasonStats
2699
+ */
2700
+ export declare interface PlayerSeasonStats {
2701
+ /**
2702
+ *
2703
+ * @type {BattingStats}
2704
+ * @memberof PlayerSeasonStats
2705
+ */
2706
+ batting: BattingStats;
2707
+ /**
2708
+ *
2709
+ * @type {PitchingStats}
2710
+ * @memberof PlayerSeasonStats
2711
+ */
2712
+ pitching: PitchingStats;
2713
+ /**
2714
+ *
2715
+ * @type {FieldingStats}
2716
+ * @memberof PlayerSeasonStats
2717
+ */
2718
+ fielding: FieldingStats;
2719
+ }
2720
+
2721
+ export declare function PlayerSeasonStatsFromJSON(json: any): PlayerSeasonStats;
2722
+
2723
+ export declare function PlayerSeasonStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerSeasonStats;
2724
+
2725
+ export declare function PlayerSeasonStatsToJSON(json: any): PlayerSeasonStats;
2726
+
2727
+ export declare function PlayerSeasonStatsToJSONTyped(value?: PlayerSeasonStats | null, ignoreDiscriminator?: boolean): any;
2728
+
2729
+ /**
2730
+ *
2731
+ * @export
2732
+ * @interface PlayerStats
2733
+ */
2734
+ export declare interface PlayerStats {
2735
+ /**
2736
+ *
2737
+ * @type {BattingStats}
2738
+ * @memberof PlayerStats
2739
+ */
2740
+ batting: BattingStats;
2741
+ /**
2742
+ *
2743
+ * @type {PitchingStats}
2744
+ * @memberof PlayerStats
2745
+ */
2746
+ pitching: PitchingStats;
2747
+ /**
2748
+ *
2749
+ * @type {FieldingStats}
2750
+ * @memberof PlayerStats
2751
+ */
2752
+ fielding: FieldingStats;
2753
+ }
2754
+
2755
+ export declare function PlayerStatsFromJSON(json: any): PlayerStats;
2756
+
2757
+ export declare function PlayerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStats;
2758
+
2759
+ export declare function PlayerStatsToJSON(json: any): PlayerStats;
2760
+
2761
+ export declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignoreDiscriminator?: boolean): any;
2762
+
2763
+ /**
2764
+ * MLB StatAPI
2765
+ * An spec API to consume the MLB Stat API
2766
+ *
2767
+ * The version of the OpenAPI document: 0.5.0
2768
+ *
2769
+ *
2770
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2771
+ * https://openapi-generator.tech
2772
+ * Do not edit the class manually.
2773
+ */
2774
+ /**
2775
+ *
2776
+ * @export
2777
+ * @interface PlayerStatus
2778
+ */
2779
+ export declare interface PlayerStatus {
2780
+ /**
2781
+ *
2782
+ * @type {string}
2783
+ * @memberof PlayerStatus
2784
+ */
2785
+ code?: string;
2786
+ /**
2787
+ *
2788
+ * @type {string}
2789
+ * @memberof PlayerStatus
2790
+ */
2791
+ description?: string;
2792
+ }
2793
+
2794
+ export declare function PlayerStatusFromJSON(json: any): PlayerStatus;
2795
+
2796
+ export declare function PlayerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStatus;
2797
+
2798
+ export declare function PlayerStatusToJSON(json: any): PlayerStatus;
2799
+
2800
+ export declare function PlayerStatusToJSONTyped(value?: PlayerStatus | null, ignoreDiscriminator?: boolean): any;
2801
+
2802
+ export declare function PlayerToJSON(json: any): Player;
2803
+
2804
+ export declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscriminator?: boolean): any;
2805
+
2806
+ /**
2807
+ * MLB StatAPI
2808
+ * An spec API to consume the MLB Stat API
2809
+ *
2810
+ * The version of the OpenAPI document: 0.5.0
2811
+ *
2812
+ *
2813
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2814
+ * https://openapi-generator.tech
2815
+ * Do not edit the class manually.
2816
+ */
2817
+ /**
2818
+ *
2819
+ * @export
2820
+ * @interface Position
2821
+ */
2822
+ export declare interface Position {
2823
+ /**
2824
+ *
2825
+ * @type {string}
2826
+ * @memberof Position
2827
+ */
2828
+ code?: string;
2829
+ /**
2830
+ *
2831
+ * @type {string}
2832
+ * @memberof Position
2833
+ */
2834
+ name?: string;
2835
+ /**
2836
+ *
2837
+ * @type {string}
2838
+ * @memberof Position
2839
+ */
2840
+ type?: string;
2841
+ /**
2842
+ *
2843
+ * @type {string}
2844
+ * @memberof Position
2845
+ */
2846
+ abbreviation?: string;
2847
+ }
2848
+
2849
+ export declare function PositionFromJSON(json: any): Position;
2850
+
2851
+ export declare function PositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Position;
2852
+
2853
+ export declare function PositionToJSON(json: any): Position;
2854
+
2855
+ export declare function PositionToJSONTyped(value?: Position | null, ignoreDiscriminator?: boolean): any;
2856
+
2857
+ export declare function querystring(params: HTTPQuery, prefix?: string): string;
2858
+
2859
+ /**
2860
+ * Record
2861
+ *
2862
+ * @export
2863
+ * @interface Record
2864
+ */
2865
+ declare interface Record_2 {
2866
+ /**
2867
+ *
2868
+ * @type {Team}
2869
+ * @memberof Record
2870
+ */
2871
+ team: Team;
2872
+ /**
2873
+ *
2874
+ * @type {string}
2875
+ * @memberof Record
2876
+ */
2877
+ season: string;
2878
+ /**
2879
+ *
2880
+ * @type {Streak}
2881
+ * @memberof Record
2882
+ */
2883
+ streak: Streak;
2884
+ /**
2885
+ *
2886
+ * @type {string}
2887
+ * @memberof Record
2888
+ */
2889
+ divisionRank: string;
2890
+ /**
2891
+ *
2892
+ * @type {string}
2893
+ * @memberof Record
2894
+ */
2895
+ leagueRank: string;
2896
+ /**
2897
+ *
2898
+ * @type {string}
2899
+ * @memberof Record
2900
+ */
2901
+ sportRank?: string;
2902
+ /**
2903
+ *
2904
+ * @type {number}
2905
+ * @memberof Record
2906
+ */
2907
+ gamesPlayed?: number;
2908
+ /**
2909
+ *
2910
+ * @type {string}
2911
+ * @memberof Record
2912
+ */
2913
+ gamesBack: string;
2914
+ /**
2915
+ *
2916
+ * @type {string}
2917
+ * @memberof Record
2918
+ */
2919
+ wildCardGamesBack?: string;
2920
+ /**
2921
+ *
2922
+ * @type {string}
2923
+ * @memberof Record
2924
+ */
2925
+ leagueGamesBack?: string;
2926
+ /**
2927
+ *
2928
+ * @type {string}
2929
+ * @memberof Record
2930
+ */
2931
+ sportGamesBack?: string;
2932
+ /**
2933
+ *
2934
+ * @type {string}
2935
+ * @memberof Record
2936
+ */
2937
+ divisionGamesBack?: string;
2938
+ /**
2939
+ *
2940
+ * @type {string}
2941
+ * @memberof Record
2942
+ */
2943
+ conferenceGamesBack?: string;
2944
+ /**
2945
+ *
2946
+ * @type {LeagueRecord}
2947
+ * @memberof Record
2948
+ */
2949
+ leagueRecord: LeagueRecord;
2950
+ /**
2951
+ *
2952
+ * @type {string}
2953
+ * @memberof Record
2954
+ */
2955
+ lastUpdated?: string;
2956
+ /**
2957
+ *
2958
+ * @type {number}
2959
+ * @memberof Record
2960
+ */
2961
+ runsAllowed?: number;
2962
+ /**
2963
+ *
2964
+ * @type {number}
2965
+ * @memberof Record
2966
+ */
2967
+ runsScored?: number;
2968
+ /**
2969
+ *
2970
+ * @type {boolean}
2971
+ * @memberof Record
2972
+ */
2973
+ divisionChamp?: boolean;
2974
+ /**
2975
+ *
2976
+ * @type {boolean}
2977
+ * @memberof Record
2978
+ */
2979
+ divisionLeader?: boolean;
2980
+ /**
2981
+ *
2982
+ * @type {boolean}
2983
+ * @memberof Record
2984
+ */
2985
+ hasWildcard?: boolean;
2986
+ /**
2987
+ *
2988
+ * @type {boolean}
2989
+ * @memberof Record
2990
+ */
2991
+ clinched?: boolean;
2992
+ /**
2993
+ *
2994
+ * @type {string}
2995
+ * @memberof Record
2996
+ */
2997
+ eliminationNumber?: string;
2998
+ /**
2999
+ *
3000
+ * @type {string}
3001
+ * @memberof Record
3002
+ */
3003
+ eliminationNumberSport?: string;
3004
+ /**
3005
+ *
3006
+ * @type {string}
3007
+ * @memberof Record
3008
+ */
3009
+ eliminationNumberLeague?: string;
3010
+ /**
3011
+ *
3012
+ * @type {string}
3013
+ * @memberof Record
3014
+ */
3015
+ eliminationNumberDivision?: string;
3016
+ /**
3017
+ *
3018
+ * @type {string}
3019
+ * @memberof Record
3020
+ */
3021
+ eliminationNumberConference?: string;
3022
+ /**
3023
+ *
3024
+ * @type {string}
3025
+ * @memberof Record
3026
+ */
3027
+ wildCardEliminationNumber?: string;
3028
+ /**
3029
+ *
3030
+ * @type {string}
3031
+ * @memberof Record
3032
+ */
3033
+ magicNumber?: string;
3034
+ /**
3035
+ *
3036
+ * @type {number}
3037
+ * @memberof Record
3038
+ */
3039
+ wins: number;
3040
+ /**
3041
+ *
3042
+ * @type {number}
3043
+ * @memberof Record
3044
+ */
3045
+ losses: number;
3046
+ /**
3047
+ *
3048
+ * @type {number}
3049
+ * @memberof Record
3050
+ */
3051
+ runDifferential?: number;
3052
+ /**
3053
+ *
3054
+ * @type {string}
3055
+ * @memberof Record
3056
+ */
3057
+ winningPercentage?: string;
3058
+ }
3059
+ export { Record_2 as Record }
3060
+
3061
+ export declare function RecordFromJSON(json: any): Record_2;
3062
+
3063
+ export declare function RecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Record_2;
3064
+
3065
+ export declare function RecordToJSON(json: any): Record_2;
3066
+
3067
+ export declare function RecordToJSONTyped(value?: Record_2 | null, ignoreDiscriminator?: boolean): any;
3068
+
3069
+ export declare interface RequestContext {
3070
+ fetch: FetchAPI;
3071
+ url: string;
3072
+ init: RequestInit;
3073
+ }
3074
+
3075
+ export declare interface RequestOpts {
3076
+ path: string;
3077
+ method: HTTPMethod;
3078
+ headers: HTTPHeaders;
3079
+ query?: HTTPQuery;
3080
+ body?: HTTPBody;
3081
+ }
3082
+
3083
+ export declare class RequiredError extends Error {
3084
+ field: string;
3085
+ name: "RequiredError";
3086
+ constructor(field: string, msg?: string);
3087
+ }
3088
+
3089
+ export declare interface ResponseContext {
3090
+ fetch: FetchAPI;
3091
+ url: string;
3092
+ init: RequestInit;
3093
+ response: Response;
3094
+ }
3095
+
3096
+ export declare class ResponseError extends Error {
3097
+ response: Response;
3098
+ name: "ResponseError";
3099
+ constructor(response: Response, msg?: string);
3100
+ }
3101
+
3102
+ export declare interface ResponseTransformer<T> {
3103
+ (json: any): T;
3104
+ }
3105
+
3106
+ declare namespace runtime {
3107
+ export {
3108
+ querystring,
3109
+ exists,
3110
+ mapValues,
3111
+ canConsumeForm,
3112
+ BASE_PATH,
3113
+ ConfigurationParameters,
3114
+ Configuration,
3115
+ DefaultConfig,
3116
+ BaseAPI,
3117
+ ResponseError,
3118
+ FetchError,
3119
+ RequiredError,
3120
+ COLLECTION_FORMATS,
3121
+ FetchAPI,
3122
+ Json,
3123
+ HTTPMethod,
3124
+ HTTPHeaders,
3125
+ HTTPQuery,
3126
+ HTTPBody,
3127
+ HTTPRequestInit,
3128
+ ModelPropertyNaming,
3129
+ InitOverrideFunction,
3130
+ FetchParams,
3131
+ RequestOpts,
3132
+ Consume,
3133
+ RequestContext,
3134
+ ResponseContext,
3135
+ ErrorContext,
3136
+ Middleware,
3137
+ ApiResponse,
3138
+ ResponseTransformer,
3139
+ JSONApiResponse,
3140
+ VoidApiResponse,
3141
+ BlobApiResponse,
3142
+ TextApiResponse
3143
+ }
3144
+ }
3145
+
3146
+ /**
3147
+ * Schedule
3148
+ *
3149
+ * @export
3150
+ * @interface Schedule
3151
+ */
3152
+ export declare interface Schedule {
3153
+ /**
3154
+ *
3155
+ * @type {number}
3156
+ * @memberof Schedule
3157
+ */
3158
+ totalItems: number;
3159
+ /**
3160
+ *
3161
+ * @type {number}
3162
+ * @memberof Schedule
3163
+ */
3164
+ totalEvents: number;
3165
+ /**
3166
+ *
3167
+ * @type {number}
3168
+ * @memberof Schedule
3169
+ */
3170
+ totalGames: number;
3171
+ /**
3172
+ *
3173
+ * @type {number}
3174
+ * @memberof Schedule
3175
+ */
3176
+ totalGamesInProgress: number;
3177
+ /**
3178
+ *
3179
+ * @type {Array<ScheduleDay>}
3180
+ * @memberof Schedule
3181
+ */
3182
+ dates: Array<ScheduleDay>;
3183
+ }
3184
+
3185
+ /**
3186
+ *
3187
+ * @export
3188
+ * @interface ScheduleDay
3189
+ */
3190
+ export declare interface ScheduleDay {
3191
+ /**
3192
+ *
3193
+ * @type {string}
3194
+ * @memberof ScheduleDay
3195
+ */
3196
+ date?: string;
3197
+ /**
3198
+ *
3199
+ * @type {number}
3200
+ * @memberof ScheduleDay
3201
+ */
3202
+ totalItems?: number;
3203
+ /**
3204
+ *
3205
+ * @type {number}
3206
+ * @memberof ScheduleDay
3207
+ */
3208
+ totalEvents?: number;
3209
+ /**
3210
+ *
3211
+ * @type {number}
3212
+ * @memberof ScheduleDay
3213
+ */
3214
+ totalGames?: number;
3215
+ /**
3216
+ *
3217
+ * @type {number}
3218
+ * @memberof ScheduleDay
3219
+ */
3220
+ totalGamesInProgress?: number;
3221
+ /**
3222
+ *
3223
+ * @type {Array<Game>}
3224
+ * @memberof ScheduleDay
3225
+ */
3226
+ games: Array<Game>;
3227
+ }
3228
+
3229
+ export declare function ScheduleDayFromJSON(json: any): ScheduleDay;
3230
+
3231
+ export declare function ScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleDay;
3232
+
3233
+ export declare function ScheduleDayToJSON(json: any): ScheduleDay;
3234
+
3235
+ export declare function ScheduleDayToJSONTyped(value?: ScheduleDay | null, ignoreDiscriminator?: boolean): any;
3236
+
3237
+ export declare function ScheduleFromJSON(json: any): Schedule;
3238
+
3239
+ export declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
3240
+
3241
+ export declare function ScheduleToJSON(json: any): Schedule;
3242
+
3243
+ export declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
3244
+
3245
+ /**
3246
+ * MLB StatAPI
3247
+ * An spec API to consume the MLB Stat API
3248
+ *
3249
+ * The version of the OpenAPI document: 0.5.0
3250
+ *
3251
+ *
3252
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3253
+ * https://openapi-generator.tech
3254
+ * Do not edit the class manually.
3255
+ */
3256
+ /**
3257
+ * Season
3258
+ *
3259
+ * @export
3260
+ * @interface Season
3261
+ */
3262
+ export declare interface Season {
3263
+ /**
3264
+ *
3265
+ * @type {string}
3266
+ * @memberof Season
3267
+ */
3268
+ seasonId: string;
3269
+ /**
3270
+ *
3271
+ * @type {boolean}
3272
+ * @memberof Season
3273
+ */
3274
+ hasWildcard?: boolean;
3275
+ /**
3276
+ *
3277
+ * @type {string}
3278
+ * @memberof Season
3279
+ */
3280
+ preSeasonStartDate?: string;
3281
+ /**
3282
+ *
3283
+ * @type {string}
3284
+ * @memberof Season
3285
+ */
3286
+ preSeasonEndDate?: string;
3287
+ /**
3288
+ *
3289
+ * @type {string}
3290
+ * @memberof Season
3291
+ */
3292
+ seasonStartDate: string;
3293
+ /**
3294
+ *
3295
+ * @type {string}
3296
+ * @memberof Season
3297
+ */
3298
+ seasonEndDate: string;
3299
+ /**
3300
+ *
3301
+ * @type {string}
3302
+ * @memberof Season
3303
+ */
3304
+ springStartDate?: string;
3305
+ /**
3306
+ *
3307
+ * @type {string}
3308
+ * @memberof Season
3309
+ */
3310
+ springEndDate?: string;
3311
+ /**
3312
+ *
3313
+ * @type {string}
3314
+ * @memberof Season
3315
+ */
3316
+ regularSeasonStartDate: string;
3317
+ /**
3318
+ *
3319
+ * @type {string}
3320
+ * @memberof Season
3321
+ */
3322
+ lastDate1stHalf?: string;
3323
+ /**
3324
+ *
3325
+ * @type {string}
3326
+ * @memberof Season
3327
+ */
3328
+ allStartDate?: string;
3329
+ /**
3330
+ *
3331
+ * @type {string}
3332
+ * @memberof Season
3333
+ */
3334
+ firstDate2ndHalf?: string;
3335
+ /**
3336
+ *
3337
+ * @type {string}
3338
+ * @memberof Season
3339
+ */
3340
+ regularSeasonEndDate: string;
3341
+ /**
3342
+ *
3343
+ * @type {string}
3344
+ * @memberof Season
3345
+ */
3346
+ postSeasonStartDate?: string;
3347
+ /**
3348
+ *
3349
+ * @type {string}
3350
+ * @memberof Season
3351
+ */
3352
+ postSeasonEndDate?: string;
3353
+ /**
3354
+ *
3355
+ * @type {string}
3356
+ * @memberof Season
3357
+ */
3358
+ offSeasonStartDate?: string;
3359
+ /**
3360
+ *
3361
+ * @type {string}
3362
+ * @memberof Season
3363
+ */
3364
+ offSeasonEndDate?: string;
3365
+ /**
3366
+ *
3367
+ * @type {string}
3368
+ * @memberof Season
3369
+ */
3370
+ seasonLevelGamedayType?: string;
3371
+ /**
3372
+ *
3373
+ * @type {string}
3374
+ * @memberof Season
3375
+ */
3376
+ gameLevelGamedayType?: string;
3377
+ /**
3378
+ *
3379
+ * @type {number}
3380
+ * @memberof Season
3381
+ */
3382
+ qualifierPlateAppearances?: number;
3383
+ /**
3384
+ *
3385
+ * @type {number}
3386
+ * @memberof Season
3387
+ */
3388
+ qualifierOutsPitched?: number;
3389
+ }
3390
+
3391
+ export declare function SeasonFromJSON(json: any): Season;
3392
+
3393
+ export declare function SeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Season;
3394
+
3395
+ /**
3396
+ *
3397
+ * @export
3398
+ * @interface Seasons
3399
+ */
3400
+ export declare interface Seasons {
3401
+ /**
3402
+ *
3403
+ * @type {Array<Season>}
3404
+ * @memberof Seasons
3405
+ */
3406
+ seasons: Array<Season>;
3407
+ }
3408
+
3409
+ export declare function SeasonsFromJSON(json: any): Seasons;
3410
+
3411
+ export declare function SeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seasons;
3412
+
3413
+ export declare function SeasonsToJSON(json: any): Seasons;
3414
+
3415
+ export declare function SeasonsToJSONTyped(value?: Seasons | null, ignoreDiscriminator?: boolean): any;
3416
+
3417
+ export declare function SeasonToJSON(json: any): Season;
3418
+
3419
+ export declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscriminator?: boolean): any;
3420
+
3421
+ /**
3422
+ * MLB StatAPI
3423
+ * An spec API to consume the MLB Stat API
3424
+ *
3425
+ * The version of the OpenAPI document: 0.5.0
3426
+ *
3427
+ *
3428
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3429
+ * https://openapi-generator.tech
3430
+ * Do not edit the class manually.
3431
+ */
3432
+ /**
3433
+ * Sport
3434
+ *
3435
+ * @export
3436
+ * @interface Sport
3437
+ */
3438
+ export declare interface Sport {
3439
+ /**
3440
+ *
3441
+ * @type {number}
3442
+ * @memberof Sport
3443
+ */
3444
+ id: number;
3445
+ /**
3446
+ *
3447
+ * @type {string}
3448
+ * @memberof Sport
3449
+ */
3450
+ code?: string;
3451
+ /**
3452
+ *
3453
+ * @type {string}
3454
+ * @memberof Sport
3455
+ */
3456
+ link?: string;
3457
+ /**
3458
+ *
3459
+ * @type {string}
3460
+ * @memberof Sport
3461
+ */
3462
+ name?: string;
3463
+ /**
3464
+ *
3465
+ * @type {string}
3466
+ * @memberof Sport
3467
+ */
3468
+ abbreviation?: string;
3469
+ /**
3470
+ *
3471
+ * @type {number}
3472
+ * @memberof Sport
3473
+ */
3474
+ sortOrder?: number;
3475
+ /**
3476
+ *
3477
+ * @type {boolean}
3478
+ * @memberof Sport
3479
+ */
3480
+ activeStatus?: boolean;
3481
+ }
3482
+
3483
+ export declare function SportFromJSON(json: any): Sport;
3484
+
3485
+ export declare function SportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sport;
3486
+
3487
+ export declare function SportToJSON(json: any): Sport;
3488
+
3489
+ export declare function SportToJSONTyped(value?: Sport | null, ignoreDiscriminator?: boolean): any;
3490
+
3491
+ /**
3492
+ * MLB StatAPI
3493
+ * An spec API to consume the MLB Stat API
3494
+ *
3495
+ * The version of the OpenAPI document: 0.5.0
3496
+ *
3497
+ *
3498
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3499
+ * https://openapi-generator.tech
3500
+ * Do not edit the class manually.
3501
+ */
3502
+ /**
3503
+ *
3504
+ * @export
3505
+ * @interface Streak
3506
+ */
3507
+ export declare interface Streak {
3508
+ /**
3509
+ * Streak Type:
3510
+ * * Losing Streak
3511
+ * * Winning Streak
3512
+ *
3513
+ * @type {string}
3514
+ * @memberof Streak
3515
+ */
3516
+ streakType?: StreakStreakTypeEnum;
3517
+ }
3518
+
3519
+ export declare function StreakFromJSON(json: any): Streak;
3520
+
3521
+ export declare function StreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): Streak;
3522
+
3523
+ /**
3524
+ * @export
3525
+ * @enum {string}
3526
+ */
3527
+ export declare enum StreakStreakTypeEnum {
3528
+ Losing = "losses",
3529
+ Winning = "wins"
3530
+ }
3531
+
3532
+ export declare function StreakToJSON(json: any): Streak;
3533
+
3534
+ export declare function StreakToJSONTyped(value?: Streak | null, ignoreDiscriminator?: boolean): any;
3535
+
3536
+ /**
3537
+ * Team
3538
+ *
3539
+ * @export
3540
+ * @interface Team
3541
+ */
3542
+ export declare interface Team {
3543
+ /**
3544
+ *
3545
+ * @type {number}
3546
+ * @memberof Team
3547
+ */
3548
+ id: number;
3549
+ /**
3550
+ *
3551
+ * @type {string}
3552
+ * @memberof Team
3553
+ */
3554
+ name: string;
3555
+ /**
3556
+ *
3557
+ * @type {string}
3558
+ * @memberof Team
3559
+ */
3560
+ link?: string;
3561
+ /**
3562
+ *
3563
+ * @type {string}
3564
+ * @memberof Team
3565
+ */
3566
+ allStarStatus?: string;
3567
+ /**
3568
+ *
3569
+ * @type {number}
3570
+ * @memberof Team
3571
+ */
3572
+ season?: number;
3573
+ /**
3574
+ *
3575
+ * @type {Venue}
3576
+ * @memberof Team
3577
+ */
3578
+ venue?: Venue;
3579
+ /**
3580
+ *
3581
+ * @type {Venue}
3582
+ * @memberof Team
3583
+ */
3584
+ springVenue?: Venue;
3585
+ /**
3586
+ *
3587
+ * @type {string}
3588
+ * @memberof Team
3589
+ */
3590
+ teamCode?: string;
3591
+ /**
3592
+ *
3593
+ * @type {string}
3594
+ * @memberof Team
3595
+ */
3596
+ fileCode?: string;
3597
+ /**
3598
+ *
3599
+ * @type {string}
3600
+ * @memberof Team
3601
+ */
3602
+ abbreviation?: string;
3603
+ /**
3604
+ *
3605
+ * @type {string}
3606
+ * @memberof Team
3607
+ */
3608
+ teamName?: string;
3609
+ /**
3610
+ *
3611
+ * @type {string}
3612
+ * @memberof Team
3613
+ */
3614
+ locationName?: string;
3615
+ /**
3616
+ *
3617
+ * @type {string}
3618
+ * @memberof Team
3619
+ */
3620
+ firstYearOfPlay?: string;
3621
+ /**
3622
+ *
3623
+ * @type {League}
3624
+ * @memberof Team
3625
+ */
3626
+ league?: League;
3627
+ /**
3628
+ *
3629
+ * @type {League}
3630
+ * @memberof Team
3631
+ */
3632
+ springLeague?: League;
3633
+ /**
3634
+ *
3635
+ * @type {Division}
3636
+ * @memberof Team
3637
+ */
3638
+ division?: Division;
3639
+ /**
3640
+ *
3641
+ * @type {Sport}
3642
+ * @memberof Team
3643
+ */
3644
+ sport?: Sport;
3645
+ /**
3646
+ *
3647
+ * @type {Record}
3648
+ * @memberof Team
3649
+ */
3650
+ record?: Record_2;
3651
+ /**
3652
+ *
3653
+ * @type {string}
3654
+ * @memberof Team
3655
+ */
3656
+ shortName?: string;
3657
+ /**
3658
+ *
3659
+ * @type {string}
3660
+ * @memberof Team
3661
+ */
3662
+ franchiseName?: string;
3663
+ /**
3664
+ *
3665
+ * @type {string}
3666
+ * @memberof Team
3667
+ */
3668
+ clubName?: string;
3669
+ /**
3670
+ *
3671
+ * @type {boolean}
3672
+ * @memberof Team
3673
+ */
3674
+ active?: boolean;
3675
+ }
3676
+
3677
+ export declare function TeamFromJSON(json: any): Team;
3678
+
3679
+ export declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team;
3680
+
3681
+ /**
3682
+ *
3683
+ * @export
3684
+ * @interface Teams
3685
+ */
3686
+ export declare interface Teams {
3687
+ /**
3688
+ *
3689
+ * @type {Array<Team>}
3690
+ * @memberof Teams
3691
+ */
3692
+ teams: Array<Team>;
3693
+ }
3694
+
3695
+ export declare function TeamsFromJSON(json: any): Teams;
3696
+
3697
+ export declare function TeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Teams;
3698
+
3699
+ /**
3700
+ *
3701
+ * @export
3702
+ * @interface TeamStats
3703
+ */
3704
+ export declare interface TeamStats {
3705
+ /**
3706
+ *
3707
+ * @type {BattingStats}
3708
+ * @memberof TeamStats
3709
+ */
3710
+ batting: BattingStats;
3711
+ /**
3712
+ *
3713
+ * @type {PitchingStats}
3714
+ * @memberof TeamStats
3715
+ */
3716
+ pitching: PitchingStats;
3717
+ /**
3718
+ *
3719
+ * @type {FieldingStats}
3720
+ * @memberof TeamStats
3721
+ */
3722
+ fielding: FieldingStats;
3723
+ }
3724
+
3725
+ export declare function TeamStatsFromJSON(json: any): TeamStats;
3726
+
3727
+ export declare function TeamStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamStats;
3728
+
3729
+ export declare function TeamStatsToJSON(json: any): TeamStats;
3730
+
3731
+ export declare function TeamStatsToJSONTyped(value?: TeamStats | null, ignoreDiscriminator?: boolean): any;
3732
+
3733
+ export declare function TeamsToJSON(json: any): Teams;
3734
+
3735
+ export declare function TeamsToJSONTyped(value?: Teams | null, ignoreDiscriminator?: boolean): any;
3736
+
3737
+ export declare function TeamToJSON(json: any): Team;
3738
+
3739
+ export declare function TeamToJSONTyped(value?: Team | null, ignoreDiscriminator?: boolean): any;
3740
+
3741
+ export declare class TextApiResponse {
3742
+ raw: Response;
3743
+ constructor(raw: Response);
3744
+ value(): Promise<string>;
3745
+ }
3746
+
3747
+ /**
3748
+ * MLB StatAPI
3749
+ * An spec API to consume the MLB Stat API
3750
+ *
3751
+ * The version of the OpenAPI document: 0.5.0
3752
+ *
3753
+ *
3754
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3755
+ * https://openapi-generator.tech
3756
+ * Do not edit the class manually.
3757
+ */
3758
+ /**
3759
+ * Venue
3760
+ *
3761
+ * @export
3762
+ * @interface Venue
3763
+ */
3764
+ export declare interface Venue {
3765
+ /**
3766
+ *
3767
+ * @type {number}
3768
+ * @memberof Venue
3769
+ */
3770
+ id: number;
3771
+ /**
3772
+ *
3773
+ * @type {string}
3774
+ * @memberof Venue
3775
+ */
3776
+ name: string;
3777
+ /**
3778
+ *
3779
+ * @type {string}
3780
+ * @memberof Venue
3781
+ */
3782
+ link?: string;
3783
+ /**
3784
+ *
3785
+ * @type {boolean}
3786
+ * @memberof Venue
3787
+ */
3788
+ active?: boolean;
3789
+ /**
3790
+ *
3791
+ * @type {string}
3792
+ * @memberof Venue
3793
+ */
3794
+ season?: string;
3795
+ }
3796
+
3797
+ export declare function VenueFromJSON(json: any): Venue;
3798
+
3799
+ export declare function VenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): Venue;
3800
+
3801
+ export declare function VenueToJSON(json: any): Venue;
3802
+
3803
+ export declare function VenueToJSONTyped(value?: Venue | null, ignoreDiscriminator?: boolean): any;
3804
+
3805
+ export declare class VoidApiResponse {
3806
+ raw: Response;
3807
+ constructor(raw: Response);
3808
+ value(): Promise<void>;
3809
+ }
3810
+
3811
+ export { }