types-nora-api 0.0.22 → 0.0.24

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,297 +1,259 @@
1
- declare class ConviteGrupoAventuraPersonagem {
2
- id: number;
3
- grupoAventura: GrupoAventura;
4
- usuario: Usuario;
1
+ interface IAventura {
2
+ geracao: GeracaoDto;
3
+ gruposAventura: GrupoAventuraDto[];
4
+ titulo: string;
5
5
  dataCriacao: Date;
6
- constructor(id: number, grupoAventura: GrupoAventura, usuario: Usuario, dataCriacao: Date);
6
+ obtemEstadoAtual: AventuraEstado;
7
7
  }
8
- declare class RespostaConvite {
9
- constructor();
8
+ type AventuraDto = IAventura;
9
+ interface IConviteGrupoAventuraPersonagem {
10
+ grupoAventura: GrupoAventuraDto;
11
+ usuario: UsuarioDto;
12
+ dataCriacao: Date;
10
13
  }
11
- declare class TipoRespostaConvite {
12
- id: number;
14
+ type ConviteGrupoAventuraPersonagemDto = IConviteGrupoAventuraPersonagem;
15
+ interface IGrupoAventura {
13
16
  nome: string;
14
- constructor(id: number, nome: string);
17
+ aventura: AventuraDto;
18
+ usuarioMestre: UsuarioDto;
19
+ personagensDaAventura: GrupoAventuraPersonagemDto[];
20
+ dataPrevisaoInicio: Date;
21
+ dataInicio: Date;
22
+ dataFim: Date;
23
+ ddsPadrao: number;
24
+ recorrencia: string;
25
+ horaInicio: string;
26
+ horaFim: string;
27
+ obtemEstadoAtual: AventuraEstado;
28
+ obtemTextoInformacionalOcorrencia: string | null;
29
+ }
30
+ type GrupoAventuraDto = IGrupoAventura;
31
+ interface IGrupoAventuraPersonagem {
32
+ grupoAventura: GrupoAventuraDto;
33
+ personagem: PersonagemDto;
34
+ }
35
+ type GrupoAventuraPersonagemDto = IGrupoAventuraPersonagem;
36
+ interface IRespostaConvite {
37
+ convite: ConviteGrupoAventuraPersonagemDto;
38
+ tipoResposta: TipoRespostaConviteDto;
39
+ personagemVinculado: PersonagemDto;
40
+ dataCriacao: Date;
15
41
  }
16
- declare class Conquista {
17
- id: number;
18
- tipoConquista: TipoConquista;
42
+ type RespostaConviteDto = IRespostaConvite;
43
+ interface ITipoRespostaConvite {
19
44
  nome: string;
20
- descricao: string;
21
- constructor(id: number, tipoConquista: TipoConquista, nome: string, descricao: string);
22
45
  }
23
- declare class TipoConquista {
24
- id: number;
46
+ type TipoRespostaConviteDto = ITipoRespostaConvite;
47
+ interface IConquista {
48
+ tipoConquista: TipoConquistaDto;
25
49
  nome: string;
26
- constructor(id: number, nome: string);
50
+ descricao: string;
27
51
  }
28
- declare class Aventura {
29
- id: number;
30
- geracao: Geracao;
31
- imagemCapa: Imagem;
32
- gruposAventura: GrupoAventura[];
33
- titulo: string;
34
- dataCriacao: Date;
35
- constructor(id: number, geracao: Geracao, imagemCapa: Imagem, gruposAventura: GrupoAventura[], titulo: string, dataCriacao: Date);
36
- get obtemEstadoAtual(): AventuraEstado;
52
+ type ConquistaDto = IConquista;
53
+ interface ITipoConquista {
54
+ nome: string;
37
55
  }
38
- declare class Geracao {
56
+ type TipoConquistaDto = ITipoConquista;
57
+ interface IGeracao {
39
58
  id: number;
40
- aventuras: Aventura[];
59
+ aventuras: AventuraDto[];
41
60
  nome: string;
42
61
  anoInicio: number;
43
- constructor(id: number, aventuras: Aventura[], nome: string, anoInicio: number);
44
- }
45
- declare class GrupoAventura {
46
- id: number;
47
- nomeGrupo: string;
48
- aventura: Aventura;
49
- usuarioMestre: Usuario;
50
- personagensDaAventura: GrupoAventuraPersonagem[];
51
- dataInicio: Date | null;
52
- dataFim: Date | null;
53
- ddsPadrao: number;
54
- recorrencia: string;
55
- constructor(id: number, nomeGrupo: string, aventura: Aventura, usuarioMestre: Usuario, personagensDaAventura: GrupoAventuraPersonagem[], dataInicio: Date | null, dataFim: Date | null, ddsPadrao: number, recorrencia: string);
56
- get obtemEstadoAtual(): AventuraEstado;
57
- }
58
- declare class GrupoAventuraPersonagem {
59
- fkGruposAventurasId: number;
60
- fkPersonagensId: number;
61
- grupoAventura: GrupoAventura;
62
- personagem: Personagem;
63
- constructor(fkGruposAventurasId: number, fkPersonagensId: number, grupoAventura: GrupoAventura, personagem: Personagem);
64
62
  }
63
+ type GeracaoDto = IGeracao;
65
64
  declare class Imagem {
66
65
  id: number;
67
66
  urlArquivo: string;
68
67
  constructor(id: number, urlArquivo: string);
69
68
  }
70
- declare class Alcance {
71
- id: number;
69
+ interface IAlcance {
72
70
  nome: string;
73
- numero_metros: number;
74
- descricao: string | null;
75
- constructor(id: number, nome: string, numero_metros: number, descricao: string | null);
71
+ numeroMetros: number;
72
+ descricao: string;
76
73
  }
77
- declare class Atributo {
78
- id: number;
79
- linhaEfeito: LinhaEfeito;
80
- pericias: Pericia[];
74
+ type AlcanceDto = IAlcance;
75
+ interface IAtributo {
76
+ linhaEfeito: LinhaEfeitoDto;
77
+ pericias: PericiaDto[];
81
78
  nome: string;
82
79
  descricao: string;
83
- constructor(id: number, linhaEfeito: LinhaEfeito, pericias: Pericia[], nome: string, descricao: string);
84
- get nomeAbreviado(): string;
80
+ nomeAbreviado: string;
85
81
  }
86
- declare class CategoriaRitual {
87
- id: number;
88
- circuloRitual: CirculoRitual;
89
- nivelRitual: NivelRitual;
82
+ type AtributoDto = IAtributo;
83
+ interface ICategoriaRitual {
84
+ circuloRitual: CirculoRitualDto;
85
+ nivelRitual: NivelRitualDto;
90
86
  valorPsSacrificado: number;
91
- constructor(id: number, circuloRitual: CirculoRitual, nivelRitual: NivelRitual, valorPsSacrificado: number);
92
- get nome(): string;
87
+ nome: string;
93
88
  }
94
- declare class CirculoRitual {
95
- id: number;
89
+ type CategoriaRitualDto = ICategoriaRitual;
90
+ interface ICirculoRitual {
96
91
  nome: string;
97
- constructor(id: number, nome: string);
98
- get nomeCompleto(): string;
92
+ nomeCompleto: string;
99
93
  }
100
- declare class Classe {
101
- id: number;
94
+ type CirculoRitualDto = ICirculoRitual;
95
+ interface IClasse {
102
96
  nome: string;
103
97
  descricao: string;
104
- constructor(id: number, nome: string, descricao: string);
105
98
  }
106
- declare class Duracao {
107
- id: number;
99
+ type ClasseDto = IClasse;
100
+ interface IDuracao {
108
101
  nome: string;
109
- constructor(id: number, nome: string);
110
102
  }
111
- declare class Elemento {
112
- id: number;
103
+ type DuracaoDto = IDuracao;
104
+ interface IElemento {
113
105
  nome: string;
114
106
  cores: PaletaCores;
115
- constructor(id: number, nome: string, cores: PaletaCores);
116
107
  }
117
- declare class EstatisticaDanificavel {
118
- id: number;
108
+ type ElementoDto = IElemento;
109
+ interface IEstatisticaDanificavel {
119
110
  nome: string;
120
111
  cor: string;
121
112
  descricao: string;
122
- constructor(id: number, nome: string, cor: string, descricao: string);
123
- get nomeAbreviado(): string;
113
+ nomeAbreviado: string;
124
114
  }
125
- declare class Execucao {
126
- id: number;
127
- linhaEfeito: LinhaEfeito;
115
+ type EstatisticaDanificavelDto = IEstatisticaDanificavel;
116
+ interface IExecucao {
117
+ linhaEfeito: LinhaEfeitoDto;
128
118
  nome: string;
129
- constructor(id: number, linhaEfeito: LinhaEfeito, nome: string);
130
119
  }
131
- declare class FormatoAlcance {
132
- id: number;
120
+ type ExecucaoDto = IExecucao;
121
+ interface IFormatoAlcance {
133
122
  nome: string;
134
- constructor(id: number, nome: string);
135
123
  }
136
- declare class LinhaEfeito {
137
- id: number;
124
+ type FormatoAlcanceDto = IFormatoAlcance;
125
+ interface ILinhaEfeito {
138
126
  nome: string;
139
- constructor(id: number, nome: string);
140
127
  }
141
- declare class Nivel {
142
- id: number;
128
+ type LinhaEfeitoDto = ILinhaEfeito;
129
+ interface INivel {
143
130
  valoNivel: number;
144
- constructor(id: number, valoNivel: number);
145
- get nomeDisplay(): string;
131
+ nomeDisplay: string;
146
132
  }
147
- declare class NivelComponente {
148
- id: number;
133
+ type NivelDto = INivel;
134
+ interface INivelComponente {
149
135
  nome: string;
150
- constructor(id: number, nome: string);
151
136
  }
152
- declare class NivelProficiencia {
153
- id: number;
137
+ type NivelComponenteDto = INivelComponente;
138
+ interface INivelProficiencia {
154
139
  nivel: number;
155
- constructor(id: number, nivel: number);
156
140
  }
157
- declare class NivelRitual {
158
- id: number;
141
+ type NivelProficienciaDto = INivelProficiencia;
142
+ interface INivelRitual {
159
143
  nome: string;
160
- constructor(id: number, nome: string);
161
144
  }
162
- declare class PatentePericia {
163
- id: number;
145
+ type NivelRitualDto = INivelRitual;
146
+ interface IPatentePericia {
164
147
  nome: string;
165
148
  bonusPatente: number;
166
149
  cor: string;
167
- constructor(id: number, nome: string, bonusPatente: number, cor: string);
168
150
  }
169
- declare class Pericia {
170
- id: number;
171
- atributo: Atributo;
172
- linhaEfeito: LinhaEfeito;
151
+ type PatentePericiaDto = IPatentePericia;
152
+ interface IPericia {
153
+ atributo: AtributoDto;
154
+ linhaEfeito: LinhaEfeitoDto;
173
155
  nome: string;
174
156
  descricao: string;
175
- constructor(id: number, atributo: Atributo, linhaEfeito: LinhaEfeito, nome: string, descricao: string);
176
- get nomeAbreviado(): string;
157
+ nomeAbreviado: string;
177
158
  }
178
- declare class Proficiencia {
179
- id: number;
180
- tipoProficiencia: TipoProficiencia;
181
- nivelProficiencia: NivelProficiencia;
159
+ type PericiaDto = IPericia;
160
+ interface IProficiencia {
161
+ tipoProficiencia: TipoProficienciaDto;
162
+ nivelProficiencia: NivelProficienciaDto;
182
163
  nome: string;
183
- constructor(id: number, tipoProficiencia: TipoProficiencia, nivelProficiencia: NivelProficiencia, nome: string);
184
164
  }
185
- declare class TipoAlvo {
186
- id: number;
165
+ type ProficienciaDto = IProficiencia;
166
+ interface ITipoAlvo {
187
167
  nome: string;
188
- constructor(id: number, nome: string);
189
168
  }
190
- declare class TipoCategoria {
191
- id: number;
169
+ type TipoAlvoDto = ITipoAlvo;
170
+ interface ITipoCategoria {
192
171
  valorCategoria: number;
193
- constructor(id: number, valorCategoria: number);
194
- get nomeCategoria(): string;
172
+ nomeCategoria: string;
195
173
  }
196
- declare class TipoDano {
197
- id: number;
198
- linhaEfeito: LinhaEfeito;
199
- tipoDanoPertencente: TipoDano;
174
+ type TipoCategoriaDto = ITipoCategoria;
175
+ interface ITipoDano {
176
+ linhaEfeito: LinhaEfeitoDto;
177
+ tipoDanoPertencente: TipoDanoDto;
200
178
  nome: string;
201
- constructor(id: number, linhaEfeito: LinhaEfeito, tipoDanoPertencente: TipoDano, nome: string);
202
179
  }
203
- declare class TipoEfeito {
204
- id: number;
180
+ type TipoDanoDto = ITipoDano;
181
+ interface ITipoEfeito {
205
182
  nome: string;
206
183
  nomeVisualizacao: string;
207
- constructor(id: number, nome: string, nomeVisualizacao: string);
208
184
  }
209
- declare class TipoItem {
210
- id: number;
185
+ type TipoEfeitoDto = ITipoEfeito;
186
+ interface ITipoItem {
211
187
  nome: string;
212
- constructor(id: number, nome: string);
213
188
  }
214
- declare class TipoProficiencia {
215
- id: number;
189
+ type TipoItemDto = ITipoItem;
190
+ interface ITipoProficiencia {
216
191
  nome: string;
217
- constructor(id: number, nome: string);
218
192
  }
219
- declare class PerfilAdmin {
220
- id: number;
193
+ type TipoProficienciaDto = ITipoProficiencia;
194
+ interface IPerfilAdmin {
221
195
  nome: string;
222
196
  descricao: string;
223
- constructor(id: number, nome: string, descricao: string);
224
197
  }
225
- declare class PerfilJogador {
226
- id: number;
198
+ type PerfilAdminDto = IPerfilAdmin;
199
+ interface IPerfilJogador {
227
200
  nome: string;
228
201
  descricao: string;
229
- constructor(id: number, nome: string, descricao: string);
230
202
  }
231
- declare class PerfilMestre {
232
- id: number;
203
+ type PerfilJogadorDto = IPerfilJogador;
204
+ interface IPerfilMestre {
233
205
  nome: string;
234
206
  descricao: string;
235
- constructor(id: number, nome: string, descricao: string);
236
207
  }
237
- declare class AtributoPersonagem {
238
- fkPersonagemId: number;
239
- fkAtributoId: number;
240
- personagem: Personagem;
241
- atributo: Atributo;
208
+ type PerfilMestreDto = IPerfilMestre;
209
+ interface IAtributoPersonagem {
210
+ personagem: PersonagemDto;
211
+ atributo: AtributoDto;
242
212
  valor: number;
243
- constructor(fkPersonagemId: number, fkAtributoId: number, personagem: Personagem, atributo: Atributo, valor: number);
244
213
  }
245
- declare class EstatisticaDanificavelPersonagem {
246
- fkPersonagemId: number;
247
- fkEstatisticaDanificavelId: number;
248
- personagem: Personagem;
249
- estatisticaDanificavel: EstatisticaDanificavel;
214
+ type AtributoPersonagemDto = IAtributoPersonagem;
215
+ interface IEstatisticaDanificavelPersonagem {
216
+ personagem: PersonagemDto;
217
+ estatisticaDanificavel: EstatisticaDanificavelDto;
250
218
  valorMaximo: number;
251
219
  valorAtual: number;
252
- constructor(fkPersonagemId: number, fkEstatisticaDanificavelId: number, personagem: Personagem, estatisticaDanificavel: EstatisticaDanificavel, valorMaximo: number, valorAtual: number);
253
220
  }
254
- declare class InformacaoPersonagem {
255
- fkPersonagensId: number;
256
- personagem: Personagem;
221
+ type EstatisticaDanificavelPersonagemDto = IEstatisticaDanificavelPersonagem;
222
+ interface IInformacaoPersonagem {
223
+ personagem: PersonagemDto;
257
224
  nome: string;
258
- constructor(fkPersonagensId: number, personagem: Personagem, nome: string);
259
- }
260
- declare class PericiaPersonagem {
261
- fkPersonagemId: number;
262
- fkPericiaId: number;
263
- personagem: Personagem;
264
- pericia: Pericia;
265
- patentePericia: PatentePericia;
266
- constructor(fkPersonagemId: number, fkPericiaId: number, personagem: Personagem, pericia: Pericia, patentePericia: PatentePericia);
267
225
  }
268
- declare class Personagem {
269
- id: number;
270
- tipoPersonagem: TipoPersonagem;
271
- usuarioCriador: Usuario;
272
- informacao: InformacaoPersonagem;
273
- estatisticasDanificaveisPersonagem: EstatisticaDanificavelPersonagem[];
274
- atributosPersonagem: AtributoPersonagem[];
275
- periciasPersonagem: PericiaPersonagem;
276
- constructor(id: number, tipoPersonagem: TipoPersonagem, usuarioCriador: Usuario, informacao: InformacaoPersonagem, estatisticasDanificaveisPersonagem: EstatisticaDanificavelPersonagem[], atributosPersonagem: AtributoPersonagem[], periciasPersonagem: PericiaPersonagem);
277
- }
278
- declare class ResumoPersonagemAventura {
279
- id: number;
280
- personagem: Personagem;
281
- aventura: Aventura;
282
- constructor(id: number, personagem: Personagem, aventura: Aventura);
283
- }
284
- declare class TipoPersonagem {
285
- id: number;
226
+ type InformacaoPersonagemDto = IInformacaoPersonagem;
227
+ interface IPericiaPersonagem {
228
+ personagem: PersonagemDto;
229
+ pericia: PericiaDto;
230
+ patentePericia: PatentePericiaDto;
231
+ }
232
+ type PericiaPersonagemDto = IPericiaPersonagem;
233
+ interface IPersonagem {
234
+ tipoPersonagem: TipoPersonagemDto;
235
+ usuarioCriador: UsuarioDto;
236
+ informacao: InformacaoPersonagemDto;
237
+ estatisticasDanificaveisPersonagem: EstatisticaDanificavelPersonagemDto[];
238
+ atributosPersonagem: AtributoPersonagemDto[];
239
+ periciasPersonagem: PericiaPersonagemDto;
240
+ }
241
+ type PersonagemDto = IPersonagem;
242
+ interface IResumoPersonagemAventura {
243
+ personagem: PersonagemDto;
244
+ aventura: AventuraDto;
245
+ texto: string;
246
+ }
247
+ type ResumoPersonagemAventuraDto = IResumoPersonagemAventura;
248
+ interface ITipoPersonagem {
286
249
  nome: string;
287
250
  descricao: string;
288
- constructor(id: number, nome: string, descricao: string);
289
251
  }
290
- declare class Estudo {
291
- id: number;
252
+ type TipoPersonagemDto = ITipoPersonagem;
253
+ interface IEstudo {
292
254
  nome: string;
293
- constructor(id: number, nome: string);
294
255
  }
256
+ type EstudoDto = IEstudo;
295
257
  declare class AuthSession {
296
258
  expiredAt: number;
297
259
  id: string;
@@ -299,43 +261,44 @@ declare class AuthSession {
299
261
  json: string;
300
262
  constructor(expiredAt: number, id: string, json: string, destroyedAt?: Date | undefined);
301
263
  }
302
- declare class CustomizacaoUsuario {
303
- fk__usuarios__id: number;
304
- usuario: Usuario;
305
- personagemAvatarPrincipal: Personagem;
306
- conquistaExibirPerfil1: Conquista;
307
- conquistaExibirPerfil2: Conquista;
308
- conquistaExibirPerfil3: Conquista;
309
- constructor(fk__usuarios__id: number, usuario: Usuario, personagemAvatarPrincipal: Personagem, conquistaExibirPerfil1: Conquista, conquistaExibirPerfil2: Conquista, conquistaExibirPerfil3: Conquista);
264
+ interface ICustomizacaoUsuario {
265
+ usuario: UsuarioDto;
266
+ personagemAvatarPrincipal: PersonagemDto;
267
+ conquistaExibirPerfil1: ConquistaDto;
268
+ conquistaExibirPerfil2: ConquistaDto;
269
+ conquistaExibirPerfil3: ConquistaDto;
310
270
  }
311
- declare class DisponibilidadeUsuario {
271
+ type CustomizacaoUsuarioDto = ICustomizacaoUsuario;
272
+ interface IDisponibilidadeUsuario {
273
+ usuario: UsuarioDto;
312
274
  diaDaSemana: number;
313
275
  horaInicio: string;
314
276
  horaFim: string;
315
- constructor(diaDaSemana: number, horaInicio: string, horaFim: string);
316
277
  }
317
- declare class Usuario {
278
+ type DisponibilidadeUsuarioDto = IDisponibilidadeUsuario;
279
+ interface IUsuario {
318
280
  id: number;
319
- perfilJogador: PerfilJogador;
320
- perfilMestre: PerfilMestre;
321
- perfilAdmin: PerfilAdmin;
322
- customizacao: CustomizacaoUsuario;
323
- username: string | null;
281
+ perfilJogador: PerfilJogadorDto;
282
+ perfilMestre: PerfilMestreDto;
283
+ perfilAdmin: PerfilAdminDto;
284
+ customizacao: CustomizacaoUsuarioDto;
285
+ username: string;
324
286
  email: string;
325
287
  discordId: string;
326
- constructor(id: number, perfilJogador: PerfilJogador, perfilMestre: PerfilMestre, perfilAdmin: PerfilAdmin, customizacao: CustomizacaoUsuario, username: string, email: string, discordId: string);
327
288
  }
328
- export type RespostaBackEnd<T> = {
289
+ type UsuarioDto = IUsuario;
290
+ type Done = (err: Error | null, usuario: UsuarioDto | null) => void;
291
+ type RespostaBackEnd<T> = {
329
292
  sucesso: boolean;
330
293
  dados?: T;
331
294
  erro?: string;
332
295
  };
333
- export interface PaletaCores {
296
+ interface PaletaCores {
334
297
  corPrimaria: string;
335
298
  corSecundaria?: string;
336
299
  corTerciaria?: string;
337
300
  }
338
- export type EstruturaPaginaDefinicao = {
301
+ type EstruturaPaginaDefinicao = {
339
302
  titulo: string;
340
303
  subtitulo?: string;
341
304
  listaConteudo: {
@@ -346,37 +309,38 @@ export type EstruturaPaginaDefinicao = {
346
309
  subPaginaDefinicao: string;
347
310
  }[];
348
311
  };
349
- export type ConteudoItem = {
312
+ type ConteudoItem = {
350
313
  tipo: 'Definicao';
351
314
  elementos: DefinicaoElemento[];
352
315
  } | {
353
316
  tipo: 'Lista';
354
317
  itensLista: ListaItem[];
355
318
  };
356
- export type DefinicaoElemento = {
319
+ type DefinicaoElemento = {
357
320
  tipo: 'Paragrafo';
358
321
  conteudo: string;
359
322
  } | {
360
323
  tipo: 'ParagrafoSecreto';
361
324
  };
362
- export type ListaItem = {
325
+ type ListaItem = {
363
326
  tipo: 'ItemLista';
364
327
  etiqueta: string;
365
328
  subPaginaDefinicao: string;
366
329
  } | {
367
330
  tipo: 'ItemListaSecreto';
368
331
  };
369
- export type DadosMinhaPagina = Pick<Usuario, 'username'> & {
332
+ type DadosMinhaPagina = Pick<UsuarioDto, 'username'> & {
370
333
  caminhoAvatar: string;
371
334
  };
372
- export declare class DadosMinhasDisponibilidades {
373
- disponibilidades: DisponibilidadeUsuario[];
374
- constructor(disponibilidades: DisponibilidadeUsuario[]);
335
+ declare class DadosMinhasDisponibilidades {
336
+ disponibilidades: DisponibilidadeUsuarioDto[];
337
+ constructor(disponibilidades: DisponibilidadeUsuarioDto[]);
375
338
  get disponibilidadePorExtenso(): Record<number, string[]>[];
376
339
  }
377
- export declare enum AventuraEstado {
340
+ declare enum AventuraEstado {
378
341
  EM_PREPARO = "Em Preparo",
379
342
  EM_ANDAMENTO = "Em Andamento",
380
343
  FINALIZADA = "Finalizada"
381
344
  }
382
- export { ConviteGrupoAventuraPersonagem, RespostaConvite, TipoRespostaConvite, Conquista, TipoConquista, Aventura, Geracao, GrupoAventura, GrupoAventuraPersonagem, Imagem, Alcance, Atributo, CategoriaRitual, CirculoRitual, Classe, Duracao, Elemento, EstatisticaDanificavel, Execucao, FormatoAlcance, LinhaEfeito, Nivel, NivelComponente, NivelProficiencia, NivelRitual, PatentePericia, Pericia, Proficiencia, TipoAlvo, TipoCategoria, TipoDano, TipoEfeito, TipoItem, TipoProficiencia, PerfilAdmin, PerfilJogador, PerfilMestre, AtributoPersonagem, EstatisticaDanificavelPersonagem, InformacaoPersonagem, PericiaPersonagem, Personagem, ResumoPersonagemAventura, TipoPersonagem, Estudo, AuthSession, CustomizacaoUsuario, DisponibilidadeUsuario, Usuario };
345
+ type dds = 1 | 2 | 3 | 4 | 5 | 6 | 7;
346
+ export { IAventura, AventuraDto, IConviteGrupoAventuraPersonagem, ConviteGrupoAventuraPersonagemDto, IGrupoAventura, GrupoAventuraDto, IGrupoAventuraPersonagem, GrupoAventuraPersonagemDto, IRespostaConvite, RespostaConviteDto, ITipoRespostaConvite, TipoRespostaConviteDto, IConquista, ConquistaDto, ITipoConquista, TipoConquistaDto, IGeracao, GeracaoDto, Imagem, 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, IPerfilAdmin, PerfilAdminDto, IPerfilJogador, PerfilJogadorDto, IPerfilMestre, PerfilMestreDto, IAtributoPersonagem, AtributoPersonagemDto, IEstatisticaDanificavelPersonagem, EstatisticaDanificavelPersonagemDto, IInformacaoPersonagem, InformacaoPersonagemDto, IPericiaPersonagem, PericiaPersonagemDto, IPersonagem, PersonagemDto, IResumoPersonagemAventura, ResumoPersonagemAventuraDto, ITipoPersonagem, TipoPersonagemDto, IEstudo, EstudoDto, AuthSession, ICustomizacaoUsuario, CustomizacaoUsuarioDto, IDisponibilidadeUsuario, DisponibilidadeUsuarioDto, IUsuario, UsuarioDto, Done, RespostaBackEnd, PaletaCores, EstruturaPaginaDefinicao, ConteudoItem, DefinicaoElemento, ListaItem, DadosMinhaPagina, DadosMinhasDisponibilidades, AventuraEstado, dds };
package/dist/classes.js CHANGED
@@ -1,149 +1,4 @@
1
- class ConviteGrupoAventuraPersonagem {
2
- id;
3
- grupoAventura;
4
- usuario;
5
- dataCriacao;
6
- constructor(id, grupoAventura, usuario, dataCriacao) {
7
- this.id = id;
8
- this.grupoAventura = grupoAventura;
9
- this.usuario = usuario;
10
- this.dataCriacao = dataCriacao;
11
- }
12
- }
13
- class RespostaConvite {
14
- constructor() { }
15
- }
16
- class TipoRespostaConvite {
17
- id;
18
- nome;
19
- constructor(id, nome) {
20
- this.id = id;
21
- this.nome = nome;
22
- }
23
- }
24
- class Conquista {
25
- id;
26
- tipoConquista;
27
- nome;
28
- descricao;
29
- constructor(id, tipoConquista, nome, descricao) {
30
- this.id = id;
31
- this.tipoConquista = tipoConquista;
32
- this.nome = nome;
33
- this.descricao = descricao;
34
- }
35
- }
36
- class TipoConquista {
37
- id;
38
- nome;
39
- constructor(id, nome) {
40
- this.id = id;
41
- this.nome = nome;
42
- }
43
- }
44
- class Aventura {
45
- id;
46
- geracao;
47
- imagemCapa;
48
- gruposAventura;
49
- titulo;
50
- dataCriacao;
51
- constructor(id, geracao, imagemCapa, gruposAventura, titulo, dataCriacao) {
52
- this.id = id;
53
- this.geracao = geracao;
54
- this.imagemCapa = imagemCapa;
55
- this.gruposAventura = gruposAventura;
56
- this.titulo = titulo;
57
- this.dataCriacao = dataCriacao;
58
- }
59
- get obtemEstadoAtual() {
60
- // Se não houver grupos, considera como em preparo
61
- if (this.gruposAventura.length === 0) {
62
- return AventuraEstado.EM_PREPARO;
63
- }
64
- let temEmPreparo = false;
65
- let temEmAndamento = false;
66
- let temFinalizado = false;
67
- // Verifica o estado de cada grupo
68
- for (const grupo of this.gruposAventura) {
69
- const estado = grupo.obtemEstadoAtual;
70
- if (estado === AventuraEstado.EM_ANDAMENTO) {
71
- temEmAndamento = true;
72
- // Se encontrou um em andamento, pode retornar imediatamente
73
- return AventuraEstado.EM_ANDAMENTO;
74
- }
75
- else if (estado === AventuraEstado.EM_PREPARO) {
76
- temEmPreparo = true;
77
- }
78
- else if (estado === AventuraEstado.FINALIZADA) {
79
- temFinalizado = true;
80
- }
81
- }
82
- // Se chegou aqui, não há grupos em andamento
83
- if (temEmPreparo && temFinalizado) {
84
- return AventuraEstado.EM_ANDAMENTO;
85
- }
86
- else if (temEmPreparo) {
87
- return AventuraEstado.EM_PREPARO;
88
- }
89
- else {
90
- return AventuraEstado.FINALIZADA;
91
- }
92
- }
93
- }
94
- class Geracao {
95
- id;
96
- aventuras;
97
- nome;
98
- anoInicio;
99
- constructor(id, aventuras, nome, anoInicio) {
100
- this.id = id;
101
- this.aventuras = aventuras;
102
- this.nome = nome;
103
- this.anoInicio = anoInicio;
104
- }
105
- }
106
- class GrupoAventura {
107
- id;
108
- nomeGrupo;
109
- aventura;
110
- usuarioMestre;
111
- personagensDaAventura;
112
- dataInicio;
113
- dataFim;
114
- ddsPadrao;
115
- recorrencia;
116
- constructor(id, nomeGrupo, aventura, usuarioMestre, personagensDaAventura, dataInicio, dataFim, ddsPadrao, recorrencia) {
117
- this.id = id;
118
- this.nomeGrupo = nomeGrupo;
119
- this.aventura = aventura;
120
- this.usuarioMestre = usuarioMestre;
121
- this.personagensDaAventura = personagensDaAventura;
122
- this.dataInicio = dataInicio;
123
- this.dataFim = dataFim;
124
- this.ddsPadrao = ddsPadrao;
125
- this.recorrencia = recorrencia;
126
- }
127
- get obtemEstadoAtual() {
128
- if (this.dataInicio === null)
129
- return AventuraEstado.EM_PREPARO;
130
- if (this.dataFim !== null)
131
- return AventuraEstado.FINALIZADA;
132
- return AventuraEstado.EM_ANDAMENTO;
133
- }
134
- }
135
- class GrupoAventuraPersonagem {
136
- fkGruposAventurasId;
137
- fkPersonagensId;
138
- grupoAventura;
139
- personagem;
140
- constructor(fkGruposAventurasId, fkPersonagensId, grupoAventura, personagem) {
141
- this.fkGruposAventurasId = fkGruposAventurasId;
142
- this.fkPersonagensId = fkPersonagensId;
143
- this.grupoAventura = grupoAventura;
144
- this.personagem = personagem;
145
- }
146
- }
1
+ // AUTO-GENERATED FILE - DO NOT EDIT
147
2
  class Imagem {
148
3
  id;
149
4
  urlArquivo;
@@ -152,382 +7,6 @@ class Imagem {
152
7
  this.urlArquivo = urlArquivo;
153
8
  }
154
9
  }
155
- class Alcance {
156
- id;
157
- nome;
158
- numero_metros;
159
- descricao;
160
- constructor(id, nome, numero_metros, descricao) {
161
- this.id = id;
162
- this.nome = nome;
163
- this.numero_metros = numero_metros;
164
- this.descricao = descricao;
165
- }
166
- }
167
- class Atributo {
168
- id;
169
- linhaEfeito;
170
- pericias;
171
- nome;
172
- descricao;
173
- constructor(id, linhaEfeito, pericias, nome, descricao) {
174
- this.id = id;
175
- this.linhaEfeito = linhaEfeito;
176
- this.pericias = pericias;
177
- this.nome = nome;
178
- this.descricao = descricao;
179
- }
180
- get nomeAbreviado() {
181
- return this.nome.toUpperCase().slice(0, 3);
182
- }
183
- }
184
- class CategoriaRitual {
185
- id;
186
- circuloRitual;
187
- nivelRitual;
188
- valorPsSacrificado;
189
- constructor(id, circuloRitual, nivelRitual, valorPsSacrificado) {
190
- this.id = id;
191
- this.circuloRitual = circuloRitual;
192
- this.nivelRitual = nivelRitual;
193
- this.valorPsSacrificado = valorPsSacrificado;
194
- }
195
- ;
196
- get nome() { return `${this.circuloRitual.nomeCompleto} ${this.nivelRitual.nome}`; }
197
- }
198
- class CirculoRitual {
199
- id;
200
- nome;
201
- constructor(id, nome) {
202
- this.id = id;
203
- this.nome = nome;
204
- }
205
- get nomeCompleto() { return `${this.nome}º Círculo`; }
206
- }
207
- class Classe {
208
- id;
209
- nome;
210
- descricao;
211
- constructor(id, nome, descricao) {
212
- this.id = id;
213
- this.nome = nome;
214
- this.descricao = descricao;
215
- }
216
- }
217
- class Duracao {
218
- id;
219
- nome;
220
- constructor(id, nome) {
221
- this.id = id;
222
- this.nome = nome;
223
- }
224
- }
225
- class Elemento {
226
- id;
227
- nome;
228
- cores;
229
- constructor(id, nome, cores) {
230
- this.id = id;
231
- this.nome = nome;
232
- this.cores = cores;
233
- }
234
- }
235
- class EstatisticaDanificavel {
236
- id;
237
- nome;
238
- cor;
239
- descricao;
240
- constructor(id, nome, cor, descricao) {
241
- this.id = id;
242
- this.nome = nome;
243
- this.cor = cor;
244
- this.descricao = descricao;
245
- }
246
- get nomeAbreviado() { return this.nome.split(" ").filter(word => word.toLowerCase() !== "de").map(word => word[0].toUpperCase()).join(".") + "."; }
247
- }
248
- class Execucao {
249
- id;
250
- linhaEfeito;
251
- nome;
252
- constructor(id, linhaEfeito, nome) {
253
- this.id = id;
254
- this.linhaEfeito = linhaEfeito;
255
- this.nome = nome;
256
- }
257
- }
258
- class FormatoAlcance {
259
- id;
260
- nome;
261
- constructor(id, nome) {
262
- this.id = id;
263
- this.nome = nome;
264
- }
265
- }
266
- class LinhaEfeito {
267
- id;
268
- nome;
269
- constructor(id, nome) {
270
- this.id = id;
271
- this.nome = nome;
272
- }
273
- }
274
- class Nivel {
275
- id;
276
- valoNivel;
277
- constructor(id, valoNivel) {
278
- this.id = id;
279
- this.valoNivel = valoNivel;
280
- }
281
- get nomeDisplay() { return `${this.valoNivel}% EX.P.`; }
282
- }
283
- class NivelComponente {
284
- id;
285
- nome;
286
- constructor(id, nome) {
287
- this.id = id;
288
- this.nome = nome;
289
- }
290
- }
291
- class NivelProficiencia {
292
- id;
293
- nivel;
294
- constructor(id, nivel) {
295
- this.id = id;
296
- this.nivel = nivel;
297
- }
298
- }
299
- class NivelRitual {
300
- id;
301
- nome;
302
- constructor(id, nome) {
303
- this.id = id;
304
- this.nome = nome;
305
- }
306
- }
307
- class PatentePericia {
308
- id;
309
- nome;
310
- bonusPatente;
311
- cor;
312
- constructor(id, nome, bonusPatente, cor) {
313
- this.id = id;
314
- this.nome = nome;
315
- this.bonusPatente = bonusPatente;
316
- this.cor = cor;
317
- }
318
- }
319
- class Pericia {
320
- id;
321
- atributo;
322
- linhaEfeito;
323
- nome;
324
- descricao;
325
- constructor(id, atributo, linhaEfeito, nome, descricao) {
326
- this.id = id;
327
- this.atributo = atributo;
328
- this.linhaEfeito = linhaEfeito;
329
- this.nome = nome;
330
- this.descricao = descricao;
331
- }
332
- get nomeAbreviado() { return this.nome.toUpperCase().slice(0, 4); }
333
- }
334
- class Proficiencia {
335
- id;
336
- tipoProficiencia;
337
- nivelProficiencia;
338
- nome;
339
- constructor(id, tipoProficiencia, nivelProficiencia, nome) {
340
- this.id = id;
341
- this.tipoProficiencia = tipoProficiencia;
342
- this.nivelProficiencia = nivelProficiencia;
343
- this.nome = nome;
344
- }
345
- }
346
- class TipoAlvo {
347
- id;
348
- nome;
349
- constructor(id, nome) {
350
- this.id = id;
351
- this.nome = nome;
352
- }
353
- }
354
- class TipoCategoria {
355
- id;
356
- valorCategoria;
357
- constructor(id, valorCategoria) {
358
- this.id = id;
359
- this.valorCategoria = valorCategoria;
360
- }
361
- get nomeCategoria() { return `Categoria ${this.valorCategoria}`; }
362
- }
363
- class TipoDano {
364
- id;
365
- linhaEfeito;
366
- tipoDanoPertencente;
367
- nome;
368
- constructor(id, linhaEfeito, tipoDanoPertencente, nome) {
369
- this.id = id;
370
- this.linhaEfeito = linhaEfeito;
371
- this.tipoDanoPertencente = tipoDanoPertencente;
372
- this.nome = nome;
373
- }
374
- }
375
- class TipoEfeito {
376
- id;
377
- nome;
378
- nomeVisualizacao;
379
- constructor(id, nome, nomeVisualizacao) {
380
- this.id = id;
381
- this.nome = nome;
382
- this.nomeVisualizacao = nomeVisualizacao;
383
- }
384
- }
385
- class TipoItem {
386
- id;
387
- nome;
388
- constructor(id, nome) {
389
- this.id = id;
390
- this.nome = nome;
391
- }
392
- }
393
- class TipoProficiencia {
394
- id;
395
- nome;
396
- constructor(id, nome) {
397
- this.id = id;
398
- this.nome = nome;
399
- }
400
- }
401
- class PerfilAdmin {
402
- id;
403
- nome;
404
- descricao;
405
- constructor(id, nome, descricao) {
406
- this.id = id;
407
- this.nome = nome;
408
- this.descricao = descricao;
409
- }
410
- }
411
- class PerfilJogador {
412
- id;
413
- nome;
414
- descricao;
415
- constructor(id, nome, descricao) {
416
- this.id = id;
417
- this.nome = nome;
418
- this.descricao = descricao;
419
- }
420
- }
421
- class PerfilMestre {
422
- id;
423
- nome;
424
- descricao;
425
- constructor(id, nome, descricao) {
426
- this.id = id;
427
- this.nome = nome;
428
- this.descricao = descricao;
429
- }
430
- }
431
- class AtributoPersonagem {
432
- fkPersonagemId;
433
- fkAtributoId;
434
- personagem;
435
- atributo;
436
- valor;
437
- constructor(fkPersonagemId, fkAtributoId, personagem, atributo, valor) {
438
- this.fkPersonagemId = fkPersonagemId;
439
- this.fkAtributoId = fkAtributoId;
440
- this.personagem = personagem;
441
- this.atributo = atributo;
442
- this.valor = valor;
443
- }
444
- }
445
- class EstatisticaDanificavelPersonagem {
446
- fkPersonagemId;
447
- fkEstatisticaDanificavelId;
448
- personagem;
449
- estatisticaDanificavel;
450
- valorMaximo;
451
- valorAtual;
452
- constructor(fkPersonagemId, fkEstatisticaDanificavelId, personagem, estatisticaDanificavel, valorMaximo, valorAtual) {
453
- this.fkPersonagemId = fkPersonagemId;
454
- this.fkEstatisticaDanificavelId = fkEstatisticaDanificavelId;
455
- this.personagem = personagem;
456
- this.estatisticaDanificavel = estatisticaDanificavel;
457
- this.valorMaximo = valorMaximo;
458
- this.valorAtual = valorAtual;
459
- }
460
- }
461
- class InformacaoPersonagem {
462
- fkPersonagensId;
463
- personagem;
464
- nome;
465
- constructor(fkPersonagensId, personagem, nome) {
466
- this.fkPersonagensId = fkPersonagensId;
467
- this.personagem = personagem;
468
- this.nome = nome;
469
- }
470
- }
471
- class PericiaPersonagem {
472
- fkPersonagemId;
473
- fkPericiaId;
474
- personagem;
475
- pericia;
476
- patentePericia;
477
- constructor(fkPersonagemId, fkPericiaId, personagem, pericia, patentePericia) {
478
- this.fkPersonagemId = fkPersonagemId;
479
- this.fkPericiaId = fkPericiaId;
480
- this.personagem = personagem;
481
- this.pericia = pericia;
482
- this.patentePericia = patentePericia;
483
- }
484
- }
485
- class Personagem {
486
- id;
487
- tipoPersonagem;
488
- usuarioCriador;
489
- informacao;
490
- estatisticasDanificaveisPersonagem;
491
- atributosPersonagem;
492
- periciasPersonagem;
493
- constructor(id, tipoPersonagem, usuarioCriador, informacao, estatisticasDanificaveisPersonagem, atributosPersonagem, periciasPersonagem) {
494
- this.id = id;
495
- this.tipoPersonagem = tipoPersonagem;
496
- this.usuarioCriador = usuarioCriador;
497
- this.informacao = informacao;
498
- this.estatisticasDanificaveisPersonagem = estatisticasDanificaveisPersonagem;
499
- this.atributosPersonagem = atributosPersonagem;
500
- this.periciasPersonagem = periciasPersonagem;
501
- }
502
- }
503
- class ResumoPersonagemAventura {
504
- id;
505
- personagem;
506
- aventura;
507
- constructor(id, personagem, aventura) {
508
- this.id = id;
509
- this.personagem = personagem;
510
- this.aventura = aventura;
511
- }
512
- }
513
- class TipoPersonagem {
514
- id;
515
- nome;
516
- descricao;
517
- constructor(id, nome, descricao) {
518
- this.id = id;
519
- this.nome = nome;
520
- this.descricao = descricao;
521
- }
522
- }
523
- class Estudo {
524
- id;
525
- nome;
526
- constructor(id, nome) {
527
- this.id = id;
528
- this.nome = nome;
529
- }
530
- }
531
10
  class AuthSession {
532
11
  expiredAt;
533
12
  id;
@@ -540,54 +19,8 @@ class AuthSession {
540
19
  this.json = json;
541
20
  }
542
21
  }
543
- class CustomizacaoUsuario {
544
- fk__usuarios__id;
545
- usuario;
546
- personagemAvatarPrincipal;
547
- conquistaExibirPerfil1;
548
- conquistaExibirPerfil2;
549
- conquistaExibirPerfil3;
550
- constructor(fk__usuarios__id, usuario, personagemAvatarPrincipal, conquistaExibirPerfil1, conquistaExibirPerfil2, conquistaExibirPerfil3) {
551
- this.fk__usuarios__id = fk__usuarios__id;
552
- this.usuario = usuario;
553
- this.personagemAvatarPrincipal = personagemAvatarPrincipal;
554
- this.conquistaExibirPerfil1 = conquistaExibirPerfil1;
555
- this.conquistaExibirPerfil2 = conquistaExibirPerfil2;
556
- this.conquistaExibirPerfil3 = conquistaExibirPerfil3;
557
- }
558
- }
559
- class DisponibilidadeUsuario {
560
- diaDaSemana;
561
- horaInicio;
562
- horaFim;
563
- constructor(diaDaSemana, horaInicio, horaFim) {
564
- this.diaDaSemana = diaDaSemana;
565
- this.horaInicio = horaInicio;
566
- this.horaFim = horaFim;
567
- }
568
- }
569
- class Usuario {
570
- id;
571
- perfilJogador;
572
- perfilMestre;
573
- perfilAdmin;
574
- customizacao;
575
- username;
576
- email;
577
- discordId;
578
- constructor(id, perfilJogador, perfilMestre, perfilAdmin, customizacao, username, email, discordId) {
579
- this.id = id;
580
- this.perfilJogador = perfilJogador;
581
- this.perfilMestre = perfilMestre;
582
- this.perfilAdmin = perfilAdmin;
583
- this.customizacao = customizacao;
584
- this.username = username;
585
- this.email = email;
586
- this.discordId = discordId;
587
- }
588
- }
589
- ;
590
- export class DadosMinhasDisponibilidades {
22
+ // @tipoCompartilhadoFront
23
+ class DadosMinhasDisponibilidades {
591
24
  disponibilidades;
592
25
  constructor(disponibilidades) {
593
26
  this.disponibilidades = disponibilidades;
@@ -610,11 +43,11 @@ export class DadosMinhasDisponibilidades {
610
43
  });
611
44
  }
612
45
  }
613
- export var AventuraEstado;
46
+ // @tipoCompartilhadoFront
47
+ var AventuraEstado;
614
48
  (function (AventuraEstado) {
615
49
  AventuraEstado["EM_PREPARO"] = "Em Preparo";
616
50
  AventuraEstado["EM_ANDAMENTO"] = "Em Andamento";
617
51
  AventuraEstado["FINALIZADA"] = "Finalizada";
618
52
  })(AventuraEstado || (AventuraEstado = {}));
619
- ;
620
- export { ConviteGrupoAventuraPersonagem, RespostaConvite, TipoRespostaConvite, Conquista, TipoConquista, Aventura, Geracao, GrupoAventura, GrupoAventuraPersonagem, Imagem, Alcance, Atributo, CategoriaRitual, CirculoRitual, Classe, Duracao, Elemento, EstatisticaDanificavel, Execucao, FormatoAlcance, LinhaEfeito, Nivel, NivelComponente, NivelProficiencia, NivelRitual, PatentePericia, Pericia, Proficiencia, TipoAlvo, TipoCategoria, TipoDano, TipoEfeito, TipoItem, TipoProficiencia, PerfilAdmin, PerfilJogador, PerfilMestre, AtributoPersonagem, EstatisticaDanificavelPersonagem, InformacaoPersonagem, PericiaPersonagem, Personagem, ResumoPersonagemAventura, TipoPersonagem, Estudo, AuthSession, CustomizacaoUsuario, DisponibilidadeUsuario, Usuario };
53
+ export { Imagem, AuthSession, DadosMinhasDisponibilidades, AventuraEstado };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",