types-nora-api 0.0.10 → 0.0.11
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 +12 -5
- package/package.json +1 -1
package/dist/classes.ts
CHANGED
|
@@ -329,12 +329,12 @@ class PerfilMestre {
|
|
|
329
329
|
}
|
|
330
330
|
class Personagem {
|
|
331
331
|
id: number;
|
|
332
|
-
|
|
332
|
+
tipoPersonagem: TipoPersonagem;
|
|
333
333
|
usuarioCriador: Usuario;
|
|
334
334
|
|
|
335
|
-
constructor (id: number,
|
|
335
|
+
constructor (id: number, tipoPersonagem: TipoPersonagem, usuarioCriador: Usuario) {
|
|
336
336
|
this.id = id;
|
|
337
|
-
this.
|
|
337
|
+
this.tipoPersonagem = tipoPersonagem;
|
|
338
338
|
this.usuarioCriador = usuarioCriador;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -364,13 +364,15 @@ class AuthSession {
|
|
|
364
364
|
}
|
|
365
365
|
class CustomizacaoUsuario {
|
|
366
366
|
id: number;
|
|
367
|
+
usuario: Usuario;
|
|
367
368
|
personagemAvatarPrincipal: Personagem;
|
|
368
369
|
conquistaExibirPerfil1: Conquista;
|
|
369
370
|
conquistaExibirPerfil2: Conquista;
|
|
370
371
|
conquistaExibirPerfil3: Conquista;
|
|
371
372
|
|
|
372
|
-
constructor (id: number, personagemAvatarPrincipal: Personagem, conquistaExibirPerfil1: Conquista, conquistaExibirPerfil2: Conquista, conquistaExibirPerfil3: Conquista) {
|
|
373
|
+
constructor (id: number, usuario: Usuario, personagemAvatarPrincipal: Personagem, conquistaExibirPerfil1: Conquista, conquistaExibirPerfil2: Conquista, conquistaExibirPerfil3: Conquista) {
|
|
373
374
|
this.id = id;
|
|
375
|
+
this.usuario = usuario;
|
|
374
376
|
this.personagemAvatarPrincipal = personagemAvatarPrincipal;
|
|
375
377
|
this.conquistaExibirPerfil1 = conquistaExibirPerfil1;
|
|
376
378
|
this.conquistaExibirPerfil2 = conquistaExibirPerfil2;
|
|
@@ -382,15 +384,17 @@ class Usuario {
|
|
|
382
384
|
perfilJogador: PerfilJogador;
|
|
383
385
|
perfilMestre: PerfilMestre;
|
|
384
386
|
perfilAdmin: PerfilAdmin;
|
|
387
|
+
customizacao: CustomizacaoUsuario;
|
|
385
388
|
username: string;
|
|
386
389
|
email: string;
|
|
387
390
|
discordId: string;
|
|
388
391
|
|
|
389
|
-
constructor (id: number, perfilJogador: PerfilJogador, perfilMestre: PerfilMestre, perfilAdmin: PerfilAdmin, username: string, email: string, discordId: string) {
|
|
392
|
+
constructor (id: number, perfilJogador: PerfilJogador, perfilMestre: PerfilMestre, perfilAdmin: PerfilAdmin, customizacao: CustomizacaoUsuario, username: string, email: string, discordId: string) {
|
|
390
393
|
this.id = id;
|
|
391
394
|
this.perfilJogador = perfilJogador;
|
|
392
395
|
this.perfilMestre = perfilMestre;
|
|
393
396
|
this.perfilAdmin = perfilAdmin;
|
|
397
|
+
this.customizacao = customizacao;
|
|
394
398
|
this.username = username;
|
|
395
399
|
this.email = email;
|
|
396
400
|
this.discordId = discordId;
|
|
@@ -415,4 +419,7 @@ itens: ConteudoItem[],
|
|
|
415
419
|
listaItensDefinicoesConectadas?: { etiqueta: string, subPaginaDefinicao: string }[];
|
|
416
420
|
};
|
|
417
421
|
export type ConteudoItem = { tipo: 'Definicao'; paragrafos: string[]; } | { tipo: 'Lista'; itensLista: { etiqueta: string; subPaginaDefinicao: string; }[]; };
|
|
422
|
+
export type DadosMinhaPagina = Pick<Usuario, 'username'> & {
|
|
423
|
+
caminhoAvatar: string;
|
|
424
|
+
};
|
|
418
425
|
export { Conquista, TipoConquista, 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, Personagem, TipoPersonagem, AuthSession, CustomizacaoUsuario, Usuario };
|