@bp1222/stats-api 0.1.8 → 0.2.1

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.js CHANGED
@@ -63,97 +63,105 @@ __export(src_exports, {
63
63
  COLLECTION_FORMATS: () => COLLECTION_FORMATS,
64
64
  Configuration: () => Configuration,
65
65
  DefaultConfig: () => DefaultConfig,
66
+ DivisionFromJSON: () => DivisionFromJSON,
67
+ DivisionFromJSONTyped: () => DivisionFromJSONTyped,
68
+ DivisionStandingsFromJSON: () => DivisionStandingsFromJSON,
69
+ DivisionStandingsFromJSONTyped: () => DivisionStandingsFromJSONTyped,
70
+ DivisionStandingsListFromJSON: () => DivisionStandingsListFromJSON,
71
+ DivisionStandingsListFromJSONTyped: () => DivisionStandingsListFromJSONTyped,
72
+ DivisionStandingsListToJSON: () => DivisionStandingsListToJSON,
73
+ DivisionStandingsToJSON: () => DivisionStandingsToJSON,
74
+ DivisionToJSON: () => DivisionToJSON,
66
75
  FetchError: () => FetchError,
76
+ GameFromJSON: () => GameFromJSON,
77
+ GameFromJSONTyped: () => GameFromJSONTyped,
78
+ GameStatusCode: () => GameStatusCode,
79
+ GameStatusCodeFromJSON: () => GameStatusCodeFromJSON,
80
+ GameStatusCodeFromJSONTyped: () => GameStatusCodeFromJSONTyped,
81
+ GameStatusCodeToJSON: () => GameStatusCodeToJSON,
82
+ GameStatusFromJSON: () => GameStatusFromJSON,
83
+ GameStatusFromJSONTyped: () => GameStatusFromJSONTyped,
84
+ GameStatusToJSON: () => GameStatusToJSON,
85
+ GameTeamFromJSON: () => GameTeamFromJSON,
86
+ GameTeamFromJSONTyped: () => GameTeamFromJSONTyped,
87
+ GameTeamToJSON: () => GameTeamToJSON,
88
+ GameTeamsFromJSON: () => GameTeamsFromJSON,
89
+ GameTeamsFromJSONTyped: () => GameTeamsFromJSONTyped,
90
+ GameTeamsToJSON: () => GameTeamsToJSON,
91
+ GameToJSON: () => GameToJSON,
92
+ GameType: () => GameType,
93
+ GameTypeFromJSON: () => GameTypeFromJSON,
94
+ GameTypeFromJSONTyped: () => GameTypeFromJSONTyped,
95
+ GameTypeToJSON: () => GameTypeToJSON,
67
96
  JSONApiResponse: () => JSONApiResponse,
68
- MLBDivisionFromJSON: () => MLBDivisionFromJSON,
69
- MLBDivisionFromJSONTyped: () => MLBDivisionFromJSONTyped,
70
- MLBDivisionToJSON: () => MLBDivisionToJSON,
71
- MLBGameFromJSON: () => MLBGameFromJSON,
72
- MLBGameFromJSONTyped: () => MLBGameFromJSONTyped,
73
- MLBGameGameTypeEnum: () => MLBGameGameTypeEnum,
74
- MLBGameStatusCodedGameStateEnum: () => MLBGameStatusCodedGameStateEnum,
75
- MLBGameStatusFromJSON: () => MLBGameStatusFromJSON,
76
- MLBGameStatusFromJSONTyped: () => MLBGameStatusFromJSONTyped,
77
- MLBGameStatusToJSON: () => MLBGameStatusToJSON,
78
- MLBGameTeamFromJSON: () => MLBGameTeamFromJSON,
79
- MLBGameTeamFromJSONTyped: () => MLBGameTeamFromJSONTyped,
80
- MLBGameTeamToJSON: () => MLBGameTeamToJSON,
81
- MLBGameTeamsFromJSON: () => MLBGameTeamsFromJSON,
82
- MLBGameTeamsFromJSONTyped: () => MLBGameTeamsFromJSONTyped,
83
- MLBGameTeamsToJSON: () => MLBGameTeamsToJSON,
84
- MLBGameToJSON: () => MLBGameToJSON,
85
- MLBLeagueDatesFromJSON: () => MLBLeagueDatesFromJSON,
86
- MLBLeagueDatesFromJSONTyped: () => MLBLeagueDatesFromJSONTyped,
87
- MLBLeagueDatesToJSON: () => MLBLeagueDatesToJSON,
88
- MLBLeagueFromJSON: () => MLBLeagueFromJSON,
89
- MLBLeagueFromJSONTyped: () => MLBLeagueFromJSONTyped,
90
- MLBLeagueRecordFromJSON: () => MLBLeagueRecordFromJSON,
91
- MLBLeagueRecordFromJSONTyped: () => MLBLeagueRecordFromJSONTyped,
92
- MLBLeagueRecordToJSON: () => MLBLeagueRecordToJSON,
93
- MLBLeagueToJSON: () => MLBLeagueToJSON,
94
- MLBRecordFromJSON: () => MLBRecordFromJSON,
95
- MLBRecordFromJSONTyped: () => MLBRecordFromJSONTyped,
96
- MLBRecordToJSON: () => MLBRecordToJSON,
97
- MLBScheduleDayFromJSON: () => MLBScheduleDayFromJSON,
98
- MLBScheduleDayFromJSONTyped: () => MLBScheduleDayFromJSONTyped,
99
- MLBScheduleDayToJSON: () => MLBScheduleDayToJSON,
100
- MLBScheduleFromJSON: () => MLBScheduleFromJSON,
101
- MLBScheduleFromJSONTyped: () => MLBScheduleFromJSONTyped,
102
- MLBScheduleToJSON: () => MLBScheduleToJSON,
103
- MLBSeasonFromJSON: () => MLBSeasonFromJSON,
104
- MLBSeasonFromJSONTyped: () => MLBSeasonFromJSONTyped,
105
- MLBSeasonToJSON: () => MLBSeasonToJSON,
106
- MLBSeasonsFromJSON: () => MLBSeasonsFromJSON,
107
- MLBSeasonsFromJSONTyped: () => MLBSeasonsFromJSONTyped,
108
- MLBSeasonsToJSON: () => MLBSeasonsToJSON,
109
- MLBSportFromJSON: () => MLBSportFromJSON,
110
- MLBSportFromJSONTyped: () => MLBSportFromJSONTyped,
111
- MLBSportToJSON: () => MLBSportToJSON,
112
- MLBStandingsFromJSON: () => MLBStandingsFromJSON,
113
- MLBStandingsFromJSONTyped: () => MLBStandingsFromJSONTyped,
114
- MLBStandingsListFromJSON: () => MLBStandingsListFromJSON,
115
- MLBStandingsListFromJSONTyped: () => MLBStandingsListFromJSONTyped,
116
- MLBStandingsListToJSON: () => MLBStandingsListToJSON,
117
- MLBStandingsToJSON: () => MLBStandingsToJSON,
118
- MLBStreakFromJSON: () => MLBStreakFromJSON,
119
- MLBStreakFromJSONTyped: () => MLBStreakFromJSONTyped,
120
- MLBStreakStreakTypeEnum: () => MLBStreakStreakTypeEnum,
121
- MLBStreakToJSON: () => MLBStreakToJSON,
122
- MLBTeamFromJSON: () => MLBTeamFromJSON,
123
- MLBTeamFromJSONTyped: () => MLBTeamFromJSONTyped,
124
- MLBTeamToJSON: () => MLBTeamToJSON,
125
- MLBTeamsFromJSON: () => MLBTeamsFromJSON,
126
- MLBTeamsFromJSONTyped: () => MLBTeamsFromJSONTyped,
127
- MLBTeamsToJSON: () => MLBTeamsToJSON,
128
- MLBVenueFromJSON: () => MLBVenueFromJSON,
129
- MLBVenueFromJSONTyped: () => MLBVenueFromJSONTyped,
130
- MLBVenueToJSON: () => MLBVenueToJSON,
97
+ LeagueDatesFromJSON: () => LeagueDatesFromJSON,
98
+ LeagueDatesFromJSONTyped: () => LeagueDatesFromJSONTyped,
99
+ LeagueDatesToJSON: () => LeagueDatesToJSON,
100
+ LeagueFromJSON: () => LeagueFromJSON,
101
+ LeagueFromJSONTyped: () => LeagueFromJSONTyped,
102
+ LeagueRecordFromJSON: () => LeagueRecordFromJSON,
103
+ LeagueRecordFromJSONTyped: () => LeagueRecordFromJSONTyped,
104
+ LeagueRecordToJSON: () => LeagueRecordToJSON,
105
+ LeagueToJSON: () => LeagueToJSON,
131
106
  MlbApi: () => MlbApi,
132
107
  RequiredError: () => RequiredError,
133
108
  ResponseError: () => ResponseError,
109
+ ScheduleDayFromJSON: () => ScheduleDayFromJSON,
110
+ ScheduleDayFromJSONTyped: () => ScheduleDayFromJSONTyped,
111
+ ScheduleDayToJSON: () => ScheduleDayToJSON,
112
+ ScheduleFromJSON: () => ScheduleFromJSON,
113
+ ScheduleFromJSONTyped: () => ScheduleFromJSONTyped,
114
+ ScheduleToJSON: () => ScheduleToJSON,
115
+ SeasonFromJSON: () => SeasonFromJSON,
116
+ SeasonFromJSONTyped: () => SeasonFromJSONTyped,
117
+ SeasonToJSON: () => SeasonToJSON,
118
+ SeasonsFromJSON: () => SeasonsFromJSON,
119
+ SeasonsFromJSONTyped: () => SeasonsFromJSONTyped,
120
+ SeasonsToJSON: () => SeasonsToJSON,
121
+ SportFromJSON: () => SportFromJSON,
122
+ SportFromJSONTyped: () => SportFromJSONTyped,
123
+ SportToJSON: () => SportToJSON,
124
+ StreakFromJSON: () => StreakFromJSON,
125
+ StreakFromJSONTyped: () => StreakFromJSONTyped,
126
+ StreakStreakTypeEnum: () => StreakStreakTypeEnum,
127
+ StreakToJSON: () => StreakToJSON,
128
+ TeamFromJSON: () => TeamFromJSON,
129
+ TeamFromJSONTyped: () => TeamFromJSONTyped,
130
+ TeamRecordFromJSON: () => TeamRecordFromJSON,
131
+ TeamRecordFromJSONTyped: () => TeamRecordFromJSONTyped,
132
+ TeamRecordToJSON: () => TeamRecordToJSON,
133
+ TeamToJSON: () => TeamToJSON,
134
+ TeamsFromJSON: () => TeamsFromJSON,
135
+ TeamsFromJSONTyped: () => TeamsFromJSONTyped,
136
+ TeamsToJSON: () => TeamsToJSON,
134
137
  TextApiResponse: () => TextApiResponse,
138
+ VenueFromJSON: () => VenueFromJSON,
139
+ VenueFromJSONTyped: () => VenueFromJSONTyped,
140
+ VenueToJSON: () => VenueToJSON,
135
141
  VoidApiResponse: () => VoidApiResponse,
136
142
  canConsumeForm: () => canConsumeForm,
137
- instanceOfMLBDivision: () => instanceOfMLBDivision,
138
- instanceOfMLBGame: () => instanceOfMLBGame,
139
- instanceOfMLBGameStatus: () => instanceOfMLBGameStatus,
140
- instanceOfMLBGameTeam: () => instanceOfMLBGameTeam,
141
- instanceOfMLBGameTeams: () => instanceOfMLBGameTeams,
142
- instanceOfMLBLeague: () => instanceOfMLBLeague,
143
- instanceOfMLBLeagueDates: () => instanceOfMLBLeagueDates,
144
- instanceOfMLBLeagueRecord: () => instanceOfMLBLeagueRecord,
145
- instanceOfMLBRecord: () => instanceOfMLBRecord,
146
- instanceOfMLBSchedule: () => instanceOfMLBSchedule,
147
- instanceOfMLBScheduleDay: () => instanceOfMLBScheduleDay,
148
- instanceOfMLBSeason: () => instanceOfMLBSeason,
149
- instanceOfMLBSeasons: () => instanceOfMLBSeasons,
150
- instanceOfMLBSport: () => instanceOfMLBSport,
151
- instanceOfMLBStandings: () => instanceOfMLBStandings,
152
- instanceOfMLBStandingsList: () => instanceOfMLBStandingsList,
153
- instanceOfMLBStreak: () => instanceOfMLBStreak,
154
- instanceOfMLBTeam: () => instanceOfMLBTeam,
155
- instanceOfMLBTeams: () => instanceOfMLBTeams,
156
- instanceOfMLBVenue: () => instanceOfMLBVenue,
143
+ instanceOfDivision: () => instanceOfDivision,
144
+ instanceOfDivisionStandings: () => instanceOfDivisionStandings,
145
+ instanceOfDivisionStandingsList: () => instanceOfDivisionStandingsList,
146
+ instanceOfGame: () => instanceOfGame,
147
+ instanceOfGameStatus: () => instanceOfGameStatus,
148
+ instanceOfGameStatusCode: () => instanceOfGameStatusCode,
149
+ instanceOfGameTeam: () => instanceOfGameTeam,
150
+ instanceOfGameTeams: () => instanceOfGameTeams,
151
+ instanceOfGameType: () => instanceOfGameType,
152
+ instanceOfLeague: () => instanceOfLeague,
153
+ instanceOfLeagueDates: () => instanceOfLeagueDates,
154
+ instanceOfLeagueRecord: () => instanceOfLeagueRecord,
155
+ instanceOfSchedule: () => instanceOfSchedule,
156
+ instanceOfScheduleDay: () => instanceOfScheduleDay,
157
+ instanceOfSeason: () => instanceOfSeason,
158
+ instanceOfSeasons: () => instanceOfSeasons,
159
+ instanceOfSport: () => instanceOfSport,
160
+ instanceOfStreak: () => instanceOfStreak,
161
+ instanceOfTeam: () => instanceOfTeam,
162
+ instanceOfTeamRecord: () => instanceOfTeamRecord,
163
+ instanceOfTeams: () => instanceOfTeams,
164
+ instanceOfVenue: () => instanceOfVenue,
157
165
  mapValues: () => mapValues,
158
166
  querystring: () => querystring
159
167
  });
@@ -456,14 +464,14 @@ var TextApiResponse = class {
456
464
  }
457
465
  };
458
466
 
459
- // src/models/MLBLeagueDates.ts
460
- function instanceOfMLBLeagueDates(value) {
467
+ // src/models/LeagueDates.ts
468
+ function instanceOfLeagueDates(value) {
461
469
  return true;
462
470
  }
463
- function MLBLeagueDatesFromJSON(json) {
464
- return MLBLeagueDatesFromJSONTyped(json, false);
471
+ function LeagueDatesFromJSON(json) {
472
+ return LeagueDatesFromJSONTyped(json, false);
465
473
  }
466
- function MLBLeagueDatesFromJSONTyped(json, ignoreDiscriminator) {
474
+ function LeagueDatesFromJSONTyped(json, ignoreDiscriminator) {
467
475
  if (json == null) {
468
476
  return json;
469
477
  }
@@ -480,7 +488,7 @@ function MLBLeagueDatesFromJSONTyped(json, ignoreDiscriminator) {
480
488
  "gameLevelGamedayType": json["gameLevelGamedayType"] == null ? void 0 : json["gameLevelGamedayType"]
481
489
  };
482
490
  }
483
- function MLBLeagueDatesToJSON(value) {
491
+ function LeagueDatesToJSON(value) {
484
492
  if (value == null) {
485
493
  return value;
486
494
  }
@@ -498,16 +506,16 @@ function MLBLeagueDatesToJSON(value) {
498
506
  };
499
507
  }
500
508
 
501
- // src/models/MLBLeague.ts
502
- function instanceOfMLBLeague(value) {
509
+ // src/models/League.ts
510
+ function instanceOfLeague(value) {
503
511
  if (!("id" in value) || value["id"] === void 0) return false;
504
512
  if (!("name" in value) || value["name"] === void 0) return false;
505
513
  return true;
506
514
  }
507
- function MLBLeagueFromJSON(json) {
508
- return MLBLeagueFromJSONTyped(json, false);
515
+ function LeagueFromJSON(json) {
516
+ return LeagueFromJSONTyped(json, false);
509
517
  }
510
- function MLBLeagueFromJSONTyped(json, ignoreDiscriminator) {
518
+ function LeagueFromJSONTyped(json, ignoreDiscriminator) {
511
519
  if (json == null) {
512
520
  return json;
513
521
  }
@@ -521,7 +529,7 @@ function MLBLeagueFromJSONTyped(json, ignoreDiscriminator) {
521
529
  "hasWildCard": json["hasWildCard"] == null ? void 0 : json["hasWildCard"],
522
530
  "hasSplitSeason": json["hasSplitSeason"] == null ? void 0 : json["hasSplitSeason"],
523
531
  "hasPlayoffPoints": json["hasPlayoffPoints"] == null ? void 0 : json["hasPlayoffPoints"],
524
- "seasonDateInfo": json["seasonDateInfo"] == null ? void 0 : MLBLeagueDatesFromJSON(json["seasonDateInfo"]),
532
+ "seasonDateInfo": json["seasonDateInfo"] == null ? void 0 : LeagueDatesFromJSON(json["seasonDateInfo"]),
525
533
  "season": json["season"] == null ? void 0 : json["season"],
526
534
  "orgCode": json["orgCode"] == null ? void 0 : json["orgCode"],
527
535
  "conferencesInUse": json["conferencesInUse"] == null ? void 0 : json["conferencesInUse"],
@@ -530,7 +538,7 @@ function MLBLeagueFromJSONTyped(json, ignoreDiscriminator) {
530
538
  "active": json["active"] == null ? void 0 : json["active"]
531
539
  };
532
540
  }
533
- function MLBLeagueToJSON(value) {
541
+ function LeagueToJSON(value) {
534
542
  if (value == null) {
535
543
  return value;
536
544
  }
@@ -544,7 +552,7 @@ function MLBLeagueToJSON(value) {
544
552
  "hasWildCard": value["hasWildCard"],
545
553
  "hasSplitSeason": value["hasSplitSeason"],
546
554
  "hasPlayoffPoints": value["hasPlayoffPoints"],
547
- "seasonDateInfo": MLBLeagueDatesToJSON(value["seasonDateInfo"]),
555
+ "seasonDateInfo": LeagueDatesToJSON(value["seasonDateInfo"]),
548
556
  "season": value["season"],
549
557
  "orgCode": value["orgCode"],
550
558
  "conferencesInUse": value["conferencesInUse"],
@@ -554,15 +562,15 @@ function MLBLeagueToJSON(value) {
554
562
  };
555
563
  }
556
564
 
557
- // src/models/MLBSport.ts
558
- function instanceOfMLBSport(value) {
565
+ // src/models/Sport.ts
566
+ function instanceOfSport(value) {
559
567
  if (!("id" in value) || value["id"] === void 0) return false;
560
568
  return true;
561
569
  }
562
- function MLBSportFromJSON(json) {
563
- return MLBSportFromJSONTyped(json, false);
570
+ function SportFromJSON(json) {
571
+ return SportFromJSONTyped(json, false);
564
572
  }
565
- function MLBSportFromJSONTyped(json, ignoreDiscriminator) {
573
+ function SportFromJSONTyped(json, ignoreDiscriminator) {
566
574
  if (json == null) {
567
575
  return json;
568
576
  }
@@ -576,7 +584,7 @@ function MLBSportFromJSONTyped(json, ignoreDiscriminator) {
576
584
  "activeStatus": json["activeStatus"] == null ? void 0 : json["activeStatus"]
577
585
  };
578
586
  }
579
- function MLBSportToJSON(value) {
587
+ function SportToJSON(value) {
580
588
  if (value == null) {
581
589
  return value;
582
590
  }
@@ -591,16 +599,16 @@ function MLBSportToJSON(value) {
591
599
  };
592
600
  }
593
601
 
594
- // src/models/MLBDivision.ts
595
- function instanceOfMLBDivision(value) {
602
+ // src/models/Division.ts
603
+ function instanceOfDivision(value) {
596
604
  if (!("id" in value) || value["id"] === void 0) return false;
597
605
  if (!("name" in value) || value["name"] === void 0) return false;
598
606
  return true;
599
607
  }
600
- function MLBDivisionFromJSON(json) {
601
- return MLBDivisionFromJSONTyped(json, false);
608
+ function DivisionFromJSON(json) {
609
+ return DivisionFromJSONTyped(json, false);
602
610
  }
603
- function MLBDivisionFromJSONTyped(json, ignoreDiscriminator) {
611
+ function DivisionFromJSONTyped(json, ignoreDiscriminator) {
604
612
  if (json == null) {
605
613
  return json;
606
614
  }
@@ -611,15 +619,15 @@ function MLBDivisionFromJSONTyped(json, ignoreDiscriminator) {
611
619
  "nameShort": json["nameShort"] == null ? void 0 : json["nameShort"],
612
620
  "link": json["link"] == null ? void 0 : json["link"],
613
621
  "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
614
- "league": json["league"] == null ? void 0 : MLBLeagueFromJSON(json["league"]),
615
- "sport": json["sport"] == null ? void 0 : MLBSportFromJSON(json["sport"]),
622
+ "league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
623
+ "sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
616
624
  "hasWildcard": json["hasWildcard"] == null ? void 0 : json["hasWildcard"],
617
625
  "sortOrder": json["sortOrder"] == null ? void 0 : json["sortOrder"],
618
626
  "numPlayoffTeams": json["numPlayoffTeams"] == null ? void 0 : json["numPlayoffTeams"],
619
627
  "active": json["active"] == null ? void 0 : json["active"]
620
628
  };
621
629
  }
622
- function MLBDivisionToJSON(value) {
630
+ function DivisionToJSON(value) {
623
631
  if (value == null) {
624
632
  return value;
625
633
  }
@@ -630,8 +638,8 @@ function MLBDivisionToJSON(value) {
630
638
  "nameShort": value["nameShort"],
631
639
  "link": value["link"],
632
640
  "abbreviation": value["abbreviation"],
633
- "league": MLBLeagueToJSON(value["league"]),
634
- "sport": MLBSportToJSON(value["sport"]),
641
+ "league": LeagueToJSON(value["league"]),
642
+ "sport": SportToJSON(value["sport"]),
635
643
  "hasWildcard": value["hasWildcard"],
636
644
  "sortOrder": value["sortOrder"],
637
645
  "numPlayoffTeams": value["numPlayoffTeams"],
@@ -639,92 +647,78 @@ function MLBDivisionToJSON(value) {
639
647
  };
640
648
  }
641
649
 
642
- // src/models/MLBVenue.ts
643
- function instanceOfMLBVenue(value) {
644
- if (!("id" in value) || value["id"] === void 0) return false;
645
- if (!("name" in value) || value["name"] === void 0) return false;
650
+ // src/models/Streak.ts
651
+ var StreakStreakTypeEnum = {
652
+ Losing: "losses",
653
+ Winning: "wins"
654
+ };
655
+ function instanceOfStreak(value) {
646
656
  return true;
647
657
  }
648
- function MLBVenueFromJSON(json) {
649
- return MLBVenueFromJSONTyped(json, false);
658
+ function StreakFromJSON(json) {
659
+ return StreakFromJSONTyped(json, false);
650
660
  }
651
- function MLBVenueFromJSONTyped(json, ignoreDiscriminator) {
661
+ function StreakFromJSONTyped(json, ignoreDiscriminator) {
652
662
  if (json == null) {
653
663
  return json;
654
664
  }
655
665
  return {
656
- "id": json["id"],
657
- "name": json["name"],
658
- "link": json["link"] == null ? void 0 : json["link"],
659
- "active": json["active"] == null ? void 0 : json["active"],
660
- "season": json["season"] == null ? void 0 : json["season"]
666
+ "streakType": json["streakType"] == null ? void 0 : json["streakType"]
661
667
  };
662
668
  }
663
- function MLBVenueToJSON(value) {
669
+ function StreakToJSON(value) {
664
670
  if (value == null) {
665
671
  return value;
666
672
  }
667
673
  return {
668
- "id": value["id"],
669
- "name": value["name"],
670
- "link": value["link"],
671
- "active": value["active"],
672
- "season": value["season"]
674
+ "streakType": value["streakType"]
673
675
  };
674
676
  }
675
677
 
676
- // src/models/MLBGameStatus.ts
677
- var MLBGameStatusCodedGameStateEnum = {
678
- Final: "F",
679
- Postponed: "D",
680
- Scheduled: "S",
681
- InProgress: "I",
682
- Pregame: "P",
683
- GameOver: "O"
684
- };
685
- function instanceOfMLBGameStatus(value) {
678
+ // src/models/Venue.ts
679
+ function instanceOfVenue(value) {
680
+ if (!("id" in value) || value["id"] === void 0) return false;
681
+ if (!("name" in value) || value["name"] === void 0) return false;
686
682
  return true;
687
683
  }
688
- function MLBGameStatusFromJSON(json) {
689
- return MLBGameStatusFromJSONTyped(json, false);
684
+ function VenueFromJSON(json) {
685
+ return VenueFromJSONTyped(json, false);
690
686
  }
691
- function MLBGameStatusFromJSONTyped(json, ignoreDiscriminator) {
687
+ function VenueFromJSONTyped(json, ignoreDiscriminator) {
692
688
  if (json == null) {
693
689
  return json;
694
690
  }
695
691
  return {
696
- "abstractGameState": json["abstractGameState"] == null ? void 0 : json["abstractGameState"],
697
- "codedGameState": json["codedGameState"] == null ? void 0 : json["codedGameState"],
698
- "detailedState": json["detailedState"] == null ? void 0 : json["detailedState"],
699
- "statusCode": json["statusCode"] == null ? void 0 : json["statusCode"],
700
- "startTimeTBD": json["startTimeTBD"] == null ? void 0 : json["startTimeTBD"],
701
- "abstractGameCode": json["abstractGameCode"] == null ? void 0 : json["abstractGameCode"]
692
+ "id": json["id"],
693
+ "name": json["name"],
694
+ "link": json["link"] == null ? void 0 : json["link"],
695
+ "active": json["active"] == null ? void 0 : json["active"],
696
+ "season": json["season"] == null ? void 0 : json["season"]
702
697
  };
703
698
  }
704
- function MLBGameStatusToJSON(value) {
699
+ function VenueToJSON(value) {
705
700
  if (value == null) {
706
701
  return value;
707
702
  }
708
703
  return {
709
- "abstractGameState": value["abstractGameState"],
710
- "codedGameState": value["codedGameState"],
711
- "detailedState": value["detailedState"],
712
- "statusCode": value["statusCode"],
713
- "startTimeTBD": value["startTimeTBD"],
714
- "abstractGameCode": value["abstractGameCode"]
704
+ "id": value["id"],
705
+ "name": value["name"],
706
+ "link": value["link"],
707
+ "active": value["active"],
708
+ "season": value["season"]
715
709
  };
716
710
  }
717
711
 
718
- // src/models/MLBTeam.ts
719
- function instanceOfMLBTeam(value) {
712
+ // src/models/Team.ts
713
+ function instanceOfTeam(value) {
720
714
  if (!("id" in value) || value["id"] === void 0) return false;
721
715
  if (!("name" in value) || value["name"] === void 0) return false;
722
716
  return true;
723
717
  }
724
- function MLBTeamFromJSON(json) {
725
- return MLBTeamFromJSONTyped(json, false);
718
+ function TeamFromJSON(json) {
719
+ return TeamFromJSONTyped(json, false);
726
720
  }
727
- function MLBTeamFromJSONTyped(json, ignoreDiscriminator) {
721
+ function TeamFromJSONTyped(json, ignoreDiscriminator) {
728
722
  if (json == null) {
729
723
  return json;
730
724
  }
@@ -734,25 +728,25 @@ function MLBTeamFromJSONTyped(json, ignoreDiscriminator) {
734
728
  "link": json["link"] == null ? void 0 : json["link"],
735
729
  "allStarStatus": json["allStarStatus"] == null ? void 0 : json["allStarStatus"],
736
730
  "season": json["season"] == null ? void 0 : json["season"],
737
- "venue": json["venue"] == null ? void 0 : MLBVenueFromJSON(json["venue"]),
738
- "springVenue": json["springVenue"] == null ? void 0 : MLBVenueFromJSON(json["springVenue"]),
731
+ "venue": json["venue"] == null ? void 0 : VenueFromJSON(json["venue"]),
732
+ "springVenue": json["springVenue"] == null ? void 0 : VenueFromJSON(json["springVenue"]),
739
733
  "teamCode": json["teamCode"] == null ? void 0 : json["teamCode"],
740
734
  "fileCode": json["fileCode"] == null ? void 0 : json["fileCode"],
741
735
  "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
742
736
  "teamName": json["teamName"] == null ? void 0 : json["teamName"],
743
737
  "locationName": json["locationName"] == null ? void 0 : json["locationName"],
744
738
  "firstYearOfPlay": json["firstYearOfPlay"] == null ? void 0 : json["firstYearOfPlay"],
745
- "league": json["league"] == null ? void 0 : MLBLeagueFromJSON(json["league"]),
746
- "springLeague": json["springLeague"] == null ? void 0 : MLBLeagueFromJSON(json["springLeague"]),
747
- "division": json["division"] == null ? void 0 : MLBDivisionFromJSON(json["division"]),
748
- "sport": json["sport"] == null ? void 0 : MLBSportFromJSON(json["sport"]),
739
+ "league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
740
+ "springLeague": json["springLeague"] == null ? void 0 : LeagueFromJSON(json["springLeague"]),
741
+ "division": json["division"] == null ? void 0 : DivisionFromJSON(json["division"]),
742
+ "sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
749
743
  "shortName": json["shortName"] == null ? void 0 : json["shortName"],
750
744
  "franchiseName": json["franchiseName"] == null ? void 0 : json["franchiseName"],
751
745
  "clubName": json["clubName"] == null ? void 0 : json["clubName"],
752
746
  "active": json["active"] == null ? void 0 : json["active"]
753
747
  };
754
748
  }
755
- function MLBTeamToJSON(value) {
749
+ function TeamToJSON(value) {
756
750
  if (value == null) {
757
751
  return value;
758
752
  }
@@ -762,18 +756,18 @@ function MLBTeamToJSON(value) {
762
756
  "link": value["link"],
763
757
  "allStarStatus": value["allStarStatus"],
764
758
  "season": value["season"],
765
- "venue": MLBVenueToJSON(value["venue"]),
766
- "springVenue": MLBVenueToJSON(value["springVenue"]),
759
+ "venue": VenueToJSON(value["venue"]),
760
+ "springVenue": VenueToJSON(value["springVenue"]),
767
761
  "teamCode": value["teamCode"],
768
762
  "fileCode": value["fileCode"],
769
763
  "abbreviation": value["abbreviation"],
770
764
  "teamName": value["teamName"],
771
765
  "locationName": value["locationName"],
772
766
  "firstYearOfPlay": value["firstYearOfPlay"],
773
- "league": MLBLeagueToJSON(value["league"]),
774
- "springLeague": MLBLeagueToJSON(value["springLeague"]),
775
- "division": MLBDivisionToJSON(value["division"]),
776
- "sport": MLBSportToJSON(value["sport"]),
767
+ "league": LeagueToJSON(value["league"]),
768
+ "springLeague": LeagueToJSON(value["springLeague"]),
769
+ "division": DivisionToJSON(value["division"]),
770
+ "sport": SportToJSON(value["sport"]),
777
771
  "shortName": value["shortName"],
778
772
  "franchiseName": value["franchiseName"],
779
773
  "clubName": value["clubName"],
@@ -781,17 +775,17 @@ function MLBTeamToJSON(value) {
781
775
  };
782
776
  }
783
777
 
784
- // src/models/MLBLeagueRecord.ts
785
- function instanceOfMLBLeagueRecord(value) {
778
+ // src/models/LeagueRecord.ts
779
+ function instanceOfLeagueRecord(value) {
786
780
  if (!("wins" in value) || value["wins"] === void 0) return false;
787
781
  if (!("losses" in value) || value["losses"] === void 0) return false;
788
782
  if (!("pct" in value) || value["pct"] === void 0) return false;
789
783
  return true;
790
784
  }
791
- function MLBLeagueRecordFromJSON(json) {
792
- return MLBLeagueRecordFromJSONTyped(json, false);
785
+ function LeagueRecordFromJSON(json) {
786
+ return LeagueRecordFromJSONTyped(json, false);
793
787
  }
794
- function MLBLeagueRecordFromJSONTyped(json, ignoreDiscriminator) {
788
+ function LeagueRecordFromJSONTyped(json, ignoreDiscriminator) {
795
789
  if (json == null) {
796
790
  return json;
797
791
  }
@@ -802,7 +796,7 @@ function MLBLeagueRecordFromJSONTyped(json, ignoreDiscriminator) {
802
796
  "pct": json["pct"]
803
797
  };
804
798
  }
805
- function MLBLeagueRecordToJSON(value) {
799
+ function LeagueRecordToJSON(value) {
806
800
  if (value == null) {
807
801
  return value;
808
802
  }
@@ -814,73 +808,294 @@ function MLBLeagueRecordToJSON(value) {
814
808
  };
815
809
  }
816
810
 
817
- // src/models/MLBGameTeam.ts
818
- function instanceOfMLBGameTeam(value) {
811
+ // src/models/TeamRecord.ts
812
+ function instanceOfTeamRecord(value) {
813
+ if (!("team" in value) || value["team"] === void 0) return false;
814
+ if (!("season" in value) || value["season"] === void 0) return false;
815
+ if (!("streak" in value) || value["streak"] === void 0) return false;
816
+ if (!("divisionRank" in value) || value["divisionRank"] === void 0) return false;
817
+ if (!("leagueRank" in value) || value["leagueRank"] === void 0) return false;
818
+ if (!("gamesBack" in value) || value["gamesBack"] === void 0) return false;
819
+ if (!("leagueRecord" in value) || value["leagueRecord"] === void 0) return false;
820
+ if (!("wins" in value) || value["wins"] === void 0) return false;
821
+ if (!("losses" in value) || value["losses"] === void 0) return false;
822
+ return true;
823
+ }
824
+ function TeamRecordFromJSON(json) {
825
+ return TeamRecordFromJSONTyped(json, false);
826
+ }
827
+ function TeamRecordFromJSONTyped(json, ignoreDiscriminator) {
828
+ if (json == null) {
829
+ return json;
830
+ }
831
+ return {
832
+ "team": TeamFromJSON(json["team"]),
833
+ "season": json["season"],
834
+ "streak": StreakFromJSON(json["streak"]),
835
+ "divisionRank": json["divisionRank"],
836
+ "leagueRank": json["leagueRank"],
837
+ "sportRank": json["sportRank"] == null ? void 0 : json["sportRank"],
838
+ "gamesPlayed": json["gamesPlayed"] == null ? void 0 : json["gamesPlayed"],
839
+ "gamesBack": json["gamesBack"],
840
+ "wildCardGamesBack": json["wildCardGamesBack"] == null ? void 0 : json["wildCardGamesBack"],
841
+ "leagueGamesBack": json["leagueGamesBack"] == null ? void 0 : json["leagueGamesBack"],
842
+ "sportGamesBack": json["sportGamesBack"] == null ? void 0 : json["sportGamesBack"],
843
+ "divisionGamesBack": json["divisionGamesBack"] == null ? void 0 : json["divisionGamesBack"],
844
+ "conferenceGamesBack": json["conferenceGamesBack"] == null ? void 0 : json["conferenceGamesBack"],
845
+ "leagueRecord": LeagueRecordFromJSON(json["leagueRecord"]),
846
+ "lastUpdated": json["lastUpdated"] == null ? void 0 : json["lastUpdated"],
847
+ "runsAllowed": json["runsAllowed"] == null ? void 0 : json["runsAllowed"],
848
+ "runsScored": json["runsScored"] == null ? void 0 : json["runsScored"],
849
+ "divisionChamp": json["divisionChamp"] == null ? void 0 : json["divisionChamp"],
850
+ "divisionLeader": json["divisionLeader"] == null ? void 0 : json["divisionLeader"],
851
+ "hasWildcard": json["hasWildcard"] == null ? void 0 : json["hasWildcard"],
852
+ "clinched": json["clinched"] == null ? void 0 : json["clinched"],
853
+ "eliminationNumber": json["eliminationNumber"] == null ? void 0 : json["eliminationNumber"],
854
+ "eliminationNumberSport": json["eliminationNumberSport"] == null ? void 0 : json["eliminationNumberSport"],
855
+ "eliminationNumberLeague": json["eliminationNumberLeague"] == null ? void 0 : json["eliminationNumberLeague"],
856
+ "eliminationNumberDivision": json["eliminationNumberDivision"] == null ? void 0 : json["eliminationNumberDivision"],
857
+ "eliminationNumberConference": json["eliminationNumberConference"] == null ? void 0 : json["eliminationNumberConference"],
858
+ "wildCardEliminationNumber": json["wildCardEliminationNumber"] == null ? void 0 : json["wildCardEliminationNumber"],
859
+ "magicNumber": json["magicNumber"] == null ? void 0 : json["magicNumber"],
860
+ "wins": json["wins"],
861
+ "losses": json["losses"],
862
+ "runDifferential": json["runDifferential"] == null ? void 0 : json["runDifferential"],
863
+ "winningPercentage": json["winningPercentage"] == null ? void 0 : json["winningPercentage"]
864
+ };
865
+ }
866
+ function TeamRecordToJSON(value) {
867
+ if (value == null) {
868
+ return value;
869
+ }
870
+ return {
871
+ "team": TeamToJSON(value["team"]),
872
+ "season": value["season"],
873
+ "streak": StreakToJSON(value["streak"]),
874
+ "divisionRank": value["divisionRank"],
875
+ "leagueRank": value["leagueRank"],
876
+ "sportRank": value["sportRank"],
877
+ "gamesPlayed": value["gamesPlayed"],
878
+ "gamesBack": value["gamesBack"],
879
+ "wildCardGamesBack": value["wildCardGamesBack"],
880
+ "leagueGamesBack": value["leagueGamesBack"],
881
+ "sportGamesBack": value["sportGamesBack"],
882
+ "divisionGamesBack": value["divisionGamesBack"],
883
+ "conferenceGamesBack": value["conferenceGamesBack"],
884
+ "leagueRecord": LeagueRecordToJSON(value["leagueRecord"]),
885
+ "lastUpdated": value["lastUpdated"],
886
+ "runsAllowed": value["runsAllowed"],
887
+ "runsScored": value["runsScored"],
888
+ "divisionChamp": value["divisionChamp"],
889
+ "divisionLeader": value["divisionLeader"],
890
+ "hasWildcard": value["hasWildcard"],
891
+ "clinched": value["clinched"],
892
+ "eliminationNumber": value["eliminationNumber"],
893
+ "eliminationNumberSport": value["eliminationNumberSport"],
894
+ "eliminationNumberLeague": value["eliminationNumberLeague"],
895
+ "eliminationNumberDivision": value["eliminationNumberDivision"],
896
+ "eliminationNumberConference": value["eliminationNumberConference"],
897
+ "wildCardEliminationNumber": value["wildCardEliminationNumber"],
898
+ "magicNumber": value["magicNumber"],
899
+ "wins": value["wins"],
900
+ "losses": value["losses"],
901
+ "runDifferential": value["runDifferential"],
902
+ "winningPercentage": value["winningPercentage"]
903
+ };
904
+ }
905
+
906
+ // src/models/DivisionStandings.ts
907
+ function instanceOfDivisionStandings(value) {
908
+ if (!("league" in value) || value["league"] === void 0) return false;
909
+ if (!("division" in value) || value["division"] === void 0) return false;
910
+ if (!("sport" in value) || value["sport"] === void 0) return false;
911
+ if (!("teamRecords" in value) || value["teamRecords"] === void 0) return false;
912
+ return true;
913
+ }
914
+ function DivisionStandingsFromJSON(json) {
915
+ return DivisionStandingsFromJSONTyped(json, false);
916
+ }
917
+ function DivisionStandingsFromJSONTyped(json, ignoreDiscriminator) {
918
+ if (json == null) {
919
+ return json;
920
+ }
921
+ return {
922
+ "standingsType": json["standingsType"] == null ? void 0 : json["standingsType"],
923
+ "league": LeagueFromJSON(json["league"]),
924
+ "division": DivisionFromJSON(json["division"]),
925
+ "sport": SportFromJSON(json["sport"]),
926
+ "lastUpdated": json["lastUpdated"] == null ? void 0 : json["lastUpdated"],
927
+ "teamRecords": json["teamRecords"].map(TeamRecordFromJSON)
928
+ };
929
+ }
930
+ function DivisionStandingsToJSON(value) {
931
+ if (value == null) {
932
+ return value;
933
+ }
934
+ return {
935
+ "standingsType": value["standingsType"],
936
+ "league": LeagueToJSON(value["league"]),
937
+ "division": DivisionToJSON(value["division"]),
938
+ "sport": SportToJSON(value["sport"]),
939
+ "lastUpdated": value["lastUpdated"],
940
+ "teamRecords": value["teamRecords"].map(TeamRecordToJSON)
941
+ };
942
+ }
943
+
944
+ // src/models/DivisionStandingsList.ts
945
+ function instanceOfDivisionStandingsList(value) {
946
+ return true;
947
+ }
948
+ function DivisionStandingsListFromJSON(json) {
949
+ return DivisionStandingsListFromJSONTyped(json, false);
950
+ }
951
+ function DivisionStandingsListFromJSONTyped(json, ignoreDiscriminator) {
952
+ if (json == null) {
953
+ return json;
954
+ }
955
+ return {
956
+ "records": json["records"] == null ? void 0 : json["records"].map(DivisionStandingsFromJSON)
957
+ };
958
+ }
959
+ function DivisionStandingsListToJSON(value) {
960
+ if (value == null) {
961
+ return value;
962
+ }
963
+ return {
964
+ "records": value["records"] == null ? void 0 : value["records"].map(DivisionStandingsToJSON)
965
+ };
966
+ }
967
+
968
+ // src/models/GameStatusCode.ts
969
+ var GameStatusCode = {
970
+ Final: "F",
971
+ Postponed: "D",
972
+ Scheduled: "S",
973
+ InProgress: "I",
974
+ Pregame: "P",
975
+ GameOver: "O",
976
+ Canceled: "C"
977
+ };
978
+ function instanceOfGameStatusCode(value) {
979
+ for (const key in GameStatusCode) {
980
+ if (Object.prototype.hasOwnProperty.call(GameStatusCode, key)) {
981
+ if (GameStatusCode[key] === value) {
982
+ return true;
983
+ }
984
+ }
985
+ }
986
+ return false;
987
+ }
988
+ function GameStatusCodeFromJSON(json) {
989
+ return GameStatusCodeFromJSONTyped(json, false);
990
+ }
991
+ function GameStatusCodeFromJSONTyped(json, ignoreDiscriminator) {
992
+ return json;
993
+ }
994
+ function GameStatusCodeToJSON(value) {
995
+ return value;
996
+ }
997
+
998
+ // src/models/GameStatus.ts
999
+ function instanceOfGameStatus(value) {
1000
+ return true;
1001
+ }
1002
+ function GameStatusFromJSON(json) {
1003
+ return GameStatusFromJSONTyped(json, false);
1004
+ }
1005
+ function GameStatusFromJSONTyped(json, ignoreDiscriminator) {
1006
+ if (json == null) {
1007
+ return json;
1008
+ }
1009
+ return {
1010
+ "abstractGameState": json["abstractGameState"] == null ? void 0 : json["abstractGameState"],
1011
+ "codedGameState": json["codedGameState"] == null ? void 0 : GameStatusCodeFromJSON(json["codedGameState"]),
1012
+ "detailedState": json["detailedState"] == null ? void 0 : json["detailedState"],
1013
+ "statusCode": json["statusCode"] == null ? void 0 : json["statusCode"],
1014
+ "startTimeTBD": json["startTimeTBD"] == null ? void 0 : json["startTimeTBD"],
1015
+ "abstractGameCode": json["abstractGameCode"] == null ? void 0 : json["abstractGameCode"]
1016
+ };
1017
+ }
1018
+ function GameStatusToJSON(value) {
1019
+ if (value == null) {
1020
+ return value;
1021
+ }
1022
+ return {
1023
+ "abstractGameState": value["abstractGameState"],
1024
+ "codedGameState": GameStatusCodeToJSON(value["codedGameState"]),
1025
+ "detailedState": value["detailedState"],
1026
+ "statusCode": value["statusCode"],
1027
+ "startTimeTBD": value["startTimeTBD"],
1028
+ "abstractGameCode": value["abstractGameCode"]
1029
+ };
1030
+ }
1031
+
1032
+ // src/models/GameTeam.ts
1033
+ function instanceOfGameTeam(value) {
819
1034
  if (!("score" in value) || value["score"] === void 0) return false;
820
1035
  if (!("team" in value) || value["team"] === void 0) return false;
821
1036
  if (!("isWinner" in value) || value["isWinner"] === void 0) return false;
822
1037
  return true;
823
1038
  }
824
- function MLBGameTeamFromJSON(json) {
825
- return MLBGameTeamFromJSONTyped(json, false);
1039
+ function GameTeamFromJSON(json) {
1040
+ return GameTeamFromJSONTyped(json, false);
826
1041
  }
827
- function MLBGameTeamFromJSONTyped(json, ignoreDiscriminator) {
1042
+ function GameTeamFromJSONTyped(json, ignoreDiscriminator) {
828
1043
  if (json == null) {
829
1044
  return json;
830
1045
  }
831
1046
  return {
832
- "leagueRecord": json["leagueRecord"] == null ? void 0 : MLBLeagueRecordFromJSON(json["leagueRecord"]),
1047
+ "leagueRecord": json["leagueRecord"] == null ? void 0 : LeagueRecordFromJSON(json["leagueRecord"]),
833
1048
  "score": json["score"],
834
- "team": MLBTeamFromJSON(json["team"]),
1049
+ "team": TeamFromJSON(json["team"]),
835
1050
  "isWinner": json["isWinner"],
836
1051
  "splitSquad": json["splitSquad"] == null ? void 0 : json["splitSquad"],
837
1052
  "seriesNumber": json["seriesNumber"] == null ? void 0 : json["seriesNumber"]
838
1053
  };
839
1054
  }
840
- function MLBGameTeamToJSON(value) {
1055
+ function GameTeamToJSON(value) {
841
1056
  if (value == null) {
842
1057
  return value;
843
1058
  }
844
1059
  return {
845
- "leagueRecord": MLBLeagueRecordToJSON(value["leagueRecord"]),
1060
+ "leagueRecord": LeagueRecordToJSON(value["leagueRecord"]),
846
1061
  "score": value["score"],
847
- "team": MLBTeamToJSON(value["team"]),
1062
+ "team": TeamToJSON(value["team"]),
848
1063
  "isWinner": value["isWinner"],
849
1064
  "splitSquad": value["splitSquad"],
850
1065
  "seriesNumber": value["seriesNumber"]
851
1066
  };
852
1067
  }
853
1068
 
854
- // src/models/MLBGameTeams.ts
855
- function instanceOfMLBGameTeams(value) {
1069
+ // src/models/GameTeams.ts
1070
+ function instanceOfGameTeams(value) {
856
1071
  if (!("away" in value) || value["away"] === void 0) return false;
857
1072
  if (!("home" in value) || value["home"] === void 0) return false;
858
1073
  return true;
859
1074
  }
860
- function MLBGameTeamsFromJSON(json) {
861
- return MLBGameTeamsFromJSONTyped(json, false);
1075
+ function GameTeamsFromJSON(json) {
1076
+ return GameTeamsFromJSONTyped(json, false);
862
1077
  }
863
- function MLBGameTeamsFromJSONTyped(json, ignoreDiscriminator) {
1078
+ function GameTeamsFromJSONTyped(json, ignoreDiscriminator) {
864
1079
  if (json == null) {
865
1080
  return json;
866
1081
  }
867
1082
  return {
868
- "away": MLBGameTeamFromJSON(json["away"]),
869
- "home": MLBGameTeamFromJSON(json["home"])
1083
+ "away": GameTeamFromJSON(json["away"]),
1084
+ "home": GameTeamFromJSON(json["home"])
870
1085
  };
871
1086
  }
872
- function MLBGameTeamsToJSON(value) {
1087
+ function GameTeamsToJSON(value) {
873
1088
  if (value == null) {
874
1089
  return value;
875
1090
  }
876
1091
  return {
877
- "away": MLBGameTeamToJSON(value["away"]),
878
- "home": MLBGameTeamToJSON(value["home"])
1092
+ "away": GameTeamToJSON(value["away"]),
1093
+ "home": GameTeamToJSON(value["home"])
879
1094
  };
880
1095
  }
881
1096
 
882
- // src/models/MLBGame.ts
883
- var MLBGameGameTypeEnum = {
1097
+ // src/models/GameType.ts
1098
+ var GameType = {
884
1099
  Exhibition: "E",
885
1100
  SpringTraining: "S",
886
1101
  Regular: "R",
@@ -889,7 +1104,28 @@ var MLBGameGameTypeEnum = {
889
1104
  LeagueChampionshipSeries: "L",
890
1105
  WorldSeries: "W"
891
1106
  };
892
- function instanceOfMLBGame(value) {
1107
+ function instanceOfGameType(value) {
1108
+ for (const key in GameType) {
1109
+ if (Object.prototype.hasOwnProperty.call(GameType, key)) {
1110
+ if (GameType[key] === value) {
1111
+ return true;
1112
+ }
1113
+ }
1114
+ }
1115
+ return false;
1116
+ }
1117
+ function GameTypeFromJSON(json) {
1118
+ return GameTypeFromJSONTyped(json, false);
1119
+ }
1120
+ function GameTypeFromJSONTyped(json, ignoreDiscriminator) {
1121
+ return json;
1122
+ }
1123
+ function GameTypeToJSON(value) {
1124
+ return value;
1125
+ }
1126
+
1127
+ // src/models/Game.ts
1128
+ function instanceOfGame(value) {
893
1129
  if (!("gamePk" in value) || value["gamePk"] === void 0) return false;
894
1130
  if (!("gameGuid" in value) || value["gameGuid"] === void 0) return false;
895
1131
  if (!("gameType" in value) || value["gameType"] === void 0) return false;
@@ -903,10 +1139,10 @@ function instanceOfMLBGame(value) {
903
1139
  if (!("seriesGameNumber" in value) || value["seriesGameNumber"] === void 0) return false;
904
1140
  return true;
905
1141
  }
906
- function MLBGameFromJSON(json) {
907
- return MLBGameFromJSONTyped(json, false);
1142
+ function GameFromJSON(json) {
1143
+ return GameFromJSONTyped(json, false);
908
1144
  }
909
- function MLBGameFromJSONTyped(json, ignoreDiscriminator) {
1145
+ function GameFromJSONTyped(json, ignoreDiscriminator) {
910
1146
  if (json == null) {
911
1147
  return json;
912
1148
  }
@@ -914,7 +1150,7 @@ function MLBGameFromJSONTyped(json, ignoreDiscriminator) {
914
1150
  "gamePk": json["gamePk"],
915
1151
  "gameGuid": json["gameGuid"],
916
1152
  "link": json["link"] == null ? void 0 : json["link"],
917
- "gameType": json["gameType"],
1153
+ "gameType": GameTypeFromJSON(json["gameType"]),
918
1154
  "season": json["season"],
919
1155
  "gameDate": json["gameDate"],
920
1156
  "officialDate": json["officialDate"],
@@ -922,9 +1158,9 @@ function MLBGameFromJSONTyped(json, ignoreDiscriminator) {
922
1158
  "rescheduledToDate": json["rescheduledToDate"] == null ? void 0 : json["rescheduledToDate"],
923
1159
  "rescheduledFrom": json["rescheduledFrom"] == null ? void 0 : json["rescheduledFrom"],
924
1160
  "rescheduledFromDate": json["rescheduledFromDate"] == null ? void 0 : json["rescheduledFromDate"],
925
- "status": MLBGameStatusFromJSON(json["status"]),
926
- "teams": MLBGameTeamsFromJSON(json["teams"]),
927
- "venue": json["venue"] == null ? void 0 : MLBVenueFromJSON(json["venue"]),
1161
+ "status": GameStatusFromJSON(json["status"]),
1162
+ "teams": GameTeamsFromJSON(json["teams"]),
1163
+ "venue": json["venue"] == null ? void 0 : VenueFromJSON(json["venue"]),
928
1164
  "isTie": json["isTie"] == null ? void 0 : json["isTie"],
929
1165
  "gameNumber": json["gameNumber"],
930
1166
  "publicFacing": json["publicFacing"] == null ? void 0 : json["publicFacing"],
@@ -946,7 +1182,7 @@ function MLBGameFromJSONTyped(json, ignoreDiscriminator) {
946
1182
  "ifNecessaryDescription": json["ifNecessaryDescription"] == null ? void 0 : json["ifNecessaryDescription"]
947
1183
  };
948
1184
  }
949
- function MLBGameToJSON(value) {
1185
+ function GameToJSON(value) {
950
1186
  if (value == null) {
951
1187
  return value;
952
1188
  }
@@ -954,7 +1190,7 @@ function MLBGameToJSON(value) {
954
1190
  "gamePk": value["gamePk"],
955
1191
  "gameGuid": value["gameGuid"],
956
1192
  "link": value["link"],
957
- "gameType": value["gameType"],
1193
+ "gameType": GameTypeToJSON(value["gameType"]),
958
1194
  "season": value["season"],
959
1195
  "gameDate": value["gameDate"],
960
1196
  "officialDate": value["officialDate"],
@@ -962,9 +1198,9 @@ function MLBGameToJSON(value) {
962
1198
  "rescheduledToDate": value["rescheduledToDate"],
963
1199
  "rescheduledFrom": value["rescheduledFrom"],
964
1200
  "rescheduledFromDate": value["rescheduledFromDate"],
965
- "status": MLBGameStatusToJSON(value["status"]),
966
- "teams": MLBGameTeamsToJSON(value["teams"]),
967
- "venue": MLBVenueToJSON(value["venue"]),
1201
+ "status": GameStatusToJSON(value["status"]),
1202
+ "teams": GameTeamsToJSON(value["teams"]),
1203
+ "venue": VenueToJSON(value["venue"]),
968
1204
  "isTie": value["isTie"],
969
1205
  "gameNumber": value["gameNumber"],
970
1206
  "publicFacing": value["publicFacing"],
@@ -987,138 +1223,15 @@ function MLBGameToJSON(value) {
987
1223
  };
988
1224
  }
989
1225
 
990
- // src/models/MLBStreak.ts
991
- var MLBStreakStreakTypeEnum = {
992
- Losing: "losses",
993
- Winning: "wins"
994
- };
995
- function instanceOfMLBStreak(value) {
996
- return true;
997
- }
998
- function MLBStreakFromJSON(json) {
999
- return MLBStreakFromJSONTyped(json, false);
1000
- }
1001
- function MLBStreakFromJSONTyped(json, ignoreDiscriminator) {
1002
- if (json == null) {
1003
- return json;
1004
- }
1005
- return {
1006
- "streakType": json["streakType"] == null ? void 0 : json["streakType"]
1007
- };
1008
- }
1009
- function MLBStreakToJSON(value) {
1010
- if (value == null) {
1011
- return value;
1012
- }
1013
- return {
1014
- "streakType": value["streakType"]
1015
- };
1016
- }
1017
-
1018
- // src/models/MLBRecord.ts
1019
- function instanceOfMLBRecord(value) {
1020
- if (!("team" in value) || value["team"] === void 0) return false;
1021
- if (!("season" in value) || value["season"] === void 0) return false;
1022
- if (!("streak" in value) || value["streak"] === void 0) return false;
1023
- if (!("divisionRank" in value) || value["divisionRank"] === void 0) return false;
1024
- if (!("leagueRank" in value) || value["leagueRank"] === void 0) return false;
1025
- if (!("gamesBack" in value) || value["gamesBack"] === void 0) return false;
1026
- if (!("leagueRecord" in value) || value["leagueRecord"] === void 0) return false;
1027
- if (!("wins" in value) || value["wins"] === void 0) return false;
1028
- if (!("losses" in value) || value["losses"] === void 0) return false;
1029
- return true;
1030
- }
1031
- function MLBRecordFromJSON(json) {
1032
- return MLBRecordFromJSONTyped(json, false);
1033
- }
1034
- function MLBRecordFromJSONTyped(json, ignoreDiscriminator) {
1035
- if (json == null) {
1036
- return json;
1037
- }
1038
- return {
1039
- "team": MLBTeamFromJSON(json["team"]),
1040
- "season": json["season"],
1041
- "streak": MLBStreakFromJSON(json["streak"]),
1042
- "divisionRank": json["divisionRank"],
1043
- "leagueRank": json["leagueRank"],
1044
- "sportRank": json["sportRank"] == null ? void 0 : json["sportRank"],
1045
- "gamesPlayed": json["gamesPlayed"] == null ? void 0 : json["gamesPlayed"],
1046
- "gamesBack": json["gamesBack"],
1047
- "wildCardGamesBack": json["wildCardGamesBack"] == null ? void 0 : json["wildCardGamesBack"],
1048
- "leagueGamesBack": json["leagueGamesBack"] == null ? void 0 : json["leagueGamesBack"],
1049
- "sportGamesBack": json["sportGamesBack"] == null ? void 0 : json["sportGamesBack"],
1050
- "divisionGamesBack": json["divisionGamesBack"] == null ? void 0 : json["divisionGamesBack"],
1051
- "conferenceGamesBack": json["conferenceGamesBack"] == null ? void 0 : json["conferenceGamesBack"],
1052
- "leagueRecord": MLBLeagueRecordFromJSON(json["leagueRecord"]),
1053
- "lastUpdated": json["lastUpdated"] == null ? void 0 : json["lastUpdated"],
1054
- "runsAllowed": json["runsAllowed"] == null ? void 0 : json["runsAllowed"],
1055
- "runsScored": json["runsScored"] == null ? void 0 : json["runsScored"],
1056
- "divisionChamp": json["divisionChamp"] == null ? void 0 : json["divisionChamp"],
1057
- "divisionLeader": json["divisionLeader"] == null ? void 0 : json["divisionLeader"],
1058
- "hasWildcard": json["hasWildcard"] == null ? void 0 : json["hasWildcard"],
1059
- "clinched": json["clinched"] == null ? void 0 : json["clinched"],
1060
- "eliminationNumber": json["eliminationNumber"] == null ? void 0 : json["eliminationNumber"],
1061
- "eliminationNumberSport": json["eliminationNumberSport"] == null ? void 0 : json["eliminationNumberSport"],
1062
- "eliminationNumberLeague": json["eliminationNumberLeague"] == null ? void 0 : json["eliminationNumberLeague"],
1063
- "eliminationNumberDivision": json["eliminationNumberDivision"] == null ? void 0 : json["eliminationNumberDivision"],
1064
- "eliminationNumberConference": json["eliminationNumberConference"] == null ? void 0 : json["eliminationNumberConference"],
1065
- "wildCardEliminationNumber": json["wildCardEliminationNumber"] == null ? void 0 : json["wildCardEliminationNumber"],
1066
- "magicNumber": json["magicNumber"] == null ? void 0 : json["magicNumber"],
1067
- "wins": json["wins"],
1068
- "losses": json["losses"],
1069
- "runDifferential": json["runDifferential"] == null ? void 0 : json["runDifferential"],
1070
- "winningPercentage": json["winningPercentage"] == null ? void 0 : json["winningPercentage"]
1071
- };
1072
- }
1073
- function MLBRecordToJSON(value) {
1074
- if (value == null) {
1075
- return value;
1076
- }
1077
- return {
1078
- "team": MLBTeamToJSON(value["team"]),
1079
- "season": value["season"],
1080
- "streak": MLBStreakToJSON(value["streak"]),
1081
- "divisionRank": value["divisionRank"],
1082
- "leagueRank": value["leagueRank"],
1083
- "sportRank": value["sportRank"],
1084
- "gamesPlayed": value["gamesPlayed"],
1085
- "gamesBack": value["gamesBack"],
1086
- "wildCardGamesBack": value["wildCardGamesBack"],
1087
- "leagueGamesBack": value["leagueGamesBack"],
1088
- "sportGamesBack": value["sportGamesBack"],
1089
- "divisionGamesBack": value["divisionGamesBack"],
1090
- "conferenceGamesBack": value["conferenceGamesBack"],
1091
- "leagueRecord": MLBLeagueRecordToJSON(value["leagueRecord"]),
1092
- "lastUpdated": value["lastUpdated"],
1093
- "runsAllowed": value["runsAllowed"],
1094
- "runsScored": value["runsScored"],
1095
- "divisionChamp": value["divisionChamp"],
1096
- "divisionLeader": value["divisionLeader"],
1097
- "hasWildcard": value["hasWildcard"],
1098
- "clinched": value["clinched"],
1099
- "eliminationNumber": value["eliminationNumber"],
1100
- "eliminationNumberSport": value["eliminationNumberSport"],
1101
- "eliminationNumberLeague": value["eliminationNumberLeague"],
1102
- "eliminationNumberDivision": value["eliminationNumberDivision"],
1103
- "eliminationNumberConference": value["eliminationNumberConference"],
1104
- "wildCardEliminationNumber": value["wildCardEliminationNumber"],
1105
- "magicNumber": value["magicNumber"],
1106
- "wins": value["wins"],
1107
- "losses": value["losses"],
1108
- "runDifferential": value["runDifferential"],
1109
- "winningPercentage": value["winningPercentage"]
1110
- };
1111
- }
1112
-
1113
- // src/models/MLBScheduleDay.ts
1114
- function instanceOfMLBScheduleDay(value) {
1226
+ // src/models/ScheduleDay.ts
1227
+ function instanceOfScheduleDay(value) {
1115
1228
  if (!("games" in value) || value["games"] === void 0) return false;
1116
1229
  return true;
1117
1230
  }
1118
- function MLBScheduleDayFromJSON(json) {
1119
- return MLBScheduleDayFromJSONTyped(json, false);
1231
+ function ScheduleDayFromJSON(json) {
1232
+ return ScheduleDayFromJSONTyped(json, false);
1120
1233
  }
1121
- function MLBScheduleDayFromJSONTyped(json, ignoreDiscriminator) {
1234
+ function ScheduleDayFromJSONTyped(json, ignoreDiscriminator) {
1122
1235
  if (json == null) {
1123
1236
  return json;
1124
1237
  }
@@ -1128,10 +1241,10 @@ function MLBScheduleDayFromJSONTyped(json, ignoreDiscriminator) {
1128
1241
  "totalEvents": json["totalEvents"] == null ? void 0 : json["totalEvents"],
1129
1242
  "totalGames": json["totalGames"] == null ? void 0 : json["totalGames"],
1130
1243
  "totalGamesInProgress": json["totalGamesInProgress"] == null ? void 0 : json["totalGamesInProgress"],
1131
- "games": json["games"].map(MLBGameFromJSON)
1244
+ "games": json["games"].map(GameFromJSON)
1132
1245
  };
1133
1246
  }
1134
- function MLBScheduleDayToJSON(value) {
1247
+ function ScheduleDayToJSON(value) {
1135
1248
  if (value == null) {
1136
1249
  return value;
1137
1250
  }
@@ -1141,12 +1254,12 @@ function MLBScheduleDayToJSON(value) {
1141
1254
  "totalEvents": value["totalEvents"],
1142
1255
  "totalGames": value["totalGames"],
1143
1256
  "totalGamesInProgress": value["totalGamesInProgress"],
1144
- "games": value["games"].map(MLBGameToJSON)
1257
+ "games": value["games"].map(GameToJSON)
1145
1258
  };
1146
1259
  }
1147
1260
 
1148
- // src/models/MLBSchedule.ts
1149
- function instanceOfMLBSchedule(value) {
1261
+ // src/models/Schedule.ts
1262
+ function instanceOfSchedule(value) {
1150
1263
  if (!("totalItems" in value) || value["totalItems"] === void 0) return false;
1151
1264
  if (!("totalEvents" in value) || value["totalEvents"] === void 0) return false;
1152
1265
  if (!("totalGames" in value) || value["totalGames"] === void 0) return false;
@@ -1154,10 +1267,10 @@ function instanceOfMLBSchedule(value) {
1154
1267
  if (!("dates" in value) || value["dates"] === void 0) return false;
1155
1268
  return true;
1156
1269
  }
1157
- function MLBScheduleFromJSON(json) {
1158
- return MLBScheduleFromJSONTyped(json, false);
1270
+ function ScheduleFromJSON(json) {
1271
+ return ScheduleFromJSONTyped(json, false);
1159
1272
  }
1160
- function MLBScheduleFromJSONTyped(json, ignoreDiscriminator) {
1273
+ function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
1161
1274
  if (json == null) {
1162
1275
  return json;
1163
1276
  }
@@ -1166,10 +1279,10 @@ function MLBScheduleFromJSONTyped(json, ignoreDiscriminator) {
1166
1279
  "totalEvents": json["totalEvents"],
1167
1280
  "totalGames": json["totalGames"],
1168
1281
  "totalGamesInProgress": json["totalGamesInProgress"],
1169
- "dates": json["dates"].map(MLBScheduleDayFromJSON)
1282
+ "dates": json["dates"].map(ScheduleDayFromJSON)
1170
1283
  };
1171
1284
  }
1172
- function MLBScheduleToJSON(value) {
1285
+ function ScheduleToJSON(value) {
1173
1286
  if (value == null) {
1174
1287
  return value;
1175
1288
  }
@@ -1178,12 +1291,12 @@ function MLBScheduleToJSON(value) {
1178
1291
  "totalEvents": value["totalEvents"],
1179
1292
  "totalGames": value["totalGames"],
1180
1293
  "totalGamesInProgress": value["totalGamesInProgress"],
1181
- "dates": value["dates"].map(MLBScheduleDayToJSON)
1294
+ "dates": value["dates"].map(ScheduleDayToJSON)
1182
1295
  };
1183
1296
  }
1184
1297
 
1185
- // src/models/MLBSeason.ts
1186
- function instanceOfMLBSeason(value) {
1298
+ // src/models/Season.ts
1299
+ function instanceOfSeason(value) {
1187
1300
  if (!("seasonId" in value) || value["seasonId"] === void 0) return false;
1188
1301
  if (!("seasonStartDate" in value) || value["seasonStartDate"] === void 0) return false;
1189
1302
  if (!("seasonEndDate" in value) || value["seasonEndDate"] === void 0) return false;
@@ -1191,10 +1304,10 @@ function instanceOfMLBSeason(value) {
1191
1304
  if (!("regularSeasonEndDate" in value) || value["regularSeasonEndDate"] === void 0) return false;
1192
1305
  return true;
1193
1306
  }
1194
- function MLBSeasonFromJSON(json) {
1195
- return MLBSeasonFromJSONTyped(json, false);
1307
+ function SeasonFromJSON(json) {
1308
+ return SeasonFromJSONTyped(json, false);
1196
1309
  }
1197
- function MLBSeasonFromJSONTyped(json, ignoreDiscriminator) {
1310
+ function SeasonFromJSONTyped(json, ignoreDiscriminator) {
1198
1311
  if (json == null) {
1199
1312
  return json;
1200
1313
  }
@@ -1222,7 +1335,7 @@ function MLBSeasonFromJSONTyped(json, ignoreDiscriminator) {
1222
1335
  "qualifierOutsPitched": json["qualifierOutsPitched"] == null ? void 0 : json["qualifierOutsPitched"]
1223
1336
  };
1224
1337
  }
1225
- function MLBSeasonToJSON(value) {
1338
+ function SeasonToJSON(value) {
1226
1339
  if (value == null) {
1227
1340
  return value;
1228
1341
  }
@@ -1251,113 +1364,51 @@ function MLBSeasonToJSON(value) {
1251
1364
  };
1252
1365
  }
1253
1366
 
1254
- // src/models/MLBSeasons.ts
1255
- function instanceOfMLBSeasons(value) {
1367
+ // src/models/Seasons.ts
1368
+ function instanceOfSeasons(value) {
1256
1369
  return true;
1257
1370
  }
1258
- function MLBSeasonsFromJSON(json) {
1259
- return MLBSeasonsFromJSONTyped(json, false);
1371
+ function SeasonsFromJSON(json) {
1372
+ return SeasonsFromJSONTyped(json, false);
1260
1373
  }
1261
- function MLBSeasonsFromJSONTyped(json, ignoreDiscriminator) {
1374
+ function SeasonsFromJSONTyped(json, ignoreDiscriminator) {
1262
1375
  if (json == null) {
1263
1376
  return json;
1264
1377
  }
1265
1378
  return {
1266
- "seasons": json["seasons"] == null ? void 0 : json["seasons"].map(MLBSeasonFromJSON)
1379
+ "seasons": json["seasons"] == null ? void 0 : json["seasons"].map(SeasonFromJSON)
1267
1380
  };
1268
1381
  }
1269
- function MLBSeasonsToJSON(value) {
1382
+ function SeasonsToJSON(value) {
1270
1383
  if (value == null) {
1271
1384
  return value;
1272
1385
  }
1273
1386
  return {
1274
- "seasons": value["seasons"] == null ? void 0 : value["seasons"].map(MLBSeasonToJSON)
1387
+ "seasons": value["seasons"] == null ? void 0 : value["seasons"].map(SeasonToJSON)
1275
1388
  };
1276
1389
  }
1277
1390
 
1278
- // src/models/MLBStandings.ts
1279
- function instanceOfMLBStandings(value) {
1280
- if (!("league" in value) || value["league"] === void 0) return false;
1281
- if (!("division" in value) || value["division"] === void 0) return false;
1282
- if (!("sport" in value) || value["sport"] === void 0) return false;
1283
- if (!("teamRecords" in value) || value["teamRecords"] === void 0) return false;
1391
+ // src/models/Teams.ts
1392
+ function instanceOfTeams(value) {
1284
1393
  return true;
1285
1394
  }
1286
- function MLBStandingsFromJSON(json) {
1287
- return MLBStandingsFromJSONTyped(json, false);
1395
+ function TeamsFromJSON(json) {
1396
+ return TeamsFromJSONTyped(json, false);
1288
1397
  }
1289
- function MLBStandingsFromJSONTyped(json, ignoreDiscriminator) {
1398
+ function TeamsFromJSONTyped(json, ignoreDiscriminator) {
1290
1399
  if (json == null) {
1291
1400
  return json;
1292
1401
  }
1293
1402
  return {
1294
- "standingsType": json["standingsType"] == null ? void 0 : json["standingsType"],
1295
- "league": MLBLeagueFromJSON(json["league"]),
1296
- "division": MLBDivisionFromJSON(json["division"]),
1297
- "sport": MLBSportFromJSON(json["sport"]),
1298
- "lastUpdated": json["lastUpdated"] == null ? void 0 : json["lastUpdated"],
1299
- "teamRecords": json["teamRecords"].map(MLBRecordFromJSON)
1403
+ "teams": json["teams"] == null ? void 0 : json["teams"].map(TeamFromJSON)
1300
1404
  };
1301
1405
  }
1302
- function MLBStandingsToJSON(value) {
1406
+ function TeamsToJSON(value) {
1303
1407
  if (value == null) {
1304
1408
  return value;
1305
1409
  }
1306
1410
  return {
1307
- "standingsType": value["standingsType"],
1308
- "league": MLBLeagueToJSON(value["league"]),
1309
- "division": MLBDivisionToJSON(value["division"]),
1310
- "sport": MLBSportToJSON(value["sport"]),
1311
- "lastUpdated": value["lastUpdated"],
1312
- "teamRecords": value["teamRecords"].map(MLBRecordToJSON)
1313
- };
1314
- }
1315
-
1316
- // src/models/MLBStandingsList.ts
1317
- function instanceOfMLBStandingsList(value) {
1318
- return true;
1319
- }
1320
- function MLBStandingsListFromJSON(json) {
1321
- return MLBStandingsListFromJSONTyped(json, false);
1322
- }
1323
- function MLBStandingsListFromJSONTyped(json, ignoreDiscriminator) {
1324
- if (json == null) {
1325
- return json;
1326
- }
1327
- return {
1328
- "records": json["records"] == null ? void 0 : json["records"].map(MLBStandingsFromJSON)
1329
- };
1330
- }
1331
- function MLBStandingsListToJSON(value) {
1332
- if (value == null) {
1333
- return value;
1334
- }
1335
- return {
1336
- "records": value["records"] == null ? void 0 : value["records"].map(MLBStandingsToJSON)
1337
- };
1338
- }
1339
-
1340
- // src/models/MLBTeams.ts
1341
- function instanceOfMLBTeams(value) {
1342
- return true;
1343
- }
1344
- function MLBTeamsFromJSON(json) {
1345
- return MLBTeamsFromJSONTyped(json, false);
1346
- }
1347
- function MLBTeamsFromJSONTyped(json, ignoreDiscriminator) {
1348
- if (json == null) {
1349
- return json;
1350
- }
1351
- return {
1352
- "teams": json["teams"] == null ? void 0 : json["teams"].map(MLBTeamFromJSON)
1353
- };
1354
- }
1355
- function MLBTeamsToJSON(value) {
1356
- if (value == null) {
1357
- return value;
1358
- }
1359
- return {
1360
- "teams": value["teams"] == null ? void 0 : value["teams"].map(MLBTeamToJSON)
1411
+ "teams": value["teams"] == null ? void 0 : value["teams"].map(TeamToJSON)
1361
1412
  };
1362
1413
  }
1363
1414
 
@@ -1386,7 +1437,7 @@ var MlbApi = class extends BaseAPI {
1386
1437
  headers: headerParameters,
1387
1438
  query: queryParameters
1388
1439
  }, initOverrides);
1389
- return new JSONApiResponse(response, (jsonValue) => MLBSeasonsFromJSON(jsonValue));
1440
+ return new JSONApiResponse(response, (jsonValue) => SeasonsFromJSON(jsonValue));
1390
1441
  });
1391
1442
  }
1392
1443
  /**
@@ -1418,6 +1469,9 @@ var MlbApi = class extends BaseAPI {
1418
1469
  if (requestParameters["teamId"] != null) {
1419
1470
  queryParameters["teamId"] = requestParameters["teamId"];
1420
1471
  }
1472
+ if (requestParameters["gameTypes"] != null) {
1473
+ queryParameters["gameTypes"] = requestParameters["gameTypes"];
1474
+ }
1421
1475
  if (requestParameters["startDate"] != null) {
1422
1476
  queryParameters["startDate"] = requestParameters["startDate"];
1423
1477
  }
@@ -1434,7 +1488,7 @@ var MlbApi = class extends BaseAPI {
1434
1488
  headers: headerParameters,
1435
1489
  query: queryParameters
1436
1490
  }, initOverrides);
1437
- return new JSONApiResponse(response, (jsonValue) => MLBScheduleFromJSON(jsonValue));
1491
+ return new JSONApiResponse(response, (jsonValue) => ScheduleFromJSON(jsonValue));
1438
1492
  });
1439
1493
  }
1440
1494
  /**
@@ -1479,7 +1533,7 @@ var MlbApi = class extends BaseAPI {
1479
1533
  headers: headerParameters,
1480
1534
  query: queryParameters
1481
1535
  }, initOverrides);
1482
- return new JSONApiResponse(response, (jsonValue) => MLBSeasonsFromJSON(jsonValue));
1536
+ return new JSONApiResponse(response, (jsonValue) => SeasonsFromJSON(jsonValue));
1483
1537
  });
1484
1538
  }
1485
1539
  /**
@@ -1533,7 +1587,7 @@ var MlbApi = class extends BaseAPI {
1533
1587
  headers: headerParameters,
1534
1588
  query: queryParameters
1535
1589
  }, initOverrides);
1536
- return new JSONApiResponse(response, (jsonValue) => MLBStandingsListFromJSON(jsonValue));
1590
+ return new JSONApiResponse(response, (jsonValue) => DivisionStandingsListFromJSON(jsonValue));
1537
1591
  });
1538
1592
  }
1539
1593
  /**
@@ -1581,7 +1635,7 @@ var MlbApi = class extends BaseAPI {
1581
1635
  headers: headerParameters,
1582
1636
  query: queryParameters
1583
1637
  }, initOverrides);
1584
- return new JSONApiResponse(response, (jsonValue) => MLBTeamsFromJSON(jsonValue));
1638
+ return new JSONApiResponse(response, (jsonValue) => TeamsFromJSON(jsonValue));
1585
1639
  });
1586
1640
  }
1587
1641
  /**
@@ -1603,97 +1657,105 @@ var MlbApi = class extends BaseAPI {
1603
1657
  COLLECTION_FORMATS,
1604
1658
  Configuration,
1605
1659
  DefaultConfig,
1660
+ DivisionFromJSON,
1661
+ DivisionFromJSONTyped,
1662
+ DivisionStandingsFromJSON,
1663
+ DivisionStandingsFromJSONTyped,
1664
+ DivisionStandingsListFromJSON,
1665
+ DivisionStandingsListFromJSONTyped,
1666
+ DivisionStandingsListToJSON,
1667
+ DivisionStandingsToJSON,
1668
+ DivisionToJSON,
1606
1669
  FetchError,
1670
+ GameFromJSON,
1671
+ GameFromJSONTyped,
1672
+ GameStatusCode,
1673
+ GameStatusCodeFromJSON,
1674
+ GameStatusCodeFromJSONTyped,
1675
+ GameStatusCodeToJSON,
1676
+ GameStatusFromJSON,
1677
+ GameStatusFromJSONTyped,
1678
+ GameStatusToJSON,
1679
+ GameTeamFromJSON,
1680
+ GameTeamFromJSONTyped,
1681
+ GameTeamToJSON,
1682
+ GameTeamsFromJSON,
1683
+ GameTeamsFromJSONTyped,
1684
+ GameTeamsToJSON,
1685
+ GameToJSON,
1686
+ GameType,
1687
+ GameTypeFromJSON,
1688
+ GameTypeFromJSONTyped,
1689
+ GameTypeToJSON,
1607
1690
  JSONApiResponse,
1608
- MLBDivisionFromJSON,
1609
- MLBDivisionFromJSONTyped,
1610
- MLBDivisionToJSON,
1611
- MLBGameFromJSON,
1612
- MLBGameFromJSONTyped,
1613
- MLBGameGameTypeEnum,
1614
- MLBGameStatusCodedGameStateEnum,
1615
- MLBGameStatusFromJSON,
1616
- MLBGameStatusFromJSONTyped,
1617
- MLBGameStatusToJSON,
1618
- MLBGameTeamFromJSON,
1619
- MLBGameTeamFromJSONTyped,
1620
- MLBGameTeamToJSON,
1621
- MLBGameTeamsFromJSON,
1622
- MLBGameTeamsFromJSONTyped,
1623
- MLBGameTeamsToJSON,
1624
- MLBGameToJSON,
1625
- MLBLeagueDatesFromJSON,
1626
- MLBLeagueDatesFromJSONTyped,
1627
- MLBLeagueDatesToJSON,
1628
- MLBLeagueFromJSON,
1629
- MLBLeagueFromJSONTyped,
1630
- MLBLeagueRecordFromJSON,
1631
- MLBLeagueRecordFromJSONTyped,
1632
- MLBLeagueRecordToJSON,
1633
- MLBLeagueToJSON,
1634
- MLBRecordFromJSON,
1635
- MLBRecordFromJSONTyped,
1636
- MLBRecordToJSON,
1637
- MLBScheduleDayFromJSON,
1638
- MLBScheduleDayFromJSONTyped,
1639
- MLBScheduleDayToJSON,
1640
- MLBScheduleFromJSON,
1641
- MLBScheduleFromJSONTyped,
1642
- MLBScheduleToJSON,
1643
- MLBSeasonFromJSON,
1644
- MLBSeasonFromJSONTyped,
1645
- MLBSeasonToJSON,
1646
- MLBSeasonsFromJSON,
1647
- MLBSeasonsFromJSONTyped,
1648
- MLBSeasonsToJSON,
1649
- MLBSportFromJSON,
1650
- MLBSportFromJSONTyped,
1651
- MLBSportToJSON,
1652
- MLBStandingsFromJSON,
1653
- MLBStandingsFromJSONTyped,
1654
- MLBStandingsListFromJSON,
1655
- MLBStandingsListFromJSONTyped,
1656
- MLBStandingsListToJSON,
1657
- MLBStandingsToJSON,
1658
- MLBStreakFromJSON,
1659
- MLBStreakFromJSONTyped,
1660
- MLBStreakStreakTypeEnum,
1661
- MLBStreakToJSON,
1662
- MLBTeamFromJSON,
1663
- MLBTeamFromJSONTyped,
1664
- MLBTeamToJSON,
1665
- MLBTeamsFromJSON,
1666
- MLBTeamsFromJSONTyped,
1667
- MLBTeamsToJSON,
1668
- MLBVenueFromJSON,
1669
- MLBVenueFromJSONTyped,
1670
- MLBVenueToJSON,
1691
+ LeagueDatesFromJSON,
1692
+ LeagueDatesFromJSONTyped,
1693
+ LeagueDatesToJSON,
1694
+ LeagueFromJSON,
1695
+ LeagueFromJSONTyped,
1696
+ LeagueRecordFromJSON,
1697
+ LeagueRecordFromJSONTyped,
1698
+ LeagueRecordToJSON,
1699
+ LeagueToJSON,
1671
1700
  MlbApi,
1672
1701
  RequiredError,
1673
1702
  ResponseError,
1703
+ ScheduleDayFromJSON,
1704
+ ScheduleDayFromJSONTyped,
1705
+ ScheduleDayToJSON,
1706
+ ScheduleFromJSON,
1707
+ ScheduleFromJSONTyped,
1708
+ ScheduleToJSON,
1709
+ SeasonFromJSON,
1710
+ SeasonFromJSONTyped,
1711
+ SeasonToJSON,
1712
+ SeasonsFromJSON,
1713
+ SeasonsFromJSONTyped,
1714
+ SeasonsToJSON,
1715
+ SportFromJSON,
1716
+ SportFromJSONTyped,
1717
+ SportToJSON,
1718
+ StreakFromJSON,
1719
+ StreakFromJSONTyped,
1720
+ StreakStreakTypeEnum,
1721
+ StreakToJSON,
1722
+ TeamFromJSON,
1723
+ TeamFromJSONTyped,
1724
+ TeamRecordFromJSON,
1725
+ TeamRecordFromJSONTyped,
1726
+ TeamRecordToJSON,
1727
+ TeamToJSON,
1728
+ TeamsFromJSON,
1729
+ TeamsFromJSONTyped,
1730
+ TeamsToJSON,
1674
1731
  TextApiResponse,
1732
+ VenueFromJSON,
1733
+ VenueFromJSONTyped,
1734
+ VenueToJSON,
1675
1735
  VoidApiResponse,
1676
1736
  canConsumeForm,
1677
- instanceOfMLBDivision,
1678
- instanceOfMLBGame,
1679
- instanceOfMLBGameStatus,
1680
- instanceOfMLBGameTeam,
1681
- instanceOfMLBGameTeams,
1682
- instanceOfMLBLeague,
1683
- instanceOfMLBLeagueDates,
1684
- instanceOfMLBLeagueRecord,
1685
- instanceOfMLBRecord,
1686
- instanceOfMLBSchedule,
1687
- instanceOfMLBScheduleDay,
1688
- instanceOfMLBSeason,
1689
- instanceOfMLBSeasons,
1690
- instanceOfMLBSport,
1691
- instanceOfMLBStandings,
1692
- instanceOfMLBStandingsList,
1693
- instanceOfMLBStreak,
1694
- instanceOfMLBTeam,
1695
- instanceOfMLBTeams,
1696
- instanceOfMLBVenue,
1737
+ instanceOfDivision,
1738
+ instanceOfDivisionStandings,
1739
+ instanceOfDivisionStandingsList,
1740
+ instanceOfGame,
1741
+ instanceOfGameStatus,
1742
+ instanceOfGameStatusCode,
1743
+ instanceOfGameTeam,
1744
+ instanceOfGameTeams,
1745
+ instanceOfGameType,
1746
+ instanceOfLeague,
1747
+ instanceOfLeagueDates,
1748
+ instanceOfLeagueRecord,
1749
+ instanceOfSchedule,
1750
+ instanceOfScheduleDay,
1751
+ instanceOfSeason,
1752
+ instanceOfSeasons,
1753
+ instanceOfSport,
1754
+ instanceOfStreak,
1755
+ instanceOfTeam,
1756
+ instanceOfTeamRecord,
1757
+ instanceOfTeams,
1758
+ instanceOfVenue,
1697
1759
  mapValues,
1698
1760
  querystring
1699
1761
  });