types-nora-api 0.0.8 → 0.0.9
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/classes.ts +50 -0
- package/package.json +3 -2
- package/dist/src/classes.d.ts +0 -210
- package/dist/src/classes.js +0 -259
package/dist/classes.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
class Conquista {
|
|
2
|
+
id: number;
|
|
3
|
+
tipoConquista: TipoConquista;
|
|
4
|
+
nome: string;
|
|
5
|
+
descricao: string;
|
|
6
|
+
|
|
7
|
+
constructor(id: number, tipoConquista: TipoConquista, nome: string, descricao: string) {
|
|
8
|
+
this.id = id;
|
|
9
|
+
this.tipoConquista = tipoConquista;
|
|
10
|
+
this.nome = nome;
|
|
11
|
+
this.descricao = descricao;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
class TipoConquista {
|
|
15
|
+
id: number;
|
|
16
|
+
nome: string;
|
|
17
|
+
|
|
18
|
+
constructor(id: number, nome: string) {
|
|
19
|
+
this.id = id;
|
|
20
|
+
this.nome = nome;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
class Atributo {
|
|
24
|
+
id: number;
|
|
25
|
+
linhaEfeito: LinhaEfeito;
|
|
26
|
+
nome: string;
|
|
27
|
+
descricao: string;
|
|
28
|
+
|
|
29
|
+
constructor(id: number, linhaEfeito: LinhaEfeito, nome: string, descricao: string) {
|
|
30
|
+
this.id = id;
|
|
31
|
+
this.linhaEfeito = linhaEfeito;
|
|
32
|
+
this.nome = nome;
|
|
33
|
+
this.descricao = descricao;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
get nomeAbreviado(): string {
|
|
37
|
+
return this.nome.toUpperCase().slice(0, 3);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
class LinhaEfeito {
|
|
41
|
+
id: number;
|
|
42
|
+
nome: string;
|
|
43
|
+
|
|
44
|
+
constructor(id: number, nome: string) {
|
|
45
|
+
this.id = id;
|
|
46
|
+
this.nome = nome;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
export { Conquista, TipoConquista, Atributo, LinhaEfeito };
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "types-nora-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
|
|
5
5
|
"main": "dist/classes.js",
|
|
6
6
|
"types": "dist/classes.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"geraClasses": "ts-node scripts/geraClasses.ts",
|
|
9
9
|
"build": "tsc -p .",
|
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"build:types": "node scripts/extrairClasses.js"
|
|
11
12
|
},
|
|
12
13
|
"files": [
|
|
13
14
|
"dist"
|
package/dist/src/classes.d.ts
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
export declare class Alcance {
|
|
2
|
-
id: number;
|
|
3
|
-
nome: string;
|
|
4
|
-
numero_metros: number;
|
|
5
|
-
descricao: string;
|
|
6
|
-
constructor(id: number, nome: string, numero_metros: number, descricao: string);
|
|
7
|
-
}
|
|
8
|
-
export declare class Atributo {
|
|
9
|
-
id: number;
|
|
10
|
-
linhaEfeito: LinhaEfeito;
|
|
11
|
-
nome: string;
|
|
12
|
-
descricao: string;
|
|
13
|
-
constructor(id: number, linhaEfeito: LinhaEfeito, nome: string, descricao: string);
|
|
14
|
-
get nomeAbreviado(): string;
|
|
15
|
-
}
|
|
16
|
-
export declare class CategoriaRitual {
|
|
17
|
-
id: number;
|
|
18
|
-
circuloRitual: CirculoRitual;
|
|
19
|
-
nivelRitual: NivelRitual;
|
|
20
|
-
valorPsSacrificado: number;
|
|
21
|
-
constructor(id: number, circuloRitual: CirculoRitual, nivelRitual: NivelRitual, valorPsSacrificado: number);
|
|
22
|
-
get nome(): string;
|
|
23
|
-
}
|
|
24
|
-
export declare class CirculoRitual {
|
|
25
|
-
id: number;
|
|
26
|
-
nome: string;
|
|
27
|
-
constructor(id: number, nome: string);
|
|
28
|
-
get nomeCompleto(): string;
|
|
29
|
-
}
|
|
30
|
-
export declare class Classe {
|
|
31
|
-
id: number;
|
|
32
|
-
nome: string;
|
|
33
|
-
descricao: string;
|
|
34
|
-
constructor(id: number, nome: string, descricao: string);
|
|
35
|
-
}
|
|
36
|
-
export declare class Duracao {
|
|
37
|
-
id: number;
|
|
38
|
-
nome: string;
|
|
39
|
-
constructor(id: number, nome: string);
|
|
40
|
-
}
|
|
41
|
-
export declare class Elemento {
|
|
42
|
-
id: number;
|
|
43
|
-
nome: string;
|
|
44
|
-
cores: PaletaCores;
|
|
45
|
-
constructor(id: number, nome: string, cores: PaletaCores);
|
|
46
|
-
}
|
|
47
|
-
export declare class EstatisticaDanificavel {
|
|
48
|
-
id: number;
|
|
49
|
-
nome: string;
|
|
50
|
-
cor: string;
|
|
51
|
-
descricao: string;
|
|
52
|
-
constructor(id: number, nome: string, cor: string, descricao: string);
|
|
53
|
-
get nomeAbreviado(): string;
|
|
54
|
-
}
|
|
55
|
-
export declare class Execucao {
|
|
56
|
-
id: number;
|
|
57
|
-
linhaEfeito: LinhaEfeito;
|
|
58
|
-
nome: string;
|
|
59
|
-
constructor(id: number, linhaEfeito: LinhaEfeito, nome: string);
|
|
60
|
-
}
|
|
61
|
-
export declare class FormatoAlcance {
|
|
62
|
-
id: number;
|
|
63
|
-
nome: string;
|
|
64
|
-
constructor(id: number, nome: string);
|
|
65
|
-
}
|
|
66
|
-
export declare class LinhaEfeito {
|
|
67
|
-
id: number;
|
|
68
|
-
nome: string;
|
|
69
|
-
atributo: Atributo;
|
|
70
|
-
constructor(id: number, nome: string, atributo: Atributo);
|
|
71
|
-
}
|
|
72
|
-
export declare class Nivel {
|
|
73
|
-
id: number;
|
|
74
|
-
valoNivel: number;
|
|
75
|
-
constructor(id: number, valoNivel: number);
|
|
76
|
-
get nomeDisplay(): string;
|
|
77
|
-
}
|
|
78
|
-
export declare class NivelComponente {
|
|
79
|
-
id: number;
|
|
80
|
-
nome: string;
|
|
81
|
-
constructor(id: number, nome: string);
|
|
82
|
-
}
|
|
83
|
-
export declare class NivelProficiencia {
|
|
84
|
-
id: number;
|
|
85
|
-
nivel: number;
|
|
86
|
-
constructor(id: number, nivel: number);
|
|
87
|
-
}
|
|
88
|
-
export declare class NivelRitual {
|
|
89
|
-
id: number;
|
|
90
|
-
nome: string;
|
|
91
|
-
constructor(id: number, nome: string);
|
|
92
|
-
}
|
|
93
|
-
export declare class PetentePericia {
|
|
94
|
-
id: number;
|
|
95
|
-
nome: string;
|
|
96
|
-
bonusPatente: number;
|
|
97
|
-
cor: string;
|
|
98
|
-
constructor(id: number, nome: string, bonusPatente: number, cor: string);
|
|
99
|
-
}
|
|
100
|
-
export declare class Pericia {
|
|
101
|
-
id: number;
|
|
102
|
-
atributo: Atributo;
|
|
103
|
-
linhaEfeito: LinhaEfeito;
|
|
104
|
-
nome: string;
|
|
105
|
-
descricao: string;
|
|
106
|
-
constructor(id: number, atributo: Atributo, linhaEfeito: LinhaEfeito, nome: string, descricao: string);
|
|
107
|
-
get nomeAbreviado(): string;
|
|
108
|
-
}
|
|
109
|
-
export declare class Proficiencia {
|
|
110
|
-
id: number;
|
|
111
|
-
tipoProficiencia: TipoProficiencia;
|
|
112
|
-
nivelProficiencia: NivelProficiencia;
|
|
113
|
-
nome: string;
|
|
114
|
-
constructor(id: number, tipoProficiencia: TipoProficiencia, nivelProficiencia: NivelProficiencia, nome: string);
|
|
115
|
-
}
|
|
116
|
-
export declare class TipoAlvo {
|
|
117
|
-
id: number;
|
|
118
|
-
nome: string;
|
|
119
|
-
constructor(id: number, nome: string);
|
|
120
|
-
}
|
|
121
|
-
export declare class TipoCategoria {
|
|
122
|
-
id: number;
|
|
123
|
-
valorCategoria: number;
|
|
124
|
-
constructor(id: number, valorCategoria: number);
|
|
125
|
-
get nomeCategoria(): string;
|
|
126
|
-
}
|
|
127
|
-
export declare class TipoDano {
|
|
128
|
-
id: number;
|
|
129
|
-
linhaEfeito: LinhaEfeito;
|
|
130
|
-
tipoDanoPertencente: TipoDano;
|
|
131
|
-
nome: string;
|
|
132
|
-
constructor(id: number, linhaEfeito: LinhaEfeito, tipoDanoPertencente: TipoDano, nome: string);
|
|
133
|
-
}
|
|
134
|
-
export declare class TipoEfeito {
|
|
135
|
-
id: number;
|
|
136
|
-
nome: string;
|
|
137
|
-
nomeVisualizacao: string;
|
|
138
|
-
constructor(id: number, nome: string, nomeVisualizacao: string);
|
|
139
|
-
}
|
|
140
|
-
export declare class TipoItem {
|
|
141
|
-
id: number;
|
|
142
|
-
nome: string;
|
|
143
|
-
constructor(id: number, nome: string);
|
|
144
|
-
}
|
|
145
|
-
export declare class TipoProficiencia {
|
|
146
|
-
id: number;
|
|
147
|
-
nome: string;
|
|
148
|
-
constructor(id: number, nome: string);
|
|
149
|
-
}
|
|
150
|
-
export declare class PerfilAdmin {
|
|
151
|
-
id: number;
|
|
152
|
-
nome: string;
|
|
153
|
-
descricao: string;
|
|
154
|
-
constructor(id: number, nome: string, descricao: string);
|
|
155
|
-
}
|
|
156
|
-
export declare class PerfilJogador {
|
|
157
|
-
id: number;
|
|
158
|
-
nome: string;
|
|
159
|
-
descricao: string;
|
|
160
|
-
constructor(id: number, nome: string, descricao: string);
|
|
161
|
-
}
|
|
162
|
-
export declare class PerfilMestre {
|
|
163
|
-
id: number;
|
|
164
|
-
nome: string;
|
|
165
|
-
descricao: string;
|
|
166
|
-
constructor(id: number, nome: string, descricao: string);
|
|
167
|
-
}
|
|
168
|
-
export declare class AuthSession {
|
|
169
|
-
expiredAt: number;
|
|
170
|
-
id: string;
|
|
171
|
-
destroyedAt: Date;
|
|
172
|
-
json: string;
|
|
173
|
-
constructor(expiredAt: number, id: string, destroyedAt: Date, json: string);
|
|
174
|
-
}
|
|
175
|
-
export declare class Usuario {
|
|
176
|
-
id: number;
|
|
177
|
-
perfilJogador: PerfilJogador;
|
|
178
|
-
perfilMestre: PerfilMestre;
|
|
179
|
-
perfilAdmin: PerfilAdmin;
|
|
180
|
-
username: string;
|
|
181
|
-
email: string;
|
|
182
|
-
discordId: string;
|
|
183
|
-
constructor(id: number, perfilJogador: PerfilJogador, perfilMestre: PerfilMestre, perfilAdmin: PerfilAdmin, username: string, email: string, discordId: string);
|
|
184
|
-
}
|
|
185
|
-
export interface PaletaCores {
|
|
186
|
-
corPrimaria: string;
|
|
187
|
-
corSecundaria: string;
|
|
188
|
-
corTerciaria: string;
|
|
189
|
-
}
|
|
190
|
-
export type EstruturaPaginaDefinicao = {
|
|
191
|
-
titulo: string;
|
|
192
|
-
subtitulo?: string;
|
|
193
|
-
listaConteudo: {
|
|
194
|
-
itens: ConteudoItem[];
|
|
195
|
-
};
|
|
196
|
-
listaItensDefinicoesConectadas?: {
|
|
197
|
-
etiqueta: string;
|
|
198
|
-
subPaginaDefinicao: string;
|
|
199
|
-
}[];
|
|
200
|
-
};
|
|
201
|
-
export type ConteudoItem = {
|
|
202
|
-
tipo: "Definicao";
|
|
203
|
-
paragrafos: string[];
|
|
204
|
-
} | {
|
|
205
|
-
tipo: "Lista";
|
|
206
|
-
itensLista: {
|
|
207
|
-
etiqueta: string;
|
|
208
|
-
subPaginaDefinicao: string;
|
|
209
|
-
}[];
|
|
210
|
-
};
|
package/dist/src/classes.js
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Usuario = exports.AuthSession = exports.PerfilMestre = exports.PerfilJogador = exports.PerfilAdmin = exports.TipoProficiencia = exports.TipoItem = exports.TipoEfeito = exports.TipoDano = exports.TipoCategoria = exports.TipoAlvo = exports.Proficiencia = exports.Pericia = exports.PetentePericia = exports.NivelRitual = exports.NivelProficiencia = exports.NivelComponente = exports.Nivel = exports.LinhaEfeito = exports.FormatoAlcance = exports.Execucao = exports.EstatisticaDanificavel = exports.Elemento = exports.Duracao = exports.Classe = exports.CirculoRitual = exports.CategoriaRitual = exports.Atributo = exports.Alcance = void 0;
|
|
4
|
-
class Alcance {
|
|
5
|
-
constructor(id, nome, numero_metros, descricao) {
|
|
6
|
-
this.id = id;
|
|
7
|
-
this.nome = nome;
|
|
8
|
-
this.numero_metros = numero_metros;
|
|
9
|
-
this.descricao = descricao;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.Alcance = Alcance;
|
|
13
|
-
class Atributo {
|
|
14
|
-
constructor(id, linhaEfeito, nome, descricao) {
|
|
15
|
-
this.id = id;
|
|
16
|
-
this.linhaEfeito = linhaEfeito;
|
|
17
|
-
this.nome = nome;
|
|
18
|
-
this.descricao = descricao;
|
|
19
|
-
}
|
|
20
|
-
get nomeAbreviado() {
|
|
21
|
-
return this.nome.toUpperCase().slice(0, 3);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.Atributo = Atributo;
|
|
25
|
-
class CategoriaRitual {
|
|
26
|
-
constructor(id, circuloRitual, nivelRitual, valorPsSacrificado) {
|
|
27
|
-
this.id = id;
|
|
28
|
-
this.circuloRitual = circuloRitual;
|
|
29
|
-
this.nivelRitual = nivelRitual;
|
|
30
|
-
this.valorPsSacrificado = valorPsSacrificado;
|
|
31
|
-
}
|
|
32
|
-
get nome() {
|
|
33
|
-
return `${this.circuloRitual.nomeCompleto} ${this.nivelRitual.nome}`;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.CategoriaRitual = CategoriaRitual;
|
|
37
|
-
class CirculoRitual {
|
|
38
|
-
constructor(id, nome) {
|
|
39
|
-
this.id = id;
|
|
40
|
-
this.nome = nome;
|
|
41
|
-
}
|
|
42
|
-
get nomeCompleto() {
|
|
43
|
-
return `${this.nome}º Círculo`;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.CirculoRitual = CirculoRitual;
|
|
47
|
-
class Classe {
|
|
48
|
-
constructor(id, nome, descricao) {
|
|
49
|
-
this.id = id;
|
|
50
|
-
this.nome = nome;
|
|
51
|
-
this.descricao = descricao;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.Classe = Classe;
|
|
55
|
-
class Duracao {
|
|
56
|
-
constructor(id, nome) {
|
|
57
|
-
this.id = id;
|
|
58
|
-
this.nome = nome;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.Duracao = Duracao;
|
|
62
|
-
class Elemento {
|
|
63
|
-
constructor(id, nome, cores) {
|
|
64
|
-
this.id = id;
|
|
65
|
-
this.nome = nome;
|
|
66
|
-
this.cores = cores;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.Elemento = Elemento;
|
|
70
|
-
class EstatisticaDanificavel {
|
|
71
|
-
constructor(id, nome, cor, descricao) {
|
|
72
|
-
this.id = id;
|
|
73
|
-
this.nome = nome;
|
|
74
|
-
this.cor = cor;
|
|
75
|
-
this.descricao = descricao;
|
|
76
|
-
}
|
|
77
|
-
get nomeAbreviado() {
|
|
78
|
-
return this.nome.split(" ").filter(word => word.toLowerCase() !== "de").map(word => word[0].toUpperCase()).join(".") + ".";
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.EstatisticaDanificavel = EstatisticaDanificavel;
|
|
82
|
-
class Execucao {
|
|
83
|
-
constructor(id, linhaEfeito, nome) {
|
|
84
|
-
this.id = id;
|
|
85
|
-
this.linhaEfeito = linhaEfeito;
|
|
86
|
-
this.nome = nome;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.Execucao = Execucao;
|
|
90
|
-
class FormatoAlcance {
|
|
91
|
-
constructor(id, nome) {
|
|
92
|
-
this.id = id;
|
|
93
|
-
this.nome = nome;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
exports.FormatoAlcance = FormatoAlcance;
|
|
97
|
-
class LinhaEfeito {
|
|
98
|
-
constructor(id, nome, atributo) {
|
|
99
|
-
this.id = id;
|
|
100
|
-
this.nome = nome;
|
|
101
|
-
this.atributo = atributo;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.LinhaEfeito = LinhaEfeito;
|
|
105
|
-
class Nivel {
|
|
106
|
-
constructor(id, valoNivel) {
|
|
107
|
-
this.id = id;
|
|
108
|
-
this.valoNivel = valoNivel;
|
|
109
|
-
}
|
|
110
|
-
get nomeDisplay() {
|
|
111
|
-
return `${this.valoNivel}% EX.P.`;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
exports.Nivel = Nivel;
|
|
115
|
-
class NivelComponente {
|
|
116
|
-
constructor(id, nome) {
|
|
117
|
-
this.id = id;
|
|
118
|
-
this.nome = nome;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.NivelComponente = NivelComponente;
|
|
122
|
-
class NivelProficiencia {
|
|
123
|
-
constructor(id, nivel) {
|
|
124
|
-
this.id = id;
|
|
125
|
-
this.nivel = nivel;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
exports.NivelProficiencia = NivelProficiencia;
|
|
129
|
-
class NivelRitual {
|
|
130
|
-
constructor(id, nome) {
|
|
131
|
-
this.id = id;
|
|
132
|
-
this.nome = nome;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
exports.NivelRitual = NivelRitual;
|
|
136
|
-
class PetentePericia {
|
|
137
|
-
constructor(id, nome, bonusPatente, cor) {
|
|
138
|
-
this.id = id;
|
|
139
|
-
this.nome = nome;
|
|
140
|
-
this.bonusPatente = bonusPatente;
|
|
141
|
-
this.cor = cor;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
exports.PetentePericia = PetentePericia;
|
|
145
|
-
class Pericia {
|
|
146
|
-
constructor(id, atributo, linhaEfeito, nome, descricao) {
|
|
147
|
-
this.id = id;
|
|
148
|
-
this.atributo = atributo;
|
|
149
|
-
this.linhaEfeito = linhaEfeito;
|
|
150
|
-
this.nome = nome;
|
|
151
|
-
this.descricao = descricao;
|
|
152
|
-
}
|
|
153
|
-
get nomeAbreviado() {
|
|
154
|
-
return this.nome.toUpperCase().slice(0, 4);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
exports.Pericia = Pericia;
|
|
158
|
-
class Proficiencia {
|
|
159
|
-
constructor(id, tipoProficiencia, nivelProficiencia, nome) {
|
|
160
|
-
this.id = id;
|
|
161
|
-
this.tipoProficiencia = tipoProficiencia;
|
|
162
|
-
this.nivelProficiencia = nivelProficiencia;
|
|
163
|
-
this.nome = nome;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
exports.Proficiencia = Proficiencia;
|
|
167
|
-
class TipoAlvo {
|
|
168
|
-
constructor(id, nome) {
|
|
169
|
-
this.id = id;
|
|
170
|
-
this.nome = nome;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
exports.TipoAlvo = TipoAlvo;
|
|
174
|
-
class TipoCategoria {
|
|
175
|
-
constructor(id, valorCategoria) {
|
|
176
|
-
this.id = id;
|
|
177
|
-
this.valorCategoria = valorCategoria;
|
|
178
|
-
}
|
|
179
|
-
get nomeCategoria() {
|
|
180
|
-
return `Categoria ${this.valorCategoria}`;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
exports.TipoCategoria = TipoCategoria;
|
|
184
|
-
class TipoDano {
|
|
185
|
-
constructor(id, linhaEfeito, tipoDanoPertencente, nome) {
|
|
186
|
-
this.id = id;
|
|
187
|
-
this.linhaEfeito = linhaEfeito;
|
|
188
|
-
this.tipoDanoPertencente = tipoDanoPertencente;
|
|
189
|
-
this.nome = nome;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
exports.TipoDano = TipoDano;
|
|
193
|
-
class TipoEfeito {
|
|
194
|
-
constructor(id, nome, nomeVisualizacao) {
|
|
195
|
-
this.id = id;
|
|
196
|
-
this.nome = nome;
|
|
197
|
-
this.nomeVisualizacao = nomeVisualizacao;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
exports.TipoEfeito = TipoEfeito;
|
|
201
|
-
class TipoItem {
|
|
202
|
-
constructor(id, nome) {
|
|
203
|
-
this.id = id;
|
|
204
|
-
this.nome = nome;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
exports.TipoItem = TipoItem;
|
|
208
|
-
class TipoProficiencia {
|
|
209
|
-
constructor(id, nome) {
|
|
210
|
-
this.id = id;
|
|
211
|
-
this.nome = nome;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
exports.TipoProficiencia = TipoProficiencia;
|
|
215
|
-
class PerfilAdmin {
|
|
216
|
-
constructor(id, nome, descricao) {
|
|
217
|
-
this.id = id;
|
|
218
|
-
this.nome = nome;
|
|
219
|
-
this.descricao = descricao;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
exports.PerfilAdmin = PerfilAdmin;
|
|
223
|
-
class PerfilJogador {
|
|
224
|
-
constructor(id, nome, descricao) {
|
|
225
|
-
this.id = id;
|
|
226
|
-
this.nome = nome;
|
|
227
|
-
this.descricao = descricao;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
exports.PerfilJogador = PerfilJogador;
|
|
231
|
-
class PerfilMestre {
|
|
232
|
-
constructor(id, nome, descricao) {
|
|
233
|
-
this.id = id;
|
|
234
|
-
this.nome = nome;
|
|
235
|
-
this.descricao = descricao;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
exports.PerfilMestre = PerfilMestre;
|
|
239
|
-
class AuthSession {
|
|
240
|
-
constructor(expiredAt, id, destroyedAt, json) {
|
|
241
|
-
this.expiredAt = expiredAt;
|
|
242
|
-
this.id = id;
|
|
243
|
-
this.destroyedAt = destroyedAt;
|
|
244
|
-
this.json = json;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
exports.AuthSession = AuthSession;
|
|
248
|
-
class Usuario {
|
|
249
|
-
constructor(id, perfilJogador, perfilMestre, perfilAdmin, username, email, discordId) {
|
|
250
|
-
this.id = id;
|
|
251
|
-
this.perfilJogador = perfilJogador;
|
|
252
|
-
this.perfilMestre = perfilMestre;
|
|
253
|
-
this.perfilAdmin = perfilAdmin;
|
|
254
|
-
this.username = username;
|
|
255
|
-
this.email = email;
|
|
256
|
-
this.discordId = discordId;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
exports.Usuario = Usuario;
|