@srating-io/types 0.0.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/LICENSE +201 -0
- package/README.md +2 -0
- package/dist/basketball.d.ts +722 -0
- package/dist/football.d.ts +1042 -0
- package/dist/general.d.ts +677 -0
- package/dist/index.d.ts +3 -0
- package/package.json +30 -0
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
import { StatisticRanking } from './basketball.ts';
|
|
2
|
+
export interface Organization {
|
|
3
|
+
organization_id: string;
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
guid: string;
|
|
7
|
+
inactive: number;
|
|
8
|
+
deleted: number;
|
|
9
|
+
}
|
|
10
|
+
export type Organizations = {
|
|
11
|
+
[organization_id: string]: Organization;
|
|
12
|
+
};
|
|
13
|
+
export interface Division {
|
|
14
|
+
division_id: string;
|
|
15
|
+
code: string;
|
|
16
|
+
name: string;
|
|
17
|
+
guid: string;
|
|
18
|
+
inactive: number;
|
|
19
|
+
deleted: number;
|
|
20
|
+
}
|
|
21
|
+
export type Divisions = {
|
|
22
|
+
[division_id: string]: Division;
|
|
23
|
+
};
|
|
24
|
+
export interface FantasyPayoutRule {
|
|
25
|
+
fantasy_payout_rule_id: string;
|
|
26
|
+
code: string;
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
json_payout_structure: object;
|
|
30
|
+
ordinal: number;
|
|
31
|
+
custom: number;
|
|
32
|
+
guid: string;
|
|
33
|
+
inactive: number;
|
|
34
|
+
deleted: number;
|
|
35
|
+
}
|
|
36
|
+
export type FantasyPayoutRules = {
|
|
37
|
+
[fantasy_payout_rule_id: string]: FantasyPayoutRule;
|
|
38
|
+
};
|
|
39
|
+
export interface Terminology {
|
|
40
|
+
terminology_id: string;
|
|
41
|
+
code: string;
|
|
42
|
+
name: string;
|
|
43
|
+
description: string;
|
|
44
|
+
type: string;
|
|
45
|
+
guid: string;
|
|
46
|
+
inactive: number;
|
|
47
|
+
deleted: number;
|
|
48
|
+
}
|
|
49
|
+
export type Terminologies = {
|
|
50
|
+
[terminology_id: string]: Terminology;
|
|
51
|
+
};
|
|
52
|
+
export interface Subscription {
|
|
53
|
+
subscription_id: string;
|
|
54
|
+
user_id: string;
|
|
55
|
+
pricing_id: string;
|
|
56
|
+
stripe_subscription: string;
|
|
57
|
+
date_of_entry: string;
|
|
58
|
+
updated_at: string;
|
|
59
|
+
expires: string;
|
|
60
|
+
renewed: string;
|
|
61
|
+
guid: string;
|
|
62
|
+
deleted: number;
|
|
63
|
+
}
|
|
64
|
+
export type Subscriptions = {
|
|
65
|
+
[subscription_id: string]: Subscription;
|
|
66
|
+
};
|
|
67
|
+
export interface PaymentRouter {
|
|
68
|
+
payment_router_id: string;
|
|
69
|
+
stripe_object: string;
|
|
70
|
+
stripe_id: string;
|
|
71
|
+
table: string;
|
|
72
|
+
id: string;
|
|
73
|
+
date_of_entry: string;
|
|
74
|
+
handled: number;
|
|
75
|
+
guid: string;
|
|
76
|
+
deleted: number;
|
|
77
|
+
}
|
|
78
|
+
export type PaymentRouters = {
|
|
79
|
+
[payment_router_id: string]: PaymentRouter;
|
|
80
|
+
};
|
|
81
|
+
export interface Pricing {
|
|
82
|
+
pricing_id: string;
|
|
83
|
+
stripe_pricing_id: string;
|
|
84
|
+
test_stripe_pricing_id: string;
|
|
85
|
+
code: string;
|
|
86
|
+
name: string;
|
|
87
|
+
description: string;
|
|
88
|
+
type: 'api' | 'picks' | 'trial';
|
|
89
|
+
requests: number;
|
|
90
|
+
read: number;
|
|
91
|
+
guid: string;
|
|
92
|
+
deleted: number;
|
|
93
|
+
}
|
|
94
|
+
export type Pricings = {
|
|
95
|
+
[pricing_id: string]: Pricing;
|
|
96
|
+
};
|
|
97
|
+
export interface ApiKey {
|
|
98
|
+
api_key_id: string;
|
|
99
|
+
key: string;
|
|
100
|
+
user_id: string;
|
|
101
|
+
subscription_id: string;
|
|
102
|
+
requests: number;
|
|
103
|
+
request_limit: number;
|
|
104
|
+
read: number;
|
|
105
|
+
write: number;
|
|
106
|
+
expires: number;
|
|
107
|
+
last_reset: number;
|
|
108
|
+
guid: string;
|
|
109
|
+
deleted: number;
|
|
110
|
+
}
|
|
111
|
+
export type ApiKeys = {
|
|
112
|
+
[api_key_id: string]: ApiKey;
|
|
113
|
+
};
|
|
114
|
+
export interface User {
|
|
115
|
+
user_id: string;
|
|
116
|
+
username: string;
|
|
117
|
+
display_name: string | null;
|
|
118
|
+
stripe_customer: string;
|
|
119
|
+
default_user_payment_token_id: string | null;
|
|
120
|
+
date_of_entry: string;
|
|
121
|
+
updated_at: string;
|
|
122
|
+
guid: string;
|
|
123
|
+
deleted: number;
|
|
124
|
+
}
|
|
125
|
+
export type Users = {
|
|
126
|
+
[user_id: string]: User;
|
|
127
|
+
};
|
|
128
|
+
export interface UserPaymentToken {
|
|
129
|
+
user_payment_token_id: string;
|
|
130
|
+
user_id: string;
|
|
131
|
+
token: string;
|
|
132
|
+
type: string;
|
|
133
|
+
json_data: object;
|
|
134
|
+
date_of_entry: string;
|
|
135
|
+
guid: string;
|
|
136
|
+
deleted: number;
|
|
137
|
+
}
|
|
138
|
+
export type UserPaymentTokens = {
|
|
139
|
+
[user_payment_token_id: string]: UserPaymentToken;
|
|
140
|
+
};
|
|
141
|
+
export interface Notification {
|
|
142
|
+
notification_id: string;
|
|
143
|
+
user_id: string;
|
|
144
|
+
notification_type_terminology_id: string;
|
|
145
|
+
title: string;
|
|
146
|
+
message: string;
|
|
147
|
+
table: string;
|
|
148
|
+
id: string;
|
|
149
|
+
sent: number;
|
|
150
|
+
cleared: number;
|
|
151
|
+
date_of_entry: string;
|
|
152
|
+
guid: string;
|
|
153
|
+
deleted: number;
|
|
154
|
+
}
|
|
155
|
+
export type Notifications = {
|
|
156
|
+
[notification_id: string]: Notification;
|
|
157
|
+
};
|
|
158
|
+
export interface Conference {
|
|
159
|
+
conference_id: string;
|
|
160
|
+
code: string;
|
|
161
|
+
name: string;
|
|
162
|
+
guid: string;
|
|
163
|
+
inactive: number;
|
|
164
|
+
deleted: number;
|
|
165
|
+
}
|
|
166
|
+
export type Conferences = {
|
|
167
|
+
[conference_id: string]: Conference;
|
|
168
|
+
};
|
|
169
|
+
export interface Team {
|
|
170
|
+
team_id: string;
|
|
171
|
+
char6: string;
|
|
172
|
+
code: string;
|
|
173
|
+
name: string;
|
|
174
|
+
alt_name: string;
|
|
175
|
+
primary_color: string;
|
|
176
|
+
secondary_color: string;
|
|
177
|
+
conference_id?: string;
|
|
178
|
+
division_id?: string;
|
|
179
|
+
stats?: StatisticRanking;
|
|
180
|
+
guid: string;
|
|
181
|
+
deleted: number;
|
|
182
|
+
}
|
|
183
|
+
export type Teams = {
|
|
184
|
+
[team_id: string]: Team;
|
|
185
|
+
};
|
|
186
|
+
export interface TeamSeasonConference {
|
|
187
|
+
team_season_conference_id: string;
|
|
188
|
+
organization_id: string;
|
|
189
|
+
team_id: string;
|
|
190
|
+
season: number;
|
|
191
|
+
conference_id: string;
|
|
192
|
+
division_id: string;
|
|
193
|
+
guid: string;
|
|
194
|
+
deleted: number;
|
|
195
|
+
}
|
|
196
|
+
export type TeamSeasonConferences = {
|
|
197
|
+
[team_season_conference_id: string]: TeamSeasonConference;
|
|
198
|
+
};
|
|
199
|
+
export interface Prediction {
|
|
200
|
+
prediction_id: string;
|
|
201
|
+
game_id: string;
|
|
202
|
+
season: number;
|
|
203
|
+
home_percentage: number;
|
|
204
|
+
away_percentage: number;
|
|
205
|
+
home_score: number;
|
|
206
|
+
away_score: number;
|
|
207
|
+
live: number;
|
|
208
|
+
current: number;
|
|
209
|
+
date_of_entry: string;
|
|
210
|
+
guid: string;
|
|
211
|
+
deleted: number;
|
|
212
|
+
}
|
|
213
|
+
export type Predictions = {
|
|
214
|
+
[prediction_id: string]: Prediction;
|
|
215
|
+
};
|
|
216
|
+
export interface Game {
|
|
217
|
+
game_id: string;
|
|
218
|
+
organization_id: string;
|
|
219
|
+
division_id: string;
|
|
220
|
+
season: number;
|
|
221
|
+
away_team_id: string;
|
|
222
|
+
home_team_id: string;
|
|
223
|
+
network: string;
|
|
224
|
+
away_score: number | null;
|
|
225
|
+
home_score: number | null;
|
|
226
|
+
status: string;
|
|
227
|
+
current_period: string;
|
|
228
|
+
clock: string;
|
|
229
|
+
start_date: string;
|
|
230
|
+
start_datetime: string;
|
|
231
|
+
start_timestamp: number;
|
|
232
|
+
attendance: number;
|
|
233
|
+
neutral_site: number;
|
|
234
|
+
is_conf_game: number;
|
|
235
|
+
boxscore: number;
|
|
236
|
+
guid: string;
|
|
237
|
+
deleted: number;
|
|
238
|
+
teams: Team;
|
|
239
|
+
prediction: Prediction;
|
|
240
|
+
odds: Odds;
|
|
241
|
+
}
|
|
242
|
+
export type Games = {
|
|
243
|
+
[game_id: string]: Game;
|
|
244
|
+
};
|
|
245
|
+
export interface Coach {
|
|
246
|
+
coach_id: string;
|
|
247
|
+
first_name: string;
|
|
248
|
+
last_name: string;
|
|
249
|
+
deleted: number;
|
|
250
|
+
}
|
|
251
|
+
export type Coaches = {
|
|
252
|
+
[coach_id: string]: Coach;
|
|
253
|
+
};
|
|
254
|
+
export interface CoachTeamSeason {
|
|
255
|
+
coach_team_season_id: string;
|
|
256
|
+
coach_id: string;
|
|
257
|
+
team_id: string;
|
|
258
|
+
season: number;
|
|
259
|
+
start_date: string;
|
|
260
|
+
end_date: string | null;
|
|
261
|
+
guid: string;
|
|
262
|
+
deleted: number;
|
|
263
|
+
}
|
|
264
|
+
export type CoachTeamSeasons = {
|
|
265
|
+
[coach_team_season_id: string]: CoachTeamSeason;
|
|
266
|
+
};
|
|
267
|
+
export interface CoachElo {
|
|
268
|
+
coach_elo_id: string;
|
|
269
|
+
parent_coach_elo_id: string;
|
|
270
|
+
coach_id: string;
|
|
271
|
+
game_id: string;
|
|
272
|
+
season: number;
|
|
273
|
+
elo: number;
|
|
274
|
+
current: number;
|
|
275
|
+
date_of_entry: string;
|
|
276
|
+
updated_at: string;
|
|
277
|
+
guid: string;
|
|
278
|
+
deleted: number;
|
|
279
|
+
}
|
|
280
|
+
export type CoachElos = {
|
|
281
|
+
[coach_elo_id: string]: CoachElo;
|
|
282
|
+
};
|
|
283
|
+
export interface Elo {
|
|
284
|
+
elo_id: string;
|
|
285
|
+
parent_elo_id: string;
|
|
286
|
+
team_id: string;
|
|
287
|
+
game_id: string;
|
|
288
|
+
season: number;
|
|
289
|
+
elo: number;
|
|
290
|
+
current: number;
|
|
291
|
+
date_of_entry: string;
|
|
292
|
+
updated_at: string;
|
|
293
|
+
guid: string;
|
|
294
|
+
deleted: number;
|
|
295
|
+
}
|
|
296
|
+
export type Elos = {
|
|
297
|
+
[elo_id: string]: Elo;
|
|
298
|
+
};
|
|
299
|
+
export interface PlayerElo {
|
|
300
|
+
player_elo_id: string;
|
|
301
|
+
parent_player_elo_id: string;
|
|
302
|
+
player_id: string;
|
|
303
|
+
game_id: string;
|
|
304
|
+
season: number;
|
|
305
|
+
elo: number;
|
|
306
|
+
current: number;
|
|
307
|
+
date_of_entry: string;
|
|
308
|
+
updated_at: string;
|
|
309
|
+
guid: string;
|
|
310
|
+
deleted: number;
|
|
311
|
+
}
|
|
312
|
+
export type PlayerElos = {
|
|
313
|
+
[player_elo_id: string]: PlayerElo;
|
|
314
|
+
};
|
|
315
|
+
export interface Player {
|
|
316
|
+
player_id: string;
|
|
317
|
+
first_name: string;
|
|
318
|
+
last_name: string;
|
|
319
|
+
position: string;
|
|
320
|
+
height: string;
|
|
321
|
+
weight: string;
|
|
322
|
+
number: string;
|
|
323
|
+
hometown: string;
|
|
324
|
+
class_year?: string;
|
|
325
|
+
guid: string;
|
|
326
|
+
deleted: number;
|
|
327
|
+
}
|
|
328
|
+
export type Players = {
|
|
329
|
+
[player_id: string]: Player;
|
|
330
|
+
};
|
|
331
|
+
export interface PlayerTeamSeason {
|
|
332
|
+
player_team_season_id: string;
|
|
333
|
+
organization_id: string;
|
|
334
|
+
division_id: string;
|
|
335
|
+
player_id: string;
|
|
336
|
+
team_id: string;
|
|
337
|
+
season: number;
|
|
338
|
+
position: string;
|
|
339
|
+
height: string;
|
|
340
|
+
weight: string;
|
|
341
|
+
number: string;
|
|
342
|
+
class_year: string;
|
|
343
|
+
guid: string;
|
|
344
|
+
deleted: number;
|
|
345
|
+
}
|
|
346
|
+
export type PlayerTeamSeasons = {
|
|
347
|
+
[player_team_season_id: string]: PlayerTeamSeason;
|
|
348
|
+
};
|
|
349
|
+
export interface GamePulse {
|
|
350
|
+
game_pulse_id: string;
|
|
351
|
+
game_id: string;
|
|
352
|
+
odds_id: string;
|
|
353
|
+
away_score: number;
|
|
354
|
+
home_score: number;
|
|
355
|
+
current_period: string;
|
|
356
|
+
clock: string;
|
|
357
|
+
date_of_entry: string;
|
|
358
|
+
}
|
|
359
|
+
export type GamePulses = {
|
|
360
|
+
[game_pulse_id: string]: GamePulse;
|
|
361
|
+
};
|
|
362
|
+
export interface GamePlayer {
|
|
363
|
+
game_player_id: string;
|
|
364
|
+
game_id: string;
|
|
365
|
+
team_id: string;
|
|
366
|
+
player_id: string;
|
|
367
|
+
start: string;
|
|
368
|
+
stop: string | null;
|
|
369
|
+
period: number;
|
|
370
|
+
date_of_entry: string;
|
|
371
|
+
}
|
|
372
|
+
export type GamePlayers = {
|
|
373
|
+
[game_player_id: string]: GamePlayer;
|
|
374
|
+
};
|
|
375
|
+
export interface Odds {
|
|
376
|
+
odds_id: string;
|
|
377
|
+
game_id: string;
|
|
378
|
+
money_line_away: number;
|
|
379
|
+
money_line_home: number;
|
|
380
|
+
spread_away: number;
|
|
381
|
+
spread_home: number;
|
|
382
|
+
over: number;
|
|
383
|
+
under: number;
|
|
384
|
+
json_bookmakers: Bookmakers | null;
|
|
385
|
+
date_of_entry: string;
|
|
386
|
+
live: number;
|
|
387
|
+
current: number;
|
|
388
|
+
guid: string;
|
|
389
|
+
deleted: number;
|
|
390
|
+
}
|
|
391
|
+
export type Oddsz = {
|
|
392
|
+
[odds_id: string]: Odds;
|
|
393
|
+
};
|
|
394
|
+
export interface Bookmaker {
|
|
395
|
+
title: string;
|
|
396
|
+
key: string;
|
|
397
|
+
money_line_away: number;
|
|
398
|
+
money_line_home: number;
|
|
399
|
+
spread_away: number;
|
|
400
|
+
spread_home: number;
|
|
401
|
+
over: number;
|
|
402
|
+
under: number;
|
|
403
|
+
}
|
|
404
|
+
export type Bookmakers = {
|
|
405
|
+
[key: string]: Bookmaker;
|
|
406
|
+
};
|
|
407
|
+
export interface CoachStatisticRanking {
|
|
408
|
+
coach_statistic_ranking_id: string;
|
|
409
|
+
organization_id: string;
|
|
410
|
+
division_id: string;
|
|
411
|
+
coach_statistic_id: string;
|
|
412
|
+
season: number;
|
|
413
|
+
coach_id: string;
|
|
414
|
+
rating: number;
|
|
415
|
+
rank: number;
|
|
416
|
+
rank_delta_one: number;
|
|
417
|
+
rank_delta_seven: number;
|
|
418
|
+
elo: number;
|
|
419
|
+
games: number;
|
|
420
|
+
wins: number;
|
|
421
|
+
losses: number;
|
|
422
|
+
confwins: number;
|
|
423
|
+
conflosses: number;
|
|
424
|
+
nonconfwins: number;
|
|
425
|
+
nonconflosses: number;
|
|
426
|
+
neutralwins: number;
|
|
427
|
+
neutrallosses: number;
|
|
428
|
+
homewins: number;
|
|
429
|
+
homelosses: number;
|
|
430
|
+
roadwins: number;
|
|
431
|
+
roadlosses: number;
|
|
432
|
+
elo_sos: number;
|
|
433
|
+
win_percentage: number;
|
|
434
|
+
conf_win_percentage: number;
|
|
435
|
+
nonconf_win_percentage: number;
|
|
436
|
+
home_win_percentage: number;
|
|
437
|
+
road_win_percentage: number;
|
|
438
|
+
neutral_win_percentage: number;
|
|
439
|
+
elo_rank: number;
|
|
440
|
+
wins_rank: number;
|
|
441
|
+
losses_rank: number;
|
|
442
|
+
confwins_rank: number;
|
|
443
|
+
conflosses_rank: number;
|
|
444
|
+
nonconfwins_rank: number;
|
|
445
|
+
nonconflosses_rank: number;
|
|
446
|
+
neutralwins_rank: number;
|
|
447
|
+
neutrallosses_rank: number;
|
|
448
|
+
homewins_rank: number;
|
|
449
|
+
homelosses_rank: number;
|
|
450
|
+
roadwins_rank: number;
|
|
451
|
+
roadlosses_rank: number;
|
|
452
|
+
elo_sos_rank: number;
|
|
453
|
+
win_percentage_rank: number;
|
|
454
|
+
conf_win_percentage_rank: number;
|
|
455
|
+
nonconf_win_percentage_rank: number;
|
|
456
|
+
home_win_percentage_rank: number;
|
|
457
|
+
road_win_percentage_rank: number;
|
|
458
|
+
neutral_win_percentage_rank: number;
|
|
459
|
+
guid: string;
|
|
460
|
+
date_of_rank: string;
|
|
461
|
+
current: number;
|
|
462
|
+
deleted: number;
|
|
463
|
+
}
|
|
464
|
+
export type CoachStatisticRankings = {
|
|
465
|
+
[coach_statistic_ranking_id: string]: CoachStatisticRanking;
|
|
466
|
+
};
|
|
467
|
+
export interface RankingColumns {
|
|
468
|
+
[key: string]: {
|
|
469
|
+
id: string;
|
|
470
|
+
numeric: boolean;
|
|
471
|
+
label: string;
|
|
472
|
+
tooltip: string;
|
|
473
|
+
sort?: string;
|
|
474
|
+
sticky?: boolean;
|
|
475
|
+
disabled?: boolean;
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
export interface FantasyGroupInvite {
|
|
479
|
+
fantasy_group_invite_id: string;
|
|
480
|
+
fantasy_group_id: string;
|
|
481
|
+
email: string;
|
|
482
|
+
code?: string;
|
|
483
|
+
expires: string;
|
|
484
|
+
date_of_entry: string;
|
|
485
|
+
guid: string;
|
|
486
|
+
deleted: number;
|
|
487
|
+
}
|
|
488
|
+
export type FantasyGroupInvites = {
|
|
489
|
+
[fantasy_group_invite_id: string]: FantasyGroupInvite;
|
|
490
|
+
};
|
|
491
|
+
export interface FantasyGroupUser {
|
|
492
|
+
fantasy_group_user_id: string;
|
|
493
|
+
fantasy_group_id: string;
|
|
494
|
+
user_id: string;
|
|
495
|
+
email?: string;
|
|
496
|
+
name?: string;
|
|
497
|
+
date_of_entry: string;
|
|
498
|
+
guid: string;
|
|
499
|
+
deleted: number;
|
|
500
|
+
}
|
|
501
|
+
export type FantasyGroupUsers = {
|
|
502
|
+
[fantasy_group_user_id: string]: FantasyGroupUser;
|
|
503
|
+
};
|
|
504
|
+
export interface FantasyGroupComment {
|
|
505
|
+
fantasy_group_comment_id: string;
|
|
506
|
+
fantasy_group_id: string;
|
|
507
|
+
comment_type_terminology_id: string;
|
|
508
|
+
user_id: string;
|
|
509
|
+
comment: string;
|
|
510
|
+
date_of_entry: string;
|
|
511
|
+
guid: string;
|
|
512
|
+
deleted: number;
|
|
513
|
+
}
|
|
514
|
+
export type FantasyGroupComments = {
|
|
515
|
+
[fantasy_group_comment_id: string]: FantasyGroupComment;
|
|
516
|
+
};
|
|
517
|
+
export interface FantasyGroup {
|
|
518
|
+
fantasy_group_id: string;
|
|
519
|
+
organization_id: string;
|
|
520
|
+
division_id: string;
|
|
521
|
+
season: number;
|
|
522
|
+
name: string;
|
|
523
|
+
fantasy_payout_rule_id: string | null;
|
|
524
|
+
fantasy_group_type_terminology_id: string | null;
|
|
525
|
+
draft_type_terminology_id: string | null;
|
|
526
|
+
draft_scoring_terminology_id: string | null;
|
|
527
|
+
start_date: string | null;
|
|
528
|
+
end_date: string | null;
|
|
529
|
+
draft_start_datetime: string | null;
|
|
530
|
+
cap: number;
|
|
531
|
+
entries: number | null;
|
|
532
|
+
entries_per_user: number;
|
|
533
|
+
free: number;
|
|
534
|
+
entry_fee: number | null;
|
|
535
|
+
open_invites: number;
|
|
536
|
+
locked: number;
|
|
537
|
+
private: number;
|
|
538
|
+
started: number;
|
|
539
|
+
drafted: number;
|
|
540
|
+
finished: number;
|
|
541
|
+
notified_24_hours: number;
|
|
542
|
+
notified_15_mins: number;
|
|
543
|
+
notified_finished: number;
|
|
544
|
+
draft_time_per_user_in_seconds: number | null;
|
|
545
|
+
date_of_entry: string;
|
|
546
|
+
guid: string;
|
|
547
|
+
deleted: number;
|
|
548
|
+
}
|
|
549
|
+
export type FantasyGroups = {
|
|
550
|
+
[fantasy_group_id: string]: FantasyGroup;
|
|
551
|
+
};
|
|
552
|
+
export interface FantasyEntry {
|
|
553
|
+
fantasy_entry_id: string;
|
|
554
|
+
fantasy_group_id: string;
|
|
555
|
+
user_id: string;
|
|
556
|
+
name: string;
|
|
557
|
+
paid: number;
|
|
558
|
+
date_of_entry: string;
|
|
559
|
+
guid: string;
|
|
560
|
+
deleted: number;
|
|
561
|
+
}
|
|
562
|
+
export type FantasyEntrys = {
|
|
563
|
+
[fantasy_entry_id: string]: FantasyEntry;
|
|
564
|
+
};
|
|
565
|
+
export interface FantasyDraftOrder {
|
|
566
|
+
fantasy_draft_order_id: string;
|
|
567
|
+
fantasy_entry_id: string;
|
|
568
|
+
fantasy_group_id: string;
|
|
569
|
+
fantasy_entry_player_id: string;
|
|
570
|
+
round: number;
|
|
571
|
+
pick: number;
|
|
572
|
+
eligible: string;
|
|
573
|
+
expires: string;
|
|
574
|
+
notified: number;
|
|
575
|
+
picked: number;
|
|
576
|
+
guid: string;
|
|
577
|
+
deleted: number;
|
|
578
|
+
}
|
|
579
|
+
export type FantasyDraftOrders = {
|
|
580
|
+
[fantasy_draft_order_id: string]: FantasyDraftOrder;
|
|
581
|
+
};
|
|
582
|
+
export interface FantasyEntryPlayer {
|
|
583
|
+
fantasy_entry_player_id: string;
|
|
584
|
+
fantasy_group_id: string;
|
|
585
|
+
fantasy_entry_id: string;
|
|
586
|
+
player_team_season_id: string;
|
|
587
|
+
date_of_entry: string;
|
|
588
|
+
guid: string;
|
|
589
|
+
deleted: number;
|
|
590
|
+
}
|
|
591
|
+
export type FantasyEntryPlayers = {
|
|
592
|
+
[fantasy_entry_player_id: string]: FantasyEntryPlayer;
|
|
593
|
+
};
|
|
594
|
+
export interface FantasyBracketSlot {
|
|
595
|
+
fantasy_bracket_slot_id: string;
|
|
596
|
+
first_parent_fantasy_bracket_slot_id: string;
|
|
597
|
+
second_parent_fantasy_bracket_slot_id: string;
|
|
598
|
+
child_fantasy_bracket_slot_id: string;
|
|
599
|
+
fantasy_group_id: string;
|
|
600
|
+
fantasy_entry_id: string;
|
|
601
|
+
actual_first_team_id: string | null;
|
|
602
|
+
actual_second_team_id: string | null;
|
|
603
|
+
third_team_id: string | null;
|
|
604
|
+
picked_first_team_id: string | null;
|
|
605
|
+
picked_second_team_id: string | null;
|
|
606
|
+
picked_winner_team_id: string | null;
|
|
607
|
+
game_id: string | null;
|
|
608
|
+
region: string;
|
|
609
|
+
round: number;
|
|
610
|
+
slot: number;
|
|
611
|
+
locked: number;
|
|
612
|
+
picked: number;
|
|
613
|
+
date_of_entry: string;
|
|
614
|
+
guid: string;
|
|
615
|
+
deleted: number;
|
|
616
|
+
}
|
|
617
|
+
export type FantasyBracketSlots = {
|
|
618
|
+
[fantasy_bracket_slot_id: string]: FantasyBracketSlot;
|
|
619
|
+
};
|
|
620
|
+
export interface FantasyRanking {
|
|
621
|
+
fantasy_ranking_id: string;
|
|
622
|
+
parent_fantasy_ranking_id: string;
|
|
623
|
+
fantasy_group_id: string;
|
|
624
|
+
fantasy_entry_id: string;
|
|
625
|
+
date_of_rank: string;
|
|
626
|
+
max: number;
|
|
627
|
+
rank: number;
|
|
628
|
+
rank_delta_one: number;
|
|
629
|
+
rank_delta_seven: number;
|
|
630
|
+
points: number;
|
|
631
|
+
date_of_entry: string;
|
|
632
|
+
updated_at: string;
|
|
633
|
+
current: number;
|
|
634
|
+
guid: string;
|
|
635
|
+
deleted: number;
|
|
636
|
+
}
|
|
637
|
+
export type FantasyRankings = {
|
|
638
|
+
[fantasy_ranking_id: string]: FantasyRanking;
|
|
639
|
+
};
|
|
640
|
+
export interface FantasyEntryPlayerStatisticRanking {
|
|
641
|
+
fantasy_entry_player_statistic_ranking_id: string;
|
|
642
|
+
parent_fantasy_entry_player_statistic_ranking_id: string;
|
|
643
|
+
organization_id: string;
|
|
644
|
+
division_id: string;
|
|
645
|
+
season: number;
|
|
646
|
+
fantasy_group_id: string;
|
|
647
|
+
fantasy_entry_id: string;
|
|
648
|
+
fantasy_entry_player_id: string;
|
|
649
|
+
sport_player_statistic_id: string;
|
|
650
|
+
date_of_rank: string;
|
|
651
|
+
date_of_entry: string;
|
|
652
|
+
updated_at: string;
|
|
653
|
+
current: number;
|
|
654
|
+
guid: string;
|
|
655
|
+
deleted: number;
|
|
656
|
+
}
|
|
657
|
+
export type FantasyEntryPlayerStatisticRankings = {
|
|
658
|
+
[fantasy_entry_player_statistic_ranking_id: string]: FantasyEntryPlayerStatisticRanking;
|
|
659
|
+
};
|
|
660
|
+
export interface BracketTeam {
|
|
661
|
+
bracket_team_id: string;
|
|
662
|
+
organization_id: string;
|
|
663
|
+
division_id: string;
|
|
664
|
+
season: number;
|
|
665
|
+
team_id: string;
|
|
666
|
+
region: string;
|
|
667
|
+
round: number;
|
|
668
|
+
seed: number;
|
|
669
|
+
current: number;
|
|
670
|
+
predicted: number;
|
|
671
|
+
date_of_entry: string;
|
|
672
|
+
guid: string;
|
|
673
|
+
deleted: number;
|
|
674
|
+
}
|
|
675
|
+
export type BracketTeams = {
|
|
676
|
+
[bracket_team_id: string]: BracketTeam;
|
|
677
|
+
};
|
package/dist/index.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@srating-io/types",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"description": "srating.io shared TypeScript types for GUI and API",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"clean": "rm -rf dist",
|
|
14
|
+
"prebuild": "node scripts/generate-exports.js",
|
|
15
|
+
"build": "npm run clean && tsc"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"typescript": "^6.0.3"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/srating-io/types.git"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [],
|
|
25
|
+
"author": "Evan Smalley",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/srating-io/types/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/srating-io/types#readme"
|
|
30
|
+
}
|