types-nora-api 0.0.153 → 0.0.155
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 +66 -39
- package/dist/classes.js +7 -8
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -732,6 +732,28 @@ declare const PAGINAS: {
|
|
|
732
732
|
};
|
|
733
733
|
type PaginaChave = keyof typeof PAGINAS;
|
|
734
734
|
type PaginaObjeto = typeof PAGINAS[PaginaChave];
|
|
735
|
+
interface MensagemChatRecebida {
|
|
736
|
+
salaId: string;
|
|
737
|
+
idUsuario: number;
|
|
738
|
+
conteudo: string;
|
|
739
|
+
timestamp: number;
|
|
740
|
+
}
|
|
741
|
+
interface SalaChat {
|
|
742
|
+
id: string;
|
|
743
|
+
leituraPublica: boolean;
|
|
744
|
+
idUsuariosLeitoresEspecificos?: number[];
|
|
745
|
+
escritaPublica: boolean;
|
|
746
|
+
idUsuariosEscritoresEspecificos?: number[];
|
|
747
|
+
}
|
|
748
|
+
interface SalaChatFront {
|
|
749
|
+
id: string;
|
|
750
|
+
podeEscrever: boolean;
|
|
751
|
+
mensagensIniciais: MensagemChatRecebida[];
|
|
752
|
+
}
|
|
753
|
+
interface MensagemChatPayload {
|
|
754
|
+
salaId: string;
|
|
755
|
+
conteudo: string;
|
|
756
|
+
}
|
|
735
757
|
type TelemetryConnectionInfo = {
|
|
736
758
|
socketId: string;
|
|
737
759
|
username?: string;
|
|
@@ -787,20 +809,22 @@ declare function createGateway<T extends {
|
|
|
787
809
|
declare namespace EventosWebSocket {
|
|
788
810
|
const gateways: {
|
|
789
811
|
readonly Chat: {
|
|
790
|
-
|
|
791
|
-
tipo: "envia
|
|
812
|
+
enviaMensagem: {
|
|
813
|
+
tipo: "envia";
|
|
792
814
|
payload: {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
response: {
|
|
796
|
-
entregue: boolean;
|
|
815
|
+
salaId: string;
|
|
816
|
+
conteudoMensagem: string;
|
|
797
817
|
};
|
|
798
818
|
};
|
|
799
|
-
|
|
800
|
-
tipo: "
|
|
801
|
-
payload: {
|
|
819
|
+
emitirMensagem: {
|
|
820
|
+
tipo: "emite";
|
|
821
|
+
payload: {
|
|
822
|
+
usuarioId: number;
|
|
823
|
+
salaId: string;
|
|
824
|
+
conteudoMensagem: string;
|
|
825
|
+
};
|
|
802
826
|
response: {
|
|
803
|
-
|
|
827
|
+
conteudoMensagem: string;
|
|
804
828
|
};
|
|
805
829
|
};
|
|
806
830
|
};
|
|
@@ -1027,7 +1051,19 @@ declare function criarEventosFiltrados<Tipo extends EventoTipoLiteral>(tipo: Tip
|
|
|
1027
1051
|
}; };
|
|
1028
1052
|
declare const Eventos_Envia: {
|
|
1029
1053
|
readonly Chat: {
|
|
1030
|
-
eventos: {
|
|
1054
|
+
eventos: {
|
|
1055
|
+
enviaMensagem: {
|
|
1056
|
+
tipo: "envia";
|
|
1057
|
+
payload: {
|
|
1058
|
+
salaId: string;
|
|
1059
|
+
conteudoMensagem: string;
|
|
1060
|
+
};
|
|
1061
|
+
} & {
|
|
1062
|
+
readonly nome: "enviaMensagem";
|
|
1063
|
+
readonly gateway: "Chat";
|
|
1064
|
+
readonly fullName: "Chat:enviaMensagem";
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1031
1067
|
};
|
|
1032
1068
|
readonly GameEngine: {
|
|
1033
1069
|
eventos: {};
|
|
@@ -1052,7 +1088,23 @@ declare const Eventos_Envia: {
|
|
|
1052
1088
|
};
|
|
1053
1089
|
declare const Eventos_Emite: {
|
|
1054
1090
|
readonly Chat: {
|
|
1055
|
-
eventos: {
|
|
1091
|
+
eventos: {
|
|
1092
|
+
emitirMensagem: {
|
|
1093
|
+
tipo: "emite";
|
|
1094
|
+
payload: {
|
|
1095
|
+
usuarioId: number;
|
|
1096
|
+
salaId: string;
|
|
1097
|
+
conteudoMensagem: string;
|
|
1098
|
+
};
|
|
1099
|
+
response: {
|
|
1100
|
+
conteudoMensagem: string;
|
|
1101
|
+
};
|
|
1102
|
+
} & {
|
|
1103
|
+
readonly nome: "emitirMensagem";
|
|
1104
|
+
readonly gateway: "Chat";
|
|
1105
|
+
readonly fullName: "Chat:emitirMensagem";
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1056
1108
|
};
|
|
1057
1109
|
readonly GameEngine: {
|
|
1058
1110
|
eventos: {};
|
|
@@ -1101,32 +1153,7 @@ declare const Eventos_Emite: {
|
|
|
1101
1153
|
};
|
|
1102
1154
|
declare const Eventos_EnviaERecebe: {
|
|
1103
1155
|
readonly Chat: {
|
|
1104
|
-
eventos: {
|
|
1105
|
-
testeChat1: {
|
|
1106
|
-
tipo: "envia-e-recebe";
|
|
1107
|
-
payload: {
|
|
1108
|
-
mensagem: string;
|
|
1109
|
-
};
|
|
1110
|
-
response: {
|
|
1111
|
-
entregue: boolean;
|
|
1112
|
-
};
|
|
1113
|
-
} & {
|
|
1114
|
-
readonly nome: "testeChat1";
|
|
1115
|
-
readonly gateway: "Chat";
|
|
1116
|
-
readonly fullName: "Chat:testeChat1";
|
|
1117
|
-
};
|
|
1118
|
-
testeDuplicado: {
|
|
1119
|
-
tipo: "envia-e-recebe";
|
|
1120
|
-
payload: {};
|
|
1121
|
-
response: {
|
|
1122
|
-
msg: string;
|
|
1123
|
-
};
|
|
1124
|
-
} & {
|
|
1125
|
-
readonly nome: "testeDuplicado";
|
|
1126
|
-
readonly gateway: "Chat";
|
|
1127
|
-
readonly fullName: "Chat:testeDuplicado";
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1156
|
+
eventos: {};
|
|
1130
1157
|
};
|
|
1131
1158
|
readonly GameEngine: {
|
|
1132
1159
|
eventos: {
|
|
@@ -1169,4 +1196,4 @@ type SOCKET_UsuarioExistente = {
|
|
|
1169
1196
|
username: string;
|
|
1170
1197
|
avatar: string;
|
|
1171
1198
|
};
|
|
1172
|
-
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, WsEventAudienceUnico, WsEventAudienceMultiplo, WsEventAudience, 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 };
|
|
1199
|
+
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, MensagemChatRecebida, SalaChat, SalaChatFront, MensagemChatPayload, TelemetryConnectionInfo, WsEventAudienceUnico, WsEventAudienceMultiplo, WsEventAudience, 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
|
@@ -79,15 +79,14 @@ function createGateway(def) { return def; }
|
|
|
79
79
|
var EventosWebSocket;
|
|
80
80
|
(function (EventosWebSocket) {
|
|
81
81
|
const Chat = createGateway({
|
|
82
|
-
|
|
83
|
-
tipo: 'envia
|
|
84
|
-
payload: {
|
|
85
|
-
response: { entregue: true },
|
|
82
|
+
enviaMensagem: {
|
|
83
|
+
tipo: 'envia',
|
|
84
|
+
payload: { salaId: '', conteudoMensagem: '' },
|
|
86
85
|
},
|
|
87
|
-
|
|
88
|
-
tipo: '
|
|
89
|
-
payload: {},
|
|
90
|
-
response: {
|
|
86
|
+
emitirMensagem: {
|
|
87
|
+
tipo: 'emite',
|
|
88
|
+
payload: { usuarioId: 0, salaId: '', conteudoMensagem: '' },
|
|
89
|
+
response: { conteudoMensagem: '' },
|
|
91
90
|
},
|
|
92
91
|
});
|
|
93
92
|
const GameEngine = createGateway({
|