-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.ts
161 lines (153 loc) · 3.27 KB
/
interfaces.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
// This file has all the interface that are used on the program, the interfaces are how typescript recognize types on responses (promises or static).
// All the interfaces are exported to be used in other files.
export interface marketStatusInterface {
rodada_atual: number,
status_mercado: number,
esquema_default_id: number,
cartoleta_inicial: number,
max_ligas_free: number,
max_ligas_pro: number,
max_ligas_matamata_free: number,
max_ligas_matamata_pro: number,
max_ligas_patrocinadas_free: number,
max_ligas_patrocinadas_pro_num: number,
game_over: boolean,
temporada: number,
reativar: boolean,
exibe_sorteio_pro: boolean,
fechamento: {
dia: number,
mes: number,
ano: number,
hora: number,
minuto: number,
timestamp: number
},
limites_competicao: {
total_confronto_pro: number,
total_confronto_free: number,
criacao_confronto_pro: number,
criacao_confronto_free: number
},
times_escalados: number,
mercado_pos_rodada: boolean,
novo_mes_ranking: boolean
}
export interface trendingPlayersInterface {
posicao: string,
posicao_abreviacao: string,
clube: string,
clube_nome: string,
escudo_clube: string,
Atleta: {
nome: string,
apelido: string,
apelido_abreviado: string,
foto: string,
atleta_id: number,
preco_editorial: string
},
clube_id: number,
escalacoes: number
}
// Positions
// 1 -> gol
// 2 -> lat
// 3 -> zag
// 4 -> mei
// 5 -> ata
// 6 -> tec
export interface schemasInterface {
esquema_id: number,
nome: string,
posicoes: {
ata: number,
gol: number,
lat: number,
mei: number,
tec: number,
zag: number
}
}
// Status
// 2 -> Dúvida
// 3 -> Suspenso
// 5 -> Contundido
// 6 -> Nulo
// 7 -> Provável
export interface allPlayersInterface {
atletas: [
{
scout: {
A: number,
CA: number,
DS: number,
FC: number,
FD: number,
FF: number,
FS: number,
G: number,
I: number,
PI: number
},
atleta_id: number,
rodada_id: number,
clube_id: number,
posicao_id: number,
status_id: number,
pontos_num: number,
preco_num: number,
variacao_num: number,
media_num: number,
jogos_num: number,
slug: string,
apelido: string,
apelido_abreviado: string,
nome: string,
foto: string
},
]
}
export interface responsePlayerInterface {
scout: {
A: number,
CA: number,
DS: number,
FC: number,
FD: number,
FF: number,
FS: number,
G: number,
I: number,
PI: number
},
atleta_id: number,
rodada_id: number,
clube_id: number,
posicao_id: number,
status_id: number,
pontos_num: number,
preco_num: number,
variacao_num: number,
media_num: number,
jogos_num: number,
slug: string,
apelido: string,
apelido_abreviado: string,
nome: string,
foto: string
}
export interface clubInterface {
nome: string,
abreviacao: string,
nome_fantasia: string,
id: number
}
export interface formattedPlayerInterface {
id: string,
name: string,
club_id: number,
club_name: string,
position: number,
capitain?: boolean
}