@bp1222/stats-api 0.4.0 → 0.6.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,3812 @@
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.6.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.6.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.6.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.6.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.6.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
+ teamId?: Array<number>;
1250
+ fields?: Array<string>;
1251
+ hydrate?: string;
1252
+ }
1253
+
1254
+ export declare type HTTPBody = Json | FormData | URLSearchParams;
1255
+
1256
+ export declare type HTTPHeaders = {
1257
+ [key: string]: string;
1258
+ };
1259
+
1260
+ export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
1261
+
1262
+ export declare type HTTPQuery = {
1263
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
1264
+ };
1265
+
1266
+ export declare type HTTPRequestInit = {
1267
+ headers?: HTTPHeaders;
1268
+ method: HTTPMethod;
1269
+ credentials?: RequestCredentials;
1270
+ body?: HTTPBody;
1271
+ };
1272
+
1273
+ export declare type InitOverrideFunction = (requestContext: {
1274
+ init: HTTPRequestInit;
1275
+ context: RequestOpts;
1276
+ }) => Promise<RequestInit>;
1277
+
1278
+ /**
1279
+ * Inning
1280
+ *
1281
+ * @export
1282
+ * @interface Inning
1283
+ */
1284
+ export declare interface Inning {
1285
+ /**
1286
+ *
1287
+ * @type {number}
1288
+ * @memberof Inning
1289
+ */
1290
+ num: number;
1291
+ /**
1292
+ *
1293
+ * @type {string}
1294
+ * @memberof Inning
1295
+ */
1296
+ ordinalNum: string;
1297
+ /**
1298
+ *
1299
+ * @type {LinescoreTeam}
1300
+ * @memberof Inning
1301
+ */
1302
+ home: LinescoreTeam;
1303
+ /**
1304
+ *
1305
+ * @type {LinescoreTeam}
1306
+ * @memberof Inning
1307
+ */
1308
+ away: LinescoreTeam;
1309
+ }
1310
+
1311
+ export declare function InningFromJSON(json: any): Inning;
1312
+
1313
+ export declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inning;
1314
+
1315
+ export declare function InningToJSON(json: any): Inning;
1316
+
1317
+ export declare function InningToJSONTyped(value?: Inning | null, ignoreDiscriminator?: boolean): any;
1318
+
1319
+ /**
1320
+ * Check if a given object implements the BattingStats interface.
1321
+ */
1322
+ export declare function instanceOfBattingStats(value: object): value is BattingStats;
1323
+
1324
+ /**
1325
+ * Check if a given object implements the Boxscore interface.
1326
+ */
1327
+ export declare function instanceOfBoxscore(value: object): value is Boxscore;
1328
+
1329
+ /**
1330
+ * Check if a given object implements the BoxscoreTeam interface.
1331
+ */
1332
+ export declare function instanceOfBoxscoreTeam(value: object): value is BoxscoreTeam;
1333
+
1334
+ /**
1335
+ * Check if a given object implements the BoxscoreTeams interface.
1336
+ */
1337
+ export declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
1338
+
1339
+ /**
1340
+ * Check if a given object implements the Division interface.
1341
+ */
1342
+ export declare function instanceOfDivision(value: object): value is Division;
1343
+
1344
+ /**
1345
+ * Check if a given object implements the Divisions interface.
1346
+ */
1347
+ export declare function instanceOfDivisions(value: object): value is Divisions;
1348
+
1349
+ /**
1350
+ * Check if a given object implements the DivisionStandings interface.
1351
+ */
1352
+ export declare function instanceOfDivisionStandings(value: object): value is DivisionStandings;
1353
+
1354
+ /**
1355
+ * Check if a given object implements the DivisionStandingsList interface.
1356
+ */
1357
+ export declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
1358
+
1359
+ /**
1360
+ * Check if a given object implements the FieldingStats interface.
1361
+ */
1362
+ export declare function instanceOfFieldingStats(value: object): value is FieldingStats;
1363
+
1364
+ /**
1365
+ * Check if a given object implements the Game interface.
1366
+ */
1367
+ export declare function instanceOfGame(value: object): value is Game;
1368
+
1369
+ /**
1370
+ * Check if a given object implements the GameOfficial interface.
1371
+ */
1372
+ export declare function instanceOfGameOfficial(value: object): value is GameOfficial;
1373
+
1374
+ /**
1375
+ * Check if a given object implements the GameStatus interface.
1376
+ */
1377
+ export declare function instanceOfGameStatus(value: object): value is GameStatus;
1378
+
1379
+ export declare function instanceOfGameStatusCode(value: any): boolean;
1380
+
1381
+ /**
1382
+ * Check if a given object implements the GameTeam interface.
1383
+ */
1384
+ export declare function instanceOfGameTeam(value: object): value is GameTeam;
1385
+
1386
+ /**
1387
+ * Check if a given object implements the GameTeams interface.
1388
+ */
1389
+ export declare function instanceOfGameTeams(value: object): value is GameTeams;
1390
+
1391
+ export declare function instanceOfGameType(value: any): boolean;
1392
+
1393
+ /**
1394
+ * Check if a given object implements the Inning interface.
1395
+ */
1396
+ export declare function instanceOfInning(value: object): value is Inning;
1397
+
1398
+ /**
1399
+ * Check if a given object implements the League interface.
1400
+ */
1401
+ export declare function instanceOfLeague(value: object): value is League;
1402
+
1403
+ /**
1404
+ * Check if a given object implements the LeagueDates interface.
1405
+ */
1406
+ export declare function instanceOfLeagueDates(value: object): value is LeagueDates;
1407
+
1408
+ /**
1409
+ * Check if a given object implements the LeagueRecord interface.
1410
+ */
1411
+ export declare function instanceOfLeagueRecord(value: object): value is LeagueRecord;
1412
+
1413
+ /**
1414
+ * Check if a given object implements the Leagues interface.
1415
+ */
1416
+ export declare function instanceOfLeagues(value: object): value is Leagues;
1417
+
1418
+ /**
1419
+ * Check if a given object implements the Linescore interface.
1420
+ */
1421
+ export declare function instanceOfLinescore(value: object): value is Linescore;
1422
+
1423
+ /**
1424
+ * Check if a given object implements the LinescoreTeam interface.
1425
+ */
1426
+ export declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
1427
+
1428
+ /**
1429
+ * Check if a given object implements the LinescoreTeams interface.
1430
+ */
1431
+ export declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
1432
+
1433
+ /**
1434
+ * Check if a given object implements the Official interface.
1435
+ */
1436
+ export declare function instanceOfOfficial(value: object): value is Official;
1437
+
1438
+ /**
1439
+ * Check if a given object implements the PitchingStats interface.
1440
+ */
1441
+ export declare function instanceOfPitchingStats(value: object): value is PitchingStats;
1442
+
1443
+ /**
1444
+ * Check if a given object implements the Player interface.
1445
+ */
1446
+ export declare function instanceOfPlayer(value: object): value is Player;
1447
+
1448
+ /**
1449
+ * Check if a given object implements the PlayerGameStatus interface.
1450
+ */
1451
+ export declare function instanceOfPlayerGameStatus(value: object): value is PlayerGameStatus;
1452
+
1453
+ /**
1454
+ * Check if a given object implements the PlayerPerson interface.
1455
+ */
1456
+ export declare function instanceOfPlayerPerson(value: object): value is PlayerPerson;
1457
+
1458
+ /**
1459
+ * Check if a given object implements the PlayerPosition interface.
1460
+ */
1461
+ export declare function instanceOfPlayerPosition(value: object): value is PlayerPosition;
1462
+
1463
+ /**
1464
+ * Check if a given object implements the PlayerSeasonStats interface.
1465
+ */
1466
+ export declare function instanceOfPlayerSeasonStats(value: object): value is PlayerSeasonStats;
1467
+
1468
+ /**
1469
+ * Check if a given object implements the PlayerStats interface.
1470
+ */
1471
+ export declare function instanceOfPlayerStats(value: object): value is PlayerStats;
1472
+
1473
+ /**
1474
+ * Check if a given object implements the PlayerStatus interface.
1475
+ */
1476
+ export declare function instanceOfPlayerStatus(value: object): value is PlayerStatus;
1477
+
1478
+ /**
1479
+ * Check if a given object implements the Position interface.
1480
+ */
1481
+ export declare function instanceOfPosition(value: object): value is Position;
1482
+
1483
+ /**
1484
+ * Check if a given object implements the Record interface.
1485
+ */
1486
+ export declare function instanceOfRecord(value: object): value is Record_2;
1487
+
1488
+ /**
1489
+ * Check if a given object implements the Schedule interface.
1490
+ */
1491
+ export declare function instanceOfSchedule(value: object): value is Schedule;
1492
+
1493
+ /**
1494
+ * Check if a given object implements the ScheduleDay interface.
1495
+ */
1496
+ export declare function instanceOfScheduleDay(value: object): value is ScheduleDay;
1497
+
1498
+ /**
1499
+ * Check if a given object implements the Season interface.
1500
+ */
1501
+ export declare function instanceOfSeason(value: object): value is Season;
1502
+
1503
+ /**
1504
+ * Check if a given object implements the Seasons interface.
1505
+ */
1506
+ export declare function instanceOfSeasons(value: object): value is Seasons;
1507
+
1508
+ /**
1509
+ * Check if a given object implements the Sport interface.
1510
+ */
1511
+ export declare function instanceOfSport(value: object): value is Sport;
1512
+
1513
+ /**
1514
+ * Check if a given object implements the Streak interface.
1515
+ */
1516
+ export declare function instanceOfStreak(value: object): value is Streak;
1517
+
1518
+ /**
1519
+ * Check if a given object implements the Team interface.
1520
+ */
1521
+ export declare function instanceOfTeam(value: object): value is Team;
1522
+
1523
+ /**
1524
+ * Check if a given object implements the Teams interface.
1525
+ */
1526
+ export declare function instanceOfTeams(value: object): value is Teams;
1527
+
1528
+ /**
1529
+ * Check if a given object implements the TeamStats interface.
1530
+ */
1531
+ export declare function instanceOfTeamStats(value: object): value is TeamStats;
1532
+
1533
+ /**
1534
+ * Check if a given object implements the Venue interface.
1535
+ */
1536
+ export declare function instanceOfVenue(value: object): value is Venue;
1537
+
1538
+ export declare type Json = any;
1539
+
1540
+ export declare class JSONApiResponse<T> {
1541
+ raw: Response;
1542
+ private transformer;
1543
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
1544
+ value(): Promise<T>;
1545
+ }
1546
+
1547
+ /**
1548
+ * League
1549
+ *
1550
+ * @export
1551
+ * @interface League
1552
+ */
1553
+ export declare interface League {
1554
+ /**
1555
+ *
1556
+ * @type {number}
1557
+ * @memberof League
1558
+ */
1559
+ id: number;
1560
+ /**
1561
+ *
1562
+ * @type {string}
1563
+ * @memberof League
1564
+ */
1565
+ name: string;
1566
+ /**
1567
+ *
1568
+ * @type {string}
1569
+ * @memberof League
1570
+ */
1571
+ link?: string;
1572
+ /**
1573
+ *
1574
+ * @type {string}
1575
+ * @memberof League
1576
+ */
1577
+ abbreviation?: string;
1578
+ /**
1579
+ *
1580
+ * @type {string}
1581
+ * @memberof League
1582
+ */
1583
+ nameShort?: string;
1584
+ /**
1585
+ *
1586
+ * @type {string}
1587
+ * @memberof League
1588
+ */
1589
+ seasonState?: string;
1590
+ /**
1591
+ *
1592
+ * @type {boolean}
1593
+ * @memberof League
1594
+ */
1595
+ hasWildCard?: boolean;
1596
+ /**
1597
+ *
1598
+ * @type {boolean}
1599
+ * @memberof League
1600
+ */
1601
+ hasSplitSeason?: boolean;
1602
+ /**
1603
+ *
1604
+ * @type {boolean}
1605
+ * @memberof League
1606
+ */
1607
+ hasPlayoffPoints?: boolean;
1608
+ /**
1609
+ *
1610
+ * @type {LeagueDates}
1611
+ * @memberof League
1612
+ */
1613
+ seasonDateInfo?: LeagueDates;
1614
+ /**
1615
+ *
1616
+ * @type {string}
1617
+ * @memberof League
1618
+ */
1619
+ season?: string;
1620
+ /**
1621
+ *
1622
+ * @type {string}
1623
+ * @memberof League
1624
+ */
1625
+ orgCode?: string;
1626
+ /**
1627
+ *
1628
+ * @type {boolean}
1629
+ * @memberof League
1630
+ */
1631
+ conferencesInUse?: boolean;
1632
+ /**
1633
+ *
1634
+ * @type {boolean}
1635
+ * @memberof League
1636
+ */
1637
+ divisionsInUse?: boolean;
1638
+ /**
1639
+ *
1640
+ * @type {number}
1641
+ * @memberof League
1642
+ */
1643
+ sortOrder?: number;
1644
+ /**
1645
+ *
1646
+ * @type {boolean}
1647
+ * @memberof League
1648
+ */
1649
+ active?: boolean;
1650
+ }
1651
+
1652
+ /**
1653
+ * MLB StatAPI
1654
+ * An spec API to consume the MLB Stat API
1655
+ *
1656
+ * The version of the OpenAPI document: 0.6.0
1657
+ *
1658
+ *
1659
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1660
+ * https://openapi-generator.tech
1661
+ * Do not edit the class manually.
1662
+ */
1663
+ /**
1664
+ *
1665
+ * @export
1666
+ * @interface LeagueDates
1667
+ */
1668
+ export declare interface LeagueDates {
1669
+ /**
1670
+ *
1671
+ * @type {string}
1672
+ * @memberof LeagueDates
1673
+ */
1674
+ seasonId?: string;
1675
+ /**
1676
+ *
1677
+ * @type {string}
1678
+ * @memberof LeagueDates
1679
+ */
1680
+ preSeasonStartDate?: string;
1681
+ /**
1682
+ *
1683
+ * @type {string}
1684
+ * @memberof LeagueDates
1685
+ */
1686
+ preSeasonEndDate?: string;
1687
+ /**
1688
+ *
1689
+ * @type {string}
1690
+ * @memberof LeagueDates
1691
+ */
1692
+ seasonStartDate?: string;
1693
+ /**
1694
+ *
1695
+ * @type {string}
1696
+ * @memberof LeagueDates
1697
+ */
1698
+ springStartDate?: string;
1699
+ /**
1700
+ *
1701
+ * @type {string}
1702
+ * @memberof LeagueDates
1703
+ */
1704
+ springEndDate?: string;
1705
+ /**
1706
+ *
1707
+ * @type {string}
1708
+ * @memberof LeagueDates
1709
+ */
1710
+ offseasonStartDate?: string;
1711
+ /**
1712
+ *
1713
+ * @type {string}
1714
+ * @memberof LeagueDates
1715
+ */
1716
+ offseasonEndDate?: string;
1717
+ /**
1718
+ *
1719
+ * @type {string}
1720
+ * @memberof LeagueDates
1721
+ */
1722
+ seasonLevelGamedayType?: string;
1723
+ /**
1724
+ *
1725
+ * @type {string}
1726
+ * @memberof LeagueDates
1727
+ */
1728
+ gameLevelGamedayType?: string;
1729
+ }
1730
+
1731
+ export declare function LeagueDatesFromJSON(json: any): LeagueDates;
1732
+
1733
+ export declare function LeagueDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueDates;
1734
+
1735
+ export declare function LeagueDatesToJSON(json: any): LeagueDates;
1736
+
1737
+ export declare function LeagueDatesToJSONTyped(value?: LeagueDates | null, ignoreDiscriminator?: boolean): any;
1738
+
1739
+ export declare function LeagueFromJSON(json: any): League;
1740
+
1741
+ export declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): League;
1742
+
1743
+ /**
1744
+ * MLB StatAPI
1745
+ * An spec API to consume the MLB Stat API
1746
+ *
1747
+ * The version of the OpenAPI document: 0.6.0
1748
+ *
1749
+ *
1750
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1751
+ * https://openapi-generator.tech
1752
+ * Do not edit the class manually.
1753
+ */
1754
+ /**
1755
+ *
1756
+ * @export
1757
+ * @interface LeagueRecord
1758
+ */
1759
+ export declare interface LeagueRecord {
1760
+ /**
1761
+ *
1762
+ * @type {number}
1763
+ * @memberof LeagueRecord
1764
+ */
1765
+ wins: number;
1766
+ /**
1767
+ *
1768
+ * @type {number}
1769
+ * @memberof LeagueRecord
1770
+ */
1771
+ losses: number;
1772
+ /**
1773
+ *
1774
+ * @type {number}
1775
+ * @memberof LeagueRecord
1776
+ */
1777
+ ties?: number;
1778
+ /**
1779
+ *
1780
+ * @type {string}
1781
+ * @memberof LeagueRecord
1782
+ */
1783
+ pct: string;
1784
+ }
1785
+
1786
+ export declare function LeagueRecordFromJSON(json: any): LeagueRecord;
1787
+
1788
+ export declare function LeagueRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueRecord;
1789
+
1790
+ export declare function LeagueRecordToJSON(json: any): LeagueRecord;
1791
+
1792
+ export declare function LeagueRecordToJSONTyped(value?: LeagueRecord | null, ignoreDiscriminator?: boolean): any;
1793
+
1794
+ /**
1795
+ *
1796
+ * @export
1797
+ * @interface Leagues
1798
+ */
1799
+ export declare interface Leagues {
1800
+ /**
1801
+ *
1802
+ * @type {Array<League>}
1803
+ * @memberof Leagues
1804
+ */
1805
+ leagues: Array<League>;
1806
+ }
1807
+
1808
+ export declare function LeaguesFromJSON(json: any): Leagues;
1809
+
1810
+ export declare function LeaguesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Leagues;
1811
+
1812
+ export declare function LeaguesToJSON(json: any): Leagues;
1813
+
1814
+ export declare function LeaguesToJSONTyped(value?: Leagues | null, ignoreDiscriminator?: boolean): any;
1815
+
1816
+ export declare function LeagueToJSON(json: any): League;
1817
+
1818
+ export declare function LeagueToJSONTyped(value?: League | null, ignoreDiscriminator?: boolean): any;
1819
+
1820
+ /**
1821
+ * Linescore
1822
+ *
1823
+ * @export
1824
+ * @interface Linescore
1825
+ */
1826
+ export declare interface Linescore {
1827
+ /**
1828
+ *
1829
+ * @type {number}
1830
+ * @memberof Linescore
1831
+ */
1832
+ currentInning?: number;
1833
+ /**
1834
+ *
1835
+ * @type {string}
1836
+ * @memberof Linescore
1837
+ */
1838
+ currentInningOrdinal?: string;
1839
+ /**
1840
+ *
1841
+ * @type {string}
1842
+ * @memberof Linescore
1843
+ */
1844
+ inningState?: string;
1845
+ /**
1846
+ *
1847
+ * @type {string}
1848
+ * @memberof Linescore
1849
+ */
1850
+ inningHalf?: string;
1851
+ /**
1852
+ *
1853
+ * @type {boolean}
1854
+ * @memberof Linescore
1855
+ */
1856
+ isTopInning?: boolean;
1857
+ /**
1858
+ *
1859
+ * @type {number}
1860
+ * @memberof Linescore
1861
+ */
1862
+ scheduledInnings?: number;
1863
+ /**
1864
+ *
1865
+ * @type {Array<Inning>}
1866
+ * @memberof Linescore
1867
+ */
1868
+ innings?: Array<Inning>;
1869
+ /**
1870
+ *
1871
+ * @type {LinescoreTeams}
1872
+ * @memberof Linescore
1873
+ */
1874
+ teams: LinescoreTeams;
1875
+ /**
1876
+ *
1877
+ * @type {number}
1878
+ * @memberof Linescore
1879
+ */
1880
+ balls: number;
1881
+ /**
1882
+ *
1883
+ * @type {number}
1884
+ * @memberof Linescore
1885
+ */
1886
+ strikes: number;
1887
+ /**
1888
+ *
1889
+ * @type {number}
1890
+ * @memberof Linescore
1891
+ */
1892
+ outs: number;
1893
+ }
1894
+
1895
+ export declare function LinescoreFromJSON(json: any): Linescore;
1896
+
1897
+ export declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Linescore;
1898
+
1899
+ /**
1900
+ * MLB StatAPI
1901
+ * An spec API to consume the MLB Stat API
1902
+ *
1903
+ * The version of the OpenAPI document: 0.6.0
1904
+ *
1905
+ *
1906
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1907
+ * https://openapi-generator.tech
1908
+ * Do not edit the class manually.
1909
+ */
1910
+ /**
1911
+ * InningTeam
1912
+ *
1913
+ * @export
1914
+ * @interface LinescoreTeam
1915
+ */
1916
+ export declare interface LinescoreTeam {
1917
+ /**
1918
+ *
1919
+ * @type {number}
1920
+ * @memberof LinescoreTeam
1921
+ */
1922
+ runs: number;
1923
+ /**
1924
+ *
1925
+ * @type {number}
1926
+ * @memberof LinescoreTeam
1927
+ */
1928
+ hits: number;
1929
+ /**
1930
+ *
1931
+ * @type {number}
1932
+ * @memberof LinescoreTeam
1933
+ */
1934
+ errors: number;
1935
+ /**
1936
+ *
1937
+ * @type {number}
1938
+ * @memberof LinescoreTeam
1939
+ */
1940
+ leftOnBase: number;
1941
+ }
1942
+
1943
+ export declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
1944
+
1945
+ export declare function LinescoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeam;
1946
+
1947
+ /**
1948
+ *
1949
+ * @export
1950
+ * @interface LinescoreTeams
1951
+ */
1952
+ export declare interface LinescoreTeams {
1953
+ /**
1954
+ *
1955
+ * @type {LinescoreTeam}
1956
+ * @memberof LinescoreTeams
1957
+ */
1958
+ away: LinescoreTeam;
1959
+ /**
1960
+ *
1961
+ * @type {LinescoreTeam}
1962
+ * @memberof LinescoreTeams
1963
+ */
1964
+ home: LinescoreTeam;
1965
+ }
1966
+
1967
+ export declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
1968
+
1969
+ export declare function LinescoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeams;
1970
+
1971
+ export declare function LinescoreTeamsToJSON(json: any): LinescoreTeams;
1972
+
1973
+ export declare function LinescoreTeamsToJSONTyped(value?: LinescoreTeams | null, ignoreDiscriminator?: boolean): any;
1974
+
1975
+ export declare function LinescoreTeamToJSON(json: any): LinescoreTeam;
1976
+
1977
+ export declare function LinescoreTeamToJSONTyped(value?: LinescoreTeam | null, ignoreDiscriminator?: boolean): any;
1978
+
1979
+ export declare function LinescoreToJSON(json: any): Linescore;
1980
+
1981
+ export declare function LinescoreToJSONTyped(value?: Linescore | null, ignoreDiscriminator?: boolean): any;
1982
+
1983
+ export declare function mapValues(data: any, fn: (item: any) => any): {
1984
+ [key: string]: any;
1985
+ };
1986
+
1987
+ export declare interface Middleware {
1988
+ pre?(context: RequestContext): Promise<FetchParams | void>;
1989
+ post?(context: ResponseContext): Promise<Response | void>;
1990
+ onError?(context: ErrorContext): Promise<Response | void>;
1991
+ }
1992
+
1993
+ /**
1994
+ *
1995
+ */
1996
+ export declare class MlbApi extends runtime.BaseAPI {
1997
+ /**
1998
+ * Returns All Seasons
1999
+ * Retrieves All Seasons over time
2000
+ */
2001
+ getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Seasons>>;
2002
+ /**
2003
+ * Returns All Seasons
2004
+ * Retrieves All Seasons over time
2005
+ */
2006
+ getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Seasons>;
2007
+ /**
2008
+ * Returns Boxscore
2009
+ * Retrieves boxscore
2010
+ */
2011
+ getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Boxscore>>;
2012
+ /**
2013
+ * Returns Boxscore
2014
+ * Retrieves boxscore
2015
+ */
2016
+ getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Boxscore>;
2017
+ /**
2018
+ * Returns Divisions
2019
+ * Retrieves Divisions
2020
+ */
2021
+ getDivisionsRaw(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Divisions>>;
2022
+ /**
2023
+ * Returns Divisions
2024
+ * Retrieves Divisions
2025
+ */
2026
+ getDivisions(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Divisions>;
2027
+ /**
2028
+ * Returns Leagues
2029
+ * Retrieves Leagues
2030
+ */
2031
+ getLeaguesRaw(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Leagues>>;
2032
+ /**
2033
+ * Returns Leagues
2034
+ * Retrieves Leagues
2035
+ */
2036
+ getLeagues(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Leagues>;
2037
+ /**
2038
+ * Returns Linescore
2039
+ * Retrieves linescore
2040
+ */
2041
+ getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Linescore>>;
2042
+ /**
2043
+ * Returns Linescore
2044
+ * Retrieves linescore
2045
+ */
2046
+ getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Linescore>;
2047
+ /**
2048
+ * Returns Schedule
2049
+ * Retrieves schedule
2050
+ */
2051
+ getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Schedule>>;
2052
+ /**
2053
+ * Returns Schedule
2054
+ * Retrieves schedule
2055
+ */
2056
+ getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Schedule>;
2057
+ /**
2058
+ * Returns Season
2059
+ * Retrieves season
2060
+ */
2061
+ getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Seasons>>;
2062
+ /**
2063
+ * Returns Season
2064
+ * Retrieves season
2065
+ */
2066
+ getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Seasons>;
2067
+ /**
2068
+ * Returns Standing
2069
+ * Retrieves Standings
2070
+ */
2071
+ getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DivisionStandingsList>>;
2072
+ /**
2073
+ * Returns Standing
2074
+ * Retrieves Standings
2075
+ */
2076
+ getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DivisionStandingsList>;
2077
+ /**
2078
+ * Returns Teams
2079
+ * Retrieves Teams
2080
+ */
2081
+ getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Teams>>;
2082
+ /**
2083
+ * Returns Teams
2084
+ * Retrieves Teams
2085
+ */
2086
+ getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Teams>;
2087
+ }
2088
+
2089
+ export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
2090
+
2091
+ /**
2092
+ * MLB StatAPI
2093
+ * An spec API to consume the MLB Stat API
2094
+ *
2095
+ * The version of the OpenAPI document: 0.6.0
2096
+ *
2097
+ *
2098
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2099
+ * https://openapi-generator.tech
2100
+ * Do not edit the class manually.
2101
+ */
2102
+ /**
2103
+ *
2104
+ * @export
2105
+ * @interface Official
2106
+ */
2107
+ export declare interface Official {
2108
+ /**
2109
+ *
2110
+ * @type {number}
2111
+ * @memberof Official
2112
+ */
2113
+ id?: number;
2114
+ /**
2115
+ *
2116
+ * @type {string}
2117
+ * @memberof Official
2118
+ */
2119
+ fullName?: string;
2120
+ /**
2121
+ *
2122
+ * @type {string}
2123
+ * @memberof Official
2124
+ */
2125
+ link?: string;
2126
+ }
2127
+
2128
+ export declare function OfficialFromJSON(json: any): Official;
2129
+
2130
+ export declare function OfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): Official;
2131
+
2132
+ export declare function OfficialToJSON(json: any): Official;
2133
+
2134
+ export declare function OfficialToJSONTyped(value?: Official | null, ignoreDiscriminator?: boolean): any;
2135
+
2136
+ /**
2137
+ * MLB StatAPI
2138
+ * An spec API to consume the MLB Stat API
2139
+ *
2140
+ * The version of the OpenAPI document: 0.6.0
2141
+ *
2142
+ *
2143
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2144
+ * https://openapi-generator.tech
2145
+ * Do not edit the class manually.
2146
+ */
2147
+ /**
2148
+ * Pitching Stats
2149
+ *
2150
+ * @export
2151
+ * @interface PitchingStats
2152
+ */
2153
+ export declare interface PitchingStats {
2154
+ /**
2155
+ *
2156
+ * @type {number}
2157
+ * @memberof PitchingStats
2158
+ */
2159
+ flyOuts?: number;
2160
+ /**
2161
+ *
2162
+ * @type {number}
2163
+ * @memberof PitchingStats
2164
+ */
2165
+ groundOuts?: number;
2166
+ /**
2167
+ *
2168
+ * @type {number}
2169
+ * @memberof PitchingStats
2170
+ */
2171
+ airOuts?: number;
2172
+ /**
2173
+ *
2174
+ * @type {number}
2175
+ * @memberof PitchingStats
2176
+ */
2177
+ runs?: number;
2178
+ /**
2179
+ *
2180
+ * @type {number}
2181
+ * @memberof PitchingStats
2182
+ */
2183
+ doubles?: number;
2184
+ /**
2185
+ *
2186
+ * @type {number}
2187
+ * @memberof PitchingStats
2188
+ */
2189
+ triples?: number;
2190
+ /**
2191
+ *
2192
+ * @type {number}
2193
+ * @memberof PitchingStats
2194
+ */
2195
+ homeRuns?: number;
2196
+ /**
2197
+ *
2198
+ * @type {number}
2199
+ * @memberof PitchingStats
2200
+ */
2201
+ strikeOuts?: number;
2202
+ /**
2203
+ *
2204
+ * @type {number}
2205
+ * @memberof PitchingStats
2206
+ */
2207
+ baseOnBalls?: number;
2208
+ /**
2209
+ *
2210
+ * @type {number}
2211
+ * @memberof PitchingStats
2212
+ */
2213
+ intentionalWalks?: number;
2214
+ /**
2215
+ *
2216
+ * @type {number}
2217
+ * @memberof PitchingStats
2218
+ */
2219
+ hits?: number;
2220
+ /**
2221
+ *
2222
+ * @type {number}
2223
+ * @memberof PitchingStats
2224
+ */
2225
+ hitByPitch?: number;
2226
+ /**
2227
+ *
2228
+ * @type {number}
2229
+ * @memberof PitchingStats
2230
+ */
2231
+ atBats?: number;
2232
+ /**
2233
+ *
2234
+ * @type {string}
2235
+ * @memberof PitchingStats
2236
+ */
2237
+ obp?: string;
2238
+ /**
2239
+ *
2240
+ * @type {number}
2241
+ * @memberof PitchingStats
2242
+ */
2243
+ caughtStealing?: number;
2244
+ /**
2245
+ *
2246
+ * @type {number}
2247
+ * @memberof PitchingStats
2248
+ */
2249
+ stolenBases?: number;
2250
+ /**
2251
+ *
2252
+ * @type {string}
2253
+ * @memberof PitchingStats
2254
+ */
2255
+ stolenBasePercentage?: string;
2256
+ /**
2257
+ *
2258
+ * @type {number}
2259
+ * @memberof PitchingStats
2260
+ */
2261
+ numberOfPitches?: number;
2262
+ /**
2263
+ *
2264
+ * @type {string}
2265
+ * @memberof PitchingStats
2266
+ */
2267
+ era?: string;
2268
+ /**
2269
+ *
2270
+ * @type {string}
2271
+ * @memberof PitchingStats
2272
+ */
2273
+ inningsPitched?: string;
2274
+ /**
2275
+ *
2276
+ * @type {number}
2277
+ * @memberof PitchingStats
2278
+ */
2279
+ saveOpportunities?: number;
2280
+ /**
2281
+ *
2282
+ * @type {number}
2283
+ * @memberof PitchingStats
2284
+ */
2285
+ earnedRuns?: number;
2286
+ /**
2287
+ *
2288
+ * @type {string}
2289
+ * @memberof PitchingStats
2290
+ */
2291
+ whip?: string;
2292
+ /**
2293
+ *
2294
+ * @type {number}
2295
+ * @memberof PitchingStats
2296
+ */
2297
+ battersFaced?: number;
2298
+ /**
2299
+ *
2300
+ * @type {number}
2301
+ * @memberof PitchingStats
2302
+ */
2303
+ outs?: number;
2304
+ /**
2305
+ *
2306
+ * @type {number}
2307
+ * @memberof PitchingStats
2308
+ */
2309
+ completeGames?: number;
2310
+ /**
2311
+ *
2312
+ * @type {number}
2313
+ * @memberof PitchingStats
2314
+ */
2315
+ shutouts?: number;
2316
+ /**
2317
+ *
2318
+ * @type {number}
2319
+ * @memberof PitchingStats
2320
+ */
2321
+ pitchesThrown?: number;
2322
+ /**
2323
+ *
2324
+ * @type {number}
2325
+ * @memberof PitchingStats
2326
+ */
2327
+ balls?: number;
2328
+ /**
2329
+ *
2330
+ * @type {number}
2331
+ * @memberof PitchingStats
2332
+ */
2333
+ strikes?: number;
2334
+ /**
2335
+ *
2336
+ * @type {string}
2337
+ * @memberof PitchingStats
2338
+ */
2339
+ strikePercentage?: string;
2340
+ /**
2341
+ *
2342
+ * @type {number}
2343
+ * @memberof PitchingStats
2344
+ */
2345
+ hitBatsmen?: number;
2346
+ /**
2347
+ *
2348
+ * @type {number}
2349
+ * @memberof PitchingStats
2350
+ */
2351
+ balks?: number;
2352
+ /**
2353
+ *
2354
+ * @type {number}
2355
+ * @memberof PitchingStats
2356
+ */
2357
+ wildPitches?: number;
2358
+ /**
2359
+ *
2360
+ * @type {number}
2361
+ * @memberof PitchingStats
2362
+ */
2363
+ pickoffs?: number;
2364
+ /**
2365
+ *
2366
+ * @type {string}
2367
+ * @memberof PitchingStats
2368
+ */
2369
+ groundOutsToAirouts?: string;
2370
+ /**
2371
+ *
2372
+ * @type {number}
2373
+ * @memberof PitchingStats
2374
+ */
2375
+ rbi?: number;
2376
+ /**
2377
+ *
2378
+ * @type {string}
2379
+ * @memberof PitchingStats
2380
+ */
2381
+ pitchesPerInning?: string;
2382
+ /**
2383
+ *
2384
+ * @type {string}
2385
+ * @memberof PitchingStats
2386
+ */
2387
+ runsScoredPer9?: string;
2388
+ /**
2389
+ *
2390
+ * @type {string}
2391
+ * @memberof PitchingStats
2392
+ */
2393
+ homeRunsPer9?: string;
2394
+ /**
2395
+ *
2396
+ * @type {number}
2397
+ * @memberof PitchingStats
2398
+ */
2399
+ inheritedRunners?: number;
2400
+ /**
2401
+ *
2402
+ * @type {number}
2403
+ * @memberof PitchingStats
2404
+ */
2405
+ inheritedRunnersScored?: number;
2406
+ /**
2407
+ *
2408
+ * @type {number}
2409
+ * @memberof PitchingStats
2410
+ */
2411
+ catchersInterference?: number;
2412
+ /**
2413
+ *
2414
+ * @type {number}
2415
+ * @memberof PitchingStats
2416
+ */
2417
+ sacBunts?: number;
2418
+ /**
2419
+ *
2420
+ * @type {number}
2421
+ * @memberof PitchingStats
2422
+ */
2423
+ sacFlies?: number;
2424
+ /**
2425
+ *
2426
+ * @type {number}
2427
+ * @memberof PitchingStats
2428
+ */
2429
+ passedBall?: number;
2430
+ /**
2431
+ *
2432
+ * @type {number}
2433
+ * @memberof PitchingStats
2434
+ */
2435
+ popOuts?: number;
2436
+ /**
2437
+ *
2438
+ * @type {number}
2439
+ * @memberof PitchingStats
2440
+ */
2441
+ lineOuts?: number;
2442
+ }
2443
+
2444
+ export declare function PitchingStatsFromJSON(json: any): PitchingStats;
2445
+
2446
+ export declare function PitchingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PitchingStats;
2447
+
2448
+ export declare function PitchingStatsToJSON(json: any): PitchingStats;
2449
+
2450
+ export declare function PitchingStatsToJSONTyped(value?: PitchingStats | null, ignoreDiscriminator?: boolean): any;
2451
+
2452
+ /**
2453
+ * Player
2454
+ *
2455
+ * @export
2456
+ * @interface Player
2457
+ */
2458
+ export declare interface Player {
2459
+ /**
2460
+ *
2461
+ * @type {PlayerPerson}
2462
+ * @memberof Player
2463
+ */
2464
+ person: PlayerPerson;
2465
+ /**
2466
+ *
2467
+ * @type {string}
2468
+ * @memberof Player
2469
+ */
2470
+ jerseyNumber?: string;
2471
+ /**
2472
+ *
2473
+ * @type {PlayerPosition}
2474
+ * @memberof Player
2475
+ */
2476
+ position: PlayerPosition;
2477
+ /**
2478
+ *
2479
+ * @type {PlayerStatus}
2480
+ * @memberof Player
2481
+ */
2482
+ status?: PlayerStatus;
2483
+ /**
2484
+ *
2485
+ * @type {number}
2486
+ * @memberof Player
2487
+ */
2488
+ parentTeamId?: number;
2489
+ /**
2490
+ *
2491
+ * @type {number}
2492
+ * @memberof Player
2493
+ */
2494
+ battingOrder?: number;
2495
+ /**
2496
+ *
2497
+ * @type {PlayerStats}
2498
+ * @memberof Player
2499
+ */
2500
+ stats: PlayerStats;
2501
+ /**
2502
+ *
2503
+ * @type {PlayerSeasonStats}
2504
+ * @memberof Player
2505
+ */
2506
+ seasonStats: PlayerSeasonStats;
2507
+ /**
2508
+ *
2509
+ * @type {PlayerGameStatus}
2510
+ * @memberof Player
2511
+ */
2512
+ gameStatus?: PlayerGameStatus;
2513
+ /**
2514
+ *
2515
+ * @type {Array<Position>}
2516
+ * @memberof Player
2517
+ */
2518
+ allPositions?: Array<Position>;
2519
+ /**
2520
+ *
2521
+ * @type {string}
2522
+ * @memberof Player
2523
+ */
2524
+ type?: string;
2525
+ /**
2526
+ *
2527
+ * @type {number}
2528
+ * @memberof Player
2529
+ */
2530
+ gameScore?: number;
2531
+ /**
2532
+ *
2533
+ * @type {number}
2534
+ * @memberof Player
2535
+ */
2536
+ hittingGameScore?: number;
2537
+ }
2538
+
2539
+ export declare function PlayerFromJSON(json: any): Player;
2540
+
2541
+ export declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Player;
2542
+
2543
+ /**
2544
+ * MLB StatAPI
2545
+ * An spec API to consume the MLB Stat API
2546
+ *
2547
+ * The version of the OpenAPI document: 0.6.0
2548
+ *
2549
+ *
2550
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2551
+ * https://openapi-generator.tech
2552
+ * Do not edit the class manually.
2553
+ */
2554
+ /**
2555
+ *
2556
+ * @export
2557
+ * @interface PlayerGameStatus
2558
+ */
2559
+ export declare interface PlayerGameStatus {
2560
+ /**
2561
+ *
2562
+ * @type {boolean}
2563
+ * @memberof PlayerGameStatus
2564
+ */
2565
+ isCurrentBatter?: boolean;
2566
+ /**
2567
+ *
2568
+ * @type {boolean}
2569
+ * @memberof PlayerGameStatus
2570
+ */
2571
+ isCurrentPitcher?: boolean;
2572
+ /**
2573
+ *
2574
+ * @type {boolean}
2575
+ * @memberof PlayerGameStatus
2576
+ */
2577
+ isOnBench?: boolean;
2578
+ /**
2579
+ *
2580
+ * @type {boolean}
2581
+ * @memberof PlayerGameStatus
2582
+ */
2583
+ isSubstitute?: boolean;
2584
+ }
2585
+
2586
+ export declare function PlayerGameStatusFromJSON(json: any): PlayerGameStatus;
2587
+
2588
+ export declare function PlayerGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerGameStatus;
2589
+
2590
+ export declare function PlayerGameStatusToJSON(json: any): PlayerGameStatus;
2591
+
2592
+ export declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | null, ignoreDiscriminator?: boolean): any;
2593
+
2594
+ /**
2595
+ * MLB StatAPI
2596
+ * An spec API to consume the MLB Stat API
2597
+ *
2598
+ * The version of the OpenAPI document: 0.6.0
2599
+ *
2600
+ *
2601
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2602
+ * https://openapi-generator.tech
2603
+ * Do not edit the class manually.
2604
+ */
2605
+ /**
2606
+ *
2607
+ * @export
2608
+ * @interface PlayerPerson
2609
+ */
2610
+ export declare interface PlayerPerson {
2611
+ /**
2612
+ *
2613
+ * @type {string}
2614
+ * @memberof PlayerPerson
2615
+ */
2616
+ id: string;
2617
+ /**
2618
+ *
2619
+ * @type {string}
2620
+ * @memberof PlayerPerson
2621
+ */
2622
+ fullName: string;
2623
+ /**
2624
+ *
2625
+ * @type {string}
2626
+ * @memberof PlayerPerson
2627
+ */
2628
+ link: string;
2629
+ /**
2630
+ *
2631
+ * @type {string}
2632
+ * @memberof PlayerPerson
2633
+ */
2634
+ boxscoreName: string;
2635
+ }
2636
+
2637
+ export declare function PlayerPersonFromJSON(json: any): PlayerPerson;
2638
+
2639
+ export declare function PlayerPersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPerson;
2640
+
2641
+ export declare function PlayerPersonToJSON(json: any): PlayerPerson;
2642
+
2643
+ export declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ignoreDiscriminator?: boolean): any;
2644
+
2645
+ /**
2646
+ * MLB StatAPI
2647
+ * An spec API to consume the MLB Stat API
2648
+ *
2649
+ * The version of the OpenAPI document: 0.6.0
2650
+ *
2651
+ *
2652
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2653
+ * https://openapi-generator.tech
2654
+ * Do not edit the class manually.
2655
+ */
2656
+ /**
2657
+ *
2658
+ * @export
2659
+ * @interface PlayerPosition
2660
+ */
2661
+ export declare interface PlayerPosition {
2662
+ /**
2663
+ *
2664
+ * @type {string}
2665
+ * @memberof PlayerPosition
2666
+ */
2667
+ code?: string;
2668
+ /**
2669
+ *
2670
+ * @type {string}
2671
+ * @memberof PlayerPosition
2672
+ */
2673
+ name?: string;
2674
+ /**
2675
+ *
2676
+ * @type {string}
2677
+ * @memberof PlayerPosition
2678
+ */
2679
+ type?: string;
2680
+ /**
2681
+ *
2682
+ * @type {string}
2683
+ * @memberof PlayerPosition
2684
+ */
2685
+ abbreviation?: string;
2686
+ }
2687
+
2688
+ export declare function PlayerPositionFromJSON(json: any): PlayerPosition;
2689
+
2690
+ export declare function PlayerPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPosition;
2691
+
2692
+ export declare function PlayerPositionToJSON(json: any): PlayerPosition;
2693
+
2694
+ export declare function PlayerPositionToJSONTyped(value?: PlayerPosition | null, ignoreDiscriminator?: boolean): any;
2695
+
2696
+ /**
2697
+ *
2698
+ * @export
2699
+ * @interface PlayerSeasonStats
2700
+ */
2701
+ export declare interface PlayerSeasonStats {
2702
+ /**
2703
+ *
2704
+ * @type {BattingStats}
2705
+ * @memberof PlayerSeasonStats
2706
+ */
2707
+ batting: BattingStats;
2708
+ /**
2709
+ *
2710
+ * @type {PitchingStats}
2711
+ * @memberof PlayerSeasonStats
2712
+ */
2713
+ pitching: PitchingStats;
2714
+ /**
2715
+ *
2716
+ * @type {FieldingStats}
2717
+ * @memberof PlayerSeasonStats
2718
+ */
2719
+ fielding: FieldingStats;
2720
+ }
2721
+
2722
+ export declare function PlayerSeasonStatsFromJSON(json: any): PlayerSeasonStats;
2723
+
2724
+ export declare function PlayerSeasonStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerSeasonStats;
2725
+
2726
+ export declare function PlayerSeasonStatsToJSON(json: any): PlayerSeasonStats;
2727
+
2728
+ export declare function PlayerSeasonStatsToJSONTyped(value?: PlayerSeasonStats | null, ignoreDiscriminator?: boolean): any;
2729
+
2730
+ /**
2731
+ *
2732
+ * @export
2733
+ * @interface PlayerStats
2734
+ */
2735
+ export declare interface PlayerStats {
2736
+ /**
2737
+ *
2738
+ * @type {BattingStats}
2739
+ * @memberof PlayerStats
2740
+ */
2741
+ batting: BattingStats;
2742
+ /**
2743
+ *
2744
+ * @type {PitchingStats}
2745
+ * @memberof PlayerStats
2746
+ */
2747
+ pitching: PitchingStats;
2748
+ /**
2749
+ *
2750
+ * @type {FieldingStats}
2751
+ * @memberof PlayerStats
2752
+ */
2753
+ fielding: FieldingStats;
2754
+ }
2755
+
2756
+ export declare function PlayerStatsFromJSON(json: any): PlayerStats;
2757
+
2758
+ export declare function PlayerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStats;
2759
+
2760
+ export declare function PlayerStatsToJSON(json: any): PlayerStats;
2761
+
2762
+ export declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignoreDiscriminator?: boolean): any;
2763
+
2764
+ /**
2765
+ * MLB StatAPI
2766
+ * An spec API to consume the MLB Stat API
2767
+ *
2768
+ * The version of the OpenAPI document: 0.6.0
2769
+ *
2770
+ *
2771
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2772
+ * https://openapi-generator.tech
2773
+ * Do not edit the class manually.
2774
+ */
2775
+ /**
2776
+ *
2777
+ * @export
2778
+ * @interface PlayerStatus
2779
+ */
2780
+ export declare interface PlayerStatus {
2781
+ /**
2782
+ *
2783
+ * @type {string}
2784
+ * @memberof PlayerStatus
2785
+ */
2786
+ code?: string;
2787
+ /**
2788
+ *
2789
+ * @type {string}
2790
+ * @memberof PlayerStatus
2791
+ */
2792
+ description?: string;
2793
+ }
2794
+
2795
+ export declare function PlayerStatusFromJSON(json: any): PlayerStatus;
2796
+
2797
+ export declare function PlayerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStatus;
2798
+
2799
+ export declare function PlayerStatusToJSON(json: any): PlayerStatus;
2800
+
2801
+ export declare function PlayerStatusToJSONTyped(value?: PlayerStatus | null, ignoreDiscriminator?: boolean): any;
2802
+
2803
+ export declare function PlayerToJSON(json: any): Player;
2804
+
2805
+ export declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscriminator?: boolean): any;
2806
+
2807
+ /**
2808
+ * MLB StatAPI
2809
+ * An spec API to consume the MLB Stat API
2810
+ *
2811
+ * The version of the OpenAPI document: 0.6.0
2812
+ *
2813
+ *
2814
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2815
+ * https://openapi-generator.tech
2816
+ * Do not edit the class manually.
2817
+ */
2818
+ /**
2819
+ *
2820
+ * @export
2821
+ * @interface Position
2822
+ */
2823
+ export declare interface Position {
2824
+ /**
2825
+ *
2826
+ * @type {string}
2827
+ * @memberof Position
2828
+ */
2829
+ code?: string;
2830
+ /**
2831
+ *
2832
+ * @type {string}
2833
+ * @memberof Position
2834
+ */
2835
+ name?: string;
2836
+ /**
2837
+ *
2838
+ * @type {string}
2839
+ * @memberof Position
2840
+ */
2841
+ type?: string;
2842
+ /**
2843
+ *
2844
+ * @type {string}
2845
+ * @memberof Position
2846
+ */
2847
+ abbreviation?: string;
2848
+ }
2849
+
2850
+ export declare function PositionFromJSON(json: any): Position;
2851
+
2852
+ export declare function PositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Position;
2853
+
2854
+ export declare function PositionToJSON(json: any): Position;
2855
+
2856
+ export declare function PositionToJSONTyped(value?: Position | null, ignoreDiscriminator?: boolean): any;
2857
+
2858
+ export declare function querystring(params: HTTPQuery, prefix?: string): string;
2859
+
2860
+ /**
2861
+ * Record
2862
+ *
2863
+ * @export
2864
+ * @interface Record
2865
+ */
2866
+ declare interface Record_2 {
2867
+ /**
2868
+ *
2869
+ * @type {Team}
2870
+ * @memberof Record
2871
+ */
2872
+ team: Team;
2873
+ /**
2874
+ *
2875
+ * @type {string}
2876
+ * @memberof Record
2877
+ */
2878
+ season: string;
2879
+ /**
2880
+ *
2881
+ * @type {Streak}
2882
+ * @memberof Record
2883
+ */
2884
+ streak: Streak;
2885
+ /**
2886
+ *
2887
+ * @type {string}
2888
+ * @memberof Record
2889
+ */
2890
+ divisionRank: string;
2891
+ /**
2892
+ *
2893
+ * @type {string}
2894
+ * @memberof Record
2895
+ */
2896
+ leagueRank: string;
2897
+ /**
2898
+ *
2899
+ * @type {string}
2900
+ * @memberof Record
2901
+ */
2902
+ sportRank?: string;
2903
+ /**
2904
+ *
2905
+ * @type {number}
2906
+ * @memberof Record
2907
+ */
2908
+ gamesPlayed?: number;
2909
+ /**
2910
+ *
2911
+ * @type {string}
2912
+ * @memberof Record
2913
+ */
2914
+ gamesBack: string;
2915
+ /**
2916
+ *
2917
+ * @type {string}
2918
+ * @memberof Record
2919
+ */
2920
+ wildCardGamesBack?: string;
2921
+ /**
2922
+ *
2923
+ * @type {string}
2924
+ * @memberof Record
2925
+ */
2926
+ leagueGamesBack?: string;
2927
+ /**
2928
+ *
2929
+ * @type {string}
2930
+ * @memberof Record
2931
+ */
2932
+ sportGamesBack?: string;
2933
+ /**
2934
+ *
2935
+ * @type {string}
2936
+ * @memberof Record
2937
+ */
2938
+ divisionGamesBack?: string;
2939
+ /**
2940
+ *
2941
+ * @type {string}
2942
+ * @memberof Record
2943
+ */
2944
+ conferenceGamesBack?: string;
2945
+ /**
2946
+ *
2947
+ * @type {LeagueRecord}
2948
+ * @memberof Record
2949
+ */
2950
+ leagueRecord: LeagueRecord;
2951
+ /**
2952
+ *
2953
+ * @type {string}
2954
+ * @memberof Record
2955
+ */
2956
+ lastUpdated?: string;
2957
+ /**
2958
+ *
2959
+ * @type {number}
2960
+ * @memberof Record
2961
+ */
2962
+ runsAllowed?: number;
2963
+ /**
2964
+ *
2965
+ * @type {number}
2966
+ * @memberof Record
2967
+ */
2968
+ runsScored?: number;
2969
+ /**
2970
+ *
2971
+ * @type {boolean}
2972
+ * @memberof Record
2973
+ */
2974
+ divisionChamp?: boolean;
2975
+ /**
2976
+ *
2977
+ * @type {boolean}
2978
+ * @memberof Record
2979
+ */
2980
+ divisionLeader?: boolean;
2981
+ /**
2982
+ *
2983
+ * @type {boolean}
2984
+ * @memberof Record
2985
+ */
2986
+ hasWildcard?: boolean;
2987
+ /**
2988
+ *
2989
+ * @type {boolean}
2990
+ * @memberof Record
2991
+ */
2992
+ clinched?: boolean;
2993
+ /**
2994
+ *
2995
+ * @type {string}
2996
+ * @memberof Record
2997
+ */
2998
+ eliminationNumber?: string;
2999
+ /**
3000
+ *
3001
+ * @type {string}
3002
+ * @memberof Record
3003
+ */
3004
+ eliminationNumberSport?: string;
3005
+ /**
3006
+ *
3007
+ * @type {string}
3008
+ * @memberof Record
3009
+ */
3010
+ eliminationNumberLeague?: string;
3011
+ /**
3012
+ *
3013
+ * @type {string}
3014
+ * @memberof Record
3015
+ */
3016
+ eliminationNumberDivision?: string;
3017
+ /**
3018
+ *
3019
+ * @type {string}
3020
+ * @memberof Record
3021
+ */
3022
+ eliminationNumberConference?: string;
3023
+ /**
3024
+ *
3025
+ * @type {string}
3026
+ * @memberof Record
3027
+ */
3028
+ wildCardEliminationNumber?: string;
3029
+ /**
3030
+ *
3031
+ * @type {string}
3032
+ * @memberof Record
3033
+ */
3034
+ magicNumber?: string;
3035
+ /**
3036
+ *
3037
+ * @type {number}
3038
+ * @memberof Record
3039
+ */
3040
+ wins: number;
3041
+ /**
3042
+ *
3043
+ * @type {number}
3044
+ * @memberof Record
3045
+ */
3046
+ losses: number;
3047
+ /**
3048
+ *
3049
+ * @type {number}
3050
+ * @memberof Record
3051
+ */
3052
+ runDifferential?: number;
3053
+ /**
3054
+ *
3055
+ * @type {string}
3056
+ * @memberof Record
3057
+ */
3058
+ winningPercentage?: string;
3059
+ }
3060
+ export { Record_2 as Record }
3061
+
3062
+ export declare function RecordFromJSON(json: any): Record_2;
3063
+
3064
+ export declare function RecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Record_2;
3065
+
3066
+ export declare function RecordToJSON(json: any): Record_2;
3067
+
3068
+ export declare function RecordToJSONTyped(value?: Record_2 | null, ignoreDiscriminator?: boolean): any;
3069
+
3070
+ export declare interface RequestContext {
3071
+ fetch: FetchAPI;
3072
+ url: string;
3073
+ init: RequestInit;
3074
+ }
3075
+
3076
+ export declare interface RequestOpts {
3077
+ path: string;
3078
+ method: HTTPMethod;
3079
+ headers: HTTPHeaders;
3080
+ query?: HTTPQuery;
3081
+ body?: HTTPBody;
3082
+ }
3083
+
3084
+ export declare class RequiredError extends Error {
3085
+ field: string;
3086
+ name: "RequiredError";
3087
+ constructor(field: string, msg?: string);
3088
+ }
3089
+
3090
+ export declare interface ResponseContext {
3091
+ fetch: FetchAPI;
3092
+ url: string;
3093
+ init: RequestInit;
3094
+ response: Response;
3095
+ }
3096
+
3097
+ export declare class ResponseError extends Error {
3098
+ response: Response;
3099
+ name: "ResponseError";
3100
+ constructor(response: Response, msg?: string);
3101
+ }
3102
+
3103
+ export declare interface ResponseTransformer<T> {
3104
+ (json: any): T;
3105
+ }
3106
+
3107
+ declare namespace runtime {
3108
+ export {
3109
+ querystring,
3110
+ exists,
3111
+ mapValues,
3112
+ canConsumeForm,
3113
+ BASE_PATH,
3114
+ ConfigurationParameters,
3115
+ Configuration,
3116
+ DefaultConfig,
3117
+ BaseAPI,
3118
+ ResponseError,
3119
+ FetchError,
3120
+ RequiredError,
3121
+ COLLECTION_FORMATS,
3122
+ FetchAPI,
3123
+ Json,
3124
+ HTTPMethod,
3125
+ HTTPHeaders,
3126
+ HTTPQuery,
3127
+ HTTPBody,
3128
+ HTTPRequestInit,
3129
+ ModelPropertyNaming,
3130
+ InitOverrideFunction,
3131
+ FetchParams,
3132
+ RequestOpts,
3133
+ Consume,
3134
+ RequestContext,
3135
+ ResponseContext,
3136
+ ErrorContext,
3137
+ Middleware,
3138
+ ApiResponse,
3139
+ ResponseTransformer,
3140
+ JSONApiResponse,
3141
+ VoidApiResponse,
3142
+ BlobApiResponse,
3143
+ TextApiResponse
3144
+ }
3145
+ }
3146
+
3147
+ /**
3148
+ * Schedule
3149
+ *
3150
+ * @export
3151
+ * @interface Schedule
3152
+ */
3153
+ export declare interface Schedule {
3154
+ /**
3155
+ *
3156
+ * @type {number}
3157
+ * @memberof Schedule
3158
+ */
3159
+ totalItems: number;
3160
+ /**
3161
+ *
3162
+ * @type {number}
3163
+ * @memberof Schedule
3164
+ */
3165
+ totalEvents: number;
3166
+ /**
3167
+ *
3168
+ * @type {number}
3169
+ * @memberof Schedule
3170
+ */
3171
+ totalGames: number;
3172
+ /**
3173
+ *
3174
+ * @type {number}
3175
+ * @memberof Schedule
3176
+ */
3177
+ totalGamesInProgress: number;
3178
+ /**
3179
+ *
3180
+ * @type {Array<ScheduleDay>}
3181
+ * @memberof Schedule
3182
+ */
3183
+ dates: Array<ScheduleDay>;
3184
+ }
3185
+
3186
+ /**
3187
+ *
3188
+ * @export
3189
+ * @interface ScheduleDay
3190
+ */
3191
+ export declare interface ScheduleDay {
3192
+ /**
3193
+ *
3194
+ * @type {string}
3195
+ * @memberof ScheduleDay
3196
+ */
3197
+ date?: string;
3198
+ /**
3199
+ *
3200
+ * @type {number}
3201
+ * @memberof ScheduleDay
3202
+ */
3203
+ totalItems?: number;
3204
+ /**
3205
+ *
3206
+ * @type {number}
3207
+ * @memberof ScheduleDay
3208
+ */
3209
+ totalEvents?: number;
3210
+ /**
3211
+ *
3212
+ * @type {number}
3213
+ * @memberof ScheduleDay
3214
+ */
3215
+ totalGames?: number;
3216
+ /**
3217
+ *
3218
+ * @type {number}
3219
+ * @memberof ScheduleDay
3220
+ */
3221
+ totalGamesInProgress?: number;
3222
+ /**
3223
+ *
3224
+ * @type {Array<Game>}
3225
+ * @memberof ScheduleDay
3226
+ */
3227
+ games: Array<Game>;
3228
+ }
3229
+
3230
+ export declare function ScheduleDayFromJSON(json: any): ScheduleDay;
3231
+
3232
+ export declare function ScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleDay;
3233
+
3234
+ export declare function ScheduleDayToJSON(json: any): ScheduleDay;
3235
+
3236
+ export declare function ScheduleDayToJSONTyped(value?: ScheduleDay | null, ignoreDiscriminator?: boolean): any;
3237
+
3238
+ export declare function ScheduleFromJSON(json: any): Schedule;
3239
+
3240
+ export declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
3241
+
3242
+ export declare function ScheduleToJSON(json: any): Schedule;
3243
+
3244
+ export declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
3245
+
3246
+ /**
3247
+ * MLB StatAPI
3248
+ * An spec API to consume the MLB Stat API
3249
+ *
3250
+ * The version of the OpenAPI document: 0.6.0
3251
+ *
3252
+ *
3253
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3254
+ * https://openapi-generator.tech
3255
+ * Do not edit the class manually.
3256
+ */
3257
+ /**
3258
+ * Season
3259
+ *
3260
+ * @export
3261
+ * @interface Season
3262
+ */
3263
+ export declare interface Season {
3264
+ /**
3265
+ *
3266
+ * @type {string}
3267
+ * @memberof Season
3268
+ */
3269
+ seasonId: string;
3270
+ /**
3271
+ *
3272
+ * @type {boolean}
3273
+ * @memberof Season
3274
+ */
3275
+ hasWildcard?: boolean;
3276
+ /**
3277
+ *
3278
+ * @type {string}
3279
+ * @memberof Season
3280
+ */
3281
+ preSeasonStartDate?: string;
3282
+ /**
3283
+ *
3284
+ * @type {string}
3285
+ * @memberof Season
3286
+ */
3287
+ preSeasonEndDate?: string;
3288
+ /**
3289
+ *
3290
+ * @type {string}
3291
+ * @memberof Season
3292
+ */
3293
+ seasonStartDate: string;
3294
+ /**
3295
+ *
3296
+ * @type {string}
3297
+ * @memberof Season
3298
+ */
3299
+ seasonEndDate: string;
3300
+ /**
3301
+ *
3302
+ * @type {string}
3303
+ * @memberof Season
3304
+ */
3305
+ springStartDate?: string;
3306
+ /**
3307
+ *
3308
+ * @type {string}
3309
+ * @memberof Season
3310
+ */
3311
+ springEndDate?: string;
3312
+ /**
3313
+ *
3314
+ * @type {string}
3315
+ * @memberof Season
3316
+ */
3317
+ regularSeasonStartDate: string;
3318
+ /**
3319
+ *
3320
+ * @type {string}
3321
+ * @memberof Season
3322
+ */
3323
+ lastDate1stHalf?: string;
3324
+ /**
3325
+ *
3326
+ * @type {string}
3327
+ * @memberof Season
3328
+ */
3329
+ allStartDate?: string;
3330
+ /**
3331
+ *
3332
+ * @type {string}
3333
+ * @memberof Season
3334
+ */
3335
+ firstDate2ndHalf?: string;
3336
+ /**
3337
+ *
3338
+ * @type {string}
3339
+ * @memberof Season
3340
+ */
3341
+ regularSeasonEndDate: string;
3342
+ /**
3343
+ *
3344
+ * @type {string}
3345
+ * @memberof Season
3346
+ */
3347
+ postSeasonStartDate?: string;
3348
+ /**
3349
+ *
3350
+ * @type {string}
3351
+ * @memberof Season
3352
+ */
3353
+ postSeasonEndDate?: string;
3354
+ /**
3355
+ *
3356
+ * @type {string}
3357
+ * @memberof Season
3358
+ */
3359
+ offSeasonStartDate?: string;
3360
+ /**
3361
+ *
3362
+ * @type {string}
3363
+ * @memberof Season
3364
+ */
3365
+ offSeasonEndDate?: string;
3366
+ /**
3367
+ *
3368
+ * @type {string}
3369
+ * @memberof Season
3370
+ */
3371
+ seasonLevelGamedayType?: string;
3372
+ /**
3373
+ *
3374
+ * @type {string}
3375
+ * @memberof Season
3376
+ */
3377
+ gameLevelGamedayType?: string;
3378
+ /**
3379
+ *
3380
+ * @type {number}
3381
+ * @memberof Season
3382
+ */
3383
+ qualifierPlateAppearances?: number;
3384
+ /**
3385
+ *
3386
+ * @type {number}
3387
+ * @memberof Season
3388
+ */
3389
+ qualifierOutsPitched?: number;
3390
+ }
3391
+
3392
+ export declare function SeasonFromJSON(json: any): Season;
3393
+
3394
+ export declare function SeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Season;
3395
+
3396
+ /**
3397
+ *
3398
+ * @export
3399
+ * @interface Seasons
3400
+ */
3401
+ export declare interface Seasons {
3402
+ /**
3403
+ *
3404
+ * @type {Array<Season>}
3405
+ * @memberof Seasons
3406
+ */
3407
+ seasons: Array<Season>;
3408
+ }
3409
+
3410
+ export declare function SeasonsFromJSON(json: any): Seasons;
3411
+
3412
+ export declare function SeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seasons;
3413
+
3414
+ export declare function SeasonsToJSON(json: any): Seasons;
3415
+
3416
+ export declare function SeasonsToJSONTyped(value?: Seasons | null, ignoreDiscriminator?: boolean): any;
3417
+
3418
+ export declare function SeasonToJSON(json: any): Season;
3419
+
3420
+ export declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscriminator?: boolean): any;
3421
+
3422
+ /**
3423
+ * MLB StatAPI
3424
+ * An spec API to consume the MLB Stat API
3425
+ *
3426
+ * The version of the OpenAPI document: 0.6.0
3427
+ *
3428
+ *
3429
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3430
+ * https://openapi-generator.tech
3431
+ * Do not edit the class manually.
3432
+ */
3433
+ /**
3434
+ * Sport
3435
+ *
3436
+ * @export
3437
+ * @interface Sport
3438
+ */
3439
+ export declare interface Sport {
3440
+ /**
3441
+ *
3442
+ * @type {number}
3443
+ * @memberof Sport
3444
+ */
3445
+ id: number;
3446
+ /**
3447
+ *
3448
+ * @type {string}
3449
+ * @memberof Sport
3450
+ */
3451
+ code?: string;
3452
+ /**
3453
+ *
3454
+ * @type {string}
3455
+ * @memberof Sport
3456
+ */
3457
+ link?: string;
3458
+ /**
3459
+ *
3460
+ * @type {string}
3461
+ * @memberof Sport
3462
+ */
3463
+ name?: string;
3464
+ /**
3465
+ *
3466
+ * @type {string}
3467
+ * @memberof Sport
3468
+ */
3469
+ abbreviation?: string;
3470
+ /**
3471
+ *
3472
+ * @type {number}
3473
+ * @memberof Sport
3474
+ */
3475
+ sortOrder?: number;
3476
+ /**
3477
+ *
3478
+ * @type {boolean}
3479
+ * @memberof Sport
3480
+ */
3481
+ activeStatus?: boolean;
3482
+ }
3483
+
3484
+ export declare function SportFromJSON(json: any): Sport;
3485
+
3486
+ export declare function SportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sport;
3487
+
3488
+ export declare function SportToJSON(json: any): Sport;
3489
+
3490
+ export declare function SportToJSONTyped(value?: Sport | null, ignoreDiscriminator?: boolean): any;
3491
+
3492
+ /**
3493
+ * MLB StatAPI
3494
+ * An spec API to consume the MLB Stat API
3495
+ *
3496
+ * The version of the OpenAPI document: 0.6.0
3497
+ *
3498
+ *
3499
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3500
+ * https://openapi-generator.tech
3501
+ * Do not edit the class manually.
3502
+ */
3503
+ /**
3504
+ *
3505
+ * @export
3506
+ * @interface Streak
3507
+ */
3508
+ export declare interface Streak {
3509
+ /**
3510
+ * Streak Type:
3511
+ * * Losing Streak
3512
+ * * Winning Streak
3513
+ *
3514
+ * @type {string}
3515
+ * @memberof Streak
3516
+ */
3517
+ streakType?: StreakStreakTypeEnum;
3518
+ }
3519
+
3520
+ export declare function StreakFromJSON(json: any): Streak;
3521
+
3522
+ export declare function StreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): Streak;
3523
+
3524
+ /**
3525
+ * @export
3526
+ * @enum {string}
3527
+ */
3528
+ export declare enum StreakStreakTypeEnum {
3529
+ Losing = "losses",
3530
+ Winning = "wins"
3531
+ }
3532
+
3533
+ export declare function StreakToJSON(json: any): Streak;
3534
+
3535
+ export declare function StreakToJSONTyped(value?: Streak | null, ignoreDiscriminator?: boolean): any;
3536
+
3537
+ /**
3538
+ * Team
3539
+ *
3540
+ * @export
3541
+ * @interface Team
3542
+ */
3543
+ export declare interface Team {
3544
+ /**
3545
+ *
3546
+ * @type {number}
3547
+ * @memberof Team
3548
+ */
3549
+ id: number;
3550
+ /**
3551
+ *
3552
+ * @type {string}
3553
+ * @memberof Team
3554
+ */
3555
+ name: string;
3556
+ /**
3557
+ *
3558
+ * @type {string}
3559
+ * @memberof Team
3560
+ */
3561
+ link?: string;
3562
+ /**
3563
+ *
3564
+ * @type {string}
3565
+ * @memberof Team
3566
+ */
3567
+ allStarStatus?: string;
3568
+ /**
3569
+ *
3570
+ * @type {number}
3571
+ * @memberof Team
3572
+ */
3573
+ season?: number;
3574
+ /**
3575
+ *
3576
+ * @type {Venue}
3577
+ * @memberof Team
3578
+ */
3579
+ venue?: Venue;
3580
+ /**
3581
+ *
3582
+ * @type {Venue}
3583
+ * @memberof Team
3584
+ */
3585
+ springVenue?: Venue;
3586
+ /**
3587
+ *
3588
+ * @type {string}
3589
+ * @memberof Team
3590
+ */
3591
+ teamCode?: string;
3592
+ /**
3593
+ *
3594
+ * @type {string}
3595
+ * @memberof Team
3596
+ */
3597
+ fileCode?: string;
3598
+ /**
3599
+ *
3600
+ * @type {string}
3601
+ * @memberof Team
3602
+ */
3603
+ abbreviation?: string;
3604
+ /**
3605
+ *
3606
+ * @type {string}
3607
+ * @memberof Team
3608
+ */
3609
+ teamName?: string;
3610
+ /**
3611
+ *
3612
+ * @type {string}
3613
+ * @memberof Team
3614
+ */
3615
+ locationName?: string;
3616
+ /**
3617
+ *
3618
+ * @type {string}
3619
+ * @memberof Team
3620
+ */
3621
+ firstYearOfPlay?: string;
3622
+ /**
3623
+ *
3624
+ * @type {League}
3625
+ * @memberof Team
3626
+ */
3627
+ league?: League;
3628
+ /**
3629
+ *
3630
+ * @type {League}
3631
+ * @memberof Team
3632
+ */
3633
+ springLeague?: League;
3634
+ /**
3635
+ *
3636
+ * @type {Division}
3637
+ * @memberof Team
3638
+ */
3639
+ division?: Division;
3640
+ /**
3641
+ *
3642
+ * @type {Sport}
3643
+ * @memberof Team
3644
+ */
3645
+ sport?: Sport;
3646
+ /**
3647
+ *
3648
+ * @type {Record}
3649
+ * @memberof Team
3650
+ */
3651
+ record?: Record_2;
3652
+ /**
3653
+ *
3654
+ * @type {string}
3655
+ * @memberof Team
3656
+ */
3657
+ shortName?: string;
3658
+ /**
3659
+ *
3660
+ * @type {string}
3661
+ * @memberof Team
3662
+ */
3663
+ franchiseName?: string;
3664
+ /**
3665
+ *
3666
+ * @type {string}
3667
+ * @memberof Team
3668
+ */
3669
+ clubName?: string;
3670
+ /**
3671
+ *
3672
+ * @type {boolean}
3673
+ * @memberof Team
3674
+ */
3675
+ active?: boolean;
3676
+ }
3677
+
3678
+ export declare function TeamFromJSON(json: any): Team;
3679
+
3680
+ export declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team;
3681
+
3682
+ /**
3683
+ *
3684
+ * @export
3685
+ * @interface Teams
3686
+ */
3687
+ export declare interface Teams {
3688
+ /**
3689
+ *
3690
+ * @type {Array<Team>}
3691
+ * @memberof Teams
3692
+ */
3693
+ teams: Array<Team>;
3694
+ }
3695
+
3696
+ export declare function TeamsFromJSON(json: any): Teams;
3697
+
3698
+ export declare function TeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Teams;
3699
+
3700
+ /**
3701
+ *
3702
+ * @export
3703
+ * @interface TeamStats
3704
+ */
3705
+ export declare interface TeamStats {
3706
+ /**
3707
+ *
3708
+ * @type {BattingStats}
3709
+ * @memberof TeamStats
3710
+ */
3711
+ batting: BattingStats;
3712
+ /**
3713
+ *
3714
+ * @type {PitchingStats}
3715
+ * @memberof TeamStats
3716
+ */
3717
+ pitching: PitchingStats;
3718
+ /**
3719
+ *
3720
+ * @type {FieldingStats}
3721
+ * @memberof TeamStats
3722
+ */
3723
+ fielding: FieldingStats;
3724
+ }
3725
+
3726
+ export declare function TeamStatsFromJSON(json: any): TeamStats;
3727
+
3728
+ export declare function TeamStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamStats;
3729
+
3730
+ export declare function TeamStatsToJSON(json: any): TeamStats;
3731
+
3732
+ export declare function TeamStatsToJSONTyped(value?: TeamStats | null, ignoreDiscriminator?: boolean): any;
3733
+
3734
+ export declare function TeamsToJSON(json: any): Teams;
3735
+
3736
+ export declare function TeamsToJSONTyped(value?: Teams | null, ignoreDiscriminator?: boolean): any;
3737
+
3738
+ export declare function TeamToJSON(json: any): Team;
3739
+
3740
+ export declare function TeamToJSONTyped(value?: Team | null, ignoreDiscriminator?: boolean): any;
3741
+
3742
+ export declare class TextApiResponse {
3743
+ raw: Response;
3744
+ constructor(raw: Response);
3745
+ value(): Promise<string>;
3746
+ }
3747
+
3748
+ /**
3749
+ * MLB StatAPI
3750
+ * An spec API to consume the MLB Stat API
3751
+ *
3752
+ * The version of the OpenAPI document: 0.6.0
3753
+ *
3754
+ *
3755
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3756
+ * https://openapi-generator.tech
3757
+ * Do not edit the class manually.
3758
+ */
3759
+ /**
3760
+ * Venue
3761
+ *
3762
+ * @export
3763
+ * @interface Venue
3764
+ */
3765
+ export declare interface Venue {
3766
+ /**
3767
+ *
3768
+ * @type {number}
3769
+ * @memberof Venue
3770
+ */
3771
+ id: number;
3772
+ /**
3773
+ *
3774
+ * @type {string}
3775
+ * @memberof Venue
3776
+ */
3777
+ name: string;
3778
+ /**
3779
+ *
3780
+ * @type {string}
3781
+ * @memberof Venue
3782
+ */
3783
+ link?: string;
3784
+ /**
3785
+ *
3786
+ * @type {boolean}
3787
+ * @memberof Venue
3788
+ */
3789
+ active?: boolean;
3790
+ /**
3791
+ *
3792
+ * @type {string}
3793
+ * @memberof Venue
3794
+ */
3795
+ season?: string;
3796
+ }
3797
+
3798
+ export declare function VenueFromJSON(json: any): Venue;
3799
+
3800
+ export declare function VenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): Venue;
3801
+
3802
+ export declare function VenueToJSON(json: any): Venue;
3803
+
3804
+ export declare function VenueToJSONTyped(value?: Venue | null, ignoreDiscriminator?: boolean): any;
3805
+
3806
+ export declare class VoidApiResponse {
3807
+ raw: Response;
3808
+ constructor(raw: Response);
3809
+ value(): Promise<void>;
3810
+ }
3811
+
3812
+ export { }