types-nora-api 0.0.201 → 0.0.209

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
@@ -1,3 +1,9 @@
1
+ declare const CAPACIDADES: {
2
+ readonly ADMINISTRADOR__PERMISSOES__ALTERACAO_CAPACIDADES_GERAIS_USUARIOS: "ADMINISTRADOR.PERMISSOES.ALTERACAO_CAPACIDADES_GERAIS_USUARIOS";
3
+ readonly ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES: "ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES";
4
+ readonly ADMINISTRADOR__SUDO__BURLAR_MODO_MANUTENÇÃO: "ADMINISTRADOR.SUDO.BURLAR_MODO_MANUTENÇÃO";
5
+ readonly ARTISTA__CRIACAO__MATERIAL_ESPECIAL: "ARTISTA.CRIACAO.MATERIAL_ESPECIAL";
6
+ };
1
7
  interface IPermissoesEstado {
2
8
  id: number;
3
9
  chave: string;
@@ -770,74 +776,247 @@ type SalaDeJogoDto = {
770
776
  mestre: SalaDeJogo_Mestre;
771
777
  participantes: readonly SalaDeJogo_Participante[];
772
778
  };
779
+ type PaginaDef = {
780
+ readonly href: string;
781
+ readonly acesso?: AcessoPagina;
782
+ };
783
+ type ExtractParamsFromHref<S extends string, Acc extends Record<string, any> = {}> = S extends `${infer _A}[[...${infer P}]]${infer Rest}` ? ExtractParamsFromHref<Rest, Acc & {
784
+ [K in P]?: string[];
785
+ }> : S extends `${infer _A}[...${infer P}]${infer Rest}` ? ExtractParamsFromHref<Rest, Acc & {
786
+ [K in P]: string[];
787
+ }> : S extends `${infer _A}[${infer P}]${infer Rest}` ? ExtractParamsFromHref<Rest, Acc & {
788
+ [K in P]: string;
789
+ }> : Acc;
790
+ type PaginaParams<P extends PaginaDef> = ExtractParamsFromHref<P['href']>;
791
+ type PaginaRef<P extends PaginaDef> = keyof PaginaParams<P> extends never ? {
792
+ pagina: P;
793
+ } : {
794
+ pagina: P;
795
+ params: PaginaParams<P>;
796
+ };
773
797
  declare const PAGINAS: {
774
- readonly VAZIA: {
775
- readonly id: "";
776
- readonly nome: "";
777
- };
778
- readonly ADMIN: {
779
- readonly id: "ADMIN";
780
- readonly nome: "Administrando";
798
+ readonly home: {
799
+ readonly href: "/";
781
800
  };
782
- readonly INICIO: {
783
- readonly id: "INICIO";
784
- readonly nome: "Página Inicial";
801
+ readonly acessar: {
802
+ readonly href: "/acessar";
785
803
  };
786
- readonly MINHA_PAGINA: {
787
- readonly id: "MINHA_PAGINA";
788
- readonly nome: "Minha Página";
804
+ readonly aventura: {
805
+ readonly href: "/aventura/[id]";
789
806
  };
790
- readonly AVENTURAS: {
791
- readonly id: "AVENTURAS";
792
- readonly nome: "Aventuras";
807
+ readonly aventuras: {
808
+ readonly href: "/aventuras";
793
809
  };
794
- readonly AVENTURA: {
795
- readonly id: "AVENTURA";
796
- readonly nome: "Página de Aventura";
810
+ readonly cadastrar: {
811
+ readonly href: "/cadastrar";
797
812
  };
798
- readonly DEFINICOES: {
799
- readonly id: "DEFINICOES";
800
- readonly nome: "Definições";
813
+ readonly definicoes: {
814
+ readonly href: "/definicoes/[[...slug]]";
801
815
  };
802
- readonly DICAS: {
803
- readonly id: "DICAS";
804
- readonly nome: "Dicas";
816
+ readonly dicas: {
817
+ readonly href: "/dicas/[[...slug]]";
805
818
  };
806
- readonly EVOLUINDO: {
807
- readonly id: "EVOLUINDO";
808
- readonly nome: "Página de Evolução";
819
+ readonly jogo: {
820
+ readonly href: "/jogo";
821
+ readonly acesso: {
822
+ readonly autenticado: true;
823
+ };
824
+ readonly jogador: {
825
+ readonly href: "/jogo/jogador";
826
+ readonly acesso: {
827
+ readonly autenticado: true;
828
+ };
829
+ };
830
+ readonly mestre: {
831
+ readonly sessoesMestre: {
832
+ readonly href: "/jogo/mestre/sessoes-mestre";
833
+ readonly acesso: {
834
+ readonly autenticado: true;
835
+ };
836
+ };
837
+ };
838
+ readonly admin: {
839
+ readonly gerenciarSalas: {
840
+ readonly href: "/jogo/admin/gerenciar-salas";
841
+ readonly acesso: {
842
+ readonly listaDeCapacidadesNecessarias: readonly ["ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES"];
843
+ };
844
+ };
845
+ };
846
+ readonly emJogo: {
847
+ readonly href: "/jogo/em-jogo";
848
+ readonly acesso: {
849
+ readonly autenticado: true;
850
+ };
851
+ };
809
852
  };
810
- readonly LINHA_DO_TEMPO: {
811
- readonly id: "LINHA_DO_TEMPO";
812
- readonly nome: "Linha do Tempo";
853
+ readonly linhaDoTempo: {
854
+ readonly href: "/linha-do-tempo";
813
855
  };
814
- readonly MEUS_PERSONAGENS: {
815
- readonly id: "MEUS_PERSONAGENS";
816
- readonly nome: "Página de Personagens";
856
+ readonly minhaPagina: {
857
+ readonly href: "/minha-pagina";
817
858
  };
818
- readonly DISPONIBILIDADES: {
819
- readonly id: "DISPONIBILIDADES";
820
- readonly nome: "Página de Disponibilidades";
859
+ readonly minhasPaginas: {
860
+ readonly admin: {
861
+ readonly href: "/minhas-paginas/admin";
862
+ readonly acesso: {
863
+ readonly listaDeCapacidadesNecessarias: readonly ["ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES"];
864
+ };
865
+ readonly aventura: {
866
+ readonly href: "/minhas-paginas/admin/aventura/[id]";
867
+ readonly acesso: {
868
+ readonly listaDeCapacidadesNecessarias: readonly ["ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES"];
869
+ };
870
+ };
871
+ readonly aventuras: {
872
+ readonly href: "/minhas-paginas/admin/aventuras";
873
+ readonly acesso: {
874
+ readonly listaDeCapacidadesNecessarias: readonly ["ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES"];
875
+ };
876
+ };
877
+ readonly dashboardWs: {
878
+ readonly href: "/minhas-paginas/admin/dashboard-ws";
879
+ readonly acesso: {
880
+ readonly listaDeCapacidadesNecessarias: readonly ["ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES"];
881
+ };
882
+ };
883
+ readonly sessao: {
884
+ readonly href: "/minhas-paginas/admin/sessao/[id]";
885
+ readonly acesso: {
886
+ readonly listaDeCapacidadesNecessarias: readonly ["ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES"];
887
+ };
888
+ };
889
+ readonly uploads: {
890
+ readonly href: "/minhas-paginas/admin/uploads";
891
+ readonly acesso: {
892
+ readonly listaDeCapacidadesNecessarias: readonly ["ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES"];
893
+ };
894
+ };
895
+ readonly variaveisAmbiente: {
896
+ readonly href: "/minhas-paginas/admin/variaveis-ambiente";
897
+ readonly acesso: {
898
+ readonly listaDeCapacidadesNecessarias: readonly ["ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES"];
899
+ };
900
+ };
901
+ };
902
+ readonly jogador: {
903
+ readonly href: "/minhas-paginas/jogador";
904
+ readonly acesso: {
905
+ readonly autenticado: true;
906
+ };
907
+ readonly meusPersonagens: {
908
+ readonly href: "/minhas-paginas/jogador/meus-personagens";
909
+ readonly acesso: {
910
+ readonly autenticado: true;
911
+ };
912
+ };
913
+ };
914
+ readonly mestre: {
915
+ readonly href: "/minhas-paginas/mestre";
916
+ readonly acesso: {
917
+ readonly autenticado: true;
918
+ };
919
+ readonly aventura: {
920
+ readonly href: "/minhas-paginas/mestre/aventura/[id]";
921
+ readonly acesso: {
922
+ readonly autenticado: true;
923
+ };
924
+ };
925
+ readonly aventuras: {
926
+ readonly href: "/minhas-paginas/mestre/aventuras";
927
+ readonly acesso: {
928
+ readonly autenticado: true;
929
+ };
930
+ };
931
+ readonly personagens: {
932
+ readonly href: "/minhas-paginas/mestre/personagens";
933
+ readonly acesso: {
934
+ readonly autenticado: true;
935
+ };
936
+ };
937
+ readonly rascunhos: {
938
+ readonly aventuras: {
939
+ readonly href: "/minhas-paginas/mestre/rascunhos/aventuras";
940
+ readonly acesso: {
941
+ readonly autenticado: true;
942
+ };
943
+ };
944
+ readonly sessoesUnicas: {
945
+ readonly href: "/minhas-paginas/mestre/rascunhos/sessoes-unicas";
946
+ readonly acesso: {
947
+ readonly autenticado: true;
948
+ };
949
+ };
950
+ };
951
+ readonly sessao: {
952
+ readonly href: "/minhas-paginas/mestre/sessao/[id]";
953
+ readonly acesso: {
954
+ readonly autenticado: true;
955
+ };
956
+ };
957
+ };
958
+ readonly minhasDisponibilidades: {
959
+ readonly href: "/minhas-paginas/minhas-disponibilidades";
960
+ readonly acesso: {
961
+ readonly autenticado: true;
962
+ };
963
+ };
821
964
  };
822
- readonly SESSAO_AOVIVO: {
823
- readonly id: "SESSAO_AOVIVO";
824
- readonly nome: "Ao vivo em Sessão";
965
+ readonly personagens: {
966
+ readonly href: "/personagens";
967
+ readonly acesso: {
968
+ readonly autenticado: true;
969
+ };
825
970
  };
826
- readonly SESSAO: {
827
- readonly id: "SESSAO";
828
- readonly nome: "Assistindo Sessão";
971
+ readonly sessoes: {
972
+ readonly href: "/sessoes";
973
+ readonly acesso: {
974
+ readonly autenticado: true;
975
+ };
829
976
  };
830
- readonly MESTRE: {
831
- readonly id: "MESTRE";
832
- readonly nome: "Página de Mestre";
977
+ readonly sessaoAovivo: {
978
+ readonly href: "/sessao-aovivo";
979
+ readonly acesso: {
980
+ readonly autenticado: true;
981
+ };
833
982
  };
834
- readonly PLAY: {
835
- readonly id: "PLAY";
836
- readonly nome: "Página de Jogo";
983
+ readonly sessao: {
984
+ readonly href: "/sessao/[id]";
985
+ readonly acesso: {
986
+ readonly autenticado: true;
987
+ };
837
988
  };
838
989
  };
839
- type PaginaChave = keyof typeof PAGINAS;
840
- type PaginaObjeto = typeof PAGINAS[PaginaChave];
990
+ type PaginasTree<T> = T extends Record<string, any> ? 'href' extends keyof T ? T extends {
991
+ href: infer H;
992
+ } ? H extends string ? {
993
+ href: H;
994
+ acesso?: AcessoPagina;
995
+ } & {
996
+ [K in Exclude<keyof T, 'href' | 'acesso'>]: PaginasTree<T[K]>;
997
+ } : never : never : {
998
+ acesso?: AcessoPagina;
999
+ } & {
1000
+ [K in Exclude<keyof T, 'acesso'>]: PaginasTree<T[K]>;
1001
+ } : never;
1002
+ type _Check = {
1003
+ [K in keyof typeof PAGINAS]: PaginasTree<(typeof PAGINAS)[K]>;
1004
+ };
1005
+ declare const _check: _Check;
1006
+ type PaginaHref = PaginaDef['href'];
1007
+ type PaginaObjeto<P extends PaginaDef = PaginaAtual> = keyof PaginaParams<P> extends never ? {
1008
+ pagina: P;
1009
+ } : {
1010
+ pagina: P;
1011
+ params: PaginaParams<P>;
1012
+ };
1013
+ type PaginaLeafUnion<T> = T extends {
1014
+ href: string;
1015
+ } ? T | PaginaLeafUnionChildren<T> : PaginaLeafUnionChildren<T>;
1016
+ type PaginaLeafUnionChildren<T> = T extends Record<string, any> ? {
1017
+ [K in Exclude<keyof T, 'href' | 'acesso'>]: PaginaLeafUnion<T[K]>;
1018
+ }[Exclude<keyof T, 'href' | 'acesso'>] : never;
1019
+ type PaginaAtual = PaginaLeafUnion<typeof PAGINAS>;
841
1020
  interface MensagemChatRecebida {
842
1021
  salaId: string;
843
1022
  idUsuario: number;
@@ -862,7 +1041,7 @@ interface MensagemChatPayload {
862
1041
  }
863
1042
  type SOCKET_AcessoUsuario = {
864
1043
  usuario: UsuarioDto;
865
- paginaAtual?: PaginaObjeto | null;
1044
+ paginaAtual?: PaginaHref | null;
866
1045
  dataAtualizacao: Date;
867
1046
  };
868
1047
  type SOCKET_UsuarioExistente = {
@@ -1049,12 +1228,6 @@ type EventosEmiteMap = typeof Eventos_Emite;
1049
1228
  type EventoEmiteAny = {
1050
1229
  [G in keyof EventosEmiteMap]: EventosEmiteMap[G]['eventos'][keyof EventosEmiteMap[G]['eventos']];
1051
1230
  }[keyof EventosEmiteMap];
1052
- declare const CAPACIDADES: {
1053
- readonly ADMINISTRADOR__PERMISSOES__ALTERACAO_CAPACIDADES_GERAIS_USUARIOS: "ADMINISTRADOR.PERMISSOES.ALTERACAO_CAPACIDADES_GERAIS_USUARIOS";
1054
- readonly ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES: "ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES";
1055
- readonly ADMINISTRADOR__SUDO__BURLAR_MODO_MANUTENÇÃO: "ADMINISTRADOR.SUDO.BURLAR_MODO_MANUTENÇÃO";
1056
- readonly ARTISTA__CRIACAO__MATERIAL_ESPECIAL: "ARTISTA.CRIACAO.MATERIAL_ESPECIAL";
1057
- };
1058
1231
  interface PaletaCores {
1059
1232
  corPrimaria: string;
1060
1233
  corSecundaria?: string;
@@ -1217,6 +1390,14 @@ type PermissaoItemMinimo = {
1217
1390
  id: number;
1218
1391
  } | null;
1219
1392
  };
1393
+ type ListaCapacidadesNecessarias = readonly [Capacidade, ...Capacidade[]];
1394
+ type AcessoPagina = {
1395
+ autenticado: true;
1396
+ listaDeCapacidadesNecessarias?: never;
1397
+ } | {
1398
+ autenticado?: never;
1399
+ listaDeCapacidadesNecessarias: ListaCapacidadesNecessarias;
1400
+ };
1220
1401
  type Gateways = typeof EventosWebSocket.gateways;
1221
1402
  type EventoTipoLiteral = EventoTipo;
1222
1403
  type FiltraEventosPorTipo<G extends GatewayDef, Tipo extends EventoTipoLiteral> = {
@@ -1388,4 +1569,4 @@ declare const Eventos_EnviaERecebe: {
1388
1569
  };
1389
1570
  };
1390
1571
  };
1391
- 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 };
1572
+ export { CAPACIDADES, 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, PaginaDef, ExtractParamsFromHref, PaginaParams, PaginaRef, PAGINAS, PaginasTree, _Check, _check, PaginaHref, PaginaObjeto, PaginaLeafUnion, PaginaLeafUnionChildren, PaginaAtual, 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, 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, ListaCapacidadesNecessarias, AcessoPagina, Gateways, EventoTipoLiteral, FiltraEventosPorTipo, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe };
package/dist/classes.js CHANGED
@@ -1,5 +1,13 @@
1
1
  // AUTO-GENERATED FILE - DO NOT EDIT
2
2
  // Gerado automaticamente por extrairClasses.ts
3
+ /* eslint-disable */
4
+ // Arquivo gerado automaticamente. Não edite manualmente.
5
+ const CAPACIDADES = {
6
+ ADMINISTRADOR__PERMISSOES__ALTERACAO_CAPACIDADES_GERAIS_USUARIOS: 'ADMINISTRADOR.PERMISSOES.ALTERACAO_CAPACIDADES_GERAIS_USUARIOS',
7
+ ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES: 'ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES',
8
+ ADMINISTRADOR__SUDO__BURLAR_MODO_MANUTENÇÃO: 'ADMINISTRADOR.SUDO.BURLAR_MODO_MANUTENÇÃO',
9
+ ARTISTA__CRIACAO__MATERIAL_ESPECIAL: 'ARTISTA.CRIACAO.MATERIAL_ESPECIAL',
10
+ };
3
11
  class AuthSession {
4
12
  expiredAt;
5
13
  id;
@@ -42,71 +50,59 @@ var SalaDeJogo_TipoParticipante;
42
50
  SalaDeJogo_TipoParticipante["SALA__JOGADOR"] = "Jogador";
43
51
  })(SalaDeJogo_TipoParticipante || (SalaDeJogo_TipoParticipante = {}));
44
52
  const PAGINAS = {
45
- VAZIA: {
46
- id: '',
47
- nome: '',
48
- },
49
- ADMIN: {
50
- id: 'ADMIN',
51
- nome: 'Administrando'
52
- },
53
- INICIO: {
54
- id: 'INICIO',
55
- nome: 'Página Inicial',
56
- },
57
- MINHA_PAGINA: {
58
- id: 'MINHA_PAGINA',
59
- nome: 'Minha Página',
60
- },
61
- AVENTURAS: {
62
- id: 'AVENTURAS',
63
- nome: 'Aventuras',
64
- },
65
- AVENTURA: {
66
- id: 'AVENTURA',
67
- nome: 'Página de Aventura',
68
- },
69
- DEFINICOES: {
70
- id: 'DEFINICOES',
71
- nome: 'Definições',
72
- },
73
- DICAS: {
74
- id: 'DICAS',
75
- nome: 'Dicas',
76
- },
77
- EVOLUINDO: {
78
- id: 'EVOLUINDO',
79
- nome: 'Página de Evolução',
80
- },
81
- LINHA_DO_TEMPO: {
82
- id: 'LINHA_DO_TEMPO',
83
- nome: 'Linha do Tempo',
53
+ home: { href: '/' },
54
+ acessar: { href: '/acessar' },
55
+ aventura: { href: '/aventura/[id]' },
56
+ aventuras: { href: '/aventuras' },
57
+ cadastrar: { href: '/cadastrar' },
58
+ definicoes: { href: '/definicoes/[[...slug]]' },
59
+ dicas: { href: '/dicas/[[...slug]]' },
60
+ jogo: {
61
+ href: '/jogo',
62
+ acesso: { autenticado: true },
63
+ jogador: { href: '/jogo/jogador', acesso: { autenticado: true } },
64
+ mestre: { sessoesMestre: { href: '/jogo/mestre/sessoes-mestre', acesso: { autenticado: true } } },
65
+ admin: { gerenciarSalas: { href: '/jogo/admin/gerenciar-salas', acesso: { listaDeCapacidadesNecessarias: [CAPACIDADES.ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES] } } },
66
+ emJogo: { href: '/jogo/em-jogo', acesso: { autenticado: true } },
84
67
  },
85
- MEUS_PERSONAGENS: {
86
- id: 'MEUS_PERSONAGENS',
87
- nome: 'Página de Personagens',
88
- },
89
- DISPONIBILIDADES: {
90
- id: 'DISPONIBILIDADES',
91
- nome: 'Página de Disponibilidades',
92
- },
93
- SESSAO_AOVIVO: {
94
- id: 'SESSAO_AOVIVO',
95
- nome: 'Ao vivo em Sessão',
96
- },
97
- SESSAO: {
98
- id: 'SESSAO',
99
- nome: 'Assistindo Sessão',
100
- },
101
- MESTRE: {
102
- id: 'MESTRE',
103
- nome: 'Página de Mestre',
104
- },
105
- PLAY: {
106
- id: 'PLAY',
107
- nome: 'Página de Jogo',
68
+ linhaDoTempo: { href: '/linha-do-tempo' },
69
+ minhaPagina: { href: '/minha-pagina' },
70
+ minhasPaginas: {
71
+ admin: {
72
+ href: '/minhas-paginas/admin',
73
+ acesso: { listaDeCapacidadesNecessarias: [CAPACIDADES.ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES] },
74
+ aventura: { href: '/minhas-paginas/admin/aventura/[id]', acesso: { listaDeCapacidadesNecessarias: [CAPACIDADES.ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES] } },
75
+ aventuras: { href: '/minhas-paginas/admin/aventuras', acesso: { listaDeCapacidadesNecessarias: [CAPACIDADES.ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES] } },
76
+ dashboardWs: { href: '/minhas-paginas/admin/dashboard-ws', acesso: { listaDeCapacidadesNecessarias: [CAPACIDADES.ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES] } },
77
+ sessao: { href: '/minhas-paginas/admin/sessao/[id]', acesso: { listaDeCapacidadesNecessarias: [CAPACIDADES.ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES] } },
78
+ uploads: { href: '/minhas-paginas/admin/uploads', acesso: { listaDeCapacidadesNecessarias: [CAPACIDADES.ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES] } },
79
+ variaveisAmbiente: { href: '/minhas-paginas/admin/variaveis-ambiente', acesso: { listaDeCapacidadesNecessarias: [CAPACIDADES.ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES] } },
80
+ },
81
+ jogador: {
82
+ href: '/minhas-paginas/jogador',
83
+ acesso: { autenticado: true },
84
+ meusPersonagens: { href: '/minhas-paginas/jogador/meus-personagens', acesso: { autenticado: true } },
85
+ },
86
+ mestre: {
87
+ href: '/minhas-paginas/mestre',
88
+ acesso: { autenticado: true },
89
+ aventura: { href: '/minhas-paginas/mestre/aventura/[id]', acesso: { autenticado: true } },
90
+ aventuras: { href: '/minhas-paginas/mestre/aventuras', acesso: { autenticado: true } },
91
+ personagens: { href: '/minhas-paginas/mestre/personagens', acesso: { autenticado: true } },
92
+ rascunhos: {
93
+ aventuras: { href: '/minhas-paginas/mestre/rascunhos/aventuras', acesso: { autenticado: true } },
94
+ sessoesUnicas: { href: '/minhas-paginas/mestre/rascunhos/sessoes-unicas', acesso: { autenticado: true } },
95
+ },
96
+ sessao: { href: '/minhas-paginas/mestre/sessao/[id]', acesso: { autenticado: true } },
97
+ },
98
+ minhasDisponibilidades: { href: '/minhas-paginas/minhas-disponibilidades', acesso: { autenticado: true } },
108
99
  },
100
+ personagens: { href: '/personagens', acesso: { autenticado: true } },
101
+ sessoes: { href: '/sessoes', acesso: { autenticado: true } },
102
+ sessaoAovivo: { href: '/sessao-aovivo', acesso: { autenticado: true } },
103
+ sessao: { href: '/sessao/[id]', acesso: { autenticado: true } },
109
104
  };
105
+ const _check = PAGINAS;
110
106
  function isWsErrorResponse(payload) { return !!payload && typeof payload === "object" && payload._wsErro === true; }
111
107
  function isWsUnauthorizedErrorResponse(payload) { return isWsErrorResponse(payload) && payload.code === "UNAUTHORIZED"; }
112
108
  function wsErro(mensagem, extra) { return { _wsErro: true, mensagem, ...(extra ?? {}) }; }
@@ -204,14 +200,6 @@ function getEmitDelivery(gatewayName, eventName) {
204
200
  return delivery;
205
201
  return undefined;
206
202
  }
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
- ADMINISTRADOR__SUDO__BURLAR_CAPACIDADES: 'ADMINISTRADOR.SUDO.BURLAR_CAPACIDADES',
212
- ADMINISTRADOR__SUDO__BURLAR_MODO_MANUTENÇÃO: 'ADMINISTRADOR.SUDO.BURLAR_MODO_MANUTENÇÃO',
213
- ARTISTA__CRIACAO__MATERIAL_ESPECIAL: 'ARTISTA.CRIACAO.MATERIAL_ESPECIAL',
214
- };
215
203
  // @tipoCompartilhadoFront
216
204
  var AventuraEstado;
217
205
  (function (AventuraEstado) {
@@ -323,4 +311,4 @@ function criarEventosFiltrados(tipo) {
323
311
  const Eventos_Envia = criarEventosFiltrados('envia');
324
312
  const Eventos_Emite = criarEventosFiltrados('emite');
325
313
  const Eventos_EnviaERecebe = criarEventosFiltrados('envia-e-recebe');
326
- 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 };
314
+ export { CAPACIDADES, AuthSession, SalaDeJogo_Tipo, SalaDeJogo_Estado, SalaDeJogo_TipoMestre, SalaDeJogo_TipoParticipante, PAGINAS, _check, isWsErrorResponse, isWsUnauthorizedErrorResponse, wsErro, wsUnauthorized, wsMap, wsChain, createGateway, EventosWebSocket, isRecord, getEmitDelivery, AventuraEstado, EstadoPendenciaPersonagem, EstadoPendenciaAdministrativaPersonagem, EstadoOcupacaoPersonagem, EstadoSessao, DiaDaSemana, obtemDiaDaSemanaPorExtensoPorDDS, CargoExibicaoUsuario, FormatoMomento, EstiloSessao, PathTokenPadrao, LISTA_CAPACIDADES, criarEventosFiltrados, Eventos_Envia, Eventos_Emite, Eventos_EnviaERecebe };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.201",
3
+ "version": "0.0.209",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",