@bp1222/stats-api 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +245 -5
- package/dist/index.d.ts +245 -5
- package/dist/index.js +761 -10
- package/dist/index.mjs +692 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -95,6 +95,7 @@ interface RequestOpts {
|
|
|
95
95
|
body?: HTTPBody;
|
|
96
96
|
}
|
|
97
97
|
declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
98
|
+
declare function exists(json: any, key: string): boolean;
|
|
98
99
|
declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
99
100
|
declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
100
101
|
interface Consume {
|
|
@@ -152,6 +153,47 @@ declare class TextApiResponse {
|
|
|
152
153
|
value(): Promise<string>;
|
|
153
154
|
}
|
|
154
155
|
|
|
156
|
+
interface BattingStats {
|
|
157
|
+
flyOuts?: number;
|
|
158
|
+
groundOuts?: number;
|
|
159
|
+
airOuts?: number;
|
|
160
|
+
runs?: number;
|
|
161
|
+
doubles?: number;
|
|
162
|
+
triples?: number;
|
|
163
|
+
homeRuns?: number;
|
|
164
|
+
strikeOuts?: number;
|
|
165
|
+
baseOnBalls?: number;
|
|
166
|
+
intentionalWalks?: number;
|
|
167
|
+
hits?: number;
|
|
168
|
+
hitByPitch?: number;
|
|
169
|
+
avg?: string;
|
|
170
|
+
atBats?: number;
|
|
171
|
+
obp?: string;
|
|
172
|
+
slg?: string;
|
|
173
|
+
ops?: string;
|
|
174
|
+
caughtStealing?: number;
|
|
175
|
+
stolenBases?: number;
|
|
176
|
+
stolenBasePercentage?: string;
|
|
177
|
+
groundIntoDoublePlay?: number;
|
|
178
|
+
groundIntoTriplePlay?: number;
|
|
179
|
+
plateAppearances?: number;
|
|
180
|
+
totalBases?: number;
|
|
181
|
+
rbi?: number;
|
|
182
|
+
leftOnBase?: number;
|
|
183
|
+
sacBunts?: number;
|
|
184
|
+
sacFlies?: number;
|
|
185
|
+
catchersInterference?: number;
|
|
186
|
+
pickoffs?: number;
|
|
187
|
+
atBatsPerHomeRun?: string;
|
|
188
|
+
popOuts?: number;
|
|
189
|
+
lineOuts?: number;
|
|
190
|
+
}
|
|
191
|
+
declare function instanceOfBattingStats(value: object): value is BattingStats;
|
|
192
|
+
declare function BattingStatsFromJSON(json: any): BattingStats;
|
|
193
|
+
declare function BattingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BattingStats;
|
|
194
|
+
declare function BattingStatsToJSON(json: any): BattingStats;
|
|
195
|
+
declare function BattingStatsToJSONTyped(value?: BattingStats | null, ignoreDiscriminator?: boolean): any;
|
|
196
|
+
|
|
155
197
|
interface Official {
|
|
156
198
|
id?: number;
|
|
157
199
|
fullName?: string;
|
|
@@ -173,6 +215,180 @@ declare function GameOfficialFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
173
215
|
declare function GameOfficialToJSON(json: any): GameOfficial;
|
|
174
216
|
declare function GameOfficialToJSONTyped(value?: GameOfficial | null, ignoreDiscriminator?: boolean): any;
|
|
175
217
|
|
|
218
|
+
interface FieldingStats {
|
|
219
|
+
caughtStealing?: number;
|
|
220
|
+
stolenBases?: number;
|
|
221
|
+
stolenBasePercentage?: string;
|
|
222
|
+
assists?: number;
|
|
223
|
+
putOuts?: number;
|
|
224
|
+
errors?: number;
|
|
225
|
+
chances?: number;
|
|
226
|
+
passedBall?: number;
|
|
227
|
+
pickoffs?: number;
|
|
228
|
+
}
|
|
229
|
+
declare function instanceOfFieldingStats(value: object): value is FieldingStats;
|
|
230
|
+
declare function FieldingStatsFromJSON(json: any): FieldingStats;
|
|
231
|
+
declare function FieldingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldingStats;
|
|
232
|
+
declare function FieldingStatsToJSON(json: any): FieldingStats;
|
|
233
|
+
declare function FieldingStatsToJSONTyped(value?: FieldingStats | null, ignoreDiscriminator?: boolean): any;
|
|
234
|
+
|
|
235
|
+
interface PitchingStats {
|
|
236
|
+
flyOuts?: number;
|
|
237
|
+
groundOuts?: number;
|
|
238
|
+
airOuts?: number;
|
|
239
|
+
runs?: number;
|
|
240
|
+
doubles?: number;
|
|
241
|
+
triples?: number;
|
|
242
|
+
homeRuns?: number;
|
|
243
|
+
strikeOuts?: number;
|
|
244
|
+
baseOnBalls?: number;
|
|
245
|
+
intentionalWalks?: number;
|
|
246
|
+
hits?: number;
|
|
247
|
+
hitByPitch?: number;
|
|
248
|
+
atBats?: number;
|
|
249
|
+
obp?: string;
|
|
250
|
+
caughtStealing?: number;
|
|
251
|
+
stolenBases?: number;
|
|
252
|
+
stolenBasePercentage?: string;
|
|
253
|
+
numberOfPitches?: number;
|
|
254
|
+
era?: string;
|
|
255
|
+
inningsPitched?: string;
|
|
256
|
+
saveOpportunities?: number;
|
|
257
|
+
earnedRuns?: number;
|
|
258
|
+
whip?: string;
|
|
259
|
+
battersFaced?: number;
|
|
260
|
+
outs?: number;
|
|
261
|
+
completeGames?: number;
|
|
262
|
+
shutouts?: number;
|
|
263
|
+
pitchesThrown?: number;
|
|
264
|
+
balls?: number;
|
|
265
|
+
strikes?: number;
|
|
266
|
+
strikePercentage?: string;
|
|
267
|
+
hitBatsmen?: number;
|
|
268
|
+
balks?: number;
|
|
269
|
+
wildPitches?: number;
|
|
270
|
+
pickoffs?: number;
|
|
271
|
+
groundOutsToAirouts?: string;
|
|
272
|
+
rbi?: number;
|
|
273
|
+
pitchesPerInning?: string;
|
|
274
|
+
runsScoredPer9?: string;
|
|
275
|
+
homeRunsPer9?: string;
|
|
276
|
+
inheritedRunners?: number;
|
|
277
|
+
inheritedRunnersScored?: number;
|
|
278
|
+
catchersInterference?: number;
|
|
279
|
+
sacBunts?: number;
|
|
280
|
+
sacFlies?: number;
|
|
281
|
+
passedBall?: number;
|
|
282
|
+
popOuts?: number;
|
|
283
|
+
lineOuts?: number;
|
|
284
|
+
}
|
|
285
|
+
declare function instanceOfPitchingStats(value: object): value is PitchingStats;
|
|
286
|
+
declare function PitchingStatsFromJSON(json: any): PitchingStats;
|
|
287
|
+
declare function PitchingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PitchingStats;
|
|
288
|
+
declare function PitchingStatsToJSON(json: any): PitchingStats;
|
|
289
|
+
declare function PitchingStatsToJSONTyped(value?: PitchingStats | null, ignoreDiscriminator?: boolean): any;
|
|
290
|
+
|
|
291
|
+
interface PlayerSeasonStats {
|
|
292
|
+
batting: BattingStats;
|
|
293
|
+
pitching: PitchingStats;
|
|
294
|
+
fielding: FieldingStats;
|
|
295
|
+
}
|
|
296
|
+
declare function instanceOfPlayerSeasonStats(value: object): value is PlayerSeasonStats;
|
|
297
|
+
declare function PlayerSeasonStatsFromJSON(json: any): PlayerSeasonStats;
|
|
298
|
+
declare function PlayerSeasonStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerSeasonStats;
|
|
299
|
+
declare function PlayerSeasonStatsToJSON(json: any): PlayerSeasonStats;
|
|
300
|
+
declare function PlayerSeasonStatsToJSONTyped(value?: PlayerSeasonStats | null, ignoreDiscriminator?: boolean): any;
|
|
301
|
+
|
|
302
|
+
interface PlayerGameStatus {
|
|
303
|
+
isCurrentBatter?: boolean;
|
|
304
|
+
isCurrentPitcher?: boolean;
|
|
305
|
+
isOnBench?: boolean;
|
|
306
|
+
isSubstitute?: boolean;
|
|
307
|
+
}
|
|
308
|
+
declare function instanceOfPlayerGameStatus(value: object): value is PlayerGameStatus;
|
|
309
|
+
declare function PlayerGameStatusFromJSON(json: any): PlayerGameStatus;
|
|
310
|
+
declare function PlayerGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerGameStatus;
|
|
311
|
+
declare function PlayerGameStatusToJSON(json: any): PlayerGameStatus;
|
|
312
|
+
declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | null, ignoreDiscriminator?: boolean): any;
|
|
313
|
+
|
|
314
|
+
interface Position {
|
|
315
|
+
code?: string;
|
|
316
|
+
name?: string;
|
|
317
|
+
type?: string;
|
|
318
|
+
abbreviation?: string;
|
|
319
|
+
}
|
|
320
|
+
declare function instanceOfPosition(value: object): value is Position;
|
|
321
|
+
declare function PositionFromJSON(json: any): Position;
|
|
322
|
+
declare function PositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Position;
|
|
323
|
+
declare function PositionToJSON(json: any): Position;
|
|
324
|
+
declare function PositionToJSONTyped(value?: Position | null, ignoreDiscriminator?: boolean): any;
|
|
325
|
+
|
|
326
|
+
interface PlayerPerson {
|
|
327
|
+
id: string;
|
|
328
|
+
fullName: string;
|
|
329
|
+
link: string;
|
|
330
|
+
boxscoreName: string;
|
|
331
|
+
}
|
|
332
|
+
declare function instanceOfPlayerPerson(value: object): value is PlayerPerson;
|
|
333
|
+
declare function PlayerPersonFromJSON(json: any): PlayerPerson;
|
|
334
|
+
declare function PlayerPersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPerson;
|
|
335
|
+
declare function PlayerPersonToJSON(json: any): PlayerPerson;
|
|
336
|
+
declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ignoreDiscriminator?: boolean): any;
|
|
337
|
+
|
|
338
|
+
interface PlayerPosition {
|
|
339
|
+
code?: string;
|
|
340
|
+
name?: string;
|
|
341
|
+
type?: string;
|
|
342
|
+
abbreviation?: string;
|
|
343
|
+
}
|
|
344
|
+
declare function instanceOfPlayerPosition(value: object): value is PlayerPosition;
|
|
345
|
+
declare function PlayerPositionFromJSON(json: any): PlayerPosition;
|
|
346
|
+
declare function PlayerPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPosition;
|
|
347
|
+
declare function PlayerPositionToJSON(json: any): PlayerPosition;
|
|
348
|
+
declare function PlayerPositionToJSONTyped(value?: PlayerPosition | null, ignoreDiscriminator?: boolean): any;
|
|
349
|
+
|
|
350
|
+
interface PlayerStatus {
|
|
351
|
+
code?: string;
|
|
352
|
+
description?: string;
|
|
353
|
+
}
|
|
354
|
+
declare function instanceOfPlayerStatus(value: object): value is PlayerStatus;
|
|
355
|
+
declare function PlayerStatusFromJSON(json: any): PlayerStatus;
|
|
356
|
+
declare function PlayerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStatus;
|
|
357
|
+
declare function PlayerStatusToJSON(json: any): PlayerStatus;
|
|
358
|
+
declare function PlayerStatusToJSONTyped(value?: PlayerStatus | null, ignoreDiscriminator?: boolean): any;
|
|
359
|
+
|
|
360
|
+
interface PlayerStats {
|
|
361
|
+
batting: BattingStats;
|
|
362
|
+
pitching: PitchingStats;
|
|
363
|
+
fielding: FieldingStats;
|
|
364
|
+
}
|
|
365
|
+
declare function instanceOfPlayerStats(value: object): value is PlayerStats;
|
|
366
|
+
declare function PlayerStatsFromJSON(json: any): PlayerStats;
|
|
367
|
+
declare function PlayerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStats;
|
|
368
|
+
declare function PlayerStatsToJSON(json: any): PlayerStats;
|
|
369
|
+
declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignoreDiscriminator?: boolean): any;
|
|
370
|
+
|
|
371
|
+
interface Player {
|
|
372
|
+
person: PlayerPerson;
|
|
373
|
+
jerseyNumber?: string;
|
|
374
|
+
position: PlayerPosition;
|
|
375
|
+
status?: PlayerStatus;
|
|
376
|
+
parentTeamId?: number;
|
|
377
|
+
battingOrder?: number;
|
|
378
|
+
stats: PlayerStats;
|
|
379
|
+
seasonStats: PlayerSeasonStats;
|
|
380
|
+
gameStatus?: PlayerGameStatus;
|
|
381
|
+
allPositions?: Array<Position>;
|
|
382
|
+
type?: string;
|
|
383
|
+
gameScore?: number;
|
|
384
|
+
hittingGameScore?: number;
|
|
385
|
+
}
|
|
386
|
+
declare function instanceOfPlayer(value: object): value is Player;
|
|
387
|
+
declare function PlayerFromJSON(json: any): Player;
|
|
388
|
+
declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Player;
|
|
389
|
+
declare function PlayerToJSON(json: any): Player;
|
|
390
|
+
declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscriminator?: boolean): any;
|
|
391
|
+
|
|
176
392
|
interface LeagueDates {
|
|
177
393
|
seasonId?: string;
|
|
178
394
|
preSeasonStartDate?: string;
|
|
@@ -358,9 +574,33 @@ declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tea
|
|
|
358
574
|
declare function TeamToJSON(json: any): Team;
|
|
359
575
|
declare function TeamToJSONTyped(value?: Team | null, ignoreDiscriminator?: boolean): any;
|
|
360
576
|
|
|
577
|
+
interface TeamStats {
|
|
578
|
+
batting: BattingStats;
|
|
579
|
+
pitching: PitchingStats;
|
|
580
|
+
fielding: FieldingStats;
|
|
581
|
+
}
|
|
582
|
+
declare function instanceOfTeamStats(value: object): value is TeamStats;
|
|
583
|
+
declare function TeamStatsFromJSON(json: any): TeamStats;
|
|
584
|
+
declare function TeamStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamStats;
|
|
585
|
+
declare function TeamStatsToJSON(json: any): TeamStats;
|
|
586
|
+
declare function TeamStatsToJSONTyped(value?: TeamStats | null, ignoreDiscriminator?: boolean): any;
|
|
587
|
+
|
|
588
|
+
interface BoxscoreTeam {
|
|
589
|
+
team: Team;
|
|
590
|
+
teamStats: TeamStats;
|
|
591
|
+
players: {
|
|
592
|
+
[key: string]: Player;
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
declare function instanceOfBoxscoreTeam(value: object): value is BoxscoreTeam;
|
|
596
|
+
declare function BoxscoreTeamFromJSON(json: any): BoxscoreTeam;
|
|
597
|
+
declare function BoxscoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeam;
|
|
598
|
+
declare function BoxscoreTeamToJSON(json: any): BoxscoreTeam;
|
|
599
|
+
declare function BoxscoreTeamToJSONTyped(value?: BoxscoreTeam | null, ignoreDiscriminator?: boolean): any;
|
|
600
|
+
|
|
361
601
|
interface BoxscoreTeams {
|
|
362
|
-
away
|
|
363
|
-
home
|
|
602
|
+
away: BoxscoreTeam;
|
|
603
|
+
home: BoxscoreTeam;
|
|
364
604
|
}
|
|
365
605
|
declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
|
|
366
606
|
declare function BoxscoreTeamsFromJSON(json: any): BoxscoreTeams;
|
|
@@ -369,8 +609,8 @@ declare function BoxscoreTeamsToJSON(json: any): BoxscoreTeams;
|
|
|
369
609
|
declare function BoxscoreTeamsToJSONTyped(value?: BoxscoreTeams | null, ignoreDiscriminator?: boolean): any;
|
|
370
610
|
|
|
371
611
|
interface Boxscore {
|
|
372
|
-
teams
|
|
373
|
-
officials
|
|
612
|
+
teams: BoxscoreTeams;
|
|
613
|
+
officials: Array<GameOfficial>;
|
|
374
614
|
}
|
|
375
615
|
declare function instanceOfBoxscore(value: object): value is Boxscore;
|
|
376
616
|
declare function BoxscoreFromJSON(json: any): Boxscore;
|
|
@@ -690,4 +930,4 @@ declare class MlbApi extends BaseAPI {
|
|
|
690
930
|
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
|
|
691
931
|
}
|
|
692
932
|
|
|
693
|
-
export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, 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 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 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, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, instanceOfBoxscore, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeams, instanceOfVenue, mapValues, querystring };
|
|
933
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ interface RequestOpts {
|
|
|
95
95
|
body?: HTTPBody;
|
|
96
96
|
}
|
|
97
97
|
declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
98
|
+
declare function exists(json: any, key: string): boolean;
|
|
98
99
|
declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
99
100
|
declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
100
101
|
interface Consume {
|
|
@@ -152,6 +153,47 @@ declare class TextApiResponse {
|
|
|
152
153
|
value(): Promise<string>;
|
|
153
154
|
}
|
|
154
155
|
|
|
156
|
+
interface BattingStats {
|
|
157
|
+
flyOuts?: number;
|
|
158
|
+
groundOuts?: number;
|
|
159
|
+
airOuts?: number;
|
|
160
|
+
runs?: number;
|
|
161
|
+
doubles?: number;
|
|
162
|
+
triples?: number;
|
|
163
|
+
homeRuns?: number;
|
|
164
|
+
strikeOuts?: number;
|
|
165
|
+
baseOnBalls?: number;
|
|
166
|
+
intentionalWalks?: number;
|
|
167
|
+
hits?: number;
|
|
168
|
+
hitByPitch?: number;
|
|
169
|
+
avg?: string;
|
|
170
|
+
atBats?: number;
|
|
171
|
+
obp?: string;
|
|
172
|
+
slg?: string;
|
|
173
|
+
ops?: string;
|
|
174
|
+
caughtStealing?: number;
|
|
175
|
+
stolenBases?: number;
|
|
176
|
+
stolenBasePercentage?: string;
|
|
177
|
+
groundIntoDoublePlay?: number;
|
|
178
|
+
groundIntoTriplePlay?: number;
|
|
179
|
+
plateAppearances?: number;
|
|
180
|
+
totalBases?: number;
|
|
181
|
+
rbi?: number;
|
|
182
|
+
leftOnBase?: number;
|
|
183
|
+
sacBunts?: number;
|
|
184
|
+
sacFlies?: number;
|
|
185
|
+
catchersInterference?: number;
|
|
186
|
+
pickoffs?: number;
|
|
187
|
+
atBatsPerHomeRun?: string;
|
|
188
|
+
popOuts?: number;
|
|
189
|
+
lineOuts?: number;
|
|
190
|
+
}
|
|
191
|
+
declare function instanceOfBattingStats(value: object): value is BattingStats;
|
|
192
|
+
declare function BattingStatsFromJSON(json: any): BattingStats;
|
|
193
|
+
declare function BattingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BattingStats;
|
|
194
|
+
declare function BattingStatsToJSON(json: any): BattingStats;
|
|
195
|
+
declare function BattingStatsToJSONTyped(value?: BattingStats | null, ignoreDiscriminator?: boolean): any;
|
|
196
|
+
|
|
155
197
|
interface Official {
|
|
156
198
|
id?: number;
|
|
157
199
|
fullName?: string;
|
|
@@ -173,6 +215,180 @@ declare function GameOfficialFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
173
215
|
declare function GameOfficialToJSON(json: any): GameOfficial;
|
|
174
216
|
declare function GameOfficialToJSONTyped(value?: GameOfficial | null, ignoreDiscriminator?: boolean): any;
|
|
175
217
|
|
|
218
|
+
interface FieldingStats {
|
|
219
|
+
caughtStealing?: number;
|
|
220
|
+
stolenBases?: number;
|
|
221
|
+
stolenBasePercentage?: string;
|
|
222
|
+
assists?: number;
|
|
223
|
+
putOuts?: number;
|
|
224
|
+
errors?: number;
|
|
225
|
+
chances?: number;
|
|
226
|
+
passedBall?: number;
|
|
227
|
+
pickoffs?: number;
|
|
228
|
+
}
|
|
229
|
+
declare function instanceOfFieldingStats(value: object): value is FieldingStats;
|
|
230
|
+
declare function FieldingStatsFromJSON(json: any): FieldingStats;
|
|
231
|
+
declare function FieldingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldingStats;
|
|
232
|
+
declare function FieldingStatsToJSON(json: any): FieldingStats;
|
|
233
|
+
declare function FieldingStatsToJSONTyped(value?: FieldingStats | null, ignoreDiscriminator?: boolean): any;
|
|
234
|
+
|
|
235
|
+
interface PitchingStats {
|
|
236
|
+
flyOuts?: number;
|
|
237
|
+
groundOuts?: number;
|
|
238
|
+
airOuts?: number;
|
|
239
|
+
runs?: number;
|
|
240
|
+
doubles?: number;
|
|
241
|
+
triples?: number;
|
|
242
|
+
homeRuns?: number;
|
|
243
|
+
strikeOuts?: number;
|
|
244
|
+
baseOnBalls?: number;
|
|
245
|
+
intentionalWalks?: number;
|
|
246
|
+
hits?: number;
|
|
247
|
+
hitByPitch?: number;
|
|
248
|
+
atBats?: number;
|
|
249
|
+
obp?: string;
|
|
250
|
+
caughtStealing?: number;
|
|
251
|
+
stolenBases?: number;
|
|
252
|
+
stolenBasePercentage?: string;
|
|
253
|
+
numberOfPitches?: number;
|
|
254
|
+
era?: string;
|
|
255
|
+
inningsPitched?: string;
|
|
256
|
+
saveOpportunities?: number;
|
|
257
|
+
earnedRuns?: number;
|
|
258
|
+
whip?: string;
|
|
259
|
+
battersFaced?: number;
|
|
260
|
+
outs?: number;
|
|
261
|
+
completeGames?: number;
|
|
262
|
+
shutouts?: number;
|
|
263
|
+
pitchesThrown?: number;
|
|
264
|
+
balls?: number;
|
|
265
|
+
strikes?: number;
|
|
266
|
+
strikePercentage?: string;
|
|
267
|
+
hitBatsmen?: number;
|
|
268
|
+
balks?: number;
|
|
269
|
+
wildPitches?: number;
|
|
270
|
+
pickoffs?: number;
|
|
271
|
+
groundOutsToAirouts?: string;
|
|
272
|
+
rbi?: number;
|
|
273
|
+
pitchesPerInning?: string;
|
|
274
|
+
runsScoredPer9?: string;
|
|
275
|
+
homeRunsPer9?: string;
|
|
276
|
+
inheritedRunners?: number;
|
|
277
|
+
inheritedRunnersScored?: number;
|
|
278
|
+
catchersInterference?: number;
|
|
279
|
+
sacBunts?: number;
|
|
280
|
+
sacFlies?: number;
|
|
281
|
+
passedBall?: number;
|
|
282
|
+
popOuts?: number;
|
|
283
|
+
lineOuts?: number;
|
|
284
|
+
}
|
|
285
|
+
declare function instanceOfPitchingStats(value: object): value is PitchingStats;
|
|
286
|
+
declare function PitchingStatsFromJSON(json: any): PitchingStats;
|
|
287
|
+
declare function PitchingStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PitchingStats;
|
|
288
|
+
declare function PitchingStatsToJSON(json: any): PitchingStats;
|
|
289
|
+
declare function PitchingStatsToJSONTyped(value?: PitchingStats | null, ignoreDiscriminator?: boolean): any;
|
|
290
|
+
|
|
291
|
+
interface PlayerSeasonStats {
|
|
292
|
+
batting: BattingStats;
|
|
293
|
+
pitching: PitchingStats;
|
|
294
|
+
fielding: FieldingStats;
|
|
295
|
+
}
|
|
296
|
+
declare function instanceOfPlayerSeasonStats(value: object): value is PlayerSeasonStats;
|
|
297
|
+
declare function PlayerSeasonStatsFromJSON(json: any): PlayerSeasonStats;
|
|
298
|
+
declare function PlayerSeasonStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerSeasonStats;
|
|
299
|
+
declare function PlayerSeasonStatsToJSON(json: any): PlayerSeasonStats;
|
|
300
|
+
declare function PlayerSeasonStatsToJSONTyped(value?: PlayerSeasonStats | null, ignoreDiscriminator?: boolean): any;
|
|
301
|
+
|
|
302
|
+
interface PlayerGameStatus {
|
|
303
|
+
isCurrentBatter?: boolean;
|
|
304
|
+
isCurrentPitcher?: boolean;
|
|
305
|
+
isOnBench?: boolean;
|
|
306
|
+
isSubstitute?: boolean;
|
|
307
|
+
}
|
|
308
|
+
declare function instanceOfPlayerGameStatus(value: object): value is PlayerGameStatus;
|
|
309
|
+
declare function PlayerGameStatusFromJSON(json: any): PlayerGameStatus;
|
|
310
|
+
declare function PlayerGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerGameStatus;
|
|
311
|
+
declare function PlayerGameStatusToJSON(json: any): PlayerGameStatus;
|
|
312
|
+
declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | null, ignoreDiscriminator?: boolean): any;
|
|
313
|
+
|
|
314
|
+
interface Position {
|
|
315
|
+
code?: string;
|
|
316
|
+
name?: string;
|
|
317
|
+
type?: string;
|
|
318
|
+
abbreviation?: string;
|
|
319
|
+
}
|
|
320
|
+
declare function instanceOfPosition(value: object): value is Position;
|
|
321
|
+
declare function PositionFromJSON(json: any): Position;
|
|
322
|
+
declare function PositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Position;
|
|
323
|
+
declare function PositionToJSON(json: any): Position;
|
|
324
|
+
declare function PositionToJSONTyped(value?: Position | null, ignoreDiscriminator?: boolean): any;
|
|
325
|
+
|
|
326
|
+
interface PlayerPerson {
|
|
327
|
+
id: string;
|
|
328
|
+
fullName: string;
|
|
329
|
+
link: string;
|
|
330
|
+
boxscoreName: string;
|
|
331
|
+
}
|
|
332
|
+
declare function instanceOfPlayerPerson(value: object): value is PlayerPerson;
|
|
333
|
+
declare function PlayerPersonFromJSON(json: any): PlayerPerson;
|
|
334
|
+
declare function PlayerPersonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPerson;
|
|
335
|
+
declare function PlayerPersonToJSON(json: any): PlayerPerson;
|
|
336
|
+
declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ignoreDiscriminator?: boolean): any;
|
|
337
|
+
|
|
338
|
+
interface PlayerPosition {
|
|
339
|
+
code?: string;
|
|
340
|
+
name?: string;
|
|
341
|
+
type?: string;
|
|
342
|
+
abbreviation?: string;
|
|
343
|
+
}
|
|
344
|
+
declare function instanceOfPlayerPosition(value: object): value is PlayerPosition;
|
|
345
|
+
declare function PlayerPositionFromJSON(json: any): PlayerPosition;
|
|
346
|
+
declare function PlayerPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerPosition;
|
|
347
|
+
declare function PlayerPositionToJSON(json: any): PlayerPosition;
|
|
348
|
+
declare function PlayerPositionToJSONTyped(value?: PlayerPosition | null, ignoreDiscriminator?: boolean): any;
|
|
349
|
+
|
|
350
|
+
interface PlayerStatus {
|
|
351
|
+
code?: string;
|
|
352
|
+
description?: string;
|
|
353
|
+
}
|
|
354
|
+
declare function instanceOfPlayerStatus(value: object): value is PlayerStatus;
|
|
355
|
+
declare function PlayerStatusFromJSON(json: any): PlayerStatus;
|
|
356
|
+
declare function PlayerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStatus;
|
|
357
|
+
declare function PlayerStatusToJSON(json: any): PlayerStatus;
|
|
358
|
+
declare function PlayerStatusToJSONTyped(value?: PlayerStatus | null, ignoreDiscriminator?: boolean): any;
|
|
359
|
+
|
|
360
|
+
interface PlayerStats {
|
|
361
|
+
batting: BattingStats;
|
|
362
|
+
pitching: PitchingStats;
|
|
363
|
+
fielding: FieldingStats;
|
|
364
|
+
}
|
|
365
|
+
declare function instanceOfPlayerStats(value: object): value is PlayerStats;
|
|
366
|
+
declare function PlayerStatsFromJSON(json: any): PlayerStats;
|
|
367
|
+
declare function PlayerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerStats;
|
|
368
|
+
declare function PlayerStatsToJSON(json: any): PlayerStats;
|
|
369
|
+
declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignoreDiscriminator?: boolean): any;
|
|
370
|
+
|
|
371
|
+
interface Player {
|
|
372
|
+
person: PlayerPerson;
|
|
373
|
+
jerseyNumber?: string;
|
|
374
|
+
position: PlayerPosition;
|
|
375
|
+
status?: PlayerStatus;
|
|
376
|
+
parentTeamId?: number;
|
|
377
|
+
battingOrder?: number;
|
|
378
|
+
stats: PlayerStats;
|
|
379
|
+
seasonStats: PlayerSeasonStats;
|
|
380
|
+
gameStatus?: PlayerGameStatus;
|
|
381
|
+
allPositions?: Array<Position>;
|
|
382
|
+
type?: string;
|
|
383
|
+
gameScore?: number;
|
|
384
|
+
hittingGameScore?: number;
|
|
385
|
+
}
|
|
386
|
+
declare function instanceOfPlayer(value: object): value is Player;
|
|
387
|
+
declare function PlayerFromJSON(json: any): Player;
|
|
388
|
+
declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Player;
|
|
389
|
+
declare function PlayerToJSON(json: any): Player;
|
|
390
|
+
declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscriminator?: boolean): any;
|
|
391
|
+
|
|
176
392
|
interface LeagueDates {
|
|
177
393
|
seasonId?: string;
|
|
178
394
|
preSeasonStartDate?: string;
|
|
@@ -358,9 +574,33 @@ declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tea
|
|
|
358
574
|
declare function TeamToJSON(json: any): Team;
|
|
359
575
|
declare function TeamToJSONTyped(value?: Team | null, ignoreDiscriminator?: boolean): any;
|
|
360
576
|
|
|
577
|
+
interface TeamStats {
|
|
578
|
+
batting: BattingStats;
|
|
579
|
+
pitching: PitchingStats;
|
|
580
|
+
fielding: FieldingStats;
|
|
581
|
+
}
|
|
582
|
+
declare function instanceOfTeamStats(value: object): value is TeamStats;
|
|
583
|
+
declare function TeamStatsFromJSON(json: any): TeamStats;
|
|
584
|
+
declare function TeamStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamStats;
|
|
585
|
+
declare function TeamStatsToJSON(json: any): TeamStats;
|
|
586
|
+
declare function TeamStatsToJSONTyped(value?: TeamStats | null, ignoreDiscriminator?: boolean): any;
|
|
587
|
+
|
|
588
|
+
interface BoxscoreTeam {
|
|
589
|
+
team: Team;
|
|
590
|
+
teamStats: TeamStats;
|
|
591
|
+
players: {
|
|
592
|
+
[key: string]: Player;
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
declare function instanceOfBoxscoreTeam(value: object): value is BoxscoreTeam;
|
|
596
|
+
declare function BoxscoreTeamFromJSON(json: any): BoxscoreTeam;
|
|
597
|
+
declare function BoxscoreTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxscoreTeam;
|
|
598
|
+
declare function BoxscoreTeamToJSON(json: any): BoxscoreTeam;
|
|
599
|
+
declare function BoxscoreTeamToJSONTyped(value?: BoxscoreTeam | null, ignoreDiscriminator?: boolean): any;
|
|
600
|
+
|
|
361
601
|
interface BoxscoreTeams {
|
|
362
|
-
away
|
|
363
|
-
home
|
|
602
|
+
away: BoxscoreTeam;
|
|
603
|
+
home: BoxscoreTeam;
|
|
364
604
|
}
|
|
365
605
|
declare function instanceOfBoxscoreTeams(value: object): value is BoxscoreTeams;
|
|
366
606
|
declare function BoxscoreTeamsFromJSON(json: any): BoxscoreTeams;
|
|
@@ -369,8 +609,8 @@ declare function BoxscoreTeamsToJSON(json: any): BoxscoreTeams;
|
|
|
369
609
|
declare function BoxscoreTeamsToJSONTyped(value?: BoxscoreTeams | null, ignoreDiscriminator?: boolean): any;
|
|
370
610
|
|
|
371
611
|
interface Boxscore {
|
|
372
|
-
teams
|
|
373
|
-
officials
|
|
612
|
+
teams: BoxscoreTeams;
|
|
613
|
+
officials: Array<GameOfficial>;
|
|
374
614
|
}
|
|
375
615
|
declare function instanceOfBoxscore(value: object): value is Boxscore;
|
|
376
616
|
declare function BoxscoreFromJSON(json: any): Boxscore;
|
|
@@ -690,4 +930,4 @@ declare class MlbApi extends BaseAPI {
|
|
|
690
930
|
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
|
|
691
931
|
}
|
|
692
932
|
|
|
693
|
-
export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, type Boxscore, BoxscoreFromJSON, BoxscoreFromJSONTyped, 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 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 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, TeamToJSON, TeamToJSONTyped, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TeamsToJSONTyped, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VenueToJSONTyped, VoidApiResponse, canConsumeForm, instanceOfBoxscore, instanceOfBoxscoreTeams, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfGame, instanceOfGameOfficial, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfInning, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfLinescore, instanceOfLinescoreTeam, instanceOfLinescoreTeams, instanceOfOfficial, instanceOfRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeams, instanceOfVenue, mapValues, querystring };
|
|
933
|
+
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 };
|