types-nora-api 0.0.131 → 0.0.133
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 +58 -119
- package/dist/classes.js +21 -90
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -668,128 +668,67 @@ interface IUsuario {
|
|
|
668
668
|
listaCargos: CargosUsuario;
|
|
669
669
|
}
|
|
670
670
|
type UsuarioDto = IUsuario;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
declare const PAGINAS: {
|
|
687
|
-
readonly VAZIA: {
|
|
688
|
-
readonly id: "";
|
|
689
|
-
readonly nome: "";
|
|
690
|
-
};
|
|
691
|
-
readonly ADMIN: {
|
|
692
|
-
readonly id: "ADMIN";
|
|
693
|
-
readonly nome: "Administrando";
|
|
694
|
-
};
|
|
695
|
-
readonly INICIO: {
|
|
696
|
-
readonly id: "INICIO";
|
|
697
|
-
readonly nome: "Página Inicial";
|
|
698
|
-
};
|
|
699
|
-
readonly MINHA_PAGINA: {
|
|
700
|
-
readonly id: "MINHA_PAGINA";
|
|
701
|
-
readonly nome: "Minha Página";
|
|
702
|
-
};
|
|
703
|
-
readonly AVENTURAS: {
|
|
704
|
-
readonly id: "AVENTURAS";
|
|
705
|
-
readonly nome: "Aventuras";
|
|
706
|
-
};
|
|
707
|
-
readonly AVENTURA: {
|
|
708
|
-
readonly id: "AVENTURA";
|
|
709
|
-
readonly nome: "Página de Aventura";
|
|
710
|
-
};
|
|
711
|
-
readonly DEFINICOES: {
|
|
712
|
-
readonly id: "DEFINICOES";
|
|
713
|
-
readonly nome: "Definições";
|
|
714
|
-
};
|
|
715
|
-
readonly DICAS: {
|
|
716
|
-
readonly id: "DICAS";
|
|
717
|
-
readonly nome: "Dicas";
|
|
718
|
-
};
|
|
719
|
-
readonly EVOLUINDO: {
|
|
720
|
-
readonly id: "EVOLUINDO";
|
|
721
|
-
readonly nome: "Página de Evolução";
|
|
722
|
-
};
|
|
723
|
-
readonly LINHA_DO_TEMPO: {
|
|
724
|
-
readonly id: "LINHA_DO_TEMPO";
|
|
725
|
-
readonly nome: "Linha do Tempo";
|
|
726
|
-
};
|
|
727
|
-
readonly MEUS_PERSONAGENS: {
|
|
728
|
-
readonly id: "MEUS_PERSONAGENS";
|
|
729
|
-
readonly nome: "Página de Personagens";
|
|
730
|
-
};
|
|
731
|
-
readonly DISPONIBILIDADES: {
|
|
732
|
-
readonly id: "DISPONIBILIDADES";
|
|
733
|
-
readonly nome: "Página de Disponibilidades";
|
|
734
|
-
};
|
|
735
|
-
readonly SESSAO_AOVIVO: {
|
|
736
|
-
readonly id: "SESSAO_AOVIVO";
|
|
737
|
-
readonly nome: "Ao vivo em Sessão";
|
|
738
|
-
};
|
|
739
|
-
readonly SESSAO: {
|
|
740
|
-
readonly id: "SESSAO";
|
|
741
|
-
readonly nome: "Assistindo Sessão";
|
|
742
|
-
};
|
|
743
|
-
readonly MESTRE: {
|
|
744
|
-
readonly id: "MESTRE";
|
|
745
|
-
readonly nome: "Página de Mestre";
|
|
746
|
-
};
|
|
671
|
+
type EventoSocket = {
|
|
672
|
+
tipo: 'emitir';
|
|
673
|
+
payload: unknown;
|
|
674
|
+
descricao: string;
|
|
675
|
+
response?: never;
|
|
676
|
+
} | {
|
|
677
|
+
tipo: 'ouvir';
|
|
678
|
+
payload: unknown;
|
|
679
|
+
descricao: string;
|
|
680
|
+
response?: never;
|
|
681
|
+
} | {
|
|
682
|
+
tipo: 'request-response';
|
|
683
|
+
payload: unknown;
|
|
684
|
+
response: unknown;
|
|
685
|
+
descricao: string;
|
|
747
686
|
};
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
687
|
+
declare const createSocketConfig: <T extends Record<string, {
|
|
688
|
+
eventos: Record<string, EventoSocket>;
|
|
689
|
+
}>>(config: {
|
|
690
|
+
namespaces: T;
|
|
691
|
+
}) => {
|
|
692
|
+
namespaces: T;
|
|
693
|
+
};
|
|
694
|
+
declare const SOCKET_CONFIG: {
|
|
695
|
+
namespaces: {
|
|
696
|
+
gameEngine: {
|
|
697
|
+
eventos: {
|
|
698
|
+
teste: {
|
|
699
|
+
tipo: "request-response";
|
|
700
|
+
payload: {};
|
|
701
|
+
response: {
|
|
702
|
+
teste: string;
|
|
703
|
+
};
|
|
704
|
+
descricao: string;
|
|
705
|
+
};
|
|
706
|
+
};
|
|
767
707
|
};
|
|
768
|
-
readonly Mestre: {
|
|
769
|
-
readonly receberTodasFichasSessao: "GameEngine_Mestre_receberTodasFichasSessao";
|
|
770
|
-
};
|
|
771
|
-
};
|
|
772
|
-
readonly PaginaAovivo: {
|
|
773
|
-
readonly receberSessaoEmAndamento: "PaginaAovivo_receberSessaoEmAndamento";
|
|
774
|
-
};
|
|
775
|
-
readonly UsuariosExistentes: {
|
|
776
|
-
readonly obterTodos: "UsuariosExistentes_obterTodos";
|
|
777
708
|
};
|
|
778
709
|
};
|
|
779
|
-
|
|
780
|
-
[
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
};
|
|
788
|
-
type
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
}
|
|
710
|
+
declare const SOCKET: { [K in keyof (typeof SOCKET_CONFIG)["namespaces"]]: {
|
|
711
|
+
readonly eventos: { [E in keyof (typeof SOCKET_CONFIG)["namespaces"][K]["eventos"]]: (typeof SOCKET_CONFIG)["namespaces"][K]["eventos"][E] & {
|
|
712
|
+
readonly nome: E;
|
|
713
|
+
}; };
|
|
714
|
+
readonly nomeNamespace: `/${K}`;
|
|
715
|
+
}; };
|
|
716
|
+
type FilterNever<T> = {
|
|
717
|
+
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
718
|
+
};
|
|
719
|
+
type FiltrarEventosPorTipo<Tipo extends EventoSocket['tipo']> = {
|
|
720
|
+
[K in keyof typeof SOCKET_CONFIG.namespaces]: FilterNever<{
|
|
721
|
+
[E in keyof typeof SOCKET_CONFIG.namespaces[K]['eventos']]: typeof SOCKET_CONFIG.namespaces[K]['eventos'][E] extends {
|
|
722
|
+
tipo: Tipo;
|
|
723
|
+
} ? typeof SOCKET_CONFIG.namespaces[K]['eventos'][E] & {
|
|
724
|
+
readonly nome: E;
|
|
725
|
+
} : never;
|
|
726
|
+
}>;
|
|
727
|
+
};
|
|
728
|
+
declare const criarEventosFiltrados: <Tipo extends EventoSocket["tipo"]>(tipo: Tipo) => FiltrarEventosPorTipo<Tipo>;
|
|
729
|
+
declare const Eventos_Tipo_Emitir: FiltrarEventosPorTipo<"emitir">;
|
|
730
|
+
declare const Eventos_Tipo_Ouvir: FiltrarEventosPorTipo<"ouvir">;
|
|
731
|
+
declare const Eventos_Tipo_RequestResponse: FiltrarEventosPorTipo<"request-response">;
|
|
793
732
|
interface PaletaCores {
|
|
794
733
|
corPrimaria: string;
|
|
795
734
|
corSecundaria?: string;
|
|
@@ -936,4 +875,4 @@ declare enum EstiloSessao {
|
|
|
936
875
|
SESSAO_UNICA_NAO_CANONICA = 2,
|
|
937
876
|
ERRO = 3
|
|
938
877
|
}
|
|
939
|
-
export { IArcoAventura, ArcoAventuraDto, IAventura, AventuraDto, IConviteGrupoAventuraPersonagem, ConviteGrupoAventuraPersonagemDto, IGrupoAventura, GrupoAventuraDto, IGrupoAventuraPersonagem, GrupoAventuraPersonagemDto, IRespostaConvite, RespostaConviteDto, IVariavelAmbiente, VariavelAmbienteDto, IConquista, ConquistaDto, ITipoConquista, TipoConquistaDto, IDetalheSessaoAventura, DetalheSessaoAventuraDto, IDetalheSessaoCanonica, DetalheSessaoCanonicaDto, CapituloSessaoCanonica, IDetalheSessaoNaoCanonica, DetalheSessaoNaoCanonicaDto, IDetalheSessaoUnica, DetalheSessaoUnicaDto, IParticipanteSessaoUnica, ParticipanteSessaoUnicaDto, ICoeficienteGanhoEstatisticaClasse, CoeficienteGanhoEstatisticaClasseDto, IGanhoNivelClasse, GanhoNivelClasseDto, DadosDoTipoGanho, DadosGanho_Atributos, DadosGanho_Pericias, DadosGanho_Estatisticas, DadosGanho_Classes, DadosGanho_ValorMaximoAtributo, DadosGanho_PontosHabilidadesEspeciais, DadosGanho_PontosHabilidadesParanormais, DadosGanho_PontosHabilidadeElemental, IGanhoRelativoCoeficienteAtributo, GanhoRelativoCoeficienteAtributoDto, ITipoGanhoNivel, TipoGanhoNivelDto, IGeracao, GeracaoDto, IImagem, ImagemDto, ITipoImagem, TipoImagemDto, 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, ILink, LinkDto, ITipoLink, TipoLinkDto, IDificuldadeSessao, DificuldadeSessaoDto, IEstiloSessaoMestrada, EstiloSessaoMestradaDto, ITipoSessao, TipoSessaoDto, IPerfilAdmin, PerfilAdminDto, IPerfilJogador, PerfilJogadorDto, IPerfilMestre, PerfilMestreDto, IFichaPersonagem, FichaPersonagemDto, ObjetoFicha, DetalheEvolucao, DetalhesExtras, FichaDeJogo, AtributoFicha, PericiaFicha, EstatisticaDanificavelFicha, DetalheFicha, RegistroPericiaLivre, IInformacaoPersonagem, InformacaoPersonagemDto, IPersonagem, PersonagemDto, IResumoPersonagemAventura, ResumoPersonagemAventuraDto, ITipoPersonagem, TipoPersonagemDto, IDetalheRascunhoAventura, DetalheRascunhoAventuraDto, IDetalheRascunhoSessaoUnica, DetalheRascunhoSessaoUnicaDto, IDetalheRascunhoSessaoUnicaCanonica, DetalheRascunhoSessaoUnicaCanonicaDto, IRascunho, RascunhoDto, IEstudo, EstudoDto, IRegistroSessao, RegistroSessaoDto, ISessao, SessaoDto, AuthSession, ICustomizacaoUsuario, CustomizacaoUsuarioDto, IDisponibilidadeUsuario, DisponibilidadeUsuarioDto, ListaDisponibilidadesUsuario, DisponibilidadesDDS, JanelaDisponibilidade, IUsuario, UsuarioDto,
|
|
878
|
+
export { IArcoAventura, ArcoAventuraDto, IAventura, AventuraDto, IConviteGrupoAventuraPersonagem, ConviteGrupoAventuraPersonagemDto, IGrupoAventura, GrupoAventuraDto, IGrupoAventuraPersonagem, GrupoAventuraPersonagemDto, IRespostaConvite, RespostaConviteDto, IVariavelAmbiente, VariavelAmbienteDto, IConquista, ConquistaDto, ITipoConquista, TipoConquistaDto, IDetalheSessaoAventura, DetalheSessaoAventuraDto, IDetalheSessaoCanonica, DetalheSessaoCanonicaDto, CapituloSessaoCanonica, IDetalheSessaoNaoCanonica, DetalheSessaoNaoCanonicaDto, IDetalheSessaoUnica, DetalheSessaoUnicaDto, IParticipanteSessaoUnica, ParticipanteSessaoUnicaDto, ICoeficienteGanhoEstatisticaClasse, CoeficienteGanhoEstatisticaClasseDto, IGanhoNivelClasse, GanhoNivelClasseDto, DadosDoTipoGanho, DadosGanho_Atributos, DadosGanho_Pericias, DadosGanho_Estatisticas, DadosGanho_Classes, DadosGanho_ValorMaximoAtributo, DadosGanho_PontosHabilidadesEspeciais, DadosGanho_PontosHabilidadesParanormais, DadosGanho_PontosHabilidadeElemental, IGanhoRelativoCoeficienteAtributo, GanhoRelativoCoeficienteAtributoDto, ITipoGanhoNivel, TipoGanhoNivelDto, IGeracao, GeracaoDto, IImagem, ImagemDto, ITipoImagem, TipoImagemDto, 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, ILink, LinkDto, ITipoLink, TipoLinkDto, IDificuldadeSessao, DificuldadeSessaoDto, IEstiloSessaoMestrada, EstiloSessaoMestradaDto, ITipoSessao, TipoSessaoDto, IPerfilAdmin, PerfilAdminDto, IPerfilJogador, PerfilJogadorDto, IPerfilMestre, PerfilMestreDto, IFichaPersonagem, FichaPersonagemDto, ObjetoFicha, DetalheEvolucao, DetalhesExtras, FichaDeJogo, AtributoFicha, PericiaFicha, EstatisticaDanificavelFicha, DetalheFicha, RegistroPericiaLivre, IInformacaoPersonagem, InformacaoPersonagemDto, IPersonagem, PersonagemDto, IResumoPersonagemAventura, ResumoPersonagemAventuraDto, ITipoPersonagem, TipoPersonagemDto, IDetalheRascunhoAventura, DetalheRascunhoAventuraDto, IDetalheRascunhoSessaoUnica, DetalheRascunhoSessaoUnicaDto, IDetalheRascunhoSessaoUnicaCanonica, DetalheRascunhoSessaoUnicaCanonicaDto, IRascunho, RascunhoDto, IEstudo, EstudoDto, IRegistroSessao, RegistroSessaoDto, ISessao, SessaoDto, AuthSession, ICustomizacaoUsuario, CustomizacaoUsuarioDto, IDisponibilidadeUsuario, DisponibilidadeUsuarioDto, ListaDisponibilidadesUsuario, DisponibilidadesDDS, JanelaDisponibilidade, IUsuario, UsuarioDto, EventoSocket, createSocketConfig, SOCKET_CONFIG, SOCKET, FilterNever, FiltrarEventosPorTipo, criarEventosFiltrados, Eventos_Tipo_Emitir, Eventos_Tipo_Ouvir, Eventos_Tipo_RequestResponse, PaletaCores, EstruturaPaginaDefinicao, ConteudoItem, DefinicaoElemento, ListaItem, AventuraEstado, EstadoPendenciaPersonagem, EstadoPendenciaAdministrativaPersonagem, EstadoOcupacaoPersonagem, EstadoSessao, DiaDaSemana, obtemDiaDaSemanaPorExtensoPorDDS, NumeroHora24, NumeroMomento, MomentoFormatado24, MomentoFormatado, CargoExibicaoUsuario, CargosUsuario, ObjetoAutenticacao, ObjetoCache, ObjetoPendeciaPersonagem, TipoVariavelAmbiente, ObjetoEvolucaoCompleto, ObjetoEvolucao, ObjetoGanhosEvolucao, GanhoEstatistica, FormatoMomento, DetalheUtilizacaoRascunho, EstiloSessao };
|
package/dist/classes.js
CHANGED
|
@@ -11,97 +11,28 @@ class AuthSession {
|
|
|
11
11
|
this.json = json;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
MINHA_PAGINA: {
|
|
28
|
-
id: 'MINHA_PAGINA',
|
|
29
|
-
nome: 'Minha Página',
|
|
30
|
-
},
|
|
31
|
-
AVENTURAS: {
|
|
32
|
-
id: 'AVENTURAS',
|
|
33
|
-
nome: 'Aventuras',
|
|
34
|
-
},
|
|
35
|
-
AVENTURA: {
|
|
36
|
-
id: 'AVENTURA',
|
|
37
|
-
nome: 'Página de Aventura',
|
|
38
|
-
},
|
|
39
|
-
DEFINICOES: {
|
|
40
|
-
id: 'DEFINICOES',
|
|
41
|
-
nome: 'Definições',
|
|
42
|
-
},
|
|
43
|
-
DICAS: {
|
|
44
|
-
id: 'DICAS',
|
|
45
|
-
nome: 'Dicas',
|
|
46
|
-
},
|
|
47
|
-
EVOLUINDO: {
|
|
48
|
-
id: 'EVOLUINDO',
|
|
49
|
-
nome: 'Página de Evolução',
|
|
50
|
-
},
|
|
51
|
-
LINHA_DO_TEMPO: {
|
|
52
|
-
id: 'LINHA_DO_TEMPO',
|
|
53
|
-
nome: 'Linha do Tempo',
|
|
54
|
-
},
|
|
55
|
-
MEUS_PERSONAGENS: {
|
|
56
|
-
id: 'MEUS_PERSONAGENS',
|
|
57
|
-
nome: 'Página de Personagens',
|
|
58
|
-
},
|
|
59
|
-
DISPONIBILIDADES: {
|
|
60
|
-
id: 'DISPONIBILIDADES',
|
|
61
|
-
nome: 'Página de Disponibilidades',
|
|
62
|
-
},
|
|
63
|
-
SESSAO_AOVIVO: {
|
|
64
|
-
id: 'SESSAO_AOVIVO',
|
|
65
|
-
nome: 'Ao vivo em Sessão',
|
|
66
|
-
},
|
|
67
|
-
SESSAO: {
|
|
68
|
-
id: 'SESSAO',
|
|
69
|
-
nome: 'Assistindo Sessão',
|
|
70
|
-
},
|
|
71
|
-
MESTRE: {
|
|
72
|
-
id: 'MESTRE',
|
|
73
|
-
nome: 'Página de Mestre',
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
const SOCKET_EVENTOS = {
|
|
77
|
-
AcessosUsuarios: {
|
|
78
|
-
obter: 'AcessosUsuarios_obtem',
|
|
79
|
-
receber: 'AcessosUsuarios_recebe',
|
|
80
|
-
},
|
|
81
|
-
Chat: {
|
|
82
|
-
enviarMensagem: 'Chat_enviarMensagem',
|
|
83
|
-
receberMensagem: 'Chat_receberMensagem',
|
|
84
|
-
receberSalasDisponiveis: 'Chat_receberSalasDisponiveis',
|
|
85
|
-
obterSalasDisponiveis: 'Chat_obterSalasDisponiveis',
|
|
86
|
-
},
|
|
87
|
-
GameEngine: {
|
|
88
|
-
enviarMensagem: 'GameEngine_enviarMensagem',
|
|
89
|
-
receberMensagem: 'GameEngine_receberMensagem',
|
|
90
|
-
receberGameState: 'GameEngine_receberGameState',
|
|
91
|
-
Jogador: {
|
|
92
|
-
receberFicha: 'GameEngine_Jogador_receberFicha',
|
|
93
|
-
},
|
|
94
|
-
Mestre: {
|
|
95
|
-
receberTodasFichasSessao: 'GameEngine_Mestre_receberTodasFichasSessao',
|
|
14
|
+
const createSocketConfig = (config) => config;
|
|
15
|
+
const SOCKET_CONFIG = createSocketConfig({
|
|
16
|
+
namespaces: {
|
|
17
|
+
gameEngine: {
|
|
18
|
+
eventos: {
|
|
19
|
+
teste: {
|
|
20
|
+
tipo: 'request-response',
|
|
21
|
+
payload: {},
|
|
22
|
+
response: { teste: '' },
|
|
23
|
+
descricao: 'Teste de gameEngine',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
96
26
|
},
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
obterTodos: 'UsuariosExistentes_obterTodos',
|
|
103
|
-
},
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
const SOCKET = Object.fromEntries(Object.entries(SOCKET_CONFIG.namespaces).map(([nomeNamespace, config]) => [nomeNamespace, { eventos: Object.fromEntries(Object.entries(config.eventos).map(([nomeEvento, eventConfig]) => [nomeEvento, { ...eventConfig, nome: nomeEvento }])), nomeNamespace: `/${nomeNamespace}` }]));
|
|
30
|
+
const criarEventosFiltrados = (tipo) => {
|
|
31
|
+
return Object.fromEntries(Object.entries(SOCKET_CONFIG.namespaces).map(([namespaceName, namespace]) => [namespaceName, Object.fromEntries(Object.entries(namespace.eventos).filter(([_, event]) => event.tipo === tipo).map(([eventName, event]) => [eventName, { ...event, nome: eventName }]))]));
|
|
104
32
|
};
|
|
33
|
+
const Eventos_Tipo_Emitir = criarEventosFiltrados('emitir');
|
|
34
|
+
const Eventos_Tipo_Ouvir = criarEventosFiltrados('ouvir');
|
|
35
|
+
const Eventos_Tipo_RequestResponse = criarEventosFiltrados('request-response');
|
|
105
36
|
// @tipoCompartilhadoFront
|
|
106
37
|
var AventuraEstado;
|
|
107
38
|
(function (AventuraEstado) {
|
|
@@ -193,4 +124,4 @@ var EstiloSessao;
|
|
|
193
124
|
EstiloSessao[EstiloSessao["SESSAO_UNICA_NAO_CANONICA"] = 2] = "SESSAO_UNICA_NAO_CANONICA";
|
|
194
125
|
EstiloSessao[EstiloSessao["ERRO"] = 3] = "ERRO";
|
|
195
126
|
})(EstiloSessao || (EstiloSessao = {}));
|
|
196
|
-
export { AuthSession,
|
|
127
|
+
export { AuthSession, createSocketConfig, SOCKET_CONFIG, SOCKET, criarEventosFiltrados, Eventos_Tipo_Emitir, Eventos_Tipo_Ouvir, Eventos_Tipo_RequestResponse, AventuraEstado, EstadoPendenciaPersonagem, EstadoPendenciaAdministrativaPersonagem, EstadoOcupacaoPersonagem, EstadoSessao, DiaDaSemana, obtemDiaDaSemanaPorExtensoPorDDS, CargoExibicaoUsuario, FormatoMomento, EstiloSessao };
|