types-nora-api 0.0.150 → 0.0.151
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 +65 -0
- package/dist/classes.js +19 -1
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -819,6 +819,28 @@ declare namespace EventosWebSocket {
|
|
|
819
819
|
};
|
|
820
820
|
};
|
|
821
821
|
};
|
|
822
|
+
readonly Teste: {
|
|
823
|
+
mudaTexto: {
|
|
824
|
+
tipo: "envia";
|
|
825
|
+
payload: {
|
|
826
|
+
novoTexto: string;
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
enviaPraQuemPediu: {
|
|
830
|
+
tipo: "recebe";
|
|
831
|
+
payload: {};
|
|
832
|
+
response: {
|
|
833
|
+
msg: string;
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
enviaPraTodoMundo: {
|
|
837
|
+
tipo: "recebe";
|
|
838
|
+
payload: {};
|
|
839
|
+
response: {
|
|
840
|
+
msg: string;
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
};
|
|
822
844
|
};
|
|
823
845
|
}
|
|
824
846
|
type SOCKET_AcessoUsuario = {
|
|
@@ -1019,6 +1041,32 @@ declare const Eventos_Recebe: {
|
|
|
1019
1041
|
};
|
|
1020
1042
|
};
|
|
1021
1043
|
};
|
|
1044
|
+
readonly Teste: {
|
|
1045
|
+
eventos: {
|
|
1046
|
+
enviaPraQuemPediu: {
|
|
1047
|
+
tipo: "recebe";
|
|
1048
|
+
payload: {};
|
|
1049
|
+
response: {
|
|
1050
|
+
msg: string;
|
|
1051
|
+
};
|
|
1052
|
+
} & {
|
|
1053
|
+
readonly nome: "enviaPraQuemPediu";
|
|
1054
|
+
readonly gateway: "Teste";
|
|
1055
|
+
readonly fullName: "Teste:enviaPraQuemPediu";
|
|
1056
|
+
};
|
|
1057
|
+
enviaPraTodoMundo: {
|
|
1058
|
+
tipo: "recebe";
|
|
1059
|
+
payload: {};
|
|
1060
|
+
response: {
|
|
1061
|
+
msg: string;
|
|
1062
|
+
};
|
|
1063
|
+
} & {
|
|
1064
|
+
readonly nome: "enviaPraTodoMundo";
|
|
1065
|
+
readonly gateway: "Teste";
|
|
1066
|
+
readonly fullName: "Teste:enviaPraTodoMundo";
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
1069
|
+
};
|
|
1022
1070
|
};
|
|
1023
1071
|
declare const Eventos_Envia: {
|
|
1024
1072
|
readonly Chat: {
|
|
@@ -1030,6 +1078,20 @@ declare const Eventos_Envia: {
|
|
|
1030
1078
|
readonly UsuariosConectados: {
|
|
1031
1079
|
eventos: {};
|
|
1032
1080
|
};
|
|
1081
|
+
readonly Teste: {
|
|
1082
|
+
eventos: {
|
|
1083
|
+
mudaTexto: {
|
|
1084
|
+
tipo: "envia";
|
|
1085
|
+
payload: {
|
|
1086
|
+
novoTexto: string;
|
|
1087
|
+
};
|
|
1088
|
+
} & {
|
|
1089
|
+
readonly nome: "mudaTexto";
|
|
1090
|
+
readonly gateway: "Teste";
|
|
1091
|
+
readonly fullName: "Teste:mudaTexto";
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
};
|
|
1033
1095
|
};
|
|
1034
1096
|
declare const Eventos_RecebeEnvia: {
|
|
1035
1097
|
readonly Chat: {
|
|
@@ -1092,6 +1154,9 @@ declare const Eventos_RecebeEnvia: {
|
|
|
1092
1154
|
readonly UsuariosConectados: {
|
|
1093
1155
|
eventos: {};
|
|
1094
1156
|
};
|
|
1157
|
+
readonly Teste: {
|
|
1158
|
+
eventos: {};
|
|
1159
|
+
};
|
|
1095
1160
|
};
|
|
1096
1161
|
type SOCKET_UsuarioExistente = {
|
|
1097
1162
|
id: number;
|
package/dist/classes.js
CHANGED
|
@@ -113,7 +113,25 @@ var EventosWebSocket;
|
|
|
113
113
|
response: { msg: '' },
|
|
114
114
|
},
|
|
115
115
|
});
|
|
116
|
-
|
|
116
|
+
const Teste = createGateway({
|
|
117
|
+
mudaTexto: {
|
|
118
|
+
tipo: 'envia',
|
|
119
|
+
payload: { novoTexto: '' },
|
|
120
|
+
// response: {}, não deveria ser possivel <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
121
|
+
},
|
|
122
|
+
enviaPraQuemPediu: {
|
|
123
|
+
tipo: 'recebe',
|
|
124
|
+
payload: {},
|
|
125
|
+
// deveria ser impossivel não passar response <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
126
|
+
response: { msg: '' },
|
|
127
|
+
},
|
|
128
|
+
enviaPraTodoMundo: {
|
|
129
|
+
tipo: 'recebe',
|
|
130
|
+
payload: {},
|
|
131
|
+
response: { msg: '' },
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
EventosWebSocket.gateways = { Chat, GameEngine, UsuariosConectados, Teste };
|
|
117
135
|
})(EventosWebSocket || (EventosWebSocket = {}));
|
|
118
136
|
// @tipoCompartilhadoFront
|
|
119
137
|
var AventuraEstado;
|