mp-front-cli 0.0.128 → 0.0.130
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/core/utils/custom-adapter.d.ts.map +1 -1
- package/dist/{index-935aeed1.js → index-16adcad8.js} +4 -0
- 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-adapter.es.js +4 -1
- package/dist/mp-front-cli-all.es.js +1 -1
- package/dist/mp-front-cli-core.es.js +28 -21
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/package.json +3 -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;AA40BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-adapter.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-adapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,OAAO,EAIR,MAAM,oBAAoB,CAAA;AAW3B,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,cAAc,EAAE,qBAU5B,CAAA;AAgBD,wBAAgB,cAAc,CAC5B,OAAO,GAAE,qBAAgE,GACxE,OAAO,
|
|
1
|
+
{"version":3,"file":"custom-adapter.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-adapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,OAAO,EAIR,MAAM,oBAAoB,CAAA;AAW3B,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,cAAc,EAAE,qBAU5B,CAAA;AAgBD,wBAAgB,cAAc,CAC5B,OAAO,GAAE,qBAAgE,GACxE,OAAO,CAmPT"}
|
|
@@ -694,6 +694,10 @@ const e = {
|
|
|
694
694
|
title: "Referencias no válidas",
|
|
695
695
|
message: "No se puede tener de referencia más de un Padre o Madre a la vez"
|
|
696
696
|
},
|
|
697
|
+
"PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001": {
|
|
698
|
+
title: "Referencias no válidas",
|
|
699
|
+
message: "No se puede usar los datos del cliente como referencia"
|
|
700
|
+
},
|
|
697
701
|
//PAYMENTS
|
|
698
702
|
"SALES-SUMMARY-GENERIC-ERROR-001": {
|
|
699
703
|
title: "Ocurrió un error resumen de venta",
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ShB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -138,7 +138,10 @@ function te(c = { expire: B * 60 }) {
|
|
|
138
138
|
const t = m(e.providerAccountId, e.provider);
|
|
139
139
|
return await N(t, { ...e, id: t });
|
|
140
140
|
},
|
|
141
|
-
async unlinkAccount({
|
|
141
|
+
async unlinkAccount({
|
|
142
|
+
providerAccountId: e,
|
|
143
|
+
provider: t
|
|
144
|
+
}) {
|
|
142
145
|
const n = m(e, t);
|
|
143
146
|
await h(n);
|
|
144
147
|
},
|
|
@@ -2,7 +2,7 @@ import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServic
|
|
|
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-def0b487.js";
|
|
4
4
|
import "i18next";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-16adcad8.js";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
import "./mp-front-cli-encrypter.es.js";
|
|
@@ -5,10 +5,10 @@ import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-r
|
|
|
5
5
|
import { RxSubjectManager as De } from "./mp-front-cli-utils-rxjs.es.js";
|
|
6
6
|
import { f as c } from "./index-def0b487.js";
|
|
7
7
|
import { S as Pe } from "./index-def0b487.js";
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
10
|
-
import { CustomLogger as
|
|
11
|
-
import { of as o, switchMap as L, forkJoin as p, catchError as
|
|
8
|
+
import F, { t as n } from "i18next";
|
|
9
|
+
import { t as v } from "./index-16adcad8.js";
|
|
10
|
+
import { CustomLogger as w } from "./mp-front-cli-logger.es.js";
|
|
11
|
+
import { of as o, switchMap as L, forkJoin as p, catchError as S, EMPTY as P, filter as h } from "rxjs";
|
|
12
12
|
import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
|
|
13
13
|
import { CustomHeader as Q } from "./mp-front-cli-header.es.js";
|
|
14
14
|
import H from "querystring";
|
|
@@ -19,11 +19,11 @@ import "crypto";
|
|
|
19
19
|
const Y = {
|
|
20
20
|
es: {
|
|
21
21
|
translation: {
|
|
22
|
-
...
|
|
22
|
+
...v
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
F.init({
|
|
27
27
|
resources: Y,
|
|
28
28
|
lng: "es",
|
|
29
29
|
// language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
|
|
@@ -366,7 +366,7 @@ const K = {
|
|
|
366
366
|
title: "errors.ENROLLMENT-THEREISNTIMEI-0048.title",
|
|
367
367
|
level: "warning"
|
|
368
368
|
}
|
|
369
|
-
},
|
|
369
|
+
}, X = {
|
|
370
370
|
"SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
|
|
371
371
|
code: 400,
|
|
372
372
|
type: "modal",
|
|
@@ -423,7 +423,7 @@ const K = {
|
|
|
423
423
|
title: "errors.helpdesk.UNEXCEPTED-ERROR.title",
|
|
424
424
|
level: "error"
|
|
425
425
|
}
|
|
426
|
-
},
|
|
426
|
+
}, J = {
|
|
427
427
|
"PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
|
|
428
428
|
code: 400,
|
|
429
429
|
type: "modal",
|
|
@@ -431,9 +431,9 @@ const K = {
|
|
|
431
431
|
title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
|
|
432
432
|
level: "error"
|
|
433
433
|
}
|
|
434
|
-
},
|
|
435
|
-
...
|
|
436
|
-
...
|
|
434
|
+
}, _ = {
|
|
435
|
+
...J,
|
|
436
|
+
...X
|
|
437
437
|
}, i = {
|
|
438
438
|
"MP-001": {
|
|
439
439
|
code: 400,
|
|
@@ -1220,6 +1220,13 @@ const K = {
|
|
|
1220
1220
|
type: "modal",
|
|
1221
1221
|
level: "warning"
|
|
1222
1222
|
},
|
|
1223
|
+
"PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001": {
|
|
1224
|
+
title: "errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.title",
|
|
1225
|
+
message: "errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.message",
|
|
1226
|
+
code: 422,
|
|
1227
|
+
type: "modal",
|
|
1228
|
+
level: "warning"
|
|
1229
|
+
},
|
|
1223
1230
|
//PAYMENTS
|
|
1224
1231
|
"SALES-SUMMARY-GENERIC-ERROR-001": {
|
|
1225
1232
|
title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
|
|
@@ -1251,9 +1258,9 @@ const K = {
|
|
|
1251
1258
|
level: "warning"
|
|
1252
1259
|
},
|
|
1253
1260
|
...K,
|
|
1254
|
-
...
|
|
1261
|
+
..._
|
|
1255
1262
|
};
|
|
1256
|
-
class C extends
|
|
1263
|
+
class C extends w {
|
|
1257
1264
|
get(r = "default", e = "NOT_FOUND") {
|
|
1258
1265
|
var N, A;
|
|
1259
1266
|
if (r instanceof Error)
|
|
@@ -1322,7 +1329,7 @@ class me extends V {
|
|
|
1322
1329
|
L(({ params: A, response: R, headers: s }) => (this.logDebug(
|
|
1323
1330
|
`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)}`
|
|
1324
1331
|
), o(R))),
|
|
1325
|
-
|
|
1332
|
+
S((A) => {
|
|
1326
1333
|
var R;
|
|
1327
1334
|
return this.logError(
|
|
1328
1335
|
`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)}`
|
|
@@ -1369,7 +1376,7 @@ class ge extends Q {
|
|
|
1369
1376
|
selector: (N) => N.json()
|
|
1370
1377
|
}
|
|
1371
1378
|
).pipe(
|
|
1372
|
-
|
|
1379
|
+
S((N) => {
|
|
1373
1380
|
throw this.logError(JSON.stringify(N)), this.logError(
|
|
1374
1381
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1375
1382
|
l
|
|
@@ -1404,7 +1411,7 @@ class ge extends Q {
|
|
|
1404
1411
|
body: this.method === "GET" ? null : JSON.stringify(e),
|
|
1405
1412
|
selector: (T) => T.json()
|
|
1406
1413
|
}).pipe(
|
|
1407
|
-
|
|
1414
|
+
S((T) => {
|
|
1408
1415
|
throw this.logError(JSON.stringify(T)), this.logError(
|
|
1409
1416
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1410
1417
|
s
|
|
@@ -1503,12 +1510,12 @@ function Ee(t) {
|
|
|
1503
1510
|
R[a] = N[A][a];
|
|
1504
1511
|
for (let a = 16; a < 80; ++a)
|
|
1505
1512
|
R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
|
|
1506
|
-
let s = e[0], T = e[1], I = e[2], m = e[3],
|
|
1513
|
+
let s = e[0], T = e[1], I = e[2], m = e[3], U = e[4];
|
|
1507
1514
|
for (let a = 0; a < 80; ++a) {
|
|
1508
|
-
const d = Math.floor(a / 20), y = D(s, 5) + ee(d, T, I, m) +
|
|
1509
|
-
|
|
1515
|
+
const d = Math.floor(a / 20), y = D(s, 5) + ee(d, T, I, m) + U + r[d] + R[a] >>> 0;
|
|
1516
|
+
U = m, m = I, I = D(T, 30) >>> 0, T = s, s = y;
|
|
1510
1517
|
}
|
|
1511
|
-
e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + I >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] +
|
|
1518
|
+
e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + I >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + U >>> 0;
|
|
1512
1519
|
}
|
|
1513
1520
|
return [e[0] >> 24 & 255, e[0] >> 16 & 255, e[0] >> 8 & 255, e[0] & 255, e[1] >> 24 & 255, e[1] >> 16 & 255, e[1] >> 8 & 255, e[1] & 255, e[2] >> 24 & 255, e[2] >> 16 & 255, e[2] >> 8 & 255, e[2] & 255, e[3] >> 24 & 255, e[3] >> 16 & 255, e[3] >> 8 & 255, e[3] & 255, e[4] >> 24 & 255, e[4] >> 16 & 255, e[4] >> 8 & 255, e[4] & 255];
|
|
1514
1521
|
}
|
|
@@ -1549,7 +1556,7 @@ class ne extends x {
|
|
|
1549
1556
|
L((s) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1550
1557
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
|
|
1551
1558
|
), o(s))),
|
|
1552
|
-
|
|
1559
|
+
S((s) => (this.logError(
|
|
1553
1560
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
|
|
1554
1561
|
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1555
1562
|
new C().get(s, l)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mp-front-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.130",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"i18next": "23.10.0",
|
|
67
67
|
"ioredis": "5.3.2",
|
|
68
|
-
"next-auth": "4.24.
|
|
68
|
+
"next-auth": "4.24.8",
|
|
69
69
|
"node-jose": "2.2.0",
|
|
70
70
|
"rxjs": "7.8.1"
|
|
71
71
|
},
|
|
@@ -88,4 +88,4 @@
|
|
|
88
88
|
"vite-plugin-dts": "3.7.1",
|
|
89
89
|
"vite-tsconfig-paths": "4.2.2"
|
|
90
90
|
}
|
|
91
|
-
}
|
|
91
|
+
}
|