/** Internal helper: scrape an HTML `` (by id) into {value, name} pairs. */ declare function extractSelectList($: any, array: any[], id: string): void; /** * Operations for NCAA Sports. * * @namespace ncaa */ declare const _default: { /** * Gets the gameId for older games whose url redirects to the current url pattern using the * game url fragment (relative to [https://ncaa.com](https://ncaa.com)) pulled from ncaaScoreboard * @memberOf ncaa * @async * @function * @param {string} url - Game url as pulled from ncaaScoreboard.getNcaaScoreboard. * @returns json * @example * const result = await sdv.ncaaScoreboard.getNcaaScoreboard( * sport = 'basketball-men', division = 'd3', year = 2019, month = 02, day = 15 * ) * const urlGame = result["games"][16]["game"]["url"] * const gameId = await sdv.ncaa.getRedirectUrl(url=urlGame); */ getRedirectUrl: (url: any) => Promise; /** * Gets the gameInfo data for a specified game. * @memberOf ncaa * @async * @function * @param {number} game - Game id. * @returns json * @deprecated NCAA removed the casablanca per-game JSON endpoints * (`data.ncaa.com/casablanca/game/{id}/gameInfo.json` now 404s for every * id). Per-game data moved behind the ncaa.com web app's GraphQL backend * (`sdataprod.ncaa.com`). The casablanca *scoreboard* index * (`getScoreboard` / `getNcaaScoreboard`) still serves. Kept for back-compat; * will surface the upstream 404 until re-ported to the GraphQL surface. * @example * const result = await sdv.ncaa.getInfo(5764053); */ getInfo: (game: any) => Promise; /** * Gets the box score data for a specified game if available. * @memberOf ncaa * @async * @function * @param {number} game - Game id. * @returns json * @deprecated NCAA removed the casablanca per-game JSON endpoints * (`data.ncaa.com/casablanca/game/{id}/boxscore.json` now 404s for every * id). Per-game data moved behind the ncaa.com GraphQL backend * (`sdataprod.ncaa.com`). The casablanca scoreboard index still serves. * Kept for back-compat; will surface the upstream 404 until re-ported. * @example * const result = await sdv.ncaa.getBoxScore(5764053); */ getBoxScore: (game: any) => Promise; /** * Gets the play-by-play data for a specified game if available. * @memberOf ncaa * @async * @function * @param {number} game - Game id. * @returns json * @deprecated NCAA removed the casablanca per-game JSON endpoints * (`data.ncaa.com/casablanca/game/{id}/pbp.json` now 404s for every id). * Per-game data moved behind the ncaa.com GraphQL backend * (`sdataprod.ncaa.com`). The casablanca scoreboard index still serves. * Kept for back-compat; will surface the upstream 404 until re-ported. * @example * const result = await sdv.ncaa.getPlayByPlay(5764053); */ getPlayByPlay: (game: any) => Promise; /** * Gets the scoreboard data for a specified date and team sport if available. * @memberOf ncaa * @async * @function * @param {string} sport - Sport name. Acceptable values: * 'football','basketball-men', 'basketball-women', * 'baseball', 'softball', 'soccer-men','soccer-women', * 'fieldhockey', 'icehockey-men','icehockey-women', * 'lacrosse-men','lacrosse-women', * 'beach-volleyball', 'volleyball-women', 'volleyball-men' * @param {string} division - Division of teams desired. Acceptable values: * Football - ['fbs','fcs','d2','d3'] * All others - ['d1','d2','d3'] * @param {*} year - Year (YYYY) * @param {*} month - Month (MM) * @param {*} day - Day (DD) * @returns json * @example * const result = await sdv.ncaa.getScoreboard( * sport = 'basketball-men', division = 'd3', year = 2019, month = 02, day = 15 * ) */ getScoreboard: ({ sport, division, year, month, day }: { sport: any; division: any; year: any; month: any; day: any; }) => Promise; extractSelectList: typeof extractSelectList; /** * Retrieves the set of sports and their abbreviations. * @memberOf ncaa * @returns json * @example * const result = sdv.ncaa.getSports(); */ getSports: () => Promise<{ sports: any[]; }>; /** * Retrieves the seasons for the selected sport. * @memberOf ncaa * @async * @function * @param {string} sport - Sport abbreviation. Acceptable values: * 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, * 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', * 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, * 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, * 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, * 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, * 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, * 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, * 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, * 'WWP' = Women's Water Polo * @returns json * @example * const result = sdv.ncaa.getSeasons(sport='MBB'); */ getSeasons: (sport: any) => Promise<{ seasons: any[]; }>; /** * Retrieves the Divisions for the selected sport and season. * @memberOf ncaa * @async * @function * @param {string} sport - Sport abbreviation. Acceptable values: * 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, * 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', * 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, * 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, * 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, * 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, * 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, * 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, * 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, * 'WWP' = Women's Water Polo * @param {string} season - Season for sport * @returns json * @example * const result = sdv.ncaa.getDivisions(sport='MBB', season='2017'); */ getDivisions: (sport: any, season: any) => Promise<{ divisions: any[]; }>; /** * Request the data from the NCAA Stats website. * @memberOf ncaa * @async * @function * @param sport Sport abbreviation. Acceptable values: * 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, * 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', * 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, * 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, * 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, * 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, * 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, * 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, * 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, * 'WWP' = Women's Water Polo * @param season Season of query, value for 2016-2017 season would be 2017. * @param division Division, for college football: 11 for FBS, 12 for FCS, * otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III. * @param rankingPeriod Integer value indicating the ranking period, options can be * found from using the @function ncaa.getSportDivisionData function. * @param type Individual or Team type of statistics * @param gameHigh logical, indicating whether the statistic desired is of the game-high variety * @param category Value for the stat category, can also be found using the @function ncaa.getSportDivisionData * @returns json * @example * const sportDivisionData = sdv.ncaa.getSportDivisionData(sport='MFB',season='2016',division=12,type='team',gameHigh=true); */ getSportDivisionData: (sport: any, season: any, division: any, type: any, gameHigh: any) => Promise<{ sport: any; season: any; division: any; type: any; gameHigh: any; rankingsPeriods: any[]; categories: any[]; }>; /** * Get the Player Data from the NCAA Stats website. * @memberOf ncaa * @async * @function * @param sport Sport abbreviation. Acceptable values: * 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, * 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', * 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, * 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, * 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, * 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, * 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, * 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, * 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, * 'WWP' = Women's Water Polo * @param season Season of query, value for 2016-2017 season would be 2017. * @param division Division, for college football: 11 for FBS, 12 for FCS, * otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III. * @param rankingPeriod Integer value indicating the ranking period, options can be * found from using the @function ncaa.getSportDivisionData function. * @param {'Y'|'N'} gameHigh logical, indicating whether the statistic desired is of the game-high variety * @param category Value for the stat category, can also be found using the @function ncaa.getSportDivisionData * @returns json * @example * const players = await sdv.ncaa.getPlayerData(sport = 'MFB', year = '2017', division = '11',rankingPeriod = '52', gameHigh='N', category = '20') */ getPlayerData: (sport: any, season: any, division: any, rankingPeriod: any, gameHigh: any, category: any) => Promise; /** * Get the Team Data from the NCAA Stats website. * @memberOf ncaa * @async * @function * @param sport Sport abbreviation. Acceptable values: * 'MBA' = Baseball, 'MBB' = Men's basketball, 'MFB' = Men's Football, * 'MIH' = Men's Ice-hockey, 'MLA' = Men's Lacrosse', * 'MSO' = Men's Soccer, 'MTE' = Men's Tennis, * 'MVB' = Men's Volleyball, 'MWP' = Men's Water Polo, * 'WBB' = Women's Basketball, 'WBW' = Women's Bowling, * 'WFH' = Field Hockey, 'WIH' = Women's Ice-Hockey, * 'WLA' = Women's Lacrosse, 'WSB' = Women's Softball, * 'WSO' = Women's Soccer, 'WSV' = Women's Beach Volleyball, * 'WTE' = Women's Tennis, 'WVB' = Women's Volleyball, * 'WWP' = Women's Water Polo * @param season Season of query, value for 2016-2017 season would be 2017. * @param division Division, for college football: 11 for FBS, 12 for FCS, * otherwise 1 for Division-I, 2 for Division-II, 3 for Division-III. * @param rankingPeriod Integer value indicating the ranking period, options can be * found from using the @function ncaaSports.getSportDivisionData function. * @param {'Y'|'N'} gameHigh logical, indicating whether the statistic desired is of the game-high variety * @param category Value for the stat category, can also be found using the @function ncaaSports.getSportDivisionData * @returns json * @example * const teams = await sdv.ncaa.getTeamData(sport = 'MFB', year = '2017', division = '11', rankingPeriod = '52', gameHigh='N', category = '20') */ getTeamData: (sport: any, season: any, division: any, rankingPeriod: any, gameHigh: any, category: any) => Promise; }; export default _default; //# sourceMappingURL=ncaa.service.d.ts.map