types-nora-api 0.0.184 → 0.0.188
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 +27 -2
- package/dist/classes.js +8 -3
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ interface IDetalheSessaoAventura {
|
|
|
98
98
|
grupoAventura: GrupoAventuraDto;
|
|
99
99
|
episodio: number;
|
|
100
100
|
episodioPorExtenso: string;
|
|
101
|
+
nomeUnico: string;
|
|
101
102
|
}
|
|
102
103
|
type DetalheSessaoAventuraDto = IDetalheSessaoAventura;
|
|
103
104
|
interface IDetalheSessaoCanonica {
|
|
@@ -616,7 +617,7 @@ interface ISessao {
|
|
|
616
617
|
tituloInteligente: TituloSessaoInteligente;
|
|
617
618
|
pathCapaInteligente: string;
|
|
618
619
|
detalheData: string;
|
|
619
|
-
dadosGerais: SessaoDadosGerais;
|
|
620
|
+
dadosGerais: SessaoDadosGerais | null;
|
|
620
621
|
}
|
|
621
622
|
type SessaoDto = ISessao;
|
|
622
623
|
type SessaoDadosGerais = {
|
|
@@ -926,6 +927,15 @@ declare namespace EventosWebSocket {
|
|
|
926
927
|
};
|
|
927
928
|
};
|
|
928
929
|
readonly Jogo: {
|
|
930
|
+
requisicaoDeAberturaDeSala: {
|
|
931
|
+
tipo: "envia-e-recebe";
|
|
932
|
+
payload: {
|
|
933
|
+
idSessao: number;
|
|
934
|
+
};
|
|
935
|
+
response: {
|
|
936
|
+
sucesso: boolean;
|
|
937
|
+
};
|
|
938
|
+
};
|
|
929
939
|
emitirSessaoEmAndamento: {
|
|
930
940
|
tipo: "emite";
|
|
931
941
|
payload: {};
|
|
@@ -1123,6 +1133,7 @@ declare enum EstiloSessao {
|
|
|
1123
1133
|
}
|
|
1124
1134
|
declare const PathTokenPadrao: string;
|
|
1125
1135
|
type TituloSessaoInteligente = {
|
|
1136
|
+
tituloCompleto: string;
|
|
1126
1137
|
titulo: string;
|
|
1127
1138
|
subtitulo?: string;
|
|
1128
1139
|
};
|
|
@@ -1262,7 +1273,21 @@ declare const Eventos_EnviaERecebe: {
|
|
|
1262
1273
|
};
|
|
1263
1274
|
};
|
|
1264
1275
|
readonly Jogo: {
|
|
1265
|
-
eventos: {
|
|
1276
|
+
eventos: {
|
|
1277
|
+
requisicaoDeAberturaDeSala: {
|
|
1278
|
+
tipo: "envia-e-recebe";
|
|
1279
|
+
payload: {
|
|
1280
|
+
idSessao: number;
|
|
1281
|
+
};
|
|
1282
|
+
response: {
|
|
1283
|
+
sucesso: boolean;
|
|
1284
|
+
};
|
|
1285
|
+
} & {
|
|
1286
|
+
readonly nome: "requisicaoDeAberturaDeSala";
|
|
1287
|
+
readonly gateway: "Jogo";
|
|
1288
|
+
readonly fullName: "Jogo:requisicaoDeAberturaDeSala";
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1266
1291
|
};
|
|
1267
1292
|
readonly UsuariosConectados: {
|
|
1268
1293
|
eventos: {};
|
package/dist/classes.js
CHANGED
|
@@ -126,10 +126,15 @@ var EventosWebSocket;
|
|
|
126
126
|
},
|
|
127
127
|
});
|
|
128
128
|
const Jogo = createGateway({
|
|
129
|
+
requisicaoDeAberturaDeSala: {
|
|
130
|
+
tipo: 'envia-e-recebe',
|
|
131
|
+
payload: { idSessao: 0 },
|
|
132
|
+
response: { sucesso: true },
|
|
133
|
+
},
|
|
129
134
|
emitirSessaoEmAndamento: {
|
|
130
135
|
tipo: 'emite',
|
|
131
136
|
payload: {},
|
|
132
|
-
response: { sessaoEmAndamento: {} }
|
|
137
|
+
response: { sessaoEmAndamento: {} },
|
|
133
138
|
},
|
|
134
139
|
// emitirDadosSessao: {
|
|
135
140
|
// tipo: 'emite',
|
|
@@ -139,12 +144,12 @@ var EventosWebSocket;
|
|
|
139
144
|
emitirTodasSalas: {
|
|
140
145
|
tipo: 'emite',
|
|
141
146
|
payload: {},
|
|
142
|
-
response: { salas: [] }
|
|
147
|
+
response: { salas: [] },
|
|
143
148
|
},
|
|
144
149
|
emitirDadosParaParticipanteDeSala: {
|
|
145
150
|
tipo: 'emite',
|
|
146
151
|
payload: { codigoSala: {}, idJogador: 0 },
|
|
147
|
-
response: { dados: {} }
|
|
152
|
+
response: { dados: {} },
|
|
148
153
|
},
|
|
149
154
|
});
|
|
150
155
|
const UsuariosConectados = createGateway({
|