@bp1222/stats-api 0.2.4 → 0.3.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.mts +407 -95
- package/dist/index.d.ts +407 -95
- package/dist/index.js +1251 -168
- package/dist/index.mjs +1132 -161
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -95,6 +95,7 @@ interface RequestOpts {
|
|
|
95
95
|
body?: HTTPBody;
|
|
96
96
|
}
|
|
97
97
|
declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
98
|
+
declare function exists(json: any, key: string): boolean;
|
|
98
99
|
declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
99
100
|
declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
100
101
|
interface Consume {
|
|
@@ -152,6 +153,242 @@ declare class TextApiResponse {
|
|
|
152
153
|
value(): Promise<string>;
|
|
153
154
|
}
|
|
154
155
|
|
|
156
|
+
interface BattingStats {
|
|
157
|
+
flyOuts?: number;
|
|
158
|
+
groundOuts?: number;
|
|
159
|
+
airOuts?: number;
|
|
160
|
+
runs?: number;
|
|
161
|
+
doubles?: number;
|
|
162
|
+
triples?: number;
|
|
163
|
+
homeRuns?: number;
|
|
164
|
+
strikeOuts?: number;
|
|
165
|
+
baseOnBalls?: number;
|
|
166
|
+
intentionalWalks?: number;
|
|
167
|
+
hits?: number;
|
|
168
|
+
hitByPitch?: number;
|
|
169
|
+
avg?: string;
|
|
170
|
+
atBats?: number;
|
|
171
|
+
obp?: string;
|
|
172
|
+
slg?: string;
|
|
173
|
+
ops?: string;
|
|
174
|
+
caughtStealing?: number;
|
|
175
|
+
stolenBases?: number;
|
|
176
|
+
stolenBasePercentage?: string;
|
|
177
|
+
groundIntoDoublePlay?: number;
|
|
178
|
+
groundIntoTriplePlay?: number;
|
|
179
|
+
plateAppearances?: number;
|
|
180
|
+
totalBases?: number;
|
|
181
|
+
rbi?: number;
|
|
182
|
+
leftOnBase?: number;
|
|
183
|
+
sacBunts?: number;
|
|
184
|
+
sacFlies?: number;
|
|
185
|
+
catchersInterference?: number;
|
|
186
|
+
pickoffs?: number;
|
|
187
|
+
atBatsPerHomeRun?: string;
|
|
188
|
+
popOuts?: number;
|
|
189
|
+
lineOuts?: number;
|
|
190
|
+
}
|
|
191
|
+
declare function instanceOfBattingStats(value: object): value is BattingStats;
|
|
192
|
+
declare function BattingStatsFromJSON(json: any): BattingStats;
|
|
193
|
+
declare function BattingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BattingStats;
|
|
194
|
+
declare function BattingStatsToJSON(json: any): BattingStats;
|
|
195
|
+
declare function BattingStatsToJSONTyped(value?: BattingStats | null, ignoreDiscriminator?: boolean): any;
|
|
196
|
+
|
|
197
|
+
interface Official {
|
|
198
|
+
id?: number;
|
|
199
|
+
fullName?: string;
|
|
200
|
+
link?: string;
|
|
201
|
+
}
|
|
202
|
+
declare function instanceOfOfficial(value: object): value is Official;
|
|
203
|
+
declare function OfficialFromJSON(json: any): Official;
|
|
204
|
+
declare function OfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): Official;
|
|
205
|
+
declare function OfficialToJSON(json: any): Official;
|
|
206
|
+
declare function OfficialToJSONTyped(value?: Official | null, ignoreDiscriminator?: boolean): any;
|
|
207
|
+
|
|
208
|
+
interface GameOfficial {
|
|
209
|
+
official?: Official;
|
|
210
|
+
officialType?: string;
|
|
211
|
+
}
|
|
212
|
+
declare function instanceOfGameOfficial(value: object): value is GameOfficial;
|
|
213
|
+
declare function GameOfficialFromJSON(json: any): GameOfficial;
|
|
214
|
+
declare function GameOfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameOfficial;
|
|
215
|
+
declare function GameOfficialToJSON(json: any): GameOfficial;
|
|
216
|
+
declare function GameOfficialToJSONTyped(value?: GameOfficial | null, ignoreDiscriminator?: boolean): any;
|
|
217
|
+
|
|
218
|
+
interface FieldingStats {
|
|
219
|
+
caughtStealing?: number;
|
|
220
|
+
stolenBases?: number;
|
|
221
|
+
stolenBasePercentage?: string;
|
|
222
|
+
assists?: number;
|
|
223
|
+
putOuts?: number;
|
|
224
|
+
errors?: number;
|
|
225
|
+
chances?: number;
|
|
226
|
+
passedBall?: number;
|
|
227
|
+
pickoffs?: number;
|
|
228
|
+
}
|
|
229
|
+
declare function instanceOfFieldingStats(value: object): value is FieldingStats;
|
|
230
|
+
declare function FieldingStatsFromJSON(json: any): FieldingStats;
|
|
231
|
+
declare function FieldingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldingStats;
|
|
232
|
+
declare function FieldingStatsToJSON(json: any): FieldingStats;
|
|
233
|
+
declare function FieldingStatsToJSONTyped(value?: FieldingStats | null, ignoreDiscriminator?: boolean): any;
|
|
234
|
+
|
|
235
|
+
interface PitchingStats {
|
|
236
|
+
flyOuts?: number;
|
|
237
|
+
groundOuts?: number;
|
|
238
|
+
airOuts?: number;
|
|
239
|
+
runs?: number;
|
|
240
|
+
doubles?: number;
|
|
241
|
+
triples?: number;
|
|
242
|
+
homeRuns?: number;
|
|
243
|
+
strikeOuts?: number;
|
|
244
|
+
baseOnBalls?: number;
|
|
245
|
+
intentionalWalks?: number;
|
|
246
|
+
hits?: number;
|
|
247
|
+
hitByPitch?: number;
|
|
248
|
+
atBats?: number;
|
|
249
|
+
obp?: string;
|
|
250
|
+
caughtStealing?: number;
|
|
251
|
+
stolenBases?: number;
|
|
252
|
+
stolenBasePercentage?: string;
|
|
253
|
+
numberOfPitches?: number;
|
|
254
|
+
era?: string;
|
|
255
|
+
inningsPitched?: string;
|
|
256
|
+
saveOpportunities?: number;
|
|
257
|
+
earnedRuns?: number;
|
|
258
|
+
whip?: string;
|
|
259
|
+
battersFaced?: number;
|
|
260
|
+
outs?: number;
|
|
261
|
+
completeGames?: number;
|
|
262
|
+
shutouts?: number;
|
|
263
|
+
pitchesThrown?: number;
|
|
264
|
+
balls?: number;
|
|
265
|
+
strikes?: number;
|
|
266
|
+
strikePercentage?: string;
|
|
267
|
+
hitBatsmen?: number;
|
|
268
|
+
balks?: number;
|
|
269
|
+
wildPitches?: number;
|
|
270
|
+
pickoffs?: number;
|
|
271
|
+
groundOutsToAirouts?: string;
|
|
272
|
+
rbi?: number;
|
|
273
|
+
pitchesPerInning?: string;
|
|
274
|
+
runsScoredPer9?: string;
|
|
275
|
+
homeRunsPer9?: string;
|
|
276
|
+
inheritedRunners?: number;
|
|
277
|
+
inheritedRunnersScored?: number;
|
|
278
|
+
catchersInterference?: number;
|
|
279
|
+
sacBunts?: number;
|
|
280
|
+
sacFlies?: number;
|
|
281
|
+
passedBall?: number;
|
|
282
|
+
popOuts?: number;
|
|
283
|
+
lineOuts?: number;
|
|
284
|
+
}
|
|
285
|
+
declare function instanceOfPitchingStats(value: object): value is PitchingStats;
|
|
286
|
+
declare function PitchingStatsFromJSON(json: any): PitchingStats;
|
|
287
|
+
declare function PitchingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PitchingStats;
|
|
288
|
+
declare function PitchingStatsToJSON(json: any): PitchingStats;
|
|
289
|
+
declare function PitchingStatsToJSONTyped(value?: PitchingStats | null, ignoreDiscriminator?: boolean): any;
|
|
290
|
+
|
|
291
|
+
interface PlayerSeasonStats {
|
|
292
|
+
batting: BattingStats;
|
|
293
|
+
pitching: PitchingStats;
|
|
294
|
+
fielding: FieldingStats;
|
|
295
|
+
}
|
|
296
|
+
declare function instanceOfPlayerSeasonStats(value: object): value is PlayerSeasonStats;
|
|
297
|
+
declare function PlayerSeasonStatsFromJSON(json: any): PlayerSeasonStats;
|
|
298
|
+
declare function PlayerSeasonStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerSeasonStats;
|
|
299
|
+
declare function PlayerSeasonStatsToJSON(json: any): PlayerSeasonStats;
|
|
300
|
+
declare function PlayerSeasonStatsToJSONTyped(value?: PlayerSeasonStats | null, ignoreDiscriminator?: boolean): any;
|
|
301
|
+
|
|
302
|
+
interface PlayerGameStatus {
|
|
303
|
+
isCurrentBatter?: boolean;
|
|
304
|
+
isCurrentPitcher?: boolean;
|
|
305
|
+
isOnBench?: boolean;
|
|
306
|
+
isSubstitute?: boolean;
|
|
307
|
+
}
|
|
308
|
+
declare function instanceOfPlayerGameStatus(value: object): value is PlayerGameStatus;
|
|
309
|
+
declare function PlayerGameStatusFromJSON(json: any): PlayerGameStatus;
|
|
310
|
+
declare function PlayerGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerGameStatus;
|
|
311
|
+
declare function PlayerGameStatusToJSON(json: any): PlayerGameStatus;
|
|
312
|
+
declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | null, ignoreDiscriminator?: boolean): any;
|
|
313
|
+
|
|
314
|
+
interface Position {
|
|
315
|
+
code?: string;
|
|
316
|
+
name?: string;
|
|
317
|
+
type?: string;
|
|
318
|
+
abbreviation?: string;
|
|
319
|
+
}
|
|
320
|
+
declare function instanceOfPosition(value: object): value is Position;
|
|
321
|
+
declare function PositionFromJSON(json: any): Position;
|
|
322
|
+
declare function PositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Position;
|
|
323
|
+
declare function PositionToJSON(json: any): Position;
|
|
324
|
+
declare function PositionToJSONTyped(value?: Position | null, ignoreDiscriminator?: boolean): any;
|
|
325
|
+
|
|
326
|
+
interface PlayerPerson {
|
|
327
|
+
id: string;
|
|
328
|
+
fullName: string;
|
|
329
|
+
link: string;
|
|
330
|
+
boxscoreName: string;
|
|
331
|
+
}
|
|
332
|
+
declare function instanceOfPlayerPerson(value: object): value is PlayerPerson;
|
|
333
|
+
declare function PlayerPersonFromJSON(json: any): PlayerPerson;
|
|
334
|
+
declare function PlayerPersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPerson;
|
|
335
|
+
declare function PlayerPersonToJSON(json: any): PlayerPerson;
|
|
336
|
+
declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ignoreDiscriminator?: boolean): any;
|
|
337
|
+
|
|
338
|
+
interface PlayerPosition {
|
|
339
|
+
code?: string;
|
|
340
|
+
name?: string;
|
|
341
|
+
type?: string;
|
|
342
|
+
abbreviation?: string;
|
|
343
|
+
}
|
|
344
|
+
declare function instanceOfPlayerPosition(value: object): value is PlayerPosition;
|
|
345
|
+
declare function PlayerPositionFromJSON(json: any): PlayerPosition;
|
|
346
|
+
declare function PlayerPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPosition;
|
|
347
|
+
declare function PlayerPositionToJSON(json: any): PlayerPosition;
|
|
348
|
+
declare function PlayerPositionToJSONTyped(value?: PlayerPosition | null, ignoreDiscriminator?: boolean): any;
|
|
349
|
+
|
|
350
|
+
interface PlayerStatus {
|
|
351
|
+
code?: string;
|
|
352
|
+
description?: string;
|
|
353
|
+
}
|
|
354
|
+
declare function instanceOfPlayerStatus(value: object): value is PlayerStatus;
|
|
355
|
+
declare function PlayerStatusFromJSON(json: any): PlayerStatus;
|
|
356
|
+
declare function PlayerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStatus;
|
|
357
|
+
declare function PlayerStatusToJSON(json: any): PlayerStatus;
|
|
358
|
+
declare function PlayerStatusToJSONTyped(value?: PlayerStatus | null, ignoreDiscriminator?: boolean): any;
|
|
359
|
+
|
|
360
|
+
interface PlayerStats {
|
|
361
|
+
batting: BattingStats;
|
|
362
|
+
pitching: PitchingStats;
|
|
363
|
+
fielding: FieldingStats;
|
|
364
|
+
}
|
|
365
|
+
declare function instanceOfPlayerStats(value: object): value is PlayerStats;
|
|
366
|
+
declare function PlayerStatsFromJSON(json: any): PlayerStats;
|
|
367
|
+
declare function PlayerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStats;
|
|
368
|
+
declare function PlayerStatsToJSON(json: any): PlayerStats;
|
|
369
|
+
declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignoreDiscriminator?: boolean): any;
|
|
370
|
+
|
|
371
|
+
interface Player {
|
|
372
|
+
person: PlayerPerson;
|
|
373
|
+
jerseyNumber?: string;
|
|
374
|
+
position: PlayerPosition;
|
|
375
|
+
status?: PlayerStatus;
|
|
376
|
+
parentTeamId?: number;
|
|
377
|
+
battingOrder?: number;
|
|
378
|
+
stats: PlayerStats;
|
|
379
|
+
seasonStats: PlayerSeasonStats;
|
|
380
|
+
gameStatus?: PlayerGameStatus;
|
|
381
|
+
allPositions?: Array<Position>;
|
|
382
|
+
type?: string;
|
|
383
|
+
gameScore?: number;
|
|
384
|
+
hittingGameScore?: number;
|
|
385
|
+
}
|
|
386
|
+
declare function instanceOfPlayer(value: object): value is Player;
|
|
387
|
+
declare function PlayerFromJSON(json: any): Player;
|
|
388
|
+
declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Player;
|
|
389
|
+
declare function PlayerToJSON(json: any): Player;
|
|
390
|
+
declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscriminator?: boolean): any;
|
|
391
|
+
|
|
155
392
|
interface LeagueDates {
|
|
156
393
|
seasonId?: string;
|
|
157
394
|
preSeasonStartDate?: string;
|
|
@@ -167,7 +404,8 @@ interface LeagueDates {
|
|
|
167
404
|
declare function instanceOfLeagueDates(value: object): value is LeagueDates;
|
|
168
405
|
declare function LeagueDatesFromJSON(json: any): LeagueDates;
|
|
169
406
|
declare function LeagueDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueDates;
|
|
170
|
-
declare function LeagueDatesToJSON(
|
|
407
|
+
declare function LeagueDatesToJSON(json: any): LeagueDates;
|
|
408
|
+
declare function LeagueDatesToJSONTyped(value?: LeagueDates | null, ignoreDiscriminator?: boolean): any;
|
|
171
409
|
|
|
172
410
|
interface League {
|
|
173
411
|
id: number;
|
|
@@ -190,7 +428,8 @@ interface League {
|
|
|
190
428
|
declare function instanceOfLeague(value: object): value is League;
|
|
191
429
|
declare function LeagueFromJSON(json: any): League;
|
|
192
430
|
declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): League;
|
|
193
|
-
declare function LeagueToJSON(
|
|
431
|
+
declare function LeagueToJSON(json: any): League;
|
|
432
|
+
declare function LeagueToJSONTyped(value?: League | null, ignoreDiscriminator?: boolean): any;
|
|
194
433
|
|
|
195
434
|
interface Sport {
|
|
196
435
|
id: number;
|
|
@@ -204,7 +443,21 @@ interface Sport {
|
|
|
204
443
|
declare function instanceOfSport(value: object): value is Sport;
|
|
205
444
|
declare function SportFromJSON(json: any): Sport;
|
|
206
445
|
declare function SportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sport;
|
|
207
|
-
declare function SportToJSON(
|
|
446
|
+
declare function SportToJSON(json: any): Sport;
|
|
447
|
+
declare function SportToJSONTyped(value?: Sport | null, ignoreDiscriminator?: boolean): any;
|
|
448
|
+
|
|
449
|
+
interface Venue {
|
|
450
|
+
id: number;
|
|
451
|
+
name: string;
|
|
452
|
+
link?: string;
|
|
453
|
+
active?: boolean;
|
|
454
|
+
season?: string;
|
|
455
|
+
}
|
|
456
|
+
declare function instanceOfVenue(value: object): value is Venue;
|
|
457
|
+
declare function VenueFromJSON(json: any): Venue;
|
|
458
|
+
declare function VenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): Venue;
|
|
459
|
+
declare function VenueToJSON(json: any): Venue;
|
|
460
|
+
declare function VenueToJSONTyped(value?: Venue | null, ignoreDiscriminator?: boolean): any;
|
|
208
461
|
|
|
209
462
|
interface Division {
|
|
210
463
|
id: number;
|
|
@@ -223,60 +476,21 @@ interface Division {
|
|
|
223
476
|
declare function instanceOfDivision(value: object): value is Division;
|
|
224
477
|
declare function DivisionFromJSON(json: any): Division;
|
|
225
478
|
declare function DivisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Division;
|
|
226
|
-
declare function DivisionToJSON(
|
|
479
|
+
declare function DivisionToJSON(json: any): Division;
|
|
480
|
+
declare function DivisionToJSONTyped(value?: Division | null, ignoreDiscriminator?: boolean): any;
|
|
227
481
|
|
|
228
482
|
interface Streak {
|
|
229
483
|
streakType?: StreakStreakTypeEnum;
|
|
230
484
|
}
|
|
231
|
-
declare
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
type StreakStreakTypeEnum = typeof StreakStreakTypeEnum[keyof typeof StreakStreakTypeEnum];
|
|
485
|
+
declare enum StreakStreakTypeEnum {
|
|
486
|
+
Losing = "losses",
|
|
487
|
+
Winning = "wins"
|
|
488
|
+
}
|
|
236
489
|
declare function instanceOfStreak(value: object): value is Streak;
|
|
237
490
|
declare function StreakFromJSON(json: any): Streak;
|
|
238
491
|
declare function StreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): Streak;
|
|
239
|
-
declare function StreakToJSON(
|
|
240
|
-
|
|
241
|
-
interface Venue {
|
|
242
|
-
id: number;
|
|
243
|
-
name: string;
|
|
244
|
-
link?: string;
|
|
245
|
-
active?: boolean;
|
|
246
|
-
season?: string;
|
|
247
|
-
}
|
|
248
|
-
declare function instanceOfVenue(value: object): value is Venue;
|
|
249
|
-
declare function VenueFromJSON(json: any): Venue;
|
|
250
|
-
declare function VenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): Venue;
|
|
251
|
-
declare function VenueToJSON(value?: Venue | null): any;
|
|
252
|
-
|
|
253
|
-
interface Team {
|
|
254
|
-
id: number;
|
|
255
|
-
name: string;
|
|
256
|
-
link?: string;
|
|
257
|
-
allStarStatus?: string;
|
|
258
|
-
season?: number;
|
|
259
|
-
venue?: Venue;
|
|
260
|
-
springVenue?: Venue;
|
|
261
|
-
teamCode?: string;
|
|
262
|
-
fileCode?: string;
|
|
263
|
-
abbreviation?: string;
|
|
264
|
-
teamName?: string;
|
|
265
|
-
locationName?: string;
|
|
266
|
-
firstYearOfPlay?: string;
|
|
267
|
-
league?: League;
|
|
268
|
-
springLeague?: League;
|
|
269
|
-
division?: Division;
|
|
270
|
-
sport?: Sport;
|
|
271
|
-
shortName?: string;
|
|
272
|
-
franchiseName?: string;
|
|
273
|
-
clubName?: string;
|
|
274
|
-
active?: boolean;
|
|
275
|
-
}
|
|
276
|
-
declare function instanceOfTeam(value: object): value is Team;
|
|
277
|
-
declare function TeamFromJSON(json: any): Team;
|
|
278
|
-
declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team;
|
|
279
|
-
declare function TeamToJSON(value?: Team | null): any;
|
|
492
|
+
declare function StreakToJSON(json: any): Streak;
|
|
493
|
+
declare function StreakToJSONTyped(value?: Streak | null, ignoreDiscriminator?: boolean): any;
|
|
280
494
|
|
|
281
495
|
interface LeagueRecord {
|
|
282
496
|
wins: number;
|
|
@@ -287,9 +501,10 @@ interface LeagueRecord {
|
|
|
287
501
|
declare function instanceOfLeagueRecord(value: object): value is LeagueRecord;
|
|
288
502
|
declare function LeagueRecordFromJSON(json: any): LeagueRecord;
|
|
289
503
|
declare function LeagueRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueRecord;
|
|
290
|
-
declare function LeagueRecordToJSON(
|
|
504
|
+
declare function LeagueRecordToJSON(json: any): LeagueRecord;
|
|
505
|
+
declare function LeagueRecordToJSONTyped(value?: LeagueRecord | null, ignoreDiscriminator?: boolean): any;
|
|
291
506
|
|
|
292
|
-
interface
|
|
507
|
+
interface Record {
|
|
293
508
|
team: Team;
|
|
294
509
|
season: string;
|
|
295
510
|
streak: Streak;
|
|
@@ -323,10 +538,85 @@ interface TeamRecord {
|
|
|
323
538
|
runDifferential?: number;
|
|
324
539
|
winningPercentage?: string;
|
|
325
540
|
}
|
|
326
|
-
declare function
|
|
327
|
-
declare function
|
|
328
|
-
declare function
|
|
329
|
-
declare function
|
|
541
|
+
declare function instanceOfRecord(value: object): value is Record;
|
|
542
|
+
declare function RecordFromJSON(json: any): Record;
|
|
543
|
+
declare function RecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Record;
|
|
544
|
+
declare function RecordToJSON(json: any): Record;
|
|
545
|
+
declare function RecordToJSONTyped(value?: Record | null, ignoreDiscriminator?: boolean): any;
|
|
546
|
+
|
|
547
|
+
interface Team {
|
|
548
|
+
id: number;
|
|
549
|
+
name: string;
|
|
550
|
+
link?: string;
|
|
551
|
+
allStarStatus?: string;
|
|
552
|
+
season?: number;
|
|
553
|
+
venue?: Venue;
|
|
554
|
+
springVenue?: Venue;
|
|
555
|
+
teamCode?: string;
|
|
556
|
+
fileCode?: string;
|
|
557
|
+
abbreviation?: string;
|
|
558
|
+
teamName?: string;
|
|
559
|
+
locationName?: string;
|
|
560
|
+
firstYearOfPlay?: string;
|
|
561
|
+
league?: League;
|
|
562
|
+
springLeague?: League;
|
|
563
|
+
division?: Division;
|
|
564
|
+
sport?: Sport;
|
|
565
|
+
record?: Record;
|
|
566
|
+
shortName?: string;
|
|
567
|
+
franchiseName?: string;
|
|
568
|
+
clubName?: string;
|
|
569
|
+
active?: boolean;
|
|
570
|
+
}
|
|
571
|
+
declare function instanceOfTeam(value: object): value is Team;
|
|
572
|
+
declare function TeamFromJSON(json: any): Team;
|
|
573
|
+
declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team;
|
|
574
|
+
declare function TeamToJSON(json: any): Team;
|
|
575
|
+
declare function TeamToJSONTyped(value?: Team | null, ignoreDiscriminator?: boolean): any;
|
|
576
|
+
|
|
577
|
+
interface TeamStats {
|
|
578
|
+
batting: BattingStats;
|
|
579
|
+
pitching: PitchingStats;
|
|
580
|
+
fielding: FieldingStats;
|
|
581
|
+
}
|
|
582
|
+
declare function instanceOfTeamStats(value: object): value is TeamStats;
|
|
583
|
+
declare function TeamStatsFromJSON(json: any): TeamStats;
|
|
584
|
+
declare function TeamStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamStats;
|
|
585
|
+
declare function TeamStatsToJSON(json: any): TeamStats;
|
|
586
|
+
declare function TeamStatsToJSONTyped(value?: TeamStats | null, ignoreDiscriminator?: boolean): any;
|
|
587
|
+
|
|
588
|
+
interface BoxscoreTeam {
|
|
589
|
+
team: Team;
|
|
590
|
+
teamStats: TeamStats;
|
|
591
|
+
players: {
|
|
592
|
+
[key: string]: Player;
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
declare function instanceOfBoxscoreTeam(value: object): value is BoxscoreTeam;
|
|
596
|
+
declare function BoxscoreTeamFromJSON(json: any): BoxscoreTeam;
|
|
597
|
+
declare function BoxscoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeam;
|
|
598
|
+
declare function BoxscoreTeamToJSON(json: any): BoxscoreTeam;
|
|
599
|
+
declare function BoxscoreTeamToJSONTyped(value?: BoxscoreTeam | null, ignoreDiscriminator?: boolean): any;
|
|
600
|
+
|
|
601
|
+
interface BoxscoreTeams {
|
|
602
|
+
away: BoxscoreTeam;
|
|
603
|
+
home: BoxscoreTeam;
|
|
604
|
+
}
|
|
605
|
+
declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
|
|
606
|
+
declare function BoxscoreTeamsFromJSON(json: any): BoxscoreTeams;
|
|
607
|
+
declare function BoxscoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeams;
|
|
608
|
+
declare function BoxscoreTeamsToJSON(json: any): BoxscoreTeams;
|
|
609
|
+
declare function BoxscoreTeamsToJSONTyped(value?: BoxscoreTeams | null, ignoreDiscriminator?: boolean): any;
|
|
610
|
+
|
|
611
|
+
interface Boxscore {
|
|
612
|
+
teams: BoxscoreTeams;
|
|
613
|
+
officials: Array<GameOfficial>;
|
|
614
|
+
}
|
|
615
|
+
declare function instanceOfBoxscore(value: object): value is Boxscore;
|
|
616
|
+
declare function BoxscoreFromJSON(json: any): Boxscore;
|
|
617
|
+
declare function BoxscoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Boxscore;
|
|
618
|
+
declare function BoxscoreToJSON(json: any): Boxscore;
|
|
619
|
+
declare function BoxscoreToJSONTyped(value?: Boxscore | null, ignoreDiscriminator?: boolean): any;
|
|
330
620
|
|
|
331
621
|
interface DivisionStandings {
|
|
332
622
|
standingsType?: string;
|
|
@@ -334,12 +624,13 @@ interface DivisionStandings {
|
|
|
334
624
|
division: Division;
|
|
335
625
|
sport: Sport;
|
|
336
626
|
lastUpdated?: string;
|
|
337
|
-
teamRecords: Array<
|
|
627
|
+
teamRecords: Array<Record>;
|
|
338
628
|
}
|
|
339
629
|
declare function instanceOfDivisionStandings(value: object): value is DivisionStandings;
|
|
340
630
|
declare function DivisionStandingsFromJSON(json: any): DivisionStandings;
|
|
341
631
|
declare function DivisionStandingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandings;
|
|
342
|
-
declare function DivisionStandingsToJSON(
|
|
632
|
+
declare function DivisionStandingsToJSON(json: any): DivisionStandings;
|
|
633
|
+
declare function DivisionStandingsToJSONTyped(value?: DivisionStandings | null, ignoreDiscriminator?: boolean): any;
|
|
343
634
|
|
|
344
635
|
interface DivisionStandingsList {
|
|
345
636
|
records?: Array<DivisionStandings>;
|
|
@@ -347,22 +638,23 @@ interface DivisionStandingsList {
|
|
|
347
638
|
declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
|
|
348
639
|
declare function DivisionStandingsListFromJSON(json: any): DivisionStandingsList;
|
|
349
640
|
declare function DivisionStandingsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandingsList;
|
|
350
|
-
declare function DivisionStandingsListToJSON(
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
641
|
+
declare function DivisionStandingsListToJSON(json: any): DivisionStandingsList;
|
|
642
|
+
declare function DivisionStandingsListToJSONTyped(value?: DivisionStandingsList | null, ignoreDiscriminator?: boolean): any;
|
|
643
|
+
|
|
644
|
+
declare enum GameStatusCode {
|
|
645
|
+
Final = "F",
|
|
646
|
+
Postponed = "D",
|
|
647
|
+
Scheduled = "S",
|
|
648
|
+
InProgress = "I",
|
|
649
|
+
Pregame = "P",
|
|
650
|
+
GameOver = "O",
|
|
651
|
+
Canceled = "C"
|
|
652
|
+
}
|
|
362
653
|
declare function instanceOfGameStatusCode(value: any): boolean;
|
|
363
654
|
declare function GameStatusCodeFromJSON(json: any): GameStatusCode;
|
|
364
655
|
declare function GameStatusCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatusCode;
|
|
365
656
|
declare function GameStatusCodeToJSON(value?: GameStatusCode | null): any;
|
|
657
|
+
declare function GameStatusCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameStatusCode;
|
|
366
658
|
|
|
367
659
|
interface GameStatus {
|
|
368
660
|
abstractGameState?: string;
|
|
@@ -375,7 +667,8 @@ interface GameStatus {
|
|
|
375
667
|
declare function instanceOfGameStatus(value: object): value is GameStatus;
|
|
376
668
|
declare function GameStatusFromJSON(json: any): GameStatus;
|
|
377
669
|
declare function GameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatus;
|
|
378
|
-
declare function GameStatusToJSON(
|
|
670
|
+
declare function GameStatusToJSON(json: any): GameStatus;
|
|
671
|
+
declare function GameStatusToJSONTyped(value?: GameStatus | null, ignoreDiscriminator?: boolean): any;
|
|
379
672
|
|
|
380
673
|
interface GameTeam {
|
|
381
674
|
leagueRecord?: LeagueRecord;
|
|
@@ -388,7 +681,8 @@ interface GameTeam {
|
|
|
388
681
|
declare function instanceOfGameTeam(value: object): value is GameTeam;
|
|
389
682
|
declare function GameTeamFromJSON(json: any): GameTeam;
|
|
390
683
|
declare function GameTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeam;
|
|
391
|
-
declare function GameTeamToJSON(
|
|
684
|
+
declare function GameTeamToJSON(json: any): GameTeam;
|
|
685
|
+
declare function GameTeamToJSONTyped(value?: GameTeam | null, ignoreDiscriminator?: boolean): any;
|
|
392
686
|
|
|
393
687
|
interface GameTeams {
|
|
394
688
|
away: GameTeam;
|
|
@@ -397,22 +691,23 @@ interface GameTeams {
|
|
|
397
691
|
declare function instanceOfGameTeams(value: object): value is GameTeams;
|
|
398
692
|
declare function GameTeamsFromJSON(json: any): GameTeams;
|
|
399
693
|
declare function GameTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeams;
|
|
400
|
-
declare function GameTeamsToJSON(
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
694
|
+
declare function GameTeamsToJSON(json: any): GameTeams;
|
|
695
|
+
declare function GameTeamsToJSONTyped(value?: GameTeams | null, ignoreDiscriminator?: boolean): any;
|
|
696
|
+
|
|
697
|
+
declare enum GameType {
|
|
698
|
+
Exhibition = "E",
|
|
699
|
+
SpringTraining = "S",
|
|
700
|
+
Regular = "R",
|
|
701
|
+
WildCardSeries = "F",
|
|
702
|
+
DivisionSeries = "D",
|
|
703
|
+
LeagueChampionshipSeries = "L",
|
|
704
|
+
WorldSeries = "W"
|
|
705
|
+
}
|
|
412
706
|
declare function instanceOfGameType(value: any): boolean;
|
|
413
707
|
declare function GameTypeFromJSON(json: any): GameType;
|
|
414
708
|
declare function GameTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameType;
|
|
415
709
|
declare function GameTypeToJSON(value?: GameType | null): any;
|
|
710
|
+
declare function GameTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameType;
|
|
416
711
|
|
|
417
712
|
interface Game {
|
|
418
713
|
gamePk: number;
|
|
@@ -452,7 +747,8 @@ interface Game {
|
|
|
452
747
|
declare function instanceOfGame(value: object): value is Game;
|
|
453
748
|
declare function GameFromJSON(json: any): Game;
|
|
454
749
|
declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
|
|
455
|
-
declare function GameToJSON(
|
|
750
|
+
declare function GameToJSON(json: any): Game;
|
|
751
|
+
declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator?: boolean): any;
|
|
456
752
|
|
|
457
753
|
interface LinescoreTeam {
|
|
458
754
|
runs?: number;
|
|
@@ -463,7 +759,8 @@ interface LinescoreTeam {
|
|
|
463
759
|
declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
|
|
464
760
|
declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
|
|
465
761
|
declare function LinescoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeam;
|
|
466
|
-
declare function LinescoreTeamToJSON(
|
|
762
|
+
declare function LinescoreTeamToJSON(json: any): LinescoreTeam;
|
|
763
|
+
declare function LinescoreTeamToJSONTyped(value?: LinescoreTeam | null, ignoreDiscriminator?: boolean): any;
|
|
467
764
|
|
|
468
765
|
interface Inning {
|
|
469
766
|
num?: number;
|
|
@@ -474,7 +771,8 @@ interface Inning {
|
|
|
474
771
|
declare function instanceOfInning(value: object): value is Inning;
|
|
475
772
|
declare function InningFromJSON(json: any): Inning;
|
|
476
773
|
declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inning;
|
|
477
|
-
declare function InningToJSON(
|
|
774
|
+
declare function InningToJSON(json: any): Inning;
|
|
775
|
+
declare function InningToJSONTyped(value?: Inning | null, ignoreDiscriminator?: boolean): any;
|
|
478
776
|
|
|
479
777
|
interface LinescoreTeams {
|
|
480
778
|
away?: LinescoreTeam;
|
|
@@ -483,7 +781,8 @@ interface LinescoreTeams {
|
|
|
483
781
|
declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
|
|
484
782
|
declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
|
|
485
783
|
declare function LinescoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeams;
|
|
486
|
-
declare function LinescoreTeamsToJSON(
|
|
784
|
+
declare function LinescoreTeamsToJSON(json: any): LinescoreTeams;
|
|
785
|
+
declare function LinescoreTeamsToJSONTyped(value?: LinescoreTeams | null, ignoreDiscriminator?: boolean): any;
|
|
487
786
|
|
|
488
787
|
interface Linescore {
|
|
489
788
|
currentInning?: number;
|
|
@@ -501,7 +800,8 @@ interface Linescore {
|
|
|
501
800
|
declare function instanceOfLinescore(value: object): value is Linescore;
|
|
502
801
|
declare function LinescoreFromJSON(json: any): Linescore;
|
|
503
802
|
declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Linescore;
|
|
504
|
-
declare function LinescoreToJSON(
|
|
803
|
+
declare function LinescoreToJSON(json: any): Linescore;
|
|
804
|
+
declare function LinescoreToJSONTyped(value?: Linescore | null, ignoreDiscriminator?: boolean): any;
|
|
505
805
|
|
|
506
806
|
interface ScheduleDay {
|
|
507
807
|
date?: string;
|
|
@@ -514,7 +814,8 @@ interface ScheduleDay {
|
|
|
514
814
|
declare function instanceOfScheduleDay(value: object): value is ScheduleDay;
|
|
515
815
|
declare function ScheduleDayFromJSON(json: any): ScheduleDay;
|
|
516
816
|
declare function ScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleDay;
|
|
517
|
-
declare function ScheduleDayToJSON(
|
|
817
|
+
declare function ScheduleDayToJSON(json: any): ScheduleDay;
|
|
818
|
+
declare function ScheduleDayToJSONTyped(value?: ScheduleDay | null, ignoreDiscriminator?: boolean): any;
|
|
518
819
|
|
|
519
820
|
interface Schedule {
|
|
520
821
|
totalItems: number;
|
|
@@ -526,7 +827,8 @@ interface Schedule {
|
|
|
526
827
|
declare function instanceOfSchedule(value: object): value is Schedule;
|
|
527
828
|
declare function ScheduleFromJSON(json: any): Schedule;
|
|
528
829
|
declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
|
|
529
|
-
declare function ScheduleToJSON(
|
|
830
|
+
declare function ScheduleToJSON(json: any): Schedule;
|
|
831
|
+
declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
|
|
530
832
|
|
|
531
833
|
interface Season {
|
|
532
834
|
seasonId: string;
|
|
@@ -554,7 +856,8 @@ interface Season {
|
|
|
554
856
|
declare function instanceOfSeason(value: object): value is Season;
|
|
555
857
|
declare function SeasonFromJSON(json: any): Season;
|
|
556
858
|
declare function SeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Season;
|
|
557
|
-
declare function SeasonToJSON(
|
|
859
|
+
declare function SeasonToJSON(json: any): Season;
|
|
860
|
+
declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscriminator?: boolean): any;
|
|
558
861
|
|
|
559
862
|
interface Seasons {
|
|
560
863
|
seasons?: Array<Season>;
|
|
@@ -562,7 +865,8 @@ interface Seasons {
|
|
|
562
865
|
declare function instanceOfSeasons(value: object): value is Seasons;
|
|
563
866
|
declare function SeasonsFromJSON(json: any): Seasons;
|
|
564
867
|
declare function SeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seasons;
|
|
565
|
-
declare function SeasonsToJSON(
|
|
868
|
+
declare function SeasonsToJSON(json: any): Seasons;
|
|
869
|
+
declare function SeasonsToJSONTyped(value?: Seasons | null, ignoreDiscriminator?: boolean): any;
|
|
566
870
|
|
|
567
871
|
interface Teams {
|
|
568
872
|
teams?: Array<Team>;
|
|
@@ -570,13 +874,19 @@ interface Teams {
|
|
|
570
874
|
declare function instanceOfTeams(value: object): value is Teams;
|
|
571
875
|
declare function TeamsFromJSON(json: any): Teams;
|
|
572
876
|
declare function TeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Teams;
|
|
573
|
-
declare function TeamsToJSON(
|
|
877
|
+
declare function TeamsToJSON(json: any): Teams;
|
|
878
|
+
declare function TeamsToJSONTyped(value?: Teams | null, ignoreDiscriminator?: boolean): any;
|
|
574
879
|
|
|
575
880
|
interface GetAllSeasonsRequest {
|
|
576
881
|
sportId: number;
|
|
577
882
|
}
|
|
883
|
+
interface GetBoxscoreRequest {
|
|
884
|
+
gamePk: number;
|
|
885
|
+
fields?: Array<string>;
|
|
886
|
+
}
|
|
578
887
|
interface GetLinescoreRequest {
|
|
579
888
|
gamePk: number;
|
|
889
|
+
fields?: Array<string>;
|
|
580
890
|
}
|
|
581
891
|
interface GetScheduleRequest {
|
|
582
892
|
sportId: number;
|
|
@@ -606,6 +916,8 @@ interface GetTeamsRequest {
|
|
|
606
916
|
declare class MlbApi extends BaseAPI {
|
|
607
917
|
getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
|
|
608
918
|
getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
|
|
919
|
+
getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Boxscore>>;
|
|
920
|
+
getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Boxscore>;
|
|
609
921
|
getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Linescore>>;
|
|
610
922
|
getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Linescore>;
|
|
611
923
|
getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Schedule>>;
|
|
@@ -618,4 +930,4 @@ declare class MlbApi extends BaseAPI {
|
|
|
618
930
|
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
|
|
619
931
|
}
|
|
620
932
|
|
|
621
|
-
export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsToJSON, DivisionToJSON, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type Game, GameFromJSON, GameFromJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameToJSON, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, type GetAllSeasonsRequest, 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, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueToJSON, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreToJSON, type Middleware, MlbApi, type ModelPropertyNaming, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, type Team, TeamFromJSON, TeamFromJSONTyped, type
|
|
933
|
+
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 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 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 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, instanceOfFieldingStats, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, 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 };
|