@bp1222/stats-api 0.2.5 → 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,13 +55,21 @@ 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,
63
67
  BoxscoreFromJSON: () => BoxscoreFromJSON,
64
68
  BoxscoreFromJSONTyped: () => BoxscoreFromJSONTyped,
69
+ BoxscoreTeamFromJSON: () => BoxscoreTeamFromJSON,
70
+ BoxscoreTeamFromJSONTyped: () => BoxscoreTeamFromJSONTyped,
71
+ BoxscoreTeamToJSON: () => BoxscoreTeamToJSON,
72
+ BoxscoreTeamToJSONTyped: () => BoxscoreTeamToJSONTyped,
65
73
  BoxscoreTeamsFromJSON: () => BoxscoreTeamsFromJSON,
66
74
  BoxscoreTeamsFromJSONTyped: () => BoxscoreTeamsFromJSONTyped,
67
75
  BoxscoreTeamsToJSON: () => BoxscoreTeamsToJSON,
@@ -84,6 +92,10 @@ __export(src_exports, {
84
92
  DivisionToJSON: () => DivisionToJSON,
85
93
  DivisionToJSONTyped: () => DivisionToJSONTyped,
86
94
  FetchError: () => FetchError,
95
+ FieldingStatsFromJSON: () => FieldingStatsFromJSON,
96
+ FieldingStatsFromJSONTyped: () => FieldingStatsFromJSONTyped,
97
+ FieldingStatsToJSON: () => FieldingStatsToJSON,
98
+ FieldingStatsToJSONTyped: () => FieldingStatsToJSONTyped,
87
99
  GameFromJSON: () => GameFromJSON,
88
100
  GameFromJSONTyped: () => GameFromJSONTyped,
89
101
  GameOfficialFromJSON: () => GameOfficialFromJSON,
@@ -148,6 +160,42 @@ __export(src_exports, {
148
160
  OfficialFromJSONTyped: () => OfficialFromJSONTyped,
149
161
  OfficialToJSON: () => OfficialToJSON,
150
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,
151
199
  RecordFromJSON: () => RecordFromJSON,
152
200
  RecordFromJSONTyped: () => RecordFromJSONTyped,
153
201
  RecordToJSON: () => RecordToJSON,
@@ -181,6 +229,10 @@ __export(src_exports, {
181
229
  StreakToJSONTyped: () => StreakToJSONTyped,
182
230
  TeamFromJSON: () => TeamFromJSON,
183
231
  TeamFromJSONTyped: () => TeamFromJSONTyped2,
232
+ TeamStatsFromJSON: () => TeamStatsFromJSON,
233
+ TeamStatsFromJSONTyped: () => TeamStatsFromJSONTyped,
234
+ TeamStatsToJSON: () => TeamStatsToJSON,
235
+ TeamStatsToJSONTyped: () => TeamStatsToJSONTyped,
184
236
  TeamToJSON: () => TeamToJSON,
185
237
  TeamToJSONTyped: () => TeamToJSONTyped2,
186
238
  TeamsFromJSON: () => TeamsFromJSON,
@@ -194,11 +246,15 @@ __export(src_exports, {
194
246
  VenueToJSONTyped: () => VenueToJSONTyped,
195
247
  VoidApiResponse: () => VoidApiResponse,
196
248
  canConsumeForm: () => canConsumeForm,
249
+ exists: () => exists,
250
+ instanceOfBattingStats: () => instanceOfBattingStats,
197
251
  instanceOfBoxscore: () => instanceOfBoxscore,
252
+ instanceOfBoxscoreTeam: () => instanceOfBoxscoreTeam,
198
253
  instanceOfBoxscoreTeams: () => instanceOfBoxscoreTeams,
199
254
  instanceOfDivision: () => instanceOfDivision,
200
255
  instanceOfDivisionStandings: () => instanceOfDivisionStandings,
201
256
  instanceOfDivisionStandingsList: () => instanceOfDivisionStandingsList,
257
+ instanceOfFieldingStats: () => instanceOfFieldingStats,
202
258
  instanceOfGame: () => instanceOfGame,
203
259
  instanceOfGameOfficial: () => instanceOfGameOfficial,
204
260
  instanceOfGameStatus: () => instanceOfGameStatus,
@@ -214,6 +270,15 @@ __export(src_exports, {
214
270
  instanceOfLinescoreTeam: () => instanceOfLinescoreTeam,
215
271
  instanceOfLinescoreTeams: () => instanceOfLinescoreTeams,
216
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,
217
282
  instanceOfRecord: () => instanceOfRecord,
218
283
  instanceOfSchedule: () => instanceOfSchedule,
219
284
  instanceOfScheduleDay: () => instanceOfScheduleDay,
@@ -222,12 +287,13 @@ __export(src_exports, {
222
287
  instanceOfSport: () => instanceOfSport,
223
288
  instanceOfStreak: () => instanceOfStreak,
224
289
  instanceOfTeam: () => instanceOfTeam,
290
+ instanceOfTeamStats: () => instanceOfTeamStats,
225
291
  instanceOfTeams: () => instanceOfTeams,
226
292
  instanceOfVenue: () => instanceOfVenue,
227
293
  mapValues: () => mapValues,
228
294
  querystring: () => querystring
229
295
  });
230
- module.exports = __toCommonJS(src_exports);
296
+ module.exports = __toCommonJS(index_exports);
231
297
 
232
298
  // src/runtime.ts
233
299
  var BASE_PATH = "https://statsapi.mlb.com/api".replace(/\/+$/, "");
@@ -470,6 +536,10 @@ function querystringSingleKey(key, value, keyPrefix = "") {
470
536
  }
471
537
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
472
538
  }
539
+ function exists(json, key) {
540
+ const value = json[key];
541
+ return value !== null && value !== void 0;
542
+ }
473
543
  function mapValues(data, fn) {
474
544
  return Object.keys(data).reduce(
475
545
  (acc, key) => __spreadProps(__spreadValues({}, acc), { [key]: fn(data[key]) }),
@@ -526,6 +596,97 @@ var TextApiResponse = class {
526
596
  }
527
597
  };
528
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
+
529
690
  // src/models/Official.ts
530
691
  function instanceOfOfficial(value) {
531
692
  return true;
@@ -586,6 +747,458 @@ function GameOfficialToJSONTyped(value, ignoreDiscriminator = false) {
586
747
  };
587
748
  }
588
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
+
589
1202
  // src/models/LeagueDates.ts
590
1203
  function instanceOfLeagueDates(value) {
591
1204
  return true;
@@ -1055,8 +1668,78 @@ function TeamToJSONTyped2(value, ignoreDiscriminator = false) {
1055
1668
  };
1056
1669
  }
1057
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
+
1058
1739
  // src/models/BoxscoreTeams.ts
1059
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;
1060
1743
  return true;
1061
1744
  }
1062
1745
  function BoxscoreTeamsFromJSON(json) {
@@ -1067,8 +1750,8 @@ function BoxscoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
1067
1750
  return json;
1068
1751
  }
1069
1752
  return {
1070
- "away": json["away"] == null ? void 0 : TeamFromJSON(json["away"]),
1071
- "home": json["home"] == null ? void 0 : TeamFromJSON(json["home"])
1753
+ "away": BoxscoreTeamFromJSON(json["away"]),
1754
+ "home": BoxscoreTeamFromJSON(json["home"])
1072
1755
  };
1073
1756
  }
1074
1757
  function BoxscoreTeamsToJSON(json) {
@@ -1079,13 +1762,15 @@ function BoxscoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
1079
1762
  return value;
1080
1763
  }
1081
1764
  return {
1082
- "away": TeamToJSON(value["away"]),
1083
- "home": TeamToJSON(value["home"])
1765
+ "away": BoxscoreTeamToJSON(value["away"]),
1766
+ "home": BoxscoreTeamToJSON(value["home"])
1084
1767
  };
1085
1768
  }
1086
1769
 
1087
1770
  // src/models/Boxscore.ts
1088
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;
1089
1774
  return true;
1090
1775
  }
1091
1776
  function BoxscoreFromJSON(json) {
@@ -1096,8 +1781,8 @@ function BoxscoreFromJSONTyped(json, ignoreDiscriminator) {
1096
1781
  return json;
1097
1782
  }
1098
1783
  return {
1099
- "teams": json["teams"] == null ? void 0 : BoxscoreTeamsFromJSON(json["teams"]),
1100
- "officials": json["officials"] == null ? void 0 : json["officials"].map(GameOfficialFromJSON)
1784
+ "teams": BoxscoreTeamsFromJSON(json["teams"]),
1785
+ "officials": json["officials"].map(GameOfficialFromJSON)
1101
1786
  };
1102
1787
  }
1103
1788
  function BoxscoreToJSON(json) {
@@ -1109,7 +1794,7 @@ function BoxscoreToJSONTyped(value, ignoreDiscriminator = false) {
1109
1794
  }
1110
1795
  return {
1111
1796
  "teams": BoxscoreTeamsToJSON(value["teams"]),
1112
- "officials": value["officials"] == null ? void 0 : value["officials"].map(GameOfficialToJSON)
1797
+ "officials": value["officials"].map(GameOfficialToJSON)
1113
1798
  };
1114
1799
  }
1115
1800
 
@@ -2121,9 +2806,17 @@ var MlbApi = class extends BaseAPI {
2121
2806
  0 && (module.exports = {
2122
2807
  BASE_PATH,
2123
2808
  BaseAPI,
2809
+ BattingStatsFromJSON,
2810
+ BattingStatsFromJSONTyped,
2811
+ BattingStatsToJSON,
2812
+ BattingStatsToJSONTyped,
2124
2813
  BlobApiResponse,
2125
2814
  BoxscoreFromJSON,
2126
2815
  BoxscoreFromJSONTyped,
2816
+ BoxscoreTeamFromJSON,
2817
+ BoxscoreTeamFromJSONTyped,
2818
+ BoxscoreTeamToJSON,
2819
+ BoxscoreTeamToJSONTyped,
2127
2820
  BoxscoreTeamsFromJSON,
2128
2821
  BoxscoreTeamsFromJSONTyped,
2129
2822
  BoxscoreTeamsToJSON,
@@ -2146,6 +2839,10 @@ var MlbApi = class extends BaseAPI {
2146
2839
  DivisionToJSON,
2147
2840
  DivisionToJSONTyped,
2148
2841
  FetchError,
2842
+ FieldingStatsFromJSON,
2843
+ FieldingStatsFromJSONTyped,
2844
+ FieldingStatsToJSON,
2845
+ FieldingStatsToJSONTyped,
2149
2846
  GameFromJSON,
2150
2847
  GameFromJSONTyped,
2151
2848
  GameOfficialFromJSON,
@@ -2210,6 +2907,42 @@ var MlbApi = class extends BaseAPI {
2210
2907
  OfficialFromJSONTyped,
2211
2908
  OfficialToJSON,
2212
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,
2213
2946
  RecordFromJSON,
2214
2947
  RecordFromJSONTyped,
2215
2948
  RecordToJSON,
@@ -2243,6 +2976,10 @@ var MlbApi = class extends BaseAPI {
2243
2976
  StreakToJSONTyped,
2244
2977
  TeamFromJSON,
2245
2978
  TeamFromJSONTyped,
2979
+ TeamStatsFromJSON,
2980
+ TeamStatsFromJSONTyped,
2981
+ TeamStatsToJSON,
2982
+ TeamStatsToJSONTyped,
2246
2983
  TeamToJSON,
2247
2984
  TeamToJSONTyped,
2248
2985
  TeamsFromJSON,
@@ -2256,11 +2993,15 @@ var MlbApi = class extends BaseAPI {
2256
2993
  VenueToJSONTyped,
2257
2994
  VoidApiResponse,
2258
2995
  canConsumeForm,
2996
+ exists,
2997
+ instanceOfBattingStats,
2259
2998
  instanceOfBoxscore,
2999
+ instanceOfBoxscoreTeam,
2260
3000
  instanceOfBoxscoreTeams,
2261
3001
  instanceOfDivision,
2262
3002
  instanceOfDivisionStandings,
2263
3003
  instanceOfDivisionStandingsList,
3004
+ instanceOfFieldingStats,
2264
3005
  instanceOfGame,
2265
3006
  instanceOfGameOfficial,
2266
3007
  instanceOfGameStatus,
@@ -2276,6 +3017,15 @@ var MlbApi = class extends BaseAPI {
2276
3017
  instanceOfLinescoreTeam,
2277
3018
  instanceOfLinescoreTeams,
2278
3019
  instanceOfOfficial,
3020
+ instanceOfPitchingStats,
3021
+ instanceOfPlayer,
3022
+ instanceOfPlayerGameStatus,
3023
+ instanceOfPlayerPerson,
3024
+ instanceOfPlayerPosition,
3025
+ instanceOfPlayerSeasonStats,
3026
+ instanceOfPlayerStats,
3027
+ instanceOfPlayerStatus,
3028
+ instanceOfPosition,
2279
3029
  instanceOfRecord,
2280
3030
  instanceOfSchedule,
2281
3031
  instanceOfScheduleDay,
@@ -2284,6 +3034,7 @@ var MlbApi = class extends BaseAPI {
2284
3034
  instanceOfSport,
2285
3035
  instanceOfStreak,
2286
3036
  instanceOfTeam,
3037
+ instanceOfTeamStats,
2287
3038
  instanceOfTeams,
2288
3039
  instanceOfVenue,
2289
3040
  mapValues,