cfbd 5.4.8-alpha.0 → 5.8.2
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/README.md +3 -3
- package/cfbd-5.8.2.tgz +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/sdk.gen.d.ts +63 -59
- package/dist/sdk.gen.js +68 -345
- package/dist/types.gen.d.ts +1394 -1861
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/sdk.gen.ts +241 -573
- package/src/types.gen.ts +1429 -1898
- package/cfbd-5.4.8-alpha.0.tgz +0 -0
package/src/sdk.gen.ts
CHANGED
|
@@ -1,918 +1,586 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
import { createClient, createConfig, type
|
|
4
|
-
import type { GetAdjustedTeamSeasonStatsData, GetAdjustedTeamSeasonStatsResponse, GetAdjustedPlayerPassingStatsData, GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerRushingStatsData, GetAdjustedPlayerRushingStatsResponse, GetKickerPaarData, GetKickerPaarResponse, GetTeamsData, GetTeamsResponse, GetFbsTeamsData, GetFbsTeamsResponse, GetMatchupData, GetMatchupResponse, GetRosterData, GetRosterResponse,
|
|
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, GetRosterData, GetRosterError, GetRosterResponse, GetConferencesError, GetConferencesResponse, GetTalentData, GetTalentError, GetTalentResponse, GetVenuesError, GetVenuesResponse, GetPlayerSeasonStatsData, GetPlayerSeasonStatsError, GetPlayerSeasonStatsResponse, GetTeamStatsData, GetTeamStatsError, GetTeamStatsResponse, GetCategoriesError, GetCategoriesResponse, GetAdvancedSeasonStatsData, GetAdvancedSeasonStatsError, GetAdvancedSeasonStatsResponse, GetAdvancedGameStatsData, GetAdvancedGameStatsError, GetAdvancedGameStatsResponse, GetRecruitsData, GetRecruitsError, GetRecruitsResponse, GetTeamRecruitingRankingsData, GetTeamRecruitingRankingsError, GetTeamRecruitingRankingsResponse, GetAggregatedTeamRecruitingRatingsData, GetAggregatedTeamRecruitingRatingsError, GetAggregatedTeamRecruitingRatingsResponse, GetSpData, GetSpError, GetSpResponse, GetConferenceSpData, GetConferenceSpError, GetConferenceSpResponse, GetSrsData, GetSrsError, GetSrsResponse, GetEloData, GetEloError, GetEloResponse, GetFpiData, GetFpiError, GetFpiResponse, GetRankingsData, GetRankingsError, GetRankingsResponse, GetPlaysData, GetPlaysError, GetPlaysResponse, GetPlayTypesError, GetPlayTypesResponse, GetPlayStatsData, GetPlayStatsError, GetPlayStatsResponse, GetPlayStatTypesError, GetPlayStatTypesResponse, SearchPlayersData, SearchPlayersError, SearchPlayersResponse, GetPlayerUsageData, GetPlayerUsageError, GetPlayerUsageResponse, 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, GetGamesData, GetGamesError, GetGamesResponse, GetGameTeamStatsData, GetGameTeamStatsError, GetGameTeamStatsResponse, GetGamePlayerStatsData, GetGamePlayerStatsError, GetGamePlayerStatsResponse, GetMediaData, GetMediaError, GetMediaResponse, GetWeatherData, GetWeatherError, GetWeatherResponse, GetRecordsData, GetRecordsError, GetRecordsResponse, GetCalendarData, GetCalendarError, GetCalendarResponse, GetScoreboardData, GetScoreboardError, GetScoreboardResponse, GetDrivesData, GetDrivesError, GetDrivesResponse, GetDraftTeamsError, GetDraftTeamsResponse, GetDraftPositionsError, GetDraftPositionsResponse, GetDraftPicksData, GetDraftPicksError, GetDraftPicksResponse, GetCoachesData, GetCoachesError, GetCoachesResponse, GetAdvancedBoxScoreData, GetAdvancedBoxScoreError, GetAdvancedBoxScoreResponse } from './types.gen';
|
|
5
5
|
|
|
6
|
-
export const client = createClient(createConfig({ baseUrl: 'https://
|
|
6
|
+
export const client = createClient(createConfig({ baseUrl: 'https://api.collegefootballdata.com' }));
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Retrieve opponent-adjusted team season statistics
|
|
10
10
|
*/
|
|
11
|
-
export const getAdjustedTeamSeasonStats = <ThrowOnError extends boolean = false>(options?:
|
|
12
|
-
return (options?.client ?? client).get<GetAdjustedTeamSeasonStatsResponse,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
scheme: 'bearer',
|
|
16
|
-
type: 'http'
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
url: '/wepa/team/season',
|
|
20
|
-
...options
|
|
11
|
+
export const getAdjustedTeamSeasonStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdjustedTeamSeasonStatsData, ThrowOnError>) => {
|
|
12
|
+
return (options?.client ?? client).get<GetAdjustedTeamSeasonStatsResponse, GetAdjustedTeamSeasonStatsError, ThrowOnError>({
|
|
13
|
+
...options,
|
|
14
|
+
url: '/wepa/team/season'
|
|
21
15
|
});
|
|
22
16
|
};
|
|
23
17
|
|
|
24
18
|
/**
|
|
25
19
|
* Retrieve opponent-adjusted player passing statistics
|
|
26
20
|
*/
|
|
27
|
-
export const getAdjustedPlayerPassingStats = <ThrowOnError extends boolean = false>(options?:
|
|
28
|
-
return (options?.client ?? client).get<GetAdjustedPlayerPassingStatsResponse,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
scheme: 'bearer',
|
|
32
|
-
type: 'http'
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
url: '/wepa/players/passing',
|
|
36
|
-
...options
|
|
21
|
+
export const getAdjustedPlayerPassingStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdjustedPlayerPassingStatsData, ThrowOnError>) => {
|
|
22
|
+
return (options?.client ?? client).get<GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerPassingStatsError, ThrowOnError>({
|
|
23
|
+
...options,
|
|
24
|
+
url: '/wepa/players/passing'
|
|
37
25
|
});
|
|
38
26
|
};
|
|
39
27
|
|
|
40
28
|
/**
|
|
41
29
|
* Retrieve opponent-adjusted player rushing statistics
|
|
42
30
|
*/
|
|
43
|
-
export const getAdjustedPlayerRushingStats = <ThrowOnError extends boolean = false>(options?:
|
|
44
|
-
return (options?.client ?? client).get<GetAdjustedPlayerRushingStatsResponse,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
scheme: 'bearer',
|
|
48
|
-
type: 'http'
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
url: '/wepa/players/rushing',
|
|
52
|
-
...options
|
|
31
|
+
export const getAdjustedPlayerRushingStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdjustedPlayerRushingStatsData, ThrowOnError>) => {
|
|
32
|
+
return (options?.client ?? client).get<GetAdjustedPlayerRushingStatsResponse, GetAdjustedPlayerRushingStatsError, ThrowOnError>({
|
|
33
|
+
...options,
|
|
34
|
+
url: '/wepa/players/rushing'
|
|
53
35
|
});
|
|
54
36
|
};
|
|
55
37
|
|
|
56
38
|
/**
|
|
57
39
|
* Retrieve Points Added Above Replacement (PAAR) ratings for kickers
|
|
58
40
|
*/
|
|
59
|
-
export const getKickerPaar = <ThrowOnError extends boolean = false>(options?:
|
|
60
|
-
return (options?.client ?? client).get<GetKickerPaarResponse,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
scheme: 'bearer',
|
|
64
|
-
type: 'http'
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
url: '/wepa/players/kicking',
|
|
68
|
-
...options
|
|
41
|
+
export const getKickerPaar = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetKickerPaarData, ThrowOnError>) => {
|
|
42
|
+
return (options?.client ?? client).get<GetKickerPaarResponse, GetKickerPaarError, ThrowOnError>({
|
|
43
|
+
...options,
|
|
44
|
+
url: '/wepa/players/kicking'
|
|
69
45
|
});
|
|
70
46
|
};
|
|
71
47
|
|
|
72
48
|
/**
|
|
73
49
|
* Retrieves team information
|
|
74
50
|
*/
|
|
75
|
-
export const getTeams = <ThrowOnError extends boolean = false>(options?:
|
|
76
|
-
return (options?.client ?? client).get<GetTeamsResponse,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
scheme: 'bearer',
|
|
80
|
-
type: 'http'
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
url: '/teams',
|
|
84
|
-
...options
|
|
51
|
+
export const getTeams = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTeamsData, ThrowOnError>) => {
|
|
52
|
+
return (options?.client ?? client).get<GetTeamsResponse, GetTeamsError, ThrowOnError>({
|
|
53
|
+
...options,
|
|
54
|
+
url: '/teams'
|
|
85
55
|
});
|
|
86
56
|
};
|
|
87
57
|
|
|
88
58
|
/**
|
|
89
59
|
* Retrieves information on teams playing in the highest division of CFB
|
|
90
60
|
*/
|
|
91
|
-
export const getFbsTeams = <ThrowOnError extends boolean = false>(options?:
|
|
92
|
-
return (options?.client ?? client).get<GetFbsTeamsResponse,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
scheme: 'bearer',
|
|
96
|
-
type: 'http'
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
url: '/teams/fbs',
|
|
100
|
-
...options
|
|
61
|
+
export const getFbsTeams = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetFbsTeamsData, ThrowOnError>) => {
|
|
62
|
+
return (options?.client ?? client).get<GetFbsTeamsResponse, GetFbsTeamsError, ThrowOnError>({
|
|
63
|
+
...options,
|
|
64
|
+
url: '/teams/fbs'
|
|
101
65
|
});
|
|
102
66
|
};
|
|
103
67
|
|
|
104
68
|
/**
|
|
105
69
|
* Retrieves historical matchup details for two given teams
|
|
106
70
|
*/
|
|
107
|
-
export const getMatchup = <ThrowOnError extends boolean = false>(options:
|
|
108
|
-
return (options?.client ?? client).get<GetMatchupResponse,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
scheme: 'bearer',
|
|
112
|
-
type: 'http'
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
url: '/teams/matchup',
|
|
116
|
-
...options
|
|
71
|
+
export const getMatchup = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetMatchupData, ThrowOnError>) => {
|
|
72
|
+
return (options?.client ?? client).get<GetMatchupResponse, GetMatchupError, ThrowOnError>({
|
|
73
|
+
...options,
|
|
74
|
+
url: '/teams/matchup'
|
|
117
75
|
});
|
|
118
76
|
};
|
|
119
77
|
|
|
120
78
|
/**
|
|
121
79
|
* Retrieves historical roster data
|
|
122
80
|
*/
|
|
123
|
-
export const getRoster = <ThrowOnError extends boolean = false>(options?:
|
|
124
|
-
return (options?.client ?? client).get<GetRosterResponse,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
scheme: 'bearer',
|
|
128
|
-
type: 'http'
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
url: '/roster',
|
|
132
|
-
...options
|
|
81
|
+
export const getRoster = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRosterData, ThrowOnError>) => {
|
|
82
|
+
return (options?.client ?? client).get<GetRosterResponse, GetRosterError, ThrowOnError>({
|
|
83
|
+
...options,
|
|
84
|
+
url: '/roster'
|
|
133
85
|
});
|
|
134
86
|
};
|
|
135
87
|
|
|
136
88
|
/**
|
|
137
89
|
* Retrieves list of conferences
|
|
138
90
|
*/
|
|
139
|
-
export const getConferences = <ThrowOnError extends boolean = false>(options?:
|
|
140
|
-
return (options?.client ?? client).get<GetConferencesResponse,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
scheme: 'bearer',
|
|
144
|
-
type: 'http'
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
url: '/conferences',
|
|
148
|
-
...options
|
|
91
|
+
export const getConferences = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
92
|
+
return (options?.client ?? client).get<GetConferencesResponse, GetConferencesError, ThrowOnError>({
|
|
93
|
+
...options,
|
|
94
|
+
url: '/conferences'
|
|
149
95
|
});
|
|
150
96
|
};
|
|
151
97
|
|
|
152
98
|
/**
|
|
153
99
|
* Retrieve 247 Team Talent Composite for a given year
|
|
154
100
|
*/
|
|
155
|
-
export const getTalent = <ThrowOnError extends boolean = false>(options:
|
|
156
|
-
return (options?.client ?? client).get<GetTalentResponse,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
scheme: 'bearer',
|
|
160
|
-
type: 'http'
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
url: '/talent',
|
|
164
|
-
...options
|
|
101
|
+
export const getTalent = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTalentData, ThrowOnError>) => {
|
|
102
|
+
return (options?.client ?? client).get<GetTalentResponse, GetTalentError, ThrowOnError>({
|
|
103
|
+
...options,
|
|
104
|
+
url: '/talent'
|
|
165
105
|
});
|
|
166
106
|
};
|
|
167
107
|
|
|
168
108
|
/**
|
|
169
109
|
* Retrieve list of venues
|
|
170
110
|
*/
|
|
171
|
-
export const getVenues = <ThrowOnError extends boolean = false>(options?:
|
|
172
|
-
return (options?.client ?? client).get<GetVenuesResponse,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
scheme: 'bearer',
|
|
176
|
-
type: 'http'
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
url: '/venues',
|
|
180
|
-
...options
|
|
111
|
+
export const getVenues = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
112
|
+
return (options?.client ?? client).get<GetVenuesResponse, GetVenuesError, ThrowOnError>({
|
|
113
|
+
...options,
|
|
114
|
+
url: '/venues'
|
|
181
115
|
});
|
|
182
116
|
};
|
|
183
117
|
|
|
184
118
|
/**
|
|
185
119
|
* Retrieves aggregated player statistics for a given season
|
|
186
120
|
*/
|
|
187
|
-
export const getPlayerSeasonStats = <ThrowOnError extends boolean = false>(options:
|
|
188
|
-
return (options?.client ?? client).get<GetPlayerSeasonStatsResponse,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
scheme: 'bearer',
|
|
192
|
-
type: 'http'
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
url: '/stats/player/season',
|
|
196
|
-
...options
|
|
121
|
+
export const getPlayerSeasonStats = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPlayerSeasonStatsData, ThrowOnError>) => {
|
|
122
|
+
return (options?.client ?? client).get<GetPlayerSeasonStatsResponse, GetPlayerSeasonStatsError, ThrowOnError>({
|
|
123
|
+
...options,
|
|
124
|
+
url: '/stats/player/season'
|
|
197
125
|
});
|
|
198
126
|
};
|
|
199
127
|
|
|
200
128
|
/**
|
|
201
129
|
* Retrieves aggregated team season statistics
|
|
202
130
|
*/
|
|
203
|
-
export const getTeamStats = <ThrowOnError extends boolean = false>(options?:
|
|
204
|
-
return (options?.client ?? client).get<GetTeamStatsResponse,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
scheme: 'bearer',
|
|
208
|
-
type: 'http'
|
|
209
|
-
}
|
|
210
|
-
],
|
|
211
|
-
url: '/stats/season',
|
|
212
|
-
...options
|
|
131
|
+
export const getTeamStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTeamStatsData, ThrowOnError>) => {
|
|
132
|
+
return (options?.client ?? client).get<GetTeamStatsResponse, GetTeamStatsError, ThrowOnError>({
|
|
133
|
+
...options,
|
|
134
|
+
url: '/stats/season'
|
|
213
135
|
});
|
|
214
136
|
};
|
|
215
137
|
|
|
216
138
|
/**
|
|
217
139
|
* Gets team statistical categories
|
|
218
140
|
*/
|
|
219
|
-
export const getCategories = <ThrowOnError extends boolean = false>(options?:
|
|
220
|
-
return (options?.client ?? client).get<GetCategoriesResponse,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
scheme: 'bearer',
|
|
224
|
-
type: 'http'
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
url: '/stats/categories',
|
|
228
|
-
...options
|
|
141
|
+
export const getCategories = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
142
|
+
return (options?.client ?? client).get<GetCategoriesResponse, GetCategoriesError, ThrowOnError>({
|
|
143
|
+
...options,
|
|
144
|
+
url: '/stats/categories'
|
|
229
145
|
});
|
|
230
146
|
};
|
|
231
147
|
|
|
232
148
|
/**
|
|
233
149
|
* Retrieves advanced season statistics for teams
|
|
234
150
|
*/
|
|
235
|
-
export const getAdvancedSeasonStats = <ThrowOnError extends boolean = false>(options?:
|
|
236
|
-
return (options?.client ?? client).get<GetAdvancedSeasonStatsResponse,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
scheme: 'bearer',
|
|
240
|
-
type: 'http'
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
url: '/stats/season/advanced',
|
|
244
|
-
...options
|
|
151
|
+
export const getAdvancedSeasonStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdvancedSeasonStatsData, ThrowOnError>) => {
|
|
152
|
+
return (options?.client ?? client).get<GetAdvancedSeasonStatsResponse, GetAdvancedSeasonStatsError, ThrowOnError>({
|
|
153
|
+
...options,
|
|
154
|
+
url: '/stats/season/advanced'
|
|
245
155
|
});
|
|
246
156
|
};
|
|
247
157
|
|
|
248
158
|
/**
|
|
249
159
|
* Retrieves advanced statistics aggregated by game
|
|
250
160
|
*/
|
|
251
|
-
export const getAdvancedGameStats = <ThrowOnError extends boolean = false>(options?:
|
|
252
|
-
return (options?.client ?? client).get<GetAdvancedGameStatsResponse,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
scheme: 'bearer',
|
|
256
|
-
type: 'http'
|
|
257
|
-
}
|
|
258
|
-
],
|
|
259
|
-
url: '/stats/game/advanced',
|
|
260
|
-
...options
|
|
161
|
+
export const getAdvancedGameStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdvancedGameStatsData, ThrowOnError>) => {
|
|
162
|
+
return (options?.client ?? client).get<GetAdvancedGameStatsResponse, GetAdvancedGameStatsError, ThrowOnError>({
|
|
163
|
+
...options,
|
|
164
|
+
url: '/stats/game/advanced'
|
|
261
165
|
});
|
|
262
166
|
};
|
|
263
167
|
|
|
264
168
|
/**
|
|
265
169
|
* Retrieves player recruiting rankings
|
|
266
170
|
*/
|
|
267
|
-
export const getRecruits = <ThrowOnError extends boolean = false>(options?:
|
|
268
|
-
return (options?.client ?? client).get<GetRecruitsResponse,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
scheme: 'bearer',
|
|
272
|
-
type: 'http'
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
url: '/recruiting/players',
|
|
276
|
-
...options
|
|
171
|
+
export const getRecruits = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRecruitsData, ThrowOnError>) => {
|
|
172
|
+
return (options?.client ?? client).get<GetRecruitsResponse, GetRecruitsError, ThrowOnError>({
|
|
173
|
+
...options,
|
|
174
|
+
url: '/recruiting/players'
|
|
277
175
|
});
|
|
278
176
|
};
|
|
279
177
|
|
|
280
178
|
/**
|
|
281
179
|
* Retrieves team recruiting rankings
|
|
282
180
|
*/
|
|
283
|
-
export const getTeamRecruitingRankings = <ThrowOnError extends boolean = false>(options?:
|
|
284
|
-
return (options?.client ?? client).get<GetTeamRecruitingRankingsResponse,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
scheme: 'bearer',
|
|
288
|
-
type: 'http'
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
url: '/recruiting/teams',
|
|
292
|
-
...options
|
|
181
|
+
export const getTeamRecruitingRankings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetTeamRecruitingRankingsData, ThrowOnError>) => {
|
|
182
|
+
return (options?.client ?? client).get<GetTeamRecruitingRankingsResponse, GetTeamRecruitingRankingsError, ThrowOnError>({
|
|
183
|
+
...options,
|
|
184
|
+
url: '/recruiting/teams'
|
|
293
185
|
});
|
|
294
186
|
};
|
|
295
187
|
|
|
296
188
|
/**
|
|
297
189
|
* Retrieves aggregated recruiting statistics by team and position grouping
|
|
298
190
|
*/
|
|
299
|
-
export const getAggregatedTeamRecruitingRatings = <ThrowOnError extends boolean = false>(options?:
|
|
300
|
-
return (options?.client ?? client).get<GetAggregatedTeamRecruitingRatingsResponse,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
scheme: 'bearer',
|
|
304
|
-
type: 'http'
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
url: '/recruiting/groups',
|
|
308
|
-
...options
|
|
191
|
+
export const getAggregatedTeamRecruitingRatings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAggregatedTeamRecruitingRatingsData, ThrowOnError>) => {
|
|
192
|
+
return (options?.client ?? client).get<GetAggregatedTeamRecruitingRatingsResponse, GetAggregatedTeamRecruitingRatingsError, ThrowOnError>({
|
|
193
|
+
...options,
|
|
194
|
+
url: '/recruiting/groups'
|
|
309
195
|
});
|
|
310
196
|
};
|
|
311
197
|
|
|
312
198
|
/**
|
|
313
199
|
* Retrieves SP+ ratings for a given year or school
|
|
314
200
|
*/
|
|
315
|
-
export const getSp = <ThrowOnError extends boolean = false>(options?:
|
|
316
|
-
return (options?.client ?? client).get<GetSpResponse,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
scheme: 'bearer',
|
|
320
|
-
type: 'http'
|
|
321
|
-
}
|
|
322
|
-
],
|
|
323
|
-
url: '/ratings/sp',
|
|
324
|
-
...options
|
|
201
|
+
export const getSp = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetSpData, ThrowOnError>) => {
|
|
202
|
+
return (options?.client ?? client).get<GetSpResponse, GetSpError, ThrowOnError>({
|
|
203
|
+
...options,
|
|
204
|
+
url: '/ratings/sp'
|
|
325
205
|
});
|
|
326
206
|
};
|
|
327
207
|
|
|
328
208
|
/**
|
|
329
209
|
* Retrieves aggregated historical conference SP+ data
|
|
330
210
|
*/
|
|
331
|
-
export const getConferenceSp = <ThrowOnError extends boolean = false>(options?:
|
|
332
|
-
return (options?.client ?? client).get<GetConferenceSpResponse,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
scheme: 'bearer',
|
|
336
|
-
type: 'http'
|
|
337
|
-
}
|
|
338
|
-
],
|
|
339
|
-
url: '/ratings/sp/conferences',
|
|
340
|
-
...options
|
|
211
|
+
export const getConferenceSp = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetConferenceSpData, ThrowOnError>) => {
|
|
212
|
+
return (options?.client ?? client).get<GetConferenceSpResponse, GetConferenceSpError, ThrowOnError>({
|
|
213
|
+
...options,
|
|
214
|
+
url: '/ratings/sp/conferences'
|
|
341
215
|
});
|
|
342
216
|
};
|
|
343
217
|
|
|
344
218
|
/**
|
|
345
219
|
* Retrieves historical SRS for a year or team
|
|
346
220
|
*/
|
|
347
|
-
export const getSrs = <ThrowOnError extends boolean = false>(options?:
|
|
348
|
-
return (options?.client ?? client).get<GetSrsResponse,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
scheme: 'bearer',
|
|
352
|
-
type: 'http'
|
|
353
|
-
}
|
|
354
|
-
],
|
|
355
|
-
url: '/ratings/srs',
|
|
356
|
-
...options
|
|
221
|
+
export const getSrs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetSrsData, ThrowOnError>) => {
|
|
222
|
+
return (options?.client ?? client).get<GetSrsResponse, GetSrsError, ThrowOnError>({
|
|
223
|
+
...options,
|
|
224
|
+
url: '/ratings/srs'
|
|
357
225
|
});
|
|
358
226
|
};
|
|
359
227
|
|
|
360
228
|
/**
|
|
361
229
|
* Retrieves historical Elo ratings
|
|
362
230
|
*/
|
|
363
|
-
export const getElo = <ThrowOnError extends boolean = false>(options?:
|
|
364
|
-
return (options?.client ?? client).get<GetEloResponse,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
scheme: 'bearer',
|
|
368
|
-
type: 'http'
|
|
369
|
-
}
|
|
370
|
-
],
|
|
371
|
-
url: '/ratings/elo',
|
|
372
|
-
...options
|
|
231
|
+
export const getElo = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetEloData, ThrowOnError>) => {
|
|
232
|
+
return (options?.client ?? client).get<GetEloResponse, GetEloError, ThrowOnError>({
|
|
233
|
+
...options,
|
|
234
|
+
url: '/ratings/elo'
|
|
373
235
|
});
|
|
374
236
|
};
|
|
375
237
|
|
|
376
238
|
/**
|
|
377
239
|
* Retrieves historical Football Power Index (FPI) ratings
|
|
378
240
|
*/
|
|
379
|
-
export const getFpi = <ThrowOnError extends boolean = false>(options?:
|
|
380
|
-
return (options?.client ?? client).get<GetFpiResponse,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
scheme: 'bearer',
|
|
384
|
-
type: 'http'
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
url: '/ratings/fpi',
|
|
388
|
-
...options
|
|
241
|
+
export const getFpi = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetFpiData, ThrowOnError>) => {
|
|
242
|
+
return (options?.client ?? client).get<GetFpiResponse, GetFpiError, ThrowOnError>({
|
|
243
|
+
...options,
|
|
244
|
+
url: '/ratings/fpi'
|
|
389
245
|
});
|
|
390
246
|
};
|
|
391
247
|
|
|
392
248
|
/**
|
|
393
249
|
* Retrieves historical poll data
|
|
394
250
|
*/
|
|
395
|
-
export const getRankings = <ThrowOnError extends boolean = false>(options:
|
|
396
|
-
return (options?.client ?? client).get<GetRankingsResponse,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
scheme: 'bearer',
|
|
400
|
-
type: 'http'
|
|
401
|
-
}
|
|
402
|
-
],
|
|
403
|
-
url: '/rankings',
|
|
404
|
-
...options
|
|
251
|
+
export const getRankings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRankingsData, ThrowOnError>) => {
|
|
252
|
+
return (options?.client ?? client).get<GetRankingsResponse, GetRankingsError, ThrowOnError>({
|
|
253
|
+
...options,
|
|
254
|
+
url: '/rankings'
|
|
405
255
|
});
|
|
406
256
|
};
|
|
407
257
|
|
|
408
258
|
/**
|
|
409
259
|
* Retrieves historical play data
|
|
410
260
|
*/
|
|
411
|
-
export const getPlays = <ThrowOnError extends boolean = false>(options:
|
|
412
|
-
return (options?.client ?? client).get<GetPlaysResponse,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
scheme: 'bearer',
|
|
416
|
-
type: 'http'
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
|
-
url: '/plays',
|
|
420
|
-
...options
|
|
261
|
+
export const getPlays = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPlaysData, ThrowOnError>) => {
|
|
262
|
+
return (options?.client ?? client).get<GetPlaysResponse, GetPlaysError, ThrowOnError>({
|
|
263
|
+
...options,
|
|
264
|
+
url: '/plays'
|
|
421
265
|
});
|
|
422
266
|
};
|
|
423
267
|
|
|
424
268
|
/**
|
|
425
269
|
* Retrieves available play types
|
|
426
270
|
*/
|
|
427
|
-
export const getPlayTypes = <ThrowOnError extends boolean = false>(options?:
|
|
428
|
-
return (options?.client ?? client).get<GetPlayTypesResponse,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
scheme: 'bearer',
|
|
432
|
-
type: 'http'
|
|
433
|
-
}
|
|
434
|
-
],
|
|
435
|
-
url: '/plays/types',
|
|
436
|
-
...options
|
|
271
|
+
export const getPlayTypes = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
272
|
+
return (options?.client ?? client).get<GetPlayTypesResponse, GetPlayTypesError, ThrowOnError>({
|
|
273
|
+
...options,
|
|
274
|
+
url: '/plays/types'
|
|
437
275
|
});
|
|
438
276
|
};
|
|
439
277
|
|
|
440
278
|
/**
|
|
441
279
|
* Retrieve player-play associations (limit 2000)
|
|
442
280
|
*/
|
|
443
|
-
export const getPlayStats = <ThrowOnError extends boolean = false>(options?:
|
|
444
|
-
return (options?.client ?? client).get<GetPlayStatsResponse,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
scheme: 'bearer',
|
|
448
|
-
type: 'http'
|
|
449
|
-
}
|
|
450
|
-
],
|
|
451
|
-
url: '/plays/stats',
|
|
452
|
-
...options
|
|
281
|
+
export const getPlayStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPlayStatsData, ThrowOnError>) => {
|
|
282
|
+
return (options?.client ?? client).get<GetPlayStatsResponse, GetPlayStatsError, ThrowOnError>({
|
|
283
|
+
...options,
|
|
284
|
+
url: '/plays/stats'
|
|
453
285
|
});
|
|
454
286
|
};
|
|
455
287
|
|
|
456
288
|
/**
|
|
457
289
|
* Retrieves available play stat types
|
|
458
290
|
*/
|
|
459
|
-
export const getPlayStatTypes = <ThrowOnError extends boolean = false>(options?:
|
|
460
|
-
return (options?.client ?? client).get<GetPlayStatTypesResponse,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
scheme: 'bearer',
|
|
464
|
-
type: 'http'
|
|
465
|
-
}
|
|
466
|
-
],
|
|
467
|
-
url: '/plays/stats/types',
|
|
468
|
-
...options
|
|
291
|
+
export const getPlayStatTypes = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
292
|
+
return (options?.client ?? client).get<GetPlayStatTypesResponse, GetPlayStatTypesError, ThrowOnError>({
|
|
293
|
+
...options,
|
|
294
|
+
url: '/plays/stats/types'
|
|
469
295
|
});
|
|
470
296
|
};
|
|
471
297
|
|
|
472
298
|
/**
|
|
473
299
|
* Search for players (lists top 100 results)
|
|
474
300
|
*/
|
|
475
|
-
export const searchPlayers = <ThrowOnError extends boolean = false>(options:
|
|
476
|
-
return (options?.client ?? client).get<SearchPlayersResponse,
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
scheme: 'bearer',
|
|
480
|
-
type: 'http'
|
|
481
|
-
}
|
|
482
|
-
],
|
|
483
|
-
url: '/player/search',
|
|
484
|
-
...options
|
|
301
|
+
export const searchPlayers = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SearchPlayersData, ThrowOnError>) => {
|
|
302
|
+
return (options?.client ?? client).get<SearchPlayersResponse, SearchPlayersError, ThrowOnError>({
|
|
303
|
+
...options,
|
|
304
|
+
url: '/player/search'
|
|
485
305
|
});
|
|
486
306
|
};
|
|
487
307
|
|
|
488
308
|
/**
|
|
489
309
|
* Retrieves player usage data for a given season
|
|
490
310
|
*/
|
|
491
|
-
export const getPlayerUsage = <ThrowOnError extends boolean = false>(options:
|
|
492
|
-
return (options?.client ?? client).get<GetPlayerUsageResponse,
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
scheme: 'bearer',
|
|
496
|
-
type: 'http'
|
|
497
|
-
}
|
|
498
|
-
],
|
|
499
|
-
url: '/player/usage',
|
|
500
|
-
...options
|
|
311
|
+
export const getPlayerUsage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPlayerUsageData, ThrowOnError>) => {
|
|
312
|
+
return (options?.client ?? client).get<GetPlayerUsageResponse, GetPlayerUsageError, ThrowOnError>({
|
|
313
|
+
...options,
|
|
314
|
+
url: '/player/usage'
|
|
501
315
|
});
|
|
502
316
|
};
|
|
503
317
|
|
|
504
318
|
/**
|
|
505
319
|
* Retrieves returning production data. Either a year or team filter must be specified.
|
|
506
320
|
*/
|
|
507
|
-
export const getReturningProduction = <ThrowOnError extends boolean = false>(options?:
|
|
508
|
-
return (options?.client ?? client).get<GetReturningProductionResponse,
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
scheme: 'bearer',
|
|
512
|
-
type: 'http'
|
|
513
|
-
}
|
|
514
|
-
],
|
|
515
|
-
url: '/player/returning',
|
|
516
|
-
...options
|
|
321
|
+
export const getReturningProduction = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetReturningProductionData, ThrowOnError>) => {
|
|
322
|
+
return (options?.client ?? client).get<GetReturningProductionResponse, GetReturningProductionError, ThrowOnError>({
|
|
323
|
+
...options,
|
|
324
|
+
url: '/player/returning'
|
|
517
325
|
});
|
|
518
326
|
};
|
|
519
327
|
|
|
520
328
|
/**
|
|
521
329
|
* Retrieves transfer portal data for a given year
|
|
522
330
|
*/
|
|
523
|
-
export const getTransferPortal = <ThrowOnError extends boolean = false>(options:
|
|
524
|
-
return (options?.client ?? client).get<GetTransferPortalResponse,
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
scheme: 'bearer',
|
|
528
|
-
type: 'http'
|
|
529
|
-
}
|
|
530
|
-
],
|
|
531
|
-
url: '/player/portal',
|
|
532
|
-
...options
|
|
331
|
+
export const getTransferPortal = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTransferPortalData, ThrowOnError>) => {
|
|
332
|
+
return (options?.client ?? client).get<GetTransferPortalResponse, GetTransferPortalError, ThrowOnError>({
|
|
333
|
+
...options,
|
|
334
|
+
url: '/player/portal'
|
|
533
335
|
});
|
|
534
336
|
};
|
|
535
337
|
|
|
536
338
|
/**
|
|
537
339
|
* Query Predicted Points values by down and distance
|
|
538
340
|
*/
|
|
539
|
-
export const getPredictedPoints = <ThrowOnError extends boolean = false>(options:
|
|
540
|
-
return (options?.client ?? client).get<GetPredictedPointsResponse,
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
scheme: 'bearer',
|
|
544
|
-
type: 'http'
|
|
545
|
-
}
|
|
546
|
-
],
|
|
547
|
-
url: '/ppa/predicted',
|
|
548
|
-
...options
|
|
341
|
+
export const getPredictedPoints = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPredictedPointsData, ThrowOnError>) => {
|
|
342
|
+
return (options?.client ?? client).get<GetPredictedPointsResponse, GetPredictedPointsError, ThrowOnError>({
|
|
343
|
+
...options,
|
|
344
|
+
url: '/ppa/predicted'
|
|
549
345
|
});
|
|
550
346
|
};
|
|
551
347
|
|
|
552
348
|
/**
|
|
553
349
|
* Retrieves historical team PPA metrics by season
|
|
554
350
|
*/
|
|
555
|
-
export const getPredictedPointsAddedByTeam = <ThrowOnError extends boolean = false>(options?:
|
|
556
|
-
return (options?.client ?? client).get<GetPredictedPointsAddedByTeamResponse,
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
scheme: 'bearer',
|
|
560
|
-
type: 'http'
|
|
561
|
-
}
|
|
562
|
-
],
|
|
563
|
-
url: '/ppa/teams',
|
|
564
|
-
...options
|
|
351
|
+
export const getPredictedPointsAddedByTeam = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPredictedPointsAddedByTeamData, ThrowOnError>) => {
|
|
352
|
+
return (options?.client ?? client).get<GetPredictedPointsAddedByTeamResponse, GetPredictedPointsAddedByTeamError, ThrowOnError>({
|
|
353
|
+
...options,
|
|
354
|
+
url: '/ppa/teams'
|
|
565
355
|
});
|
|
566
356
|
};
|
|
567
357
|
|
|
568
358
|
/**
|
|
569
359
|
* Retrieves historical team PPA metrics by game
|
|
570
360
|
*/
|
|
571
|
-
export const getPredictedPointsAddedByGame = <ThrowOnError extends boolean = false>(options:
|
|
572
|
-
return (options?.client ?? client).get<GetPredictedPointsAddedByGameResponse,
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
scheme: 'bearer',
|
|
576
|
-
type: 'http'
|
|
577
|
-
}
|
|
578
|
-
],
|
|
579
|
-
url: '/ppa/games',
|
|
580
|
-
...options
|
|
361
|
+
export const getPredictedPointsAddedByGame = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPredictedPointsAddedByGameData, ThrowOnError>) => {
|
|
362
|
+
return (options?.client ?? client).get<GetPredictedPointsAddedByGameResponse, GetPredictedPointsAddedByGameError, ThrowOnError>({
|
|
363
|
+
...options,
|
|
364
|
+
url: '/ppa/games'
|
|
581
365
|
});
|
|
582
366
|
};
|
|
583
367
|
|
|
584
368
|
/**
|
|
585
369
|
* Queries player PPA statistics by game
|
|
586
370
|
*/
|
|
587
|
-
export const getPredictedPointsAddedByPlayerGame = <ThrowOnError extends boolean = false>(options:
|
|
588
|
-
return (options?.client ?? client).get<GetPredictedPointsAddedByPlayerGameResponse,
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
scheme: 'bearer',
|
|
592
|
-
type: 'http'
|
|
593
|
-
}
|
|
594
|
-
],
|
|
595
|
-
url: '/ppa/players/games',
|
|
596
|
-
...options
|
|
371
|
+
export const getPredictedPointsAddedByPlayerGame = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPredictedPointsAddedByPlayerGameData, ThrowOnError>) => {
|
|
372
|
+
return (options?.client ?? client).get<GetPredictedPointsAddedByPlayerGameResponse, GetPredictedPointsAddedByPlayerGameError, ThrowOnError>({
|
|
373
|
+
...options,
|
|
374
|
+
url: '/ppa/players/games'
|
|
597
375
|
});
|
|
598
376
|
};
|
|
599
377
|
|
|
600
378
|
/**
|
|
601
379
|
* Queries player PPA statistics by season
|
|
602
380
|
*/
|
|
603
|
-
export const getPredictedPointsAddedByPlayerSeason = <ThrowOnError extends boolean = false>(options?:
|
|
604
|
-
return (options?.client ?? client).get<GetPredictedPointsAddedByPlayerSeasonResponse,
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
scheme: 'bearer',
|
|
608
|
-
type: 'http'
|
|
609
|
-
}
|
|
610
|
-
],
|
|
611
|
-
url: '/ppa/players/season',
|
|
612
|
-
...options
|
|
381
|
+
export const getPredictedPointsAddedByPlayerSeason = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPredictedPointsAddedByPlayerSeasonData, ThrowOnError>) => {
|
|
382
|
+
return (options?.client ?? client).get<GetPredictedPointsAddedByPlayerSeasonResponse, GetPredictedPointsAddedByPlayerSeasonError, ThrowOnError>({
|
|
383
|
+
...options,
|
|
384
|
+
url: '/ppa/players/season'
|
|
613
385
|
});
|
|
614
386
|
};
|
|
615
387
|
|
|
616
388
|
/**
|
|
617
389
|
* Query play win probabilities by game
|
|
618
390
|
*/
|
|
619
|
-
export const getWinProbability = <ThrowOnError extends boolean = false>(options:
|
|
620
|
-
return (options?.client ?? client).get<GetWinProbabilityResponse,
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
scheme: 'bearer',
|
|
624
|
-
type: 'http'
|
|
625
|
-
}
|
|
626
|
-
],
|
|
627
|
-
url: '/metrics/wp',
|
|
628
|
-
...options
|
|
391
|
+
export const getWinProbability = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWinProbabilityData, ThrowOnError>) => {
|
|
392
|
+
return (options?.client ?? client).get<GetWinProbabilityResponse, GetWinProbabilityError, ThrowOnError>({
|
|
393
|
+
...options,
|
|
394
|
+
url: '/metrics/wp'
|
|
629
395
|
});
|
|
630
396
|
};
|
|
631
397
|
|
|
632
398
|
/**
|
|
633
399
|
* Queries pregame win probabilities
|
|
634
400
|
*/
|
|
635
|
-
export const getPregameWinProbabilities = <ThrowOnError extends boolean = false>(options?:
|
|
636
|
-
return (options?.client ?? client).get<GetPregameWinProbabilitiesResponse,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
scheme: 'bearer',
|
|
640
|
-
type: 'http'
|
|
641
|
-
}
|
|
642
|
-
],
|
|
643
|
-
url: '/metrics/wp/pregame',
|
|
644
|
-
...options
|
|
401
|
+
export const getPregameWinProbabilities = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPregameWinProbabilitiesData, ThrowOnError>) => {
|
|
402
|
+
return (options?.client ?? client).get<GetPregameWinProbabilitiesResponse, GetPregameWinProbabilitiesError, ThrowOnError>({
|
|
403
|
+
...options,
|
|
404
|
+
url: '/metrics/wp/pregame'
|
|
645
405
|
});
|
|
646
406
|
};
|
|
647
407
|
|
|
648
408
|
/**
|
|
649
409
|
* Queries field goal expected points values
|
|
650
410
|
*/
|
|
651
|
-
export const getFieldGoalExpectedPoints = <ThrowOnError extends boolean = false>(options?:
|
|
652
|
-
return (options?.client ?? client).get<GetFieldGoalExpectedPointsResponse,
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
scheme: 'bearer',
|
|
656
|
-
type: 'http'
|
|
657
|
-
}
|
|
658
|
-
],
|
|
659
|
-
url: '/metrics/fg/ep',
|
|
660
|
-
...options
|
|
411
|
+
export const getFieldGoalExpectedPoints = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
412
|
+
return (options?.client ?? client).get<GetFieldGoalExpectedPointsResponse, GetFieldGoalExpectedPointsError, ThrowOnError>({
|
|
413
|
+
...options,
|
|
414
|
+
url: '/metrics/fg/ep'
|
|
661
415
|
});
|
|
662
416
|
};
|
|
663
417
|
|
|
664
418
|
/**
|
|
665
419
|
* Queries live play-by-play data and advanced stats
|
|
666
420
|
*/
|
|
667
|
-
export const getLivePlays = <ThrowOnError extends boolean = false>(options:
|
|
668
|
-
return (options?.client ?? client).get<GetLivePlaysResponse,
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
scheme: 'bearer',
|
|
672
|
-
type: 'http'
|
|
673
|
-
}
|
|
674
|
-
],
|
|
675
|
-
url: '/live/plays',
|
|
676
|
-
...options
|
|
421
|
+
export const getLivePlays = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLivePlaysData, ThrowOnError>) => {
|
|
422
|
+
return (options?.client ?? client).get<GetLivePlaysResponse, GetLivePlaysError, ThrowOnError>({
|
|
423
|
+
...options,
|
|
424
|
+
url: '/live/plays'
|
|
677
425
|
});
|
|
678
426
|
};
|
|
679
427
|
|
|
680
428
|
/**
|
|
681
429
|
* Retrieves historical betting data
|
|
682
430
|
*/
|
|
683
|
-
export const getLines = <ThrowOnError extends boolean = false>(options?:
|
|
684
|
-
return (options?.client ?? client).get<GetLinesResponse,
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
431
|
+
export const getLines = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetLinesData, ThrowOnError>) => {
|
|
432
|
+
return (options?.client ?? client).get<GetLinesResponse, GetLinesError, ThrowOnError>({
|
|
433
|
+
...options,
|
|
434
|
+
url: '/lines'
|
|
435
|
+
});
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Retrieves information about the user, including their Patreon level and remaining API calls.
|
|
440
|
+
*/
|
|
441
|
+
export const getUserInfo = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
442
|
+
return (options?.client ?? client).get<GetUserInfoResponse, GetUserInfoError, ThrowOnError>({
|
|
443
|
+
...options,
|
|
444
|
+
url: '/info'
|
|
693
445
|
});
|
|
694
446
|
};
|
|
695
447
|
|
|
696
448
|
/**
|
|
697
449
|
* Retrieves historical game data
|
|
698
450
|
*/
|
|
699
|
-
export const getGames = <ThrowOnError extends boolean = false>(options?:
|
|
700
|
-
return (options?.client ?? client).get<GetGamesResponse,
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
scheme: 'bearer',
|
|
704
|
-
type: 'http'
|
|
705
|
-
}
|
|
706
|
-
],
|
|
707
|
-
url: '/games',
|
|
708
|
-
...options
|
|
451
|
+
export const getGames = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetGamesData, ThrowOnError>) => {
|
|
452
|
+
return (options?.client ?? client).get<GetGamesResponse, GetGamesError, ThrowOnError>({
|
|
453
|
+
...options,
|
|
454
|
+
url: '/games'
|
|
709
455
|
});
|
|
710
456
|
};
|
|
711
457
|
|
|
712
458
|
/**
|
|
713
459
|
* Retrieves team box score statistics
|
|
714
460
|
*/
|
|
715
|
-
export const getGameTeamStats = <ThrowOnError extends boolean = false>(options?:
|
|
716
|
-
return (options?.client ?? client).get<GetGameTeamStatsResponse,
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
scheme: 'bearer',
|
|
720
|
-
type: 'http'
|
|
721
|
-
}
|
|
722
|
-
],
|
|
723
|
-
url: '/games/teams',
|
|
724
|
-
...options
|
|
461
|
+
export const getGameTeamStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetGameTeamStatsData, ThrowOnError>) => {
|
|
462
|
+
return (options?.client ?? client).get<GetGameTeamStatsResponse, GetGameTeamStatsError, ThrowOnError>({
|
|
463
|
+
...options,
|
|
464
|
+
url: '/games/teams'
|
|
725
465
|
});
|
|
726
466
|
};
|
|
727
467
|
|
|
728
468
|
/**
|
|
729
469
|
* Retrieves player box score statistics
|
|
730
470
|
*/
|
|
731
|
-
export const getGamePlayerStats = <ThrowOnError extends boolean = false>(options?:
|
|
732
|
-
return (options?.client ?? client).get<GetGamePlayerStatsResponse,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
scheme: 'bearer',
|
|
736
|
-
type: 'http'
|
|
737
|
-
}
|
|
738
|
-
],
|
|
739
|
-
url: '/games/players',
|
|
740
|
-
...options
|
|
471
|
+
export const getGamePlayerStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetGamePlayerStatsData, ThrowOnError>) => {
|
|
472
|
+
return (options?.client ?? client).get<GetGamePlayerStatsResponse, GetGamePlayerStatsError, ThrowOnError>({
|
|
473
|
+
...options,
|
|
474
|
+
url: '/games/players'
|
|
741
475
|
});
|
|
742
476
|
};
|
|
743
477
|
|
|
744
478
|
/**
|
|
745
479
|
* Retrieves media information for games
|
|
746
480
|
*/
|
|
747
|
-
export const getMedia = <ThrowOnError extends boolean = false>(options:
|
|
748
|
-
return (options?.client ?? client).get<GetMediaResponse,
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
scheme: 'bearer',
|
|
752
|
-
type: 'http'
|
|
753
|
-
}
|
|
754
|
-
],
|
|
755
|
-
url: '/games/media',
|
|
756
|
-
...options
|
|
481
|
+
export const getMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetMediaData, ThrowOnError>) => {
|
|
482
|
+
return (options?.client ?? client).get<GetMediaResponse, GetMediaError, ThrowOnError>({
|
|
483
|
+
...options,
|
|
484
|
+
url: '/games/media'
|
|
757
485
|
});
|
|
758
486
|
};
|
|
759
487
|
|
|
760
488
|
/**
|
|
761
489
|
* Retrieve historical and future weather data (Patreon only)
|
|
762
490
|
*/
|
|
763
|
-
export const getWeather = <ThrowOnError extends boolean = false>(options?:
|
|
764
|
-
return (options?.client ?? client).get<GetWeatherResponse,
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
scheme: 'bearer',
|
|
768
|
-
type: 'http'
|
|
769
|
-
}
|
|
770
|
-
],
|
|
771
|
-
url: '/games/weather',
|
|
772
|
-
...options
|
|
491
|
+
export const getWeather = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetWeatherData, ThrowOnError>) => {
|
|
492
|
+
return (options?.client ?? client).get<GetWeatherResponse, GetWeatherError, ThrowOnError>({
|
|
493
|
+
...options,
|
|
494
|
+
url: '/games/weather'
|
|
773
495
|
});
|
|
774
496
|
};
|
|
775
497
|
|
|
776
498
|
/**
|
|
777
499
|
* Retrieves historical team records
|
|
778
500
|
*/
|
|
779
|
-
export const getRecords = <ThrowOnError extends boolean = false>(options?:
|
|
780
|
-
return (options?.client ?? client).get<GetRecordsResponse,
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
scheme: 'bearer',
|
|
784
|
-
type: 'http'
|
|
785
|
-
}
|
|
786
|
-
],
|
|
787
|
-
url: '/records',
|
|
788
|
-
...options
|
|
501
|
+
export const getRecords = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetRecordsData, ThrowOnError>) => {
|
|
502
|
+
return (options?.client ?? client).get<GetRecordsResponse, GetRecordsError, ThrowOnError>({
|
|
503
|
+
...options,
|
|
504
|
+
url: '/records'
|
|
789
505
|
});
|
|
790
506
|
};
|
|
791
507
|
|
|
792
508
|
/**
|
|
793
509
|
* Retrieves calendar information
|
|
794
510
|
*/
|
|
795
|
-
export const getCalendar = <ThrowOnError extends boolean = false>(options:
|
|
796
|
-
return (options?.client ?? client).get<GetCalendarResponse,
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
scheme: 'bearer',
|
|
800
|
-
type: 'http'
|
|
801
|
-
}
|
|
802
|
-
],
|
|
803
|
-
url: '/calendar',
|
|
804
|
-
...options
|
|
511
|
+
export const getCalendar = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCalendarData, ThrowOnError>) => {
|
|
512
|
+
return (options?.client ?? client).get<GetCalendarResponse, GetCalendarError, ThrowOnError>({
|
|
513
|
+
...options,
|
|
514
|
+
url: '/calendar'
|
|
805
515
|
});
|
|
806
516
|
};
|
|
807
517
|
|
|
808
518
|
/**
|
|
809
519
|
* Retrieves live scoreboard data
|
|
810
520
|
*/
|
|
811
|
-
export const getScoreboard = <ThrowOnError extends boolean = false>(options?:
|
|
812
|
-
return (options?.client ?? client).get<GetScoreboardResponse,
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
scheme: 'bearer',
|
|
816
|
-
type: 'http'
|
|
817
|
-
}
|
|
818
|
-
],
|
|
819
|
-
url: '/scoreboard',
|
|
820
|
-
...options
|
|
521
|
+
export const getScoreboard = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetScoreboardData, ThrowOnError>) => {
|
|
522
|
+
return (options?.client ?? client).get<GetScoreboardResponse, GetScoreboardError, ThrowOnError>({
|
|
523
|
+
...options,
|
|
524
|
+
url: '/scoreboard'
|
|
821
525
|
});
|
|
822
526
|
};
|
|
823
527
|
|
|
824
528
|
/**
|
|
825
529
|
* Retrieves historical drive data
|
|
826
530
|
*/
|
|
827
|
-
export const getDrives = <ThrowOnError extends boolean = false>(options:
|
|
828
|
-
return (options?.client ?? client).get<GetDrivesResponse,
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
scheme: 'bearer',
|
|
832
|
-
type: 'http'
|
|
833
|
-
}
|
|
834
|
-
],
|
|
835
|
-
url: '/drives',
|
|
836
|
-
...options
|
|
531
|
+
export const getDrives = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetDrivesData, ThrowOnError>) => {
|
|
532
|
+
return (options?.client ?? client).get<GetDrivesResponse, GetDrivesError, ThrowOnError>({
|
|
533
|
+
...options,
|
|
534
|
+
url: '/drives'
|
|
837
535
|
});
|
|
838
536
|
};
|
|
839
537
|
|
|
840
538
|
/**
|
|
841
539
|
* Retrieves list of NFL teams
|
|
842
540
|
*/
|
|
843
|
-
export const getDraftTeams = <ThrowOnError extends boolean = false>(options?:
|
|
844
|
-
return (options?.client ?? client).get<GetDraftTeamsResponse,
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
scheme: 'bearer',
|
|
848
|
-
type: 'http'
|
|
849
|
-
}
|
|
850
|
-
],
|
|
851
|
-
url: '/draft/teams',
|
|
852
|
-
...options
|
|
541
|
+
export const getDraftTeams = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
542
|
+
return (options?.client ?? client).get<GetDraftTeamsResponse, GetDraftTeamsError, ThrowOnError>({
|
|
543
|
+
...options,
|
|
544
|
+
url: '/draft/teams'
|
|
853
545
|
});
|
|
854
546
|
};
|
|
855
547
|
|
|
856
548
|
/**
|
|
857
549
|
* Retrieves list of player position categories for the NFL Draft
|
|
858
550
|
*/
|
|
859
|
-
export const getDraftPositions = <ThrowOnError extends boolean = false>(options?:
|
|
860
|
-
return (options?.client ?? client).get<GetDraftPositionsResponse,
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
scheme: 'bearer',
|
|
864
|
-
type: 'http'
|
|
865
|
-
}
|
|
866
|
-
],
|
|
867
|
-
url: '/draft/positions',
|
|
868
|
-
...options
|
|
551
|
+
export const getDraftPositions = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
552
|
+
return (options?.client ?? client).get<GetDraftPositionsResponse, GetDraftPositionsError, ThrowOnError>({
|
|
553
|
+
...options,
|
|
554
|
+
url: '/draft/positions'
|
|
869
555
|
});
|
|
870
556
|
};
|
|
871
557
|
|
|
872
558
|
/**
|
|
873
559
|
* Retrieve historical NFL draft data
|
|
874
560
|
*/
|
|
875
|
-
export const getDraftPicks = <ThrowOnError extends boolean = false>(options?:
|
|
876
|
-
return (options?.client ?? client).get<GetDraftPicksResponse,
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
scheme: 'bearer',
|
|
880
|
-
type: 'http'
|
|
881
|
-
}
|
|
882
|
-
],
|
|
883
|
-
url: '/draft/picks',
|
|
884
|
-
...options
|
|
561
|
+
export const getDraftPicks = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetDraftPicksData, ThrowOnError>) => {
|
|
562
|
+
return (options?.client ?? client).get<GetDraftPicksResponse, GetDraftPicksError, ThrowOnError>({
|
|
563
|
+
...options,
|
|
564
|
+
url: '/draft/picks'
|
|
885
565
|
});
|
|
886
566
|
};
|
|
887
567
|
|
|
888
568
|
/**
|
|
889
569
|
* Retrieves historical head coach information and records
|
|
890
570
|
*/
|
|
891
|
-
export const getCoaches = <ThrowOnError extends boolean = false>(options?:
|
|
892
|
-
return (options?.client ?? client).get<GetCoachesResponse,
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
scheme: 'bearer',
|
|
896
|
-
type: 'http'
|
|
897
|
-
}
|
|
898
|
-
],
|
|
899
|
-
url: '/coaches',
|
|
900
|
-
...options
|
|
571
|
+
export const getCoaches = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetCoachesData, ThrowOnError>) => {
|
|
572
|
+
return (options?.client ?? client).get<GetCoachesResponse, GetCoachesError, ThrowOnError>({
|
|
573
|
+
...options,
|
|
574
|
+
url: '/coaches'
|
|
901
575
|
});
|
|
902
576
|
};
|
|
903
577
|
|
|
904
578
|
/**
|
|
905
579
|
* Retrieves an advanced box score for a game
|
|
906
580
|
*/
|
|
907
|
-
export const getAdvancedBoxScore = <ThrowOnError extends boolean = false>(options:
|
|
908
|
-
return (options?.client ?? client).get<GetAdvancedBoxScoreResponse,
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
scheme: 'bearer',
|
|
912
|
-
type: 'http'
|
|
913
|
-
}
|
|
914
|
-
],
|
|
915
|
-
url: '/game/box/advanced',
|
|
916
|
-
...options
|
|
581
|
+
export const getAdvancedBoxScore = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAdvancedBoxScoreData, ThrowOnError>) => {
|
|
582
|
+
return (options?.client ?? client).get<GetAdvancedBoxScoreResponse, GetAdvancedBoxScoreError, ThrowOnError>({
|
|
583
|
+
...options,
|
|
584
|
+
url: '/game/box/advanced'
|
|
917
585
|
});
|
|
918
586
|
};
|