mp-front-cli 0.0.118 → 0.0.119
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-3e533091.js → index-a971bc83.js} +12 -0
- package/dist/lang/common/errors/enrollment/es_MX/index.d.ts +12 -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 +12 -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 +63 -49
- 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;CAwQnC,CAAA"}
|
|
@@ -347,6 +347,18 @@ const e = {
|
|
|
347
347
|
"ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037": {
|
|
348
348
|
title: "Contacta con el equipo de soporte",
|
|
349
349
|
message: "Por favor comunícate con mesa de ayuda, ID:ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037"
|
|
350
|
+
},
|
|
351
|
+
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
|
|
352
|
+
title: "Contacta con el equipo de soporte",
|
|
353
|
+
message: "Por favor comunícate con mesa de ayuda, ID:ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041"
|
|
354
|
+
},
|
|
355
|
+
"ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042": {
|
|
356
|
+
title: "Existencias",
|
|
357
|
+
message: "No se encontraron IMEI's/números de serie, por favor comunícate con mesa de ayuda."
|
|
358
|
+
},
|
|
359
|
+
"ENROLLMENT-USED-IMEI-0001": {
|
|
360
|
+
title: "Validación de IMEI",
|
|
361
|
+
message: "No puedes usar este IMEI nuevamente"
|
|
350
362
|
}
|
|
351
363
|
}
|
|
352
364
|
}, a = {
|
|
@@ -140,6 +140,18 @@ declare const translation: {
|
|
|
140
140
|
title: string;
|
|
141
141
|
message: string;
|
|
142
142
|
};
|
|
143
|
+
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
|
|
144
|
+
title: string;
|
|
145
|
+
message: string;
|
|
146
|
+
};
|
|
147
|
+
"ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042": {
|
|
148
|
+
title: string;
|
|
149
|
+
message: string;
|
|
150
|
+
};
|
|
151
|
+
"ENROLLMENT-USED-IMEI-0001": {
|
|
152
|
+
title: string;
|
|
153
|
+
message: string;
|
|
154
|
+
};
|
|
143
155
|
};
|
|
144
156
|
};
|
|
145
157
|
export default translation;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+KhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -180,6 +180,18 @@ declare const translation: {
|
|
|
180
180
|
title: string;
|
|
181
181
|
message: string;
|
|
182
182
|
};
|
|
183
|
+
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
|
|
184
|
+
title: string;
|
|
185
|
+
message: string;
|
|
186
|
+
};
|
|
187
|
+
"ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042": {
|
|
188
|
+
title: string;
|
|
189
|
+
message: string;
|
|
190
|
+
};
|
|
191
|
+
"ENROLLMENT-USED-IMEI-0001": {
|
|
192
|
+
title: string;
|
|
193
|
+
message: string;
|
|
194
|
+
};
|
|
183
195
|
"JOURNEY-INVALIDATEDATA-01": {
|
|
184
196
|
title: string;
|
|
185
197
|
message: string;
|
|
@@ -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-a971bc83.js";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
import "./mp-front-cli-encrypter.es.js";
|
|
@@ -6,9 +6,9 @@ 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-a971bc83.js";
|
|
10
10
|
import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
|
|
11
|
-
import { of as T, switchMap as L, forkJoin as B, catchError as n, EMPTY as
|
|
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";
|
|
13
13
|
import { CustomHeader as Q } from "./mp-front-cli-header.es.js";
|
|
14
14
|
import { CustomEncoder as x } from "./mp-front-cli-encoder.es.js";
|
|
@@ -280,6 +280,20 @@ const H = {
|
|
|
280
280
|
message: "errors.ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037.message",
|
|
281
281
|
title: "errors.ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037.title",
|
|
282
282
|
level: "warning"
|
|
283
|
+
},
|
|
284
|
+
"ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042": {
|
|
285
|
+
code: 400,
|
|
286
|
+
type: "modal",
|
|
287
|
+
message: "errors.ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042.message",
|
|
288
|
+
title: "errors.ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042.title",
|
|
289
|
+
level: "warning"
|
|
290
|
+
},
|
|
291
|
+
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
|
|
292
|
+
code: 400,
|
|
293
|
+
type: "modal",
|
|
294
|
+
message: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.message",
|
|
295
|
+
title: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.title",
|
|
296
|
+
level: "warning"
|
|
283
297
|
}
|
|
284
298
|
}, K = {
|
|
285
299
|
"SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
|
|
@@ -1206,20 +1220,20 @@ class Ie extends V {
|
|
|
1206
1220
|
})
|
|
1207
1221
|
),
|
|
1208
1222
|
L(
|
|
1209
|
-
({ params: A, headers:
|
|
1210
|
-
response: e(A, this.uuid,
|
|
1211
|
-
headers: T(
|
|
1223
|
+
({ params: A, headers: a }) => B({
|
|
1224
|
+
response: e(A, this.uuid, a),
|
|
1225
|
+
headers: T(a),
|
|
1212
1226
|
params: T(A)
|
|
1213
1227
|
})
|
|
1214
1228
|
),
|
|
1215
|
-
L(({ params: A, response:
|
|
1216
|
-
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1217
|
-
), T(
|
|
1229
|
+
L(({ params: A, response: a, headers: R }) => (this.logDebug(
|
|
1230
|
+
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(R)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)}`
|
|
1231
|
+
), T(a))),
|
|
1218
1232
|
n((A) => {
|
|
1219
|
-
var
|
|
1233
|
+
var a;
|
|
1220
1234
|
return this.logError(
|
|
1221
|
-
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(
|
|
1222
|
-
), this.returnError(l, A),
|
|
1235
|
+
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(a = r == null ? void 0 : r.body) == null ? void 0 : a.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(A)}`
|
|
1236
|
+
), this.returnError(l, A), P;
|
|
1223
1237
|
})
|
|
1224
1238
|
).subscribe({
|
|
1225
1239
|
next: (A) => {
|
|
@@ -1333,18 +1347,18 @@ function k(t) {
|
|
|
1333
1347
|
}
|
|
1334
1348
|
const j = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Z = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1335
1349
|
function z(t, E, e) {
|
|
1336
|
-
function r(l, s, A,
|
|
1337
|
-
var
|
|
1338
|
-
if (typeof l == "string" && (l = k(l)), typeof s == "string" && (s = W(s)), ((
|
|
1350
|
+
function r(l, s, A, a) {
|
|
1351
|
+
var R;
|
|
1352
|
+
if (typeof l == "string" && (l = k(l)), typeof s == "string" && (s = W(s)), ((R = s) === null || R === void 0 ? void 0 : R.length) !== 16)
|
|
1339
1353
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
1340
|
-
let
|
|
1341
|
-
if (
|
|
1342
|
-
|
|
1354
|
+
let o = new Uint8Array(16 + l.length);
|
|
1355
|
+
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
|
+
a = a || 0;
|
|
1343
1357
|
for (let i = 0; i < 16; ++i)
|
|
1344
|
-
A[
|
|
1358
|
+
A[a + i] = o[i];
|
|
1345
1359
|
return A;
|
|
1346
1360
|
}
|
|
1347
|
-
return G(
|
|
1361
|
+
return G(o);
|
|
1348
1362
|
}
|
|
1349
1363
|
try {
|
|
1350
1364
|
r.name = t;
|
|
@@ -1372,31 +1386,31 @@ function ee(t) {
|
|
|
1372
1386
|
if (typeof t == "string") {
|
|
1373
1387
|
const A = unescape(encodeURIComponent(t));
|
|
1374
1388
|
t = [];
|
|
1375
|
-
for (let
|
|
1376
|
-
t.push(A.charCodeAt(
|
|
1389
|
+
for (let a = 0; a < A.length; ++a)
|
|
1390
|
+
t.push(A.charCodeAt(a));
|
|
1377
1391
|
} else
|
|
1378
1392
|
Array.isArray(t) || (t = Array.prototype.slice.call(t));
|
|
1379
1393
|
t.push(128);
|
|
1380
1394
|
const r = t.length / 4 + 2, l = Math.ceil(r / 16), s = new Array(l);
|
|
1381
1395
|
for (let A = 0; A < l; ++A) {
|
|
1382
|
-
const
|
|
1383
|
-
for (let
|
|
1384
|
-
R
|
|
1385
|
-
s[A] =
|
|
1396
|
+
const a = new Uint32Array(16);
|
|
1397
|
+
for (let R = 0; R < 16; ++R)
|
|
1398
|
+
a[R] = t[A * 64 + R * 4] << 24 | t[A * 64 + R * 4 + 1] << 16 | t[A * 64 + R * 4 + 2] << 8 | t[A * 64 + R * 4 + 3];
|
|
1399
|
+
s[A] = a;
|
|
1386
1400
|
}
|
|
1387
1401
|
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;
|
|
1388
1402
|
for (let A = 0; A < l; ++A) {
|
|
1389
|
-
const
|
|
1390
|
-
for (let
|
|
1391
|
-
|
|
1392
|
-
for (let
|
|
1393
|
-
|
|
1394
|
-
let
|
|
1395
|
-
for (let
|
|
1396
|
-
const
|
|
1397
|
-
S = m, m = i, i = D(
|
|
1403
|
+
const a = new Uint32Array(80);
|
|
1404
|
+
for (let N = 0; N < 16; ++N)
|
|
1405
|
+
a[N] = s[A][N];
|
|
1406
|
+
for (let N = 16; N < 80; ++N)
|
|
1407
|
+
a[N] = D(a[N - 3] ^ a[N - 8] ^ a[N - 14] ^ a[N - 16], 1);
|
|
1408
|
+
let R = e[0], o = e[1], i = e[2], m = e[3], S = e[4];
|
|
1409
|
+
for (let N = 0; N < 80; ++N) {
|
|
1410
|
+
const d = Math.floor(N / 20), y = D(R, 5) + q(d, o, i, m) + S + E[d] + a[N] >>> 0;
|
|
1411
|
+
S = m, m = i, i = D(o, 30) >>> 0, o = R, R = y;
|
|
1398
1412
|
}
|
|
1399
|
-
e[0] = e[0] +
|
|
1413
|
+
e[0] = e[0] + R >>> 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;
|
|
1400
1414
|
}
|
|
1401
1415
|
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];
|
|
1402
1416
|
}
|
|
@@ -1423,25 +1437,25 @@ class me extends x {
|
|
|
1423
1437
|
fetchData(e = {}) {
|
|
1424
1438
|
const r = (/* @__PURE__ */ new Date()).toISOString(), l = p(r, p.URL), s = this.encode({ ...e }, l);
|
|
1425
1439
|
g.getInstance().setSubject(this.isLoadingEnabled);
|
|
1426
|
-
const
|
|
1440
|
+
const a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
1427
1441
|
return c(this.apiUrl, {
|
|
1428
1442
|
method: this.method,
|
|
1429
|
-
headers: { ...this.headers, flow:
|
|
1443
|
+
headers: { ...this.headers, flow: a },
|
|
1430
1444
|
body: s,
|
|
1431
|
-
selector: (
|
|
1445
|
+
selector: (R) => R.json()
|
|
1432
1446
|
}).pipe(
|
|
1433
|
-
L((
|
|
1434
|
-
L((
|
|
1435
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1436
|
-
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1437
|
-
L((
|
|
1438
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1439
|
-
), T(
|
|
1440
|
-
n((
|
|
1441
|
-
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(
|
|
1447
|
+
L((R) => T(this.decode(R))),
|
|
1448
|
+
L((R) => R.code && (R.type === "modal" || R.type === "message") ? (this.logError(
|
|
1449
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(R)}`
|
|
1450
|
+
), g.getInstance().setSubject(!1), M.getInstance().setSubject(R), this.errorResponse ? T(this.errorResponse) : P) : T(R)),
|
|
1451
|
+
L((R) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1452
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(R)}`
|
|
1453
|
+
), T(R))),
|
|
1454
|
+
n((R) => (this.logError(
|
|
1455
|
+
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(R)}`
|
|
1442
1456
|
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1443
|
-
new C().get(
|
|
1444
|
-
), this.errorResponse ? T(this.errorResponse) :
|
|
1457
|
+
new C().get(R, l)
|
|
1458
|
+
), this.errorResponse ? T(this.errorResponse) : P))
|
|
1445
1459
|
);
|
|
1446
1460
|
}
|
|
1447
1461
|
}
|