sim-node-lib 0.4.87 → 0.4.89
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.
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModulosContabeis = exports.Recorrencia = void 0;
|
|
4
|
+
var Recorrencia;
|
|
5
|
+
(function (Recorrencia) {
|
|
6
|
+
Recorrencia["DIARIO"] = "D";
|
|
7
|
+
Recorrencia["MENSAL"] = "M";
|
|
8
|
+
})(Recorrencia = exports.Recorrencia || (exports.Recorrencia = {}));
|
|
9
|
+
exports.ModulosContabeis = [
|
|
10
|
+
{
|
|
11
|
+
uuid: 'e1696b6b-9de4-4f22-a977-b191a39506a9',
|
|
12
|
+
recorrencia: Recorrencia.DIARIO,
|
|
13
|
+
origem: 'Fechamento de Caixa',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
uuid: '0745818a-4760-4cbe-b6bc-073519ac2104',
|
|
17
|
+
recorrencia: Recorrencia.DIARIO,
|
|
18
|
+
origem: 'Nota Fiscal de Entrada',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
uuid: '044a5713-82bd-4758-aec4-3a502d526568',
|
|
22
|
+
recorrencia: Recorrencia.DIARIO,
|
|
23
|
+
origem: 'Nota Fiscal de Saída',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
uuid: 'c7a53083-a364-45e2-a1f7-acd439fe8632',
|
|
27
|
+
recorrencia: Recorrencia.DIARIO,
|
|
28
|
+
origem: 'Outras Despesas',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
uuid: 'f76dae1d-799b-4b23-b83f-f688e6528f2c',
|
|
32
|
+
recorrencia: Recorrencia.DIARIO,
|
|
33
|
+
origem: 'Outros Movimentos de Estoque',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
uuid: 'd94efc2a-8589-4fd3-b545-01a431ebe51f',
|
|
37
|
+
recorrencia: Recorrencia.DIARIO,
|
|
38
|
+
origem: 'Recebimento de Título',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
@@ -4,4 +4,6 @@ export default class BasicServerException {
|
|
|
4
4
|
message: string | ExceptionsMessagesEnum;
|
|
5
5
|
status?: number | undefined;
|
|
6
6
|
constructor(code: ExceptionsCodesEnum, message: string | ExceptionsMessagesEnum, status?: number | undefined);
|
|
7
|
+
static badRequest(message: string): BasicServerException;
|
|
8
|
+
static internalServerError(message: string): BasicServerException;
|
|
7
9
|
}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Enums_1 = require("../../Enums");
|
|
3
4
|
class BasicServerException {
|
|
4
5
|
constructor(code, message, status) {
|
|
5
6
|
this.code = code;
|
|
6
7
|
this.message = message;
|
|
7
8
|
this.status = status;
|
|
8
9
|
}
|
|
10
|
+
static badRequest(message) {
|
|
11
|
+
return new this(Enums_1.ExceptionsCodesEnum.badRequest, message, 400);
|
|
12
|
+
}
|
|
13
|
+
static internalServerError(message) {
|
|
14
|
+
return new this(Enums_1.ExceptionsCodesEnum.internalServerError, message, 500);
|
|
15
|
+
}
|
|
9
16
|
}
|
|
10
17
|
exports.default = BasicServerException;
|