types-nora-api 0.0.159 → 0.0.161

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,16 @@ interface MensagemChatPayload {
754
754
  salaId: string;
755
755
  conteudo: string;
756
756
  }
757
+ type SOCKET_AcessoUsuario = {
758
+ usuario: UsuarioDto;
759
+ paginaAtual?: PaginaObjeto | null;
760
+ dataAtualizacao: Date;
761
+ };
762
+ type SOCKET_UsuarioExistente = {
763
+ id: number;
764
+ username: string;
765
+ avatar: string;
766
+ };
757
767
  type TelemetryConnectionInfo = {
758
768
  socketId: string;
759
769
  username?: string;
@@ -798,7 +808,7 @@ type EventoEmite<P = any, R = any> = {
798
808
  };
799
809
  type EventoEnviaERecebe<P = any, R = any> = {
800
810
  tipo: 'envia-e-recebe';
801
- payload?: P;
811
+ payload: P;
802
812
  response: R;
803
813
  };
804
814
  type EventoSchema = EventoEnvia<any> | EventoEmite<any, any> | EventoEnviaERecebe<any, any>;
@@ -818,8 +828,9 @@ declare namespace EventosWebSocket {
818
828
  };
819
829
  emitirSalas: {
820
830
  tipo: "envia-e-recebe";
831
+ payload: {};
821
832
  response: {
822
- listaSalas: SalaChatFront[];
833
+ salas: SalaChatFront[];
823
834
  };
824
835
  };
825
836
  emitirMensagem: {
@@ -834,53 +845,22 @@ declare namespace EventosWebSocket {
834
845
  };
835
846
  };
836
847
  };
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: {
849
- tipo: "envia-e-recebe";
850
- payload: {};
851
- response: {
852
- msg: string;
853
- };
854
- };
855
- };
848
+ readonly GameEngine: {};
856
849
  readonly UsuariosConectados: {
857
- obtemUsuariosConectados: {
850
+ emitirUsuariosConectadosAgora: {
858
851
  tipo: "emite";
859
852
  payload: {};
860
853
  response: {
861
- msg: string;
854
+ usuariosConectados: SOCKET_AcessoUsuario[];
862
855
  };
863
856
  };
864
857
  };
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";
858
+ readonly UsuariosExistentes: {
859
+ obterTodos: {
860
+ tipo: "envia-e-recebe";
881
861
  payload: {};
882
862
  response: {
883
- msg: string;
863
+ usuariosExistentes: SOCKET_UsuarioExistente[];
884
864
  };
885
865
  };
886
866
  };
@@ -890,11 +870,6 @@ type EventosEmiteMap = typeof Eventos_Emite;
890
870
  type EventoEmiteAny = {
891
871
  [G in keyof EventosEmiteMap]: EventosEmiteMap[G]['eventos'][keyof EventosEmiteMap[G]['eventos']];
892
872
  }[keyof EventosEmiteMap];
893
- type SOCKET_AcessoUsuario = {
894
- usuario: UsuarioDto;
895
- paginaAtual?: PaginaObjeto | null;
896
- dataAtualizacao: Date;
897
- };
898
873
  interface PaletaCores {
899
874
  corPrimaria: string;
900
875
  corSecundaria?: string;
@@ -1077,19 +1052,8 @@ declare const Eventos_Envia: {
1077
1052
  readonly UsuariosConectados: {
1078
1053
  eventos: {};
1079
1054
  };
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
- };
1055
+ readonly UsuariosExistentes: {
1056
+ eventos: {};
1093
1057
  };
1094
1058
  };
1095
1059
  declare const Eventos_Emite: {
@@ -1117,44 +1081,21 @@ declare const Eventos_Emite: {
1117
1081
  };
1118
1082
  readonly UsuariosConectados: {
1119
1083
  eventos: {
1120
- obtemUsuariosConectados: {
1084
+ emitirUsuariosConectadosAgora: {
1121
1085
  tipo: "emite";
1122
1086
  payload: {};
1123
1087
  response: {
1124
- msg: string;
1088
+ usuariosConectados: SOCKET_AcessoUsuario[];
1125
1089
  };
1126
1090
  } & {
1127
- readonly nome: "obtemUsuariosConectados";
1091
+ readonly nome: "emitirUsuariosConectadosAgora";
1128
1092
  readonly gateway: "UsuariosConectados";
1129
- readonly fullName: "UsuariosConectados:obtemUsuariosConectados";
1093
+ readonly fullName: "UsuariosConectados:emitirUsuariosConectadosAgora";
1130
1094
  };
1131
1095
  };
1132
1096
  };
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
- };
1097
+ readonly UsuariosExistentes: {
1098
+ eventos: {};
1158
1099
  };
1159
1100
  };
1160
1101
  declare const Eventos_EnviaERecebe: {
@@ -1162,8 +1103,9 @@ declare const Eventos_EnviaERecebe: {
1162
1103
  eventos: {
1163
1104
  emitirSalas: {
1164
1105
  tipo: "envia-e-recebe";
1106
+ payload: {};
1165
1107
  response: {
1166
- listaSalas: SalaChatFront[];
1108
+ salas: SalaChatFront[];
1167
1109
  };
1168
1110
  } & {
1169
1111
  readonly nome: "emitirSalas";
@@ -1173,44 +1115,25 @@ declare const Eventos_EnviaERecebe: {
1173
1115
  };
1174
1116
  };
1175
1117
  readonly GameEngine: {
1118
+ eventos: {};
1119
+ };
1120
+ readonly UsuariosConectados: {
1121
+ eventos: {};
1122
+ };
1123
+ readonly UsuariosExistentes: {
1176
1124
  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: {
1125
+ obterTodos: {
1192
1126
  tipo: "envia-e-recebe";
1193
1127
  payload: {};
1194
1128
  response: {
1195
- msg: string;
1129
+ usuariosExistentes: SOCKET_UsuarioExistente[];
1196
1130
  };
1197
1131
  } & {
1198
- readonly nome: "testeDuplicado";
1199
- readonly gateway: "GameEngine";
1200
- readonly fullName: "GameEngine:testeDuplicado";
1132
+ readonly nome: "obterTodos";
1133
+ readonly gateway: "UsuariosExistentes";
1134
+ readonly fullName: "UsuariosExistentes:obterTodos";
1201
1135
  };
1202
1136
  };
1203
1137
  };
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
1138
  };
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 };
1139
+ 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_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
@@ -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,22 @@ 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: {
107
- tipo: 'envia-e-recebe',
108
- payload: {},
109
- response: { msg: '' },
110
- },
111
- });
97
+ const GameEngine = createGateway({});
112
98
  const UsuariosConectados = createGateway({
113
- obtemUsuariosConectados: {
99
+ emitirUsuariosConectadosAgora: {
114
100
  tipo: 'emite',
115
101
  payload: {},
116
- response: { msg: '' },
102
+ response: { usuariosConectados: [] },
117
103
  },
118
104
  });
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',
105
+ const UsuariosExistentes = createGateway({
106
+ obterTodos: {
107
+ tipo: 'envia-e-recebe',
131
108
  payload: {},
132
- response: { msg: '' },
109
+ response: { usuariosExistentes: [] },
133
110
  },
134
111
  });
135
- EventosWebSocket.gateways = { Chat, GameEngine, UsuariosConectados, Teste };
112
+ EventosWebSocket.gateways = { Chat, GameEngine, UsuariosConectados, UsuariosExistentes };
136
113
  })(EventosWebSocket || (EventosWebSocket = {}));
137
114
  // @tipoCompartilhadoFront
138
115
  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.161",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",