types-nora-api 0.0.478 → 0.0.485

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.
Files changed (81) hide show
  1. package/dist/api/graphql/core/index.d.ts +19 -1
  2. package/dist/api/graphql/core/index.js +21 -21
  3. package/dist/api/graphql/leituras/Arquivo/index.d.ts +33 -4
  4. package/dist/api/graphql/leituras/Arquivo/index.js +29 -0
  5. package/dist/api/graphql/leituras/ArquivoTipadoArte/index.d.ts +11 -5
  6. package/dist/api/graphql/leituras/ArquivoTipadoArte/index.js +6 -0
  7. package/dist/api/graphql/leituras/ArquivoTipadoInsignia/index.d.ts +45 -0
  8. package/dist/api/graphql/leituras/ArquivoTipadoInsignia/index.js +68 -0
  9. package/dist/api/graphql/leituras/ArquivoTipadoMusica/index.d.ts +46 -0
  10. package/dist/api/graphql/leituras/ArquivoTipadoMusica/index.js +70 -0
  11. package/dist/api/graphql/leituras/Aventura/index.d.ts +10 -4
  12. package/dist/api/graphql/leituras/Aventura/index.js +6 -0
  13. package/dist/api/graphql/leituras/CapacidadeInata/index.d.ts +41 -0
  14. package/dist/api/graphql/leituras/CapacidadeInata/index.js +61 -0
  15. package/dist/api/graphql/leituras/ChaveNovoAvatar/index.d.ts +13 -4
  16. package/dist/api/graphql/leituras/ChaveNovoAvatar/index.js +9 -0
  17. package/dist/api/graphql/leituras/CustomizacaoUsuario/index.d.ts +41 -0
  18. package/dist/api/graphql/leituras/CustomizacaoUsuario/index.js +56 -0
  19. package/dist/api/graphql/leituras/DetalheArquivoInterno/index.d.ts +9 -4
  20. package/dist/api/graphql/leituras/DetalheArquivoInterno/index.js +5 -0
  21. package/dist/api/graphql/leituras/Emblema/index.d.ts +19 -4
  22. package/dist/api/graphql/leituras/Emblema/index.js +15 -0
  23. package/dist/api/graphql/leituras/EventoUsuario/index.d.ts +61 -0
  24. package/dist/api/graphql/leituras/EventoUsuario/index.js +76 -0
  25. package/dist/api/graphql/leituras/GrupoAventura/index.d.ts +26 -4
  26. package/dist/api/graphql/leituras/GrupoAventura/index.js +22 -0
  27. package/dist/api/graphql/leituras/Habilidade/index.d.ts +49 -0
  28. package/dist/api/graphql/leituras/Habilidade/index.js +73 -0
  29. package/dist/api/graphql/leituras/HabilidadeEspecial/index.d.ts +56 -0
  30. package/dist/api/graphql/leituras/HabilidadeEspecial/index.js +79 -0
  31. package/dist/api/graphql/leituras/HabilidadePericia/index.d.ts +67 -0
  32. package/dist/api/graphql/leituras/HabilidadePericia/index.js +101 -0
  33. package/dist/api/graphql/leituras/PatentePericia/index.d.ts +40 -0
  34. package/dist/api/graphql/leituras/PatentePericia/index.js +58 -0
  35. package/dist/api/graphql/leituras/Pericia/index.d.ts +40 -0
  36. package/dist/api/graphql/leituras/Pericia/index.js +58 -0
  37. package/dist/api/graphql/leituras/Personagem/index.d.ts +30 -4
  38. package/dist/api/graphql/leituras/Personagem/index.js +26 -0
  39. package/dist/api/graphql/leituras/SerDetalhe/index.d.ts +63 -0
  40. package/dist/api/graphql/leituras/SerDetalhe/index.js +97 -0
  41. package/dist/api/graphql/leituras/SerRegistro/index.d.ts +50 -0
  42. package/dist/api/graphql/leituras/SerRegistro/index.js +76 -0
  43. package/dist/api/graphql/leituras/SerTipadoJogavel/index.d.ts +50 -0
  44. package/dist/api/graphql/leituras/SerTipadoJogavel/index.js +77 -0
  45. package/dist/api/graphql/leituras/SerTipadoNaoJogavel/index.d.ts +47 -0
  46. package/dist/api/graphql/leituras/SerTipadoNaoJogavel/index.js +72 -0
  47. package/dist/api/graphql/leituras/Sessao/index.d.ts +12 -4
  48. package/dist/api/graphql/leituras/Sessao/index.js +8 -0
  49. package/dist/api/graphql/leituras/TipoArquivo/index.d.ts +11 -4
  50. package/dist/api/graphql/leituras/TipoArquivo/index.js +7 -0
  51. package/dist/api/graphql/leituras/TipoHabilidade/index.d.ts +37 -0
  52. package/dist/api/graphql/leituras/TipoHabilidade/index.js +55 -0
  53. package/dist/api/graphql/leituras/TipoPersonagem/index.d.ts +12 -4
  54. package/dist/api/graphql/leituras/TipoPersonagem/index.js +8 -0
  55. package/dist/api/graphql/leituras/TipoSer/index.d.ts +37 -0
  56. package/dist/api/graphql/leituras/TipoSer/index.js +55 -0
  57. package/dist/api/graphql/leituras/Tutorial/index.d.ts +70 -0
  58. package/dist/api/graphql/leituras/Tutorial/index.js +94 -0
  59. package/dist/api/graphql/leituras/Usuario/index.d.ts +26 -4
  60. package/dist/api/graphql/leituras/Usuario/index.js +27 -1
  61. package/dist/api/graphql/leituras/UsuarioTutorial/index.d.ts +62 -0
  62. package/dist/api/graphql/leituras/UsuarioTutorial/index.js +89 -0
  63. package/dist/api/graphql/leituras/index.d.ts +72 -0
  64. package/dist/api/graphql/leituras/index.js +72 -0
  65. package/dist/api/rest/index.d.ts +82 -3
  66. package/dist/api/rest/index.js +104 -2
  67. package/dist/dominio/index.d.ts +110 -37
  68. package/dist/dominio/index.js +33 -11
  69. package/dist/dtos/index.d.ts +819 -60
  70. package/dist/dtos/index.js +32 -1
  71. package/dist/menus/index.d.ts +53 -20
  72. package/dist/menus/index.js +54 -2
  73. package/dist/paginas/index.d.ts +56 -2
  74. package/dist/paginas/index.js +78 -48
  75. package/dist/shared/index.d.ts +164 -2
  76. package/dist/shared/index.js +167 -1
  77. package/dist/uploads/index.d.ts +3 -2
  78. package/dist/uploads/index.js +11 -3
  79. package/dist/ws/index.d.ts +925 -6
  80. package/dist/ws/index.js +164 -2
  81. package/package.json +1 -1
@@ -0,0 +1,89 @@
1
+ // AUTO-GENERATED FILE - DO NOT EDIT
2
+ // Contratos GraphQL de leitura: UsuarioTutorial
3
+ import { GraphqlFiltroCampoTipo, GraphqlFiltroControleVisualizacao, criaEventosApiGraphqlLeituraPadrao, criaGraphqlCampoFiltroConsulta, criaGraphqlCampoFiltroVisualizacao, criaGraphqlDefLeituraPadrao, defineGraphqlCamposFiltroConsulta, defineGraphqlCamposFiltroVisualizacao, defineGraphqlSelect } from '../../core';
4
+ class UsuarioTutorialGraphqlDto {
5
+ id;
6
+ origem;
7
+ dataDesbloqueio;
8
+ dataPrimeiraAbertura;
9
+ dataUltimaAbertura;
10
+ dataConclusao;
11
+ pendente;
12
+ concluido;
13
+ tutorial;
14
+ }
15
+ const UsuarioTutorialGraphqlSelectExpansoes = {
16
+ tutorial: {
17
+ ativo: true,
18
+ chaveTutorial: true,
19
+ id: true,
20
+ nome: true,
21
+ },
22
+ };
23
+ const UsuarioTutorialGraphqlDef = criaGraphqlDefLeituraPadrao()({
24
+ nome: 'UsuarioTutorial',
25
+ obtemPorPK: {
26
+ nomeOperacaoGraphql: 'UsuarioTutorialPorPK',
27
+ nomeCampoQuery: 'usuarioTutorialPorPKGraphql',
28
+ nomeAliasResposta: 'usuarioTutorialPorPKGraphql',
29
+ },
30
+ obtemUm: {
31
+ nomeOperacaoGraphql: 'UsuarioTutorialUm',
32
+ nomeCampoQuery: 'usuarioTutorialGraphql',
33
+ nomeAliasResposta: 'usuarioTutorialGraphql',
34
+ },
35
+ obtemVarios: {
36
+ nomeOperacaoGraphql: 'UsuarioTutorialVarios',
37
+ nomeCampoQuery: 'usuarioTutorialsGraphql',
38
+ nomeAliasResposta: 'usuarioTutorialsGraphql',
39
+ },
40
+ totalDeRegistros: {
41
+ nomeOperacaoGraphql: 'UsuarioTutorialTotalDeRegistros',
42
+ nomeCampoQuery: 'totalDeRegistrosUsuarioTutorialsGraphql',
43
+ nomeAliasResposta: 'totalDeRegistros',
44
+ },
45
+ });
46
+ const EventosApiGraphqlUsuarioTutorial = criaEventosApiGraphqlLeituraPadrao({
47
+ def: UsuarioTutorialGraphqlDef,
48
+ expansoesSelect: UsuarioTutorialGraphqlSelectExpansoes,
49
+ });
50
+ var GraphqlTypesUsuarioTutorial;
51
+ (function (GraphqlTypesUsuarioTutorial) {
52
+ GraphqlTypesUsuarioTutorial.eventos = EventosApiGraphqlUsuarioTutorial;
53
+ GraphqlTypesUsuarioTutorial.CamposWhereTrie = {
54
+ id: true,
55
+ tutorial: {
56
+ ativo: true,
57
+ chaveTutorial: true,
58
+ id: true,
59
+ nome: true,
60
+ },
61
+ };
62
+ GraphqlTypesUsuarioTutorial.CamposOrderTrie = {
63
+ dataConclusao: true,
64
+ dataDesbloqueio: true,
65
+ dataPrimeiraAbertura: true,
66
+ dataUltimaAbertura: true,
67
+ id: true,
68
+ origem: true,
69
+ tutorial: {
70
+ ativo: true,
71
+ chaveTutorial: true,
72
+ id: true,
73
+ nome: true,
74
+ },
75
+ };
76
+ GraphqlTypesUsuarioTutorial.CamposFiltroVisualizacao = defineGraphqlCamposFiltroVisualizacao()([
77
+ criaGraphqlCampoFiltroVisualizacao('tutorial.chaveTutorial', ['tutorial', 'chaveTutorial'], GraphqlFiltroCampoTipo.STRING, false, GraphqlFiltroControleVisualizacao.TEXTO, 'Chave'),
78
+ criaGraphqlCampoFiltroVisualizacao('tutorial.nome', ['tutorial', 'nome'], GraphqlFiltroCampoTipo.STRING, false, GraphqlFiltroControleVisualizacao.TEXTO, 'Nome'),
79
+ criaGraphqlCampoFiltroVisualizacao('tutorial.ativo', ['tutorial', 'ativo'], GraphqlFiltroCampoTipo.BOOLEAN, false, GraphqlFiltroControleVisualizacao.BOOLEAN, 'Ativo')
80
+ ]);
81
+ GraphqlTypesUsuarioTutorial.CamposFiltroConsulta = defineGraphqlCamposFiltroConsulta()([
82
+ criaGraphqlCampoFiltroConsulta('tutorial.chaveTutorial', ['tutorial', 'chaveTutorial'], GraphqlFiltroCampoTipo.STRING, false, GraphqlFiltroControleVisualizacao.TEXTO, 'Chave'),
83
+ criaGraphqlCampoFiltroConsulta('tutorial.nome', ['tutorial', 'nome'], GraphqlFiltroCampoTipo.STRING, false, GraphqlFiltroControleVisualizacao.TEXTO, 'Nome'),
84
+ criaGraphqlCampoFiltroConsulta('tutorial.ativo', ['tutorial', 'ativo'], GraphqlFiltroCampoTipo.BOOLEAN, false, GraphqlFiltroControleVisualizacao.BOOLEAN, 'Ativo')
85
+ ]);
86
+ GraphqlTypesUsuarioTutorial.select = defineGraphqlSelect();
87
+ })(GraphqlTypesUsuarioTutorial || (GraphqlTypesUsuarioTutorial = {}));
88
+ ;
89
+ export { EventosApiGraphqlUsuarioTutorial, GraphqlTypesUsuarioTutorial, UsuarioTutorialGraphqlDto };
@@ -1,40 +1,94 @@
1
1
  import { EventosApiGraphqlArquivo, GraphqlTypesArquivo } from './Arquivo';
2
2
  import { EventosApiGraphqlArquivoTipadoArte, GraphqlTypesArquivoTipadoArte } from './ArquivoTipadoArte';
3
+ import { EventosApiGraphqlArquivoTipadoInsignia, GraphqlTypesArquivoTipadoInsignia } from './ArquivoTipadoInsignia';
4
+ import { EventosApiGraphqlArquivoTipadoMusica, GraphqlTypesArquivoTipadoMusica } from './ArquivoTipadoMusica';
3
5
  import { EventosApiGraphqlAventura, GraphqlTypesAventura } from './Aventura';
6
+ import { EventosApiGraphqlCapacidadeInata, GraphqlTypesCapacidadeInata } from './CapacidadeInata';
4
7
  import { EventosApiGraphqlChaveNovoAvatar, GraphqlTypesChaveNovoAvatar } from './ChaveNovoAvatar';
8
+ import { EventosApiGraphqlCustomizacaoUsuario, GraphqlTypesCustomizacaoUsuario } from './CustomizacaoUsuario';
5
9
  import { EventosApiGraphqlDetalheArquivoInterno, GraphqlTypesDetalheArquivoInterno } from './DetalheArquivoInterno';
6
10
  import { EventosApiGraphqlEmblema, GraphqlTypesEmblema } from './Emblema';
11
+ import { EventosApiGraphqlEventoUsuario, GraphqlTypesEventoUsuario } from './EventoUsuario';
7
12
  import { EventosApiGraphqlGrupoAventura, GraphqlTypesGrupoAventura } from './GrupoAventura';
13
+ import { EventosApiGraphqlHabilidade, GraphqlTypesHabilidade } from './Habilidade';
14
+ import { EventosApiGraphqlHabilidadeEspecial, GraphqlTypesHabilidadeEspecial } from './HabilidadeEspecial';
15
+ import { EventosApiGraphqlHabilidadePericia, GraphqlTypesHabilidadePericia } from './HabilidadePericia';
16
+ import { EventosApiGraphqlPatentePericia, GraphqlTypesPatentePericia } from './PatentePericia';
17
+ import { EventosApiGraphqlPericia, GraphqlTypesPericia } from './Pericia';
8
18
  import { EventosApiGraphqlPersonagem, GraphqlTypesPersonagem } from './Personagem';
19
+ import { EventosApiGraphqlSerDetalhe, GraphqlTypesSerDetalhe } from './SerDetalhe';
20
+ import { EventosApiGraphqlSerRegistro, GraphqlTypesSerRegistro } from './SerRegistro';
21
+ import { EventosApiGraphqlSerTipadoJogavel, GraphqlTypesSerTipadoJogavel } from './SerTipadoJogavel';
22
+ import { EventosApiGraphqlSerTipadoNaoJogavel, GraphqlTypesSerTipadoNaoJogavel } from './SerTipadoNaoJogavel';
9
23
  import { EventosApiGraphqlSessao, GraphqlTypesSessao } from './Sessao';
10
24
  import { EventosApiGraphqlTipoArquivo, GraphqlTypesTipoArquivo } from './TipoArquivo';
25
+ import { EventosApiGraphqlTipoHabilidade, GraphqlTypesTipoHabilidade } from './TipoHabilidade';
11
26
  import { EventosApiGraphqlTipoPersonagem, GraphqlTypesTipoPersonagem } from './TipoPersonagem';
27
+ import { EventosApiGraphqlTipoSer, GraphqlTypesTipoSer } from './TipoSer';
28
+ import { EventosApiGraphqlTutorial, GraphqlTypesTutorial } from './Tutorial';
12
29
  import { EventosApiGraphqlUsuario, GraphqlTypesUsuario } from './Usuario';
30
+ import { EventosApiGraphqlUsuarioTutorial, GraphqlTypesUsuarioTutorial } from './UsuarioTutorial';
13
31
  export * from './Arquivo';
14
32
  export * from './ArquivoTipadoArte';
33
+ export * from './ArquivoTipadoInsignia';
34
+ export * from './ArquivoTipadoMusica';
15
35
  export * from './Aventura';
36
+ export * from './CapacidadeInata';
16
37
  export * from './ChaveNovoAvatar';
38
+ export * from './CustomizacaoUsuario';
17
39
  export * from './DetalheArquivoInterno';
18
40
  export * from './Emblema';
41
+ export * from './EventoUsuario';
19
42
  export * from './GrupoAventura';
43
+ export * from './Habilidade';
44
+ export * from './HabilidadeEspecial';
45
+ export * from './HabilidadePericia';
46
+ export * from './PatentePericia';
47
+ export * from './Pericia';
20
48
  export * from './Personagem';
49
+ export * from './SerDetalhe';
50
+ export * from './SerRegistro';
51
+ export * from './SerTipadoJogavel';
52
+ export * from './SerTipadoNaoJogavel';
21
53
  export * from './Sessao';
22
54
  export * from './TipoArquivo';
55
+ export * from './TipoHabilidade';
23
56
  export * from './TipoPersonagem';
57
+ export * from './TipoSer';
58
+ export * from './Tutorial';
24
59
  export * from './Usuario';
60
+ export * from './UsuarioTutorial';
25
61
  declare const GraphqlLeituras: {
26
62
  readonly Arquivo: typeof GraphqlTypesArquivo;
27
63
  readonly ArquivoTipadoArte: typeof GraphqlTypesArquivoTipadoArte;
64
+ readonly ArquivoTipadoInsignia: typeof GraphqlTypesArquivoTipadoInsignia;
65
+ readonly ArquivoTipadoMusica: typeof GraphqlTypesArquivoTipadoMusica;
28
66
  readonly Aventura: typeof GraphqlTypesAventura;
67
+ readonly CapacidadeInata: typeof GraphqlTypesCapacidadeInata;
29
68
  readonly ChaveNovoAvatar: typeof GraphqlTypesChaveNovoAvatar;
69
+ readonly CustomizacaoUsuario: typeof GraphqlTypesCustomizacaoUsuario;
30
70
  readonly DetalheArquivoInterno: typeof GraphqlTypesDetalheArquivoInterno;
31
71
  readonly Emblema: typeof GraphqlTypesEmblema;
72
+ readonly EventoUsuario: typeof GraphqlTypesEventoUsuario;
32
73
  readonly GrupoAventura: typeof GraphqlTypesGrupoAventura;
74
+ readonly Habilidade: typeof GraphqlTypesHabilidade;
75
+ readonly HabilidadeEspecial: typeof GraphqlTypesHabilidadeEspecial;
76
+ readonly HabilidadePericia: typeof GraphqlTypesHabilidadePericia;
77
+ readonly PatentePericia: typeof GraphqlTypesPatentePericia;
78
+ readonly Pericia: typeof GraphqlTypesPericia;
33
79
  readonly Personagem: typeof GraphqlTypesPersonagem;
80
+ readonly SerDetalhe: typeof GraphqlTypesSerDetalhe;
81
+ readonly SerRegistro: typeof GraphqlTypesSerRegistro;
82
+ readonly SerTipadoJogavel: typeof GraphqlTypesSerTipadoJogavel;
83
+ readonly SerTipadoNaoJogavel: typeof GraphqlTypesSerTipadoNaoJogavel;
34
84
  readonly Sessao: typeof GraphqlTypesSessao;
35
85
  readonly TipoArquivo: typeof GraphqlTypesTipoArquivo;
86
+ readonly TipoHabilidade: typeof GraphqlTypesTipoHabilidade;
36
87
  readonly TipoPersonagem: typeof GraphqlTypesTipoPersonagem;
88
+ readonly TipoSer: typeof GraphqlTypesTipoSer;
89
+ readonly Tutorial: typeof GraphqlTypesTutorial;
37
90
  readonly Usuario: typeof GraphqlTypesUsuario;
91
+ readonly UsuarioTutorial: typeof GraphqlTypesUsuarioTutorial;
38
92
  };
39
93
  type GraphqlLeituraNome = keyof typeof GraphqlLeituras;
40
94
  type GraphqlLeituraPorNome<TNome extends GraphqlLeituraNome> = typeof GraphqlLeituras[TNome];
@@ -42,16 +96,34 @@ declare const EventosApiGraphqlV2: {
42
96
  readonly obtem: {
43
97
  readonly Arquivo: typeof EventosApiGraphqlArquivo;
44
98
  readonly ArquivoTipadoArte: typeof EventosApiGraphqlArquivoTipadoArte;
99
+ readonly ArquivoTipadoInsignia: typeof EventosApiGraphqlArquivoTipadoInsignia;
100
+ readonly ArquivoTipadoMusica: typeof EventosApiGraphqlArquivoTipadoMusica;
45
101
  readonly Aventura: typeof EventosApiGraphqlAventura;
102
+ readonly CapacidadeInata: typeof EventosApiGraphqlCapacidadeInata;
46
103
  readonly ChaveNovoAvatar: typeof EventosApiGraphqlChaveNovoAvatar;
104
+ readonly CustomizacaoUsuario: typeof EventosApiGraphqlCustomizacaoUsuario;
47
105
  readonly DetalheArquivoInterno: typeof EventosApiGraphqlDetalheArquivoInterno;
48
106
  readonly Emblema: typeof EventosApiGraphqlEmblema;
107
+ readonly EventoUsuario: typeof EventosApiGraphqlEventoUsuario;
49
108
  readonly GrupoAventura: typeof EventosApiGraphqlGrupoAventura;
109
+ readonly Habilidade: typeof EventosApiGraphqlHabilidade;
110
+ readonly HabilidadeEspecial: typeof EventosApiGraphqlHabilidadeEspecial;
111
+ readonly HabilidadePericia: typeof EventosApiGraphqlHabilidadePericia;
112
+ readonly PatentePericia: typeof EventosApiGraphqlPatentePericia;
113
+ readonly Pericia: typeof EventosApiGraphqlPericia;
50
114
  readonly Personagem: typeof EventosApiGraphqlPersonagem;
115
+ readonly SerDetalhe: typeof EventosApiGraphqlSerDetalhe;
116
+ readonly SerRegistro: typeof EventosApiGraphqlSerRegistro;
117
+ readonly SerTipadoJogavel: typeof EventosApiGraphqlSerTipadoJogavel;
118
+ readonly SerTipadoNaoJogavel: typeof EventosApiGraphqlSerTipadoNaoJogavel;
51
119
  readonly Sessao: typeof EventosApiGraphqlSessao;
52
120
  readonly TipoArquivo: typeof EventosApiGraphqlTipoArquivo;
121
+ readonly TipoHabilidade: typeof EventosApiGraphqlTipoHabilidade;
53
122
  readonly TipoPersonagem: typeof EventosApiGraphqlTipoPersonagem;
123
+ readonly TipoSer: typeof EventosApiGraphqlTipoSer;
124
+ readonly Tutorial: typeof EventosApiGraphqlTutorial;
54
125
  readonly Usuario: typeof EventosApiGraphqlUsuario;
126
+ readonly UsuarioTutorial: typeof EventosApiGraphqlUsuarioTutorial;
55
127
  };
56
128
  };
57
129
  export { EventosApiGraphqlV2, GraphqlLeituras, GraphqlLeituraNome, GraphqlLeituraPorNome };
@@ -2,57 +2,129 @@
2
2
  // Contratos GraphQL de leitura
3
3
  import { EventosApiGraphqlArquivo, GraphqlTypesArquivo } from './Arquivo';
4
4
  import { EventosApiGraphqlArquivoTipadoArte, GraphqlTypesArquivoTipadoArte } from './ArquivoTipadoArte';
5
+ import { EventosApiGraphqlArquivoTipadoInsignia, GraphqlTypesArquivoTipadoInsignia } from './ArquivoTipadoInsignia';
6
+ import { EventosApiGraphqlArquivoTipadoMusica, GraphqlTypesArquivoTipadoMusica } from './ArquivoTipadoMusica';
5
7
  import { EventosApiGraphqlAventura, GraphqlTypesAventura } from './Aventura';
8
+ import { EventosApiGraphqlCapacidadeInata, GraphqlTypesCapacidadeInata } from './CapacidadeInata';
6
9
  import { EventosApiGraphqlChaveNovoAvatar, GraphqlTypesChaveNovoAvatar } from './ChaveNovoAvatar';
10
+ import { EventosApiGraphqlCustomizacaoUsuario, GraphqlTypesCustomizacaoUsuario } from './CustomizacaoUsuario';
7
11
  import { EventosApiGraphqlDetalheArquivoInterno, GraphqlTypesDetalheArquivoInterno } from './DetalheArquivoInterno';
8
12
  import { EventosApiGraphqlEmblema, GraphqlTypesEmblema } from './Emblema';
13
+ import { EventosApiGraphqlEventoUsuario, GraphqlTypesEventoUsuario } from './EventoUsuario';
9
14
  import { EventosApiGraphqlGrupoAventura, GraphqlTypesGrupoAventura } from './GrupoAventura';
15
+ import { EventosApiGraphqlHabilidade, GraphqlTypesHabilidade } from './Habilidade';
16
+ import { EventosApiGraphqlHabilidadeEspecial, GraphqlTypesHabilidadeEspecial } from './HabilidadeEspecial';
17
+ import { EventosApiGraphqlHabilidadePericia, GraphqlTypesHabilidadePericia } from './HabilidadePericia';
18
+ import { EventosApiGraphqlPatentePericia, GraphqlTypesPatentePericia } from './PatentePericia';
19
+ import { EventosApiGraphqlPericia, GraphqlTypesPericia } from './Pericia';
10
20
  import { EventosApiGraphqlPersonagem, GraphqlTypesPersonagem } from './Personagem';
21
+ import { EventosApiGraphqlSerDetalhe, GraphqlTypesSerDetalhe } from './SerDetalhe';
22
+ import { EventosApiGraphqlSerRegistro, GraphqlTypesSerRegistro } from './SerRegistro';
23
+ import { EventosApiGraphqlSerTipadoJogavel, GraphqlTypesSerTipadoJogavel } from './SerTipadoJogavel';
24
+ import { EventosApiGraphqlSerTipadoNaoJogavel, GraphqlTypesSerTipadoNaoJogavel } from './SerTipadoNaoJogavel';
11
25
  import { EventosApiGraphqlSessao, GraphqlTypesSessao } from './Sessao';
12
26
  import { EventosApiGraphqlTipoArquivo, GraphqlTypesTipoArquivo } from './TipoArquivo';
27
+ import { EventosApiGraphqlTipoHabilidade, GraphqlTypesTipoHabilidade } from './TipoHabilidade';
13
28
  import { EventosApiGraphqlTipoPersonagem, GraphqlTypesTipoPersonagem } from './TipoPersonagem';
29
+ import { EventosApiGraphqlTipoSer, GraphqlTypesTipoSer } from './TipoSer';
30
+ import { EventosApiGraphqlTutorial, GraphqlTypesTutorial } from './Tutorial';
14
31
  import { EventosApiGraphqlUsuario, GraphqlTypesUsuario } from './Usuario';
32
+ import { EventosApiGraphqlUsuarioTutorial, GraphqlTypesUsuarioTutorial } from './UsuarioTutorial';
15
33
  export * from './Arquivo';
16
34
  export * from './ArquivoTipadoArte';
35
+ export * from './ArquivoTipadoInsignia';
36
+ export * from './ArquivoTipadoMusica';
17
37
  export * from './Aventura';
38
+ export * from './CapacidadeInata';
18
39
  export * from './ChaveNovoAvatar';
40
+ export * from './CustomizacaoUsuario';
19
41
  export * from './DetalheArquivoInterno';
20
42
  export * from './Emblema';
43
+ export * from './EventoUsuario';
21
44
  export * from './GrupoAventura';
45
+ export * from './Habilidade';
46
+ export * from './HabilidadeEspecial';
47
+ export * from './HabilidadePericia';
48
+ export * from './PatentePericia';
49
+ export * from './Pericia';
22
50
  export * from './Personagem';
51
+ export * from './SerDetalhe';
52
+ export * from './SerRegistro';
53
+ export * from './SerTipadoJogavel';
54
+ export * from './SerTipadoNaoJogavel';
23
55
  export * from './Sessao';
24
56
  export * from './TipoArquivo';
57
+ export * from './TipoHabilidade';
25
58
  export * from './TipoPersonagem';
59
+ export * from './TipoSer';
60
+ export * from './Tutorial';
26
61
  export * from './Usuario';
62
+ export * from './UsuarioTutorial';
27
63
  const GraphqlLeituras = {
28
64
  Arquivo: GraphqlTypesArquivo,
29
65
  ArquivoTipadoArte: GraphqlTypesArquivoTipadoArte,
66
+ ArquivoTipadoInsignia: GraphqlTypesArquivoTipadoInsignia,
67
+ ArquivoTipadoMusica: GraphqlTypesArquivoTipadoMusica,
30
68
  Aventura: GraphqlTypesAventura,
69
+ CapacidadeInata: GraphqlTypesCapacidadeInata,
31
70
  ChaveNovoAvatar: GraphqlTypesChaveNovoAvatar,
71
+ CustomizacaoUsuario: GraphqlTypesCustomizacaoUsuario,
32
72
  DetalheArquivoInterno: GraphqlTypesDetalheArquivoInterno,
33
73
  Emblema: GraphqlTypesEmblema,
74
+ EventoUsuario: GraphqlTypesEventoUsuario,
34
75
  GrupoAventura: GraphqlTypesGrupoAventura,
76
+ Habilidade: GraphqlTypesHabilidade,
77
+ HabilidadeEspecial: GraphqlTypesHabilidadeEspecial,
78
+ HabilidadePericia: GraphqlTypesHabilidadePericia,
79
+ PatentePericia: GraphqlTypesPatentePericia,
80
+ Pericia: GraphqlTypesPericia,
35
81
  Personagem: GraphqlTypesPersonagem,
82
+ SerDetalhe: GraphqlTypesSerDetalhe,
83
+ SerRegistro: GraphqlTypesSerRegistro,
84
+ SerTipadoJogavel: GraphqlTypesSerTipadoJogavel,
85
+ SerTipadoNaoJogavel: GraphqlTypesSerTipadoNaoJogavel,
36
86
  Sessao: GraphqlTypesSessao,
37
87
  TipoArquivo: GraphqlTypesTipoArquivo,
88
+ TipoHabilidade: GraphqlTypesTipoHabilidade,
38
89
  TipoPersonagem: GraphqlTypesTipoPersonagem,
90
+ TipoSer: GraphqlTypesTipoSer,
91
+ Tutorial: GraphqlTypesTutorial,
39
92
  Usuario: GraphqlTypesUsuario,
93
+ UsuarioTutorial: GraphqlTypesUsuarioTutorial,
40
94
  };
41
95
  const EventosApiGraphqlV2 = {
42
96
  get obtem() {
43
97
  return {
44
98
  get Arquivo() { return EventosApiGraphqlArquivo; },
45
99
  get ArquivoTipadoArte() { return EventosApiGraphqlArquivoTipadoArte; },
100
+ get ArquivoTipadoInsignia() { return EventosApiGraphqlArquivoTipadoInsignia; },
101
+ get ArquivoTipadoMusica() { return EventosApiGraphqlArquivoTipadoMusica; },
46
102
  get Aventura() { return EventosApiGraphqlAventura; },
103
+ get CapacidadeInata() { return EventosApiGraphqlCapacidadeInata; },
47
104
  get ChaveNovoAvatar() { return EventosApiGraphqlChaveNovoAvatar; },
105
+ get CustomizacaoUsuario() { return EventosApiGraphqlCustomizacaoUsuario; },
48
106
  get DetalheArquivoInterno() { return EventosApiGraphqlDetalheArquivoInterno; },
49
107
  get Emblema() { return EventosApiGraphqlEmblema; },
108
+ get EventoUsuario() { return EventosApiGraphqlEventoUsuario; },
50
109
  get GrupoAventura() { return EventosApiGraphqlGrupoAventura; },
110
+ get Habilidade() { return EventosApiGraphqlHabilidade; },
111
+ get HabilidadeEspecial() { return EventosApiGraphqlHabilidadeEspecial; },
112
+ get HabilidadePericia() { return EventosApiGraphqlHabilidadePericia; },
113
+ get PatentePericia() { return EventosApiGraphqlPatentePericia; },
114
+ get Pericia() { return EventosApiGraphqlPericia; },
51
115
  get Personagem() { return EventosApiGraphqlPersonagem; },
116
+ get SerDetalhe() { return EventosApiGraphqlSerDetalhe; },
117
+ get SerRegistro() { return EventosApiGraphqlSerRegistro; },
118
+ get SerTipadoJogavel() { return EventosApiGraphqlSerTipadoJogavel; },
119
+ get SerTipadoNaoJogavel() { return EventosApiGraphqlSerTipadoNaoJogavel; },
52
120
  get Sessao() { return EventosApiGraphqlSessao; },
53
121
  get TipoArquivo() { return EventosApiGraphqlTipoArquivo; },
122
+ get TipoHabilidade() { return EventosApiGraphqlTipoHabilidade; },
54
123
  get TipoPersonagem() { return EventosApiGraphqlTipoPersonagem; },
124
+ get TipoSer() { return EventosApiGraphqlTipoSer; },
125
+ get Tutorial() { return EventosApiGraphqlTutorial; },
55
126
  get Usuario() { return EventosApiGraphqlUsuario; },
127
+ get UsuarioTutorial() { return EventosApiGraphqlUsuarioTutorial; },
56
128
  };
57
129
  },
58
130
  };
@@ -1,3 +1,5 @@
1
+ import type { AnaliseTestesPericiaInput, ResultadoAnaliseTestesPericia } from '../../dtos';
2
+ import type { FichaDoSerCriada, PAYLOAD__CriarFichaDoSer, PAYLOAD__CriarSerRegistroComDetalhe, PAYLOAD__SalvarCasoSimplesProjeto3D, PAYLOAD__SalvarMembrosSerJogavel, PAYLOAD__SalvarProjeto3D, Projeto3DMinimoPersistido, Projeto3DResumoPersistido, SerJogavelMembrosPersistido, SerRegistroCriado } from '../../shared';
1
3
  declare enum ApiTransporte {
2
4
  GRAPHQL = "GRAPHQL",
3
5
  REST = "REST"
@@ -14,24 +16,73 @@ declare enum ApiMetodoHttp {
14
16
  PATCH = "PATCH",
15
17
  DELETE = "DELETE"
16
18
  }
17
- type ApiOperacaoRestGet<TParametros extends object, TResposta extends object> = {
19
+ type ApiOperacaoRestGet<TParametros extends object, TResposta> = {
18
20
  readonly transporte: ApiTransporte.REST;
19
21
  readonly tipoRequisicao: ApiTipoRequisicao.GET;
20
22
  readonly metodoHttp: ApiMetodoHttp.GET;
21
23
  readonly nome: string;
22
24
  readonly endpoint: string;
23
25
  readonly montaQueryString: (parametros: TParametros) => string;
26
+ readonly __tipoResposta?: TResposta;
24
27
  };
25
- declare function createApiRestGet<TParametros extends object, TResposta extends object>(definicao: ApiOperacaoRestGet<TParametros, TResposta>): ApiOperacaoRestGet<TParametros, TResposta>;
28
+ declare function createApiRestGet<TParametros extends object, TResposta>(definicao: ApiOperacaoRestGet<TParametros, TResposta>): ApiOperacaoRestGet<TParametros, TResposta>;
29
+ type ApiOperacaoRestPost<TCorpo extends object, TResposta> = {
30
+ readonly transporte: ApiTransporte.REST;
31
+ readonly tipoRequisicao: ApiTipoRequisicao.POST;
32
+ readonly metodoHttp: ApiMetodoHttp.POST;
33
+ readonly nome: string;
34
+ readonly endpoint: string;
35
+ readonly __tipoCorpo?: TCorpo;
36
+ readonly __tipoResposta?: TResposta;
37
+ };
38
+ declare function createApiRestPost<TCorpo extends object, TResposta>(definicao: ApiOperacaoRestPost<TCorpo, TResposta>): ApiOperacaoRestPost<TCorpo, TResposta>;
26
39
  type TesteRestParametros = Record<string, never>;
27
40
  type TesteRestResposta = {
28
41
  testeRest: string;
29
42
  };
43
+ type ConsultaTecnicaProjeto3DParametros = {
44
+ readonly idProjeto: number;
45
+ };
46
+ type ListagemProjeto3DParametros = Record<string, never>;
47
+ type ConsultaProjeto3DParametros = {
48
+ readonly idProjeto: number;
49
+ };
50
+ type SerJogavelMembrosObterParametros = {
51
+ readonly fkSerId: number;
52
+ };
30
53
  declare namespace EventosApiRest {
31
54
  const GET: {
32
55
  readonly Rest: {
33
56
  readonly testeRest: ApiOperacaoRestGet<TesteRestParametros, TesteRestResposta>;
34
57
  };
58
+ readonly Projeto3D: {
59
+ readonly listagem: ApiOperacaoRestGet<ListagemProjeto3DParametros, Projeto3DResumoPersistido[]>;
60
+ readonly consulta: ApiOperacaoRestGet<ConsultaProjeto3DParametros, Projeto3DMinimoPersistido | null>;
61
+ };
62
+ readonly Projeto3DTecnico: {
63
+ readonly consultaRegistro: ApiOperacaoRestGet<ConsultaTecnicaProjeto3DParametros, Projeto3DMinimoPersistido | null>;
64
+ };
65
+ readonly SeresJogaveisMembros: {
66
+ readonly obter: ApiOperacaoRestGet<SerJogavelMembrosObterParametros, SerJogavelMembrosPersistido>;
67
+ };
68
+ };
69
+ const POST: {
70
+ readonly Projeto3D: {
71
+ readonly salvar: ApiOperacaoRestPost<PAYLOAD__SalvarProjeto3D, Projeto3DMinimoPersistido>;
72
+ readonly salvaCasoSimples: ApiOperacaoRestPost<PAYLOAD__SalvarCasoSimplesProjeto3D, Projeto3DMinimoPersistido>;
73
+ };
74
+ readonly TestePericia: {
75
+ readonly analisar: ApiOperacaoRestPost<AnaliseTestesPericiaInput, ResultadoAnaliseTestesPericia>;
76
+ };
77
+ readonly SerRegistro: {
78
+ readonly criarComDetalhe: ApiOperacaoRestPost<PAYLOAD__CriarSerRegistroComDetalhe, SerRegistroCriado>;
79
+ };
80
+ readonly SeresJogaveisMembros: {
81
+ readonly salvar: ApiOperacaoRestPost<PAYLOAD__SalvarMembrosSerJogavel, SerJogavelMembrosPersistido>;
82
+ };
83
+ readonly SeresJogaveisFichas: {
84
+ readonly criar: ApiOperacaoRestPost<PAYLOAD__CriarFichaDoSer, FichaDoSerCriada>;
85
+ };
35
86
  };
36
87
  }
37
88
  declare namespace EventosApi {
@@ -39,6 +90,34 @@ declare namespace EventosApi {
39
90
  readonly Rest: {
40
91
  readonly testeRest: ApiOperacaoRestGet<TesteRestParametros, TesteRestResposta>;
41
92
  };
93
+ readonly Projeto3D: {
94
+ readonly listagem: ApiOperacaoRestGet<ListagemProjeto3DParametros, Projeto3DResumoPersistido[]>;
95
+ readonly consulta: ApiOperacaoRestGet<ConsultaProjeto3DParametros, Projeto3DMinimoPersistido | null>;
96
+ };
97
+ readonly Projeto3DTecnico: {
98
+ readonly consultaRegistro: ApiOperacaoRestGet<ConsultaTecnicaProjeto3DParametros, Projeto3DMinimoPersistido | null>;
99
+ };
100
+ readonly SeresJogaveisMembros: {
101
+ readonly obter: ApiOperacaoRestGet<SerJogavelMembrosObterParametros, SerJogavelMembrosPersistido>;
102
+ };
103
+ };
104
+ const POST: {
105
+ readonly Projeto3D: {
106
+ readonly salvar: ApiOperacaoRestPost<PAYLOAD__SalvarProjeto3D, Projeto3DMinimoPersistido>;
107
+ readonly salvaCasoSimples: ApiOperacaoRestPost<PAYLOAD__SalvarCasoSimplesProjeto3D, Projeto3DMinimoPersistido>;
108
+ };
109
+ readonly TestePericia: {
110
+ readonly analisar: ApiOperacaoRestPost<AnaliseTestesPericiaInput, ResultadoAnaliseTestesPericia>;
111
+ };
112
+ readonly SerRegistro: {
113
+ readonly criarComDetalhe: ApiOperacaoRestPost<PAYLOAD__CriarSerRegistroComDetalhe, SerRegistroCriado>;
114
+ };
115
+ readonly SeresJogaveisMembros: {
116
+ readonly salvar: ApiOperacaoRestPost<PAYLOAD__SalvarMembrosSerJogavel, SerJogavelMembrosPersistido>;
117
+ };
118
+ readonly SeresJogaveisFichas: {
119
+ readonly criar: ApiOperacaoRestPost<PAYLOAD__CriarFichaDoSer, FichaDoSerCriada>;
120
+ };
42
121
  };
43
122
  }
44
- export { ApiMetodoHttp, ApiOperacaoRestGet, ApiTipoRequisicao, ApiTransporte, EventosApi, EventosApiRest, TesteRestParametros, TesteRestResposta, createApiRestGet };
123
+ export { ApiMetodoHttp, ApiOperacaoRestGet, ApiOperacaoRestPost, ApiTipoRequisicao, ApiTransporte, ConsultaProjeto3DParametros, ConsultaTecnicaProjeto3DParametros, EventosApi, EventosApiRest, ListagemProjeto3DParametros, SerJogavelMembrosObterParametros, TesteRestParametros, TesteRestResposta, createApiRestGet, createApiRestPost };
@@ -20,6 +20,7 @@ var ApiMetodoHttp;
20
20
  ApiMetodoHttp["DELETE"] = "DELETE";
21
21
  })(ApiMetodoHttp || (ApiMetodoHttp = {}));
22
22
  function createApiRestGet(definicao) { return definicao; }
23
+ function createApiRestPost(definicao) { return definicao; }
23
24
  var EventosApiRest;
24
25
  (function (EventosApiRest) {
25
26
  const Rest = {
@@ -32,12 +33,113 @@ var EventosApiRest;
32
33
  montaQueryString: () => '',
33
34
  }),
34
35
  };
35
- EventosApiRest.GET = { Rest };
36
+ const Projeto3D = {
37
+ listagem: createApiRestGet({
38
+ transporte: ApiTransporte.REST,
39
+ tipoRequisicao: ApiTipoRequisicao.GET,
40
+ metodoHttp: ApiMetodoHttp.GET,
41
+ nome: 'listagemProjeto3D',
42
+ endpoint: '/api/projetos-3d/listagem',
43
+ montaQueryString: () => '',
44
+ }),
45
+ consulta: createApiRestGet({
46
+ transporte: ApiTransporte.REST,
47
+ tipoRequisicao: ApiTipoRequisicao.GET,
48
+ metodoHttp: ApiMetodoHttp.GET,
49
+ nome: 'consultaProjeto3D',
50
+ endpoint: '/api/projetos-3d/consulta',
51
+ montaQueryString: parametros => `idProjeto=${encodeURIComponent(String(parametros.idProjeto))}`,
52
+ }),
53
+ };
54
+ const Projeto3DPost = {
55
+ salvar: createApiRestPost({
56
+ transporte: ApiTransporte.REST,
57
+ tipoRequisicao: ApiTipoRequisicao.POST,
58
+ metodoHttp: ApiMetodoHttp.POST,
59
+ nome: 'salvarProjeto3D',
60
+ endpoint: '/api/projetos-3d/salvar',
61
+ }),
62
+ salvaCasoSimples: createApiRestPost({
63
+ transporte: ApiTransporte.REST,
64
+ tipoRequisicao: ApiTipoRequisicao.POST,
65
+ metodoHttp: ApiMetodoHttp.POST,
66
+ nome: 'salvaCasoSimplesProjeto3D',
67
+ endpoint: '/api/projetos-3d/salvar-caso-simples',
68
+ }),
69
+ };
70
+ const TestePericiaPost = {
71
+ analisar: createApiRestPost({
72
+ transporte: ApiTransporte.REST,
73
+ tipoRequisicao: ApiTipoRequisicao.POST,
74
+ metodoHttp: ApiMetodoHttp.POST,
75
+ nome: 'analisarTestesPericia',
76
+ endpoint: '/api/testes-de-pericia/analisar',
77
+ }),
78
+ };
79
+ const Projeto3DTecnico = {
80
+ consultaRegistro: createApiRestGet({
81
+ transporte: ApiTransporte.REST,
82
+ tipoRequisicao: ApiTipoRequisicao.GET,
83
+ metodoHttp: ApiMetodoHttp.GET,
84
+ nome: 'consultaRegistroProjeto3D',
85
+ endpoint: '/api/projetos-3d/tecnico/consulta',
86
+ montaQueryString: parametros => `idProjeto=${encodeURIComponent(String(parametros.idProjeto))}`,
87
+ }),
88
+ };
89
+ const SerRegistroPost = {
90
+ criarComDetalhe: createApiRestPost({
91
+ transporte: ApiTransporte.REST,
92
+ tipoRequisicao: ApiTipoRequisicao.POST,
93
+ metodoHttp: ApiMetodoHttp.POST,
94
+ nome: 'criarSerRegistroComDetalhe',
95
+ endpoint: '/seres/criaSerComDetalhe',
96
+ }),
97
+ };
98
+ const SeresJogaveisMembrosGet = {
99
+ obter: createApiRestGet({
100
+ transporte: ApiTransporte.REST,
101
+ tipoRequisicao: ApiTipoRequisicao.GET,
102
+ metodoHttp: ApiMetodoHttp.GET,
103
+ nome: 'obterMembrosSerJogavel',
104
+ endpoint: '/seres_jogaveis_membros/obter',
105
+ montaQueryString: parametros => `fkSerId=${encodeURIComponent(String(parametros.fkSerId))}`,
106
+ }),
107
+ };
108
+ const SeresJogaveisMembrosPost = {
109
+ salvar: createApiRestPost({
110
+ transporte: ApiTransporte.REST,
111
+ tipoRequisicao: ApiTipoRequisicao.POST,
112
+ metodoHttp: ApiMetodoHttp.POST,
113
+ nome: 'salvarMembrosSerJogavel',
114
+ endpoint: '/seres_jogaveis_membros/salvar',
115
+ }),
116
+ };
117
+ const SeresJogaveisFichasPost = {
118
+ criar: createApiRestPost({
119
+ transporte: ApiTransporte.REST,
120
+ tipoRequisicao: ApiTipoRequisicao.POST,
121
+ metodoHttp: ApiMetodoHttp.POST,
122
+ nome: 'criarFichaDoSer',
123
+ endpoint: '/seres_jogaveis_fichas/criar',
124
+ }),
125
+ };
126
+ EventosApiRest.GET = { Rest, Projeto3D, Projeto3DTecnico, SeresJogaveisMembros: SeresJogaveisMembrosGet };
127
+ EventosApiRest.POST = { Projeto3D: Projeto3DPost, TestePericia: TestePericiaPost, SerRegistro: SerRegistroPost, SeresJogaveisMembros: SeresJogaveisMembrosPost, SeresJogaveisFichas: SeresJogaveisFichasPost };
36
128
  })(EventosApiRest || (EventosApiRest = {}));
37
129
  var EventosApi;
38
130
  (function (EventosApi) {
39
131
  EventosApi.GET = {
40
132
  Rest: EventosApiRest.GET.Rest,
133
+ Projeto3D: EventosApiRest.GET.Projeto3D,
134
+ Projeto3DTecnico: EventosApiRest.GET.Projeto3DTecnico,
135
+ SeresJogaveisMembros: EventosApiRest.GET.SeresJogaveisMembros,
136
+ };
137
+ EventosApi.POST = {
138
+ Projeto3D: EventosApiRest.POST.Projeto3D,
139
+ TestePericia: EventosApiRest.POST.TestePericia,
140
+ SerRegistro: EventosApiRest.POST.SerRegistro,
141
+ SeresJogaveisMembros: EventosApiRest.POST.SeresJogaveisMembros,
142
+ SeresJogaveisFichas: EventosApiRest.POST.SeresJogaveisFichas,
41
143
  };
42
144
  })(EventosApi || (EventosApi = {}));
43
- export { ApiMetodoHttp, ApiTipoRequisicao, ApiTransporte, EventosApi, EventosApiRest, createApiRestGet };
145
+ export { ApiMetodoHttp, ApiTipoRequisicao, ApiTransporte, EventosApi, EventosApiRest, createApiRestGet, createApiRestPost };