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