@databallr/sdk 0.2.0 → 0.2.1
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/generated/methods.d.ts +47 -1
- package/dist/generated/methods.js +28 -1
- package/dist/generated/schema.d.ts +970 -93
- package/package.json +1 -1
|
@@ -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 = "05bc2e1baf0f";
|
|
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(...)`.
|
|
@@ -49,6 +49,8 @@ export declare const methods: {
|
|
|
49
49
|
readonly youtube: "/v1/nba/draft/youtube";
|
|
50
50
|
};
|
|
51
51
|
readonly games: {
|
|
52
|
+
/** Get a game's box score from the NBA live-data feed. `GET /v1/nba/games/{game_id}/gamelog` · `stats:read` */
|
|
53
|
+
readonly byGameIdGamelog: "/v1/nba/games/{game_id}/gamelog";
|
|
52
54
|
/** Get an NBA game's play-by-play. `GET /v1/nba/games/{game_id}/pbp` · `stats:read` */
|
|
53
55
|
readonly byGameIdPbp: "/v1/nba/games/{game_id}/pbp";
|
|
54
56
|
/** List play-by-play events for an NBA game. `GET /v1/nba/games/{game_id}/plays` · `stats:read` */
|
|
@@ -103,6 +105,8 @@ export declare const methods: {
|
|
|
103
105
|
readonly playerWowy: "POST /v1/nba/pbp/player-wowy";
|
|
104
106
|
/** Get NBA players appearing in a PBP season. `GET /v1/nba/pbp/players-by-season` · `stats:read` */
|
|
105
107
|
readonly playersBySeason: "/v1/nba/pbp/players-by-season";
|
|
108
|
+
/** Get every NBA player's or team's season totals from the play-by-play engine. `GET /v1/nba/pbp/season-totals` · `stats:read` */
|
|
109
|
+
readonly seasonTotals: "/v1/nba/pbp/season-totals";
|
|
106
110
|
/** Get one NBA team's game log for a season. `GET /v1/nba/pbp/team-log` · `stats:read` */
|
|
107
111
|
readonly teamLog: "/v1/nba/pbp/team-log";
|
|
108
112
|
/** Get NBA player on/off combinations. `POST /v1/nba/pbp/wowy-combos-stats` · `stats:read` */
|
|
@@ -163,6 +167,8 @@ export declare const methods: {
|
|
|
163
167
|
readonly byDocKey: "/v1/nba/roster-shapes/{doc_key}";
|
|
164
168
|
};
|
|
165
169
|
readonly shotChart: {
|
|
170
|
+
/** Get NBA league shot averages by zone, overall and by phase and NBA label. `GET /v1/nba/shot-chart/league` · `stats:read` */
|
|
171
|
+
readonly league: "/v1/nba/shot-chart/league";
|
|
166
172
|
/** Get one NBA player's shot chart coordinates. `GET /v1/nba/shot-chart/player` · `stats:read` */
|
|
167
173
|
readonly player: "/v1/nba/shot-chart/player";
|
|
168
174
|
/** Get one NBA team's shot chart coordinates (its own shots, or the shots taken against it). `GET /v1/nba/shot-chart/team` · `stats:read` */
|
|
@@ -248,6 +254,10 @@ export declare const methods: {
|
|
|
248
254
|
readonly tabOrder: "/v1/users/me/tab-order";
|
|
249
255
|
};
|
|
250
256
|
readonly wnba: {
|
|
257
|
+
readonly leagueBaselines: {
|
|
258
|
+
/** WNBA league-wide rates per season (the comparison base for any stat), from the engine's own totals. `GET /v1/wnba/league-baselines` · `stats:read` */
|
|
259
|
+
readonly get: "/v1/wnba/league-baselines";
|
|
260
|
+
};
|
|
251
261
|
readonly live: {
|
|
252
262
|
/** Get a WNBA live game center. `GET /v1/wnba/live/game-center/{event_id}` · `stats:read` */
|
|
253
263
|
readonly gameCenterByEventId: "/v1/wnba/live/game-center/{event_id}";
|
|
@@ -258,6 +268,34 @@ export declare const methods: {
|
|
|
258
268
|
/** List WNBA live plays for a game. `GET /v1/wnba/live/plays/{event_id}` · `stats:read` */
|
|
259
269
|
readonly playsByEventId: "/v1/wnba/live/plays/{event_id}";
|
|
260
270
|
};
|
|
271
|
+
readonly opponentQuality: {
|
|
272
|
+
/** WNBA teams ranking in a rating range (top, middle or bottom of the league by ORtg, DRtg or NetRtg), from the engine's own totals. `GET /v1/wnba/opponent-quality` · `stats:read` */
|
|
273
|
+
readonly get: "/v1/wnba/opponent-quality";
|
|
274
|
+
};
|
|
275
|
+
readonly pbp: {
|
|
276
|
+
/** Get combined WNBA PBP analytics. `POST /v1/wnba/pbp/enhanced-stats` · `stats:read` */
|
|
277
|
+
readonly enhancedStats: "POST /v1/wnba/pbp/enhanced-stats";
|
|
278
|
+
/** Get WNBA five-player lineup combinations. `POST /v1/wnba/pbp/lineup/combos` · `stats:read` */
|
|
279
|
+
readonly lineupCombos: "POST /v1/wnba/pbp/lineup/combos";
|
|
280
|
+
/** Get WNBA lineup player statistics. `POST /v1/wnba/pbp/lineup/players` · `stats:read` */
|
|
281
|
+
readonly lineupPlayers: "POST /v1/wnba/pbp/lineup/players";
|
|
282
|
+
/** Get WNBA lineup possession totals. `POST /v1/wnba/pbp/lineup/summary` · `stats:read` */
|
|
283
|
+
readonly lineupSummary: "POST /v1/wnba/pbp/lineup/summary";
|
|
284
|
+
/** Discover WNBA PBP analytics endpoints. `GET /v1/wnba/pbp/manifest` · `stats:read` */
|
|
285
|
+
readonly manifest: "/v1/wnba/pbp/manifest";
|
|
286
|
+
/** Get one WNBA player's game log for a season. `GET /v1/wnba/pbp/player-log` · `stats:read` */
|
|
287
|
+
readonly playerLog: "/v1/wnba/pbp/player-log";
|
|
288
|
+
/** Get one WNBA player's production across teammate on/off combinations. `POST /v1/wnba/pbp/player-wowy` · `stats:read` */
|
|
289
|
+
readonly playerWowy: "POST /v1/wnba/pbp/player-wowy";
|
|
290
|
+
/** Get WNBA players appearing in a PBP season. `GET /v1/wnba/pbp/players-by-season` · `stats:read` */
|
|
291
|
+
readonly playersBySeason: "/v1/wnba/pbp/players-by-season";
|
|
292
|
+
/** Get every WNBA player's or team's season totals from the play-by-play engine. `GET /v1/wnba/pbp/season-totals` · `stats:read` */
|
|
293
|
+
readonly seasonTotals: "/v1/wnba/pbp/season-totals";
|
|
294
|
+
/** Get one WNBA team's game log for a season. `GET /v1/wnba/pbp/team-log` · `stats:read` */
|
|
295
|
+
readonly teamLog: "/v1/wnba/pbp/team-log";
|
|
296
|
+
/** Get WNBA player on/off combinations. `POST /v1/wnba/pbp/wowy-combos-stats` · `stats:read` */
|
|
297
|
+
readonly wowyCombosStats: "POST /v1/wnba/pbp/wowy-combos-stats";
|
|
298
|
+
};
|
|
261
299
|
readonly players: {
|
|
262
300
|
/** List WNBA player stats. `GET /v1/wnba/players/stats` · `stats:read` */
|
|
263
301
|
readonly stats: "/v1/wnba/players/stats";
|
|
@@ -266,6 +304,14 @@ export declare const methods: {
|
|
|
266
304
|
/** Get the WNBA playoff bracket, series and games. `GET /v1/wnba/playoffs` · `stats:read` */
|
|
267
305
|
readonly get: "/v1/wnba/playoffs";
|
|
268
306
|
};
|
|
307
|
+
readonly shotChart: {
|
|
308
|
+
/** Get WNBA league shot averages by zone, overall and by phase and label. `GET /v1/wnba/shot-chart/league` · `stats:read` */
|
|
309
|
+
readonly league: "/v1/wnba/shot-chart/league";
|
|
310
|
+
/** Get one WNBA player's shot chart coordinates. `GET /v1/wnba/shot-chart/player` · `stats:read` */
|
|
311
|
+
readonly player: "/v1/wnba/shot-chart/player";
|
|
312
|
+
/** Get one WNBA team's shot chart coordinates (its own shots, or the shots taken against it). `GET /v1/wnba/shot-chart/team` · `stats:read` */
|
|
313
|
+
readonly team: "/v1/wnba/shot-chart/team";
|
|
314
|
+
};
|
|
269
315
|
readonly stats: {
|
|
270
316
|
/** List WNBA advanced stats. `GET /v1/wnba/stats/advanced-stats` · `stats:read` */
|
|
271
317
|
readonly advancedStats: "/v1/wnba/stats/advanced-stats";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const SPEC_HASH = "
|
|
1
|
+
export const SPEC_HASH = "05bc2e1baf0f";
|
|
2
2
|
export const methods = {
|
|
3
3
|
apps: {
|
|
4
4
|
sixrings: {
|
|
@@ -27,6 +27,7 @@ export const methods = {
|
|
|
27
27
|
youtube: "/v1/nba/draft/youtube",
|
|
28
28
|
},
|
|
29
29
|
games: {
|
|
30
|
+
byGameIdGamelog: "/v1/nba/games/{game_id}/gamelog",
|
|
30
31
|
byGameIdPbp: "/v1/nba/games/{game_id}/pbp",
|
|
31
32
|
byGameIdPlays: "/v1/nba/games/{game_id}/plays",
|
|
32
33
|
},
|
|
@@ -61,6 +62,7 @@ export const methods = {
|
|
|
61
62
|
playerLog: "/v1/nba/pbp/player-log",
|
|
62
63
|
playerWowy: "POST /v1/nba/pbp/player-wowy",
|
|
63
64
|
playersBySeason: "/v1/nba/pbp/players-by-season",
|
|
65
|
+
seasonTotals: "/v1/nba/pbp/season-totals",
|
|
64
66
|
teamLog: "/v1/nba/pbp/team-log",
|
|
65
67
|
wowyCombosStats: "POST /v1/nba/pbp/wowy-combos-stats",
|
|
66
68
|
},
|
|
@@ -96,6 +98,7 @@ export const methods = {
|
|
|
96
98
|
byDocKey: "/v1/nba/roster-shapes/{doc_key}",
|
|
97
99
|
},
|
|
98
100
|
shotChart: {
|
|
101
|
+
league: "/v1/nba/shot-chart/league",
|
|
99
102
|
player: "/v1/nba/shot-chart/player",
|
|
100
103
|
team: "/v1/nba/shot-chart/team",
|
|
101
104
|
},
|
|
@@ -147,18 +150,42 @@ export const methods = {
|
|
|
147
150
|
tabOrder: "/v1/users/me/tab-order",
|
|
148
151
|
},
|
|
149
152
|
wnba: {
|
|
153
|
+
leagueBaselines: {
|
|
154
|
+
get: "/v1/wnba/league-baselines",
|
|
155
|
+
},
|
|
150
156
|
live: {
|
|
151
157
|
gameCenterByEventId: "/v1/wnba/live/game-center/{event_id}",
|
|
152
158
|
games: "/v1/wnba/live/games",
|
|
153
159
|
gamesByGameDate: "/v1/wnba/live/games/{game_date}",
|
|
154
160
|
playsByEventId: "/v1/wnba/live/plays/{event_id}",
|
|
155
161
|
},
|
|
162
|
+
opponentQuality: {
|
|
163
|
+
get: "/v1/wnba/opponent-quality",
|
|
164
|
+
},
|
|
165
|
+
pbp: {
|
|
166
|
+
enhancedStats: "POST /v1/wnba/pbp/enhanced-stats",
|
|
167
|
+
lineupCombos: "POST /v1/wnba/pbp/lineup/combos",
|
|
168
|
+
lineupPlayers: "POST /v1/wnba/pbp/lineup/players",
|
|
169
|
+
lineupSummary: "POST /v1/wnba/pbp/lineup/summary",
|
|
170
|
+
manifest: "/v1/wnba/pbp/manifest",
|
|
171
|
+
playerLog: "/v1/wnba/pbp/player-log",
|
|
172
|
+
playerWowy: "POST /v1/wnba/pbp/player-wowy",
|
|
173
|
+
playersBySeason: "/v1/wnba/pbp/players-by-season",
|
|
174
|
+
seasonTotals: "/v1/wnba/pbp/season-totals",
|
|
175
|
+
teamLog: "/v1/wnba/pbp/team-log",
|
|
176
|
+
wowyCombosStats: "POST /v1/wnba/pbp/wowy-combos-stats",
|
|
177
|
+
},
|
|
156
178
|
players: {
|
|
157
179
|
stats: "/v1/wnba/players/stats",
|
|
158
180
|
},
|
|
159
181
|
playoffs: {
|
|
160
182
|
get: "/v1/wnba/playoffs",
|
|
161
183
|
},
|
|
184
|
+
shotChart: {
|
|
185
|
+
league: "/v1/wnba/shot-chart/league",
|
|
186
|
+
player: "/v1/wnba/shot-chart/player",
|
|
187
|
+
team: "/v1/wnba/shot-chart/team",
|
|
188
|
+
},
|
|
162
189
|
stats: {
|
|
163
190
|
advancedStats: "/v1/wnba/stats/advanced-stats",
|
|
164
191
|
onOff: "/v1/wnba/stats/on-off",
|