@bp1222/stats-api 0.2.3 → 0.2.5
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 +183 -100
- package/dist/index.d.ts +183 -100
- package/dist/index.js +546 -176
- package/dist/index.mjs +488 -168
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -152,6 +152,27 @@ declare class TextApiResponse {
|
|
|
152
152
|
value(): Promise<string>;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
interface Official {
|
|
156
|
+
id?: number;
|
|
157
|
+
fullName?: string;
|
|
158
|
+
link?: string;
|
|
159
|
+
}
|
|
160
|
+
declare function instanceOfOfficial(value: object): value is Official;
|
|
161
|
+
declare function OfficialFromJSON(json: any): Official;
|
|
162
|
+
declare function OfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): Official;
|
|
163
|
+
declare function OfficialToJSON(json: any): Official;
|
|
164
|
+
declare function OfficialToJSONTyped(value?: Official | null, ignoreDiscriminator?: boolean): any;
|
|
165
|
+
|
|
166
|
+
interface GameOfficial {
|
|
167
|
+
official?: Official;
|
|
168
|
+
officialType?: string;
|
|
169
|
+
}
|
|
170
|
+
declare function instanceOfGameOfficial(value: object): value is GameOfficial;
|
|
171
|
+
declare function GameOfficialFromJSON(json: any): GameOfficial;
|
|
172
|
+
declare function GameOfficialFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameOfficial;
|
|
173
|
+
declare function GameOfficialToJSON(json: any): GameOfficial;
|
|
174
|
+
declare function GameOfficialToJSONTyped(value?: GameOfficial | null, ignoreDiscriminator?: boolean): any;
|
|
175
|
+
|
|
155
176
|
interface LeagueDates {
|
|
156
177
|
seasonId?: string;
|
|
157
178
|
preSeasonStartDate?: string;
|
|
@@ -167,7 +188,8 @@ interface LeagueDates {
|
|
|
167
188
|
declare function instanceOfLeagueDates(value: object): value is LeagueDates;
|
|
168
189
|
declare function LeagueDatesFromJSON(json: any): LeagueDates;
|
|
169
190
|
declare function LeagueDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueDates;
|
|
170
|
-
declare function LeagueDatesToJSON(
|
|
191
|
+
declare function LeagueDatesToJSON(json: any): LeagueDates;
|
|
192
|
+
declare function LeagueDatesToJSONTyped(value?: LeagueDates | null, ignoreDiscriminator?: boolean): any;
|
|
171
193
|
|
|
172
194
|
interface League {
|
|
173
195
|
id: number;
|
|
@@ -190,7 +212,8 @@ interface League {
|
|
|
190
212
|
declare function instanceOfLeague(value: object): value is League;
|
|
191
213
|
declare function LeagueFromJSON(json: any): League;
|
|
192
214
|
declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): League;
|
|
193
|
-
declare function LeagueToJSON(
|
|
215
|
+
declare function LeagueToJSON(json: any): League;
|
|
216
|
+
declare function LeagueToJSONTyped(value?: League | null, ignoreDiscriminator?: boolean): any;
|
|
194
217
|
|
|
195
218
|
interface Sport {
|
|
196
219
|
id: number;
|
|
@@ -204,7 +227,21 @@ interface Sport {
|
|
|
204
227
|
declare function instanceOfSport(value: object): value is Sport;
|
|
205
228
|
declare function SportFromJSON(json: any): Sport;
|
|
206
229
|
declare function SportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sport;
|
|
207
|
-
declare function SportToJSON(
|
|
230
|
+
declare function SportToJSON(json: any): Sport;
|
|
231
|
+
declare function SportToJSONTyped(value?: Sport | null, ignoreDiscriminator?: boolean): any;
|
|
232
|
+
|
|
233
|
+
interface Venue {
|
|
234
|
+
id: number;
|
|
235
|
+
name: string;
|
|
236
|
+
link?: string;
|
|
237
|
+
active?: boolean;
|
|
238
|
+
season?: string;
|
|
239
|
+
}
|
|
240
|
+
declare function instanceOfVenue(value: object): value is Venue;
|
|
241
|
+
declare function VenueFromJSON(json: any): Venue;
|
|
242
|
+
declare function VenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): Venue;
|
|
243
|
+
declare function VenueToJSON(json: any): Venue;
|
|
244
|
+
declare function VenueToJSONTyped(value?: Venue | null, ignoreDiscriminator?: boolean): any;
|
|
208
245
|
|
|
209
246
|
interface Division {
|
|
210
247
|
id: number;
|
|
@@ -223,60 +260,21 @@ interface Division {
|
|
|
223
260
|
declare function instanceOfDivision(value: object): value is Division;
|
|
224
261
|
declare function DivisionFromJSON(json: any): Division;
|
|
225
262
|
declare function DivisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Division;
|
|
226
|
-
declare function DivisionToJSON(
|
|
263
|
+
declare function DivisionToJSON(json: any): Division;
|
|
264
|
+
declare function DivisionToJSONTyped(value?: Division | null, ignoreDiscriminator?: boolean): any;
|
|
227
265
|
|
|
228
266
|
interface Streak {
|
|
229
267
|
streakType?: StreakStreakTypeEnum;
|
|
230
268
|
}
|
|
231
|
-
declare
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
type StreakStreakTypeEnum = typeof StreakStreakTypeEnum[keyof typeof StreakStreakTypeEnum];
|
|
269
|
+
declare enum StreakStreakTypeEnum {
|
|
270
|
+
Losing = "losses",
|
|
271
|
+
Winning = "wins"
|
|
272
|
+
}
|
|
236
273
|
declare function instanceOfStreak(value: object): value is Streak;
|
|
237
274
|
declare function StreakFromJSON(json: any): Streak;
|
|
238
275
|
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;
|
|
276
|
+
declare function StreakToJSON(json: any): Streak;
|
|
277
|
+
declare function StreakToJSONTyped(value?: Streak | null, ignoreDiscriminator?: boolean): any;
|
|
280
278
|
|
|
281
279
|
interface LeagueRecord {
|
|
282
280
|
wins: number;
|
|
@@ -287,9 +285,10 @@ interface LeagueRecord {
|
|
|
287
285
|
declare function instanceOfLeagueRecord(value: object): value is LeagueRecord;
|
|
288
286
|
declare function LeagueRecordFromJSON(json: any): LeagueRecord;
|
|
289
287
|
declare function LeagueRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueRecord;
|
|
290
|
-
declare function LeagueRecordToJSON(
|
|
288
|
+
declare function LeagueRecordToJSON(json: any): LeagueRecord;
|
|
289
|
+
declare function LeagueRecordToJSONTyped(value?: LeagueRecord | null, ignoreDiscriminator?: boolean): any;
|
|
291
290
|
|
|
292
|
-
interface
|
|
291
|
+
interface Record {
|
|
293
292
|
team: Team;
|
|
294
293
|
season: string;
|
|
295
294
|
streak: Streak;
|
|
@@ -323,10 +322,61 @@ interface TeamRecord {
|
|
|
323
322
|
runDifferential?: number;
|
|
324
323
|
winningPercentage?: string;
|
|
325
324
|
}
|
|
326
|
-
declare function
|
|
327
|
-
declare function
|
|
328
|
-
declare function
|
|
329
|
-
declare function
|
|
325
|
+
declare function instanceOfRecord(value: object): value is Record;
|
|
326
|
+
declare function RecordFromJSON(json: any): Record;
|
|
327
|
+
declare function RecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Record;
|
|
328
|
+
declare function RecordToJSON(json: any): Record;
|
|
329
|
+
declare function RecordToJSONTyped(value?: Record | null, ignoreDiscriminator?: boolean): any;
|
|
330
|
+
|
|
331
|
+
interface Team {
|
|
332
|
+
id: number;
|
|
333
|
+
name: string;
|
|
334
|
+
link?: string;
|
|
335
|
+
allStarStatus?: string;
|
|
336
|
+
season?: number;
|
|
337
|
+
venue?: Venue;
|
|
338
|
+
springVenue?: Venue;
|
|
339
|
+
teamCode?: string;
|
|
340
|
+
fileCode?: string;
|
|
341
|
+
abbreviation?: string;
|
|
342
|
+
teamName?: string;
|
|
343
|
+
locationName?: string;
|
|
344
|
+
firstYearOfPlay?: string;
|
|
345
|
+
league?: League;
|
|
346
|
+
springLeague?: League;
|
|
347
|
+
division?: Division;
|
|
348
|
+
sport?: Sport;
|
|
349
|
+
record?: Record;
|
|
350
|
+
shortName?: string;
|
|
351
|
+
franchiseName?: string;
|
|
352
|
+
clubName?: string;
|
|
353
|
+
active?: boolean;
|
|
354
|
+
}
|
|
355
|
+
declare function instanceOfTeam(value: object): value is Team;
|
|
356
|
+
declare function TeamFromJSON(json: any): Team;
|
|
357
|
+
declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team;
|
|
358
|
+
declare function TeamToJSON(json: any): Team;
|
|
359
|
+
declare function TeamToJSONTyped(value?: Team | null, ignoreDiscriminator?: boolean): any;
|
|
360
|
+
|
|
361
|
+
interface BoxscoreTeams {
|
|
362
|
+
away?: Team;
|
|
363
|
+
home?: Team;
|
|
364
|
+
}
|
|
365
|
+
declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
|
|
366
|
+
declare function BoxscoreTeamsFromJSON(json: any): BoxscoreTeams;
|
|
367
|
+
declare function BoxscoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeams;
|
|
368
|
+
declare function BoxscoreTeamsToJSON(json: any): BoxscoreTeams;
|
|
369
|
+
declare function BoxscoreTeamsToJSONTyped(value?: BoxscoreTeams | null, ignoreDiscriminator?: boolean): any;
|
|
370
|
+
|
|
371
|
+
interface Boxscore {
|
|
372
|
+
teams?: BoxscoreTeams;
|
|
373
|
+
officials?: Array<GameOfficial>;
|
|
374
|
+
}
|
|
375
|
+
declare function instanceOfBoxscore(value: object): value is Boxscore;
|
|
376
|
+
declare function BoxscoreFromJSON(json: any): Boxscore;
|
|
377
|
+
declare function BoxscoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Boxscore;
|
|
378
|
+
declare function BoxscoreToJSON(json: any): Boxscore;
|
|
379
|
+
declare function BoxscoreToJSONTyped(value?: Boxscore | null, ignoreDiscriminator?: boolean): any;
|
|
330
380
|
|
|
331
381
|
interface DivisionStandings {
|
|
332
382
|
standingsType?: string;
|
|
@@ -334,12 +384,13 @@ interface DivisionStandings {
|
|
|
334
384
|
division: Division;
|
|
335
385
|
sport: Sport;
|
|
336
386
|
lastUpdated?: string;
|
|
337
|
-
teamRecords: Array<
|
|
387
|
+
teamRecords: Array<Record>;
|
|
338
388
|
}
|
|
339
389
|
declare function instanceOfDivisionStandings(value: object): value is DivisionStandings;
|
|
340
390
|
declare function DivisionStandingsFromJSON(json: any): DivisionStandings;
|
|
341
391
|
declare function DivisionStandingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandings;
|
|
342
|
-
declare function DivisionStandingsToJSON(
|
|
392
|
+
declare function DivisionStandingsToJSON(json: any): DivisionStandings;
|
|
393
|
+
declare function DivisionStandingsToJSONTyped(value?: DivisionStandings | null, ignoreDiscriminator?: boolean): any;
|
|
343
394
|
|
|
344
395
|
interface DivisionStandingsList {
|
|
345
396
|
records?: Array<DivisionStandings>;
|
|
@@ -347,22 +398,23 @@ interface DivisionStandingsList {
|
|
|
347
398
|
declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
|
|
348
399
|
declare function DivisionStandingsListFromJSON(json: any): DivisionStandingsList;
|
|
349
400
|
declare function DivisionStandingsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandingsList;
|
|
350
|
-
declare function DivisionStandingsListToJSON(
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
401
|
+
declare function DivisionStandingsListToJSON(json: any): DivisionStandingsList;
|
|
402
|
+
declare function DivisionStandingsListToJSONTyped(value?: DivisionStandingsList | null, ignoreDiscriminator?: boolean): any;
|
|
403
|
+
|
|
404
|
+
declare enum GameStatusCode {
|
|
405
|
+
Final = "F",
|
|
406
|
+
Postponed = "D",
|
|
407
|
+
Scheduled = "S",
|
|
408
|
+
InProgress = "I",
|
|
409
|
+
Pregame = "P",
|
|
410
|
+
GameOver = "O",
|
|
411
|
+
Canceled = "C"
|
|
412
|
+
}
|
|
362
413
|
declare function instanceOfGameStatusCode(value: any): boolean;
|
|
363
414
|
declare function GameStatusCodeFromJSON(json: any): GameStatusCode;
|
|
364
415
|
declare function GameStatusCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatusCode;
|
|
365
416
|
declare function GameStatusCodeToJSON(value?: GameStatusCode | null): any;
|
|
417
|
+
declare function GameStatusCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameStatusCode;
|
|
366
418
|
|
|
367
419
|
interface GameStatus {
|
|
368
420
|
abstractGameState?: string;
|
|
@@ -375,7 +427,8 @@ interface GameStatus {
|
|
|
375
427
|
declare function instanceOfGameStatus(value: object): value is GameStatus;
|
|
376
428
|
declare function GameStatusFromJSON(json: any): GameStatus;
|
|
377
429
|
declare function GameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatus;
|
|
378
|
-
declare function GameStatusToJSON(
|
|
430
|
+
declare function GameStatusToJSON(json: any): GameStatus;
|
|
431
|
+
declare function GameStatusToJSONTyped(value?: GameStatus | null, ignoreDiscriminator?: boolean): any;
|
|
379
432
|
|
|
380
433
|
interface GameTeam {
|
|
381
434
|
leagueRecord?: LeagueRecord;
|
|
@@ -388,7 +441,8 @@ interface GameTeam {
|
|
|
388
441
|
declare function instanceOfGameTeam(value: object): value is GameTeam;
|
|
389
442
|
declare function GameTeamFromJSON(json: any): GameTeam;
|
|
390
443
|
declare function GameTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeam;
|
|
391
|
-
declare function GameTeamToJSON(
|
|
444
|
+
declare function GameTeamToJSON(json: any): GameTeam;
|
|
445
|
+
declare function GameTeamToJSONTyped(value?: GameTeam | null, ignoreDiscriminator?: boolean): any;
|
|
392
446
|
|
|
393
447
|
interface GameTeams {
|
|
394
448
|
away: GameTeam;
|
|
@@ -397,22 +451,23 @@ interface GameTeams {
|
|
|
397
451
|
declare function instanceOfGameTeams(value: object): value is GameTeams;
|
|
398
452
|
declare function GameTeamsFromJSON(json: any): GameTeams;
|
|
399
453
|
declare function GameTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeams;
|
|
400
|
-
declare function GameTeamsToJSON(
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
454
|
+
declare function GameTeamsToJSON(json: any): GameTeams;
|
|
455
|
+
declare function GameTeamsToJSONTyped(value?: GameTeams | null, ignoreDiscriminator?: boolean): any;
|
|
456
|
+
|
|
457
|
+
declare enum GameType {
|
|
458
|
+
Exhibition = "E",
|
|
459
|
+
SpringTraining = "S",
|
|
460
|
+
Regular = "R",
|
|
461
|
+
WildCardSeries = "F",
|
|
462
|
+
DivisionSeries = "D",
|
|
463
|
+
LeagueChampionshipSeries = "L",
|
|
464
|
+
WorldSeries = "W"
|
|
465
|
+
}
|
|
412
466
|
declare function instanceOfGameType(value: any): boolean;
|
|
413
467
|
declare function GameTypeFromJSON(json: any): GameType;
|
|
414
468
|
declare function GameTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameType;
|
|
415
469
|
declare function GameTypeToJSON(value?: GameType | null): any;
|
|
470
|
+
declare function GameTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): GameType;
|
|
416
471
|
|
|
417
472
|
interface Game {
|
|
418
473
|
gamePk: number;
|
|
@@ -452,28 +507,42 @@ interface Game {
|
|
|
452
507
|
declare function instanceOfGame(value: object): value is Game;
|
|
453
508
|
declare function GameFromJSON(json: any): Game;
|
|
454
509
|
declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
|
|
455
|
-
declare function GameToJSON(
|
|
510
|
+
declare function GameToJSON(json: any): Game;
|
|
511
|
+
declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator?: boolean): any;
|
|
456
512
|
|
|
457
|
-
interface
|
|
513
|
+
interface LinescoreTeam {
|
|
514
|
+
runs?: number;
|
|
458
515
|
hits?: number;
|
|
459
516
|
errors?: number;
|
|
460
517
|
leftOnBase?: number;
|
|
461
518
|
}
|
|
462
|
-
declare function
|
|
463
|
-
declare function
|
|
464
|
-
declare function
|
|
465
|
-
declare function
|
|
519
|
+
declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
|
|
520
|
+
declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
|
|
521
|
+
declare function LinescoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeam;
|
|
522
|
+
declare function LinescoreTeamToJSON(json: any): LinescoreTeam;
|
|
523
|
+
declare function LinescoreTeamToJSONTyped(value?: LinescoreTeam | null, ignoreDiscriminator?: boolean): any;
|
|
466
524
|
|
|
467
525
|
interface Inning {
|
|
468
526
|
num?: number;
|
|
469
527
|
ordinalNum?: string;
|
|
470
|
-
home?:
|
|
471
|
-
away?:
|
|
528
|
+
home?: LinescoreTeam;
|
|
529
|
+
away?: LinescoreTeam;
|
|
472
530
|
}
|
|
473
531
|
declare function instanceOfInning(value: object): value is Inning;
|
|
474
532
|
declare function InningFromJSON(json: any): Inning;
|
|
475
533
|
declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inning;
|
|
476
|
-
declare function InningToJSON(
|
|
534
|
+
declare function InningToJSON(json: any): Inning;
|
|
535
|
+
declare function InningToJSONTyped(value?: Inning | null, ignoreDiscriminator?: boolean): any;
|
|
536
|
+
|
|
537
|
+
interface LinescoreTeams {
|
|
538
|
+
away?: LinescoreTeam;
|
|
539
|
+
home?: LinescoreTeam;
|
|
540
|
+
}
|
|
541
|
+
declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
|
|
542
|
+
declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
|
|
543
|
+
declare function LinescoreTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinescoreTeams;
|
|
544
|
+
declare function LinescoreTeamsToJSON(json: any): LinescoreTeams;
|
|
545
|
+
declare function LinescoreTeamsToJSONTyped(value?: LinescoreTeams | null, ignoreDiscriminator?: boolean): any;
|
|
477
546
|
|
|
478
547
|
interface Linescore {
|
|
479
548
|
currentInning?: number;
|
|
@@ -483,6 +552,7 @@ interface Linescore {
|
|
|
483
552
|
isTopInning?: boolean;
|
|
484
553
|
scheduledInnings?: number;
|
|
485
554
|
innings?: Array<Inning>;
|
|
555
|
+
teams?: LinescoreTeams;
|
|
486
556
|
balls?: number;
|
|
487
557
|
strikes?: number;
|
|
488
558
|
outs?: number;
|
|
@@ -490,7 +560,8 @@ interface Linescore {
|
|
|
490
560
|
declare function instanceOfLinescore(value: object): value is Linescore;
|
|
491
561
|
declare function LinescoreFromJSON(json: any): Linescore;
|
|
492
562
|
declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Linescore;
|
|
493
|
-
declare function LinescoreToJSON(
|
|
563
|
+
declare function LinescoreToJSON(json: any): Linescore;
|
|
564
|
+
declare function LinescoreToJSONTyped(value?: Linescore | null, ignoreDiscriminator?: boolean): any;
|
|
494
565
|
|
|
495
566
|
interface ScheduleDay {
|
|
496
567
|
date?: string;
|
|
@@ -503,7 +574,8 @@ interface ScheduleDay {
|
|
|
503
574
|
declare function instanceOfScheduleDay(value: object): value is ScheduleDay;
|
|
504
575
|
declare function ScheduleDayFromJSON(json: any): ScheduleDay;
|
|
505
576
|
declare function ScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleDay;
|
|
506
|
-
declare function ScheduleDayToJSON(
|
|
577
|
+
declare function ScheduleDayToJSON(json: any): ScheduleDay;
|
|
578
|
+
declare function ScheduleDayToJSONTyped(value?: ScheduleDay | null, ignoreDiscriminator?: boolean): any;
|
|
507
579
|
|
|
508
580
|
interface Schedule {
|
|
509
581
|
totalItems: number;
|
|
@@ -515,7 +587,8 @@ interface Schedule {
|
|
|
515
587
|
declare function instanceOfSchedule(value: object): value is Schedule;
|
|
516
588
|
declare function ScheduleFromJSON(json: any): Schedule;
|
|
517
589
|
declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
|
|
518
|
-
declare function ScheduleToJSON(
|
|
590
|
+
declare function ScheduleToJSON(json: any): Schedule;
|
|
591
|
+
declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscriminator?: boolean): any;
|
|
519
592
|
|
|
520
593
|
interface Season {
|
|
521
594
|
seasonId: string;
|
|
@@ -543,7 +616,8 @@ interface Season {
|
|
|
543
616
|
declare function instanceOfSeason(value: object): value is Season;
|
|
544
617
|
declare function SeasonFromJSON(json: any): Season;
|
|
545
618
|
declare function SeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Season;
|
|
546
|
-
declare function SeasonToJSON(
|
|
619
|
+
declare function SeasonToJSON(json: any): Season;
|
|
620
|
+
declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscriminator?: boolean): any;
|
|
547
621
|
|
|
548
622
|
interface Seasons {
|
|
549
623
|
seasons?: Array<Season>;
|
|
@@ -551,7 +625,8 @@ interface Seasons {
|
|
|
551
625
|
declare function instanceOfSeasons(value: object): value is Seasons;
|
|
552
626
|
declare function SeasonsFromJSON(json: any): Seasons;
|
|
553
627
|
declare function SeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seasons;
|
|
554
|
-
declare function SeasonsToJSON(
|
|
628
|
+
declare function SeasonsToJSON(json: any): Seasons;
|
|
629
|
+
declare function SeasonsToJSONTyped(value?: Seasons | null, ignoreDiscriminator?: boolean): any;
|
|
555
630
|
|
|
556
631
|
interface Teams {
|
|
557
632
|
teams?: Array<Team>;
|
|
@@ -559,13 +634,19 @@ interface Teams {
|
|
|
559
634
|
declare function instanceOfTeams(value: object): value is Teams;
|
|
560
635
|
declare function TeamsFromJSON(json: any): Teams;
|
|
561
636
|
declare function TeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Teams;
|
|
562
|
-
declare function TeamsToJSON(
|
|
637
|
+
declare function TeamsToJSON(json: any): Teams;
|
|
638
|
+
declare function TeamsToJSONTyped(value?: Teams | null, ignoreDiscriminator?: boolean): any;
|
|
563
639
|
|
|
564
640
|
interface GetAllSeasonsRequest {
|
|
565
641
|
sportId: number;
|
|
566
642
|
}
|
|
643
|
+
interface GetBoxscoreRequest {
|
|
644
|
+
gamePk: number;
|
|
645
|
+
fields?: Array<string>;
|
|
646
|
+
}
|
|
567
647
|
interface GetLinescoreRequest {
|
|
568
648
|
gamePk: number;
|
|
649
|
+
fields?: Array<string>;
|
|
569
650
|
}
|
|
570
651
|
interface GetScheduleRequest {
|
|
571
652
|
sportId: number;
|
|
@@ -595,6 +676,8 @@ interface GetTeamsRequest {
|
|
|
595
676
|
declare class MlbApi extends BaseAPI {
|
|
596
677
|
getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
|
|
597
678
|
getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
|
|
679
|
+
getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Boxscore>>;
|
|
680
|
+
getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Boxscore>;
|
|
598
681
|
getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Linescore>>;
|
|
599
682
|
getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Linescore>;
|
|
600
683
|
getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Schedule>>;
|
|
@@ -607,4 +690,4 @@ declare class MlbApi extends BaseAPI {
|
|
|
607
690
|
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
|
|
608
691
|
}
|
|
609
692
|
|
|
610
|
-
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,
|
|
693
|
+
export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, 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 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 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, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, instanceOfBoxscore, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeams, instanceOfVenue, mapValues, querystring };
|