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