types-nora-api 0.0.185 → 0.0.189

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
@@ -927,6 +927,22 @@ declare namespace EventosWebSocket {
927
927
  };
928
928
  };
929
929
  readonly Jogo: {
930
+ requisicaoDeAberturaDeSala: {
931
+ tipo: "envia-e-recebe";
932
+ payload: {
933
+ idSessao: number;
934
+ };
935
+ response: {
936
+ sucesso: boolean;
937
+ };
938
+ };
939
+ emitirEstouEmJogo: {
940
+ tipo: "emite";
941
+ payload: {};
942
+ response: {
943
+ estouEmJogo: boolean;
944
+ };
945
+ };
930
946
  emitirSessaoEmAndamento: {
931
947
  tipo: "emite";
932
948
  payload: {};
@@ -1190,6 +1206,17 @@ declare const Eventos_Emite: {
1190
1206
  };
1191
1207
  readonly Jogo: {
1192
1208
  eventos: {
1209
+ emitirEstouEmJogo: {
1210
+ tipo: "emite";
1211
+ payload: {};
1212
+ response: {
1213
+ estouEmJogo: boolean;
1214
+ };
1215
+ } & {
1216
+ readonly nome: "emitirEstouEmJogo";
1217
+ readonly gateway: "Jogo";
1218
+ readonly fullName: "Jogo:emitirEstouEmJogo";
1219
+ };
1193
1220
  emitirSessaoEmAndamento: {
1194
1221
  tipo: "emite";
1195
1222
  payload: {};
@@ -1264,7 +1291,21 @@ declare const Eventos_EnviaERecebe: {
1264
1291
  };
1265
1292
  };
1266
1293
  readonly Jogo: {
1267
- eventos: {};
1294
+ eventos: {
1295
+ requisicaoDeAberturaDeSala: {
1296
+ tipo: "envia-e-recebe";
1297
+ payload: {
1298
+ idSessao: number;
1299
+ };
1300
+ response: {
1301
+ sucesso: boolean;
1302
+ };
1303
+ } & {
1304
+ readonly nome: "requisicaoDeAberturaDeSala";
1305
+ readonly gateway: "Jogo";
1306
+ readonly fullName: "Jogo:requisicaoDeAberturaDeSala";
1307
+ };
1308
+ };
1268
1309
  };
1269
1310
  readonly UsuariosConectados: {
1270
1311
  eventos: {};
package/dist/classes.js CHANGED
@@ -126,10 +126,20 @@ 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
+ },
134
+ emitirEstouEmJogo: {
135
+ tipo: 'emite',
136
+ payload: {},
137
+ response: { estouEmJogo: true },
138
+ },
129
139
  emitirSessaoEmAndamento: {
130
140
  tipo: 'emite',
131
141
  payload: {},
132
- response: { sessaoEmAndamento: {} }
142
+ response: { sessaoEmAndamento: {} },
133
143
  },
134
144
  // emitirDadosSessao: {
135
145
  // tipo: 'emite',
@@ -139,12 +149,12 @@ var EventosWebSocket;
139
149
  emitirTodasSalas: {
140
150
  tipo: 'emite',
141
151
  payload: {},
142
- response: { salas: [] }
152
+ response: { salas: [] },
143
153
  },
144
154
  emitirDadosParaParticipanteDeSala: {
145
155
  tipo: 'emite',
146
156
  payload: { codigoSala: {}, idJogador: 0 },
147
- response: { dados: {} }
157
+ response: { dados: {} },
148
158
  },
149
159
  });
150
160
  const UsuariosConectados = createGateway({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.185",
3
+ "version": "0.0.189",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",