cfbd 5.21.0 → 5.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cfbd-5.23.0.tgz +0 -0
- package/dist/sdk.gen.d.ts +80 -73
- package/dist/sdk.gen.js +85 -74
- package/dist/types.gen.d.ts +332 -277
- package/package.json +1 -1
- package/src/sdk.gen.ts +86 -73
- package/src/types.gen.ts +337 -277
- package/cfbd-5.21.0.tgz +0 -0
package/dist/sdk.gen.js
CHANGED
|
@@ -12,12 +12,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
return __assign.apply(this, arguments);
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
16
|
-
exports.getAdvancedBoxScore = exports.getCoachTenures = exports.getCoachSeasons = exports.getCoachProfile = exports.getCoaches = exports.getDraftPicks = exports.getDraftPositions = exports.getDraftTeams = exports.getDrives = exports.getScoreboard = exports.getCalendar = exports.getRecords = exports.getWeather = exports.getMedia = exports.getGamePlayerStats = exports.getGameTeamStats = exports.getGames = exports.getUsage = exports.getUserInfo = exports.getLines = exports.getLivePlays = exports.getFieldGoalExpectedPoints = void 0;
|
|
15
|
+
exports.getWinProbability = exports.getPredictedPointsAddedByPlayerSeason = exports.getPredictedPointsAddedByPlayerGame = exports.getPredictedPointsAddedByGame = exports.getPredictedPointsAddedByTeam = exports.getPredictedPoints = exports.getTransferPortal = exports.getReturningProduction = exports.getPlayerSeasonOverview = exports.getPlayerUsage = exports.searchPlayers = exports.getCfpGames = exports.getCfpParticipants = exports.getCfpPlayoff = exports.getPlayStatTypes = exports.getPlayStats = exports.getPlayTypes = exports.getPlays = exports.getRankings = exports.getFpi = exports.getElo = exports.getExpandedSrs = exports.getSrs = exports.getConferenceSp = exports.getSp = exports.getCore = exports.getAggregatedTeamRecruitingRatings = exports.getTeamRecruitingRankings = exports.getRecruits = exports.getGameHavocStats = exports.getAdvancedGameStats = exports.getAdvancedSeasonStats = exports.getCategories = exports.getTeamStats = exports.getPlayerGameSuccessRates = exports.getPlayerSeasonSuccessRates = exports.getPlayerSeasonStats = exports.getVenues = exports.getTalent = exports.getConferences = exports.getRoster = exports.getTeamsAts = exports.getMatchup = exports.getFbsTeams = exports.getTeams = exports.getKickerPaar = exports.getAdjustedPlayerRushingStats = exports.getAdjustedPlayerPassingStats = exports.getAdjustedTeamSeasonStats = exports.client = void 0;
|
|
16
|
+
exports.getAdvancedBoxScore = exports.getCoachTenures = exports.getCoachSeasons = exports.getCoachProfile = exports.getCoaches = exports.getDraftPicks = exports.getDraftPositions = exports.getDraftTeams = exports.getDrives = exports.getScoreboard = exports.getCalendar = exports.getRecords = exports.getWeather = exports.getMedia = exports.getGamePlayerStats = exports.getGameTeamStats = exports.getGames = exports.getUsage = exports.getUserInfo = exports.getLines = exports.getLivePlays = exports.getFieldGoalExpectedPoints = exports.getPregameWinProbabilities = void 0;
|
|
17
17
|
var client_fetch_1 = require("@hey-api/client-fetch");
|
|
18
18
|
exports.client = (0, client_fetch_1.createClient)((0, client_fetch_1.createConfig)({ baseUrl: 'https://api.collegefootballdata.com' }));
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Returns opponent-adjusted team statistics by season.
|
|
21
21
|
*/
|
|
22
22
|
var getAdjustedTeamSeasonStats = function (options) {
|
|
23
23
|
var _a;
|
|
@@ -25,7 +25,7 @@ var getAdjustedTeamSeasonStats = function (options) {
|
|
|
25
25
|
};
|
|
26
26
|
exports.getAdjustedTeamSeasonStats = getAdjustedTeamSeasonStats;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Returns opponent-adjusted player passing metrics.
|
|
29
29
|
*/
|
|
30
30
|
var getAdjustedPlayerPassingStats = function (options) {
|
|
31
31
|
var _a;
|
|
@@ -33,7 +33,7 @@ var getAdjustedPlayerPassingStats = function (options) {
|
|
|
33
33
|
};
|
|
34
34
|
exports.getAdjustedPlayerPassingStats = getAdjustedPlayerPassingStats;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Returns opponent-adjusted player rushing metrics.
|
|
37
37
|
*/
|
|
38
38
|
var getAdjustedPlayerRushingStats = function (options) {
|
|
39
39
|
var _a;
|
|
@@ -41,7 +41,7 @@ var getAdjustedPlayerRushingStats = function (options) {
|
|
|
41
41
|
};
|
|
42
42
|
exports.getAdjustedPlayerRushingStats = getAdjustedPlayerRushingStats;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Returns Points Added Above Replacement (PAAR) ratings for kickers.
|
|
45
45
|
*/
|
|
46
46
|
var getKickerPaar = function (options) {
|
|
47
47
|
var _a;
|
|
@@ -49,7 +49,7 @@ var getKickerPaar = function (options) {
|
|
|
49
49
|
};
|
|
50
50
|
exports.getKickerPaar = getKickerPaar;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Returns team information and conference affiliations.
|
|
53
53
|
*/
|
|
54
54
|
var getTeams = function (options) {
|
|
55
55
|
var _a;
|
|
@@ -57,7 +57,7 @@ var getTeams = function (options) {
|
|
|
57
57
|
};
|
|
58
58
|
exports.getTeams = getTeams;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Returns Football Bowl Subdivision (FBS) teams for a season.
|
|
61
61
|
*/
|
|
62
62
|
var getFbsTeams = function (options) {
|
|
63
63
|
var _a;
|
|
@@ -65,7 +65,7 @@ var getFbsTeams = function (options) {
|
|
|
65
65
|
};
|
|
66
66
|
exports.getFbsTeams = getFbsTeams;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Returns historical matchup results between two teams.
|
|
69
69
|
*/
|
|
70
70
|
var getMatchup = function (options) {
|
|
71
71
|
var _a;
|
|
@@ -73,7 +73,7 @@ var getMatchup = function (options) {
|
|
|
73
73
|
};
|
|
74
74
|
exports.getMatchup = getMatchup;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Returns against-the-spread (ATS) records by team.
|
|
77
77
|
*/
|
|
78
78
|
var getTeamsAts = function (options) {
|
|
79
79
|
var _a;
|
|
@@ -81,7 +81,7 @@ var getTeamsAts = function (options) {
|
|
|
81
81
|
};
|
|
82
82
|
exports.getTeamsAts = getTeamsAts;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* Returns historical roster data.
|
|
85
85
|
*/
|
|
86
86
|
var getRoster = function (options) {
|
|
87
87
|
var _a;
|
|
@@ -89,7 +89,7 @@ var getRoster = function (options) {
|
|
|
89
89
|
};
|
|
90
90
|
exports.getRoster = getRoster;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Returns the available conferences.
|
|
93
93
|
*/
|
|
94
94
|
var getConferences = function (options) {
|
|
95
95
|
var _a;
|
|
@@ -97,7 +97,7 @@ var getConferences = function (options) {
|
|
|
97
97
|
};
|
|
98
98
|
exports.getConferences = getConferences;
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Returns 247Sports Team Talent Composite ratings for a season.
|
|
101
101
|
*/
|
|
102
102
|
var getTalent = function (options) {
|
|
103
103
|
var _a;
|
|
@@ -105,7 +105,7 @@ var getTalent = function (options) {
|
|
|
105
105
|
};
|
|
106
106
|
exports.getTalent = getTalent;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Returns college football venues.
|
|
109
109
|
*/
|
|
110
110
|
var getVenues = function (options) {
|
|
111
111
|
var _a;
|
|
@@ -113,7 +113,7 @@ var getVenues = function (options) {
|
|
|
113
113
|
};
|
|
114
114
|
exports.getVenues = getVenues;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* Returns player statistics aggregated by season.
|
|
117
117
|
*/
|
|
118
118
|
var getPlayerSeasonStats = function (options) {
|
|
119
119
|
var _a;
|
|
@@ -121,7 +121,7 @@ var getPlayerSeasonStats = function (options) {
|
|
|
121
121
|
};
|
|
122
122
|
exports.getPlayerSeasonStats = getPlayerSeasonStats;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Returns player passing and rushing success rates by season.
|
|
125
125
|
*/
|
|
126
126
|
var getPlayerSeasonSuccessRates = function (options) {
|
|
127
127
|
var _a;
|
|
@@ -129,7 +129,7 @@ var getPlayerSeasonSuccessRates = function (options) {
|
|
|
129
129
|
};
|
|
130
130
|
exports.getPlayerSeasonSuccessRates = getPlayerSeasonSuccessRates;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* Returns player passing and rushing success rates by game.
|
|
133
133
|
*/
|
|
134
134
|
var getPlayerGameSuccessRates = function (options) {
|
|
135
135
|
var _a;
|
|
@@ -137,7 +137,7 @@ var getPlayerGameSuccessRates = function (options) {
|
|
|
137
137
|
};
|
|
138
138
|
exports.getPlayerGameSuccessRates = getPlayerGameSuccessRates;
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* Returns team statistics aggregated by season.
|
|
141
141
|
*/
|
|
142
142
|
var getTeamStats = function (options) {
|
|
143
143
|
var _a;
|
|
@@ -145,7 +145,7 @@ var getTeamStats = function (options) {
|
|
|
145
145
|
};
|
|
146
146
|
exports.getTeamStats = getTeamStats;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Returns the available team statistical categories.
|
|
149
149
|
*/
|
|
150
150
|
var getCategories = function (options) {
|
|
151
151
|
var _a;
|
|
@@ -153,7 +153,7 @@ var getCategories = function (options) {
|
|
|
153
153
|
};
|
|
154
154
|
exports.getCategories = getCategories;
|
|
155
155
|
/**
|
|
156
|
-
*
|
|
156
|
+
* Returns advanced team statistics aggregated by season.
|
|
157
157
|
*/
|
|
158
158
|
var getAdvancedSeasonStats = function (options) {
|
|
159
159
|
var _a;
|
|
@@ -161,7 +161,7 @@ var getAdvancedSeasonStats = function (options) {
|
|
|
161
161
|
};
|
|
162
162
|
exports.getAdvancedSeasonStats = getAdvancedSeasonStats;
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* Returns advanced team statistics aggregated by game.
|
|
165
165
|
*/
|
|
166
166
|
var getAdvancedGameStats = function (options) {
|
|
167
167
|
var _a;
|
|
@@ -169,7 +169,7 @@ var getAdvancedGameStats = function (options) {
|
|
|
169
169
|
};
|
|
170
170
|
exports.getAdvancedGameStats = getAdvancedGameStats;
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
172
|
+
* Returns team havoc statistics aggregated by game.
|
|
173
173
|
*/
|
|
174
174
|
var getGameHavocStats = function (options) {
|
|
175
175
|
var _a;
|
|
@@ -177,7 +177,7 @@ var getGameHavocStats = function (options) {
|
|
|
177
177
|
};
|
|
178
178
|
exports.getGameHavocStats = getGameHavocStats;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* Returns player recruiting rankings.
|
|
181
181
|
*/
|
|
182
182
|
var getRecruits = function (options) {
|
|
183
183
|
var _a;
|
|
@@ -185,7 +185,7 @@ var getRecruits = function (options) {
|
|
|
185
185
|
};
|
|
186
186
|
exports.getRecruits = getRecruits;
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
188
|
+
* Returns team recruiting rankings.
|
|
189
189
|
*/
|
|
190
190
|
var getTeamRecruitingRankings = function (options) {
|
|
191
191
|
var _a;
|
|
@@ -193,7 +193,7 @@ var getTeamRecruitingRankings = function (options) {
|
|
|
193
193
|
};
|
|
194
194
|
exports.getTeamRecruitingRankings = getTeamRecruitingRankings;
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
196
|
+
* Returns recruiting ratings aggregated by team and position group.
|
|
197
197
|
*/
|
|
198
198
|
var getAggregatedTeamRecruitingRatings = function (options) {
|
|
199
199
|
var _a;
|
|
@@ -201,7 +201,16 @@ var getAggregatedTeamRecruitingRatings = function (options) {
|
|
|
201
201
|
};
|
|
202
202
|
exports.getAggregatedTeamRecruitingRatings = getAggregatedTeamRecruitingRatings;
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* Returns Context & Opponent-Relative Efficiency (CORE) ratings.
|
|
205
|
+
* At least one of `year` or `team` is required.
|
|
206
|
+
*/
|
|
207
|
+
var getCore = function (options) {
|
|
208
|
+
var _a;
|
|
209
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ratings/core' }));
|
|
210
|
+
};
|
|
211
|
+
exports.getCore = getCore;
|
|
212
|
+
/**
|
|
213
|
+
* Returns SP+ ratings by team and season.
|
|
205
214
|
*/
|
|
206
215
|
var getSp = function (options) {
|
|
207
216
|
var _a;
|
|
@@ -209,7 +218,7 @@ var getSp = function (options) {
|
|
|
209
218
|
};
|
|
210
219
|
exports.getSp = getSp;
|
|
211
220
|
/**
|
|
212
|
-
*
|
|
221
|
+
* Returns conference-level SP+ ratings by season.
|
|
213
222
|
*/
|
|
214
223
|
var getConferenceSp = function (options) {
|
|
215
224
|
var _a;
|
|
@@ -217,7 +226,7 @@ var getConferenceSp = function (options) {
|
|
|
217
226
|
};
|
|
218
227
|
exports.getConferenceSp = getConferenceSp;
|
|
219
228
|
/**
|
|
220
|
-
*
|
|
229
|
+
* Returns Simple Rating System (SRS) ratings by team and season.
|
|
221
230
|
*/
|
|
222
231
|
var getSrs = function (options) {
|
|
223
232
|
var _a;
|
|
@@ -225,7 +234,7 @@ var getSrs = function (options) {
|
|
|
225
234
|
};
|
|
226
235
|
exports.getSrs = getSrs;
|
|
227
236
|
/**
|
|
228
|
-
*
|
|
237
|
+
* Returns expanded Simple Rating System (SRS) ratings, including FCS teams.
|
|
229
238
|
*/
|
|
230
239
|
var getExpandedSrs = function (options) {
|
|
231
240
|
var _a;
|
|
@@ -233,7 +242,7 @@ var getExpandedSrs = function (options) {
|
|
|
233
242
|
};
|
|
234
243
|
exports.getExpandedSrs = getExpandedSrs;
|
|
235
244
|
/**
|
|
236
|
-
*
|
|
245
|
+
* Returns historical Elo ratings.
|
|
237
246
|
*/
|
|
238
247
|
var getElo = function (options) {
|
|
239
248
|
var _a;
|
|
@@ -241,7 +250,7 @@ var getElo = function (options) {
|
|
|
241
250
|
};
|
|
242
251
|
exports.getElo = getElo;
|
|
243
252
|
/**
|
|
244
|
-
*
|
|
253
|
+
* Returns historical Football Power Index (FPI) ratings.
|
|
245
254
|
*/
|
|
246
255
|
var getFpi = function (options) {
|
|
247
256
|
var _a;
|
|
@@ -249,7 +258,7 @@ var getFpi = function (options) {
|
|
|
249
258
|
};
|
|
250
259
|
exports.getFpi = getFpi;
|
|
251
260
|
/**
|
|
252
|
-
*
|
|
261
|
+
* Returns historical poll rankings.
|
|
253
262
|
*/
|
|
254
263
|
var getRankings = function (options) {
|
|
255
264
|
var _a;
|
|
@@ -257,7 +266,7 @@ var getRankings = function (options) {
|
|
|
257
266
|
};
|
|
258
267
|
exports.getRankings = getRankings;
|
|
259
268
|
/**
|
|
260
|
-
*
|
|
269
|
+
* Returns historical play-by-play data.
|
|
261
270
|
*/
|
|
262
271
|
var getPlays = function (options) {
|
|
263
272
|
var _a;
|
|
@@ -265,7 +274,7 @@ var getPlays = function (options) {
|
|
|
265
274
|
};
|
|
266
275
|
exports.getPlays = getPlays;
|
|
267
276
|
/**
|
|
268
|
-
*
|
|
277
|
+
* Returns the available play types.
|
|
269
278
|
*/
|
|
270
279
|
var getPlayTypes = function (options) {
|
|
271
280
|
var _a;
|
|
@@ -273,7 +282,7 @@ var getPlayTypes = function (options) {
|
|
|
273
282
|
};
|
|
274
283
|
exports.getPlayTypes = getPlayTypes;
|
|
275
284
|
/**
|
|
276
|
-
*
|
|
285
|
+
* Returns player and play-stat associations, limited to 2,000 records.
|
|
277
286
|
*/
|
|
278
287
|
var getPlayStats = function (options) {
|
|
279
288
|
var _a;
|
|
@@ -281,7 +290,7 @@ var getPlayStats = function (options) {
|
|
|
281
290
|
};
|
|
282
291
|
exports.getPlayStats = getPlayStats;
|
|
283
292
|
/**
|
|
284
|
-
*
|
|
293
|
+
* Returns the available play stat types.
|
|
285
294
|
*/
|
|
286
295
|
var getPlayStatTypes = function (options) {
|
|
287
296
|
var _a;
|
|
@@ -289,7 +298,7 @@ var getPlayStatTypes = function (options) {
|
|
|
289
298
|
};
|
|
290
299
|
exports.getPlayStatTypes = getPlayStatTypes;
|
|
291
300
|
/**
|
|
292
|
-
*
|
|
301
|
+
* Returns the complete College Football Playoff bracket for a season.
|
|
293
302
|
*/
|
|
294
303
|
var getCfpPlayoff = function (options) {
|
|
295
304
|
var _a;
|
|
@@ -297,7 +306,7 @@ var getCfpPlayoff = function (options) {
|
|
|
297
306
|
};
|
|
298
307
|
exports.getCfpPlayoff = getCfpPlayoff;
|
|
299
308
|
/**
|
|
300
|
-
*
|
|
309
|
+
* Returns College Football Playoff participants for a season.
|
|
301
310
|
*/
|
|
302
311
|
var getCfpParticipants = function (options) {
|
|
303
312
|
var _a;
|
|
@@ -305,7 +314,7 @@ var getCfpParticipants = function (options) {
|
|
|
305
314
|
};
|
|
306
315
|
exports.getCfpParticipants = getCfpParticipants;
|
|
307
316
|
/**
|
|
308
|
-
*
|
|
317
|
+
* Returns College Football Playoff matchups for a season.
|
|
309
318
|
*/
|
|
310
319
|
var getCfpGames = function (options) {
|
|
311
320
|
var _a;
|
|
@@ -313,7 +322,7 @@ var getCfpGames = function (options) {
|
|
|
313
322
|
};
|
|
314
323
|
exports.getCfpGames = getCfpGames;
|
|
315
324
|
/**
|
|
316
|
-
*
|
|
325
|
+
* Returns up to 100 players whose names match the search term.
|
|
317
326
|
*/
|
|
318
327
|
var searchPlayers = function (options) {
|
|
319
328
|
var _a;
|
|
@@ -321,7 +330,7 @@ var searchPlayers = function (options) {
|
|
|
321
330
|
};
|
|
322
331
|
exports.searchPlayers = searchPlayers;
|
|
323
332
|
/**
|
|
324
|
-
*
|
|
333
|
+
* Returns player usage metrics for a season.
|
|
325
334
|
*/
|
|
326
335
|
var getPlayerUsage = function (options) {
|
|
327
336
|
var _a;
|
|
@@ -329,7 +338,8 @@ var getPlayerUsage = function (options) {
|
|
|
329
338
|
};
|
|
330
339
|
exports.getPlayerUsage = getPlayerUsage;
|
|
331
340
|
/**
|
|
332
|
-
*
|
|
341
|
+
* Returns a player season overview with box score, usage, and Predicted
|
|
342
|
+
* Points Added (PPA) data.
|
|
333
343
|
*/
|
|
334
344
|
var getPlayerSeasonOverview = function (options) {
|
|
335
345
|
var _a;
|
|
@@ -337,7 +347,7 @@ var getPlayerSeasonOverview = function (options) {
|
|
|
337
347
|
};
|
|
338
348
|
exports.getPlayerSeasonOverview = getPlayerSeasonOverview;
|
|
339
349
|
/**
|
|
340
|
-
*
|
|
350
|
+
* Returns returning production metrics by team and season.
|
|
341
351
|
*/
|
|
342
352
|
var getReturningProduction = function (options) {
|
|
343
353
|
var _a;
|
|
@@ -345,7 +355,7 @@ var getReturningProduction = function (options) {
|
|
|
345
355
|
};
|
|
346
356
|
exports.getReturningProduction = getReturningProduction;
|
|
347
357
|
/**
|
|
348
|
-
*
|
|
358
|
+
* Returns transfer portal entries for a season.
|
|
349
359
|
*/
|
|
350
360
|
var getTransferPortal = function (options) {
|
|
351
361
|
var _a;
|
|
@@ -353,7 +363,7 @@ var getTransferPortal = function (options) {
|
|
|
353
363
|
};
|
|
354
364
|
exports.getTransferPortal = getTransferPortal;
|
|
355
365
|
/**
|
|
356
|
-
*
|
|
366
|
+
* Returns predicted points values by down and distance.
|
|
357
367
|
*/
|
|
358
368
|
var getPredictedPoints = function (options) {
|
|
359
369
|
var _a;
|
|
@@ -361,7 +371,7 @@ var getPredictedPoints = function (options) {
|
|
|
361
371
|
};
|
|
362
372
|
exports.getPredictedPoints = getPredictedPoints;
|
|
363
373
|
/**
|
|
364
|
-
*
|
|
374
|
+
* Returns team Predicted Points Added (PPA) metrics by season.
|
|
365
375
|
*/
|
|
366
376
|
var getPredictedPointsAddedByTeam = function (options) {
|
|
367
377
|
var _a;
|
|
@@ -369,7 +379,7 @@ var getPredictedPointsAddedByTeam = function (options) {
|
|
|
369
379
|
};
|
|
370
380
|
exports.getPredictedPointsAddedByTeam = getPredictedPointsAddedByTeam;
|
|
371
381
|
/**
|
|
372
|
-
*
|
|
382
|
+
* Returns team Predicted Points Added (PPA) metrics by game.
|
|
373
383
|
*/
|
|
374
384
|
var getPredictedPointsAddedByGame = function (options) {
|
|
375
385
|
var _a;
|
|
@@ -377,7 +387,7 @@ var getPredictedPointsAddedByGame = function (options) {
|
|
|
377
387
|
};
|
|
378
388
|
exports.getPredictedPointsAddedByGame = getPredictedPointsAddedByGame;
|
|
379
389
|
/**
|
|
380
|
-
*
|
|
390
|
+
* Returns player Predicted Points Added (PPA) metrics by game.
|
|
381
391
|
*/
|
|
382
392
|
var getPredictedPointsAddedByPlayerGame = function (options) {
|
|
383
393
|
var _a;
|
|
@@ -385,7 +395,7 @@ var getPredictedPointsAddedByPlayerGame = function (options) {
|
|
|
385
395
|
};
|
|
386
396
|
exports.getPredictedPointsAddedByPlayerGame = getPredictedPointsAddedByPlayerGame;
|
|
387
397
|
/**
|
|
388
|
-
*
|
|
398
|
+
* Returns player Predicted Points Added (PPA) metrics by season.
|
|
389
399
|
*/
|
|
390
400
|
var getPredictedPointsAddedByPlayerSeason = function (options) {
|
|
391
401
|
var _a;
|
|
@@ -393,7 +403,7 @@ var getPredictedPointsAddedByPlayerSeason = function (options) {
|
|
|
393
403
|
};
|
|
394
404
|
exports.getPredictedPointsAddedByPlayerSeason = getPredictedPointsAddedByPlayerSeason;
|
|
395
405
|
/**
|
|
396
|
-
*
|
|
406
|
+
* Returns play-by-play win probabilities for a game.
|
|
397
407
|
*/
|
|
398
408
|
var getWinProbability = function (options) {
|
|
399
409
|
var _a;
|
|
@@ -401,7 +411,7 @@ var getWinProbability = function (options) {
|
|
|
401
411
|
};
|
|
402
412
|
exports.getWinProbability = getWinProbability;
|
|
403
413
|
/**
|
|
404
|
-
*
|
|
414
|
+
* Returns pregame win probabilities.
|
|
405
415
|
*/
|
|
406
416
|
var getPregameWinProbabilities = function (options) {
|
|
407
417
|
var _a;
|
|
@@ -409,7 +419,7 @@ var getPregameWinProbabilities = function (options) {
|
|
|
409
419
|
};
|
|
410
420
|
exports.getPregameWinProbabilities = getPregameWinProbabilities;
|
|
411
421
|
/**
|
|
412
|
-
*
|
|
422
|
+
* Returns expected points values for field goal attempts.
|
|
413
423
|
*/
|
|
414
424
|
var getFieldGoalExpectedPoints = function (options) {
|
|
415
425
|
var _a;
|
|
@@ -417,7 +427,7 @@ var getFieldGoalExpectedPoints = function (options) {
|
|
|
417
427
|
};
|
|
418
428
|
exports.getFieldGoalExpectedPoints = getFieldGoalExpectedPoints;
|
|
419
429
|
/**
|
|
420
|
-
*
|
|
430
|
+
* Returns live play-by-play data and advanced metrics for a game.
|
|
421
431
|
*/
|
|
422
432
|
var getLivePlays = function (options) {
|
|
423
433
|
var _a;
|
|
@@ -425,7 +435,7 @@ var getLivePlays = function (options) {
|
|
|
425
435
|
};
|
|
426
436
|
exports.getLivePlays = getLivePlays;
|
|
427
437
|
/**
|
|
428
|
-
*
|
|
438
|
+
* Returns historical betting lines and results.
|
|
429
439
|
*/
|
|
430
440
|
var getLines = function (options) {
|
|
431
441
|
var _a;
|
|
@@ -433,7 +443,8 @@ var getLines = function (options) {
|
|
|
433
443
|
};
|
|
434
444
|
exports.getLines = getLines;
|
|
435
445
|
/**
|
|
436
|
-
*
|
|
446
|
+
* Returns the authenticated user's Patreon level and remaining API calls.
|
|
447
|
+
* Returns `null` when the request is not authenticated.
|
|
437
448
|
*/
|
|
438
449
|
var getUserInfo = function (options) {
|
|
439
450
|
var _a;
|
|
@@ -441,7 +452,8 @@ var getUserInfo = function (options) {
|
|
|
441
452
|
};
|
|
442
453
|
exports.getUserInfo = getUserInfo;
|
|
443
454
|
/**
|
|
444
|
-
*
|
|
455
|
+
* Returns recent usage for the authenticated user's shared CFB and CBB call
|
|
456
|
+
* pool. Returns `null` when the request is not authenticated.
|
|
445
457
|
*/
|
|
446
458
|
var getUsage = function (options) {
|
|
447
459
|
var _a;
|
|
@@ -449,7 +461,7 @@ var getUsage = function (options) {
|
|
|
449
461
|
};
|
|
450
462
|
exports.getUsage = getUsage;
|
|
451
463
|
/**
|
|
452
|
-
*
|
|
464
|
+
* Returns historical game data.
|
|
453
465
|
*/
|
|
454
466
|
var getGames = function (options) {
|
|
455
467
|
var _a;
|
|
@@ -457,7 +469,7 @@ var getGames = function (options) {
|
|
|
457
469
|
};
|
|
458
470
|
exports.getGames = getGames;
|
|
459
471
|
/**
|
|
460
|
-
*
|
|
472
|
+
* Returns team box score statistics by game.
|
|
461
473
|
*/
|
|
462
474
|
var getGameTeamStats = function (options) {
|
|
463
475
|
var _a;
|
|
@@ -465,7 +477,7 @@ var getGameTeamStats = function (options) {
|
|
|
465
477
|
};
|
|
466
478
|
exports.getGameTeamStats = getGameTeamStats;
|
|
467
479
|
/**
|
|
468
|
-
*
|
|
480
|
+
* Returns player box score statistics by game.
|
|
469
481
|
*/
|
|
470
482
|
var getGamePlayerStats = function (options) {
|
|
471
483
|
var _a;
|
|
@@ -473,7 +485,7 @@ var getGamePlayerStats = function (options) {
|
|
|
473
485
|
};
|
|
474
486
|
exports.getGamePlayerStats = getGamePlayerStats;
|
|
475
487
|
/**
|
|
476
|
-
*
|
|
488
|
+
* Returns broadcast and media information for games.
|
|
477
489
|
*/
|
|
478
490
|
var getMedia = function (options) {
|
|
479
491
|
var _a;
|
|
@@ -481,7 +493,7 @@ var getMedia = function (options) {
|
|
|
481
493
|
};
|
|
482
494
|
exports.getMedia = getMedia;
|
|
483
495
|
/**
|
|
484
|
-
*
|
|
496
|
+
* Returns historical and forecast weather data for games. Requires Patreon.
|
|
485
497
|
*/
|
|
486
498
|
var getWeather = function (options) {
|
|
487
499
|
var _a;
|
|
@@ -489,7 +501,7 @@ var getWeather = function (options) {
|
|
|
489
501
|
};
|
|
490
502
|
exports.getWeather = getWeather;
|
|
491
503
|
/**
|
|
492
|
-
*
|
|
504
|
+
* Returns historical team records by season.
|
|
493
505
|
*/
|
|
494
506
|
var getRecords = function (options) {
|
|
495
507
|
var _a;
|
|
@@ -497,7 +509,7 @@ var getRecords = function (options) {
|
|
|
497
509
|
};
|
|
498
510
|
exports.getRecords = getRecords;
|
|
499
511
|
/**
|
|
500
|
-
*
|
|
512
|
+
* Returns the week-by-week season calendar.
|
|
501
513
|
*/
|
|
502
514
|
var getCalendar = function (options) {
|
|
503
515
|
var _a;
|
|
@@ -505,7 +517,7 @@ var getCalendar = function (options) {
|
|
|
505
517
|
};
|
|
506
518
|
exports.getCalendar = getCalendar;
|
|
507
519
|
/**
|
|
508
|
-
*
|
|
520
|
+
* Returns current scoreboard data.
|
|
509
521
|
*/
|
|
510
522
|
var getScoreboard = function (options) {
|
|
511
523
|
var _a;
|
|
@@ -513,7 +525,7 @@ var getScoreboard = function (options) {
|
|
|
513
525
|
};
|
|
514
526
|
exports.getScoreboard = getScoreboard;
|
|
515
527
|
/**
|
|
516
|
-
*
|
|
528
|
+
* Returns historical drive data.
|
|
517
529
|
*/
|
|
518
530
|
var getDrives = function (options) {
|
|
519
531
|
var _a;
|
|
@@ -521,7 +533,7 @@ var getDrives = function (options) {
|
|
|
521
533
|
};
|
|
522
534
|
exports.getDrives = getDrives;
|
|
523
535
|
/**
|
|
524
|
-
*
|
|
536
|
+
* Returns the NFL teams represented in draft data.
|
|
525
537
|
*/
|
|
526
538
|
var getDraftTeams = function (options) {
|
|
527
539
|
var _a;
|
|
@@ -529,7 +541,7 @@ var getDraftTeams = function (options) {
|
|
|
529
541
|
};
|
|
530
542
|
exports.getDraftTeams = getDraftTeams;
|
|
531
543
|
/**
|
|
532
|
-
*
|
|
544
|
+
* Returns the player position categories used in NFL Draft data.
|
|
533
545
|
*/
|
|
534
546
|
var getDraftPositions = function (options) {
|
|
535
547
|
var _a;
|
|
@@ -537,7 +549,7 @@ var getDraftPositions = function (options) {
|
|
|
537
549
|
};
|
|
538
550
|
exports.getDraftPositions = getDraftPositions;
|
|
539
551
|
/**
|
|
540
|
-
*
|
|
552
|
+
* Returns historical NFL Draft picks.
|
|
541
553
|
*/
|
|
542
554
|
var getDraftPicks = function (options) {
|
|
543
555
|
var _a;
|
|
@@ -545,7 +557,7 @@ var getDraftPicks = function (options) {
|
|
|
545
557
|
};
|
|
546
558
|
exports.getDraftPicks = getDraftPicks;
|
|
547
559
|
/**
|
|
548
|
-
*
|
|
560
|
+
* Returns historical head coach records.
|
|
549
561
|
*/
|
|
550
562
|
var getCoaches = function (options) {
|
|
551
563
|
var _a;
|
|
@@ -553,7 +565,7 @@ var getCoaches = function (options) {
|
|
|
553
565
|
};
|
|
554
566
|
exports.getCoaches = getCoaches;
|
|
555
567
|
/**
|
|
556
|
-
*
|
|
568
|
+
* Returns a coach profile with canonical identity and career totals.
|
|
557
569
|
*/
|
|
558
570
|
var getCoachProfile = function (options) {
|
|
559
571
|
var _a;
|
|
@@ -561,8 +573,7 @@ var getCoachProfile = function (options) {
|
|
|
561
573
|
};
|
|
562
574
|
exports.getCoachProfile = getCoachProfile;
|
|
563
575
|
/**
|
|
564
|
-
*
|
|
565
|
-
* whole-team season context
|
|
576
|
+
* Returns coach-season records with attributed results and team context.
|
|
566
577
|
*/
|
|
567
578
|
var getCoachSeasons = function (options) {
|
|
568
579
|
var _a;
|
|
@@ -570,7 +581,7 @@ var getCoachSeasons = function (options) {
|
|
|
570
581
|
};
|
|
571
582
|
exports.getCoachSeasons = getCoachSeasons;
|
|
572
583
|
/**
|
|
573
|
-
*
|
|
584
|
+
* Returns continuous head-coaching tenures and their attributed records.
|
|
574
585
|
*/
|
|
575
586
|
var getCoachTenures = function (options) {
|
|
576
587
|
var _a;
|
|
@@ -578,7 +589,7 @@ var getCoachTenures = function (options) {
|
|
|
578
589
|
};
|
|
579
590
|
exports.getCoachTenures = getCoachTenures;
|
|
580
591
|
/**
|
|
581
|
-
*
|
|
592
|
+
* Returns an advanced box score for a game.
|
|
582
593
|
*/
|
|
583
594
|
var getAdvancedBoxScore = function (options) {
|
|
584
595
|
var _a;
|