cfbd 5.1.2-alpha.0 → 5.2.0-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.2.0-alpha.0.tgz +0 -0
- package/dist/schemas.gen.d.ts +202 -137
- package/dist/schemas.gen.js +204 -139
- package/dist/services.gen.d.ts +17 -5
- package/dist/services.gen.js +34 -10
- package/dist/types.gen.d.ts +137 -56
- package/package.json +1 -1
- package/src/schemas.gen.ts +205 -138
- package/src/services.gen.ts +33 -9
- package/src/types.gen.ts +152 -60
- package/cfbd-5.1.2-alpha.0.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cfbd",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-alpha.0",
|
|
4
4
|
"description": "This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/schemas.gen.ts
CHANGED
|
@@ -1,5 +1,210 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
+
export const AdjustedTeamMetricsSchema = {
|
|
4
|
+
properties: {
|
|
5
|
+
year: {
|
|
6
|
+
type: 'integer',
|
|
7
|
+
format: 'int32'
|
|
8
|
+
},
|
|
9
|
+
teamId: {
|
|
10
|
+
type: 'integer',
|
|
11
|
+
format: 'int32'
|
|
12
|
+
},
|
|
13
|
+
team: {
|
|
14
|
+
type: 'string'
|
|
15
|
+
},
|
|
16
|
+
conference: {
|
|
17
|
+
type: 'string'
|
|
18
|
+
},
|
|
19
|
+
epa: {
|
|
20
|
+
properties: {
|
|
21
|
+
rushing: {
|
|
22
|
+
type: 'number',
|
|
23
|
+
format: 'double'
|
|
24
|
+
},
|
|
25
|
+
passing: {
|
|
26
|
+
type: 'number',
|
|
27
|
+
format: 'double'
|
|
28
|
+
},
|
|
29
|
+
total: {
|
|
30
|
+
type: 'number',
|
|
31
|
+
format: 'double'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
required: ['rushing', 'passing', 'total'],
|
|
35
|
+
type: 'object'
|
|
36
|
+
},
|
|
37
|
+
epaAllowed: {
|
|
38
|
+
properties: {
|
|
39
|
+
rushing: {
|
|
40
|
+
type: 'number',
|
|
41
|
+
format: 'double'
|
|
42
|
+
},
|
|
43
|
+
passing: {
|
|
44
|
+
type: 'number',
|
|
45
|
+
format: 'double'
|
|
46
|
+
},
|
|
47
|
+
total: {
|
|
48
|
+
type: 'number',
|
|
49
|
+
format: 'double'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
required: ['rushing', 'passing', 'total'],
|
|
53
|
+
type: 'object'
|
|
54
|
+
},
|
|
55
|
+
successRate: {
|
|
56
|
+
properties: {
|
|
57
|
+
passingDowns: {
|
|
58
|
+
type: 'number',
|
|
59
|
+
format: 'double'
|
|
60
|
+
},
|
|
61
|
+
standardDowns: {
|
|
62
|
+
type: 'number',
|
|
63
|
+
format: 'double'
|
|
64
|
+
},
|
|
65
|
+
total: {
|
|
66
|
+
type: 'number',
|
|
67
|
+
format: 'double'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
required: ['passingDowns', 'standardDowns', 'total'],
|
|
71
|
+
type: 'object'
|
|
72
|
+
},
|
|
73
|
+
successRateAllowed: {
|
|
74
|
+
properties: {
|
|
75
|
+
passingDowns: {
|
|
76
|
+
type: 'number',
|
|
77
|
+
format: 'double'
|
|
78
|
+
},
|
|
79
|
+
standardDowns: {
|
|
80
|
+
type: 'number',
|
|
81
|
+
format: 'double'
|
|
82
|
+
},
|
|
83
|
+
total: {
|
|
84
|
+
type: 'number',
|
|
85
|
+
format: 'double'
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
required: ['passingDowns', 'standardDowns', 'total'],
|
|
89
|
+
type: 'object'
|
|
90
|
+
},
|
|
91
|
+
rushing: {
|
|
92
|
+
properties: {
|
|
93
|
+
openFieldYards: {
|
|
94
|
+
type: 'number',
|
|
95
|
+
format: 'double'
|
|
96
|
+
},
|
|
97
|
+
secondLevelYards: {
|
|
98
|
+
type: 'number',
|
|
99
|
+
format: 'double'
|
|
100
|
+
},
|
|
101
|
+
lineYards: {
|
|
102
|
+
type: 'number',
|
|
103
|
+
format: 'double'
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
required: ['openFieldYards', 'secondLevelYards', 'lineYards'],
|
|
107
|
+
type: 'object'
|
|
108
|
+
},
|
|
109
|
+
rushingAllowed: {
|
|
110
|
+
properties: {
|
|
111
|
+
openFieldYards: {
|
|
112
|
+
type: 'number',
|
|
113
|
+
format: 'double'
|
|
114
|
+
},
|
|
115
|
+
secondLevelYards: {
|
|
116
|
+
type: 'number',
|
|
117
|
+
format: 'double'
|
|
118
|
+
},
|
|
119
|
+
lineYards: {
|
|
120
|
+
type: 'number',
|
|
121
|
+
format: 'double'
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
required: ['openFieldYards', 'secondLevelYards', 'lineYards'],
|
|
125
|
+
type: 'object'
|
|
126
|
+
},
|
|
127
|
+
explosiveness: {
|
|
128
|
+
type: 'number',
|
|
129
|
+
format: 'double'
|
|
130
|
+
},
|
|
131
|
+
explosivenessAllowed: {
|
|
132
|
+
type: 'number',
|
|
133
|
+
format: 'double'
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
required: ['year', 'teamId', 'team', 'conference', 'epa', 'epaAllowed', 'successRate', 'successRateAllowed', 'rushing', 'rushingAllowed', 'explosiveness', 'explosivenessAllowed'],
|
|
137
|
+
type: 'object',
|
|
138
|
+
additionalProperties: false
|
|
139
|
+
} as const;
|
|
140
|
+
|
|
141
|
+
export const PlayerWeightedEPASchema = {
|
|
142
|
+
properties: {
|
|
143
|
+
year: {
|
|
144
|
+
type: 'integer',
|
|
145
|
+
format: 'int32'
|
|
146
|
+
},
|
|
147
|
+
athleteId: {
|
|
148
|
+
type: 'string'
|
|
149
|
+
},
|
|
150
|
+
athleteName: {
|
|
151
|
+
type: 'string'
|
|
152
|
+
},
|
|
153
|
+
position: {
|
|
154
|
+
type: 'string'
|
|
155
|
+
},
|
|
156
|
+
team: {
|
|
157
|
+
type: 'string'
|
|
158
|
+
},
|
|
159
|
+
conference: {
|
|
160
|
+
type: 'string'
|
|
161
|
+
},
|
|
162
|
+
wepa: {
|
|
163
|
+
type: 'number',
|
|
164
|
+
format: 'double'
|
|
165
|
+
},
|
|
166
|
+
plays: {
|
|
167
|
+
type: 'integer',
|
|
168
|
+
format: 'int32'
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
required: ['year', 'athleteId', 'athleteName', 'position', 'team', 'conference', 'wepa', 'plays'],
|
|
172
|
+
type: 'object',
|
|
173
|
+
additionalProperties: false
|
|
174
|
+
} as const;
|
|
175
|
+
|
|
176
|
+
export const KickerPAARSchema = {
|
|
177
|
+
properties: {
|
|
178
|
+
year: {
|
|
179
|
+
type: 'integer',
|
|
180
|
+
format: 'int32'
|
|
181
|
+
},
|
|
182
|
+
athleteId: {
|
|
183
|
+
type: 'string'
|
|
184
|
+
},
|
|
185
|
+
athleteName: {
|
|
186
|
+
type: 'string'
|
|
187
|
+
},
|
|
188
|
+
team: {
|
|
189
|
+
type: 'string'
|
|
190
|
+
},
|
|
191
|
+
conference: {
|
|
192
|
+
type: 'string'
|
|
193
|
+
},
|
|
194
|
+
paar: {
|
|
195
|
+
type: 'number',
|
|
196
|
+
format: 'double'
|
|
197
|
+
},
|
|
198
|
+
attempts: {
|
|
199
|
+
type: 'integer',
|
|
200
|
+
format: 'int32'
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
required: ['year', 'athleteId', 'athleteName', 'team', 'conference', 'paar', 'attempts'],
|
|
204
|
+
type: 'object',
|
|
205
|
+
additionalProperties: false
|
|
206
|
+
} as const;
|
|
207
|
+
|
|
3
208
|
export const VenueSchema = {
|
|
4
209
|
properties: {
|
|
5
210
|
id: {
|
|
@@ -1164,144 +1369,6 @@ export const AdvancedGameStatSchema = {
|
|
|
1164
1369
|
additionalProperties: false
|
|
1165
1370
|
} as const;
|
|
1166
1371
|
|
|
1167
|
-
export const AdjustedMetricsSchema = {
|
|
1168
|
-
properties: {
|
|
1169
|
-
year: {
|
|
1170
|
-
type: 'integer',
|
|
1171
|
-
format: 'int32'
|
|
1172
|
-
},
|
|
1173
|
-
teamId: {
|
|
1174
|
-
type: 'integer',
|
|
1175
|
-
format: 'int32'
|
|
1176
|
-
},
|
|
1177
|
-
team: {
|
|
1178
|
-
type: 'string'
|
|
1179
|
-
},
|
|
1180
|
-
conference: {
|
|
1181
|
-
type: 'string'
|
|
1182
|
-
},
|
|
1183
|
-
epa: {
|
|
1184
|
-
properties: {
|
|
1185
|
-
rushing: {
|
|
1186
|
-
type: 'number',
|
|
1187
|
-
format: 'double'
|
|
1188
|
-
},
|
|
1189
|
-
passing: {
|
|
1190
|
-
type: 'number',
|
|
1191
|
-
format: 'double'
|
|
1192
|
-
},
|
|
1193
|
-
total: {
|
|
1194
|
-
type: 'number',
|
|
1195
|
-
format: 'double'
|
|
1196
|
-
}
|
|
1197
|
-
},
|
|
1198
|
-
required: ['rushing', 'passing', 'total'],
|
|
1199
|
-
type: 'object'
|
|
1200
|
-
},
|
|
1201
|
-
epaAllowed: {
|
|
1202
|
-
properties: {
|
|
1203
|
-
rushing: {
|
|
1204
|
-
type: 'number',
|
|
1205
|
-
format: 'double'
|
|
1206
|
-
},
|
|
1207
|
-
passing: {
|
|
1208
|
-
type: 'number',
|
|
1209
|
-
format: 'double'
|
|
1210
|
-
},
|
|
1211
|
-
total: {
|
|
1212
|
-
type: 'number',
|
|
1213
|
-
format: 'double'
|
|
1214
|
-
}
|
|
1215
|
-
},
|
|
1216
|
-
required: ['rushing', 'passing', 'total'],
|
|
1217
|
-
type: 'object'
|
|
1218
|
-
},
|
|
1219
|
-
successRate: {
|
|
1220
|
-
properties: {
|
|
1221
|
-
passingDowns: {
|
|
1222
|
-
type: 'number',
|
|
1223
|
-
format: 'double'
|
|
1224
|
-
},
|
|
1225
|
-
standardDowns: {
|
|
1226
|
-
type: 'number',
|
|
1227
|
-
format: 'double'
|
|
1228
|
-
},
|
|
1229
|
-
total: {
|
|
1230
|
-
type: 'number',
|
|
1231
|
-
format: 'double'
|
|
1232
|
-
}
|
|
1233
|
-
},
|
|
1234
|
-
required: ['passingDowns', 'standardDowns', 'total'],
|
|
1235
|
-
type: 'object'
|
|
1236
|
-
},
|
|
1237
|
-
successRateAllowed: {
|
|
1238
|
-
properties: {
|
|
1239
|
-
passingDowns: {
|
|
1240
|
-
type: 'number',
|
|
1241
|
-
format: 'double'
|
|
1242
|
-
},
|
|
1243
|
-
standardDowns: {
|
|
1244
|
-
type: 'number',
|
|
1245
|
-
format: 'double'
|
|
1246
|
-
},
|
|
1247
|
-
total: {
|
|
1248
|
-
type: 'number',
|
|
1249
|
-
format: 'double'
|
|
1250
|
-
}
|
|
1251
|
-
},
|
|
1252
|
-
required: ['passingDowns', 'standardDowns', 'total'],
|
|
1253
|
-
type: 'object'
|
|
1254
|
-
},
|
|
1255
|
-
rushing: {
|
|
1256
|
-
properties: {
|
|
1257
|
-
openFieldYards: {
|
|
1258
|
-
type: 'number',
|
|
1259
|
-
format: 'double'
|
|
1260
|
-
},
|
|
1261
|
-
secondLevelYards: {
|
|
1262
|
-
type: 'number',
|
|
1263
|
-
format: 'double'
|
|
1264
|
-
},
|
|
1265
|
-
lineYards: {
|
|
1266
|
-
type: 'number',
|
|
1267
|
-
format: 'double'
|
|
1268
|
-
}
|
|
1269
|
-
},
|
|
1270
|
-
required: ['openFieldYards', 'secondLevelYards', 'lineYards'],
|
|
1271
|
-
type: 'object'
|
|
1272
|
-
},
|
|
1273
|
-
rushingAllowed: {
|
|
1274
|
-
properties: {
|
|
1275
|
-
openFieldYards: {
|
|
1276
|
-
type: 'number',
|
|
1277
|
-
format: 'double'
|
|
1278
|
-
},
|
|
1279
|
-
secondLevelYards: {
|
|
1280
|
-
type: 'number',
|
|
1281
|
-
format: 'double'
|
|
1282
|
-
},
|
|
1283
|
-
lineYards: {
|
|
1284
|
-
type: 'number',
|
|
1285
|
-
format: 'double'
|
|
1286
|
-
}
|
|
1287
|
-
},
|
|
1288
|
-
required: ['openFieldYards', 'secondLevelYards', 'lineYards'],
|
|
1289
|
-
type: 'object'
|
|
1290
|
-
},
|
|
1291
|
-
explosiveness: {
|
|
1292
|
-
type: 'number',
|
|
1293
|
-
format: 'double'
|
|
1294
|
-
},
|
|
1295
|
-
explosivenessAllowed: {
|
|
1296
|
-
type: 'number',
|
|
1297
|
-
format: 'double'
|
|
1298
|
-
}
|
|
1299
|
-
},
|
|
1300
|
-
required: ['year', 'teamId', 'team', 'conference', 'epa', 'epaAllowed', 'successRate', 'successRateAllowed', 'rushing', 'rushingAllowed', 'explosiveness', 'explosivenessAllowed'],
|
|
1301
|
-
type: 'object',
|
|
1302
|
-
additionalProperties: false
|
|
1303
|
-
} as const;
|
|
1304
|
-
|
|
1305
1372
|
export const RecruitClassificationSchema = {
|
|
1306
1373
|
enum: ['JUCO', 'PrepSchool', 'HighSchool'],
|
|
1307
1374
|
type: 'string'
|
package/src/services.gen.ts
CHANGED
|
@@ -1,10 +1,42 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type Options } from '@hey-api/client-fetch';
|
|
4
|
-
import type { 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,
|
|
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, 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
6
|
export const client = createClient(createConfig({ baseUrl: 'https://apinext.collegefootballdata.com' }));
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve opponent-adjusted team season statistics
|
|
10
|
+
*/
|
|
11
|
+
export const getAdjustedTeamSeasonStats = <ThrowOnError extends boolean = false>(options?: Options<GetAdjustedTeamSeasonStatsData, ThrowOnError>) => { return (options?.client ?? client).get<GetAdjustedTeamSeasonStatsResponse, GetAdjustedTeamSeasonStatsError, ThrowOnError>({
|
|
12
|
+
...options,
|
|
13
|
+
url: '/wepa/team/season'
|
|
14
|
+
}); };
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve opponent-adjusted player passing statistics
|
|
18
|
+
*/
|
|
19
|
+
export const getAdjustedPlayerPassingStats = <ThrowOnError extends boolean = false>(options?: Options<GetAdjustedPlayerPassingStatsData, ThrowOnError>) => { return (options?.client ?? client).get<GetAdjustedPlayerPassingStatsResponse, GetAdjustedPlayerPassingStatsError, ThrowOnError>({
|
|
20
|
+
...options,
|
|
21
|
+
url: '/wepa/players/passing'
|
|
22
|
+
}); };
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve opponent-adjusted player rushing statistics
|
|
26
|
+
*/
|
|
27
|
+
export const getAdjustedPlayerRushingStats = <ThrowOnError extends boolean = false>(options?: Options<GetAdjustedPlayerRushingStatsData, ThrowOnError>) => { return (options?.client ?? client).get<GetAdjustedPlayerRushingStatsResponse, GetAdjustedPlayerRushingStatsError, ThrowOnError>({
|
|
28
|
+
...options,
|
|
29
|
+
url: '/wepa/players/rushing'
|
|
30
|
+
}); };
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve Points Added Above Replacement (PAAR) ratings for kickers
|
|
34
|
+
*/
|
|
35
|
+
export const getKickerPaar = <ThrowOnError extends boolean = false>(options?: Options<GetKickerPaarData, ThrowOnError>) => { return (options?.client ?? client).get<GetKickerPaarResponse, GetKickerPaarError, ThrowOnError>({
|
|
36
|
+
...options,
|
|
37
|
+
url: '/wepa/players/kicking'
|
|
38
|
+
}); };
|
|
39
|
+
|
|
8
40
|
/**
|
|
9
41
|
* Retrieves team information
|
|
10
42
|
*/
|
|
@@ -101,14 +133,6 @@ export const getAdvancedGameStats = <ThrowOnError extends boolean = false>(optio
|
|
|
101
133
|
url: '/stats/game/advanced'
|
|
102
134
|
}); };
|
|
103
135
|
|
|
104
|
-
/**
|
|
105
|
-
* Retrieve opponent-adjusted team season statistics
|
|
106
|
-
*/
|
|
107
|
-
export const getAdjustedTeamSeasonStats = <ThrowOnError extends boolean = false>(options?: Options<GetAdjustedTeamSeasonStatsData, ThrowOnError>) => { return (options?.client ?? client).get<GetAdjustedTeamSeasonStatsResponse, GetAdjustedTeamSeasonStatsError, ThrowOnError>({
|
|
108
|
-
...options,
|
|
109
|
-
url: '/stats/season/adjusted'
|
|
110
|
-
}); };
|
|
111
|
-
|
|
112
136
|
/**
|
|
113
137
|
* Retrieves player recruiting rankings
|
|
114
138
|
*/
|
package/src/types.gen.ts
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
+
export type AdjustedTeamMetrics = {
|
|
4
|
+
year: number;
|
|
5
|
+
teamId: number;
|
|
6
|
+
team: string;
|
|
7
|
+
conference: string;
|
|
8
|
+
epa: {
|
|
9
|
+
rushing: number;
|
|
10
|
+
passing: number;
|
|
11
|
+
total: number;
|
|
12
|
+
};
|
|
13
|
+
epaAllowed: {
|
|
14
|
+
rushing: number;
|
|
15
|
+
passing: number;
|
|
16
|
+
total: number;
|
|
17
|
+
};
|
|
18
|
+
successRate: {
|
|
19
|
+
passingDowns: number;
|
|
20
|
+
standardDowns: number;
|
|
21
|
+
total: number;
|
|
22
|
+
};
|
|
23
|
+
successRateAllowed: {
|
|
24
|
+
passingDowns: number;
|
|
25
|
+
standardDowns: number;
|
|
26
|
+
total: number;
|
|
27
|
+
};
|
|
28
|
+
rushing: {
|
|
29
|
+
openFieldYards: number;
|
|
30
|
+
secondLevelYards: number;
|
|
31
|
+
lineYards: number;
|
|
32
|
+
};
|
|
33
|
+
rushingAllowed: {
|
|
34
|
+
openFieldYards: number;
|
|
35
|
+
secondLevelYards: number;
|
|
36
|
+
lineYards: number;
|
|
37
|
+
};
|
|
38
|
+
explosiveness: number;
|
|
39
|
+
explosivenessAllowed: number;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type PlayerWeightedEPA = {
|
|
43
|
+
year: number;
|
|
44
|
+
athleteId: string;
|
|
45
|
+
athleteName: string;
|
|
46
|
+
position: string;
|
|
47
|
+
team: string;
|
|
48
|
+
conference: string;
|
|
49
|
+
wepa: number;
|
|
50
|
+
plays: number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type KickerPAAR = {
|
|
54
|
+
year: number;
|
|
55
|
+
athleteId: string;
|
|
56
|
+
athleteName: string;
|
|
57
|
+
team: string;
|
|
58
|
+
conference: string;
|
|
59
|
+
paar: number;
|
|
60
|
+
attempts: number;
|
|
61
|
+
};
|
|
62
|
+
|
|
3
63
|
export type Venue = {
|
|
4
64
|
id: (number) | null;
|
|
5
65
|
name: (string) | null;
|
|
@@ -311,45 +371,6 @@ export type AdvancedGameStat = {
|
|
|
311
371
|
};
|
|
312
372
|
};
|
|
313
373
|
|
|
314
|
-
export type AdjustedMetrics = {
|
|
315
|
-
year: number;
|
|
316
|
-
teamId: number;
|
|
317
|
-
team: string;
|
|
318
|
-
conference: string;
|
|
319
|
-
epa: {
|
|
320
|
-
rushing: number;
|
|
321
|
-
passing: number;
|
|
322
|
-
total: number;
|
|
323
|
-
};
|
|
324
|
-
epaAllowed: {
|
|
325
|
-
rushing: number;
|
|
326
|
-
passing: number;
|
|
327
|
-
total: number;
|
|
328
|
-
};
|
|
329
|
-
successRate: {
|
|
330
|
-
passingDowns: number;
|
|
331
|
-
standardDowns: number;
|
|
332
|
-
total: number;
|
|
333
|
-
};
|
|
334
|
-
successRateAllowed: {
|
|
335
|
-
passingDowns: number;
|
|
336
|
-
standardDowns: number;
|
|
337
|
-
total: number;
|
|
338
|
-
};
|
|
339
|
-
rushing: {
|
|
340
|
-
openFieldYards: number;
|
|
341
|
-
secondLevelYards: number;
|
|
342
|
-
lineYards: number;
|
|
343
|
-
};
|
|
344
|
-
rushingAllowed: {
|
|
345
|
-
openFieldYards: number;
|
|
346
|
-
secondLevelYards: number;
|
|
347
|
-
lineYards: number;
|
|
348
|
-
};
|
|
349
|
-
explosiveness: number;
|
|
350
|
-
explosivenessAllowed: number;
|
|
351
|
-
};
|
|
352
|
-
|
|
353
374
|
export type RecruitClassification = 'JUCO' | 'PrepSchool' | 'HighSchool';
|
|
354
375
|
|
|
355
376
|
export type Recruit = {
|
|
@@ -1358,6 +1379,98 @@ export type AdvancedBoxScore = {
|
|
|
1358
1379
|
};
|
|
1359
1380
|
};
|
|
1360
1381
|
|
|
1382
|
+
export type GetAdjustedTeamSeasonStatsData = {
|
|
1383
|
+
query?: {
|
|
1384
|
+
/**
|
|
1385
|
+
* Optional conference filter
|
|
1386
|
+
*/
|
|
1387
|
+
conference?: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* Optional team filter
|
|
1390
|
+
*/
|
|
1391
|
+
team?: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* Optional year filter
|
|
1394
|
+
*/
|
|
1395
|
+
year?: number;
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
export type GetAdjustedTeamSeasonStatsResponse = (Array<AdjustedTeamMetrics>);
|
|
1400
|
+
|
|
1401
|
+
export type GetAdjustedTeamSeasonStatsError = unknown;
|
|
1402
|
+
|
|
1403
|
+
export type GetAdjustedPlayerPassingStatsData = {
|
|
1404
|
+
query?: {
|
|
1405
|
+
/**
|
|
1406
|
+
* Optional conference abbreviation filter
|
|
1407
|
+
*/
|
|
1408
|
+
conference?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* Optional position abbreviation filter
|
|
1411
|
+
*/
|
|
1412
|
+
position?: string;
|
|
1413
|
+
/**
|
|
1414
|
+
* Optional team filter
|
|
1415
|
+
*/
|
|
1416
|
+
team?: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* Optional year filter
|
|
1419
|
+
*/
|
|
1420
|
+
year?: number;
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
export type GetAdjustedPlayerPassingStatsResponse = (Array<PlayerWeightedEPA>);
|
|
1425
|
+
|
|
1426
|
+
export type GetAdjustedPlayerPassingStatsError = unknown;
|
|
1427
|
+
|
|
1428
|
+
export type GetAdjustedPlayerRushingStatsData = {
|
|
1429
|
+
query?: {
|
|
1430
|
+
/**
|
|
1431
|
+
* Optional conference abbreviation filter
|
|
1432
|
+
*/
|
|
1433
|
+
conference?: string;
|
|
1434
|
+
/**
|
|
1435
|
+
* Optional position abbreviation filter
|
|
1436
|
+
*/
|
|
1437
|
+
position?: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* Optional team filter
|
|
1440
|
+
*/
|
|
1441
|
+
team?: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* Optional year filter
|
|
1444
|
+
*/
|
|
1445
|
+
year?: number;
|
|
1446
|
+
};
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
export type GetAdjustedPlayerRushingStatsResponse = (Array<PlayerWeightedEPA>);
|
|
1450
|
+
|
|
1451
|
+
export type GetAdjustedPlayerRushingStatsError = unknown;
|
|
1452
|
+
|
|
1453
|
+
export type GetKickerPaarData = {
|
|
1454
|
+
query?: {
|
|
1455
|
+
/**
|
|
1456
|
+
* Optional conference abbreviation filter
|
|
1457
|
+
*/
|
|
1458
|
+
conference?: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* Optional team filter
|
|
1461
|
+
*/
|
|
1462
|
+
team?: string;
|
|
1463
|
+
/**
|
|
1464
|
+
* Optional year filter
|
|
1465
|
+
*/
|
|
1466
|
+
year?: number;
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
export type GetKickerPaarResponse = (Array<KickerPAAR>);
|
|
1471
|
+
|
|
1472
|
+
export type GetKickerPaarError = unknown;
|
|
1473
|
+
|
|
1361
1474
|
export type GetTeamsData = {
|
|
1362
1475
|
query?: {
|
|
1363
1476
|
/**
|
|
@@ -1583,27 +1696,6 @@ export type GetAdvancedGameStatsResponse = (Array<AdvancedGameStat>);
|
|
|
1583
1696
|
|
|
1584
1697
|
export type GetAdvancedGameStatsError = unknown;
|
|
1585
1698
|
|
|
1586
|
-
export type GetAdjustedTeamSeasonStatsData = {
|
|
1587
|
-
query?: {
|
|
1588
|
-
/**
|
|
1589
|
-
* Optional conference filter
|
|
1590
|
-
*/
|
|
1591
|
-
conference?: string;
|
|
1592
|
-
/**
|
|
1593
|
-
* Optional team filter
|
|
1594
|
-
*/
|
|
1595
|
-
team?: string;
|
|
1596
|
-
/**
|
|
1597
|
-
* Optional year filter
|
|
1598
|
-
*/
|
|
1599
|
-
year?: number;
|
|
1600
|
-
};
|
|
1601
|
-
};
|
|
1602
|
-
|
|
1603
|
-
export type GetAdjustedTeamSeasonStatsResponse = (Array<AdjustedMetrics>);
|
|
1604
|
-
|
|
1605
|
-
export type GetAdjustedTeamSeasonStatsError = unknown;
|
|
1606
|
-
|
|
1607
1699
|
export type GetRecruitsData = {
|
|
1608
1700
|
query?: {
|
|
1609
1701
|
/**
|
package/cfbd-5.1.2-alpha.0.tgz
DELETED
|
Binary file
|