types-nora-api 0.0.11 → 0.0.12

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.
Files changed (2) hide show
  1. package/dist/classes.ts +33 -8
  2. package/package.json +1 -1
package/dist/classes.ts CHANGED
@@ -24,9 +24,9 @@ class Alcance {
24
24
  id: number;
25
25
  nome: string;
26
26
  numero_metros: number;
27
- descricao: string;
27
+ descricao: string | null;
28
28
 
29
- constructor (id: number, nome: string, numero_metros: number, descricao: string) {
29
+ constructor (id: number, nome: string, numero_metros: number, descricao: string | null) {
30
30
  this.id = id;
31
31
  this.nome = nome;
32
32
  this.numero_metros = numero_metros;
@@ -36,12 +36,14 @@ class Alcance {
36
36
  class Atributo {
37
37
  id: number;
38
38
  linhaEfeito: LinhaEfeito;
39
+ pericias: Pericia[];
39
40
  nome: string;
40
41
  descricao: string;
41
42
 
42
- constructor(id: number, linhaEfeito: LinhaEfeito, nome: string, descricao: string) {
43
+ constructor(id: number, linhaEfeito: LinhaEfeito, pericias: Pericia[], nome: string, descricao: string) {
43
44
  this.id = id;
44
45
  this.linhaEfeito = linhaEfeito;
46
+ this.pericias = pericias;
45
47
  this.nome = nome;
46
48
  this.descricao = descricao;
47
49
  }
@@ -379,13 +381,27 @@ class CustomizacaoUsuario {
379
381
  this.conquistaExibirPerfil3 = conquistaExibirPerfil3;
380
382
  }
381
383
  }
384
+ class DisponibilidadeUsuario {
385
+ id: number;
386
+ usuario: Usuario;
387
+ diaDaSemana: number;
388
+ horaInicio: string;
389
+ horaFim: string;
390
+ constructor(id: number, usuario: Usuario, diaDaSemana: number, horaInicio: string, horaFim: string) {
391
+ this.id = id;
392
+ this.usuario = usuario;
393
+ this.diaDaSemana = diaDaSemana;
394
+ this.horaInicio = horaInicio;
395
+ this.horaFim = horaFim;
396
+ }
397
+ }
382
398
  class Usuario {
383
399
  id: number;
384
400
  perfilJogador: PerfilJogador;
385
401
  perfilMestre: PerfilMestre;
386
402
  perfilAdmin: PerfilAdmin;
387
403
  customizacao: CustomizacaoUsuario;
388
- username: string;
404
+ username: string | null;
389
405
  email: string;
390
406
  discordId: string;
391
407
 
@@ -414,12 +430,21 @@ export type EstruturaPaginaDefinicao = {
414
430
  titulo: string;
415
431
  subtitulo?: string;
416
432
  listaConteudo: {
417
- itens: ConteudoItem[],
433
+ itens: ConteudoItem[];
418
434
  };
419
- listaItensDefinicoesConectadas?: { etiqueta: string, subPaginaDefinicao: string }[];
435
+ listaItensDefinicoesConectadas?: { etiqueta: string; subPaginaDefinicao: string }[];
420
436
  };
421
- export type ConteudoItem = { tipo: 'Definicao'; paragrafos: string[]; } | { tipo: 'Lista'; itensLista: { etiqueta: string; subPaginaDefinicao: string; }[]; };
437
+ export type ConteudoItem =
438
+ | { tipo: 'Definicao'; elementos: DefinicaoElemento[] }
439
+ | { tipo: 'Lista'; itensLista: ListaItem[] };
440
+ export type DefinicaoElemento =
441
+ | { tipo: 'Paragrafo'; conteudo: string }
442
+ | { tipo: 'ParagrafoSecreto' };
443
+ export type ListaItem =
444
+ | { tipo: 'ItemLista', etiqueta: string; subPaginaDefinicao: string }
445
+ | { tipo: 'ItemListaSecreto' };
422
446
  export type DadosMinhaPagina = Pick<Usuario, 'username'> & {
423
447
  caminhoAvatar: string;
424
448
  };
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 };
449
+ export type DadosMinhasDisponibilidades = {};
450
+ 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, DisponibilidadeUsuario, Usuario };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
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",