types-nora-api 0.0.196 → 0.0.200
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 +61 -4
- package/dist/classes.js +13 -1
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
interface IPermissoesEstado {
|
|
2
|
+
id: number;
|
|
3
|
+
chave: string;
|
|
4
|
+
descricao: string;
|
|
5
|
+
temPermissao: boolean;
|
|
6
|
+
}
|
|
7
|
+
type PermissoesEstadoDto = IPermissoesEstado;
|
|
8
|
+
interface IPermissoesItem {
|
|
9
|
+
id: number;
|
|
10
|
+
codigo: string;
|
|
11
|
+
descricao: string;
|
|
12
|
+
itemPai: PermissoesItemDto | null;
|
|
13
|
+
itensFilhos: PermissoesItemDto[];
|
|
14
|
+
}
|
|
15
|
+
type PermissoesItemDto = IPermissoesItem;
|
|
16
|
+
interface IPermissoesUsuario {
|
|
17
|
+
fkPermissoesItemId: number;
|
|
18
|
+
fkUsuarioId: number;
|
|
19
|
+
fkPermissoesEstadoId: number;
|
|
20
|
+
permissoesItem: PermissoesItemDto;
|
|
21
|
+
usuario: UsuarioDto;
|
|
22
|
+
permissoesEstado: PermissoesEstadoDto;
|
|
23
|
+
}
|
|
24
|
+
type PermissoesUsuarioDto = IPermissoesUsuario;
|
|
25
|
+
interface IPermissoesUsuariosHistorico {
|
|
26
|
+
id: number;
|
|
27
|
+
usuario: UsuarioDto;
|
|
28
|
+
permissaoItem: PermissoesItemDto;
|
|
29
|
+
permissaoEstadoAnterior: PermissoesEstadoDto | null;
|
|
30
|
+
permissaoEstadoAtual: PermissoesEstadoDto;
|
|
31
|
+
usuarioAlterou: UsuarioDto | null;
|
|
32
|
+
dataCriacao: Date;
|
|
33
|
+
mensagem: string | null;
|
|
34
|
+
}
|
|
35
|
+
type PermissoesUsuariosHistoricoDto = IPermissoesUsuariosHistorico;
|
|
1
36
|
interface IArcoAventura {
|
|
2
37
|
id: number;
|
|
3
38
|
nome: string;
|
|
@@ -872,28 +907,36 @@ type WsErrorResponse = {
|
|
|
872
907
|
code?: string;
|
|
873
908
|
detalhes?: unknown;
|
|
874
909
|
};
|
|
910
|
+
type WsUnauthorizedErrorResponse = WsErrorResponse & {
|
|
911
|
+
code: 'UNAUTHORIZED';
|
|
912
|
+
};
|
|
875
913
|
type WsResult<T> = T | WsErrorResponse;
|
|
876
914
|
declare function isWsErrorResponse(payload: unknown): payload is WsErrorResponse;
|
|
915
|
+
declare function isWsUnauthorizedErrorResponse(payload: unknown): payload is WsUnauthorizedErrorResponse;
|
|
877
916
|
declare function wsErro(mensagem: string, extra?: {
|
|
878
917
|
code?: string;
|
|
879
918
|
detalhes?: unknown;
|
|
880
919
|
}): WsErrorResponse;
|
|
920
|
+
declare function wsUnauthorized(mensagem?: string, detalhes?: unknown): WsUnauthorizedErrorResponse;
|
|
881
921
|
declare function wsMap<T, R>(value: WsResult<T>, mapper: (value: T) => R): WsResult<R>;
|
|
882
922
|
declare function wsChain<T, R>(value: WsResult<T>, next: (value: T) => WsResult<R>): WsResult<R>;
|
|
883
923
|
type EventoTipo = 'envia' | 'emite' | 'envia-e-recebe';
|
|
884
924
|
type EmitDelivery = 'broadcast' | 'perRecipient';
|
|
885
|
-
type
|
|
925
|
+
type EventoAuthDefault = {
|
|
926
|
+
autenticacao_necessaria?: false;
|
|
927
|
+
};
|
|
928
|
+
type EventoEnvia<P = unknown> = EventoAuthDefault & {
|
|
886
929
|
tipo: 'envia';
|
|
887
930
|
payload: P;
|
|
888
931
|
response?: never;
|
|
889
932
|
};
|
|
890
|
-
type EventoEmite<P = unknown, R = unknown> = {
|
|
933
|
+
type EventoEmite<P = unknown, R = unknown> = EventoAuthDefault & {
|
|
891
934
|
tipo: 'emite';
|
|
892
935
|
payload: P;
|
|
893
936
|
response: R;
|
|
894
937
|
delivery?: EmitDelivery;
|
|
895
938
|
};
|
|
896
|
-
type EventoEnviaERecebe<P = unknown, R = unknown> = {
|
|
939
|
+
type EventoEnviaERecebe<P = unknown, R = unknown> = EventoAuthDefault & {
|
|
897
940
|
tipo: 'envia-e-recebe';
|
|
898
941
|
payload: P;
|
|
899
942
|
response: R;
|
|
@@ -1006,6 +1049,10 @@ type EventosEmiteMap = typeof Eventos_Emite;
|
|
|
1006
1049
|
type EventoEmiteAny = {
|
|
1007
1050
|
[G in keyof EventosEmiteMap]: EventosEmiteMap[G]['eventos'][keyof EventosEmiteMap[G]['eventos']];
|
|
1008
1051
|
}[keyof EventosEmiteMap];
|
|
1052
|
+
declare const CAPACIDADES: {
|
|
1053
|
+
readonly ADMINISTRADOR__PERMISSOES__ALTERACAO_CAPACIDADES_GERAIS_USUARIOS: "ADMINISTRADOR.PERMISSOES.ALTERACAO_CAPACIDADES_GERAIS_USUARIOS";
|
|
1054
|
+
readonly ARTISTA__CRIACAO__MATERIAL_ESPECIAL: "ARTISTA.CRIACAO.MATERIAL_ESPECIAL";
|
|
1055
|
+
};
|
|
1009
1056
|
interface PaletaCores {
|
|
1010
1057
|
corPrimaria: string;
|
|
1011
1058
|
corSecundaria?: string;
|
|
@@ -1097,6 +1144,7 @@ type ObjetoAutenticacao = {
|
|
|
1097
1144
|
usuarioLogado: UsuarioDto | null;
|
|
1098
1145
|
variaveisAmbiente: VariavelAmbienteDto[];
|
|
1099
1146
|
pendenciasDePersonagem: number;
|
|
1147
|
+
capacidadesConcedidas: Record<string, true>;
|
|
1100
1148
|
};
|
|
1101
1149
|
type ObjetoCache = {
|
|
1102
1150
|
atributos: AtributoDto[];
|
|
@@ -1158,6 +1206,15 @@ type TituloSessaoInteligente = {
|
|
|
1158
1206
|
titulo: string;
|
|
1159
1207
|
subtitulo?: string;
|
|
1160
1208
|
};
|
|
1209
|
+
type Capacidade = typeof CAPACIDADES[keyof typeof CAPACIDADES];
|
|
1210
|
+
declare const LISTA_CAPACIDADES: Capacidade[];
|
|
1211
|
+
type PermissaoItemMinimo = {
|
|
1212
|
+
id: number;
|
|
1213
|
+
codigo: string;
|
|
1214
|
+
itemPai?: {
|
|
1215
|
+
id: number;
|
|
1216
|
+
} | null;
|
|
1217
|
+
};
|
|
1161
1218
|
type Gateways = typeof EventosWebSocket.gateways;
|
|
1162
1219
|
type EventoTipoLiteral = EventoTipo;
|
|
1163
1220
|
type FiltraEventosPorTipo<G extends GatewayDef, Tipo extends EventoTipoLiteral> = {
|
|
@@ -1329,4 +1386,4 @@ declare const Eventos_EnviaERecebe: {
|
|
|
1329
1386
|
};
|
|
1330
1387
|
};
|
|
1331
1388
|
};
|
|
1332
|
-
export { IArcoAventura, ArcoAventuraDto, IAventura, AventuraDto, IConviteGrupoAventuraPersonagem, ConviteGrupoAventuraPersonagemDto, IGrupoAventura, GrupoAventuraDto, IGrupoAventuraPersonagem, GrupoAventuraPersonagemDto, IRespostaConvite, RespostaConviteDto, IVariavelAmbiente, VariavelAmbienteDto, IConquista, ConquistaDto, ITipoConquista, TipoConquistaDto, IDetalheSessaoAventura, DetalheSessaoAventuraDto, IDetalheSessaoCanonica, DetalheSessaoCanonicaDto, CapituloSessaoCanonica, 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, PersonagemSalaJogoDto, IResumoPersonagemAventura, ResumoPersonagemAventuraDto, ITipoPersonagem, TipoPersonagemDto, IDetalheRascunhoAventura, DetalheRascunhoAventuraDto, IDetalheRascunhoSessaoUnicaCanonica, DetalheRascunhoSessaoUnicaCanonicaDto, IDetalheRascunhoSessaoUnicaNaoCanonica, DetalheRascunhoSessaoUnicaNaoCanonicaDto, IRascunho, RascunhoDto, IEstudo, EstudoDto, IRegistroSessao, RegistroSessaoDto, ISessao, SessaoDto, SessaoDadosGerais, ParticipanteSessao, AuthSession, ICustomizacaoUsuario, CustomizacaoUsuarioDto, IDisponibilidadeUsuario, DisponibilidadeUsuarioDto, ListaDisponibilidadesUsuario, DisponibilidadesDDS, JanelaDisponibilidade, IUsuario, UsuarioDto, SalaDeJogo_Codigo, SalaDeJogoParams, SalaDeJogo_Tipo, SalaDeJogo_Estado, SalaDeJogo_TipoMestre, SalaDeJogo_Mestre, SalaDeJogo_Mestre_Mestrada, SalaDeJogo_Mestre_Inteligente, SalaDeJogo_TipoParticipante, SalaDeJogo_Participante, SalaDeJogo_Participante_Narrador, SalaDeJogo_Participante_Jogador, SalaDeJogo_FUNC_AtualizaParticipanteParams, SalaDeJogoDto, PAGINAS, PaginaChave, PaginaObjeto, MensagemChatRecebida, SalaChat, SalaChatFront, MensagemChatPayload, SOCKET_AcessoUsuario, SOCKET_UsuarioExistente, TelemetryConnectionInfo, WsEventAudienceUnico, WsEventAudienceMultiplo, WsEventAudience, TelemetryEventLog, TelemetrySnapshot, WsErrorResponse, WsResult, isWsErrorResponse, wsErro, wsMap, wsChain, EventoTipo, EmitDelivery, EventoEnvia, EventoEmite, EventoEnviaERecebe, EventoSchema, GatewayDef, createGateway, EventosWebSocket, isRecord, getEmitDelivery, WsEmitTarget, WsEmitParams, 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, PathTokenPadrao, TituloSessaoInteligente, Gateways, EventoTipoLiteral, FiltraEventosPorTipo, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe };
|
|
1389
|
+
export { IPermissoesEstado, PermissoesEstadoDto, IPermissoesItem, PermissoesItemDto, IPermissoesUsuario, PermissoesUsuarioDto, IPermissoesUsuariosHistorico, PermissoesUsuariosHistoricoDto, IArcoAventura, ArcoAventuraDto, IAventura, AventuraDto, IConviteGrupoAventuraPersonagem, ConviteGrupoAventuraPersonagemDto, IGrupoAventura, GrupoAventuraDto, IGrupoAventuraPersonagem, GrupoAventuraPersonagemDto, IRespostaConvite, RespostaConviteDto, IVariavelAmbiente, VariavelAmbienteDto, IConquista, ConquistaDto, ITipoConquista, TipoConquistaDto, IDetalheSessaoAventura, DetalheSessaoAventuraDto, IDetalheSessaoCanonica, DetalheSessaoCanonicaDto, CapituloSessaoCanonica, 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, PersonagemSalaJogoDto, IResumoPersonagemAventura, ResumoPersonagemAventuraDto, ITipoPersonagem, TipoPersonagemDto, IDetalheRascunhoAventura, DetalheRascunhoAventuraDto, IDetalheRascunhoSessaoUnicaCanonica, DetalheRascunhoSessaoUnicaCanonicaDto, IDetalheRascunhoSessaoUnicaNaoCanonica, DetalheRascunhoSessaoUnicaNaoCanonicaDto, IRascunho, RascunhoDto, IEstudo, EstudoDto, IRegistroSessao, RegistroSessaoDto, ISessao, SessaoDto, SessaoDadosGerais, ParticipanteSessao, AuthSession, ICustomizacaoUsuario, CustomizacaoUsuarioDto, IDisponibilidadeUsuario, DisponibilidadeUsuarioDto, ListaDisponibilidadesUsuario, DisponibilidadesDDS, JanelaDisponibilidade, IUsuario, UsuarioDto, SalaDeJogo_Codigo, SalaDeJogoParams, SalaDeJogo_Tipo, SalaDeJogo_Estado, SalaDeJogo_TipoMestre, SalaDeJogo_Mestre, SalaDeJogo_Mestre_Mestrada, SalaDeJogo_Mestre_Inteligente, SalaDeJogo_TipoParticipante, SalaDeJogo_Participante, SalaDeJogo_Participante_Narrador, SalaDeJogo_Participante_Jogador, SalaDeJogo_FUNC_AtualizaParticipanteParams, SalaDeJogoDto, PAGINAS, PaginaChave, PaginaObjeto, MensagemChatRecebida, SalaChat, SalaChatFront, MensagemChatPayload, SOCKET_AcessoUsuario, SOCKET_UsuarioExistente, TelemetryConnectionInfo, WsEventAudienceUnico, WsEventAudienceMultiplo, WsEventAudience, TelemetryEventLog, TelemetrySnapshot, WsErrorResponse, WsUnauthorizedErrorResponse, WsResult, isWsErrorResponse, isWsUnauthorizedErrorResponse, wsErro, wsUnauthorized, wsMap, wsChain, EventoTipo, EmitDelivery, EventoAuthDefault, EventoEnvia, EventoEmite, EventoEnviaERecebe, EventoSchema, GatewayDef, createGateway, EventosWebSocket, isRecord, getEmitDelivery, WsEmitTarget, WsEmitParams, EventosEmiteMap, EventoEmiteAny, CAPACIDADES, 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, PathTokenPadrao, TituloSessaoInteligente, Capacidade, LISTA_CAPACIDADES, PermissaoItemMinimo, Gateways, EventoTipoLiteral, FiltraEventosPorTipo, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe };
|
package/dist/classes.js
CHANGED
|
@@ -108,7 +108,9 @@ const PAGINAS = {
|
|
|
108
108
|
},
|
|
109
109
|
};
|
|
110
110
|
function isWsErrorResponse(payload) { return !!payload && typeof payload === "object" && payload._wsErro === true; }
|
|
111
|
+
function isWsUnauthorizedErrorResponse(payload) { return isWsErrorResponse(payload) && payload.code === "UNAUTHORIZED"; }
|
|
111
112
|
function wsErro(mensagem, extra) { return { _wsErro: true, mensagem, ...(extra ?? {}) }; }
|
|
113
|
+
function wsUnauthorized(mensagem = "Não autorizado", detalhes) { return { _wsErro: true, mensagem, code: "UNAUTHORIZED", detalhes }; }
|
|
112
114
|
// helper que elimina o if manual no gateway
|
|
113
115
|
function wsMap(value, mapper) { return isWsErrorResponse(value) ? value : mapper(value); }
|
|
114
116
|
// opcional para encadear fluxos no service/repository se quiser evoluir
|
|
@@ -126,6 +128,7 @@ var EventosWebSocket;
|
|
|
126
128
|
tipo: 'envia-e-recebe',
|
|
127
129
|
payload: {},
|
|
128
130
|
response: { salas: [] },
|
|
131
|
+
// autenticacao_necessaria: false,
|
|
129
132
|
},
|
|
130
133
|
emitirMensagem: {
|
|
131
134
|
tipo: 'emite',
|
|
@@ -178,6 +181,7 @@ var EventosWebSocket;
|
|
|
178
181
|
tipo: 'envia-e-recebe',
|
|
179
182
|
payload: {},
|
|
180
183
|
response: { usuariosExistentes: [] },
|
|
184
|
+
// autenticacao_necessaria: false,
|
|
181
185
|
},
|
|
182
186
|
});
|
|
183
187
|
EventosWebSocket.gateways = { Chat, Jogo, UsuariosConectados, UsuariosExistentes };
|
|
@@ -200,6 +204,12 @@ function getEmitDelivery(gatewayName, eventName) {
|
|
|
200
204
|
return delivery;
|
|
201
205
|
return undefined;
|
|
202
206
|
}
|
|
207
|
+
/* eslint-disable */
|
|
208
|
+
// Arquivo gerado automaticamente. Não edite manualmente.
|
|
209
|
+
const CAPACIDADES = {
|
|
210
|
+
ADMINISTRADOR__PERMISSOES__ALTERACAO_CAPACIDADES_GERAIS_USUARIOS: 'ADMINISTRADOR.PERMISSOES.ALTERACAO_CAPACIDADES_GERAIS_USUARIOS',
|
|
211
|
+
ARTISTA__CRIACAO__MATERIAL_ESPECIAL: 'ARTISTA.CRIACAO.MATERIAL_ESPECIAL',
|
|
212
|
+
};
|
|
203
213
|
// @tipoCompartilhadoFront
|
|
204
214
|
var AventuraEstado;
|
|
205
215
|
(function (AventuraEstado) {
|
|
@@ -293,6 +303,8 @@ var EstiloSessao;
|
|
|
293
303
|
})(EstiloSessao || (EstiloSessao = {}));
|
|
294
304
|
// @tipoCompartilhadoFront
|
|
295
305
|
const PathTokenPadrao = 'hi/avatar/4fbe625e-8ecc-403f-967e-6041428f4b50.png';
|
|
306
|
+
// @tipoCompartilhadoFront
|
|
307
|
+
const LISTA_CAPACIDADES = Object.values(CAPACIDADES);
|
|
296
308
|
function criarEventosFiltrados(tipo) {
|
|
297
309
|
const result = {};
|
|
298
310
|
for (const [gatewayName, gatewayDef] of Object.entries(EventosWebSocket.gateways)) {
|
|
@@ -309,4 +321,4 @@ function criarEventosFiltrados(tipo) {
|
|
|
309
321
|
const Eventos_Envia = criarEventosFiltrados('envia');
|
|
310
322
|
const Eventos_Emite = criarEventosFiltrados('emite');
|
|
311
323
|
const Eventos_EnviaERecebe = criarEventosFiltrados('envia-e-recebe');
|
|
312
|
-
export { AuthSession, SalaDeJogo_Tipo, SalaDeJogo_Estado, SalaDeJogo_TipoMestre, SalaDeJogo_TipoParticipante, PAGINAS, isWsErrorResponse, wsErro, wsMap, wsChain, createGateway, EventosWebSocket, isRecord, getEmitDelivery, AventuraEstado, EstadoPendenciaPersonagem, EstadoPendenciaAdministrativaPersonagem, EstadoOcupacaoPersonagem, EstadoSessao, DiaDaSemana, obtemDiaDaSemanaPorExtensoPorDDS, CargoExibicaoUsuario, FormatoMomento, EstiloSessao, PathTokenPadrao, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe };
|
|
324
|
+
export { AuthSession, SalaDeJogo_Tipo, SalaDeJogo_Estado, SalaDeJogo_TipoMestre, SalaDeJogo_TipoParticipante, PAGINAS, isWsErrorResponse, isWsUnauthorizedErrorResponse, wsErro, wsUnauthorized, wsMap, wsChain, createGateway, EventosWebSocket, isRecord, getEmitDelivery, CAPACIDADES, AventuraEstado, EstadoPendenciaPersonagem, EstadoPendenciaAdministrativaPersonagem, EstadoOcupacaoPersonagem, EstadoSessao, DiaDaSemana, obtemDiaDaSemanaPorExtensoPorDDS, CargoExibicaoUsuario, FormatoMomento, EstiloSessao, PathTokenPadrao, LISTA_CAPACIDADES, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe };
|