@bp1222/stats-api 0.2.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -55,11 +55,27 @@ var __async = (__this, __arguments, generator) => {
55
55
  };
56
56
 
57
57
  // src/index.ts
58
- var src_exports = {};
59
- __export(src_exports, {
58
+ var index_exports = {};
59
+ __export(index_exports, {
60
60
  BASE_PATH: () => BASE_PATH,
61
61
  BaseAPI: () => BaseAPI,
62
+ BattingStatsFromJSON: () => BattingStatsFromJSON,
63
+ BattingStatsFromJSONTyped: () => BattingStatsFromJSONTyped,
64
+ BattingStatsToJSON: () => BattingStatsToJSON,
65
+ BattingStatsToJSONTyped: () => BattingStatsToJSONTyped,
62
66
  BlobApiResponse: () => BlobApiResponse,
67
+ BoxscoreFromJSON: () => BoxscoreFromJSON,
68
+ BoxscoreFromJSONTyped: () => BoxscoreFromJSONTyped,
69
+ BoxscoreTeamFromJSON: () => BoxscoreTeamFromJSON,
70
+ BoxscoreTeamFromJSONTyped: () => BoxscoreTeamFromJSONTyped,
71
+ BoxscoreTeamToJSON: () => BoxscoreTeamToJSON,
72
+ BoxscoreTeamToJSONTyped: () => BoxscoreTeamToJSONTyped,
73
+ BoxscoreTeamsFromJSON: () => BoxscoreTeamsFromJSON,
74
+ BoxscoreTeamsFromJSONTyped: () => BoxscoreTeamsFromJSONTyped,
75
+ BoxscoreTeamsToJSON: () => BoxscoreTeamsToJSON,
76
+ BoxscoreTeamsToJSONTyped: () => BoxscoreTeamsToJSONTyped,
77
+ BoxscoreToJSON: () => BoxscoreToJSON,
78
+ BoxscoreToJSONTyped: () => BoxscoreToJSONTyped,
63
79
  COLLECTION_FORMATS: () => COLLECTION_FORMATS,
64
80
  Configuration: () => Configuration,
65
81
  DefaultConfig: () => DefaultConfig,
@@ -70,92 +86,177 @@ __export(src_exports, {
70
86
  DivisionStandingsListFromJSON: () => DivisionStandingsListFromJSON,
71
87
  DivisionStandingsListFromJSONTyped: () => DivisionStandingsListFromJSONTyped,
72
88
  DivisionStandingsListToJSON: () => DivisionStandingsListToJSON,
89
+ DivisionStandingsListToJSONTyped: () => DivisionStandingsListToJSONTyped,
73
90
  DivisionStandingsToJSON: () => DivisionStandingsToJSON,
91
+ DivisionStandingsToJSONTyped: () => DivisionStandingsToJSONTyped,
74
92
  DivisionToJSON: () => DivisionToJSON,
93
+ DivisionToJSONTyped: () => DivisionToJSONTyped,
75
94
  FetchError: () => FetchError,
95
+ FieldingStatsFromJSON: () => FieldingStatsFromJSON,
96
+ FieldingStatsFromJSONTyped: () => FieldingStatsFromJSONTyped,
97
+ FieldingStatsToJSON: () => FieldingStatsToJSON,
98
+ FieldingStatsToJSONTyped: () => FieldingStatsToJSONTyped,
76
99
  GameFromJSON: () => GameFromJSON,
77
100
  GameFromJSONTyped: () => GameFromJSONTyped,
101
+ GameOfficialFromJSON: () => GameOfficialFromJSON,
102
+ GameOfficialFromJSONTyped: () => GameOfficialFromJSONTyped,
103
+ GameOfficialToJSON: () => GameOfficialToJSON,
104
+ GameOfficialToJSONTyped: () => GameOfficialToJSONTyped,
78
105
  GameStatusCode: () => GameStatusCode,
79
106
  GameStatusCodeFromJSON: () => GameStatusCodeFromJSON,
80
107
  GameStatusCodeFromJSONTyped: () => GameStatusCodeFromJSONTyped,
81
108
  GameStatusCodeToJSON: () => GameStatusCodeToJSON,
109
+ GameStatusCodeToJSONTyped: () => GameStatusCodeToJSONTyped,
82
110
  GameStatusFromJSON: () => GameStatusFromJSON,
83
111
  GameStatusFromJSONTyped: () => GameStatusFromJSONTyped,
84
112
  GameStatusToJSON: () => GameStatusToJSON,
113
+ GameStatusToJSONTyped: () => GameStatusToJSONTyped,
85
114
  GameTeamFromJSON: () => GameTeamFromJSON,
86
115
  GameTeamFromJSONTyped: () => GameTeamFromJSONTyped,
87
116
  GameTeamToJSON: () => GameTeamToJSON,
117
+ GameTeamToJSONTyped: () => GameTeamToJSONTyped,
88
118
  GameTeamsFromJSON: () => GameTeamsFromJSON,
89
119
  GameTeamsFromJSONTyped: () => GameTeamsFromJSONTyped,
90
120
  GameTeamsToJSON: () => GameTeamsToJSON,
121
+ GameTeamsToJSONTyped: () => GameTeamsToJSONTyped,
91
122
  GameToJSON: () => GameToJSON,
123
+ GameToJSONTyped: () => GameToJSONTyped,
92
124
  GameType: () => GameType,
93
125
  GameTypeFromJSON: () => GameTypeFromJSON,
94
126
  GameTypeFromJSONTyped: () => GameTypeFromJSONTyped,
95
127
  GameTypeToJSON: () => GameTypeToJSON,
128
+ GameTypeToJSONTyped: () => GameTypeToJSONTyped,
96
129
  InningFromJSON: () => InningFromJSON,
97
130
  InningFromJSONTyped: () => InningFromJSONTyped,
98
131
  InningToJSON: () => InningToJSON,
132
+ InningToJSONTyped: () => InningToJSONTyped,
99
133
  JSONApiResponse: () => JSONApiResponse,
100
134
  LeagueDatesFromJSON: () => LeagueDatesFromJSON,
101
135
  LeagueDatesFromJSONTyped: () => LeagueDatesFromJSONTyped,
102
136
  LeagueDatesToJSON: () => LeagueDatesToJSON,
137
+ LeagueDatesToJSONTyped: () => LeagueDatesToJSONTyped,
103
138
  LeagueFromJSON: () => LeagueFromJSON,
104
139
  LeagueFromJSONTyped: () => LeagueFromJSONTyped,
105
140
  LeagueRecordFromJSON: () => LeagueRecordFromJSON,
106
141
  LeagueRecordFromJSONTyped: () => LeagueRecordFromJSONTyped,
107
142
  LeagueRecordToJSON: () => LeagueRecordToJSON,
143
+ LeagueRecordToJSONTyped: () => LeagueRecordToJSONTyped,
108
144
  LeagueToJSON: () => LeagueToJSON,
145
+ LeagueToJSONTyped: () => LeagueToJSONTyped,
109
146
  LinescoreFromJSON: () => LinescoreFromJSON,
110
147
  LinescoreFromJSONTyped: () => LinescoreFromJSONTyped,
111
148
  LinescoreTeamFromJSON: () => LinescoreTeamFromJSON,
112
149
  LinescoreTeamFromJSONTyped: () => LinescoreTeamFromJSONTyped,
113
150
  LinescoreTeamToJSON: () => LinescoreTeamToJSON,
151
+ LinescoreTeamToJSONTyped: () => LinescoreTeamToJSONTyped,
114
152
  LinescoreTeamsFromJSON: () => LinescoreTeamsFromJSON,
115
153
  LinescoreTeamsFromJSONTyped: () => LinescoreTeamsFromJSONTyped,
116
154
  LinescoreTeamsToJSON: () => LinescoreTeamsToJSON,
155
+ LinescoreTeamsToJSONTyped: () => LinescoreTeamsToJSONTyped,
117
156
  LinescoreToJSON: () => LinescoreToJSON,
157
+ LinescoreToJSONTyped: () => LinescoreToJSONTyped,
118
158
  MlbApi: () => MlbApi,
159
+ OfficialFromJSON: () => OfficialFromJSON,
160
+ OfficialFromJSONTyped: () => OfficialFromJSONTyped,
161
+ OfficialToJSON: () => OfficialToJSON,
162
+ OfficialToJSONTyped: () => OfficialToJSONTyped,
163
+ PitchingStatsFromJSON: () => PitchingStatsFromJSON,
164
+ PitchingStatsFromJSONTyped: () => PitchingStatsFromJSONTyped,
165
+ PitchingStatsToJSON: () => PitchingStatsToJSON,
166
+ PitchingStatsToJSONTyped: () => PitchingStatsToJSONTyped,
167
+ PlayerFromJSON: () => PlayerFromJSON,
168
+ PlayerFromJSONTyped: () => PlayerFromJSONTyped,
169
+ PlayerGameStatusFromJSON: () => PlayerGameStatusFromJSON,
170
+ PlayerGameStatusFromJSONTyped: () => PlayerGameStatusFromJSONTyped,
171
+ PlayerGameStatusToJSON: () => PlayerGameStatusToJSON,
172
+ PlayerGameStatusToJSONTyped: () => PlayerGameStatusToJSONTyped,
173
+ PlayerPersonFromJSON: () => PlayerPersonFromJSON,
174
+ PlayerPersonFromJSONTyped: () => PlayerPersonFromJSONTyped,
175
+ PlayerPersonToJSON: () => PlayerPersonToJSON,
176
+ PlayerPersonToJSONTyped: () => PlayerPersonToJSONTyped,
177
+ PlayerPositionFromJSON: () => PlayerPositionFromJSON,
178
+ PlayerPositionFromJSONTyped: () => PlayerPositionFromJSONTyped,
179
+ PlayerPositionToJSON: () => PlayerPositionToJSON,
180
+ PlayerPositionToJSONTyped: () => PlayerPositionToJSONTyped,
181
+ PlayerSeasonStatsFromJSON: () => PlayerSeasonStatsFromJSON,
182
+ PlayerSeasonStatsFromJSONTyped: () => PlayerSeasonStatsFromJSONTyped,
183
+ PlayerSeasonStatsToJSON: () => PlayerSeasonStatsToJSON,
184
+ PlayerSeasonStatsToJSONTyped: () => PlayerSeasonStatsToJSONTyped,
185
+ PlayerStatsFromJSON: () => PlayerStatsFromJSON,
186
+ PlayerStatsFromJSONTyped: () => PlayerStatsFromJSONTyped,
187
+ PlayerStatsToJSON: () => PlayerStatsToJSON,
188
+ PlayerStatsToJSONTyped: () => PlayerStatsToJSONTyped,
189
+ PlayerStatusFromJSON: () => PlayerStatusFromJSON,
190
+ PlayerStatusFromJSONTyped: () => PlayerStatusFromJSONTyped,
191
+ PlayerStatusToJSON: () => PlayerStatusToJSON,
192
+ PlayerStatusToJSONTyped: () => PlayerStatusToJSONTyped,
193
+ PlayerToJSON: () => PlayerToJSON,
194
+ PlayerToJSONTyped: () => PlayerToJSONTyped,
195
+ PositionFromJSON: () => PositionFromJSON,
196
+ PositionFromJSONTyped: () => PositionFromJSONTyped,
197
+ PositionToJSON: () => PositionToJSON,
198
+ PositionToJSONTyped: () => PositionToJSONTyped,
199
+ RecordFromJSON: () => RecordFromJSON,
200
+ RecordFromJSONTyped: () => RecordFromJSONTyped,
201
+ RecordToJSON: () => RecordToJSON,
202
+ RecordToJSONTyped: () => RecordToJSONTyped,
119
203
  RequiredError: () => RequiredError,
120
204
  ResponseError: () => ResponseError,
121
205
  ScheduleDayFromJSON: () => ScheduleDayFromJSON,
122
206
  ScheduleDayFromJSONTyped: () => ScheduleDayFromJSONTyped,
123
207
  ScheduleDayToJSON: () => ScheduleDayToJSON,
208
+ ScheduleDayToJSONTyped: () => ScheduleDayToJSONTyped,
124
209
  ScheduleFromJSON: () => ScheduleFromJSON,
125
210
  ScheduleFromJSONTyped: () => ScheduleFromJSONTyped,
126
211
  ScheduleToJSON: () => ScheduleToJSON,
212
+ ScheduleToJSONTyped: () => ScheduleToJSONTyped,
127
213
  SeasonFromJSON: () => SeasonFromJSON,
128
214
  SeasonFromJSONTyped: () => SeasonFromJSONTyped,
129
215
  SeasonToJSON: () => SeasonToJSON,
216
+ SeasonToJSONTyped: () => SeasonToJSONTyped,
130
217
  SeasonsFromJSON: () => SeasonsFromJSON,
131
218
  SeasonsFromJSONTyped: () => SeasonsFromJSONTyped,
132
219
  SeasonsToJSON: () => SeasonsToJSON,
220
+ SeasonsToJSONTyped: () => SeasonsToJSONTyped,
133
221
  SportFromJSON: () => SportFromJSON,
134
222
  SportFromJSONTyped: () => SportFromJSONTyped,
135
223
  SportToJSON: () => SportToJSON,
224
+ SportToJSONTyped: () => SportToJSONTyped,
136
225
  StreakFromJSON: () => StreakFromJSON,
137
226
  StreakFromJSONTyped: () => StreakFromJSONTyped,
138
227
  StreakStreakTypeEnum: () => StreakStreakTypeEnum,
139
228
  StreakToJSON: () => StreakToJSON,
229
+ StreakToJSONTyped: () => StreakToJSONTyped,
140
230
  TeamFromJSON: () => TeamFromJSON,
141
- TeamFromJSONTyped: () => TeamFromJSONTyped,
142
- TeamRecordFromJSON: () => TeamRecordFromJSON,
143
- TeamRecordFromJSONTyped: () => TeamRecordFromJSONTyped,
144
- TeamRecordToJSON: () => TeamRecordToJSON,
231
+ TeamFromJSONTyped: () => TeamFromJSONTyped2,
232
+ TeamStatsFromJSON: () => TeamStatsFromJSON,
233
+ TeamStatsFromJSONTyped: () => TeamStatsFromJSONTyped,
234
+ TeamStatsToJSON: () => TeamStatsToJSON,
235
+ TeamStatsToJSONTyped: () => TeamStatsToJSONTyped,
145
236
  TeamToJSON: () => TeamToJSON,
237
+ TeamToJSONTyped: () => TeamToJSONTyped2,
146
238
  TeamsFromJSON: () => TeamsFromJSON,
147
239
  TeamsFromJSONTyped: () => TeamsFromJSONTyped,
148
240
  TeamsToJSON: () => TeamsToJSON,
241
+ TeamsToJSONTyped: () => TeamsToJSONTyped,
149
242
  TextApiResponse: () => TextApiResponse,
150
243
  VenueFromJSON: () => VenueFromJSON,
151
244
  VenueFromJSONTyped: () => VenueFromJSONTyped,
152
245
  VenueToJSON: () => VenueToJSON,
246
+ VenueToJSONTyped: () => VenueToJSONTyped,
153
247
  VoidApiResponse: () => VoidApiResponse,
154
248
  canConsumeForm: () => canConsumeForm,
249
+ exists: () => exists,
250
+ instanceOfBattingStats: () => instanceOfBattingStats,
251
+ instanceOfBoxscore: () => instanceOfBoxscore,
252
+ instanceOfBoxscoreTeam: () => instanceOfBoxscoreTeam,
253
+ instanceOfBoxscoreTeams: () => instanceOfBoxscoreTeams,
155
254
  instanceOfDivision: () => instanceOfDivision,
156
255
  instanceOfDivisionStandings: () => instanceOfDivisionStandings,
157
256
  instanceOfDivisionStandingsList: () => instanceOfDivisionStandingsList,
257
+ instanceOfFieldingStats: () => instanceOfFieldingStats,
158
258
  instanceOfGame: () => instanceOfGame,
259
+ instanceOfGameOfficial: () => instanceOfGameOfficial,
159
260
  instanceOfGameStatus: () => instanceOfGameStatus,
160
261
  instanceOfGameStatusCode: () => instanceOfGameStatusCode,
161
262
  instanceOfGameTeam: () => instanceOfGameTeam,
@@ -168,6 +269,17 @@ __export(src_exports, {
168
269
  instanceOfLinescore: () => instanceOfLinescore,
169
270
  instanceOfLinescoreTeam: () => instanceOfLinescoreTeam,
170
271
  instanceOfLinescoreTeams: () => instanceOfLinescoreTeams,
272
+ instanceOfOfficial: () => instanceOfOfficial,
273
+ instanceOfPitchingStats: () => instanceOfPitchingStats,
274
+ instanceOfPlayer: () => instanceOfPlayer,
275
+ instanceOfPlayerGameStatus: () => instanceOfPlayerGameStatus,
276
+ instanceOfPlayerPerson: () => instanceOfPlayerPerson,
277
+ instanceOfPlayerPosition: () => instanceOfPlayerPosition,
278
+ instanceOfPlayerSeasonStats: () => instanceOfPlayerSeasonStats,
279
+ instanceOfPlayerStats: () => instanceOfPlayerStats,
280
+ instanceOfPlayerStatus: () => instanceOfPlayerStatus,
281
+ instanceOfPosition: () => instanceOfPosition,
282
+ instanceOfRecord: () => instanceOfRecord,
171
283
  instanceOfSchedule: () => instanceOfSchedule,
172
284
  instanceOfScheduleDay: () => instanceOfScheduleDay,
173
285
  instanceOfSeason: () => instanceOfSeason,
@@ -175,13 +287,13 @@ __export(src_exports, {
175
287
  instanceOfSport: () => instanceOfSport,
176
288
  instanceOfStreak: () => instanceOfStreak,
177
289
  instanceOfTeam: () => instanceOfTeam,
178
- instanceOfTeamRecord: () => instanceOfTeamRecord,
290
+ instanceOfTeamStats: () => instanceOfTeamStats,
179
291
  instanceOfTeams: () => instanceOfTeams,
180
292
  instanceOfVenue: () => instanceOfVenue,
181
293
  mapValues: () => mapValues,
182
294
  querystring: () => querystring
183
295
  });
184
- module.exports = __toCommonJS(src_exports);
296
+ module.exports = __toCommonJS(index_exports);
185
297
 
186
298
  // src/runtime.ts
187
299
  var BASE_PATH = "https://statsapi.mlb.com/api".replace(/\/+$/, "");
@@ -424,6 +536,10 @@ function querystringSingleKey(key, value, keyPrefix = "") {
424
536
  }
425
537
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
426
538
  }
539
+ function exists(json, key) {
540
+ const value = json[key];
541
+ return value !== null && value !== void 0;
542
+ }
427
543
  function mapValues(data, fn) {
428
544
  return Object.keys(data).reduce(
429
545
  (acc, key) => __spreadProps(__spreadValues({}, acc), { [key]: fn(data[key]) }),
@@ -480,6 +596,609 @@ var TextApiResponse = class {
480
596
  }
481
597
  };
482
598
 
599
+ // src/models/BattingStats.ts
600
+ function instanceOfBattingStats(value) {
601
+ return true;
602
+ }
603
+ function BattingStatsFromJSON(json) {
604
+ return BattingStatsFromJSONTyped(json, false);
605
+ }
606
+ function BattingStatsFromJSONTyped(json, ignoreDiscriminator) {
607
+ if (json == null) {
608
+ return json;
609
+ }
610
+ return {
611
+ "flyOuts": json["flyOuts"] == null ? void 0 : json["flyOuts"],
612
+ "groundOuts": json["groundOuts"] == null ? void 0 : json["groundOuts"],
613
+ "airOuts": json["airOuts"] == null ? void 0 : json["airOuts"],
614
+ "runs": json["runs"] == null ? void 0 : json["runs"],
615
+ "doubles": json["doubles"] == null ? void 0 : json["doubles"],
616
+ "triples": json["triples"] == null ? void 0 : json["triples"],
617
+ "homeRuns": json["homeRuns"] == null ? void 0 : json["homeRuns"],
618
+ "strikeOuts": json["strikeOuts"] == null ? void 0 : json["strikeOuts"],
619
+ "baseOnBalls": json["baseOnBalls"] == null ? void 0 : json["baseOnBalls"],
620
+ "intentionalWalks": json["intentionalWalks"] == null ? void 0 : json["intentionalWalks"],
621
+ "hits": json["hits"] == null ? void 0 : json["hits"],
622
+ "hitByPitch": json["hitByPitch"] == null ? void 0 : json["hitByPitch"],
623
+ "avg": json["avg"] == null ? void 0 : json["avg"],
624
+ "atBats": json["atBats"] == null ? void 0 : json["atBats"],
625
+ "obp": json["obp"] == null ? void 0 : json["obp"],
626
+ "slg": json["slg"] == null ? void 0 : json["slg"],
627
+ "ops": json["ops"] == null ? void 0 : json["ops"],
628
+ "caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
629
+ "stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
630
+ "stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
631
+ "groundIntoDoublePlay": json["groundIntoDoublePlay"] == null ? void 0 : json["groundIntoDoublePlay"],
632
+ "groundIntoTriplePlay": json["groundIntoTriplePlay"] == null ? void 0 : json["groundIntoTriplePlay"],
633
+ "plateAppearances": json["plateAppearances"] == null ? void 0 : json["plateAppearances"],
634
+ "totalBases": json["totalBases"] == null ? void 0 : json["totalBases"],
635
+ "rbi": json["rbi"] == null ? void 0 : json["rbi"],
636
+ "leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"],
637
+ "sacBunts": json["sacBunts"] == null ? void 0 : json["sacBunts"],
638
+ "sacFlies": json["sacFlies"] == null ? void 0 : json["sacFlies"],
639
+ "catchersInterference": json["catchersInterference"] == null ? void 0 : json["catchersInterference"],
640
+ "pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"],
641
+ "atBatsPerHomeRun": json["atBatsPerHomeRun"] == null ? void 0 : json["atBatsPerHomeRun"],
642
+ "popOuts": json["popOuts"] == null ? void 0 : json["popOuts"],
643
+ "lineOuts": json["lineOuts"] == null ? void 0 : json["lineOuts"]
644
+ };
645
+ }
646
+ function BattingStatsToJSON(json) {
647
+ return BattingStatsToJSONTyped(json, false);
648
+ }
649
+ function BattingStatsToJSONTyped(value, ignoreDiscriminator = false) {
650
+ if (value == null) {
651
+ return value;
652
+ }
653
+ return {
654
+ "flyOuts": value["flyOuts"],
655
+ "groundOuts": value["groundOuts"],
656
+ "airOuts": value["airOuts"],
657
+ "runs": value["runs"],
658
+ "doubles": value["doubles"],
659
+ "triples": value["triples"],
660
+ "homeRuns": value["homeRuns"],
661
+ "strikeOuts": value["strikeOuts"],
662
+ "baseOnBalls": value["baseOnBalls"],
663
+ "intentionalWalks": value["intentionalWalks"],
664
+ "hits": value["hits"],
665
+ "hitByPitch": value["hitByPitch"],
666
+ "avg": value["avg"],
667
+ "atBats": value["atBats"],
668
+ "obp": value["obp"],
669
+ "slg": value["slg"],
670
+ "ops": value["ops"],
671
+ "caughtStealing": value["caughtStealing"],
672
+ "stolenBases": value["stolenBases"],
673
+ "stolenBasePercentage": value["stolenBasePercentage"],
674
+ "groundIntoDoublePlay": value["groundIntoDoublePlay"],
675
+ "groundIntoTriplePlay": value["groundIntoTriplePlay"],
676
+ "plateAppearances": value["plateAppearances"],
677
+ "totalBases": value["totalBases"],
678
+ "rbi": value["rbi"],
679
+ "leftOnBase": value["leftOnBase"],
680
+ "sacBunts": value["sacBunts"],
681
+ "sacFlies": value["sacFlies"],
682
+ "catchersInterference": value["catchersInterference"],
683
+ "pickoffs": value["pickoffs"],
684
+ "atBatsPerHomeRun": value["atBatsPerHomeRun"],
685
+ "popOuts": value["popOuts"],
686
+ "lineOuts": value["lineOuts"]
687
+ };
688
+ }
689
+
690
+ // src/models/Official.ts
691
+ function instanceOfOfficial(value) {
692
+ return true;
693
+ }
694
+ function OfficialFromJSON(json) {
695
+ return OfficialFromJSONTyped(json, false);
696
+ }
697
+ function OfficialFromJSONTyped(json, ignoreDiscriminator) {
698
+ if (json == null) {
699
+ return json;
700
+ }
701
+ return {
702
+ "id": json["id"] == null ? void 0 : json["id"],
703
+ "fullName": json["fullName"] == null ? void 0 : json["fullName"],
704
+ "link": json["link"] == null ? void 0 : json["link"]
705
+ };
706
+ }
707
+ function OfficialToJSON(json) {
708
+ return OfficialToJSONTyped(json, false);
709
+ }
710
+ function OfficialToJSONTyped(value, ignoreDiscriminator = false) {
711
+ if (value == null) {
712
+ return value;
713
+ }
714
+ return {
715
+ "id": value["id"],
716
+ "fullName": value["fullName"],
717
+ "link": value["link"]
718
+ };
719
+ }
720
+
721
+ // src/models/GameOfficial.ts
722
+ function instanceOfGameOfficial(value) {
723
+ return true;
724
+ }
725
+ function GameOfficialFromJSON(json) {
726
+ return GameOfficialFromJSONTyped(json, false);
727
+ }
728
+ function GameOfficialFromJSONTyped(json, ignoreDiscriminator) {
729
+ if (json == null) {
730
+ return json;
731
+ }
732
+ return {
733
+ "official": json["official"] == null ? void 0 : OfficialFromJSON(json["official"]),
734
+ "officialType": json["officialType"] == null ? void 0 : json["officialType"]
735
+ };
736
+ }
737
+ function GameOfficialToJSON(json) {
738
+ return GameOfficialToJSONTyped(json, false);
739
+ }
740
+ function GameOfficialToJSONTyped(value, ignoreDiscriminator = false) {
741
+ if (value == null) {
742
+ return value;
743
+ }
744
+ return {
745
+ "official": OfficialToJSON(value["official"]),
746
+ "officialType": value["officialType"]
747
+ };
748
+ }
749
+
750
+ // src/models/FieldingStats.ts
751
+ function instanceOfFieldingStats(value) {
752
+ return true;
753
+ }
754
+ function FieldingStatsFromJSON(json) {
755
+ return FieldingStatsFromJSONTyped(json, false);
756
+ }
757
+ function FieldingStatsFromJSONTyped(json, ignoreDiscriminator) {
758
+ if (json == null) {
759
+ return json;
760
+ }
761
+ return {
762
+ "caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
763
+ "stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
764
+ "stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
765
+ "assists": json["assists"] == null ? void 0 : json["assists"],
766
+ "putOuts": json["putOuts"] == null ? void 0 : json["putOuts"],
767
+ "errors": json["errors"] == null ? void 0 : json["errors"],
768
+ "chances": json["chances"] == null ? void 0 : json["chances"],
769
+ "passedBall": json["passedBall"] == null ? void 0 : json["passedBall"],
770
+ "pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"]
771
+ };
772
+ }
773
+ function FieldingStatsToJSON(json) {
774
+ return FieldingStatsToJSONTyped(json, false);
775
+ }
776
+ function FieldingStatsToJSONTyped(value, ignoreDiscriminator = false) {
777
+ if (value == null) {
778
+ return value;
779
+ }
780
+ return {
781
+ "caughtStealing": value["caughtStealing"],
782
+ "stolenBases": value["stolenBases"],
783
+ "stolenBasePercentage": value["stolenBasePercentage"],
784
+ "assists": value["assists"],
785
+ "putOuts": value["putOuts"],
786
+ "errors": value["errors"],
787
+ "chances": value["chances"],
788
+ "passedBall": value["passedBall"],
789
+ "pickoffs": value["pickoffs"]
790
+ };
791
+ }
792
+
793
+ // src/models/PitchingStats.ts
794
+ function instanceOfPitchingStats(value) {
795
+ return true;
796
+ }
797
+ function PitchingStatsFromJSON(json) {
798
+ return PitchingStatsFromJSONTyped(json, false);
799
+ }
800
+ function PitchingStatsFromJSONTyped(json, ignoreDiscriminator) {
801
+ if (json == null) {
802
+ return json;
803
+ }
804
+ return {
805
+ "flyOuts": json["flyOuts"] == null ? void 0 : json["flyOuts"],
806
+ "groundOuts": json["groundOuts"] == null ? void 0 : json["groundOuts"],
807
+ "airOuts": json["airOuts"] == null ? void 0 : json["airOuts"],
808
+ "runs": json["runs"] == null ? void 0 : json["runs"],
809
+ "doubles": json["doubles"] == null ? void 0 : json["doubles"],
810
+ "triples": json["triples"] == null ? void 0 : json["triples"],
811
+ "homeRuns": json["homeRuns"] == null ? void 0 : json["homeRuns"],
812
+ "strikeOuts": json["strikeOuts"] == null ? void 0 : json["strikeOuts"],
813
+ "baseOnBalls": json["baseOnBalls"] == null ? void 0 : json["baseOnBalls"],
814
+ "intentionalWalks": json["intentionalWalks"] == null ? void 0 : json["intentionalWalks"],
815
+ "hits": json["hits"] == null ? void 0 : json["hits"],
816
+ "hitByPitch": json["hitByPitch"] == null ? void 0 : json["hitByPitch"],
817
+ "atBats": json["atBats"] == null ? void 0 : json["atBats"],
818
+ "obp": json["obp"] == null ? void 0 : json["obp"],
819
+ "caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
820
+ "stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
821
+ "stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
822
+ "numberOfPitches": json["numberOfPitches"] == null ? void 0 : json["numberOfPitches"],
823
+ "era": json["era"] == null ? void 0 : json["era"],
824
+ "inningsPitched": json["inningsPitched"] == null ? void 0 : json["inningsPitched"],
825
+ "saveOpportunities": json["saveOpportunities"] == null ? void 0 : json["saveOpportunities"],
826
+ "earnedRuns": json["earnedRuns"] == null ? void 0 : json["earnedRuns"],
827
+ "whip": json["whip"] == null ? void 0 : json["whip"],
828
+ "battersFaced": json["battersFaced"] == null ? void 0 : json["battersFaced"],
829
+ "outs": json["outs"] == null ? void 0 : json["outs"],
830
+ "completeGames": json["completeGames"] == null ? void 0 : json["completeGames"],
831
+ "shutouts": json["shutouts"] == null ? void 0 : json["shutouts"],
832
+ "pitchesThrown": json["pitchesThrown"] == null ? void 0 : json["pitchesThrown"],
833
+ "balls": json["balls"] == null ? void 0 : json["balls"],
834
+ "strikes": json["strikes"] == null ? void 0 : json["strikes"],
835
+ "strikePercentage": json["strikePercentage"] == null ? void 0 : json["strikePercentage"],
836
+ "hitBatsmen": json["hitBatsmen"] == null ? void 0 : json["hitBatsmen"],
837
+ "balks": json["balks"] == null ? void 0 : json["balks"],
838
+ "wildPitches": json["wildPitches"] == null ? void 0 : json["wildPitches"],
839
+ "pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"],
840
+ "groundOutsToAirouts": json["groundOutsToAirouts"] == null ? void 0 : json["groundOutsToAirouts"],
841
+ "rbi": json["rbi"] == null ? void 0 : json["rbi"],
842
+ "pitchesPerInning": json["pitchesPerInning"] == null ? void 0 : json["pitchesPerInning"],
843
+ "runsScoredPer9": json["runsScoredPer9"] == null ? void 0 : json["runsScoredPer9"],
844
+ "homeRunsPer9": json["homeRunsPer9"] == null ? void 0 : json["homeRunsPer9"],
845
+ "inheritedRunners": json["inheritedRunners"] == null ? void 0 : json["inheritedRunners"],
846
+ "inheritedRunnersScored": json["inheritedRunnersScored"] == null ? void 0 : json["inheritedRunnersScored"],
847
+ "catchersInterference": json["catchersInterference"] == null ? void 0 : json["catchersInterference"],
848
+ "sacBunts": json["sacBunts"] == null ? void 0 : json["sacBunts"],
849
+ "sacFlies": json["sacFlies"] == null ? void 0 : json["sacFlies"],
850
+ "passedBall": json["passedBall"] == null ? void 0 : json["passedBall"],
851
+ "popOuts": json["popOuts"] == null ? void 0 : json["popOuts"],
852
+ "lineOuts": json["lineOuts"] == null ? void 0 : json["lineOuts"]
853
+ };
854
+ }
855
+ function PitchingStatsToJSON(json) {
856
+ return PitchingStatsToJSONTyped(json, false);
857
+ }
858
+ function PitchingStatsToJSONTyped(value, ignoreDiscriminator = false) {
859
+ if (value == null) {
860
+ return value;
861
+ }
862
+ return {
863
+ "flyOuts": value["flyOuts"],
864
+ "groundOuts": value["groundOuts"],
865
+ "airOuts": value["airOuts"],
866
+ "runs": value["runs"],
867
+ "doubles": value["doubles"],
868
+ "triples": value["triples"],
869
+ "homeRuns": value["homeRuns"],
870
+ "strikeOuts": value["strikeOuts"],
871
+ "baseOnBalls": value["baseOnBalls"],
872
+ "intentionalWalks": value["intentionalWalks"],
873
+ "hits": value["hits"],
874
+ "hitByPitch": value["hitByPitch"],
875
+ "atBats": value["atBats"],
876
+ "obp": value["obp"],
877
+ "caughtStealing": value["caughtStealing"],
878
+ "stolenBases": value["stolenBases"],
879
+ "stolenBasePercentage": value["stolenBasePercentage"],
880
+ "numberOfPitches": value["numberOfPitches"],
881
+ "era": value["era"],
882
+ "inningsPitched": value["inningsPitched"],
883
+ "saveOpportunities": value["saveOpportunities"],
884
+ "earnedRuns": value["earnedRuns"],
885
+ "whip": value["whip"],
886
+ "battersFaced": value["battersFaced"],
887
+ "outs": value["outs"],
888
+ "completeGames": value["completeGames"],
889
+ "shutouts": value["shutouts"],
890
+ "pitchesThrown": value["pitchesThrown"],
891
+ "balls": value["balls"],
892
+ "strikes": value["strikes"],
893
+ "strikePercentage": value["strikePercentage"],
894
+ "hitBatsmen": value["hitBatsmen"],
895
+ "balks": value["balks"],
896
+ "wildPitches": value["wildPitches"],
897
+ "pickoffs": value["pickoffs"],
898
+ "groundOutsToAirouts": value["groundOutsToAirouts"],
899
+ "rbi": value["rbi"],
900
+ "pitchesPerInning": value["pitchesPerInning"],
901
+ "runsScoredPer9": value["runsScoredPer9"],
902
+ "homeRunsPer9": value["homeRunsPer9"],
903
+ "inheritedRunners": value["inheritedRunners"],
904
+ "inheritedRunnersScored": value["inheritedRunnersScored"],
905
+ "catchersInterference": value["catchersInterference"],
906
+ "sacBunts": value["sacBunts"],
907
+ "sacFlies": value["sacFlies"],
908
+ "passedBall": value["passedBall"],
909
+ "popOuts": value["popOuts"],
910
+ "lineOuts": value["lineOuts"]
911
+ };
912
+ }
913
+
914
+ // src/models/PlayerSeasonStats.ts
915
+ function instanceOfPlayerSeasonStats(value) {
916
+ if (!("batting" in value) || value["batting"] === void 0) return false;
917
+ if (!("pitching" in value) || value["pitching"] === void 0) return false;
918
+ if (!("fielding" in value) || value["fielding"] === void 0) return false;
919
+ return true;
920
+ }
921
+ function PlayerSeasonStatsFromJSON(json) {
922
+ return PlayerSeasonStatsFromJSONTyped(json, false);
923
+ }
924
+ function PlayerSeasonStatsFromJSONTyped(json, ignoreDiscriminator) {
925
+ if (json == null) {
926
+ return json;
927
+ }
928
+ return {
929
+ "batting": BattingStatsFromJSON(json["batting"]),
930
+ "pitching": PitchingStatsFromJSON(json["pitching"]),
931
+ "fielding": FieldingStatsFromJSON(json["fielding"])
932
+ };
933
+ }
934
+ function PlayerSeasonStatsToJSON(json) {
935
+ return PlayerSeasonStatsToJSONTyped(json, false);
936
+ }
937
+ function PlayerSeasonStatsToJSONTyped(value, ignoreDiscriminator = false) {
938
+ if (value == null) {
939
+ return value;
940
+ }
941
+ return {
942
+ "batting": BattingStatsToJSON(value["batting"]),
943
+ "pitching": PitchingStatsToJSON(value["pitching"]),
944
+ "fielding": FieldingStatsToJSON(value["fielding"])
945
+ };
946
+ }
947
+
948
+ // src/models/PlayerGameStatus.ts
949
+ function instanceOfPlayerGameStatus(value) {
950
+ return true;
951
+ }
952
+ function PlayerGameStatusFromJSON(json) {
953
+ return PlayerGameStatusFromJSONTyped(json, false);
954
+ }
955
+ function PlayerGameStatusFromJSONTyped(json, ignoreDiscriminator) {
956
+ if (json == null) {
957
+ return json;
958
+ }
959
+ return {
960
+ "isCurrentBatter": json["isCurrentBatter"] == null ? void 0 : json["isCurrentBatter"],
961
+ "isCurrentPitcher": json["isCurrentPitcher"] == null ? void 0 : json["isCurrentPitcher"],
962
+ "isOnBench": json["isOnBench"] == null ? void 0 : json["isOnBench"],
963
+ "isSubstitute": json["isSubstitute"] == null ? void 0 : json["isSubstitute"]
964
+ };
965
+ }
966
+ function PlayerGameStatusToJSON(json) {
967
+ return PlayerGameStatusToJSONTyped(json, false);
968
+ }
969
+ function PlayerGameStatusToJSONTyped(value, ignoreDiscriminator = false) {
970
+ if (value == null) {
971
+ return value;
972
+ }
973
+ return {
974
+ "isCurrentBatter": value["isCurrentBatter"],
975
+ "isCurrentPitcher": value["isCurrentPitcher"],
976
+ "isOnBench": value["isOnBench"],
977
+ "isSubstitute": value["isSubstitute"]
978
+ };
979
+ }
980
+
981
+ // src/models/Position.ts
982
+ function instanceOfPosition(value) {
983
+ return true;
984
+ }
985
+ function PositionFromJSON(json) {
986
+ return PositionFromJSONTyped(json, false);
987
+ }
988
+ function PositionFromJSONTyped(json, ignoreDiscriminator) {
989
+ if (json == null) {
990
+ return json;
991
+ }
992
+ return {
993
+ "code": json["code"] == null ? void 0 : json["code"],
994
+ "name": json["name"] == null ? void 0 : json["name"],
995
+ "type": json["type"] == null ? void 0 : json["type"],
996
+ "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"]
997
+ };
998
+ }
999
+ function PositionToJSON(json) {
1000
+ return PositionToJSONTyped(json, false);
1001
+ }
1002
+ function PositionToJSONTyped(value, ignoreDiscriminator = false) {
1003
+ if (value == null) {
1004
+ return value;
1005
+ }
1006
+ return {
1007
+ "code": value["code"],
1008
+ "name": value["name"],
1009
+ "type": value["type"],
1010
+ "abbreviation": value["abbreviation"]
1011
+ };
1012
+ }
1013
+
1014
+ // src/models/PlayerPerson.ts
1015
+ function instanceOfPlayerPerson(value) {
1016
+ if (!("id" in value) || value["id"] === void 0) return false;
1017
+ if (!("fullName" in value) || value["fullName"] === void 0) return false;
1018
+ if (!("link" in value) || value["link"] === void 0) return false;
1019
+ if (!("boxscoreName" in value) || value["boxscoreName"] === void 0) return false;
1020
+ return true;
1021
+ }
1022
+ function PlayerPersonFromJSON(json) {
1023
+ return PlayerPersonFromJSONTyped(json, false);
1024
+ }
1025
+ function PlayerPersonFromJSONTyped(json, ignoreDiscriminator) {
1026
+ if (json == null) {
1027
+ return json;
1028
+ }
1029
+ return {
1030
+ "id": json["id"],
1031
+ "fullName": json["fullName"],
1032
+ "link": json["link"],
1033
+ "boxscoreName": json["boxscoreName"]
1034
+ };
1035
+ }
1036
+ function PlayerPersonToJSON(json) {
1037
+ return PlayerPersonToJSONTyped(json, false);
1038
+ }
1039
+ function PlayerPersonToJSONTyped(value, ignoreDiscriminator = false) {
1040
+ if (value == null) {
1041
+ return value;
1042
+ }
1043
+ return {
1044
+ "id": value["id"],
1045
+ "fullName": value["fullName"],
1046
+ "link": value["link"],
1047
+ "boxscoreName": value["boxscoreName"]
1048
+ };
1049
+ }
1050
+
1051
+ // src/models/PlayerPosition.ts
1052
+ function instanceOfPlayerPosition(value) {
1053
+ return true;
1054
+ }
1055
+ function PlayerPositionFromJSON(json) {
1056
+ return PlayerPositionFromJSONTyped(json, false);
1057
+ }
1058
+ function PlayerPositionFromJSONTyped(json, ignoreDiscriminator) {
1059
+ if (json == null) {
1060
+ return json;
1061
+ }
1062
+ return {
1063
+ "code": json["code"] == null ? void 0 : json["code"],
1064
+ "name": json["name"] == null ? void 0 : json["name"],
1065
+ "type": json["type"] == null ? void 0 : json["type"],
1066
+ "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"]
1067
+ };
1068
+ }
1069
+ function PlayerPositionToJSON(json) {
1070
+ return PlayerPositionToJSONTyped(json, false);
1071
+ }
1072
+ function PlayerPositionToJSONTyped(value, ignoreDiscriminator = false) {
1073
+ if (value == null) {
1074
+ return value;
1075
+ }
1076
+ return {
1077
+ "code": value["code"],
1078
+ "name": value["name"],
1079
+ "type": value["type"],
1080
+ "abbreviation": value["abbreviation"]
1081
+ };
1082
+ }
1083
+
1084
+ // src/models/PlayerStatus.ts
1085
+ function instanceOfPlayerStatus(value) {
1086
+ return true;
1087
+ }
1088
+ function PlayerStatusFromJSON(json) {
1089
+ return PlayerStatusFromJSONTyped(json, false);
1090
+ }
1091
+ function PlayerStatusFromJSONTyped(json, ignoreDiscriminator) {
1092
+ if (json == null) {
1093
+ return json;
1094
+ }
1095
+ return {
1096
+ "code": json["code"] == null ? void 0 : json["code"],
1097
+ "description": json["description"] == null ? void 0 : json["description"]
1098
+ };
1099
+ }
1100
+ function PlayerStatusToJSON(json) {
1101
+ return PlayerStatusToJSONTyped(json, false);
1102
+ }
1103
+ function PlayerStatusToJSONTyped(value, ignoreDiscriminator = false) {
1104
+ if (value == null) {
1105
+ return value;
1106
+ }
1107
+ return {
1108
+ "code": value["code"],
1109
+ "description": value["description"]
1110
+ };
1111
+ }
1112
+
1113
+ // src/models/PlayerStats.ts
1114
+ function instanceOfPlayerStats(value) {
1115
+ if (!("batting" in value) || value["batting"] === void 0) return false;
1116
+ if (!("pitching" in value) || value["pitching"] === void 0) return false;
1117
+ if (!("fielding" in value) || value["fielding"] === void 0) return false;
1118
+ return true;
1119
+ }
1120
+ function PlayerStatsFromJSON(json) {
1121
+ return PlayerStatsFromJSONTyped(json, false);
1122
+ }
1123
+ function PlayerStatsFromJSONTyped(json, ignoreDiscriminator) {
1124
+ if (json == null) {
1125
+ return json;
1126
+ }
1127
+ return {
1128
+ "batting": BattingStatsFromJSON(json["batting"]),
1129
+ "pitching": PitchingStatsFromJSON(json["pitching"]),
1130
+ "fielding": FieldingStatsFromJSON(json["fielding"])
1131
+ };
1132
+ }
1133
+ function PlayerStatsToJSON(json) {
1134
+ return PlayerStatsToJSONTyped(json, false);
1135
+ }
1136
+ function PlayerStatsToJSONTyped(value, ignoreDiscriminator = false) {
1137
+ if (value == null) {
1138
+ return value;
1139
+ }
1140
+ return {
1141
+ "batting": BattingStatsToJSON(value["batting"]),
1142
+ "pitching": PitchingStatsToJSON(value["pitching"]),
1143
+ "fielding": FieldingStatsToJSON(value["fielding"])
1144
+ };
1145
+ }
1146
+
1147
+ // src/models/Player.ts
1148
+ function instanceOfPlayer(value) {
1149
+ if (!("person" in value) || value["person"] === void 0) return false;
1150
+ if (!("position" in value) || value["position"] === void 0) return false;
1151
+ if (!("stats" in value) || value["stats"] === void 0) return false;
1152
+ if (!("seasonStats" in value) || value["seasonStats"] === void 0) return false;
1153
+ return true;
1154
+ }
1155
+ function PlayerFromJSON(json) {
1156
+ return PlayerFromJSONTyped(json, false);
1157
+ }
1158
+ function PlayerFromJSONTyped(json, ignoreDiscriminator) {
1159
+ if (json == null) {
1160
+ return json;
1161
+ }
1162
+ return {
1163
+ "person": PlayerPersonFromJSON(json["person"]),
1164
+ "jerseyNumber": json["jerseyNumber"] == null ? void 0 : json["jerseyNumber"],
1165
+ "position": PlayerPositionFromJSON(json["position"]),
1166
+ "status": json["status"] == null ? void 0 : PlayerStatusFromJSON(json["status"]),
1167
+ "parentTeamId": json["parentTeamId"] == null ? void 0 : json["parentTeamId"],
1168
+ "battingOrder": json["battingOrder"] == null ? void 0 : json["battingOrder"],
1169
+ "stats": PlayerStatsFromJSON(json["stats"]),
1170
+ "seasonStats": PlayerSeasonStatsFromJSON(json["seasonStats"]),
1171
+ "gameStatus": json["gameStatus"] == null ? void 0 : PlayerGameStatusFromJSON(json["gameStatus"]),
1172
+ "allPositions": json["allPositions"] == null ? void 0 : json["allPositions"].map(PositionFromJSON),
1173
+ "type": json["type"] == null ? void 0 : json["type"],
1174
+ "gameScore": json["gameScore"] == null ? void 0 : json["gameScore"],
1175
+ "hittingGameScore": json["hittingGameScore"] == null ? void 0 : json["hittingGameScore"]
1176
+ };
1177
+ }
1178
+ function PlayerToJSON(json) {
1179
+ return PlayerToJSONTyped(json, false);
1180
+ }
1181
+ function PlayerToJSONTyped(value, ignoreDiscriminator = false) {
1182
+ if (value == null) {
1183
+ return value;
1184
+ }
1185
+ return {
1186
+ "person": PlayerPersonToJSON(value["person"]),
1187
+ "jerseyNumber": value["jerseyNumber"],
1188
+ "position": PlayerPositionToJSON(value["position"]),
1189
+ "status": PlayerStatusToJSON(value["status"]),
1190
+ "parentTeamId": value["parentTeamId"],
1191
+ "battingOrder": value["battingOrder"],
1192
+ "stats": PlayerStatsToJSON(value["stats"]),
1193
+ "seasonStats": PlayerSeasonStatsToJSON(value["seasonStats"]),
1194
+ "gameStatus": PlayerGameStatusToJSON(value["gameStatus"]),
1195
+ "allPositions": value["allPositions"] == null ? void 0 : value["allPositions"].map(PositionToJSON),
1196
+ "type": value["type"],
1197
+ "gameScore": value["gameScore"],
1198
+ "hittingGameScore": value["hittingGameScore"]
1199
+ };
1200
+ }
1201
+
483
1202
  // src/models/LeagueDates.ts
484
1203
  function instanceOfLeagueDates(value) {
485
1204
  return true;
@@ -504,7 +1223,10 @@ function LeagueDatesFromJSONTyped(json, ignoreDiscriminator) {
504
1223
  "gameLevelGamedayType": json["gameLevelGamedayType"] == null ? void 0 : json["gameLevelGamedayType"]
505
1224
  };
506
1225
  }
507
- function LeagueDatesToJSON(value) {
1226
+ function LeagueDatesToJSON(json) {
1227
+ return LeagueDatesToJSONTyped(json, false);
1228
+ }
1229
+ function LeagueDatesToJSONTyped(value, ignoreDiscriminator = false) {
508
1230
  if (value == null) {
509
1231
  return value;
510
1232
  }
@@ -554,7 +1276,10 @@ function LeagueFromJSONTyped(json, ignoreDiscriminator) {
554
1276
  "active": json["active"] == null ? void 0 : json["active"]
555
1277
  };
556
1278
  }
557
- function LeagueToJSON(value) {
1279
+ function LeagueToJSON(json) {
1280
+ return LeagueToJSONTyped(json, false);
1281
+ }
1282
+ function LeagueToJSONTyped(value, ignoreDiscriminator = false) {
558
1283
  if (value == null) {
559
1284
  return value;
560
1285
  }
@@ -600,7 +1325,10 @@ function SportFromJSONTyped(json, ignoreDiscriminator) {
600
1325
  "activeStatus": json["activeStatus"] == null ? void 0 : json["activeStatus"]
601
1326
  };
602
1327
  }
603
- function SportToJSON(value) {
1328
+ function SportToJSON(json) {
1329
+ return SportToJSONTyped(json, false);
1330
+ }
1331
+ function SportToJSONTyped(value, ignoreDiscriminator = false) {
604
1332
  if (value == null) {
605
1333
  return value;
606
1334
  }
@@ -615,82 +1343,6 @@ function SportToJSON(value) {
615
1343
  };
616
1344
  }
617
1345
 
618
- // src/models/Division.ts
619
- function instanceOfDivision(value) {
620
- if (!("id" in value) || value["id"] === void 0) return false;
621
- if (!("name" in value) || value["name"] === void 0) return false;
622
- return true;
623
- }
624
- function DivisionFromJSON(json) {
625
- return DivisionFromJSONTyped(json, false);
626
- }
627
- function DivisionFromJSONTyped(json, ignoreDiscriminator) {
628
- if (json == null) {
629
- return json;
630
- }
631
- return {
632
- "id": json["id"],
633
- "name": json["name"],
634
- "season": json["season"] == null ? void 0 : json["season"],
635
- "nameShort": json["nameShort"] == null ? void 0 : json["nameShort"],
636
- "link": json["link"] == null ? void 0 : json["link"],
637
- "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
638
- "league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
639
- "sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
640
- "hasWildcard": json["hasWildcard"] == null ? void 0 : json["hasWildcard"],
641
- "sortOrder": json["sortOrder"] == null ? void 0 : json["sortOrder"],
642
- "numPlayoffTeams": json["numPlayoffTeams"] == null ? void 0 : json["numPlayoffTeams"],
643
- "active": json["active"] == null ? void 0 : json["active"]
644
- };
645
- }
646
- function DivisionToJSON(value) {
647
- if (value == null) {
648
- return value;
649
- }
650
- return {
651
- "id": value["id"],
652
- "name": value["name"],
653
- "season": value["season"],
654
- "nameShort": value["nameShort"],
655
- "link": value["link"],
656
- "abbreviation": value["abbreviation"],
657
- "league": LeagueToJSON(value["league"]),
658
- "sport": SportToJSON(value["sport"]),
659
- "hasWildcard": value["hasWildcard"],
660
- "sortOrder": value["sortOrder"],
661
- "numPlayoffTeams": value["numPlayoffTeams"],
662
- "active": value["active"]
663
- };
664
- }
665
-
666
- // src/models/Streak.ts
667
- var StreakStreakTypeEnum = {
668
- Losing: "losses",
669
- Winning: "wins"
670
- };
671
- function instanceOfStreak(value) {
672
- return true;
673
- }
674
- function StreakFromJSON(json) {
675
- return StreakFromJSONTyped(json, false);
676
- }
677
- function StreakFromJSONTyped(json, ignoreDiscriminator) {
678
- if (json == null) {
679
- return json;
680
- }
681
- return {
682
- "streakType": json["streakType"] == null ? void 0 : json["streakType"]
683
- };
684
- }
685
- function StreakToJSON(value) {
686
- if (value == null) {
687
- return value;
688
- }
689
- return {
690
- "streakType": value["streakType"]
691
- };
692
- }
693
-
694
1346
  // src/models/Venue.ts
695
1347
  function instanceOfVenue(value) {
696
1348
  if (!("id" in value) || value["id"] === void 0) return false;
@@ -712,7 +1364,10 @@ function VenueFromJSONTyped(json, ignoreDiscriminator) {
712
1364
  "season": json["season"] == null ? void 0 : json["season"]
713
1365
  };
714
1366
  }
715
- function VenueToJSON(value) {
1367
+ function VenueToJSON(json) {
1368
+ return VenueToJSONTyped(json, false);
1369
+ }
1370
+ function VenueToJSONTyped(value, ignoreDiscriminator = false) {
716
1371
  if (value == null) {
717
1372
  return value;
718
1373
  }
@@ -725,72 +1380,89 @@ function VenueToJSON(value) {
725
1380
  };
726
1381
  }
727
1382
 
728
- // src/models/Team.ts
729
- function instanceOfTeam(value) {
1383
+ // src/models/Division.ts
1384
+ function instanceOfDivision(value) {
730
1385
  if (!("id" in value) || value["id"] === void 0) return false;
731
1386
  if (!("name" in value) || value["name"] === void 0) return false;
732
1387
  return true;
733
1388
  }
734
- function TeamFromJSON(json) {
735
- return TeamFromJSONTyped(json, false);
1389
+ function DivisionFromJSON(json) {
1390
+ return DivisionFromJSONTyped(json, false);
736
1391
  }
737
- function TeamFromJSONTyped(json, ignoreDiscriminator) {
1392
+ function DivisionFromJSONTyped(json, ignoreDiscriminator) {
738
1393
  if (json == null) {
739
1394
  return json;
740
1395
  }
741
1396
  return {
742
1397
  "id": json["id"],
743
1398
  "name": json["name"],
744
- "link": json["link"] == null ? void 0 : json["link"],
745
- "allStarStatus": json["allStarStatus"] == null ? void 0 : json["allStarStatus"],
746
1399
  "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"],
1400
+ "nameShort": json["nameShort"] == null ? void 0 : json["nameShort"],
1401
+ "link": json["link"] == null ? void 0 : json["link"],
751
1402
  "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
1403
  "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
1404
  "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"],
1405
+ "hasWildcard": json["hasWildcard"] == null ? void 0 : json["hasWildcard"],
1406
+ "sortOrder": json["sortOrder"] == null ? void 0 : json["sortOrder"],
1407
+ "numPlayoffTeams": json["numPlayoffTeams"] == null ? void 0 : json["numPlayoffTeams"],
762
1408
  "active": json["active"] == null ? void 0 : json["active"]
763
1409
  };
764
1410
  }
765
- function TeamToJSON(value) {
1411
+ function DivisionToJSON(json) {
1412
+ return DivisionToJSONTyped(json, false);
1413
+ }
1414
+ function DivisionToJSONTyped(value, ignoreDiscriminator = false) {
766
1415
  if (value == null) {
767
1416
  return value;
768
1417
  }
769
1418
  return {
770
1419
  "id": value["id"],
771
1420
  "name": value["name"],
772
- "link": value["link"],
773
- "allStarStatus": value["allStarStatus"],
774
1421
  "season": value["season"],
775
- "venue": VenueToJSON(value["venue"]),
776
- "springVenue": VenueToJSON(value["springVenue"]),
777
- "teamCode": value["teamCode"],
778
- "fileCode": value["fileCode"],
1422
+ "nameShort": value["nameShort"],
1423
+ "link": value["link"],
779
1424
  "abbreviation": value["abbreviation"],
780
- "teamName": value["teamName"],
781
- "locationName": value["locationName"],
782
- "firstYearOfPlay": value["firstYearOfPlay"],
783
1425
  "league": LeagueToJSON(value["league"]),
784
- "springLeague": LeagueToJSON(value["springLeague"]),
785
- "division": DivisionToJSON(value["division"]),
786
1426
  "sport": SportToJSON(value["sport"]),
787
- "shortName": value["shortName"],
788
- "franchiseName": value["franchiseName"],
789
- "clubName": value["clubName"],
1427
+ "hasWildcard": value["hasWildcard"],
1428
+ "sortOrder": value["sortOrder"],
1429
+ "numPlayoffTeams": value["numPlayoffTeams"],
790
1430
  "active": value["active"]
791
1431
  };
792
1432
  }
793
1433
 
1434
+ // src/models/Streak.ts
1435
+ var StreakStreakTypeEnum = /* @__PURE__ */ ((StreakStreakTypeEnum2) => {
1436
+ StreakStreakTypeEnum2["Losing"] = "losses";
1437
+ StreakStreakTypeEnum2["Winning"] = "wins";
1438
+ return StreakStreakTypeEnum2;
1439
+ })(StreakStreakTypeEnum || {});
1440
+ function instanceOfStreak(value) {
1441
+ return true;
1442
+ }
1443
+ function StreakFromJSON(json) {
1444
+ return StreakFromJSONTyped(json, false);
1445
+ }
1446
+ function StreakFromJSONTyped(json, ignoreDiscriminator) {
1447
+ if (json == null) {
1448
+ return json;
1449
+ }
1450
+ return {
1451
+ "streakType": json["streakType"] == null ? void 0 : json["streakType"]
1452
+ };
1453
+ }
1454
+ function StreakToJSON(json) {
1455
+ return StreakToJSONTyped(json, false);
1456
+ }
1457
+ function StreakToJSONTyped(value, ignoreDiscriminator = false) {
1458
+ if (value == null) {
1459
+ return value;
1460
+ }
1461
+ return {
1462
+ "streakType": value["streakType"]
1463
+ };
1464
+ }
1465
+
794
1466
  // src/models/LeagueRecord.ts
795
1467
  function instanceOfLeagueRecord(value) {
796
1468
  if (!("wins" in value) || value["wins"] === void 0) return false;
@@ -812,7 +1484,10 @@ function LeagueRecordFromJSONTyped(json, ignoreDiscriminator) {
812
1484
  "pct": json["pct"]
813
1485
  };
814
1486
  }
815
- function LeagueRecordToJSON(value) {
1487
+ function LeagueRecordToJSON(json) {
1488
+ return LeagueRecordToJSONTyped(json, false);
1489
+ }
1490
+ function LeagueRecordToJSONTyped(value, ignoreDiscriminator = false) {
816
1491
  if (value == null) {
817
1492
  return value;
818
1493
  }
@@ -824,8 +1499,8 @@ function LeagueRecordToJSON(value) {
824
1499
  };
825
1500
  }
826
1501
 
827
- // src/models/TeamRecord.ts
828
- function instanceOfTeamRecord(value) {
1502
+ // src/models/Record.ts
1503
+ function instanceOfRecord(value) {
829
1504
  if (!("team" in value) || value["team"] === void 0) return false;
830
1505
  if (!("season" in value) || value["season"] === void 0) return false;
831
1506
  if (!("streak" in value) || value["streak"] === void 0) return false;
@@ -837,10 +1512,10 @@ function instanceOfTeamRecord(value) {
837
1512
  if (!("losses" in value) || value["losses"] === void 0) return false;
838
1513
  return true;
839
1514
  }
840
- function TeamRecordFromJSON(json) {
841
- return TeamRecordFromJSONTyped(json, false);
1515
+ function RecordFromJSON(json) {
1516
+ return RecordFromJSONTyped(json, false);
842
1517
  }
843
- function TeamRecordFromJSONTyped(json, ignoreDiscriminator) {
1518
+ function RecordFromJSONTyped(json, ignoreDiscriminator) {
844
1519
  if (json == null) {
845
1520
  return json;
846
1521
  }
@@ -879,7 +1554,10 @@ function TeamRecordFromJSONTyped(json, ignoreDiscriminator) {
879
1554
  "winningPercentage": json["winningPercentage"] == null ? void 0 : json["winningPercentage"]
880
1555
  };
881
1556
  }
882
- function TeamRecordToJSON(value) {
1557
+ function RecordToJSON(json) {
1558
+ return RecordToJSONTyped(json, false);
1559
+ }
1560
+ function RecordToJSONTyped(value, ignoreDiscriminator = false) {
883
1561
  if (value == null) {
884
1562
  return value;
885
1563
  }
@@ -919,6 +1597,207 @@ function TeamRecordToJSON(value) {
919
1597
  };
920
1598
  }
921
1599
 
1600
+ // src/models/Team.ts
1601
+ function instanceOfTeam(value) {
1602
+ if (!("id" in value) || value["id"] === void 0) return false;
1603
+ if (!("name" in value) || value["name"] === void 0) return false;
1604
+ return true;
1605
+ }
1606
+ function TeamFromJSON(json) {
1607
+ return TeamFromJSONTyped2(json, false);
1608
+ }
1609
+ function TeamFromJSONTyped2(json, ignoreDiscriminator) {
1610
+ if (json == null) {
1611
+ return json;
1612
+ }
1613
+ return {
1614
+ "id": json["id"],
1615
+ "name": json["name"],
1616
+ "link": json["link"] == null ? void 0 : json["link"],
1617
+ "allStarStatus": json["allStarStatus"] == null ? void 0 : json["allStarStatus"],
1618
+ "season": json["season"] == null ? void 0 : json["season"],
1619
+ "venue": json["venue"] == null ? void 0 : VenueFromJSON(json["venue"]),
1620
+ "springVenue": json["springVenue"] == null ? void 0 : VenueFromJSON(json["springVenue"]),
1621
+ "teamCode": json["teamCode"] == null ? void 0 : json["teamCode"],
1622
+ "fileCode": json["fileCode"] == null ? void 0 : json["fileCode"],
1623
+ "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"],
1624
+ "teamName": json["teamName"] == null ? void 0 : json["teamName"],
1625
+ "locationName": json["locationName"] == null ? void 0 : json["locationName"],
1626
+ "firstYearOfPlay": json["firstYearOfPlay"] == null ? void 0 : json["firstYearOfPlay"],
1627
+ "league": json["league"] == null ? void 0 : LeagueFromJSON(json["league"]),
1628
+ "springLeague": json["springLeague"] == null ? void 0 : LeagueFromJSON(json["springLeague"]),
1629
+ "division": json["division"] == null ? void 0 : DivisionFromJSON(json["division"]),
1630
+ "sport": json["sport"] == null ? void 0 : SportFromJSON(json["sport"]),
1631
+ "record": json["record"] == null ? void 0 : RecordFromJSON(json["record"]),
1632
+ "shortName": json["shortName"] == null ? void 0 : json["shortName"],
1633
+ "franchiseName": json["franchiseName"] == null ? void 0 : json["franchiseName"],
1634
+ "clubName": json["clubName"] == null ? void 0 : json["clubName"],
1635
+ "active": json["active"] == null ? void 0 : json["active"]
1636
+ };
1637
+ }
1638
+ function TeamToJSON(json) {
1639
+ return TeamToJSONTyped2(json, false);
1640
+ }
1641
+ function TeamToJSONTyped2(value, ignoreDiscriminator = false) {
1642
+ if (value == null) {
1643
+ return value;
1644
+ }
1645
+ return {
1646
+ "id": value["id"],
1647
+ "name": value["name"],
1648
+ "link": value["link"],
1649
+ "allStarStatus": value["allStarStatus"],
1650
+ "season": value["season"],
1651
+ "venue": VenueToJSON(value["venue"]),
1652
+ "springVenue": VenueToJSON(value["springVenue"]),
1653
+ "teamCode": value["teamCode"],
1654
+ "fileCode": value["fileCode"],
1655
+ "abbreviation": value["abbreviation"],
1656
+ "teamName": value["teamName"],
1657
+ "locationName": value["locationName"],
1658
+ "firstYearOfPlay": value["firstYearOfPlay"],
1659
+ "league": LeagueToJSON(value["league"]),
1660
+ "springLeague": LeagueToJSON(value["springLeague"]),
1661
+ "division": DivisionToJSON(value["division"]),
1662
+ "sport": SportToJSON(value["sport"]),
1663
+ "record": RecordToJSON(value["record"]),
1664
+ "shortName": value["shortName"],
1665
+ "franchiseName": value["franchiseName"],
1666
+ "clubName": value["clubName"],
1667
+ "active": value["active"]
1668
+ };
1669
+ }
1670
+
1671
+ // src/models/TeamStats.ts
1672
+ function instanceOfTeamStats(value) {
1673
+ if (!("batting" in value) || value["batting"] === void 0) return false;
1674
+ if (!("pitching" in value) || value["pitching"] === void 0) return false;
1675
+ if (!("fielding" in value) || value["fielding"] === void 0) return false;
1676
+ return true;
1677
+ }
1678
+ function TeamStatsFromJSON(json) {
1679
+ return TeamStatsFromJSONTyped(json, false);
1680
+ }
1681
+ function TeamStatsFromJSONTyped(json, ignoreDiscriminator) {
1682
+ if (json == null) {
1683
+ return json;
1684
+ }
1685
+ return {
1686
+ "batting": BattingStatsFromJSON(json["batting"]),
1687
+ "pitching": PitchingStatsFromJSON(json["pitching"]),
1688
+ "fielding": FieldingStatsFromJSON(json["fielding"])
1689
+ };
1690
+ }
1691
+ function TeamStatsToJSON(json) {
1692
+ return TeamStatsToJSONTyped(json, false);
1693
+ }
1694
+ function TeamStatsToJSONTyped(value, ignoreDiscriminator = false) {
1695
+ if (value == null) {
1696
+ return value;
1697
+ }
1698
+ return {
1699
+ "batting": BattingStatsToJSON(value["batting"]),
1700
+ "pitching": PitchingStatsToJSON(value["pitching"]),
1701
+ "fielding": FieldingStatsToJSON(value["fielding"])
1702
+ };
1703
+ }
1704
+
1705
+ // src/models/BoxscoreTeam.ts
1706
+ function instanceOfBoxscoreTeam(value) {
1707
+ if (!("team" in value) || value["team"] === void 0) return false;
1708
+ if (!("teamStats" in value) || value["teamStats"] === void 0) return false;
1709
+ if (!("players" in value) || value["players"] === void 0) return false;
1710
+ return true;
1711
+ }
1712
+ function BoxscoreTeamFromJSON(json) {
1713
+ return BoxscoreTeamFromJSONTyped(json, false);
1714
+ }
1715
+ function BoxscoreTeamFromJSONTyped(json, ignoreDiscriminator) {
1716
+ if (json == null) {
1717
+ return json;
1718
+ }
1719
+ return {
1720
+ "team": TeamFromJSON(json["team"]),
1721
+ "teamStats": TeamStatsFromJSON(json["teamStats"]),
1722
+ "players": mapValues(json["players"], PlayerFromJSON)
1723
+ };
1724
+ }
1725
+ function BoxscoreTeamToJSON(json) {
1726
+ return BoxscoreTeamToJSONTyped(json, false);
1727
+ }
1728
+ function BoxscoreTeamToJSONTyped(value, ignoreDiscriminator = false) {
1729
+ if (value == null) {
1730
+ return value;
1731
+ }
1732
+ return {
1733
+ "team": TeamToJSON(value["team"]),
1734
+ "teamStats": TeamStatsToJSON(value["teamStats"]),
1735
+ "players": mapValues(value["players"], PlayerToJSON)
1736
+ };
1737
+ }
1738
+
1739
+ // src/models/BoxscoreTeams.ts
1740
+ function instanceOfBoxscoreTeams(value) {
1741
+ if (!("away" in value) || value["away"] === void 0) return false;
1742
+ if (!("home" in value) || value["home"] === void 0) return false;
1743
+ return true;
1744
+ }
1745
+ function BoxscoreTeamsFromJSON(json) {
1746
+ return BoxscoreTeamsFromJSONTyped(json, false);
1747
+ }
1748
+ function BoxscoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
1749
+ if (json == null) {
1750
+ return json;
1751
+ }
1752
+ return {
1753
+ "away": BoxscoreTeamFromJSON(json["away"]),
1754
+ "home": BoxscoreTeamFromJSON(json["home"])
1755
+ };
1756
+ }
1757
+ function BoxscoreTeamsToJSON(json) {
1758
+ return BoxscoreTeamsToJSONTyped(json, false);
1759
+ }
1760
+ function BoxscoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
1761
+ if (value == null) {
1762
+ return value;
1763
+ }
1764
+ return {
1765
+ "away": BoxscoreTeamToJSON(value["away"]),
1766
+ "home": BoxscoreTeamToJSON(value["home"])
1767
+ };
1768
+ }
1769
+
1770
+ // src/models/Boxscore.ts
1771
+ function instanceOfBoxscore(value) {
1772
+ if (!("teams" in value) || value["teams"] === void 0) return false;
1773
+ if (!("officials" in value) || value["officials"] === void 0) return false;
1774
+ return true;
1775
+ }
1776
+ function BoxscoreFromJSON(json) {
1777
+ return BoxscoreFromJSONTyped(json, false);
1778
+ }
1779
+ function BoxscoreFromJSONTyped(json, ignoreDiscriminator) {
1780
+ if (json == null) {
1781
+ return json;
1782
+ }
1783
+ return {
1784
+ "teams": BoxscoreTeamsFromJSON(json["teams"]),
1785
+ "officials": json["officials"].map(GameOfficialFromJSON)
1786
+ };
1787
+ }
1788
+ function BoxscoreToJSON(json) {
1789
+ return BoxscoreToJSONTyped(json, false);
1790
+ }
1791
+ function BoxscoreToJSONTyped(value, ignoreDiscriminator = false) {
1792
+ if (value == null) {
1793
+ return value;
1794
+ }
1795
+ return {
1796
+ "teams": BoxscoreTeamsToJSON(value["teams"]),
1797
+ "officials": value["officials"].map(GameOfficialToJSON)
1798
+ };
1799
+ }
1800
+
922
1801
  // src/models/DivisionStandings.ts
923
1802
  function instanceOfDivisionStandings(value) {
924
1803
  if (!("league" in value) || value["league"] === void 0) return false;
@@ -940,10 +1819,13 @@ function DivisionStandingsFromJSONTyped(json, ignoreDiscriminator) {
940
1819
  "division": DivisionFromJSON(json["division"]),
941
1820
  "sport": SportFromJSON(json["sport"]),
942
1821
  "lastUpdated": json["lastUpdated"] == null ? void 0 : json["lastUpdated"],
943
- "teamRecords": json["teamRecords"].map(TeamRecordFromJSON)
1822
+ "teamRecords": json["teamRecords"].map(RecordFromJSON)
944
1823
  };
945
1824
  }
946
- function DivisionStandingsToJSON(value) {
1825
+ function DivisionStandingsToJSON(json) {
1826
+ return DivisionStandingsToJSONTyped(json, false);
1827
+ }
1828
+ function DivisionStandingsToJSONTyped(value, ignoreDiscriminator = false) {
947
1829
  if (value == null) {
948
1830
  return value;
949
1831
  }
@@ -953,7 +1835,7 @@ function DivisionStandingsToJSON(value) {
953
1835
  "division": DivisionToJSON(value["division"]),
954
1836
  "sport": SportToJSON(value["sport"]),
955
1837
  "lastUpdated": value["lastUpdated"],
956
- "teamRecords": value["teamRecords"].map(TeamRecordToJSON)
1838
+ "teamRecords": value["teamRecords"].map(RecordToJSON)
957
1839
  };
958
1840
  }
959
1841
 
@@ -972,7 +1854,10 @@ function DivisionStandingsListFromJSONTyped(json, ignoreDiscriminator) {
972
1854
  "records": json["records"] == null ? void 0 : json["records"].map(DivisionStandingsFromJSON)
973
1855
  };
974
1856
  }
975
- function DivisionStandingsListToJSON(value) {
1857
+ function DivisionStandingsListToJSON(json) {
1858
+ return DivisionStandingsListToJSONTyped(json, false);
1859
+ }
1860
+ function DivisionStandingsListToJSONTyped(value, ignoreDiscriminator = false) {
976
1861
  if (value == null) {
977
1862
  return value;
978
1863
  }
@@ -982,15 +1867,16 @@ function DivisionStandingsListToJSON(value) {
982
1867
  }
983
1868
 
984
1869
  // 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
- };
1870
+ var GameStatusCode = /* @__PURE__ */ ((GameStatusCode2) => {
1871
+ GameStatusCode2["Final"] = "F";
1872
+ GameStatusCode2["Postponed"] = "D";
1873
+ GameStatusCode2["Scheduled"] = "S";
1874
+ GameStatusCode2["InProgress"] = "I";
1875
+ GameStatusCode2["Pregame"] = "P";
1876
+ GameStatusCode2["GameOver"] = "O";
1877
+ GameStatusCode2["Canceled"] = "C";
1878
+ return GameStatusCode2;
1879
+ })(GameStatusCode || {});
994
1880
  function instanceOfGameStatusCode(value) {
995
1881
  for (const key in GameStatusCode) {
996
1882
  if (Object.prototype.hasOwnProperty.call(GameStatusCode, key)) {
@@ -1010,6 +1896,9 @@ function GameStatusCodeFromJSONTyped(json, ignoreDiscriminator) {
1010
1896
  function GameStatusCodeToJSON(value) {
1011
1897
  return value;
1012
1898
  }
1899
+ function GameStatusCodeToJSONTyped(value, ignoreDiscriminator) {
1900
+ return value;
1901
+ }
1013
1902
 
1014
1903
  // src/models/GameStatus.ts
1015
1904
  function instanceOfGameStatus(value) {
@@ -1031,7 +1920,10 @@ function GameStatusFromJSONTyped(json, ignoreDiscriminator) {
1031
1920
  "abstractGameCode": json["abstractGameCode"] == null ? void 0 : json["abstractGameCode"]
1032
1921
  };
1033
1922
  }
1034
- function GameStatusToJSON(value) {
1923
+ function GameStatusToJSON(json) {
1924
+ return GameStatusToJSONTyped(json, false);
1925
+ }
1926
+ function GameStatusToJSONTyped(value, ignoreDiscriminator = false) {
1035
1927
  if (value == null) {
1036
1928
  return value;
1037
1929
  }
@@ -1068,7 +1960,10 @@ function GameTeamFromJSONTyped(json, ignoreDiscriminator) {
1068
1960
  "seriesNumber": json["seriesNumber"] == null ? void 0 : json["seriesNumber"]
1069
1961
  };
1070
1962
  }
1071
- function GameTeamToJSON(value) {
1963
+ function GameTeamToJSON(json) {
1964
+ return GameTeamToJSONTyped(json, false);
1965
+ }
1966
+ function GameTeamToJSONTyped(value, ignoreDiscriminator = false) {
1072
1967
  if (value == null) {
1073
1968
  return value;
1074
1969
  }
@@ -1100,7 +1995,10 @@ function GameTeamsFromJSONTyped(json, ignoreDiscriminator) {
1100
1995
  "home": GameTeamFromJSON(json["home"])
1101
1996
  };
1102
1997
  }
1103
- function GameTeamsToJSON(value) {
1998
+ function GameTeamsToJSON(json) {
1999
+ return GameTeamsToJSONTyped(json, false);
2000
+ }
2001
+ function GameTeamsToJSONTyped(value, ignoreDiscriminator = false) {
1104
2002
  if (value == null) {
1105
2003
  return value;
1106
2004
  }
@@ -1111,15 +2009,16 @@ function GameTeamsToJSON(value) {
1111
2009
  }
1112
2010
 
1113
2011
  // 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
- };
2012
+ var GameType = /* @__PURE__ */ ((GameType2) => {
2013
+ GameType2["Exhibition"] = "E";
2014
+ GameType2["SpringTraining"] = "S";
2015
+ GameType2["Regular"] = "R";
2016
+ GameType2["WildCardSeries"] = "F";
2017
+ GameType2["DivisionSeries"] = "D";
2018
+ GameType2["LeagueChampionshipSeries"] = "L";
2019
+ GameType2["WorldSeries"] = "W";
2020
+ return GameType2;
2021
+ })(GameType || {});
1123
2022
  function instanceOfGameType(value) {
1124
2023
  for (const key in GameType) {
1125
2024
  if (Object.prototype.hasOwnProperty.call(GameType, key)) {
@@ -1139,6 +2038,9 @@ function GameTypeFromJSONTyped(json, ignoreDiscriminator) {
1139
2038
  function GameTypeToJSON(value) {
1140
2039
  return value;
1141
2040
  }
2041
+ function GameTypeToJSONTyped(value, ignoreDiscriminator) {
2042
+ return value;
2043
+ }
1142
2044
 
1143
2045
  // src/models/Game.ts
1144
2046
  function instanceOfGame(value) {
@@ -1198,7 +2100,10 @@ function GameFromJSONTyped(json, ignoreDiscriminator) {
1198
2100
  "ifNecessaryDescription": json["ifNecessaryDescription"] == null ? void 0 : json["ifNecessaryDescription"]
1199
2101
  };
1200
2102
  }
1201
- function GameToJSON(value) {
2103
+ function GameToJSON(json) {
2104
+ return GameToJSONTyped(json, false);
2105
+ }
2106
+ function GameToJSONTyped(value, ignoreDiscriminator = false) {
1202
2107
  if (value == null) {
1203
2108
  return value;
1204
2109
  }
@@ -1257,7 +2162,10 @@ function LinescoreTeamFromJSONTyped(json, ignoreDiscriminator) {
1257
2162
  "leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"]
1258
2163
  };
1259
2164
  }
1260
- function LinescoreTeamToJSON(value) {
2165
+ function LinescoreTeamToJSON(json) {
2166
+ return LinescoreTeamToJSONTyped(json, false);
2167
+ }
2168
+ function LinescoreTeamToJSONTyped(value, ignoreDiscriminator = false) {
1261
2169
  if (value == null) {
1262
2170
  return value;
1263
2171
  }
@@ -1287,7 +2195,10 @@ function InningFromJSONTyped(json, ignoreDiscriminator) {
1287
2195
  "away": json["away"] == null ? void 0 : LinescoreTeamFromJSON(json["away"])
1288
2196
  };
1289
2197
  }
1290
- function InningToJSON(value) {
2198
+ function InningToJSON(json) {
2199
+ return InningToJSONTyped(json, false);
2200
+ }
2201
+ function InningToJSONTyped(value, ignoreDiscriminator = false) {
1291
2202
  if (value == null) {
1292
2203
  return value;
1293
2204
  }
@@ -1315,7 +2226,10 @@ function LinescoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
1315
2226
  "home": json["home"] == null ? void 0 : LinescoreTeamFromJSON(json["home"])
1316
2227
  };
1317
2228
  }
1318
- function LinescoreTeamsToJSON(value) {
2229
+ function LinescoreTeamsToJSON(json) {
2230
+ return LinescoreTeamsToJSONTyped(json, false);
2231
+ }
2232
+ function LinescoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
1319
2233
  if (value == null) {
1320
2234
  return value;
1321
2235
  }
@@ -1350,7 +2264,10 @@ function LinescoreFromJSONTyped(json, ignoreDiscriminator) {
1350
2264
  "outs": json["outs"] == null ? void 0 : json["outs"]
1351
2265
  };
1352
2266
  }
1353
- function LinescoreToJSON(value) {
2267
+ function LinescoreToJSON(json) {
2268
+ return LinescoreToJSONTyped(json, false);
2269
+ }
2270
+ function LinescoreToJSONTyped(value, ignoreDiscriminator = false) {
1354
2271
  if (value == null) {
1355
2272
  return value;
1356
2273
  }
@@ -1390,7 +2307,10 @@ function ScheduleDayFromJSONTyped(json, ignoreDiscriminator) {
1390
2307
  "games": json["games"].map(GameFromJSON)
1391
2308
  };
1392
2309
  }
1393
- function ScheduleDayToJSON(value) {
2310
+ function ScheduleDayToJSON(json) {
2311
+ return ScheduleDayToJSONTyped(json, false);
2312
+ }
2313
+ function ScheduleDayToJSONTyped(value, ignoreDiscriminator = false) {
1394
2314
  if (value == null) {
1395
2315
  return value;
1396
2316
  }
@@ -1428,7 +2348,10 @@ function ScheduleFromJSONTyped(json, ignoreDiscriminator) {
1428
2348
  "dates": json["dates"].map(ScheduleDayFromJSON)
1429
2349
  };
1430
2350
  }
1431
- function ScheduleToJSON(value) {
2351
+ function ScheduleToJSON(json) {
2352
+ return ScheduleToJSONTyped(json, false);
2353
+ }
2354
+ function ScheduleToJSONTyped(value, ignoreDiscriminator = false) {
1432
2355
  if (value == null) {
1433
2356
  return value;
1434
2357
  }
@@ -1481,7 +2404,10 @@ function SeasonFromJSONTyped(json, ignoreDiscriminator) {
1481
2404
  "qualifierOutsPitched": json["qualifierOutsPitched"] == null ? void 0 : json["qualifierOutsPitched"]
1482
2405
  };
1483
2406
  }
1484
- function SeasonToJSON(value) {
2407
+ function SeasonToJSON(json) {
2408
+ return SeasonToJSONTyped(json, false);
2409
+ }
2410
+ function SeasonToJSONTyped(value, ignoreDiscriminator = false) {
1485
2411
  if (value == null) {
1486
2412
  return value;
1487
2413
  }
@@ -1525,7 +2451,10 @@ function SeasonsFromJSONTyped(json, ignoreDiscriminator) {
1525
2451
  "seasons": json["seasons"] == null ? void 0 : json["seasons"].map(SeasonFromJSON)
1526
2452
  };
1527
2453
  }
1528
- function SeasonsToJSON(value) {
2454
+ function SeasonsToJSON(json) {
2455
+ return SeasonsToJSONTyped(json, false);
2456
+ }
2457
+ function SeasonsToJSONTyped(value, ignoreDiscriminator = false) {
1529
2458
  if (value == null) {
1530
2459
  return value;
1531
2460
  }
@@ -1549,7 +2478,10 @@ function TeamsFromJSONTyped(json, ignoreDiscriminator) {
1549
2478
  "teams": json["teams"] == null ? void 0 : json["teams"].map(TeamFromJSON)
1550
2479
  };
1551
2480
  }
1552
- function TeamsToJSON(value) {
2481
+ function TeamsToJSON(json) {
2482
+ return TeamsToJSONTyped(json, false);
2483
+ }
2484
+ function TeamsToJSONTyped(value, ignoreDiscriminator = false) {
1553
2485
  if (value == null) {
1554
2486
  return value;
1555
2487
  }
@@ -1596,6 +2528,42 @@ var MlbApi = class extends BaseAPI {
1596
2528
  return yield response.value();
1597
2529
  });
1598
2530
  }
2531
+ /**
2532
+ * Returns Boxscore
2533
+ * Retrieves boxscore
2534
+ */
2535
+ getBoxscoreRaw(requestParameters, initOverrides) {
2536
+ return __async(this, null, function* () {
2537
+ if (requestParameters["gamePk"] == null) {
2538
+ throw new RequiredError(
2539
+ "gamePk",
2540
+ 'Required parameter "gamePk" was null or undefined when calling getBoxscore().'
2541
+ );
2542
+ }
2543
+ const queryParameters = {};
2544
+ if (requestParameters["fields"] != null) {
2545
+ queryParameters["fields"] = requestParameters["fields"].join(COLLECTION_FORMATS["csv"]);
2546
+ }
2547
+ const headerParameters = {};
2548
+ const response = yield this.request({
2549
+ path: `/v1/game/{gamePk}/boxscore`.replace(`{${"gamePk"}}`, encodeURIComponent(String(requestParameters["gamePk"]))),
2550
+ method: "GET",
2551
+ headers: headerParameters,
2552
+ query: queryParameters
2553
+ }, initOverrides);
2554
+ return new JSONApiResponse(response, (jsonValue) => BoxscoreFromJSON(jsonValue));
2555
+ });
2556
+ }
2557
+ /**
2558
+ * Returns Boxscore
2559
+ * Retrieves boxscore
2560
+ */
2561
+ getBoxscore(requestParameters, initOverrides) {
2562
+ return __async(this, null, function* () {
2563
+ const response = yield this.getBoxscoreRaw(requestParameters, initOverrides);
2564
+ return yield response.value();
2565
+ });
2566
+ }
1599
2567
  /**
1600
2568
  * Returns Linescore
1601
2569
  * Retrieves linescore
@@ -1609,6 +2577,9 @@ var MlbApi = class extends BaseAPI {
1609
2577
  );
1610
2578
  }
1611
2579
  const queryParameters = {};
2580
+ if (requestParameters["fields"] != null) {
2581
+ queryParameters["fields"] = requestParameters["fields"].join(COLLECTION_FORMATS["csv"]);
2582
+ }
1612
2583
  const headerParameters = {};
1613
2584
  const response = yield this.request({
1614
2585
  path: `/v1/game/{gamePk}/linescore`.replace(`{${"gamePk"}}`, encodeURIComponent(String(requestParameters["gamePk"]))),
@@ -1835,7 +2806,23 @@ var MlbApi = class extends BaseAPI {
1835
2806
  0 && (module.exports = {
1836
2807
  BASE_PATH,
1837
2808
  BaseAPI,
2809
+ BattingStatsFromJSON,
2810
+ BattingStatsFromJSONTyped,
2811
+ BattingStatsToJSON,
2812
+ BattingStatsToJSONTyped,
1838
2813
  BlobApiResponse,
2814
+ BoxscoreFromJSON,
2815
+ BoxscoreFromJSONTyped,
2816
+ BoxscoreTeamFromJSON,
2817
+ BoxscoreTeamFromJSONTyped,
2818
+ BoxscoreTeamToJSON,
2819
+ BoxscoreTeamToJSONTyped,
2820
+ BoxscoreTeamsFromJSON,
2821
+ BoxscoreTeamsFromJSONTyped,
2822
+ BoxscoreTeamsToJSON,
2823
+ BoxscoreTeamsToJSONTyped,
2824
+ BoxscoreToJSON,
2825
+ BoxscoreToJSONTyped,
1839
2826
  COLLECTION_FORMATS,
1840
2827
  Configuration,
1841
2828
  DefaultConfig,
@@ -1846,92 +2833,177 @@ var MlbApi = class extends BaseAPI {
1846
2833
  DivisionStandingsListFromJSON,
1847
2834
  DivisionStandingsListFromJSONTyped,
1848
2835
  DivisionStandingsListToJSON,
2836
+ DivisionStandingsListToJSONTyped,
1849
2837
  DivisionStandingsToJSON,
2838
+ DivisionStandingsToJSONTyped,
1850
2839
  DivisionToJSON,
2840
+ DivisionToJSONTyped,
1851
2841
  FetchError,
2842
+ FieldingStatsFromJSON,
2843
+ FieldingStatsFromJSONTyped,
2844
+ FieldingStatsToJSON,
2845
+ FieldingStatsToJSONTyped,
1852
2846
  GameFromJSON,
1853
2847
  GameFromJSONTyped,
2848
+ GameOfficialFromJSON,
2849
+ GameOfficialFromJSONTyped,
2850
+ GameOfficialToJSON,
2851
+ GameOfficialToJSONTyped,
1854
2852
  GameStatusCode,
1855
2853
  GameStatusCodeFromJSON,
1856
2854
  GameStatusCodeFromJSONTyped,
1857
2855
  GameStatusCodeToJSON,
2856
+ GameStatusCodeToJSONTyped,
1858
2857
  GameStatusFromJSON,
1859
2858
  GameStatusFromJSONTyped,
1860
2859
  GameStatusToJSON,
2860
+ GameStatusToJSONTyped,
1861
2861
  GameTeamFromJSON,
1862
2862
  GameTeamFromJSONTyped,
1863
2863
  GameTeamToJSON,
2864
+ GameTeamToJSONTyped,
1864
2865
  GameTeamsFromJSON,
1865
2866
  GameTeamsFromJSONTyped,
1866
2867
  GameTeamsToJSON,
2868
+ GameTeamsToJSONTyped,
1867
2869
  GameToJSON,
2870
+ GameToJSONTyped,
1868
2871
  GameType,
1869
2872
  GameTypeFromJSON,
1870
2873
  GameTypeFromJSONTyped,
1871
2874
  GameTypeToJSON,
2875
+ GameTypeToJSONTyped,
1872
2876
  InningFromJSON,
1873
2877
  InningFromJSONTyped,
1874
2878
  InningToJSON,
2879
+ InningToJSONTyped,
1875
2880
  JSONApiResponse,
1876
2881
  LeagueDatesFromJSON,
1877
2882
  LeagueDatesFromJSONTyped,
1878
2883
  LeagueDatesToJSON,
2884
+ LeagueDatesToJSONTyped,
1879
2885
  LeagueFromJSON,
1880
2886
  LeagueFromJSONTyped,
1881
2887
  LeagueRecordFromJSON,
1882
2888
  LeagueRecordFromJSONTyped,
1883
2889
  LeagueRecordToJSON,
2890
+ LeagueRecordToJSONTyped,
1884
2891
  LeagueToJSON,
2892
+ LeagueToJSONTyped,
1885
2893
  LinescoreFromJSON,
1886
2894
  LinescoreFromJSONTyped,
1887
2895
  LinescoreTeamFromJSON,
1888
2896
  LinescoreTeamFromJSONTyped,
1889
2897
  LinescoreTeamToJSON,
2898
+ LinescoreTeamToJSONTyped,
1890
2899
  LinescoreTeamsFromJSON,
1891
2900
  LinescoreTeamsFromJSONTyped,
1892
2901
  LinescoreTeamsToJSON,
2902
+ LinescoreTeamsToJSONTyped,
1893
2903
  LinescoreToJSON,
2904
+ LinescoreToJSONTyped,
1894
2905
  MlbApi,
2906
+ OfficialFromJSON,
2907
+ OfficialFromJSONTyped,
2908
+ OfficialToJSON,
2909
+ OfficialToJSONTyped,
2910
+ PitchingStatsFromJSON,
2911
+ PitchingStatsFromJSONTyped,
2912
+ PitchingStatsToJSON,
2913
+ PitchingStatsToJSONTyped,
2914
+ PlayerFromJSON,
2915
+ PlayerFromJSONTyped,
2916
+ PlayerGameStatusFromJSON,
2917
+ PlayerGameStatusFromJSONTyped,
2918
+ PlayerGameStatusToJSON,
2919
+ PlayerGameStatusToJSONTyped,
2920
+ PlayerPersonFromJSON,
2921
+ PlayerPersonFromJSONTyped,
2922
+ PlayerPersonToJSON,
2923
+ PlayerPersonToJSONTyped,
2924
+ PlayerPositionFromJSON,
2925
+ PlayerPositionFromJSONTyped,
2926
+ PlayerPositionToJSON,
2927
+ PlayerPositionToJSONTyped,
2928
+ PlayerSeasonStatsFromJSON,
2929
+ PlayerSeasonStatsFromJSONTyped,
2930
+ PlayerSeasonStatsToJSON,
2931
+ PlayerSeasonStatsToJSONTyped,
2932
+ PlayerStatsFromJSON,
2933
+ PlayerStatsFromJSONTyped,
2934
+ PlayerStatsToJSON,
2935
+ PlayerStatsToJSONTyped,
2936
+ PlayerStatusFromJSON,
2937
+ PlayerStatusFromJSONTyped,
2938
+ PlayerStatusToJSON,
2939
+ PlayerStatusToJSONTyped,
2940
+ PlayerToJSON,
2941
+ PlayerToJSONTyped,
2942
+ PositionFromJSON,
2943
+ PositionFromJSONTyped,
2944
+ PositionToJSON,
2945
+ PositionToJSONTyped,
2946
+ RecordFromJSON,
2947
+ RecordFromJSONTyped,
2948
+ RecordToJSON,
2949
+ RecordToJSONTyped,
1895
2950
  RequiredError,
1896
2951
  ResponseError,
1897
2952
  ScheduleDayFromJSON,
1898
2953
  ScheduleDayFromJSONTyped,
1899
2954
  ScheduleDayToJSON,
2955
+ ScheduleDayToJSONTyped,
1900
2956
  ScheduleFromJSON,
1901
2957
  ScheduleFromJSONTyped,
1902
2958
  ScheduleToJSON,
2959
+ ScheduleToJSONTyped,
1903
2960
  SeasonFromJSON,
1904
2961
  SeasonFromJSONTyped,
1905
2962
  SeasonToJSON,
2963
+ SeasonToJSONTyped,
1906
2964
  SeasonsFromJSON,
1907
2965
  SeasonsFromJSONTyped,
1908
2966
  SeasonsToJSON,
2967
+ SeasonsToJSONTyped,
1909
2968
  SportFromJSON,
1910
2969
  SportFromJSONTyped,
1911
2970
  SportToJSON,
2971
+ SportToJSONTyped,
1912
2972
  StreakFromJSON,
1913
2973
  StreakFromJSONTyped,
1914
2974
  StreakStreakTypeEnum,
1915
2975
  StreakToJSON,
2976
+ StreakToJSONTyped,
1916
2977
  TeamFromJSON,
1917
2978
  TeamFromJSONTyped,
1918
- TeamRecordFromJSON,
1919
- TeamRecordFromJSONTyped,
1920
- TeamRecordToJSON,
2979
+ TeamStatsFromJSON,
2980
+ TeamStatsFromJSONTyped,
2981
+ TeamStatsToJSON,
2982
+ TeamStatsToJSONTyped,
1921
2983
  TeamToJSON,
2984
+ TeamToJSONTyped,
1922
2985
  TeamsFromJSON,
1923
2986
  TeamsFromJSONTyped,
1924
2987
  TeamsToJSON,
2988
+ TeamsToJSONTyped,
1925
2989
  TextApiResponse,
1926
2990
  VenueFromJSON,
1927
2991
  VenueFromJSONTyped,
1928
2992
  VenueToJSON,
2993
+ VenueToJSONTyped,
1929
2994
  VoidApiResponse,
1930
2995
  canConsumeForm,
2996
+ exists,
2997
+ instanceOfBattingStats,
2998
+ instanceOfBoxscore,
2999
+ instanceOfBoxscoreTeam,
3000
+ instanceOfBoxscoreTeams,
1931
3001
  instanceOfDivision,
1932
3002
  instanceOfDivisionStandings,
1933
3003
  instanceOfDivisionStandingsList,
3004
+ instanceOfFieldingStats,
1934
3005
  instanceOfGame,
3006
+ instanceOfGameOfficial,
1935
3007
  instanceOfGameStatus,
1936
3008
  instanceOfGameStatusCode,
1937
3009
  instanceOfGameTeam,
@@ -1944,6 +3016,17 @@ var MlbApi = class extends BaseAPI {
1944
3016
  instanceOfLinescore,
1945
3017
  instanceOfLinescoreTeam,
1946
3018
  instanceOfLinescoreTeams,
3019
+ instanceOfOfficial,
3020
+ instanceOfPitchingStats,
3021
+ instanceOfPlayer,
3022
+ instanceOfPlayerGameStatus,
3023
+ instanceOfPlayerPerson,
3024
+ instanceOfPlayerPosition,
3025
+ instanceOfPlayerSeasonStats,
3026
+ instanceOfPlayerStats,
3027
+ instanceOfPlayerStatus,
3028
+ instanceOfPosition,
3029
+ instanceOfRecord,
1947
3030
  instanceOfSchedule,
1948
3031
  instanceOfScheduleDay,
1949
3032
  instanceOfSeason,
@@ -1951,7 +3034,7 @@ var MlbApi = class extends BaseAPI {
1951
3034
  instanceOfSport,
1952
3035
  instanceOfStreak,
1953
3036
  instanceOfTeam,
1954
- instanceOfTeamRecord,
3037
+ instanceOfTeamStats,
1955
3038
  instanceOfTeams,
1956
3039
  instanceOfVenue,
1957
3040
  mapValues,