types-nora-api 0.0.145 → 0.0.147

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.
@@ -0,0 +1,1066 @@
1
+ interface IArcoAventura {
2
+ id: number;
3
+ nome: string;
4
+ aplicaNomeArcoAventura: boolean;
5
+ }
6
+ type ArcoAventuraDto = IArcoAventura;
7
+ interface IAventura {
8
+ id: number;
9
+ geracao: GeracaoDto;
10
+ imagemCapa: ImagemDto | null;
11
+ detalheRascunhoAventura: DetalheRascunhoAventuraDto;
12
+ arco: ArcoAventuraDto | null;
13
+ gruposAventura: GrupoAventuraDto[] | null;
14
+ titulo: string;
15
+ dataCriacao: Date;
16
+ nomeCompletoAventura: string;
17
+ temApenasUmGrupo: boolean;
18
+ estadoAtual: AventuraEstado;
19
+ dataInicioAventura: Date | null;
20
+ dataFimAventura: Date | null;
21
+ }
22
+ type AventuraDto = IAventura;
23
+ interface IConviteGrupoAventuraPersonagem {
24
+ id: number;
25
+ grupoAventura: GrupoAventuraDto;
26
+ usuario: UsuarioDto;
27
+ respostaConvite: RespostaConviteDto;
28
+ dataCriacao: Date;
29
+ }
30
+ type ConviteGrupoAventuraPersonagemDto = IConviteGrupoAventuraPersonagem;
31
+ interface IGrupoAventura {
32
+ id: number;
33
+ nome: string;
34
+ aventura: AventuraDto;
35
+ usuarioMestre: UsuarioDto;
36
+ linkTrailerYoutube: LinkDto;
37
+ linkPlaylistYoutube: LinkDto;
38
+ linkSerieSpotify: LinkDto;
39
+ detalhesSessoesAventuras: DetalheSessaoAventuraDto[];
40
+ personagensDaAventura: GrupoAventuraPersonagemDto[];
41
+ sessaoFinal: SessaoDto | null;
42
+ dataPrevisaoInicio: Date | null;
43
+ ddsPadrao: number | null;
44
+ recorrencia: string | null;
45
+ horaInicio: string | null;
46
+ nomeUnicoGrupoAventura: string;
47
+ dataQueIniciou: Date | null;
48
+ dataQueEncerrou: Date | null;
49
+ estadoAtual: AventuraEstado;
50
+ obtemTextoInformacionalOcorrencia: string | null;
51
+ sessaoMaisRecente: SessaoDto | null;
52
+ numeroSessoesFinalizadasGrupoAventura: number;
53
+ duracaoGrupoAventuraEmSegundos: number | null;
54
+ tempoProximaSessao: string | null;
55
+ }
56
+ type GrupoAventuraDto = IGrupoAventura;
57
+ interface IGrupoAventuraPersonagem {
58
+ fkGruposAventurasId: number;
59
+ fkPersonagensId: number;
60
+ grupoAventura: GrupoAventuraDto;
61
+ personagem: PersonagemDto;
62
+ }
63
+ type GrupoAventuraPersonagemDto = IGrupoAventuraPersonagem;
64
+ interface IRespostaConvite {
65
+ fkConviteGrupoAventuraPersonagemId: number;
66
+ fkPersonagensId: number;
67
+ convite: ConviteGrupoAventuraPersonagemDto;
68
+ personagemVinculado: PersonagemDto;
69
+ dataResposta: Date;
70
+ criouNovoPersonagem: boolean;
71
+ }
72
+ type RespostaConviteDto = IRespostaConvite;
73
+ interface IVariavelAmbiente {
74
+ id: number;
75
+ chave: string;
76
+ tipo: TipoVariavelAmbiente;
77
+ valor: boolean | string | number;
78
+ descricao: string | null;
79
+ dataCriacao: Date;
80
+ dataAtualizacao: Date;
81
+ }
82
+ type VariavelAmbienteDto = IVariavelAmbiente;
83
+ interface IConquista {
84
+ id: number;
85
+ tipoConquista: TipoConquistaDto;
86
+ nome: string;
87
+ descricao: string;
88
+ }
89
+ type ConquistaDto = IConquista;
90
+ interface ITipoConquista {
91
+ id: number;
92
+ nome: string;
93
+ }
94
+ type TipoConquistaDto = ITipoConquista;
95
+ interface IDetalheSessaoAventura {
96
+ fkSessaoId: number;
97
+ sessao: SessaoDto;
98
+ grupoAventura: GrupoAventuraDto;
99
+ episodio: number;
100
+ episodioPorExtenso: string;
101
+ }
102
+ type DetalheSessaoAventuraDto = IDetalheSessaoAventura;
103
+ interface IDetalheSessaoCanonica {
104
+ fkSessaoId: number;
105
+ sessao: SessaoDto;
106
+ linkSessaoYoutube: LinkDto;
107
+ linkSessaoSpotify: LinkDto;
108
+ capitulos: CapituloSessaoCanonica[];
109
+ detalhes: string;
110
+ }
111
+ type DetalheSessaoCanonicaDto = IDetalheSessaoCanonica;
112
+ type CapituloSessaoCanonica = {
113
+ descricao: string;
114
+ momentoInicioEmSegundos: number;
115
+ };
116
+ interface IDetalheSessaoNaoCanonica {
117
+ fkSessaoId: number;
118
+ sessao: SessaoDto;
119
+ }
120
+ type DetalheSessaoNaoCanonicaDto = IDetalheSessaoNaoCanonica;
121
+ interface IDetalheSessaoUnica {
122
+ fkSessaoId: number;
123
+ sessao: SessaoDto;
124
+ detalheRascunhoSessaoUnica: DetalheRascunhoSessaoUnicaCanonicaDto;
125
+ usuarioMestre: UsuarioDto;
126
+ participantesSessaoUnica: ParticipanteSessaoUnicaDto[];
127
+ }
128
+ type DetalheSessaoUnicaDto = IDetalheSessaoUnica;
129
+ interface IParticipanteSessaoUnica {
130
+ fkSessaoId: number;
131
+ detalheSessaoUnica: DetalheSessaoUnicaDto;
132
+ usuario: UsuarioDto;
133
+ personagem: PersonagemDto | null;
134
+ valido: boolean;
135
+ }
136
+ type ParticipanteSessaoUnicaDto = IParticipanteSessaoUnica;
137
+ interface ICoeficienteGanhoEstatisticaClasse {
138
+ id: number;
139
+ classe: ClasseDto;
140
+ estatisticaDanificavel: EstatisticaDanificavelDto;
141
+ ganhosRelativos: GanhoRelativoCoeficienteAtributoDto[];
142
+ coeficiente: number;
143
+ }
144
+ type CoeficienteGanhoEstatisticaClasseDto = ICoeficienteGanhoEstatisticaClasse;
145
+ interface IGanhoNivelClasse {
146
+ fkNivelId: number;
147
+ fkTipoGanhoNivelId: number;
148
+ fkClassesId: number;
149
+ nivel: NivelDto;
150
+ tipoGanhoNivel: TipoGanhoNivelDto;
151
+ classe: ClasseDto;
152
+ dados: DadosDoTipoGanho;
153
+ }
154
+ type GanhoNivelClasseDto = IGanhoNivelClasse;
155
+ type DadosDoTipoGanho = DadosGanho_Atributos | DadosGanho_Pericias | DadosGanho_Estatisticas | DadosGanho_Classes | DadosGanho_ValorMaximoAtributo | DadosGanho_PontosHabilidadesEspeciais | DadosGanho_PontosHabilidadesParanormais | DadosGanho_PontosHabilidadeElemental;
156
+ type DadosGanho_Atributos = {
157
+ ganhos: number;
158
+ trocas: number;
159
+ };
160
+ type DadosGanho_Pericias = {
161
+ comum?: {
162
+ idPatente: number;
163
+ ganhos: number;
164
+ trocas: number;
165
+ }[];
166
+ livre?: {
167
+ ganhos: number;
168
+ trocas: number;
169
+ };
170
+ };
171
+ type DadosGanho_Estatisticas = {
172
+ idEstatistica: number;
173
+ valorAumento: number;
174
+ }[];
175
+ type DadosGanho_Classes = {
176
+ selecao: boolean;
177
+ };
178
+ type DadosGanho_ValorMaximoAtributo = {
179
+ aumento: boolean;
180
+ };
181
+ type DadosGanho_PontosHabilidadesEspeciais = {
182
+ valorAumento: number;
183
+ };
184
+ type DadosGanho_PontosHabilidadesParanormais = {
185
+ valorAumento: number;
186
+ };
187
+ type DadosGanho_PontosHabilidadeElemental = {
188
+ valorAumento: number;
189
+ };
190
+ interface IGanhoRelativoCoeficienteAtributo {
191
+ fkCoeficientesGanhoEstatisticaClasseId: number;
192
+ fkAtributosId: number;
193
+ coeficiente: CoeficienteGanhoEstatisticaClasseDto;
194
+ atributo: AtributoDto;
195
+ valorPorcentagem: number;
196
+ }
197
+ type GanhoRelativoCoeficienteAtributoDto = IGanhoRelativoCoeficienteAtributo;
198
+ interface ITipoGanhoNivel {
199
+ id: number;
200
+ nome: string;
201
+ ordem: number;
202
+ }
203
+ type TipoGanhoNivelDto = ITipoGanhoNivel;
204
+ interface IGeracao {
205
+ id: number;
206
+ aventuras: AventuraDto[] | null;
207
+ nome: string | null;
208
+ anoInicio: number | null;
209
+ }
210
+ type GeracaoDto = IGeracao;
211
+ interface IImagem {
212
+ id: number;
213
+ uuid: string;
214
+ validatedBy: UsuarioDto | null;
215
+ usuario: UsuarioDto | null;
216
+ uploader: UsuarioDto | null;
217
+ tipoImagem: TipoImagemDto;
218
+ filename: string;
219
+ status: string;
220
+ resolution: string;
221
+ quality: string;
222
+ folder: string;
223
+ originalName: string;
224
+ mimeType: string;
225
+ size: number;
226
+ isPublic: boolean;
227
+ rejectionReason: string | null;
228
+ createdAt: Date;
229
+ updatedAt: Date;
230
+ fullPath: string;
231
+ }
232
+ type ImagemDto = IImagem;
233
+ interface ITipoImagem {
234
+ id: number;
235
+ nome: string;
236
+ }
237
+ type TipoImagemDto = ITipoImagem;
238
+ interface IAlcance {
239
+ id: number;
240
+ nome: string;
241
+ numeroMetros: number;
242
+ descricao: string | null;
243
+ }
244
+ type AlcanceDto = IAlcance;
245
+ interface IAtributo {
246
+ id: number;
247
+ linhaEfeito: LinhaEfeitoDto;
248
+ pericias: PericiaDto[];
249
+ nome: string;
250
+ descricao: string;
251
+ nomeAbreviado: string;
252
+ }
253
+ type AtributoDto = IAtributo;
254
+ interface ICategoriaRitual {
255
+ id: number;
256
+ circuloRitual: CirculoRitualDto;
257
+ nivelRitual: NivelRitualDto;
258
+ valorPsSacrificado: number;
259
+ nome: string;
260
+ }
261
+ type CategoriaRitualDto = ICategoriaRitual;
262
+ interface ICirculoRitual {
263
+ id: number;
264
+ nome: string;
265
+ nomeCompleto: string;
266
+ }
267
+ type CirculoRitualDto = ICirculoRitual;
268
+ interface IClasse {
269
+ id: number;
270
+ nome: string;
271
+ descricao: string;
272
+ }
273
+ type ClasseDto = IClasse;
274
+ interface IDuracao {
275
+ id: number;
276
+ nome: string;
277
+ }
278
+ type DuracaoDto = IDuracao;
279
+ interface IElemento {
280
+ id: number;
281
+ nome: string;
282
+ cores: PaletaCores;
283
+ }
284
+ type ElementoDto = IElemento;
285
+ interface IEstatisticaDanificavel {
286
+ id: number;
287
+ nome: string;
288
+ cor: string;
289
+ descricao: string;
290
+ nomeAbreviado: string;
291
+ }
292
+ type EstatisticaDanificavelDto = IEstatisticaDanificavel;
293
+ interface IExecucao {
294
+ id: number;
295
+ linhaEfeito: LinhaEfeitoDto;
296
+ nome: string;
297
+ }
298
+ type ExecucaoDto = IExecucao;
299
+ interface IFormatoAlcance {
300
+ id: number;
301
+ nome: string;
302
+ }
303
+ type FormatoAlcanceDto = IFormatoAlcance;
304
+ interface ILinhaEfeito {
305
+ id: number;
306
+ nome: string;
307
+ }
308
+ type LinhaEfeitoDto = ILinhaEfeito;
309
+ interface INivel {
310
+ id: number;
311
+ valorNivel: number;
312
+ nomeVisualizacao: string;
313
+ }
314
+ type NivelDto = INivel;
315
+ interface INivelComponente {
316
+ id: number;
317
+ nome: string;
318
+ }
319
+ type NivelComponenteDto = INivelComponente;
320
+ interface INivelProficiencia {
321
+ id: number;
322
+ nivel: number;
323
+ }
324
+ type NivelProficienciaDto = INivelProficiencia;
325
+ interface INivelRitual {
326
+ id: number;
327
+ nome: string;
328
+ }
329
+ type NivelRitualDto = INivelRitual;
330
+ interface IPatentePericia {
331
+ id: number;
332
+ nome: string;
333
+ varianciaQualidadeAcao: number;
334
+ bonusPatente: number;
335
+ descricao: string;
336
+ cor: string;
337
+ nomeAbreviado: string;
338
+ }
339
+ type PatentePericiaDto = IPatentePericia;
340
+ interface IPericia {
341
+ id: number;
342
+ atributo: AtributoDto;
343
+ linhaEfeito: LinhaEfeitoDto;
344
+ nome: string;
345
+ descricao: string;
346
+ nomeAbreviado: string;
347
+ }
348
+ type PericiaDto = IPericia;
349
+ interface IProficiencia {
350
+ id: number;
351
+ tipoProficiencia: TipoProficienciaDto;
352
+ nivelProficiencia: NivelProficienciaDto;
353
+ nome: string;
354
+ }
355
+ type ProficienciaDto = IProficiencia;
356
+ interface ITipoAlvo {
357
+ id: number;
358
+ nome: string;
359
+ }
360
+ type TipoAlvoDto = ITipoAlvo;
361
+ interface ITipoCategoria {
362
+ id: number;
363
+ valor: number;
364
+ nome: string;
365
+ }
366
+ type TipoCategoriaDto = ITipoCategoria;
367
+ interface ITipoDano {
368
+ id: number;
369
+ linhaEfeito: LinhaEfeitoDto;
370
+ tipoDanoPertencente: TipoDanoDto | null;
371
+ nome: string;
372
+ }
373
+ type TipoDanoDto = ITipoDano;
374
+ interface ITipoEfeito {
375
+ id: number;
376
+ nome: string;
377
+ nomeVisualizacao: string;
378
+ }
379
+ type TipoEfeitoDto = ITipoEfeito;
380
+ interface ITipoItem {
381
+ id: number;
382
+ nome: string;
383
+ }
384
+ type TipoItemDto = ITipoItem;
385
+ interface ITipoProficiencia {
386
+ id: number;
387
+ nome: string;
388
+ }
389
+ type TipoProficienciaDto = ITipoProficiencia;
390
+ interface ILink {
391
+ id: number;
392
+ tipoLink: TipoLinkDto;
393
+ sufixo: string;
394
+ descricao: string;
395
+ dataCriacao: Date;
396
+ urlCompleta: string;
397
+ }
398
+ type LinkDto = ILink;
399
+ interface ITipoLink {
400
+ id: number;
401
+ nome: string;
402
+ prefixo: string;
403
+ }
404
+ type TipoLinkDto = ITipoLink;
405
+ interface IDificuldadeSessao {
406
+ id: number;
407
+ descricao: string;
408
+ }
409
+ type DificuldadeSessaoDto = IDificuldadeSessao;
410
+ interface IEstiloSessaoMestrada {
411
+ id: number;
412
+ descricao: string;
413
+ ehSessaoUnica: boolean;
414
+ }
415
+ type EstiloSessaoMestradaDto = IEstiloSessaoMestrada;
416
+ interface ITipoSessao {
417
+ id: number;
418
+ descricao: string;
419
+ }
420
+ type TipoSessaoDto = ITipoSessao;
421
+ interface IPerfilAdmin {
422
+ id: number;
423
+ nome: string;
424
+ descricao: string;
425
+ }
426
+ type PerfilAdminDto = IPerfilAdmin;
427
+ interface IPerfilJogador {
428
+ id: number;
429
+ nome: string;
430
+ descricao: string;
431
+ }
432
+ type PerfilJogadorDto = IPerfilJogador;
433
+ interface IPerfilMestre {
434
+ id: number;
435
+ nome: string;
436
+ descricao: string;
437
+ }
438
+ type PerfilMestreDto = IPerfilMestre;
439
+ interface IFichaPersonagem {
440
+ fkPersonagensId: number;
441
+ fkNiveisId: number;
442
+ personagem: PersonagemDto;
443
+ nivel: NivelDto;
444
+ dataCriacao: Date;
445
+ ficha: ObjetoFicha;
446
+ detalhesEvolucao: DetalheEvolucao[];
447
+ readonly fichaDeJogo: FichaDeJogo;
448
+ }
449
+ type FichaPersonagemDto = IFichaPersonagem;
450
+ type ObjetoFicha = {
451
+ atributos: {
452
+ id: number;
453
+ valor: number;
454
+ }[];
455
+ pericias: {
456
+ id: number;
457
+ idPatente: number;
458
+ }[];
459
+ estatisticasDanificaveis: {
460
+ id: number;
461
+ valorMaximo: number;
462
+ }[];
463
+ classe: {
464
+ id: number;
465
+ };
466
+ detalhe: DetalheFicha;
467
+ detalhesUsoEvolucaoPericiasLivres: RegistroPericiaLivre[];
468
+ };
469
+ type DetalheEvolucao = {
470
+ etapa: string;
471
+ detalhes: string[];
472
+ };
473
+ type DetalhesExtras = {};
474
+ type FichaDeJogo = {
475
+ atributos: AtributoFicha[];
476
+ pericias: PericiaFicha[];
477
+ estatisticasDanificaveis: EstatisticaDanificavelFicha[];
478
+ detalhe: DetalheFicha;
479
+ classe: ClasseDto;
480
+ detalhesUsoEvolucaoPericiasLivres: RegistroPericiaLivre[];
481
+ };
482
+ type AtributoFicha = {
483
+ atributo: AtributoDto;
484
+ valor: number;
485
+ valorTotal: number;
486
+ detalhesValor: string[];
487
+ };
488
+ type PericiaFicha = {
489
+ pericia: PericiaDto;
490
+ patentePericia: PatentePericiaDto;
491
+ valorEfeito: number;
492
+ valorTotal: number;
493
+ detalhesValor: string[];
494
+ };
495
+ type EstatisticaDanificavelFicha = {
496
+ estatisticaDanificavel: EstatisticaDanificavelDto;
497
+ valorMaximo: number;
498
+ };
499
+ type DetalheFicha = {
500
+ valorMaxAtributo: number;
501
+ pontosDeHabilidadeEspecial: number;
502
+ pontosDeHabilidadeParanormal: number;
503
+ pontosDeHabilidadeElemental: number;
504
+ };
505
+ type RegistroPericiaLivre = {
506
+ idPericia: number;
507
+ idPatente: number;
508
+ };
509
+ interface IInformacaoPersonagem {
510
+ fkPersonagensId: number;
511
+ personagem: PersonagemDto;
512
+ nome: string;
513
+ anoNascimento: number;
514
+ }
515
+ type InformacaoPersonagemDto = IInformacaoPersonagem;
516
+ interface IPersonagem {
517
+ id: number;
518
+ tipoPersonagem: TipoPersonagemDto;
519
+ nivelVigente: NivelDto;
520
+ usuario: UsuarioDto;
521
+ imagemAvatar: ImagemDto | null;
522
+ informacao: InformacaoPersonagemDto;
523
+ gruposAventuraPersonagem: GrupoAventuraPersonagemDto[] | null;
524
+ resumosPersonagemAventura: ResumoPersonagemAventuraDto[] | null;
525
+ fichas: FichaPersonagemDto[] | null;
526
+ caminhoAvatar: string;
527
+ fichaVigente: FichaPersonagemDto | null;
528
+ temCriacaoPendente: boolean;
529
+ temEvolucaoPendente: boolean;
530
+ pendencias: ObjetoPendeciaPersonagem;
531
+ ultimoGrupoParticipado: GrupoAventuraPersonagemDto | null;
532
+ indexEstadoOcupacaoAtual: EstadoOcupacaoPersonagem;
533
+ mensagemEstadoOcupacao: string;
534
+ tempoProximaSessaoPersonagem: string;
535
+ }
536
+ type PersonagemDto = IPersonagem;
537
+ interface IResumoPersonagemAventura {
538
+ fkPersonagensId: number;
539
+ fkAventurasId: number;
540
+ personagem: PersonagemDto;
541
+ aventura: AventuraDto;
542
+ texto: string;
543
+ }
544
+ type ResumoPersonagemAventuraDto = IResumoPersonagemAventura;
545
+ interface ITipoPersonagem {
546
+ id: number;
547
+ nome: string;
548
+ descricao: string;
549
+ }
550
+ type TipoPersonagemDto = ITipoPersonagem;
551
+ interface IDetalheRascunhoAventura {
552
+ fkRascunhoId: number;
553
+ rascunho: RascunhoDto;
554
+ aventura: AventuraDto | null;
555
+ descricao: Record<string, any>;
556
+ dataAtualizacao: Date;
557
+ }
558
+ type DetalheRascunhoAventuraDto = IDetalheRascunhoAventura;
559
+ interface IDetalheRascunhoSessaoUnica {
560
+ fkRascunhoId: number;
561
+ rascunho: RascunhoDto;
562
+ tipoSessao: TipoSessaoDto;
563
+ dificuldadeSessao: DificuldadeSessaoDto;
564
+ sessoesUnicas: DetalheSessaoUnicaDto[];
565
+ nivelPersonagem: NivelDto;
566
+ numeroMinimoJogadores: number;
567
+ numeroMaximoJogadores: number | null;
568
+ descricao: Record<string, any>;
569
+ dataAtualizacao: Date;
570
+ }
571
+ type DetalheRascunhoSessaoUnicaDto = IDetalheRascunhoSessaoUnica;
572
+ interface IDetalheRascunhoSessaoUnicaCanonica {
573
+ fkRascunhoId: number;
574
+ rascunho: RascunhoDto;
575
+ tipoSessao: TipoSessaoDto;
576
+ dificuldadeSessao: DificuldadeSessaoDto;
577
+ sessaoUnica: DetalheSessaoUnicaDto;
578
+ descricao: Record<string, any>;
579
+ dataAtualizacao: Date;
580
+ }
581
+ type DetalheRascunhoSessaoUnicaCanonicaDto = IDetalheRascunhoSessaoUnicaCanonica;
582
+ interface IRascunho {
583
+ id: number;
584
+ estiloSessaoMestrada: EstiloSessaoMestradaDto;
585
+ usuario: UsuarioDto;
586
+ detalheRascunhoAventura: DetalheRascunhoAventuraDto | null;
587
+ detalheRascunhoSessaoUnicaCanonica: DetalheRascunhoSessaoUnicaCanonicaDto | null;
588
+ detalheRascunhoSessaoUnica: DetalheRascunhoSessaoUnicaDto | null;
589
+ titulo: string;
590
+ dataCriacao: Date;
591
+ possuiDetalhesConfigurados: boolean;
592
+ detalheUtilizacaoRascunho: DetalheUtilizacaoRascunho;
593
+ }
594
+ type RascunhoDto = IRascunho;
595
+ interface IEstudo {
596
+ id: number;
597
+ nome: string;
598
+ }
599
+ type EstudoDto = IEstudo;
600
+ interface IRegistroSessao {
601
+ id: number;
602
+ sessao: SessaoDto;
603
+ tempoDoInicio: string;
604
+ tempoDeDuracao: string;
605
+ descricao: string;
606
+ }
607
+ type RegistroSessaoDto = IRegistroSessao;
608
+ interface ISessao {
609
+ id: number;
610
+ detalheSessaoAventura: DetalheSessaoAventuraDto;
611
+ detalheSessaoUnica: DetalheSessaoUnicaDto;
612
+ detalheSessaoCanonica: DetalheSessaoCanonicaDto;
613
+ detalheSessaoNaoCanonica: DetalheSessaoNaoCanonicaDto;
614
+ dataCriacao: Date;
615
+ dataPrevisaoInicio: Date;
616
+ dataInicio: Date | null;
617
+ duracaoEmSegundos: number | null;
618
+ estiloSessao: EstiloSessao;
619
+ dataQueEncerrou: Date | null;
620
+ estadoAtual: EstadoSessao;
621
+ }
622
+ type SessaoDto = ISessao;
623
+ declare class AuthSession {
624
+ expiredAt: number;
625
+ id: string;
626
+ destroyedAt?: Date | undefined;
627
+ json: string;
628
+ constructor(expiredAt: number, id: string, json: string, destroyedAt?: Date | undefined);
629
+ }
630
+ interface ICustomizacaoUsuario {
631
+ fkUsuariosId: number;
632
+ usuario: UsuarioDto;
633
+ personagemAvatarPrincipal: PersonagemDto | null;
634
+ conquistaExibirPerfil1: ConquistaDto | null;
635
+ conquistaExibirPerfil2: ConquistaDto | null;
636
+ conquistaExibirPerfil3: ConquistaDto | null;
637
+ caminhoAvatar: string;
638
+ }
639
+ type CustomizacaoUsuarioDto = ICustomizacaoUsuario;
640
+ interface IDisponibilidadeUsuario {
641
+ fkUsuariosId: number;
642
+ usuario: UsuarioDto;
643
+ disponibilidades: ListaDisponibilidadesUsuario;
644
+ dataAtualizacao: Date;
645
+ estaConfigurado: boolean;
646
+ }
647
+ type DisponibilidadeUsuarioDto = IDisponibilidadeUsuario;
648
+ type ListaDisponibilidadesUsuario = DisponibilidadesDDS[];
649
+ interface DisponibilidadesDDS {
650
+ dds: DiaDaSemana;
651
+ disponibilidades: JanelaDisponibilidade[];
652
+ }
653
+ interface JanelaDisponibilidade {
654
+ horaInicio: MomentoFormatado24;
655
+ horaFim: MomentoFormatado24;
656
+ }
657
+ interface IUsuario {
658
+ id: number;
659
+ perfilJogador: PerfilJogadorDto;
660
+ perfilMestre: PerfilMestreDto;
661
+ perfilAdmin: PerfilAdminDto;
662
+ customizacao: CustomizacaoUsuarioDto;
663
+ personagens: PersonagemDto[] | null;
664
+ username: string;
665
+ email: string | null;
666
+ discordId: string;
667
+ dataCriacao: Date;
668
+ listaCargos: CargosUsuario;
669
+ }
670
+ type UsuarioDto = IUsuario;
671
+ declare const PAGINAS: {
672
+ readonly VAZIA: {
673
+ readonly id: "";
674
+ readonly nome: "";
675
+ };
676
+ readonly ADMIN: {
677
+ readonly id: "ADMIN";
678
+ readonly nome: "Administrando";
679
+ };
680
+ readonly INICIO: {
681
+ readonly id: "INICIO";
682
+ readonly nome: "Página Inicial";
683
+ };
684
+ readonly MINHA_PAGINA: {
685
+ readonly id: "MINHA_PAGINA";
686
+ readonly nome: "Minha Página";
687
+ };
688
+ readonly AVENTURAS: {
689
+ readonly id: "AVENTURAS";
690
+ readonly nome: "Aventuras";
691
+ };
692
+ readonly AVENTURA: {
693
+ readonly id: "AVENTURA";
694
+ readonly nome: "Página de Aventura";
695
+ };
696
+ readonly DEFINICOES: {
697
+ readonly id: "DEFINICOES";
698
+ readonly nome: "Definições";
699
+ };
700
+ readonly DICAS: {
701
+ readonly id: "DICAS";
702
+ readonly nome: "Dicas";
703
+ };
704
+ readonly EVOLUINDO: {
705
+ readonly id: "EVOLUINDO";
706
+ readonly nome: "Página de Evolução";
707
+ };
708
+ readonly LINHA_DO_TEMPO: {
709
+ readonly id: "LINHA_DO_TEMPO";
710
+ readonly nome: "Linha do Tempo";
711
+ };
712
+ readonly MEUS_PERSONAGENS: {
713
+ readonly id: "MEUS_PERSONAGENS";
714
+ readonly nome: "Página de Personagens";
715
+ };
716
+ readonly DISPONIBILIDADES: {
717
+ readonly id: "DISPONIBILIDADES";
718
+ readonly nome: "Página de Disponibilidades";
719
+ };
720
+ readonly SESSAO_AOVIVO: {
721
+ readonly id: "SESSAO_AOVIVO";
722
+ readonly nome: "Ao vivo em Sessão";
723
+ };
724
+ readonly SESSAO: {
725
+ readonly id: "SESSAO";
726
+ readonly nome: "Assistindo Sessão";
727
+ };
728
+ readonly MESTRE: {
729
+ readonly id: "MESTRE";
730
+ readonly nome: "Página de Mestre";
731
+ };
732
+ };
733
+ type PaginaChave = keyof typeof PAGINAS;
734
+ type PaginaObjeto = typeof PAGINAS[PaginaChave];
735
+ type TelemetryConnectionInfo = {
736
+ socketId: string;
737
+ username?: string;
738
+ ip: string;
739
+ userAgent?: string;
740
+ connectedAt: number;
741
+ };
742
+ type TelemetryEventLog<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
743
+ direction: 'in' | 'out';
744
+ event: string;
745
+ socketId: string;
746
+ username?: string;
747
+ payload: TPayload;
748
+ timestamp: number;
749
+ };
750
+ type TelemetrySnapshot = {
751
+ totalConnections: number;
752
+ totalEvents: number;
753
+ connections: TelemetryConnectionInfo[];
754
+ lastEvents: TelemetryEventLog[];
755
+ serverTime: number;
756
+ };
757
+ type EventoTipo = 'recebe' | 'envia' | 'recebe-envia';
758
+ type EventoConfig<T extends EventoTipo, P, R = void> = {
759
+ tipo: T;
760
+ payload: P;
761
+ } & (T extends 'recebe-envia' ? {
762
+ response: R;
763
+ } : {});
764
+ type EventoDef = EventoConfig<'recebe', any> | EventoConfig<'envia', any> | EventoConfig<'recebe-envia', any, any>;
765
+ type GatewayDef = Record<string, EventoDef>;
766
+ type GatewaysCollection = Record<string, GatewayDef>;
767
+ declare function createGateway<T extends Record<string, EventoConfig<EventoTipo, any, any>>>(config: T): T;
768
+ declare namespace EventosWebSocket {
769
+ const gateways: {
770
+ readonly GameEngine: {
771
+ testeGameEngine1: {
772
+ tipo: "recebe-envia";
773
+ payload: {
774
+ teste1: string;
775
+ };
776
+ response: {
777
+ ok: boolean;
778
+ msg: string;
779
+ };
780
+ };
781
+ testeGameEngine2: {
782
+ tipo: "recebe";
783
+ payload: {
784
+ teste2: number;
785
+ };
786
+ };
787
+ testeDuplicado: {
788
+ tipo: "recebe-envia";
789
+ payload: {};
790
+ response: {
791
+ msg: string;
792
+ };
793
+ };
794
+ };
795
+ readonly Chat: {
796
+ testeChat1: {
797
+ tipo: "recebe-envia";
798
+ payload: {
799
+ mensagem: string;
800
+ };
801
+ response: {
802
+ entregue: boolean;
803
+ };
804
+ };
805
+ testeDuplicado: {
806
+ tipo: "recebe-envia";
807
+ payload: {};
808
+ response: {
809
+ msg: string;
810
+ };
811
+ };
812
+ };
813
+ };
814
+ }
815
+ type SOCKET_AcessoUsuario = {
816
+ usuario: UsuarioDto;
817
+ paginaAtual?: PaginaObjeto | null;
818
+ dataAtualizacao: Date;
819
+ };
820
+ interface PaletaCores {
821
+ corPrimaria: string;
822
+ corSecundaria?: string;
823
+ corTerciaria?: string;
824
+ }
825
+ type EstruturaPaginaDefinicao = {
826
+ titulo: string;
827
+ subtitulo?: string;
828
+ listaConteudo: {
829
+ itens: ConteudoItem[];
830
+ };
831
+ listaItensDefinicoesConectadas?: {
832
+ etiqueta: string;
833
+ subPaginaDefinicao: string;
834
+ }[];
835
+ };
836
+ type ConteudoItem = {
837
+ tipo: 'Definicao';
838
+ elementos: DefinicaoElemento[];
839
+ } | {
840
+ tipo: 'Lista';
841
+ itensLista: ListaItem[];
842
+ };
843
+ type DefinicaoElemento = {
844
+ tipo: 'Paragrafo';
845
+ conteudo: string;
846
+ } | {
847
+ tipo: 'ParagrafoSecreto';
848
+ };
849
+ type ListaItem = {
850
+ tipo: 'ItemLista';
851
+ etiqueta: string;
852
+ subPaginaDefinicao: string;
853
+ } | {
854
+ tipo: 'ItemListaSecreto';
855
+ };
856
+ declare enum AventuraEstado {
857
+ EM_PREPARO = "Em Preparo",
858
+ EM_ANDAMENTO = "Em Andamento",
859
+ FINALIZADA = "Finalizada"
860
+ }
861
+ declare enum EstadoPendenciaPersonagem {
862
+ RESUMO_AVENTURA_PENDENTE = "Informa\u00E7\u00F5es sobre Aventura Pendentes",
863
+ FICHA_NAO_CRIADA = "Cria\u00E7\u00E3o da Ficha Pendente",
864
+ FICHA_PENDENTE = "Atualiza\u00E7\u00E3o de Ficha Pendente",
865
+ SEM_PENDENCIAS = ""
866
+ }
867
+ declare enum EstadoPendenciaAdministrativaPersonagem {
868
+ SEM_AVATAR = "O Administrador ainda n\u00E3o vinculou o avatar do personagem",
869
+ SEM_PENDENCIAS = ""
870
+ }
871
+ declare enum EstadoOcupacaoPersonagem {
872
+ SE_PREPARANDO_AVENTURA = 0,
873
+ EM_AVENTURA = 1,
874
+ EM_ESPERA = 2
875
+ }
876
+ declare enum EstadoSessao {
877
+ MARCADA = "A Sess\u00E3o est\u00E1 marcada",
878
+ EM_ANDAMENTO = "A Sess\u00E3o est\u00E1 em andamento nesse momento",
879
+ FINALIZADA = "A Sess\u00E3o j\u00E1 foi realizada"
880
+ }
881
+ declare enum DiaDaSemana {
882
+ DOMINGO = 0,
883
+ SEGUNDA = 1,
884
+ TERCA = 2,
885
+ QUARTA = 3,
886
+ QUINTA = 4,
887
+ SEXTA = 5,
888
+ SABADO = 6
889
+ }
890
+ declare function obtemDiaDaSemanaPorExtensoPorDDS(dds: DiaDaSemana, plural?: boolean): string;
891
+ type NumeroHora24 = `0${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}` | `1${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}` | `2${0 | 1 | 2 | 3}`;
892
+ type NumeroMomento = `0${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}` | `${1 | 2 | 3 | 4 | 5}${0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}`;
893
+ type MomentoFormatado24 = `${NumeroHora24}:${NumeroMomento}`;
894
+ type MomentoFormatado = `${NumeroMomento}:${NumeroMomento}`;
895
+ declare enum CargoExibicaoUsuario {
896
+ ADMIN = 0,
897
+ MESTRE = 1,
898
+ JOGADOR = 2,
899
+ ESPECTADOR = 3
900
+ }
901
+ type CargosUsuario = {
902
+ cargoExibicaoUsuario: CargoExibicaoUsuario;
903
+ hierarquiaNoCargo: number;
904
+ hierarquiaTotal: number;
905
+ cargos: string[];
906
+ };
907
+ type ObjetoAutenticacao = {
908
+ usuarioLogado: UsuarioDto | null;
909
+ variaveisAmbiente: VariavelAmbienteDto[];
910
+ pendenciasDePersonagem: number;
911
+ };
912
+ type ObjetoCache = {
913
+ atributos: AtributoDto[];
914
+ pericias: PericiaDto[];
915
+ patentesPericia: PatentePericiaDto[];
916
+ estatisticasDanificaveis: EstatisticaDanificavelDto[];
917
+ classes: ClasseDto[];
918
+ tiposGanho: TipoGanhoNivelDto[];
919
+ niveis: NivelDto[];
920
+ dificuldadesSessao: DificuldadeSessaoDto[];
921
+ tiposSessao: TipoSessaoDto[];
922
+ };
923
+ type ObjetoPendeciaPersonagem = {
924
+ pendeciaUsuario: EstadoPendenciaPersonagem;
925
+ pendenciaAdmin: EstadoPendenciaAdministrativaPersonagem;
926
+ };
927
+ type TipoVariavelAmbiente = 'boolean' | 'string' | 'number';
928
+ type ObjetoEvolucaoCompleto = ObjetoEvolucao & ObjetoGanhosEvolucao;
929
+ type ObjetoEvolucao = {
930
+ personagem: PersonagemDto;
931
+ fichaDeJogoVigente: FichaDeJogo;
932
+ nivelDoProcedimento: NivelDto;
933
+ listaReferenciaTodosAtributos: AtributoDto[];
934
+ listaReferenciaPericiasDisponiveis: PericiaDto[];
935
+ listaReferenciaTodasPatentes: PatentePericiaDto[];
936
+ listaReferenciaTodasEstatisticasDanificaveis: EstatisticaDanificavelDto[];
937
+ listaReferenciaTodasClasses: ClasseDto[];
938
+ listaReferenciaTodosTiposGanho: TipoGanhoNivelDto[];
939
+ };
940
+ type ObjetoGanhosEvolucao = {
941
+ listaGanhos: GanhoNivelClasseDto[];
942
+ listaGanhosEstatisticasPorAtributos: GanhoEstatistica[];
943
+ };
944
+ type GanhoEstatistica = {
945
+ estatisticaDanificavel: EstatisticaDanificavelDto;
946
+ ganhosPorAtributo: {
947
+ atributo: AtributoDto;
948
+ valorPorUnidade: number;
949
+ }[];
950
+ };
951
+ declare enum FormatoMomento {
952
+ HMS = 0,
953
+ EXTENSO = 1,
954
+ EXTENSO_APROXIMADO = 2
955
+ }
956
+ type DetalheUtilizacaoRascunho = {
957
+ disponivel: boolean;
958
+ detalhe: string;
959
+ };
960
+ declare enum EstiloSessao {
961
+ SESSAO_DE_AVENTURA = 0,
962
+ SESSAO_UNICA_CANONICA = 1,
963
+ SESSAO_UNICA_NAO_CANONICA = 2,
964
+ ERRO = 3
965
+ }
966
+ type Gateways = typeof EventosWebSocket.gateways;
967
+ type EventoTipoLiteral = EventoTipo;
968
+ type FiltraEventosPorTipo<G extends GatewayDef, Tipo extends EventoTipoLiteral> = {
969
+ [K in keyof G as G[K] extends {
970
+ tipo: Tipo;
971
+ } ? K : never]: G[K];
972
+ };
973
+ declare function criarEventosFiltrados<Tipo extends EventoTipoLiteral>(tipo: Tipo): { [G in keyof Gateways]: {
974
+ eventos: { [E in keyof FiltraEventosPorTipo<Gateways[G], Tipo>]: FiltraEventosPorTipo<Gateways[G], Tipo>[E] & {
975
+ readonly nome: E;
976
+ readonly gateway: G;
977
+ readonly fullName: `${Extract<G, string>}:${Extract<E, string>}`;
978
+ }; };
979
+ }; };
980
+ declare const Eventos_Recebe: {
981
+ readonly GameEngine: {
982
+ eventos: {
983
+ testeGameEngine2: {
984
+ tipo: "recebe";
985
+ payload: {
986
+ teste2: number;
987
+ };
988
+ } & {
989
+ readonly nome: "testeGameEngine2";
990
+ readonly gateway: "GameEngine";
991
+ readonly fullName: "GameEngine:testeGameEngine2";
992
+ };
993
+ };
994
+ };
995
+ readonly Chat: {
996
+ eventos: {};
997
+ };
998
+ };
999
+ declare const Eventos_Envia: {
1000
+ readonly GameEngine: {
1001
+ eventos: {};
1002
+ };
1003
+ readonly Chat: {
1004
+ eventos: {};
1005
+ };
1006
+ };
1007
+ declare const Eventos_RecebeEnvia: {
1008
+ readonly GameEngine: {
1009
+ eventos: {
1010
+ testeGameEngine1: {
1011
+ tipo: "recebe-envia";
1012
+ payload: {
1013
+ teste1: string;
1014
+ };
1015
+ response: {
1016
+ ok: boolean;
1017
+ msg: string;
1018
+ };
1019
+ } & {
1020
+ readonly nome: "testeGameEngine1";
1021
+ readonly gateway: "GameEngine";
1022
+ readonly fullName: "GameEngine:testeGameEngine1";
1023
+ };
1024
+ testeDuplicado: {
1025
+ tipo: "recebe-envia";
1026
+ payload: {};
1027
+ response: {
1028
+ msg: string;
1029
+ };
1030
+ } & {
1031
+ readonly nome: "testeDuplicado";
1032
+ readonly gateway: "GameEngine";
1033
+ readonly fullName: "GameEngine:testeDuplicado";
1034
+ };
1035
+ };
1036
+ };
1037
+ readonly Chat: {
1038
+ eventos: {
1039
+ testeChat1: {
1040
+ tipo: "recebe-envia";
1041
+ payload: {
1042
+ mensagem: string;
1043
+ };
1044
+ response: {
1045
+ entregue: boolean;
1046
+ };
1047
+ } & {
1048
+ readonly nome: "testeChat1";
1049
+ readonly gateway: "Chat";
1050
+ readonly fullName: "Chat:testeChat1";
1051
+ };
1052
+ testeDuplicado: {
1053
+ tipo: "recebe-envia";
1054
+ payload: {};
1055
+ response: {
1056
+ msg: string;
1057
+ };
1058
+ } & {
1059
+ readonly nome: "testeDuplicado";
1060
+ readonly gateway: "Chat";
1061
+ readonly fullName: "Chat:testeDuplicado";
1062
+ };
1063
+ };
1064
+ };
1065
+ };
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 };