@bp1222/stats-api 0.1.8 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +225 -213
- package/dist/index.d.ts +225 -213
- package/dist/index.js +589 -527
- package/dist/index.mjs +498 -444
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -152,7 +152,7 @@ declare class TextApiResponse {
|
|
|
152
152
|
value(): Promise<string>;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
interface
|
|
155
|
+
interface LeagueDates {
|
|
156
156
|
seasonId?: string;
|
|
157
157
|
preSeasonStartDate?: string;
|
|
158
158
|
preSeasonEndDate?: string;
|
|
@@ -164,12 +164,12 @@ interface MLBLeagueDates {
|
|
|
164
164
|
seasonLevelGamedayType?: string;
|
|
165
165
|
gameLevelGamedayType?: string;
|
|
166
166
|
}
|
|
167
|
-
declare function
|
|
168
|
-
declare function
|
|
169
|
-
declare function
|
|
170
|
-
declare function
|
|
167
|
+
declare function instanceOfLeagueDates(value: object): value is LeagueDates;
|
|
168
|
+
declare function LeagueDatesFromJSON(json: any): LeagueDates;
|
|
169
|
+
declare function LeagueDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueDates;
|
|
170
|
+
declare function LeagueDatesToJSON(value?: LeagueDates | null): any;
|
|
171
171
|
|
|
172
|
-
interface
|
|
172
|
+
interface League {
|
|
173
173
|
id: number;
|
|
174
174
|
name: string;
|
|
175
175
|
link?: string;
|
|
@@ -179,7 +179,7 @@ interface MLBLeague {
|
|
|
179
179
|
hasWildCard?: boolean;
|
|
180
180
|
hasSplitSeason?: boolean;
|
|
181
181
|
hasPlayoffPoints?: boolean;
|
|
182
|
-
seasonDateInfo?:
|
|
182
|
+
seasonDateInfo?: LeagueDates;
|
|
183
183
|
season?: string;
|
|
184
184
|
orgCode?: string;
|
|
185
185
|
conferencesInUse?: boolean;
|
|
@@ -187,12 +187,12 @@ interface MLBLeague {
|
|
|
187
187
|
sortOrder?: number;
|
|
188
188
|
active?: boolean;
|
|
189
189
|
}
|
|
190
|
-
declare function
|
|
191
|
-
declare function
|
|
192
|
-
declare function
|
|
193
|
-
declare function
|
|
190
|
+
declare function instanceOfLeague(value: object): value is League;
|
|
191
|
+
declare function LeagueFromJSON(json: any): League;
|
|
192
|
+
declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): League;
|
|
193
|
+
declare function LeagueToJSON(value?: League | null): any;
|
|
194
194
|
|
|
195
|
-
interface
|
|
195
|
+
interface Sport {
|
|
196
196
|
id: number;
|
|
197
197
|
code?: string;
|
|
198
198
|
link?: string;
|
|
@@ -201,130 +201,224 @@ interface MLBSport {
|
|
|
201
201
|
sortOrder?: number;
|
|
202
202
|
activeStatus?: boolean;
|
|
203
203
|
}
|
|
204
|
-
declare function
|
|
205
|
-
declare function
|
|
206
|
-
declare function
|
|
207
|
-
declare function
|
|
204
|
+
declare function instanceOfSport(value: object): value is Sport;
|
|
205
|
+
declare function SportFromJSON(json: any): Sport;
|
|
206
|
+
declare function SportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sport;
|
|
207
|
+
declare function SportToJSON(value?: Sport | null): any;
|
|
208
208
|
|
|
209
|
-
interface
|
|
209
|
+
interface Division {
|
|
210
210
|
id: number;
|
|
211
211
|
name: string;
|
|
212
212
|
season?: string;
|
|
213
213
|
nameShort?: string;
|
|
214
214
|
link?: string;
|
|
215
215
|
abbreviation?: string;
|
|
216
|
-
league?:
|
|
217
|
-
sport?:
|
|
216
|
+
league?: League;
|
|
217
|
+
sport?: Sport;
|
|
218
218
|
hasWildcard?: boolean;
|
|
219
219
|
sortOrder?: number;
|
|
220
220
|
numPlayoffTeams?: number;
|
|
221
221
|
active?: boolean;
|
|
222
222
|
}
|
|
223
|
-
declare function
|
|
224
|
-
declare function
|
|
225
|
-
declare function
|
|
226
|
-
declare function
|
|
223
|
+
declare function instanceOfDivision(value: object): value is Division;
|
|
224
|
+
declare function DivisionFromJSON(json: any): Division;
|
|
225
|
+
declare function DivisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Division;
|
|
226
|
+
declare function DivisionToJSON(value?: Division | null): any;
|
|
227
227
|
|
|
228
|
-
interface
|
|
228
|
+
interface Streak {
|
|
229
|
+
streakType?: StreakStreakTypeEnum;
|
|
230
|
+
}
|
|
231
|
+
declare const StreakStreakTypeEnum: {
|
|
232
|
+
readonly Losing: "losses";
|
|
233
|
+
readonly Winning: "wins";
|
|
234
|
+
};
|
|
235
|
+
type StreakStreakTypeEnum = typeof StreakStreakTypeEnum[keyof typeof StreakStreakTypeEnum];
|
|
236
|
+
declare function instanceOfStreak(value: object): value is Streak;
|
|
237
|
+
declare function StreakFromJSON(json: any): Streak;
|
|
238
|
+
declare function StreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): Streak;
|
|
239
|
+
declare function StreakToJSON(value?: Streak | null): any;
|
|
240
|
+
|
|
241
|
+
interface Venue {
|
|
229
242
|
id: number;
|
|
230
243
|
name: string;
|
|
231
244
|
link?: string;
|
|
232
245
|
active?: boolean;
|
|
233
246
|
season?: string;
|
|
234
247
|
}
|
|
235
|
-
declare function
|
|
236
|
-
declare function
|
|
237
|
-
declare function
|
|
238
|
-
declare function
|
|
248
|
+
declare function instanceOfVenue(value: object): value is Venue;
|
|
249
|
+
declare function VenueFromJSON(json: any): Venue;
|
|
250
|
+
declare function VenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): Venue;
|
|
251
|
+
declare function VenueToJSON(value?: Venue | null): any;
|
|
239
252
|
|
|
240
|
-
interface
|
|
241
|
-
abstractGameState?: string;
|
|
242
|
-
codedGameState?: MLBGameStatusCodedGameStateEnum;
|
|
243
|
-
detailedState?: string;
|
|
244
|
-
statusCode?: string;
|
|
245
|
-
startTimeTBD?: boolean;
|
|
246
|
-
abstractGameCode?: string;
|
|
247
|
-
}
|
|
248
|
-
declare const MLBGameStatusCodedGameStateEnum: {
|
|
249
|
-
readonly Final: "F";
|
|
250
|
-
readonly Postponed: "D";
|
|
251
|
-
readonly Scheduled: "S";
|
|
252
|
-
readonly InProgress: "I";
|
|
253
|
-
readonly Pregame: "P";
|
|
254
|
-
readonly GameOver: "O";
|
|
255
|
-
};
|
|
256
|
-
type MLBGameStatusCodedGameStateEnum = typeof MLBGameStatusCodedGameStateEnum[keyof typeof MLBGameStatusCodedGameStateEnum];
|
|
257
|
-
declare function instanceOfMLBGameStatus(value: object): value is MLBGameStatus;
|
|
258
|
-
declare function MLBGameStatusFromJSON(json: any): MLBGameStatus;
|
|
259
|
-
declare function MLBGameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBGameStatus;
|
|
260
|
-
declare function MLBGameStatusToJSON(value?: MLBGameStatus | null): any;
|
|
261
|
-
|
|
262
|
-
interface MLBTeam {
|
|
253
|
+
interface Team {
|
|
263
254
|
id: number;
|
|
264
255
|
name: string;
|
|
265
256
|
link?: string;
|
|
266
257
|
allStarStatus?: string;
|
|
267
258
|
season?: number;
|
|
268
|
-
venue?:
|
|
269
|
-
springVenue?:
|
|
259
|
+
venue?: Venue;
|
|
260
|
+
springVenue?: Venue;
|
|
270
261
|
teamCode?: string;
|
|
271
262
|
fileCode?: string;
|
|
272
263
|
abbreviation?: string;
|
|
273
264
|
teamName?: string;
|
|
274
265
|
locationName?: string;
|
|
275
266
|
firstYearOfPlay?: string;
|
|
276
|
-
league?:
|
|
277
|
-
springLeague?:
|
|
278
|
-
division?:
|
|
279
|
-
sport?:
|
|
267
|
+
league?: League;
|
|
268
|
+
springLeague?: League;
|
|
269
|
+
division?: Division;
|
|
270
|
+
sport?: Sport;
|
|
280
271
|
shortName?: string;
|
|
281
272
|
franchiseName?: string;
|
|
282
273
|
clubName?: string;
|
|
283
274
|
active?: boolean;
|
|
284
275
|
}
|
|
285
|
-
declare function
|
|
286
|
-
declare function
|
|
287
|
-
declare function
|
|
288
|
-
declare function
|
|
276
|
+
declare function instanceOfTeam(value: object): value is Team;
|
|
277
|
+
declare function TeamFromJSON(json: any): Team;
|
|
278
|
+
declare function TeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): Team;
|
|
279
|
+
declare function TeamToJSON(value?: Team | null): any;
|
|
289
280
|
|
|
290
|
-
interface
|
|
281
|
+
interface LeagueRecord {
|
|
291
282
|
wins: number;
|
|
292
283
|
losses: number;
|
|
293
284
|
ties?: number;
|
|
294
285
|
pct: string;
|
|
295
286
|
}
|
|
296
|
-
declare function
|
|
297
|
-
declare function
|
|
298
|
-
declare function
|
|
299
|
-
declare function
|
|
287
|
+
declare function instanceOfLeagueRecord(value: object): value is LeagueRecord;
|
|
288
|
+
declare function LeagueRecordFromJSON(json: any): LeagueRecord;
|
|
289
|
+
declare function LeagueRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeagueRecord;
|
|
290
|
+
declare function LeagueRecordToJSON(value?: LeagueRecord | null): any;
|
|
291
|
+
|
|
292
|
+
interface TeamRecord {
|
|
293
|
+
team: Team;
|
|
294
|
+
season: string;
|
|
295
|
+
streak: Streak;
|
|
296
|
+
divisionRank: string;
|
|
297
|
+
leagueRank: string;
|
|
298
|
+
sportRank?: string;
|
|
299
|
+
gamesPlayed?: number;
|
|
300
|
+
gamesBack: string;
|
|
301
|
+
wildCardGamesBack?: string;
|
|
302
|
+
leagueGamesBack?: string;
|
|
303
|
+
sportGamesBack?: string;
|
|
304
|
+
divisionGamesBack?: string;
|
|
305
|
+
conferenceGamesBack?: string;
|
|
306
|
+
leagueRecord: LeagueRecord;
|
|
307
|
+
lastUpdated?: string;
|
|
308
|
+
runsAllowed?: number;
|
|
309
|
+
runsScored?: number;
|
|
310
|
+
divisionChamp?: boolean;
|
|
311
|
+
divisionLeader?: boolean;
|
|
312
|
+
hasWildcard?: boolean;
|
|
313
|
+
clinched?: boolean;
|
|
314
|
+
eliminationNumber?: string;
|
|
315
|
+
eliminationNumberSport?: string;
|
|
316
|
+
eliminationNumberLeague?: string;
|
|
317
|
+
eliminationNumberDivision?: string;
|
|
318
|
+
eliminationNumberConference?: string;
|
|
319
|
+
wildCardEliminationNumber?: string;
|
|
320
|
+
magicNumber?: string;
|
|
321
|
+
wins: number;
|
|
322
|
+
losses: number;
|
|
323
|
+
runDifferential?: number;
|
|
324
|
+
winningPercentage?: string;
|
|
325
|
+
}
|
|
326
|
+
declare function instanceOfTeamRecord(value: object): value is TeamRecord;
|
|
327
|
+
declare function TeamRecordFromJSON(json: any): TeamRecord;
|
|
328
|
+
declare function TeamRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamRecord;
|
|
329
|
+
declare function TeamRecordToJSON(value?: TeamRecord | null): any;
|
|
330
|
+
|
|
331
|
+
interface DivisionStandings {
|
|
332
|
+
standingsType?: string;
|
|
333
|
+
league: League;
|
|
334
|
+
division: Division;
|
|
335
|
+
sport: Sport;
|
|
336
|
+
lastUpdated?: string;
|
|
337
|
+
teamRecords: Array<TeamRecord>;
|
|
338
|
+
}
|
|
339
|
+
declare function instanceOfDivisionStandings(value: object): value is DivisionStandings;
|
|
340
|
+
declare function DivisionStandingsFromJSON(json: any): DivisionStandings;
|
|
341
|
+
declare function DivisionStandingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandings;
|
|
342
|
+
declare function DivisionStandingsToJSON(value?: DivisionStandings | null): any;
|
|
343
|
+
|
|
344
|
+
interface DivisionStandingsList {
|
|
345
|
+
records?: Array<DivisionStandings>;
|
|
346
|
+
}
|
|
347
|
+
declare function instanceOfDivisionStandingsList(value: object): value is DivisionStandingsList;
|
|
348
|
+
declare function DivisionStandingsListFromJSON(json: any): DivisionStandingsList;
|
|
349
|
+
declare function DivisionStandingsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): DivisionStandingsList;
|
|
350
|
+
declare function DivisionStandingsListToJSON(value?: DivisionStandingsList | null): any;
|
|
351
|
+
|
|
352
|
+
declare const GameStatusCode: {
|
|
353
|
+
readonly Final: "F";
|
|
354
|
+
readonly Postponed: "D";
|
|
355
|
+
readonly Scheduled: "S";
|
|
356
|
+
readonly InProgress: "I";
|
|
357
|
+
readonly Pregame: "P";
|
|
358
|
+
readonly GameOver: "O";
|
|
359
|
+
readonly Canceled: "C";
|
|
360
|
+
};
|
|
361
|
+
type GameStatusCode = typeof GameStatusCode[keyof typeof GameStatusCode];
|
|
362
|
+
declare function instanceOfGameStatusCode(value: any): boolean;
|
|
363
|
+
declare function GameStatusCodeFromJSON(json: any): GameStatusCode;
|
|
364
|
+
declare function GameStatusCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatusCode;
|
|
365
|
+
declare function GameStatusCodeToJSON(value?: GameStatusCode | null): any;
|
|
366
|
+
|
|
367
|
+
interface GameStatus {
|
|
368
|
+
abstractGameState?: string;
|
|
369
|
+
codedGameState?: GameStatusCode;
|
|
370
|
+
detailedState?: string;
|
|
371
|
+
statusCode?: string;
|
|
372
|
+
startTimeTBD?: boolean;
|
|
373
|
+
abstractGameCode?: string;
|
|
374
|
+
}
|
|
375
|
+
declare function instanceOfGameStatus(value: object): value is GameStatus;
|
|
376
|
+
declare function GameStatusFromJSON(json: any): GameStatus;
|
|
377
|
+
declare function GameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatus;
|
|
378
|
+
declare function GameStatusToJSON(value?: GameStatus | null): any;
|
|
300
379
|
|
|
301
|
-
interface
|
|
302
|
-
leagueRecord?:
|
|
380
|
+
interface GameTeam {
|
|
381
|
+
leagueRecord?: LeagueRecord;
|
|
303
382
|
score: number;
|
|
304
|
-
team:
|
|
383
|
+
team: Team;
|
|
305
384
|
isWinner: boolean;
|
|
306
385
|
splitSquad?: boolean;
|
|
307
386
|
seriesNumber?: number;
|
|
308
387
|
}
|
|
309
|
-
declare function
|
|
310
|
-
declare function
|
|
311
|
-
declare function
|
|
312
|
-
declare function
|
|
388
|
+
declare function instanceOfGameTeam(value: object): value is GameTeam;
|
|
389
|
+
declare function GameTeamFromJSON(json: any): GameTeam;
|
|
390
|
+
declare function GameTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeam;
|
|
391
|
+
declare function GameTeamToJSON(value?: GameTeam | null): any;
|
|
313
392
|
|
|
314
|
-
interface
|
|
315
|
-
away:
|
|
316
|
-
home:
|
|
317
|
-
}
|
|
318
|
-
declare function
|
|
319
|
-
declare function
|
|
320
|
-
declare function
|
|
321
|
-
declare function
|
|
393
|
+
interface GameTeams {
|
|
394
|
+
away: GameTeam;
|
|
395
|
+
home: GameTeam;
|
|
396
|
+
}
|
|
397
|
+
declare function instanceOfGameTeams(value: object): value is GameTeams;
|
|
398
|
+
declare function GameTeamsFromJSON(json: any): GameTeams;
|
|
399
|
+
declare function GameTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeams;
|
|
400
|
+
declare function GameTeamsToJSON(value?: GameTeams | null): any;
|
|
322
401
|
|
|
323
|
-
|
|
402
|
+
declare const GameType: {
|
|
403
|
+
readonly Exhibition: "E";
|
|
404
|
+
readonly SpringTraining: "S";
|
|
405
|
+
readonly Regular: "R";
|
|
406
|
+
readonly WildCardSeries: "F";
|
|
407
|
+
readonly DivisionSeries: "D";
|
|
408
|
+
readonly LeagueChampionshipSeries: "L";
|
|
409
|
+
readonly WorldSeries: "W";
|
|
410
|
+
};
|
|
411
|
+
type GameType = typeof GameType[keyof typeof GameType];
|
|
412
|
+
declare function instanceOfGameType(value: any): boolean;
|
|
413
|
+
declare function GameTypeFromJSON(json: any): GameType;
|
|
414
|
+
declare function GameTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameType;
|
|
415
|
+
declare function GameTypeToJSON(value?: GameType | null): any;
|
|
416
|
+
|
|
417
|
+
interface Game {
|
|
324
418
|
gamePk: number;
|
|
325
419
|
gameGuid: string;
|
|
326
420
|
link?: string;
|
|
327
|
-
gameType:
|
|
421
|
+
gameType: GameType;
|
|
328
422
|
season: number;
|
|
329
423
|
gameDate: string;
|
|
330
424
|
officialDate: string;
|
|
@@ -332,9 +426,9 @@ interface MLBGame {
|
|
|
332
426
|
rescheduledToDate?: string;
|
|
333
427
|
rescheduledFrom?: number;
|
|
334
428
|
rescheduledFromDate?: string;
|
|
335
|
-
status:
|
|
336
|
-
teams:
|
|
337
|
-
venue?:
|
|
429
|
+
status: GameStatus;
|
|
430
|
+
teams: GameTeams;
|
|
431
|
+
venue?: Venue;
|
|
338
432
|
isTie?: boolean;
|
|
339
433
|
gameNumber: number;
|
|
340
434
|
publicFacing?: boolean;
|
|
@@ -355,99 +449,37 @@ interface MLBGame {
|
|
|
355
449
|
ifNecessary?: string;
|
|
356
450
|
ifNecessaryDescription?: string;
|
|
357
451
|
}
|
|
358
|
-
declare
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
readonly WildCardSeries: "F";
|
|
363
|
-
readonly DivisionSeries: "D";
|
|
364
|
-
readonly LeagueChampionshipSeries: "L";
|
|
365
|
-
readonly WorldSeries: "W";
|
|
366
|
-
};
|
|
367
|
-
type MLBGameGameTypeEnum = typeof MLBGameGameTypeEnum[keyof typeof MLBGameGameTypeEnum];
|
|
368
|
-
declare function instanceOfMLBGame(value: object): value is MLBGame;
|
|
369
|
-
declare function MLBGameFromJSON(json: any): MLBGame;
|
|
370
|
-
declare function MLBGameFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBGame;
|
|
371
|
-
declare function MLBGameToJSON(value?: MLBGame | null): any;
|
|
372
|
-
|
|
373
|
-
interface MLBStreak {
|
|
374
|
-
streakType?: MLBStreakStreakTypeEnum;
|
|
375
|
-
}
|
|
376
|
-
declare const MLBStreakStreakTypeEnum: {
|
|
377
|
-
readonly Losing: "losses";
|
|
378
|
-
readonly Winning: "wins";
|
|
379
|
-
};
|
|
380
|
-
type MLBStreakStreakTypeEnum = typeof MLBStreakStreakTypeEnum[keyof typeof MLBStreakStreakTypeEnum];
|
|
381
|
-
declare function instanceOfMLBStreak(value: object): value is MLBStreak;
|
|
382
|
-
declare function MLBStreakFromJSON(json: any): MLBStreak;
|
|
383
|
-
declare function MLBStreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBStreak;
|
|
384
|
-
declare function MLBStreakToJSON(value?: MLBStreak | null): any;
|
|
452
|
+
declare function instanceOfGame(value: object): value is Game;
|
|
453
|
+
declare function GameFromJSON(json: any): Game;
|
|
454
|
+
declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
|
|
455
|
+
declare function GameToJSON(value?: Game | null): any;
|
|
385
456
|
|
|
386
|
-
interface
|
|
387
|
-
team: MLBTeam;
|
|
388
|
-
season: string;
|
|
389
|
-
streak: MLBStreak;
|
|
390
|
-
divisionRank: string;
|
|
391
|
-
leagueRank: string;
|
|
392
|
-
sportRank?: string;
|
|
393
|
-
gamesPlayed?: number;
|
|
394
|
-
gamesBack: string;
|
|
395
|
-
wildCardGamesBack?: string;
|
|
396
|
-
leagueGamesBack?: string;
|
|
397
|
-
sportGamesBack?: string;
|
|
398
|
-
divisionGamesBack?: string;
|
|
399
|
-
conferenceGamesBack?: string;
|
|
400
|
-
leagueRecord: MLBLeagueRecord;
|
|
401
|
-
lastUpdated?: string;
|
|
402
|
-
runsAllowed?: number;
|
|
403
|
-
runsScored?: number;
|
|
404
|
-
divisionChamp?: boolean;
|
|
405
|
-
divisionLeader?: boolean;
|
|
406
|
-
hasWildcard?: boolean;
|
|
407
|
-
clinched?: boolean;
|
|
408
|
-
eliminationNumber?: string;
|
|
409
|
-
eliminationNumberSport?: string;
|
|
410
|
-
eliminationNumberLeague?: string;
|
|
411
|
-
eliminationNumberDivision?: string;
|
|
412
|
-
eliminationNumberConference?: string;
|
|
413
|
-
wildCardEliminationNumber?: string;
|
|
414
|
-
magicNumber?: string;
|
|
415
|
-
wins: number;
|
|
416
|
-
losses: number;
|
|
417
|
-
runDifferential?: number;
|
|
418
|
-
winningPercentage?: string;
|
|
419
|
-
}
|
|
420
|
-
declare function instanceOfMLBRecord(value: object): value is MLBRecord;
|
|
421
|
-
declare function MLBRecordFromJSON(json: any): MLBRecord;
|
|
422
|
-
declare function MLBRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBRecord;
|
|
423
|
-
declare function MLBRecordToJSON(value?: MLBRecord | null): any;
|
|
424
|
-
|
|
425
|
-
interface MLBScheduleDay {
|
|
457
|
+
interface ScheduleDay {
|
|
426
458
|
date?: string;
|
|
427
459
|
totalItems?: number;
|
|
428
460
|
totalEvents?: number;
|
|
429
461
|
totalGames?: number;
|
|
430
462
|
totalGamesInProgress?: number;
|
|
431
|
-
games: Array<
|
|
463
|
+
games: Array<Game>;
|
|
432
464
|
}
|
|
433
|
-
declare function
|
|
434
|
-
declare function
|
|
435
|
-
declare function
|
|
436
|
-
declare function
|
|
465
|
+
declare function instanceOfScheduleDay(value: object): value is ScheduleDay;
|
|
466
|
+
declare function ScheduleDayFromJSON(json: any): ScheduleDay;
|
|
467
|
+
declare function ScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleDay;
|
|
468
|
+
declare function ScheduleDayToJSON(value?: ScheduleDay | null): any;
|
|
437
469
|
|
|
438
|
-
interface
|
|
470
|
+
interface Schedule {
|
|
439
471
|
totalItems: number;
|
|
440
472
|
totalEvents: number;
|
|
441
473
|
totalGames: number;
|
|
442
474
|
totalGamesInProgress: number;
|
|
443
|
-
dates: Array<
|
|
475
|
+
dates: Array<ScheduleDay>;
|
|
444
476
|
}
|
|
445
|
-
declare function
|
|
446
|
-
declare function
|
|
447
|
-
declare function
|
|
448
|
-
declare function
|
|
477
|
+
declare function instanceOfSchedule(value: object): value is Schedule;
|
|
478
|
+
declare function ScheduleFromJSON(json: any): Schedule;
|
|
479
|
+
declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
|
|
480
|
+
declare function ScheduleToJSON(value?: Schedule | null): any;
|
|
449
481
|
|
|
450
|
-
interface
|
|
482
|
+
interface Season {
|
|
451
483
|
seasonId: string;
|
|
452
484
|
hasWildcard?: boolean;
|
|
453
485
|
preSeasonStartDate?: string;
|
|
@@ -470,47 +502,26 @@ interface MLBSeason {
|
|
|
470
502
|
qualifierPlateAppearances?: number;
|
|
471
503
|
qualifierOutsPitched?: number;
|
|
472
504
|
}
|
|
473
|
-
declare function
|
|
474
|
-
declare function
|
|
475
|
-
declare function
|
|
476
|
-
declare function
|
|
477
|
-
|
|
478
|
-
interface MLBSeasons {
|
|
479
|
-
seasons?: Array<MLBSeason>;
|
|
480
|
-
}
|
|
481
|
-
declare function instanceOfMLBSeasons(value: object): value is MLBSeasons;
|
|
482
|
-
declare function MLBSeasonsFromJSON(json: any): MLBSeasons;
|
|
483
|
-
declare function MLBSeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBSeasons;
|
|
484
|
-
declare function MLBSeasonsToJSON(value?: MLBSeasons | null): any;
|
|
485
|
-
|
|
486
|
-
interface MLBStandings {
|
|
487
|
-
standingsType?: string;
|
|
488
|
-
league: MLBLeague;
|
|
489
|
-
division: MLBDivision;
|
|
490
|
-
sport: MLBSport;
|
|
491
|
-
lastUpdated?: string;
|
|
492
|
-
teamRecords: Array<MLBRecord>;
|
|
493
|
-
}
|
|
494
|
-
declare function instanceOfMLBStandings(value: object): value is MLBStandings;
|
|
495
|
-
declare function MLBStandingsFromJSON(json: any): MLBStandings;
|
|
496
|
-
declare function MLBStandingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBStandings;
|
|
497
|
-
declare function MLBStandingsToJSON(value?: MLBStandings | null): any;
|
|
505
|
+
declare function instanceOfSeason(value: object): value is Season;
|
|
506
|
+
declare function SeasonFromJSON(json: any): Season;
|
|
507
|
+
declare function SeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Season;
|
|
508
|
+
declare function SeasonToJSON(value?: Season | null): any;
|
|
498
509
|
|
|
499
|
-
interface
|
|
500
|
-
|
|
510
|
+
interface Seasons {
|
|
511
|
+
seasons?: Array<Season>;
|
|
501
512
|
}
|
|
502
|
-
declare function
|
|
503
|
-
declare function
|
|
504
|
-
declare function
|
|
505
|
-
declare function
|
|
513
|
+
declare function instanceOfSeasons(value: object): value is Seasons;
|
|
514
|
+
declare function SeasonsFromJSON(json: any): Seasons;
|
|
515
|
+
declare function SeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seasons;
|
|
516
|
+
declare function SeasonsToJSON(value?: Seasons | null): any;
|
|
506
517
|
|
|
507
|
-
interface
|
|
508
|
-
teams?: Array<
|
|
518
|
+
interface Teams {
|
|
519
|
+
teams?: Array<Team>;
|
|
509
520
|
}
|
|
510
|
-
declare function
|
|
511
|
-
declare function
|
|
512
|
-
declare function
|
|
513
|
-
declare function
|
|
521
|
+
declare function instanceOfTeams(value: object): value is Teams;
|
|
522
|
+
declare function TeamsFromJSON(json: any): Teams;
|
|
523
|
+
declare function TeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Teams;
|
|
524
|
+
declare function TeamsToJSON(value?: Teams | null): any;
|
|
514
525
|
|
|
515
526
|
interface GetAllSeasonsRequest {
|
|
516
527
|
sportId: number;
|
|
@@ -518,6 +529,7 @@ interface GetAllSeasonsRequest {
|
|
|
518
529
|
interface GetScheduleRequest {
|
|
519
530
|
sportId: number;
|
|
520
531
|
teamId?: number;
|
|
532
|
+
gameTypes?: Array<GameType>;
|
|
521
533
|
startDate?: string;
|
|
522
534
|
endDate?: string;
|
|
523
535
|
fields?: Array<string>;
|
|
@@ -539,16 +551,16 @@ interface GetTeamsRequest {
|
|
|
539
551
|
leagueIds?: Array<number>;
|
|
540
552
|
}
|
|
541
553
|
declare class MlbApi extends BaseAPI {
|
|
542
|
-
getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<
|
|
543
|
-
getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<
|
|
544
|
-
getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<
|
|
545
|
-
getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<
|
|
546
|
-
getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<
|
|
547
|
-
getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<
|
|
548
|
-
getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<
|
|
549
|
-
getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<
|
|
550
|
-
getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<
|
|
551
|
-
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<
|
|
554
|
+
getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
|
|
555
|
+
getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
|
|
556
|
+
getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Schedule>>;
|
|
557
|
+
getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Schedule>;
|
|
558
|
+
getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
|
|
559
|
+
getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
|
|
560
|
+
getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<DivisionStandingsList>>;
|
|
561
|
+
getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<DivisionStandingsList>;
|
|
562
|
+
getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Teams>>;
|
|
563
|
+
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
|
|
552
564
|
}
|
|
553
565
|
|
|
554
|
-
export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type
|
|
566
|
+
export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type Division, DivisionFromJSON, DivisionFromJSONTyped, type DivisionStandings, DivisionStandingsFromJSON, DivisionStandingsFromJSONTyped, type DivisionStandingsList, DivisionStandingsListFromJSON, DivisionStandingsListFromJSONTyped, DivisionStandingsListToJSON, DivisionStandingsToJSON, DivisionToJSON, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type Game, GameFromJSON, GameFromJSONTyped, type GameStatus, GameStatusCode, GameStatusCodeFromJSON, GameStatusCodeFromJSONTyped, GameStatusCodeToJSON, GameStatusFromJSON, GameStatusFromJSONTyped, GameStatusToJSON, type GameTeam, GameTeamFromJSON, GameTeamFromJSONTyped, GameTeamToJSON, type GameTeams, GameTeamsFromJSON, GameTeamsFromJSONTyped, GameTeamsToJSON, GameToJSON, GameType, GameTypeFromJSON, GameTypeFromJSONTyped, GameTypeToJSON, type GetAllSeasonsRequest, type GetScheduleRequest, type GetSeasonRequest, type GetStandingsRequest, type GetTeamsRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type InitOverrideFunction, JSONApiResponse, type Json, type League, type LeagueDates, LeagueDatesFromJSON, LeagueDatesFromJSONTyped, LeagueDatesToJSON, LeagueFromJSON, LeagueFromJSONTyped, type LeagueRecord, LeagueRecordFromJSON, LeagueRecordFromJSONTyped, LeagueRecordToJSON, LeagueToJSON, type Middleware, MlbApi, type ModelPropertyNaming, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type Schedule, type ScheduleDay, ScheduleDayFromJSON, ScheduleDayFromJSONTyped, ScheduleDayToJSON, ScheduleFromJSON, ScheduleFromJSONTyped, ScheduleToJSON, type Season, SeasonFromJSON, SeasonFromJSONTyped, SeasonToJSON, type Seasons, SeasonsFromJSON, SeasonsFromJSONTyped, SeasonsToJSON, type Sport, SportFromJSON, SportFromJSONTyped, SportToJSON, type Streak, StreakFromJSON, StreakFromJSONTyped, StreakStreakTypeEnum, StreakToJSON, type Team, TeamFromJSON, TeamFromJSONTyped, type TeamRecord, TeamRecordFromJSON, TeamRecordFromJSONTyped, TeamRecordToJSON, TeamToJSON, type Teams, TeamsFromJSON, TeamsFromJSONTyped, TeamsToJSON, TextApiResponse, type Venue, VenueFromJSON, VenueFromJSONTyped, VenueToJSON, VoidApiResponse, canConsumeForm, instanceOfDivision, instanceOfDivisionStandings, instanceOfDivisionStandingsList, instanceOfGame, instanceOfGameStatus, instanceOfGameStatusCode, instanceOfGameTeam, instanceOfGameTeams, instanceOfGameType, instanceOfLeague, instanceOfLeagueDates, instanceOfLeagueRecord, instanceOfSchedule, instanceOfScheduleDay, instanceOfSeason, instanceOfSeasons, instanceOfSport, instanceOfStreak, instanceOfTeam, instanceOfTeamRecord, instanceOfTeams, instanceOfVenue, mapValues, querystring };
|