cfbd 5.18.1 → 5.20.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/cfbd-5.20.0.tgz +0 -0
- package/dist/sdk.gen.d.ts +5 -1
- package/dist/sdk.gen.js +10 -2
- package/dist/types.gen.d.ts +51 -0
- package/package.json +1 -1
- package/src/sdk.gen.ts +11 -1
- package/src/types.gen.ts +55 -0
- package/cfbd-5.18.1.tgz +0 -0
package/cfbd-5.20.0.tgz
ADDED
|
Binary file
|
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type OptionsLegacyParser } from '@hey-api/client-fetch';
|
|
2
|
-
import type { GetAdjustedTeamSeasonStatsData, GetAdjustedTeamSeasonStatsResponse, GetAdjustedPlayerPassingStatsData, GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerRushingStatsData, GetAdjustedPlayerRushingStatsResponse, GetKickerPaarData, GetKickerPaarResponse, GetTeamsData, GetTeamsResponse, GetFbsTeamsData, GetFbsTeamsResponse, GetMatchupData, GetTeamsAtsData, GetTeamsAtsResponse, GetRosterData, GetRosterResponse, GetConferencesResponse, GetTalentData, GetTalentResponse, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsResponse, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsResponse, GetRecruitsData, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsResponse, GetSpData, GetSpResponse, GetConferenceSpData, GetConferenceSpResponse, GetSrsData, GetSrsResponse, GetEloData, GetEloResponse, GetFpiData, GetFpiResponse, GetRankingsData, GetRankingsError, GetRankingsResponse, GetPlaysData, GetPlaysResponse, GetPlayTypesResponse, GetPlayStatsData, GetPlayStatsResponse, GetPlayStatTypesResponse, GetCfpPlayoffData, GetCfpPlayoffError, GetCfpParticipantsData, GetCfpParticipantsError, GetCfpParticipantsResponse, GetCfpGamesData, GetCfpGamesError, GetCfpGamesResponse, SearchPlayersData, SearchPlayersResponse, GetPlayerUsageData, GetPlayerUsageResponse, GetPlayerSeasonOverviewData, GetReturningProductionData, GetReturningProductionResponse, GetTransferPortalData, GetTransferPortalResponse, GetPredictedPointsData, GetPredictedPointsResponse, GetPredictedPointsAddedByTeamData, GetPredictedPointsAddedByTeamResponse, GetPredictedPointsAddedByGameData, GetPredictedPointsAddedByGameResponse, GetPredictedPointsAddedByPlayerGameData, GetPredictedPointsAddedByPlayerGameResponse, GetPredictedPointsAddedByPlayerSeasonData, GetPredictedPointsAddedByPlayerSeasonResponse, GetWinProbabilityData, GetWinProbabilityResponse, GetPregameWinProbabilitiesData, GetPregameWinProbabilitiesResponse, GetFieldGoalExpectedPointsResponse, GetLivePlaysData, GetLinesData, GetLinesResponse, GetUserInfoResponse, GetUsageData, GetUsageResponse, GetGamesData, GetGamesError, GetGamesResponse, GetGameTeamStatsData, GetGameTeamStatsResponse, GetGamePlayerStatsData, GetGamePlayerStatsResponse, GetMediaData, GetMediaResponse, GetWeatherData, GetWeatherResponse, GetRecordsData, GetRecordsResponse, GetCalendarData, GetCalendarResponse, GetScoreboardData, GetScoreboardResponse, GetDrivesData, GetDrivesResponse, GetDraftTeamsResponse, GetDraftPositionsResponse, GetDraftPicksData, GetDraftPicksResponse, GetCoachesData, GetCoachesResponse, GetAdvancedBoxScoreData } from './types.gen';
|
|
2
|
+
import type { GetAdjustedTeamSeasonStatsData, GetAdjustedTeamSeasonStatsResponse, GetAdjustedPlayerPassingStatsData, GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerRushingStatsData, GetAdjustedPlayerRushingStatsResponse, GetKickerPaarData, GetKickerPaarResponse, GetTeamsData, GetTeamsResponse, GetFbsTeamsData, GetFbsTeamsResponse, GetMatchupData, GetTeamsAtsData, GetTeamsAtsResponse, GetRosterData, GetRosterResponse, GetConferencesResponse, GetTalentData, GetTalentResponse, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsResponse, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsResponse, GetRecruitsData, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsResponse, GetSpData, GetSpResponse, GetConferenceSpData, GetConferenceSpResponse, GetSrsData, GetSrsResponse, GetExpandedSrsData, GetExpandedSrsResponse, GetEloData, GetEloResponse, GetFpiData, GetFpiResponse, GetRankingsData, GetRankingsError, GetRankingsResponse, GetPlaysData, GetPlaysResponse, GetPlayTypesResponse, GetPlayStatsData, GetPlayStatsResponse, GetPlayStatTypesResponse, GetCfpPlayoffData, GetCfpPlayoffError, GetCfpParticipantsData, GetCfpParticipantsError, GetCfpParticipantsResponse, GetCfpGamesData, GetCfpGamesError, GetCfpGamesResponse, SearchPlayersData, SearchPlayersResponse, GetPlayerUsageData, GetPlayerUsageResponse, GetPlayerSeasonOverviewData, GetReturningProductionData, GetReturningProductionResponse, GetTransferPortalData, GetTransferPortalResponse, GetPredictedPointsData, GetPredictedPointsResponse, GetPredictedPointsAddedByTeamData, GetPredictedPointsAddedByTeamResponse, GetPredictedPointsAddedByGameData, GetPredictedPointsAddedByGameResponse, GetPredictedPointsAddedByPlayerGameData, GetPredictedPointsAddedByPlayerGameResponse, GetPredictedPointsAddedByPlayerSeasonData, GetPredictedPointsAddedByPlayerSeasonResponse, GetWinProbabilityData, GetWinProbabilityResponse, GetPregameWinProbabilitiesData, GetPregameWinProbabilitiesResponse, GetFieldGoalExpectedPointsResponse, GetLivePlaysData, GetLinesData, GetLinesResponse, GetUserInfoResponse, GetUsageData, GetUsageResponse, GetGamesData, GetGamesError, GetGamesResponse, GetGameTeamStatsData, GetGameTeamStatsResponse, GetGamePlayerStatsData, GetGamePlayerStatsResponse, GetMediaData, GetMediaResponse, GetWeatherData, GetWeatherResponse, GetRecordsData, GetRecordsResponse, GetCalendarData, GetCalendarResponse, GetScoreboardData, GetScoreboardResponse, GetDrivesData, GetDrivesResponse, GetDraftTeamsResponse, GetDraftPositionsResponse, GetDraftPicksData, GetDraftPicksResponse, GetCoachesData, GetCoachesResponse, GetAdvancedBoxScoreData } from './types.gen';
|
|
3
3
|
export declare const client: import("@hey-api/client-fetch").Client<Request, Response, unknown, import("@hey-api/client-fetch").RequestOptions<boolean, string>>;
|
|
4
4
|
/**
|
|
5
5
|
* Retrieve opponent-adjusted team season statistics
|
|
@@ -105,6 +105,10 @@ export declare const getConferenceSp: <ThrowOnError extends boolean = false>(opt
|
|
|
105
105
|
* Retrieves historical SRS for a year or team
|
|
106
106
|
*/
|
|
107
107
|
export declare const getSrs: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetSrsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetSrsResponse, unknown, ThrowOnError>;
|
|
108
|
+
/**
|
|
109
|
+
* Retrieves expanded historical SRS (including FCS) for a year or team
|
|
110
|
+
*/
|
|
111
|
+
export declare const getExpandedSrs: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetExpandedSrsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetExpandedSrsResponse, unknown, ThrowOnError>;
|
|
108
112
|
/**
|
|
109
113
|
* Retrieves historical Elo ratings
|
|
110
114
|
*/
|
package/dist/sdk.gen.js
CHANGED
|
@@ -12,8 +12,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
return __assign.apply(this, arguments);
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
16
|
-
exports.getAdvancedBoxScore = exports.getCoaches = exports.getDraftPicks = exports.getDraftPositions = exports.getDraftTeams = exports.getDrives = exports.getScoreboard = exports.getCalendar = exports.getRecords = exports.getWeather = exports.getMedia = exports.getGamePlayerStats = exports.getGameTeamStats = exports.getGames = exports.getUsage = exports.getUserInfo = exports.getLines = exports.getLivePlays = void 0;
|
|
15
|
+
exports.getPregameWinProbabilities = exports.getWinProbability = exports.getPredictedPointsAddedByPlayerSeason = exports.getPredictedPointsAddedByPlayerGame = exports.getPredictedPointsAddedByGame = exports.getPredictedPointsAddedByTeam = exports.getPredictedPoints = exports.getTransferPortal = exports.getReturningProduction = exports.getPlayerSeasonOverview = exports.getPlayerUsage = exports.searchPlayers = exports.getCfpGames = exports.getCfpParticipants = exports.getCfpPlayoff = exports.getPlayStatTypes = exports.getPlayStats = exports.getPlayTypes = exports.getPlays = exports.getRankings = exports.getFpi = exports.getElo = exports.getExpandedSrs = exports.getSrs = exports.getConferenceSp = exports.getSp = exports.getAggregatedTeamRecruitingRatings = exports.getTeamRecruitingRankings = exports.getRecruits = exports.getGameHavocStats = exports.getAdvancedGameStats = exports.getAdvancedSeasonStats = exports.getCategories = exports.getTeamStats = exports.getPlayerGameSuccessRates = exports.getPlayerSeasonSuccessRates = exports.getPlayerSeasonStats = exports.getVenues = exports.getTalent = exports.getConferences = exports.getRoster = exports.getTeamsAts = exports.getMatchup = exports.getFbsTeams = exports.getTeams = exports.getKickerPaar = exports.getAdjustedPlayerRushingStats = exports.getAdjustedPlayerPassingStats = exports.getAdjustedTeamSeasonStats = exports.client = void 0;
|
|
16
|
+
exports.getAdvancedBoxScore = exports.getCoaches = exports.getDraftPicks = exports.getDraftPositions = exports.getDraftTeams = exports.getDrives = exports.getScoreboard = exports.getCalendar = exports.getRecords = exports.getWeather = exports.getMedia = exports.getGamePlayerStats = exports.getGameTeamStats = exports.getGames = exports.getUsage = exports.getUserInfo = exports.getLines = exports.getLivePlays = exports.getFieldGoalExpectedPoints = void 0;
|
|
17
17
|
var client_fetch_1 = require("@hey-api/client-fetch");
|
|
18
18
|
exports.client = (0, client_fetch_1.createClient)((0, client_fetch_1.createConfig)({ baseUrl: 'https://api.collegefootballdata.com' }));
|
|
19
19
|
/**
|
|
@@ -224,6 +224,14 @@ var getSrs = function (options) {
|
|
|
224
224
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ratings/srs' }));
|
|
225
225
|
};
|
|
226
226
|
exports.getSrs = getSrs;
|
|
227
|
+
/**
|
|
228
|
+
* Retrieves expanded historical SRS (including FCS) for a year or team
|
|
229
|
+
*/
|
|
230
|
+
var getExpandedSrs = function (options) {
|
|
231
|
+
var _a;
|
|
232
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ratings/srs/expanded' }));
|
|
233
|
+
};
|
|
234
|
+
exports.getExpandedSrs = getExpandedSrs;
|
|
227
235
|
/**
|
|
228
236
|
* Retrieves historical Elo ratings
|
|
229
237
|
*/
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -453,6 +453,15 @@ export type Drive = {
|
|
|
453
453
|
endOffenseScore: number;
|
|
454
454
|
endDefenseScore: number;
|
|
455
455
|
};
|
|
456
|
+
export type ExpandedTeamSRS = {
|
|
457
|
+
year: number;
|
|
458
|
+
team: string;
|
|
459
|
+
conference: (string) | null;
|
|
460
|
+
division: (string) | null;
|
|
461
|
+
rating: number;
|
|
462
|
+
ranking: (number) | null;
|
|
463
|
+
classification: DivisionClassification;
|
|
464
|
+
};
|
|
456
465
|
export type FieldGoalEP = {
|
|
457
466
|
yardsToGoal: number;
|
|
458
467
|
distance: number;
|
|
@@ -1876,6 +1885,10 @@ export type GetPlayerGameSuccessRatesResponse = (Array<PlayerGameSuccessRate>);
|
|
|
1876
1885
|
export type GetPlayerGameSuccessRatesError = unknown;
|
|
1877
1886
|
export type GetTeamStatsData = {
|
|
1878
1887
|
query?: {
|
|
1888
|
+
/**
|
|
1889
|
+
* Optional division classification filter, defaults to fbs
|
|
1890
|
+
*/
|
|
1891
|
+
classification?: DivisionClassification;
|
|
1879
1892
|
/**
|
|
1880
1893
|
* Optional conference filter
|
|
1881
1894
|
*/
|
|
@@ -1904,6 +1917,10 @@ export type GetCategoriesResponse = (Array<(string)>);
|
|
|
1904
1917
|
export type GetCategoriesError = unknown;
|
|
1905
1918
|
export type GetAdvancedSeasonStatsData = {
|
|
1906
1919
|
query?: {
|
|
1920
|
+
/**
|
|
1921
|
+
* Optional division classification filter, defaults to fbs
|
|
1922
|
+
*/
|
|
1923
|
+
classification?: DivisionClassification;
|
|
1907
1924
|
/**
|
|
1908
1925
|
* Optional end week range filter
|
|
1909
1926
|
*/
|
|
@@ -2066,6 +2083,10 @@ export type GetSpResponse = (Array<TeamSP>);
|
|
|
2066
2083
|
export type GetSpError = unknown;
|
|
2067
2084
|
export type GetConferenceSpData = {
|
|
2068
2085
|
query?: {
|
|
2086
|
+
/**
|
|
2087
|
+
* Optional division classification filter, defaults to fbs
|
|
2088
|
+
*/
|
|
2089
|
+
classification?: DivisionClassification;
|
|
2069
2090
|
/**
|
|
2070
2091
|
* Optional conference filter
|
|
2071
2092
|
*/
|
|
@@ -2096,6 +2117,28 @@ export type GetSrsData = {
|
|
|
2096
2117
|
};
|
|
2097
2118
|
export type GetSrsResponse = (Array<TeamSRS>);
|
|
2098
2119
|
export type GetSrsError = unknown;
|
|
2120
|
+
export type GetExpandedSrsData = {
|
|
2121
|
+
query?: {
|
|
2122
|
+
/**
|
|
2123
|
+
* Optional division classification filter (fbs or fcs)
|
|
2124
|
+
*/
|
|
2125
|
+
classification?: DivisionClassification;
|
|
2126
|
+
/**
|
|
2127
|
+
* Optional conference filter
|
|
2128
|
+
*/
|
|
2129
|
+
conference?: string;
|
|
2130
|
+
/**
|
|
2131
|
+
* Team filter, required if year not specified
|
|
2132
|
+
*/
|
|
2133
|
+
team?: string;
|
|
2134
|
+
/**
|
|
2135
|
+
* Year filter, required if team not specified
|
|
2136
|
+
*/
|
|
2137
|
+
year?: number;
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2140
|
+
export type GetExpandedSrsResponse = (Array<ExpandedTeamSRS>);
|
|
2141
|
+
export type GetExpandedSrsError = unknown;
|
|
2099
2142
|
export type GetEloData = {
|
|
2100
2143
|
query?: {
|
|
2101
2144
|
/**
|
|
@@ -2414,6 +2457,10 @@ export type GetPredictedPointsResponse = (Array<PredictedPointsValue>);
|
|
|
2414
2457
|
export type GetPredictedPointsError = unknown;
|
|
2415
2458
|
export type GetPredictedPointsAddedByTeamData = {
|
|
2416
2459
|
query?: {
|
|
2460
|
+
/**
|
|
2461
|
+
* Optional division classification filter, defaults to fbs
|
|
2462
|
+
*/
|
|
2463
|
+
classification?: DivisionClassification;
|
|
2417
2464
|
/**
|
|
2418
2465
|
* Conference abbreviation filter
|
|
2419
2466
|
*/
|
|
@@ -2436,6 +2483,10 @@ export type GetPredictedPointsAddedByTeamResponse = (Array<TeamSeasonPredictedPo
|
|
|
2436
2483
|
export type GetPredictedPointsAddedByTeamError = unknown;
|
|
2437
2484
|
export type GetPredictedPointsAddedByGameData = {
|
|
2438
2485
|
query: {
|
|
2486
|
+
/**
|
|
2487
|
+
* Optional division classification filter, defaults to fbs
|
|
2488
|
+
*/
|
|
2489
|
+
classification?: DivisionClassification;
|
|
2439
2490
|
/**
|
|
2440
2491
|
* Optional conference abbreviation filter
|
|
2441
2492
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cfbd",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.20.0",
|
|
4
4
|
"description": "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 CollegeFootballData.com website.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser } from '@hey-api/client-fetch';
|
|
4
|
-
import type { GetAdjustedTeamSeasonStatsData, GetAdjustedTeamSeasonStatsError, GetAdjustedTeamSeasonStatsResponse, GetAdjustedPlayerPassingStatsData, GetAdjustedPlayerPassingStatsError, GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerRushingStatsData, GetAdjustedPlayerRushingStatsError, GetAdjustedPlayerRushingStatsResponse, GetKickerPaarData, GetKickerPaarError, GetKickerPaarResponse, GetTeamsData, GetTeamsError, GetTeamsResponse, GetFbsTeamsData, GetFbsTeamsError, GetFbsTeamsResponse, GetMatchupData, GetMatchupError, GetMatchupResponse, GetTeamsAtsData, GetTeamsAtsError, GetTeamsAtsResponse, GetRosterData, GetRosterError, GetRosterResponse, GetConferencesError, GetConferencesResponse, GetTalentData, GetTalentError, GetTalentResponse, GetVenuesError, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsError, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesError, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesError, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsError, GetTeamStatsResponse, GetCategoriesError, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsError, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsError, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsError, GetGameHavocStatsResponse, GetRecruitsData, GetRecruitsError, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsError, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsError, GetAggregatedTeamRecruitingRatingsResponse, GetSpData, GetSpError, GetSpResponse, GetConferenceSpData, GetConferenceSpError, GetConferenceSpResponse, GetSrsData, GetSrsError, GetSrsResponse, GetEloData, GetEloError, GetEloResponse, GetFpiData, GetFpiError, GetFpiResponse, GetRankingsData, GetRankingsError, GetRankingsResponse, GetPlaysData, GetPlaysError, GetPlaysResponse, GetPlayTypesError, GetPlayTypesResponse, GetPlayStatsData, GetPlayStatsError, GetPlayStatsResponse, GetPlayStatTypesError, GetPlayStatTypesResponse, GetCfpPlayoffData, GetCfpPlayoffError, GetCfpPlayoffResponse, GetCfpParticipantsData, GetCfpParticipantsError, GetCfpParticipantsResponse, GetCfpGamesData, GetCfpGamesError, GetCfpGamesResponse, SearchPlayersData, SearchPlayersError, SearchPlayersResponse, GetPlayerUsageData, GetPlayerUsageError, GetPlayerUsageResponse, GetPlayerSeasonOverviewData, GetPlayerSeasonOverviewError, GetPlayerSeasonOverviewResponse, GetReturningProductionData, GetReturningProductionError, GetReturningProductionResponse, GetTransferPortalData, GetTransferPortalError, GetTransferPortalResponse, GetPredictedPointsData, GetPredictedPointsError, GetPredictedPointsResponse, GetPredictedPointsAddedByTeamData, GetPredictedPointsAddedByTeamError, GetPredictedPointsAddedByTeamResponse, GetPredictedPointsAddedByGameData, GetPredictedPointsAddedByGameError, GetPredictedPointsAddedByGameResponse, GetPredictedPointsAddedByPlayerGameData, GetPredictedPointsAddedByPlayerGameError, GetPredictedPointsAddedByPlayerGameResponse, GetPredictedPointsAddedByPlayerSeasonData, GetPredictedPointsAddedByPlayerSeasonError, GetPredictedPointsAddedByPlayerSeasonResponse, GetWinProbabilityData, GetWinProbabilityError, GetWinProbabilityResponse, GetPregameWinProbabilitiesData, GetPregameWinProbabilitiesError, GetPregameWinProbabilitiesResponse, GetFieldGoalExpectedPointsError, GetFieldGoalExpectedPointsResponse, GetLivePlaysData, GetLivePlaysError, GetLivePlaysResponse, GetLinesData, GetLinesError, GetLinesResponse, GetUserInfoError, GetUserInfoResponse, GetUsageData, GetUsageError, GetUsageResponse, GetGamesData, GetGamesError, GetGamesResponse, GetGameTeamStatsData, GetGameTeamStatsError, GetGameTeamStatsResponse, GetGamePlayerStatsData, GetGamePlayerStatsError, GetGamePlayerStatsResponse, GetMediaData, GetMediaError, GetMediaResponse, GetWeatherData, GetWeatherError, GetWeatherResponse, GetRecordsData, GetRecordsError, GetRecordsResponse, GetCalendarData, GetCalendarError, GetCalendarResponse, GetScoreboardData, GetScoreboardError, GetScoreboardResponse, GetDrivesData, GetDrivesError, GetDrivesResponse, GetDraftTeamsError, GetDraftTeamsResponse, GetDraftPositionsError, GetDraftPositionsResponse, GetDraftPicksData, GetDraftPicksError, GetDraftPicksResponse, GetCoachesData, GetCoachesError, GetCoachesResponse, GetAdvancedBoxScoreData, GetAdvancedBoxScoreError, GetAdvancedBoxScoreResponse } from './types.gen';
|
|
4
|
+
import type { GetAdjustedTeamSeasonStatsData, GetAdjustedTeamSeasonStatsError, GetAdjustedTeamSeasonStatsResponse, GetAdjustedPlayerPassingStatsData, GetAdjustedPlayerPassingStatsError, GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerRushingStatsData, GetAdjustedPlayerRushingStatsError, GetAdjustedPlayerRushingStatsResponse, GetKickerPaarData, GetKickerPaarError, GetKickerPaarResponse, GetTeamsData, GetTeamsError, GetTeamsResponse, GetFbsTeamsData, GetFbsTeamsError, GetFbsTeamsResponse, GetMatchupData, GetMatchupError, GetMatchupResponse, GetTeamsAtsData, GetTeamsAtsError, GetTeamsAtsResponse, GetRosterData, GetRosterError, GetRosterResponse, GetConferencesError, GetConferencesResponse, GetTalentData, GetTalentError, GetTalentResponse, GetVenuesError, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsError, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesError, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesError, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsError, GetTeamStatsResponse, GetCategoriesError, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsError, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsError, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsError, GetGameHavocStatsResponse, GetRecruitsData, GetRecruitsError, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsError, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsError, GetAggregatedTeamRecruitingRatingsResponse, GetSpData, GetSpError, GetSpResponse, GetConferenceSpData, GetConferenceSpError, GetConferenceSpResponse, GetSrsData, GetSrsError, GetSrsResponse, GetExpandedSrsData, GetExpandedSrsError, GetExpandedSrsResponse, GetEloData, GetEloError, GetEloResponse, GetFpiData, GetFpiError, GetFpiResponse, GetRankingsData, GetRankingsError, GetRankingsResponse, GetPlaysData, GetPlaysError, GetPlaysResponse, GetPlayTypesError, GetPlayTypesResponse, GetPlayStatsData, GetPlayStatsError, GetPlayStatsResponse, GetPlayStatTypesError, GetPlayStatTypesResponse, GetCfpPlayoffData, GetCfpPlayoffError, GetCfpPlayoffResponse, GetCfpParticipantsData, GetCfpParticipantsError, GetCfpParticipantsResponse, GetCfpGamesData, GetCfpGamesError, GetCfpGamesResponse, SearchPlayersData, SearchPlayersError, SearchPlayersResponse, GetPlayerUsageData, GetPlayerUsageError, GetPlayerUsageResponse, GetPlayerSeasonOverviewData, GetPlayerSeasonOverviewError, GetPlayerSeasonOverviewResponse, GetReturningProductionData, GetReturningProductionError, GetReturningProductionResponse, GetTransferPortalData, GetTransferPortalError, GetTransferPortalResponse, GetPredictedPointsData, GetPredictedPointsError, GetPredictedPointsResponse, GetPredictedPointsAddedByTeamData, GetPredictedPointsAddedByTeamError, GetPredictedPointsAddedByTeamResponse, GetPredictedPointsAddedByGameData, GetPredictedPointsAddedByGameError, GetPredictedPointsAddedByGameResponse, GetPredictedPointsAddedByPlayerGameData, GetPredictedPointsAddedByPlayerGameError, GetPredictedPointsAddedByPlayerGameResponse, GetPredictedPointsAddedByPlayerSeasonData, GetPredictedPointsAddedByPlayerSeasonError, GetPredictedPointsAddedByPlayerSeasonResponse, GetWinProbabilityData, GetWinProbabilityError, GetWinProbabilityResponse, GetPregameWinProbabilitiesData, GetPregameWinProbabilitiesError, GetPregameWinProbabilitiesResponse, GetFieldGoalExpectedPointsError, GetFieldGoalExpectedPointsResponse, GetLivePlaysData, GetLivePlaysError, GetLivePlaysResponse, GetLinesData, GetLinesError, GetLinesResponse, GetUserInfoError, GetUserInfoResponse, GetUsageData, GetUsageError, GetUsageResponse, GetGamesData, GetGamesError, GetGamesResponse, GetGameTeamStatsData, GetGameTeamStatsError, GetGameTeamStatsResponse, GetGamePlayerStatsData, GetGamePlayerStatsError, GetGamePlayerStatsResponse, GetMediaData, GetMediaError, GetMediaResponse, GetWeatherData, GetWeatherError, GetWeatherResponse, GetRecordsData, GetRecordsError, GetRecordsResponse, GetCalendarData, GetCalendarError, GetCalendarResponse, GetScoreboardData, GetScoreboardError, GetScoreboardResponse, GetDrivesData, GetDrivesError, GetDrivesResponse, GetDraftTeamsError, GetDraftTeamsResponse, GetDraftPositionsError, GetDraftPositionsResponse, GetDraftPicksData, GetDraftPicksError, GetDraftPicksResponse, GetCoachesData, GetCoachesError, GetCoachesResponse, GetAdvancedBoxScoreData, GetAdvancedBoxScoreError, GetAdvancedBoxScoreResponse } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig({ baseUrl: 'https://api.collegefootballdata.com' }));
|
|
7
7
|
|
|
@@ -265,6 +265,16 @@ export const getSrs = <ThrowOnError extends boolean = false>(options?: OptionsLe
|
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Retrieves expanded historical SRS (including FCS) for a year or team
|
|
270
|
+
*/
|
|
271
|
+
export const getExpandedSrs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetExpandedSrsData, ThrowOnError>) => {
|
|
272
|
+
return (options?.client ?? client).get<GetExpandedSrsResponse, GetExpandedSrsError, ThrowOnError>({
|
|
273
|
+
...options,
|
|
274
|
+
url: '/ratings/srs/expanded'
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
|
|
268
278
|
/**
|
|
269
279
|
* Retrieves historical Elo ratings
|
|
270
280
|
*/
|
package/src/types.gen.ts
CHANGED
|
@@ -474,6 +474,16 @@ export type Drive = {
|
|
|
474
474
|
endDefenseScore: number;
|
|
475
475
|
};
|
|
476
476
|
|
|
477
|
+
export type ExpandedTeamSRS = {
|
|
478
|
+
year: number;
|
|
479
|
+
team: string;
|
|
480
|
+
conference: (string) | null;
|
|
481
|
+
division: (string) | null;
|
|
482
|
+
rating: number;
|
|
483
|
+
ranking: (number) | null;
|
|
484
|
+
classification: DivisionClassification;
|
|
485
|
+
};
|
|
486
|
+
|
|
477
487
|
export type FieldGoalEP = {
|
|
478
488
|
yardsToGoal: number;
|
|
479
489
|
distance: number;
|
|
@@ -2050,6 +2060,10 @@ export type GetPlayerGameSuccessRatesError = unknown;
|
|
|
2050
2060
|
|
|
2051
2061
|
export type GetTeamStatsData = {
|
|
2052
2062
|
query?: {
|
|
2063
|
+
/**
|
|
2064
|
+
* Optional division classification filter, defaults to fbs
|
|
2065
|
+
*/
|
|
2066
|
+
classification?: DivisionClassification;
|
|
2053
2067
|
/**
|
|
2054
2068
|
* Optional conference filter
|
|
2055
2069
|
*/
|
|
@@ -2083,6 +2097,10 @@ export type GetCategoriesError = unknown;
|
|
|
2083
2097
|
|
|
2084
2098
|
export type GetAdvancedSeasonStatsData = {
|
|
2085
2099
|
query?: {
|
|
2100
|
+
/**
|
|
2101
|
+
* Optional division classification filter, defaults to fbs
|
|
2102
|
+
*/
|
|
2103
|
+
classification?: DivisionClassification;
|
|
2086
2104
|
/**
|
|
2087
2105
|
* Optional end week range filter
|
|
2088
2106
|
*/
|
|
@@ -2266,6 +2284,10 @@ export type GetSpError = unknown;
|
|
|
2266
2284
|
|
|
2267
2285
|
export type GetConferenceSpData = {
|
|
2268
2286
|
query?: {
|
|
2287
|
+
/**
|
|
2288
|
+
* Optional division classification filter, defaults to fbs
|
|
2289
|
+
*/
|
|
2290
|
+
classification?: DivisionClassification;
|
|
2269
2291
|
/**
|
|
2270
2292
|
* Optional conference filter
|
|
2271
2293
|
*/
|
|
@@ -2302,6 +2324,31 @@ export type GetSrsResponse = (Array<TeamSRS>);
|
|
|
2302
2324
|
|
|
2303
2325
|
export type GetSrsError = unknown;
|
|
2304
2326
|
|
|
2327
|
+
export type GetExpandedSrsData = {
|
|
2328
|
+
query?: {
|
|
2329
|
+
/**
|
|
2330
|
+
* Optional division classification filter (fbs or fcs)
|
|
2331
|
+
*/
|
|
2332
|
+
classification?: DivisionClassification;
|
|
2333
|
+
/**
|
|
2334
|
+
* Optional conference filter
|
|
2335
|
+
*/
|
|
2336
|
+
conference?: string;
|
|
2337
|
+
/**
|
|
2338
|
+
* Team filter, required if year not specified
|
|
2339
|
+
*/
|
|
2340
|
+
team?: string;
|
|
2341
|
+
/**
|
|
2342
|
+
* Year filter, required if team not specified
|
|
2343
|
+
*/
|
|
2344
|
+
year?: number;
|
|
2345
|
+
};
|
|
2346
|
+
};
|
|
2347
|
+
|
|
2348
|
+
export type GetExpandedSrsResponse = (Array<ExpandedTeamSRS>);
|
|
2349
|
+
|
|
2350
|
+
export type GetExpandedSrsError = unknown;
|
|
2351
|
+
|
|
2305
2352
|
export type GetEloData = {
|
|
2306
2353
|
query?: {
|
|
2307
2354
|
/**
|
|
@@ -2666,6 +2713,10 @@ export type GetPredictedPointsError = unknown;
|
|
|
2666
2713
|
|
|
2667
2714
|
export type GetPredictedPointsAddedByTeamData = {
|
|
2668
2715
|
query?: {
|
|
2716
|
+
/**
|
|
2717
|
+
* Optional division classification filter, defaults to fbs
|
|
2718
|
+
*/
|
|
2719
|
+
classification?: DivisionClassification;
|
|
2669
2720
|
/**
|
|
2670
2721
|
* Conference abbreviation filter
|
|
2671
2722
|
*/
|
|
@@ -2691,6 +2742,10 @@ export type GetPredictedPointsAddedByTeamError = unknown;
|
|
|
2691
2742
|
|
|
2692
2743
|
export type GetPredictedPointsAddedByGameData = {
|
|
2693
2744
|
query: {
|
|
2745
|
+
/**
|
|
2746
|
+
* Optional division classification filter, defaults to fbs
|
|
2747
|
+
*/
|
|
2748
|
+
classification?: DivisionClassification;
|
|
2694
2749
|
/**
|
|
2695
2750
|
* Optional conference abbreviation filter
|
|
2696
2751
|
*/
|
package/cfbd-5.18.1.tgz
DELETED
|
Binary file
|