@databallr/sdk 0.1.1 → 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 -7
- package/dist/generated/methods.js +28 -4
- package/dist/generated/schema.d.ts +920 -235
- package/package.json +2 -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` */
|
|
@@ -185,10 +191,6 @@ export declare const methods: {
|
|
|
185
191
|
readonly get: "/v1/nba/shots";
|
|
186
192
|
/** List the shot-map filter seasons and teams. `GET /v1/nba/shots/filters` · `stats:read` */
|
|
187
193
|
readonly filters: "/v1/nba/shots/filters";
|
|
188
|
-
/** Get a shot video link by shot id. `GET /v1/nba/shots/video-link-by-shot-id/{shot_id}` · `stats:read` */
|
|
189
|
-
readonly videoLinkByShotId: "/v1/nba/shots/video-link-by-shot-id/{shot_id}";
|
|
190
|
-
/** Get a shot video link by game and action number. `GET /v1/nba/shots/video-link/{game_id}/{action_number}` · `stats:read` */
|
|
191
|
-
readonly videoLinkByGameIdByActionNumber: "/v1/nba/shots/video-link/{game_id}/{action_number}";
|
|
192
194
|
};
|
|
193
195
|
readonly standings: {
|
|
194
196
|
/** List NBA standings. `GET /v1/nba/standings` · `stats:read` */
|
|
@@ -252,6 +254,10 @@ export declare const methods: {
|
|
|
252
254
|
readonly tabOrder: "/v1/users/me/tab-order";
|
|
253
255
|
};
|
|
254
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
|
+
};
|
|
255
261
|
readonly live: {
|
|
256
262
|
/** Get a WNBA live game center. `GET /v1/wnba/live/game-center/{event_id}` · `stats:read` */
|
|
257
263
|
readonly gameCenterByEventId: "/v1/wnba/live/game-center/{event_id}";
|
|
@@ -262,9 +268,35 @@ export declare const methods: {
|
|
|
262
268
|
/** List WNBA live plays for a game. `GET /v1/wnba/live/plays/{event_id}` · `stats:read` */
|
|
263
269
|
readonly playsByEventId: "/v1/wnba/live/plays/{event_id}";
|
|
264
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
|
+
};
|
|
265
299
|
readonly players: {
|
|
266
|
-
/** Get a WNBA player headshot. `GET /v1/wnba/players/image/{entity_id}` · `stats:read` */
|
|
267
|
-
readonly imageByEntityId: "/v1/wnba/players/image/{entity_id}";
|
|
268
300
|
/** List WNBA player stats. `GET /v1/wnba/players/stats` · `stats:read` */
|
|
269
301
|
readonly stats: "/v1/wnba/players/stats";
|
|
270
302
|
};
|
|
@@ -272,6 +304,14 @@ export declare const methods: {
|
|
|
272
304
|
/** Get the WNBA playoff bracket, series and games. `GET /v1/wnba/playoffs` · `stats:read` */
|
|
273
305
|
readonly get: "/v1/wnba/playoffs";
|
|
274
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
|
+
};
|
|
275
315
|
readonly stats: {
|
|
276
316
|
/** List WNBA advanced stats. `GET /v1/wnba/stats/advanced-stats` · `stats:read` */
|
|
277
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
|
},
|
|
@@ -109,8 +112,6 @@ export const methods = {
|
|
|
109
112
|
shots: {
|
|
110
113
|
get: "/v1/nba/shots",
|
|
111
114
|
filters: "/v1/nba/shots/filters",
|
|
112
|
-
videoLinkByShotId: "/v1/nba/shots/video-link-by-shot-id/{shot_id}",
|
|
113
|
-
videoLinkByGameIdByActionNumber: "/v1/nba/shots/video-link/{game_id}/{action_number}",
|
|
114
115
|
},
|
|
115
116
|
standings: {
|
|
116
117
|
get: "/v1/nba/standings",
|
|
@@ -149,19 +150,42 @@ export const methods = {
|
|
|
149
150
|
tabOrder: "/v1/users/me/tab-order",
|
|
150
151
|
},
|
|
151
152
|
wnba: {
|
|
153
|
+
leagueBaselines: {
|
|
154
|
+
get: "/v1/wnba/league-baselines",
|
|
155
|
+
},
|
|
152
156
|
live: {
|
|
153
157
|
gameCenterByEventId: "/v1/wnba/live/game-center/{event_id}",
|
|
154
158
|
games: "/v1/wnba/live/games",
|
|
155
159
|
gamesByGameDate: "/v1/wnba/live/games/{game_date}",
|
|
156
160
|
playsByEventId: "/v1/wnba/live/plays/{event_id}",
|
|
157
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
|
+
},
|
|
158
178
|
players: {
|
|
159
|
-
imageByEntityId: "/v1/wnba/players/image/{entity_id}",
|
|
160
179
|
stats: "/v1/wnba/players/stats",
|
|
161
180
|
},
|
|
162
181
|
playoffs: {
|
|
163
182
|
get: "/v1/wnba/playoffs",
|
|
164
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
|
+
},
|
|
165
189
|
stats: {
|
|
166
190
|
advancedStats: "/v1/wnba/stats/advanced-stats",
|
|
167
191
|
onOff: "/v1/wnba/stats/on-off",
|