forked from willianjusten/nba-remix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
165 lines (153 loc) · 2.61 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
export type RequestInfo = {
origin: string
pathname: string
}
export type Team = {
tn?: string
score?: string
triCode?: string
teamTricode?: string
wins?: string
losses?: string
}
export type TeamScore = {
ta: string
q1: string
q2: string
q3: string
q4: string
ot1?: string
ot2?: string
ot3?: string
ot4?: string
ot5?: string
ot6?: string
ot7?: string
}
export type TeamStatistic = {
tn: string
tstsg: {
fgm: string
fga: string
tpm: string
tpa: string
ftm: string
fta: string
blk: string
reb: string
oreb: string
ast: string
stl: string
tov: string
pip: string
pf: string
}
}
export type TeamGroupStatistics = {
game: {
hTeam: TeamStatistic
vTeam: TeamStatistic
}
}
export type TeamPlayerStats = {
team: {
tc: string
tn: string
ta: string
pstsg: PlayerStats[]
}
}
export type TeamStanding = {
teamSitesOnly: {
teamNickname: string
teamTricode: string
}
teamId: string
confRank: string
win: string
loss: string
winPctV2: string
gamesBehind: string
homeWin: string
homeLoss: string
awayWin: string
awayLoss: string
lastTenWin: string
lastTenLoss: string
isWinStreak: boolean
streak: string
}
export type TeamConference = {
rank: string
name: string
code: string
win: string
loss: string
percentage: string
gamesBehind: string
homeRecord: string
awayRecord: string
lastTenRecord: string
streak: string
}
export type PlayerStats = {
num: string
fn: string
ln: string
min: string
reb: string
ast: string
pts: string
}
export type Game = {
startTimeUTC?: Date
startTime: string
status: number
period: number
isHalftime?: boolean
isEndOfPeriod?: boolean
clock?: string
vTeam: Team
hTeam: Team
playoffs?: {
seriesSummaryText: string
}
}
export type GameList = {
gameId: string
gameCode: string
seasonYear: string
gameTimeUTC: string
gameStatus: number
period: {
current: number
isHalftime: boolean
isEndOfPeriod: boolean
}
playoffs?: {
seriesSummaryText: string
}
gameClock?: string
awayTeam: Team
homeTeam: Team
}
export type SocialMetas = {
url: string
title: string
description: string
origin?: string
image?: string
}
export type UserPreferences = {
favoriteTeam: Team | undefined
}
export type GameDetailsData = {
startTimeUTC: string
status: number
period: number
isHalftime?: boolean
isEndOfPeriod?: boolean
clock?: string
vTeam: Team & TeamScore & TeamPlayerStats['team'] & TeamStatistic
hTeam: Team & TeamScore & TeamPlayerStats['team'] & TeamStatistic
}