@bp1222/stats-api 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -60,6 +60,14 @@ __export(src_exports, {
60
60
  BASE_PATH: () => BASE_PATH,
61
61
  BaseAPI: () => BaseAPI,
62
62
  BlobApiResponse: () => BlobApiResponse,
63
+ BoxscoreFromJSON: () => BoxscoreFromJSON,
64
+ BoxscoreFromJSONTyped: () => BoxscoreFromJSONTyped,
65
+ BoxscoreTeamsFromJSON: () => BoxscoreTeamsFromJSON,
66
+ BoxscoreTeamsFromJSONTyped: () => BoxscoreTeamsFromJSONTyped,
67
+ BoxscoreTeamsToJSON: () => BoxscoreTeamsToJSON,
68
+ BoxscoreTeamsToJSONTyped: () => BoxscoreTeamsToJSONTyped,
69
+ BoxscoreToJSON: () => BoxscoreToJSON,
70
+ BoxscoreToJSONTyped: () => BoxscoreToJSONTyped,
63
71
  COLLECTION_FORMATS: () => COLLECTION_FORMATS,
64
72
  Configuration: () => Configuration,
65
73
  DefaultConfig: () => DefaultConfig,
@@ -70,92 +78,129 @@ __export(src_exports, {
70
78
  DivisionStandingsListFromJSON: () => DivisionStandingsListFromJSON,
71
79
  DivisionStandingsListFromJSONTyped: () => DivisionStandingsListFromJSONTyped,
72
80
  DivisionStandingsListToJSON: () => DivisionStandingsListToJSON,
81
+ DivisionStandingsListToJSONTyped: () => DivisionStandingsListToJSONTyped,
73
82
  DivisionStandingsToJSON: () => DivisionStandingsToJSON,
83
+ DivisionStandingsToJSONTyped: () => DivisionStandingsToJSONTyped,
74
84
  DivisionToJSON: () => DivisionToJSON,
85
+ DivisionToJSONTyped: () => DivisionToJSONTyped,
75
86
  FetchError: () => FetchError,
76
87
  GameFromJSON: () => GameFromJSON,
77
88
  GameFromJSONTyped: () => GameFromJSONTyped,
89
+ GameOfficialFromJSON: () => GameOfficialFromJSON,
90
+ GameOfficialFromJSONTyped: () => GameOfficialFromJSONTyped,
91
+ GameOfficialToJSON: () => GameOfficialToJSON,
92
+ GameOfficialToJSONTyped: () => GameOfficialToJSONTyped,
78
93
  GameStatusCode: () => GameStatusCode,
79
94
  GameStatusCodeFromJSON: () => GameStatusCodeFromJSON,
80
95
  GameStatusCodeFromJSONTyped: () => GameStatusCodeFromJSONTyped,
81
96
  GameStatusCodeToJSON: () => GameStatusCodeToJSON,
97
+ GameStatusCodeToJSONTyped: () => GameStatusCodeToJSONTyped,
82
98
  GameStatusFromJSON: () => GameStatusFromJSON,
83
99
  GameStatusFromJSONTyped: () => GameStatusFromJSONTyped,
84
100
  GameStatusToJSON: () => GameStatusToJSON,
101
+ GameStatusToJSONTyped: () => GameStatusToJSONTyped,
85
102
  GameTeamFromJSON: () => GameTeamFromJSON,
86
103
  GameTeamFromJSONTyped: () => GameTeamFromJSONTyped,
87
104
  GameTeamToJSON: () => GameTeamToJSON,
105
+ GameTeamToJSONTyped: () => GameTeamToJSONTyped,
88
106
  GameTeamsFromJSON: () => GameTeamsFromJSON,
89
107
  GameTeamsFromJSONTyped: () => GameTeamsFromJSONTyped,
90
108
  GameTeamsToJSON: () => GameTeamsToJSON,
109
+ GameTeamsToJSONTyped: () => GameTeamsToJSONTyped,
91
110
  GameToJSON: () => GameToJSON,
111
+ GameToJSONTyped: () => GameToJSONTyped,
92
112
  GameType: () => GameType,
93
113
  GameTypeFromJSON: () => GameTypeFromJSON,
94
114
  GameTypeFromJSONTyped: () => GameTypeFromJSONTyped,
95
115
  GameTypeToJSON: () => GameTypeToJSON,
116
+ GameTypeToJSONTyped: () => GameTypeToJSONTyped,
96
117
  InningFromJSON: () => InningFromJSON,
97
118
  InningFromJSONTyped: () => InningFromJSONTyped,
98
119
  InningToJSON: () => InningToJSON,
120
+ InningToJSONTyped: () => InningToJSONTyped,
99
121
  JSONApiResponse: () => JSONApiResponse,
100
122
  LeagueDatesFromJSON: () => LeagueDatesFromJSON,
101
123
  LeagueDatesFromJSONTyped: () => LeagueDatesFromJSONTyped,
102
124
  LeagueDatesToJSON: () => LeagueDatesToJSON,
125
+ LeagueDatesToJSONTyped: () => LeagueDatesToJSONTyped,
103
126
  LeagueFromJSON: () => LeagueFromJSON,
104
127
  LeagueFromJSONTyped: () => LeagueFromJSONTyped,
105
128
  LeagueRecordFromJSON: () => LeagueRecordFromJSON,
106
129
  LeagueRecordFromJSONTyped: () => LeagueRecordFromJSONTyped,
107
130
  LeagueRecordToJSON: () => LeagueRecordToJSON,
131
+ LeagueRecordToJSONTyped: () => LeagueRecordToJSONTyped,
108
132
  LeagueToJSON: () => LeagueToJSON,
133
+ LeagueToJSONTyped: () => LeagueToJSONTyped,
109
134
  LinescoreFromJSON: () => LinescoreFromJSON,
110
135
  LinescoreFromJSONTyped: () => LinescoreFromJSONTyped,
111
136
  LinescoreTeamFromJSON: () => LinescoreTeamFromJSON,
112
137
  LinescoreTeamFromJSONTyped: () => LinescoreTeamFromJSONTyped,
113
138
  LinescoreTeamToJSON: () => LinescoreTeamToJSON,
139
+ LinescoreTeamToJSONTyped: () => LinescoreTeamToJSONTyped,
114
140
  LinescoreTeamsFromJSON: () => LinescoreTeamsFromJSON,
115
141
  LinescoreTeamsFromJSONTyped: () => LinescoreTeamsFromJSONTyped,
116
142
  LinescoreTeamsToJSON: () => LinescoreTeamsToJSON,
143
+ LinescoreTeamsToJSONTyped: () => LinescoreTeamsToJSONTyped,
117
144
  LinescoreToJSON: () => LinescoreToJSON,
145
+ LinescoreToJSONTyped: () => LinescoreToJSONTyped,
118
146
  MlbApi: () => MlbApi,
147
+ OfficialFromJSON: () => OfficialFromJSON,
148
+ OfficialFromJSONTyped: () => OfficialFromJSONTyped,
149
+ OfficialToJSON: () => OfficialToJSON,
150
+ OfficialToJSONTyped: () => OfficialToJSONTyped,
151
+ RecordFromJSON: () => RecordFromJSON,
152
+ RecordFromJSONTyped: () => RecordFromJSONTyped,
153
+ RecordToJSON: () => RecordToJSON,
154
+ RecordToJSONTyped: () => RecordToJSONTyped,
119
155
  RequiredError: () => RequiredError,
120
156
  ResponseError: () => ResponseError,
121
157
  ScheduleDayFromJSON: () => ScheduleDayFromJSON,
122
158
  ScheduleDayFromJSONTyped: () => ScheduleDayFromJSONTyped,
123
159
  ScheduleDayToJSON: () => ScheduleDayToJSON,
160
+ ScheduleDayToJSONTyped: () => ScheduleDayToJSONTyped,
124
161
  ScheduleFromJSON: () => ScheduleFromJSON,
125
162
  ScheduleFromJSONTyped: () => ScheduleFromJSONTyped,
126
163
  ScheduleToJSON: () => ScheduleToJSON,
164
+ ScheduleToJSONTyped: () => ScheduleToJSONTyped,
127
165
  SeasonFromJSON: () => SeasonFromJSON,
128
166
  SeasonFromJSONTyped: () => SeasonFromJSONTyped,
129
167
  SeasonToJSON: () => SeasonToJSON,
168
+ SeasonToJSONTyped: () => SeasonToJSONTyped,
130
169
  SeasonsFromJSON: () => SeasonsFromJSON,
131
170
  SeasonsFromJSONTyped: () => SeasonsFromJSONTyped,
132
171
  SeasonsToJSON: () => SeasonsToJSON,
172
+ SeasonsToJSONTyped: () => SeasonsToJSONTyped,
133
173
  SportFromJSON: () => SportFromJSON,
134
174
  SportFromJSONTyped: () => SportFromJSONTyped,
135
175
  SportToJSON: () => SportToJSON,
176
+ SportToJSONTyped: () => SportToJSONTyped,
136
177
  StreakFromJSON: () => StreakFromJSON,
137
178
  StreakFromJSONTyped: () => StreakFromJSONTyped,
138
179
  StreakStreakTypeEnum: () => StreakStreakTypeEnum,
139
180
  StreakToJSON: () => StreakToJSON,
181
+ StreakToJSONTyped: () => StreakToJSONTyped,
140
182
  TeamFromJSON: () => TeamFromJSON,
141
- TeamFromJSONTyped: () => TeamFromJSONTyped,
142
- TeamRecordFromJSON: () => TeamRecordFromJSON,
143
- TeamRecordFromJSONTyped: () => TeamRecordFromJSONTyped,
144
- TeamRecordToJSON: () => TeamRecordToJSON,
183
+ TeamFromJSONTyped: () => TeamFromJSONTyped2,
145
184
  TeamToJSON: () => TeamToJSON,
185
+ TeamToJSONTyped: () => TeamToJSONTyped2,
146
186
  TeamsFromJSON: () => TeamsFromJSON,
147
187
  TeamsFromJSONTyped: () => TeamsFromJSONTyped,
148
188
  TeamsToJSON: () => TeamsToJSON,
189
+ TeamsToJSONTyped: () => TeamsToJSONTyped,
149
190
  TextApiResponse: () => TextApiResponse,
150
191
  VenueFromJSON: () => VenueFromJSON,
151
192
  VenueFromJSONTyped: () => VenueFromJSONTyped,
152
193
  VenueToJSON: () => VenueToJSON,
194
+ VenueToJSONTyped: () => VenueToJSONTyped,
153
195
  VoidApiResponse: () => VoidApiResponse,
154
196
  canConsumeForm: () => canConsumeForm,
197
+ instanceOfBoxscore: () => instanceOfBoxscore,
198
+ instanceOfBoxscoreTeams: () => instanceOfBoxscoreTeams,
155
199
  instanceOfDivision: () => instanceOfDivision,
156
200
  instanceOfDivisionStandings: () => instanceOfDivisionStandings,
157
201
  instanceOfDivisionStandingsList: () => instanceOfDivisionStandingsList,
158
202
  instanceOfGame: () => instanceOfGame,
203
+ instanceOfGameOfficial: () => instanceOfGameOfficial,
159
204
  instanceOfGameStatus: () => instanceOfGameStatus,
160
205
  instanceOfGameStatusCode: () => instanceOfGameStatusCode,
161
206
  instanceOfGameTeam: () => instanceOfGameTeam,
@@ -168,6 +213,8 @@ __export(src_exports, {
168
213
  instanceOfLinescore: () => instanceOfLinescore,
169
214
  instanceOfLinescoreTeam: () => instanceOfLinescoreTeam,
170
215
  instanceOfLinescoreTeams: () => instanceOfLinescoreTeams,
216
+ instanceOfOfficial: () => instanceOfOfficial,
217
+ instanceOfRecord: () => instanceOfRecord,
171
218
  instanceOfSchedule: () => instanceOfSchedule,
172
219
  instanceOfScheduleDay: () => instanceOfScheduleDay,
173
220
  instanceOfSeason: () => instanceOfSeason,
@@ -175,7 +222,6 @@ __export(src_exports, {
175
222
  instanceOfSport: () => instanceOfSport,
176
223
  instanceOfStreak: () => instanceOfStreak,
177
224
  instanceOfTeam: () => instanceOfTeam,
178
- instanceOfTeamRecord: () => instanceOfTeamRecord,
179
225
  instanceOfTeams: () => instanceOfTeams,
180
226
  instanceOfVenue: () => instanceOfVenue,
181
227
  mapValues: () => mapValues,
@@ -480,6 +526,66 @@ var TextApiResponse = class {
480
526
  }
481
527
  };
482
528
 
529
+ // src/models/Official.ts
530
+ function instanceOfOfficial(value) {
531
+ return true;
532
+ }
533
+ function OfficialFromJSON(json) {
534
+ return OfficialFromJSONTyped(json, false);
535
+ }
536
+ function OfficialFromJSONTyped(json, ignoreDiscriminator) {
537
+ if (json == null) {
538
+ return json;
539
+ }
540
+ return {
541
+ "id": json["id"] == null ? void 0 : json["id"],
542
+ "fullName": json["fullName"] == null ? void 0 : json["fullName"],
543
+ "link": json["link"] == null ? void 0 : json["link"]
544
+ };
545
+ }
546
+ function OfficialToJSON(json) {
547
+ return OfficialToJSONTyped(json, false);
548
+ }
549
+ function OfficialToJSONTyped(value, ignoreDiscriminator = false) {
550
+ if (value == null) {
551
+ return value;
552
+ }
553
+ return {
554
+ "id": value["id"],
555
+ "fullName": value["fullName"],
556
+ "link": value["link"]
557
+ };
558
+ }
559
+
560
+ // src/models/GameOfficial.ts
561
+ function instanceOfGameOfficial(value) {
562
+ return true;
563
+ }
564
+ function GameOfficialFromJSON(json) {
565
+ return GameOfficialFromJSONTyped(json, false);
566
+ }
567
+ function GameOfficialFromJSONTyped(json, ignoreDiscriminator) {
568
+ if (json == null) {
569
+ return json;
570
+ }
571
+ return {
572
+ "official": json["official"] == null ? void 0 : OfficialFromJSON(json["official"]),
573
+ "officialType": json["officialType"] == null ? void 0 : json["officialType"]
574
+ };
575
+ }
576
+ function GameOfficialToJSON(json) {
577
+ return GameOfficialToJSONTyped(json, false);
578
+ }
579
+ function GameOfficialToJSONTyped(value, ignoreDiscriminator = false) {
580
+ if (value == null) {
581
+ return value;
582
+ }
583
+ return {
584
+ "official": OfficialToJSON(value["official"]),
585
+ "officialType": value["officialType"]
586
+ };
587
+ }
588
+
483
589
  // src/models/LeagueDates.ts
484
590
  function instanceOfLeagueDates(value) {
485
591
  return true;
@@ -504,7 +610,10 @@ function LeagueDatesFromJSONTyped(json, ignoreDiscriminator) {
504
610
  "gameLevelGamedayType": json["gameLevelGamedayType"] == null ? void 0 : json["gameLevelGamedayType"]
505
611
  };
506
612
  }
507
- function LeagueDatesToJSON(value) {
613
+ function LeagueDatesToJSON(json) {
614
+ return LeagueDatesToJSONTyped(json, false);
615
+ }
616
+ function LeagueDatesToJSONTyped(value, ignoreDiscriminator = false) {
508
617
  if (value == null) {
509
618
  return value;
510
619
  }
@@ -554,7 +663,10 @@ function LeagueFromJSONTyped(json, ignoreDiscriminator) {
554
663
  "active": json["active"] == null ? void 0 : json["active"]
555
664
  };
556
665
  }
557
- function LeagueToJSON(value) {
666
+ function LeagueToJSON(json) {
667
+ return LeagueToJSONTyped(json, false);
668
+ }
669
+ function LeagueToJSONTyped(value, ignoreDiscriminator = false) {
558
670
  if (value == null) {
559
671
  return value;
560
672
  }
@@ -600,7 +712,10 @@ function SportFromJSONTyped(json, ignoreDiscriminator) {
600
712
  "activeStatus": json["activeStatus"] == null ? void 0 : json["activeStatus"]
601
713
  };
602
714
  }
603
- function SportToJSON(value) {
715
+ function SportToJSON(json) {
716
+ return SportToJSONTyped(json, false);
717
+ }
718
+ function SportToJSONTyped(value, ignoreDiscriminator = false) {
604
719
  if (value == null) {
605
720
  return value;
606
721
  }
@@ -615,6 +730,43 @@ function SportToJSON(value) {
615
730
  };
616
731
  }
617
732
 
733
+ // src/models/Venue.ts
734
+ function instanceOfVenue(value) {
735
+ if (!("id" in value) || value["id"] === void 0) return false;
736
+ if (!("name" in value) || value["name"] === void 0) return false;
737
+ return true;
738
+ }
739
+ function VenueFromJSON(json) {
740
+ return VenueFromJSONTyped(json, false);
741
+ }
742
+ function VenueFromJSONTyped(json, ignoreDiscriminator) {
743
+ if (json == null) {
744
+ return json;
745
+ }
746
+ return {
747
+ "id": json["id"],
748
+ "name": json["name"],
749
+ "link": json["link"] == null ? void 0 : json["link"],
750
+ "active": json["active"] == null ? void 0 : json["active"],
751
+ "season": json["season"] == null ? void 0 : json["season"]
752
+ };
753
+ }
754
+ function VenueToJSON(json) {
755
+ return VenueToJSONTyped(json, false);
756
+ }
757
+ function VenueToJSONTyped(value, ignoreDiscriminator = false) {
758
+ if (value == null) {
759
+ return value;
760
+ }
761
+ return {
762
+ "id": value["id"],
763
+ "name": value["name"],
764
+ "link": value["link"],
765
+ "active": value["active"],
766
+ "season": value["season"]
767
+ };
768
+ }
769
+
618
770
  // src/models/Division.ts
619
771
  function instanceOfDivision(value) {
620
772
  if (!("id" in value) || value["id"] === void 0) return false;
@@ -643,7 +795,10 @@ function DivisionFromJSONTyped(json, ignoreDiscriminator) {
643
795
  "active": json["active"] == null ? void 0 : json["active"]
644
796
  };
645
797
  }
646
- function DivisionToJSON(value) {
798
+ function DivisionToJSON(json) {
799
+ return DivisionToJSONTyped(json, false);
800
+ }
801
+ function DivisionToJSONTyped(value, ignoreDiscriminator = false) {
647
802
  if (value == null) {
648
803
  return value;
649
804
  }
@@ -664,10 +819,11 @@ function DivisionToJSON(value) {
664
819
  }
665
820
 
666
821
  // src/models/Streak.ts
667
- var StreakStreakTypeEnum = {
668
- Losing: "losses",
669
- Winning: "wins"
670
- };
822
+ var StreakStreakTypeEnum = /* @__PURE__ */ ((StreakStreakTypeEnum2) => {
823
+ StreakStreakTypeEnum2["Losing"] = "losses";
824
+ StreakStreakTypeEnum2["Winning"] = "wins";
825
+ return StreakStreakTypeEnum2;
826
+ })(StreakStreakTypeEnum || {});
671
827
  function instanceOfStreak(value) {
672
828
  return true;
673
829
  }
@@ -682,112 +838,15 @@ function StreakFromJSONTyped(json, ignoreDiscriminator) {
682
838
  "streakType": json["streakType"] == null ? void 0 : json["streakType"]
683
839
  };
684
840
  }
685
- function StreakToJSON(value) {
686
- if (value == null) {
687
- return value;
688
- }
689
- return {
690
- "streakType": value["streakType"]
691
- };
841
+ function StreakToJSON(json) {
842
+ return StreakToJSONTyped(json, false);
692
843
  }
693
-
694
- // src/models/Venue.ts
695
- function instanceOfVenue(value) {
696
- if (!("id" in value) || value["id"] === void 0) return false;
697
- if (!("name" in value) || value["name"] === void 0) return false;
698
- return true;
699
- }
700
- function VenueFromJSON(json) {
701
- return VenueFromJSONTyped(json, false);
702
- }
703
- function VenueFromJSONTyped(json, ignoreDiscriminator) {
704
- if (json == null) {
705
- return json;
706
- }
707
- return {
708
- "id": json["id"],
709
- "name": json["name"],
710
- "link": json["link"] == null ? void 0 : json["link"],
711
- "active": json["active"] == null ? void 0 : json["active"],
712
- "season": json["season"] == null ? void 0 : json["season"]
713
- };
714
- }
715
- function VenueToJSON(value) {
716
- if (value == null) {
717
- return value;
718
- }
719
- return {
720
- "id": value["id"],
721
- "name": value["name"],
722
- "link": value["link"],
723
- "active": value["active"],
724
- "season": value["season"]
725
- };
726
- }
727
-
728
- // src/models/Team.ts
729
- function instanceOfTeam(value) {
730
- if (!("id" in value) || value["id"] === void 0) return false;
731
- if (!("name" in value) || value["name"] === void 0) return false;
732
- return true;
733
- }
734
- function TeamFromJSON(json) {
735
- return TeamFromJSONTyped(json, false);
736
- }
737
- function TeamFromJSONTyped(json, ignoreDiscriminator) {
738
- if (json == null) {
739
- return json;
740
- }
741
- return {
742
- "id": json["id"],
743
- "name": json["name"],
744
- "link": json["link"] == null ? void 0 : json["link"],
745
- "allStarStatus": json["allStarStatus"] == null ? void 0 : json["allStarStatus"],
746
- "season": json["season"] == null ? void 0 : json["season"],
747
- "venue": json["venue"] == null ? void 0 : VenueFromJSON(json["venue"]),
748
- "springVenue": json["springVenue"] == null ? void 0 : VenueFromJSON(json["springVenue"]),
749
- "teamCode": json["teamCode"] == null ? void 0 : json["teamCode"],
750
- "fileCode": json["fileCode"] == null ? void 0 : json["fileCode"],
751
- "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
752
- "teamName": json["teamName"] == null ? void 0 : json["teamName"],
753
- "locationName": json["locationName"] == null ? void 0 : json["locationName"],
754
- "firstYearOfPlay": json["firstYearOfPlay"] == null ? void 0 : json["firstYearOfPlay"],
755
- "league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
756
- "springLeague": json["springLeague"] == null ? void 0 : LeagueFromJSON(json["springLeague"]),
757
- "division": json["division"] == null ? void 0 : DivisionFromJSON(json["division"]),
758
- "sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
759
- "shortName": json["shortName"] == null ? void 0 : json["shortName"],
760
- "franchiseName": json["franchiseName"] == null ? void 0 : json["franchiseName"],
761
- "clubName": json["clubName"] == null ? void 0 : json["clubName"],
762
- "active": json["active"] == null ? void 0 : json["active"]
763
- };
764
- }
765
- function TeamToJSON(value) {
844
+ function StreakToJSONTyped(value, ignoreDiscriminator = false) {
766
845
  if (value == null) {
767
846
  return value;
768
847
  }
769
848
  return {
770
- "id": value["id"],
771
- "name": value["name"],
772
- "link": value["link"],
773
- "allStarStatus": value["allStarStatus"],
774
- "season": value["season"],
775
- "venue": VenueToJSON(value["venue"]),
776
- "springVenue": VenueToJSON(value["springVenue"]),
777
- "teamCode": value["teamCode"],
778
- "fileCode": value["fileCode"],
779
- "abbreviation": value["abbreviation"],
780
- "teamName": value["teamName"],
781
- "locationName": value["locationName"],
782
- "firstYearOfPlay": value["firstYearOfPlay"],
783
- "league": LeagueToJSON(value["league"]),
784
- "springLeague": LeagueToJSON(value["springLeague"]),
785
- "division": DivisionToJSON(value["division"]),
786
- "sport": SportToJSON(value["sport"]),
787
- "shortName": value["shortName"],
788
- "franchiseName": value["franchiseName"],
789
- "clubName": value["clubName"],
790
- "active": value["active"]
849
+ "streakType": value["streakType"]
791
850
  };
792
851
  }
793
852
 
@@ -812,7 +871,10 @@ function LeagueRecordFromJSONTyped(json, ignoreDiscriminator) {
812
871
  "pct": json["pct"]
813
872
  };
814
873
  }
815
- function LeagueRecordToJSON(value) {
874
+ function LeagueRecordToJSON(json) {
875
+ return LeagueRecordToJSONTyped(json, false);
876
+ }
877
+ function LeagueRecordToJSONTyped(value, ignoreDiscriminator = false) {
816
878
  if (value == null) {
817
879
  return value;
818
880
  }
@@ -824,8 +886,8 @@ function LeagueRecordToJSON(value) {
824
886
  };
825
887
  }
826
888
 
827
- // src/models/TeamRecord.ts
828
- function instanceOfTeamRecord(value) {
889
+ // src/models/Record.ts
890
+ function instanceOfRecord(value) {
829
891
  if (!("team" in value) || value["team"] === void 0) return false;
830
892
  if (!("season" in value) || value["season"] === void 0) return false;
831
893
  if (!("streak" in value) || value["streak"] === void 0) return false;
@@ -837,10 +899,10 @@ function instanceOfTeamRecord(value) {
837
899
  if (!("losses" in value) || value["losses"] === void 0) return false;
838
900
  return true;
839
901
  }
840
- function TeamRecordFromJSON(json) {
841
- return TeamRecordFromJSONTyped(json, false);
902
+ function RecordFromJSON(json) {
903
+ return RecordFromJSONTyped(json, false);
842
904
  }
843
- function TeamRecordFromJSONTyped(json, ignoreDiscriminator) {
905
+ function RecordFromJSONTyped(json, ignoreDiscriminator) {
844
906
  if (json == null) {
845
907
  return json;
846
908
  }
@@ -879,7 +941,10 @@ function TeamRecordFromJSONTyped(json, ignoreDiscriminator) {
879
941
  "winningPercentage": json["winningPercentage"] == null ? void 0 : json["winningPercentage"]
880
942
  };
881
943
  }
882
- function TeamRecordToJSON(value) {
944
+ function RecordToJSON(json) {
945
+ return RecordToJSONTyped(json, false);
946
+ }
947
+ function RecordToJSONTyped(value, ignoreDiscriminator = false) {
883
948
  if (value == null) {
884
949
  return value;
885
950
  }
@@ -919,6 +984,135 @@ function TeamRecordToJSON(value) {
919
984
  };
920
985
  }
921
986
 
987
+ // src/models/Team.ts
988
+ function instanceOfTeam(value) {
989
+ if (!("id" in value) || value["id"] === void 0) return false;
990
+ if (!("name" in value) || value["name"] === void 0) return false;
991
+ return true;
992
+ }
993
+ function TeamFromJSON(json) {
994
+ return TeamFromJSONTyped2(json, false);
995
+ }
996
+ function TeamFromJSONTyped2(json, ignoreDiscriminator) {
997
+ if (json == null) {
998
+ return json;
999
+ }
1000
+ return {
1001
+ "id": json["id"],
1002
+ "name": json["name"],
1003
+ "link": json["link"] == null ? void 0 : json["link"],
1004
+ "allStarStatus": json["allStarStatus"] == null ? void 0 : json["allStarStatus"],
1005
+ "season": json["season"] == null ? void 0 : json["season"],
1006
+ "venue": json["venue"] == null ? void 0 : VenueFromJSON(json["venue"]),
1007
+ "springVenue": json["springVenue"] == null ? void 0 : VenueFromJSON(json["springVenue"]),
1008
+ "teamCode": json["teamCode"] == null ? void 0 : json["teamCode"],
1009
+ "fileCode": json["fileCode"] == null ? void 0 : json["fileCode"],
1010
+ "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
1011
+ "teamName": json["teamName"] == null ? void 0 : json["teamName"],
1012
+ "locationName": json["locationName"] == null ? void 0 : json["locationName"],
1013
+ "firstYearOfPlay": json["firstYearOfPlay"] == null ? void 0 : json["firstYearOfPlay"],
1014
+ "league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
1015
+ "springLeague": json["springLeague"] == null ? void 0 : LeagueFromJSON(json["springLeague"]),
1016
+ "division": json["division"] == null ? void 0 : DivisionFromJSON(json["division"]),
1017
+ "sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
1018
+ "record": json["record"] == null ? void 0 : RecordFromJSON(json["record"]),
1019
+ "shortName": json["shortName"] == null ? void 0 : json["shortName"],
1020
+ "franchiseName": json["franchiseName"] == null ? void 0 : json["franchiseName"],
1021
+ "clubName": json["clubName"] == null ? void 0 : json["clubName"],
1022
+ "active": json["active"] == null ? void 0 : json["active"]
1023
+ };
1024
+ }
1025
+ function TeamToJSON(json) {
1026
+ return TeamToJSONTyped2(json, false);
1027
+ }
1028
+ function TeamToJSONTyped2(value, ignoreDiscriminator = false) {
1029
+ if (value == null) {
1030
+ return value;
1031
+ }
1032
+ return {
1033
+ "id": value["id"],
1034
+ "name": value["name"],
1035
+ "link": value["link"],
1036
+ "allStarStatus": value["allStarStatus"],
1037
+ "season": value["season"],
1038
+ "venue": VenueToJSON(value["venue"]),
1039
+ "springVenue": VenueToJSON(value["springVenue"]),
1040
+ "teamCode": value["teamCode"],
1041
+ "fileCode": value["fileCode"],
1042
+ "abbreviation": value["abbreviation"],
1043
+ "teamName": value["teamName"],
1044
+ "locationName": value["locationName"],
1045
+ "firstYearOfPlay": value["firstYearOfPlay"],
1046
+ "league": LeagueToJSON(value["league"]),
1047
+ "springLeague": LeagueToJSON(value["springLeague"]),
1048
+ "division": DivisionToJSON(value["division"]),
1049
+ "sport": SportToJSON(value["sport"]),
1050
+ "record": RecordToJSON(value["record"]),
1051
+ "shortName": value["shortName"],
1052
+ "franchiseName": value["franchiseName"],
1053
+ "clubName": value["clubName"],
1054
+ "active": value["active"]
1055
+ };
1056
+ }
1057
+
1058
+ // src/models/BoxscoreTeams.ts
1059
+ function instanceOfBoxscoreTeams(value) {
1060
+ return true;
1061
+ }
1062
+ function BoxscoreTeamsFromJSON(json) {
1063
+ return BoxscoreTeamsFromJSONTyped(json, false);
1064
+ }
1065
+ function BoxscoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
1066
+ if (json == null) {
1067
+ return json;
1068
+ }
1069
+ return {
1070
+ "away": json["away"] == null ? void 0 : TeamFromJSON(json["away"]),
1071
+ "home": json["home"] == null ? void 0 : TeamFromJSON(json["home"])
1072
+ };
1073
+ }
1074
+ function BoxscoreTeamsToJSON(json) {
1075
+ return BoxscoreTeamsToJSONTyped(json, false);
1076
+ }
1077
+ function BoxscoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
1078
+ if (value == null) {
1079
+ return value;
1080
+ }
1081
+ return {
1082
+ "away": TeamToJSON(value["away"]),
1083
+ "home": TeamToJSON(value["home"])
1084
+ };
1085
+ }
1086
+
1087
+ // src/models/Boxscore.ts
1088
+ function instanceOfBoxscore(value) {
1089
+ return true;
1090
+ }
1091
+ function BoxscoreFromJSON(json) {
1092
+ return BoxscoreFromJSONTyped(json, false);
1093
+ }
1094
+ function BoxscoreFromJSONTyped(json, ignoreDiscriminator) {
1095
+ if (json == null) {
1096
+ return json;
1097
+ }
1098
+ return {
1099
+ "teams": json["teams"] == null ? void 0 : BoxscoreTeamsFromJSON(json["teams"]),
1100
+ "officials": json["officials"] == null ? void 0 : json["officials"].map(GameOfficialFromJSON)
1101
+ };
1102
+ }
1103
+ function BoxscoreToJSON(json) {
1104
+ return BoxscoreToJSONTyped(json, false);
1105
+ }
1106
+ function BoxscoreToJSONTyped(value, ignoreDiscriminator = false) {
1107
+ if (value == null) {
1108
+ return value;
1109
+ }
1110
+ return {
1111
+ "teams": BoxscoreTeamsToJSON(value["teams"]),
1112
+ "officials": value["officials"] == null ? void 0 : value["officials"].map(GameOfficialToJSON)
1113
+ };
1114
+ }
1115
+
922
1116
  // src/models/DivisionStandings.ts
923
1117
  function instanceOfDivisionStandings(value) {
924
1118
  if (!("league" in value) || value["league"] === void 0) return false;
@@ -940,10 +1134,13 @@ function DivisionStandingsFromJSONTyped(json, ignoreDiscriminator) {
940
1134
  "division": DivisionFromJSON(json["division"]),
941
1135
  "sport": SportFromJSON(json["sport"]),
942
1136
  "lastUpdated": json["lastUpdated"] == null ? void 0 : json["lastUpdated"],
943
- "teamRecords": json["teamRecords"].map(TeamRecordFromJSON)
1137
+ "teamRecords": json["teamRecords"].map(RecordFromJSON)
944
1138
  };
945
1139
  }
946
- function DivisionStandingsToJSON(value) {
1140
+ function DivisionStandingsToJSON(json) {
1141
+ return DivisionStandingsToJSONTyped(json, false);
1142
+ }
1143
+ function DivisionStandingsToJSONTyped(value, ignoreDiscriminator = false) {
947
1144
  if (value == null) {
948
1145
  return value;
949
1146
  }
@@ -953,7 +1150,7 @@ function DivisionStandingsToJSON(value) {
953
1150
  "division": DivisionToJSON(value["division"]),
954
1151
  "sport": SportToJSON(value["sport"]),
955
1152
  "lastUpdated": value["lastUpdated"],
956
- "teamRecords": value["teamRecords"].map(TeamRecordToJSON)
1153
+ "teamRecords": value["teamRecords"].map(RecordToJSON)
957
1154
  };
958
1155
  }
959
1156
 
@@ -972,7 +1169,10 @@ function DivisionStandingsListFromJSONTyped(json, ignoreDiscriminator) {
972
1169
  "records": json["records"] == null ? void 0 : json["records"].map(DivisionStandingsFromJSON)
973
1170
  };
974
1171
  }
975
- function DivisionStandingsListToJSON(value) {
1172
+ function DivisionStandingsListToJSON(json) {
1173
+ return DivisionStandingsListToJSONTyped(json, false);
1174
+ }
1175
+ function DivisionStandingsListToJSONTyped(value, ignoreDiscriminator = false) {
976
1176
  if (value == null) {
977
1177
  return value;
978
1178
  }
@@ -982,15 +1182,16 @@ function DivisionStandingsListToJSON(value) {
982
1182
  }
983
1183
 
984
1184
  // src/models/GameStatusCode.ts
985
- var GameStatusCode = {
986
- Final: "F",
987
- Postponed: "D",
988
- Scheduled: "S",
989
- InProgress: "I",
990
- Pregame: "P",
991
- GameOver: "O",
992
- Canceled: "C"
993
- };
1185
+ var GameStatusCode = /* @__PURE__ */ ((GameStatusCode2) => {
1186
+ GameStatusCode2["Final"] = "F";
1187
+ GameStatusCode2["Postponed"] = "D";
1188
+ GameStatusCode2["Scheduled"] = "S";
1189
+ GameStatusCode2["InProgress"] = "I";
1190
+ GameStatusCode2["Pregame"] = "P";
1191
+ GameStatusCode2["GameOver"] = "O";
1192
+ GameStatusCode2["Canceled"] = "C";
1193
+ return GameStatusCode2;
1194
+ })(GameStatusCode || {});
994
1195
  function instanceOfGameStatusCode(value) {
995
1196
  for (const key in GameStatusCode) {
996
1197
  if (Object.prototype.hasOwnProperty.call(GameStatusCode, key)) {
@@ -1010,6 +1211,9 @@ function GameStatusCodeFromJSONTyped(json, ignoreDiscriminator) {
1010
1211
  function GameStatusCodeToJSON(value) {
1011
1212
  return value;
1012
1213
  }
1214
+ function GameStatusCodeToJSONTyped(value, ignoreDiscriminator) {
1215
+ return value;
1216
+ }
1013
1217
 
1014
1218
  // src/models/GameStatus.ts
1015
1219
  function instanceOfGameStatus(value) {
@@ -1031,7 +1235,10 @@ function GameStatusFromJSONTyped(json, ignoreDiscriminator) {
1031
1235
  "abstractGameCode": json["abstractGameCode"] == null ? void 0 : json["abstractGameCode"]
1032
1236
  };
1033
1237
  }
1034
- function GameStatusToJSON(value) {
1238
+ function GameStatusToJSON(json) {
1239
+ return GameStatusToJSONTyped(json, false);
1240
+ }
1241
+ function GameStatusToJSONTyped(value, ignoreDiscriminator = false) {
1035
1242
  if (value == null) {
1036
1243
  return value;
1037
1244
  }
@@ -1068,7 +1275,10 @@ function GameTeamFromJSONTyped(json, ignoreDiscriminator) {
1068
1275
  "seriesNumber": json["seriesNumber"] == null ? void 0 : json["seriesNumber"]
1069
1276
  };
1070
1277
  }
1071
- function GameTeamToJSON(value) {
1278
+ function GameTeamToJSON(json) {
1279
+ return GameTeamToJSONTyped(json, false);
1280
+ }
1281
+ function GameTeamToJSONTyped(value, ignoreDiscriminator = false) {
1072
1282
  if (value == null) {
1073
1283
  return value;
1074
1284
  }
@@ -1100,7 +1310,10 @@ function GameTeamsFromJSONTyped(json, ignoreDiscriminator) {
1100
1310
  "home": GameTeamFromJSON(json["home"])
1101
1311
  };
1102
1312
  }
1103
- function GameTeamsToJSON(value) {
1313
+ function GameTeamsToJSON(json) {
1314
+ return GameTeamsToJSONTyped(json, false);
1315
+ }
1316
+ function GameTeamsToJSONTyped(value, ignoreDiscriminator = false) {
1104
1317
  if (value == null) {
1105
1318
  return value;
1106
1319
  }
@@ -1111,15 +1324,16 @@ function GameTeamsToJSON(value) {
1111
1324
  }
1112
1325
 
1113
1326
  // src/models/GameType.ts
1114
- var GameType = {
1115
- Exhibition: "E",
1116
- SpringTraining: "S",
1117
- Regular: "R",
1118
- WildCardSeries: "F",
1119
- DivisionSeries: "D",
1120
- LeagueChampionshipSeries: "L",
1121
- WorldSeries: "W"
1122
- };
1327
+ var GameType = /* @__PURE__ */ ((GameType2) => {
1328
+ GameType2["Exhibition"] = "E";
1329
+ GameType2["SpringTraining"] = "S";
1330
+ GameType2["Regular"] = "R";
1331
+ GameType2["WildCardSeries"] = "F";
1332
+ GameType2["DivisionSeries"] = "D";
1333
+ GameType2["LeagueChampionshipSeries"] = "L";
1334
+ GameType2["WorldSeries"] = "W";
1335
+ return GameType2;
1336
+ })(GameType || {});
1123
1337
  function instanceOfGameType(value) {
1124
1338
  for (const key in GameType) {
1125
1339
  if (Object.prototype.hasOwnProperty.call(GameType, key)) {
@@ -1139,6 +1353,9 @@ function GameTypeFromJSONTyped(json, ignoreDiscriminator) {
1139
1353
  function GameTypeToJSON(value) {
1140
1354
  return value;
1141
1355
  }
1356
+ function GameTypeToJSONTyped(value, ignoreDiscriminator) {
1357
+ return value;
1358
+ }
1142
1359
 
1143
1360
  // src/models/Game.ts
1144
1361
  function instanceOfGame(value) {
@@ -1198,7 +1415,10 @@ function GameFromJSONTyped(json, ignoreDiscriminator) {
1198
1415
  "ifNecessaryDescription": json["ifNecessaryDescription"] == null ? void 0 : json["ifNecessaryDescription"]
1199
1416
  };
1200
1417
  }
1201
- function GameToJSON(value) {
1418
+ function GameToJSON(json) {
1419
+ return GameToJSONTyped(json, false);
1420
+ }
1421
+ function GameToJSONTyped(value, ignoreDiscriminator = false) {
1202
1422
  if (value == null) {
1203
1423
  return value;
1204
1424
  }
@@ -1257,7 +1477,10 @@ function LinescoreTeamFromJSONTyped(json, ignoreDiscriminator) {
1257
1477
  "leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"]
1258
1478
  };
1259
1479
  }
1260
- function LinescoreTeamToJSON(value) {
1480
+ function LinescoreTeamToJSON(json) {
1481
+ return LinescoreTeamToJSONTyped(json, false);
1482
+ }
1483
+ function LinescoreTeamToJSONTyped(value, ignoreDiscriminator = false) {
1261
1484
  if (value == null) {
1262
1485
  return value;
1263
1486
  }
@@ -1287,7 +1510,10 @@ function InningFromJSONTyped(json, ignoreDiscriminator) {
1287
1510
  "away": json["away"] == null ? void 0 : LinescoreTeamFromJSON(json["away"])
1288
1511
  };
1289
1512
  }
1290
- function InningToJSON(value) {
1513
+ function InningToJSON(json) {
1514
+ return InningToJSONTyped(json, false);
1515
+ }
1516
+ function InningToJSONTyped(value, ignoreDiscriminator = false) {
1291
1517
  if (value == null) {
1292
1518
  return value;
1293
1519
  }
@@ -1315,7 +1541,10 @@ function LinescoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
1315
1541
  "home": json["home"] == null ? void 0 : LinescoreTeamFromJSON(json["home"])
1316
1542
  };
1317
1543
  }
1318
- function LinescoreTeamsToJSON(value) {
1544
+ function LinescoreTeamsToJSON(json) {
1545
+ return LinescoreTeamsToJSONTyped(json, false);
1546
+ }
1547
+ function LinescoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
1319
1548
  if (value == null) {
1320
1549
  return value;
1321
1550
  }
@@ -1350,7 +1579,10 @@ function LinescoreFromJSONTyped(json, ignoreDiscriminator) {
1350
1579
  "outs": json["outs"] == null ? void 0 : json["outs"]
1351
1580
  };
1352
1581
  }
1353
- function LinescoreToJSON(value) {
1582
+ function LinescoreToJSON(json) {
1583
+ return LinescoreToJSONTyped(json, false);
1584
+ }
1585
+ function LinescoreToJSONTyped(value, ignoreDiscriminator = false) {
1354
1586
  if (value == null) {
1355
1587
  return value;
1356
1588
  }
@@ -1390,7 +1622,10 @@ function ScheduleDayFromJSONTyped(json, ignoreDiscriminator) {
1390
1622
  "games": json["games"].map(GameFromJSON)
1391
1623
  };
1392
1624
  }
1393
- function ScheduleDayToJSON(value) {
1625
+ function ScheduleDayToJSON(json) {
1626
+ return ScheduleDayToJSONTyped(json, false);
1627
+ }
1628
+ function ScheduleDayToJSONTyped(value, ignoreDiscriminator = false) {
1394
1629
  if (value == null) {
1395
1630
  return value;
1396
1631
  }
@@ -1428,7 +1663,10 @@ function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
1428
1663
  "dates": json["dates"].map(ScheduleDayFromJSON)
1429
1664
  };
1430
1665
  }
1431
- function ScheduleToJSON(value) {
1666
+ function ScheduleToJSON(json) {
1667
+ return ScheduleToJSONTyped(json, false);
1668
+ }
1669
+ function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
1432
1670
  if (value == null) {
1433
1671
  return value;
1434
1672
  }
@@ -1481,7 +1719,10 @@ function SeasonFromJSONTyped(json, ignoreDiscriminator) {
1481
1719
  "qualifierOutsPitched": json["qualifierOutsPitched"] == null ? void 0 : json["qualifierOutsPitched"]
1482
1720
  };
1483
1721
  }
1484
- function SeasonToJSON(value) {
1722
+ function SeasonToJSON(json) {
1723
+ return SeasonToJSONTyped(json, false);
1724
+ }
1725
+ function SeasonToJSONTyped(value, ignoreDiscriminator = false) {
1485
1726
  if (value == null) {
1486
1727
  return value;
1487
1728
  }
@@ -1525,7 +1766,10 @@ function SeasonsFromJSONTyped(json, ignoreDiscriminator) {
1525
1766
  "seasons": json["seasons"] == null ? void 0 : json["seasons"].map(SeasonFromJSON)
1526
1767
  };
1527
1768
  }
1528
- function SeasonsToJSON(value) {
1769
+ function SeasonsToJSON(json) {
1770
+ return SeasonsToJSONTyped(json, false);
1771
+ }
1772
+ function SeasonsToJSONTyped(value, ignoreDiscriminator = false) {
1529
1773
  if (value == null) {
1530
1774
  return value;
1531
1775
  }
@@ -1549,7 +1793,10 @@ function TeamsFromJSONTyped(json, ignoreDiscriminator) {
1549
1793
  "teams": json["teams"] == null ? void 0 : json["teams"].map(TeamFromJSON)
1550
1794
  };
1551
1795
  }
1552
- function TeamsToJSON(value) {
1796
+ function TeamsToJSON(json) {
1797
+ return TeamsToJSONTyped(json, false);
1798
+ }
1799
+ function TeamsToJSONTyped(value, ignoreDiscriminator = false) {
1553
1800
  if (value == null) {
1554
1801
  return value;
1555
1802
  }
@@ -1596,6 +1843,42 @@ var MlbApi = class extends BaseAPI {
1596
1843
  return yield response.value();
1597
1844
  });
1598
1845
  }
1846
+ /**
1847
+ * Returns Boxscore
1848
+ * Retrieves boxscore
1849
+ */
1850
+ getBoxscoreRaw(requestParameters, initOverrides) {
1851
+ return __async(this, null, function* () {
1852
+ if (requestParameters["gamePk"] == null) {
1853
+ throw new RequiredError(
1854
+ "gamePk",
1855
+ 'Required parameter "gamePk" was null or undefined when calling getBoxscore().'
1856
+ );
1857
+ }
1858
+ const queryParameters = {};
1859
+ if (requestParameters["fields"] != null) {
1860
+ queryParameters["fields"] = requestParameters["fields"].join(COLLECTION_FORMATS["csv"]);
1861
+ }
1862
+ const headerParameters = {};
1863
+ const response = yield this.request({
1864
+ path: `/v1/game/{gamePk}/boxscore`.replace(`{${"gamePk"}}`, encodeURIComponent(String(requestParameters["gamePk"]))),
1865
+ method: "GET",
1866
+ headers: headerParameters,
1867
+ query: queryParameters
1868
+ }, initOverrides);
1869
+ return new JSONApiResponse(response, (jsonValue) => BoxscoreFromJSON(jsonValue));
1870
+ });
1871
+ }
1872
+ /**
1873
+ * Returns Boxscore
1874
+ * Retrieves boxscore
1875
+ */
1876
+ getBoxscore(requestParameters, initOverrides) {
1877
+ return __async(this, null, function* () {
1878
+ const response = yield this.getBoxscoreRaw(requestParameters, initOverrides);
1879
+ return yield response.value();
1880
+ });
1881
+ }
1599
1882
  /**
1600
1883
  * Returns Linescore
1601
1884
  * Retrieves linescore
@@ -1609,6 +1892,9 @@ var MlbApi = class extends BaseAPI {
1609
1892
  );
1610
1893
  }
1611
1894
  const queryParameters = {};
1895
+ if (requestParameters["fields"] != null) {
1896
+ queryParameters["fields"] = requestParameters["fields"].join(COLLECTION_FORMATS["csv"]);
1897
+ }
1612
1898
  const headerParameters = {};
1613
1899
  const response = yield this.request({
1614
1900
  path: `/v1/game/{gamePk}/linescore`.replace(`{${"gamePk"}}`, encodeURIComponent(String(requestParameters["gamePk"]))),
@@ -1836,6 +2122,14 @@ var MlbApi = class extends BaseAPI {
1836
2122
  BASE_PATH,
1837
2123
  BaseAPI,
1838
2124
  BlobApiResponse,
2125
+ BoxscoreFromJSON,
2126
+ BoxscoreFromJSONTyped,
2127
+ BoxscoreTeamsFromJSON,
2128
+ BoxscoreTeamsFromJSONTyped,
2129
+ BoxscoreTeamsToJSON,
2130
+ BoxscoreTeamsToJSONTyped,
2131
+ BoxscoreToJSON,
2132
+ BoxscoreToJSONTyped,
1839
2133
  COLLECTION_FORMATS,
1840
2134
  Configuration,
1841
2135
  DefaultConfig,
@@ -1846,92 +2140,129 @@ var MlbApi = class extends BaseAPI {
1846
2140
  DivisionStandingsListFromJSON,
1847
2141
  DivisionStandingsListFromJSONTyped,
1848
2142
  DivisionStandingsListToJSON,
2143
+ DivisionStandingsListToJSONTyped,
1849
2144
  DivisionStandingsToJSON,
2145
+ DivisionStandingsToJSONTyped,
1850
2146
  DivisionToJSON,
2147
+ DivisionToJSONTyped,
1851
2148
  FetchError,
1852
2149
  GameFromJSON,
1853
2150
  GameFromJSONTyped,
2151
+ GameOfficialFromJSON,
2152
+ GameOfficialFromJSONTyped,
2153
+ GameOfficialToJSON,
2154
+ GameOfficialToJSONTyped,
1854
2155
  GameStatusCode,
1855
2156
  GameStatusCodeFromJSON,
1856
2157
  GameStatusCodeFromJSONTyped,
1857
2158
  GameStatusCodeToJSON,
2159
+ GameStatusCodeToJSONTyped,
1858
2160
  GameStatusFromJSON,
1859
2161
  GameStatusFromJSONTyped,
1860
2162
  GameStatusToJSON,
2163
+ GameStatusToJSONTyped,
1861
2164
  GameTeamFromJSON,
1862
2165
  GameTeamFromJSONTyped,
1863
2166
  GameTeamToJSON,
2167
+ GameTeamToJSONTyped,
1864
2168
  GameTeamsFromJSON,
1865
2169
  GameTeamsFromJSONTyped,
1866
2170
  GameTeamsToJSON,
2171
+ GameTeamsToJSONTyped,
1867
2172
  GameToJSON,
2173
+ GameToJSONTyped,
1868
2174
  GameType,
1869
2175
  GameTypeFromJSON,
1870
2176
  GameTypeFromJSONTyped,
1871
2177
  GameTypeToJSON,
2178
+ GameTypeToJSONTyped,
1872
2179
  InningFromJSON,
1873
2180
  InningFromJSONTyped,
1874
2181
  InningToJSON,
2182
+ InningToJSONTyped,
1875
2183
  JSONApiResponse,
1876
2184
  LeagueDatesFromJSON,
1877
2185
  LeagueDatesFromJSONTyped,
1878
2186
  LeagueDatesToJSON,
2187
+ LeagueDatesToJSONTyped,
1879
2188
  LeagueFromJSON,
1880
2189
  LeagueFromJSONTyped,
1881
2190
  LeagueRecordFromJSON,
1882
2191
  LeagueRecordFromJSONTyped,
1883
2192
  LeagueRecordToJSON,
2193
+ LeagueRecordToJSONTyped,
1884
2194
  LeagueToJSON,
2195
+ LeagueToJSONTyped,
1885
2196
  LinescoreFromJSON,
1886
2197
  LinescoreFromJSONTyped,
1887
2198
  LinescoreTeamFromJSON,
1888
2199
  LinescoreTeamFromJSONTyped,
1889
2200
  LinescoreTeamToJSON,
2201
+ LinescoreTeamToJSONTyped,
1890
2202
  LinescoreTeamsFromJSON,
1891
2203
  LinescoreTeamsFromJSONTyped,
1892
2204
  LinescoreTeamsToJSON,
2205
+ LinescoreTeamsToJSONTyped,
1893
2206
  LinescoreToJSON,
2207
+ LinescoreToJSONTyped,
1894
2208
  MlbApi,
2209
+ OfficialFromJSON,
2210
+ OfficialFromJSONTyped,
2211
+ OfficialToJSON,
2212
+ OfficialToJSONTyped,
2213
+ RecordFromJSON,
2214
+ RecordFromJSONTyped,
2215
+ RecordToJSON,
2216
+ RecordToJSONTyped,
1895
2217
  RequiredError,
1896
2218
  ResponseError,
1897
2219
  ScheduleDayFromJSON,
1898
2220
  ScheduleDayFromJSONTyped,
1899
2221
  ScheduleDayToJSON,
2222
+ ScheduleDayToJSONTyped,
1900
2223
  ScheduleFromJSON,
1901
2224
  ScheduleFromJSONTyped,
1902
2225
  ScheduleToJSON,
2226
+ ScheduleToJSONTyped,
1903
2227
  SeasonFromJSON,
1904
2228
  SeasonFromJSONTyped,
1905
2229
  SeasonToJSON,
2230
+ SeasonToJSONTyped,
1906
2231
  SeasonsFromJSON,
1907
2232
  SeasonsFromJSONTyped,
1908
2233
  SeasonsToJSON,
2234
+ SeasonsToJSONTyped,
1909
2235
  SportFromJSON,
1910
2236
  SportFromJSONTyped,
1911
2237
  SportToJSON,
2238
+ SportToJSONTyped,
1912
2239
  StreakFromJSON,
1913
2240
  StreakFromJSONTyped,
1914
2241
  StreakStreakTypeEnum,
1915
2242
  StreakToJSON,
2243
+ StreakToJSONTyped,
1916
2244
  TeamFromJSON,
1917
2245
  TeamFromJSONTyped,
1918
- TeamRecordFromJSON,
1919
- TeamRecordFromJSONTyped,
1920
- TeamRecordToJSON,
1921
2246
  TeamToJSON,
2247
+ TeamToJSONTyped,
1922
2248
  TeamsFromJSON,
1923
2249
  TeamsFromJSONTyped,
1924
2250
  TeamsToJSON,
2251
+ TeamsToJSONTyped,
1925
2252
  TextApiResponse,
1926
2253
  VenueFromJSON,
1927
2254
  VenueFromJSONTyped,
1928
2255
  VenueToJSON,
2256
+ VenueToJSONTyped,
1929
2257
  VoidApiResponse,
1930
2258
  canConsumeForm,
2259
+ instanceOfBoxscore,
2260
+ instanceOfBoxscoreTeams,
1931
2261
  instanceOfDivision,
1932
2262
  instanceOfDivisionStandings,
1933
2263
  instanceOfDivisionStandingsList,
1934
2264
  instanceOfGame,
2265
+ instanceOfGameOfficial,
1935
2266
  instanceOfGameStatus,
1936
2267
  instanceOfGameStatusCode,
1937
2268
  instanceOfGameTeam,
@@ -1944,6 +2275,8 @@ var MlbApi = class extends BaseAPI {
1944
2275
  instanceOfLinescore,
1945
2276
  instanceOfLinescoreTeam,
1946
2277
  instanceOfLinescoreTeams,
2278
+ instanceOfOfficial,
2279
+ instanceOfRecord,
1947
2280
  instanceOfSchedule,
1948
2281
  instanceOfScheduleDay,
1949
2282
  instanceOfSeason,
@@ -1951,7 +2284,6 @@ var MlbApi = class extends BaseAPI {
1951
2284
  instanceOfSport,
1952
2285
  instanceOfStreak,
1953
2286
  instanceOfTeam,
1954
- instanceOfTeamRecord,
1955
2287
  instanceOfTeams,
1956
2288
  instanceOfVenue,
1957
2289
  mapValues,