types-nora-api 0.0.148 → 0.0.150
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 +70 -35
- package/dist/classes.js +18 -11
- package/package.json +3 -3
package/dist/classes.d.ts
CHANGED
|
@@ -767,6 +767,24 @@ type GatewaysCollection = Record<string, GatewayDef>;
|
|
|
767
767
|
declare function createGateway<T extends Record<string, EventoConfig<EventoTipo, any, any>>>(config: T): T;
|
|
768
768
|
declare namespace EventosWebSocket {
|
|
769
769
|
const gateways: {
|
|
770
|
+
readonly Chat: {
|
|
771
|
+
testeChat1: {
|
|
772
|
+
tipo: "recebe-envia";
|
|
773
|
+
payload: {
|
|
774
|
+
mensagem: string;
|
|
775
|
+
};
|
|
776
|
+
response: {
|
|
777
|
+
entregue: boolean;
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
testeDuplicado: {
|
|
781
|
+
tipo: "recebe-envia";
|
|
782
|
+
payload: {};
|
|
783
|
+
response: {
|
|
784
|
+
msg: string;
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
};
|
|
770
788
|
readonly GameEngine: {
|
|
771
789
|
testeGameEngine1: {
|
|
772
790
|
tipo: "recebe-envia";
|
|
@@ -792,18 +810,9 @@ declare namespace EventosWebSocket {
|
|
|
792
810
|
};
|
|
793
811
|
};
|
|
794
812
|
};
|
|
795
|
-
readonly
|
|
796
|
-
|
|
797
|
-
tipo: "recebe
|
|
798
|
-
payload: {
|
|
799
|
-
mensagem: string;
|
|
800
|
-
};
|
|
801
|
-
response: {
|
|
802
|
-
entregue: boolean;
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
|
-
testeDuplicado: {
|
|
806
|
-
tipo: "recebe-envia";
|
|
813
|
+
readonly UsuariosConectados: {
|
|
814
|
+
obtemUsuariosConectados: {
|
|
815
|
+
tipo: "recebe";
|
|
807
816
|
payload: {};
|
|
808
817
|
response: {
|
|
809
818
|
msg: string;
|
|
@@ -978,6 +987,9 @@ declare function criarEventosFiltrados<Tipo extends EventoTipoLiteral>(tipo: Tip
|
|
|
978
987
|
}; };
|
|
979
988
|
}; };
|
|
980
989
|
declare const Eventos_Recebe: {
|
|
990
|
+
readonly Chat: {
|
|
991
|
+
eventos: {};
|
|
992
|
+
};
|
|
981
993
|
readonly GameEngine: {
|
|
982
994
|
eventos: {
|
|
983
995
|
testeGameEngine2: {
|
|
@@ -992,34 +1004,48 @@ declare const Eventos_Recebe: {
|
|
|
992
1004
|
};
|
|
993
1005
|
};
|
|
994
1006
|
};
|
|
995
|
-
readonly
|
|
996
|
-
eventos: {
|
|
1007
|
+
readonly UsuariosConectados: {
|
|
1008
|
+
eventos: {
|
|
1009
|
+
obtemUsuariosConectados: {
|
|
1010
|
+
tipo: "recebe";
|
|
1011
|
+
payload: {};
|
|
1012
|
+
response: {
|
|
1013
|
+
msg: string;
|
|
1014
|
+
};
|
|
1015
|
+
} & {
|
|
1016
|
+
readonly nome: "obtemUsuariosConectados";
|
|
1017
|
+
readonly gateway: "UsuariosConectados";
|
|
1018
|
+
readonly fullName: "UsuariosConectados:obtemUsuariosConectados";
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
997
1021
|
};
|
|
998
1022
|
};
|
|
999
1023
|
declare const Eventos_Envia: {
|
|
1024
|
+
readonly Chat: {
|
|
1025
|
+
eventos: {};
|
|
1026
|
+
};
|
|
1000
1027
|
readonly GameEngine: {
|
|
1001
1028
|
eventos: {};
|
|
1002
1029
|
};
|
|
1003
|
-
readonly
|
|
1030
|
+
readonly UsuariosConectados: {
|
|
1004
1031
|
eventos: {};
|
|
1005
1032
|
};
|
|
1006
1033
|
};
|
|
1007
1034
|
declare const Eventos_RecebeEnvia: {
|
|
1008
|
-
readonly
|
|
1035
|
+
readonly Chat: {
|
|
1009
1036
|
eventos: {
|
|
1010
|
-
|
|
1037
|
+
testeChat1: {
|
|
1011
1038
|
tipo: "recebe-envia";
|
|
1012
1039
|
payload: {
|
|
1013
|
-
|
|
1040
|
+
mensagem: string;
|
|
1014
1041
|
};
|
|
1015
1042
|
response: {
|
|
1016
|
-
|
|
1017
|
-
msg: string;
|
|
1043
|
+
entregue: boolean;
|
|
1018
1044
|
};
|
|
1019
1045
|
} & {
|
|
1020
|
-
readonly nome: "
|
|
1021
|
-
readonly gateway: "
|
|
1022
|
-
readonly fullName: "
|
|
1046
|
+
readonly nome: "testeChat1";
|
|
1047
|
+
readonly gateway: "Chat";
|
|
1048
|
+
readonly fullName: "Chat:testeChat1";
|
|
1023
1049
|
};
|
|
1024
1050
|
testeDuplicado: {
|
|
1025
1051
|
tipo: "recebe-envia";
|
|
@@ -1029,25 +1055,26 @@ declare const Eventos_RecebeEnvia: {
|
|
|
1029
1055
|
};
|
|
1030
1056
|
} & {
|
|
1031
1057
|
readonly nome: "testeDuplicado";
|
|
1032
|
-
readonly gateway: "
|
|
1033
|
-
readonly fullName: "
|
|
1058
|
+
readonly gateway: "Chat";
|
|
1059
|
+
readonly fullName: "Chat:testeDuplicado";
|
|
1034
1060
|
};
|
|
1035
1061
|
};
|
|
1036
1062
|
};
|
|
1037
|
-
readonly
|
|
1063
|
+
readonly GameEngine: {
|
|
1038
1064
|
eventos: {
|
|
1039
|
-
|
|
1065
|
+
testeGameEngine1: {
|
|
1040
1066
|
tipo: "recebe-envia";
|
|
1041
1067
|
payload: {
|
|
1042
|
-
|
|
1068
|
+
teste1: string;
|
|
1043
1069
|
};
|
|
1044
1070
|
response: {
|
|
1045
|
-
|
|
1071
|
+
ok: boolean;
|
|
1072
|
+
msg: string;
|
|
1046
1073
|
};
|
|
1047
1074
|
} & {
|
|
1048
|
-
readonly nome: "
|
|
1049
|
-
readonly gateway: "
|
|
1050
|
-
readonly fullName: "
|
|
1075
|
+
readonly nome: "testeGameEngine1";
|
|
1076
|
+
readonly gateway: "GameEngine";
|
|
1077
|
+
readonly fullName: "GameEngine:testeGameEngine1";
|
|
1051
1078
|
};
|
|
1052
1079
|
testeDuplicado: {
|
|
1053
1080
|
tipo: "recebe-envia";
|
|
@@ -1057,10 +1084,18 @@ declare const Eventos_RecebeEnvia: {
|
|
|
1057
1084
|
};
|
|
1058
1085
|
} & {
|
|
1059
1086
|
readonly nome: "testeDuplicado";
|
|
1060
|
-
readonly gateway: "
|
|
1061
|
-
readonly fullName: "
|
|
1087
|
+
readonly gateway: "GameEngine";
|
|
1088
|
+
readonly fullName: "GameEngine:testeDuplicado";
|
|
1062
1089
|
};
|
|
1063
1090
|
};
|
|
1064
1091
|
};
|
|
1092
|
+
readonly UsuariosConectados: {
|
|
1093
|
+
eventos: {};
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
type SOCKET_UsuarioExistente = {
|
|
1097
|
+
id: number;
|
|
1098
|
+
username: string;
|
|
1099
|
+
avatar: string;
|
|
1065
1100
|
};
|
|
1066
|
-
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, TelemetryEventLog, TelemetrySnapshot, EventoTipo, EventoConfig, EventoDef, GatewayDef, GatewaysCollection, createGateway, EventosWebSocket, 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_Recebe, Eventos_Envia, Eventos_RecebeEnvia };
|
|
1101
|
+
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, TelemetryEventLog, TelemetrySnapshot, EventoTipo, EventoConfig, EventoDef, GatewayDef, GatewaysCollection, createGateway, EventosWebSocket, 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_Recebe, Eventos_Envia, Eventos_RecebeEnvia, SOCKET_UsuarioExistente };
|
package/dist/classes.js
CHANGED
|
@@ -78,6 +78,18 @@ function createGateway(config) { return config; }
|
|
|
78
78
|
//
|
|
79
79
|
var EventosWebSocket;
|
|
80
80
|
(function (EventosWebSocket) {
|
|
81
|
+
const Chat = createGateway({
|
|
82
|
+
testeChat1: {
|
|
83
|
+
tipo: 'recebe-envia',
|
|
84
|
+
payload: { mensagem: '' },
|
|
85
|
+
response: { entregue: true },
|
|
86
|
+
},
|
|
87
|
+
testeDuplicado: {
|
|
88
|
+
tipo: 'recebe-envia',
|
|
89
|
+
payload: {},
|
|
90
|
+
response: { msg: '' },
|
|
91
|
+
},
|
|
92
|
+
});
|
|
81
93
|
const GameEngine = createGateway({
|
|
82
94
|
testeGameEngine1: {
|
|
83
95
|
tipo: 'recebe-envia',
|
|
@@ -92,21 +104,16 @@ var EventosWebSocket;
|
|
|
92
104
|
tipo: 'recebe-envia',
|
|
93
105
|
payload: {},
|
|
94
106
|
response: { msg: '' },
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
const Chat = createGateway({
|
|
98
|
-
testeChat1: {
|
|
99
|
-
tipo: 'recebe-envia',
|
|
100
|
-
payload: { mensagem: '' },
|
|
101
|
-
response: { entregue: true },
|
|
102
107
|
},
|
|
103
|
-
|
|
104
|
-
|
|
108
|
+
});
|
|
109
|
+
const UsuariosConectados = createGateway({
|
|
110
|
+
obtemUsuariosConectados: {
|
|
111
|
+
tipo: 'recebe',
|
|
105
112
|
payload: {},
|
|
106
113
|
response: { msg: '' },
|
|
107
|
-
}
|
|
114
|
+
},
|
|
108
115
|
});
|
|
109
|
-
EventosWebSocket.gateways = { GameEngine,
|
|
116
|
+
EventosWebSocket.gateways = { Chat, GameEngine, UsuariosConectados };
|
|
110
117
|
})(EventosWebSocket || (EventosWebSocket = {}));
|
|
111
118
|
// @tipoCompartilhadoFront
|
|
112
119
|
var AventuraEstado;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "types-nora-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.150",
|
|
4
4
|
"description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build:types": "tsx --tsconfig tsconfig.
|
|
10
|
-
"build": "tsc",
|
|
9
|
+
"build:types": "tsx --tsconfig tsconfig.json scripts/extrairClasses.ts",
|
|
10
|
+
"build": "npm run build:types && tsc",
|
|
11
11
|
"prepare": "npm run build"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|