types-nora-api 0.0.153 → 0.0.154
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 +57 -39
- package/dist/classes.js +7 -8
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -732,6 +732,19 @@ 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
|
+
}
|
|
735
748
|
type TelemetryConnectionInfo = {
|
|
736
749
|
socketId: string;
|
|
737
750
|
username?: string;
|
|
@@ -787,20 +800,22 @@ declare function createGateway<T extends {
|
|
|
787
800
|
declare namespace EventosWebSocket {
|
|
788
801
|
const gateways: {
|
|
789
802
|
readonly Chat: {
|
|
790
|
-
|
|
791
|
-
tipo: "envia
|
|
803
|
+
enviaMensagem: {
|
|
804
|
+
tipo: "envia";
|
|
792
805
|
payload: {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
response: {
|
|
796
|
-
entregue: boolean;
|
|
806
|
+
salaId: string;
|
|
807
|
+
conteudoMensagem: string;
|
|
797
808
|
};
|
|
798
809
|
};
|
|
799
|
-
|
|
800
|
-
tipo: "
|
|
801
|
-
payload: {
|
|
810
|
+
emitirMensagem: {
|
|
811
|
+
tipo: "emite";
|
|
812
|
+
payload: {
|
|
813
|
+
usuarioId: number;
|
|
814
|
+
salaId: string;
|
|
815
|
+
conteudoMensagem: string;
|
|
816
|
+
};
|
|
802
817
|
response: {
|
|
803
|
-
|
|
818
|
+
conteudoMensagem: string;
|
|
804
819
|
};
|
|
805
820
|
};
|
|
806
821
|
};
|
|
@@ -1027,7 +1042,19 @@ declare function criarEventosFiltrados<Tipo extends EventoTipoLiteral>(tipo: Tip
|
|
|
1027
1042
|
}; };
|
|
1028
1043
|
declare const Eventos_Envia: {
|
|
1029
1044
|
readonly Chat: {
|
|
1030
|
-
eventos: {
|
|
1045
|
+
eventos: {
|
|
1046
|
+
enviaMensagem: {
|
|
1047
|
+
tipo: "envia";
|
|
1048
|
+
payload: {
|
|
1049
|
+
salaId: string;
|
|
1050
|
+
conteudoMensagem: string;
|
|
1051
|
+
};
|
|
1052
|
+
} & {
|
|
1053
|
+
readonly nome: "enviaMensagem";
|
|
1054
|
+
readonly gateway: "Chat";
|
|
1055
|
+
readonly fullName: "Chat:enviaMensagem";
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1031
1058
|
};
|
|
1032
1059
|
readonly GameEngine: {
|
|
1033
1060
|
eventos: {};
|
|
@@ -1052,7 +1079,23 @@ declare const Eventos_Envia: {
|
|
|
1052
1079
|
};
|
|
1053
1080
|
declare const Eventos_Emite: {
|
|
1054
1081
|
readonly Chat: {
|
|
1055
|
-
eventos: {
|
|
1082
|
+
eventos: {
|
|
1083
|
+
emitirMensagem: {
|
|
1084
|
+
tipo: "emite";
|
|
1085
|
+
payload: {
|
|
1086
|
+
usuarioId: number;
|
|
1087
|
+
salaId: string;
|
|
1088
|
+
conteudoMensagem: string;
|
|
1089
|
+
};
|
|
1090
|
+
response: {
|
|
1091
|
+
conteudoMensagem: string;
|
|
1092
|
+
};
|
|
1093
|
+
} & {
|
|
1094
|
+
readonly nome: "emitirMensagem";
|
|
1095
|
+
readonly gateway: "Chat";
|
|
1096
|
+
readonly fullName: "Chat:emitirMensagem";
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1056
1099
|
};
|
|
1057
1100
|
readonly GameEngine: {
|
|
1058
1101
|
eventos: {};
|
|
@@ -1101,32 +1144,7 @@ declare const Eventos_Emite: {
|
|
|
1101
1144
|
};
|
|
1102
1145
|
declare const Eventos_EnviaERecebe: {
|
|
1103
1146
|
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
|
-
};
|
|
1147
|
+
eventos: {};
|
|
1130
1148
|
};
|
|
1131
1149
|
readonly GameEngine: {
|
|
1132
1150
|
eventos: {
|
|
@@ -1169,4 +1187,4 @@ type SOCKET_UsuarioExistente = {
|
|
|
1169
1187
|
username: string;
|
|
1170
1188
|
avatar: string;
|
|
1171
1189
|
};
|
|
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 };
|
|
1190
|
+
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, 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({
|