cfbd 5.27.1 → 5.30.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.30.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 +252 -0
- package/package.json +1 -1
- package/src/sdk.gen.ts +11 -1
- package/src/types.gen.ts +262 -0
- package/cfbd-5.27.1.tgz +0 -0
package/cfbd-5.30.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, 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
|
*/
|
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
|
*/
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -50,6 +50,14 @@ export type AdvancedBoxScore = {
|
|
|
50
50
|
homeTeam: string;
|
|
51
51
|
};
|
|
52
52
|
teams: {
|
|
53
|
+
/**
|
|
54
|
+
* Enriched rushing, separate from the legacy rushing section.
|
|
55
|
+
*/
|
|
56
|
+
rushingAdvanced: Array<TeamRushingGame>;
|
|
57
|
+
/**
|
|
58
|
+
* Enriched offense/defense passing; empty when no qualifying rows exist.
|
|
59
|
+
*/
|
|
60
|
+
passing: Array<TeamPassingGame>;
|
|
53
61
|
fieldPosition: Array<TeamFieldPosition>;
|
|
54
62
|
scoringOpportunities: Array<TeamScoringOpportunities>;
|
|
55
63
|
havoc: Array<TeamHavoc>;
|
|
@@ -62,6 +70,14 @@ export type AdvancedBoxScore = {
|
|
|
62
70
|
players: {
|
|
63
71
|
ppa: Array<PlayerPPA>;
|
|
64
72
|
usage: Array<PlayerGameUsage>;
|
|
73
|
+
/**
|
|
74
|
+
* Enriched rushing by athlete ID, including direction coverage.
|
|
75
|
+
*/
|
|
76
|
+
rushing: Array<PlayerRushingGame>;
|
|
77
|
+
/**
|
|
78
|
+
* Enriched passing by athlete ID, including location coverage.
|
|
79
|
+
*/
|
|
80
|
+
passing: Array<PlayerPassingGame>;
|
|
65
81
|
};
|
|
66
82
|
};
|
|
67
83
|
export type AdvancedGameStat = {
|
|
@@ -2209,6 +2225,210 @@ export type TeamScoringOpportunities = {
|
|
|
2209
2225
|
points: number;
|
|
2210
2226
|
pointsPerOpportunity: number;
|
|
2211
2227
|
};
|
|
2228
|
+
export type TeamSeasonAdvancedStats = {
|
|
2229
|
+
season: number;
|
|
2230
|
+
team: string;
|
|
2231
|
+
conference: string;
|
|
2232
|
+
offense: {
|
|
2233
|
+
passingPlays: {
|
|
2234
|
+
explosiveness: (number) | null;
|
|
2235
|
+
successRate: number;
|
|
2236
|
+
totalPPA: number;
|
|
2237
|
+
ppa: number;
|
|
2238
|
+
rate: number;
|
|
2239
|
+
};
|
|
2240
|
+
rushingPlays: {
|
|
2241
|
+
explosiveness: (number) | null;
|
|
2242
|
+
successRate: number;
|
|
2243
|
+
totalPPA: number;
|
|
2244
|
+
ppa: number;
|
|
2245
|
+
rate: number;
|
|
2246
|
+
};
|
|
2247
|
+
passingDowns: {
|
|
2248
|
+
explosiveness: (number) | null;
|
|
2249
|
+
successRate: number;
|
|
2250
|
+
ppa: number;
|
|
2251
|
+
rate: number;
|
|
2252
|
+
};
|
|
2253
|
+
standardDowns: {
|
|
2254
|
+
explosiveness: (number) | null;
|
|
2255
|
+
successRate: number;
|
|
2256
|
+
ppa: number;
|
|
2257
|
+
rate: number;
|
|
2258
|
+
};
|
|
2259
|
+
havoc: {
|
|
2260
|
+
db: (number) | null;
|
|
2261
|
+
frontSeven: (number) | null;
|
|
2262
|
+
total: (number) | null;
|
|
2263
|
+
};
|
|
2264
|
+
fieldPosition: {
|
|
2265
|
+
averagePredictedPoints: (number) | null;
|
|
2266
|
+
averageStart: (number) | null;
|
|
2267
|
+
};
|
|
2268
|
+
pointsPerOpportunity: number;
|
|
2269
|
+
totalOpportunies: number;
|
|
2270
|
+
openFieldYardsTotal: number;
|
|
2271
|
+
openFieldYards: number;
|
|
2272
|
+
secondLevelYardsTotal: number;
|
|
2273
|
+
secondLevelYards: number;
|
|
2274
|
+
lineYardsTotal: number;
|
|
2275
|
+
lineYards: number;
|
|
2276
|
+
stuffRate: number;
|
|
2277
|
+
powerSuccess: (number) | null;
|
|
2278
|
+
explosiveness: (number) | null;
|
|
2279
|
+
successRate: number;
|
|
2280
|
+
totalPPA: number;
|
|
2281
|
+
ppa: number;
|
|
2282
|
+
drives: number;
|
|
2283
|
+
plays: number;
|
|
2284
|
+
};
|
|
2285
|
+
defense: {
|
|
2286
|
+
passingPlays: {
|
|
2287
|
+
explosiveness: (number) | null;
|
|
2288
|
+
successRate: number;
|
|
2289
|
+
totalPPA: number;
|
|
2290
|
+
ppa: number;
|
|
2291
|
+
rate: number;
|
|
2292
|
+
};
|
|
2293
|
+
rushingPlays: {
|
|
2294
|
+
explosiveness: (number) | null;
|
|
2295
|
+
successRate: number;
|
|
2296
|
+
totalPPA: number;
|
|
2297
|
+
ppa: number;
|
|
2298
|
+
rate: number;
|
|
2299
|
+
};
|
|
2300
|
+
passingDowns: {
|
|
2301
|
+
explosiveness: (number) | null;
|
|
2302
|
+
successRate: number;
|
|
2303
|
+
totalPPA: number;
|
|
2304
|
+
ppa: number;
|
|
2305
|
+
rate: number;
|
|
2306
|
+
};
|
|
2307
|
+
standardDowns: {
|
|
2308
|
+
explosiveness: (number) | null;
|
|
2309
|
+
successRate: number;
|
|
2310
|
+
ppa: number;
|
|
2311
|
+
rate: number;
|
|
2312
|
+
};
|
|
2313
|
+
havoc: {
|
|
2314
|
+
db: (number) | null;
|
|
2315
|
+
frontSeven: (number) | null;
|
|
2316
|
+
total: (number) | null;
|
|
2317
|
+
};
|
|
2318
|
+
fieldPosition: {
|
|
2319
|
+
averagePredictedPoints: (number) | null;
|
|
2320
|
+
averageStart: (number) | null;
|
|
2321
|
+
};
|
|
2322
|
+
pointsPerOpportunity: number;
|
|
2323
|
+
totalOpportunies: number;
|
|
2324
|
+
openFieldYardsTotal: number;
|
|
2325
|
+
openFieldYards: number;
|
|
2326
|
+
secondLevelYardsTotal: number;
|
|
2327
|
+
secondLevelYards: number;
|
|
2328
|
+
lineYardsTotal: number;
|
|
2329
|
+
lineYards: number;
|
|
2330
|
+
stuffRate: number;
|
|
2331
|
+
powerSuccess: (number) | null;
|
|
2332
|
+
explosiveness: (number) | null;
|
|
2333
|
+
successRate: number;
|
|
2334
|
+
totalPPA: number;
|
|
2335
|
+
ppa: number;
|
|
2336
|
+
drives: number;
|
|
2337
|
+
plays: number;
|
|
2338
|
+
};
|
|
2339
|
+
};
|
|
2340
|
+
export type TeamSeasonOverview = {
|
|
2341
|
+
advanced: TeamSeasonAdvancedStats;
|
|
2342
|
+
players: {
|
|
2343
|
+
usage: Array<TeamSeasonPlayerUsage>;
|
|
2344
|
+
ppa: Array<TeamSeasonPlayerPpa>;
|
|
2345
|
+
};
|
|
2346
|
+
passing: ((TeamPassingSeason) | null);
|
|
2347
|
+
rushing: ((TeamRushingSeason) | null);
|
|
2348
|
+
/**
|
|
2349
|
+
* Completed games for the requested season, including postseason.
|
|
2350
|
+
*/
|
|
2351
|
+
record: {
|
|
2352
|
+
ties: number;
|
|
2353
|
+
losses: number;
|
|
2354
|
+
wins: number;
|
|
2355
|
+
games: number;
|
|
2356
|
+
};
|
|
2357
|
+
/**
|
|
2358
|
+
* Current available ratings for the requested season; unavailable systems are null.
|
|
2359
|
+
*/
|
|
2360
|
+
ratings: {
|
|
2361
|
+
sp: {
|
|
2362
|
+
specialTeams: TeamSeasonRankedRating;
|
|
2363
|
+
defense: TeamSeasonRankedRating;
|
|
2364
|
+
offense: TeamSeasonRankedRating;
|
|
2365
|
+
overall: TeamSeasonRankedRating;
|
|
2366
|
+
} | null;
|
|
2367
|
+
srs: ((TeamSeasonRankedRating) | null);
|
|
2368
|
+
/**
|
|
2369
|
+
* Latest available postgame Elo from a completed game in this season.
|
|
2370
|
+
*/
|
|
2371
|
+
elo: (number) | null;
|
|
2372
|
+
core: {
|
|
2373
|
+
defense: TeamSeasonRankedRating;
|
|
2374
|
+
offense: TeamSeasonRankedRating;
|
|
2375
|
+
overall: TeamSeasonRankedRating;
|
|
2376
|
+
} | null;
|
|
2377
|
+
/**
|
|
2378
|
+
* FPI efficiencies (higher is better for all four), not the FPI points rating.
|
|
2379
|
+
*/
|
|
2380
|
+
fpi: {
|
|
2381
|
+
specialTeams: TeamSeasonRankedRating;
|
|
2382
|
+
defense: TeamSeasonRankedRating;
|
|
2383
|
+
offense: TeamSeasonRankedRating;
|
|
2384
|
+
overall: TeamSeasonRankedRating;
|
|
2385
|
+
} | null;
|
|
2386
|
+
};
|
|
2387
|
+
season: number;
|
|
2388
|
+
teamId: number;
|
|
2389
|
+
team: string;
|
|
2390
|
+
};
|
|
2391
|
+
export type TeamSeasonOverviewError = {
|
|
2392
|
+
message: string;
|
|
2393
|
+
};
|
|
2394
|
+
export type TeamSeasonPlayerPpa = {
|
|
2395
|
+
season: number;
|
|
2396
|
+
id: string;
|
|
2397
|
+
name: (string) | null;
|
|
2398
|
+
position: (string) | null;
|
|
2399
|
+
team: string;
|
|
2400
|
+
conference: string;
|
|
2401
|
+
averagePPA: TeamSeasonPlayerPpaValues;
|
|
2402
|
+
totalPPA: TeamSeasonPlayerPpaValues;
|
|
2403
|
+
};
|
|
2404
|
+
export type TeamSeasonPlayerPpaValues = {
|
|
2405
|
+
all: (number) | null;
|
|
2406
|
+
pass: (number) | null;
|
|
2407
|
+
rush: (number) | null;
|
|
2408
|
+
firstDown: (number) | null;
|
|
2409
|
+
secondDown: (number) | null;
|
|
2410
|
+
thirdDown: (number) | null;
|
|
2411
|
+
standardDowns: (number) | null;
|
|
2412
|
+
passingDowns: (number) | null;
|
|
2413
|
+
};
|
|
2414
|
+
export type TeamSeasonPlayerUsage = {
|
|
2415
|
+
season: number;
|
|
2416
|
+
id: string;
|
|
2417
|
+
name: (string) | null;
|
|
2418
|
+
position: (string) | null;
|
|
2419
|
+
team: string;
|
|
2420
|
+
conference: string;
|
|
2421
|
+
usage: {
|
|
2422
|
+
passingDowns: (number) | null;
|
|
2423
|
+
standardDowns: (number) | null;
|
|
2424
|
+
thirdDown: (number) | null;
|
|
2425
|
+
secondDown: (number) | null;
|
|
2426
|
+
firstDown: (number) | null;
|
|
2427
|
+
rush: (number) | null;
|
|
2428
|
+
pass: (number) | null;
|
|
2429
|
+
overall: (number) | null;
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2212
2432
|
export type TeamSeasonPredictedPointsAdded = {
|
|
2213
2433
|
season: number;
|
|
2214
2434
|
conference: string;
|
|
@@ -2240,6 +2460,16 @@ export type TeamSeasonPredictedPointsAdded = {
|
|
|
2240
2460
|
overall: number;
|
|
2241
2461
|
};
|
|
2242
2462
|
};
|
|
2463
|
+
export type TeamSeasonRankedRating = {
|
|
2464
|
+
/**
|
|
2465
|
+
* Rating/efficiency rounded to two decimal places.
|
|
2466
|
+
*/
|
|
2467
|
+
rating: (number) | null;
|
|
2468
|
+
/**
|
|
2469
|
+
* Competition rank within the requested season and division, using unrounded values.
|
|
2470
|
+
*/
|
|
2471
|
+
rank: (number) | null;
|
|
2472
|
+
};
|
|
2243
2473
|
export type TeamSP = {
|
|
2244
2474
|
year: number;
|
|
2245
2475
|
team: string;
|
|
@@ -2449,6 +2679,22 @@ export type GetKickerPaarData = {
|
|
|
2449
2679
|
};
|
|
2450
2680
|
export type GetKickerPaarResponse = (Array<KickerPAAR>);
|
|
2451
2681
|
export type GetKickerPaarError = unknown;
|
|
2682
|
+
export type GetTeamSeasonOverviewData = {
|
|
2683
|
+
query: {
|
|
2684
|
+
/**
|
|
2685
|
+
* Team name.
|
|
2686
|
+
*/
|
|
2687
|
+
team: string;
|
|
2688
|
+
/**
|
|
2689
|
+
* Season year.
|
|
2690
|
+
*/
|
|
2691
|
+
year: number;
|
|
2692
|
+
};
|
|
2693
|
+
};
|
|
2694
|
+
export type GetTeamSeasonOverviewResponse = (TeamSeasonOverview);
|
|
2695
|
+
export type GetTeamSeasonOverviewError = ({
|
|
2696
|
+
message: string;
|
|
2697
|
+
} | TeamSeasonOverviewError);
|
|
2452
2698
|
export type GetTeamsData = {
|
|
2453
2699
|
query?: {
|
|
2454
2700
|
/**
|
|
@@ -3187,6 +3433,12 @@ export type GetEloData = {
|
|
|
3187
3433
|
* Conference name or abbreviation.
|
|
3188
3434
|
*/
|
|
3189
3435
|
conference?: string;
|
|
3436
|
+
/**
|
|
3437
|
+
* Return initial ratings from each team's opening regular-season
|
|
3438
|
+
* game. Missing opening ratings are omitted. Cannot be combined with week;
|
|
3439
|
+
* seasonType must be regular or both when specified. Defaults to false.
|
|
3440
|
+
*/
|
|
3441
|
+
preseason?: boolean;
|
|
3190
3442
|
/**
|
|
3191
3443
|
* Season type.
|
|
3192
3444
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cfbd",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.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, 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
|
*/
|
package/src/types.gen.ts
CHANGED
|
@@ -53,6 +53,14 @@ export type AdvancedBoxScore = {
|
|
|
53
53
|
homeTeam: string;
|
|
54
54
|
};
|
|
55
55
|
teams: {
|
|
56
|
+
/**
|
|
57
|
+
* Enriched rushing, separate from the legacy rushing section.
|
|
58
|
+
*/
|
|
59
|
+
rushingAdvanced: Array<TeamRushingGame>;
|
|
60
|
+
/**
|
|
61
|
+
* Enriched offense/defense passing; empty when no qualifying rows exist.
|
|
62
|
+
*/
|
|
63
|
+
passing: Array<TeamPassingGame>;
|
|
56
64
|
fieldPosition: Array<TeamFieldPosition>;
|
|
57
65
|
scoringOpportunities: Array<TeamScoringOpportunities>;
|
|
58
66
|
havoc: Array<TeamHavoc>;
|
|
@@ -65,6 +73,14 @@ export type AdvancedBoxScore = {
|
|
|
65
73
|
players: {
|
|
66
74
|
ppa: Array<PlayerPPA>;
|
|
67
75
|
usage: Array<PlayerGameUsage>;
|
|
76
|
+
/**
|
|
77
|
+
* Enriched rushing by athlete ID, including direction coverage.
|
|
78
|
+
*/
|
|
79
|
+
rushing: Array<PlayerRushingGame>;
|
|
80
|
+
/**
|
|
81
|
+
* Enriched passing by athlete ID, including location coverage.
|
|
82
|
+
*/
|
|
83
|
+
passing: Array<PlayerPassingGame>;
|
|
68
84
|
};
|
|
69
85
|
};
|
|
70
86
|
|
|
@@ -2374,6 +2390,216 @@ export type TeamScoringOpportunities = {
|
|
|
2374
2390
|
pointsPerOpportunity: number;
|
|
2375
2391
|
};
|
|
2376
2392
|
|
|
2393
|
+
export type TeamSeasonAdvancedStats = {
|
|
2394
|
+
season: number;
|
|
2395
|
+
team: string;
|
|
2396
|
+
conference: string;
|
|
2397
|
+
offense: {
|
|
2398
|
+
passingPlays: {
|
|
2399
|
+
explosiveness: (number) | null;
|
|
2400
|
+
successRate: number;
|
|
2401
|
+
totalPPA: number;
|
|
2402
|
+
ppa: number;
|
|
2403
|
+
rate: number;
|
|
2404
|
+
};
|
|
2405
|
+
rushingPlays: {
|
|
2406
|
+
explosiveness: (number) | null;
|
|
2407
|
+
successRate: number;
|
|
2408
|
+
totalPPA: number;
|
|
2409
|
+
ppa: number;
|
|
2410
|
+
rate: number;
|
|
2411
|
+
};
|
|
2412
|
+
passingDowns: {
|
|
2413
|
+
explosiveness: (number) | null;
|
|
2414
|
+
successRate: number;
|
|
2415
|
+
ppa: number;
|
|
2416
|
+
rate: number;
|
|
2417
|
+
};
|
|
2418
|
+
standardDowns: {
|
|
2419
|
+
explosiveness: (number) | null;
|
|
2420
|
+
successRate: number;
|
|
2421
|
+
ppa: number;
|
|
2422
|
+
rate: number;
|
|
2423
|
+
};
|
|
2424
|
+
havoc: {
|
|
2425
|
+
db: (number) | null;
|
|
2426
|
+
frontSeven: (number) | null;
|
|
2427
|
+
total: (number) | null;
|
|
2428
|
+
};
|
|
2429
|
+
fieldPosition: {
|
|
2430
|
+
averagePredictedPoints: (number) | null;
|
|
2431
|
+
averageStart: (number) | null;
|
|
2432
|
+
};
|
|
2433
|
+
pointsPerOpportunity: number;
|
|
2434
|
+
totalOpportunies: number;
|
|
2435
|
+
openFieldYardsTotal: number;
|
|
2436
|
+
openFieldYards: number;
|
|
2437
|
+
secondLevelYardsTotal: number;
|
|
2438
|
+
secondLevelYards: number;
|
|
2439
|
+
lineYardsTotal: number;
|
|
2440
|
+
lineYards: number;
|
|
2441
|
+
stuffRate: number;
|
|
2442
|
+
powerSuccess: (number) | null;
|
|
2443
|
+
explosiveness: (number) | null;
|
|
2444
|
+
successRate: number;
|
|
2445
|
+
totalPPA: number;
|
|
2446
|
+
ppa: number;
|
|
2447
|
+
drives: number;
|
|
2448
|
+
plays: number;
|
|
2449
|
+
};
|
|
2450
|
+
defense: {
|
|
2451
|
+
passingPlays: {
|
|
2452
|
+
explosiveness: (number) | null;
|
|
2453
|
+
successRate: number;
|
|
2454
|
+
totalPPA: number;
|
|
2455
|
+
ppa: number;
|
|
2456
|
+
rate: number;
|
|
2457
|
+
};
|
|
2458
|
+
rushingPlays: {
|
|
2459
|
+
explosiveness: (number) | null;
|
|
2460
|
+
successRate: number;
|
|
2461
|
+
totalPPA: number;
|
|
2462
|
+
ppa: number;
|
|
2463
|
+
rate: number;
|
|
2464
|
+
};
|
|
2465
|
+
passingDowns: {
|
|
2466
|
+
explosiveness: (number) | null;
|
|
2467
|
+
successRate: number;
|
|
2468
|
+
totalPPA: number;
|
|
2469
|
+
ppa: number;
|
|
2470
|
+
rate: number;
|
|
2471
|
+
};
|
|
2472
|
+
standardDowns: {
|
|
2473
|
+
explosiveness: (number) | null;
|
|
2474
|
+
successRate: number;
|
|
2475
|
+
ppa: number;
|
|
2476
|
+
rate: number;
|
|
2477
|
+
};
|
|
2478
|
+
havoc: {
|
|
2479
|
+
db: (number) | null;
|
|
2480
|
+
frontSeven: (number) | null;
|
|
2481
|
+
total: (number) | null;
|
|
2482
|
+
};
|
|
2483
|
+
fieldPosition: {
|
|
2484
|
+
averagePredictedPoints: (number) | null;
|
|
2485
|
+
averageStart: (number) | null;
|
|
2486
|
+
};
|
|
2487
|
+
pointsPerOpportunity: number;
|
|
2488
|
+
totalOpportunies: number;
|
|
2489
|
+
openFieldYardsTotal: number;
|
|
2490
|
+
openFieldYards: number;
|
|
2491
|
+
secondLevelYardsTotal: number;
|
|
2492
|
+
secondLevelYards: number;
|
|
2493
|
+
lineYardsTotal: number;
|
|
2494
|
+
lineYards: number;
|
|
2495
|
+
stuffRate: number;
|
|
2496
|
+
powerSuccess: (number) | null;
|
|
2497
|
+
explosiveness: (number) | null;
|
|
2498
|
+
successRate: number;
|
|
2499
|
+
totalPPA: number;
|
|
2500
|
+
ppa: number;
|
|
2501
|
+
drives: number;
|
|
2502
|
+
plays: number;
|
|
2503
|
+
};
|
|
2504
|
+
};
|
|
2505
|
+
|
|
2506
|
+
export type TeamSeasonOverview = {
|
|
2507
|
+
advanced: TeamSeasonAdvancedStats;
|
|
2508
|
+
players: {
|
|
2509
|
+
usage: Array<TeamSeasonPlayerUsage>;
|
|
2510
|
+
ppa: Array<TeamSeasonPlayerPpa>;
|
|
2511
|
+
};
|
|
2512
|
+
passing: ((TeamPassingSeason) | null);
|
|
2513
|
+
rushing: ((TeamRushingSeason) | null);
|
|
2514
|
+
/**
|
|
2515
|
+
* Completed games for the requested season, including postseason.
|
|
2516
|
+
*/
|
|
2517
|
+
record: {
|
|
2518
|
+
ties: number;
|
|
2519
|
+
losses: number;
|
|
2520
|
+
wins: number;
|
|
2521
|
+
games: number;
|
|
2522
|
+
};
|
|
2523
|
+
/**
|
|
2524
|
+
* Current available ratings for the requested season; unavailable systems are null.
|
|
2525
|
+
*/
|
|
2526
|
+
ratings: {
|
|
2527
|
+
sp: {
|
|
2528
|
+
specialTeams: TeamSeasonRankedRating;
|
|
2529
|
+
defense: TeamSeasonRankedRating;
|
|
2530
|
+
offense: TeamSeasonRankedRating;
|
|
2531
|
+
overall: TeamSeasonRankedRating;
|
|
2532
|
+
} | null;
|
|
2533
|
+
srs: ((TeamSeasonRankedRating) | null);
|
|
2534
|
+
/**
|
|
2535
|
+
* Latest available postgame Elo from a completed game in this season.
|
|
2536
|
+
*/
|
|
2537
|
+
elo: (number) | null;
|
|
2538
|
+
core: {
|
|
2539
|
+
defense: TeamSeasonRankedRating;
|
|
2540
|
+
offense: TeamSeasonRankedRating;
|
|
2541
|
+
overall: TeamSeasonRankedRating;
|
|
2542
|
+
} | null;
|
|
2543
|
+
/**
|
|
2544
|
+
* FPI efficiencies (higher is better for all four), not the FPI points rating.
|
|
2545
|
+
*/
|
|
2546
|
+
fpi: {
|
|
2547
|
+
specialTeams: TeamSeasonRankedRating;
|
|
2548
|
+
defense: TeamSeasonRankedRating;
|
|
2549
|
+
offense: TeamSeasonRankedRating;
|
|
2550
|
+
overall: TeamSeasonRankedRating;
|
|
2551
|
+
} | null;
|
|
2552
|
+
};
|
|
2553
|
+
season: number;
|
|
2554
|
+
teamId: number;
|
|
2555
|
+
team: string;
|
|
2556
|
+
};
|
|
2557
|
+
|
|
2558
|
+
export type TeamSeasonOverviewError = {
|
|
2559
|
+
message: string;
|
|
2560
|
+
};
|
|
2561
|
+
|
|
2562
|
+
export type TeamSeasonPlayerPpa = {
|
|
2563
|
+
season: number;
|
|
2564
|
+
id: string;
|
|
2565
|
+
name: (string) | null;
|
|
2566
|
+
position: (string) | null;
|
|
2567
|
+
team: string;
|
|
2568
|
+
conference: string;
|
|
2569
|
+
averagePPA: TeamSeasonPlayerPpaValues;
|
|
2570
|
+
totalPPA: TeamSeasonPlayerPpaValues;
|
|
2571
|
+
};
|
|
2572
|
+
|
|
2573
|
+
export type TeamSeasonPlayerPpaValues = {
|
|
2574
|
+
all: (number) | null;
|
|
2575
|
+
pass: (number) | null;
|
|
2576
|
+
rush: (number) | null;
|
|
2577
|
+
firstDown: (number) | null;
|
|
2578
|
+
secondDown: (number) | null;
|
|
2579
|
+
thirdDown: (number) | null;
|
|
2580
|
+
standardDowns: (number) | null;
|
|
2581
|
+
passingDowns: (number) | null;
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2584
|
+
export type TeamSeasonPlayerUsage = {
|
|
2585
|
+
season: number;
|
|
2586
|
+
id: string;
|
|
2587
|
+
name: (string) | null;
|
|
2588
|
+
position: (string) | null;
|
|
2589
|
+
team: string;
|
|
2590
|
+
conference: string;
|
|
2591
|
+
usage: {
|
|
2592
|
+
passingDowns: (number) | null;
|
|
2593
|
+
standardDowns: (number) | null;
|
|
2594
|
+
thirdDown: (number) | null;
|
|
2595
|
+
secondDown: (number) | null;
|
|
2596
|
+
firstDown: (number) | null;
|
|
2597
|
+
rush: (number) | null;
|
|
2598
|
+
pass: (number) | null;
|
|
2599
|
+
overall: (number) | null;
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
2602
|
+
|
|
2377
2603
|
export type TeamSeasonPredictedPointsAdded = {
|
|
2378
2604
|
season: number;
|
|
2379
2605
|
conference: string;
|
|
@@ -2406,6 +2632,17 @@ export type TeamSeasonPredictedPointsAdded = {
|
|
|
2406
2632
|
};
|
|
2407
2633
|
};
|
|
2408
2634
|
|
|
2635
|
+
export type TeamSeasonRankedRating = {
|
|
2636
|
+
/**
|
|
2637
|
+
* Rating/efficiency rounded to two decimal places.
|
|
2638
|
+
*/
|
|
2639
|
+
rating: (number) | null;
|
|
2640
|
+
/**
|
|
2641
|
+
* Competition rank within the requested season and division, using unrounded values.
|
|
2642
|
+
*/
|
|
2643
|
+
rank: (number) | null;
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2409
2646
|
export type TeamSP = {
|
|
2410
2647
|
year: number;
|
|
2411
2648
|
team: string;
|
|
@@ -2642,6 +2879,25 @@ export type GetKickerPaarResponse = (Array<KickerPAAR>);
|
|
|
2642
2879
|
|
|
2643
2880
|
export type GetKickerPaarError = unknown;
|
|
2644
2881
|
|
|
2882
|
+
export type GetTeamSeasonOverviewData = {
|
|
2883
|
+
query: {
|
|
2884
|
+
/**
|
|
2885
|
+
* Team name.
|
|
2886
|
+
*/
|
|
2887
|
+
team: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Season year.
|
|
2890
|
+
*/
|
|
2891
|
+
year: number;
|
|
2892
|
+
};
|
|
2893
|
+
};
|
|
2894
|
+
|
|
2895
|
+
export type GetTeamSeasonOverviewResponse = (TeamSeasonOverview);
|
|
2896
|
+
|
|
2897
|
+
export type GetTeamSeasonOverviewError = ({
|
|
2898
|
+
message: string;
|
|
2899
|
+
} | TeamSeasonOverviewError);
|
|
2900
|
+
|
|
2645
2901
|
export type GetTeamsData = {
|
|
2646
2902
|
query?: {
|
|
2647
2903
|
/**
|
|
@@ -3471,6 +3727,12 @@ export type GetEloData = {
|
|
|
3471
3727
|
* Conference name or abbreviation.
|
|
3472
3728
|
*/
|
|
3473
3729
|
conference?: string;
|
|
3730
|
+
/**
|
|
3731
|
+
* Return initial ratings from each team's opening regular-season
|
|
3732
|
+
* game. Missing opening ratings are omitted. Cannot be combined with week;
|
|
3733
|
+
* seasonType must be regular or both when specified. Defaults to false.
|
|
3734
|
+
*/
|
|
3735
|
+
preseason?: boolean;
|
|
3474
3736
|
/**
|
|
3475
3737
|
* Season type.
|
|
3476
3738
|
*/
|
package/cfbd-5.27.1.tgz
DELETED
|
Binary file
|