@srating-io/types 2.0.3 → 2.1.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/README.md +1 -0
- package/dist/api/search.d.ts +3 -0
- package/dist/api/sitemap.d.ts +38 -0
- package/dist/auth.d.ts +5 -4
- package/dist/basketball.d.ts +52 -1
- package/dist/fantasy.d.ts +2 -1
- package/dist/football.d.ts +26 -3
- package/dist/general.d.ts +44 -2
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/api/search.d.ts
CHANGED
|
@@ -12,12 +12,14 @@ export interface SearchTeamResult {
|
|
|
12
12
|
code: string;
|
|
13
13
|
name: string;
|
|
14
14
|
alt_name: string | null;
|
|
15
|
+
slug: string | null;
|
|
15
16
|
primary_color: string | null;
|
|
16
17
|
}
|
|
17
18
|
export interface SearchPlayerResult {
|
|
18
19
|
player_id: string;
|
|
19
20
|
first_name: string;
|
|
20
21
|
last_name: string;
|
|
22
|
+
slug: string | null;
|
|
21
23
|
begin: number;
|
|
22
24
|
end: number;
|
|
23
25
|
relevance_score: number;
|
|
@@ -26,6 +28,7 @@ export interface SearchCoachResult {
|
|
|
26
28
|
coach_id: string;
|
|
27
29
|
first_name: string;
|
|
28
30
|
last_name: string;
|
|
31
|
+
slug: string | null;
|
|
29
32
|
begin: number;
|
|
30
33
|
end: number;
|
|
31
34
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The entity kinds that have a slug, and so a url worth putting in a sitemap.
|
|
3
|
+
*/
|
|
4
|
+
export type SlugType = 'team' | 'player' | 'coach' | 'conference' | 'game';
|
|
5
|
+
export type getSlugsArguments = {
|
|
6
|
+
type: SlugType;
|
|
7
|
+
organization_id: string;
|
|
8
|
+
division_id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Games only, and required there. A sitemap that reached back through every season would be
|
|
11
|
+
* mostly dead urls, so the caller names the seasons it wants.
|
|
12
|
+
*/
|
|
13
|
+
seasons?: number[];
|
|
14
|
+
limit: number;
|
|
15
|
+
offset: number;
|
|
16
|
+
};
|
|
17
|
+
export type SlugRow = {
|
|
18
|
+
slug: string;
|
|
19
|
+
/**
|
|
20
|
+
* Feeds <lastmod>. Null on the tables that have no updated_at, which the caller then omits
|
|
21
|
+
* rather than guessing a date -- a wrong lastmod is worse than none.
|
|
22
|
+
*/
|
|
23
|
+
updated_at: string | null;
|
|
24
|
+
};
|
|
25
|
+
export type getSlugsResults = SlugRow[];
|
|
26
|
+
export type getCountsArguments = {
|
|
27
|
+
type: SlugType;
|
|
28
|
+
organization_id: string;
|
|
29
|
+
division_id: string;
|
|
30
|
+
seasons?: number[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* How many urls of this kind exist, so the sitemap knows how many shards to generate before it
|
|
34
|
+
* starts paging through them.
|
|
35
|
+
*/
|
|
36
|
+
export type getCountsResults = {
|
|
37
|
+
count: number;
|
|
38
|
+
};
|
package/dist/auth.d.ts
CHANGED
|
@@ -16,7 +16,9 @@ export type Users = {
|
|
|
16
16
|
export interface Session {
|
|
17
17
|
session_id: string;
|
|
18
18
|
user_id: string;
|
|
19
|
+
date_of_entry: string;
|
|
19
20
|
expires_at: string;
|
|
21
|
+
updated_at: string;
|
|
20
22
|
guid: string;
|
|
21
23
|
deleted: number;
|
|
22
24
|
}
|
|
@@ -45,7 +47,7 @@ export type Secrets = {
|
|
|
45
47
|
[secret_id: string]: Secret;
|
|
46
48
|
};
|
|
47
49
|
export interface ApiKey {
|
|
48
|
-
api_key_id:
|
|
50
|
+
api_key_id: number;
|
|
49
51
|
key: string;
|
|
50
52
|
user_id: string;
|
|
51
53
|
subscription_id: string;
|
|
@@ -55,9 +57,8 @@ export interface ApiKey {
|
|
|
55
57
|
write: number;
|
|
56
58
|
hidden_access: number;
|
|
57
59
|
rate_limiter: number;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
last_reset: number;
|
|
60
|
+
expires: string;
|
|
61
|
+
last_reset: string;
|
|
61
62
|
guid: string;
|
|
62
63
|
deleted: number;
|
|
63
64
|
}
|
package/dist/basketball.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoachStatisticRanking, Player, PlayerTeamSeason, Boxscore as BaseBoxscore, PlayerBoxscore as BasePlayerBoxscore, PlaybyPlay as BasePlaybyPlay, StatisticRanking as BaseStatisticRanking, PlayerStatisticRanking as BasePlayerStatisticRanking, ConferenceStatisticRanking as BaseConferenceStatisticRanking, ConferencePlayerStatisticRanking as BaseConferencePlayerStatisticRanking, LeagueStatisticRanking as BaseLeagueStatisticRanking, LeaguePlayerStatisticRanking as BaseLeaguePlayerStatisticRanking } from './general.ts';
|
|
2
2
|
export interface Boxscore extends BaseBoxscore {
|
|
3
|
+
basketball_boxscore_id: string;
|
|
3
4
|
minutes_played: number;
|
|
4
5
|
field_goal: number;
|
|
5
6
|
field_goal_attempts: number;
|
|
@@ -27,6 +28,7 @@ export type Boxscores = {
|
|
|
27
28
|
[boxscore_id: string]: Boxscore;
|
|
28
29
|
};
|
|
29
30
|
export interface PlayerBoxscore extends BasePlayerBoxscore {
|
|
31
|
+
basketball_player_boxscore_id: string;
|
|
30
32
|
first_name: string;
|
|
31
33
|
last_name: string;
|
|
32
34
|
position: string;
|
|
@@ -52,11 +54,13 @@ export interface PlayerBoxscore extends BasePlayerBoxscore {
|
|
|
52
54
|
turnovers: number;
|
|
53
55
|
fouls: number;
|
|
54
56
|
points: number;
|
|
57
|
+
plus_minus: number;
|
|
55
58
|
}
|
|
56
59
|
export type PlayerBoxscores = {
|
|
57
60
|
[player_boxscore_id: string]: PlayerBoxscore;
|
|
58
61
|
};
|
|
59
62
|
export interface PlaybyPlay extends BasePlaybyPlay {
|
|
63
|
+
basketball_play_by_play_id: string;
|
|
60
64
|
team_id: string;
|
|
61
65
|
current_period: string;
|
|
62
66
|
clock: string;
|
|
@@ -79,6 +83,7 @@ export type PlaybyPlays = {
|
|
|
79
83
|
[play_by_play_id: string]: PlaybyPlay;
|
|
80
84
|
};
|
|
81
85
|
export interface StatisticRanking extends BaseStatisticRanking {
|
|
86
|
+
basketball_statistic_id: string;
|
|
82
87
|
max: number;
|
|
83
88
|
rating: number;
|
|
84
89
|
rank: number;
|
|
@@ -166,6 +171,9 @@ export interface StatisticRanking extends BaseStatisticRanking {
|
|
|
166
171
|
opponent_defensive_rating: number;
|
|
167
172
|
opponent_efficiency_rating: number;
|
|
168
173
|
elo_sos: number;
|
|
174
|
+
weighted_height_average: number;
|
|
175
|
+
elite_length_z_score: number;
|
|
176
|
+
height_consistency: number;
|
|
169
177
|
wins_rank: number;
|
|
170
178
|
losses_rank: number;
|
|
171
179
|
confwins_rank: number;
|
|
@@ -239,31 +247,48 @@ export interface StatisticRanking extends BaseStatisticRanking {
|
|
|
239
247
|
opponent_defensive_rating_rank: number;
|
|
240
248
|
opponent_efficiency_rating_rank: number;
|
|
241
249
|
elo_sos_rank: number;
|
|
250
|
+
weighted_height_average_rank: number;
|
|
251
|
+
elite_length_z_score_rank: number;
|
|
252
|
+
height_consistency_rank: number;
|
|
242
253
|
}
|
|
243
254
|
export type StatisticRankings = {
|
|
244
255
|
[statistic_ranking_id: string]: StatisticRanking;
|
|
245
256
|
};
|
|
246
257
|
export interface PlayerStatisticRanking extends BasePlayerStatisticRanking {
|
|
258
|
+
basketball_player_statistic_id: string;
|
|
247
259
|
rating: number;
|
|
248
260
|
max: number;
|
|
249
261
|
rank: number;
|
|
250
262
|
rank_delta_one: number;
|
|
251
263
|
rank_delta_seven: number;
|
|
264
|
+
elo: number;
|
|
252
265
|
elo_rank: number;
|
|
266
|
+
max_elo: number;
|
|
267
|
+
max_elo_rank: number;
|
|
253
268
|
games: number;
|
|
269
|
+
wins: number;
|
|
270
|
+
losses: number;
|
|
254
271
|
minutes_played: number;
|
|
255
272
|
minutes_per_game: number;
|
|
256
273
|
field_goal: number;
|
|
274
|
+
field_goal_per_game: number;
|
|
257
275
|
field_goal_attempts: number;
|
|
276
|
+
field_goal_attempts_per_game: number;
|
|
258
277
|
field_goal_percentage: number;
|
|
259
278
|
two_point_field_goal: number;
|
|
279
|
+
two_point_field_goal_per_game: number;
|
|
260
280
|
two_point_field_goal_attempts: number;
|
|
281
|
+
two_point_field_goal_attempts_per_game: number;
|
|
261
282
|
two_point_field_goal_percentage: number;
|
|
262
283
|
three_point_field_goal: number;
|
|
284
|
+
three_point_field_goal_per_game: number;
|
|
263
285
|
three_point_field_goal_attempts: number;
|
|
286
|
+
three_point_field_goal_attempts_per_game: number;
|
|
264
287
|
three_point_field_goal_percentage: number;
|
|
265
288
|
free_throws: number;
|
|
289
|
+
free_throws_per_game: number;
|
|
266
290
|
free_throw_attempts: number;
|
|
291
|
+
free_throw_attempts_per_game: number;
|
|
267
292
|
free_throw_percentage: number;
|
|
268
293
|
offensive_rebounds: number;
|
|
269
294
|
offensive_rebounds_per_game: number;
|
|
@@ -299,19 +324,31 @@ export interface PlayerStatisticRanking extends BasePlayerStatisticRanking {
|
|
|
299
324
|
block_percentage: number;
|
|
300
325
|
turnover_percentage: number;
|
|
301
326
|
usage_percentage: number;
|
|
327
|
+
plus_minus: number;
|
|
328
|
+
games_rank: number;
|
|
329
|
+
wins_rank: number;
|
|
330
|
+
losses_rank: number;
|
|
302
331
|
minutes_played_rank: number;
|
|
303
332
|
minutes_per_game_rank: number;
|
|
304
333
|
field_goal_rank: number;
|
|
334
|
+
field_goal_per_game_rank: number;
|
|
305
335
|
field_goal_attempts_rank: number;
|
|
336
|
+
field_goal_attempts_per_game_rank: number;
|
|
306
337
|
field_goal_percentage_rank: number;
|
|
307
338
|
two_point_field_goal_rank: number;
|
|
339
|
+
two_point_field_goal_per_game_rank: number;
|
|
308
340
|
two_point_field_goal_attempts_rank: number;
|
|
341
|
+
two_point_field_goal_attempts_per_game_rank: number;
|
|
309
342
|
two_point_field_goal_percentage_rank: number;
|
|
310
343
|
three_point_field_goal_rank: number;
|
|
344
|
+
three_point_field_goal_per_game_rank: number;
|
|
311
345
|
three_point_field_goal_attempts_rank: number;
|
|
346
|
+
three_point_field_goal_attempts_per_game_rank: number;
|
|
312
347
|
three_point_field_goal_percentage_rank: number;
|
|
313
348
|
free_throws_rank: number;
|
|
349
|
+
free_throws_per_game_rank: number;
|
|
314
350
|
free_throw_attempts_rank: number;
|
|
351
|
+
free_throw_attempts_per_game_rank: number;
|
|
315
352
|
free_throw_percentage_rank: number;
|
|
316
353
|
offensive_rebounds_rank: number;
|
|
317
354
|
offensive_rebounds_per_game_rank: number;
|
|
@@ -347,11 +384,13 @@ export interface PlayerStatisticRanking extends BasePlayerStatisticRanking {
|
|
|
347
384
|
block_percentage_rank: number;
|
|
348
385
|
turnover_percentage_rank: number;
|
|
349
386
|
usage_percentage_rank: number;
|
|
387
|
+
plus_minus_rank: number;
|
|
350
388
|
}
|
|
351
389
|
export type PlayerStatisticRankings = {
|
|
352
390
|
[player_statistic_ranking_id: string]: PlayerStatisticRanking;
|
|
353
391
|
};
|
|
354
392
|
export interface ConferenceStatisticRanking extends BaseConferenceStatisticRanking {
|
|
393
|
+
basketball_conference_statistic_id: string;
|
|
355
394
|
rating: number;
|
|
356
395
|
rank: number;
|
|
357
396
|
rank_delta_one: number;
|
|
@@ -503,6 +542,7 @@ export type ConferenceStatisticRankings = {
|
|
|
503
542
|
[conference_statistic_ranking_id: string]: ConferenceStatisticRanking;
|
|
504
543
|
};
|
|
505
544
|
export interface LeagueStatisticRanking extends BaseLeagueStatisticRanking {
|
|
545
|
+
basketball_league_statistic_id: string;
|
|
506
546
|
rating: number;
|
|
507
547
|
elo: number;
|
|
508
548
|
games: number;
|
|
@@ -578,11 +618,15 @@ export interface LeagueStatisticRanking extends BaseLeagueStatisticRanking {
|
|
|
578
618
|
opponent_offensive_rating: number;
|
|
579
619
|
opponent_defensive_rating: number;
|
|
580
620
|
opponent_efficiency_rating: number;
|
|
621
|
+
weighted_height_average: number;
|
|
622
|
+
elite_length_z_score: number;
|
|
623
|
+
height_consistency: number;
|
|
581
624
|
}
|
|
582
625
|
export type LeagueStatisticRankings = {
|
|
583
626
|
[league_statistic_ranking_id: string]: LeagueStatisticRanking;
|
|
584
627
|
};
|
|
585
628
|
export interface LeaguePlayerStatisticRanking extends BaseLeaguePlayerStatisticRanking {
|
|
629
|
+
basketball_league_player_statistic_id: string;
|
|
586
630
|
rating: number;
|
|
587
631
|
elo: number;
|
|
588
632
|
games: number;
|
|
@@ -716,7 +760,6 @@ export interface ConferencePlayerStatisticRanking extends BaseConferencePlayerSt
|
|
|
716
760
|
turnover_percentage: number;
|
|
717
761
|
usage_percentage: number;
|
|
718
762
|
plus_minus: number;
|
|
719
|
-
guid: string;
|
|
720
763
|
deleted: number;
|
|
721
764
|
}
|
|
722
765
|
export type ConferencePlayerStatisticRankings = {
|
|
@@ -739,8 +782,16 @@ export type RankingTable = (StatisticRanking | PlayerStatisticRanking | Conferen
|
|
|
739
782
|
committed?: boolean;
|
|
740
783
|
committed_team_id?: string;
|
|
741
784
|
committed_team_name?: string;
|
|
785
|
+
committed_team_slug?: string | null;
|
|
742
786
|
committed_conference_id?: string;
|
|
743
787
|
team_name?: string;
|
|
788
|
+
/**
|
|
789
|
+
* The slugs the table's links are built from. Decorations added by the ranking endpoint, not
|
|
790
|
+
* columns on the ranking row -- without them every link would point at an id url and 308.
|
|
791
|
+
*/
|
|
792
|
+
slug?: string | null;
|
|
793
|
+
team_slug?: string | null;
|
|
794
|
+
conference_slug?: string | null;
|
|
744
795
|
player?: Player;
|
|
745
796
|
player_team_season?: PlayerTeamSeason;
|
|
746
797
|
};
|
package/dist/fantasy.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ export type FantasyEntrys = {
|
|
|
123
123
|
};
|
|
124
124
|
export interface FantasyDraftOrder {
|
|
125
125
|
fantasy_draft_order_id: string;
|
|
126
|
+
parent_fantasy_draft_order_id: string;
|
|
126
127
|
child_fantasy_draft_order_id: string | null;
|
|
127
128
|
fantasy_entry_id: string;
|
|
128
129
|
fantasy_group_id: string;
|
|
@@ -164,6 +165,7 @@ export interface FantasyBracketSlot {
|
|
|
164
165
|
picked_first_team_id: string | null;
|
|
165
166
|
picked_second_team_id: string | null;
|
|
166
167
|
picked_winner_team_id: string | null;
|
|
168
|
+
actual_winner_team_id: string | null;
|
|
167
169
|
tie_breaker_total_score: number | null;
|
|
168
170
|
game_id: string | null;
|
|
169
171
|
region: string;
|
|
@@ -209,7 +211,6 @@ export interface FantasyEntryPlayerStatisticRanking {
|
|
|
209
211
|
fantasy_entry_player_id: string;
|
|
210
212
|
sport_player_statistic_id: string;
|
|
211
213
|
date_of_rank: string;
|
|
212
|
-
date_of_entry: string;
|
|
213
214
|
updated_at: string;
|
|
214
215
|
current: number;
|
|
215
216
|
guid: string;
|
package/dist/football.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CoachStatisticRanking, Player, PlayerTeamSeason, Boxscore as BaseBoxscore, PlayerBoxscore as BasePlayerBoxscore, StatisticRanking as BaseStatisticRanking, PlayerStatisticRanking as BasePlayerStatisticRanking, ConferenceStatisticRanking as BaseConferenceStatisticRanking, ConferencePlayerStatisticRanking as BaseConferencePlayerStatisticRanking, LeagueStatisticRanking as BaseLeagueStatisticRanking, LeaguePlayerStatisticRanking as BaseLeaguePlayerStatisticRanking } from './general.ts';
|
|
2
2
|
export interface Boxscore extends BaseBoxscore {
|
|
3
|
+
football_boxscore_id: string;
|
|
3
4
|
minutes_played: number;
|
|
4
5
|
points: number;
|
|
5
6
|
successful_pass_plays: number;
|
|
@@ -73,6 +74,7 @@ export type Boxscores = {
|
|
|
73
74
|
[boxscore_id: string]: Boxscore;
|
|
74
75
|
};
|
|
75
76
|
export interface PlayerBoxscore extends BasePlayerBoxscore {
|
|
77
|
+
football_player_boxscore_id: string;
|
|
76
78
|
first_name: string;
|
|
77
79
|
last_name: string;
|
|
78
80
|
position: string;
|
|
@@ -136,11 +138,13 @@ export interface PlayerBoxscore extends BasePlayerBoxscore {
|
|
|
136
138
|
quarterback_hurries: number;
|
|
137
139
|
fumbles: number;
|
|
138
140
|
fumbles_lost: number;
|
|
141
|
+
guid: string;
|
|
139
142
|
}
|
|
140
143
|
export type PlayerBoxscores = {
|
|
141
144
|
[player_boxscore_id: string]: PlayerBoxscore;
|
|
142
145
|
};
|
|
143
146
|
export interface StatisticRanking extends BaseStatisticRanking {
|
|
147
|
+
football_statistic_id: string;
|
|
144
148
|
rating: number;
|
|
145
149
|
rank: number;
|
|
146
150
|
rank_delta_one: number;
|
|
@@ -472,6 +476,7 @@ export type StatisticRankings = {
|
|
|
472
476
|
[statistic_ranking_id: string]: StatisticRanking;
|
|
473
477
|
};
|
|
474
478
|
export interface PlayerStatisticRanking extends BasePlayerStatisticRanking {
|
|
479
|
+
football_player_statistic_id: string;
|
|
475
480
|
rating: number;
|
|
476
481
|
max: number;
|
|
477
482
|
rank: number;
|
|
@@ -479,7 +484,11 @@ export interface PlayerStatisticRanking extends BasePlayerStatisticRanking {
|
|
|
479
484
|
rank_delta_seven: number;
|
|
480
485
|
elo: number;
|
|
481
486
|
elo_rank: number;
|
|
487
|
+
max_elo: number;
|
|
488
|
+
max_elo_rank: number;
|
|
482
489
|
games: number;
|
|
490
|
+
wins: number;
|
|
491
|
+
losses: number;
|
|
483
492
|
minutes_played: number;
|
|
484
493
|
minutes_per_game: number;
|
|
485
494
|
points: number;
|
|
@@ -488,6 +497,7 @@ export interface PlayerStatisticRanking extends BasePlayerStatisticRanking {
|
|
|
488
497
|
penalties_per_game: number;
|
|
489
498
|
penalty_yards: number;
|
|
490
499
|
penalty_yards_per_game: number;
|
|
500
|
+
adjusted_passing_rating: number;
|
|
491
501
|
passing_attempts: number;
|
|
492
502
|
passing_attempts_per_game: number;
|
|
493
503
|
passing_completions: number;
|
|
@@ -571,6 +581,8 @@ export interface PlayerStatisticRanking extends BasePlayerStatisticRanking {
|
|
|
571
581
|
fumbles_per_game: number;
|
|
572
582
|
fumbles_lost: number;
|
|
573
583
|
games_rank: number;
|
|
584
|
+
wins_rank: number;
|
|
585
|
+
losses_rank: number;
|
|
574
586
|
minutes_played_rank: number;
|
|
575
587
|
minutes_per_game_rank: number;
|
|
576
588
|
points_rank: number;
|
|
@@ -579,6 +591,7 @@ export interface PlayerStatisticRanking extends BasePlayerStatisticRanking {
|
|
|
579
591
|
penalties_per_game_rank: number;
|
|
580
592
|
penalty_yards_rank: number;
|
|
581
593
|
penalty_yards_per_game_rank: number;
|
|
594
|
+
adjusted_passing_rating_rank: number;
|
|
582
595
|
passing_attempts_rank: number;
|
|
583
596
|
passing_attempts_per_game_rank: number;
|
|
584
597
|
passing_completions_rank: number;
|
|
@@ -666,6 +679,7 @@ export type PlayerStatisticRankings = {
|
|
|
666
679
|
[player_statistic_ranking_id: string]: PlayerStatisticRanking;
|
|
667
680
|
};
|
|
668
681
|
export interface ConferenceStatisticRanking extends BaseConferenceStatisticRanking {
|
|
682
|
+
football_conference_statistic_id: string;
|
|
669
683
|
rating: number;
|
|
670
684
|
rank: number;
|
|
671
685
|
rank_delta_one: number;
|
|
@@ -1108,13 +1122,13 @@ export interface ConferencePlayerStatisticRanking extends BaseConferencePlayerSt
|
|
|
1108
1122
|
fumbles_per_game: number;
|
|
1109
1123
|
fumbles_lost: number;
|
|
1110
1124
|
fumbles_lost_per_game: number;
|
|
1111
|
-
guid: string;
|
|
1112
1125
|
deleted: number;
|
|
1113
1126
|
}
|
|
1114
1127
|
export type ConferencePlayerStatisticRankings = {
|
|
1115
1128
|
[conference_player_statistic_ranking_id: string]: ConferencePlayerStatisticRanking;
|
|
1116
1129
|
};
|
|
1117
1130
|
export interface LeagueStatisticRanking extends BaseLeagueStatisticRanking {
|
|
1131
|
+
football_league_statistic_id: string;
|
|
1118
1132
|
rating: number;
|
|
1119
1133
|
elo: number;
|
|
1120
1134
|
games: number;
|
|
@@ -1142,8 +1156,8 @@ export interface LeagueStatisticRanking extends BaseLeagueStatisticRanking {
|
|
|
1142
1156
|
points_per_play: number;
|
|
1143
1157
|
successful_pass_plays: number;
|
|
1144
1158
|
successful_rush_plays: number;
|
|
1145
|
-
|
|
1146
|
-
|
|
1159
|
+
offensive_dvoa: number;
|
|
1160
|
+
defensive_dvoa: number;
|
|
1147
1161
|
first_downs: number;
|
|
1148
1162
|
third_down_conversions: number;
|
|
1149
1163
|
third_down_attempts: number;
|
|
@@ -1280,6 +1294,7 @@ export type LeagueStatisticRankings = {
|
|
|
1280
1294
|
[league_statistic_ranking_id: string]: LeagueStatisticRanking;
|
|
1281
1295
|
};
|
|
1282
1296
|
export interface LeaguePlayerStatisticRanking extends BaseLeaguePlayerStatisticRanking {
|
|
1297
|
+
football_league_player_statistic_id: string;
|
|
1283
1298
|
rating: number;
|
|
1284
1299
|
elo: number;
|
|
1285
1300
|
games: number;
|
|
@@ -1404,8 +1419,16 @@ export type RankingTable = (StatisticRanking | PlayerStatisticRanking | Conferen
|
|
|
1404
1419
|
committed?: boolean;
|
|
1405
1420
|
committed_team_id?: string;
|
|
1406
1421
|
committed_team_name?: string;
|
|
1422
|
+
committed_team_slug?: string | null;
|
|
1407
1423
|
committed_conference_id?: string;
|
|
1408
1424
|
team_name?: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* The slugs the table's links are built from. Decorations added by the ranking endpoint, not
|
|
1427
|
+
* columns on the ranking row -- without them every link would point at an id url and 308.
|
|
1428
|
+
*/
|
|
1429
|
+
slug?: string | null;
|
|
1430
|
+
team_slug?: string | null;
|
|
1431
|
+
conference_slug?: string | null;
|
|
1409
1432
|
player?: Player;
|
|
1410
1433
|
player_team_season?: PlayerTeamSeason;
|
|
1411
1434
|
};
|
package/dist/general.d.ts
CHANGED
|
@@ -33,11 +33,32 @@ export interface Terminology {
|
|
|
33
33
|
export type Terminologies = {
|
|
34
34
|
[terminology_id: string]: Terminology;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* A slug an entity used to answer to. A slug is immutable once assigned, so this only fills up
|
|
38
|
+
* from a game whose start_date moved and from a manual rename -- and a hit here is a 301, never a
|
|
39
|
+
* render.
|
|
40
|
+
*/
|
|
41
|
+
export interface SlugRedirect {
|
|
42
|
+
slug_redirect_id: string;
|
|
43
|
+
type: 'team' | 'player' | 'coach' | 'conference' | 'game';
|
|
44
|
+
/**
|
|
45
|
+
* Set for a game, null otherwise, matching how the slug itself is scoped.
|
|
46
|
+
*/
|
|
47
|
+
organization_id: string | null;
|
|
48
|
+
slug: string;
|
|
49
|
+
entity_id: string;
|
|
50
|
+
guid: string;
|
|
51
|
+
deleted: number;
|
|
52
|
+
}
|
|
53
|
+
export type SlugRedirects = {
|
|
54
|
+
[slug_redirect_id: string]: SlugRedirect;
|
|
55
|
+
};
|
|
36
56
|
export interface Conference {
|
|
37
57
|
conference_id: string;
|
|
38
58
|
parent_conference_id: string;
|
|
39
59
|
code: string;
|
|
40
60
|
name: string;
|
|
61
|
+
slug: string;
|
|
41
62
|
guid: string;
|
|
42
63
|
inactive: number;
|
|
43
64
|
deleted: number;
|
|
@@ -51,6 +72,7 @@ export interface Team {
|
|
|
51
72
|
code: string;
|
|
52
73
|
name: string;
|
|
53
74
|
alt_name: string;
|
|
75
|
+
slug: string;
|
|
54
76
|
primary_color: string;
|
|
55
77
|
secondary_color: string;
|
|
56
78
|
guid: string;
|
|
@@ -90,8 +112,8 @@ export type ConferenceDivisionSeasons = {
|
|
|
90
112
|
};
|
|
91
113
|
export interface Prediction {
|
|
92
114
|
prediction_id: string;
|
|
115
|
+
organization_id: string;
|
|
93
116
|
game_id: string;
|
|
94
|
-
season: number;
|
|
95
117
|
home_percentage: number;
|
|
96
118
|
away_percentage: number;
|
|
97
119
|
home_score: number;
|
|
@@ -123,6 +145,8 @@ export interface Game {
|
|
|
123
145
|
start_date: string;
|
|
124
146
|
start_datetime: string;
|
|
125
147
|
start_timestamp: number;
|
|
148
|
+
slug: string;
|
|
149
|
+
updated_at: string;
|
|
126
150
|
attendance: number;
|
|
127
151
|
neutral_site: number;
|
|
128
152
|
is_conf_game: number;
|
|
@@ -137,6 +161,8 @@ export interface Coach {
|
|
|
137
161
|
coach_id: string;
|
|
138
162
|
first_name: string;
|
|
139
163
|
last_name: string;
|
|
164
|
+
slug: string;
|
|
165
|
+
guid: string;
|
|
140
166
|
deleted: number;
|
|
141
167
|
}
|
|
142
168
|
export type Coaches = {
|
|
@@ -144,6 +170,7 @@ export type Coaches = {
|
|
|
144
170
|
};
|
|
145
171
|
export interface CoachTeamSeason {
|
|
146
172
|
coach_team_season_id: string;
|
|
173
|
+
organization_id: string;
|
|
147
174
|
coach_id: string;
|
|
148
175
|
team_id: string;
|
|
149
176
|
season: number;
|
|
@@ -157,6 +184,8 @@ export type CoachTeamSeasons = {
|
|
|
157
184
|
};
|
|
158
185
|
export interface CoachElo {
|
|
159
186
|
coach_elo_id: string;
|
|
187
|
+
organization_id: string;
|
|
188
|
+
division_id: string;
|
|
160
189
|
parent_coach_elo_id: string;
|
|
161
190
|
coach_id: string;
|
|
162
191
|
game_id: string;
|
|
@@ -172,6 +201,8 @@ export type CoachElos = {
|
|
|
172
201
|
};
|
|
173
202
|
export interface Elo {
|
|
174
203
|
elo_id: string;
|
|
204
|
+
organization_id: string;
|
|
205
|
+
division_id: string;
|
|
175
206
|
parent_elo_id: string;
|
|
176
207
|
team_id: string;
|
|
177
208
|
game_id: string;
|
|
@@ -187,6 +218,8 @@ export type Elos = {
|
|
|
187
218
|
};
|
|
188
219
|
export interface PlayerElo {
|
|
189
220
|
player_elo_id: string;
|
|
221
|
+
organization_id: string;
|
|
222
|
+
division_id: string;
|
|
190
223
|
parent_player_elo_id: string;
|
|
191
224
|
player_id: string;
|
|
192
225
|
game_id: string;
|
|
@@ -204,6 +237,7 @@ export interface Player {
|
|
|
204
237
|
player_id: string;
|
|
205
238
|
first_name: string;
|
|
206
239
|
last_name: string;
|
|
240
|
+
slug: string;
|
|
207
241
|
position: string;
|
|
208
242
|
height: string;
|
|
209
243
|
weight: string;
|
|
@@ -249,6 +283,7 @@ export interface GamePulse {
|
|
|
249
283
|
current_period: string;
|
|
250
284
|
clock: string;
|
|
251
285
|
date_of_entry: string;
|
|
286
|
+
deleted: number;
|
|
252
287
|
}
|
|
253
288
|
export type GamePulses = {
|
|
254
289
|
[game_pulse_id: string]: GamePulse;
|
|
@@ -262,6 +297,8 @@ export interface GamePlayer {
|
|
|
262
297
|
stop: string | null;
|
|
263
298
|
period: string;
|
|
264
299
|
date_of_entry: string;
|
|
300
|
+
guid: string;
|
|
301
|
+
deleted: number;
|
|
265
302
|
}
|
|
266
303
|
export type GamePlayers = {
|
|
267
304
|
[game_player_id: string]: GamePlayer;
|
|
@@ -306,6 +343,7 @@ export interface CoachStatisticRanking {
|
|
|
306
343
|
season: number;
|
|
307
344
|
coach_id: string;
|
|
308
345
|
rating: number;
|
|
346
|
+
max: number;
|
|
309
347
|
rank: number;
|
|
310
348
|
rank_delta_one: number;
|
|
311
349
|
rank_delta_seven: number;
|
|
@@ -351,6 +389,7 @@ export interface CoachStatisticRanking {
|
|
|
351
389
|
road_win_percentage_rank: number;
|
|
352
390
|
neutral_win_percentage_rank: number;
|
|
353
391
|
date_of_rank: string;
|
|
392
|
+
updated_at: string;
|
|
354
393
|
current: number;
|
|
355
394
|
deleted: number;
|
|
356
395
|
}
|
|
@@ -379,6 +418,7 @@ export interface BracketTeam {
|
|
|
379
418
|
seed: number;
|
|
380
419
|
current: number;
|
|
381
420
|
predicted: number;
|
|
421
|
+
is_play_in: number;
|
|
382
422
|
date_of_entry: string;
|
|
383
423
|
guid: string;
|
|
384
424
|
deleted: number;
|
|
@@ -421,7 +461,7 @@ export interface PlaybyPlay {
|
|
|
421
461
|
division_id: string;
|
|
422
462
|
game_id: string;
|
|
423
463
|
sport_play_by_play_id: string;
|
|
424
|
-
|
|
464
|
+
deleted: number;
|
|
425
465
|
}
|
|
426
466
|
export type PlaybyPlays = {
|
|
427
467
|
[play_by_play_id: string]: PlaybyPlay;
|
|
@@ -457,6 +497,8 @@ export interface PlayerStatisticRanking {
|
|
|
457
497
|
date_of_rank: string;
|
|
458
498
|
updated_at: string;
|
|
459
499
|
current: number;
|
|
500
|
+
career: number;
|
|
501
|
+
career_active: number;
|
|
460
502
|
deleted: number;
|
|
461
503
|
}
|
|
462
504
|
export type PlayerStatisticRankings = {
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * as Ranking from './api/ranking.ts';
|
|
|
28
28
|
export * as Search from './api/search.ts';
|
|
29
29
|
export * as Secret from './api/secret.ts';
|
|
30
30
|
export * as Session from './api/session.ts';
|
|
31
|
+
export * as Sitemap from './api/sitemap.ts';
|
|
31
32
|
export * as StatisticRanking from './api/statistic_ranking.ts';
|
|
32
33
|
export * as Team from './api/team.ts';
|
|
33
34
|
export * as User from './api/user.ts';
|