sim-node-lib 0.4.9 → 0.4.11
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.
|
@@ -5,5 +5,10 @@ export declare enum NotificacaoTipoEnum {
|
|
|
5
5
|
enviarPorCidadeGD = 4,
|
|
6
6
|
enviarViaPlanilhaDocumento = 5,
|
|
7
7
|
enviarPorHistoricoConsumoCidade = 6,
|
|
8
|
-
enviarPorHistoricoConsumo = 7
|
|
8
|
+
enviarPorHistoricoConsumo = 7,
|
|
9
|
+
filtrarPorHistoricoConsumoCidade = 8,
|
|
10
|
+
enviarPorTipoCombustivelCidadeGD = 9,
|
|
11
|
+
enviarPorTipoCombustivel = 10,
|
|
12
|
+
enviarPorTipoCombustivelCidade = 11,
|
|
13
|
+
enviarPorTipoCombustivelGD = 12
|
|
9
14
|
}
|
|
@@ -10,4 +10,9 @@ var NotificacaoTipoEnum;
|
|
|
10
10
|
NotificacaoTipoEnum[NotificacaoTipoEnum["enviarViaPlanilhaDocumento"] = 5] = "enviarViaPlanilhaDocumento";
|
|
11
11
|
NotificacaoTipoEnum[NotificacaoTipoEnum["enviarPorHistoricoConsumoCidade"] = 6] = "enviarPorHistoricoConsumoCidade";
|
|
12
12
|
NotificacaoTipoEnum[NotificacaoTipoEnum["enviarPorHistoricoConsumo"] = 7] = "enviarPorHistoricoConsumo";
|
|
13
|
+
NotificacaoTipoEnum[NotificacaoTipoEnum["filtrarPorHistoricoConsumoCidade"] = 8] = "filtrarPorHistoricoConsumoCidade";
|
|
14
|
+
NotificacaoTipoEnum[NotificacaoTipoEnum["enviarPorTipoCombustivelCidadeGD"] = 9] = "enviarPorTipoCombustivelCidadeGD";
|
|
15
|
+
NotificacaoTipoEnum[NotificacaoTipoEnum["enviarPorTipoCombustivel"] = 10] = "enviarPorTipoCombustivel";
|
|
16
|
+
NotificacaoTipoEnum[NotificacaoTipoEnum["enviarPorTipoCombustivelCidade"] = 11] = "enviarPorTipoCombustivelCidade";
|
|
17
|
+
NotificacaoTipoEnum[NotificacaoTipoEnum["enviarPorTipoCombustivelGD"] = 12] = "enviarPorTipoCombustivelGD";
|
|
13
18
|
})(NotificacaoTipoEnum = exports.NotificacaoTipoEnum || (exports.NotificacaoTipoEnum = {}));
|
|
@@ -1,14 +1,36 @@
|
|
|
1
|
+
let existsPubSubV2 = false;
|
|
2
|
+
let auxAppProvider = false;
|
|
1
3
|
module.exports = {
|
|
2
4
|
meta: {
|
|
3
5
|
type: 'problem',
|
|
4
6
|
docs: {
|
|
5
|
-
description: 'Enforce passing both query and bindings parameters to whereRaw() or rawQuery() method
|
|
7
|
+
description: 'Enforce passing both query and bindings parameters to whereRaw() or rawQuery() method, enforce the use of the v2 of pubsub',
|
|
6
8
|
},
|
|
7
9
|
},
|
|
8
10
|
create: function (context) {
|
|
11
|
+
const curFilename = context.getFilename();
|
|
12
|
+
const appProvider = 'AppProvider.ts';
|
|
13
|
+
const isAppProvider = curFilename.includes(appProvider);
|
|
9
14
|
return {
|
|
10
15
|
CallExpression(node) {
|
|
11
16
|
const callee = node.callee;
|
|
17
|
+
if (isAppProvider) {
|
|
18
|
+
auxAppProvider = true;
|
|
19
|
+
if (callee.type === 'MemberExpression' && callee.property.type === 'Identifier' && callee.property.name === 'listenMessagesV2') {
|
|
20
|
+
existsPubSubV2 = true;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
if (auxAppProvider) {
|
|
25
|
+
auxAppProvider = false;
|
|
26
|
+
if (!existsPubSubV2) {
|
|
27
|
+
context.report({
|
|
28
|
+
node,
|
|
29
|
+
message: '"AppProvider.ts" must contain the v2 of pubsub.',
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
12
34
|
if (callee.type === 'MemberExpression' && callee.property.type === 'Identifier') {
|
|
13
35
|
let raw = false;
|
|
14
36
|
switch (callee.property.name) {
|