mp-front-cli 1.0.0 → 1.0.1-rc.1
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/core/errors/error-catalog.d.ts.map +1 -1
- package/dist/{i18n-3dcfe704.js → i18n-9725e8da.js} +9 -5
- package/dist/lang/common/errors/es_MX/index.d.ts +4 -0
- package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -1
- package/dist/mp-front-cli-all.es.js +1 -1
- package/dist/mp-front-cli-core.es.js +24 -17
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAw2BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
|
|
@@ -483,6 +483,10 @@ const o = {
|
|
|
483
483
|
title: "Error en la configuración del usuario",
|
|
484
484
|
message: "Es necesario asignar una clave de vendedor al usuario. Por favor comunícate con nuestra mesa de ayuda para solucionar el problema."
|
|
485
485
|
},
|
|
486
|
+
"JOURNEY-CANCEL-01": {
|
|
487
|
+
title: "Pre-solicitud o Solicitud cancelada",
|
|
488
|
+
message: "La PR o SL ha sido cancelada. Por favor comunícate con nuestra mesa de ayuda."
|
|
489
|
+
},
|
|
486
490
|
//Calculator & Apartadito
|
|
487
491
|
...o,
|
|
488
492
|
//#region helpdesk
|
|
@@ -599,16 +603,16 @@ const o = {
|
|
|
599
603
|
message: "El rfc es un rfc no válido"
|
|
600
604
|
},
|
|
601
605
|
"PERSONALDATA-BAD-REQUEST-09": {
|
|
602
|
-
title: "La
|
|
603
|
-
message: "
|
|
606
|
+
title: "La CURP ya está asociada a un proceso iniciado",
|
|
607
|
+
message: "Por favor intenta con otro CURP"
|
|
604
608
|
},
|
|
605
609
|
"PERSONALDATA-BAD-REQUEST-10": {
|
|
606
|
-
title: "La
|
|
607
|
-
message: "
|
|
610
|
+
title: "La CURP ya tiene proceso iniciado",
|
|
611
|
+
message: "Por favor intenta con otro CURP"
|
|
608
612
|
},
|
|
609
613
|
"PERSONALDATA-BAD-REQUEST-WHITE-LIST-11": {
|
|
610
614
|
title: "Lista blanca devuelve nulo",
|
|
611
|
-
message: "
|
|
615
|
+
message: "Por favor intenta con otro CURP"
|
|
612
616
|
},
|
|
613
617
|
//BIOMETRIC
|
|
614
618
|
"PF-BIOMETRIC-001": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuThB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServiceFE as s } from "./mp-front-cli-core.es.js";
|
|
2
2
|
import { LoadingHandler as E, MessageHandler as F, RxSubjectManager as M } from "./mp-front-cli-utils-rxjs.es.js";
|
|
3
3
|
import { S as H } from "./index-a6a5a26e.js";
|
|
4
|
-
import "./i18n-
|
|
4
|
+
import "./i18n-9725e8da.js";
|
|
5
5
|
import "i18next";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
@@ -2,13 +2,13 @@ var u = Object.defineProperty;
|
|
|
2
2
|
var f = (t, r, e) => r in t ? u(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
3
|
var L = (t, r, e) => (f(t, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
4
|
import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
|
|
5
|
-
import { RxSubjectManager as
|
|
5
|
+
import { RxSubjectManager as Ue } from "./mp-front-cli-utils-rxjs.es.js";
|
|
6
6
|
import { f as c } from "./index-a6a5a26e.js";
|
|
7
7
|
import { S as ne } from "./index-a6a5a26e.js";
|
|
8
|
-
import "./i18n-
|
|
9
|
-
import { t as
|
|
8
|
+
import "./i18n-9725e8da.js";
|
|
9
|
+
import { t as U } from "i18next";
|
|
10
10
|
import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
|
|
11
|
-
import { of as O, switchMap as i, forkJoin as B, catchError as
|
|
11
|
+
import { of as O, switchMap as i, forkJoin as B, catchError as S, EMPTY as P, filter as w } from "rxjs";
|
|
12
12
|
import { CustomEncrypter as v } from "./mp-front-cli-encrypter.es.js";
|
|
13
13
|
import { CustomHeader as h } from "./mp-front-cli-header.es.js";
|
|
14
14
|
import Q from "querystring";
|
|
@@ -959,6 +959,13 @@ const x = {
|
|
|
959
959
|
level: "warning"
|
|
960
960
|
},
|
|
961
961
|
//JORNADA
|
|
962
|
+
"JOURNEY-CANCEL-01": {
|
|
963
|
+
title: "errors.JOURNEY-CANCEL-01.title",
|
|
964
|
+
message: "errors.JOURNEY-CANCEL-01.message",
|
|
965
|
+
code: 420,
|
|
966
|
+
type: "modal",
|
|
967
|
+
level: "warning"
|
|
968
|
+
},
|
|
962
969
|
"JOURNEY-INVALIDATEDATA-01": {
|
|
963
970
|
title: "errors.JOURNEY-INVALIDATEDATA-01.title",
|
|
964
971
|
message: "errors.JOURNEY-INVALIDATEDATA-01.message",
|
|
@@ -1274,8 +1281,8 @@ class C extends F {
|
|
|
1274
1281
|
if (r instanceof Error)
|
|
1275
1282
|
return this.logError(r.message), {
|
|
1276
1283
|
...I.internalError,
|
|
1277
|
-
title:
|
|
1278
|
-
message:
|
|
1284
|
+
title: U(I.internalError.title),
|
|
1285
|
+
message: U(I.internalError.message),
|
|
1279
1286
|
uuid: e
|
|
1280
1287
|
};
|
|
1281
1288
|
const E = typeof r == "string" ? r : r.code ?? r.errorType;
|
|
@@ -1283,11 +1290,11 @@ class C extends F {
|
|
|
1283
1290
|
const l = typeof r == "string" ? {} : { ...r };
|
|
1284
1291
|
return {
|
|
1285
1292
|
...I[E] ?? I.default,
|
|
1286
|
-
title:
|
|
1293
|
+
title: U(
|
|
1287
1294
|
((N = I[E]) == null ? void 0 : N.title) ?? I.default.title,
|
|
1288
1295
|
l
|
|
1289
1296
|
),
|
|
1290
|
-
message:
|
|
1297
|
+
message: U(
|
|
1291
1298
|
((A = I[E]) == null ? void 0 : A.message) ?? I.default.message,
|
|
1292
1299
|
l
|
|
1293
1300
|
),
|
|
@@ -1337,7 +1344,7 @@ class ie extends v {
|
|
|
1337
1344
|
i(({ params: A, response: R, headers: s }) => (this.logDebug(
|
|
1338
1345
|
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${E.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(s)} \x1B[37m <UUID> \x1B[33m ${E.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(R)}`
|
|
1339
1346
|
), O(R))),
|
|
1340
|
-
|
|
1347
|
+
S((A) => {
|
|
1341
1348
|
var R;
|
|
1342
1349
|
return this.logError(
|
|
1343
1350
|
`ApiMiddleware <URL>: ${E == null ? void 0 : E.url} <HEADERS>: ${JSON.stringify(E == null ? void 0 : E.headers)} <UUID> ${(R = E == null ? void 0 : E.body) == null ? void 0 : R.uuid} <PARAMS> ${JSON.stringify(E == null ? void 0 : E.body)} <ERROR>: ${JSON.stringify(A)}`
|
|
@@ -1351,7 +1358,7 @@ class ie extends v {
|
|
|
1351
1358
|
};
|
|
1352
1359
|
}
|
|
1353
1360
|
}
|
|
1354
|
-
const
|
|
1361
|
+
const J = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
1355
1362
|
class Ie extends h {
|
|
1356
1363
|
constructor(e, E, l = {}) {
|
|
1357
1364
|
super(l);
|
|
@@ -1367,7 +1374,7 @@ class Ie extends h {
|
|
|
1367
1374
|
formatParams(e) {
|
|
1368
1375
|
return JSON.stringify({
|
|
1369
1376
|
data: {
|
|
1370
|
-
type:
|
|
1377
|
+
type: J,
|
|
1371
1378
|
attributes: e
|
|
1372
1379
|
}
|
|
1373
1380
|
});
|
|
@@ -1384,7 +1391,7 @@ class Ie extends h {
|
|
|
1384
1391
|
selector: (N) => N.json()
|
|
1385
1392
|
}
|
|
1386
1393
|
).pipe(
|
|
1387
|
-
|
|
1394
|
+
S((N) => {
|
|
1388
1395
|
throw this.logError(JSON.stringify(N)), this.logError(
|
|
1389
1396
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1390
1397
|
l
|
|
@@ -1419,7 +1426,7 @@ class Ie extends h {
|
|
|
1419
1426
|
body: this.method === "GET" ? null : JSON.stringify(e),
|
|
1420
1427
|
selector: (a) => a.json()
|
|
1421
1428
|
}).pipe(
|
|
1422
|
-
|
|
1429
|
+
S((a) => {
|
|
1423
1430
|
throw this.logError(JSON.stringify(a)), this.logError(
|
|
1424
1431
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${s} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1425
1432
|
T
|
|
@@ -1440,9 +1447,9 @@ class Ie extends h {
|
|
|
1440
1447
|
);
|
|
1441
1448
|
}
|
|
1442
1449
|
}
|
|
1443
|
-
const
|
|
1450
|
+
const X = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
1444
1451
|
function _(t) {
|
|
1445
|
-
return typeof t == "string" &&
|
|
1452
|
+
return typeof t == "string" && X.test(t);
|
|
1446
1453
|
}
|
|
1447
1454
|
function $(t) {
|
|
1448
1455
|
if (!_(t))
|
|
@@ -1564,7 +1571,7 @@ class Ce extends V {
|
|
|
1564
1571
|
i((s) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1565
1572
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
|
|
1566
1573
|
), O(s))),
|
|
1567
|
-
|
|
1574
|
+
S((s) => (this.logError(
|
|
1568
1575
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
|
|
1569
1576
|
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1570
1577
|
new C().get(s, l)
|
|
@@ -1579,6 +1586,6 @@ export {
|
|
|
1579
1586
|
Ce as FetchServiceFE,
|
|
1580
1587
|
g as LoadingHandler,
|
|
1581
1588
|
M as MessageHandler,
|
|
1582
|
-
|
|
1589
|
+
Ue as RxSubjectManager,
|
|
1583
1590
|
ne as ServiceToken
|
|
1584
1591
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mp-front-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-rc.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"package": "npm pack",
|
|
9
9
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
|
|
10
10
|
"snyk": "snyk test",
|
|
11
|
-
"husky:prepare": "husky install"
|
|
11
|
+
"husky:prepare": "husky install",
|
|
12
|
+
"publish-rc": "npm publish --tag rc"
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
|
14
15
|
"dist"
|
|
@@ -88,4 +89,4 @@
|
|
|
88
89
|
"vite-plugin-dts": "4.5.0",
|
|
89
90
|
"vite-tsconfig-paths": "4.2.2"
|
|
90
91
|
}
|
|
91
|
-
}
|
|
92
|
+
}
|