cfbd 5.23.0 → 5.24.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.24.1.tgz +0 -0
- package/dist/sdk.gen.d.ts +11 -3
- package/dist/sdk.gen.js +19 -3
- package/dist/types.gen.d.ts +80 -2
- package/package.json +1 -1
- package/src/sdk.gen.ts +23 -3
- package/src/types.gen.ts +90 -2
- package/cfbd-5.23.0.tgz +0 -0
package/cfbd-5.24.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, GetConferencesResponse, GetTalentData, GetTalentResponse, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsResponse, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsResponse, GetRecruitsData, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsResponse, 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, 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, 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, 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, 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.
|
|
@@ -38,9 +38,17 @@ export declare const getTeamsAts: <ThrowOnError extends boolean = false>(options
|
|
|
38
38
|
*/
|
|
39
39
|
export declare const getRoster: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRosterData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetRosterResponse, unknown, ThrowOnError>;
|
|
40
40
|
/**
|
|
41
|
-
* Returns
|
|
41
|
+
* Returns conferences and member counts.
|
|
42
42
|
*/
|
|
43
|
-
export declare const getConferences: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<
|
|
43
|
+
export declare const getConferences: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetConferencesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetConferencesResponse, unknown, ThrowOnError>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns team conference changes by season.
|
|
46
|
+
*/
|
|
47
|
+
export declare const getTeamConferenceChanges: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTeamConferenceChangesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetTeamConferenceChangesResponse, unknown, ThrowOnError>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns historical team conference affiliations.
|
|
50
|
+
*/
|
|
51
|
+
export declare const getTeamConferenceAffiliations: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTeamConferenceAffiliationsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<GetTeamConferenceAffiliationsResponse, unknown, ThrowOnError>;
|
|
44
52
|
/**
|
|
45
53
|
* Returns 247Sports Team Talent Composite ratings for a season.
|
|
46
54
|
*/
|
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 = void 0;
|
|
15
|
+
exports.getPredictedPointsAddedByPlayerGame = exports.getPredictedPointsAddedByGame = exports.getPredictedPointsAddedByTeam = exports.getPredictedPoints = exports.getTransferPortal = exports.getReturningProduction = exports.getPlayerSeasonOverview = exports.getPlayerUsage = exports.searchPlayers = exports.getCfpGames = exports.getCfpParticipants = exports.getCfpPlayoff = exports.getPlayStatTypes = exports.getPlayStats = exports.getPlayTypes = exports.getPlays = exports.getRankings = exports.getFpi = exports.getElo = exports.getExpandedSrs = exports.getSrs = exports.getConferenceSp = exports.getSp = exports.getCore = exports.getAggregatedTeamRecruitingRatings = exports.getTeamRecruitingRankings = exports.getRecruits = exports.getGameHavocStats = exports.getAdvancedGameStats = exports.getAdvancedSeasonStats = exports.getCategories = exports.getTeamStats = exports.getPlayerGameSuccessRates = exports.getPlayerSeasonSuccessRates = exports.getPlayerSeasonStats = exports.getVenues = exports.getTalent = exports.getTeamConferenceAffiliations = exports.getTeamConferenceChanges = exports.getConferences = exports.getRoster = exports.getTeamsAts = exports.getMatchup = exports.getFbsTeams = exports.getTeams = exports.getKickerPaar = exports.getAdjustedPlayerRushingStats = exports.getAdjustedPlayerPassingStats = exports.getAdjustedTeamSeasonStats = exports.client = void 0;
|
|
16
|
+
exports.getAdvancedBoxScore = exports.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 = 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
|
/**
|
|
@@ -89,13 +89,29 @@ var getRoster = function (options) {
|
|
|
89
89
|
};
|
|
90
90
|
exports.getRoster = getRoster;
|
|
91
91
|
/**
|
|
92
|
-
* Returns
|
|
92
|
+
* Returns conferences and member counts.
|
|
93
93
|
*/
|
|
94
94
|
var getConferences = function (options) {
|
|
95
95
|
var _a;
|
|
96
96
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/conferences' }));
|
|
97
97
|
};
|
|
98
98
|
exports.getConferences = getConferences;
|
|
99
|
+
/**
|
|
100
|
+
* Returns team conference changes by season.
|
|
101
|
+
*/
|
|
102
|
+
var getTeamConferenceChanges = function (options) {
|
|
103
|
+
var _a;
|
|
104
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/conferences/changes' }));
|
|
105
|
+
};
|
|
106
|
+
exports.getTeamConferenceChanges = getTeamConferenceChanges;
|
|
107
|
+
/**
|
|
108
|
+
* Returns historical team conference affiliations.
|
|
109
|
+
*/
|
|
110
|
+
var getTeamConferenceAffiliations = function (options) {
|
|
111
|
+
var _a;
|
|
112
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/conferences/affiliations' }));
|
|
113
|
+
};
|
|
114
|
+
exports.getTeamConferenceAffiliations = getTeamConferenceAffiliations;
|
|
99
115
|
/**
|
|
100
116
|
* Returns 247Sports Team Talent Composite ratings for a season.
|
|
101
117
|
*/
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -462,8 +462,10 @@ export type Conference = {
|
|
|
462
462
|
name: string;
|
|
463
463
|
shortName: (string) | null;
|
|
464
464
|
abbreviation: (string) | null;
|
|
465
|
-
classification: ((
|
|
465
|
+
classification: ((ConferenceClassification) | null);
|
|
466
|
+
memberCount: number;
|
|
466
467
|
};
|
|
468
|
+
export type ConferenceClassification = 'fbs' | 'fcs' | 'ii' | 'ii/iii' | 'iii';
|
|
467
469
|
export type ConferenceSP = {
|
|
468
470
|
year: number;
|
|
469
471
|
conference: string;
|
|
@@ -524,7 +526,7 @@ export type DetailedCoachSeason = {
|
|
|
524
526
|
cfp: CoachCfpContext;
|
|
525
527
|
draftFollowingSeason: ((CoachDraftContext) | null);
|
|
526
528
|
};
|
|
527
|
-
export type DivisionClassification = 'fbs' | 'fcs' | 'ii' | 'iii';
|
|
529
|
+
export type DivisionClassification = 'fbs' | 'fcs' | 'ii' | 'ii/iii' | 'iii';
|
|
528
530
|
export type DraftPick = {
|
|
529
531
|
collegeAthleteId: (number) | null;
|
|
530
532
|
nflAthleteId: number;
|
|
@@ -1461,6 +1463,30 @@ export type TeamATS = {
|
|
|
1461
1463
|
atsPushes: number;
|
|
1462
1464
|
avgCoverMargin: (number) | null;
|
|
1463
1465
|
};
|
|
1466
|
+
export type TeamConferenceAffiliation = {
|
|
1467
|
+
teamId: number;
|
|
1468
|
+
team: string;
|
|
1469
|
+
conferenceId: number;
|
|
1470
|
+
conference: string;
|
|
1471
|
+
conferenceAbbreviation: (string) | null;
|
|
1472
|
+
classification: ((ConferenceClassification) | null);
|
|
1473
|
+
conferenceDivision: (string) | null;
|
|
1474
|
+
startYear: number;
|
|
1475
|
+
endYear: (number) | null;
|
|
1476
|
+
};
|
|
1477
|
+
export type TeamConferenceChange = {
|
|
1478
|
+
teamId: number;
|
|
1479
|
+
team: string;
|
|
1480
|
+
fromConferenceId: number;
|
|
1481
|
+
fromConference: string;
|
|
1482
|
+
fromConferenceAbbreviation: (string) | null;
|
|
1483
|
+
fromClassification: ((ConferenceClassification) | null);
|
|
1484
|
+
toConferenceId: number;
|
|
1485
|
+
toConference: string;
|
|
1486
|
+
toConferenceAbbreviation: (string) | null;
|
|
1487
|
+
toClassification: ((ConferenceClassification) | null);
|
|
1488
|
+
effectiveYear: number;
|
|
1489
|
+
};
|
|
1464
1490
|
export type TeamCoreRating = {
|
|
1465
1491
|
year: number;
|
|
1466
1492
|
throughSeasonType: CoreRatingSeasonType;
|
|
@@ -1923,8 +1949,60 @@ export type GetRosterData = {
|
|
|
1923
1949
|
};
|
|
1924
1950
|
export type GetRosterResponse = (Array<RosterPlayer>);
|
|
1925
1951
|
export type GetRosterError = unknown;
|
|
1952
|
+
export type GetConferencesData = {
|
|
1953
|
+
query?: {
|
|
1954
|
+
/**
|
|
1955
|
+
* Conference classification.
|
|
1956
|
+
*/
|
|
1957
|
+
classification?: ConferenceClassification;
|
|
1958
|
+
/**
|
|
1959
|
+
* Season year used to calculate membership.
|
|
1960
|
+
*/
|
|
1961
|
+
year?: number;
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1926
1964
|
export type GetConferencesResponse = (Array<Conference>);
|
|
1927
1965
|
export type GetConferencesError = unknown;
|
|
1966
|
+
export type GetTeamConferenceChangesData = {
|
|
1967
|
+
query: {
|
|
1968
|
+
/**
|
|
1969
|
+
* Season year.
|
|
1970
|
+
*/
|
|
1971
|
+
year: number;
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1974
|
+
export type GetTeamConferenceChangesResponse = (Array<TeamConferenceChange>);
|
|
1975
|
+
export type GetTeamConferenceChangesError = unknown;
|
|
1976
|
+
export type GetTeamConferenceAffiliationsData = {
|
|
1977
|
+
query?: {
|
|
1978
|
+
/**
|
|
1979
|
+
* Conference classification.
|
|
1980
|
+
*/
|
|
1981
|
+
classification?: ConferenceClassification;
|
|
1982
|
+
/**
|
|
1983
|
+
* Conference name or abbreviation.
|
|
1984
|
+
*/
|
|
1985
|
+
conference?: string;
|
|
1986
|
+
/**
|
|
1987
|
+
* Latest season year to include.
|
|
1988
|
+
*/
|
|
1989
|
+
maxYear?: number;
|
|
1990
|
+
/**
|
|
1991
|
+
* Earliest season year to include.
|
|
1992
|
+
*/
|
|
1993
|
+
minYear?: number;
|
|
1994
|
+
/**
|
|
1995
|
+
* Team school name or abbreviation.
|
|
1996
|
+
*/
|
|
1997
|
+
team?: string;
|
|
1998
|
+
/**
|
|
1999
|
+
* Season year. Cannot be combined with `minYear` or `maxYear`.
|
|
2000
|
+
*/
|
|
2001
|
+
year?: number;
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
export type GetTeamConferenceAffiliationsResponse = (Array<TeamConferenceAffiliation>);
|
|
2005
|
+
export type GetTeamConferenceAffiliationsError = unknown;
|
|
1928
2006
|
export type GetTalentData = {
|
|
1929
2007
|
query: {
|
|
1930
2008
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cfbd",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.24.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, GetConferencesError, GetConferencesResponse, GetTalentData, GetTalentError, GetTalentResponse, GetVenuesError, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsError, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesError, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesError, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsError, GetTeamStatsResponse, GetCategoriesError, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsError, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsError, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsError, GetGameHavocStatsResponse, GetRecruitsData, GetRecruitsError, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsError, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsError, GetAggregatedTeamRecruitingRatingsResponse, 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, 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, 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, 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, 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
|
|
|
@@ -96,15 +96,35 @@ export const getRoster = <ThrowOnError extends boolean = false>(options?: Option
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Returns
|
|
99
|
+
* Returns conferences and member counts.
|
|
100
100
|
*/
|
|
101
|
-
export const getConferences = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<
|
|
101
|
+
export const getConferences = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetConferencesData, ThrowOnError>) => {
|
|
102
102
|
return (options?.client ?? client).get<GetConferencesResponse, GetConferencesError, ThrowOnError>({
|
|
103
103
|
...options,
|
|
104
104
|
url: '/conferences'
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
+
/**
|
|
109
|
+
* Returns team conference changes by season.
|
|
110
|
+
*/
|
|
111
|
+
export const getTeamConferenceChanges = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTeamConferenceChangesData, ThrowOnError>) => {
|
|
112
|
+
return (options?.client ?? client).get<GetTeamConferenceChangesResponse, GetTeamConferenceChangesError, ThrowOnError>({
|
|
113
|
+
...options,
|
|
114
|
+
url: '/conferences/changes'
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Returns historical team conference affiliations.
|
|
120
|
+
*/
|
|
121
|
+
export const getTeamConferenceAffiliations = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTeamConferenceAffiliationsData, ThrowOnError>) => {
|
|
122
|
+
return (options?.client ?? client).get<GetTeamConferenceAffiliationsResponse, GetTeamConferenceAffiliationsError, ThrowOnError>({
|
|
123
|
+
...options,
|
|
124
|
+
url: '/conferences/affiliations'
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
|
|
108
128
|
/**
|
|
109
129
|
* Returns 247Sports Team Talent Composite ratings for a season.
|
|
110
130
|
*/
|
package/src/types.gen.ts
CHANGED
|
@@ -494,9 +494,12 @@ export type Conference = {
|
|
|
494
494
|
name: string;
|
|
495
495
|
shortName: (string) | null;
|
|
496
496
|
abbreviation: (string) | null;
|
|
497
|
-
classification: ((
|
|
497
|
+
classification: ((ConferenceClassification) | null);
|
|
498
|
+
memberCount: number;
|
|
498
499
|
};
|
|
499
500
|
|
|
501
|
+
export type ConferenceClassification = 'fbs' | 'fcs' | 'ii' | 'ii/iii' | 'iii';
|
|
502
|
+
|
|
500
503
|
export type ConferenceSP = {
|
|
501
504
|
year: number;
|
|
502
505
|
conference: string;
|
|
@@ -560,7 +563,7 @@ export type DetailedCoachSeason = {
|
|
|
560
563
|
draftFollowingSeason: ((CoachDraftContext) | null);
|
|
561
564
|
};
|
|
562
565
|
|
|
563
|
-
export type DivisionClassification = 'fbs' | 'fcs' | 'ii' | 'iii';
|
|
566
|
+
export type DivisionClassification = 'fbs' | 'fcs' | 'ii' | 'ii/iii' | 'iii';
|
|
564
567
|
|
|
565
568
|
export type DraftPick = {
|
|
566
569
|
collegeAthleteId: (number) | null;
|
|
@@ -1585,6 +1588,32 @@ export type TeamATS = {
|
|
|
1585
1588
|
avgCoverMargin: (number) | null;
|
|
1586
1589
|
};
|
|
1587
1590
|
|
|
1591
|
+
export type TeamConferenceAffiliation = {
|
|
1592
|
+
teamId: number;
|
|
1593
|
+
team: string;
|
|
1594
|
+
conferenceId: number;
|
|
1595
|
+
conference: string;
|
|
1596
|
+
conferenceAbbreviation: (string) | null;
|
|
1597
|
+
classification: ((ConferenceClassification) | null);
|
|
1598
|
+
conferenceDivision: (string) | null;
|
|
1599
|
+
startYear: number;
|
|
1600
|
+
endYear: (number) | null;
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
export type TeamConferenceChange = {
|
|
1604
|
+
teamId: number;
|
|
1605
|
+
team: string;
|
|
1606
|
+
fromConferenceId: number;
|
|
1607
|
+
fromConference: string;
|
|
1608
|
+
fromConferenceAbbreviation: (string) | null;
|
|
1609
|
+
fromClassification: ((ConferenceClassification) | null);
|
|
1610
|
+
toConferenceId: number;
|
|
1611
|
+
toConference: string;
|
|
1612
|
+
toConferenceAbbreviation: (string) | null;
|
|
1613
|
+
toClassification: ((ConferenceClassification) | null);
|
|
1614
|
+
effectiveYear: number;
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1588
1617
|
export type TeamCoreRating = {
|
|
1589
1618
|
year: number;
|
|
1590
1619
|
throughSeasonType: CoreRatingSeasonType;
|
|
@@ -2103,10 +2132,69 @@ export type GetRosterResponse = (Array<RosterPlayer>);
|
|
|
2103
2132
|
|
|
2104
2133
|
export type GetRosterError = unknown;
|
|
2105
2134
|
|
|
2135
|
+
export type GetConferencesData = {
|
|
2136
|
+
query?: {
|
|
2137
|
+
/**
|
|
2138
|
+
* Conference classification.
|
|
2139
|
+
*/
|
|
2140
|
+
classification?: ConferenceClassification;
|
|
2141
|
+
/**
|
|
2142
|
+
* Season year used to calculate membership.
|
|
2143
|
+
*/
|
|
2144
|
+
year?: number;
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
2147
|
+
|
|
2106
2148
|
export type GetConferencesResponse = (Array<Conference>);
|
|
2107
2149
|
|
|
2108
2150
|
export type GetConferencesError = unknown;
|
|
2109
2151
|
|
|
2152
|
+
export type GetTeamConferenceChangesData = {
|
|
2153
|
+
query: {
|
|
2154
|
+
/**
|
|
2155
|
+
* Season year.
|
|
2156
|
+
*/
|
|
2157
|
+
year: number;
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
|
|
2161
|
+
export type GetTeamConferenceChangesResponse = (Array<TeamConferenceChange>);
|
|
2162
|
+
|
|
2163
|
+
export type GetTeamConferenceChangesError = unknown;
|
|
2164
|
+
|
|
2165
|
+
export type GetTeamConferenceAffiliationsData = {
|
|
2166
|
+
query?: {
|
|
2167
|
+
/**
|
|
2168
|
+
* Conference classification.
|
|
2169
|
+
*/
|
|
2170
|
+
classification?: ConferenceClassification;
|
|
2171
|
+
/**
|
|
2172
|
+
* Conference name or abbreviation.
|
|
2173
|
+
*/
|
|
2174
|
+
conference?: string;
|
|
2175
|
+
/**
|
|
2176
|
+
* Latest season year to include.
|
|
2177
|
+
*/
|
|
2178
|
+
maxYear?: number;
|
|
2179
|
+
/**
|
|
2180
|
+
* Earliest season year to include.
|
|
2181
|
+
*/
|
|
2182
|
+
minYear?: number;
|
|
2183
|
+
/**
|
|
2184
|
+
* Team school name or abbreviation.
|
|
2185
|
+
*/
|
|
2186
|
+
team?: string;
|
|
2187
|
+
/**
|
|
2188
|
+
* Season year. Cannot be combined with `minYear` or `maxYear`.
|
|
2189
|
+
*/
|
|
2190
|
+
year?: number;
|
|
2191
|
+
};
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
export type GetTeamConferenceAffiliationsResponse = (Array<TeamConferenceAffiliation>);
|
|
2195
|
+
|
|
2196
|
+
export type GetTeamConferenceAffiliationsError = unknown;
|
|
2197
|
+
|
|
2110
2198
|
export type GetTalentData = {
|
|
2111
2199
|
query: {
|
|
2112
2200
|
/**
|
package/cfbd-5.23.0.tgz
DELETED
|
Binary file
|