mp-front-cli 0.0.119 → 0.0.120
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/enrollment/error-catalog-enrollment.d.ts.map +1 -1
- package/dist/{index-a971bc83.js → index-62b8b46c.js} +8 -4
- package/dist/lang/common/errors/enrollment/es_MX/index.d.ts +4 -0
- package/dist/lang/common/errors/enrollment/es_MX/index.d.ts.map +1 -1
- 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 +50 -43
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-catalog-enrollment.d.ts","sourceRoot":"","sources":["../../../../src/core/errors/enrollment/error-catalog-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,eAAO,MAAM,sBAAsB,EAAE;IACnC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"error-catalog-enrollment.d.ts","sourceRoot":"","sources":["../../../../src/core/errors/enrollment/error-catalog-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,eAAO,MAAM,sBAAsB,EAAE;IACnC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CA+QnC,CAAA"}
|
|
@@ -206,7 +206,7 @@ const e = {
|
|
|
206
206
|
message: "Error de servicio"
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
},
|
|
209
|
+
}, a = {
|
|
210
210
|
enrollment: {
|
|
211
211
|
"ENROLLMENT-INVALIDCONFIGURATION-0000": {
|
|
212
212
|
title: "Configuración no correspondiente",
|
|
@@ -356,12 +356,16 @@ const e = {
|
|
|
356
356
|
title: "Existencias",
|
|
357
357
|
message: "No se encontraron IMEI's/números de serie, por favor comunícate con mesa de ayuda."
|
|
358
358
|
},
|
|
359
|
+
"ENROLLMENT-NOTALLOWEDBRAND-0044": {
|
|
360
|
+
title: "Marca no permitida",
|
|
361
|
+
message: "La marca no se encuentra en la lista de marcas permitidas para enrolamiento"
|
|
362
|
+
},
|
|
359
363
|
"ENROLLMENT-USED-IMEI-0001": {
|
|
360
364
|
title: "Validación de IMEI",
|
|
361
365
|
message: "No puedes usar este IMEI nuevamente"
|
|
362
366
|
}
|
|
363
367
|
}
|
|
364
|
-
},
|
|
368
|
+
}, o = {
|
|
365
369
|
helpdesk: {
|
|
366
370
|
"PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
|
|
367
371
|
title: "Error",
|
|
@@ -433,7 +437,7 @@ const e = {
|
|
|
433
437
|
//Calculator & Apartadito
|
|
434
438
|
...e,
|
|
435
439
|
//#region helpdesk
|
|
436
|
-
...
|
|
440
|
+
...o,
|
|
437
441
|
//JORNADA
|
|
438
442
|
"JOURNEY-INVALIDATEDATA-01": {
|
|
439
443
|
title: "Por favor verifique su estructura y los valores de sus atributos.",
|
|
@@ -620,7 +624,7 @@ const e = {
|
|
|
620
624
|
message: "Por favor ingresa otro número de teléfono"
|
|
621
625
|
},
|
|
622
626
|
//ENROLLMENT
|
|
623
|
-
...
|
|
627
|
+
...a.enrollment,
|
|
624
628
|
//Personal References
|
|
625
629
|
"PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
|
|
626
630
|
title: "Intentar con otra referencia",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoLhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2RhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { ApiMiddleware as g, ErrorCatalog as l, FetchServiceBE as x, FetchServic
|
|
|
2
2
|
import { LoadingHandler as v, MessageHandler as E, RxSubjectManager as F } 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-62b8b46c.js";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
import "./mp-front-cli-encrypter.es.js";
|
|
@@ -6,7 +6,7 @@ import { RxSubjectManager as ne } from "./mp-front-cli-utils-rxjs.es.js";
|
|
|
6
6
|
import { f as c } from "./index-def0b487.js";
|
|
7
7
|
import { S as De } from "./index-def0b487.js";
|
|
8
8
|
import v, { t as U } from "i18next";
|
|
9
|
-
import { t as w } from "./index-
|
|
9
|
+
import { t as w } from "./index-62b8b46c.js";
|
|
10
10
|
import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
|
|
11
11
|
import { of as T, switchMap as L, forkJoin as B, catchError as n, EMPTY as P, filter as h } from "rxjs";
|
|
12
12
|
import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
|
|
@@ -288,6 +288,13 @@ const H = {
|
|
|
288
288
|
title: "errors.ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042.title",
|
|
289
289
|
level: "warning"
|
|
290
290
|
},
|
|
291
|
+
"ENROLLMENT-NOTALLOWEDBRAND-0044": {
|
|
292
|
+
code: 400,
|
|
293
|
+
type: "modal",
|
|
294
|
+
message: "errors.ENROLLMENT-NOTALLOWEDBRAND-0044.message",
|
|
295
|
+
title: "errors.ENROLLMENT-NOTALLOWEDBRAND-0044.title",
|
|
296
|
+
level: "warning"
|
|
297
|
+
},
|
|
291
298
|
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
|
|
292
299
|
code: 400,
|
|
293
300
|
type: "modal",
|
|
@@ -1220,19 +1227,19 @@ class Ie extends V {
|
|
|
1220
1227
|
})
|
|
1221
1228
|
),
|
|
1222
1229
|
L(
|
|
1223
|
-
({ params: A, headers:
|
|
1224
|
-
response: e(A, this.uuid,
|
|
1225
|
-
headers: T(
|
|
1230
|
+
({ params: A, headers: R }) => B({
|
|
1231
|
+
response: e(A, this.uuid, R),
|
|
1232
|
+
headers: T(R),
|
|
1226
1233
|
params: T(A)
|
|
1227
1234
|
})
|
|
1228
1235
|
),
|
|
1229
|
-
L(({ params: A, response:
|
|
1230
|
-
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1231
|
-
), T(
|
|
1236
|
+
L(({ params: A, response: R, headers: N }) => (this.logDebug(
|
|
1237
|
+
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(N)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(R)}`
|
|
1238
|
+
), T(R))),
|
|
1232
1239
|
n((A) => {
|
|
1233
|
-
var
|
|
1240
|
+
var R;
|
|
1234
1241
|
return this.logError(
|
|
1235
|
-
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(
|
|
1242
|
+
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(R = r == null ? void 0 : r.body) == null ? void 0 : R.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(A)}`
|
|
1236
1243
|
), this.returnError(l, A), P;
|
|
1237
1244
|
})
|
|
1238
1245
|
).subscribe({
|
|
@@ -1347,15 +1354,15 @@ function k(t) {
|
|
|
1347
1354
|
}
|
|
1348
1355
|
const j = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Z = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1349
1356
|
function z(t, E, e) {
|
|
1350
|
-
function r(l, s, A,
|
|
1351
|
-
var
|
|
1352
|
-
if (typeof l == "string" && (l = k(l)), typeof s == "string" && (s = W(s)), ((
|
|
1357
|
+
function r(l, s, A, R) {
|
|
1358
|
+
var N;
|
|
1359
|
+
if (typeof l == "string" && (l = k(l)), typeof s == "string" && (s = W(s)), ((N = s) === null || N === void 0 ? void 0 : N.length) !== 16)
|
|
1353
1360
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
1354
1361
|
let o = new Uint8Array(16 + l.length);
|
|
1355
1362
|
if (o.set(s), o.set(l, s.length), o = e(o), o[6] = o[6] & 15 | E, o[8] = o[8] & 63 | 128, A) {
|
|
1356
|
-
|
|
1363
|
+
R = R || 0;
|
|
1357
1364
|
for (let i = 0; i < 16; ++i)
|
|
1358
|
-
A[
|
|
1365
|
+
A[R + i] = o[i];
|
|
1359
1366
|
return A;
|
|
1360
1367
|
}
|
|
1361
1368
|
return G(o);
|
|
@@ -1386,31 +1393,31 @@ function ee(t) {
|
|
|
1386
1393
|
if (typeof t == "string") {
|
|
1387
1394
|
const A = unescape(encodeURIComponent(t));
|
|
1388
1395
|
t = [];
|
|
1389
|
-
for (let
|
|
1390
|
-
t.push(A.charCodeAt(
|
|
1396
|
+
for (let R = 0; R < A.length; ++R)
|
|
1397
|
+
t.push(A.charCodeAt(R));
|
|
1391
1398
|
} else
|
|
1392
1399
|
Array.isArray(t) || (t = Array.prototype.slice.call(t));
|
|
1393
1400
|
t.push(128);
|
|
1394
1401
|
const r = t.length / 4 + 2, l = Math.ceil(r / 16), s = new Array(l);
|
|
1395
1402
|
for (let A = 0; A < l; ++A) {
|
|
1396
|
-
const
|
|
1397
|
-
for (let
|
|
1398
|
-
|
|
1399
|
-
s[A] =
|
|
1403
|
+
const R = new Uint32Array(16);
|
|
1404
|
+
for (let N = 0; N < 16; ++N)
|
|
1405
|
+
R[N] = t[A * 64 + N * 4] << 24 | t[A * 64 + N * 4 + 1] << 16 | t[A * 64 + N * 4 + 2] << 8 | t[A * 64 + N * 4 + 3];
|
|
1406
|
+
s[A] = R;
|
|
1400
1407
|
}
|
|
1401
1408
|
s[l - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), s[l - 1][14] = Math.floor(s[l - 1][14]), s[l - 1][15] = (t.length - 1) * 8 & 4294967295;
|
|
1402
1409
|
for (let A = 0; A < l; ++A) {
|
|
1403
|
-
const
|
|
1404
|
-
for (let
|
|
1405
|
-
a
|
|
1406
|
-
for (let
|
|
1407
|
-
a
|
|
1408
|
-
let
|
|
1409
|
-
for (let
|
|
1410
|
-
const d = Math.floor(
|
|
1411
|
-
S = m, m = i, i = D(o, 30) >>> 0, o =
|
|
1410
|
+
const R = new Uint32Array(80);
|
|
1411
|
+
for (let a = 0; a < 16; ++a)
|
|
1412
|
+
R[a] = s[A][a];
|
|
1413
|
+
for (let a = 16; a < 80; ++a)
|
|
1414
|
+
R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
|
|
1415
|
+
let N = e[0], o = e[1], i = e[2], m = e[3], S = e[4];
|
|
1416
|
+
for (let a = 0; a < 80; ++a) {
|
|
1417
|
+
const d = Math.floor(a / 20), y = D(N, 5) + q(d, o, i, m) + S + E[d] + R[a] >>> 0;
|
|
1418
|
+
S = m, m = i, i = D(o, 30) >>> 0, o = N, N = y;
|
|
1412
1419
|
}
|
|
1413
|
-
e[0] = e[0] +
|
|
1420
|
+
e[0] = e[0] + N >>> 0, e[1] = e[1] + o >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + S >>> 0;
|
|
1414
1421
|
}
|
|
1415
1422
|
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];
|
|
1416
1423
|
}
|
|
@@ -1437,24 +1444,24 @@ class me extends x {
|
|
|
1437
1444
|
fetchData(e = {}) {
|
|
1438
1445
|
const r = (/* @__PURE__ */ new Date()).toISOString(), l = p(r, p.URL), s = this.encode({ ...e }, l);
|
|
1439
1446
|
g.getInstance().setSubject(this.isLoadingEnabled);
|
|
1440
|
-
const
|
|
1447
|
+
const R = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
1441
1448
|
return c(this.apiUrl, {
|
|
1442
1449
|
method: this.method,
|
|
1443
|
-
headers: { ...this.headers, flow:
|
|
1450
|
+
headers: { ...this.headers, flow: R },
|
|
1444
1451
|
body: s,
|
|
1445
|
-
selector: (
|
|
1452
|
+
selector: (N) => N.json()
|
|
1446
1453
|
}).pipe(
|
|
1447
|
-
L((
|
|
1448
|
-
L((
|
|
1449
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1450
|
-
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1451
|
-
L((
|
|
1452
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1453
|
-
), T(
|
|
1454
|
-
n((
|
|
1455
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1454
|
+
L((N) => T(this.decode(N))),
|
|
1455
|
+
L((N) => N.code && (N.type === "modal" || N.type === "message") ? (this.logError(
|
|
1456
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
|
|
1457
|
+
), g.getInstance().setSubject(!1), M.getInstance().setSubject(N), this.errorResponse ? T(this.errorResponse) : P) : T(N)),
|
|
1458
|
+
L((N) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1459
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
|
|
1460
|
+
), T(N))),
|
|
1461
|
+
n((N) => (this.logError(
|
|
1462
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
|
|
1456
1463
|
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1457
|
-
new C().get(
|
|
1464
|
+
new C().get(N, l)
|
|
1458
1465
|
), this.errorResponse ? T(this.errorResponse) : P))
|
|
1459
1466
|
);
|
|
1460
1467
|
}
|