@bp1222/stats-api 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +224 -213
- package/dist/index.d.ts +224 -213
- package/dist/index.js +588 -527
- package/dist/index.mjs +497 -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,223 @@ 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
|
+
};
|
|
360
|
+
type GameStatusCode = typeof GameStatusCode[keyof typeof GameStatusCode];
|
|
361
|
+
declare function instanceOfGameStatusCode(value: any): boolean;
|
|
362
|
+
declare function GameStatusCodeFromJSON(json: any): GameStatusCode;
|
|
363
|
+
declare function GameStatusCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatusCode;
|
|
364
|
+
declare function GameStatusCodeToJSON(value?: GameStatusCode | null): any;
|
|
365
|
+
|
|
366
|
+
interface GameStatus {
|
|
367
|
+
abstractGameState?: string;
|
|
368
|
+
codedGameState?: GameStatusCode;
|
|
369
|
+
detailedState?: string;
|
|
370
|
+
statusCode?: string;
|
|
371
|
+
startTimeTBD?: boolean;
|
|
372
|
+
abstractGameCode?: string;
|
|
373
|
+
}
|
|
374
|
+
declare function instanceOfGameStatus(value: object): value is GameStatus;
|
|
375
|
+
declare function GameStatusFromJSON(json: any): GameStatus;
|
|
376
|
+
declare function GameStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameStatus;
|
|
377
|
+
declare function GameStatusToJSON(value?: GameStatus | null): any;
|
|
300
378
|
|
|
301
|
-
interface
|
|
302
|
-
leagueRecord?:
|
|
379
|
+
interface GameTeam {
|
|
380
|
+
leagueRecord?: LeagueRecord;
|
|
303
381
|
score: number;
|
|
304
|
-
team:
|
|
382
|
+
team: Team;
|
|
305
383
|
isWinner: boolean;
|
|
306
384
|
splitSquad?: boolean;
|
|
307
385
|
seriesNumber?: number;
|
|
308
386
|
}
|
|
309
|
-
declare function
|
|
310
|
-
declare function
|
|
311
|
-
declare function
|
|
312
|
-
declare function
|
|
387
|
+
declare function instanceOfGameTeam(value: object): value is GameTeam;
|
|
388
|
+
declare function GameTeamFromJSON(json: any): GameTeam;
|
|
389
|
+
declare function GameTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeam;
|
|
390
|
+
declare function GameTeamToJSON(value?: GameTeam | null): any;
|
|
313
391
|
|
|
314
|
-
interface
|
|
315
|
-
away:
|
|
316
|
-
home:
|
|
317
|
-
}
|
|
318
|
-
declare function
|
|
319
|
-
declare function
|
|
320
|
-
declare function
|
|
321
|
-
declare function
|
|
392
|
+
interface GameTeams {
|
|
393
|
+
away: GameTeam;
|
|
394
|
+
home: GameTeam;
|
|
395
|
+
}
|
|
396
|
+
declare function instanceOfGameTeams(value: object): value is GameTeams;
|
|
397
|
+
declare function GameTeamsFromJSON(json: any): GameTeams;
|
|
398
|
+
declare function GameTeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameTeams;
|
|
399
|
+
declare function GameTeamsToJSON(value?: GameTeams | null): any;
|
|
322
400
|
|
|
323
|
-
|
|
401
|
+
declare const GameType: {
|
|
402
|
+
readonly Exhibition: "E";
|
|
403
|
+
readonly SpringTraining: "S";
|
|
404
|
+
readonly Regular: "R";
|
|
405
|
+
readonly WildCardSeries: "F";
|
|
406
|
+
readonly DivisionSeries: "D";
|
|
407
|
+
readonly LeagueChampionshipSeries: "L";
|
|
408
|
+
readonly WorldSeries: "W";
|
|
409
|
+
};
|
|
410
|
+
type GameType = typeof GameType[keyof typeof GameType];
|
|
411
|
+
declare function instanceOfGameType(value: any): boolean;
|
|
412
|
+
declare function GameTypeFromJSON(json: any): GameType;
|
|
413
|
+
declare function GameTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GameType;
|
|
414
|
+
declare function GameTypeToJSON(value?: GameType | null): any;
|
|
415
|
+
|
|
416
|
+
interface Game {
|
|
324
417
|
gamePk: number;
|
|
325
418
|
gameGuid: string;
|
|
326
419
|
link?: string;
|
|
327
|
-
gameType:
|
|
420
|
+
gameType: GameType;
|
|
328
421
|
season: number;
|
|
329
422
|
gameDate: string;
|
|
330
423
|
officialDate: string;
|
|
@@ -332,9 +425,9 @@ interface MLBGame {
|
|
|
332
425
|
rescheduledToDate?: string;
|
|
333
426
|
rescheduledFrom?: number;
|
|
334
427
|
rescheduledFromDate?: string;
|
|
335
|
-
status:
|
|
336
|
-
teams:
|
|
337
|
-
venue?:
|
|
428
|
+
status: GameStatus;
|
|
429
|
+
teams: GameTeams;
|
|
430
|
+
venue?: Venue;
|
|
338
431
|
isTie?: boolean;
|
|
339
432
|
gameNumber: number;
|
|
340
433
|
publicFacing?: boolean;
|
|
@@ -355,99 +448,37 @@ interface MLBGame {
|
|
|
355
448
|
ifNecessary?: string;
|
|
356
449
|
ifNecessaryDescription?: string;
|
|
357
450
|
}
|
|
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;
|
|
451
|
+
declare function instanceOfGame(value: object): value is Game;
|
|
452
|
+
declare function GameFromJSON(json: any): Game;
|
|
453
|
+
declare function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game;
|
|
454
|
+
declare function GameToJSON(value?: Game | null): any;
|
|
385
455
|
|
|
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 {
|
|
456
|
+
interface ScheduleDay {
|
|
426
457
|
date?: string;
|
|
427
458
|
totalItems?: number;
|
|
428
459
|
totalEvents?: number;
|
|
429
460
|
totalGames?: number;
|
|
430
461
|
totalGamesInProgress?: number;
|
|
431
|
-
games: Array<
|
|
462
|
+
games: Array<Game>;
|
|
432
463
|
}
|
|
433
|
-
declare function
|
|
434
|
-
declare function
|
|
435
|
-
declare function
|
|
436
|
-
declare function
|
|
464
|
+
declare function instanceOfScheduleDay(value: object): value is ScheduleDay;
|
|
465
|
+
declare function ScheduleDayFromJSON(json: any): ScheduleDay;
|
|
466
|
+
declare function ScheduleDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleDay;
|
|
467
|
+
declare function ScheduleDayToJSON(value?: ScheduleDay | null): any;
|
|
437
468
|
|
|
438
|
-
interface
|
|
469
|
+
interface Schedule {
|
|
439
470
|
totalItems: number;
|
|
440
471
|
totalEvents: number;
|
|
441
472
|
totalGames: number;
|
|
442
473
|
totalGamesInProgress: number;
|
|
443
|
-
dates: Array<
|
|
474
|
+
dates: Array<ScheduleDay>;
|
|
444
475
|
}
|
|
445
|
-
declare function
|
|
446
|
-
declare function
|
|
447
|
-
declare function
|
|
448
|
-
declare function
|
|
476
|
+
declare function instanceOfSchedule(value: object): value is Schedule;
|
|
477
|
+
declare function ScheduleFromJSON(json: any): Schedule;
|
|
478
|
+
declare function ScheduleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Schedule;
|
|
479
|
+
declare function ScheduleToJSON(value?: Schedule | null): any;
|
|
449
480
|
|
|
450
|
-
interface
|
|
481
|
+
interface Season {
|
|
451
482
|
seasonId: string;
|
|
452
483
|
hasWildcard?: boolean;
|
|
453
484
|
preSeasonStartDate?: string;
|
|
@@ -470,47 +501,26 @@ interface MLBSeason {
|
|
|
470
501
|
qualifierPlateAppearances?: number;
|
|
471
502
|
qualifierOutsPitched?: number;
|
|
472
503
|
}
|
|
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;
|
|
504
|
+
declare function instanceOfSeason(value: object): value is Season;
|
|
505
|
+
declare function SeasonFromJSON(json: any): Season;
|
|
506
|
+
declare function SeasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Season;
|
|
507
|
+
declare function SeasonToJSON(value?: Season | null): any;
|
|
498
508
|
|
|
499
|
-
interface
|
|
500
|
-
|
|
509
|
+
interface Seasons {
|
|
510
|
+
seasons?: Array<Season>;
|
|
501
511
|
}
|
|
502
|
-
declare function
|
|
503
|
-
declare function
|
|
504
|
-
declare function
|
|
505
|
-
declare function
|
|
512
|
+
declare function instanceOfSeasons(value: object): value is Seasons;
|
|
513
|
+
declare function SeasonsFromJSON(json: any): Seasons;
|
|
514
|
+
declare function SeasonsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Seasons;
|
|
515
|
+
declare function SeasonsToJSON(value?: Seasons | null): any;
|
|
506
516
|
|
|
507
|
-
interface
|
|
508
|
-
teams?: Array<
|
|
517
|
+
interface Teams {
|
|
518
|
+
teams?: Array<Team>;
|
|
509
519
|
}
|
|
510
|
-
declare function
|
|
511
|
-
declare function
|
|
512
|
-
declare function
|
|
513
|
-
declare function
|
|
520
|
+
declare function instanceOfTeams(value: object): value is Teams;
|
|
521
|
+
declare function TeamsFromJSON(json: any): Teams;
|
|
522
|
+
declare function TeamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Teams;
|
|
523
|
+
declare function TeamsToJSON(value?: Teams | null): any;
|
|
514
524
|
|
|
515
525
|
interface GetAllSeasonsRequest {
|
|
516
526
|
sportId: number;
|
|
@@ -518,6 +528,7 @@ interface GetAllSeasonsRequest {
|
|
|
518
528
|
interface GetScheduleRequest {
|
|
519
529
|
sportId: number;
|
|
520
530
|
teamId?: number;
|
|
531
|
+
gameTypes?: Array<GameType>;
|
|
521
532
|
startDate?: string;
|
|
522
533
|
endDate?: string;
|
|
523
534
|
fields?: Array<string>;
|
|
@@ -539,16 +550,16 @@ interface GetTeamsRequest {
|
|
|
539
550
|
leagueIds?: Array<number>;
|
|
540
551
|
}
|
|
541
552
|
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<
|
|
553
|
+
getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
|
|
554
|
+
getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
|
|
555
|
+
getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Schedule>>;
|
|
556
|
+
getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Schedule>;
|
|
557
|
+
getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Seasons>>;
|
|
558
|
+
getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Seasons>;
|
|
559
|
+
getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<DivisionStandingsList>>;
|
|
560
|
+
getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<DivisionStandingsList>;
|
|
561
|
+
getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Teams>>;
|
|
562
|
+
getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Teams>;
|
|
552
563
|
}
|
|
553
564
|
|
|
554
|
-
export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type
|
|
565
|
+
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 };
|