UNPKG

cbbd

Version:

This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeBasketballData.com website.

443 lines (442 loc) 16.4 kB
"use strict"; // This file is auto-generated by @hey-api/openapi-ts var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getConferenceHistory = exports.getConferences = exports.getDraftPicks = exports.getDraftPositions = exports.getDraftTeams = exports.getGamePlayers = exports.getGameTeams = exports.getBroadcasts = exports.getGames = exports.getProviders = exports.getLines = exports.getLineupStatsByGame = exports.getLineupsByTeamSeason = exports.getPlayTypes = exports.getPlaysByTournament = exports.getPlaysByDate = exports.getPlaysByTeam = exports.getPlaysByPlayerId = exports.getPlays = exports.getRankings = exports.getAdjustedEfficiency = exports.getSrs = exports.getRecruits = exports.getPlayerSeasonShootingStats = exports.getPlayerSeasonStats = exports.getTeamSeasonShootingStats = exports.getTeamSeasonStats = exports.getSubstitutionsByTeam = exports.getSubstitutionsByPlayerId = exports.getSubstitutionsByGame = exports.getTeamRoster = exports.getTeams = exports.getVenues = void 0; var client_gen_1 = require("./client.gen"); /** * Retrieves list of available venues */ var getVenues = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/venues' }, options)); }; exports.getVenues = getVenues; /** * Retrieves historical team information */ var getTeams = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/teams' }, options)); }; exports.getTeams = getTeams; /** * Retrieves team roster information */ var getTeamRoster = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/teams/roster' }, options)); }; exports.getTeamRoster = getTeamRoster; /** * Returns all player substitutions for a given game */ var getSubstitutionsByGame = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/substitutions/game/{gameId}' }, options)); }; exports.getSubstitutionsByGame = getSubstitutionsByGame; /** * Retrieve all player substitutions for a given player and season */ var getSubstitutionsByPlayerId = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/substitutions/player/{playerId}' }, options)); }; exports.getSubstitutionsByPlayerId = getSubstitutionsByPlayerId; /** * Retrieve all player substitutions for a given team and season */ var getSubstitutionsByTeam = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/substitutions/team' }, options)); }; exports.getSubstitutionsByTeam = getSubstitutionsByTeam; /** * Returns team season statistics by year or team */ var getTeamSeasonStats = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/stats/team/season' }, options)); }; exports.getTeamSeasonStats = getTeamSeasonStats; /** * Retrieves team season shooting statistics */ var getTeamSeasonShootingStats = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/stats/team/shooting/season' }, options)); }; exports.getTeamSeasonShootingStats = getTeamSeasonShootingStats; /** * Returns player statistics by season */ var getPlayerSeasonStats = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/stats/player/season' }, options)); }; exports.getPlayerSeasonStats = getPlayerSeasonStats; /** * Retrieves player season shooting statistics */ var getPlayerSeasonShootingStats = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/stats/player/shooting/season' }, options)); }; exports.getPlayerSeasonShootingStats = getPlayerSeasonShootingStats; /** * Retrieves historical composite player recruiting ranking and ratings */ var getRecruits = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/recruiting/players' }, options)); }; exports.getRecruits = getRecruits; /** * Retrieves SRS ratings for the provided season, team, or conference. */ var getSrs = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/ratings/srs' }, options)); }; exports.getSrs = getSrs; /** * Retrieves adjusted efficiency ratings for the provided season, team, or conference. */ var getAdjustedEfficiency = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/ratings/adjusted' }, options)); }; exports.getAdjustedEfficiency = getAdjustedEfficiency; /** * Retrieves historical poll data */ var getRankings = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/rankings' }, options)); }; exports.getRankings = getRankings; /** * Returns all plays for a given game */ var getPlays = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/plays/game/{gameId}' }, options)); }; exports.getPlays = getPlays; /** * Retrieve all plays for a given player and season */ var getPlaysByPlayerId = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/plays/player/{playerId}' }, options)); }; exports.getPlaysByPlayerId = getPlaysByPlayerId; /** * Retrieve all plays for a given team and season */ var getPlaysByTeam = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/plays/team' }, options)); }; exports.getPlaysByTeam = getPlaysByTeam; /** * Retrieve all plays for a given UTC date */ var getPlaysByDate = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/plays/date' }, options)); }; exports.getPlaysByDate = getPlaysByDate; /** * Retrieve all plays for a given tournament and season */ var getPlaysByTournament = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/plays/tournament' }, options)); }; exports.getPlaysByTournament = getPlaysByTournament; /** * Retrieve list of play types */ var getPlayTypes = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/plays/types' }, options)); }; exports.getPlayTypes = getPlayTypes; /** * Queries lineup statistics for a given team and season */ var getLineupsByTeamSeason = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/lineups/team' }, options)); }; exports.getLineupsByTeamSeason = getLineupsByTeamSeason; /** * Queries lineup statistics for a specific game */ var getLineupStatsByGame = function (options) { var _a; return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/lineups/game/{gameId}' }, options)); }; exports.getLineupStatsByGame = getLineupStatsByGame; /** * Returns betting lines for the first 3000 games that match the provided filters, ordered by start date. */ var getLines = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/lines' }, options)); }; exports.getLines = getLines; var getProviders = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/lines/providers' }, options)); }; exports.getProviders = getProviders; /** * Returns information on the first 3000 games that match the provided filters, ordered by start date. */ var getGames = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/games' }, options)); }; exports.getGames = getGames; /** * Returns broadcast information on the first 3000 games that match the provided filters, ordered by start date. */ var getBroadcasts = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/games/media' }, options)); }; exports.getBroadcasts = getBroadcasts; /** * Returns team box score statistics and metrics on the first 3000 games that match the provided filters, ordered by start date. */ var getGameTeams = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/games/teams' }, options)); }; exports.getGameTeams = getGameTeams; /** * Returns player box score statistics and metrics on the first 1000 games that match the provided filters, ordered by start date. */ var getGamePlayers = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/games/players' }, options)); }; exports.getGamePlayers = getGamePlayers; /** * Retrieves list of NBA teams */ var getDraftTeams = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/draft/teams' }, options)); }; exports.getDraftTeams = getDraftTeams; /** * Retrieves list of position names for NBA draft prospects */ var getDraftPositions = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/draft/positions' }, options)); }; exports.getDraftPositions = getDraftPositions; /** * Retrieves historical NBA draft picks */ var getDraftPicks = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/draft/picks' }, options)); }; exports.getDraftPicks = getDraftPicks; /** * Retrieves list of available conferences */ var getConferences = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/conferences' }, options)); }; exports.getConferences = getConferences; /** * Retrieves historical conference membership information */ var getConferenceHistory = function (options) { var _a; return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get(__assign({ security: [ { scheme: 'bearer', type: 'http' } ], url: '/conferences/history' }, options)); }; exports.getConferenceHistory = getConferenceHistory;