@bp1222/stats-api 0.2.5 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,6 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __defProps = Object.defineProperties;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -20,19 +17,6 @@ var __spreadValues = (a, b) => {
20
17
  return a;
21
18
  };
22
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
- var __export = (target, all) => {
24
- for (var name in all)
25
- __defProp(target, name, { get: all[name], enumerable: true });
26
- };
27
- var __copyProps = (to, from, except, desc) => {
28
- if (from && typeof from === "object" || typeof from === "function") {
29
- for (let key of __getOwnPropNames(from))
30
- if (!__hasOwnProp.call(to, key) && key !== except)
31
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
32
- }
33
- return to;
34
- };
35
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
20
  var __async = (__this, __arguments, generator) => {
37
21
  return new Promise((resolve, reject) => {
38
22
  var fulfilled = (value) => {
@@ -54,181 +38,6 @@ var __async = (__this, __arguments, generator) => {
54
38
  });
55
39
  };
56
40
 
57
- // src/index.ts
58
- var src_exports = {};
59
- __export(src_exports, {
60
- BASE_PATH: () => BASE_PATH,
61
- BaseAPI: () => BaseAPI,
62
- BlobApiResponse: () => BlobApiResponse,
63
- BoxscoreFromJSON: () => BoxscoreFromJSON,
64
- BoxscoreFromJSONTyped: () => BoxscoreFromJSONTyped,
65
- BoxscoreTeamsFromJSON: () => BoxscoreTeamsFromJSON,
66
- BoxscoreTeamsFromJSONTyped: () => BoxscoreTeamsFromJSONTyped,
67
- BoxscoreTeamsToJSON: () => BoxscoreTeamsToJSON,
68
- BoxscoreTeamsToJSONTyped: () => BoxscoreTeamsToJSONTyped,
69
- BoxscoreToJSON: () => BoxscoreToJSON,
70
- BoxscoreToJSONTyped: () => BoxscoreToJSONTyped,
71
- COLLECTION_FORMATS: () => COLLECTION_FORMATS,
72
- Configuration: () => Configuration,
73
- DefaultConfig: () => DefaultConfig,
74
- DivisionFromJSON: () => DivisionFromJSON,
75
- DivisionFromJSONTyped: () => DivisionFromJSONTyped,
76
- DivisionStandingsFromJSON: () => DivisionStandingsFromJSON,
77
- DivisionStandingsFromJSONTyped: () => DivisionStandingsFromJSONTyped,
78
- DivisionStandingsListFromJSON: () => DivisionStandingsListFromJSON,
79
- DivisionStandingsListFromJSONTyped: () => DivisionStandingsListFromJSONTyped,
80
- DivisionStandingsListToJSON: () => DivisionStandingsListToJSON,
81
- DivisionStandingsListToJSONTyped: () => DivisionStandingsListToJSONTyped,
82
- DivisionStandingsToJSON: () => DivisionStandingsToJSON,
83
- DivisionStandingsToJSONTyped: () => DivisionStandingsToJSONTyped,
84
- DivisionToJSON: () => DivisionToJSON,
85
- DivisionToJSONTyped: () => DivisionToJSONTyped,
86
- FetchError: () => FetchError,
87
- GameFromJSON: () => GameFromJSON,
88
- GameFromJSONTyped: () => GameFromJSONTyped,
89
- GameOfficialFromJSON: () => GameOfficialFromJSON,
90
- GameOfficialFromJSONTyped: () => GameOfficialFromJSONTyped,
91
- GameOfficialToJSON: () => GameOfficialToJSON,
92
- GameOfficialToJSONTyped: () => GameOfficialToJSONTyped,
93
- GameStatusCode: () => GameStatusCode,
94
- GameStatusCodeFromJSON: () => GameStatusCodeFromJSON,
95
- GameStatusCodeFromJSONTyped: () => GameStatusCodeFromJSONTyped,
96
- GameStatusCodeToJSON: () => GameStatusCodeToJSON,
97
- GameStatusCodeToJSONTyped: () => GameStatusCodeToJSONTyped,
98
- GameStatusFromJSON: () => GameStatusFromJSON,
99
- GameStatusFromJSONTyped: () => GameStatusFromJSONTyped,
100
- GameStatusToJSON: () => GameStatusToJSON,
101
- GameStatusToJSONTyped: () => GameStatusToJSONTyped,
102
- GameTeamFromJSON: () => GameTeamFromJSON,
103
- GameTeamFromJSONTyped: () => GameTeamFromJSONTyped,
104
- GameTeamToJSON: () => GameTeamToJSON,
105
- GameTeamToJSONTyped: () => GameTeamToJSONTyped,
106
- GameTeamsFromJSON: () => GameTeamsFromJSON,
107
- GameTeamsFromJSONTyped: () => GameTeamsFromJSONTyped,
108
- GameTeamsToJSON: () => GameTeamsToJSON,
109
- GameTeamsToJSONTyped: () => GameTeamsToJSONTyped,
110
- GameToJSON: () => GameToJSON,
111
- GameToJSONTyped: () => GameToJSONTyped,
112
- GameType: () => GameType,
113
- GameTypeFromJSON: () => GameTypeFromJSON,
114
- GameTypeFromJSONTyped: () => GameTypeFromJSONTyped,
115
- GameTypeToJSON: () => GameTypeToJSON,
116
- GameTypeToJSONTyped: () => GameTypeToJSONTyped,
117
- InningFromJSON: () => InningFromJSON,
118
- InningFromJSONTyped: () => InningFromJSONTyped,
119
- InningToJSON: () => InningToJSON,
120
- InningToJSONTyped: () => InningToJSONTyped,
121
- JSONApiResponse: () => JSONApiResponse,
122
- LeagueDatesFromJSON: () => LeagueDatesFromJSON,
123
- LeagueDatesFromJSONTyped: () => LeagueDatesFromJSONTyped,
124
- LeagueDatesToJSON: () => LeagueDatesToJSON,
125
- LeagueDatesToJSONTyped: () => LeagueDatesToJSONTyped,
126
- LeagueFromJSON: () => LeagueFromJSON,
127
- LeagueFromJSONTyped: () => LeagueFromJSONTyped,
128
- LeagueRecordFromJSON: () => LeagueRecordFromJSON,
129
- LeagueRecordFromJSONTyped: () => LeagueRecordFromJSONTyped,
130
- LeagueRecordToJSON: () => LeagueRecordToJSON,
131
- LeagueRecordToJSONTyped: () => LeagueRecordToJSONTyped,
132
- LeagueToJSON: () => LeagueToJSON,
133
- LeagueToJSONTyped: () => LeagueToJSONTyped,
134
- LinescoreFromJSON: () => LinescoreFromJSON,
135
- LinescoreFromJSONTyped: () => LinescoreFromJSONTyped,
136
- LinescoreTeamFromJSON: () => LinescoreTeamFromJSON,
137
- LinescoreTeamFromJSONTyped: () => LinescoreTeamFromJSONTyped,
138
- LinescoreTeamToJSON: () => LinescoreTeamToJSON,
139
- LinescoreTeamToJSONTyped: () => LinescoreTeamToJSONTyped,
140
- LinescoreTeamsFromJSON: () => LinescoreTeamsFromJSON,
141
- LinescoreTeamsFromJSONTyped: () => LinescoreTeamsFromJSONTyped,
142
- LinescoreTeamsToJSON: () => LinescoreTeamsToJSON,
143
- LinescoreTeamsToJSONTyped: () => LinescoreTeamsToJSONTyped,
144
- LinescoreToJSON: () => LinescoreToJSON,
145
- LinescoreToJSONTyped: () => LinescoreToJSONTyped,
146
- MlbApi: () => MlbApi,
147
- OfficialFromJSON: () => OfficialFromJSON,
148
- OfficialFromJSONTyped: () => OfficialFromJSONTyped,
149
- OfficialToJSON: () => OfficialToJSON,
150
- OfficialToJSONTyped: () => OfficialToJSONTyped,
151
- RecordFromJSON: () => RecordFromJSON,
152
- RecordFromJSONTyped: () => RecordFromJSONTyped,
153
- RecordToJSON: () => RecordToJSON,
154
- RecordToJSONTyped: () => RecordToJSONTyped,
155
- RequiredError: () => RequiredError,
156
- ResponseError: () => ResponseError,
157
- ScheduleDayFromJSON: () => ScheduleDayFromJSON,
158
- ScheduleDayFromJSONTyped: () => ScheduleDayFromJSONTyped,
159
- ScheduleDayToJSON: () => ScheduleDayToJSON,
160
- ScheduleDayToJSONTyped: () => ScheduleDayToJSONTyped,
161
- ScheduleFromJSON: () => ScheduleFromJSON,
162
- ScheduleFromJSONTyped: () => ScheduleFromJSONTyped,
163
- ScheduleToJSON: () => ScheduleToJSON,
164
- ScheduleToJSONTyped: () => ScheduleToJSONTyped,
165
- SeasonFromJSON: () => SeasonFromJSON,
166
- SeasonFromJSONTyped: () => SeasonFromJSONTyped,
167
- SeasonToJSON: () => SeasonToJSON,
168
- SeasonToJSONTyped: () => SeasonToJSONTyped,
169
- SeasonsFromJSON: () => SeasonsFromJSON,
170
- SeasonsFromJSONTyped: () => SeasonsFromJSONTyped,
171
- SeasonsToJSON: () => SeasonsToJSON,
172
- SeasonsToJSONTyped: () => SeasonsToJSONTyped,
173
- SportFromJSON: () => SportFromJSON,
174
- SportFromJSONTyped: () => SportFromJSONTyped,
175
- SportToJSON: () => SportToJSON,
176
- SportToJSONTyped: () => SportToJSONTyped,
177
- StreakFromJSON: () => StreakFromJSON,
178
- StreakFromJSONTyped: () => StreakFromJSONTyped,
179
- StreakStreakTypeEnum: () => StreakStreakTypeEnum,
180
- StreakToJSON: () => StreakToJSON,
181
- StreakToJSONTyped: () => StreakToJSONTyped,
182
- TeamFromJSON: () => TeamFromJSON,
183
- TeamFromJSONTyped: () => TeamFromJSONTyped2,
184
- TeamToJSON: () => TeamToJSON,
185
- TeamToJSONTyped: () => TeamToJSONTyped2,
186
- TeamsFromJSON: () => TeamsFromJSON,
187
- TeamsFromJSONTyped: () => TeamsFromJSONTyped,
188
- TeamsToJSON: () => TeamsToJSON,
189
- TeamsToJSONTyped: () => TeamsToJSONTyped,
190
- TextApiResponse: () => TextApiResponse,
191
- VenueFromJSON: () => VenueFromJSON,
192
- VenueFromJSONTyped: () => VenueFromJSONTyped,
193
- VenueToJSON: () => VenueToJSON,
194
- VenueToJSONTyped: () => VenueToJSONTyped,
195
- VoidApiResponse: () => VoidApiResponse,
196
- canConsumeForm: () => canConsumeForm,
197
- instanceOfBoxscore: () => instanceOfBoxscore,
198
- instanceOfBoxscoreTeams: () => instanceOfBoxscoreTeams,
199
- instanceOfDivision: () => instanceOfDivision,
200
- instanceOfDivisionStandings: () => instanceOfDivisionStandings,
201
- instanceOfDivisionStandingsList: () => instanceOfDivisionStandingsList,
202
- instanceOfGame: () => instanceOfGame,
203
- instanceOfGameOfficial: () => instanceOfGameOfficial,
204
- instanceOfGameStatus: () => instanceOfGameStatus,
205
- instanceOfGameStatusCode: () => instanceOfGameStatusCode,
206
- instanceOfGameTeam: () => instanceOfGameTeam,
207
- instanceOfGameTeams: () => instanceOfGameTeams,
208
- instanceOfGameType: () => instanceOfGameType,
209
- instanceOfInning: () => instanceOfInning,
210
- instanceOfLeague: () => instanceOfLeague,
211
- instanceOfLeagueDates: () => instanceOfLeagueDates,
212
- instanceOfLeagueRecord: () => instanceOfLeagueRecord,
213
- instanceOfLinescore: () => instanceOfLinescore,
214
- instanceOfLinescoreTeam: () => instanceOfLinescoreTeam,
215
- instanceOfLinescoreTeams: () => instanceOfLinescoreTeams,
216
- instanceOfOfficial: () => instanceOfOfficial,
217
- instanceOfRecord: () => instanceOfRecord,
218
- instanceOfSchedule: () => instanceOfSchedule,
219
- instanceOfScheduleDay: () => instanceOfScheduleDay,
220
- instanceOfSeason: () => instanceOfSeason,
221
- instanceOfSeasons: () => instanceOfSeasons,
222
- instanceOfSport: () => instanceOfSport,
223
- instanceOfStreak: () => instanceOfStreak,
224
- instanceOfTeam: () => instanceOfTeam,
225
- instanceOfTeams: () => instanceOfTeams,
226
- instanceOfVenue: () => instanceOfVenue,
227
- mapValues: () => mapValues,
228
- querystring: () => querystring
229
- });
230
- module.exports = __toCommonJS(src_exports);
231
-
232
41
  // src/runtime.ts
233
42
  var BASE_PATH = "https://statsapi.mlb.com/api".replace(/\/+$/, "");
234
43
  var Configuration = class {
@@ -470,6 +279,10 @@ function querystringSingleKey(key, value, keyPrefix = "") {
470
279
  }
471
280
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
472
281
  }
282
+ function exists(json, key) {
283
+ const value = json[key];
284
+ return value !== null && value !== void 0;
285
+ }
473
286
  function mapValues(data, fn) {
474
287
  return Object.keys(data).reduce(
475
288
  (acc, key) => __spreadProps(__spreadValues({}, acc), { [key]: fn(data[key]) }),
@@ -526,6 +339,97 @@ var TextApiResponse = class {
526
339
  }
527
340
  };
528
341
 
342
+ // src/models/BattingStats.ts
343
+ function instanceOfBattingStats(value) {
344
+ return true;
345
+ }
346
+ function BattingStatsFromJSON(json) {
347
+ return BattingStatsFromJSONTyped(json, false);
348
+ }
349
+ function BattingStatsFromJSONTyped(json, ignoreDiscriminator) {
350
+ if (json == null) {
351
+ return json;
352
+ }
353
+ return {
354
+ "flyOuts": json["flyOuts"] == null ? void 0 : json["flyOuts"],
355
+ "groundOuts": json["groundOuts"] == null ? void 0 : json["groundOuts"],
356
+ "airOuts": json["airOuts"] == null ? void 0 : json["airOuts"],
357
+ "runs": json["runs"] == null ? void 0 : json["runs"],
358
+ "doubles": json["doubles"] == null ? void 0 : json["doubles"],
359
+ "triples": json["triples"] == null ? void 0 : json["triples"],
360
+ "homeRuns": json["homeRuns"] == null ? void 0 : json["homeRuns"],
361
+ "strikeOuts": json["strikeOuts"] == null ? void 0 : json["strikeOuts"],
362
+ "baseOnBalls": json["baseOnBalls"] == null ? void 0 : json["baseOnBalls"],
363
+ "intentionalWalks": json["intentionalWalks"] == null ? void 0 : json["intentionalWalks"],
364
+ "hits": json["hits"] == null ? void 0 : json["hits"],
365
+ "hitByPitch": json["hitByPitch"] == null ? void 0 : json["hitByPitch"],
366
+ "avg": json["avg"] == null ? void 0 : json["avg"],
367
+ "atBats": json["atBats"] == null ? void 0 : json["atBats"],
368
+ "obp": json["obp"] == null ? void 0 : json["obp"],
369
+ "slg": json["slg"] == null ? void 0 : json["slg"],
370
+ "ops": json["ops"] == null ? void 0 : json["ops"],
371
+ "caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
372
+ "stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
373
+ "stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
374
+ "groundIntoDoublePlay": json["groundIntoDoublePlay"] == null ? void 0 : json["groundIntoDoublePlay"],
375
+ "groundIntoTriplePlay": json["groundIntoTriplePlay"] == null ? void 0 : json["groundIntoTriplePlay"],
376
+ "plateAppearances": json["plateAppearances"] == null ? void 0 : json["plateAppearances"],
377
+ "totalBases": json["totalBases"] == null ? void 0 : json["totalBases"],
378
+ "rbi": json["rbi"] == null ? void 0 : json["rbi"],
379
+ "leftOnBase": json["leftOnBase"] == null ? void 0 : json["leftOnBase"],
380
+ "sacBunts": json["sacBunts"] == null ? void 0 : json["sacBunts"],
381
+ "sacFlies": json["sacFlies"] == null ? void 0 : json["sacFlies"],
382
+ "catchersInterference": json["catchersInterference"] == null ? void 0 : json["catchersInterference"],
383
+ "pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"],
384
+ "atBatsPerHomeRun": json["atBatsPerHomeRun"] == null ? void 0 : json["atBatsPerHomeRun"],
385
+ "popOuts": json["popOuts"] == null ? void 0 : json["popOuts"],
386
+ "lineOuts": json["lineOuts"] == null ? void 0 : json["lineOuts"]
387
+ };
388
+ }
389
+ function BattingStatsToJSON(json) {
390
+ return BattingStatsToJSONTyped(json, false);
391
+ }
392
+ function BattingStatsToJSONTyped(value, ignoreDiscriminator = false) {
393
+ if (value == null) {
394
+ return value;
395
+ }
396
+ return {
397
+ "flyOuts": value["flyOuts"],
398
+ "groundOuts": value["groundOuts"],
399
+ "airOuts": value["airOuts"],
400
+ "runs": value["runs"],
401
+ "doubles": value["doubles"],
402
+ "triples": value["triples"],
403
+ "homeRuns": value["homeRuns"],
404
+ "strikeOuts": value["strikeOuts"],
405
+ "baseOnBalls": value["baseOnBalls"],
406
+ "intentionalWalks": value["intentionalWalks"],
407
+ "hits": value["hits"],
408
+ "hitByPitch": value["hitByPitch"],
409
+ "avg": value["avg"],
410
+ "atBats": value["atBats"],
411
+ "obp": value["obp"],
412
+ "slg": value["slg"],
413
+ "ops": value["ops"],
414
+ "caughtStealing": value["caughtStealing"],
415
+ "stolenBases": value["stolenBases"],
416
+ "stolenBasePercentage": value["stolenBasePercentage"],
417
+ "groundIntoDoublePlay": value["groundIntoDoublePlay"],
418
+ "groundIntoTriplePlay": value["groundIntoTriplePlay"],
419
+ "plateAppearances": value["plateAppearances"],
420
+ "totalBases": value["totalBases"],
421
+ "rbi": value["rbi"],
422
+ "leftOnBase": value["leftOnBase"],
423
+ "sacBunts": value["sacBunts"],
424
+ "sacFlies": value["sacFlies"],
425
+ "catchersInterference": value["catchersInterference"],
426
+ "pickoffs": value["pickoffs"],
427
+ "atBatsPerHomeRun": value["atBatsPerHomeRun"],
428
+ "popOuts": value["popOuts"],
429
+ "lineOuts": value["lineOuts"]
430
+ };
431
+ }
432
+
529
433
  // src/models/Official.ts
530
434
  function instanceOfOfficial(value) {
531
435
  return true;
@@ -586,6 +490,458 @@ function GameOfficialToJSONTyped(value, ignoreDiscriminator = false) {
586
490
  };
587
491
  }
588
492
 
493
+ // src/models/FieldingStats.ts
494
+ function instanceOfFieldingStats(value) {
495
+ return true;
496
+ }
497
+ function FieldingStatsFromJSON(json) {
498
+ return FieldingStatsFromJSONTyped(json, false);
499
+ }
500
+ function FieldingStatsFromJSONTyped(json, ignoreDiscriminator) {
501
+ if (json == null) {
502
+ return json;
503
+ }
504
+ return {
505
+ "caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
506
+ "stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
507
+ "stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
508
+ "assists": json["assists"] == null ? void 0 : json["assists"],
509
+ "putOuts": json["putOuts"] == null ? void 0 : json["putOuts"],
510
+ "errors": json["errors"] == null ? void 0 : json["errors"],
511
+ "chances": json["chances"] == null ? void 0 : json["chances"],
512
+ "passedBall": json["passedBall"] == null ? void 0 : json["passedBall"],
513
+ "pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"]
514
+ };
515
+ }
516
+ function FieldingStatsToJSON(json) {
517
+ return FieldingStatsToJSONTyped(json, false);
518
+ }
519
+ function FieldingStatsToJSONTyped(value, ignoreDiscriminator = false) {
520
+ if (value == null) {
521
+ return value;
522
+ }
523
+ return {
524
+ "caughtStealing": value["caughtStealing"],
525
+ "stolenBases": value["stolenBases"],
526
+ "stolenBasePercentage": value["stolenBasePercentage"],
527
+ "assists": value["assists"],
528
+ "putOuts": value["putOuts"],
529
+ "errors": value["errors"],
530
+ "chances": value["chances"],
531
+ "passedBall": value["passedBall"],
532
+ "pickoffs": value["pickoffs"]
533
+ };
534
+ }
535
+
536
+ // src/models/PitchingStats.ts
537
+ function instanceOfPitchingStats(value) {
538
+ return true;
539
+ }
540
+ function PitchingStatsFromJSON(json) {
541
+ return PitchingStatsFromJSONTyped(json, false);
542
+ }
543
+ function PitchingStatsFromJSONTyped(json, ignoreDiscriminator) {
544
+ if (json == null) {
545
+ return json;
546
+ }
547
+ return {
548
+ "flyOuts": json["flyOuts"] == null ? void 0 : json["flyOuts"],
549
+ "groundOuts": json["groundOuts"] == null ? void 0 : json["groundOuts"],
550
+ "airOuts": json["airOuts"] == null ? void 0 : json["airOuts"],
551
+ "runs": json["runs"] == null ? void 0 : json["runs"],
552
+ "doubles": json["doubles"] == null ? void 0 : json["doubles"],
553
+ "triples": json["triples"] == null ? void 0 : json["triples"],
554
+ "homeRuns": json["homeRuns"] == null ? void 0 : json["homeRuns"],
555
+ "strikeOuts": json["strikeOuts"] == null ? void 0 : json["strikeOuts"],
556
+ "baseOnBalls": json["baseOnBalls"] == null ? void 0 : json["baseOnBalls"],
557
+ "intentionalWalks": json["intentionalWalks"] == null ? void 0 : json["intentionalWalks"],
558
+ "hits": json["hits"] == null ? void 0 : json["hits"],
559
+ "hitByPitch": json["hitByPitch"] == null ? void 0 : json["hitByPitch"],
560
+ "atBats": json["atBats"] == null ? void 0 : json["atBats"],
561
+ "obp": json["obp"] == null ? void 0 : json["obp"],
562
+ "caughtStealing": json["caughtStealing"] == null ? void 0 : json["caughtStealing"],
563
+ "stolenBases": json["stolenBases"] == null ? void 0 : json["stolenBases"],
564
+ "stolenBasePercentage": json["stolenBasePercentage"] == null ? void 0 : json["stolenBasePercentage"],
565
+ "numberOfPitches": json["numberOfPitches"] == null ? void 0 : json["numberOfPitches"],
566
+ "era": json["era"] == null ? void 0 : json["era"],
567
+ "inningsPitched": json["inningsPitched"] == null ? void 0 : json["inningsPitched"],
568
+ "saveOpportunities": json["saveOpportunities"] == null ? void 0 : json["saveOpportunities"],
569
+ "earnedRuns": json["earnedRuns"] == null ? void 0 : json["earnedRuns"],
570
+ "whip": json["whip"] == null ? void 0 : json["whip"],
571
+ "battersFaced": json["battersFaced"] == null ? void 0 : json["battersFaced"],
572
+ "outs": json["outs"] == null ? void 0 : json["outs"],
573
+ "completeGames": json["completeGames"] == null ? void 0 : json["completeGames"],
574
+ "shutouts": json["shutouts"] == null ? void 0 : json["shutouts"],
575
+ "pitchesThrown": json["pitchesThrown"] == null ? void 0 : json["pitchesThrown"],
576
+ "balls": json["balls"] == null ? void 0 : json["balls"],
577
+ "strikes": json["strikes"] == null ? void 0 : json["strikes"],
578
+ "strikePercentage": json["strikePercentage"] == null ? void 0 : json["strikePercentage"],
579
+ "hitBatsmen": json["hitBatsmen"] == null ? void 0 : json["hitBatsmen"],
580
+ "balks": json["balks"] == null ? void 0 : json["balks"],
581
+ "wildPitches": json["wildPitches"] == null ? void 0 : json["wildPitches"],
582
+ "pickoffs": json["pickoffs"] == null ? void 0 : json["pickoffs"],
583
+ "groundOutsToAirouts": json["groundOutsToAirouts"] == null ? void 0 : json["groundOutsToAirouts"],
584
+ "rbi": json["rbi"] == null ? void 0 : json["rbi"],
585
+ "pitchesPerInning": json["pitchesPerInning"] == null ? void 0 : json["pitchesPerInning"],
586
+ "runsScoredPer9": json["runsScoredPer9"] == null ? void 0 : json["runsScoredPer9"],
587
+ "homeRunsPer9": json["homeRunsPer9"] == null ? void 0 : json["homeRunsPer9"],
588
+ "inheritedRunners": json["inheritedRunners"] == null ? void 0 : json["inheritedRunners"],
589
+ "inheritedRunnersScored": json["inheritedRunnersScored"] == null ? void 0 : json["inheritedRunnersScored"],
590
+ "catchersInterference": json["catchersInterference"] == null ? void 0 : json["catchersInterference"],
591
+ "sacBunts": json["sacBunts"] == null ? void 0 : json["sacBunts"],
592
+ "sacFlies": json["sacFlies"] == null ? void 0 : json["sacFlies"],
593
+ "passedBall": json["passedBall"] == null ? void 0 : json["passedBall"],
594
+ "popOuts": json["popOuts"] == null ? void 0 : json["popOuts"],
595
+ "lineOuts": json["lineOuts"] == null ? void 0 : json["lineOuts"]
596
+ };
597
+ }
598
+ function PitchingStatsToJSON(json) {
599
+ return PitchingStatsToJSONTyped(json, false);
600
+ }
601
+ function PitchingStatsToJSONTyped(value, ignoreDiscriminator = false) {
602
+ if (value == null) {
603
+ return value;
604
+ }
605
+ return {
606
+ "flyOuts": value["flyOuts"],
607
+ "groundOuts": value["groundOuts"],
608
+ "airOuts": value["airOuts"],
609
+ "runs": value["runs"],
610
+ "doubles": value["doubles"],
611
+ "triples": value["triples"],
612
+ "homeRuns": value["homeRuns"],
613
+ "strikeOuts": value["strikeOuts"],
614
+ "baseOnBalls": value["baseOnBalls"],
615
+ "intentionalWalks": value["intentionalWalks"],
616
+ "hits": value["hits"],
617
+ "hitByPitch": value["hitByPitch"],
618
+ "atBats": value["atBats"],
619
+ "obp": value["obp"],
620
+ "caughtStealing": value["caughtStealing"],
621
+ "stolenBases": value["stolenBases"],
622
+ "stolenBasePercentage": value["stolenBasePercentage"],
623
+ "numberOfPitches": value["numberOfPitches"],
624
+ "era": value["era"],
625
+ "inningsPitched": value["inningsPitched"],
626
+ "saveOpportunities": value["saveOpportunities"],
627
+ "earnedRuns": value["earnedRuns"],
628
+ "whip": value["whip"],
629
+ "battersFaced": value["battersFaced"],
630
+ "outs": value["outs"],
631
+ "completeGames": value["completeGames"],
632
+ "shutouts": value["shutouts"],
633
+ "pitchesThrown": value["pitchesThrown"],
634
+ "balls": value["balls"],
635
+ "strikes": value["strikes"],
636
+ "strikePercentage": value["strikePercentage"],
637
+ "hitBatsmen": value["hitBatsmen"],
638
+ "balks": value["balks"],
639
+ "wildPitches": value["wildPitches"],
640
+ "pickoffs": value["pickoffs"],
641
+ "groundOutsToAirouts": value["groundOutsToAirouts"],
642
+ "rbi": value["rbi"],
643
+ "pitchesPerInning": value["pitchesPerInning"],
644
+ "runsScoredPer9": value["runsScoredPer9"],
645
+ "homeRunsPer9": value["homeRunsPer9"],
646
+ "inheritedRunners": value["inheritedRunners"],
647
+ "inheritedRunnersScored": value["inheritedRunnersScored"],
648
+ "catchersInterference": value["catchersInterference"],
649
+ "sacBunts": value["sacBunts"],
650
+ "sacFlies": value["sacFlies"],
651
+ "passedBall": value["passedBall"],
652
+ "popOuts": value["popOuts"],
653
+ "lineOuts": value["lineOuts"]
654
+ };
655
+ }
656
+
657
+ // src/models/PlayerSeasonStats.ts
658
+ function instanceOfPlayerSeasonStats(value) {
659
+ if (!("batting" in value) || value["batting"] === void 0) return false;
660
+ if (!("pitching" in value) || value["pitching"] === void 0) return false;
661
+ if (!("fielding" in value) || value["fielding"] === void 0) return false;
662
+ return true;
663
+ }
664
+ function PlayerSeasonStatsFromJSON(json) {
665
+ return PlayerSeasonStatsFromJSONTyped(json, false);
666
+ }
667
+ function PlayerSeasonStatsFromJSONTyped(json, ignoreDiscriminator) {
668
+ if (json == null) {
669
+ return json;
670
+ }
671
+ return {
672
+ "batting": BattingStatsFromJSON(json["batting"]),
673
+ "pitching": PitchingStatsFromJSON(json["pitching"]),
674
+ "fielding": FieldingStatsFromJSON(json["fielding"])
675
+ };
676
+ }
677
+ function PlayerSeasonStatsToJSON(json) {
678
+ return PlayerSeasonStatsToJSONTyped(json, false);
679
+ }
680
+ function PlayerSeasonStatsToJSONTyped(value, ignoreDiscriminator = false) {
681
+ if (value == null) {
682
+ return value;
683
+ }
684
+ return {
685
+ "batting": BattingStatsToJSON(value["batting"]),
686
+ "pitching": PitchingStatsToJSON(value["pitching"]),
687
+ "fielding": FieldingStatsToJSON(value["fielding"])
688
+ };
689
+ }
690
+
691
+ // src/models/PlayerGameStatus.ts
692
+ function instanceOfPlayerGameStatus(value) {
693
+ return true;
694
+ }
695
+ function PlayerGameStatusFromJSON(json) {
696
+ return PlayerGameStatusFromJSONTyped(json, false);
697
+ }
698
+ function PlayerGameStatusFromJSONTyped(json, ignoreDiscriminator) {
699
+ if (json == null) {
700
+ return json;
701
+ }
702
+ return {
703
+ "isCurrentBatter": json["isCurrentBatter"] == null ? void 0 : json["isCurrentBatter"],
704
+ "isCurrentPitcher": json["isCurrentPitcher"] == null ? void 0 : json["isCurrentPitcher"],
705
+ "isOnBench": json["isOnBench"] == null ? void 0 : json["isOnBench"],
706
+ "isSubstitute": json["isSubstitute"] == null ? void 0 : json["isSubstitute"]
707
+ };
708
+ }
709
+ function PlayerGameStatusToJSON(json) {
710
+ return PlayerGameStatusToJSONTyped(json, false);
711
+ }
712
+ function PlayerGameStatusToJSONTyped(value, ignoreDiscriminator = false) {
713
+ if (value == null) {
714
+ return value;
715
+ }
716
+ return {
717
+ "isCurrentBatter": value["isCurrentBatter"],
718
+ "isCurrentPitcher": value["isCurrentPitcher"],
719
+ "isOnBench": value["isOnBench"],
720
+ "isSubstitute": value["isSubstitute"]
721
+ };
722
+ }
723
+
724
+ // src/models/Position.ts
725
+ function instanceOfPosition(value) {
726
+ return true;
727
+ }
728
+ function PositionFromJSON(json) {
729
+ return PositionFromJSONTyped(json, false);
730
+ }
731
+ function PositionFromJSONTyped(json, ignoreDiscriminator) {
732
+ if (json == null) {
733
+ return json;
734
+ }
735
+ return {
736
+ "code": json["code"] == null ? void 0 : json["code"],
737
+ "name": json["name"] == null ? void 0 : json["name"],
738
+ "type": json["type"] == null ? void 0 : json["type"],
739
+ "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"]
740
+ };
741
+ }
742
+ function PositionToJSON(json) {
743
+ return PositionToJSONTyped(json, false);
744
+ }
745
+ function PositionToJSONTyped(value, ignoreDiscriminator = false) {
746
+ if (value == null) {
747
+ return value;
748
+ }
749
+ return {
750
+ "code": value["code"],
751
+ "name": value["name"],
752
+ "type": value["type"],
753
+ "abbreviation": value["abbreviation"]
754
+ };
755
+ }
756
+
757
+ // src/models/PlayerPerson.ts
758
+ function instanceOfPlayerPerson(value) {
759
+ if (!("id" in value) || value["id"] === void 0) return false;
760
+ if (!("fullName" in value) || value["fullName"] === void 0) return false;
761
+ if (!("link" in value) || value["link"] === void 0) return false;
762
+ if (!("boxscoreName" in value) || value["boxscoreName"] === void 0) return false;
763
+ return true;
764
+ }
765
+ function PlayerPersonFromJSON(json) {
766
+ return PlayerPersonFromJSONTyped(json, false);
767
+ }
768
+ function PlayerPersonFromJSONTyped(json, ignoreDiscriminator) {
769
+ if (json == null) {
770
+ return json;
771
+ }
772
+ return {
773
+ "id": json["id"],
774
+ "fullName": json["fullName"],
775
+ "link": json["link"],
776
+ "boxscoreName": json["boxscoreName"]
777
+ };
778
+ }
779
+ function PlayerPersonToJSON(json) {
780
+ return PlayerPersonToJSONTyped(json, false);
781
+ }
782
+ function PlayerPersonToJSONTyped(value, ignoreDiscriminator = false) {
783
+ if (value == null) {
784
+ return value;
785
+ }
786
+ return {
787
+ "id": value["id"],
788
+ "fullName": value["fullName"],
789
+ "link": value["link"],
790
+ "boxscoreName": value["boxscoreName"]
791
+ };
792
+ }
793
+
794
+ // src/models/PlayerPosition.ts
795
+ function instanceOfPlayerPosition(value) {
796
+ return true;
797
+ }
798
+ function PlayerPositionFromJSON(json) {
799
+ return PlayerPositionFromJSONTyped(json, false);
800
+ }
801
+ function PlayerPositionFromJSONTyped(json, ignoreDiscriminator) {
802
+ if (json == null) {
803
+ return json;
804
+ }
805
+ return {
806
+ "code": json["code"] == null ? void 0 : json["code"],
807
+ "name": json["name"] == null ? void 0 : json["name"],
808
+ "type": json["type"] == null ? void 0 : json["type"],
809
+ "abbreviation": json["abbreviation"] == null ? void 0 : json["abbreviation"]
810
+ };
811
+ }
812
+ function PlayerPositionToJSON(json) {
813
+ return PlayerPositionToJSONTyped(json, false);
814
+ }
815
+ function PlayerPositionToJSONTyped(value, ignoreDiscriminator = false) {
816
+ if (value == null) {
817
+ return value;
818
+ }
819
+ return {
820
+ "code": value["code"],
821
+ "name": value["name"],
822
+ "type": value["type"],
823
+ "abbreviation": value["abbreviation"]
824
+ };
825
+ }
826
+
827
+ // src/models/PlayerStatus.ts
828
+ function instanceOfPlayerStatus(value) {
829
+ return true;
830
+ }
831
+ function PlayerStatusFromJSON(json) {
832
+ return PlayerStatusFromJSONTyped(json, false);
833
+ }
834
+ function PlayerStatusFromJSONTyped(json, ignoreDiscriminator) {
835
+ if (json == null) {
836
+ return json;
837
+ }
838
+ return {
839
+ "code": json["code"] == null ? void 0 : json["code"],
840
+ "description": json["description"] == null ? void 0 : json["description"]
841
+ };
842
+ }
843
+ function PlayerStatusToJSON(json) {
844
+ return PlayerStatusToJSONTyped(json, false);
845
+ }
846
+ function PlayerStatusToJSONTyped(value, ignoreDiscriminator = false) {
847
+ if (value == null) {
848
+ return value;
849
+ }
850
+ return {
851
+ "code": value["code"],
852
+ "description": value["description"]
853
+ };
854
+ }
855
+
856
+ // src/models/PlayerStats.ts
857
+ function instanceOfPlayerStats(value) {
858
+ if (!("batting" in value) || value["batting"] === void 0) return false;
859
+ if (!("pitching" in value) || value["pitching"] === void 0) return false;
860
+ if (!("fielding" in value) || value["fielding"] === void 0) return false;
861
+ return true;
862
+ }
863
+ function PlayerStatsFromJSON(json) {
864
+ return PlayerStatsFromJSONTyped(json, false);
865
+ }
866
+ function PlayerStatsFromJSONTyped(json, ignoreDiscriminator) {
867
+ if (json == null) {
868
+ return json;
869
+ }
870
+ return {
871
+ "batting": BattingStatsFromJSON(json["batting"]),
872
+ "pitching": PitchingStatsFromJSON(json["pitching"]),
873
+ "fielding": FieldingStatsFromJSON(json["fielding"])
874
+ };
875
+ }
876
+ function PlayerStatsToJSON(json) {
877
+ return PlayerStatsToJSONTyped(json, false);
878
+ }
879
+ function PlayerStatsToJSONTyped(value, ignoreDiscriminator = false) {
880
+ if (value == null) {
881
+ return value;
882
+ }
883
+ return {
884
+ "batting": BattingStatsToJSON(value["batting"]),
885
+ "pitching": PitchingStatsToJSON(value["pitching"]),
886
+ "fielding": FieldingStatsToJSON(value["fielding"])
887
+ };
888
+ }
889
+
890
+ // src/models/Player.ts
891
+ function instanceOfPlayer(value) {
892
+ if (!("person" in value) || value["person"] === void 0) return false;
893
+ if (!("position" in value) || value["position"] === void 0) return false;
894
+ if (!("stats" in value) || value["stats"] === void 0) return false;
895
+ if (!("seasonStats" in value) || value["seasonStats"] === void 0) return false;
896
+ return true;
897
+ }
898
+ function PlayerFromJSON(json) {
899
+ return PlayerFromJSONTyped(json, false);
900
+ }
901
+ function PlayerFromJSONTyped(json, ignoreDiscriminator) {
902
+ if (json == null) {
903
+ return json;
904
+ }
905
+ return {
906
+ "person": PlayerPersonFromJSON(json["person"]),
907
+ "jerseyNumber": json["jerseyNumber"] == null ? void 0 : json["jerseyNumber"],
908
+ "position": PlayerPositionFromJSON(json["position"]),
909
+ "status": json["status"] == null ? void 0 : PlayerStatusFromJSON(json["status"]),
910
+ "parentTeamId": json["parentTeamId"] == null ? void 0 : json["parentTeamId"],
911
+ "battingOrder": json["battingOrder"] == null ? void 0 : json["battingOrder"],
912
+ "stats": PlayerStatsFromJSON(json["stats"]),
913
+ "seasonStats": PlayerSeasonStatsFromJSON(json["seasonStats"]),
914
+ "gameStatus": json["gameStatus"] == null ? void 0 : PlayerGameStatusFromJSON(json["gameStatus"]),
915
+ "allPositions": json["allPositions"] == null ? void 0 : json["allPositions"].map(PositionFromJSON),
916
+ "type": json["type"] == null ? void 0 : json["type"],
917
+ "gameScore": json["gameScore"] == null ? void 0 : json["gameScore"],
918
+ "hittingGameScore": json["hittingGameScore"] == null ? void 0 : json["hittingGameScore"]
919
+ };
920
+ }
921
+ function PlayerToJSON(json) {
922
+ return PlayerToJSONTyped(json, false);
923
+ }
924
+ function PlayerToJSONTyped(value, ignoreDiscriminator = false) {
925
+ if (value == null) {
926
+ return value;
927
+ }
928
+ return {
929
+ "person": PlayerPersonToJSON(value["person"]),
930
+ "jerseyNumber": value["jerseyNumber"],
931
+ "position": PlayerPositionToJSON(value["position"]),
932
+ "status": PlayerStatusToJSON(value["status"]),
933
+ "parentTeamId": value["parentTeamId"],
934
+ "battingOrder": value["battingOrder"],
935
+ "stats": PlayerStatsToJSON(value["stats"]),
936
+ "seasonStats": PlayerSeasonStatsToJSON(value["seasonStats"]),
937
+ "gameStatus": PlayerGameStatusToJSON(value["gameStatus"]),
938
+ "allPositions": value["allPositions"] == null ? void 0 : value["allPositions"].map(PositionToJSON),
939
+ "type": value["type"],
940
+ "gameScore": value["gameScore"],
941
+ "hittingGameScore": value["hittingGameScore"]
942
+ };
943
+ }
944
+
589
945
  // src/models/LeagueDates.ts
590
946
  function instanceOfLeagueDates(value) {
591
947
  return true;
@@ -1055,8 +1411,78 @@ function TeamToJSONTyped2(value, ignoreDiscriminator = false) {
1055
1411
  };
1056
1412
  }
1057
1413
 
1414
+ // src/models/TeamStats.ts
1415
+ function instanceOfTeamStats(value) {
1416
+ if (!("batting" in value) || value["batting"] === void 0) return false;
1417
+ if (!("pitching" in value) || value["pitching"] === void 0) return false;
1418
+ if (!("fielding" in value) || value["fielding"] === void 0) return false;
1419
+ return true;
1420
+ }
1421
+ function TeamStatsFromJSON(json) {
1422
+ return TeamStatsFromJSONTyped(json, false);
1423
+ }
1424
+ function TeamStatsFromJSONTyped(json, ignoreDiscriminator) {
1425
+ if (json == null) {
1426
+ return json;
1427
+ }
1428
+ return {
1429
+ "batting": BattingStatsFromJSON(json["batting"]),
1430
+ "pitching": PitchingStatsFromJSON(json["pitching"]),
1431
+ "fielding": FieldingStatsFromJSON(json["fielding"])
1432
+ };
1433
+ }
1434
+ function TeamStatsToJSON(json) {
1435
+ return TeamStatsToJSONTyped(json, false);
1436
+ }
1437
+ function TeamStatsToJSONTyped(value, ignoreDiscriminator = false) {
1438
+ if (value == null) {
1439
+ return value;
1440
+ }
1441
+ return {
1442
+ "batting": BattingStatsToJSON(value["batting"]),
1443
+ "pitching": PitchingStatsToJSON(value["pitching"]),
1444
+ "fielding": FieldingStatsToJSON(value["fielding"])
1445
+ };
1446
+ }
1447
+
1448
+ // src/models/BoxscoreTeam.ts
1449
+ function instanceOfBoxscoreTeam(value) {
1450
+ if (!("team" in value) || value["team"] === void 0) return false;
1451
+ if (!("teamStats" in value) || value["teamStats"] === void 0) return false;
1452
+ if (!("players" in value) || value["players"] === void 0) return false;
1453
+ return true;
1454
+ }
1455
+ function BoxscoreTeamFromJSON(json) {
1456
+ return BoxscoreTeamFromJSONTyped(json, false);
1457
+ }
1458
+ function BoxscoreTeamFromJSONTyped(json, ignoreDiscriminator) {
1459
+ if (json == null) {
1460
+ return json;
1461
+ }
1462
+ return {
1463
+ "team": TeamFromJSON(json["team"]),
1464
+ "teamStats": TeamStatsFromJSON(json["teamStats"]),
1465
+ "players": mapValues(json["players"], PlayerFromJSON)
1466
+ };
1467
+ }
1468
+ function BoxscoreTeamToJSON(json) {
1469
+ return BoxscoreTeamToJSONTyped(json, false);
1470
+ }
1471
+ function BoxscoreTeamToJSONTyped(value, ignoreDiscriminator = false) {
1472
+ if (value == null) {
1473
+ return value;
1474
+ }
1475
+ return {
1476
+ "team": TeamToJSON(value["team"]),
1477
+ "teamStats": TeamStatsToJSON(value["teamStats"]),
1478
+ "players": mapValues(value["players"], PlayerToJSON)
1479
+ };
1480
+ }
1481
+
1058
1482
  // src/models/BoxscoreTeams.ts
1059
1483
  function instanceOfBoxscoreTeams(value) {
1484
+ if (!("away" in value) || value["away"] === void 0) return false;
1485
+ if (!("home" in value) || value["home"] === void 0) return false;
1060
1486
  return true;
1061
1487
  }
1062
1488
  function BoxscoreTeamsFromJSON(json) {
@@ -1067,8 +1493,8 @@ function BoxscoreTeamsFromJSONTyped(json, ignoreDiscriminator) {
1067
1493
  return json;
1068
1494
  }
1069
1495
  return {
1070
- "away": json["away"] == null ? void 0 : TeamFromJSON(json["away"]),
1071
- "home": json["home"] == null ? void 0 : TeamFromJSON(json["home"])
1496
+ "away": BoxscoreTeamFromJSON(json["away"]),
1497
+ "home": BoxscoreTeamFromJSON(json["home"])
1072
1498
  };
1073
1499
  }
1074
1500
  function BoxscoreTeamsToJSON(json) {
@@ -1079,13 +1505,15 @@ function BoxscoreTeamsToJSONTyped(value, ignoreDiscriminator = false) {
1079
1505
  return value;
1080
1506
  }
1081
1507
  return {
1082
- "away": TeamToJSON(value["away"]),
1083
- "home": TeamToJSON(value["home"])
1508
+ "away": BoxscoreTeamToJSON(value["away"]),
1509
+ "home": BoxscoreTeamToJSON(value["home"])
1084
1510
  };
1085
1511
  }
1086
1512
 
1087
1513
  // src/models/Boxscore.ts
1088
1514
  function instanceOfBoxscore(value) {
1515
+ if (!("teams" in value) || value["teams"] === void 0) return false;
1516
+ if (!("officials" in value) || value["officials"] === void 0) return false;
1089
1517
  return true;
1090
1518
  }
1091
1519
  function BoxscoreFromJSON(json) {
@@ -1096,8 +1524,8 @@ function BoxscoreFromJSONTyped(json, ignoreDiscriminator) {
1096
1524
  return json;
1097
1525
  }
1098
1526
  return {
1099
- "teams": json["teams"] == null ? void 0 : BoxscoreTeamsFromJSON(json["teams"]),
1100
- "officials": json["officials"] == null ? void 0 : json["officials"].map(GameOfficialFromJSON)
1527
+ "teams": BoxscoreTeamsFromJSON(json["teams"]),
1528
+ "officials": json["officials"].map(GameOfficialFromJSON)
1101
1529
  };
1102
1530
  }
1103
1531
  function BoxscoreToJSON(json) {
@@ -1109,7 +1537,7 @@ function BoxscoreToJSONTyped(value, ignoreDiscriminator = false) {
1109
1537
  }
1110
1538
  return {
1111
1539
  "teams": BoxscoreTeamsToJSON(value["teams"]),
1112
- "officials": value["officials"] == null ? void 0 : value["officials"].map(GameOfficialToJSON)
1540
+ "officials": value["officials"].map(GameOfficialToJSON)
1113
1541
  };
1114
1542
  }
1115
1543
 
@@ -1949,6 +2377,9 @@ var MlbApi = class extends BaseAPI {
1949
2377
  if (requestParameters["hydrate"] != null) {
1950
2378
  queryParameters["hydrate"] = requestParameters["hydrate"];
1951
2379
  }
2380
+ if (requestParameters["leagueIds"] != null) {
2381
+ queryParameters["leagueIds"] = requestParameters["leagueIds"];
2382
+ }
1952
2383
  const headerParameters = {};
1953
2384
  const response = yield this.request({
1954
2385
  path: `/v1/schedule`,
@@ -2117,13 +2548,20 @@ var MlbApi = class extends BaseAPI {
2117
2548
  });
2118
2549
  }
2119
2550
  };
2120
- // Annotate the CommonJS export names for ESM import in node:
2121
- 0 && (module.exports = {
2551
+ export {
2122
2552
  BASE_PATH,
2123
2553
  BaseAPI,
2554
+ BattingStatsFromJSON,
2555
+ BattingStatsFromJSONTyped,
2556
+ BattingStatsToJSON,
2557
+ BattingStatsToJSONTyped,
2124
2558
  BlobApiResponse,
2125
2559
  BoxscoreFromJSON,
2126
2560
  BoxscoreFromJSONTyped,
2561
+ BoxscoreTeamFromJSON,
2562
+ BoxscoreTeamFromJSONTyped,
2563
+ BoxscoreTeamToJSON,
2564
+ BoxscoreTeamToJSONTyped,
2127
2565
  BoxscoreTeamsFromJSON,
2128
2566
  BoxscoreTeamsFromJSONTyped,
2129
2567
  BoxscoreTeamsToJSON,
@@ -2146,6 +2584,10 @@ var MlbApi = class extends BaseAPI {
2146
2584
  DivisionToJSON,
2147
2585
  DivisionToJSONTyped,
2148
2586
  FetchError,
2587
+ FieldingStatsFromJSON,
2588
+ FieldingStatsFromJSONTyped,
2589
+ FieldingStatsToJSON,
2590
+ FieldingStatsToJSONTyped,
2149
2591
  GameFromJSON,
2150
2592
  GameFromJSONTyped,
2151
2593
  GameOfficialFromJSON,
@@ -2210,6 +2652,42 @@ var MlbApi = class extends BaseAPI {
2210
2652
  OfficialFromJSONTyped,
2211
2653
  OfficialToJSON,
2212
2654
  OfficialToJSONTyped,
2655
+ PitchingStatsFromJSON,
2656
+ PitchingStatsFromJSONTyped,
2657
+ PitchingStatsToJSON,
2658
+ PitchingStatsToJSONTyped,
2659
+ PlayerFromJSON,
2660
+ PlayerFromJSONTyped,
2661
+ PlayerGameStatusFromJSON,
2662
+ PlayerGameStatusFromJSONTyped,
2663
+ PlayerGameStatusToJSON,
2664
+ PlayerGameStatusToJSONTyped,
2665
+ PlayerPersonFromJSON,
2666
+ PlayerPersonFromJSONTyped,
2667
+ PlayerPersonToJSON,
2668
+ PlayerPersonToJSONTyped,
2669
+ PlayerPositionFromJSON,
2670
+ PlayerPositionFromJSONTyped,
2671
+ PlayerPositionToJSON,
2672
+ PlayerPositionToJSONTyped,
2673
+ PlayerSeasonStatsFromJSON,
2674
+ PlayerSeasonStatsFromJSONTyped,
2675
+ PlayerSeasonStatsToJSON,
2676
+ PlayerSeasonStatsToJSONTyped,
2677
+ PlayerStatsFromJSON,
2678
+ PlayerStatsFromJSONTyped,
2679
+ PlayerStatsToJSON,
2680
+ PlayerStatsToJSONTyped,
2681
+ PlayerStatusFromJSON,
2682
+ PlayerStatusFromJSONTyped,
2683
+ PlayerStatusToJSON,
2684
+ PlayerStatusToJSONTyped,
2685
+ PlayerToJSON,
2686
+ PlayerToJSONTyped,
2687
+ PositionFromJSON,
2688
+ PositionFromJSONTyped,
2689
+ PositionToJSON,
2690
+ PositionToJSONTyped,
2213
2691
  RecordFromJSON,
2214
2692
  RecordFromJSONTyped,
2215
2693
  RecordToJSON,
@@ -2242,9 +2720,13 @@ var MlbApi = class extends BaseAPI {
2242
2720
  StreakToJSON,
2243
2721
  StreakToJSONTyped,
2244
2722
  TeamFromJSON,
2245
- TeamFromJSONTyped,
2723
+ TeamFromJSONTyped2 as TeamFromJSONTyped,
2724
+ TeamStatsFromJSON,
2725
+ TeamStatsFromJSONTyped,
2726
+ TeamStatsToJSON,
2727
+ TeamStatsToJSONTyped,
2246
2728
  TeamToJSON,
2247
- TeamToJSONTyped,
2729
+ TeamToJSONTyped2 as TeamToJSONTyped,
2248
2730
  TeamsFromJSON,
2249
2731
  TeamsFromJSONTyped,
2250
2732
  TeamsToJSON,
@@ -2256,11 +2738,15 @@ var MlbApi = class extends BaseAPI {
2256
2738
  VenueToJSONTyped,
2257
2739
  VoidApiResponse,
2258
2740
  canConsumeForm,
2741
+ exists,
2742
+ instanceOfBattingStats,
2259
2743
  instanceOfBoxscore,
2744
+ instanceOfBoxscoreTeam,
2260
2745
  instanceOfBoxscoreTeams,
2261
2746
  instanceOfDivision,
2262
2747
  instanceOfDivisionStandings,
2263
2748
  instanceOfDivisionStandingsList,
2749
+ instanceOfFieldingStats,
2264
2750
  instanceOfGame,
2265
2751
  instanceOfGameOfficial,
2266
2752
  instanceOfGameStatus,
@@ -2276,6 +2762,15 @@ var MlbApi = class extends BaseAPI {
2276
2762
  instanceOfLinescoreTeam,
2277
2763
  instanceOfLinescoreTeams,
2278
2764
  instanceOfOfficial,
2765
+ instanceOfPitchingStats,
2766
+ instanceOfPlayer,
2767
+ instanceOfPlayerGameStatus,
2768
+ instanceOfPlayerPerson,
2769
+ instanceOfPlayerPosition,
2770
+ instanceOfPlayerSeasonStats,
2771
+ instanceOfPlayerStats,
2772
+ instanceOfPlayerStatus,
2773
+ instanceOfPosition,
2279
2774
  instanceOfRecord,
2280
2775
  instanceOfSchedule,
2281
2776
  instanceOfScheduleDay,
@@ -2284,8 +2779,9 @@ var MlbApi = class extends BaseAPI {
2284
2779
  instanceOfSport,
2285
2780
  instanceOfStreak,
2286
2781
  instanceOfTeam,
2782
+ instanceOfTeamStats,
2287
2783
  instanceOfTeams,
2288
2784
  instanceOfVenue,
2289
2785
  mapValues,
2290
2786
  querystring
2291
- });
2787
+ };