types-nora-api 0.0.479 → 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.
- package/dist/api/graphql/core/index.d.ts +19 -1
- package/dist/api/graphql/core/index.js +21 -21
- package/dist/api/graphql/leituras/Arquivo/index.d.ts +33 -4
- package/dist/api/graphql/leituras/Arquivo/index.js +29 -0
- package/dist/api/graphql/leituras/ArquivoTipadoArte/index.d.ts +11 -5
- package/dist/api/graphql/leituras/ArquivoTipadoArte/index.js +6 -0
- package/dist/api/graphql/leituras/ArquivoTipadoInsignia/index.d.ts +45 -0
- package/dist/api/graphql/leituras/ArquivoTipadoInsignia/index.js +68 -0
- package/dist/api/graphql/leituras/ArquivoTipadoMusica/index.d.ts +46 -0
- package/dist/api/graphql/leituras/ArquivoTipadoMusica/index.js +70 -0
- package/dist/api/graphql/leituras/Aventura/index.d.ts +10 -4
- package/dist/api/graphql/leituras/Aventura/index.js +6 -0
- package/dist/api/graphql/leituras/CapacidadeInata/index.d.ts +41 -0
- package/dist/api/graphql/leituras/CapacidadeInata/index.js +61 -0
- package/dist/api/graphql/leituras/ChaveNovoAvatar/index.d.ts +13 -4
- package/dist/api/graphql/leituras/ChaveNovoAvatar/index.js +9 -0
- package/dist/api/graphql/leituras/CustomizacaoUsuario/index.d.ts +41 -0
- package/dist/api/graphql/leituras/CustomizacaoUsuario/index.js +56 -0
- package/dist/api/graphql/leituras/DetalheArquivoInterno/index.d.ts +9 -4
- package/dist/api/graphql/leituras/DetalheArquivoInterno/index.js +5 -0
- package/dist/api/graphql/leituras/Emblema/index.d.ts +19 -4
- package/dist/api/graphql/leituras/Emblema/index.js +15 -0
- package/dist/api/graphql/leituras/EventoUsuario/index.d.ts +61 -0
- package/dist/api/graphql/leituras/EventoUsuario/index.js +76 -0
- package/dist/api/graphql/leituras/GrupoAventura/index.d.ts +26 -4
- package/dist/api/graphql/leituras/GrupoAventura/index.js +22 -0
- package/dist/api/graphql/leituras/Habilidade/index.d.ts +49 -0
- package/dist/api/graphql/leituras/Habilidade/index.js +73 -0
- package/dist/api/graphql/leituras/HabilidadeEspecial/index.d.ts +56 -0
- package/dist/api/graphql/leituras/HabilidadeEspecial/index.js +79 -0
- package/dist/api/graphql/leituras/HabilidadePericia/index.d.ts +67 -0
- package/dist/api/graphql/leituras/HabilidadePericia/index.js +101 -0
- package/dist/api/graphql/leituras/PatentePericia/index.d.ts +40 -0
- package/dist/api/graphql/leituras/PatentePericia/index.js +58 -0
- package/dist/api/graphql/leituras/Pericia/index.d.ts +40 -0
- package/dist/api/graphql/leituras/Pericia/index.js +58 -0
- package/dist/api/graphql/leituras/Personagem/index.d.ts +30 -4
- package/dist/api/graphql/leituras/Personagem/index.js +26 -0
- package/dist/api/graphql/leituras/SerDetalhe/index.d.ts +63 -0
- package/dist/api/graphql/leituras/SerDetalhe/index.js +97 -0
- package/dist/api/graphql/leituras/SerRegistro/index.d.ts +50 -0
- package/dist/api/graphql/leituras/SerRegistro/index.js +76 -0
- package/dist/api/graphql/leituras/SerTipadoJogavel/index.d.ts +50 -0
- package/dist/api/graphql/leituras/SerTipadoJogavel/index.js +77 -0
- package/dist/api/graphql/leituras/SerTipadoNaoJogavel/index.d.ts +47 -0
- package/dist/api/graphql/leituras/SerTipadoNaoJogavel/index.js +72 -0
- package/dist/api/graphql/leituras/Sessao/index.d.ts +12 -4
- package/dist/api/graphql/leituras/Sessao/index.js +8 -0
- package/dist/api/graphql/leituras/TipoArquivo/index.d.ts +11 -4
- package/dist/api/graphql/leituras/TipoArquivo/index.js +7 -0
- package/dist/api/graphql/leituras/TipoHabilidade/index.d.ts +37 -0
- package/dist/api/graphql/leituras/TipoHabilidade/index.js +55 -0
- package/dist/api/graphql/leituras/TipoPersonagem/index.d.ts +12 -4
- package/dist/api/graphql/leituras/TipoPersonagem/index.js +8 -0
- package/dist/api/graphql/leituras/TipoSer/index.d.ts +37 -0
- package/dist/api/graphql/leituras/TipoSer/index.js +55 -0
- package/dist/api/graphql/leituras/Tutorial/index.d.ts +70 -0
- package/dist/api/graphql/leituras/Tutorial/index.js +94 -0
- package/dist/api/graphql/leituras/Usuario/index.d.ts +26 -4
- package/dist/api/graphql/leituras/Usuario/index.js +27 -1
- package/dist/api/graphql/leituras/UsuarioTutorial/index.d.ts +62 -0
- package/dist/api/graphql/leituras/UsuarioTutorial/index.js +89 -0
- package/dist/api/graphql/leituras/index.d.ts +72 -0
- package/dist/api/graphql/leituras/index.js +72 -0
- package/dist/api/rest/index.d.ts +82 -3
- package/dist/api/rest/index.js +104 -2
- package/dist/dominio/index.d.ts +110 -37
- package/dist/dominio/index.js +33 -11
- package/dist/dtos/index.d.ts +819 -60
- package/dist/dtos/index.js +32 -1
- package/dist/menus/index.d.ts +53 -20
- package/dist/menus/index.js +54 -2
- package/dist/paginas/index.d.ts +56 -2
- package/dist/paginas/index.js +78 -48
- package/dist/shared/index.d.ts +164 -2
- package/dist/shared/index.js +167 -1
- package/dist/uploads/index.d.ts +3 -2
- package/dist/uploads/index.js +11 -3
- package/dist/ws/index.d.ts +925 -6
- package/dist/ws/index.js +164 -2
- package/package.json +1 -1
package/dist/ws/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// AUTO-GENERATED FILE - DO NOT EDIT
|
|
2
2
|
// Contratos WebSocket
|
|
3
|
+
const PALCO_ID_SALA = "palco-global";
|
|
4
|
+
const PALCO_ID_LOBBY = "palco-global-lobby";
|
|
5
|
+
// Nome fixo da room no LiveKit. Única room de palco por vez no MVP.
|
|
6
|
+
const PALCO_LIVEKIT_ROOM = "palco";
|
|
3
7
|
const TESTE_VOZ_ID_SALA = "testevoz-global";
|
|
4
8
|
function isWsErrorResponse(payload) { return !!payload && typeof payload === "object" && payload._wsErro === true; }
|
|
5
9
|
function isWsUnauthorizedErrorResponse(payload) { return isWsErrorResponse(payload) && payload.code === "UNAUTHORIZED"; }
|
|
@@ -32,17 +36,55 @@ var EventosWebSocket;
|
|
|
32
36
|
},
|
|
33
37
|
});
|
|
34
38
|
const ExecucaoDeJogo = createGateway({
|
|
39
|
+
executaAcao: {
|
|
40
|
+
tipo: 'envia',
|
|
41
|
+
payload: {},
|
|
42
|
+
},
|
|
43
|
+
executaAcaoSerNaSala: {
|
|
44
|
+
tipo: 'envia',
|
|
45
|
+
payload: {},
|
|
46
|
+
},
|
|
47
|
+
jogadorEsperaSalaJogo: {
|
|
48
|
+
tipo: 'envia',
|
|
49
|
+
payload: {},
|
|
50
|
+
},
|
|
35
51
|
executaTestePericia: {
|
|
36
52
|
tipo: 'envia',
|
|
37
53
|
payload: {},
|
|
38
54
|
},
|
|
55
|
+
NARRADOR_solicitaTestePericiaParticipantes: {
|
|
56
|
+
tipo: 'envia-e-recebe',
|
|
57
|
+
payload: {},
|
|
58
|
+
response: {},
|
|
59
|
+
},
|
|
39
60
|
emitirMensagemSalaJogo: {
|
|
40
61
|
tipo: 'emite',
|
|
41
62
|
payload: { mensagemSalaJogo: {} },
|
|
42
63
|
response: { mensagemSalaJogo: {} },
|
|
43
64
|
},
|
|
65
|
+
emitirMensagensSalaJogo: {
|
|
66
|
+
tipo: 'emite',
|
|
67
|
+
payload: {},
|
|
68
|
+
response: {},
|
|
69
|
+
delivery: 'perRecipient',
|
|
70
|
+
},
|
|
71
|
+
emitirAuditoriaAcoesSalaJogo: {
|
|
72
|
+
tipo: 'emite',
|
|
73
|
+
payload: {},
|
|
74
|
+
response: {},
|
|
75
|
+
delivery: 'perRecipient',
|
|
76
|
+
},
|
|
77
|
+
encerrarAcompanhamentoAuditoriaAcoesSalaJogo: {
|
|
78
|
+
tipo: 'envia',
|
|
79
|
+
payload: {},
|
|
80
|
+
},
|
|
44
81
|
});
|
|
45
82
|
const Jogo = createGateway({
|
|
83
|
+
iniciarModoSolo: {
|
|
84
|
+
tipo: 'envia-e-recebe',
|
|
85
|
+
payload: {},
|
|
86
|
+
response: {},
|
|
87
|
+
},
|
|
46
88
|
requisicaoDeFechamentoDeSalaAberta: {
|
|
47
89
|
tipo: 'envia-e-recebe',
|
|
48
90
|
payload: { codigoSalaDeJogo: {} },
|
|
@@ -81,6 +123,24 @@ var EventosWebSocket;
|
|
|
81
123
|
payload: {},
|
|
82
124
|
response: { fichaAtualizada: {} }
|
|
83
125
|
},
|
|
126
|
+
emitirMapaLogicoSalaJogo: {
|
|
127
|
+
tipo: 'emite',
|
|
128
|
+
payload: {},
|
|
129
|
+
response: {},
|
|
130
|
+
delivery: 'perRecipient',
|
|
131
|
+
},
|
|
132
|
+
emitirResultadoMissaoFuncionalSalaJogo: {
|
|
133
|
+
tipo: 'emite',
|
|
134
|
+
payload: {},
|
|
135
|
+
response: {},
|
|
136
|
+
delivery: 'perRecipient',
|
|
137
|
+
},
|
|
138
|
+
emitirEstadoTemporalSalaJogo: {
|
|
139
|
+
tipo: 'emite',
|
|
140
|
+
payload: {},
|
|
141
|
+
response: {},
|
|
142
|
+
delivery: 'perRecipient',
|
|
143
|
+
},
|
|
84
144
|
});
|
|
85
145
|
const UsuariosConectados = createGateway({
|
|
86
146
|
emitirUsuariosConectadosAgora: {
|
|
@@ -89,6 +149,10 @@ var EventosWebSocket;
|
|
|
89
149
|
response: { usuariosConectados: [] },
|
|
90
150
|
delivery: 'broadcast',
|
|
91
151
|
},
|
|
152
|
+
atualizarPaginaAtual: {
|
|
153
|
+
tipo: 'envia',
|
|
154
|
+
payload: { templatePaginaAtual: '' },
|
|
155
|
+
},
|
|
92
156
|
});
|
|
93
157
|
const UsuariosExistentes = createGateway({
|
|
94
158
|
obterTodos: {
|
|
@@ -97,6 +161,12 @@ var EventosWebSocket;
|
|
|
97
161
|
response: { usuariosExistentes: [] },
|
|
98
162
|
// autenticacao_necessaria: false,
|
|
99
163
|
},
|
|
164
|
+
emitirAvatarPerfilAtualizado: {
|
|
165
|
+
tipo: 'emite',
|
|
166
|
+
payload: { id: 0, caminhoArquivoAvatar: '' },
|
|
167
|
+
response: { id: 0, caminhoArquivoAvatar: '' },
|
|
168
|
+
delivery: 'broadcast',
|
|
169
|
+
},
|
|
100
170
|
});
|
|
101
171
|
const TesteVoz = createGateway({
|
|
102
172
|
entrarNaSala: {
|
|
@@ -156,7 +226,99 @@ var EventosWebSocket;
|
|
|
156
226
|
delivery: "broadcast",
|
|
157
227
|
},
|
|
158
228
|
});
|
|
159
|
-
|
|
229
|
+
const Palco = createGateway({
|
|
230
|
+
verificarEstado: { tipo: "envia-e-recebe", payload: {}, response: {} },
|
|
231
|
+
entrar: { tipo: "envia-e-recebe", payload: {}, response: {} },
|
|
232
|
+
admin_criar: { tipo: "envia-e-recebe", payload: {}, response: {} },
|
|
233
|
+
admin_encerrar: { tipo: "envia-e-recebe", payload: {}, response: {} },
|
|
234
|
+
admin_promover: { tipo: "envia-e-recebe", payload: {}, response: {} },
|
|
235
|
+
admin_rebaixar: { tipo: "envia-e-recebe", payload: {}, response: {} },
|
|
236
|
+
admin_remover: { tipo: "envia-e-recebe", payload: {}, response: {} },
|
|
237
|
+
admin_definirPapel: { tipo: "envia-e-recebe", payload: {}, response: {} },
|
|
238
|
+
relatarTelemetriaAudio: { tipo: "envia", payload: {} },
|
|
239
|
+
estadoAtualizado: { tipo: "emite", payload: {}, response: {}, delivery: "broadcast" },
|
|
240
|
+
encerrado: { tipo: "emite", payload: {}, response: {}, delivery: "broadcast" },
|
|
241
|
+
tokenMidia: { tipo: "emite", payload: {}, response: {}, delivery: "perRecipient" },
|
|
242
|
+
diagnosticoAudio: { tipo: "emite", payload: {}, response: {}, delivery: "broadcast" },
|
|
243
|
+
});
|
|
244
|
+
const EventosUsuario = createGateway({
|
|
245
|
+
// CANAL ESTRUTURAL (permanente): backend emite uma notificação para os usuários online
|
|
246
|
+
notificacaoRecebida: {
|
|
247
|
+
tipo: 'emite',
|
|
248
|
+
payload: { notificacao: {}, reentregaBootstrap: false },
|
|
249
|
+
response: { notificacao: {}, reentregaBootstrap: false },
|
|
250
|
+
delivery: 'broadcast',
|
|
251
|
+
},
|
|
252
|
+
// SCAFFOLDING (dev/admin, Etapa 1): dispara um payload de teste pelo canal acima
|
|
253
|
+
dispararNotificacaoTeste: {
|
|
254
|
+
tipo: 'envia',
|
|
255
|
+
payload: {},
|
|
256
|
+
},
|
|
257
|
+
// SCAFFOLDING (dev/admin, Etapa 2): dispara um payload de teste para UM usuário online específico
|
|
258
|
+
dispararNotificacaoTesteParaUsuario: {
|
|
259
|
+
tipo: 'envia',
|
|
260
|
+
payload: { idUsuario: 0 },
|
|
261
|
+
},
|
|
262
|
+
// SCAFFOLDING (dev/admin, Etapa 4): dispara um payload de teste PERSISTENTE para UM usuário
|
|
263
|
+
dispararNotificacaoPersistenteParaUsuario: {
|
|
264
|
+
tipo: 'envia',
|
|
265
|
+
payload: { idUsuario: 0 },
|
|
266
|
+
},
|
|
267
|
+
// Etapa 4: o frontend pede (após montar o listener) a entrega das suas pendências persistidas
|
|
268
|
+
sincronizarPendencias: {
|
|
269
|
+
tipo: 'envia',
|
|
270
|
+
payload: {},
|
|
271
|
+
},
|
|
272
|
+
// SCAFFOLDING (dev/admin, Etapa 5): convite persistente para MÚLTIPLOS usuários (1 evento por alvo)
|
|
273
|
+
dispararConviteSessaoTeste: {
|
|
274
|
+
tipo: 'envia',
|
|
275
|
+
payload: { idsUsuarios: [] },
|
|
276
|
+
},
|
|
277
|
+
// Etapa 6: lista os eventos persistidos do próprio usuário autenticado
|
|
278
|
+
obterMeusEventos: {
|
|
279
|
+
tipo: 'envia-e-recebe',
|
|
280
|
+
payload: {},
|
|
281
|
+
response: { eventos: [] },
|
|
282
|
+
},
|
|
283
|
+
// Etapa 6: marca um evento do próprio usuário como lido; retorna a lista atualizada
|
|
284
|
+
marcarEventoComoLido: {
|
|
285
|
+
tipo: 'envia-e-recebe',
|
|
286
|
+
payload: { idEvento: 0 },
|
|
287
|
+
response: { eventos: [] },
|
|
288
|
+
},
|
|
289
|
+
// Etapa 15: conclui um tutorial do próprio usuário (registra dataConclusao + garante dataLeitura); retorna a lista atualizada
|
|
290
|
+
concluirTutorial: {
|
|
291
|
+
tipo: 'envia-e-recebe',
|
|
292
|
+
payload: { idEvento: 0 },
|
|
293
|
+
response: { eventos: [] },
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
const Tutoriais = createGateway({
|
|
297
|
+
// Etapa 10: backend ordena a abertura render-ready de um Tutorial para o usuário-alvo. usuarioTutorial objeto => vinculada; null => efêmera/admin (sem modoAbertura).
|
|
298
|
+
abrirTutorial: {
|
|
299
|
+
tipo: 'emite',
|
|
300
|
+
payload: {},
|
|
301
|
+
response: {},
|
|
302
|
+
delivery: 'broadcast',
|
|
303
|
+
},
|
|
304
|
+
// Etapa 14: a Central solicita a abertura de um Tutorial vinculado (Abrir/Continuar/Reabrir). Fire-and-forget; o usuário vem do socket autenticado (nunca do cliente). O backend valida posse+ativo e resolve render-ready, emitindo abrirTutorial.
|
|
305
|
+
solicitarAberturaTutorial: {
|
|
306
|
+
tipo: 'envia',
|
|
307
|
+
payload: { idUsuarioTutorial: 0 },
|
|
308
|
+
},
|
|
309
|
+
// Etapa 12: ACK de abertura (o popup montou no cliente). Só abertura vinculada. Payload carrega o id do vínculo; o usuário vem do socket autenticado (nunca do cliente).
|
|
310
|
+
confirmarAberturaTutorial: {
|
|
311
|
+
tipo: 'envia',
|
|
312
|
+
payload: { idUsuarioTutorial: 0 },
|
|
313
|
+
},
|
|
314
|
+
// Etapa 12: conclusão por clique explícito. Só abertura vinculada. Retorno apenas operacional (sem lista da Central / Tutorial / reabertura).
|
|
315
|
+
concluirTutorial: {
|
|
316
|
+
tipo: 'envia-e-recebe',
|
|
317
|
+
payload: { idUsuarioTutorial: 0 },
|
|
318
|
+
response: { concluido: false },
|
|
319
|
+
},
|
|
320
|
+
});
|
|
321
|
+
EventosWebSocket.gateways = { Chat, Jogo, ExecucaoDeJogo, UsuariosConectados, UsuariosExistentes, TesteVoz, Palco, EventosUsuario, Tutoriais };
|
|
160
322
|
})(EventosWebSocket || (EventosWebSocket = {}));
|
|
161
323
|
function isRecord(value) { return typeof value === 'object' && value !== null; }
|
|
162
324
|
function getEmitDelivery(gatewayName, eventName) {
|
|
@@ -192,4 +354,4 @@ function criarEventosFiltrados(tipo) {
|
|
|
192
354
|
const Eventos_Envia = criarEventosFiltrados('envia');
|
|
193
355
|
const Eventos_Emite = criarEventosFiltrados('emite');
|
|
194
356
|
const Eventos_EnviaERecebe = criarEventosFiltrados('envia-e-recebe');
|
|
195
|
-
export { EventosWebSocket, Eventos_Emite, Eventos_Envia, Eventos_EnviaERecebe, TESTE_VOZ_ID_SALA, createGateway, criarEventosFiltrados, getEmitDelivery, isRecord, isWsErrorResponse, isWsUnauthorizedErrorResponse, wsChain, wsErro, wsMap, wsUnauthorized };
|
|
357
|
+
export { EventosWebSocket, Eventos_Emite, Eventos_Envia, Eventos_EnviaERecebe, PALCO_ID_LOBBY, PALCO_ID_SALA, PALCO_LIVEKIT_ROOM, TESTE_VOZ_ID_SALA, createGateway, criarEventosFiltrados, getEmitDelivery, isRecord, isWsErrorResponse, isWsUnauthorizedErrorResponse, wsChain, wsErro, wsMap, wsUnauthorized };
|