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