@databallr/sdk 0.3.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/methods.d.ts +17 -1
- package/dist/generated/methods.js +11 -1
- package/dist/generated/schema.d.ts +3049 -310
- 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 = "7c5211507581";
|
|
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,12 +49,20 @@ export declare const methods: {
|
|
|
49
49
|
readonly youtube: "/v1/nba/draft/youtube";
|
|
50
50
|
};
|
|
51
51
|
readonly games: {
|
|
52
|
+
/** Run the PBP engine on a game's NBA live feed: on/off, lineups and an optional on/off lattice, for any time window. `GET /v1/nba/games/{game_id}/engine` · `stats:read` */
|
|
53
|
+
readonly byGameIdEngine: "/v1/nba/games/{game_id}/engine";
|
|
54
|
+
/** Get a game's play-by-play from the NBA live-data feed. `GET /v1/nba/games/{game_id}/feed-plays` · `stats:read` */
|
|
55
|
+
readonly byGameIdFeedPlays: "/v1/nba/games/{game_id}/feed-plays";
|
|
52
56
|
/** Get an NBA game's box score. `GET /v1/nba/games/{game_id}/gamelog` · `stats:read` */
|
|
53
57
|
readonly byGameIdGamelog: "/v1/nba/games/{game_id}/gamelog";
|
|
54
58
|
/** Get an NBA game's play-by-play. `GET /v1/nba/games/{game_id}/pbp` · `stats:read` */
|
|
55
59
|
readonly byGameIdPbp: "/v1/nba/games/{game_id}/pbp";
|
|
56
60
|
/** List play-by-play events for an NBA game. `GET /v1/nba/games/{game_id}/plays` · `stats:read` */
|
|
57
61
|
readonly byGameIdPlays: "/v1/nba/games/{game_id}/plays";
|
|
62
|
+
/** List an NBA game's field-goal attempts and latest play. `GET /v1/nba/games/{game_id}/shots` · `stats:read` */
|
|
63
|
+
readonly byGameIdShots: "/v1/nba/games/{game_id}/shots";
|
|
64
|
+
/** One game's stretch with chosen players of either team on and off the floor, in any time window: both teams' stats, player lines and shots. `GET /v1/nba/games/{game_id}/wowy` · `stats:read` */
|
|
65
|
+
readonly byGameIdWowy: "/v1/nba/games/{game_id}/wowy";
|
|
58
66
|
};
|
|
59
67
|
readonly injuries: {
|
|
60
68
|
/** List NBA injuries for a date. `GET /v1/nba/injuries` · `stats:read` */
|
|
@@ -166,6 +174,14 @@ export declare const methods: {
|
|
|
166
174
|
/** Get a Roster Shapes document. `GET /v1/nba/roster-shapes/{doc_key}` · `stats:read` */
|
|
167
175
|
readonly byDocKey: "/v1/nba/roster-shapes/{doc_key}";
|
|
168
176
|
};
|
|
177
|
+
readonly schedule: {
|
|
178
|
+
/** List a day's NBA games with their NBA game ids, from the NBA schedule feed. `GET /v1/nba/schedule/{date}` · `stats:read` */
|
|
179
|
+
readonly byDate: "/v1/nba/schedule/{date}";
|
|
180
|
+
};
|
|
181
|
+
readonly scoreboard: {
|
|
182
|
+
/** List a day's NBA games with live scores and clocks, from the NBA feed. `GET /v1/nba/scoreboard/{date}` · `stats:read` */
|
|
183
|
+
readonly byDate: "/v1/nba/scoreboard/{date}";
|
|
184
|
+
};
|
|
169
185
|
readonly shotChart: {
|
|
170
186
|
/** Get NBA league shooting by zone. `GET /v1/nba/shot-chart/league` · `stats:read` */
|
|
171
187
|
readonly league: "/v1/nba/shot-chart/league";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const SPEC_HASH = "
|
|
1
|
+
export const SPEC_HASH = "7c5211507581";
|
|
2
2
|
export const methods = {
|
|
3
3
|
apps: {
|
|
4
4
|
sixrings: {
|
|
@@ -27,9 +27,13 @@ export const methods = {
|
|
|
27
27
|
youtube: "/v1/nba/draft/youtube",
|
|
28
28
|
},
|
|
29
29
|
games: {
|
|
30
|
+
byGameIdEngine: "/v1/nba/games/{game_id}/engine",
|
|
31
|
+
byGameIdFeedPlays: "/v1/nba/games/{game_id}/feed-plays",
|
|
30
32
|
byGameIdGamelog: "/v1/nba/games/{game_id}/gamelog",
|
|
31
33
|
byGameIdPbp: "/v1/nba/games/{game_id}/pbp",
|
|
32
34
|
byGameIdPlays: "/v1/nba/games/{game_id}/plays",
|
|
35
|
+
byGameIdShots: "/v1/nba/games/{game_id}/shots",
|
|
36
|
+
byGameIdWowy: "/v1/nba/games/{game_id}/wowy",
|
|
33
37
|
},
|
|
34
38
|
injuries: {
|
|
35
39
|
get: "/v1/nba/injuries",
|
|
@@ -97,6 +101,12 @@ export const methods = {
|
|
|
97
101
|
rosterShapes: {
|
|
98
102
|
byDocKey: "/v1/nba/roster-shapes/{doc_key}",
|
|
99
103
|
},
|
|
104
|
+
schedule: {
|
|
105
|
+
byDate: "/v1/nba/schedule/{date}",
|
|
106
|
+
},
|
|
107
|
+
scoreboard: {
|
|
108
|
+
byDate: "/v1/nba/scoreboard/{date}",
|
|
109
|
+
},
|
|
100
110
|
shotChart: {
|
|
101
111
|
league: "/v1/nba/shot-chart/league",
|
|
102
112
|
player: "/v1/nba/shot-chart/player",
|