@databallr/sdk 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/generated/methods.d.ts +48 -48
- package/dist/generated/methods.js +1 -1
- package/dist/generated/schema.d.ts +71 -51
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ npm install @databallr/sdk
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
Releases are 0.x while method names settle, so a minor version may break.
|
|
11
|
+
What changed in the API, newest first: https://databallr.com/changelog/api.
|
|
11
12
|
|
|
12
13
|
```ts
|
|
13
14
|
import { Databallr } from "@databallr/sdk";
|
|
@@ -35,10 +36,10 @@ const standings = await dbr.get("/v1/nba/standings", { query: { season: 2026 } }
|
|
|
35
36
|
- Non-2xx responses throw `DataballrError` (`status`, `code`, `type`,
|
|
36
37
|
`retryable`, `message`, `requestId`, `requiredScope`, `retryAfter`).
|
|
37
38
|
`code` is UPPER_SNAKE for errors any call can hit: `INVALID_TOKEN` (401),
|
|
38
|
-
`INSUFFICIENT_SCOPE` (403), `RATE_LIMITED` (429), `UPSTREAM_ERROR`
|
|
39
|
-
or `HTTP_ERROR` when the body is not the
|
|
40
|
-
operation's own errors (bad input, nothing
|
|
41
|
-
status: `INVALID_REQUEST` (400), `UNAUTHORIZED` (401), `FORBIDDEN` (403),
|
|
39
|
+
`INSUFFICIENT_SCOPE` (403), `RATE_LIMITED` (429), `UPSTREAM_ERROR` or
|
|
40
|
+
`UPSTREAM_UNAVAILABLE` (502), or `HTTP_ERROR` when the body is not the
|
|
41
|
+
API's error envelope. An operation's own errors (bad input, nothing
|
|
42
|
+
found) carry one code per status: `INVALID_REQUEST` (400), `UNAUTHORIZED` (401), `FORBIDDEN` (403),
|
|
42
43
|
`NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),
|
|
43
44
|
`BODY_TOO_LARGE` (413), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500),
|
|
44
45
|
`UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503). The reason
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** First 12 hex characters of the SHA-256 of the key-callable spec these files came from. */
|
|
2
|
-
export declare const SPEC_HASH = "
|
|
2
|
+
export declare const SPEC_HASH = "a2505996d4d9";
|
|
3
3
|
/**
|
|
4
4
|
* Every generated method: GET operations by path, POST queries as
|
|
5
5
|
* `POST <path>`. `Databallr` turns this table into `dbr.nba.players.search(...)`.
|
|
@@ -11,23 +11,23 @@ export declare const methods: {
|
|
|
11
11
|
readonly duelStats: "/v1/apps/sixrings/duel-stats";
|
|
12
12
|
/** Get SixRings FFA queue depth. `GET /v1/apps/sixrings/ffa-queue-status` · `games:read` */
|
|
13
13
|
readonly ffaQueueStatus: "/v1/apps/sixrings/ffa-queue-status";
|
|
14
|
-
/** List
|
|
14
|
+
/** List players online in SixRings games. `GET /v1/apps/sixrings/games-presence` · `games:read` */
|
|
15
15
|
readonly gamesPresence: "/v1/apps/sixrings/games-presence";
|
|
16
16
|
/** Get the SixRings achievement leaderboard. `GET /v1/apps/sixrings/leaderboard` · `games:read` */
|
|
17
17
|
readonly leaderboard: "/v1/apps/sixrings/leaderboard";
|
|
18
|
-
/** Get
|
|
18
|
+
/** Get your SixRings trophy case. `GET /v1/apps/sixrings/profiles/me` · `games:read` */
|
|
19
19
|
readonly profilesMe: "/v1/apps/sixrings/profiles/me";
|
|
20
|
-
/** Get the
|
|
20
|
+
/** Get the Solo SixRings player count. `GET /v1/apps/sixrings/solo-presence` · `games:read` */
|
|
21
21
|
readonly soloPresence: "/v1/apps/sixrings/solo-presence";
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
readonly nba: {
|
|
25
25
|
readonly contracts: {
|
|
26
|
-
/** List NBA free
|
|
26
|
+
/** List NBA free agents. `GET /v1/nba/contracts/free-agency` · `stats:read` */
|
|
27
27
|
readonly freeAgency: "/v1/nba/contracts/free-agency";
|
|
28
28
|
/** List NBA contracts for a player. `GET /v1/nba/contracts/players/{player_id}` · `stats:read` */
|
|
29
29
|
readonly playersByPlayerId: "/v1/nba/contracts/players/{player_id}";
|
|
30
|
-
/** Get
|
|
30
|
+
/** Get an NBA player's contract totals. `GET /v1/nba/contracts/players/{player_id}/aggregate` · `stats:read` */
|
|
31
31
|
readonly playersByPlayerIdAggregate: "/v1/nba/contracts/players/{player_id}/aggregate";
|
|
32
32
|
/** List NBA contracts for a team. `GET /v1/nba/contracts/teams/{team_id}` · `stats:read` */
|
|
33
33
|
readonly teamsByTeamId: "/v1/nba/contracts/teams/{team_id}";
|
|
@@ -39,17 +39,17 @@ export declare const methods: {
|
|
|
39
39
|
readonly bigBoard: "/v1/nba/draft/big-board";
|
|
40
40
|
/** List NBA draft prospect comparisons. `GET /v1/nba/draft/comps` · `stats:read` */
|
|
41
41
|
readonly comps: "/v1/nba/draft/comps";
|
|
42
|
-
/** List
|
|
42
|
+
/** List NBA draft prospects' high school shooting. `GET /v1/nba/draft/hs-shooting` · `stats:read` */
|
|
43
43
|
readonly hsShooting: "/v1/nba/draft/hs-shooting";
|
|
44
44
|
/** List NBA draft seasons. `GET /v1/nba/draft/seasons` · `stats:read` */
|
|
45
45
|
readonly seasons: "/v1/nba/draft/seasons";
|
|
46
46
|
/** List NBA draft stat rankings. `GET /v1/nba/draft/stat-rankings` · `stats:read` */
|
|
47
47
|
readonly statRankings: "/v1/nba/draft/stat-rankings";
|
|
48
|
-
/** List NBA draft
|
|
48
|
+
/** List NBA draft prospect videos. `GET /v1/nba/draft/youtube` · `stats:read` */
|
|
49
49
|
readonly youtube: "/v1/nba/draft/youtube";
|
|
50
50
|
};
|
|
51
51
|
readonly games: {
|
|
52
|
-
/** Get
|
|
52
|
+
/** Get an NBA game's box score. `GET /v1/nba/games/{game_id}/gamelog` · `stats:read` */
|
|
53
53
|
readonly byGameIdGamelog: "/v1/nba/games/{game_id}/gamelog";
|
|
54
54
|
/** Get an NBA game's play-by-play. `GET /v1/nba/games/{game_id}/pbp` · `stats:read` */
|
|
55
55
|
readonly byGameIdPbp: "/v1/nba/games/{game_id}/pbp";
|
|
@@ -57,11 +57,11 @@ export declare const methods: {
|
|
|
57
57
|
readonly byGameIdPlays: "/v1/nba/games/{game_id}/plays";
|
|
58
58
|
};
|
|
59
59
|
readonly injuries: {
|
|
60
|
-
/** List NBA injuries for
|
|
60
|
+
/** List NBA injuries for a date. `GET /v1/nba/injuries` · `stats:read` */
|
|
61
61
|
readonly get: "/v1/nba/injuries";
|
|
62
62
|
};
|
|
63
63
|
readonly leagueBaselines: {
|
|
64
|
-
/**
|
|
64
|
+
/** Get NBA league averages by season. `GET /v1/nba/league-baselines` · `stats:read` */
|
|
65
65
|
readonly get: "/v1/nba/league-baselines";
|
|
66
66
|
};
|
|
67
67
|
readonly live: {
|
|
@@ -69,7 +69,7 @@ export declare const methods: {
|
|
|
69
69
|
readonly games: "/v1/nba/live/games";
|
|
70
70
|
/** List NBA live games for a date. `GET /v1/nba/live/games/{game_date}` · `stats:read` */
|
|
71
71
|
readonly gamesByGameDate: "/v1/nba/live/games/{game_date}";
|
|
72
|
-
/** Get
|
|
72
|
+
/** Get a live NBA game's box score. `GET /v1/nba/live/games/{game_id}/box-score` · `stats:read` */
|
|
73
73
|
readonly gamesByGameIdBoxScore: "/v1/nba/live/games/{game_id}/box-score";
|
|
74
74
|
};
|
|
75
75
|
readonly matchups: {
|
|
@@ -85,31 +85,31 @@ export declare const methods: {
|
|
|
85
85
|
readonly gamesByGameIdProps: "/v1/nba/odds/games/{game_id}/props";
|
|
86
86
|
};
|
|
87
87
|
readonly opponentQuality: {
|
|
88
|
-
/**
|
|
88
|
+
/** List NBA teams in a rating tier. `GET /v1/nba/opponent-quality` · `stats:read` */
|
|
89
89
|
readonly get: "/v1/nba/opponent-quality";
|
|
90
90
|
};
|
|
91
91
|
readonly pbp: {
|
|
92
|
-
/** Get
|
|
92
|
+
/** Get NBA lineup totals, player stats and lineups. `POST /v1/nba/pbp/enhanced-stats` · `stats:read` */
|
|
93
93
|
readonly enhancedStats: "POST /v1/nba/pbp/enhanced-stats";
|
|
94
|
-
/**
|
|
94
|
+
/** List NBA five-man lineups. `POST /v1/nba/pbp/lineup/combos` · `stats:read` */
|
|
95
95
|
readonly lineupCombos: "POST /v1/nba/pbp/lineup/combos";
|
|
96
|
-
/** Get NBA
|
|
96
|
+
/** Get NBA player stats from lineups. `POST /v1/nba/pbp/lineup/players` · `stats:read` */
|
|
97
97
|
readonly lineupPlayers: "POST /v1/nba/pbp/lineup/players";
|
|
98
|
-
/** Get NBA lineup
|
|
98
|
+
/** Get NBA lineup totals and four factors. `POST /v1/nba/pbp/lineup/summary` · `stats:read` */
|
|
99
99
|
readonly lineupSummary: "POST /v1/nba/pbp/lineup/summary";
|
|
100
|
-
/**
|
|
100
|
+
/** List NBA play-by-play endpoints and options. `GET /v1/nba/pbp/manifest` · `stats:read` */
|
|
101
101
|
readonly manifest: "/v1/nba/pbp/manifest";
|
|
102
|
-
/** Get
|
|
102
|
+
/** Get an NBA player's season game log. `GET /v1/nba/pbp/player-log` · `stats:read` */
|
|
103
103
|
readonly playerLog: "/v1/nba/pbp/player-log";
|
|
104
|
-
/** Get
|
|
104
|
+
/** Get an NBA player's stats with and without teammates. `POST /v1/nba/pbp/player-wowy` · `stats:read` */
|
|
105
105
|
readonly playerWowy: "POST /v1/nba/pbp/player-wowy";
|
|
106
|
-
/**
|
|
106
|
+
/** List NBA players who played in a season. `GET /v1/nba/pbp/players-by-season` · `stats:read` */
|
|
107
107
|
readonly playersBySeason: "/v1/nba/pbp/players-by-season";
|
|
108
|
-
/** Get
|
|
108
|
+
/** Get NBA season totals for every player or team. `GET /v1/nba/pbp/season-totals` · `stats:read` */
|
|
109
109
|
readonly seasonTotals: "/v1/nba/pbp/season-totals";
|
|
110
|
-
/** Get
|
|
110
|
+
/** Get an NBA team's season game log. `GET /v1/nba/pbp/team-log` · `stats:read` */
|
|
111
111
|
readonly teamLog: "/v1/nba/pbp/team-log";
|
|
112
|
-
/** Get NBA
|
|
112
|
+
/** Get NBA on/off stats for player combinations. `POST /v1/nba/pbp/wowy-combos-stats` · `stats:read` */
|
|
113
113
|
readonly wowyCombosStats: "POST /v1/nba/pbp/wowy-combos-stats";
|
|
114
114
|
};
|
|
115
115
|
readonly players: {
|
|
@@ -143,7 +143,7 @@ export declare const methods: {
|
|
|
143
143
|
readonly zts: "/v1/nba/players/zts";
|
|
144
144
|
/** Get an NBA player. `GET /v1/nba/players/{player_id}` · `stats:read` */
|
|
145
145
|
readonly byPlayerId: "/v1/nba/players/{player_id}";
|
|
146
|
-
/** Get
|
|
146
|
+
/** Get an NBA player's shooting by distance. `GET /v1/nba/players/{player_id}/distance-analysis` · `stats:read` */
|
|
147
147
|
readonly byPlayerIdDistanceAnalysis: "/v1/nba/players/{player_id}/distance-analysis";
|
|
148
148
|
/** Get a player's shots for the interactive shot map. `GET /v1/nba/players/{player_id}/shots` · `stats:read` */
|
|
149
149
|
readonly byPlayerIdShots: "/v1/nba/players/{player_id}/shots";
|
|
@@ -159,7 +159,7 @@ export declare const methods: {
|
|
|
159
159
|
readonly seriesBySeriesIdGames: "/v1/nba/playoffs/series/{series_id}/games";
|
|
160
160
|
};
|
|
161
161
|
readonly roster: {
|
|
162
|
-
/** Get
|
|
162
|
+
/** Get an NBA team's roster by season. `GET /v1/nba/roster` · `stats:read` */
|
|
163
163
|
readonly get: "/v1/nba/roster";
|
|
164
164
|
};
|
|
165
165
|
readonly rosterShapes: {
|
|
@@ -167,11 +167,11 @@ export declare const methods: {
|
|
|
167
167
|
readonly byDocKey: "/v1/nba/roster-shapes/{doc_key}";
|
|
168
168
|
};
|
|
169
169
|
readonly shotChart: {
|
|
170
|
-
/** Get NBA league
|
|
170
|
+
/** Get NBA league shooting by zone. `GET /v1/nba/shot-chart/league` · `stats:read` */
|
|
171
171
|
readonly league: "/v1/nba/shot-chart/league";
|
|
172
|
-
/** Get
|
|
172
|
+
/** Get an NBA player's shot chart. `GET /v1/nba/shot-chart/player` · `stats:read` */
|
|
173
173
|
readonly player: "/v1/nba/shot-chart/player";
|
|
174
|
-
/** Get
|
|
174
|
+
/** Get an NBA team's shot chart. `GET /v1/nba/shot-chart/team` · `stats:read` */
|
|
175
175
|
readonly team: "/v1/nba/shot-chart/team";
|
|
176
176
|
};
|
|
177
177
|
readonly shotQuality: {
|
|
@@ -189,7 +189,7 @@ export declare const methods: {
|
|
|
189
189
|
readonly shots: {
|
|
190
190
|
/** List NBA shot matchups. `GET /v1/nba/shots` · `stats:read` */
|
|
191
191
|
readonly get: "/v1/nba/shots";
|
|
192
|
-
/** List the
|
|
192
|
+
/** List the seasons and teams for shot search. `GET /v1/nba/shots/filters` · `stats:read` */
|
|
193
193
|
readonly filters: "/v1/nba/shots/filters";
|
|
194
194
|
};
|
|
195
195
|
readonly standings: {
|
|
@@ -197,7 +197,7 @@ export declare const methods: {
|
|
|
197
197
|
readonly get: "/v1/nba/standings";
|
|
198
198
|
};
|
|
199
199
|
readonly stats: {
|
|
200
|
-
/** Get the full NBA player stats
|
|
200
|
+
/** Get the full NBA player stats dataset. `GET /v1/nba/stats/dataset` · `stats:read` */
|
|
201
201
|
readonly dataset: "/v1/nba/stats/dataset";
|
|
202
202
|
/** Query the NBA player stats table. `GET /v1/nba/stats/query` · `stats:read` */
|
|
203
203
|
readonly query: "/v1/nba/stats/query";
|
|
@@ -255,7 +255,7 @@ export declare const methods: {
|
|
|
255
255
|
};
|
|
256
256
|
readonly wnba: {
|
|
257
257
|
readonly leagueBaselines: {
|
|
258
|
-
/** WNBA league
|
|
258
|
+
/** Get WNBA league averages by season. `GET /v1/wnba/league-baselines` · `stats:read` */
|
|
259
259
|
readonly get: "/v1/wnba/league-baselines";
|
|
260
260
|
};
|
|
261
261
|
readonly live: {
|
|
@@ -269,31 +269,31 @@ export declare const methods: {
|
|
|
269
269
|
readonly playsByEventId: "/v1/wnba/live/plays/{event_id}";
|
|
270
270
|
};
|
|
271
271
|
readonly opponentQuality: {
|
|
272
|
-
/** WNBA teams
|
|
272
|
+
/** List WNBA teams in a rating tier. `GET /v1/wnba/opponent-quality` · `stats:read` */
|
|
273
273
|
readonly get: "/v1/wnba/opponent-quality";
|
|
274
274
|
};
|
|
275
275
|
readonly pbp: {
|
|
276
|
-
/** Get
|
|
276
|
+
/** Get WNBA lineup totals, player stats and lineups. `POST /v1/wnba/pbp/enhanced-stats` · `stats:read` */
|
|
277
277
|
readonly enhancedStats: "POST /v1/wnba/pbp/enhanced-stats";
|
|
278
|
-
/**
|
|
278
|
+
/** List WNBA five-man lineups. `POST /v1/wnba/pbp/lineup/combos` · `stats:read` */
|
|
279
279
|
readonly lineupCombos: "POST /v1/wnba/pbp/lineup/combos";
|
|
280
|
-
/** Get WNBA
|
|
280
|
+
/** Get WNBA player stats from lineups. `POST /v1/wnba/pbp/lineup/players` · `stats:read` */
|
|
281
281
|
readonly lineupPlayers: "POST /v1/wnba/pbp/lineup/players";
|
|
282
|
-
/** Get WNBA lineup
|
|
282
|
+
/** Get WNBA lineup totals and four factors. `POST /v1/wnba/pbp/lineup/summary` · `stats:read` */
|
|
283
283
|
readonly lineupSummary: "POST /v1/wnba/pbp/lineup/summary";
|
|
284
|
-
/**
|
|
284
|
+
/** List WNBA play-by-play endpoints and options. `GET /v1/wnba/pbp/manifest` · `stats:read` */
|
|
285
285
|
readonly manifest: "/v1/wnba/pbp/manifest";
|
|
286
|
-
/** Get
|
|
286
|
+
/** Get a WNBA player's season game log. `GET /v1/wnba/pbp/player-log` · `stats:read` */
|
|
287
287
|
readonly playerLog: "/v1/wnba/pbp/player-log";
|
|
288
|
-
/** Get
|
|
288
|
+
/** Get a WNBA player's stats with and without teammates. `POST /v1/wnba/pbp/player-wowy` · `stats:read` */
|
|
289
289
|
readonly playerWowy: "POST /v1/wnba/pbp/player-wowy";
|
|
290
|
-
/**
|
|
290
|
+
/** List WNBA players who played in a season. `GET /v1/wnba/pbp/players-by-season` · `stats:read` */
|
|
291
291
|
readonly playersBySeason: "/v1/wnba/pbp/players-by-season";
|
|
292
|
-
/** Get
|
|
292
|
+
/** Get WNBA season totals for every player or team. `GET /v1/wnba/pbp/season-totals` · `stats:read` */
|
|
293
293
|
readonly seasonTotals: "/v1/wnba/pbp/season-totals";
|
|
294
|
-
/** Get
|
|
294
|
+
/** Get a WNBA team's season game log. `GET /v1/wnba/pbp/team-log` · `stats:read` */
|
|
295
295
|
readonly teamLog: "/v1/wnba/pbp/team-log";
|
|
296
|
-
/** Get WNBA
|
|
296
|
+
/** Get WNBA on/off stats for player combinations. `POST /v1/wnba/pbp/wowy-combos-stats` · `stats:read` */
|
|
297
297
|
readonly wowyCombosStats: "POST /v1/wnba/pbp/wowy-combos-stats";
|
|
298
298
|
};
|
|
299
299
|
readonly players: {
|
|
@@ -305,11 +305,11 @@ export declare const methods: {
|
|
|
305
305
|
readonly get: "/v1/wnba/playoffs";
|
|
306
306
|
};
|
|
307
307
|
readonly shotChart: {
|
|
308
|
-
/** Get WNBA league
|
|
308
|
+
/** Get WNBA league shooting by zone. `GET /v1/wnba/shot-chart/league` · `stats:read` */
|
|
309
309
|
readonly league: "/v1/wnba/shot-chart/league";
|
|
310
|
-
/** Get
|
|
310
|
+
/** Get a WNBA player's shot chart. `GET /v1/wnba/shot-chart/player` · `stats:read` */
|
|
311
311
|
readonly player: "/v1/wnba/shot-chart/player";
|
|
312
|
-
/** Get
|
|
312
|
+
/** Get a WNBA team's shot chart. `GET /v1/wnba/shot-chart/team` · `stats:read` */
|
|
313
313
|
readonly team: "/v1/wnba/shot-chart/team";
|
|
314
314
|
};
|
|
315
315
|
readonly stats: {
|
|
@@ -321,7 +321,7 @@ export declare const methods: {
|
|
|
321
321
|
readonly percentiles: "/v1/wnba/stats/percentiles";
|
|
322
322
|
/** List WNBA season totals. `GET /v1/wnba/stats/season-totals` · `stats:read` */
|
|
323
323
|
readonly seasonTotals: "/v1/wnba/stats/season-totals";
|
|
324
|
-
/** List WNBA VPM
|
|
324
|
+
/** List WNBA VPM. `GET /v1/wnba/stats/vpm` · `stats:read` */
|
|
325
325
|
readonly vpm: "/v1/wnba/stats/vpm";
|
|
326
326
|
};
|
|
327
327
|
readonly teams: {
|
|
@@ -47,7 +47,7 @@ export interface paths {
|
|
|
47
47
|
cookie?: never;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
|
-
* List
|
|
50
|
+
* List players online in SixRings games
|
|
51
51
|
* @description **API key scope:** `games:read`.
|
|
52
52
|
*/
|
|
53
53
|
get: operations["getAppsSixringsGamesPresence"];
|
|
@@ -87,7 +87,7 @@ export interface paths {
|
|
|
87
87
|
cookie?: never;
|
|
88
88
|
};
|
|
89
89
|
/**
|
|
90
|
-
* Get
|
|
90
|
+
* Get your SixRings trophy case
|
|
91
91
|
* @description **API key scope:** `games:read`.
|
|
92
92
|
*/
|
|
93
93
|
get: operations["getAppsSixringsProfilesMe"];
|
|
@@ -107,7 +107,7 @@ export interface paths {
|
|
|
107
107
|
cookie?: never;
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
|
-
* Get the
|
|
110
|
+
* Get the Solo SixRings player count
|
|
111
111
|
* @description **API key scope:** `games:read`.
|
|
112
112
|
*/
|
|
113
113
|
get: operations["getAppsSixringsSoloPresence"];
|
|
@@ -127,7 +127,7 @@ export interface paths {
|
|
|
127
127
|
cookie?: never;
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
|
-
* List NBA free
|
|
130
|
+
* List NBA free agents
|
|
131
131
|
* @description **API key scope:** `stats:read`.
|
|
132
132
|
*/
|
|
133
133
|
get: operations["getNbaContractsFreeAgency"];
|
|
@@ -167,7 +167,7 @@ export interface paths {
|
|
|
167
167
|
cookie?: never;
|
|
168
168
|
};
|
|
169
169
|
/**
|
|
170
|
-
* Get
|
|
170
|
+
* Get an NBA player's contract totals
|
|
171
171
|
* @description **API key scope:** `stats:read`.
|
|
172
172
|
*/
|
|
173
173
|
get: operations["getNbaContractsPlayersByPlayerIdAggregate"];
|
|
@@ -267,7 +267,7 @@ export interface paths {
|
|
|
267
267
|
cookie?: never;
|
|
268
268
|
};
|
|
269
269
|
/**
|
|
270
|
-
* List
|
|
270
|
+
* List NBA draft prospects' high school shooting
|
|
271
271
|
* @description **API key scope:** `stats:read`.
|
|
272
272
|
*/
|
|
273
273
|
get: operations["getNbaDraftHsShooting"];
|
|
@@ -327,7 +327,7 @@ export interface paths {
|
|
|
327
327
|
cookie?: never;
|
|
328
328
|
};
|
|
329
329
|
/**
|
|
330
|
-
* List NBA draft
|
|
330
|
+
* List NBA draft prospect videos
|
|
331
331
|
* @description **API key scope:** `stats:read`.
|
|
332
332
|
*/
|
|
333
333
|
get: operations["getNbaDraftYoutube"];
|
|
@@ -347,7 +347,7 @@ export interface paths {
|
|
|
347
347
|
cookie?: never;
|
|
348
348
|
};
|
|
349
349
|
/**
|
|
350
|
-
* Get
|
|
350
|
+
* Get an NBA game's box score
|
|
351
351
|
* @description **API key scope:** `stats:read`.
|
|
352
352
|
*/
|
|
353
353
|
get: operations["getNbaGamesByGameIdGamelog"];
|
|
@@ -407,7 +407,7 @@ export interface paths {
|
|
|
407
407
|
cookie?: never;
|
|
408
408
|
};
|
|
409
409
|
/**
|
|
410
|
-
* List NBA injuries for
|
|
410
|
+
* List NBA injuries for a date
|
|
411
411
|
* @description **API key scope:** `stats:read`.
|
|
412
412
|
*/
|
|
413
413
|
get: operations["getNbaInjuries"];
|
|
@@ -427,7 +427,7 @@ export interface paths {
|
|
|
427
427
|
cookie?: never;
|
|
428
428
|
};
|
|
429
429
|
/**
|
|
430
|
-
*
|
|
430
|
+
* Get NBA league averages by season
|
|
431
431
|
* @description **API key scope:** `stats:read`.
|
|
432
432
|
*/
|
|
433
433
|
get: operations["getNbaLeagueBaselines"];
|
|
@@ -487,7 +487,7 @@ export interface paths {
|
|
|
487
487
|
cookie?: never;
|
|
488
488
|
};
|
|
489
489
|
/**
|
|
490
|
-
* Get
|
|
490
|
+
* Get a live NBA game's box score
|
|
491
491
|
* @description **API key scope:** `stats:read`.
|
|
492
492
|
*/
|
|
493
493
|
get: operations["getNbaLiveGamesByGameIdBoxScore"];
|
|
@@ -587,8 +587,10 @@ export interface paths {
|
|
|
587
587
|
cookie?: never;
|
|
588
588
|
};
|
|
589
589
|
/**
|
|
590
|
-
*
|
|
590
|
+
* List NBA teams in a rating tier
|
|
591
591
|
* @description **API key scope:** `stats:read`.
|
|
592
|
+
*
|
|
593
|
+
* Teams in the top, middle, or bottom of the league by ORtg, DRtg, or NetRtg, per season.
|
|
592
594
|
*/
|
|
593
595
|
get: operations["getNbaOpponentQuality"];
|
|
594
596
|
put?: never;
|
|
@@ -609,7 +611,7 @@ export interface paths {
|
|
|
609
611
|
get?: never;
|
|
610
612
|
put?: never;
|
|
611
613
|
/**
|
|
612
|
-
* Get
|
|
614
|
+
* Get NBA lineup totals, player stats and lineups
|
|
613
615
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
614
616
|
*/
|
|
615
617
|
post: operations["postNbaPbpEnhancedStats"];
|
|
@@ -629,7 +631,7 @@ export interface paths {
|
|
|
629
631
|
get?: never;
|
|
630
632
|
put?: never;
|
|
631
633
|
/**
|
|
632
|
-
*
|
|
634
|
+
* List NBA five-man lineups
|
|
633
635
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
634
636
|
*/
|
|
635
637
|
post: operations["postNbaPbpLineupCombos"];
|
|
@@ -649,7 +651,7 @@ export interface paths {
|
|
|
649
651
|
get?: never;
|
|
650
652
|
put?: never;
|
|
651
653
|
/**
|
|
652
|
-
* Get NBA
|
|
654
|
+
* Get NBA player stats from lineups
|
|
653
655
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
654
656
|
*/
|
|
655
657
|
post: operations["postNbaPbpLineupPlayers"];
|
|
@@ -669,7 +671,7 @@ export interface paths {
|
|
|
669
671
|
get?: never;
|
|
670
672
|
put?: never;
|
|
671
673
|
/**
|
|
672
|
-
* Get NBA lineup
|
|
674
|
+
* Get NBA lineup totals and four factors
|
|
673
675
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
674
676
|
*/
|
|
675
677
|
post: operations["postNbaPbpLineupSummary"];
|
|
@@ -687,7 +689,7 @@ export interface paths {
|
|
|
687
689
|
cookie?: never;
|
|
688
690
|
};
|
|
689
691
|
/**
|
|
690
|
-
*
|
|
692
|
+
* List NBA play-by-play endpoints and options
|
|
691
693
|
* @description **API key scope:** `stats:read`.
|
|
692
694
|
*/
|
|
693
695
|
get: operations["getNbaPbpManifest"];
|
|
@@ -707,7 +709,7 @@ export interface paths {
|
|
|
707
709
|
cookie?: never;
|
|
708
710
|
};
|
|
709
711
|
/**
|
|
710
|
-
* Get
|
|
712
|
+
* Get an NBA player's season game log
|
|
711
713
|
* @description **API key scope:** `stats:read`.
|
|
712
714
|
*/
|
|
713
715
|
get: operations["getNbaPbpPlayerLog"];
|
|
@@ -729,7 +731,7 @@ export interface paths {
|
|
|
729
731
|
get?: never;
|
|
730
732
|
put?: never;
|
|
731
733
|
/**
|
|
732
|
-
* Get
|
|
734
|
+
* Get an NBA player's stats with and without teammates
|
|
733
735
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
734
736
|
*/
|
|
735
737
|
post: operations["postNbaPbpPlayerWowy"];
|
|
@@ -747,7 +749,7 @@ export interface paths {
|
|
|
747
749
|
cookie?: never;
|
|
748
750
|
};
|
|
749
751
|
/**
|
|
750
|
-
*
|
|
752
|
+
* List NBA players who played in a season
|
|
751
753
|
* @description **API key scope:** `stats:read`.
|
|
752
754
|
*/
|
|
753
755
|
get: operations["getNbaPbpPlayersBySeason"];
|
|
@@ -767,7 +769,7 @@ export interface paths {
|
|
|
767
769
|
cookie?: never;
|
|
768
770
|
};
|
|
769
771
|
/**
|
|
770
|
-
* Get
|
|
772
|
+
* Get NBA season totals for every player or team
|
|
771
773
|
* @description **API key scope:** `stats:read`.
|
|
772
774
|
*/
|
|
773
775
|
get: operations["getNbaPbpSeasonTotals"];
|
|
@@ -787,7 +789,7 @@ export interface paths {
|
|
|
787
789
|
cookie?: never;
|
|
788
790
|
};
|
|
789
791
|
/**
|
|
790
|
-
* Get
|
|
792
|
+
* Get an NBA team's season game log
|
|
791
793
|
* @description **API key scope:** `stats:read`.
|
|
792
794
|
*/
|
|
793
795
|
get: operations["getNbaPbpTeamLog"];
|
|
@@ -809,7 +811,7 @@ export interface paths {
|
|
|
809
811
|
get?: never;
|
|
810
812
|
put?: never;
|
|
811
813
|
/**
|
|
812
|
-
* Get NBA
|
|
814
|
+
* Get NBA on/off stats for player combinations
|
|
813
815
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
814
816
|
*/
|
|
815
817
|
post: operations["postNbaPbpWowyCombosStats"];
|
|
@@ -1127,7 +1129,7 @@ export interface paths {
|
|
|
1127
1129
|
cookie?: never;
|
|
1128
1130
|
};
|
|
1129
1131
|
/**
|
|
1130
|
-
* Get
|
|
1132
|
+
* Get an NBA player's shooting by distance
|
|
1131
1133
|
* @description **API key scope:** `stats:read`.
|
|
1132
1134
|
*/
|
|
1133
1135
|
get: operations["getNbaPlayersByPlayerIdDistanceAnalysis"];
|
|
@@ -1247,8 +1249,10 @@ export interface paths {
|
|
|
1247
1249
|
cookie?: never;
|
|
1248
1250
|
};
|
|
1249
1251
|
/**
|
|
1250
|
-
* Get
|
|
1252
|
+
* Get an NBA team's roster by season
|
|
1251
1253
|
* @description **API key scope:** `stats:read`.
|
|
1254
|
+
*
|
|
1255
|
+
* Players with minutes by default. `include=all` adds players who never played.
|
|
1252
1256
|
*/
|
|
1253
1257
|
get: operations["getNbaRoster"];
|
|
1254
1258
|
put?: never;
|
|
@@ -1287,7 +1291,7 @@ export interface paths {
|
|
|
1287
1291
|
cookie?: never;
|
|
1288
1292
|
};
|
|
1289
1293
|
/**
|
|
1290
|
-
* Get NBA league
|
|
1294
|
+
* Get NBA league shooting by zone
|
|
1291
1295
|
* @description **API key scope:** `stats:read`.
|
|
1292
1296
|
*/
|
|
1293
1297
|
get: operations["getNbaShotChartLeague"];
|
|
@@ -1307,7 +1311,7 @@ export interface paths {
|
|
|
1307
1311
|
cookie?: never;
|
|
1308
1312
|
};
|
|
1309
1313
|
/**
|
|
1310
|
-
* Get
|
|
1314
|
+
* Get an NBA player's shot chart
|
|
1311
1315
|
* @description **API key scope:** `stats:read`.
|
|
1312
1316
|
*/
|
|
1313
1317
|
get: operations["getNbaShotChartPlayer"];
|
|
@@ -1327,8 +1331,10 @@ export interface paths {
|
|
|
1327
1331
|
cookie?: never;
|
|
1328
1332
|
};
|
|
1329
1333
|
/**
|
|
1330
|
-
* Get
|
|
1334
|
+
* Get an NBA team's shot chart
|
|
1331
1335
|
* @description **API key scope:** `stats:read`.
|
|
1336
|
+
*
|
|
1337
|
+
* The team's own shots, or the shots taken against it.
|
|
1332
1338
|
*/
|
|
1333
1339
|
get: operations["getNbaShotChartTeam"];
|
|
1334
1340
|
put?: never;
|
|
@@ -1467,7 +1473,7 @@ export interface paths {
|
|
|
1467
1473
|
cookie?: never;
|
|
1468
1474
|
};
|
|
1469
1475
|
/**
|
|
1470
|
-
* List the
|
|
1476
|
+
* List the seasons and teams for shot search
|
|
1471
1477
|
* @description **API key scope:** `stats:read`.
|
|
1472
1478
|
*/
|
|
1473
1479
|
get: operations["getNbaShotsFilters"];
|
|
@@ -1507,7 +1513,7 @@ export interface paths {
|
|
|
1507
1513
|
cookie?: never;
|
|
1508
1514
|
};
|
|
1509
1515
|
/**
|
|
1510
|
-
* Get the full NBA player stats
|
|
1516
|
+
* Get the full NBA player stats dataset
|
|
1511
1517
|
* @description **API key scope:** `stats:read`.
|
|
1512
1518
|
*/
|
|
1513
1519
|
get: operations["getNbaStatsDataset"];
|
|
@@ -1987,7 +1993,7 @@ export interface paths {
|
|
|
1987
1993
|
cookie?: never;
|
|
1988
1994
|
};
|
|
1989
1995
|
/**
|
|
1990
|
-
* WNBA league
|
|
1996
|
+
* Get WNBA league averages by season
|
|
1991
1997
|
* @description **API key scope:** `stats:read`.
|
|
1992
1998
|
*/
|
|
1993
1999
|
get: operations["getWnbaLeagueBaselines"];
|
|
@@ -2087,8 +2093,10 @@ export interface paths {
|
|
|
2087
2093
|
cookie?: never;
|
|
2088
2094
|
};
|
|
2089
2095
|
/**
|
|
2090
|
-
* WNBA teams
|
|
2096
|
+
* List WNBA teams in a rating tier
|
|
2091
2097
|
* @description **API key scope:** `stats:read`.
|
|
2098
|
+
*
|
|
2099
|
+
* Teams in the top, middle, or bottom of the league by ORtg, DRtg, or NetRtg, per season.
|
|
2092
2100
|
*/
|
|
2093
2101
|
get: operations["getWnbaOpponentQuality"];
|
|
2094
2102
|
put?: never;
|
|
@@ -2109,7 +2117,7 @@ export interface paths {
|
|
|
2109
2117
|
get?: never;
|
|
2110
2118
|
put?: never;
|
|
2111
2119
|
/**
|
|
2112
|
-
* Get
|
|
2120
|
+
* Get WNBA lineup totals, player stats and lineups
|
|
2113
2121
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
2114
2122
|
*/
|
|
2115
2123
|
post: operations["postWnbaPbpEnhancedStats"];
|
|
@@ -2129,7 +2137,7 @@ export interface paths {
|
|
|
2129
2137
|
get?: never;
|
|
2130
2138
|
put?: never;
|
|
2131
2139
|
/**
|
|
2132
|
-
*
|
|
2140
|
+
* List WNBA five-man lineups
|
|
2133
2141
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
2134
2142
|
*/
|
|
2135
2143
|
post: operations["postWnbaPbpLineupCombos"];
|
|
@@ -2149,7 +2157,7 @@ export interface paths {
|
|
|
2149
2157
|
get?: never;
|
|
2150
2158
|
put?: never;
|
|
2151
2159
|
/**
|
|
2152
|
-
* Get WNBA
|
|
2160
|
+
* Get WNBA player stats from lineups
|
|
2153
2161
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
2154
2162
|
*/
|
|
2155
2163
|
post: operations["postWnbaPbpLineupPlayers"];
|
|
@@ -2169,7 +2177,7 @@ export interface paths {
|
|
|
2169
2177
|
get?: never;
|
|
2170
2178
|
put?: never;
|
|
2171
2179
|
/**
|
|
2172
|
-
* Get WNBA lineup
|
|
2180
|
+
* Get WNBA lineup totals and four factors
|
|
2173
2181
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
2174
2182
|
*/
|
|
2175
2183
|
post: operations["postWnbaPbpLineupSummary"];
|
|
@@ -2187,7 +2195,7 @@ export interface paths {
|
|
|
2187
2195
|
cookie?: never;
|
|
2188
2196
|
};
|
|
2189
2197
|
/**
|
|
2190
|
-
*
|
|
2198
|
+
* List WNBA play-by-play endpoints and options
|
|
2191
2199
|
* @description **API key scope:** `stats:read`.
|
|
2192
2200
|
*/
|
|
2193
2201
|
get: operations["getWnbaPbpManifest"];
|
|
@@ -2207,7 +2215,7 @@ export interface paths {
|
|
|
2207
2215
|
cookie?: never;
|
|
2208
2216
|
};
|
|
2209
2217
|
/**
|
|
2210
|
-
* Get
|
|
2218
|
+
* Get a WNBA player's season game log
|
|
2211
2219
|
* @description **API key scope:** `stats:read`.
|
|
2212
2220
|
*/
|
|
2213
2221
|
get: operations["getWnbaPbpPlayerLog"];
|
|
@@ -2229,7 +2237,7 @@ export interface paths {
|
|
|
2229
2237
|
get?: never;
|
|
2230
2238
|
put?: never;
|
|
2231
2239
|
/**
|
|
2232
|
-
* Get
|
|
2240
|
+
* Get a WNBA player's stats with and without teammates
|
|
2233
2241
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
2234
2242
|
*/
|
|
2235
2243
|
post: operations["postWnbaPbpPlayerWowy"];
|
|
@@ -2247,7 +2255,7 @@ export interface paths {
|
|
|
2247
2255
|
cookie?: never;
|
|
2248
2256
|
};
|
|
2249
2257
|
/**
|
|
2250
|
-
*
|
|
2258
|
+
* List WNBA players who played in a season
|
|
2251
2259
|
* @description **API key scope:** `stats:read`.
|
|
2252
2260
|
*/
|
|
2253
2261
|
get: operations["getWnbaPbpPlayersBySeason"];
|
|
@@ -2267,7 +2275,7 @@ export interface paths {
|
|
|
2267
2275
|
cookie?: never;
|
|
2268
2276
|
};
|
|
2269
2277
|
/**
|
|
2270
|
-
* Get
|
|
2278
|
+
* Get WNBA season totals for every player or team
|
|
2271
2279
|
* @description **API key scope:** `stats:read`.
|
|
2272
2280
|
*/
|
|
2273
2281
|
get: operations["getWnbaPbpSeasonTotals"];
|
|
@@ -2287,7 +2295,7 @@ export interface paths {
|
|
|
2287
2295
|
cookie?: never;
|
|
2288
2296
|
};
|
|
2289
2297
|
/**
|
|
2290
|
-
* Get
|
|
2298
|
+
* Get a WNBA team's season game log
|
|
2291
2299
|
* @description **API key scope:** `stats:read`.
|
|
2292
2300
|
*/
|
|
2293
2301
|
get: operations["getWnbaPbpTeamLog"];
|
|
@@ -2309,7 +2317,7 @@ export interface paths {
|
|
|
2309
2317
|
get?: never;
|
|
2310
2318
|
put?: never;
|
|
2311
2319
|
/**
|
|
2312
|
-
* Get WNBA
|
|
2320
|
+
* Get WNBA on/off stats for player combinations
|
|
2313
2321
|
* @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
|
|
2314
2322
|
*/
|
|
2315
2323
|
post: operations["postWnbaPbpWowyCombosStats"];
|
|
@@ -2367,7 +2375,7 @@ export interface paths {
|
|
|
2367
2375
|
cookie?: never;
|
|
2368
2376
|
};
|
|
2369
2377
|
/**
|
|
2370
|
-
* Get WNBA league
|
|
2378
|
+
* Get WNBA league shooting by zone
|
|
2371
2379
|
* @description **API key scope:** `stats:read`.
|
|
2372
2380
|
*/
|
|
2373
2381
|
get: operations["getWnbaShotChartLeague"];
|
|
@@ -2387,7 +2395,7 @@ export interface paths {
|
|
|
2387
2395
|
cookie?: never;
|
|
2388
2396
|
};
|
|
2389
2397
|
/**
|
|
2390
|
-
* Get
|
|
2398
|
+
* Get a WNBA player's shot chart
|
|
2391
2399
|
* @description **API key scope:** `stats:read`.
|
|
2392
2400
|
*/
|
|
2393
2401
|
get: operations["getWnbaShotChartPlayer"];
|
|
@@ -2407,8 +2415,10 @@ export interface paths {
|
|
|
2407
2415
|
cookie?: never;
|
|
2408
2416
|
};
|
|
2409
2417
|
/**
|
|
2410
|
-
* Get
|
|
2418
|
+
* Get a WNBA team's shot chart
|
|
2411
2419
|
* @description **API key scope:** `stats:read`.
|
|
2420
|
+
*
|
|
2421
|
+
* The team's own shots, or the shots taken against it.
|
|
2412
2422
|
*/
|
|
2413
2423
|
get: operations["getWnbaShotChartTeam"];
|
|
2414
2424
|
put?: never;
|
|
@@ -2507,7 +2517,7 @@ export interface paths {
|
|
|
2507
2517
|
cookie?: never;
|
|
2508
2518
|
};
|
|
2509
2519
|
/**
|
|
2510
|
-
* List WNBA VPM
|
|
2520
|
+
* List WNBA VPM
|
|
2511
2521
|
* @description **API key scope:** `stats:read`.
|
|
2512
2522
|
*/
|
|
2513
2523
|
get: operations["getWnbaStatsVpm"];
|
|
@@ -3096,20 +3106,22 @@ export interface components {
|
|
|
3096
3106
|
include_detail?: boolean;
|
|
3097
3107
|
/** @description Also return `game_log` (one line per counted game: what the filters kept of it and its final score) and `record` (wins and losses in the games the filters touched). Listed in the manifest's options as `include_games`. */
|
|
3098
3108
|
include_games?: boolean;
|
|
3099
|
-
/** @description Only possessions at these leverage levels: how much the possession's result can move the offense's win probability (cuts at 0.02, 0.055 and 0.10; about 25%, 70%, 4% and 1% of possessions). NBA only.
|
|
3109
|
+
/** @description Only possessions at these leverage levels: how much the possession's result can move the offense's win probability (cuts at 0.02, 0.055 and 0.10; about 25%, 70%, 4% and 1% of possessions). NBA only. Listed in the manifest's options as `leverage`. */
|
|
3100
3110
|
leverage?: ("low" | "medium" | "high" | "very_high")[];
|
|
3101
3111
|
/**
|
|
3102
3112
|
* @description Only the team's home or away games, from its game logs. A neutral site (the 2020 bubble, Cup finals, international games) counts for the NBA's designated home team. A game the logs do not list is left out and counted in quality.location_unknown_games. Listed in the manifest's options as `location`.
|
|
3103
3113
|
* @enum {string}
|
|
3104
3114
|
*/
|
|
3105
3115
|
location?: "home" | "away";
|
|
3106
|
-
/** @description Only possessions the team started leading by min to max points (negative: trailing); either end may be left out. {min: -5, max: 5} is within five either way. Decided per possession from the score before its first play.
|
|
3116
|
+
/** @description Only possessions the team started leading by min to max points (negative: trailing); either end may be left out. {min: -5, max: 5} is within five either way. Decided per possession from the score before its first play. Listed in the manifest's options as `margin`. */
|
|
3107
3117
|
margin?: {
|
|
3108
3118
|
max?: number;
|
|
3109
3119
|
min?: number;
|
|
3110
3120
|
};
|
|
3111
3121
|
/** @description Only games in these calendar months (1-12), in any of the seasons: [12] is every December. Listed in the manifest's options as `months`. */
|
|
3112
3122
|
months?: number[];
|
|
3123
|
+
/** @description aWOWY's opponent adjustment (Ayomide Awoyemi, LUMA Basketball Research): the on/off states and lineups also count `oppadj_pts` on each side, the five opponents' ratings' share of that side's points (their defense on the team's possessions, their offense on theirs), with ratings fitted only on the three seasons before the game's (databallr's RAPM). Points minus oppadj_pts = points against an average opponent. Team totals are not adjusted. The answer's `opp_adjust` says whether it was applied. Listed in the manifest's options as `opp_adjust`. */
|
|
3124
|
+
opp_adjust?: boolean;
|
|
3113
3125
|
opp_filter?: {
|
|
3114
3126
|
/** @description Only games against these teams. */
|
|
3115
3127
|
opp_teams?: string[];
|
|
@@ -3174,6 +3186,14 @@ export interface components {
|
|
|
3174
3186
|
[key: string]: number;
|
|
3175
3187
|
};
|
|
3176
3188
|
}[];
|
|
3189
|
+
/** @description With `opp_adjust`: whether the opponent adjustment was counted (every season has opponent ratings) and how, or the seasons without ratings (then nothing is adjusted). */
|
|
3190
|
+
opp_adjust?: {
|
|
3191
|
+
applied: boolean;
|
|
3192
|
+
credit?: string;
|
|
3193
|
+
levels?: string;
|
|
3194
|
+
method?: string;
|
|
3195
|
+
missing_seasons?: number[];
|
|
3196
|
+
};
|
|
3177
3197
|
players?: ({
|
|
3178
3198
|
id: number;
|
|
3179
3199
|
minutes: number;
|
|
@@ -3258,14 +3278,14 @@ export interface components {
|
|
|
3258
3278
|
games_without?: number[];
|
|
3259
3279
|
/** @description Also return the detail counters (possession start origin, turnover and foul types, rebounds by shot type, assists by type and zone, per-player possession phase). Off by default: on the lineup-stints fast path they need a second file read. */
|
|
3260
3280
|
include_detail?: boolean;
|
|
3261
|
-
/** @description Only possessions at these leverage levels: how much the possession's result can move the offense's win probability (cuts at 0.02, 0.055 and 0.10; about 25%, 70%, 4% and 1% of possessions). NBA only.
|
|
3281
|
+
/** @description Only possessions at these leverage levels: how much the possession's result can move the offense's win probability (cuts at 0.02, 0.055 and 0.10; about 25%, 70%, 4% and 1% of possessions). NBA only. Listed in the manifest's options as `leverage`. */
|
|
3262
3282
|
leverage?: ("low" | "medium" | "high" | "very_high")[];
|
|
3263
3283
|
/**
|
|
3264
3284
|
* @description Only the team's home or away games, from its game logs. A neutral site (the 2020 bubble, Cup finals, international games) counts for the NBA's designated home team. A game the logs do not list is left out and counted in quality.location_unknown_games. Listed in the manifest's options as `location`.
|
|
3265
3285
|
* @enum {string}
|
|
3266
3286
|
*/
|
|
3267
3287
|
location?: "home" | "away";
|
|
3268
|
-
/** @description Only possessions the team started leading by min to max points (negative: trailing); either end may be left out. {min: -5, max: 5} is within five either way. Decided per possession from the score before its first play.
|
|
3288
|
+
/** @description Only possessions the team started leading by min to max points (negative: trailing); either end may be left out. {min: -5, max: 5} is within five either way. Decided per possession from the score before its first play. Listed in the manifest's options as `margin`. */
|
|
3269
3289
|
margin?: {
|
|
3270
3290
|
max?: number;
|
|
3271
3291
|
min?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databallr/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "TypeScript client for the databallr API (NBA and WNBA stats, SixRings)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"openapi-typescript": "7.13.0",
|
|
26
26
|
"publint": "0.3.25",
|
|
27
27
|
"typescript": "5.9.3",
|
|
28
|
-
"vite": "8.2.
|
|
29
|
-
"vitest": "4.1.
|
|
28
|
+
"vite": "8.2.6",
|
|
29
|
+
"vitest": "4.1.12",
|
|
30
30
|
"@databallr/api-schemas": "0.1.0"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|