mp-front-cli 0.0.119 → 0.0.121

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.
@@ -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;CAwQnC,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"}
@@ -356,6 +356,10 @@ 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: "Contacta con el equipo de soporte",
361
+ message: "Tu dispositivo no cuenta con las características solicitadas. Por favor intenta con otro dispositivo, ID:ENROLLMENT-NOTALLOWEDBRAND-0044"
362
+ },
359
363
  "ENROLLMENT-USED-IMEI-0001": {
360
364
  title: "Validación de IMEI",
361
365
  message: "No puedes usar este IMEI nuevamente"
@@ -148,6 +148,10 @@ declare const translation: {
148
148
  title: string;
149
149
  message: string;
150
150
  };
151
+ "ENROLLMENT-NOTALLOWEDBRAND-0044": {
152
+ title: string;
153
+ message: string;
154
+ };
151
155
  "ENROLLMENT-USED-IMEI-0001": {
152
156
  title: string;
153
157
  message: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+KhB,CAAA;AAED,eAAe,WAAW,CAAA"}
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"}
@@ -188,6 +188,10 @@ declare const translation: {
188
188
  title: string;
189
189
  message: string;
190
190
  };
191
+ "ENROLLMENT-NOTALLOWEDBRAND-0044": {
192
+ title: string;
193
+ message: string;
194
+ };
191
195
  "ENROLLMENT-USED-IMEI-0001": {
192
196
  title: string;
193
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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-a971bc83.js";
5
+ import "./index-db8a4e91.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-a971bc83.js";
9
+ import { t as w } from "./index-db8a4e91.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: a }) => B({
1224
- response: e(A, this.uuid, a),
1225
- headers: T(a),
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: 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))),
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 a;
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> ${(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)}`
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, 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)
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
- a = a || 0;
1363
+ R = R || 0;
1357
1364
  for (let i = 0; i < 16; ++i)
1358
- A[a + i] = o[i];
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 a = 0; a < A.length; ++a)
1390
- t.push(A.charCodeAt(a));
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 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;
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 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;
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] + 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;
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 a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
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: a },
1450
+ headers: { ...this.headers, flow: R },
1444
1451
  body: s,
1445
- selector: (R) => R.json()
1452
+ selector: (N) => N.json()
1446
1453
  }).pipe(
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)}`
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(R, l)
1464
+ new C().get(N, l)
1458
1465
  ), this.errorResponse ? T(this.errorResponse) : P))
1459
1466
  );
1460
1467
  }
@@ -1,4 +1,4 @@
1
- import { t } from "./index-a971bc83.js";
1
+ import { t } from "./index-db8a4e91.js";
2
2
  const e = {
3
3
  errors: {}
4
4
  }, a = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.119",
3
+ "version": "0.0.121",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -88,4 +88,4 @@
88
88
  "vite-plugin-dts": "3.7.1",
89
89
  "vite-tsconfig-paths": "4.2.2"
90
90
  }
91
- }
91
+ }