mp-front-cli 0.0.118 → 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.
@@ -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;CA0PnC,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
- }, o = {
209
+ }, a = {
210
210
  enrollment: {
211
211
  "ENROLLMENT-INVALIDCONFIGURATION-0000": {
212
212
  title: "Configuración no correspondiente",
@@ -347,9 +347,25 @@ 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-NOTALLOWEDBRAND-0044": {
360
+ title: "Marca no permitida",
361
+ message: "La marca no se encuentra en la lista de marcas permitidas para enrolamiento"
362
+ },
363
+ "ENROLLMENT-USED-IMEI-0001": {
364
+ title: "Validación de IMEI",
365
+ message: "No puedes usar este IMEI nuevamente"
350
366
  }
351
367
  }
352
- }, a = {
368
+ }, o = {
353
369
  helpdesk: {
354
370
  "PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
355
371
  title: "Error",
@@ -421,7 +437,7 @@ const e = {
421
437
  //Calculator & Apartadito
422
438
  ...e,
423
439
  //#region helpdesk
424
- ...a,
440
+ ...o,
425
441
  //JORNADA
426
442
  "JOURNEY-INVALIDATEDATA-01": {
427
443
  title: "Por favor verifique su estructura y los valores de sus atributos.",
@@ -608,7 +624,7 @@ const e = {
608
624
  message: "Por favor ingresa otro número de teléfono"
609
625
  },
610
626
  //ENROLLMENT
611
- ...o.enrollment,
627
+ ...a.enrollment,
612
628
  //Personal References
613
629
  "PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
614
630
  title: "Intentar con otra referencia",
@@ -140,6 +140,22 @@ 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-NOTALLOWEDBRAND-0044": {
152
+ title: string;
153
+ message: string;
154
+ };
155
+ "ENROLLMENT-USED-IMEI-0001": {
156
+ title: string;
157
+ message: string;
158
+ };
143
159
  };
144
160
  };
145
161
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiKhB,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"}
@@ -180,6 +180,22 @@ 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-NOTALLOWEDBRAND-0044": {
192
+ title: string;
193
+ message: string;
194
+ };
195
+ "ENROLLMENT-USED-IMEI-0001": {
196
+ title: string;
197
+ message: string;
198
+ };
183
199
  "JOURNEY-INVALIDATEDATA-01": {
184
200
  title: string;
185
201
  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-3e533091.js";
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,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-3e533091.js";
9
+ import { t as w } from "./index-62b8b46c.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 d, filter as h } from "rxjs";
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,27 @@ 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-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
+ },
298
+ "ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
299
+ code: 400,
300
+ type: "modal",
301
+ message: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.message",
302
+ title: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.title",
303
+ level: "warning"
283
304
  }
284
305
  }, K = {
285
306
  "SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
@@ -1212,14 +1233,14 @@ class Ie extends V {
1212
1233
  params: T(A)
1213
1234
  })
1214
1235
  ),
1215
- L(({ params: A, response: R, headers: a }) => (this.logDebug(
1216
- `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(a)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(R)}`
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)}`
1217
1238
  ), T(R))),
1218
1239
  n((A) => {
1219
1240
  var R;
1220
1241
  return this.logError(
1221
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)}`
1222
- ), this.returnError(l, A), d;
1243
+ ), this.returnError(l, A), P;
1223
1244
  })
1224
1245
  ).subscribe({
1225
1246
  next: (A) => {
@@ -1334,17 +1355,17 @@ function k(t) {
1334
1355
  const j = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Z = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
1335
1356
  function z(t, E, e) {
1336
1357
  function r(l, s, A, R) {
1337
- var a;
1338
- if (typeof l == "string" && (l = k(l)), typeof s == "string" && (s = W(s)), ((a = s) === null || a === void 0 ? void 0 : a.length) !== 16)
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)
1339
1360
  throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
1340
- let N = new Uint8Array(16 + l.length);
1341
- if (N.set(s), N.set(l, s.length), N = e(N), N[6] = N[6] & 15 | E, N[8] = N[8] & 63 | 128, A) {
1361
+ let o = new Uint8Array(16 + l.length);
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) {
1342
1363
  R = R || 0;
1343
1364
  for (let i = 0; i < 16; ++i)
1344
- A[R + i] = N[i];
1365
+ A[R + i] = o[i];
1345
1366
  return A;
1346
1367
  }
1347
- return G(N);
1368
+ return G(o);
1348
1369
  }
1349
1370
  try {
1350
1371
  r.name = t;
@@ -1380,23 +1401,23 @@ function ee(t) {
1380
1401
  const r = t.length / 4 + 2, l = Math.ceil(r / 16), s = new Array(l);
1381
1402
  for (let A = 0; A < l; ++A) {
1382
1403
  const R = new Uint32Array(16);
1383
- for (let a = 0; a < 16; ++a)
1384
- R[a] = t[A * 64 + a * 4] << 24 | t[A * 64 + a * 4 + 1] << 16 | t[A * 64 + a * 4 + 2] << 8 | t[A * 64 + a * 4 + 3];
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];
1385
1406
  s[A] = R;
1386
1407
  }
1387
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;
1388
1409
  for (let A = 0; A < l; ++A) {
1389
1410
  const R = new Uint32Array(80);
1390
- for (let o = 0; o < 16; ++o)
1391
- R[o] = s[A][o];
1392
- for (let o = 16; o < 80; ++o)
1393
- R[o] = D(R[o - 3] ^ R[o - 8] ^ R[o - 14] ^ R[o - 16], 1);
1394
- let a = e[0], N = e[1], i = e[2], m = e[3], S = e[4];
1395
- for (let o = 0; o < 80; ++o) {
1396
- const P = Math.floor(o / 20), y = D(a, 5) + q(P, N, i, m) + S + E[P] + R[o] >>> 0;
1397
- S = m, m = i, i = D(N, 30) >>> 0, N = a, a = y;
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;
1398
1419
  }
1399
- e[0] = e[0] + a >>> 0, e[1] = e[1] + N >>> 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;
1400
1421
  }
1401
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];
1402
1423
  }
@@ -1428,20 +1449,20 @@ class me extends x {
1428
1449
  method: this.method,
1429
1450
  headers: { ...this.headers, flow: R },
1430
1451
  body: s,
1431
- selector: (a) => a.json()
1452
+ selector: (N) => N.json()
1432
1453
  }).pipe(
1433
- L((a) => T(this.decode(a))),
1434
- L((a) => a.code && (a.type === "modal" || a.type === "message") ? (this.logError(
1435
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
1436
- ), g.getInstance().setSubject(!1), M.getInstance().setSubject(a), this.errorResponse ? T(this.errorResponse) : d) : T(a)),
1437
- L((a) => (g.getInstance().setSubject(!1), this.logDebug(
1438
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
1439
- ), T(a))),
1440
- n((a) => (this.logError(
1441
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
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)}`
1442
1463
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1443
- new C().get(a, l)
1444
- ), this.errorResponse ? T(this.errorResponse) : d))
1464
+ new C().get(N, l)
1465
+ ), this.errorResponse ? T(this.errorResponse) : P))
1445
1466
  );
1446
1467
  }
1447
1468
  }
@@ -1,4 +1,4 @@
1
- import { t } from "./index-3e533091.js";
1
+ import { t } from "./index-62b8b46c.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.118",
3
+ "version": "0.0.120",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {