types-nora-api 0.0.148 → 0.0.151
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 +130 -30
- package/dist/classes.js +35 -10
- package/package.json +3 -3
package/dist/classes.d.ts
CHANGED
|
@@ -767,6 +767,24 @@ type GatewaysCollection = Record<string, GatewayDef>;
|
|
|
767
767
|
declare function createGateway<T extends Record<string, EventoConfig<EventoTipo, any, any>>>(config: T): T;
|
|
768
768
|
declare namespace EventosWebSocket {
|
|
769
769
|
const gateways: {
|
|
770
|
+
readonly Chat: {
|
|
771
|
+
testeChat1: {
|
|
772
|
+
tipo: "recebe-envia";
|
|
773
|
+
payload: {
|
|
774
|
+
mensagem: string;
|
|
775
|
+
};
|
|
776
|
+
response: {
|
|
777
|
+
entregue: boolean;
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
testeDuplicado: {
|
|
781
|
+
tipo: "recebe-envia";
|
|
782
|
+
payload: {};
|
|
783
|
+
response: {
|
|
784
|
+
msg: string;
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
};
|
|
770
788
|
readonly GameEngine: {
|
|
771
789
|
testeGameEngine1: {
|
|
772
790
|
tipo: "recebe-envia";
|
|
@@ -792,18 +810,31 @@ declare namespace EventosWebSocket {
|
|
|
792
810
|
};
|
|
793
811
|
};
|
|
794
812
|
};
|
|
795
|
-
readonly
|
|
796
|
-
|
|
797
|
-
tipo: "recebe
|
|
813
|
+
readonly UsuariosConectados: {
|
|
814
|
+
obtemUsuariosConectados: {
|
|
815
|
+
tipo: "recebe";
|
|
816
|
+
payload: {};
|
|
817
|
+
response: {
|
|
818
|
+
msg: string;
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
readonly Teste: {
|
|
823
|
+
mudaTexto: {
|
|
824
|
+
tipo: "envia";
|
|
798
825
|
payload: {
|
|
799
|
-
|
|
826
|
+
novoTexto: string;
|
|
800
827
|
};
|
|
828
|
+
};
|
|
829
|
+
enviaPraQuemPediu: {
|
|
830
|
+
tipo: "recebe";
|
|
831
|
+
payload: {};
|
|
801
832
|
response: {
|
|
802
|
-
|
|
833
|
+
msg: string;
|
|
803
834
|
};
|
|
804
835
|
};
|
|
805
|
-
|
|
806
|
-
tipo: "recebe
|
|
836
|
+
enviaPraTodoMundo: {
|
|
837
|
+
tipo: "recebe";
|
|
807
838
|
payload: {};
|
|
808
839
|
response: {
|
|
809
840
|
msg: string;
|
|
@@ -978,6 +1009,9 @@ declare function criarEventosFiltrados<Tipo extends EventoTipoLiteral>(tipo: Tip
|
|
|
978
1009
|
}; };
|
|
979
1010
|
}; };
|
|
980
1011
|
declare const Eventos_Recebe: {
|
|
1012
|
+
readonly Chat: {
|
|
1013
|
+
eventos: {};
|
|
1014
|
+
};
|
|
981
1015
|
readonly GameEngine: {
|
|
982
1016
|
eventos: {
|
|
983
1017
|
testeGameEngine2: {
|
|
@@ -992,34 +1026,88 @@ declare const Eventos_Recebe: {
|
|
|
992
1026
|
};
|
|
993
1027
|
};
|
|
994
1028
|
};
|
|
995
|
-
readonly
|
|
996
|
-
eventos: {
|
|
1029
|
+
readonly UsuariosConectados: {
|
|
1030
|
+
eventos: {
|
|
1031
|
+
obtemUsuariosConectados: {
|
|
1032
|
+
tipo: "recebe";
|
|
1033
|
+
payload: {};
|
|
1034
|
+
response: {
|
|
1035
|
+
msg: string;
|
|
1036
|
+
};
|
|
1037
|
+
} & {
|
|
1038
|
+
readonly nome: "obtemUsuariosConectados";
|
|
1039
|
+
readonly gateway: "UsuariosConectados";
|
|
1040
|
+
readonly fullName: "UsuariosConectados:obtemUsuariosConectados";
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
readonly Teste: {
|
|
1045
|
+
eventos: {
|
|
1046
|
+
enviaPraQuemPediu: {
|
|
1047
|
+
tipo: "recebe";
|
|
1048
|
+
payload: {};
|
|
1049
|
+
response: {
|
|
1050
|
+
msg: string;
|
|
1051
|
+
};
|
|
1052
|
+
} & {
|
|
1053
|
+
readonly nome: "enviaPraQuemPediu";
|
|
1054
|
+
readonly gateway: "Teste";
|
|
1055
|
+
readonly fullName: "Teste:enviaPraQuemPediu";
|
|
1056
|
+
};
|
|
1057
|
+
enviaPraTodoMundo: {
|
|
1058
|
+
tipo: "recebe";
|
|
1059
|
+
payload: {};
|
|
1060
|
+
response: {
|
|
1061
|
+
msg: string;
|
|
1062
|
+
};
|
|
1063
|
+
} & {
|
|
1064
|
+
readonly nome: "enviaPraTodoMundo";
|
|
1065
|
+
readonly gateway: "Teste";
|
|
1066
|
+
readonly fullName: "Teste:enviaPraTodoMundo";
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
997
1069
|
};
|
|
998
1070
|
};
|
|
999
1071
|
declare const Eventos_Envia: {
|
|
1072
|
+
readonly Chat: {
|
|
1073
|
+
eventos: {};
|
|
1074
|
+
};
|
|
1000
1075
|
readonly GameEngine: {
|
|
1001
1076
|
eventos: {};
|
|
1002
1077
|
};
|
|
1003
|
-
readonly
|
|
1078
|
+
readonly UsuariosConectados: {
|
|
1004
1079
|
eventos: {};
|
|
1005
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
|
+
};
|
|
1006
1095
|
};
|
|
1007
1096
|
declare const Eventos_RecebeEnvia: {
|
|
1008
|
-
readonly
|
|
1097
|
+
readonly Chat: {
|
|
1009
1098
|
eventos: {
|
|
1010
|
-
|
|
1099
|
+
testeChat1: {
|
|
1011
1100
|
tipo: "recebe-envia";
|
|
1012
1101
|
payload: {
|
|
1013
|
-
|
|
1102
|
+
mensagem: string;
|
|
1014
1103
|
};
|
|
1015
1104
|
response: {
|
|
1016
|
-
|
|
1017
|
-
msg: string;
|
|
1105
|
+
entregue: boolean;
|
|
1018
1106
|
};
|
|
1019
1107
|
} & {
|
|
1020
|
-
readonly nome: "
|
|
1021
|
-
readonly gateway: "
|
|
1022
|
-
readonly fullName: "
|
|
1108
|
+
readonly nome: "testeChat1";
|
|
1109
|
+
readonly gateway: "Chat";
|
|
1110
|
+
readonly fullName: "Chat:testeChat1";
|
|
1023
1111
|
};
|
|
1024
1112
|
testeDuplicado: {
|
|
1025
1113
|
tipo: "recebe-envia";
|
|
@@ -1029,25 +1117,26 @@ declare const Eventos_RecebeEnvia: {
|
|
|
1029
1117
|
};
|
|
1030
1118
|
} & {
|
|
1031
1119
|
readonly nome: "testeDuplicado";
|
|
1032
|
-
readonly gateway: "
|
|
1033
|
-
readonly fullName: "
|
|
1120
|
+
readonly gateway: "Chat";
|
|
1121
|
+
readonly fullName: "Chat:testeDuplicado";
|
|
1034
1122
|
};
|
|
1035
1123
|
};
|
|
1036
1124
|
};
|
|
1037
|
-
readonly
|
|
1125
|
+
readonly GameEngine: {
|
|
1038
1126
|
eventos: {
|
|
1039
|
-
|
|
1127
|
+
testeGameEngine1: {
|
|
1040
1128
|
tipo: "recebe-envia";
|
|
1041
1129
|
payload: {
|
|
1042
|
-
|
|
1130
|
+
teste1: string;
|
|
1043
1131
|
};
|
|
1044
1132
|
response: {
|
|
1045
|
-
|
|
1133
|
+
ok: boolean;
|
|
1134
|
+
msg: string;
|
|
1046
1135
|
};
|
|
1047
1136
|
} & {
|
|
1048
|
-
readonly nome: "
|
|
1049
|
-
readonly gateway: "
|
|
1050
|
-
readonly fullName: "
|
|
1137
|
+
readonly nome: "testeGameEngine1";
|
|
1138
|
+
readonly gateway: "GameEngine";
|
|
1139
|
+
readonly fullName: "GameEngine:testeGameEngine1";
|
|
1051
1140
|
};
|
|
1052
1141
|
testeDuplicado: {
|
|
1053
1142
|
tipo: "recebe-envia";
|
|
@@ -1057,10 +1146,21 @@ declare const Eventos_RecebeEnvia: {
|
|
|
1057
1146
|
};
|
|
1058
1147
|
} & {
|
|
1059
1148
|
readonly nome: "testeDuplicado";
|
|
1060
|
-
readonly gateway: "
|
|
1061
|
-
readonly fullName: "
|
|
1149
|
+
readonly gateway: "GameEngine";
|
|
1150
|
+
readonly fullName: "GameEngine:testeDuplicado";
|
|
1062
1151
|
};
|
|
1063
1152
|
};
|
|
1064
1153
|
};
|
|
1154
|
+
readonly UsuariosConectados: {
|
|
1155
|
+
eventos: {};
|
|
1156
|
+
};
|
|
1157
|
+
readonly Teste: {
|
|
1158
|
+
eventos: {};
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
type SOCKET_UsuarioExistente = {
|
|
1162
|
+
id: number;
|
|
1163
|
+
username: string;
|
|
1164
|
+
avatar: string;
|
|
1065
1165
|
};
|
|
1066
|
-
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, EventoConfig, EventoDef, GatewayDef, GatewaysCollection, createGateway, EventosWebSocket, 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_Recebe, Eventos_Envia, Eventos_RecebeEnvia };
|
|
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, EventoConfig, EventoDef, GatewayDef, GatewaysCollection, createGateway, EventosWebSocket, 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_Recebe, Eventos_Envia, Eventos_RecebeEnvia, SOCKET_UsuarioExistente };
|
package/dist/classes.js
CHANGED
|
@@ -78,6 +78,18 @@ function createGateway(config) { return config; }
|
|
|
78
78
|
//
|
|
79
79
|
var EventosWebSocket;
|
|
80
80
|
(function (EventosWebSocket) {
|
|
81
|
+
const Chat = createGateway({
|
|
82
|
+
testeChat1: {
|
|
83
|
+
tipo: 'recebe-envia',
|
|
84
|
+
payload: { mensagem: '' },
|
|
85
|
+
response: { entregue: true },
|
|
86
|
+
},
|
|
87
|
+
testeDuplicado: {
|
|
88
|
+
tipo: 'recebe-envia',
|
|
89
|
+
payload: {},
|
|
90
|
+
response: { msg: '' },
|
|
91
|
+
},
|
|
92
|
+
});
|
|
81
93
|
const GameEngine = createGateway({
|
|
82
94
|
testeGameEngine1: {
|
|
83
95
|
tipo: 'recebe-envia',
|
|
@@ -92,21 +104,34 @@ var EventosWebSocket;
|
|
|
92
104
|
tipo: 'recebe-envia',
|
|
93
105
|
payload: {},
|
|
94
106
|
response: { msg: '' },
|
|
95
|
-
}
|
|
107
|
+
},
|
|
96
108
|
});
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
tipo: 'recebe
|
|
100
|
-
payload: {
|
|
101
|
-
response: {
|
|
109
|
+
const UsuariosConectados = createGateway({
|
|
110
|
+
obtemUsuariosConectados: {
|
|
111
|
+
tipo: 'recebe',
|
|
112
|
+
payload: {},
|
|
113
|
+
response: { msg: '' },
|
|
102
114
|
},
|
|
103
|
-
|
|
104
|
-
|
|
115
|
+
});
|
|
116
|
+
const Teste = createGateway({
|
|
117
|
+
mudaTexto: {
|
|
118
|
+
tipo: 'envia',
|
|
119
|
+
payload: { novoTexto: '' },
|
|
120
|
+
// response: {}, não deveria ser possivel <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
121
|
+
},
|
|
122
|
+
enviaPraQuemPediu: {
|
|
123
|
+
tipo: 'recebe',
|
|
105
124
|
payload: {},
|
|
125
|
+
// deveria ser impossivel não passar response <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
106
126
|
response: { msg: '' },
|
|
107
|
-
}
|
|
127
|
+
},
|
|
128
|
+
enviaPraTodoMundo: {
|
|
129
|
+
tipo: 'recebe',
|
|
130
|
+
payload: {},
|
|
131
|
+
response: { msg: '' },
|
|
132
|
+
},
|
|
108
133
|
});
|
|
109
|
-
EventosWebSocket.gateways = { GameEngine,
|
|
134
|
+
EventosWebSocket.gateways = { Chat, GameEngine, UsuariosConectados, Teste };
|
|
110
135
|
})(EventosWebSocket || (EventosWebSocket = {}));
|
|
111
136
|
// @tipoCompartilhadoFront
|
|
112
137
|
var AventuraEstado;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "types-nora-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.151",
|
|
4
4
|
"description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build:types": "tsx --tsconfig tsconfig.
|
|
10
|
-
"build": "tsc",
|
|
9
|
+
"build:types": "tsx --tsconfig tsconfig.json scripts/extrairClasses.ts",
|
|
10
|
+
"build": "npm run build:types && tsc",
|
|
11
11
|
"prepare": "npm run build"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|