types-nora-api 0.0.23 → 0.0.24
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.d.ts +190 -232
- package/dist/classes.js +6 -608
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -1,301 +1,259 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface IAventura {
|
|
2
|
+
geracao: GeracaoDto;
|
|
3
|
+
gruposAventura: GrupoAventuraDto[];
|
|
4
|
+
titulo: string;
|
|
5
5
|
dataCriacao: Date;
|
|
6
|
-
|
|
6
|
+
obtemEstadoAtual: AventuraEstado;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type AventuraDto = IAventura;
|
|
9
|
+
interface IConviteGrupoAventuraPersonagem {
|
|
10
|
+
grupoAventura: GrupoAventuraDto;
|
|
11
|
+
usuario: UsuarioDto;
|
|
12
|
+
dataCriacao: Date;
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
type ConviteGrupoAventuraPersonagemDto = IConviteGrupoAventuraPersonagem;
|
|
15
|
+
interface IGrupoAventura {
|
|
13
16
|
nome: string;
|
|
14
|
-
|
|
17
|
+
aventura: AventuraDto;
|
|
18
|
+
usuarioMestre: UsuarioDto;
|
|
19
|
+
personagensDaAventura: GrupoAventuraPersonagemDto[];
|
|
20
|
+
dataPrevisaoInicio: Date;
|
|
21
|
+
dataInicio: Date;
|
|
22
|
+
dataFim: Date;
|
|
23
|
+
ddsPadrao: number;
|
|
24
|
+
recorrencia: string;
|
|
25
|
+
horaInicio: string;
|
|
26
|
+
horaFim: string;
|
|
27
|
+
obtemEstadoAtual: AventuraEstado;
|
|
28
|
+
obtemTextoInformacionalOcorrencia: string | null;
|
|
29
|
+
}
|
|
30
|
+
type GrupoAventuraDto = IGrupoAventura;
|
|
31
|
+
interface IGrupoAventuraPersonagem {
|
|
32
|
+
grupoAventura: GrupoAventuraDto;
|
|
33
|
+
personagem: PersonagemDto;
|
|
34
|
+
}
|
|
35
|
+
type GrupoAventuraPersonagemDto = IGrupoAventuraPersonagem;
|
|
36
|
+
interface IRespostaConvite {
|
|
37
|
+
convite: ConviteGrupoAventuraPersonagemDto;
|
|
38
|
+
tipoResposta: TipoRespostaConviteDto;
|
|
39
|
+
personagemVinculado: PersonagemDto;
|
|
40
|
+
dataCriacao: Date;
|
|
15
41
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
tipoConquista: TipoConquista;
|
|
42
|
+
type RespostaConviteDto = IRespostaConvite;
|
|
43
|
+
interface ITipoRespostaConvite {
|
|
19
44
|
nome: string;
|
|
20
|
-
descricao: string;
|
|
21
|
-
constructor(id: number, tipoConquista: TipoConquista, nome: string, descricao: string);
|
|
22
45
|
}
|
|
23
|
-
|
|
24
|
-
|
|
46
|
+
type TipoRespostaConviteDto = ITipoRespostaConvite;
|
|
47
|
+
interface IConquista {
|
|
48
|
+
tipoConquista: TipoConquistaDto;
|
|
25
49
|
nome: string;
|
|
26
|
-
|
|
50
|
+
descricao: string;
|
|
27
51
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
imagemCapa: Imagem;
|
|
32
|
-
gruposAventura: GrupoAventura[];
|
|
33
|
-
titulo: string;
|
|
34
|
-
dataCriacao: Date;
|
|
35
|
-
constructor(id: number, geracao: Geracao, imagemCapa: Imagem, gruposAventura: GrupoAventura[], titulo: string, dataCriacao: Date);
|
|
36
|
-
get obtemEstadoAtual(): AventuraEstado;
|
|
52
|
+
type ConquistaDto = IConquista;
|
|
53
|
+
interface ITipoConquista {
|
|
54
|
+
nome: string;
|
|
37
55
|
}
|
|
38
|
-
|
|
56
|
+
type TipoConquistaDto = ITipoConquista;
|
|
57
|
+
interface IGeracao {
|
|
39
58
|
id: number;
|
|
40
|
-
aventuras:
|
|
59
|
+
aventuras: AventuraDto[];
|
|
41
60
|
nome: string;
|
|
42
61
|
anoInicio: number;
|
|
43
|
-
constructor(id: number, aventuras: Aventura[], nome: string, anoInicio: number);
|
|
44
|
-
}
|
|
45
|
-
declare class GrupoAventura {
|
|
46
|
-
id: number;
|
|
47
|
-
nomeGrupo: string;
|
|
48
|
-
aventura: Aventura;
|
|
49
|
-
usuarioMestre: Usuario;
|
|
50
|
-
personagensDaAventura: GrupoAventuraPersonagem[];
|
|
51
|
-
dataPrevisaoInicio: Date;
|
|
52
|
-
dataInicio: Date | null;
|
|
53
|
-
dataFim: Date | null;
|
|
54
|
-
ddsPadrao: number;
|
|
55
|
-
recorrencia: string;
|
|
56
|
-
horaInicio: string;
|
|
57
|
-
horaFim: string;
|
|
58
|
-
constructor(id: number, nomeGrupo: string, aventura: Aventura, usuarioMestre: Usuario, personagensDaAventura: GrupoAventuraPersonagem[], dataPrevisaoInicio: Date, dataInicio: Date | null, dataFim: Date | null, ddsPadrao: number, recorrencia: string, horaInicio: string, horaFim: string);
|
|
59
|
-
get obtemEstadoAtual(): AventuraEstado;
|
|
60
|
-
get obtemTextoInformacionalOcorrencia(): string | null;
|
|
61
|
-
}
|
|
62
|
-
declare class GrupoAventuraPersonagem {
|
|
63
|
-
fkGruposAventurasId: number;
|
|
64
|
-
fkPersonagensId: number;
|
|
65
|
-
grupoAventura: GrupoAventura;
|
|
66
|
-
personagem: Personagem;
|
|
67
|
-
constructor(fkGruposAventurasId: number, fkPersonagensId: number, grupoAventura: GrupoAventura, personagem: Personagem);
|
|
68
62
|
}
|
|
63
|
+
type GeracaoDto = IGeracao;
|
|
69
64
|
declare class Imagem {
|
|
70
65
|
id: number;
|
|
71
66
|
urlArquivo: string;
|
|
72
67
|
constructor(id: number, urlArquivo: string);
|
|
73
68
|
}
|
|
74
|
-
|
|
75
|
-
id: number;
|
|
69
|
+
interface IAlcance {
|
|
76
70
|
nome: string;
|
|
77
|
-
|
|
78
|
-
descricao: string
|
|
79
|
-
constructor(id: number, nome: string, numero_metros: number, descricao: string | null);
|
|
71
|
+
numeroMetros: number;
|
|
72
|
+
descricao: string;
|
|
80
73
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
linhaEfeito:
|
|
84
|
-
pericias:
|
|
74
|
+
type AlcanceDto = IAlcance;
|
|
75
|
+
interface IAtributo {
|
|
76
|
+
linhaEfeito: LinhaEfeitoDto;
|
|
77
|
+
pericias: PericiaDto[];
|
|
85
78
|
nome: string;
|
|
86
79
|
descricao: string;
|
|
87
|
-
|
|
88
|
-
get nomeAbreviado(): string;
|
|
80
|
+
nomeAbreviado: string;
|
|
89
81
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
circuloRitual:
|
|
93
|
-
nivelRitual:
|
|
82
|
+
type AtributoDto = IAtributo;
|
|
83
|
+
interface ICategoriaRitual {
|
|
84
|
+
circuloRitual: CirculoRitualDto;
|
|
85
|
+
nivelRitual: NivelRitualDto;
|
|
94
86
|
valorPsSacrificado: number;
|
|
95
|
-
|
|
96
|
-
get nome(): string;
|
|
87
|
+
nome: string;
|
|
97
88
|
}
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
type CategoriaRitualDto = ICategoriaRitual;
|
|
90
|
+
interface ICirculoRitual {
|
|
100
91
|
nome: string;
|
|
101
|
-
|
|
102
|
-
get nomeCompleto(): string;
|
|
92
|
+
nomeCompleto: string;
|
|
103
93
|
}
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
type CirculoRitualDto = ICirculoRitual;
|
|
95
|
+
interface IClasse {
|
|
106
96
|
nome: string;
|
|
107
97
|
descricao: string;
|
|
108
|
-
constructor(id: number, nome: string, descricao: string);
|
|
109
98
|
}
|
|
110
|
-
|
|
111
|
-
|
|
99
|
+
type ClasseDto = IClasse;
|
|
100
|
+
interface IDuracao {
|
|
112
101
|
nome: string;
|
|
113
|
-
constructor(id: number, nome: string);
|
|
114
102
|
}
|
|
115
|
-
|
|
116
|
-
|
|
103
|
+
type DuracaoDto = IDuracao;
|
|
104
|
+
interface IElemento {
|
|
117
105
|
nome: string;
|
|
118
106
|
cores: PaletaCores;
|
|
119
|
-
constructor(id: number, nome: string, cores: PaletaCores);
|
|
120
107
|
}
|
|
121
|
-
|
|
122
|
-
|
|
108
|
+
type ElementoDto = IElemento;
|
|
109
|
+
interface IEstatisticaDanificavel {
|
|
123
110
|
nome: string;
|
|
124
111
|
cor: string;
|
|
125
112
|
descricao: string;
|
|
126
|
-
|
|
127
|
-
get nomeAbreviado(): string;
|
|
113
|
+
nomeAbreviado: string;
|
|
128
114
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
linhaEfeito:
|
|
115
|
+
type EstatisticaDanificavelDto = IEstatisticaDanificavel;
|
|
116
|
+
interface IExecucao {
|
|
117
|
+
linhaEfeito: LinhaEfeitoDto;
|
|
132
118
|
nome: string;
|
|
133
|
-
constructor(id: number, linhaEfeito: LinhaEfeito, nome: string);
|
|
134
119
|
}
|
|
135
|
-
|
|
136
|
-
|
|
120
|
+
type ExecucaoDto = IExecucao;
|
|
121
|
+
interface IFormatoAlcance {
|
|
137
122
|
nome: string;
|
|
138
|
-
constructor(id: number, nome: string);
|
|
139
123
|
}
|
|
140
|
-
|
|
141
|
-
|
|
124
|
+
type FormatoAlcanceDto = IFormatoAlcance;
|
|
125
|
+
interface ILinhaEfeito {
|
|
142
126
|
nome: string;
|
|
143
|
-
constructor(id: number, nome: string);
|
|
144
127
|
}
|
|
145
|
-
|
|
146
|
-
|
|
128
|
+
type LinhaEfeitoDto = ILinhaEfeito;
|
|
129
|
+
interface INivel {
|
|
147
130
|
valoNivel: number;
|
|
148
|
-
|
|
149
|
-
get nomeDisplay(): string;
|
|
131
|
+
nomeDisplay: string;
|
|
150
132
|
}
|
|
151
|
-
|
|
152
|
-
|
|
133
|
+
type NivelDto = INivel;
|
|
134
|
+
interface INivelComponente {
|
|
153
135
|
nome: string;
|
|
154
|
-
constructor(id: number, nome: string);
|
|
155
136
|
}
|
|
156
|
-
|
|
157
|
-
|
|
137
|
+
type NivelComponenteDto = INivelComponente;
|
|
138
|
+
interface INivelProficiencia {
|
|
158
139
|
nivel: number;
|
|
159
|
-
constructor(id: number, nivel: number);
|
|
160
140
|
}
|
|
161
|
-
|
|
162
|
-
|
|
141
|
+
type NivelProficienciaDto = INivelProficiencia;
|
|
142
|
+
interface INivelRitual {
|
|
163
143
|
nome: string;
|
|
164
|
-
constructor(id: number, nome: string);
|
|
165
144
|
}
|
|
166
|
-
|
|
167
|
-
|
|
145
|
+
type NivelRitualDto = INivelRitual;
|
|
146
|
+
interface IPatentePericia {
|
|
168
147
|
nome: string;
|
|
169
148
|
bonusPatente: number;
|
|
170
149
|
cor: string;
|
|
171
|
-
constructor(id: number, nome: string, bonusPatente: number, cor: string);
|
|
172
150
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
atributo:
|
|
176
|
-
linhaEfeito:
|
|
151
|
+
type PatentePericiaDto = IPatentePericia;
|
|
152
|
+
interface IPericia {
|
|
153
|
+
atributo: AtributoDto;
|
|
154
|
+
linhaEfeito: LinhaEfeitoDto;
|
|
177
155
|
nome: string;
|
|
178
156
|
descricao: string;
|
|
179
|
-
|
|
180
|
-
get nomeAbreviado(): string;
|
|
157
|
+
nomeAbreviado: string;
|
|
181
158
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
tipoProficiencia:
|
|
185
|
-
nivelProficiencia:
|
|
159
|
+
type PericiaDto = IPericia;
|
|
160
|
+
interface IProficiencia {
|
|
161
|
+
tipoProficiencia: TipoProficienciaDto;
|
|
162
|
+
nivelProficiencia: NivelProficienciaDto;
|
|
186
163
|
nome: string;
|
|
187
|
-
constructor(id: number, tipoProficiencia: TipoProficiencia, nivelProficiencia: NivelProficiencia, nome: string);
|
|
188
164
|
}
|
|
189
|
-
|
|
190
|
-
|
|
165
|
+
type ProficienciaDto = IProficiencia;
|
|
166
|
+
interface ITipoAlvo {
|
|
191
167
|
nome: string;
|
|
192
|
-
constructor(id: number, nome: string);
|
|
193
168
|
}
|
|
194
|
-
|
|
195
|
-
|
|
169
|
+
type TipoAlvoDto = ITipoAlvo;
|
|
170
|
+
interface ITipoCategoria {
|
|
196
171
|
valorCategoria: number;
|
|
197
|
-
|
|
198
|
-
get nomeCategoria(): string;
|
|
172
|
+
nomeCategoria: string;
|
|
199
173
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
linhaEfeito:
|
|
203
|
-
tipoDanoPertencente:
|
|
174
|
+
type TipoCategoriaDto = ITipoCategoria;
|
|
175
|
+
interface ITipoDano {
|
|
176
|
+
linhaEfeito: LinhaEfeitoDto;
|
|
177
|
+
tipoDanoPertencente: TipoDanoDto;
|
|
204
178
|
nome: string;
|
|
205
|
-
constructor(id: number, linhaEfeito: LinhaEfeito, tipoDanoPertencente: TipoDano, nome: string);
|
|
206
179
|
}
|
|
207
|
-
|
|
208
|
-
|
|
180
|
+
type TipoDanoDto = ITipoDano;
|
|
181
|
+
interface ITipoEfeito {
|
|
209
182
|
nome: string;
|
|
210
183
|
nomeVisualizacao: string;
|
|
211
|
-
constructor(id: number, nome: string, nomeVisualizacao: string);
|
|
212
184
|
}
|
|
213
|
-
|
|
214
|
-
|
|
185
|
+
type TipoEfeitoDto = ITipoEfeito;
|
|
186
|
+
interface ITipoItem {
|
|
215
187
|
nome: string;
|
|
216
|
-
constructor(id: number, nome: string);
|
|
217
188
|
}
|
|
218
|
-
|
|
219
|
-
|
|
189
|
+
type TipoItemDto = ITipoItem;
|
|
190
|
+
interface ITipoProficiencia {
|
|
220
191
|
nome: string;
|
|
221
|
-
constructor(id: number, nome: string);
|
|
222
192
|
}
|
|
223
|
-
|
|
224
|
-
|
|
193
|
+
type TipoProficienciaDto = ITipoProficiencia;
|
|
194
|
+
interface IPerfilAdmin {
|
|
225
195
|
nome: string;
|
|
226
196
|
descricao: string;
|
|
227
|
-
constructor(id: number, nome: string, descricao: string);
|
|
228
197
|
}
|
|
229
|
-
|
|
230
|
-
|
|
198
|
+
type PerfilAdminDto = IPerfilAdmin;
|
|
199
|
+
interface IPerfilJogador {
|
|
231
200
|
nome: string;
|
|
232
201
|
descricao: string;
|
|
233
|
-
constructor(id: number, nome: string, descricao: string);
|
|
234
202
|
}
|
|
235
|
-
|
|
236
|
-
|
|
203
|
+
type PerfilJogadorDto = IPerfilJogador;
|
|
204
|
+
interface IPerfilMestre {
|
|
237
205
|
nome: string;
|
|
238
206
|
descricao: string;
|
|
239
|
-
constructor(id: number, nome: string, descricao: string);
|
|
240
207
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
atributo: Atributo;
|
|
208
|
+
type PerfilMestreDto = IPerfilMestre;
|
|
209
|
+
interface IAtributoPersonagem {
|
|
210
|
+
personagem: PersonagemDto;
|
|
211
|
+
atributo: AtributoDto;
|
|
246
212
|
valor: number;
|
|
247
|
-
constructor(fkPersonagemId: number, fkAtributoId: number, personagem: Personagem, atributo: Atributo, valor: number);
|
|
248
213
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
estatisticaDanificavel: EstatisticaDanificavel;
|
|
214
|
+
type AtributoPersonagemDto = IAtributoPersonagem;
|
|
215
|
+
interface IEstatisticaDanificavelPersonagem {
|
|
216
|
+
personagem: PersonagemDto;
|
|
217
|
+
estatisticaDanificavel: EstatisticaDanificavelDto;
|
|
254
218
|
valorMaximo: number;
|
|
255
219
|
valorAtual: number;
|
|
256
|
-
constructor(fkPersonagemId: number, fkEstatisticaDanificavelId: number, personagem: Personagem, estatisticaDanificavel: EstatisticaDanificavel, valorMaximo: number, valorAtual: number);
|
|
257
220
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
personagem:
|
|
221
|
+
type EstatisticaDanificavelPersonagemDto = IEstatisticaDanificavelPersonagem;
|
|
222
|
+
interface IInformacaoPersonagem {
|
|
223
|
+
personagem: PersonagemDto;
|
|
261
224
|
nome: string;
|
|
262
|
-
constructor(fkPersonagensId: number, personagem: Personagem, nome: string);
|
|
263
|
-
}
|
|
264
|
-
declare class PericiaPersonagem {
|
|
265
|
-
fkPersonagemId: number;
|
|
266
|
-
fkPericiaId: number;
|
|
267
|
-
personagem: Personagem;
|
|
268
|
-
pericia: Pericia;
|
|
269
|
-
patentePericia: PatentePericia;
|
|
270
|
-
constructor(fkPersonagemId: number, fkPericiaId: number, personagem: Personagem, pericia: Pericia, patentePericia: PatentePericia);
|
|
271
225
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
226
|
+
type InformacaoPersonagemDto = IInformacaoPersonagem;
|
|
227
|
+
interface IPericiaPersonagem {
|
|
228
|
+
personagem: PersonagemDto;
|
|
229
|
+
pericia: PericiaDto;
|
|
230
|
+
patentePericia: PatentePericiaDto;
|
|
231
|
+
}
|
|
232
|
+
type PericiaPersonagemDto = IPericiaPersonagem;
|
|
233
|
+
interface IPersonagem {
|
|
234
|
+
tipoPersonagem: TipoPersonagemDto;
|
|
235
|
+
usuarioCriador: UsuarioDto;
|
|
236
|
+
informacao: InformacaoPersonagemDto;
|
|
237
|
+
estatisticasDanificaveisPersonagem: EstatisticaDanificavelPersonagemDto[];
|
|
238
|
+
atributosPersonagem: AtributoPersonagemDto[];
|
|
239
|
+
periciasPersonagem: PericiaPersonagemDto;
|
|
240
|
+
}
|
|
241
|
+
type PersonagemDto = IPersonagem;
|
|
242
|
+
interface IResumoPersonagemAventura {
|
|
243
|
+
personagem: PersonagemDto;
|
|
244
|
+
aventura: AventuraDto;
|
|
245
|
+
texto: string;
|
|
246
|
+
}
|
|
247
|
+
type ResumoPersonagemAventuraDto = IResumoPersonagemAventura;
|
|
248
|
+
interface ITipoPersonagem {
|
|
290
249
|
nome: string;
|
|
291
250
|
descricao: string;
|
|
292
|
-
constructor(id: number, nome: string, descricao: string);
|
|
293
251
|
}
|
|
294
|
-
|
|
295
|
-
|
|
252
|
+
type TipoPersonagemDto = ITipoPersonagem;
|
|
253
|
+
interface IEstudo {
|
|
296
254
|
nome: string;
|
|
297
|
-
constructor(id: number, nome: string);
|
|
298
255
|
}
|
|
256
|
+
type EstudoDto = IEstudo;
|
|
299
257
|
declare class AuthSession {
|
|
300
258
|
expiredAt: number;
|
|
301
259
|
id: string;
|
|
@@ -303,43 +261,44 @@ declare class AuthSession {
|
|
|
303
261
|
json: string;
|
|
304
262
|
constructor(expiredAt: number, id: string, json: string, destroyedAt?: Date | undefined);
|
|
305
263
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
conquistaExibirPerfil3: Conquista;
|
|
313
|
-
constructor(fk__usuarios__id: number, usuario: Usuario, personagemAvatarPrincipal: Personagem, conquistaExibirPerfil1: Conquista, conquistaExibirPerfil2: Conquista, conquistaExibirPerfil3: Conquista);
|
|
264
|
+
interface ICustomizacaoUsuario {
|
|
265
|
+
usuario: UsuarioDto;
|
|
266
|
+
personagemAvatarPrincipal: PersonagemDto;
|
|
267
|
+
conquistaExibirPerfil1: ConquistaDto;
|
|
268
|
+
conquistaExibirPerfil2: ConquistaDto;
|
|
269
|
+
conquistaExibirPerfil3: ConquistaDto;
|
|
314
270
|
}
|
|
315
|
-
|
|
271
|
+
type CustomizacaoUsuarioDto = ICustomizacaoUsuario;
|
|
272
|
+
interface IDisponibilidadeUsuario {
|
|
273
|
+
usuario: UsuarioDto;
|
|
316
274
|
diaDaSemana: number;
|
|
317
275
|
horaInicio: string;
|
|
318
276
|
horaFim: string;
|
|
319
|
-
constructor(diaDaSemana: number, horaInicio: string, horaFim: string);
|
|
320
277
|
}
|
|
321
|
-
|
|
278
|
+
type DisponibilidadeUsuarioDto = IDisponibilidadeUsuario;
|
|
279
|
+
interface IUsuario {
|
|
322
280
|
id: number;
|
|
323
|
-
perfilJogador:
|
|
324
|
-
perfilMestre:
|
|
325
|
-
perfilAdmin:
|
|
326
|
-
customizacao:
|
|
327
|
-
username: string
|
|
281
|
+
perfilJogador: PerfilJogadorDto;
|
|
282
|
+
perfilMestre: PerfilMestreDto;
|
|
283
|
+
perfilAdmin: PerfilAdminDto;
|
|
284
|
+
customizacao: CustomizacaoUsuarioDto;
|
|
285
|
+
username: string;
|
|
328
286
|
email: string;
|
|
329
287
|
discordId: string;
|
|
330
|
-
constructor(id: number, perfilJogador: PerfilJogador, perfilMestre: PerfilMestre, perfilAdmin: PerfilAdmin, customizacao: CustomizacaoUsuario, username: string, email: string, discordId: string);
|
|
331
288
|
}
|
|
332
|
-
|
|
289
|
+
type UsuarioDto = IUsuario;
|
|
290
|
+
type Done = (err: Error | null, usuario: UsuarioDto | null) => void;
|
|
291
|
+
type RespostaBackEnd<T> = {
|
|
333
292
|
sucesso: boolean;
|
|
334
293
|
dados?: T;
|
|
335
294
|
erro?: string;
|
|
336
295
|
};
|
|
337
|
-
|
|
296
|
+
interface PaletaCores {
|
|
338
297
|
corPrimaria: string;
|
|
339
298
|
corSecundaria?: string;
|
|
340
299
|
corTerciaria?: string;
|
|
341
300
|
}
|
|
342
|
-
|
|
301
|
+
type EstruturaPaginaDefinicao = {
|
|
343
302
|
titulo: string;
|
|
344
303
|
subtitulo?: string;
|
|
345
304
|
listaConteudo: {
|
|
@@ -350,39 +309,38 @@ export type EstruturaPaginaDefinicao = {
|
|
|
350
309
|
subPaginaDefinicao: string;
|
|
351
310
|
}[];
|
|
352
311
|
};
|
|
353
|
-
|
|
312
|
+
type ConteudoItem = {
|
|
354
313
|
tipo: 'Definicao';
|
|
355
314
|
elementos: DefinicaoElemento[];
|
|
356
315
|
} | {
|
|
357
316
|
tipo: 'Lista';
|
|
358
317
|
itensLista: ListaItem[];
|
|
359
318
|
};
|
|
360
|
-
|
|
319
|
+
type DefinicaoElemento = {
|
|
361
320
|
tipo: 'Paragrafo';
|
|
362
321
|
conteudo: string;
|
|
363
322
|
} | {
|
|
364
323
|
tipo: 'ParagrafoSecreto';
|
|
365
324
|
};
|
|
366
|
-
|
|
325
|
+
type ListaItem = {
|
|
367
326
|
tipo: 'ItemLista';
|
|
368
327
|
etiqueta: string;
|
|
369
328
|
subPaginaDefinicao: string;
|
|
370
329
|
} | {
|
|
371
330
|
tipo: 'ItemListaSecreto';
|
|
372
331
|
};
|
|
373
|
-
|
|
332
|
+
type DadosMinhaPagina = Pick<UsuarioDto, 'username'> & {
|
|
374
333
|
caminhoAvatar: string;
|
|
375
334
|
};
|
|
376
|
-
|
|
377
|
-
disponibilidades:
|
|
378
|
-
constructor(disponibilidades:
|
|
335
|
+
declare class DadosMinhasDisponibilidades {
|
|
336
|
+
disponibilidades: DisponibilidadeUsuarioDto[];
|
|
337
|
+
constructor(disponibilidades: DisponibilidadeUsuarioDto[]);
|
|
379
338
|
get disponibilidadePorExtenso(): Record<number, string[]>[];
|
|
380
339
|
}
|
|
381
|
-
|
|
340
|
+
declare enum AventuraEstado {
|
|
382
341
|
EM_PREPARO = "Em Preparo",
|
|
383
342
|
EM_ANDAMENTO = "Em Andamento",
|
|
384
343
|
FINALIZADA = "Finalizada"
|
|
385
344
|
}
|
|
386
|
-
|
|
387
|
-
export
|
|
388
|
-
export { ConviteGrupoAventuraPersonagem, RespostaConvite, TipoRespostaConvite, Conquista, TipoConquista, Aventura, Geracao, GrupoAventura, GrupoAventuraPersonagem, Imagem, Alcance, Atributo, CategoriaRitual, CirculoRitual, Classe, Duracao, Elemento, EstatisticaDanificavel, Execucao, FormatoAlcance, LinhaEfeito, Nivel, NivelComponente, NivelProficiencia, NivelRitual, PatentePericia, Pericia, Proficiencia, TipoAlvo, TipoCategoria, TipoDano, TipoEfeito, TipoItem, TipoProficiencia, PerfilAdmin, PerfilJogador, PerfilMestre, AtributoPersonagem, EstatisticaDanificavelPersonagem, InformacaoPersonagem, PericiaPersonagem, Personagem, ResumoPersonagemAventura, TipoPersonagem, Estudo, AuthSession, CustomizacaoUsuario, DisponibilidadeUsuario, Usuario };
|
|
345
|
+
type dds = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
346
|
+
export { IAventura, AventuraDto, IConviteGrupoAventuraPersonagem, ConviteGrupoAventuraPersonagemDto, IGrupoAventura, GrupoAventuraDto, IGrupoAventuraPersonagem, GrupoAventuraPersonagemDto, IRespostaConvite, RespostaConviteDto, ITipoRespostaConvite, TipoRespostaConviteDto, IConquista, ConquistaDto, ITipoConquista, TipoConquistaDto, IGeracao, GeracaoDto, Imagem, IAlcance, AlcanceDto, IAtributo, AtributoDto, ICategoriaRitual, CategoriaRitualDto, ICirculoRitual, CirculoRitualDto, IClasse, ClasseDto, IDuracao, DuracaoDto, IElemento, ElementoDto, IEstatisticaDanificavel, EstatisticaDanificavelDto, IExecucao, ExecucaoDto, IFormatoAlcance, FormatoAlcanceDto, ILinhaEfeito, LinhaEfeitoDto, INivel, NivelDto, INivelComponente, NivelComponenteDto, INivelProficiencia, NivelProficienciaDto, INivelRitual, NivelRitualDto, IPatentePericia, PatentePericiaDto, IPericia, PericiaDto, IProficiencia, ProficienciaDto, ITipoAlvo, TipoAlvoDto, ITipoCategoria, TipoCategoriaDto, ITipoDano, TipoDanoDto, ITipoEfeito, TipoEfeitoDto, ITipoItem, TipoItemDto, ITipoProficiencia, TipoProficienciaDto, IPerfilAdmin, PerfilAdminDto, IPerfilJogador, PerfilJogadorDto, IPerfilMestre, PerfilMestreDto, IAtributoPersonagem, AtributoPersonagemDto, IEstatisticaDanificavelPersonagem, EstatisticaDanificavelPersonagemDto, IInformacaoPersonagem, InformacaoPersonagemDto, IPericiaPersonagem, PericiaPersonagemDto, IPersonagem, PersonagemDto, IResumoPersonagemAventura, ResumoPersonagemAventuraDto, ITipoPersonagem, TipoPersonagemDto, IEstudo, EstudoDto, AuthSession, ICustomizacaoUsuario, CustomizacaoUsuarioDto, IDisponibilidadeUsuario, DisponibilidadeUsuarioDto, IUsuario, UsuarioDto, Done, RespostaBackEnd, PaletaCores, EstruturaPaginaDefinicao, ConteudoItem, DefinicaoElemento, ListaItem, DadosMinhaPagina, DadosMinhasDisponibilidades, AventuraEstado, dds };
|
package/dist/classes.js
CHANGED
|
@@ -1,163 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
id;
|
|
3
|
-
grupoAventura;
|
|
4
|
-
usuario;
|
|
5
|
-
dataCriacao;
|
|
6
|
-
constructor(id, grupoAventura, usuario, dataCriacao) {
|
|
7
|
-
this.id = id;
|
|
8
|
-
this.grupoAventura = grupoAventura;
|
|
9
|
-
this.usuario = usuario;
|
|
10
|
-
this.dataCriacao = dataCriacao;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
class RespostaConvite {
|
|
14
|
-
constructor() { }
|
|
15
|
-
}
|
|
16
|
-
class TipoRespostaConvite {
|
|
17
|
-
id;
|
|
18
|
-
nome;
|
|
19
|
-
constructor(id, nome) {
|
|
20
|
-
this.id = id;
|
|
21
|
-
this.nome = nome;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
class Conquista {
|
|
25
|
-
id;
|
|
26
|
-
tipoConquista;
|
|
27
|
-
nome;
|
|
28
|
-
descricao;
|
|
29
|
-
constructor(id, tipoConquista, nome, descricao) {
|
|
30
|
-
this.id = id;
|
|
31
|
-
this.tipoConquista = tipoConquista;
|
|
32
|
-
this.nome = nome;
|
|
33
|
-
this.descricao = descricao;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
class TipoConquista {
|
|
37
|
-
id;
|
|
38
|
-
nome;
|
|
39
|
-
constructor(id, nome) {
|
|
40
|
-
this.id = id;
|
|
41
|
-
this.nome = nome;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
class Aventura {
|
|
45
|
-
id;
|
|
46
|
-
geracao;
|
|
47
|
-
imagemCapa;
|
|
48
|
-
gruposAventura;
|
|
49
|
-
titulo;
|
|
50
|
-
dataCriacao;
|
|
51
|
-
constructor(id, geracao, imagemCapa, gruposAventura, titulo, dataCriacao) {
|
|
52
|
-
this.id = id;
|
|
53
|
-
this.geracao = geracao;
|
|
54
|
-
this.imagemCapa = imagemCapa;
|
|
55
|
-
this.gruposAventura = gruposAventura;
|
|
56
|
-
this.titulo = titulo;
|
|
57
|
-
this.dataCriacao = dataCriacao;
|
|
58
|
-
}
|
|
59
|
-
get obtemEstadoAtual() {
|
|
60
|
-
// Se não houver grupos, considera como em preparo
|
|
61
|
-
if (this.gruposAventura.length === 0) {
|
|
62
|
-
return AventuraEstado.EM_PREPARO;
|
|
63
|
-
}
|
|
64
|
-
let temEmPreparo = false;
|
|
65
|
-
let temEmAndamento = false;
|
|
66
|
-
let temFinalizado = false;
|
|
67
|
-
// Verifica o estado de cada grupo
|
|
68
|
-
for (const grupo of this.gruposAventura) {
|
|
69
|
-
const estado = grupo.obtemEstadoAtual;
|
|
70
|
-
if (estado === AventuraEstado.EM_ANDAMENTO) {
|
|
71
|
-
temEmAndamento = true;
|
|
72
|
-
// Se encontrou um em andamento, pode retornar imediatamente
|
|
73
|
-
return AventuraEstado.EM_ANDAMENTO;
|
|
74
|
-
}
|
|
75
|
-
else if (estado === AventuraEstado.EM_PREPARO) {
|
|
76
|
-
temEmPreparo = true;
|
|
77
|
-
}
|
|
78
|
-
else if (estado === AventuraEstado.FINALIZADA) {
|
|
79
|
-
temFinalizado = true;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
// Se chegou aqui, não há grupos em andamento
|
|
83
|
-
if (temEmPreparo && temFinalizado) {
|
|
84
|
-
return AventuraEstado.EM_ANDAMENTO;
|
|
85
|
-
}
|
|
86
|
-
else if (temEmPreparo) {
|
|
87
|
-
return AventuraEstado.EM_PREPARO;
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return AventuraEstado.FINALIZADA;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
class Geracao {
|
|
95
|
-
id;
|
|
96
|
-
aventuras;
|
|
97
|
-
nome;
|
|
98
|
-
anoInicio;
|
|
99
|
-
constructor(id, aventuras, nome, anoInicio) {
|
|
100
|
-
this.id = id;
|
|
101
|
-
this.aventuras = aventuras;
|
|
102
|
-
this.nome = nome;
|
|
103
|
-
this.anoInicio = anoInicio;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
class GrupoAventura {
|
|
107
|
-
id;
|
|
108
|
-
nomeGrupo;
|
|
109
|
-
aventura;
|
|
110
|
-
usuarioMestre;
|
|
111
|
-
personagensDaAventura;
|
|
112
|
-
dataPrevisaoInicio;
|
|
113
|
-
dataInicio;
|
|
114
|
-
dataFim;
|
|
115
|
-
ddsPadrao;
|
|
116
|
-
recorrencia;
|
|
117
|
-
horaInicio;
|
|
118
|
-
horaFim;
|
|
119
|
-
constructor(id, nomeGrupo, aventura, usuarioMestre, personagensDaAventura, dataPrevisaoInicio, dataInicio, dataFim, ddsPadrao, recorrencia, horaInicio, horaFim) {
|
|
120
|
-
this.id = id;
|
|
121
|
-
this.nomeGrupo = nomeGrupo;
|
|
122
|
-
this.aventura = aventura;
|
|
123
|
-
this.usuarioMestre = usuarioMestre;
|
|
124
|
-
this.personagensDaAventura = personagensDaAventura;
|
|
125
|
-
this.dataPrevisaoInicio = dataPrevisaoInicio;
|
|
126
|
-
this.dataInicio = dataInicio;
|
|
127
|
-
this.dataFim = dataFim;
|
|
128
|
-
this.ddsPadrao = ddsPadrao;
|
|
129
|
-
this.recorrencia = recorrencia;
|
|
130
|
-
this.horaInicio = horaInicio;
|
|
131
|
-
this.horaFim = horaFim;
|
|
132
|
-
}
|
|
133
|
-
get obtemEstadoAtual() {
|
|
134
|
-
if (this.dataInicio === null)
|
|
135
|
-
return AventuraEstado.EM_PREPARO;
|
|
136
|
-
if (this.dataFim !== null)
|
|
137
|
-
return AventuraEstado.FINALIZADA;
|
|
138
|
-
return AventuraEstado.EM_ANDAMENTO;
|
|
139
|
-
}
|
|
140
|
-
get obtemTextoInformacionalOcorrencia() {
|
|
141
|
-
if (this.obtemEstadoAtual === AventuraEstado.FINALIZADA)
|
|
142
|
-
return null;
|
|
143
|
-
const recorrenciaEHora = `Todas as ${obtemDiaDaSemanaPorExtensoPorDDS(this.ddsPadrao, true)}, das ${this.horaInicio} as ${this.horaFim}`;
|
|
144
|
-
if (this.obtemEstadoAtual === AventuraEstado.EM_ANDAMENTO)
|
|
145
|
-
return recorrenciaEHora;
|
|
146
|
-
return `Iniciando em ${this.dataPrevisaoInicio}, ${recorrenciaEHora}`;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
class GrupoAventuraPersonagem {
|
|
150
|
-
fkGruposAventurasId;
|
|
151
|
-
fkPersonagensId;
|
|
152
|
-
grupoAventura;
|
|
153
|
-
personagem;
|
|
154
|
-
constructor(fkGruposAventurasId, fkPersonagensId, grupoAventura, personagem) {
|
|
155
|
-
this.fkGruposAventurasId = fkGruposAventurasId;
|
|
156
|
-
this.fkPersonagensId = fkPersonagensId;
|
|
157
|
-
this.grupoAventura = grupoAventura;
|
|
158
|
-
this.personagem = personagem;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
1
|
+
// AUTO-GENERATED FILE - DO NOT EDIT
|
|
161
2
|
class Imagem {
|
|
162
3
|
id;
|
|
163
4
|
urlArquivo;
|
|
@@ -166,382 +7,6 @@ class Imagem {
|
|
|
166
7
|
this.urlArquivo = urlArquivo;
|
|
167
8
|
}
|
|
168
9
|
}
|
|
169
|
-
class Alcance {
|
|
170
|
-
id;
|
|
171
|
-
nome;
|
|
172
|
-
numero_metros;
|
|
173
|
-
descricao;
|
|
174
|
-
constructor(id, nome, numero_metros, descricao) {
|
|
175
|
-
this.id = id;
|
|
176
|
-
this.nome = nome;
|
|
177
|
-
this.numero_metros = numero_metros;
|
|
178
|
-
this.descricao = descricao;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
class Atributo {
|
|
182
|
-
id;
|
|
183
|
-
linhaEfeito;
|
|
184
|
-
pericias;
|
|
185
|
-
nome;
|
|
186
|
-
descricao;
|
|
187
|
-
constructor(id, linhaEfeito, pericias, nome, descricao) {
|
|
188
|
-
this.id = id;
|
|
189
|
-
this.linhaEfeito = linhaEfeito;
|
|
190
|
-
this.pericias = pericias;
|
|
191
|
-
this.nome = nome;
|
|
192
|
-
this.descricao = descricao;
|
|
193
|
-
}
|
|
194
|
-
get nomeAbreviado() {
|
|
195
|
-
return this.nome.toUpperCase().slice(0, 3);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
class CategoriaRitual {
|
|
199
|
-
id;
|
|
200
|
-
circuloRitual;
|
|
201
|
-
nivelRitual;
|
|
202
|
-
valorPsSacrificado;
|
|
203
|
-
constructor(id, circuloRitual, nivelRitual, valorPsSacrificado) {
|
|
204
|
-
this.id = id;
|
|
205
|
-
this.circuloRitual = circuloRitual;
|
|
206
|
-
this.nivelRitual = nivelRitual;
|
|
207
|
-
this.valorPsSacrificado = valorPsSacrificado;
|
|
208
|
-
}
|
|
209
|
-
;
|
|
210
|
-
get nome() { return `${this.circuloRitual.nomeCompleto} ${this.nivelRitual.nome}`; }
|
|
211
|
-
}
|
|
212
|
-
class CirculoRitual {
|
|
213
|
-
id;
|
|
214
|
-
nome;
|
|
215
|
-
constructor(id, nome) {
|
|
216
|
-
this.id = id;
|
|
217
|
-
this.nome = nome;
|
|
218
|
-
}
|
|
219
|
-
get nomeCompleto() { return `${this.nome}º Círculo`; }
|
|
220
|
-
}
|
|
221
|
-
class Classe {
|
|
222
|
-
id;
|
|
223
|
-
nome;
|
|
224
|
-
descricao;
|
|
225
|
-
constructor(id, nome, descricao) {
|
|
226
|
-
this.id = id;
|
|
227
|
-
this.nome = nome;
|
|
228
|
-
this.descricao = descricao;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
class Duracao {
|
|
232
|
-
id;
|
|
233
|
-
nome;
|
|
234
|
-
constructor(id, nome) {
|
|
235
|
-
this.id = id;
|
|
236
|
-
this.nome = nome;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
class Elemento {
|
|
240
|
-
id;
|
|
241
|
-
nome;
|
|
242
|
-
cores;
|
|
243
|
-
constructor(id, nome, cores) {
|
|
244
|
-
this.id = id;
|
|
245
|
-
this.nome = nome;
|
|
246
|
-
this.cores = cores;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
class EstatisticaDanificavel {
|
|
250
|
-
id;
|
|
251
|
-
nome;
|
|
252
|
-
cor;
|
|
253
|
-
descricao;
|
|
254
|
-
constructor(id, nome, cor, descricao) {
|
|
255
|
-
this.id = id;
|
|
256
|
-
this.nome = nome;
|
|
257
|
-
this.cor = cor;
|
|
258
|
-
this.descricao = descricao;
|
|
259
|
-
}
|
|
260
|
-
get nomeAbreviado() { return this.nome.split(" ").filter(word => word.toLowerCase() !== "de").map(word => word[0].toUpperCase()).join(".") + "."; }
|
|
261
|
-
}
|
|
262
|
-
class Execucao {
|
|
263
|
-
id;
|
|
264
|
-
linhaEfeito;
|
|
265
|
-
nome;
|
|
266
|
-
constructor(id, linhaEfeito, nome) {
|
|
267
|
-
this.id = id;
|
|
268
|
-
this.linhaEfeito = linhaEfeito;
|
|
269
|
-
this.nome = nome;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
class FormatoAlcance {
|
|
273
|
-
id;
|
|
274
|
-
nome;
|
|
275
|
-
constructor(id, nome) {
|
|
276
|
-
this.id = id;
|
|
277
|
-
this.nome = nome;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
class LinhaEfeito {
|
|
281
|
-
id;
|
|
282
|
-
nome;
|
|
283
|
-
constructor(id, nome) {
|
|
284
|
-
this.id = id;
|
|
285
|
-
this.nome = nome;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
class Nivel {
|
|
289
|
-
id;
|
|
290
|
-
valoNivel;
|
|
291
|
-
constructor(id, valoNivel) {
|
|
292
|
-
this.id = id;
|
|
293
|
-
this.valoNivel = valoNivel;
|
|
294
|
-
}
|
|
295
|
-
get nomeDisplay() { return `${this.valoNivel}% EX.P.`; }
|
|
296
|
-
}
|
|
297
|
-
class NivelComponente {
|
|
298
|
-
id;
|
|
299
|
-
nome;
|
|
300
|
-
constructor(id, nome) {
|
|
301
|
-
this.id = id;
|
|
302
|
-
this.nome = nome;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
class NivelProficiencia {
|
|
306
|
-
id;
|
|
307
|
-
nivel;
|
|
308
|
-
constructor(id, nivel) {
|
|
309
|
-
this.id = id;
|
|
310
|
-
this.nivel = nivel;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
class NivelRitual {
|
|
314
|
-
id;
|
|
315
|
-
nome;
|
|
316
|
-
constructor(id, nome) {
|
|
317
|
-
this.id = id;
|
|
318
|
-
this.nome = nome;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
class PatentePericia {
|
|
322
|
-
id;
|
|
323
|
-
nome;
|
|
324
|
-
bonusPatente;
|
|
325
|
-
cor;
|
|
326
|
-
constructor(id, nome, bonusPatente, cor) {
|
|
327
|
-
this.id = id;
|
|
328
|
-
this.nome = nome;
|
|
329
|
-
this.bonusPatente = bonusPatente;
|
|
330
|
-
this.cor = cor;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
class Pericia {
|
|
334
|
-
id;
|
|
335
|
-
atributo;
|
|
336
|
-
linhaEfeito;
|
|
337
|
-
nome;
|
|
338
|
-
descricao;
|
|
339
|
-
constructor(id, atributo, linhaEfeito, nome, descricao) {
|
|
340
|
-
this.id = id;
|
|
341
|
-
this.atributo = atributo;
|
|
342
|
-
this.linhaEfeito = linhaEfeito;
|
|
343
|
-
this.nome = nome;
|
|
344
|
-
this.descricao = descricao;
|
|
345
|
-
}
|
|
346
|
-
get nomeAbreviado() { return this.nome.toUpperCase().slice(0, 4); }
|
|
347
|
-
}
|
|
348
|
-
class Proficiencia {
|
|
349
|
-
id;
|
|
350
|
-
tipoProficiencia;
|
|
351
|
-
nivelProficiencia;
|
|
352
|
-
nome;
|
|
353
|
-
constructor(id, tipoProficiencia, nivelProficiencia, nome) {
|
|
354
|
-
this.id = id;
|
|
355
|
-
this.tipoProficiencia = tipoProficiencia;
|
|
356
|
-
this.nivelProficiencia = nivelProficiencia;
|
|
357
|
-
this.nome = nome;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
class TipoAlvo {
|
|
361
|
-
id;
|
|
362
|
-
nome;
|
|
363
|
-
constructor(id, nome) {
|
|
364
|
-
this.id = id;
|
|
365
|
-
this.nome = nome;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
class TipoCategoria {
|
|
369
|
-
id;
|
|
370
|
-
valorCategoria;
|
|
371
|
-
constructor(id, valorCategoria) {
|
|
372
|
-
this.id = id;
|
|
373
|
-
this.valorCategoria = valorCategoria;
|
|
374
|
-
}
|
|
375
|
-
get nomeCategoria() { return `Categoria ${this.valorCategoria}`; }
|
|
376
|
-
}
|
|
377
|
-
class TipoDano {
|
|
378
|
-
id;
|
|
379
|
-
linhaEfeito;
|
|
380
|
-
tipoDanoPertencente;
|
|
381
|
-
nome;
|
|
382
|
-
constructor(id, linhaEfeito, tipoDanoPertencente, nome) {
|
|
383
|
-
this.id = id;
|
|
384
|
-
this.linhaEfeito = linhaEfeito;
|
|
385
|
-
this.tipoDanoPertencente = tipoDanoPertencente;
|
|
386
|
-
this.nome = nome;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
class TipoEfeito {
|
|
390
|
-
id;
|
|
391
|
-
nome;
|
|
392
|
-
nomeVisualizacao;
|
|
393
|
-
constructor(id, nome, nomeVisualizacao) {
|
|
394
|
-
this.id = id;
|
|
395
|
-
this.nome = nome;
|
|
396
|
-
this.nomeVisualizacao = nomeVisualizacao;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
class TipoItem {
|
|
400
|
-
id;
|
|
401
|
-
nome;
|
|
402
|
-
constructor(id, nome) {
|
|
403
|
-
this.id = id;
|
|
404
|
-
this.nome = nome;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
class TipoProficiencia {
|
|
408
|
-
id;
|
|
409
|
-
nome;
|
|
410
|
-
constructor(id, nome) {
|
|
411
|
-
this.id = id;
|
|
412
|
-
this.nome = nome;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
class PerfilAdmin {
|
|
416
|
-
id;
|
|
417
|
-
nome;
|
|
418
|
-
descricao;
|
|
419
|
-
constructor(id, nome, descricao) {
|
|
420
|
-
this.id = id;
|
|
421
|
-
this.nome = nome;
|
|
422
|
-
this.descricao = descricao;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
class PerfilJogador {
|
|
426
|
-
id;
|
|
427
|
-
nome;
|
|
428
|
-
descricao;
|
|
429
|
-
constructor(id, nome, descricao) {
|
|
430
|
-
this.id = id;
|
|
431
|
-
this.nome = nome;
|
|
432
|
-
this.descricao = descricao;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
class PerfilMestre {
|
|
436
|
-
id;
|
|
437
|
-
nome;
|
|
438
|
-
descricao;
|
|
439
|
-
constructor(id, nome, descricao) {
|
|
440
|
-
this.id = id;
|
|
441
|
-
this.nome = nome;
|
|
442
|
-
this.descricao = descricao;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
class AtributoPersonagem {
|
|
446
|
-
fkPersonagemId;
|
|
447
|
-
fkAtributoId;
|
|
448
|
-
personagem;
|
|
449
|
-
atributo;
|
|
450
|
-
valor;
|
|
451
|
-
constructor(fkPersonagemId, fkAtributoId, personagem, atributo, valor) {
|
|
452
|
-
this.fkPersonagemId = fkPersonagemId;
|
|
453
|
-
this.fkAtributoId = fkAtributoId;
|
|
454
|
-
this.personagem = personagem;
|
|
455
|
-
this.atributo = atributo;
|
|
456
|
-
this.valor = valor;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
class EstatisticaDanificavelPersonagem {
|
|
460
|
-
fkPersonagemId;
|
|
461
|
-
fkEstatisticaDanificavelId;
|
|
462
|
-
personagem;
|
|
463
|
-
estatisticaDanificavel;
|
|
464
|
-
valorMaximo;
|
|
465
|
-
valorAtual;
|
|
466
|
-
constructor(fkPersonagemId, fkEstatisticaDanificavelId, personagem, estatisticaDanificavel, valorMaximo, valorAtual) {
|
|
467
|
-
this.fkPersonagemId = fkPersonagemId;
|
|
468
|
-
this.fkEstatisticaDanificavelId = fkEstatisticaDanificavelId;
|
|
469
|
-
this.personagem = personagem;
|
|
470
|
-
this.estatisticaDanificavel = estatisticaDanificavel;
|
|
471
|
-
this.valorMaximo = valorMaximo;
|
|
472
|
-
this.valorAtual = valorAtual;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
class InformacaoPersonagem {
|
|
476
|
-
fkPersonagensId;
|
|
477
|
-
personagem;
|
|
478
|
-
nome;
|
|
479
|
-
constructor(fkPersonagensId, personagem, nome) {
|
|
480
|
-
this.fkPersonagensId = fkPersonagensId;
|
|
481
|
-
this.personagem = personagem;
|
|
482
|
-
this.nome = nome;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
class PericiaPersonagem {
|
|
486
|
-
fkPersonagemId;
|
|
487
|
-
fkPericiaId;
|
|
488
|
-
personagem;
|
|
489
|
-
pericia;
|
|
490
|
-
patentePericia;
|
|
491
|
-
constructor(fkPersonagemId, fkPericiaId, personagem, pericia, patentePericia) {
|
|
492
|
-
this.fkPersonagemId = fkPersonagemId;
|
|
493
|
-
this.fkPericiaId = fkPericiaId;
|
|
494
|
-
this.personagem = personagem;
|
|
495
|
-
this.pericia = pericia;
|
|
496
|
-
this.patentePericia = patentePericia;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
class Personagem {
|
|
500
|
-
id;
|
|
501
|
-
tipoPersonagem;
|
|
502
|
-
usuarioCriador;
|
|
503
|
-
informacao;
|
|
504
|
-
estatisticasDanificaveisPersonagem;
|
|
505
|
-
atributosPersonagem;
|
|
506
|
-
periciasPersonagem;
|
|
507
|
-
constructor(id, tipoPersonagem, usuarioCriador, informacao, estatisticasDanificaveisPersonagem, atributosPersonagem, periciasPersonagem) {
|
|
508
|
-
this.id = id;
|
|
509
|
-
this.tipoPersonagem = tipoPersonagem;
|
|
510
|
-
this.usuarioCriador = usuarioCriador;
|
|
511
|
-
this.informacao = informacao;
|
|
512
|
-
this.estatisticasDanificaveisPersonagem = estatisticasDanificaveisPersonagem;
|
|
513
|
-
this.atributosPersonagem = atributosPersonagem;
|
|
514
|
-
this.periciasPersonagem = periciasPersonagem;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
class ResumoPersonagemAventura {
|
|
518
|
-
id;
|
|
519
|
-
personagem;
|
|
520
|
-
aventura;
|
|
521
|
-
constructor(id, personagem, aventura) {
|
|
522
|
-
this.id = id;
|
|
523
|
-
this.personagem = personagem;
|
|
524
|
-
this.aventura = aventura;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
class TipoPersonagem {
|
|
528
|
-
id;
|
|
529
|
-
nome;
|
|
530
|
-
descricao;
|
|
531
|
-
constructor(id, nome, descricao) {
|
|
532
|
-
this.id = id;
|
|
533
|
-
this.nome = nome;
|
|
534
|
-
this.descricao = descricao;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
class Estudo {
|
|
538
|
-
id;
|
|
539
|
-
nome;
|
|
540
|
-
constructor(id, nome) {
|
|
541
|
-
this.id = id;
|
|
542
|
-
this.nome = nome;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
10
|
class AuthSession {
|
|
546
11
|
expiredAt;
|
|
547
12
|
id;
|
|
@@ -554,54 +19,8 @@ class AuthSession {
|
|
|
554
19
|
this.json = json;
|
|
555
20
|
}
|
|
556
21
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
usuario;
|
|
560
|
-
personagemAvatarPrincipal;
|
|
561
|
-
conquistaExibirPerfil1;
|
|
562
|
-
conquistaExibirPerfil2;
|
|
563
|
-
conquistaExibirPerfil3;
|
|
564
|
-
constructor(fk__usuarios__id, usuario, personagemAvatarPrincipal, conquistaExibirPerfil1, conquistaExibirPerfil2, conquistaExibirPerfil3) {
|
|
565
|
-
this.fk__usuarios__id = fk__usuarios__id;
|
|
566
|
-
this.usuario = usuario;
|
|
567
|
-
this.personagemAvatarPrincipal = personagemAvatarPrincipal;
|
|
568
|
-
this.conquistaExibirPerfil1 = conquistaExibirPerfil1;
|
|
569
|
-
this.conquistaExibirPerfil2 = conquistaExibirPerfil2;
|
|
570
|
-
this.conquistaExibirPerfil3 = conquistaExibirPerfil3;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
class DisponibilidadeUsuario {
|
|
574
|
-
diaDaSemana;
|
|
575
|
-
horaInicio;
|
|
576
|
-
horaFim;
|
|
577
|
-
constructor(diaDaSemana, horaInicio, horaFim) {
|
|
578
|
-
this.diaDaSemana = diaDaSemana;
|
|
579
|
-
this.horaInicio = horaInicio;
|
|
580
|
-
this.horaFim = horaFim;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
class Usuario {
|
|
584
|
-
id;
|
|
585
|
-
perfilJogador;
|
|
586
|
-
perfilMestre;
|
|
587
|
-
perfilAdmin;
|
|
588
|
-
customizacao;
|
|
589
|
-
username;
|
|
590
|
-
email;
|
|
591
|
-
discordId;
|
|
592
|
-
constructor(id, perfilJogador, perfilMestre, perfilAdmin, customizacao, username, email, discordId) {
|
|
593
|
-
this.id = id;
|
|
594
|
-
this.perfilJogador = perfilJogador;
|
|
595
|
-
this.perfilMestre = perfilMestre;
|
|
596
|
-
this.perfilAdmin = perfilAdmin;
|
|
597
|
-
this.customizacao = customizacao;
|
|
598
|
-
this.username = username;
|
|
599
|
-
this.email = email;
|
|
600
|
-
this.discordId = discordId;
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
;
|
|
604
|
-
export class DadosMinhasDisponibilidades {
|
|
22
|
+
// @tipoCompartilhadoFront
|
|
23
|
+
class DadosMinhasDisponibilidades {
|
|
605
24
|
disponibilidades;
|
|
606
25
|
constructor(disponibilidades) {
|
|
607
26
|
this.disponibilidades = disponibilidades;
|
|
@@ -624,32 +43,11 @@ export class DadosMinhasDisponibilidades {
|
|
|
624
43
|
});
|
|
625
44
|
}
|
|
626
45
|
}
|
|
627
|
-
|
|
46
|
+
// @tipoCompartilhadoFront
|
|
47
|
+
var AventuraEstado;
|
|
628
48
|
(function (AventuraEstado) {
|
|
629
49
|
AventuraEstado["EM_PREPARO"] = "Em Preparo";
|
|
630
50
|
AventuraEstado["EM_ANDAMENTO"] = "Em Andamento";
|
|
631
51
|
AventuraEstado["FINALIZADA"] = "Finalizada";
|
|
632
52
|
})(AventuraEstado || (AventuraEstado = {}));
|
|
633
|
-
;
|
|
634
|
-
export function obtemDiaDaSemanaPorExtensoPorDDS(dds, plural = false) {
|
|
635
|
-
const diasDaSemanaSingular = [
|
|
636
|
-
'Domingo',
|
|
637
|
-
'Segunda-feira',
|
|
638
|
-
'Terça-feira',
|
|
639
|
-
'Quarta-feira',
|
|
640
|
-
'Quinta-feira',
|
|
641
|
-
'Sexta-feira',
|
|
642
|
-
'Sábado',
|
|
643
|
-
];
|
|
644
|
-
const diasDaSemanaPlural = [
|
|
645
|
-
'Domingos',
|
|
646
|
-
'Segundas-feiras',
|
|
647
|
-
'Terças-feiras',
|
|
648
|
-
'Quartas-feiras',
|
|
649
|
-
'Quintas-feiras',
|
|
650
|
-
'Sextas-feiras',
|
|
651
|
-
'Sábados',
|
|
652
|
-
];
|
|
653
|
-
return plural ? diasDaSemanaPlural[dds] : diasDaSemanaSingular[dds];
|
|
654
|
-
}
|
|
655
|
-
export { ConviteGrupoAventuraPersonagem, RespostaConvite, TipoRespostaConvite, Conquista, TipoConquista, Aventura, Geracao, GrupoAventura, GrupoAventuraPersonagem, Imagem, Alcance, Atributo, CategoriaRitual, CirculoRitual, Classe, Duracao, Elemento, EstatisticaDanificavel, Execucao, FormatoAlcance, LinhaEfeito, Nivel, NivelComponente, NivelProficiencia, NivelRitual, PatentePericia, Pericia, Proficiencia, TipoAlvo, TipoCategoria, TipoDano, TipoEfeito, TipoItem, TipoProficiencia, PerfilAdmin, PerfilJogador, PerfilMestre, AtributoPersonagem, EstatisticaDanificavelPersonagem, InformacaoPersonagem, PericiaPersonagem, Personagem, ResumoPersonagemAventura, TipoPersonagem, Estudo, AuthSession, CustomizacaoUsuario, DisponibilidadeUsuario, Usuario };
|
|
53
|
+
export { Imagem, AuthSession, DadosMinhasDisponibilidades, AventuraEstado };
|