types-nora-api 0.0.151 → 0.0.152
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 +60 -63
- package/dist/classes.js +15 -17
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -754,22 +754,32 @@ type TelemetrySnapshot = {
|
|
|
754
754
|
lastEvents: TelemetryEventLog[];
|
|
755
755
|
serverTime: number;
|
|
756
756
|
};
|
|
757
|
-
type EventoTipo = '
|
|
758
|
-
type
|
|
759
|
-
tipo:
|
|
757
|
+
type EventoTipo = 'envia' | 'emite' | 'envia-e-recebe';
|
|
758
|
+
type EventoEnvia<P = any> = {
|
|
759
|
+
tipo: 'envia';
|
|
760
|
+
payload: P;
|
|
761
|
+
response?: never;
|
|
762
|
+
};
|
|
763
|
+
type EventoEmite<P = any, R = any> = {
|
|
764
|
+
tipo: 'emite';
|
|
760
765
|
payload: P;
|
|
761
|
-
} & (T extends 'recebe-envia' ? {
|
|
762
766
|
response: R;
|
|
763
|
-
}
|
|
764
|
-
type
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
767
|
+
};
|
|
768
|
+
type EventoEnviaERecebe<P = any, R = any> = {
|
|
769
|
+
tipo: 'envia-e-recebe';
|
|
770
|
+
payload: P;
|
|
771
|
+
response: R;
|
|
772
|
+
};
|
|
773
|
+
type EventoSchema = EventoEnvia<any> | EventoEmite<any, any> | EventoEnviaERecebe<any, any>;
|
|
774
|
+
type GatewayDef = Record<string, EventoSchema>;
|
|
775
|
+
declare function createGateway<T extends {
|
|
776
|
+
[K in keyof T]: EventoSchema;
|
|
777
|
+
}>(def: T): T;
|
|
768
778
|
declare namespace EventosWebSocket {
|
|
769
779
|
const gateways: {
|
|
770
780
|
readonly Chat: {
|
|
771
781
|
testeChat1: {
|
|
772
|
-
tipo: "recebe
|
|
782
|
+
tipo: "envia-e-recebe";
|
|
773
783
|
payload: {
|
|
774
784
|
mensagem: string;
|
|
775
785
|
};
|
|
@@ -778,7 +788,7 @@ declare namespace EventosWebSocket {
|
|
|
778
788
|
};
|
|
779
789
|
};
|
|
780
790
|
testeDuplicado: {
|
|
781
|
-
tipo: "recebe
|
|
791
|
+
tipo: "envia-e-recebe";
|
|
782
792
|
payload: {};
|
|
783
793
|
response: {
|
|
784
794
|
msg: string;
|
|
@@ -787,7 +797,7 @@ declare namespace EventosWebSocket {
|
|
|
787
797
|
};
|
|
788
798
|
readonly GameEngine: {
|
|
789
799
|
testeGameEngine1: {
|
|
790
|
-
tipo: "recebe
|
|
800
|
+
tipo: "envia-e-recebe";
|
|
791
801
|
payload: {
|
|
792
802
|
teste1: string;
|
|
793
803
|
};
|
|
@@ -796,14 +806,8 @@ declare namespace EventosWebSocket {
|
|
|
796
806
|
msg: string;
|
|
797
807
|
};
|
|
798
808
|
};
|
|
799
|
-
testeGameEngine2: {
|
|
800
|
-
tipo: "recebe";
|
|
801
|
-
payload: {
|
|
802
|
-
teste2: number;
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
809
|
testeDuplicado: {
|
|
806
|
-
tipo: "recebe
|
|
810
|
+
tipo: "envia-e-recebe";
|
|
807
811
|
payload: {};
|
|
808
812
|
response: {
|
|
809
813
|
msg: string;
|
|
@@ -812,7 +816,7 @@ declare namespace EventosWebSocket {
|
|
|
812
816
|
};
|
|
813
817
|
readonly UsuariosConectados: {
|
|
814
818
|
obtemUsuariosConectados: {
|
|
815
|
-
tipo: "
|
|
819
|
+
tipo: "emite";
|
|
816
820
|
payload: {};
|
|
817
821
|
response: {
|
|
818
822
|
msg: string;
|
|
@@ -827,14 +831,14 @@ declare namespace EventosWebSocket {
|
|
|
827
831
|
};
|
|
828
832
|
};
|
|
829
833
|
enviaPraQuemPediu: {
|
|
830
|
-
tipo: "
|
|
834
|
+
tipo: "emite";
|
|
831
835
|
payload: {};
|
|
832
836
|
response: {
|
|
833
837
|
msg: string;
|
|
834
838
|
};
|
|
835
839
|
};
|
|
836
840
|
enviaPraTodoMundo: {
|
|
837
|
-
tipo: "
|
|
841
|
+
tipo: "emite";
|
|
838
842
|
payload: {};
|
|
839
843
|
response: {
|
|
840
844
|
msg: string;
|
|
@@ -843,6 +847,10 @@ declare namespace EventosWebSocket {
|
|
|
843
847
|
};
|
|
844
848
|
};
|
|
845
849
|
}
|
|
850
|
+
type EventosEmiteMap = typeof Eventos_Emite;
|
|
851
|
+
type EventoEmiteAny = {
|
|
852
|
+
[G in keyof EventosEmiteMap]: EventosEmiteMap[G]['eventos'][keyof EventosEmiteMap[G]['eventos']];
|
|
853
|
+
}[keyof EventosEmiteMap];
|
|
846
854
|
type SOCKET_AcessoUsuario = {
|
|
847
855
|
usuario: UsuarioDto;
|
|
848
856
|
paginaAtual?: PaginaObjeto | null;
|
|
@@ -1008,28 +1016,42 @@ declare function criarEventosFiltrados<Tipo extends EventoTipoLiteral>(tipo: Tip
|
|
|
1008
1016
|
readonly fullName: `${Extract<G, string>}:${Extract<E, string>}`;
|
|
1009
1017
|
}; };
|
|
1010
1018
|
}; };
|
|
1011
|
-
declare const
|
|
1019
|
+
declare const Eventos_Envia: {
|
|
1012
1020
|
readonly Chat: {
|
|
1013
1021
|
eventos: {};
|
|
1014
1022
|
};
|
|
1015
1023
|
readonly GameEngine: {
|
|
1024
|
+
eventos: {};
|
|
1025
|
+
};
|
|
1026
|
+
readonly UsuariosConectados: {
|
|
1027
|
+
eventos: {};
|
|
1028
|
+
};
|
|
1029
|
+
readonly Teste: {
|
|
1016
1030
|
eventos: {
|
|
1017
|
-
|
|
1018
|
-
tipo: "
|
|
1031
|
+
mudaTexto: {
|
|
1032
|
+
tipo: "envia";
|
|
1019
1033
|
payload: {
|
|
1020
|
-
|
|
1034
|
+
novoTexto: string;
|
|
1021
1035
|
};
|
|
1022
1036
|
} & {
|
|
1023
|
-
readonly nome: "
|
|
1024
|
-
readonly gateway: "
|
|
1025
|
-
readonly fullName: "
|
|
1037
|
+
readonly nome: "mudaTexto";
|
|
1038
|
+
readonly gateway: "Teste";
|
|
1039
|
+
readonly fullName: "Teste:mudaTexto";
|
|
1026
1040
|
};
|
|
1027
1041
|
};
|
|
1028
1042
|
};
|
|
1043
|
+
};
|
|
1044
|
+
declare const Eventos_Emite: {
|
|
1045
|
+
readonly Chat: {
|
|
1046
|
+
eventos: {};
|
|
1047
|
+
};
|
|
1048
|
+
readonly GameEngine: {
|
|
1049
|
+
eventos: {};
|
|
1050
|
+
};
|
|
1029
1051
|
readonly UsuariosConectados: {
|
|
1030
1052
|
eventos: {
|
|
1031
1053
|
obtemUsuariosConectados: {
|
|
1032
|
-
tipo: "
|
|
1054
|
+
tipo: "emite";
|
|
1033
1055
|
payload: {};
|
|
1034
1056
|
response: {
|
|
1035
1057
|
msg: string;
|
|
@@ -1044,7 +1066,7 @@ declare const Eventos_Recebe: {
|
|
|
1044
1066
|
readonly Teste: {
|
|
1045
1067
|
eventos: {
|
|
1046
1068
|
enviaPraQuemPediu: {
|
|
1047
|
-
tipo: "
|
|
1069
|
+
tipo: "emite";
|
|
1048
1070
|
payload: {};
|
|
1049
1071
|
response: {
|
|
1050
1072
|
msg: string;
|
|
@@ -1055,7 +1077,7 @@ declare const Eventos_Recebe: {
|
|
|
1055
1077
|
readonly fullName: "Teste:enviaPraQuemPediu";
|
|
1056
1078
|
};
|
|
1057
1079
|
enviaPraTodoMundo: {
|
|
1058
|
-
tipo: "
|
|
1080
|
+
tipo: "emite";
|
|
1059
1081
|
payload: {};
|
|
1060
1082
|
response: {
|
|
1061
1083
|
msg: string;
|
|
@@ -1068,36 +1090,11 @@ declare const Eventos_Recebe: {
|
|
|
1068
1090
|
};
|
|
1069
1091
|
};
|
|
1070
1092
|
};
|
|
1071
|
-
declare const
|
|
1072
|
-
readonly Chat: {
|
|
1073
|
-
eventos: {};
|
|
1074
|
-
};
|
|
1075
|
-
readonly GameEngine: {
|
|
1076
|
-
eventos: {};
|
|
1077
|
-
};
|
|
1078
|
-
readonly UsuariosConectados: {
|
|
1079
|
-
eventos: {};
|
|
1080
|
-
};
|
|
1081
|
-
readonly Teste: {
|
|
1082
|
-
eventos: {
|
|
1083
|
-
mudaTexto: {
|
|
1084
|
-
tipo: "envia";
|
|
1085
|
-
payload: {
|
|
1086
|
-
novoTexto: string;
|
|
1087
|
-
};
|
|
1088
|
-
} & {
|
|
1089
|
-
readonly nome: "mudaTexto";
|
|
1090
|
-
readonly gateway: "Teste";
|
|
1091
|
-
readonly fullName: "Teste:mudaTexto";
|
|
1092
|
-
};
|
|
1093
|
-
};
|
|
1094
|
-
};
|
|
1095
|
-
};
|
|
1096
|
-
declare const Eventos_RecebeEnvia: {
|
|
1093
|
+
declare const Eventos_EnviaERecebe: {
|
|
1097
1094
|
readonly Chat: {
|
|
1098
1095
|
eventos: {
|
|
1099
1096
|
testeChat1: {
|
|
1100
|
-
tipo: "recebe
|
|
1097
|
+
tipo: "envia-e-recebe";
|
|
1101
1098
|
payload: {
|
|
1102
1099
|
mensagem: string;
|
|
1103
1100
|
};
|
|
@@ -1110,7 +1107,7 @@ declare const Eventos_RecebeEnvia: {
|
|
|
1110
1107
|
readonly fullName: "Chat:testeChat1";
|
|
1111
1108
|
};
|
|
1112
1109
|
testeDuplicado: {
|
|
1113
|
-
tipo: "recebe
|
|
1110
|
+
tipo: "envia-e-recebe";
|
|
1114
1111
|
payload: {};
|
|
1115
1112
|
response: {
|
|
1116
1113
|
msg: string;
|
|
@@ -1125,7 +1122,7 @@ declare const Eventos_RecebeEnvia: {
|
|
|
1125
1122
|
readonly GameEngine: {
|
|
1126
1123
|
eventos: {
|
|
1127
1124
|
testeGameEngine1: {
|
|
1128
|
-
tipo: "recebe
|
|
1125
|
+
tipo: "envia-e-recebe";
|
|
1129
1126
|
payload: {
|
|
1130
1127
|
teste1: string;
|
|
1131
1128
|
};
|
|
@@ -1139,7 +1136,7 @@ declare const Eventos_RecebeEnvia: {
|
|
|
1139
1136
|
readonly fullName: "GameEngine:testeGameEngine1";
|
|
1140
1137
|
};
|
|
1141
1138
|
testeDuplicado: {
|
|
1142
|
-
tipo: "recebe
|
|
1139
|
+
tipo: "envia-e-recebe";
|
|
1143
1140
|
payload: {};
|
|
1144
1141
|
response: {
|
|
1145
1142
|
msg: string;
|
|
@@ -1163,4 +1160,4 @@ type SOCKET_UsuarioExistente = {
|
|
|
1163
1160
|
username: string;
|
|
1164
1161
|
avatar: string;
|
|
1165
1162
|
};
|
|
1166
|
-
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, PAGINAS, PaginaChave, PaginaObjeto, TelemetryConnectionInfo, TelemetryEventLog, TelemetrySnapshot, EventoTipo,
|
|
1163
|
+
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, PAGINAS, PaginaChave, PaginaObjeto, TelemetryConnectionInfo, TelemetryEventLog, TelemetrySnapshot, EventoTipo, EventoEnvia, EventoEmite, EventoEnviaERecebe, EventoSchema, GatewayDef, createGateway, EventosWebSocket, EventosEmiteMap, EventoEmiteAny, SOCKET_AcessoUsuario, 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, Gateways, EventoTipoLiteral, FiltraEventosPorTipo, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe, SOCKET_UsuarioExistente };
|
package/dist/classes.js
CHANGED
|
@@ -74,41 +74,41 @@ const PAGINAS = {
|
|
|
74
74
|
nome: 'Página de Mestre',
|
|
75
75
|
},
|
|
76
76
|
};
|
|
77
|
-
function createGateway(
|
|
77
|
+
function createGateway(def) { return def; }
|
|
78
78
|
//
|
|
79
79
|
var EventosWebSocket;
|
|
80
80
|
(function (EventosWebSocket) {
|
|
81
81
|
const Chat = createGateway({
|
|
82
82
|
testeChat1: {
|
|
83
|
-
tipo: 'recebe
|
|
83
|
+
tipo: 'envia-e-recebe',
|
|
84
84
|
payload: { mensagem: '' },
|
|
85
85
|
response: { entregue: true },
|
|
86
86
|
},
|
|
87
87
|
testeDuplicado: {
|
|
88
|
-
tipo: 'recebe
|
|
88
|
+
tipo: 'envia-e-recebe',
|
|
89
89
|
payload: {},
|
|
90
90
|
response: { msg: '' },
|
|
91
91
|
},
|
|
92
92
|
});
|
|
93
93
|
const GameEngine = createGateway({
|
|
94
94
|
testeGameEngine1: {
|
|
95
|
-
tipo: 'recebe
|
|
95
|
+
tipo: 'envia-e-recebe',
|
|
96
96
|
payload: { teste1: '' },
|
|
97
97
|
response: { ok: true, msg: '' },
|
|
98
98
|
},
|
|
99
|
-
testeGameEngine2: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
},
|
|
99
|
+
// testeGameEngine2: {
|
|
100
|
+
// tipo: 'emite',
|
|
101
|
+
// payload: { teste2: 0 },
|
|
102
|
+
// },
|
|
103
103
|
testeDuplicado: {
|
|
104
|
-
tipo: 'recebe
|
|
104
|
+
tipo: 'envia-e-recebe',
|
|
105
105
|
payload: {},
|
|
106
106
|
response: { msg: '' },
|
|
107
107
|
},
|
|
108
108
|
});
|
|
109
109
|
const UsuariosConectados = createGateway({
|
|
110
110
|
obtemUsuariosConectados: {
|
|
111
|
-
tipo: '
|
|
111
|
+
tipo: 'emite',
|
|
112
112
|
payload: {},
|
|
113
113
|
response: { msg: '' },
|
|
114
114
|
},
|
|
@@ -117,16 +117,14 @@ var EventosWebSocket;
|
|
|
117
117
|
mudaTexto: {
|
|
118
118
|
tipo: 'envia',
|
|
119
119
|
payload: { novoTexto: '' },
|
|
120
|
-
// response: {}, não deveria ser possivel <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
121
120
|
},
|
|
122
121
|
enviaPraQuemPediu: {
|
|
123
|
-
tipo: '
|
|
122
|
+
tipo: 'emite',
|
|
124
123
|
payload: {},
|
|
125
|
-
// deveria ser impossivel não passar response <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
126
124
|
response: { msg: '' },
|
|
127
125
|
},
|
|
128
126
|
enviaPraTodoMundo: {
|
|
129
|
-
tipo: '
|
|
127
|
+
tipo: 'emite',
|
|
130
128
|
payload: {},
|
|
131
129
|
response: { msg: '' },
|
|
132
130
|
},
|
|
@@ -237,7 +235,7 @@ function criarEventosFiltrados(tipo) {
|
|
|
237
235
|
}
|
|
238
236
|
return result;
|
|
239
237
|
}
|
|
240
|
-
const Eventos_Recebe = criarEventosFiltrados('recebe');
|
|
241
238
|
const Eventos_Envia = criarEventosFiltrados('envia');
|
|
242
|
-
const
|
|
243
|
-
|
|
239
|
+
const Eventos_Emite = criarEventosFiltrados('emite');
|
|
240
|
+
const Eventos_EnviaERecebe = criarEventosFiltrados('envia-e-recebe');
|
|
241
|
+
export { AuthSession, PAGINAS, createGateway, EventosWebSocket, AventuraEstado, EstadoPendenciaPersonagem, EstadoPendenciaAdministrativaPersonagem, EstadoOcupacaoPersonagem, EstadoSessao, DiaDaSemana, obtemDiaDaSemanaPorExtensoPorDDS, CargoExibicaoUsuario, FormatoMomento, EstiloSessao, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe };
|