@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.mjs
CHANGED
|
@@ -279,6 +279,10 @@ function querystringSingleKey(key, value, keyPrefix = "") {
|
|
|
279
279
|
}
|
|
280
280
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
281
281
|
}
|
|
282
|
+
function exists(json, key) {
|
|
283
|
+
const value = json[key];
|
|
284
|
+
return value !== null && value !== void 0;
|
|
285
|
+
}
|
|
282
286
|
function mapValues(data, fn) {
|
|
283
287
|
return Object.keys(data).reduce(
|
|
284
288
|
(acc, key) => __spreadProps(__spreadValues({}, acc), { [key]: fn(data[key]) }),
|
|
@@ -335,6 +339,609 @@ var TextApiResponse = class {
|
|
|
335
339
|
}
|
|
336
340
|
};
|
|
337
341
|
|
|
342
|
+
// src/models/BattingStats.ts
|
|
343
|
+
function instanceOfBattingStats(value) {
|
|
344
|
+
return true;
|
|
345
|
+
}
|
|
346
|
+
function BattingStatsFromJSON(json) {
|
|
347
|
+
return BattingStatsFromJSONTyped(json, false);
|
|
348
|
+
}
|
|
349
|
+
function BattingStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
350
|
+
if (json == null) {
|
|
351
|
+
return json;
|
|
352
|
+
}
|
|
353
|
+
return {
|
|
354
|
+
"flyOuts": json["flyOuts"] == null ? void 0 : json["flyOuts"],
|
|
355
|
+
"groundOuts": json["groundOuts"] == null ? void 0 : json["groundOuts"],
|
|
356
|
+
"airOuts": json["airOuts"] == null ? void 0 : json["airOuts"],
|
|
357
|
+
"runs": json["runs"] == null ? void 0 : json["runs"],
|
|
358
|
+
"doubles": json["doubles"] == null ? void 0 : json["doubles"],
|
|
359
|
+
"triples": json["triples"] == null ? void 0 : json["triples"],
|
|
360
|
+
"homeRuns": json["homeRuns"] == null ? void 0 : json["homeRuns"],
|
|
361
|
+
"strikeOuts": json["strikeOuts"] == null ? void 0 : json["strikeOuts"],
|
|
362
|
+
"baseOnBalls": json["baseOnBalls"] == null ? void 0 : json["baseOnBalls"],
|
|
363
|
+
"intentionalWalks": json["intentionalWalks"] == null ? void 0 : json["intentionalWalks"],
|
|
364
|
+
"hits": json["hits"] == null ? void 0 : json["hits"],
|
|
365
|
+
"hitByPitch": json["hitByPitch"] == null ? void 0 : json["hitByPitch"],
|
|
366
|
+
"avg": json["avg"] == null ? void 0 : json["avg"],
|
|
367
|
+
"atBats": json["atBats"] == null ? void 0 : json["atBats"],
|
|
368
|
+
"obp": json["obp"] == null ? void 0 : json["obp"],
|
|
369
|
+
"slg": json["slg"] == null ? void 0 : json["slg"],
|
|
370
|
+
"ops": json["ops"] == null ? void 0 : json["ops"],
|
|
371
|
+
"caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
|
|
372
|
+
"stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
|
|
373
|
+
"stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
|
|
374
|
+
"groundIntoDoublePlay": json["groundIntoDoublePlay"] == null ? void 0 : json["groundIntoDoublePlay"],
|
|
375
|
+
"groundIntoTriplePlay": json["groundIntoTriplePlay"] == null ? void 0 : json["groundIntoTriplePlay"],
|
|
376
|
+
"plateAppearances": json["plateAppearances"] == null ? void 0 : json["plateAppearances"],
|
|
377
|
+
"totalBases": json["totalBases"] == null ? void 0 : json["totalBases"],
|
|
378
|
+
"rbi": json["rbi"] == null ? void 0 : json["rbi"],
|
|
379
|
+
"leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"],
|
|
380
|
+
"sacBunts": json["sacBunts"] == null ? void 0 : json["sacBunts"],
|
|
381
|
+
"sacFlies": json["sacFlies"] == null ? void 0 : json["sacFlies"],
|
|
382
|
+
"catchersInterference": json["catchersInterference"] == null ? void 0 : json["catchersInterference"],
|
|
383
|
+
"pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"],
|
|
384
|
+
"atBatsPerHomeRun": json["atBatsPerHomeRun"] == null ? void 0 : json["atBatsPerHomeRun"],
|
|
385
|
+
"popOuts": json["popOuts"] == null ? void 0 : json["popOuts"],
|
|
386
|
+
"lineOuts": json["lineOuts"] == null ? void 0 : json["lineOuts"]
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
function BattingStatsToJSON(json) {
|
|
390
|
+
return BattingStatsToJSONTyped(json, false);
|
|
391
|
+
}
|
|
392
|
+
function BattingStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
393
|
+
if (value == null) {
|
|
394
|
+
return value;
|
|
395
|
+
}
|
|
396
|
+
return {
|
|
397
|
+
"flyOuts": value["flyOuts"],
|
|
398
|
+
"groundOuts": value["groundOuts"],
|
|
399
|
+
"airOuts": value["airOuts"],
|
|
400
|
+
"runs": value["runs"],
|
|
401
|
+
"doubles": value["doubles"],
|
|
402
|
+
"triples": value["triples"],
|
|
403
|
+
"homeRuns": value["homeRuns"],
|
|
404
|
+
"strikeOuts": value["strikeOuts"],
|
|
405
|
+
"baseOnBalls": value["baseOnBalls"],
|
|
406
|
+
"intentionalWalks": value["intentionalWalks"],
|
|
407
|
+
"hits": value["hits"],
|
|
408
|
+
"hitByPitch": value["hitByPitch"],
|
|
409
|
+
"avg": value["avg"],
|
|
410
|
+
"atBats": value["atBats"],
|
|
411
|
+
"obp": value["obp"],
|
|
412
|
+
"slg": value["slg"],
|
|
413
|
+
"ops": value["ops"],
|
|
414
|
+
"caughtStealing": value["caughtStealing"],
|
|
415
|
+
"stolenBases": value["stolenBases"],
|
|
416
|
+
"stolenBasePercentage": value["stolenBasePercentage"],
|
|
417
|
+
"groundIntoDoublePlay": value["groundIntoDoublePlay"],
|
|
418
|
+
"groundIntoTriplePlay": value["groundIntoTriplePlay"],
|
|
419
|
+
"plateAppearances": value["plateAppearances"],
|
|
420
|
+
"totalBases": value["totalBases"],
|
|
421
|
+
"rbi": value["rbi"],
|
|
422
|
+
"leftOnBase": value["leftOnBase"],
|
|
423
|
+
"sacBunts": value["sacBunts"],
|
|
424
|
+
"sacFlies": value["sacFlies"],
|
|
425
|
+
"catchersInterference": value["catchersInterference"],
|
|
426
|
+
"pickoffs": value["pickoffs"],
|
|
427
|
+
"atBatsPerHomeRun": value["atBatsPerHomeRun"],
|
|
428
|
+
"popOuts": value["popOuts"],
|
|
429
|
+
"lineOuts": value["lineOuts"]
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// src/models/Official.ts
|
|
434
|
+
function instanceOfOfficial(value) {
|
|
435
|
+
return true;
|
|
436
|
+
}
|
|
437
|
+
function OfficialFromJSON(json) {
|
|
438
|
+
return OfficialFromJSONTyped(json, false);
|
|
439
|
+
}
|
|
440
|
+
function OfficialFromJSONTyped(json, ignoreDiscriminator) {
|
|
441
|
+
if (json == null) {
|
|
442
|
+
return json;
|
|
443
|
+
}
|
|
444
|
+
return {
|
|
445
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
446
|
+
"fullName": json["fullName"] == null ? void 0 : json["fullName"],
|
|
447
|
+
"link": json["link"] == null ? void 0 : json["link"]
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
function OfficialToJSON(json) {
|
|
451
|
+
return OfficialToJSONTyped(json, false);
|
|
452
|
+
}
|
|
453
|
+
function OfficialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
454
|
+
if (value == null) {
|
|
455
|
+
return value;
|
|
456
|
+
}
|
|
457
|
+
return {
|
|
458
|
+
"id": value["id"],
|
|
459
|
+
"fullName": value["fullName"],
|
|
460
|
+
"link": value["link"]
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
// src/models/GameOfficial.ts
|
|
465
|
+
function instanceOfGameOfficial(value) {
|
|
466
|
+
return true;
|
|
467
|
+
}
|
|
468
|
+
function GameOfficialFromJSON(json) {
|
|
469
|
+
return GameOfficialFromJSONTyped(json, false);
|
|
470
|
+
}
|
|
471
|
+
function GameOfficialFromJSONTyped(json, ignoreDiscriminator) {
|
|
472
|
+
if (json == null) {
|
|
473
|
+
return json;
|
|
474
|
+
}
|
|
475
|
+
return {
|
|
476
|
+
"official": json["official"] == null ? void 0 : OfficialFromJSON(json["official"]),
|
|
477
|
+
"officialType": json["officialType"] == null ? void 0 : json["officialType"]
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
function GameOfficialToJSON(json) {
|
|
481
|
+
return GameOfficialToJSONTyped(json, false);
|
|
482
|
+
}
|
|
483
|
+
function GameOfficialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
484
|
+
if (value == null) {
|
|
485
|
+
return value;
|
|
486
|
+
}
|
|
487
|
+
return {
|
|
488
|
+
"official": OfficialToJSON(value["official"]),
|
|
489
|
+
"officialType": value["officialType"]
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// src/models/FieldingStats.ts
|
|
494
|
+
function instanceOfFieldingStats(value) {
|
|
495
|
+
return true;
|
|
496
|
+
}
|
|
497
|
+
function FieldingStatsFromJSON(json) {
|
|
498
|
+
return FieldingStatsFromJSONTyped(json, false);
|
|
499
|
+
}
|
|
500
|
+
function FieldingStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
501
|
+
if (json == null) {
|
|
502
|
+
return json;
|
|
503
|
+
}
|
|
504
|
+
return {
|
|
505
|
+
"caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
|
|
506
|
+
"stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
|
|
507
|
+
"stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
|
|
508
|
+
"assists": json["assists"] == null ? void 0 : json["assists"],
|
|
509
|
+
"putOuts": json["putOuts"] == null ? void 0 : json["putOuts"],
|
|
510
|
+
"errors": json["errors"] == null ? void 0 : json["errors"],
|
|
511
|
+
"chances": json["chances"] == null ? void 0 : json["chances"],
|
|
512
|
+
"passedBall": json["passedBall"] == null ? void 0 : json["passedBall"],
|
|
513
|
+
"pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"]
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
function FieldingStatsToJSON(json) {
|
|
517
|
+
return FieldingStatsToJSONTyped(json, false);
|
|
518
|
+
}
|
|
519
|
+
function FieldingStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
520
|
+
if (value == null) {
|
|
521
|
+
return value;
|
|
522
|
+
}
|
|
523
|
+
return {
|
|
524
|
+
"caughtStealing": value["caughtStealing"],
|
|
525
|
+
"stolenBases": value["stolenBases"],
|
|
526
|
+
"stolenBasePercentage": value["stolenBasePercentage"],
|
|
527
|
+
"assists": value["assists"],
|
|
528
|
+
"putOuts": value["putOuts"],
|
|
529
|
+
"errors": value["errors"],
|
|
530
|
+
"chances": value["chances"],
|
|
531
|
+
"passedBall": value["passedBall"],
|
|
532
|
+
"pickoffs": value["pickoffs"]
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// src/models/PitchingStats.ts
|
|
537
|
+
function instanceOfPitchingStats(value) {
|
|
538
|
+
return true;
|
|
539
|
+
}
|
|
540
|
+
function PitchingStatsFromJSON(json) {
|
|
541
|
+
return PitchingStatsFromJSONTyped(json, false);
|
|
542
|
+
}
|
|
543
|
+
function PitchingStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
544
|
+
if (json == null) {
|
|
545
|
+
return json;
|
|
546
|
+
}
|
|
547
|
+
return {
|
|
548
|
+
"flyOuts": json["flyOuts"] == null ? void 0 : json["flyOuts"],
|
|
549
|
+
"groundOuts": json["groundOuts"] == null ? void 0 : json["groundOuts"],
|
|
550
|
+
"airOuts": json["airOuts"] == null ? void 0 : json["airOuts"],
|
|
551
|
+
"runs": json["runs"] == null ? void 0 : json["runs"],
|
|
552
|
+
"doubles": json["doubles"] == null ? void 0 : json["doubles"],
|
|
553
|
+
"triples": json["triples"] == null ? void 0 : json["triples"],
|
|
554
|
+
"homeRuns": json["homeRuns"] == null ? void 0 : json["homeRuns"],
|
|
555
|
+
"strikeOuts": json["strikeOuts"] == null ? void 0 : json["strikeOuts"],
|
|
556
|
+
"baseOnBalls": json["baseOnBalls"] == null ? void 0 : json["baseOnBalls"],
|
|
557
|
+
"intentionalWalks": json["intentionalWalks"] == null ? void 0 : json["intentionalWalks"],
|
|
558
|
+
"hits": json["hits"] == null ? void 0 : json["hits"],
|
|
559
|
+
"hitByPitch": json["hitByPitch"] == null ? void 0 : json["hitByPitch"],
|
|
560
|
+
"atBats": json["atBats"] == null ? void 0 : json["atBats"],
|
|
561
|
+
"obp": json["obp"] == null ? void 0 : json["obp"],
|
|
562
|
+
"caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
|
|
563
|
+
"stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
|
|
564
|
+
"stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
|
|
565
|
+
"numberOfPitches": json["numberOfPitches"] == null ? void 0 : json["numberOfPitches"],
|
|
566
|
+
"era": json["era"] == null ? void 0 : json["era"],
|
|
567
|
+
"inningsPitched": json["inningsPitched"] == null ? void 0 : json["inningsPitched"],
|
|
568
|
+
"saveOpportunities": json["saveOpportunities"] == null ? void 0 : json["saveOpportunities"],
|
|
569
|
+
"earnedRuns": json["earnedRuns"] == null ? void 0 : json["earnedRuns"],
|
|
570
|
+
"whip": json["whip"] == null ? void 0 : json["whip"],
|
|
571
|
+
"battersFaced": json["battersFaced"] == null ? void 0 : json["battersFaced"],
|
|
572
|
+
"outs": json["outs"] == null ? void 0 : json["outs"],
|
|
573
|
+
"completeGames": json["completeGames"] == null ? void 0 : json["completeGames"],
|
|
574
|
+
"shutouts": json["shutouts"] == null ? void 0 : json["shutouts"],
|
|
575
|
+
"pitchesThrown": json["pitchesThrown"] == null ? void 0 : json["pitchesThrown"],
|
|
576
|
+
"balls": json["balls"] == null ? void 0 : json["balls"],
|
|
577
|
+
"strikes": json["strikes"] == null ? void 0 : json["strikes"],
|
|
578
|
+
"strikePercentage": json["strikePercentage"] == null ? void 0 : json["strikePercentage"],
|
|
579
|
+
"hitBatsmen": json["hitBatsmen"] == null ? void 0 : json["hitBatsmen"],
|
|
580
|
+
"balks": json["balks"] == null ? void 0 : json["balks"],
|
|
581
|
+
"wildPitches": json["wildPitches"] == null ? void 0 : json["wildPitches"],
|
|
582
|
+
"pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"],
|
|
583
|
+
"groundOutsToAirouts": json["groundOutsToAirouts"] == null ? void 0 : json["groundOutsToAirouts"],
|
|
584
|
+
"rbi": json["rbi"] == null ? void 0 : json["rbi"],
|
|
585
|
+
"pitchesPerInning": json["pitchesPerInning"] == null ? void 0 : json["pitchesPerInning"],
|
|
586
|
+
"runsScoredPer9": json["runsScoredPer9"] == null ? void 0 : json["runsScoredPer9"],
|
|
587
|
+
"homeRunsPer9": json["homeRunsPer9"] == null ? void 0 : json["homeRunsPer9"],
|
|
588
|
+
"inheritedRunners": json["inheritedRunners"] == null ? void 0 : json["inheritedRunners"],
|
|
589
|
+
"inheritedRunnersScored": json["inheritedRunnersScored"] == null ? void 0 : json["inheritedRunnersScored"],
|
|
590
|
+
"catchersInterference": json["catchersInterference"] == null ? void 0 : json["catchersInterference"],
|
|
591
|
+
"sacBunts": json["sacBunts"] == null ? void 0 : json["sacBunts"],
|
|
592
|
+
"sacFlies": json["sacFlies"] == null ? void 0 : json["sacFlies"],
|
|
593
|
+
"passedBall": json["passedBall"] == null ? void 0 : json["passedBall"],
|
|
594
|
+
"popOuts": json["popOuts"] == null ? void 0 : json["popOuts"],
|
|
595
|
+
"lineOuts": json["lineOuts"] == null ? void 0 : json["lineOuts"]
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
function PitchingStatsToJSON(json) {
|
|
599
|
+
return PitchingStatsToJSONTyped(json, false);
|
|
600
|
+
}
|
|
601
|
+
function PitchingStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
602
|
+
if (value == null) {
|
|
603
|
+
return value;
|
|
604
|
+
}
|
|
605
|
+
return {
|
|
606
|
+
"flyOuts": value["flyOuts"],
|
|
607
|
+
"groundOuts": value["groundOuts"],
|
|
608
|
+
"airOuts": value["airOuts"],
|
|
609
|
+
"runs": value["runs"],
|
|
610
|
+
"doubles": value["doubles"],
|
|
611
|
+
"triples": value["triples"],
|
|
612
|
+
"homeRuns": value["homeRuns"],
|
|
613
|
+
"strikeOuts": value["strikeOuts"],
|
|
614
|
+
"baseOnBalls": value["baseOnBalls"],
|
|
615
|
+
"intentionalWalks": value["intentionalWalks"],
|
|
616
|
+
"hits": value["hits"],
|
|
617
|
+
"hitByPitch": value["hitByPitch"],
|
|
618
|
+
"atBats": value["atBats"],
|
|
619
|
+
"obp": value["obp"],
|
|
620
|
+
"caughtStealing": value["caughtStealing"],
|
|
621
|
+
"stolenBases": value["stolenBases"],
|
|
622
|
+
"stolenBasePercentage": value["stolenBasePercentage"],
|
|
623
|
+
"numberOfPitches": value["numberOfPitches"],
|
|
624
|
+
"era": value["era"],
|
|
625
|
+
"inningsPitched": value["inningsPitched"],
|
|
626
|
+
"saveOpportunities": value["saveOpportunities"],
|
|
627
|
+
"earnedRuns": value["earnedRuns"],
|
|
628
|
+
"whip": value["whip"],
|
|
629
|
+
"battersFaced": value["battersFaced"],
|
|
630
|
+
"outs": value["outs"],
|
|
631
|
+
"completeGames": value["completeGames"],
|
|
632
|
+
"shutouts": value["shutouts"],
|
|
633
|
+
"pitchesThrown": value["pitchesThrown"],
|
|
634
|
+
"balls": value["balls"],
|
|
635
|
+
"strikes": value["strikes"],
|
|
636
|
+
"strikePercentage": value["strikePercentage"],
|
|
637
|
+
"hitBatsmen": value["hitBatsmen"],
|
|
638
|
+
"balks": value["balks"],
|
|
639
|
+
"wildPitches": value["wildPitches"],
|
|
640
|
+
"pickoffs": value["pickoffs"],
|
|
641
|
+
"groundOutsToAirouts": value["groundOutsToAirouts"],
|
|
642
|
+
"rbi": value["rbi"],
|
|
643
|
+
"pitchesPerInning": value["pitchesPerInning"],
|
|
644
|
+
"runsScoredPer9": value["runsScoredPer9"],
|
|
645
|
+
"homeRunsPer9": value["homeRunsPer9"],
|
|
646
|
+
"inheritedRunners": value["inheritedRunners"],
|
|
647
|
+
"inheritedRunnersScored": value["inheritedRunnersScored"],
|
|
648
|
+
"catchersInterference": value["catchersInterference"],
|
|
649
|
+
"sacBunts": value["sacBunts"],
|
|
650
|
+
"sacFlies": value["sacFlies"],
|
|
651
|
+
"passedBall": value["passedBall"],
|
|
652
|
+
"popOuts": value["popOuts"],
|
|
653
|
+
"lineOuts": value["lineOuts"]
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// src/models/PlayerSeasonStats.ts
|
|
658
|
+
function instanceOfPlayerSeasonStats(value) {
|
|
659
|
+
if (!("batting" in value) || value["batting"] === void 0) return false;
|
|
660
|
+
if (!("pitching" in value) || value["pitching"] === void 0) return false;
|
|
661
|
+
if (!("fielding" in value) || value["fielding"] === void 0) return false;
|
|
662
|
+
return true;
|
|
663
|
+
}
|
|
664
|
+
function PlayerSeasonStatsFromJSON(json) {
|
|
665
|
+
return PlayerSeasonStatsFromJSONTyped(json, false);
|
|
666
|
+
}
|
|
667
|
+
function PlayerSeasonStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
668
|
+
if (json == null) {
|
|
669
|
+
return json;
|
|
670
|
+
}
|
|
671
|
+
return {
|
|
672
|
+
"batting": BattingStatsFromJSON(json["batting"]),
|
|
673
|
+
"pitching": PitchingStatsFromJSON(json["pitching"]),
|
|
674
|
+
"fielding": FieldingStatsFromJSON(json["fielding"])
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
function PlayerSeasonStatsToJSON(json) {
|
|
678
|
+
return PlayerSeasonStatsToJSONTyped(json, false);
|
|
679
|
+
}
|
|
680
|
+
function PlayerSeasonStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
681
|
+
if (value == null) {
|
|
682
|
+
return value;
|
|
683
|
+
}
|
|
684
|
+
return {
|
|
685
|
+
"batting": BattingStatsToJSON(value["batting"]),
|
|
686
|
+
"pitching": PitchingStatsToJSON(value["pitching"]),
|
|
687
|
+
"fielding": FieldingStatsToJSON(value["fielding"])
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// src/models/PlayerGameStatus.ts
|
|
692
|
+
function instanceOfPlayerGameStatus(value) {
|
|
693
|
+
return true;
|
|
694
|
+
}
|
|
695
|
+
function PlayerGameStatusFromJSON(json) {
|
|
696
|
+
return PlayerGameStatusFromJSONTyped(json, false);
|
|
697
|
+
}
|
|
698
|
+
function PlayerGameStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
699
|
+
if (json == null) {
|
|
700
|
+
return json;
|
|
701
|
+
}
|
|
702
|
+
return {
|
|
703
|
+
"isCurrentBatter": json["isCurrentBatter"] == null ? void 0 : json["isCurrentBatter"],
|
|
704
|
+
"isCurrentPitcher": json["isCurrentPitcher"] == null ? void 0 : json["isCurrentPitcher"],
|
|
705
|
+
"isOnBench": json["isOnBench"] == null ? void 0 : json["isOnBench"],
|
|
706
|
+
"isSubstitute": json["isSubstitute"] == null ? void 0 : json["isSubstitute"]
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
function PlayerGameStatusToJSON(json) {
|
|
710
|
+
return PlayerGameStatusToJSONTyped(json, false);
|
|
711
|
+
}
|
|
712
|
+
function PlayerGameStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
713
|
+
if (value == null) {
|
|
714
|
+
return value;
|
|
715
|
+
}
|
|
716
|
+
return {
|
|
717
|
+
"isCurrentBatter": value["isCurrentBatter"],
|
|
718
|
+
"isCurrentPitcher": value["isCurrentPitcher"],
|
|
719
|
+
"isOnBench": value["isOnBench"],
|
|
720
|
+
"isSubstitute": value["isSubstitute"]
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
// src/models/Position.ts
|
|
725
|
+
function instanceOfPosition(value) {
|
|
726
|
+
return true;
|
|
727
|
+
}
|
|
728
|
+
function PositionFromJSON(json) {
|
|
729
|
+
return PositionFromJSONTyped(json, false);
|
|
730
|
+
}
|
|
731
|
+
function PositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
732
|
+
if (json == null) {
|
|
733
|
+
return json;
|
|
734
|
+
}
|
|
735
|
+
return {
|
|
736
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
737
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
738
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
739
|
+
"abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"]
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
function PositionToJSON(json) {
|
|
743
|
+
return PositionToJSONTyped(json, false);
|
|
744
|
+
}
|
|
745
|
+
function PositionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
746
|
+
if (value == null) {
|
|
747
|
+
return value;
|
|
748
|
+
}
|
|
749
|
+
return {
|
|
750
|
+
"code": value["code"],
|
|
751
|
+
"name": value["name"],
|
|
752
|
+
"type": value["type"],
|
|
753
|
+
"abbreviation": value["abbreviation"]
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
// src/models/PlayerPerson.ts
|
|
758
|
+
function instanceOfPlayerPerson(value) {
|
|
759
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
760
|
+
if (!("fullName" in value) || value["fullName"] === void 0) return false;
|
|
761
|
+
if (!("link" in value) || value["link"] === void 0) return false;
|
|
762
|
+
if (!("boxscoreName" in value) || value["boxscoreName"] === void 0) return false;
|
|
763
|
+
return true;
|
|
764
|
+
}
|
|
765
|
+
function PlayerPersonFromJSON(json) {
|
|
766
|
+
return PlayerPersonFromJSONTyped(json, false);
|
|
767
|
+
}
|
|
768
|
+
function PlayerPersonFromJSONTyped(json, ignoreDiscriminator) {
|
|
769
|
+
if (json == null) {
|
|
770
|
+
return json;
|
|
771
|
+
}
|
|
772
|
+
return {
|
|
773
|
+
"id": json["id"],
|
|
774
|
+
"fullName": json["fullName"],
|
|
775
|
+
"link": json["link"],
|
|
776
|
+
"boxscoreName": json["boxscoreName"]
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
function PlayerPersonToJSON(json) {
|
|
780
|
+
return PlayerPersonToJSONTyped(json, false);
|
|
781
|
+
}
|
|
782
|
+
function PlayerPersonToJSONTyped(value, ignoreDiscriminator = false) {
|
|
783
|
+
if (value == null) {
|
|
784
|
+
return value;
|
|
785
|
+
}
|
|
786
|
+
return {
|
|
787
|
+
"id": value["id"],
|
|
788
|
+
"fullName": value["fullName"],
|
|
789
|
+
"link": value["link"],
|
|
790
|
+
"boxscoreName": value["boxscoreName"]
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
// src/models/PlayerPosition.ts
|
|
795
|
+
function instanceOfPlayerPosition(value) {
|
|
796
|
+
return true;
|
|
797
|
+
}
|
|
798
|
+
function PlayerPositionFromJSON(json) {
|
|
799
|
+
return PlayerPositionFromJSONTyped(json, false);
|
|
800
|
+
}
|
|
801
|
+
function PlayerPositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
802
|
+
if (json == null) {
|
|
803
|
+
return json;
|
|
804
|
+
}
|
|
805
|
+
return {
|
|
806
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
807
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
808
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
809
|
+
"abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"]
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
function PlayerPositionToJSON(json) {
|
|
813
|
+
return PlayerPositionToJSONTyped(json, false);
|
|
814
|
+
}
|
|
815
|
+
function PlayerPositionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
816
|
+
if (value == null) {
|
|
817
|
+
return value;
|
|
818
|
+
}
|
|
819
|
+
return {
|
|
820
|
+
"code": value["code"],
|
|
821
|
+
"name": value["name"],
|
|
822
|
+
"type": value["type"],
|
|
823
|
+
"abbreviation": value["abbreviation"]
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
// src/models/PlayerStatus.ts
|
|
828
|
+
function instanceOfPlayerStatus(value) {
|
|
829
|
+
return true;
|
|
830
|
+
}
|
|
831
|
+
function PlayerStatusFromJSON(json) {
|
|
832
|
+
return PlayerStatusFromJSONTyped(json, false);
|
|
833
|
+
}
|
|
834
|
+
function PlayerStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
835
|
+
if (json == null) {
|
|
836
|
+
return json;
|
|
837
|
+
}
|
|
838
|
+
return {
|
|
839
|
+
"code": json["code"] == null ? void 0 : json["code"],
|
|
840
|
+
"description": json["description"] == null ? void 0 : json["description"]
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
function PlayerStatusToJSON(json) {
|
|
844
|
+
return PlayerStatusToJSONTyped(json, false);
|
|
845
|
+
}
|
|
846
|
+
function PlayerStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
847
|
+
if (value == null) {
|
|
848
|
+
return value;
|
|
849
|
+
}
|
|
850
|
+
return {
|
|
851
|
+
"code": value["code"],
|
|
852
|
+
"description": value["description"]
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
// src/models/PlayerStats.ts
|
|
857
|
+
function instanceOfPlayerStats(value) {
|
|
858
|
+
if (!("batting" in value) || value["batting"] === void 0) return false;
|
|
859
|
+
if (!("pitching" in value) || value["pitching"] === void 0) return false;
|
|
860
|
+
if (!("fielding" in value) || value["fielding"] === void 0) return false;
|
|
861
|
+
return true;
|
|
862
|
+
}
|
|
863
|
+
function PlayerStatsFromJSON(json) {
|
|
864
|
+
return PlayerStatsFromJSONTyped(json, false);
|
|
865
|
+
}
|
|
866
|
+
function PlayerStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
867
|
+
if (json == null) {
|
|
868
|
+
return json;
|
|
869
|
+
}
|
|
870
|
+
return {
|
|
871
|
+
"batting": BattingStatsFromJSON(json["batting"]),
|
|
872
|
+
"pitching": PitchingStatsFromJSON(json["pitching"]),
|
|
873
|
+
"fielding": FieldingStatsFromJSON(json["fielding"])
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
function PlayerStatsToJSON(json) {
|
|
877
|
+
return PlayerStatsToJSONTyped(json, false);
|
|
878
|
+
}
|
|
879
|
+
function PlayerStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
880
|
+
if (value == null) {
|
|
881
|
+
return value;
|
|
882
|
+
}
|
|
883
|
+
return {
|
|
884
|
+
"batting": BattingStatsToJSON(value["batting"]),
|
|
885
|
+
"pitching": PitchingStatsToJSON(value["pitching"]),
|
|
886
|
+
"fielding": FieldingStatsToJSON(value["fielding"])
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
// src/models/Player.ts
|
|
891
|
+
function instanceOfPlayer(value) {
|
|
892
|
+
if (!("person" in value) || value["person"] === void 0) return false;
|
|
893
|
+
if (!("position" in value) || value["position"] === void 0) return false;
|
|
894
|
+
if (!("stats" in value) || value["stats"] === void 0) return false;
|
|
895
|
+
if (!("seasonStats" in value) || value["seasonStats"] === void 0) return false;
|
|
896
|
+
return true;
|
|
897
|
+
}
|
|
898
|
+
function PlayerFromJSON(json) {
|
|
899
|
+
return PlayerFromJSONTyped(json, false);
|
|
900
|
+
}
|
|
901
|
+
function PlayerFromJSONTyped(json, ignoreDiscriminator) {
|
|
902
|
+
if (json == null) {
|
|
903
|
+
return json;
|
|
904
|
+
}
|
|
905
|
+
return {
|
|
906
|
+
"person": PlayerPersonFromJSON(json["person"]),
|
|
907
|
+
"jerseyNumber": json["jerseyNumber"] == null ? void 0 : json["jerseyNumber"],
|
|
908
|
+
"position": PlayerPositionFromJSON(json["position"]),
|
|
909
|
+
"status": json["status"] == null ? void 0 : PlayerStatusFromJSON(json["status"]),
|
|
910
|
+
"parentTeamId": json["parentTeamId"] == null ? void 0 : json["parentTeamId"],
|
|
911
|
+
"battingOrder": json["battingOrder"] == null ? void 0 : json["battingOrder"],
|
|
912
|
+
"stats": PlayerStatsFromJSON(json["stats"]),
|
|
913
|
+
"seasonStats": PlayerSeasonStatsFromJSON(json["seasonStats"]),
|
|
914
|
+
"gameStatus": json["gameStatus"] == null ? void 0 : PlayerGameStatusFromJSON(json["gameStatus"]),
|
|
915
|
+
"allPositions": json["allPositions"] == null ? void 0 : json["allPositions"].map(PositionFromJSON),
|
|
916
|
+
"type": json["type"] == null ? void 0 : json["type"],
|
|
917
|
+
"gameScore": json["gameScore"] == null ? void 0 : json["gameScore"],
|
|
918
|
+
"hittingGameScore": json["hittingGameScore"] == null ? void 0 : json["hittingGameScore"]
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
function PlayerToJSON(json) {
|
|
922
|
+
return PlayerToJSONTyped(json, false);
|
|
923
|
+
}
|
|
924
|
+
function PlayerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
925
|
+
if (value == null) {
|
|
926
|
+
return value;
|
|
927
|
+
}
|
|
928
|
+
return {
|
|
929
|
+
"person": PlayerPersonToJSON(value["person"]),
|
|
930
|
+
"jerseyNumber": value["jerseyNumber"],
|
|
931
|
+
"position": PlayerPositionToJSON(value["position"]),
|
|
932
|
+
"status": PlayerStatusToJSON(value["status"]),
|
|
933
|
+
"parentTeamId": value["parentTeamId"],
|
|
934
|
+
"battingOrder": value["battingOrder"],
|
|
935
|
+
"stats": PlayerStatsToJSON(value["stats"]),
|
|
936
|
+
"seasonStats": PlayerSeasonStatsToJSON(value["seasonStats"]),
|
|
937
|
+
"gameStatus": PlayerGameStatusToJSON(value["gameStatus"]),
|
|
938
|
+
"allPositions": value["allPositions"] == null ? void 0 : value["allPositions"].map(PositionToJSON),
|
|
939
|
+
"type": value["type"],
|
|
940
|
+
"gameScore": value["gameScore"],
|
|
941
|
+
"hittingGameScore": value["hittingGameScore"]
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
|
|
338
945
|
// src/models/LeagueDates.ts
|
|
339
946
|
function instanceOfLeagueDates(value) {
|
|
340
947
|
return true;
|
|
@@ -359,7 +966,10 @@ function LeagueDatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
359
966
|
"gameLevelGamedayType": json["gameLevelGamedayType"] == null ? void 0 : json["gameLevelGamedayType"]
|
|
360
967
|
};
|
|
361
968
|
}
|
|
362
|
-
function LeagueDatesToJSON(
|
|
969
|
+
function LeagueDatesToJSON(json) {
|
|
970
|
+
return LeagueDatesToJSONTyped(json, false);
|
|
971
|
+
}
|
|
972
|
+
function LeagueDatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
363
973
|
if (value == null) {
|
|
364
974
|
return value;
|
|
365
975
|
}
|
|
@@ -409,7 +1019,10 @@ function LeagueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
409
1019
|
"active": json["active"] == null ? void 0 : json["active"]
|
|
410
1020
|
};
|
|
411
1021
|
}
|
|
412
|
-
function LeagueToJSON(
|
|
1022
|
+
function LeagueToJSON(json) {
|
|
1023
|
+
return LeagueToJSONTyped(json, false);
|
|
1024
|
+
}
|
|
1025
|
+
function LeagueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
413
1026
|
if (value == null) {
|
|
414
1027
|
return value;
|
|
415
1028
|
}
|
|
@@ -455,7 +1068,10 @@ function SportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
455
1068
|
"activeStatus": json["activeStatus"] == null ? void 0 : json["activeStatus"]
|
|
456
1069
|
};
|
|
457
1070
|
}
|
|
458
|
-
function SportToJSON(
|
|
1071
|
+
function SportToJSON(json) {
|
|
1072
|
+
return SportToJSONTyped(json, false);
|
|
1073
|
+
}
|
|
1074
|
+
function SportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
459
1075
|
if (value == null) {
|
|
460
1076
|
return value;
|
|
461
1077
|
}
|
|
@@ -470,82 +1086,6 @@ function SportToJSON(value) {
|
|
|
470
1086
|
};
|
|
471
1087
|
}
|
|
472
1088
|
|
|
473
|
-
// src/models/Division.ts
|
|
474
|
-
function instanceOfDivision(value) {
|
|
475
|
-
if (!("id" in value) || value["id"] === void 0) return false;
|
|
476
|
-
if (!("name" in value) || value["name"] === void 0) return false;
|
|
477
|
-
return true;
|
|
478
|
-
}
|
|
479
|
-
function DivisionFromJSON(json) {
|
|
480
|
-
return DivisionFromJSONTyped(json, false);
|
|
481
|
-
}
|
|
482
|
-
function DivisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
483
|
-
if (json == null) {
|
|
484
|
-
return json;
|
|
485
|
-
}
|
|
486
|
-
return {
|
|
487
|
-
"id": json["id"],
|
|
488
|
-
"name": json["name"],
|
|
489
|
-
"season": json["season"] == null ? void 0 : json["season"],
|
|
490
|
-
"nameShort": json["nameShort"] == null ? void 0 : json["nameShort"],
|
|
491
|
-
"link": json["link"] == null ? void 0 : json["link"],
|
|
492
|
-
"abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
|
|
493
|
-
"league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
|
|
494
|
-
"sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
|
|
495
|
-
"hasWildcard": json["hasWildcard"] == null ? void 0 : json["hasWildcard"],
|
|
496
|
-
"sortOrder": json["sortOrder"] == null ? void 0 : json["sortOrder"],
|
|
497
|
-
"numPlayoffTeams": json["numPlayoffTeams"] == null ? void 0 : json["numPlayoffTeams"],
|
|
498
|
-
"active": json["active"] == null ? void 0 : json["active"]
|
|
499
|
-
};
|
|
500
|
-
}
|
|
501
|
-
function DivisionToJSON(value) {
|
|
502
|
-
if (value == null) {
|
|
503
|
-
return value;
|
|
504
|
-
}
|
|
505
|
-
return {
|
|
506
|
-
"id": value["id"],
|
|
507
|
-
"name": value["name"],
|
|
508
|
-
"season": value["season"],
|
|
509
|
-
"nameShort": value["nameShort"],
|
|
510
|
-
"link": value["link"],
|
|
511
|
-
"abbreviation": value["abbreviation"],
|
|
512
|
-
"league": LeagueToJSON(value["league"]),
|
|
513
|
-
"sport": SportToJSON(value["sport"]),
|
|
514
|
-
"hasWildcard": value["hasWildcard"],
|
|
515
|
-
"sortOrder": value["sortOrder"],
|
|
516
|
-
"numPlayoffTeams": value["numPlayoffTeams"],
|
|
517
|
-
"active": value["active"]
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
// src/models/Streak.ts
|
|
522
|
-
var StreakStreakTypeEnum = {
|
|
523
|
-
Losing: "losses",
|
|
524
|
-
Winning: "wins"
|
|
525
|
-
};
|
|
526
|
-
function instanceOfStreak(value) {
|
|
527
|
-
return true;
|
|
528
|
-
}
|
|
529
|
-
function StreakFromJSON(json) {
|
|
530
|
-
return StreakFromJSONTyped(json, false);
|
|
531
|
-
}
|
|
532
|
-
function StreakFromJSONTyped(json, ignoreDiscriminator) {
|
|
533
|
-
if (json == null) {
|
|
534
|
-
return json;
|
|
535
|
-
}
|
|
536
|
-
return {
|
|
537
|
-
"streakType": json["streakType"] == null ? void 0 : json["streakType"]
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
function StreakToJSON(value) {
|
|
541
|
-
if (value == null) {
|
|
542
|
-
return value;
|
|
543
|
-
}
|
|
544
|
-
return {
|
|
545
|
-
"streakType": value["streakType"]
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
|
|
549
1089
|
// src/models/Venue.ts
|
|
550
1090
|
function instanceOfVenue(value) {
|
|
551
1091
|
if (!("id" in value) || value["id"] === void 0) return false;
|
|
@@ -567,7 +1107,10 @@ function VenueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
567
1107
|
"season": json["season"] == null ? void 0 : json["season"]
|
|
568
1108
|
};
|
|
569
1109
|
}
|
|
570
|
-
function VenueToJSON(
|
|
1110
|
+
function VenueToJSON(json) {
|
|
1111
|
+
return VenueToJSONTyped(json, false);
|
|
1112
|
+
}
|
|
1113
|
+
function VenueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
571
1114
|
if (value == null) {
|
|
572
1115
|
return value;
|
|
573
1116
|
}
|
|
@@ -580,72 +1123,89 @@ function VenueToJSON(value) {
|
|
|
580
1123
|
};
|
|
581
1124
|
}
|
|
582
1125
|
|
|
583
|
-
// src/models/
|
|
584
|
-
function
|
|
1126
|
+
// src/models/Division.ts
|
|
1127
|
+
function instanceOfDivision(value) {
|
|
585
1128
|
if (!("id" in value) || value["id"] === void 0) return false;
|
|
586
1129
|
if (!("name" in value) || value["name"] === void 0) return false;
|
|
587
1130
|
return true;
|
|
588
1131
|
}
|
|
589
|
-
function
|
|
590
|
-
return
|
|
1132
|
+
function DivisionFromJSON(json) {
|
|
1133
|
+
return DivisionFromJSONTyped(json, false);
|
|
591
1134
|
}
|
|
592
|
-
function
|
|
1135
|
+
function DivisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
593
1136
|
if (json == null) {
|
|
594
1137
|
return json;
|
|
595
1138
|
}
|
|
596
1139
|
return {
|
|
597
1140
|
"id": json["id"],
|
|
598
1141
|
"name": json["name"],
|
|
599
|
-
"link": json["link"] == null ? void 0 : json["link"],
|
|
600
|
-
"allStarStatus": json["allStarStatus"] == null ? void 0 : json["allStarStatus"],
|
|
601
1142
|
"season": json["season"] == null ? void 0 : json["season"],
|
|
602
|
-
"
|
|
603
|
-
"
|
|
604
|
-
"teamCode": json["teamCode"] == null ? void 0 : json["teamCode"],
|
|
605
|
-
"fileCode": json["fileCode"] == null ? void 0 : json["fileCode"],
|
|
1143
|
+
"nameShort": json["nameShort"] == null ? void 0 : json["nameShort"],
|
|
1144
|
+
"link": json["link"] == null ? void 0 : json["link"],
|
|
606
1145
|
"abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
|
|
607
|
-
"teamName": json["teamName"] == null ? void 0 : json["teamName"],
|
|
608
|
-
"locationName": json["locationName"] == null ? void 0 : json["locationName"],
|
|
609
|
-
"firstYearOfPlay": json["firstYearOfPlay"] == null ? void 0 : json["firstYearOfPlay"],
|
|
610
1146
|
"league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
|
|
611
|
-
"springLeague": json["springLeague"] == null ? void 0 : LeagueFromJSON(json["springLeague"]),
|
|
612
|
-
"division": json["division"] == null ? void 0 : DivisionFromJSON(json["division"]),
|
|
613
1147
|
"sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
|
|
614
|
-
"
|
|
615
|
-
"
|
|
616
|
-
"
|
|
1148
|
+
"hasWildcard": json["hasWildcard"] == null ? void 0 : json["hasWildcard"],
|
|
1149
|
+
"sortOrder": json["sortOrder"] == null ? void 0 : json["sortOrder"],
|
|
1150
|
+
"numPlayoffTeams": json["numPlayoffTeams"] == null ? void 0 : json["numPlayoffTeams"],
|
|
617
1151
|
"active": json["active"] == null ? void 0 : json["active"]
|
|
618
1152
|
};
|
|
619
1153
|
}
|
|
620
|
-
function
|
|
1154
|
+
function DivisionToJSON(json) {
|
|
1155
|
+
return DivisionToJSONTyped(json, false);
|
|
1156
|
+
}
|
|
1157
|
+
function DivisionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
621
1158
|
if (value == null) {
|
|
622
1159
|
return value;
|
|
623
1160
|
}
|
|
624
1161
|
return {
|
|
625
1162
|
"id": value["id"],
|
|
626
1163
|
"name": value["name"],
|
|
627
|
-
"link": value["link"],
|
|
628
|
-
"allStarStatus": value["allStarStatus"],
|
|
629
1164
|
"season": value["season"],
|
|
630
|
-
"
|
|
631
|
-
"
|
|
632
|
-
"teamCode": value["teamCode"],
|
|
633
|
-
"fileCode": value["fileCode"],
|
|
1165
|
+
"nameShort": value["nameShort"],
|
|
1166
|
+
"link": value["link"],
|
|
634
1167
|
"abbreviation": value["abbreviation"],
|
|
635
|
-
"teamName": value["teamName"],
|
|
636
|
-
"locationName": value["locationName"],
|
|
637
|
-
"firstYearOfPlay": value["firstYearOfPlay"],
|
|
638
1168
|
"league": LeagueToJSON(value["league"]),
|
|
639
|
-
"springLeague": LeagueToJSON(value["springLeague"]),
|
|
640
|
-
"division": DivisionToJSON(value["division"]),
|
|
641
1169
|
"sport": SportToJSON(value["sport"]),
|
|
642
|
-
"
|
|
643
|
-
"
|
|
644
|
-
"
|
|
1170
|
+
"hasWildcard": value["hasWildcard"],
|
|
1171
|
+
"sortOrder": value["sortOrder"],
|
|
1172
|
+
"numPlayoffTeams": value["numPlayoffTeams"],
|
|
645
1173
|
"active": value["active"]
|
|
646
1174
|
};
|
|
647
1175
|
}
|
|
648
1176
|
|
|
1177
|
+
// src/models/Streak.ts
|
|
1178
|
+
var StreakStreakTypeEnum = /* @__PURE__ */ ((StreakStreakTypeEnum2) => {
|
|
1179
|
+
StreakStreakTypeEnum2["Losing"] = "losses";
|
|
1180
|
+
StreakStreakTypeEnum2["Winning"] = "wins";
|
|
1181
|
+
return StreakStreakTypeEnum2;
|
|
1182
|
+
})(StreakStreakTypeEnum || {});
|
|
1183
|
+
function instanceOfStreak(value) {
|
|
1184
|
+
return true;
|
|
1185
|
+
}
|
|
1186
|
+
function StreakFromJSON(json) {
|
|
1187
|
+
return StreakFromJSONTyped(json, false);
|
|
1188
|
+
}
|
|
1189
|
+
function StreakFromJSONTyped(json, ignoreDiscriminator) {
|
|
1190
|
+
if (json == null) {
|
|
1191
|
+
return json;
|
|
1192
|
+
}
|
|
1193
|
+
return {
|
|
1194
|
+
"streakType": json["streakType"] == null ? void 0 : json["streakType"]
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
function StreakToJSON(json) {
|
|
1198
|
+
return StreakToJSONTyped(json, false);
|
|
1199
|
+
}
|
|
1200
|
+
function StreakToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1201
|
+
if (value == null) {
|
|
1202
|
+
return value;
|
|
1203
|
+
}
|
|
1204
|
+
return {
|
|
1205
|
+
"streakType": value["streakType"]
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
|
|
649
1209
|
// src/models/LeagueRecord.ts
|
|
650
1210
|
function instanceOfLeagueRecord(value) {
|
|
651
1211
|
if (!("wins" in value) || value["wins"] === void 0) return false;
|
|
@@ -667,7 +1227,10 @@ function LeagueRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
667
1227
|
"pct": json["pct"]
|
|
668
1228
|
};
|
|
669
1229
|
}
|
|
670
|
-
function LeagueRecordToJSON(
|
|
1230
|
+
function LeagueRecordToJSON(json) {
|
|
1231
|
+
return LeagueRecordToJSONTyped(json, false);
|
|
1232
|
+
}
|
|
1233
|
+
function LeagueRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
671
1234
|
if (value == null) {
|
|
672
1235
|
return value;
|
|
673
1236
|
}
|
|
@@ -679,8 +1242,8 @@ function LeagueRecordToJSON(value) {
|
|
|
679
1242
|
};
|
|
680
1243
|
}
|
|
681
1244
|
|
|
682
|
-
// src/models/
|
|
683
|
-
function
|
|
1245
|
+
// src/models/Record.ts
|
|
1246
|
+
function instanceOfRecord(value) {
|
|
684
1247
|
if (!("team" in value) || value["team"] === void 0) return false;
|
|
685
1248
|
if (!("season" in value) || value["season"] === void 0) return false;
|
|
686
1249
|
if (!("streak" in value) || value["streak"] === void 0) return false;
|
|
@@ -692,10 +1255,10 @@ function instanceOfTeamRecord(value) {
|
|
|
692
1255
|
if (!("losses" in value) || value["losses"] === void 0) return false;
|
|
693
1256
|
return true;
|
|
694
1257
|
}
|
|
695
|
-
function
|
|
696
|
-
return
|
|
1258
|
+
function RecordFromJSON(json) {
|
|
1259
|
+
return RecordFromJSONTyped(json, false);
|
|
697
1260
|
}
|
|
698
|
-
function
|
|
1261
|
+
function RecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
699
1262
|
if (json == null) {
|
|
700
1263
|
return json;
|
|
701
1264
|
}
|
|
@@ -734,7 +1297,10 @@ function TeamRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
734
1297
|
"winningPercentage": json["winningPercentage"] == null ? void 0 : json["winningPercentage"]
|
|
735
1298
|
};
|
|
736
1299
|
}
|
|
737
|
-
function
|
|
1300
|
+
function RecordToJSON(json) {
|
|
1301
|
+
return RecordToJSONTyped(json, false);
|
|
1302
|
+
}
|
|
1303
|
+
function RecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
738
1304
|
if (value == null) {
|
|
739
1305
|
return value;
|
|
740
1306
|
}
|
|
@@ -774,6 +1340,207 @@ function TeamRecordToJSON(value) {
|
|
|
774
1340
|
};
|
|
775
1341
|
}
|
|
776
1342
|
|
|
1343
|
+
// src/models/Team.ts
|
|
1344
|
+
function instanceOfTeam(value) {
|
|
1345
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
1346
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
1347
|
+
return true;
|
|
1348
|
+
}
|
|
1349
|
+
function TeamFromJSON(json) {
|
|
1350
|
+
return TeamFromJSONTyped2(json, false);
|
|
1351
|
+
}
|
|
1352
|
+
function TeamFromJSONTyped2(json, ignoreDiscriminator) {
|
|
1353
|
+
if (json == null) {
|
|
1354
|
+
return json;
|
|
1355
|
+
}
|
|
1356
|
+
return {
|
|
1357
|
+
"id": json["id"],
|
|
1358
|
+
"name": json["name"],
|
|
1359
|
+
"link": json["link"] == null ? void 0 : json["link"],
|
|
1360
|
+
"allStarStatus": json["allStarStatus"] == null ? void 0 : json["allStarStatus"],
|
|
1361
|
+
"season": json["season"] == null ? void 0 : json["season"],
|
|
1362
|
+
"venue": json["venue"] == null ? void 0 : VenueFromJSON(json["venue"]),
|
|
1363
|
+
"springVenue": json["springVenue"] == null ? void 0 : VenueFromJSON(json["springVenue"]),
|
|
1364
|
+
"teamCode": json["teamCode"] == null ? void 0 : json["teamCode"],
|
|
1365
|
+
"fileCode": json["fileCode"] == null ? void 0 : json["fileCode"],
|
|
1366
|
+
"abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
|
|
1367
|
+
"teamName": json["teamName"] == null ? void 0 : json["teamName"],
|
|
1368
|
+
"locationName": json["locationName"] == null ? void 0 : json["locationName"],
|
|
1369
|
+
"firstYearOfPlay": json["firstYearOfPlay"] == null ? void 0 : json["firstYearOfPlay"],
|
|
1370
|
+
"league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
|
|
1371
|
+
"springLeague": json["springLeague"] == null ? void 0 : LeagueFromJSON(json["springLeague"]),
|
|
1372
|
+
"division": json["division"] == null ? void 0 : DivisionFromJSON(json["division"]),
|
|
1373
|
+
"sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
|
|
1374
|
+
"record": json["record"] == null ? void 0 : RecordFromJSON(json["record"]),
|
|
1375
|
+
"shortName": json["shortName"] == null ? void 0 : json["shortName"],
|
|
1376
|
+
"franchiseName": json["franchiseName"] == null ? void 0 : json["franchiseName"],
|
|
1377
|
+
"clubName": json["clubName"] == null ? void 0 : json["clubName"],
|
|
1378
|
+
"active": json["active"] == null ? void 0 : json["active"]
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
function TeamToJSON(json) {
|
|
1382
|
+
return TeamToJSONTyped2(json, false);
|
|
1383
|
+
}
|
|
1384
|
+
function TeamToJSONTyped2(value, ignoreDiscriminator = false) {
|
|
1385
|
+
if (value == null) {
|
|
1386
|
+
return value;
|
|
1387
|
+
}
|
|
1388
|
+
return {
|
|
1389
|
+
"id": value["id"],
|
|
1390
|
+
"name": value["name"],
|
|
1391
|
+
"link": value["link"],
|
|
1392
|
+
"allStarStatus": value["allStarStatus"],
|
|
1393
|
+
"season": value["season"],
|
|
1394
|
+
"venue": VenueToJSON(value["venue"]),
|
|
1395
|
+
"springVenue": VenueToJSON(value["springVenue"]),
|
|
1396
|
+
"teamCode": value["teamCode"],
|
|
1397
|
+
"fileCode": value["fileCode"],
|
|
1398
|
+
"abbreviation": value["abbreviation"],
|
|
1399
|
+
"teamName": value["teamName"],
|
|
1400
|
+
"locationName": value["locationName"],
|
|
1401
|
+
"firstYearOfPlay": value["firstYearOfPlay"],
|
|
1402
|
+
"league": LeagueToJSON(value["league"]),
|
|
1403
|
+
"springLeague": LeagueToJSON(value["springLeague"]),
|
|
1404
|
+
"division": DivisionToJSON(value["division"]),
|
|
1405
|
+
"sport": SportToJSON(value["sport"]),
|
|
1406
|
+
"record": RecordToJSON(value["record"]),
|
|
1407
|
+
"shortName": value["shortName"],
|
|
1408
|
+
"franchiseName": value["franchiseName"],
|
|
1409
|
+
"clubName": value["clubName"],
|
|
1410
|
+
"active": value["active"]
|
|
1411
|
+
};
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
// src/models/TeamStats.ts
|
|
1415
|
+
function instanceOfTeamStats(value) {
|
|
1416
|
+
if (!("batting" in value) || value["batting"] === void 0) return false;
|
|
1417
|
+
if (!("pitching" in value) || value["pitching"] === void 0) return false;
|
|
1418
|
+
if (!("fielding" in value) || value["fielding"] === void 0) return false;
|
|
1419
|
+
return true;
|
|
1420
|
+
}
|
|
1421
|
+
function TeamStatsFromJSON(json) {
|
|
1422
|
+
return TeamStatsFromJSONTyped(json, false);
|
|
1423
|
+
}
|
|
1424
|
+
function TeamStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1425
|
+
if (json == null) {
|
|
1426
|
+
return json;
|
|
1427
|
+
}
|
|
1428
|
+
return {
|
|
1429
|
+
"batting": BattingStatsFromJSON(json["batting"]),
|
|
1430
|
+
"pitching": PitchingStatsFromJSON(json["pitching"]),
|
|
1431
|
+
"fielding": FieldingStatsFromJSON(json["fielding"])
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
function TeamStatsToJSON(json) {
|
|
1435
|
+
return TeamStatsToJSONTyped(json, false);
|
|
1436
|
+
}
|
|
1437
|
+
function TeamStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1438
|
+
if (value == null) {
|
|
1439
|
+
return value;
|
|
1440
|
+
}
|
|
1441
|
+
return {
|
|
1442
|
+
"batting": BattingStatsToJSON(value["batting"]),
|
|
1443
|
+
"pitching": PitchingStatsToJSON(value["pitching"]),
|
|
1444
|
+
"fielding": FieldingStatsToJSON(value["fielding"])
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
// src/models/BoxscoreTeam.ts
|
|
1449
|
+
function instanceOfBoxscoreTeam(value) {
|
|
1450
|
+
if (!("team" in value) || value["team"] === void 0) return false;
|
|
1451
|
+
if (!("teamStats" in value) || value["teamStats"] === void 0) return false;
|
|
1452
|
+
if (!("players" in value) || value["players"] === void 0) return false;
|
|
1453
|
+
return true;
|
|
1454
|
+
}
|
|
1455
|
+
function BoxscoreTeamFromJSON(json) {
|
|
1456
|
+
return BoxscoreTeamFromJSONTyped(json, false);
|
|
1457
|
+
}
|
|
1458
|
+
function BoxscoreTeamFromJSONTyped(json, ignoreDiscriminator) {
|
|
1459
|
+
if (json == null) {
|
|
1460
|
+
return json;
|
|
1461
|
+
}
|
|
1462
|
+
return {
|
|
1463
|
+
"team": TeamFromJSON(json["team"]),
|
|
1464
|
+
"teamStats": TeamStatsFromJSON(json["teamStats"]),
|
|
1465
|
+
"players": mapValues(json["players"], PlayerFromJSON)
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1468
|
+
function BoxscoreTeamToJSON(json) {
|
|
1469
|
+
return BoxscoreTeamToJSONTyped(json, false);
|
|
1470
|
+
}
|
|
1471
|
+
function BoxscoreTeamToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1472
|
+
if (value == null) {
|
|
1473
|
+
return value;
|
|
1474
|
+
}
|
|
1475
|
+
return {
|
|
1476
|
+
"team": TeamToJSON(value["team"]),
|
|
1477
|
+
"teamStats": TeamStatsToJSON(value["teamStats"]),
|
|
1478
|
+
"players": mapValues(value["players"], PlayerToJSON)
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
// src/models/BoxscoreTeams.ts
|
|
1483
|
+
function instanceOfBoxscoreTeams(value) {
|
|
1484
|
+
if (!("away" in value) || value["away"] === void 0) return false;
|
|
1485
|
+
if (!("home" in value) || value["home"] === void 0) return false;
|
|
1486
|
+
return true;
|
|
1487
|
+
}
|
|
1488
|
+
function BoxscoreTeamsFromJSON(json) {
|
|
1489
|
+
return BoxscoreTeamsFromJSONTyped(json, false);
|
|
1490
|
+
}
|
|
1491
|
+
function BoxscoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1492
|
+
if (json == null) {
|
|
1493
|
+
return json;
|
|
1494
|
+
}
|
|
1495
|
+
return {
|
|
1496
|
+
"away": BoxscoreTeamFromJSON(json["away"]),
|
|
1497
|
+
"home": BoxscoreTeamFromJSON(json["home"])
|
|
1498
|
+
};
|
|
1499
|
+
}
|
|
1500
|
+
function BoxscoreTeamsToJSON(json) {
|
|
1501
|
+
return BoxscoreTeamsToJSONTyped(json, false);
|
|
1502
|
+
}
|
|
1503
|
+
function BoxscoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1504
|
+
if (value == null) {
|
|
1505
|
+
return value;
|
|
1506
|
+
}
|
|
1507
|
+
return {
|
|
1508
|
+
"away": BoxscoreTeamToJSON(value["away"]),
|
|
1509
|
+
"home": BoxscoreTeamToJSON(value["home"])
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
// src/models/Boxscore.ts
|
|
1514
|
+
function instanceOfBoxscore(value) {
|
|
1515
|
+
if (!("teams" in value) || value["teams"] === void 0) return false;
|
|
1516
|
+
if (!("officials" in value) || value["officials"] === void 0) return false;
|
|
1517
|
+
return true;
|
|
1518
|
+
}
|
|
1519
|
+
function BoxscoreFromJSON(json) {
|
|
1520
|
+
return BoxscoreFromJSONTyped(json, false);
|
|
1521
|
+
}
|
|
1522
|
+
function BoxscoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
1523
|
+
if (json == null) {
|
|
1524
|
+
return json;
|
|
1525
|
+
}
|
|
1526
|
+
return {
|
|
1527
|
+
"teams": BoxscoreTeamsFromJSON(json["teams"]),
|
|
1528
|
+
"officials": json["officials"].map(GameOfficialFromJSON)
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
function BoxscoreToJSON(json) {
|
|
1532
|
+
return BoxscoreToJSONTyped(json, false);
|
|
1533
|
+
}
|
|
1534
|
+
function BoxscoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1535
|
+
if (value == null) {
|
|
1536
|
+
return value;
|
|
1537
|
+
}
|
|
1538
|
+
return {
|
|
1539
|
+
"teams": BoxscoreTeamsToJSON(value["teams"]),
|
|
1540
|
+
"officials": value["officials"].map(GameOfficialToJSON)
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
|
|
777
1544
|
// src/models/DivisionStandings.ts
|
|
778
1545
|
function instanceOfDivisionStandings(value) {
|
|
779
1546
|
if (!("league" in value) || value["league"] === void 0) return false;
|
|
@@ -795,10 +1562,13 @@ function DivisionStandingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
795
1562
|
"division": DivisionFromJSON(json["division"]),
|
|
796
1563
|
"sport": SportFromJSON(json["sport"]),
|
|
797
1564
|
"lastUpdated": json["lastUpdated"] == null ? void 0 : json["lastUpdated"],
|
|
798
|
-
"teamRecords": json["teamRecords"].map(
|
|
1565
|
+
"teamRecords": json["teamRecords"].map(RecordFromJSON)
|
|
799
1566
|
};
|
|
800
1567
|
}
|
|
801
|
-
function DivisionStandingsToJSON(
|
|
1568
|
+
function DivisionStandingsToJSON(json) {
|
|
1569
|
+
return DivisionStandingsToJSONTyped(json, false);
|
|
1570
|
+
}
|
|
1571
|
+
function DivisionStandingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
802
1572
|
if (value == null) {
|
|
803
1573
|
return value;
|
|
804
1574
|
}
|
|
@@ -808,7 +1578,7 @@ function DivisionStandingsToJSON(value) {
|
|
|
808
1578
|
"division": DivisionToJSON(value["division"]),
|
|
809
1579
|
"sport": SportToJSON(value["sport"]),
|
|
810
1580
|
"lastUpdated": value["lastUpdated"],
|
|
811
|
-
"teamRecords": value["teamRecords"].map(
|
|
1581
|
+
"teamRecords": value["teamRecords"].map(RecordToJSON)
|
|
812
1582
|
};
|
|
813
1583
|
}
|
|
814
1584
|
|
|
@@ -827,7 +1597,10 @@ function DivisionStandingsListFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
827
1597
|
"records": json["records"] == null ? void 0 : json["records"].map(DivisionStandingsFromJSON)
|
|
828
1598
|
};
|
|
829
1599
|
}
|
|
830
|
-
function DivisionStandingsListToJSON(
|
|
1600
|
+
function DivisionStandingsListToJSON(json) {
|
|
1601
|
+
return DivisionStandingsListToJSONTyped(json, false);
|
|
1602
|
+
}
|
|
1603
|
+
function DivisionStandingsListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
831
1604
|
if (value == null) {
|
|
832
1605
|
return value;
|
|
833
1606
|
}
|
|
@@ -837,15 +1610,16 @@ function DivisionStandingsListToJSON(value) {
|
|
|
837
1610
|
}
|
|
838
1611
|
|
|
839
1612
|
// src/models/GameStatusCode.ts
|
|
840
|
-
var GameStatusCode = {
|
|
841
|
-
Final
|
|
842
|
-
Postponed
|
|
843
|
-
Scheduled
|
|
844
|
-
InProgress
|
|
845
|
-
Pregame
|
|
846
|
-
GameOver
|
|
847
|
-
Canceled
|
|
848
|
-
|
|
1613
|
+
var GameStatusCode = /* @__PURE__ */ ((GameStatusCode2) => {
|
|
1614
|
+
GameStatusCode2["Final"] = "F";
|
|
1615
|
+
GameStatusCode2["Postponed"] = "D";
|
|
1616
|
+
GameStatusCode2["Scheduled"] = "S";
|
|
1617
|
+
GameStatusCode2["InProgress"] = "I";
|
|
1618
|
+
GameStatusCode2["Pregame"] = "P";
|
|
1619
|
+
GameStatusCode2["GameOver"] = "O";
|
|
1620
|
+
GameStatusCode2["Canceled"] = "C";
|
|
1621
|
+
return GameStatusCode2;
|
|
1622
|
+
})(GameStatusCode || {});
|
|
849
1623
|
function instanceOfGameStatusCode(value) {
|
|
850
1624
|
for (const key in GameStatusCode) {
|
|
851
1625
|
if (Object.prototype.hasOwnProperty.call(GameStatusCode, key)) {
|
|
@@ -865,6 +1639,9 @@ function GameStatusCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
865
1639
|
function GameStatusCodeToJSON(value) {
|
|
866
1640
|
return value;
|
|
867
1641
|
}
|
|
1642
|
+
function GameStatusCodeToJSONTyped(value, ignoreDiscriminator) {
|
|
1643
|
+
return value;
|
|
1644
|
+
}
|
|
868
1645
|
|
|
869
1646
|
// src/models/GameStatus.ts
|
|
870
1647
|
function instanceOfGameStatus(value) {
|
|
@@ -886,7 +1663,10 @@ function GameStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
886
1663
|
"abstractGameCode": json["abstractGameCode"] == null ? void 0 : json["abstractGameCode"]
|
|
887
1664
|
};
|
|
888
1665
|
}
|
|
889
|
-
function GameStatusToJSON(
|
|
1666
|
+
function GameStatusToJSON(json) {
|
|
1667
|
+
return GameStatusToJSONTyped(json, false);
|
|
1668
|
+
}
|
|
1669
|
+
function GameStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
890
1670
|
if (value == null) {
|
|
891
1671
|
return value;
|
|
892
1672
|
}
|
|
@@ -923,7 +1703,10 @@ function GameTeamFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
923
1703
|
"seriesNumber": json["seriesNumber"] == null ? void 0 : json["seriesNumber"]
|
|
924
1704
|
};
|
|
925
1705
|
}
|
|
926
|
-
function GameTeamToJSON(
|
|
1706
|
+
function GameTeamToJSON(json) {
|
|
1707
|
+
return GameTeamToJSONTyped(json, false);
|
|
1708
|
+
}
|
|
1709
|
+
function GameTeamToJSONTyped(value, ignoreDiscriminator = false) {
|
|
927
1710
|
if (value == null) {
|
|
928
1711
|
return value;
|
|
929
1712
|
}
|
|
@@ -955,7 +1738,10 @@ function GameTeamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
955
1738
|
"home": GameTeamFromJSON(json["home"])
|
|
956
1739
|
};
|
|
957
1740
|
}
|
|
958
|
-
function GameTeamsToJSON(
|
|
1741
|
+
function GameTeamsToJSON(json) {
|
|
1742
|
+
return GameTeamsToJSONTyped(json, false);
|
|
1743
|
+
}
|
|
1744
|
+
function GameTeamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
959
1745
|
if (value == null) {
|
|
960
1746
|
return value;
|
|
961
1747
|
}
|
|
@@ -966,15 +1752,16 @@ function GameTeamsToJSON(value) {
|
|
|
966
1752
|
}
|
|
967
1753
|
|
|
968
1754
|
// src/models/GameType.ts
|
|
969
|
-
var GameType = {
|
|
970
|
-
Exhibition
|
|
971
|
-
SpringTraining
|
|
972
|
-
Regular
|
|
973
|
-
WildCardSeries
|
|
974
|
-
DivisionSeries
|
|
975
|
-
LeagueChampionshipSeries
|
|
976
|
-
WorldSeries
|
|
977
|
-
|
|
1755
|
+
var GameType = /* @__PURE__ */ ((GameType2) => {
|
|
1756
|
+
GameType2["Exhibition"] = "E";
|
|
1757
|
+
GameType2["SpringTraining"] = "S";
|
|
1758
|
+
GameType2["Regular"] = "R";
|
|
1759
|
+
GameType2["WildCardSeries"] = "F";
|
|
1760
|
+
GameType2["DivisionSeries"] = "D";
|
|
1761
|
+
GameType2["LeagueChampionshipSeries"] = "L";
|
|
1762
|
+
GameType2["WorldSeries"] = "W";
|
|
1763
|
+
return GameType2;
|
|
1764
|
+
})(GameType || {});
|
|
978
1765
|
function instanceOfGameType(value) {
|
|
979
1766
|
for (const key in GameType) {
|
|
980
1767
|
if (Object.prototype.hasOwnProperty.call(GameType, key)) {
|
|
@@ -994,6 +1781,9 @@ function GameTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
994
1781
|
function GameTypeToJSON(value) {
|
|
995
1782
|
return value;
|
|
996
1783
|
}
|
|
1784
|
+
function GameTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
1785
|
+
return value;
|
|
1786
|
+
}
|
|
997
1787
|
|
|
998
1788
|
// src/models/Game.ts
|
|
999
1789
|
function instanceOfGame(value) {
|
|
@@ -1053,7 +1843,10 @@ function GameFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1053
1843
|
"ifNecessaryDescription": json["ifNecessaryDescription"] == null ? void 0 : json["ifNecessaryDescription"]
|
|
1054
1844
|
};
|
|
1055
1845
|
}
|
|
1056
|
-
function GameToJSON(
|
|
1846
|
+
function GameToJSON(json) {
|
|
1847
|
+
return GameToJSONTyped(json, false);
|
|
1848
|
+
}
|
|
1849
|
+
function GameToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1057
1850
|
if (value == null) {
|
|
1058
1851
|
return value;
|
|
1059
1852
|
}
|
|
@@ -1112,7 +1905,10 @@ function LinescoreTeamFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1112
1905
|
"leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"]
|
|
1113
1906
|
};
|
|
1114
1907
|
}
|
|
1115
|
-
function LinescoreTeamToJSON(
|
|
1908
|
+
function LinescoreTeamToJSON(json) {
|
|
1909
|
+
return LinescoreTeamToJSONTyped(json, false);
|
|
1910
|
+
}
|
|
1911
|
+
function LinescoreTeamToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1116
1912
|
if (value == null) {
|
|
1117
1913
|
return value;
|
|
1118
1914
|
}
|
|
@@ -1142,7 +1938,10 @@ function InningFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1142
1938
|
"away": json["away"] == null ? void 0 : LinescoreTeamFromJSON(json["away"])
|
|
1143
1939
|
};
|
|
1144
1940
|
}
|
|
1145
|
-
function InningToJSON(
|
|
1941
|
+
function InningToJSON(json) {
|
|
1942
|
+
return InningToJSONTyped(json, false);
|
|
1943
|
+
}
|
|
1944
|
+
function InningToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1146
1945
|
if (value == null) {
|
|
1147
1946
|
return value;
|
|
1148
1947
|
}
|
|
@@ -1170,7 +1969,10 @@ function LinescoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1170
1969
|
"home": json["home"] == null ? void 0 : LinescoreTeamFromJSON(json["home"])
|
|
1171
1970
|
};
|
|
1172
1971
|
}
|
|
1173
|
-
function LinescoreTeamsToJSON(
|
|
1972
|
+
function LinescoreTeamsToJSON(json) {
|
|
1973
|
+
return LinescoreTeamsToJSONTyped(json, false);
|
|
1974
|
+
}
|
|
1975
|
+
function LinescoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1174
1976
|
if (value == null) {
|
|
1175
1977
|
return value;
|
|
1176
1978
|
}
|
|
@@ -1205,7 +2007,10 @@ function LinescoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1205
2007
|
"outs": json["outs"] == null ? void 0 : json["outs"]
|
|
1206
2008
|
};
|
|
1207
2009
|
}
|
|
1208
|
-
function LinescoreToJSON(
|
|
2010
|
+
function LinescoreToJSON(json) {
|
|
2011
|
+
return LinescoreToJSONTyped(json, false);
|
|
2012
|
+
}
|
|
2013
|
+
function LinescoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1209
2014
|
if (value == null) {
|
|
1210
2015
|
return value;
|
|
1211
2016
|
}
|
|
@@ -1245,7 +2050,10 @@ function ScheduleDayFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1245
2050
|
"games": json["games"].map(GameFromJSON)
|
|
1246
2051
|
};
|
|
1247
2052
|
}
|
|
1248
|
-
function ScheduleDayToJSON(
|
|
2053
|
+
function ScheduleDayToJSON(json) {
|
|
2054
|
+
return ScheduleDayToJSONTyped(json, false);
|
|
2055
|
+
}
|
|
2056
|
+
function ScheduleDayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1249
2057
|
if (value == null) {
|
|
1250
2058
|
return value;
|
|
1251
2059
|
}
|
|
@@ -1283,7 +2091,10 @@ function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1283
2091
|
"dates": json["dates"].map(ScheduleDayFromJSON)
|
|
1284
2092
|
};
|
|
1285
2093
|
}
|
|
1286
|
-
function ScheduleToJSON(
|
|
2094
|
+
function ScheduleToJSON(json) {
|
|
2095
|
+
return ScheduleToJSONTyped(json, false);
|
|
2096
|
+
}
|
|
2097
|
+
function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1287
2098
|
if (value == null) {
|
|
1288
2099
|
return value;
|
|
1289
2100
|
}
|
|
@@ -1336,7 +2147,10 @@ function SeasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1336
2147
|
"qualifierOutsPitched": json["qualifierOutsPitched"] == null ? void 0 : json["qualifierOutsPitched"]
|
|
1337
2148
|
};
|
|
1338
2149
|
}
|
|
1339
|
-
function SeasonToJSON(
|
|
2150
|
+
function SeasonToJSON(json) {
|
|
2151
|
+
return SeasonToJSONTyped(json, false);
|
|
2152
|
+
}
|
|
2153
|
+
function SeasonToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1340
2154
|
if (value == null) {
|
|
1341
2155
|
return value;
|
|
1342
2156
|
}
|
|
@@ -1380,7 +2194,10 @@ function SeasonsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1380
2194
|
"seasons": json["seasons"] == null ? void 0 : json["seasons"].map(SeasonFromJSON)
|
|
1381
2195
|
};
|
|
1382
2196
|
}
|
|
1383
|
-
function SeasonsToJSON(
|
|
2197
|
+
function SeasonsToJSON(json) {
|
|
2198
|
+
return SeasonsToJSONTyped(json, false);
|
|
2199
|
+
}
|
|
2200
|
+
function SeasonsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1384
2201
|
if (value == null) {
|
|
1385
2202
|
return value;
|
|
1386
2203
|
}
|
|
@@ -1404,7 +2221,10 @@ function TeamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1404
2221
|
"teams": json["teams"] == null ? void 0 : json["teams"].map(TeamFromJSON)
|
|
1405
2222
|
};
|
|
1406
2223
|
}
|
|
1407
|
-
function TeamsToJSON(
|
|
2224
|
+
function TeamsToJSON(json) {
|
|
2225
|
+
return TeamsToJSONTyped(json, false);
|
|
2226
|
+
}
|
|
2227
|
+
function TeamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1408
2228
|
if (value == null) {
|
|
1409
2229
|
return value;
|
|
1410
2230
|
}
|
|
@@ -1451,6 +2271,42 @@ var MlbApi = class extends BaseAPI {
|
|
|
1451
2271
|
return yield response.value();
|
|
1452
2272
|
});
|
|
1453
2273
|
}
|
|
2274
|
+
/**
|
|
2275
|
+
* Returns Boxscore
|
|
2276
|
+
* Retrieves boxscore
|
|
2277
|
+
*/
|
|
2278
|
+
getBoxscoreRaw(requestParameters, initOverrides) {
|
|
2279
|
+
return __async(this, null, function* () {
|
|
2280
|
+
if (requestParameters["gamePk"] == null) {
|
|
2281
|
+
throw new RequiredError(
|
|
2282
|
+
"gamePk",
|
|
2283
|
+
'Required parameter "gamePk" was null or undefined when calling getBoxscore().'
|
|
2284
|
+
);
|
|
2285
|
+
}
|
|
2286
|
+
const queryParameters = {};
|
|
2287
|
+
if (requestParameters["fields"] != null) {
|
|
2288
|
+
queryParameters["fields"] = requestParameters["fields"].join(COLLECTION_FORMATS["csv"]);
|
|
2289
|
+
}
|
|
2290
|
+
const headerParameters = {};
|
|
2291
|
+
const response = yield this.request({
|
|
2292
|
+
path: `/v1/game/{gamePk}/boxscore`.replace(`{${"gamePk"}}`, encodeURIComponent(String(requestParameters["gamePk"]))),
|
|
2293
|
+
method: "GET",
|
|
2294
|
+
headers: headerParameters,
|
|
2295
|
+
query: queryParameters
|
|
2296
|
+
}, initOverrides);
|
|
2297
|
+
return new JSONApiResponse(response, (jsonValue) => BoxscoreFromJSON(jsonValue));
|
|
2298
|
+
});
|
|
2299
|
+
}
|
|
2300
|
+
/**
|
|
2301
|
+
* Returns Boxscore
|
|
2302
|
+
* Retrieves boxscore
|
|
2303
|
+
*/
|
|
2304
|
+
getBoxscore(requestParameters, initOverrides) {
|
|
2305
|
+
return __async(this, null, function* () {
|
|
2306
|
+
const response = yield this.getBoxscoreRaw(requestParameters, initOverrides);
|
|
2307
|
+
return yield response.value();
|
|
2308
|
+
});
|
|
2309
|
+
}
|
|
1454
2310
|
/**
|
|
1455
2311
|
* Returns Linescore
|
|
1456
2312
|
* Retrieves linescore
|
|
@@ -1464,6 +2320,9 @@ var MlbApi = class extends BaseAPI {
|
|
|
1464
2320
|
);
|
|
1465
2321
|
}
|
|
1466
2322
|
const queryParameters = {};
|
|
2323
|
+
if (requestParameters["fields"] != null) {
|
|
2324
|
+
queryParameters["fields"] = requestParameters["fields"].join(COLLECTION_FORMATS["csv"]);
|
|
2325
|
+
}
|
|
1467
2326
|
const headerParameters = {};
|
|
1468
2327
|
const response = yield this.request({
|
|
1469
2328
|
path: `/v1/game/{gamePk}/linescore`.replace(`{${"gamePk"}}`, encodeURIComponent(String(requestParameters["gamePk"]))),
|
|
@@ -1689,7 +2548,23 @@ var MlbApi = class extends BaseAPI {
|
|
|
1689
2548
|
export {
|
|
1690
2549
|
BASE_PATH,
|
|
1691
2550
|
BaseAPI,
|
|
2551
|
+
BattingStatsFromJSON,
|
|
2552
|
+
BattingStatsFromJSONTyped,
|
|
2553
|
+
BattingStatsToJSON,
|
|
2554
|
+
BattingStatsToJSONTyped,
|
|
1692
2555
|
BlobApiResponse,
|
|
2556
|
+
BoxscoreFromJSON,
|
|
2557
|
+
BoxscoreFromJSONTyped,
|
|
2558
|
+
BoxscoreTeamFromJSON,
|
|
2559
|
+
BoxscoreTeamFromJSONTyped,
|
|
2560
|
+
BoxscoreTeamToJSON,
|
|
2561
|
+
BoxscoreTeamToJSONTyped,
|
|
2562
|
+
BoxscoreTeamsFromJSON,
|
|
2563
|
+
BoxscoreTeamsFromJSONTyped,
|
|
2564
|
+
BoxscoreTeamsToJSON,
|
|
2565
|
+
BoxscoreTeamsToJSONTyped,
|
|
2566
|
+
BoxscoreToJSON,
|
|
2567
|
+
BoxscoreToJSONTyped,
|
|
1693
2568
|
COLLECTION_FORMATS,
|
|
1694
2569
|
Configuration,
|
|
1695
2570
|
DefaultConfig,
|
|
@@ -1700,92 +2575,177 @@ export {
|
|
|
1700
2575
|
DivisionStandingsListFromJSON,
|
|
1701
2576
|
DivisionStandingsListFromJSONTyped,
|
|
1702
2577
|
DivisionStandingsListToJSON,
|
|
2578
|
+
DivisionStandingsListToJSONTyped,
|
|
1703
2579
|
DivisionStandingsToJSON,
|
|
2580
|
+
DivisionStandingsToJSONTyped,
|
|
1704
2581
|
DivisionToJSON,
|
|
2582
|
+
DivisionToJSONTyped,
|
|
1705
2583
|
FetchError,
|
|
2584
|
+
FieldingStatsFromJSON,
|
|
2585
|
+
FieldingStatsFromJSONTyped,
|
|
2586
|
+
FieldingStatsToJSON,
|
|
2587
|
+
FieldingStatsToJSONTyped,
|
|
1706
2588
|
GameFromJSON,
|
|
1707
2589
|
GameFromJSONTyped,
|
|
2590
|
+
GameOfficialFromJSON,
|
|
2591
|
+
GameOfficialFromJSONTyped,
|
|
2592
|
+
GameOfficialToJSON,
|
|
2593
|
+
GameOfficialToJSONTyped,
|
|
1708
2594
|
GameStatusCode,
|
|
1709
2595
|
GameStatusCodeFromJSON,
|
|
1710
2596
|
GameStatusCodeFromJSONTyped,
|
|
1711
2597
|
GameStatusCodeToJSON,
|
|
2598
|
+
GameStatusCodeToJSONTyped,
|
|
1712
2599
|
GameStatusFromJSON,
|
|
1713
2600
|
GameStatusFromJSONTyped,
|
|
1714
2601
|
GameStatusToJSON,
|
|
2602
|
+
GameStatusToJSONTyped,
|
|
1715
2603
|
GameTeamFromJSON,
|
|
1716
2604
|
GameTeamFromJSONTyped,
|
|
1717
2605
|
GameTeamToJSON,
|
|
2606
|
+
GameTeamToJSONTyped,
|
|
1718
2607
|
GameTeamsFromJSON,
|
|
1719
2608
|
GameTeamsFromJSONTyped,
|
|
1720
2609
|
GameTeamsToJSON,
|
|
2610
|
+
GameTeamsToJSONTyped,
|
|
1721
2611
|
GameToJSON,
|
|
2612
|
+
GameToJSONTyped,
|
|
1722
2613
|
GameType,
|
|
1723
2614
|
GameTypeFromJSON,
|
|
1724
2615
|
GameTypeFromJSONTyped,
|
|
1725
2616
|
GameTypeToJSON,
|
|
2617
|
+
GameTypeToJSONTyped,
|
|
1726
2618
|
InningFromJSON,
|
|
1727
2619
|
InningFromJSONTyped,
|
|
1728
2620
|
InningToJSON,
|
|
2621
|
+
InningToJSONTyped,
|
|
1729
2622
|
JSONApiResponse,
|
|
1730
2623
|
LeagueDatesFromJSON,
|
|
1731
2624
|
LeagueDatesFromJSONTyped,
|
|
1732
2625
|
LeagueDatesToJSON,
|
|
2626
|
+
LeagueDatesToJSONTyped,
|
|
1733
2627
|
LeagueFromJSON,
|
|
1734
2628
|
LeagueFromJSONTyped,
|
|
1735
2629
|
LeagueRecordFromJSON,
|
|
1736
2630
|
LeagueRecordFromJSONTyped,
|
|
1737
2631
|
LeagueRecordToJSON,
|
|
2632
|
+
LeagueRecordToJSONTyped,
|
|
1738
2633
|
LeagueToJSON,
|
|
2634
|
+
LeagueToJSONTyped,
|
|
1739
2635
|
LinescoreFromJSON,
|
|
1740
2636
|
LinescoreFromJSONTyped,
|
|
1741
2637
|
LinescoreTeamFromJSON,
|
|
1742
2638
|
LinescoreTeamFromJSONTyped,
|
|
1743
2639
|
LinescoreTeamToJSON,
|
|
2640
|
+
LinescoreTeamToJSONTyped,
|
|
1744
2641
|
LinescoreTeamsFromJSON,
|
|
1745
2642
|
LinescoreTeamsFromJSONTyped,
|
|
1746
2643
|
LinescoreTeamsToJSON,
|
|
2644
|
+
LinescoreTeamsToJSONTyped,
|
|
1747
2645
|
LinescoreToJSON,
|
|
2646
|
+
LinescoreToJSONTyped,
|
|
1748
2647
|
MlbApi,
|
|
2648
|
+
OfficialFromJSON,
|
|
2649
|
+
OfficialFromJSONTyped,
|
|
2650
|
+
OfficialToJSON,
|
|
2651
|
+
OfficialToJSONTyped,
|
|
2652
|
+
PitchingStatsFromJSON,
|
|
2653
|
+
PitchingStatsFromJSONTyped,
|
|
2654
|
+
PitchingStatsToJSON,
|
|
2655
|
+
PitchingStatsToJSONTyped,
|
|
2656
|
+
PlayerFromJSON,
|
|
2657
|
+
PlayerFromJSONTyped,
|
|
2658
|
+
PlayerGameStatusFromJSON,
|
|
2659
|
+
PlayerGameStatusFromJSONTyped,
|
|
2660
|
+
PlayerGameStatusToJSON,
|
|
2661
|
+
PlayerGameStatusToJSONTyped,
|
|
2662
|
+
PlayerPersonFromJSON,
|
|
2663
|
+
PlayerPersonFromJSONTyped,
|
|
2664
|
+
PlayerPersonToJSON,
|
|
2665
|
+
PlayerPersonToJSONTyped,
|
|
2666
|
+
PlayerPositionFromJSON,
|
|
2667
|
+
PlayerPositionFromJSONTyped,
|
|
2668
|
+
PlayerPositionToJSON,
|
|
2669
|
+
PlayerPositionToJSONTyped,
|
|
2670
|
+
PlayerSeasonStatsFromJSON,
|
|
2671
|
+
PlayerSeasonStatsFromJSONTyped,
|
|
2672
|
+
PlayerSeasonStatsToJSON,
|
|
2673
|
+
PlayerSeasonStatsToJSONTyped,
|
|
2674
|
+
PlayerStatsFromJSON,
|
|
2675
|
+
PlayerStatsFromJSONTyped,
|
|
2676
|
+
PlayerStatsToJSON,
|
|
2677
|
+
PlayerStatsToJSONTyped,
|
|
2678
|
+
PlayerStatusFromJSON,
|
|
2679
|
+
PlayerStatusFromJSONTyped,
|
|
2680
|
+
PlayerStatusToJSON,
|
|
2681
|
+
PlayerStatusToJSONTyped,
|
|
2682
|
+
PlayerToJSON,
|
|
2683
|
+
PlayerToJSONTyped,
|
|
2684
|
+
PositionFromJSON,
|
|
2685
|
+
PositionFromJSONTyped,
|
|
2686
|
+
PositionToJSON,
|
|
2687
|
+
PositionToJSONTyped,
|
|
2688
|
+
RecordFromJSON,
|
|
2689
|
+
RecordFromJSONTyped,
|
|
2690
|
+
RecordToJSON,
|
|
2691
|
+
RecordToJSONTyped,
|
|
1749
2692
|
RequiredError,
|
|
1750
2693
|
ResponseError,
|
|
1751
2694
|
ScheduleDayFromJSON,
|
|
1752
2695
|
ScheduleDayFromJSONTyped,
|
|
1753
2696
|
ScheduleDayToJSON,
|
|
2697
|
+
ScheduleDayToJSONTyped,
|
|
1754
2698
|
ScheduleFromJSON,
|
|
1755
2699
|
ScheduleFromJSONTyped,
|
|
1756
2700
|
ScheduleToJSON,
|
|
2701
|
+
ScheduleToJSONTyped,
|
|
1757
2702
|
SeasonFromJSON,
|
|
1758
2703
|
SeasonFromJSONTyped,
|
|
1759
2704
|
SeasonToJSON,
|
|
2705
|
+
SeasonToJSONTyped,
|
|
1760
2706
|
SeasonsFromJSON,
|
|
1761
2707
|
SeasonsFromJSONTyped,
|
|
1762
2708
|
SeasonsToJSON,
|
|
2709
|
+
SeasonsToJSONTyped,
|
|
1763
2710
|
SportFromJSON,
|
|
1764
2711
|
SportFromJSONTyped,
|
|
1765
2712
|
SportToJSON,
|
|
2713
|
+
SportToJSONTyped,
|
|
1766
2714
|
StreakFromJSON,
|
|
1767
2715
|
StreakFromJSONTyped,
|
|
1768
2716
|
StreakStreakTypeEnum,
|
|
1769
2717
|
StreakToJSON,
|
|
2718
|
+
StreakToJSONTyped,
|
|
1770
2719
|
TeamFromJSON,
|
|
1771
|
-
TeamFromJSONTyped,
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
2720
|
+
TeamFromJSONTyped2 as TeamFromJSONTyped,
|
|
2721
|
+
TeamStatsFromJSON,
|
|
2722
|
+
TeamStatsFromJSONTyped,
|
|
2723
|
+
TeamStatsToJSON,
|
|
2724
|
+
TeamStatsToJSONTyped,
|
|
1775
2725
|
TeamToJSON,
|
|
2726
|
+
TeamToJSONTyped2 as TeamToJSONTyped,
|
|
1776
2727
|
TeamsFromJSON,
|
|
1777
2728
|
TeamsFromJSONTyped,
|
|
1778
2729
|
TeamsToJSON,
|
|
2730
|
+
TeamsToJSONTyped,
|
|
1779
2731
|
TextApiResponse,
|
|
1780
2732
|
VenueFromJSON,
|
|
1781
2733
|
VenueFromJSONTyped,
|
|
1782
2734
|
VenueToJSON,
|
|
2735
|
+
VenueToJSONTyped,
|
|
1783
2736
|
VoidApiResponse,
|
|
1784
2737
|
canConsumeForm,
|
|
2738
|
+
exists,
|
|
2739
|
+
instanceOfBattingStats,
|
|
2740
|
+
instanceOfBoxscore,
|
|
2741
|
+
instanceOfBoxscoreTeam,
|
|
2742
|
+
instanceOfBoxscoreTeams,
|
|
1785
2743
|
instanceOfDivision,
|
|
1786
2744
|
instanceOfDivisionStandings,
|
|
1787
2745
|
instanceOfDivisionStandingsList,
|
|
2746
|
+
instanceOfFieldingStats,
|
|
1788
2747
|
instanceOfGame,
|
|
2748
|
+
instanceOfGameOfficial,
|
|
1789
2749
|
instanceOfGameStatus,
|
|
1790
2750
|
instanceOfGameStatusCode,
|
|
1791
2751
|
instanceOfGameTeam,
|
|
@@ -1798,6 +2758,17 @@ export {
|
|
|
1798
2758
|
instanceOfLinescore,
|
|
1799
2759
|
instanceOfLinescoreTeam,
|
|
1800
2760
|
instanceOfLinescoreTeams,
|
|
2761
|
+
instanceOfOfficial,
|
|
2762
|
+
instanceOfPitchingStats,
|
|
2763
|
+
instanceOfPlayer,
|
|
2764
|
+
instanceOfPlayerGameStatus,
|
|
2765
|
+
instanceOfPlayerPerson,
|
|
2766
|
+
instanceOfPlayerPosition,
|
|
2767
|
+
instanceOfPlayerSeasonStats,
|
|
2768
|
+
instanceOfPlayerStats,
|
|
2769
|
+
instanceOfPlayerStatus,
|
|
2770
|
+
instanceOfPosition,
|
|
2771
|
+
instanceOfRecord,
|
|
1801
2772
|
instanceOfSchedule,
|
|
1802
2773
|
instanceOfScheduleDay,
|
|
1803
2774
|
instanceOfSeason,
|
|
@@ -1805,7 +2776,7 @@ export {
|
|
|
1805
2776
|
instanceOfSport,
|
|
1806
2777
|
instanceOfStreak,
|
|
1807
2778
|
instanceOfTeam,
|
|
1808
|
-
|
|
2779
|
+
instanceOfTeamStats,
|
|
1809
2780
|
instanceOfTeams,
|
|
1810
2781
|
instanceOfVenue,
|
|
1811
2782
|
mapValues,
|