types-nora-api 0.0.74 → 0.0.76

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 CHANGED
@@ -533,14 +533,22 @@ interface IUsuario {
533
533
  }
534
534
  type UsuarioDto = IUsuario;
535
535
  declare const PAGINAS: {
536
- readonly PAGINA_INICIAL: {
537
- readonly id: "PAGINA_INICIAL";
536
+ readonly ADMIN: {
537
+ readonly id: "ADMIN";
538
+ readonly nome: "Administrando";
539
+ };
540
+ readonly INICIO: {
541
+ readonly id: "INICIO";
538
542
  readonly nome: "Página Inicial";
539
543
  };
540
544
  readonly MINHA_PAGINA: {
541
545
  readonly id: "MINHA_PAGINA";
542
546
  readonly nome: "Minha Página";
543
547
  };
548
+ readonly AVENTURAS: {
549
+ readonly id: "AVENTURAS";
550
+ readonly nome: "Aventuras";
551
+ };
544
552
  };
545
553
  type PaginaChave = keyof typeof PAGINAS;
546
554
  type PaginaObjeto = typeof PAGINAS[PaginaChave];
@@ -548,10 +556,7 @@ declare const SOCKET_EVENTOS: {
548
556
  readonly AcessosUsuarios: {
549
557
  readonly obter: "obtemAcessosUsuarios";
550
558
  readonly receber: "recebeAcessosUsuarios";
551
- };
552
- readonly Teste: {
553
- readonly obter: "disparar-teste";
554
- readonly receber: "teste-mensagem";
559
+ readonly desconectarUsuario: "desconectarUsuarioAcessosUsuarios";
555
560
  };
556
561
  };
557
562
  type ExtractValues<T> = T extends object ? {
@@ -561,7 +566,7 @@ type EventoSocket = ExtractValues<typeof SOCKET_EVENTOS>;
561
566
  type Done = (err: Error | null, usuario: UsuarioDto | null) => void;
562
567
  type SOCKET_AcessoUsuario = {
563
568
  usuario: UsuarioDto;
564
- paginaAtual: string | null;
569
+ paginaAtual: PaginaObjeto | null;
565
570
  dataAtualizacao: Date;
566
571
  };
567
572
  interface PaletaCores {
package/dist/classes.js CHANGED
@@ -12,23 +12,28 @@ class AuthSession {
12
12
  }
13
13
  }
14
14
  const PAGINAS = {
15
- PAGINA_INICIAL: {
16
- id: 'PAGINA_INICIAL',
15
+ ADMIN: {
16
+ id: 'ADMIN',
17
+ nome: 'Administrando'
18
+ },
19
+ INICIO: {
20
+ id: 'INICIO',
17
21
  nome: 'Página Inicial',
18
22
  },
19
23
  MINHA_PAGINA: {
20
24
  id: 'MINHA_PAGINA',
21
25
  nome: 'Minha Página',
22
26
  },
27
+ AVENTURAS: {
28
+ id: 'AVENTURAS',
29
+ nome: 'Aventuras',
30
+ },
23
31
  };
24
32
  const SOCKET_EVENTOS = {
25
33
  AcessosUsuarios: {
26
34
  obter: 'obtemAcessosUsuarios',
27
35
  receber: 'recebeAcessosUsuarios',
28
- },
29
- Teste: {
30
- obter: 'disparar-teste',
31
- receber: 'teste-mensagem',
36
+ desconectarUsuario: 'desconectarUsuarioAcessosUsuarios'
32
37
  },
33
38
  };
34
39
  // @tipoCompartilhadoFront
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",