cfbd 5.21.0 → 5.23.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.23.0.tgz +0 -0
- package/dist/sdk.gen.d.ts +80 -73
- package/dist/sdk.gen.js +85 -74
- package/dist/types.gen.d.ts +332 -277
- package/package.json +1 -1
- package/src/sdk.gen.ts +86 -73
- package/src/types.gen.ts +337 -277
- package/cfbd-5.21.0.tgz +0 -0
package/src/sdk.gen.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser } from '@hey-api/client-fetch';
|
|
4
|
-
import type { GetAdjustedTeamSeasonStatsData, GetAdjustedTeamSeasonStatsError, GetAdjustedTeamSeasonStatsResponse, GetAdjustedPlayerPassingStatsData, GetAdjustedPlayerPassingStatsError, GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerRushingStatsData, GetAdjustedPlayerRushingStatsError, GetAdjustedPlayerRushingStatsResponse, GetKickerPaarData, GetKickerPaarError, GetKickerPaarResponse, GetTeamsData, GetTeamsError, GetTeamsResponse, GetFbsTeamsData, GetFbsTeamsError, GetFbsTeamsResponse, GetMatchupData, GetMatchupError, GetMatchupResponse, GetTeamsAtsData, GetTeamsAtsError, GetTeamsAtsResponse, GetRosterData, GetRosterError, GetRosterResponse, GetConferencesError, GetConferencesResponse, GetTalentData, GetTalentError, GetTalentResponse, GetVenuesError, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsError, GetPlayerSeasonStatsResponse, GetPlayerSeasonSuccessRatesData, GetPlayerSeasonSuccessRatesError, GetPlayerSeasonSuccessRatesResponse, GetPlayerGameSuccessRatesData, GetPlayerGameSuccessRatesError, GetPlayerGameSuccessRatesResponse, GetTeamStatsData, GetTeamStatsError, GetTeamStatsResponse, GetCategoriesError, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsError, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsError, GetAdvancedGameStatsResponse, GetGameHavocStatsData, GetGameHavocStatsError, GetGameHavocStatsResponse, GetRecruitsData, GetRecruitsError, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsError, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsError, GetAggregatedTeamRecruitingRatingsResponse, GetSpData, GetSpError, GetSpResponse, GetConferenceSpData, GetConferenceSpError, GetConferenceSpResponse, GetSrsData, GetSrsError, GetSrsResponse, 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, 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';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig({ baseUrl: 'https://api.collegefootballdata.com' }));
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Returns opponent-adjusted team statistics by season.
|
|
10
10
|
*/
|
|
11
11
|
export const getAdjustedTeamSeasonStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdjustedTeamSeasonStatsData, ThrowOnError>) => {
|
|
12
12
|
return (options?.client ?? client).get<GetAdjustedTeamSeasonStatsResponse, GetAdjustedTeamSeasonStatsError, ThrowOnError>({
|
|
@@ -16,7 +16,7 @@ export const getAdjustedTeamSeasonStats = <ThrowOnError extends boolean = false>
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Returns opponent-adjusted player passing metrics.
|
|
20
20
|
*/
|
|
21
21
|
export const getAdjustedPlayerPassingStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdjustedPlayerPassingStatsData, ThrowOnError>) => {
|
|
22
22
|
return (options?.client ?? client).get<GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerPassingStatsError, ThrowOnError>({
|
|
@@ -26,7 +26,7 @@ export const getAdjustedPlayerPassingStats = <ThrowOnError extends boolean = fal
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Returns opponent-adjusted player rushing metrics.
|
|
30
30
|
*/
|
|
31
31
|
export const getAdjustedPlayerRushingStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdjustedPlayerRushingStatsData, ThrowOnError>) => {
|
|
32
32
|
return (options?.client ?? client).get<GetAdjustedPlayerRushingStatsResponse, GetAdjustedPlayerRushingStatsError, ThrowOnError>({
|
|
@@ -36,7 +36,7 @@ export const getAdjustedPlayerRushingStats = <ThrowOnError extends boolean = fal
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Returns Points Added Above Replacement (PAAR) ratings for kickers.
|
|
40
40
|
*/
|
|
41
41
|
export const getKickerPaar = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetKickerPaarData, ThrowOnError>) => {
|
|
42
42
|
return (options?.client ?? client).get<GetKickerPaarResponse, GetKickerPaarError, ThrowOnError>({
|
|
@@ -46,7 +46,7 @@ export const getKickerPaar = <ThrowOnError extends boolean = false>(options?: Op
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Returns team information and conference affiliations.
|
|
50
50
|
*/
|
|
51
51
|
export const getTeams = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTeamsData, ThrowOnError>) => {
|
|
52
52
|
return (options?.client ?? client).get<GetTeamsResponse, GetTeamsError, ThrowOnError>({
|
|
@@ -56,7 +56,7 @@ export const getTeams = <ThrowOnError extends boolean = false>(options?: Options
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Returns Football Bowl Subdivision (FBS) teams for a season.
|
|
60
60
|
*/
|
|
61
61
|
export const getFbsTeams = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetFbsTeamsData, ThrowOnError>) => {
|
|
62
62
|
return (options?.client ?? client).get<GetFbsTeamsResponse, GetFbsTeamsError, ThrowOnError>({
|
|
@@ -66,7 +66,7 @@ export const getFbsTeams = <ThrowOnError extends boolean = false>(options?: Opti
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Returns historical matchup results between two teams.
|
|
70
70
|
*/
|
|
71
71
|
export const getMatchup = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetMatchupData, ThrowOnError>) => {
|
|
72
72
|
return (options?.client ?? client).get<GetMatchupResponse, GetMatchupError, ThrowOnError>({
|
|
@@ -76,7 +76,7 @@ export const getMatchup = <ThrowOnError extends boolean = false>(options: Option
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Returns against-the-spread (ATS) records by team.
|
|
80
80
|
*/
|
|
81
81
|
export const getTeamsAts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTeamsAtsData, ThrowOnError>) => {
|
|
82
82
|
return (options?.client ?? client).get<GetTeamsAtsResponse, GetTeamsAtsError, ThrowOnError>({
|
|
@@ -86,7 +86,7 @@ export const getTeamsAts = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Returns historical roster data.
|
|
90
90
|
*/
|
|
91
91
|
export const getRoster = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRosterData, ThrowOnError>) => {
|
|
92
92
|
return (options?.client ?? client).get<GetRosterResponse, GetRosterError, ThrowOnError>({
|
|
@@ -96,7 +96,7 @@ export const getRoster = <ThrowOnError extends boolean = false>(options?: Option
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Returns the available conferences.
|
|
100
100
|
*/
|
|
101
101
|
export const getConferences = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
102
102
|
return (options?.client ?? client).get<GetConferencesResponse, GetConferencesError, ThrowOnError>({
|
|
@@ -106,7 +106,7 @@ export const getConferences = <ThrowOnError extends boolean = false>(options?: O
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* Returns 247Sports Team Talent Composite ratings for a season.
|
|
110
110
|
*/
|
|
111
111
|
export const getTalent = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTalentData, ThrowOnError>) => {
|
|
112
112
|
return (options?.client ?? client).get<GetTalentResponse, GetTalentError, ThrowOnError>({
|
|
@@ -116,7 +116,7 @@ export const getTalent = <ThrowOnError extends boolean = false>(options: Options
|
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Returns college football venues.
|
|
120
120
|
*/
|
|
121
121
|
export const getVenues = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
122
122
|
return (options?.client ?? client).get<GetVenuesResponse, GetVenuesError, ThrowOnError>({
|
|
@@ -126,7 +126,7 @@ export const getVenues = <ThrowOnError extends boolean = false>(options?: Option
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* Returns player statistics aggregated by season.
|
|
130
130
|
*/
|
|
131
131
|
export const getPlayerSeasonStats = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPlayerSeasonStatsData, ThrowOnError>) => {
|
|
132
132
|
return (options?.client ?? client).get<GetPlayerSeasonStatsResponse, GetPlayerSeasonStatsError, ThrowOnError>({
|
|
@@ -136,7 +136,7 @@ export const getPlayerSeasonStats = <ThrowOnError extends boolean = false>(optio
|
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* Returns player passing and rushing success rates by season.
|
|
140
140
|
*/
|
|
141
141
|
export const getPlayerSeasonSuccessRates = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPlayerSeasonSuccessRatesData, ThrowOnError>) => {
|
|
142
142
|
return (options?.client ?? client).get<GetPlayerSeasonSuccessRatesResponse, GetPlayerSeasonSuccessRatesError, ThrowOnError>({
|
|
@@ -146,7 +146,7 @@ export const getPlayerSeasonSuccessRates = <ThrowOnError extends boolean = false
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Returns player passing and rushing success rates by game.
|
|
150
150
|
*/
|
|
151
151
|
export const getPlayerGameSuccessRates = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPlayerGameSuccessRatesData, ThrowOnError>) => {
|
|
152
152
|
return (options?.client ?? client).get<GetPlayerGameSuccessRatesResponse, GetPlayerGameSuccessRatesError, ThrowOnError>({
|
|
@@ -156,7 +156,7 @@ export const getPlayerGameSuccessRates = <ThrowOnError extends boolean = false>(
|
|
|
156
156
|
};
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Returns team statistics aggregated by season.
|
|
160
160
|
*/
|
|
161
161
|
export const getTeamStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTeamStatsData, ThrowOnError>) => {
|
|
162
162
|
return (options?.client ?? client).get<GetTeamStatsResponse, GetTeamStatsError, ThrowOnError>({
|
|
@@ -166,7 +166,7 @@ export const getTeamStats = <ThrowOnError extends boolean = false>(options?: Opt
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* Returns the available team statistical categories.
|
|
170
170
|
*/
|
|
171
171
|
export const getCategories = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
172
172
|
return (options?.client ?? client).get<GetCategoriesResponse, GetCategoriesError, ThrowOnError>({
|
|
@@ -176,7 +176,7 @@ export const getCategories = <ThrowOnError extends boolean = false>(options?: Op
|
|
|
176
176
|
};
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
|
-
*
|
|
179
|
+
* Returns advanced team statistics aggregated by season.
|
|
180
180
|
*/
|
|
181
181
|
export const getAdvancedSeasonStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdvancedSeasonStatsData, ThrowOnError>) => {
|
|
182
182
|
return (options?.client ?? client).get<GetAdvancedSeasonStatsResponse, GetAdvancedSeasonStatsError, ThrowOnError>({
|
|
@@ -186,7 +186,7 @@ export const getAdvancedSeasonStats = <ThrowOnError extends boolean = false>(opt
|
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
189
|
+
* Returns advanced team statistics aggregated by game.
|
|
190
190
|
*/
|
|
191
191
|
export const getAdvancedGameStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdvancedGameStatsData, ThrowOnError>) => {
|
|
192
192
|
return (options?.client ?? client).get<GetAdvancedGameStatsResponse, GetAdvancedGameStatsError, ThrowOnError>({
|
|
@@ -196,7 +196,7 @@ export const getAdvancedGameStats = <ThrowOnError extends boolean = false>(optio
|
|
|
196
196
|
};
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
199
|
+
* Returns team havoc statistics aggregated by game.
|
|
200
200
|
*/
|
|
201
201
|
export const getGameHavocStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetGameHavocStatsData, ThrowOnError>) => {
|
|
202
202
|
return (options?.client ?? client).get<GetGameHavocStatsResponse, GetGameHavocStatsError, ThrowOnError>({
|
|
@@ -206,7 +206,7 @@ export const getGameHavocStats = <ThrowOnError extends boolean = false>(options?
|
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
*
|
|
209
|
+
* Returns player recruiting rankings.
|
|
210
210
|
*/
|
|
211
211
|
export const getRecruits = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRecruitsData, ThrowOnError>) => {
|
|
212
212
|
return (options?.client ?? client).get<GetRecruitsResponse, GetRecruitsError, ThrowOnError>({
|
|
@@ -216,7 +216,7 @@ export const getRecruits = <ThrowOnError extends boolean = false>(options?: Opti
|
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
|
-
*
|
|
219
|
+
* Returns team recruiting rankings.
|
|
220
220
|
*/
|
|
221
221
|
export const getTeamRecruitingRankings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTeamRecruitingRankingsData, ThrowOnError>) => {
|
|
222
222
|
return (options?.client ?? client).get<GetTeamRecruitingRankingsResponse, GetTeamRecruitingRankingsError, ThrowOnError>({
|
|
@@ -226,7 +226,7 @@ export const getTeamRecruitingRankings = <ThrowOnError extends boolean = false>(
|
|
|
226
226
|
};
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
|
-
*
|
|
229
|
+
* Returns recruiting ratings aggregated by team and position group.
|
|
230
230
|
*/
|
|
231
231
|
export const getAggregatedTeamRecruitingRatings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAggregatedTeamRecruitingRatingsData, ThrowOnError>) => {
|
|
232
232
|
return (options?.client ?? client).get<GetAggregatedTeamRecruitingRatingsResponse, GetAggregatedTeamRecruitingRatingsError, ThrowOnError>({
|
|
@@ -236,7 +236,18 @@ export const getAggregatedTeamRecruitingRatings = <ThrowOnError extends boolean
|
|
|
236
236
|
};
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
|
-
*
|
|
239
|
+
* Returns Context & Opponent-Relative Efficiency (CORE) ratings.
|
|
240
|
+
* At least one of `year` or `team` is required.
|
|
241
|
+
*/
|
|
242
|
+
export const getCore = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetCoreData, ThrowOnError>) => {
|
|
243
|
+
return (options?.client ?? client).get<GetCoreResponse, GetCoreError, ThrowOnError>({
|
|
244
|
+
...options,
|
|
245
|
+
url: '/ratings/core'
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Returns SP+ ratings by team and season.
|
|
240
251
|
*/
|
|
241
252
|
export const getSp = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetSpData, ThrowOnError>) => {
|
|
242
253
|
return (options?.client ?? client).get<GetSpResponse, GetSpError, ThrowOnError>({
|
|
@@ -246,7 +257,7 @@ export const getSp = <ThrowOnError extends boolean = false>(options?: OptionsLeg
|
|
|
246
257
|
};
|
|
247
258
|
|
|
248
259
|
/**
|
|
249
|
-
*
|
|
260
|
+
* Returns conference-level SP+ ratings by season.
|
|
250
261
|
*/
|
|
251
262
|
export const getConferenceSp = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetConferenceSpData, ThrowOnError>) => {
|
|
252
263
|
return (options?.client ?? client).get<GetConferenceSpResponse, GetConferenceSpError, ThrowOnError>({
|
|
@@ -256,7 +267,7 @@ export const getConferenceSp = <ThrowOnError extends boolean = false>(options?:
|
|
|
256
267
|
};
|
|
257
268
|
|
|
258
269
|
/**
|
|
259
|
-
*
|
|
270
|
+
* Returns Simple Rating System (SRS) ratings by team and season.
|
|
260
271
|
*/
|
|
261
272
|
export const getSrs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetSrsData, ThrowOnError>) => {
|
|
262
273
|
return (options?.client ?? client).get<GetSrsResponse, GetSrsError, ThrowOnError>({
|
|
@@ -266,7 +277,7 @@ export const getSrs = <ThrowOnError extends boolean = false>(options?: OptionsLe
|
|
|
266
277
|
};
|
|
267
278
|
|
|
268
279
|
/**
|
|
269
|
-
*
|
|
280
|
+
* Returns expanded Simple Rating System (SRS) ratings, including FCS teams.
|
|
270
281
|
*/
|
|
271
282
|
export const getExpandedSrs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetExpandedSrsData, ThrowOnError>) => {
|
|
272
283
|
return (options?.client ?? client).get<GetExpandedSrsResponse, GetExpandedSrsError, ThrowOnError>({
|
|
@@ -276,7 +287,7 @@ export const getExpandedSrs = <ThrowOnError extends boolean = false>(options?: O
|
|
|
276
287
|
};
|
|
277
288
|
|
|
278
289
|
/**
|
|
279
|
-
*
|
|
290
|
+
* Returns historical Elo ratings.
|
|
280
291
|
*/
|
|
281
292
|
export const getElo = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetEloData, ThrowOnError>) => {
|
|
282
293
|
return (options?.client ?? client).get<GetEloResponse, GetEloError, ThrowOnError>({
|
|
@@ -286,7 +297,7 @@ export const getElo = <ThrowOnError extends boolean = false>(options?: OptionsLe
|
|
|
286
297
|
};
|
|
287
298
|
|
|
288
299
|
/**
|
|
289
|
-
*
|
|
300
|
+
* Returns historical Football Power Index (FPI) ratings.
|
|
290
301
|
*/
|
|
291
302
|
export const getFpi = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetFpiData, ThrowOnError>) => {
|
|
292
303
|
return (options?.client ?? client).get<GetFpiResponse, GetFpiError, ThrowOnError>({
|
|
@@ -296,7 +307,7 @@ export const getFpi = <ThrowOnError extends boolean = false>(options?: OptionsLe
|
|
|
296
307
|
};
|
|
297
308
|
|
|
298
309
|
/**
|
|
299
|
-
*
|
|
310
|
+
* Returns historical poll rankings.
|
|
300
311
|
*/
|
|
301
312
|
export const getRankings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRankingsData, ThrowOnError>) => {
|
|
302
313
|
return (options?.client ?? client).get<GetRankingsResponse, GetRankingsError, ThrowOnError>({
|
|
@@ -306,7 +317,7 @@ export const getRankings = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
306
317
|
};
|
|
307
318
|
|
|
308
319
|
/**
|
|
309
|
-
*
|
|
320
|
+
* Returns historical play-by-play data.
|
|
310
321
|
*/
|
|
311
322
|
export const getPlays = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPlaysData, ThrowOnError>) => {
|
|
312
323
|
return (options?.client ?? client).get<GetPlaysResponse, GetPlaysError, ThrowOnError>({
|
|
@@ -316,7 +327,7 @@ export const getPlays = <ThrowOnError extends boolean = false>(options: OptionsL
|
|
|
316
327
|
};
|
|
317
328
|
|
|
318
329
|
/**
|
|
319
|
-
*
|
|
330
|
+
* Returns the available play types.
|
|
320
331
|
*/
|
|
321
332
|
export const getPlayTypes = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
322
333
|
return (options?.client ?? client).get<GetPlayTypesResponse, GetPlayTypesError, ThrowOnError>({
|
|
@@ -326,7 +337,7 @@ export const getPlayTypes = <ThrowOnError extends boolean = false>(options?: Opt
|
|
|
326
337
|
};
|
|
327
338
|
|
|
328
339
|
/**
|
|
329
|
-
*
|
|
340
|
+
* Returns player and play-stat associations, limited to 2,000 records.
|
|
330
341
|
*/
|
|
331
342
|
export const getPlayStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPlayStatsData, ThrowOnError>) => {
|
|
332
343
|
return (options?.client ?? client).get<GetPlayStatsResponse, GetPlayStatsError, ThrowOnError>({
|
|
@@ -336,7 +347,7 @@ export const getPlayStats = <ThrowOnError extends boolean = false>(options?: Opt
|
|
|
336
347
|
};
|
|
337
348
|
|
|
338
349
|
/**
|
|
339
|
-
*
|
|
350
|
+
* Returns the available play stat types.
|
|
340
351
|
*/
|
|
341
352
|
export const getPlayStatTypes = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
342
353
|
return (options?.client ?? client).get<GetPlayStatTypesResponse, GetPlayStatTypesError, ThrowOnError>({
|
|
@@ -346,7 +357,7 @@ export const getPlayStatTypes = <ThrowOnError extends boolean = false>(options?:
|
|
|
346
357
|
};
|
|
347
358
|
|
|
348
359
|
/**
|
|
349
|
-
*
|
|
360
|
+
* Returns the complete College Football Playoff bracket for a season.
|
|
350
361
|
*/
|
|
351
362
|
export const getCfpPlayoff = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCfpPlayoffData, ThrowOnError>) => {
|
|
352
363
|
return (options?.client ?? client).get<GetCfpPlayoffResponse, GetCfpPlayoffError, ThrowOnError>({
|
|
@@ -356,7 +367,7 @@ export const getCfpPlayoff = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
356
367
|
};
|
|
357
368
|
|
|
358
369
|
/**
|
|
359
|
-
*
|
|
370
|
+
* Returns College Football Playoff participants for a season.
|
|
360
371
|
*/
|
|
361
372
|
export const getCfpParticipants = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCfpParticipantsData, ThrowOnError>) => {
|
|
362
373
|
return (options?.client ?? client).get<GetCfpParticipantsResponse, GetCfpParticipantsError, ThrowOnError>({
|
|
@@ -366,7 +377,7 @@ export const getCfpParticipants = <ThrowOnError extends boolean = false>(options
|
|
|
366
377
|
};
|
|
367
378
|
|
|
368
379
|
/**
|
|
369
|
-
*
|
|
380
|
+
* Returns College Football Playoff matchups for a season.
|
|
370
381
|
*/
|
|
371
382
|
export const getCfpGames = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCfpGamesData, ThrowOnError>) => {
|
|
372
383
|
return (options?.client ?? client).get<GetCfpGamesResponse, GetCfpGamesError, ThrowOnError>({
|
|
@@ -376,7 +387,7 @@ export const getCfpGames = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
376
387
|
};
|
|
377
388
|
|
|
378
389
|
/**
|
|
379
|
-
*
|
|
390
|
+
* Returns up to 100 players whose names match the search term.
|
|
380
391
|
*/
|
|
381
392
|
export const searchPlayers = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SearchPlayersData, ThrowOnError>) => {
|
|
382
393
|
return (options?.client ?? client).get<SearchPlayersResponse, SearchPlayersError, ThrowOnError>({
|
|
@@ -386,7 +397,7 @@ export const searchPlayers = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
386
397
|
};
|
|
387
398
|
|
|
388
399
|
/**
|
|
389
|
-
*
|
|
400
|
+
* Returns player usage metrics for a season.
|
|
390
401
|
*/
|
|
391
402
|
export const getPlayerUsage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPlayerUsageData, ThrowOnError>) => {
|
|
392
403
|
return (options?.client ?? client).get<GetPlayerUsageResponse, GetPlayerUsageError, ThrowOnError>({
|
|
@@ -396,7 +407,8 @@ export const getPlayerUsage = <ThrowOnError extends boolean = false>(options: Op
|
|
|
396
407
|
};
|
|
397
408
|
|
|
398
409
|
/**
|
|
399
|
-
*
|
|
410
|
+
* Returns a player season overview with box score, usage, and Predicted
|
|
411
|
+
* Points Added (PPA) data.
|
|
400
412
|
*/
|
|
401
413
|
export const getPlayerSeasonOverview = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPlayerSeasonOverviewData, ThrowOnError>) => {
|
|
402
414
|
return (options?.client ?? client).get<GetPlayerSeasonOverviewResponse, GetPlayerSeasonOverviewError, ThrowOnError>({
|
|
@@ -406,7 +418,7 @@ export const getPlayerSeasonOverview = <ThrowOnError extends boolean = false>(op
|
|
|
406
418
|
};
|
|
407
419
|
|
|
408
420
|
/**
|
|
409
|
-
*
|
|
421
|
+
* Returns returning production metrics by team and season.
|
|
410
422
|
*/
|
|
411
423
|
export const getReturningProduction = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetReturningProductionData, ThrowOnError>) => {
|
|
412
424
|
return (options?.client ?? client).get<GetReturningProductionResponse, GetReturningProductionError, ThrowOnError>({
|
|
@@ -416,7 +428,7 @@ export const getReturningProduction = <ThrowOnError extends boolean = false>(opt
|
|
|
416
428
|
};
|
|
417
429
|
|
|
418
430
|
/**
|
|
419
|
-
*
|
|
431
|
+
* Returns transfer portal entries for a season.
|
|
420
432
|
*/
|
|
421
433
|
export const getTransferPortal = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTransferPortalData, ThrowOnError>) => {
|
|
422
434
|
return (options?.client ?? client).get<GetTransferPortalResponse, GetTransferPortalError, ThrowOnError>({
|
|
@@ -426,7 +438,7 @@ export const getTransferPortal = <ThrowOnError extends boolean = false>(options:
|
|
|
426
438
|
};
|
|
427
439
|
|
|
428
440
|
/**
|
|
429
|
-
*
|
|
441
|
+
* Returns predicted points values by down and distance.
|
|
430
442
|
*/
|
|
431
443
|
export const getPredictedPoints = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPredictedPointsData, ThrowOnError>) => {
|
|
432
444
|
return (options?.client ?? client).get<GetPredictedPointsResponse, GetPredictedPointsError, ThrowOnError>({
|
|
@@ -436,7 +448,7 @@ export const getPredictedPoints = <ThrowOnError extends boolean = false>(options
|
|
|
436
448
|
};
|
|
437
449
|
|
|
438
450
|
/**
|
|
439
|
-
*
|
|
451
|
+
* Returns team Predicted Points Added (PPA) metrics by season.
|
|
440
452
|
*/
|
|
441
453
|
export const getPredictedPointsAddedByTeam = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPredictedPointsAddedByTeamData, ThrowOnError>) => {
|
|
442
454
|
return (options?.client ?? client).get<GetPredictedPointsAddedByTeamResponse, GetPredictedPointsAddedByTeamError, ThrowOnError>({
|
|
@@ -446,7 +458,7 @@ export const getPredictedPointsAddedByTeam = <ThrowOnError extends boolean = fal
|
|
|
446
458
|
};
|
|
447
459
|
|
|
448
460
|
/**
|
|
449
|
-
*
|
|
461
|
+
* Returns team Predicted Points Added (PPA) metrics by game.
|
|
450
462
|
*/
|
|
451
463
|
export const getPredictedPointsAddedByGame = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPredictedPointsAddedByGameData, ThrowOnError>) => {
|
|
452
464
|
return (options?.client ?? client).get<GetPredictedPointsAddedByGameResponse, GetPredictedPointsAddedByGameError, ThrowOnError>({
|
|
@@ -456,7 +468,7 @@ export const getPredictedPointsAddedByGame = <ThrowOnError extends boolean = fal
|
|
|
456
468
|
};
|
|
457
469
|
|
|
458
470
|
/**
|
|
459
|
-
*
|
|
471
|
+
* Returns player Predicted Points Added (PPA) metrics by game.
|
|
460
472
|
*/
|
|
461
473
|
export const getPredictedPointsAddedByPlayerGame = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPredictedPointsAddedByPlayerGameData, ThrowOnError>) => {
|
|
462
474
|
return (options?.client ?? client).get<GetPredictedPointsAddedByPlayerGameResponse, GetPredictedPointsAddedByPlayerGameError, ThrowOnError>({
|
|
@@ -466,7 +478,7 @@ export const getPredictedPointsAddedByPlayerGame = <ThrowOnError extends boolean
|
|
|
466
478
|
};
|
|
467
479
|
|
|
468
480
|
/**
|
|
469
|
-
*
|
|
481
|
+
* Returns player Predicted Points Added (PPA) metrics by season.
|
|
470
482
|
*/
|
|
471
483
|
export const getPredictedPointsAddedByPlayerSeason = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPredictedPointsAddedByPlayerSeasonData, ThrowOnError>) => {
|
|
472
484
|
return (options?.client ?? client).get<GetPredictedPointsAddedByPlayerSeasonResponse, GetPredictedPointsAddedByPlayerSeasonError, ThrowOnError>({
|
|
@@ -476,7 +488,7 @@ export const getPredictedPointsAddedByPlayerSeason = <ThrowOnError extends boole
|
|
|
476
488
|
};
|
|
477
489
|
|
|
478
490
|
/**
|
|
479
|
-
*
|
|
491
|
+
* Returns play-by-play win probabilities for a game.
|
|
480
492
|
*/
|
|
481
493
|
export const getWinProbability = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWinProbabilityData, ThrowOnError>) => {
|
|
482
494
|
return (options?.client ?? client).get<GetWinProbabilityResponse, GetWinProbabilityError, ThrowOnError>({
|
|
@@ -486,7 +498,7 @@ export const getWinProbability = <ThrowOnError extends boolean = false>(options:
|
|
|
486
498
|
};
|
|
487
499
|
|
|
488
500
|
/**
|
|
489
|
-
*
|
|
501
|
+
* Returns pregame win probabilities.
|
|
490
502
|
*/
|
|
491
503
|
export const getPregameWinProbabilities = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPregameWinProbabilitiesData, ThrowOnError>) => {
|
|
492
504
|
return (options?.client ?? client).get<GetPregameWinProbabilitiesResponse, GetPregameWinProbabilitiesError, ThrowOnError>({
|
|
@@ -496,7 +508,7 @@ export const getPregameWinProbabilities = <ThrowOnError extends boolean = false>
|
|
|
496
508
|
};
|
|
497
509
|
|
|
498
510
|
/**
|
|
499
|
-
*
|
|
511
|
+
* Returns expected points values for field goal attempts.
|
|
500
512
|
*/
|
|
501
513
|
export const getFieldGoalExpectedPoints = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
502
514
|
return (options?.client ?? client).get<GetFieldGoalExpectedPointsResponse, GetFieldGoalExpectedPointsError, ThrowOnError>({
|
|
@@ -506,7 +518,7 @@ export const getFieldGoalExpectedPoints = <ThrowOnError extends boolean = false>
|
|
|
506
518
|
};
|
|
507
519
|
|
|
508
520
|
/**
|
|
509
|
-
*
|
|
521
|
+
* Returns live play-by-play data and advanced metrics for a game.
|
|
510
522
|
*/
|
|
511
523
|
export const getLivePlays = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLivePlaysData, ThrowOnError>) => {
|
|
512
524
|
return (options?.client ?? client).get<GetLivePlaysResponse, GetLivePlaysError, ThrowOnError>({
|
|
@@ -516,7 +528,7 @@ export const getLivePlays = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
516
528
|
};
|
|
517
529
|
|
|
518
530
|
/**
|
|
519
|
-
*
|
|
531
|
+
* Returns historical betting lines and results.
|
|
520
532
|
*/
|
|
521
533
|
export const getLines = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetLinesData, ThrowOnError>) => {
|
|
522
534
|
return (options?.client ?? client).get<GetLinesResponse, GetLinesError, ThrowOnError>({
|
|
@@ -526,7 +538,8 @@ export const getLines = <ThrowOnError extends boolean = false>(options?: Options
|
|
|
526
538
|
};
|
|
527
539
|
|
|
528
540
|
/**
|
|
529
|
-
*
|
|
541
|
+
* Returns the authenticated user's Patreon level and remaining API calls.
|
|
542
|
+
* Returns `null` when the request is not authenticated.
|
|
530
543
|
*/
|
|
531
544
|
export const getUserInfo = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
532
545
|
return (options?.client ?? client).get<GetUserInfoResponse, GetUserInfoError, ThrowOnError>({
|
|
@@ -536,7 +549,8 @@ export const getUserInfo = <ThrowOnError extends boolean = false>(options?: Opti
|
|
|
536
549
|
};
|
|
537
550
|
|
|
538
551
|
/**
|
|
539
|
-
*
|
|
552
|
+
* Returns recent usage for the authenticated user's shared CFB and CBB call
|
|
553
|
+
* pool. Returns `null` when the request is not authenticated.
|
|
540
554
|
*/
|
|
541
555
|
export const getUsage = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetUsageData, ThrowOnError>) => {
|
|
542
556
|
return (options?.client ?? client).get<GetUsageResponse, GetUsageError, ThrowOnError>({
|
|
@@ -546,7 +560,7 @@ export const getUsage = <ThrowOnError extends boolean = false>(options?: Options
|
|
|
546
560
|
};
|
|
547
561
|
|
|
548
562
|
/**
|
|
549
|
-
*
|
|
563
|
+
* Returns historical game data.
|
|
550
564
|
*/
|
|
551
565
|
export const getGames = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetGamesData, ThrowOnError>) => {
|
|
552
566
|
return (options?.client ?? client).get<GetGamesResponse, GetGamesError, ThrowOnError>({
|
|
@@ -556,7 +570,7 @@ export const getGames = <ThrowOnError extends boolean = false>(options?: Options
|
|
|
556
570
|
};
|
|
557
571
|
|
|
558
572
|
/**
|
|
559
|
-
*
|
|
573
|
+
* Returns team box score statistics by game.
|
|
560
574
|
*/
|
|
561
575
|
export const getGameTeamStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetGameTeamStatsData, ThrowOnError>) => {
|
|
562
576
|
return (options?.client ?? client).get<GetGameTeamStatsResponse, GetGameTeamStatsError, ThrowOnError>({
|
|
@@ -566,7 +580,7 @@ export const getGameTeamStats = <ThrowOnError extends boolean = false>(options?:
|
|
|
566
580
|
};
|
|
567
581
|
|
|
568
582
|
/**
|
|
569
|
-
*
|
|
583
|
+
* Returns player box score statistics by game.
|
|
570
584
|
*/
|
|
571
585
|
export const getGamePlayerStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetGamePlayerStatsData, ThrowOnError>) => {
|
|
572
586
|
return (options?.client ?? client).get<GetGamePlayerStatsResponse, GetGamePlayerStatsError, ThrowOnError>({
|
|
@@ -576,7 +590,7 @@ export const getGamePlayerStats = <ThrowOnError extends boolean = false>(options
|
|
|
576
590
|
};
|
|
577
591
|
|
|
578
592
|
/**
|
|
579
|
-
*
|
|
593
|
+
* Returns broadcast and media information for games.
|
|
580
594
|
*/
|
|
581
595
|
export const getMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetMediaData, ThrowOnError>) => {
|
|
582
596
|
return (options?.client ?? client).get<GetMediaResponse, GetMediaError, ThrowOnError>({
|
|
@@ -586,7 +600,7 @@ export const getMedia = <ThrowOnError extends boolean = false>(options: OptionsL
|
|
|
586
600
|
};
|
|
587
601
|
|
|
588
602
|
/**
|
|
589
|
-
*
|
|
603
|
+
* Returns historical and forecast weather data for games. Requires Patreon.
|
|
590
604
|
*/
|
|
591
605
|
export const getWeather = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetWeatherData, ThrowOnError>) => {
|
|
592
606
|
return (options?.client ?? client).get<GetWeatherResponse, GetWeatherError, ThrowOnError>({
|
|
@@ -596,7 +610,7 @@ export const getWeather = <ThrowOnError extends boolean = false>(options?: Optio
|
|
|
596
610
|
};
|
|
597
611
|
|
|
598
612
|
/**
|
|
599
|
-
*
|
|
613
|
+
* Returns historical team records by season.
|
|
600
614
|
*/
|
|
601
615
|
export const getRecords = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRecordsData, ThrowOnError>) => {
|
|
602
616
|
return (options?.client ?? client).get<GetRecordsResponse, GetRecordsError, ThrowOnError>({
|
|
@@ -606,7 +620,7 @@ export const getRecords = <ThrowOnError extends boolean = false>(options?: Optio
|
|
|
606
620
|
};
|
|
607
621
|
|
|
608
622
|
/**
|
|
609
|
-
*
|
|
623
|
+
* Returns the week-by-week season calendar.
|
|
610
624
|
*/
|
|
611
625
|
export const getCalendar = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCalendarData, ThrowOnError>) => {
|
|
612
626
|
return (options?.client ?? client).get<GetCalendarResponse, GetCalendarError, ThrowOnError>({
|
|
@@ -616,7 +630,7 @@ export const getCalendar = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
616
630
|
};
|
|
617
631
|
|
|
618
632
|
/**
|
|
619
|
-
*
|
|
633
|
+
* Returns current scoreboard data.
|
|
620
634
|
*/
|
|
621
635
|
export const getScoreboard = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetScoreboardData, ThrowOnError>) => {
|
|
622
636
|
return (options?.client ?? client).get<GetScoreboardResponse, GetScoreboardError, ThrowOnError>({
|
|
@@ -626,7 +640,7 @@ export const getScoreboard = <ThrowOnError extends boolean = false>(options?: Op
|
|
|
626
640
|
};
|
|
627
641
|
|
|
628
642
|
/**
|
|
629
|
-
*
|
|
643
|
+
* Returns historical drive data.
|
|
630
644
|
*/
|
|
631
645
|
export const getDrives = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetDrivesData, ThrowOnError>) => {
|
|
632
646
|
return (options?.client ?? client).get<GetDrivesResponse, GetDrivesError, ThrowOnError>({
|
|
@@ -636,7 +650,7 @@ export const getDrives = <ThrowOnError extends boolean = false>(options: Options
|
|
|
636
650
|
};
|
|
637
651
|
|
|
638
652
|
/**
|
|
639
|
-
*
|
|
653
|
+
* Returns the NFL teams represented in draft data.
|
|
640
654
|
*/
|
|
641
655
|
export const getDraftTeams = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
642
656
|
return (options?.client ?? client).get<GetDraftTeamsResponse, GetDraftTeamsError, ThrowOnError>({
|
|
@@ -646,7 +660,7 @@ export const getDraftTeams = <ThrowOnError extends boolean = false>(options?: Op
|
|
|
646
660
|
};
|
|
647
661
|
|
|
648
662
|
/**
|
|
649
|
-
*
|
|
663
|
+
* Returns the player position categories used in NFL Draft data.
|
|
650
664
|
*/
|
|
651
665
|
export const getDraftPositions = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
652
666
|
return (options?.client ?? client).get<GetDraftPositionsResponse, GetDraftPositionsError, ThrowOnError>({
|
|
@@ -656,7 +670,7 @@ export const getDraftPositions = <ThrowOnError extends boolean = false>(options?
|
|
|
656
670
|
};
|
|
657
671
|
|
|
658
672
|
/**
|
|
659
|
-
*
|
|
673
|
+
* Returns historical NFL Draft picks.
|
|
660
674
|
*/
|
|
661
675
|
export const getDraftPicks = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetDraftPicksData, ThrowOnError>) => {
|
|
662
676
|
return (options?.client ?? client).get<GetDraftPicksResponse, GetDraftPicksError, ThrowOnError>({
|
|
@@ -666,7 +680,7 @@ export const getDraftPicks = <ThrowOnError extends boolean = false>(options?: Op
|
|
|
666
680
|
};
|
|
667
681
|
|
|
668
682
|
/**
|
|
669
|
-
*
|
|
683
|
+
* Returns historical head coach records.
|
|
670
684
|
*/
|
|
671
685
|
export const getCoaches = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetCoachesData, ThrowOnError>) => {
|
|
672
686
|
return (options?.client ?? client).get<GetCoachesResponse, GetCoachesError, ThrowOnError>({
|
|
@@ -676,7 +690,7 @@ export const getCoaches = <ThrowOnError extends boolean = false>(options?: Optio
|
|
|
676
690
|
};
|
|
677
691
|
|
|
678
692
|
/**
|
|
679
|
-
*
|
|
693
|
+
* Returns a coach profile with canonical identity and career totals.
|
|
680
694
|
*/
|
|
681
695
|
export const getCoachProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCoachProfileData, ThrowOnError>) => {
|
|
682
696
|
return (options?.client ?? client).get<GetCoachProfileResponse, GetCoachProfileError, ThrowOnError>({
|
|
@@ -686,8 +700,7 @@ export const getCoachProfile = <ThrowOnError extends boolean = false>(options: O
|
|
|
686
700
|
};
|
|
687
701
|
|
|
688
702
|
/**
|
|
689
|
-
*
|
|
690
|
-
* whole-team season context
|
|
703
|
+
* Returns coach-season records with attributed results and team context.
|
|
691
704
|
*/
|
|
692
705
|
export const getCoachSeasons = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetCoachSeasonsData, ThrowOnError>) => {
|
|
693
706
|
return (options?.client ?? client).get<GetCoachSeasonsResponse, GetCoachSeasonsError, ThrowOnError>({
|
|
@@ -697,7 +710,7 @@ export const getCoachSeasons = <ThrowOnError extends boolean = false>(options?:
|
|
|
697
710
|
};
|
|
698
711
|
|
|
699
712
|
/**
|
|
700
|
-
*
|
|
713
|
+
* Returns continuous head-coaching tenures and their attributed records.
|
|
701
714
|
*/
|
|
702
715
|
export const getCoachTenures = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetCoachTenuresData, ThrowOnError>) => {
|
|
703
716
|
return (options?.client ?? client).get<GetCoachTenuresResponse, GetCoachTenuresError, ThrowOnError>({
|
|
@@ -707,7 +720,7 @@ export const getCoachTenures = <ThrowOnError extends boolean = false>(options?:
|
|
|
707
720
|
};
|
|
708
721
|
|
|
709
722
|
/**
|
|
710
|
-
*
|
|
723
|
+
* Returns an advanced box score for a game.
|
|
711
724
|
*/
|
|
712
725
|
export const getAdvancedBoxScore = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAdvancedBoxScoreData, ThrowOnError>) => {
|
|
713
726
|
return (options?.client ?? client).get<GetAdvancedBoxScoreResponse, GetAdvancedBoxScoreError, ThrowOnError>({
|