cfbd 5.29.0 → 5.30.1
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.30.1.tgz +0 -0
- package/dist/sdk.gen.d.ts +6 -1
- package/dist/sdk.gen.js +11 -2
- package/dist/types.gen.d.ts +237 -0
- package/package.json +1 -1
- package/src/sdk.gen.ts +12 -1
- package/src/types.gen.ts +248 -0
- package/cfbd-5.29.0.tgz +0 -0
package/cfbd-5.30.1.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, GetConferencesData, GetConferencesResponse, GetTeamConferenceChangesData, GetTeamConferenceChangesResponse, GetTeamConferenceAffiliationsData, GetTeamConferenceAffiliationsResponse, GetTalentData, GetTalentResponse, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsResponse, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsResponse, GetRushingPlaysData, GetRushingPlaysResponse, GetPlayerRushingBySeasonData, GetPlayerRushingBySeasonResponse, GetPlayerRushingByGameData, GetPlayerRushingByGameResponse, GetTeamRushingBySeasonData, GetTeamRushingBySeasonResponse, GetTeamRushingByGameData, GetTeamRushingByGameResponse, GetRecruitsData, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsResponse, GetCoreData, GetCoreResponse, 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, GetPassingPlaysData, GetPassingPlaysResponse, GetPlayerPassingBySeasonData, GetPlayerPassingBySeasonResponse, GetPlayerPassingByGameData, GetPlayerPassingByGameResponse, GetTeamPassingBySeasonData, GetTeamPassingBySeasonResponse, GetTeamPassingByGameData, GetTeamPassingByGameResponse, 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, GetCoachProfileData, GetCoachProfileError, GetCoachSeasonsData, GetCoachSeasonsError, GetCoachSeasonsResponse, GetCoachTenuresData, GetCoachTenuresError, GetCoachTenuresResponse, GetAdvancedBoxScoreData } from './types.gen';
|
|
2
|
+
import type { GetAdjustedTeamSeasonStatsData, GetAdjustedTeamSeasonStatsResponse, GetAdjustedPlayerPassingStatsData, GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerRushingStatsData, GetAdjustedPlayerRushingStatsResponse, GetKickerPaarData, GetKickerPaarResponse, GetTeamSeasonOverviewData, GetTeamSeasonOverviewError, GetTeamsData, GetTeamsResponse, GetFbsTeamsData, GetFbsTeamsResponse, GetMatchupData, GetTeamsAtsData, GetTeamsAtsResponse, GetRosterData, GetRosterResponse, GetConferencesData, GetConferencesResponse, GetTeamConferenceChangesData, GetTeamConferenceChangesResponse, GetTeamConferenceAffiliationsData, GetTeamConferenceAffiliationsResponse, GetTalentData, GetTalentResponse, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsResponse, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsResponse, GetRushingPlaysData, GetRushingPlaysResponse, GetPlayerRushingBySeasonData, GetPlayerRushingBySeasonResponse, GetPlayerRushingByGameData, GetPlayerRushingByGameResponse, GetTeamRushingBySeasonData, GetTeamRushingBySeasonResponse, GetTeamRushingByGameData, GetTeamRushingByGameResponse, GetRecruitsData, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsResponse, GetCoreData, GetCoreResponse, 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, GetPassingPlaysData, GetPassingPlaysResponse, GetPlayerPassingBySeasonData, GetPlayerPassingBySeasonResponse, GetPlayerPassingByGameData, GetPlayerPassingByGameResponse, GetTeamPassingBySeasonData, GetTeamPassingBySeasonResponse, GetTeamPassingByGameData, GetTeamPassingByGameResponse, 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, GetCoachProfileData, GetCoachProfileError, GetCoachSeasonsData, GetCoachSeasonsError, GetCoachSeasonsResponse, GetCoachTenuresData, GetCoachTenuresError, GetCoachTenuresResponse, 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
|
* Returns opponent-adjusted team statistics by season.
|
|
@@ -17,6 +17,10 @@ export declare const getAdjustedPlayerRushingStats: <ThrowOnError extends boolea
|
|
|
17
17
|
* Returns Points Added Above Replacement (PAAR) ratings for kickers.
|
|
18
18
|
*/
|
|
19
19
|
export declare const getKickerPaar: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetKickerPaarData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetKickerPaarResponse, unknown, ThrowOnError>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns a stored full-season team overview, including postseason and garbage time.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getTeamSeasonOverview: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTeamSeasonOverviewData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").TeamSeasonOverview, GetTeamSeasonOverviewError, ThrowOnError>;
|
|
20
24
|
/**
|
|
21
25
|
* Returns team information and conference affiliations.
|
|
22
26
|
*/
|
|
@@ -356,6 +360,7 @@ export declare const getCoachProfile: <ThrowOnError extends boolean = false>(opt
|
|
|
356
360
|
export declare const getCoachSeasons: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetCoachSeasonsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetCoachSeasonsResponse, GetCoachSeasonsError, ThrowOnError>;
|
|
357
361
|
/**
|
|
358
362
|
* Returns continuous head-coaching tenures and their attributed records.
|
|
363
|
+
* Requires coachId or team; year and active only filter the results.
|
|
359
364
|
*/
|
|
360
365
|
export declare const getCoachTenures: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetCoachTenuresData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetCoachTenuresResponse, GetCoachTenuresError, ThrowOnError>;
|
|
361
366
|
/**
|
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.getCoachTenures = exports.getCoachSeasons = exports.getCoachProfile = 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 = exports.getPregameWinProbabilities = exports.getWinProbability = exports.getPredictedPointsAddedByPlayerSeason = exports.getPredictedPointsAddedByPlayerGame = exports.getPredictedPointsAddedByGame = exports.getPredictedPointsAddedByTeam = exports.getPredictedPoints = exports.getTeamPassingByGame = exports.getTeamPassingBySeason = exports.getPlayerPassingByGame = exports.getPlayerPassingBySeason = exports.getPassingPlays = exports.getTransferPortal = void 0;
|
|
15
|
+
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.getCore = exports.getAggregatedTeamRecruitingRatings = exports.getTeamRecruitingRankings = exports.getRecruits = exports.getTeamRushingByGame = exports.getTeamRushingBySeason = exports.getPlayerRushingByGame = exports.getPlayerRushingBySeason = exports.getRushingPlays = exports.getGameHavocStats = exports.getAdvancedGameStats = exports.getAdvancedSeasonStats = exports.getCategories = exports.getTeamStats = exports.getPlayerGameSuccessRates = exports.getPlayerSeasonSuccessRates = exports.getPlayerSeasonStats = exports.getVenues = exports.getTalent = exports.getTeamConferenceAffiliations = exports.getTeamConferenceChanges = exports.getConferences = exports.getRoster = exports.getTeamsAts = exports.getMatchup = exports.getFbsTeams = exports.getTeams = exports.getTeamSeasonOverview = exports.getKickerPaar = exports.getAdjustedPlayerRushingStats = exports.getAdjustedPlayerPassingStats = exports.getAdjustedTeamSeasonStats = exports.client = void 0;
|
|
16
|
+
exports.getAdvancedBoxScore = exports.getCoachTenures = exports.getCoachSeasons = exports.getCoachProfile = 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 = exports.getPregameWinProbabilities = exports.getWinProbability = exports.getPredictedPointsAddedByPlayerSeason = exports.getPredictedPointsAddedByPlayerGame = exports.getPredictedPointsAddedByGame = exports.getPredictedPointsAddedByTeam = exports.getPredictedPoints = exports.getTeamPassingByGame = exports.getTeamPassingBySeason = exports.getPlayerPassingByGame = exports.getPlayerPassingBySeason = exports.getPassingPlays = exports.getTransferPortal = exports.getReturningProduction = 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
|
/**
|
|
@@ -48,6 +48,14 @@ var getKickerPaar = function (options) {
|
|
|
48
48
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/wepa/players/kicking' }));
|
|
49
49
|
};
|
|
50
50
|
exports.getKickerPaar = getKickerPaar;
|
|
51
|
+
/**
|
|
52
|
+
* Returns a stored full-season team overview, including postseason and garbage time.
|
|
53
|
+
*/
|
|
54
|
+
var getTeamSeasonOverview = function (options) {
|
|
55
|
+
var _a;
|
|
56
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/teams/season/overview' }));
|
|
57
|
+
};
|
|
58
|
+
exports.getTeamSeasonOverview = getTeamSeasonOverview;
|
|
51
59
|
/**
|
|
52
60
|
* Returns team information and conference affiliations.
|
|
53
61
|
*/
|
|
@@ -699,6 +707,7 @@ var getCoachSeasons = function (options) {
|
|
|
699
707
|
exports.getCoachSeasons = getCoachSeasons;
|
|
700
708
|
/**
|
|
701
709
|
* Returns continuous head-coaching tenures and their attributed records.
|
|
710
|
+
* Requires coachId or team; year and active only filter the results.
|
|
702
711
|
*/
|
|
703
712
|
var getCoachTenures = function (options) {
|
|
704
713
|
var _a;
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -626,6 +626,12 @@ export type ExpandedTeamSRS = {
|
|
|
626
626
|
ranking: (number) | null;
|
|
627
627
|
classification: DivisionClassification;
|
|
628
628
|
};
|
|
629
|
+
export type FieldErrors = {
|
|
630
|
+
[key: string]: {
|
|
631
|
+
value?: unknown;
|
|
632
|
+
message: string;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
629
635
|
export type FieldGoalEP = {
|
|
630
636
|
yardsToGoal: number;
|
|
631
637
|
distance: number;
|
|
@@ -2225,6 +2231,210 @@ export type TeamScoringOpportunities = {
|
|
|
2225
2231
|
points: number;
|
|
2226
2232
|
pointsPerOpportunity: number;
|
|
2227
2233
|
};
|
|
2234
|
+
export type TeamSeasonAdvancedStats = {
|
|
2235
|
+
season: number;
|
|
2236
|
+
team: string;
|
|
2237
|
+
conference: string;
|
|
2238
|
+
offense: {
|
|
2239
|
+
passingPlays: {
|
|
2240
|
+
explosiveness: (number) | null;
|
|
2241
|
+
successRate: number;
|
|
2242
|
+
totalPPA: number;
|
|
2243
|
+
ppa: number;
|
|
2244
|
+
rate: number;
|
|
2245
|
+
};
|
|
2246
|
+
rushingPlays: {
|
|
2247
|
+
explosiveness: (number) | null;
|
|
2248
|
+
successRate: number;
|
|
2249
|
+
totalPPA: number;
|
|
2250
|
+
ppa: number;
|
|
2251
|
+
rate: number;
|
|
2252
|
+
};
|
|
2253
|
+
passingDowns: {
|
|
2254
|
+
explosiveness: (number) | null;
|
|
2255
|
+
successRate: number;
|
|
2256
|
+
ppa: number;
|
|
2257
|
+
rate: number;
|
|
2258
|
+
};
|
|
2259
|
+
standardDowns: {
|
|
2260
|
+
explosiveness: (number) | null;
|
|
2261
|
+
successRate: number;
|
|
2262
|
+
ppa: number;
|
|
2263
|
+
rate: number;
|
|
2264
|
+
};
|
|
2265
|
+
havoc: {
|
|
2266
|
+
db: (number) | null;
|
|
2267
|
+
frontSeven: (number) | null;
|
|
2268
|
+
total: (number) | null;
|
|
2269
|
+
};
|
|
2270
|
+
fieldPosition: {
|
|
2271
|
+
averagePredictedPoints: (number) | null;
|
|
2272
|
+
averageStart: (number) | null;
|
|
2273
|
+
};
|
|
2274
|
+
pointsPerOpportunity: number;
|
|
2275
|
+
totalOpportunies: number;
|
|
2276
|
+
openFieldYardsTotal: number;
|
|
2277
|
+
openFieldYards: number;
|
|
2278
|
+
secondLevelYardsTotal: number;
|
|
2279
|
+
secondLevelYards: number;
|
|
2280
|
+
lineYardsTotal: number;
|
|
2281
|
+
lineYards: number;
|
|
2282
|
+
stuffRate: number;
|
|
2283
|
+
powerSuccess: (number) | null;
|
|
2284
|
+
explosiveness: (number) | null;
|
|
2285
|
+
successRate: number;
|
|
2286
|
+
totalPPA: number;
|
|
2287
|
+
ppa: number;
|
|
2288
|
+
drives: number;
|
|
2289
|
+
plays: number;
|
|
2290
|
+
};
|
|
2291
|
+
defense: {
|
|
2292
|
+
passingPlays: {
|
|
2293
|
+
explosiveness: (number) | null;
|
|
2294
|
+
successRate: number;
|
|
2295
|
+
totalPPA: number;
|
|
2296
|
+
ppa: number;
|
|
2297
|
+
rate: number;
|
|
2298
|
+
};
|
|
2299
|
+
rushingPlays: {
|
|
2300
|
+
explosiveness: (number) | null;
|
|
2301
|
+
successRate: number;
|
|
2302
|
+
totalPPA: number;
|
|
2303
|
+
ppa: number;
|
|
2304
|
+
rate: number;
|
|
2305
|
+
};
|
|
2306
|
+
passingDowns: {
|
|
2307
|
+
explosiveness: (number) | null;
|
|
2308
|
+
successRate: number;
|
|
2309
|
+
totalPPA: number;
|
|
2310
|
+
ppa: number;
|
|
2311
|
+
rate: number;
|
|
2312
|
+
};
|
|
2313
|
+
standardDowns: {
|
|
2314
|
+
explosiveness: (number) | null;
|
|
2315
|
+
successRate: number;
|
|
2316
|
+
ppa: number;
|
|
2317
|
+
rate: number;
|
|
2318
|
+
};
|
|
2319
|
+
havoc: {
|
|
2320
|
+
db: (number) | null;
|
|
2321
|
+
frontSeven: (number) | null;
|
|
2322
|
+
total: (number) | null;
|
|
2323
|
+
};
|
|
2324
|
+
fieldPosition: {
|
|
2325
|
+
averagePredictedPoints: (number) | null;
|
|
2326
|
+
averageStart: (number) | null;
|
|
2327
|
+
};
|
|
2328
|
+
pointsPerOpportunity: number;
|
|
2329
|
+
totalOpportunies: number;
|
|
2330
|
+
openFieldYardsTotal: number;
|
|
2331
|
+
openFieldYards: number;
|
|
2332
|
+
secondLevelYardsTotal: number;
|
|
2333
|
+
secondLevelYards: number;
|
|
2334
|
+
lineYardsTotal: number;
|
|
2335
|
+
lineYards: number;
|
|
2336
|
+
stuffRate: number;
|
|
2337
|
+
powerSuccess: (number) | null;
|
|
2338
|
+
explosiveness: (number) | null;
|
|
2339
|
+
successRate: number;
|
|
2340
|
+
totalPPA: number;
|
|
2341
|
+
ppa: number;
|
|
2342
|
+
drives: number;
|
|
2343
|
+
plays: number;
|
|
2344
|
+
};
|
|
2345
|
+
};
|
|
2346
|
+
export type TeamSeasonOverview = {
|
|
2347
|
+
advanced: TeamSeasonAdvancedStats;
|
|
2348
|
+
players: {
|
|
2349
|
+
usage: Array<TeamSeasonPlayerUsage>;
|
|
2350
|
+
ppa: Array<TeamSeasonPlayerPpa>;
|
|
2351
|
+
};
|
|
2352
|
+
passing: ((TeamPassingSeason) | null);
|
|
2353
|
+
rushing: ((TeamRushingSeason) | null);
|
|
2354
|
+
/**
|
|
2355
|
+
* Completed games for the requested season, including postseason.
|
|
2356
|
+
*/
|
|
2357
|
+
record: {
|
|
2358
|
+
ties: number;
|
|
2359
|
+
losses: number;
|
|
2360
|
+
wins: number;
|
|
2361
|
+
games: number;
|
|
2362
|
+
};
|
|
2363
|
+
/**
|
|
2364
|
+
* Current available ratings for the requested season; unavailable systems are null.
|
|
2365
|
+
*/
|
|
2366
|
+
ratings: {
|
|
2367
|
+
sp: {
|
|
2368
|
+
specialTeams: TeamSeasonRankedRating;
|
|
2369
|
+
defense: TeamSeasonRankedRating;
|
|
2370
|
+
offense: TeamSeasonRankedRating;
|
|
2371
|
+
overall: TeamSeasonRankedRating;
|
|
2372
|
+
} | null;
|
|
2373
|
+
srs: ((TeamSeasonRankedRating) | null);
|
|
2374
|
+
/**
|
|
2375
|
+
* Latest available postgame Elo from a completed game in this season.
|
|
2376
|
+
*/
|
|
2377
|
+
elo: (number) | null;
|
|
2378
|
+
core: {
|
|
2379
|
+
defense: TeamSeasonRankedRating;
|
|
2380
|
+
offense: TeamSeasonRankedRating;
|
|
2381
|
+
overall: TeamSeasonRankedRating;
|
|
2382
|
+
} | null;
|
|
2383
|
+
/**
|
|
2384
|
+
* FPI efficiencies (higher is better for all four), not the FPI points rating.
|
|
2385
|
+
*/
|
|
2386
|
+
fpi: {
|
|
2387
|
+
specialTeams: TeamSeasonRankedRating;
|
|
2388
|
+
defense: TeamSeasonRankedRating;
|
|
2389
|
+
offense: TeamSeasonRankedRating;
|
|
2390
|
+
overall: TeamSeasonRankedRating;
|
|
2391
|
+
} | null;
|
|
2392
|
+
};
|
|
2393
|
+
season: number;
|
|
2394
|
+
teamId: number;
|
|
2395
|
+
team: string;
|
|
2396
|
+
};
|
|
2397
|
+
export type TeamSeasonOverviewError = {
|
|
2398
|
+
message: string;
|
|
2399
|
+
};
|
|
2400
|
+
export type TeamSeasonPlayerPpa = {
|
|
2401
|
+
season: number;
|
|
2402
|
+
id: string;
|
|
2403
|
+
name: (string) | null;
|
|
2404
|
+
position: (string) | null;
|
|
2405
|
+
team: string;
|
|
2406
|
+
conference: string;
|
|
2407
|
+
averagePPA: TeamSeasonPlayerPpaValues;
|
|
2408
|
+
totalPPA: TeamSeasonPlayerPpaValues;
|
|
2409
|
+
};
|
|
2410
|
+
export type TeamSeasonPlayerPpaValues = {
|
|
2411
|
+
all: (number) | null;
|
|
2412
|
+
pass: (number) | null;
|
|
2413
|
+
rush: (number) | null;
|
|
2414
|
+
firstDown: (number) | null;
|
|
2415
|
+
secondDown: (number) | null;
|
|
2416
|
+
thirdDown: (number) | null;
|
|
2417
|
+
standardDowns: (number) | null;
|
|
2418
|
+
passingDowns: (number) | null;
|
|
2419
|
+
};
|
|
2420
|
+
export type TeamSeasonPlayerUsage = {
|
|
2421
|
+
season: number;
|
|
2422
|
+
id: string;
|
|
2423
|
+
name: (string) | null;
|
|
2424
|
+
position: (string) | null;
|
|
2425
|
+
team: string;
|
|
2426
|
+
conference: string;
|
|
2427
|
+
usage: {
|
|
2428
|
+
passingDowns: (number) | null;
|
|
2429
|
+
standardDowns: (number) | null;
|
|
2430
|
+
thirdDown: (number) | null;
|
|
2431
|
+
secondDown: (number) | null;
|
|
2432
|
+
firstDown: (number) | null;
|
|
2433
|
+
rush: (number) | null;
|
|
2434
|
+
pass: (number) | null;
|
|
2435
|
+
overall: (number) | null;
|
|
2436
|
+
};
|
|
2437
|
+
};
|
|
2228
2438
|
export type TeamSeasonPredictedPointsAdded = {
|
|
2229
2439
|
season: number;
|
|
2230
2440
|
conference: string;
|
|
@@ -2256,6 +2466,16 @@ export type TeamSeasonPredictedPointsAdded = {
|
|
|
2256
2466
|
overall: number;
|
|
2257
2467
|
};
|
|
2258
2468
|
};
|
|
2469
|
+
export type TeamSeasonRankedRating = {
|
|
2470
|
+
/**
|
|
2471
|
+
* Rating/efficiency rounded to two decimal places.
|
|
2472
|
+
*/
|
|
2473
|
+
rating: (number) | null;
|
|
2474
|
+
/**
|
|
2475
|
+
* Competition rank within the requested season and division, using unrounded values.
|
|
2476
|
+
*/
|
|
2477
|
+
rank: (number) | null;
|
|
2478
|
+
};
|
|
2259
2479
|
export type TeamSP = {
|
|
2260
2480
|
year: number;
|
|
2261
2481
|
team: string;
|
|
@@ -2465,6 +2685,22 @@ export type GetKickerPaarData = {
|
|
|
2465
2685
|
};
|
|
2466
2686
|
export type GetKickerPaarResponse = (Array<KickerPAAR>);
|
|
2467
2687
|
export type GetKickerPaarError = unknown;
|
|
2688
|
+
export type GetTeamSeasonOverviewData = {
|
|
2689
|
+
query: {
|
|
2690
|
+
/**
|
|
2691
|
+
* Team name.
|
|
2692
|
+
*/
|
|
2693
|
+
team: string;
|
|
2694
|
+
/**
|
|
2695
|
+
* Season year.
|
|
2696
|
+
*/
|
|
2697
|
+
year: number;
|
|
2698
|
+
};
|
|
2699
|
+
};
|
|
2700
|
+
export type GetTeamSeasonOverviewResponse = (TeamSeasonOverview);
|
|
2701
|
+
export type GetTeamSeasonOverviewError = ({
|
|
2702
|
+
message: string;
|
|
2703
|
+
} | TeamSeasonOverviewError);
|
|
2468
2704
|
export type GetTeamsData = {
|
|
2469
2705
|
query?: {
|
|
2470
2706
|
/**
|
|
@@ -4345,6 +4581,7 @@ export type GetCoachTenuresData = {
|
|
|
4345
4581
|
};
|
|
4346
4582
|
export type GetCoachTenuresResponse = (Array<CoachTenure>);
|
|
4347
4583
|
export type GetCoachTenuresError = ({
|
|
4584
|
+
details: FieldErrors;
|
|
4348
4585
|
message: string;
|
|
4349
4586
|
});
|
|
4350
4587
|
export type GetAdvancedBoxScoreData = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cfbd",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.1",
|
|
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, GetConferencesData, GetConferencesError, GetConferencesResponse, GetTeamConferenceChangesData, GetTeamConferenceChangesError, GetTeamConferenceChangesResponse, GetTeamConferenceAffiliationsData, GetTeamConferenceAffiliationsError, GetTeamConferenceAffiliationsResponse, 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, GetRushingPlaysData, GetRushingPlaysError, GetRushingPlaysResponse, GetPlayerRushingBySeasonData, GetPlayerRushingBySeasonError, GetPlayerRushingBySeasonResponse, GetPlayerRushingByGameData, GetPlayerRushingByGameError, GetPlayerRushingByGameResponse, GetTeamRushingBySeasonData, GetTeamRushingBySeasonError, GetTeamRushingBySeasonResponse, GetTeamRushingByGameData, GetTeamRushingByGameError, GetTeamRushingByGameResponse, GetRecruitsData, GetRecruitsError, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsError, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsError, GetAggregatedTeamRecruitingRatingsResponse, GetCoreData, GetCoreError, GetCoreResponse, 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, GetPassingPlaysData, GetPassingPlaysError, GetPassingPlaysResponse, GetPlayerPassingBySeasonData, GetPlayerPassingBySeasonError, GetPlayerPassingBySeasonResponse, GetPlayerPassingByGameData, GetPlayerPassingByGameError, GetPlayerPassingByGameResponse, GetTeamPassingBySeasonData, GetTeamPassingBySeasonError, GetTeamPassingBySeasonResponse, GetTeamPassingByGameData, GetTeamPassingByGameError, GetTeamPassingByGameResponse, 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, GetCoachProfileData, GetCoachProfileError, GetCoachProfileResponse, GetCoachSeasonsData, GetCoachSeasonsError, GetCoachSeasonsResponse, GetCoachTenuresData, GetCoachTenuresError, GetCoachTenuresResponse, GetAdvancedBoxScoreData, GetAdvancedBoxScoreError, GetAdvancedBoxScoreResponse } from './types.gen';
|
|
4
|
+
import type { GetAdjustedTeamSeasonStatsData, GetAdjustedTeamSeasonStatsError, GetAdjustedTeamSeasonStatsResponse, GetAdjustedPlayerPassingStatsData, GetAdjustedPlayerPassingStatsError, GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerRushingStatsData, GetAdjustedPlayerRushingStatsError, GetAdjustedPlayerRushingStatsResponse, GetKickerPaarData, GetKickerPaarError, GetKickerPaarResponse, GetTeamSeasonOverviewData, GetTeamSeasonOverviewError, GetTeamSeasonOverviewResponse, GetTeamsData, GetTeamsError, GetTeamsResponse, GetFbsTeamsData, GetFbsTeamsError, GetFbsTeamsResponse, GetMatchupData, GetMatchupError, GetMatchupResponse, GetTeamsAtsData, GetTeamsAtsError, GetTeamsAtsResponse, GetRosterData, GetRosterError, GetRosterResponse, GetConferencesData, GetConferencesError, GetConferencesResponse, GetTeamConferenceChangesData, GetTeamConferenceChangesError, GetTeamConferenceChangesResponse, GetTeamConferenceAffiliationsData, GetTeamConferenceAffiliationsError, GetTeamConferenceAffiliationsResponse, 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, GetRushingPlaysData, GetRushingPlaysError, GetRushingPlaysResponse, GetPlayerRushingBySeasonData, GetPlayerRushingBySeasonError, GetPlayerRushingBySeasonResponse, GetPlayerRushingByGameData, GetPlayerRushingByGameError, GetPlayerRushingByGameResponse, GetTeamRushingBySeasonData, GetTeamRushingBySeasonError, GetTeamRushingBySeasonResponse, GetTeamRushingByGameData, GetTeamRushingByGameError, GetTeamRushingByGameResponse, GetRecruitsData, GetRecruitsError, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsError, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsError, GetAggregatedTeamRecruitingRatingsResponse, GetCoreData, GetCoreError, GetCoreResponse, 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, GetPassingPlaysData, GetPassingPlaysError, GetPassingPlaysResponse, GetPlayerPassingBySeasonData, GetPlayerPassingBySeasonError, GetPlayerPassingBySeasonResponse, GetPlayerPassingByGameData, GetPlayerPassingByGameError, GetPlayerPassingByGameResponse, GetTeamPassingBySeasonData, GetTeamPassingBySeasonError, GetTeamPassingBySeasonResponse, GetTeamPassingByGameData, GetTeamPassingByGameError, GetTeamPassingByGameResponse, 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, GetCoachProfileData, GetCoachProfileError, GetCoachProfileResponse, GetCoachSeasonsData, GetCoachSeasonsError, GetCoachSeasonsResponse, GetCoachTenuresData, GetCoachTenuresError, GetCoachTenuresResponse, GetAdvancedBoxScoreData, GetAdvancedBoxScoreError, GetAdvancedBoxScoreResponse } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig({ baseUrl: 'https://api.collegefootballdata.com' }));
|
|
7
7
|
|
|
@@ -45,6 +45,16 @@ export const getKickerPaar = <ThrowOnError extends boolean = false>(options?: Op
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Returns a stored full-season team overview, including postseason and garbage time.
|
|
50
|
+
*/
|
|
51
|
+
export const getTeamSeasonOverview = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTeamSeasonOverviewData, ThrowOnError>) => {
|
|
52
|
+
return (options?.client ?? client).get<GetTeamSeasonOverviewResponse, GetTeamSeasonOverviewError, ThrowOnError>({
|
|
53
|
+
...options,
|
|
54
|
+
url: '/teams/season/overview'
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
48
58
|
/**
|
|
49
59
|
* Returns team information and conference affiliations.
|
|
50
60
|
*/
|
|
@@ -852,6 +862,7 @@ export const getCoachSeasons = <ThrowOnError extends boolean = false>(options?:
|
|
|
852
862
|
|
|
853
863
|
/**
|
|
854
864
|
* Returns continuous head-coaching tenures and their attributed records.
|
|
865
|
+
* Requires coachId or team; year and active only filter the results.
|
|
855
866
|
*/
|
|
856
867
|
export const getCoachTenures = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetCoachTenuresData, ThrowOnError>) => {
|
|
857
868
|
return (options?.client ?? client).get<GetCoachTenuresResponse, GetCoachTenuresError, ThrowOnError>({
|
package/src/types.gen.ts
CHANGED
|
@@ -669,6 +669,13 @@ export type ExpandedTeamSRS = {
|
|
|
669
669
|
classification: DivisionClassification;
|
|
670
670
|
};
|
|
671
671
|
|
|
672
|
+
export type FieldErrors = {
|
|
673
|
+
[key: string]: {
|
|
674
|
+
value?: unknown;
|
|
675
|
+
message: string;
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
|
|
672
679
|
export type FieldGoalEP = {
|
|
673
680
|
yardsToGoal: number;
|
|
674
681
|
distance: number;
|
|
@@ -2390,6 +2397,216 @@ export type TeamScoringOpportunities = {
|
|
|
2390
2397
|
pointsPerOpportunity: number;
|
|
2391
2398
|
};
|
|
2392
2399
|
|
|
2400
|
+
export type TeamSeasonAdvancedStats = {
|
|
2401
|
+
season: number;
|
|
2402
|
+
team: string;
|
|
2403
|
+
conference: string;
|
|
2404
|
+
offense: {
|
|
2405
|
+
passingPlays: {
|
|
2406
|
+
explosiveness: (number) | null;
|
|
2407
|
+
successRate: number;
|
|
2408
|
+
totalPPA: number;
|
|
2409
|
+
ppa: number;
|
|
2410
|
+
rate: number;
|
|
2411
|
+
};
|
|
2412
|
+
rushingPlays: {
|
|
2413
|
+
explosiveness: (number) | null;
|
|
2414
|
+
successRate: number;
|
|
2415
|
+
totalPPA: number;
|
|
2416
|
+
ppa: number;
|
|
2417
|
+
rate: number;
|
|
2418
|
+
};
|
|
2419
|
+
passingDowns: {
|
|
2420
|
+
explosiveness: (number) | null;
|
|
2421
|
+
successRate: number;
|
|
2422
|
+
ppa: number;
|
|
2423
|
+
rate: number;
|
|
2424
|
+
};
|
|
2425
|
+
standardDowns: {
|
|
2426
|
+
explosiveness: (number) | null;
|
|
2427
|
+
successRate: number;
|
|
2428
|
+
ppa: number;
|
|
2429
|
+
rate: number;
|
|
2430
|
+
};
|
|
2431
|
+
havoc: {
|
|
2432
|
+
db: (number) | null;
|
|
2433
|
+
frontSeven: (number) | null;
|
|
2434
|
+
total: (number) | null;
|
|
2435
|
+
};
|
|
2436
|
+
fieldPosition: {
|
|
2437
|
+
averagePredictedPoints: (number) | null;
|
|
2438
|
+
averageStart: (number) | null;
|
|
2439
|
+
};
|
|
2440
|
+
pointsPerOpportunity: number;
|
|
2441
|
+
totalOpportunies: number;
|
|
2442
|
+
openFieldYardsTotal: number;
|
|
2443
|
+
openFieldYards: number;
|
|
2444
|
+
secondLevelYardsTotal: number;
|
|
2445
|
+
secondLevelYards: number;
|
|
2446
|
+
lineYardsTotal: number;
|
|
2447
|
+
lineYards: number;
|
|
2448
|
+
stuffRate: number;
|
|
2449
|
+
powerSuccess: (number) | null;
|
|
2450
|
+
explosiveness: (number) | null;
|
|
2451
|
+
successRate: number;
|
|
2452
|
+
totalPPA: number;
|
|
2453
|
+
ppa: number;
|
|
2454
|
+
drives: number;
|
|
2455
|
+
plays: number;
|
|
2456
|
+
};
|
|
2457
|
+
defense: {
|
|
2458
|
+
passingPlays: {
|
|
2459
|
+
explosiveness: (number) | null;
|
|
2460
|
+
successRate: number;
|
|
2461
|
+
totalPPA: number;
|
|
2462
|
+
ppa: number;
|
|
2463
|
+
rate: number;
|
|
2464
|
+
};
|
|
2465
|
+
rushingPlays: {
|
|
2466
|
+
explosiveness: (number) | null;
|
|
2467
|
+
successRate: number;
|
|
2468
|
+
totalPPA: number;
|
|
2469
|
+
ppa: number;
|
|
2470
|
+
rate: number;
|
|
2471
|
+
};
|
|
2472
|
+
passingDowns: {
|
|
2473
|
+
explosiveness: (number) | null;
|
|
2474
|
+
successRate: number;
|
|
2475
|
+
totalPPA: number;
|
|
2476
|
+
ppa: number;
|
|
2477
|
+
rate: number;
|
|
2478
|
+
};
|
|
2479
|
+
standardDowns: {
|
|
2480
|
+
explosiveness: (number) | null;
|
|
2481
|
+
successRate: number;
|
|
2482
|
+
ppa: number;
|
|
2483
|
+
rate: number;
|
|
2484
|
+
};
|
|
2485
|
+
havoc: {
|
|
2486
|
+
db: (number) | null;
|
|
2487
|
+
frontSeven: (number) | null;
|
|
2488
|
+
total: (number) | null;
|
|
2489
|
+
};
|
|
2490
|
+
fieldPosition: {
|
|
2491
|
+
averagePredictedPoints: (number) | null;
|
|
2492
|
+
averageStart: (number) | null;
|
|
2493
|
+
};
|
|
2494
|
+
pointsPerOpportunity: number;
|
|
2495
|
+
totalOpportunies: number;
|
|
2496
|
+
openFieldYardsTotal: number;
|
|
2497
|
+
openFieldYards: number;
|
|
2498
|
+
secondLevelYardsTotal: number;
|
|
2499
|
+
secondLevelYards: number;
|
|
2500
|
+
lineYardsTotal: number;
|
|
2501
|
+
lineYards: number;
|
|
2502
|
+
stuffRate: number;
|
|
2503
|
+
powerSuccess: (number) | null;
|
|
2504
|
+
explosiveness: (number) | null;
|
|
2505
|
+
successRate: number;
|
|
2506
|
+
totalPPA: number;
|
|
2507
|
+
ppa: number;
|
|
2508
|
+
drives: number;
|
|
2509
|
+
plays: number;
|
|
2510
|
+
};
|
|
2511
|
+
};
|
|
2512
|
+
|
|
2513
|
+
export type TeamSeasonOverview = {
|
|
2514
|
+
advanced: TeamSeasonAdvancedStats;
|
|
2515
|
+
players: {
|
|
2516
|
+
usage: Array<TeamSeasonPlayerUsage>;
|
|
2517
|
+
ppa: Array<TeamSeasonPlayerPpa>;
|
|
2518
|
+
};
|
|
2519
|
+
passing: ((TeamPassingSeason) | null);
|
|
2520
|
+
rushing: ((TeamRushingSeason) | null);
|
|
2521
|
+
/**
|
|
2522
|
+
* Completed games for the requested season, including postseason.
|
|
2523
|
+
*/
|
|
2524
|
+
record: {
|
|
2525
|
+
ties: number;
|
|
2526
|
+
losses: number;
|
|
2527
|
+
wins: number;
|
|
2528
|
+
games: number;
|
|
2529
|
+
};
|
|
2530
|
+
/**
|
|
2531
|
+
* Current available ratings for the requested season; unavailable systems are null.
|
|
2532
|
+
*/
|
|
2533
|
+
ratings: {
|
|
2534
|
+
sp: {
|
|
2535
|
+
specialTeams: TeamSeasonRankedRating;
|
|
2536
|
+
defense: TeamSeasonRankedRating;
|
|
2537
|
+
offense: TeamSeasonRankedRating;
|
|
2538
|
+
overall: TeamSeasonRankedRating;
|
|
2539
|
+
} | null;
|
|
2540
|
+
srs: ((TeamSeasonRankedRating) | null);
|
|
2541
|
+
/**
|
|
2542
|
+
* Latest available postgame Elo from a completed game in this season.
|
|
2543
|
+
*/
|
|
2544
|
+
elo: (number) | null;
|
|
2545
|
+
core: {
|
|
2546
|
+
defense: TeamSeasonRankedRating;
|
|
2547
|
+
offense: TeamSeasonRankedRating;
|
|
2548
|
+
overall: TeamSeasonRankedRating;
|
|
2549
|
+
} | null;
|
|
2550
|
+
/**
|
|
2551
|
+
* FPI efficiencies (higher is better for all four), not the FPI points rating.
|
|
2552
|
+
*/
|
|
2553
|
+
fpi: {
|
|
2554
|
+
specialTeams: TeamSeasonRankedRating;
|
|
2555
|
+
defense: TeamSeasonRankedRating;
|
|
2556
|
+
offense: TeamSeasonRankedRating;
|
|
2557
|
+
overall: TeamSeasonRankedRating;
|
|
2558
|
+
} | null;
|
|
2559
|
+
};
|
|
2560
|
+
season: number;
|
|
2561
|
+
teamId: number;
|
|
2562
|
+
team: string;
|
|
2563
|
+
};
|
|
2564
|
+
|
|
2565
|
+
export type TeamSeasonOverviewError = {
|
|
2566
|
+
message: string;
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
export type TeamSeasonPlayerPpa = {
|
|
2570
|
+
season: number;
|
|
2571
|
+
id: string;
|
|
2572
|
+
name: (string) | null;
|
|
2573
|
+
position: (string) | null;
|
|
2574
|
+
team: string;
|
|
2575
|
+
conference: string;
|
|
2576
|
+
averagePPA: TeamSeasonPlayerPpaValues;
|
|
2577
|
+
totalPPA: TeamSeasonPlayerPpaValues;
|
|
2578
|
+
};
|
|
2579
|
+
|
|
2580
|
+
export type TeamSeasonPlayerPpaValues = {
|
|
2581
|
+
all: (number) | null;
|
|
2582
|
+
pass: (number) | null;
|
|
2583
|
+
rush: (number) | null;
|
|
2584
|
+
firstDown: (number) | null;
|
|
2585
|
+
secondDown: (number) | null;
|
|
2586
|
+
thirdDown: (number) | null;
|
|
2587
|
+
standardDowns: (number) | null;
|
|
2588
|
+
passingDowns: (number) | null;
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
export type TeamSeasonPlayerUsage = {
|
|
2592
|
+
season: number;
|
|
2593
|
+
id: string;
|
|
2594
|
+
name: (string) | null;
|
|
2595
|
+
position: (string) | null;
|
|
2596
|
+
team: string;
|
|
2597
|
+
conference: string;
|
|
2598
|
+
usage: {
|
|
2599
|
+
passingDowns: (number) | null;
|
|
2600
|
+
standardDowns: (number) | null;
|
|
2601
|
+
thirdDown: (number) | null;
|
|
2602
|
+
secondDown: (number) | null;
|
|
2603
|
+
firstDown: (number) | null;
|
|
2604
|
+
rush: (number) | null;
|
|
2605
|
+
pass: (number) | null;
|
|
2606
|
+
overall: (number) | null;
|
|
2607
|
+
};
|
|
2608
|
+
};
|
|
2609
|
+
|
|
2393
2610
|
export type TeamSeasonPredictedPointsAdded = {
|
|
2394
2611
|
season: number;
|
|
2395
2612
|
conference: string;
|
|
@@ -2422,6 +2639,17 @@ export type TeamSeasonPredictedPointsAdded = {
|
|
|
2422
2639
|
};
|
|
2423
2640
|
};
|
|
2424
2641
|
|
|
2642
|
+
export type TeamSeasonRankedRating = {
|
|
2643
|
+
/**
|
|
2644
|
+
* Rating/efficiency rounded to two decimal places.
|
|
2645
|
+
*/
|
|
2646
|
+
rating: (number) | null;
|
|
2647
|
+
/**
|
|
2648
|
+
* Competition rank within the requested season and division, using unrounded values.
|
|
2649
|
+
*/
|
|
2650
|
+
rank: (number) | null;
|
|
2651
|
+
};
|
|
2652
|
+
|
|
2425
2653
|
export type TeamSP = {
|
|
2426
2654
|
year: number;
|
|
2427
2655
|
team: string;
|
|
@@ -2658,6 +2886,25 @@ export type GetKickerPaarResponse = (Array<KickerPAAR>);
|
|
|
2658
2886
|
|
|
2659
2887
|
export type GetKickerPaarError = unknown;
|
|
2660
2888
|
|
|
2889
|
+
export type GetTeamSeasonOverviewData = {
|
|
2890
|
+
query: {
|
|
2891
|
+
/**
|
|
2892
|
+
* Team name.
|
|
2893
|
+
*/
|
|
2894
|
+
team: string;
|
|
2895
|
+
/**
|
|
2896
|
+
* Season year.
|
|
2897
|
+
*/
|
|
2898
|
+
year: number;
|
|
2899
|
+
};
|
|
2900
|
+
};
|
|
2901
|
+
|
|
2902
|
+
export type GetTeamSeasonOverviewResponse = (TeamSeasonOverview);
|
|
2903
|
+
|
|
2904
|
+
export type GetTeamSeasonOverviewError = ({
|
|
2905
|
+
message: string;
|
|
2906
|
+
} | TeamSeasonOverviewError);
|
|
2907
|
+
|
|
2661
2908
|
export type GetTeamsData = {
|
|
2662
2909
|
query?: {
|
|
2663
2910
|
/**
|
|
@@ -4766,6 +5013,7 @@ export type GetCoachTenuresData = {
|
|
|
4766
5013
|
export type GetCoachTenuresResponse = (Array<CoachTenure>);
|
|
4767
5014
|
|
|
4768
5015
|
export type GetCoachTenuresError = ({
|
|
5016
|
+
details: FieldErrors;
|
|
4769
5017
|
message: string;
|
|
4770
5018
|
});
|
|
4771
5019
|
|
package/cfbd-5.29.0.tgz
DELETED
|
Binary file
|