types-nora-api 0.0.158 → 0.0.160

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 CHANGED
@@ -754,6 +754,11 @@ interface MensagemChatPayload {
754
754
  salaId: string;
755
755
  conteudo: string;
756
756
  }
757
+ type SOCKET_UsuarioExistente = {
758
+ id: number;
759
+ username: string;
760
+ avatar: string;
761
+ };
757
762
  type TelemetryConnectionInfo = {
758
763
  socketId: string;
759
764
  username?: string;
@@ -818,11 +823,9 @@ declare namespace EventosWebSocket {
818
823
  };
819
824
  emitirSalas: {
820
825
  tipo: "envia-e-recebe";
821
- payload: {
822
- usuarioId: number;
823
- };
826
+ payload: {};
824
827
  response: {
825
- listaSalas: SalaChatFront[];
828
+ salas: SalaChatFront[];
826
829
  };
827
830
  };
828
831
  emitirMensagem: {
@@ -837,53 +840,14 @@ declare namespace EventosWebSocket {
837
840
  };
838
841
  };
839
842
  };
840
- readonly GameEngine: {
841
- testeGameEngine1: {
842
- tipo: "envia-e-recebe";
843
- payload: {
844
- teste1: string;
845
- };
846
- response: {
847
- ok: boolean;
848
- msg: string;
849
- };
850
- };
851
- testeDuplicado: {
843
+ readonly GameEngine: {};
844
+ readonly UsuariosConectados: {};
845
+ readonly UsuariosExistentes: {
846
+ obterTodos: {
852
847
  tipo: "envia-e-recebe";
853
848
  payload: {};
854
849
  response: {
855
- msg: string;
856
- };
857
- };
858
- };
859
- readonly UsuariosConectados: {
860
- obtemUsuariosConectados: {
861
- tipo: "emite";
862
- payload: {};
863
- response: {
864
- msg: string;
865
- };
866
- };
867
- };
868
- readonly Teste: {
869
- mudaTexto: {
870
- tipo: "envia";
871
- payload: {
872
- novoTexto: string;
873
- };
874
- };
875
- enviaPraQuemPediu: {
876
- tipo: "emite";
877
- payload: {};
878
- response: {
879
- msg: string;
880
- };
881
- };
882
- enviaPraTodoMundo: {
883
- tipo: "emite";
884
- payload: {};
885
- response: {
886
- msg: string;
850
+ usuariosExistentes: SOCKET_UsuarioExistente[];
887
851
  };
888
852
  };
889
853
  };
@@ -1080,19 +1044,8 @@ declare const Eventos_Envia: {
1080
1044
  readonly UsuariosConectados: {
1081
1045
  eventos: {};
1082
1046
  };
1083
- readonly Teste: {
1084
- eventos: {
1085
- mudaTexto: {
1086
- tipo: "envia";
1087
- payload: {
1088
- novoTexto: string;
1089
- };
1090
- } & {
1091
- readonly nome: "mudaTexto";
1092
- readonly gateway: "Teste";
1093
- readonly fullName: "Teste:mudaTexto";
1094
- };
1095
- };
1047
+ readonly UsuariosExistentes: {
1048
+ eventos: {};
1096
1049
  };
1097
1050
  };
1098
1051
  declare const Eventos_Emite: {
@@ -1119,45 +1072,10 @@ declare const Eventos_Emite: {
1119
1072
  eventos: {};
1120
1073
  };
1121
1074
  readonly UsuariosConectados: {
1122
- eventos: {
1123
- obtemUsuariosConectados: {
1124
- tipo: "emite";
1125
- payload: {};
1126
- response: {
1127
- msg: string;
1128
- };
1129
- } & {
1130
- readonly nome: "obtemUsuariosConectados";
1131
- readonly gateway: "UsuariosConectados";
1132
- readonly fullName: "UsuariosConectados:obtemUsuariosConectados";
1133
- };
1134
- };
1075
+ eventos: {};
1135
1076
  };
1136
- readonly Teste: {
1137
- eventos: {
1138
- enviaPraQuemPediu: {
1139
- tipo: "emite";
1140
- payload: {};
1141
- response: {
1142
- msg: string;
1143
- };
1144
- } & {
1145
- readonly nome: "enviaPraQuemPediu";
1146
- readonly gateway: "Teste";
1147
- readonly fullName: "Teste:enviaPraQuemPediu";
1148
- };
1149
- enviaPraTodoMundo: {
1150
- tipo: "emite";
1151
- payload: {};
1152
- response: {
1153
- msg: string;
1154
- };
1155
- } & {
1156
- readonly nome: "enviaPraTodoMundo";
1157
- readonly gateway: "Teste";
1158
- readonly fullName: "Teste:enviaPraTodoMundo";
1159
- };
1160
- };
1077
+ readonly UsuariosExistentes: {
1078
+ eventos: {};
1161
1079
  };
1162
1080
  };
1163
1081
  declare const Eventos_EnviaERecebe: {
@@ -1165,11 +1083,9 @@ declare const Eventos_EnviaERecebe: {
1165
1083
  eventos: {
1166
1084
  emitirSalas: {
1167
1085
  tipo: "envia-e-recebe";
1168
- payload: {
1169
- usuarioId: number;
1170
- };
1086
+ payload: {};
1171
1087
  response: {
1172
- listaSalas: SalaChatFront[];
1088
+ salas: SalaChatFront[];
1173
1089
  };
1174
1090
  } & {
1175
1091
  readonly nome: "emitirSalas";
@@ -1179,44 +1095,25 @@ declare const Eventos_EnviaERecebe: {
1179
1095
  };
1180
1096
  };
1181
1097
  readonly GameEngine: {
1098
+ eventos: {};
1099
+ };
1100
+ readonly UsuariosConectados: {
1101
+ eventos: {};
1102
+ };
1103
+ readonly UsuariosExistentes: {
1182
1104
  eventos: {
1183
- testeGameEngine1: {
1184
- tipo: "envia-e-recebe";
1185
- payload: {
1186
- teste1: string;
1187
- };
1188
- response: {
1189
- ok: boolean;
1190
- msg: string;
1191
- };
1192
- } & {
1193
- readonly nome: "testeGameEngine1";
1194
- readonly gateway: "GameEngine";
1195
- readonly fullName: "GameEngine:testeGameEngine1";
1196
- };
1197
- testeDuplicado: {
1105
+ obterTodos: {
1198
1106
  tipo: "envia-e-recebe";
1199
1107
  payload: {};
1200
1108
  response: {
1201
- msg: string;
1109
+ usuariosExistentes: SOCKET_UsuarioExistente[];
1202
1110
  };
1203
1111
  } & {
1204
- readonly nome: "testeDuplicado";
1205
- readonly gateway: "GameEngine";
1206
- readonly fullName: "GameEngine:testeDuplicado";
1112
+ readonly nome: "obterTodos";
1113
+ readonly gateway: "UsuariosExistentes";
1114
+ readonly fullName: "UsuariosExistentes:obterTodos";
1207
1115
  };
1208
1116
  };
1209
1117
  };
1210
- readonly UsuariosConectados: {
1211
- eventos: {};
1212
- };
1213
- readonly Teste: {
1214
- eventos: {};
1215
- };
1216
- };
1217
- type SOCKET_UsuarioExistente = {
1218
- id: number;
1219
- username: string;
1220
- avatar: string;
1221
1118
  };
1222
- 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 };
1119
+ 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_UsuarioExistente, 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 };
package/dist/classes.js CHANGED
@@ -85,8 +85,8 @@ var EventosWebSocket;
85
85
  },
86
86
  emitirSalas: {
87
87
  tipo: 'envia-e-recebe',
88
- payload: { usuarioId: 0 },
89
- response: { listaSalas: [] }
88
+ payload: {},
89
+ response: { salas: [] },
90
90
  },
91
91
  emitirMensagem: {
92
92
  tipo: 'emite',
@@ -94,46 +94,16 @@ var EventosWebSocket;
94
94
  response: { conteudoMensagem: {} },
95
95
  },
96
96
  });
97
- const GameEngine = createGateway({
98
- testeGameEngine1: {
99
- tipo: 'envia-e-recebe',
100
- payload: { teste1: '' },
101
- response: { ok: true, msg: '' },
102
- },
103
- // testeGameEngine2: {
104
- // tipo: 'emite',
105
- // payload: { teste2: 0 },
106
- // },
107
- testeDuplicado: {
97
+ const GameEngine = createGateway({});
98
+ const UsuariosConectados = createGateway({});
99
+ const UsuariosExistentes = createGateway({
100
+ obterTodos: {
108
101
  tipo: 'envia-e-recebe',
109
102
  payload: {},
110
- response: { msg: '' },
111
- },
112
- });
113
- const UsuariosConectados = createGateway({
114
- obtemUsuariosConectados: {
115
- tipo: 'emite',
116
- payload: {},
117
- response: { msg: '' },
118
- },
119
- });
120
- const Teste = createGateway({
121
- mudaTexto: {
122
- tipo: 'envia',
123
- payload: { novoTexto: '' },
124
- },
125
- enviaPraQuemPediu: {
126
- tipo: 'emite',
127
- payload: {},
128
- response: { msg: '' },
129
- },
130
- enviaPraTodoMundo: {
131
- tipo: 'emite',
132
- payload: {},
133
- response: { msg: '' },
103
+ response: { usuariosExistentes: [] },
134
104
  },
135
105
  });
136
- EventosWebSocket.gateways = { Chat, GameEngine, UsuariosConectados, Teste };
106
+ EventosWebSocket.gateways = { Chat, GameEngine, UsuariosConectados, UsuariosExistentes };
137
107
  })(EventosWebSocket || (EventosWebSocket = {}));
138
108
  // @tipoCompartilhadoFront
139
109
  var AventuraEstado;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.158",
3
+ "version": "0.0.160",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",