/** * Operations for MLB. * * > **Superseded:** these hand-written `get*` methods predate the generated * > cross-league ESPN surface. They remain supported for back-compat, but new * > code should prefer the generated `espn_mlb_*` wrappers (e.g. * > `sdv.mlb.espn_mlb_scoreboard()`), which cover far more ESPN * > endpoints and share one maintained codegen pipeline. * * @namespace mlb */ declare const _default: { /** * Gets the MLB game play-by-play data for a specified game. * @memberOf mlb * @async * @function * @param {number} id - Game id. * @returns json * @example * const result = await sdv.mlb.getPlayByPlay(401472105); */ getPlayByPlay: (id: any) => Promise<{ teams: any; id: any; plays: any; competitions: any; season: any; boxScore: any; seasonSeries: any; standings: any; }>; /** * Gets the MLB game box score data for a specified game. * @memberOf mlb * @async * @function * @param {number} id - Game id. * @returns json * @example * const result = await sdv.mlb.getBoxScore(401472105); */ getBoxScore: (id: any) => Promise; /** * Gets the MLB game summary data for a specified game. * @memberOf mlb * @async * @function * @param {number} id - Game id. * @returns json * @example * const result = await sdv.mlb.getSummary(401472105); */ getSummary: (id: any) => Promise<{ boxScore: any; gameInfo: any; header: any; teams: any; id: any; plays: any; winProbability: any; leaders: any; competitions: any; season: any; seasonSeries: any; standings: any; }>; /** * Gets the MLB game PickCenter data for a specified game. * @memberOf mlb * @async * @function * @param {number} id - Game id. * @returns json * @example * const result = await sdv.mlb.getPicks(401472105); */ getPicks: (id: any) => Promise<{ id: number; gameInfo: any; leaders: any; header: any; teams: any; competitions: any; winProbability: any; pickcenter: any; againstTheSpread: any; odds: any; seasonSeries: any; season: any; standings: any; }>; /** * Gets the MLB schedule data for a specified date if available. * @memberOf mlb * @async * @function * @param {*} year - Year (YYYY) * @param {*} month - Month (MM) * @param {*} day - Day (DD) * @returns json * @example * const result = await sdv.mlb.getSchedule( * year = 2016, month = 04, day = 15 * ) */ getSchedule: ({ year, month, day }: { year: any; month: any; day: any; }) => Promise; /** * Gets the MLB scoreboard data for a specified date if available. * @memberOf mlb * @async * @function * @param {*} year - Year (YYYY) * @param {*} month - Month (MM) * @param {*} day - Day (DD) * @param {number} limit - Limit on the number of results @default 300 * @returns json * @example * const result = await sdv.mlb.getScoreboard( * year = 2019, month = 11, day = 16 * ) */ getScoreboard: ({ year, month, day, limit, }: { year: any; month: any; day: any; limit?: number; }) => Promise; /** * Gets the team standings for the MLB. * @memberOf mlb * @async * @function * @param {number} year - Season * @param {string} group - acceptable group names: 'league','conference','division' * @returns json * @example * const yr = 2016; * const result = await sdv.mlb.getStandings(year = yr); */ getStandings: ({ year, group, }: { year?: number; group?: string; }) => Promise; /** * Gets the list of all MLB teams their identification info for ESPN. * @memberOf mlb * @async * @function * @returns json * @example * const result = await sdv.mlb.getTeamList(); */ getTeamList: () => Promise; /** * Gets the team info for a specific MLB team. * @memberOf mlb * @async * @function * @param {number} id - Team Id * @returns json * @example * const teamId = 16; * const result = await sdv.mlb.getTeamInfo(teamId); */ getTeamInfo: (id: any) => Promise; /** * Gets the team roster information for a specific MLB team. * @memberOf mlb * @async * @function * @param {number} id - Team Id * @returns json * @example * const teamId = 16; * const result = await sdv.mlb.getTeamPlayers(teamId); */ getTeamPlayers: (id: any) => Promise; }; export default _default; //# sourceMappingURL=mlb.service.d.ts.map