@bp1222/stats-api 0.3.1 → 0.4.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.
@@ -96,7 +96,9 @@ interface RequestOpts {
96
96
  }
97
97
  declare function querystring(params: HTTPQuery, prefix?: string): string;
98
98
  declare function exists(json: any, key: string): boolean;
99
- declare function mapValues(data: any, fn: (item: any) => any): {};
99
+ declare function mapValues(data: any, fn: (item: any) => any): {
100
+ [key: string]: any;
101
+ };
100
102
  declare function canConsumeForm(consumes: Consume[]): boolean;
101
103
  interface Consume {
102
104
  contentType: string;
@@ -633,7 +635,7 @@ declare function DivisionStandingsToJSON(json: any): DivisionStandings;
633
635
  declare function DivisionStandingsToJSONTyped(value?: DivisionStandings | null, ignoreDiscriminator?: boolean): any;
634
636
 
635
637
  interface DivisionStandingsList {
636
- records?: Array<DivisionStandings>;
638
+ records: Array<DivisionStandings>;
637
639
  }
638
640
  declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
639
641
  declare function DivisionStandingsListFromJSON(json: any): DivisionStandingsList;
@@ -641,6 +643,15 @@ declare function DivisionStandingsListFromJSONTyped(json: any, ignoreDiscriminat
641
643
  declare function DivisionStandingsListToJSON(json: any): DivisionStandingsList;
642
644
  declare function DivisionStandingsListToJSONTyped(value?: DivisionStandingsList | null, ignoreDiscriminator?: boolean): any;
643
645
 
646
+ interface Divisions {
647
+ divisions: Array<Division>;
648
+ }
649
+ declare function instanceOfDivisions(value: object): value is Divisions;
650
+ declare function DivisionsFromJSON(json: any): Divisions;
651
+ declare function DivisionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Divisions;
652
+ declare function DivisionsToJSON(json: any): Divisions;
653
+ declare function DivisionsToJSONTyped(value?: Divisions | null, ignoreDiscriminator?: boolean): any;
654
+
644
655
  declare enum GameStatusCode {
645
656
  Final = "F",
646
657
  Postponed = "D",
@@ -751,10 +762,10 @@ declare function GameToJSON(json: any): Game;
751
762
  declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator?: boolean): any;
752
763
 
753
764
  interface LinescoreTeam {
754
- runs?: number;
755
- hits?: number;
756
- errors?: number;
757
- leftOnBase?: number;
765
+ runs: number;
766
+ hits: number;
767
+ errors: number;
768
+ leftOnBase: number;
758
769
  }
759
770
  declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
760
771
  declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
@@ -763,10 +774,10 @@ declare function LinescoreTeamToJSON(json: any): LinescoreTeam;
763
774
  declare function LinescoreTeamToJSONTyped(value?: LinescoreTeam | null, ignoreDiscriminator?: boolean): any;
764
775
 
765
776
  interface Inning {
766
- num?: number;
767
- ordinalNum?: string;
768
- home?: LinescoreTeam;
769
- away?: LinescoreTeam;
777
+ num: number;
778
+ ordinalNum: string;
779
+ home: LinescoreTeam;
780
+ away: LinescoreTeam;
770
781
  }
771
782
  declare function instanceOfInning(value: object): value is Inning;
772
783
  declare function InningFromJSON(json: any): Inning;
@@ -774,9 +785,18 @@ declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): I
774
785
  declare function InningToJSON(json: any): Inning;
775
786
  declare function InningToJSONTyped(value?: Inning | null, ignoreDiscriminator?: boolean): any;
776
787
 
788
+ interface Leagues {
789
+ leagues: Array<League>;
790
+ }
791
+ declare function instanceOfLeagues(value: object): value is Leagues;
792
+ declare function LeaguesFromJSON(json: any): Leagues;
793
+ declare function LeaguesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Leagues;
794
+ declare function LeaguesToJSON(json: any): Leagues;
795
+ declare function LeaguesToJSONTyped(value?: Leagues | null, ignoreDiscriminator?: boolean): any;
796
+
777
797
  interface LinescoreTeams {
778
- away?: LinescoreTeam;
779
- home?: LinescoreTeam;
798
+ away: LinescoreTeam;
799
+ home: LinescoreTeam;
780
800
  }
781
801
  declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
782
802
  declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
@@ -792,10 +812,10 @@ interface Linescore {
792
812
  isTopInning?: boolean;
793
813
  scheduledInnings?: number;
794
814
  innings?: Array<Inning>;
795
- teams?: LinescoreTeams;
796
- balls?: number;
797
- strikes?: number;
798
- outs?: number;
815
+ teams: LinescoreTeams;
816
+ balls: number;
817
+ strikes: number;
818
+ outs: number;
799
819
  }
800
820
  declare function instanceOfLinescore(value: object): value is Linescore;
801
821
  declare function LinescoreFromJSON(json: any): Linescore;
@@ -860,7 +880,7 @@ declare function SeasonToJSON(json: any): Season;
860
880
  declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscriminator?: boolean): any;
861
881
 
862
882
  interface Seasons {
863
- seasons?: Array<Season>;
883
+ seasons: Array<Season>;
864
884
  }
865
885
  declare function instanceOfSeasons(value: object): value is Seasons;
866
886
  declare function SeasonsFromJSON(json: any): Seasons;
@@ -869,7 +889,7 @@ declare function SeasonsToJSON(json: any): Seasons;
869
889
  declare function SeasonsToJSONTyped(value?: Seasons | null, ignoreDiscriminator?: boolean): any;
870
890
 
871
891
  interface Teams {
872
- teams?: Array<Team>;
892
+ teams: Array<Team>;
873
893
  }
874
894
  declare function instanceOfTeams(value: object): value is Teams;
875
895
  declare function TeamsFromJSON(json: any): Teams;
@@ -884,12 +904,21 @@ interface GetBoxscoreRequest {
884
904
  gamePk: number;
885
905
  fields?: Array<string>;
886
906
  }
907
+ interface GetDivisionsRequest {
908
+ sportId: number;
909
+ season: string;
910
+ }
911
+ interface GetLeaguesRequest {
912
+ sportId: number;
913
+ season: string;
914
+ }
887
915
  interface GetLinescoreRequest {
888
916
  gamePk: number;
889
917
  fields?: Array<string>;
890
918
  }
891
919
  interface GetScheduleRequest {
892
920
  sportId: number;
921
+ gamePk?: number;
893
922
  teamId?: number;
894
923
  gameTypes?: Array<GameType>;
895
924
  startDate?: string;
@@ -913,12 +942,18 @@ interface GetTeamsRequest {
913
942
  sportId: number;
914
943
  season: string;
915
944
  leagueIds?: Array<number>;
945
+ fields?: Array<string>;
946
+ hydrate?: string;
916
947
  }
917
948
  declare class MlbApi extends BaseAPI {
918
949
  getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
919
950
  getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
920
951
  getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Boxscore>>;
921
952
  getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Boxscore>;
953
+ getDivisionsRaw(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Divisions>>;
954
+ getDivisions(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Divisions>;
955
+ getLeaguesRaw(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Leagues>>;
956
+ getLeagues(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Leagues>;
922
957
  getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Linescore>>;
923
958
  getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Linescore>;
924
959
  getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Schedule>>;
@@ -931,4 +966,4 @@ declare class MlbApi extends BaseAPI {
931
966
  getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
932
967
  }
933
968
 
934
- export { type ApiResponse, BASE_PATH, BaseAPI, type BattingStats, BattingStatsFromJSON, BattingStatsFromJSONTyped, BattingStatsToJSON, BattingStatsToJSONTyped, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, type BoxscoreTeam, BoxscoreTeamFromJSON, BoxscoreTeamFromJSONTyped, BoxscoreTeamToJSON, BoxscoreTeamToJSONTyped, type BoxscoreTeams, BoxscoreTeamsFromJSON, BoxscoreTeamsFromJSONTyped, BoxscoreTeamsToJSON, BoxscoreTeamsToJSONTyped, BoxscoreToJSON, BoxscoreToJSONTyped, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsListToJSONTyped, DivisionStandingsToJSON, DivisionStandingsToJSONTyped, DivisionToJSON, DivisionToJSONTyped, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type FieldingStats, FieldingStatsFromJSON, FieldingStatsFromJSONTyped, FieldingStatsToJSON, FieldingStatsToJSONTyped, type Game, GameFromJSON, GameFromJSONTyped, type GameOfficial, GameOfficialFromJSON, GameOfficialFromJSONTyped, GameOfficialToJSON, GameOfficialToJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusCodeToJSONTyped, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, GameStatusToJSONTyped, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, GameTeamToJSONTyped, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameTeamsToJSONTyped, GameToJSON, GameToJSONTyped, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, GameTypeToJSONTyped, type GetAllSeasonsRequest, type GetBoxscoreRequest, type GetLinescoreRequest, type GetScheduleRequest, type GetSeasonRequest, type GetStandingsRequest, type GetTeamsRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type InitOverrideFunction, type Inning, InningFromJSON, InningFromJSONTyped, InningToJSON, InningToJSONTyped, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueDatesToJSONTyped, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueRecordToJSONTyped, LeagueToJSON, LeagueToJSONTyped, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, LinescoreTeamToJSONTyped, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreTeamsToJSONTyped, LinescoreToJSON, LinescoreToJSONTyped, type Middleware, MlbApi, type ModelPropertyNaming, type Official, OfficialFromJSON, OfficialFromJSONTyped, OfficialToJSON, OfficialToJSONTyped, type PitchingStats, PitchingStatsFromJSON, PitchingStatsFromJSONTyped, PitchingStatsToJSON, PitchingStatsToJSONTyped, type Player, PlayerFromJSON, PlayerFromJSONTyped, type PlayerGameStatus, PlayerGameStatusFromJSON, PlayerGameStatusFromJSONTyped, PlayerGameStatusToJSON, PlayerGameStatusToJSONTyped, type PlayerPerson, PlayerPersonFromJSON, PlayerPersonFromJSONTyped, PlayerPersonToJSON, PlayerPersonToJSONTyped, type PlayerPosition, PlayerPositionFromJSON, PlayerPositionFromJSONTyped, PlayerPositionToJSON, PlayerPositionToJSONTyped, type PlayerSeasonStats, PlayerSeasonStatsFromJSON, PlayerSeasonStatsFromJSONTyped, PlayerSeasonStatsToJSON, PlayerSeasonStatsToJSONTyped, type PlayerStats, PlayerStatsFromJSON, PlayerStatsFromJSONTyped, PlayerStatsToJSON, PlayerStatsToJSONTyped, type PlayerStatus, PlayerStatusFromJSON, PlayerStatusFromJSONTyped, PlayerStatusToJSON, PlayerStatusToJSONTyped, PlayerToJSON, PlayerToJSONTyped, type Position, PositionFromJSON, PositionFromJSONTyped, PositionToJSON, PositionToJSONTyped, type Record, RecordFromJSON, RecordFromJSONTyped, RecordToJSON, RecordToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleDayToJSONTyped, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, ScheduleToJSONTyped, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, SeasonToJSONTyped, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, SeasonsToJSONTyped, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, SportToJSONTyped, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, StreakToJSONTyped, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamStats, TeamStatsFromJSON, TeamStatsFromJSONTyped, TeamStatsToJSON, TeamStatsToJSONTyped, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfBattingStats, instanceOfBoxscore, instanceOfBoxscoreTeam, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfFieldingStats, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfPitchingStats, instanceOfPlayer, instanceOfPlayerGameStatus, instanceOfPlayerPerson, instanceOfPlayerPosition, instanceOfPlayerSeasonStats, instanceOfPlayerStats, instanceOfPlayerStatus, instanceOfPosition, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamStats, instanceOfTeams, instanceOfVenue, mapValues, querystring };
969
+ export { type ApiResponse, BASE_PATH, BaseAPI, type BattingStats, BattingStatsFromJSON, BattingStatsFromJSONTyped, BattingStatsToJSON, BattingStatsToJSONTyped, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, type BoxscoreTeam, BoxscoreTeamFromJSON, BoxscoreTeamFromJSONTyped, BoxscoreTeamToJSON, BoxscoreTeamToJSONTyped, type BoxscoreTeams, BoxscoreTeamsFromJSON, BoxscoreTeamsFromJSONTyped, BoxscoreTeamsToJSON, BoxscoreTeamsToJSONTyped, BoxscoreToJSON, BoxscoreToJSONTyped, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsListToJSONTyped, DivisionStandingsToJSON, DivisionStandingsToJSONTyped, DivisionToJSON, DivisionToJSONTyped, type Divisions, DivisionsFromJSON, DivisionsFromJSONTyped, DivisionsToJSON, DivisionsToJSONTyped, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type FieldingStats, FieldingStatsFromJSON, FieldingStatsFromJSONTyped, FieldingStatsToJSON, FieldingStatsToJSONTyped, type Game, GameFromJSON, GameFromJSONTyped, type GameOfficial, GameOfficialFromJSON, GameOfficialFromJSONTyped, GameOfficialToJSON, GameOfficialToJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusCodeToJSONTyped, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, GameStatusToJSONTyped, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, GameTeamToJSONTyped, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameTeamsToJSONTyped, GameToJSON, GameToJSONTyped, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, GameTypeToJSONTyped, type GetAllSeasonsRequest, type GetBoxscoreRequest, type GetDivisionsRequest, type GetLeaguesRequest, type GetLinescoreRequest, type GetScheduleRequest, type GetSeasonRequest, type GetStandingsRequest, type GetTeamsRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type InitOverrideFunction, type Inning, InningFromJSON, InningFromJSONTyped, InningToJSON, InningToJSONTyped, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueDatesToJSONTyped, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueRecordToJSONTyped, LeagueToJSON, LeagueToJSONTyped, type Leagues, LeaguesFromJSON, LeaguesFromJSONTyped, LeaguesToJSON, LeaguesToJSONTyped, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, LinescoreTeamToJSONTyped, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreTeamsToJSONTyped, LinescoreToJSON, LinescoreToJSONTyped, type Middleware, MlbApi, type ModelPropertyNaming, type Official, OfficialFromJSON, OfficialFromJSONTyped, OfficialToJSON, OfficialToJSONTyped, type PitchingStats, PitchingStatsFromJSON, PitchingStatsFromJSONTyped, PitchingStatsToJSON, PitchingStatsToJSONTyped, type Player, PlayerFromJSON, PlayerFromJSONTyped, type PlayerGameStatus, PlayerGameStatusFromJSON, PlayerGameStatusFromJSONTyped, PlayerGameStatusToJSON, PlayerGameStatusToJSONTyped, type PlayerPerson, PlayerPersonFromJSON, PlayerPersonFromJSONTyped, PlayerPersonToJSON, PlayerPersonToJSONTyped, type PlayerPosition, PlayerPositionFromJSON, PlayerPositionFromJSONTyped, PlayerPositionToJSON, PlayerPositionToJSONTyped, type PlayerSeasonStats, PlayerSeasonStatsFromJSON, PlayerSeasonStatsFromJSONTyped, PlayerSeasonStatsToJSON, PlayerSeasonStatsToJSONTyped, type PlayerStats, PlayerStatsFromJSON, PlayerStatsFromJSONTyped, PlayerStatsToJSON, PlayerStatsToJSONTyped, type PlayerStatus, PlayerStatusFromJSON, PlayerStatusFromJSONTyped, PlayerStatusToJSON, PlayerStatusToJSONTyped, PlayerToJSON, PlayerToJSONTyped, type Position, PositionFromJSON, PositionFromJSONTyped, PositionToJSON, PositionToJSONTyped, type Record, RecordFromJSON, RecordFromJSONTyped, RecordToJSON, RecordToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleDayToJSONTyped, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, ScheduleToJSONTyped, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, SeasonToJSONTyped, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, SeasonsToJSONTyped, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, SportToJSONTyped, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, StreakToJSONTyped, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamStats, TeamStatsFromJSON, TeamStatsFromJSONTyped, TeamStatsToJSON, TeamStatsToJSONTyped, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfBattingStats, instanceOfBoxscore, instanceOfBoxscoreTeam, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfDivisions, instanceOfFieldingStats, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLeagues, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfPitchingStats, instanceOfPlayer, instanceOfPlayerGameStatus, instanceOfPlayerPerson, instanceOfPlayerPosition, instanceOfPlayerSeasonStats, instanceOfPlayerStats, instanceOfPlayerStatus, instanceOfPosition, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamStats, instanceOfTeams, instanceOfVenue, mapValues, querystring };
package/dist/index.d.ts CHANGED
@@ -96,7 +96,9 @@ interface RequestOpts {
96
96
  }
97
97
  declare function querystring(params: HTTPQuery, prefix?: string): string;
98
98
  declare function exists(json: any, key: string): boolean;
99
- declare function mapValues(data: any, fn: (item: any) => any): {};
99
+ declare function mapValues(data: any, fn: (item: any) => any): {
100
+ [key: string]: any;
101
+ };
100
102
  declare function canConsumeForm(consumes: Consume[]): boolean;
101
103
  interface Consume {
102
104
  contentType: string;
@@ -633,7 +635,7 @@ declare function DivisionStandingsToJSON(json: any): DivisionStandings;
633
635
  declare function DivisionStandingsToJSONTyped(value?: DivisionStandings | null, ignoreDiscriminator?: boolean): any;
634
636
 
635
637
  interface DivisionStandingsList {
636
- records?: Array<DivisionStandings>;
638
+ records: Array<DivisionStandings>;
637
639
  }
638
640
  declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
639
641
  declare function DivisionStandingsListFromJSON(json: any): DivisionStandingsList;
@@ -641,6 +643,15 @@ declare function DivisionStandingsListFromJSONTyped(json: any, ignoreDiscriminat
641
643
  declare function DivisionStandingsListToJSON(json: any): DivisionStandingsList;
642
644
  declare function DivisionStandingsListToJSONTyped(value?: DivisionStandingsList | null, ignoreDiscriminator?: boolean): any;
643
645
 
646
+ interface Divisions {
647
+ divisions: Array<Division>;
648
+ }
649
+ declare function instanceOfDivisions(value: object): value is Divisions;
650
+ declare function DivisionsFromJSON(json: any): Divisions;
651
+ declare function DivisionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Divisions;
652
+ declare function DivisionsToJSON(json: any): Divisions;
653
+ declare function DivisionsToJSONTyped(value?: Divisions | null, ignoreDiscriminator?: boolean): any;
654
+
644
655
  declare enum GameStatusCode {
645
656
  Final = "F",
646
657
  Postponed = "D",
@@ -751,10 +762,10 @@ declare function GameToJSON(json: any): Game;
751
762
  declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator?: boolean): any;
752
763
 
753
764
  interface LinescoreTeam {
754
- runs?: number;
755
- hits?: number;
756
- errors?: number;
757
- leftOnBase?: number;
765
+ runs: number;
766
+ hits: number;
767
+ errors: number;
768
+ leftOnBase: number;
758
769
  }
759
770
  declare function instanceOfLinescoreTeam(value: object): value is LinescoreTeam;
760
771
  declare function LinescoreTeamFromJSON(json: any): LinescoreTeam;
@@ -763,10 +774,10 @@ declare function LinescoreTeamToJSON(json: any): LinescoreTeam;
763
774
  declare function LinescoreTeamToJSONTyped(value?: LinescoreTeam | null, ignoreDiscriminator?: boolean): any;
764
775
 
765
776
  interface Inning {
766
- num?: number;
767
- ordinalNum?: string;
768
- home?: LinescoreTeam;
769
- away?: LinescoreTeam;
777
+ num: number;
778
+ ordinalNum: string;
779
+ home: LinescoreTeam;
780
+ away: LinescoreTeam;
770
781
  }
771
782
  declare function instanceOfInning(value: object): value is Inning;
772
783
  declare function InningFromJSON(json: any): Inning;
@@ -774,9 +785,18 @@ declare function InningFromJSONTyped(json: any, ignoreDiscriminator: boolean): I
774
785
  declare function InningToJSON(json: any): Inning;
775
786
  declare function InningToJSONTyped(value?: Inning | null, ignoreDiscriminator?: boolean): any;
776
787
 
788
+ interface Leagues {
789
+ leagues: Array<League>;
790
+ }
791
+ declare function instanceOfLeagues(value: object): value is Leagues;
792
+ declare function LeaguesFromJSON(json: any): Leagues;
793
+ declare function LeaguesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Leagues;
794
+ declare function LeaguesToJSON(json: any): Leagues;
795
+ declare function LeaguesToJSONTyped(value?: Leagues | null, ignoreDiscriminator?: boolean): any;
796
+
777
797
  interface LinescoreTeams {
778
- away?: LinescoreTeam;
779
- home?: LinescoreTeam;
798
+ away: LinescoreTeam;
799
+ home: LinescoreTeam;
780
800
  }
781
801
  declare function instanceOfLinescoreTeams(value: object): value is LinescoreTeams;
782
802
  declare function LinescoreTeamsFromJSON(json: any): LinescoreTeams;
@@ -792,10 +812,10 @@ interface Linescore {
792
812
  isTopInning?: boolean;
793
813
  scheduledInnings?: number;
794
814
  innings?: Array<Inning>;
795
- teams?: LinescoreTeams;
796
- balls?: number;
797
- strikes?: number;
798
- outs?: number;
815
+ teams: LinescoreTeams;
816
+ balls: number;
817
+ strikes: number;
818
+ outs: number;
799
819
  }
800
820
  declare function instanceOfLinescore(value: object): value is Linescore;
801
821
  declare function LinescoreFromJSON(json: any): Linescore;
@@ -860,7 +880,7 @@ declare function SeasonToJSON(json: any): Season;
860
880
  declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscriminator?: boolean): any;
861
881
 
862
882
  interface Seasons {
863
- seasons?: Array<Season>;
883
+ seasons: Array<Season>;
864
884
  }
865
885
  declare function instanceOfSeasons(value: object): value is Seasons;
866
886
  declare function SeasonsFromJSON(json: any): Seasons;
@@ -869,7 +889,7 @@ declare function SeasonsToJSON(json: any): Seasons;
869
889
  declare function SeasonsToJSONTyped(value?: Seasons | null, ignoreDiscriminator?: boolean): any;
870
890
 
871
891
  interface Teams {
872
- teams?: Array<Team>;
892
+ teams: Array<Team>;
873
893
  }
874
894
  declare function instanceOfTeams(value: object): value is Teams;
875
895
  declare function TeamsFromJSON(json: any): Teams;
@@ -884,12 +904,21 @@ interface GetBoxscoreRequest {
884
904
  gamePk: number;
885
905
  fields?: Array<string>;
886
906
  }
907
+ interface GetDivisionsRequest {
908
+ sportId: number;
909
+ season: string;
910
+ }
911
+ interface GetLeaguesRequest {
912
+ sportId: number;
913
+ season: string;
914
+ }
887
915
  interface GetLinescoreRequest {
888
916
  gamePk: number;
889
917
  fields?: Array<string>;
890
918
  }
891
919
  interface GetScheduleRequest {
892
920
  sportId: number;
921
+ gamePk?: number;
893
922
  teamId?: number;
894
923
  gameTypes?: Array<GameType>;
895
924
  startDate?: string;
@@ -913,12 +942,18 @@ interface GetTeamsRequest {
913
942
  sportId: number;
914
943
  season: string;
915
944
  leagueIds?: Array<number>;
945
+ fields?: Array<string>;
946
+ hydrate?: string;
916
947
  }
917
948
  declare class MlbApi extends BaseAPI {
918
949
  getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
919
950
  getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
920
951
  getBoxscoreRaw(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Boxscore>>;
921
952
  getBoxscore(requestParameters: GetBoxscoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Boxscore>;
953
+ getDivisionsRaw(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Divisions>>;
954
+ getDivisions(requestParameters: GetDivisionsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Divisions>;
955
+ getLeaguesRaw(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Leagues>>;
956
+ getLeagues(requestParameters: GetLeaguesRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Leagues>;
922
957
  getLinescoreRaw(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Linescore>>;
923
958
  getLinescore(requestParameters: GetLinescoreRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Linescore>;
924
959
  getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Schedule>>;
@@ -931,4 +966,4 @@ declare class MlbApi extends BaseAPI {
931
966
  getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
932
967
  }
933
968
 
934
- export { type ApiResponse, BASE_PATH, BaseAPI, type BattingStats, BattingStatsFromJSON, BattingStatsFromJSONTyped, BattingStatsToJSON, BattingStatsToJSONTyped, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, type BoxscoreTeam, BoxscoreTeamFromJSON, BoxscoreTeamFromJSONTyped, BoxscoreTeamToJSON, BoxscoreTeamToJSONTyped, type BoxscoreTeams, BoxscoreTeamsFromJSON, BoxscoreTeamsFromJSONTyped, BoxscoreTeamsToJSON, BoxscoreTeamsToJSONTyped, BoxscoreToJSON, BoxscoreToJSONTyped, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsListToJSONTyped, DivisionStandingsToJSON, DivisionStandingsToJSONTyped, DivisionToJSON, DivisionToJSONTyped, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type FieldingStats, FieldingStatsFromJSON, FieldingStatsFromJSONTyped, FieldingStatsToJSON, FieldingStatsToJSONTyped, type Game, GameFromJSON, GameFromJSONTyped, type GameOfficial, GameOfficialFromJSON, GameOfficialFromJSONTyped, GameOfficialToJSON, GameOfficialToJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusCodeToJSONTyped, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, GameStatusToJSONTyped, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, GameTeamToJSONTyped, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameTeamsToJSONTyped, GameToJSON, GameToJSONTyped, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, GameTypeToJSONTyped, type GetAllSeasonsRequest, type GetBoxscoreRequest, type GetLinescoreRequest, type GetScheduleRequest, type GetSeasonRequest, type GetStandingsRequest, type GetTeamsRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type InitOverrideFunction, type Inning, InningFromJSON, InningFromJSONTyped, InningToJSON, InningToJSONTyped, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueDatesToJSONTyped, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueRecordToJSONTyped, LeagueToJSON, LeagueToJSONTyped, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, LinescoreTeamToJSONTyped, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreTeamsToJSONTyped, LinescoreToJSON, LinescoreToJSONTyped, type Middleware, MlbApi, type ModelPropertyNaming, type Official, OfficialFromJSON, OfficialFromJSONTyped, OfficialToJSON, OfficialToJSONTyped, type PitchingStats, PitchingStatsFromJSON, PitchingStatsFromJSONTyped, PitchingStatsToJSON, PitchingStatsToJSONTyped, type Player, PlayerFromJSON, PlayerFromJSONTyped, type PlayerGameStatus, PlayerGameStatusFromJSON, PlayerGameStatusFromJSONTyped, PlayerGameStatusToJSON, PlayerGameStatusToJSONTyped, type PlayerPerson, PlayerPersonFromJSON, PlayerPersonFromJSONTyped, PlayerPersonToJSON, PlayerPersonToJSONTyped, type PlayerPosition, PlayerPositionFromJSON, PlayerPositionFromJSONTyped, PlayerPositionToJSON, PlayerPositionToJSONTyped, type PlayerSeasonStats, PlayerSeasonStatsFromJSON, PlayerSeasonStatsFromJSONTyped, PlayerSeasonStatsToJSON, PlayerSeasonStatsToJSONTyped, type PlayerStats, PlayerStatsFromJSON, PlayerStatsFromJSONTyped, PlayerStatsToJSON, PlayerStatsToJSONTyped, type PlayerStatus, PlayerStatusFromJSON, PlayerStatusFromJSONTyped, PlayerStatusToJSON, PlayerStatusToJSONTyped, PlayerToJSON, PlayerToJSONTyped, type Position, PositionFromJSON, PositionFromJSONTyped, PositionToJSON, PositionToJSONTyped, type Record, RecordFromJSON, RecordFromJSONTyped, RecordToJSON, RecordToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleDayToJSONTyped, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, ScheduleToJSONTyped, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, SeasonToJSONTyped, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, SeasonsToJSONTyped, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, SportToJSONTyped, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, StreakToJSONTyped, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamStats, TeamStatsFromJSON, TeamStatsFromJSONTyped, TeamStatsToJSON, TeamStatsToJSONTyped, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfBattingStats, instanceOfBoxscore, instanceOfBoxscoreTeam, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfFieldingStats, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfPitchingStats, instanceOfPlayer, instanceOfPlayerGameStatus, instanceOfPlayerPerson, instanceOfPlayerPosition, instanceOfPlayerSeasonStats, instanceOfPlayerStats, instanceOfPlayerStatus, instanceOfPosition, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamStats, instanceOfTeams, instanceOfVenue, mapValues, querystring };
969
+ export { type ApiResponse, BASE_PATH, BaseAPI, type BattingStats, BattingStatsFromJSON, BattingStatsFromJSONTyped, BattingStatsToJSON, BattingStatsToJSONTyped, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, type BoxscoreTeam, BoxscoreTeamFromJSON, BoxscoreTeamFromJSONTyped, BoxscoreTeamToJSON, BoxscoreTeamToJSONTyped, type BoxscoreTeams, BoxscoreTeamsFromJSON, BoxscoreTeamsFromJSONTyped, BoxscoreTeamsToJSON, BoxscoreTeamsToJSONTyped, BoxscoreToJSON, BoxscoreToJSONTyped, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsListToJSONTyped, DivisionStandingsToJSON, DivisionStandingsToJSONTyped, DivisionToJSON, DivisionToJSONTyped, type Divisions, DivisionsFromJSON, DivisionsFromJSONTyped, DivisionsToJSON, DivisionsToJSONTyped, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type FieldingStats, FieldingStatsFromJSON, FieldingStatsFromJSONTyped, FieldingStatsToJSON, FieldingStatsToJSONTyped, type Game, GameFromJSON, GameFromJSONTyped, type GameOfficial, GameOfficialFromJSON, GameOfficialFromJSONTyped, GameOfficialToJSON, GameOfficialToJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusCodeToJSONTyped, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, GameStatusToJSONTyped, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, GameTeamToJSONTyped, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameTeamsToJSONTyped, GameToJSON, GameToJSONTyped, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, GameTypeToJSONTyped, type GetAllSeasonsRequest, type GetBoxscoreRequest, type GetDivisionsRequest, type GetLeaguesRequest, type GetLinescoreRequest, type GetScheduleRequest, type GetSeasonRequest, type GetStandingsRequest, type GetTeamsRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type InitOverrideFunction, type Inning, InningFromJSON, InningFromJSONTyped, InningToJSON, InningToJSONTyped, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueDatesToJSONTyped, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueRecordToJSONTyped, LeagueToJSON, LeagueToJSONTyped, type Leagues, LeaguesFromJSON, LeaguesFromJSONTyped, LeaguesToJSON, LeaguesToJSONTyped, type Linescore, LinescoreFromJSON, LinescoreFromJSONTyped, type LinescoreTeam, LinescoreTeamFromJSON, LinescoreTeamFromJSONTyped, LinescoreTeamToJSON, LinescoreTeamToJSONTyped, type LinescoreTeams, LinescoreTeamsFromJSON, LinescoreTeamsFromJSONTyped, LinescoreTeamsToJSON, LinescoreTeamsToJSONTyped, LinescoreToJSON, LinescoreToJSONTyped, type Middleware, MlbApi, type ModelPropertyNaming, type Official, OfficialFromJSON, OfficialFromJSONTyped, OfficialToJSON, OfficialToJSONTyped, type PitchingStats, PitchingStatsFromJSON, PitchingStatsFromJSONTyped, PitchingStatsToJSON, PitchingStatsToJSONTyped, type Player, PlayerFromJSON, PlayerFromJSONTyped, type PlayerGameStatus, PlayerGameStatusFromJSON, PlayerGameStatusFromJSONTyped, PlayerGameStatusToJSON, PlayerGameStatusToJSONTyped, type PlayerPerson, PlayerPersonFromJSON, PlayerPersonFromJSONTyped, PlayerPersonToJSON, PlayerPersonToJSONTyped, type PlayerPosition, PlayerPositionFromJSON, PlayerPositionFromJSONTyped, PlayerPositionToJSON, PlayerPositionToJSONTyped, type PlayerSeasonStats, PlayerSeasonStatsFromJSON, PlayerSeasonStatsFromJSONTyped, PlayerSeasonStatsToJSON, PlayerSeasonStatsToJSONTyped, type PlayerStats, PlayerStatsFromJSON, PlayerStatsFromJSONTyped, PlayerStatsToJSON, PlayerStatsToJSONTyped, type PlayerStatus, PlayerStatusFromJSON, PlayerStatusFromJSONTyped, PlayerStatusToJSON, PlayerStatusToJSONTyped, PlayerToJSON, PlayerToJSONTyped, type Position, PositionFromJSON, PositionFromJSONTyped, PositionToJSON, PositionToJSONTyped, type Record, RecordFromJSON, RecordFromJSONTyped, RecordToJSON, RecordToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleDayToJSONTyped, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, ScheduleToJSONTyped, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, SeasonToJSONTyped, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, SeasonsToJSONTyped, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, SportToJSONTyped, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, StreakToJSONTyped, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamStats, TeamStatsFromJSON, TeamStatsFromJSONTyped, TeamStatsToJSON, TeamStatsToJSONTyped, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfBattingStats, instanceOfBoxscore, instanceOfBoxscoreTeam, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfDivisions, instanceOfFieldingStats, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLeagues, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfPitchingStats, instanceOfPlayer, instanceOfPlayerGameStatus, instanceOfPlayerPerson, instanceOfPlayerPosition, instanceOfPlayerSeasonStats, instanceOfPlayerStats, instanceOfPlayerStatus, instanceOfPosition, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamStats, instanceOfTeams, instanceOfVenue, mapValues, querystring };