types-nora-api 0.0.164 → 0.0.166
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 +27 -14
- package/dist/classes.js +9 -5
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -729,6 +729,10 @@ declare const PAGINAS: {
|
|
|
729
729
|
readonly id: "MESTRE";
|
|
730
730
|
readonly nome: "Página de Mestre";
|
|
731
731
|
};
|
|
732
|
+
readonly PLAY: {
|
|
733
|
+
readonly id: "PLAY";
|
|
734
|
+
readonly nome: "Página de Jogo";
|
|
735
|
+
};
|
|
732
736
|
};
|
|
733
737
|
type PaginaChave = keyof typeof PAGINAS;
|
|
734
738
|
type PaginaObjeto = typeof PAGINAS[PaginaChave];
|
|
@@ -754,17 +758,26 @@ interface MensagemChatPayload {
|
|
|
754
758
|
salaId: string;
|
|
755
759
|
conteudo: string;
|
|
756
760
|
}
|
|
757
|
-
type
|
|
761
|
+
type SOCKET_SalaDeJogo = {
|
|
762
|
+
codigoSala: SOCKET_CodigoSalaDeJogo;
|
|
758
763
|
idSessao: number | null;
|
|
759
|
-
|
|
760
|
-
};
|
|
761
|
-
type SOCKET_DadosSessao = {
|
|
762
|
-
jogadores: Map<number, SOCKET_DadosJogador>;
|
|
764
|
+
jogadores: SOCKET_JogadorSalaDeJogo[];
|
|
763
765
|
};
|
|
764
|
-
type
|
|
765
|
-
|
|
766
|
+
type SOCKET_JogadorSalaDeJogo = {
|
|
767
|
+
idUsuario: number;
|
|
768
|
+
personagens: PersonagemDto[];
|
|
766
769
|
};
|
|
767
770
|
type SOCKET_CodigoSalaDeJogo = `${number}_${string}`;
|
|
771
|
+
type PARAM_BuscaSala = {
|
|
772
|
+
tipo: 'codigoSala';
|
|
773
|
+
codigoSala: SOCKET_CodigoSalaDeJogo;
|
|
774
|
+
} | {
|
|
775
|
+
tipo: 'idSessao';
|
|
776
|
+
idSessao: number;
|
|
777
|
+
} | {
|
|
778
|
+
tipo: 'criadaPorUsuario';
|
|
779
|
+
usuario: UsuarioDto;
|
|
780
|
+
};
|
|
768
781
|
type SOCKET_AcessoUsuario = {
|
|
769
782
|
usuario: UsuarioDto;
|
|
770
783
|
paginaAtual?: PaginaObjeto | null;
|
|
@@ -868,7 +881,7 @@ declare namespace EventosWebSocket {
|
|
|
868
881
|
tipo: "emite";
|
|
869
882
|
payload: {};
|
|
870
883
|
response: {
|
|
871
|
-
dadosSessao:
|
|
884
|
+
dadosSessao: SOCKET_JogadorSalaDeJogo[];
|
|
872
885
|
};
|
|
873
886
|
};
|
|
874
887
|
};
|
|
@@ -1037,10 +1050,10 @@ type DetalheUtilizacaoRascunho = {
|
|
|
1037
1050
|
detalhe: string;
|
|
1038
1051
|
};
|
|
1039
1052
|
declare enum EstiloSessao {
|
|
1040
|
-
SESSAO_DE_AVENTURA =
|
|
1041
|
-
SESSAO_UNICA_CANONICA =
|
|
1042
|
-
SESSAO_UNICA_NAO_CANONICA =
|
|
1043
|
-
ERRO =
|
|
1053
|
+
SESSAO_DE_AVENTURA = "Sess\u00E3o de Aventura",
|
|
1054
|
+
SESSAO_UNICA_CANONICA = "Sess\u00E3o \u00DAnica Can\u00F4nica",
|
|
1055
|
+
SESSAO_UNICA_NAO_CANONICA = "Sess\u00E3o \u00DAnica n\u00E3o Can\u00F4nica",
|
|
1056
|
+
ERRO = "ERRO!"
|
|
1044
1057
|
}
|
|
1045
1058
|
type Gateways = typeof EventosWebSocket.gateways;
|
|
1046
1059
|
type EventoTipoLiteral = EventoTipo;
|
|
@@ -1119,7 +1132,7 @@ declare const Eventos_Emite: {
|
|
|
1119
1132
|
tipo: "emite";
|
|
1120
1133
|
payload: {};
|
|
1121
1134
|
response: {
|
|
1122
|
-
dadosSessao:
|
|
1135
|
+
dadosSessao: SOCKET_JogadorSalaDeJogo[];
|
|
1123
1136
|
};
|
|
1124
1137
|
} & {
|
|
1125
1138
|
readonly nome: "emitirDadosSessao";
|
|
@@ -1185,4 +1198,4 @@ declare const Eventos_EnviaERecebe: {
|
|
|
1185
1198
|
};
|
|
1186
1199
|
};
|
|
1187
1200
|
};
|
|
1188
|
-
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,
|
|
1201
|
+
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, SOCKET_SalaDeJogo, SOCKET_JogadorSalaDeJogo, SOCKET_CodigoSalaDeJogo, PARAM_BuscaSala, SOCKET_AcessoUsuario, SOCKET_UsuarioExistente, TelemetryConnectionInfo, WsEventAudienceUnico, WsEventAudienceMultiplo, WsEventAudience, TelemetryEventLog, TelemetrySnapshot, EventoTipo, EventoEnvia, EventoEmite, EventoEnviaERecebe, EventoSchema, GatewayDef, createGateway, EventosWebSocket, EventosEmiteMap, EventoEmiteAny, 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 };
|
package/dist/classes.js
CHANGED
|
@@ -73,6 +73,10 @@ const PAGINAS = {
|
|
|
73
73
|
id: 'MESTRE',
|
|
74
74
|
nome: 'Página de Mestre',
|
|
75
75
|
},
|
|
76
|
+
PLAY: {
|
|
77
|
+
id: 'PLAY',
|
|
78
|
+
nome: 'Página de Jogo',
|
|
79
|
+
},
|
|
76
80
|
};
|
|
77
81
|
function createGateway(def) { return def; }
|
|
78
82
|
//
|
|
@@ -103,7 +107,7 @@ var EventosWebSocket;
|
|
|
103
107
|
emitirDadosSessao: {
|
|
104
108
|
tipo: 'emite',
|
|
105
109
|
payload: {},
|
|
106
|
-
response: { dadosSessao:
|
|
110
|
+
response: { dadosSessao: [] }
|
|
107
111
|
},
|
|
108
112
|
});
|
|
109
113
|
const UsuariosConectados = createGateway({
|
|
@@ -208,10 +212,10 @@ var FormatoMomento;
|
|
|
208
212
|
// @tipoCompartilhadoFront
|
|
209
213
|
var EstiloSessao;
|
|
210
214
|
(function (EstiloSessao) {
|
|
211
|
-
EstiloSessao[
|
|
212
|
-
EstiloSessao[
|
|
213
|
-
EstiloSessao[
|
|
214
|
-
EstiloSessao[
|
|
215
|
+
EstiloSessao["SESSAO_DE_AVENTURA"] = "Sess\u00E3o de Aventura";
|
|
216
|
+
EstiloSessao["SESSAO_UNICA_CANONICA"] = "Sess\u00E3o \u00DAnica Can\u00F4nica";
|
|
217
|
+
EstiloSessao["SESSAO_UNICA_NAO_CANONICA"] = "Sess\u00E3o \u00DAnica n\u00E3o Can\u00F4nica";
|
|
218
|
+
EstiloSessao["ERRO"] = "ERRO!";
|
|
215
219
|
})(EstiloSessao || (EstiloSessao = {}));
|
|
216
220
|
function criarEventosFiltrados(tipo) {
|
|
217
221
|
const result = {};
|