cfbd 5.4.8-alpha.0 → 5.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk.gen.js CHANGED
@@ -12,21 +12,16 @@ 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.getRecords = exports.getWeather = exports.getMedia = exports.getGamePlayerStats = exports.getGameTeamStats = exports.getGames = exports.getLines = exports.getLivePlays = exports.getFieldGoalExpectedPoints = exports.getPregameWinProbabilities = exports.getWinProbability = exports.getPredictedPointsAddedByPlayerSeason = exports.getPredictedPointsAddedByPlayerGame = exports.getPredictedPointsAddedByGame = exports.getPredictedPointsAddedByTeam = exports.getPredictedPoints = exports.getTransferPortal = exports.getReturningProduction = exports.getPlayerUsage = exports.searchPlayers = exports.getPlayStatTypes = exports.getPlayStats = exports.getPlayTypes = exports.getPlays = exports.getRankings = exports.getFpi = exports.getElo = exports.getSrs = exports.getConferenceSp = exports.getSp = exports.getAggregatedTeamRecruitingRatings = exports.getTeamRecruitingRankings = exports.getRecruits = exports.getAdvancedGameStats = exports.getAdvancedSeasonStats = exports.getCategories = exports.getTeamStats = exports.getPlayerSeasonStats = exports.getVenues = exports.getTalent = exports.getConferences = exports.getRoster = exports.getMatchup = exports.getFbsTeams = exports.getTeams = exports.getKickerPaar = exports.getAdjustedPlayerRushingStats = exports.getAdjustedPlayerPassingStats = exports.getAdjustedTeamSeasonStats = exports.client = void 0;
16
- exports.getAdvancedBoxScore = exports.getCoaches = exports.getDraftPicks = exports.getDraftPositions = exports.getDraftTeams = exports.getDrives = exports.getScoreboard = exports.getCalendar = void 0;
15
+ exports.getWeather = exports.getMedia = exports.getGamePlayerStats = exports.getGameTeamStats = exports.getGames = exports.getUserInfo = exports.getLines = exports.getLivePlays = exports.getFieldGoalExpectedPoints = exports.getPregameWinProbabilities = exports.getWinProbability = exports.getPredictedPointsAddedByPlayerSeason = exports.getPredictedPointsAddedByPlayerGame = exports.getPredictedPointsAddedByGame = exports.getPredictedPointsAddedByTeam = exports.getPredictedPoints = exports.getTransferPortal = exports.getReturningProduction = exports.getPlayerUsage = exports.searchPlayers = exports.getPlayStatTypes = exports.getPlayStats = exports.getPlayTypes = exports.getPlays = exports.getRankings = exports.getFpi = exports.getElo = exports.getSrs = exports.getConferenceSp = exports.getSp = exports.getAggregatedTeamRecruitingRatings = exports.getTeamRecruitingRankings = exports.getRecruits = exports.getAdvancedGameStats = exports.getAdvancedSeasonStats = exports.getCategories = exports.getTeamStats = exports.getPlayerSeasonStats = exports.getVenues = exports.getTalent = exports.getConferences = exports.getRoster = exports.getMatchup = exports.getFbsTeams = exports.getTeams = exports.getKickerPaar = exports.getAdjustedPlayerRushingStats = exports.getAdjustedPlayerPassingStats = exports.getAdjustedTeamSeasonStats = exports.client = void 0;
16
+ exports.getAdvancedBoxScore = exports.getCoaches = exports.getDraftPicks = exports.getDraftPositions = exports.getDraftTeams = exports.getDrives = exports.getScoreboard = exports.getCalendar = exports.getRecords = void 0;
17
17
  var client_fetch_1 = require("@hey-api/client-fetch");
18
- exports.client = (0, client_fetch_1.createClient)((0, client_fetch_1.createConfig)({ baseUrl: 'https://apinext.collegefootballdata.com' }));
18
+ exports.client = (0, client_fetch_1.createClient)((0, client_fetch_1.createConfig)({ baseUrl: 'https://api.collegefootballdata.com' }));
19
19
  /**
20
20
  * Retrieve opponent-adjusted team season statistics
21
21
  */
22
22
  var getAdjustedTeamSeasonStats = function (options) {
23
23
  var _a;
24
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
25
- {
26
- scheme: 'bearer',
27
- type: 'http'
28
- }
29
- ], url: '/wepa/team/season' }, options));
24
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/wepa/team/season' }));
30
25
  };
31
26
  exports.getAdjustedTeamSeasonStats = getAdjustedTeamSeasonStats;
32
27
  /**
@@ -34,12 +29,7 @@ exports.getAdjustedTeamSeasonStats = getAdjustedTeamSeasonStats;
34
29
  */
35
30
  var getAdjustedPlayerPassingStats = function (options) {
36
31
  var _a;
37
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
38
- {
39
- scheme: 'bearer',
40
- type: 'http'
41
- }
42
- ], url: '/wepa/players/passing' }, options));
32
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/wepa/players/passing' }));
43
33
  };
44
34
  exports.getAdjustedPlayerPassingStats = getAdjustedPlayerPassingStats;
45
35
  /**
@@ -47,12 +37,7 @@ exports.getAdjustedPlayerPassingStats = getAdjustedPlayerPassingStats;
47
37
  */
48
38
  var getAdjustedPlayerRushingStats = function (options) {
49
39
  var _a;
50
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
51
- {
52
- scheme: 'bearer',
53
- type: 'http'
54
- }
55
- ], url: '/wepa/players/rushing' }, options));
40
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/wepa/players/rushing' }));
56
41
  };
57
42
  exports.getAdjustedPlayerRushingStats = getAdjustedPlayerRushingStats;
58
43
  /**
@@ -60,12 +45,7 @@ exports.getAdjustedPlayerRushingStats = getAdjustedPlayerRushingStats;
60
45
  */
61
46
  var getKickerPaar = function (options) {
62
47
  var _a;
63
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
64
- {
65
- scheme: 'bearer',
66
- type: 'http'
67
- }
68
- ], url: '/wepa/players/kicking' }, options));
48
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/wepa/players/kicking' }));
69
49
  };
70
50
  exports.getKickerPaar = getKickerPaar;
71
51
  /**
@@ -73,12 +53,7 @@ exports.getKickerPaar = getKickerPaar;
73
53
  */
74
54
  var getTeams = function (options) {
75
55
  var _a;
76
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
77
- {
78
- scheme: 'bearer',
79
- type: 'http'
80
- }
81
- ], url: '/teams' }, options));
56
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/teams' }));
82
57
  };
83
58
  exports.getTeams = getTeams;
84
59
  /**
@@ -86,12 +61,7 @@ exports.getTeams = getTeams;
86
61
  */
87
62
  var getFbsTeams = function (options) {
88
63
  var _a;
89
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
90
- {
91
- scheme: 'bearer',
92
- type: 'http'
93
- }
94
- ], url: '/teams/fbs' }, options));
64
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/teams/fbs' }));
95
65
  };
96
66
  exports.getFbsTeams = getFbsTeams;
97
67
  /**
@@ -99,12 +69,7 @@ exports.getFbsTeams = getFbsTeams;
99
69
  */
100
70
  var getMatchup = function (options) {
101
71
  var _a;
102
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
103
- {
104
- scheme: 'bearer',
105
- type: 'http'
106
- }
107
- ], url: '/teams/matchup' }, options));
72
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/teams/matchup' }));
108
73
  };
109
74
  exports.getMatchup = getMatchup;
110
75
  /**
@@ -112,12 +77,7 @@ exports.getMatchup = getMatchup;
112
77
  */
113
78
  var getRoster = function (options) {
114
79
  var _a;
115
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
116
- {
117
- scheme: 'bearer',
118
- type: 'http'
119
- }
120
- ], url: '/roster' }, options));
80
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/roster' }));
121
81
  };
122
82
  exports.getRoster = getRoster;
123
83
  /**
@@ -125,12 +85,7 @@ exports.getRoster = getRoster;
125
85
  */
126
86
  var getConferences = function (options) {
127
87
  var _a;
128
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
129
- {
130
- scheme: 'bearer',
131
- type: 'http'
132
- }
133
- ], url: '/conferences' }, options));
88
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/conferences' }));
134
89
  };
135
90
  exports.getConferences = getConferences;
136
91
  /**
@@ -138,12 +93,7 @@ exports.getConferences = getConferences;
138
93
  */
139
94
  var getTalent = function (options) {
140
95
  var _a;
141
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
142
- {
143
- scheme: 'bearer',
144
- type: 'http'
145
- }
146
- ], url: '/talent' }, options));
96
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/talent' }));
147
97
  };
148
98
  exports.getTalent = getTalent;
149
99
  /**
@@ -151,12 +101,7 @@ exports.getTalent = getTalent;
151
101
  */
152
102
  var getVenues = function (options) {
153
103
  var _a;
154
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
155
- {
156
- scheme: 'bearer',
157
- type: 'http'
158
- }
159
- ], url: '/venues' }, options));
104
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/venues' }));
160
105
  };
161
106
  exports.getVenues = getVenues;
162
107
  /**
@@ -164,12 +109,7 @@ exports.getVenues = getVenues;
164
109
  */
165
110
  var getPlayerSeasonStats = function (options) {
166
111
  var _a;
167
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
168
- {
169
- scheme: 'bearer',
170
- type: 'http'
171
- }
172
- ], url: '/stats/player/season' }, options));
112
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/stats/player/season' }));
173
113
  };
174
114
  exports.getPlayerSeasonStats = getPlayerSeasonStats;
175
115
  /**
@@ -177,12 +117,7 @@ exports.getPlayerSeasonStats = getPlayerSeasonStats;
177
117
  */
178
118
  var getTeamStats = function (options) {
179
119
  var _a;
180
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
181
- {
182
- scheme: 'bearer',
183
- type: 'http'
184
- }
185
- ], url: '/stats/season' }, options));
120
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/stats/season' }));
186
121
  };
187
122
  exports.getTeamStats = getTeamStats;
188
123
  /**
@@ -190,12 +125,7 @@ exports.getTeamStats = getTeamStats;
190
125
  */
191
126
  var getCategories = function (options) {
192
127
  var _a;
193
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
194
- {
195
- scheme: 'bearer',
196
- type: 'http'
197
- }
198
- ], url: '/stats/categories' }, options));
128
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/stats/categories' }));
199
129
  };
200
130
  exports.getCategories = getCategories;
201
131
  /**
@@ -203,12 +133,7 @@ exports.getCategories = getCategories;
203
133
  */
204
134
  var getAdvancedSeasonStats = function (options) {
205
135
  var _a;
206
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
207
- {
208
- scheme: 'bearer',
209
- type: 'http'
210
- }
211
- ], url: '/stats/season/advanced' }, options));
136
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/stats/season/advanced' }));
212
137
  };
213
138
  exports.getAdvancedSeasonStats = getAdvancedSeasonStats;
214
139
  /**
@@ -216,12 +141,7 @@ exports.getAdvancedSeasonStats = getAdvancedSeasonStats;
216
141
  */
217
142
  var getAdvancedGameStats = function (options) {
218
143
  var _a;
219
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
220
- {
221
- scheme: 'bearer',
222
- type: 'http'
223
- }
224
- ], url: '/stats/game/advanced' }, options));
144
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/stats/game/advanced' }));
225
145
  };
226
146
  exports.getAdvancedGameStats = getAdvancedGameStats;
227
147
  /**
@@ -229,12 +149,7 @@ exports.getAdvancedGameStats = getAdvancedGameStats;
229
149
  */
230
150
  var getRecruits = function (options) {
231
151
  var _a;
232
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
233
- {
234
- scheme: 'bearer',
235
- type: 'http'
236
- }
237
- ], url: '/recruiting/players' }, options));
152
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/recruiting/players' }));
238
153
  };
239
154
  exports.getRecruits = getRecruits;
240
155
  /**
@@ -242,12 +157,7 @@ exports.getRecruits = getRecruits;
242
157
  */
243
158
  var getTeamRecruitingRankings = function (options) {
244
159
  var _a;
245
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
246
- {
247
- scheme: 'bearer',
248
- type: 'http'
249
- }
250
- ], url: '/recruiting/teams' }, options));
160
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/recruiting/teams' }));
251
161
  };
252
162
  exports.getTeamRecruitingRankings = getTeamRecruitingRankings;
253
163
  /**
@@ -255,12 +165,7 @@ exports.getTeamRecruitingRankings = getTeamRecruitingRankings;
255
165
  */
256
166
  var getAggregatedTeamRecruitingRatings = function (options) {
257
167
  var _a;
258
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
259
- {
260
- scheme: 'bearer',
261
- type: 'http'
262
- }
263
- ], url: '/recruiting/groups' }, options));
168
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/recruiting/groups' }));
264
169
  };
265
170
  exports.getAggregatedTeamRecruitingRatings = getAggregatedTeamRecruitingRatings;
266
171
  /**
@@ -268,12 +173,7 @@ exports.getAggregatedTeamRecruitingRatings = getAggregatedTeamRecruitingRatings;
268
173
  */
269
174
  var getSp = function (options) {
270
175
  var _a;
271
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
272
- {
273
- scheme: 'bearer',
274
- type: 'http'
275
- }
276
- ], url: '/ratings/sp' }, options));
176
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ratings/sp' }));
277
177
  };
278
178
  exports.getSp = getSp;
279
179
  /**
@@ -281,12 +181,7 @@ exports.getSp = getSp;
281
181
  */
282
182
  var getConferenceSp = function (options) {
283
183
  var _a;
284
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
285
- {
286
- scheme: 'bearer',
287
- type: 'http'
288
- }
289
- ], url: '/ratings/sp/conferences' }, options));
184
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ratings/sp/conferences' }));
290
185
  };
291
186
  exports.getConferenceSp = getConferenceSp;
292
187
  /**
@@ -294,12 +189,7 @@ exports.getConferenceSp = getConferenceSp;
294
189
  */
295
190
  var getSrs = function (options) {
296
191
  var _a;
297
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
298
- {
299
- scheme: 'bearer',
300
- type: 'http'
301
- }
302
- ], url: '/ratings/srs' }, options));
192
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ratings/srs' }));
303
193
  };
304
194
  exports.getSrs = getSrs;
305
195
  /**
@@ -307,12 +197,7 @@ exports.getSrs = getSrs;
307
197
  */
308
198
  var getElo = function (options) {
309
199
  var _a;
310
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
311
- {
312
- scheme: 'bearer',
313
- type: 'http'
314
- }
315
- ], url: '/ratings/elo' }, options));
200
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ratings/elo' }));
316
201
  };
317
202
  exports.getElo = getElo;
318
203
  /**
@@ -320,12 +205,7 @@ exports.getElo = getElo;
320
205
  */
321
206
  var getFpi = function (options) {
322
207
  var _a;
323
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
324
- {
325
- scheme: 'bearer',
326
- type: 'http'
327
- }
328
- ], url: '/ratings/fpi' }, options));
208
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ratings/fpi' }));
329
209
  };
330
210
  exports.getFpi = getFpi;
331
211
  /**
@@ -333,12 +213,7 @@ exports.getFpi = getFpi;
333
213
  */
334
214
  var getRankings = function (options) {
335
215
  var _a;
336
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
337
- {
338
- scheme: 'bearer',
339
- type: 'http'
340
- }
341
- ], url: '/rankings' }, options));
216
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/rankings' }));
342
217
  };
343
218
  exports.getRankings = getRankings;
344
219
  /**
@@ -346,12 +221,7 @@ exports.getRankings = getRankings;
346
221
  */
347
222
  var getPlays = function (options) {
348
223
  var _a;
349
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
350
- {
351
- scheme: 'bearer',
352
- type: 'http'
353
- }
354
- ], url: '/plays' }, options));
224
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/plays' }));
355
225
  };
356
226
  exports.getPlays = getPlays;
357
227
  /**
@@ -359,12 +229,7 @@ exports.getPlays = getPlays;
359
229
  */
360
230
  var getPlayTypes = function (options) {
361
231
  var _a;
362
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
363
- {
364
- scheme: 'bearer',
365
- type: 'http'
366
- }
367
- ], url: '/plays/types' }, options));
232
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/plays/types' }));
368
233
  };
369
234
  exports.getPlayTypes = getPlayTypes;
370
235
  /**
@@ -372,12 +237,7 @@ exports.getPlayTypes = getPlayTypes;
372
237
  */
373
238
  var getPlayStats = function (options) {
374
239
  var _a;
375
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
376
- {
377
- scheme: 'bearer',
378
- type: 'http'
379
- }
380
- ], url: '/plays/stats' }, options));
240
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/plays/stats' }));
381
241
  };
382
242
  exports.getPlayStats = getPlayStats;
383
243
  /**
@@ -385,12 +245,7 @@ exports.getPlayStats = getPlayStats;
385
245
  */
386
246
  var getPlayStatTypes = function (options) {
387
247
  var _a;
388
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
389
- {
390
- scheme: 'bearer',
391
- type: 'http'
392
- }
393
- ], url: '/plays/stats/types' }, options));
248
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/plays/stats/types' }));
394
249
  };
395
250
  exports.getPlayStatTypes = getPlayStatTypes;
396
251
  /**
@@ -398,12 +253,7 @@ exports.getPlayStatTypes = getPlayStatTypes;
398
253
  */
399
254
  var searchPlayers = function (options) {
400
255
  var _a;
401
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
402
- {
403
- scheme: 'bearer',
404
- type: 'http'
405
- }
406
- ], url: '/player/search' }, options));
256
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/player/search' }));
407
257
  };
408
258
  exports.searchPlayers = searchPlayers;
409
259
  /**
@@ -411,12 +261,7 @@ exports.searchPlayers = searchPlayers;
411
261
  */
412
262
  var getPlayerUsage = function (options) {
413
263
  var _a;
414
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
415
- {
416
- scheme: 'bearer',
417
- type: 'http'
418
- }
419
- ], url: '/player/usage' }, options));
264
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/player/usage' }));
420
265
  };
421
266
  exports.getPlayerUsage = getPlayerUsage;
422
267
  /**
@@ -424,12 +269,7 @@ exports.getPlayerUsage = getPlayerUsage;
424
269
  */
425
270
  var getReturningProduction = function (options) {
426
271
  var _a;
427
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
428
- {
429
- scheme: 'bearer',
430
- type: 'http'
431
- }
432
- ], url: '/player/returning' }, options));
272
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/player/returning' }));
433
273
  };
434
274
  exports.getReturningProduction = getReturningProduction;
435
275
  /**
@@ -437,12 +277,7 @@ exports.getReturningProduction = getReturningProduction;
437
277
  */
438
278
  var getTransferPortal = function (options) {
439
279
  var _a;
440
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
441
- {
442
- scheme: 'bearer',
443
- type: 'http'
444
- }
445
- ], url: '/player/portal' }, options));
280
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/player/portal' }));
446
281
  };
447
282
  exports.getTransferPortal = getTransferPortal;
448
283
  /**
@@ -450,12 +285,7 @@ exports.getTransferPortal = getTransferPortal;
450
285
  */
451
286
  var getPredictedPoints = function (options) {
452
287
  var _a;
453
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
454
- {
455
- scheme: 'bearer',
456
- type: 'http'
457
- }
458
- ], url: '/ppa/predicted' }, options));
288
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ppa/predicted' }));
459
289
  };
460
290
  exports.getPredictedPoints = getPredictedPoints;
461
291
  /**
@@ -463,12 +293,7 @@ exports.getPredictedPoints = getPredictedPoints;
463
293
  */
464
294
  var getPredictedPointsAddedByTeam = function (options) {
465
295
  var _a;
466
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
467
- {
468
- scheme: 'bearer',
469
- type: 'http'
470
- }
471
- ], url: '/ppa/teams' }, options));
296
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ppa/teams' }));
472
297
  };
473
298
  exports.getPredictedPointsAddedByTeam = getPredictedPointsAddedByTeam;
474
299
  /**
@@ -476,12 +301,7 @@ exports.getPredictedPointsAddedByTeam = getPredictedPointsAddedByTeam;
476
301
  */
477
302
  var getPredictedPointsAddedByGame = function (options) {
478
303
  var _a;
479
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
480
- {
481
- scheme: 'bearer',
482
- type: 'http'
483
- }
484
- ], url: '/ppa/games' }, options));
304
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ppa/games' }));
485
305
  };
486
306
  exports.getPredictedPointsAddedByGame = getPredictedPointsAddedByGame;
487
307
  /**
@@ -489,12 +309,7 @@ exports.getPredictedPointsAddedByGame = getPredictedPointsAddedByGame;
489
309
  */
490
310
  var getPredictedPointsAddedByPlayerGame = function (options) {
491
311
  var _a;
492
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
493
- {
494
- scheme: 'bearer',
495
- type: 'http'
496
- }
497
- ], url: '/ppa/players/games' }, options));
312
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ppa/players/games' }));
498
313
  };
499
314
  exports.getPredictedPointsAddedByPlayerGame = getPredictedPointsAddedByPlayerGame;
500
315
  /**
@@ -502,12 +317,7 @@ exports.getPredictedPointsAddedByPlayerGame = getPredictedPointsAddedByPlayerGam
502
317
  */
503
318
  var getPredictedPointsAddedByPlayerSeason = function (options) {
504
319
  var _a;
505
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
506
- {
507
- scheme: 'bearer',
508
- type: 'http'
509
- }
510
- ], url: '/ppa/players/season' }, options));
320
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/ppa/players/season' }));
511
321
  };
512
322
  exports.getPredictedPointsAddedByPlayerSeason = getPredictedPointsAddedByPlayerSeason;
513
323
  /**
@@ -515,12 +325,7 @@ exports.getPredictedPointsAddedByPlayerSeason = getPredictedPointsAddedByPlayerS
515
325
  */
516
326
  var getWinProbability = function (options) {
517
327
  var _a;
518
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
519
- {
520
- scheme: 'bearer',
521
- type: 'http'
522
- }
523
- ], url: '/metrics/wp' }, options));
328
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/metrics/wp' }));
524
329
  };
525
330
  exports.getWinProbability = getWinProbability;
526
331
  /**
@@ -528,12 +333,7 @@ exports.getWinProbability = getWinProbability;
528
333
  */
529
334
  var getPregameWinProbabilities = function (options) {
530
335
  var _a;
531
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
532
- {
533
- scheme: 'bearer',
534
- type: 'http'
535
- }
536
- ], url: '/metrics/wp/pregame' }, options));
336
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/metrics/wp/pregame' }));
537
337
  };
538
338
  exports.getPregameWinProbabilities = getPregameWinProbabilities;
539
339
  /**
@@ -541,12 +341,7 @@ exports.getPregameWinProbabilities = getPregameWinProbabilities;
541
341
  */
542
342
  var getFieldGoalExpectedPoints = function (options) {
543
343
  var _a;
544
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
545
- {
546
- scheme: 'bearer',
547
- type: 'http'
548
- }
549
- ], url: '/metrics/fg/ep' }, options));
344
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/metrics/fg/ep' }));
550
345
  };
551
346
  exports.getFieldGoalExpectedPoints = getFieldGoalExpectedPoints;
552
347
  /**
@@ -554,12 +349,7 @@ exports.getFieldGoalExpectedPoints = getFieldGoalExpectedPoints;
554
349
  */
555
350
  var getLivePlays = function (options) {
556
351
  var _a;
557
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
558
- {
559
- scheme: 'bearer',
560
- type: 'http'
561
- }
562
- ], url: '/live/plays' }, options));
352
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/live/plays' }));
563
353
  };
564
354
  exports.getLivePlays = getLivePlays;
565
355
  /**
@@ -567,25 +357,23 @@ exports.getLivePlays = getLivePlays;
567
357
  */
568
358
  var getLines = function (options) {
569
359
  var _a;
570
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
571
- {
572
- scheme: 'bearer',
573
- type: 'http'
574
- }
575
- ], url: '/lines' }, options));
360
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/lines' }));
576
361
  };
577
362
  exports.getLines = getLines;
363
+ /**
364
+ * Retrieves information about the user, including their Patreon level and remaining API calls.
365
+ */
366
+ var getUserInfo = function (options) {
367
+ var _a;
368
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/info' }));
369
+ };
370
+ exports.getUserInfo = getUserInfo;
578
371
  /**
579
372
  * Retrieves historical game data
580
373
  */
581
374
  var getGames = function (options) {
582
375
  var _a;
583
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
584
- {
585
- scheme: 'bearer',
586
- type: 'http'
587
- }
588
- ], url: '/games' }, options));
376
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/games' }));
589
377
  };
590
378
  exports.getGames = getGames;
591
379
  /**
@@ -593,12 +381,7 @@ exports.getGames = getGames;
593
381
  */
594
382
  var getGameTeamStats = function (options) {
595
383
  var _a;
596
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
597
- {
598
- scheme: 'bearer',
599
- type: 'http'
600
- }
601
- ], url: '/games/teams' }, options));
384
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/games/teams' }));
602
385
  };
603
386
  exports.getGameTeamStats = getGameTeamStats;
604
387
  /**
@@ -606,12 +389,7 @@ exports.getGameTeamStats = getGameTeamStats;
606
389
  */
607
390
  var getGamePlayerStats = function (options) {
608
391
  var _a;
609
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
610
- {
611
- scheme: 'bearer',
612
- type: 'http'
613
- }
614
- ], url: '/games/players' }, options));
392
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/games/players' }));
615
393
  };
616
394
  exports.getGamePlayerStats = getGamePlayerStats;
617
395
  /**
@@ -619,12 +397,7 @@ exports.getGamePlayerStats = getGamePlayerStats;
619
397
  */
620
398
  var getMedia = function (options) {
621
399
  var _a;
622
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
623
- {
624
- scheme: 'bearer',
625
- type: 'http'
626
- }
627
- ], url: '/games/media' }, options));
400
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/games/media' }));
628
401
  };
629
402
  exports.getMedia = getMedia;
630
403
  /**
@@ -632,12 +405,7 @@ exports.getMedia = getMedia;
632
405
  */
633
406
  var getWeather = function (options) {
634
407
  var _a;
635
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
636
- {
637
- scheme: 'bearer',
638
- type: 'http'
639
- }
640
- ], url: '/games/weather' }, options));
408
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/games/weather' }));
641
409
  };
642
410
  exports.getWeather = getWeather;
643
411
  /**
@@ -645,12 +413,7 @@ exports.getWeather = getWeather;
645
413
  */
646
414
  var getRecords = function (options) {
647
415
  var _a;
648
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
649
- {
650
- scheme: 'bearer',
651
- type: 'http'
652
- }
653
- ], url: '/records' }, options));
416
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/records' }));
654
417
  };
655
418
  exports.getRecords = getRecords;
656
419
  /**
@@ -658,12 +421,7 @@ exports.getRecords = getRecords;
658
421
  */
659
422
  var getCalendar = function (options) {
660
423
  var _a;
661
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
662
- {
663
- scheme: 'bearer',
664
- type: 'http'
665
- }
666
- ], url: '/calendar' }, options));
424
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/calendar' }));
667
425
  };
668
426
  exports.getCalendar = getCalendar;
669
427
  /**
@@ -671,12 +429,7 @@ exports.getCalendar = getCalendar;
671
429
  */
672
430
  var getScoreboard = function (options) {
673
431
  var _a;
674
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
675
- {
676
- scheme: 'bearer',
677
- type: 'http'
678
- }
679
- ], url: '/scoreboard' }, options));
432
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/scoreboard' }));
680
433
  };
681
434
  exports.getScoreboard = getScoreboard;
682
435
  /**
@@ -684,12 +437,7 @@ exports.getScoreboard = getScoreboard;
684
437
  */
685
438
  var getDrives = function (options) {
686
439
  var _a;
687
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
688
- {
689
- scheme: 'bearer',
690
- type: 'http'
691
- }
692
- ], url: '/drives' }, options));
440
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/drives' }));
693
441
  };
694
442
  exports.getDrives = getDrives;
695
443
  /**
@@ -697,12 +445,7 @@ exports.getDrives = getDrives;
697
445
  */
698
446
  var getDraftTeams = function (options) {
699
447
  var _a;
700
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
701
- {
702
- scheme: 'bearer',
703
- type: 'http'
704
- }
705
- ], url: '/draft/teams' }, options));
448
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/draft/teams' }));
706
449
  };
707
450
  exports.getDraftTeams = getDraftTeams;
708
451
  /**
@@ -710,12 +453,7 @@ exports.getDraftTeams = getDraftTeams;
710
453
  */
711
454
  var getDraftPositions = function (options) {
712
455
  var _a;
713
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
714
- {
715
- scheme: 'bearer',
716
- type: 'http'
717
- }
718
- ], url: '/draft/positions' }, options));
456
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/draft/positions' }));
719
457
  };
720
458
  exports.getDraftPositions = getDraftPositions;
721
459
  /**
@@ -723,12 +461,7 @@ exports.getDraftPositions = getDraftPositions;
723
461
  */
724
462
  var getDraftPicks = function (options) {
725
463
  var _a;
726
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
727
- {
728
- scheme: 'bearer',
729
- type: 'http'
730
- }
731
- ], url: '/draft/picks' }, options));
464
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/draft/picks' }));
732
465
  };
733
466
  exports.getDraftPicks = getDraftPicks;
734
467
  /**
@@ -736,12 +469,7 @@ exports.getDraftPicks = getDraftPicks;
736
469
  */
737
470
  var getCoaches = function (options) {
738
471
  var _a;
739
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
740
- {
741
- scheme: 'bearer',
742
- type: 'http'
743
- }
744
- ], url: '/coaches' }, options));
472
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/coaches' }));
745
473
  };
746
474
  exports.getCoaches = getCoaches;
747
475
  /**
@@ -749,11 +477,6 @@ exports.getCoaches = getCoaches;
749
477
  */
750
478
  var getAdvancedBoxScore = function (options) {
751
479
  var _a;
752
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign({ security: [
753
- {
754
- scheme: 'bearer',
755
- type: 'http'
756
- }
757
- ], url: '/game/box/advanced' }, options));
480
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : exports.client).get(__assign(__assign({}, options), { url: '/game/box/advanced' }));
758
481
  };
759
482
  exports.getAdvancedBoxScore = getAdvancedBoxScore;