@munlib/common 1.0.229 → 1.0.237
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/README.md
ADDED
|
@@ -64,6 +64,19 @@ exports.errorCodes = {
|
|
|
64
64
|
"E057": "No se puede emitir el Certificado de no Adeudar porque tiene multas pendientes por el rubro ORD",
|
|
65
65
|
"E058": "Revisar nro. de lote del rubro ORD",
|
|
66
66
|
"E099": "No se ejecutó correctamente la recaudación",
|
|
67
|
+
"200": "Facturas Pagadas",
|
|
68
|
+
"201": "Clave de acceso bancaria no valida (AccesToken)",
|
|
69
|
+
"202": "Error al cargar las facturas, verifique que los id sean correctos, y las facturas no esten pagadas anteriormente",
|
|
70
|
+
"203": "Error al llenar informacion de las facturas, contactar con el departamento de sistemas municipal",
|
|
71
|
+
"204": "Error al abrir la caja de recaudacion, caja usuario asignado debe contener una relacion a su usuario, contactar con el departamento de sistemas municipal",
|
|
72
|
+
"205": "Error general, ha afectado en el pago de las facturas, estas NO fueron pagadas, la transaccion debe ser unica",
|
|
73
|
+
"206": "Error general, las cartas a anular no fueron cobradas el dia de hoy o no corresponden a la transaccion",
|
|
74
|
+
"208": "Facturas Anuladas",
|
|
75
|
+
"210": "Error general, las cartas no fueron procesadas, revise la configuracion de la solicitud o contacte con sistemas",
|
|
76
|
+
"211": "La consulta se realizo correctamente.",
|
|
77
|
+
"212": "No es posible procesar la consulta: El identificador proporcionado es invalido o no existe un cliente asociado.",
|
|
78
|
+
"213": "No se puede realizar la anulacion: las cartas no fueron cobradas hoy o aun no han sido cobradas.",
|
|
79
|
+
"214": "No es posible procesar la consulta: El cliente mantiene obligaciones pendientes en procesos internos.",
|
|
67
80
|
"M001": "Error al cancelar Rubros",
|
|
68
81
|
"M002": "Error al reversar Rubros",
|
|
69
82
|
"M003": "No se encuentra la orden de pago",
|
|
@@ -130,6 +143,7 @@ exports.errorCodes = {
|
|
|
130
143
|
"ERR31": "La entidad bancaria no está habilitada para realizar reversos",
|
|
131
144
|
"ERR32": "La entidad bancaria no tiene permisos habilitados",
|
|
132
145
|
"ERR33": "La entidad bancaria no tiene habilitado el permiso para reversos",
|
|
146
|
+
//ERRORES EMAC
|
|
133
147
|
//Errores genrales
|
|
134
148
|
'ECONNABORTED': 'La solicitud ha superado el tiempo de espera. Inténtelo de nuevo más tarde.',
|
|
135
149
|
'ECONNREFUSED': 'No se pudo conectar al servidor. Verifique su conexión y vuelva a intentarlo.',
|
|
@@ -211,6 +225,19 @@ exports.statusCodeMapping = {
|
|
|
211
225
|
"E057": "ERROR",
|
|
212
226
|
"E058": "ERROR",
|
|
213
227
|
"E099": "ERROR",
|
|
228
|
+
"200": "SUCCESS",
|
|
229
|
+
"201": "ERROR",
|
|
230
|
+
"202": "ERROR",
|
|
231
|
+
"203": "ERROR",
|
|
232
|
+
"204": "ERROR",
|
|
233
|
+
"205": "ERROR",
|
|
234
|
+
"206": "ERROR",
|
|
235
|
+
"208": "SUCCESS",
|
|
236
|
+
"210": "ERROR",
|
|
237
|
+
"211": "SUCCESS",
|
|
238
|
+
"212": "ERROR",
|
|
239
|
+
"213": "ERROR",
|
|
240
|
+
"214": "ERROR",
|
|
214
241
|
"M001": "ERROR",
|
|
215
242
|
"M002": "ERROR",
|
|
216
243
|
"M003": "ERROR",
|
|
@@ -360,6 +387,19 @@ exports.httpStatusCodes = {
|
|
|
360
387
|
"E057": 409,
|
|
361
388
|
"E058": 409,
|
|
362
389
|
"E099": 500,
|
|
390
|
+
"200": 200,
|
|
391
|
+
"201": 401,
|
|
392
|
+
"202": 400,
|
|
393
|
+
"203": 500,
|
|
394
|
+
"204": 500,
|
|
395
|
+
"205": 500,
|
|
396
|
+
"206": 400,
|
|
397
|
+
"208": 200,
|
|
398
|
+
"210": 500,
|
|
399
|
+
"211": 200,
|
|
400
|
+
"212": 400,
|
|
401
|
+
"213": 400,
|
|
402
|
+
"214": 409,
|
|
363
403
|
"M001": 500,
|
|
364
404
|
"M002": 500,
|
|
365
405
|
"M003": 404,
|
|
@@ -497,6 +537,19 @@ exports.httpStatusCodesTypes = {
|
|
|
497
537
|
"E057": instituciones_pagos_1.ErrorCategories.USER,
|
|
498
538
|
"E058": instituciones_pagos_1.ErrorCategories.SINTAX,
|
|
499
539
|
"E099": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
540
|
+
"200": instituciones_pagos_1.ErrorCategories.SUCCESS,
|
|
541
|
+
"201": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
542
|
+
"202": instituciones_pagos_1.ErrorCategories.SINTAX,
|
|
543
|
+
"203": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
544
|
+
"204": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
545
|
+
"205": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
546
|
+
"206": instituciones_pagos_1.ErrorCategories.SINTAX,
|
|
547
|
+
"208": instituciones_pagos_1.ErrorCategories.SUCCESS,
|
|
548
|
+
"210": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
549
|
+
"211": instituciones_pagos_1.ErrorCategories.SUCCESS,
|
|
550
|
+
"212": instituciones_pagos_1.ErrorCategories.SINTAX,
|
|
551
|
+
"213": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
552
|
+
"214": instituciones_pagos_1.ErrorCategories.USER,
|
|
500
553
|
"M001": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
501
554
|
"M002": instituciones_pagos_1.ErrorCategories.MIDDLEWARE,
|
|
502
555
|
"M003": instituciones_pagos_1.ErrorCategories.SINTAX,
|
package/build/events/subjects.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EstadoPagoTypeEnum = exports.FormaPagoEnum = exports.ErrorCategories = exports.EstadoSolPagoTypeEnum = exports.CanalTransacionalOptionsEnum = exports.emovAllowedConsultaTypes = exports.emovSintaxErrorsCodes = exports.allowedInstituciones = exports.allowedTiposETAPA = exports.etapaConsultasExcluidas = void 0;
|
|
4
4
|
exports.etapaConsultasExcluidas = ["ERROR", "FPAG", "INST", "DEB", "BANE", "EMI", "CLIR"];
|
|
5
5
|
exports.allowedTiposETAPA = ["INT", "AGP", "TVD", "RDD", "TLF", "INS", ""];
|
|
6
|
-
exports.allowedInstituciones = ["MUNICIPIO", "ETAPA", "EMOV", "SERT", "ALL"];
|
|
6
|
+
exports.allowedInstituciones = ["MUNICIPIO", "ETAPA", "EMOV", "SERT", "EMAC", "ALL"];
|
|
7
7
|
exports.emovSintaxErrorsCodes = ["ERROR", "FPAG", "INST", "DEB", "BANE", "EMI", "CLIR"];
|
|
8
8
|
exports.emovAllowedConsultaTypes = ["CED", "PLA", ""];
|
|
9
9
|
var CanalTransacionalOptionsEnum;
|
package/package.json
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
"name": "@munlib/common",
|
|
3
|
+
"version": "1.0.237",
|
|
4
|
+
"description": "Common errors, middlewares and shared types for Munlib services",
|
|
5
|
+
"main": "./build/index.js",
|
|
6
|
+
"types": "./build/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"build/**/*"
|
|
9
|
+
],
|
|
10
|
+
"keywords": [
|
|
11
|
+
"errors",
|
|
12
|
+
"express",
|
|
13
|
+
"middleware",
|
|
14
|
+
"typescript",
|
|
15
|
+
"munlib"
|
|
16
|
+
],
|
|
17
|
+
"author": "caheredia",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"clean": "del-cli build",
|
|
21
|
+
"build": "npm run clean && tsc",
|
|
22
|
+
"pub": "git add . && git commit -m \"Updates\" && npm version patch && npm run build && npm publish"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"del-cli": "^4.0.0",
|
|
26
|
+
"typescript": "^5.2.2",
|
|
27
|
+
"@types/cookie-session": "^2.0.42",
|
|
28
|
+
"@types/express": "^4.17.12",
|
|
29
|
+
"@types/jsonwebtoken": "^8.5.1"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"cookie-session": "^1.4.0",
|
|
33
|
+
"express": "^4.17.1",
|
|
34
|
+
"express-validator": "^6.12.0",
|
|
35
|
+
"jsonwebtoken": "^8.5.1"
|
|
36
|
+
}
|
|
31
37
|
}
|