mp-front-cli 0.0.136 → 0.0.138

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.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;AAm1BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
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;AA01BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
@@ -182,13 +182,17 @@ const o = {
182
182
  message: "Consulta el tipo de crédito"
183
183
  },
184
184
  "CALCULATOR-BAD-REQUEST-31": {
185
- title: "No hay existencias",
186
- message: "Por el momento no pudimos encontrar productos para ti, intenta más tarde"
185
+ title: "Enganche requerido",
186
+ message: "El enganche es menor al requerido."
187
187
  },
188
188
  "CALCULATOR-BAD-REQUEST-34": {
189
189
  title: "Crédito Insuficiente",
190
190
  message: "Lamentamos informarte que tu línea de crédito no es suficiente para adquirir los productos de esta marca. Intenta con otra marca o regresa de nuevo en 90 días."
191
191
  },
192
+ "CALCULATOR-BAD-REQUEST-35": {
193
+ title: "No hay existencias",
194
+ message: "Por el momento no pudimos encontrar productos para ti, intenta más tarde"
195
+ },
192
196
  //Apartadito
193
197
  "SAVING_NOT_FOUND-01": {
194
198
  title: "Verificar la identificación de guardado",
@@ -402,8 +406,8 @@ const o = {
402
406
  message: "El IMEI / Núm. de serie especificado no existe."
403
407
  },
404
408
  "ENROLLMENT-LOANBALANCE-0062": {
405
- title: "Contacta con el equipo de soporte",
406
- message: "El IMEI se encuentra en una venta activa en el sistema."
409
+ title: "IMEI en venta activa",
410
+ message: "Por el momento no podemos continuar con el financiamiento porque el IMEI proporcionado ya está asociado a una venta activa. Por favor, verifica el número o utiliza otro IMEI para proceder con la solicitud."
407
411
  },
408
412
  "ENROLLMENT-USED-IMEI-0001": {
409
413
  title: "Validación de IMEI",
@@ -188,6 +188,10 @@ declare const translation: {
188
188
  title: string;
189
189
  message: string;
190
190
  };
191
+ "CALCULATOR-BAD-REQUEST-35": {
192
+ title: string;
193
+ message: string;
194
+ };
191
195
  "SAVING_NOT_FOUND-01": {
192
196
  title: string;
193
197
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6NhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiOhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6NhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -659,6 +659,10 @@ declare const translation: {
659
659
  title: string;
660
660
  message: string;
661
661
  };
662
+ "CALCULATOR-BAD-REQUEST-35": {
663
+ title: string;
664
+ message: string;
665
+ };
662
666
  "SAVING_NOT_FOUND-01": {
663
667
  title: string;
664
668
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ShB,CAAA;AAED,eAAe,WAAW,CAAA"}
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"}
@@ -1,7 +1,7 @@
1
1
  import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServiceFE as s } from "./mp-front-cli-core.es.js";
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
- import "./i18n-b5bc087a.js";
4
+ import "./i18n-26612b30.js";
5
5
  import "i18next";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
@@ -5,14 +5,14 @@ import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-r
5
5
  import { RxSubjectManager as Ue } from "./mp-front-cli-utils-rxjs.es.js";
6
6
  import { f as c } from "./index-def0b487.js";
7
7
  import { S as ne } from "./index-def0b487.js";
8
- import "./i18n-b5bc087a.js";
8
+ import "./i18n-26612b30.js";
9
9
  import { t as U } from "i18next";
10
10
  import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
11
- import { of as O, switchMap as I, forkJoin as B, catchError as S, EMPTY as P, filter as w } from "rxjs";
11
+ import { of as O, switchMap as i, forkJoin as B, catchError as S, EMPTY as P, filter as w } from "rxjs";
12
12
  import { CustomEncrypter as v } from "./mp-front-cli-encrypter.es.js";
13
13
  import { CustomHeader as h } from "./mp-front-cli-header.es.js";
14
- import V from "querystring";
15
- import { CustomEncoder as Q } from "./mp-front-cli-encoder.es.js";
14
+ import Q from "querystring";
15
+ import { CustomEncoder as V } from "./mp-front-cli-encoder.es.js";
16
16
  import { u as H } from "./stringify-788d71a0.js";
17
17
  import "node-jose";
18
18
  import "crypto";
@@ -421,7 +421,7 @@ const x = {
421
421
  }, K = {
422
422
  ...Y,
423
423
  ...G
424
- }, i = {
424
+ }, I = {
425
425
  "MP-001": {
426
426
  code: 400,
427
427
  type: "modal",
@@ -915,6 +915,13 @@ const x = {
915
915
  type: "modal",
916
916
  level: "warning"
917
917
  },
918
+ "CALCULATOR-BAD-REQUEST-35": {
919
+ title: "errors.calculator.CALCULATOR-BAD-REQUEST-35.title",
920
+ message: "errors.calculator.CALCULATOR-BAD-REQUEST-35.message",
921
+ code: 420,
922
+ type: "modal",
923
+ level: "warning"
924
+ },
918
925
  //Apartadito
919
926
  "SAVING_NOT_FOUND-01": {
920
927
  title: "errors.calculator.SAVING_NOT_FOUND-01.title",
@@ -1259,22 +1266,22 @@ class C extends F {
1259
1266
  var N, A;
1260
1267
  if (r instanceof Error)
1261
1268
  return this.logError(r.message), {
1262
- ...i.internalError,
1263
- title: U(i.internalError.title),
1264
- message: U(i.internalError.message),
1269
+ ...I.internalError,
1270
+ title: U(I.internalError.title),
1271
+ message: U(I.internalError.message),
1265
1272
  uuid: e
1266
1273
  };
1267
1274
  const E = typeof r == "string" ? r : r.code ?? r.errorType;
1268
1275
  this.logDebug("statusCode", E);
1269
1276
  const l = typeof r == "string" ? {} : { ...r };
1270
1277
  return {
1271
- ...i[E] ?? i.default,
1278
+ ...I[E] ?? I.default,
1272
1279
  title: U(
1273
- ((N = i[E]) == null ? void 0 : N.title) ?? i.default.title,
1280
+ ((N = I[E]) == null ? void 0 : N.title) ?? I.default.title,
1274
1281
  l
1275
1282
  ),
1276
1283
  message: U(
1277
- ((A = i[E]) == null ? void 0 : A.message) ?? i.default.message,
1284
+ ((A = I[E]) == null ? void 0 : A.message) ?? I.default.message,
1278
1285
  l
1279
1286
  ),
1280
1287
  payload: typeof r != "string" ? { errorCode: r.code } : {},
@@ -1282,7 +1289,7 @@ class C extends F {
1282
1289
  };
1283
1290
  }
1284
1291
  }
1285
- class Ie extends v {
1292
+ class ie extends v {
1286
1293
  constructor() {
1287
1294
  super(...arguments);
1288
1295
  L(this, "uuid", "");
@@ -1307,20 +1314,20 @@ class Ie extends v {
1307
1314
  return this.logDebug("get ApiMiddleware"), (E, l) => {
1308
1315
  var N;
1309
1316
  this.logDebug("return ApiMiddleware"), this.uuid = (N = E == null ? void 0 : E.body) == null ? void 0 : N.uuid, O(E).pipe(
1310
- I(
1317
+ i(
1311
1318
  (A) => B({
1312
1319
  params: O(this.decode(A.body)),
1313
1320
  headers: O(A.headers)
1314
1321
  })
1315
1322
  ),
1316
- I(
1323
+ i(
1317
1324
  ({ params: A, headers: R }) => B({
1318
1325
  response: e(A, this.uuid, R),
1319
1326
  headers: O(R),
1320
1327
  params: O(A)
1321
1328
  })
1322
1329
  ),
1323
- I(({ params: A, response: R, headers: s }) => (this.logDebug(
1330
+ i(({ params: A, response: R, headers: s }) => (this.logDebug(
1324
1331
  `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)}`
1325
1332
  ), O(R))),
1326
1333
  S((A) => {
@@ -1338,7 +1345,7 @@ class Ie extends v {
1338
1345
  }
1339
1346
  }
1340
1347
  const X = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1341
- class ie extends h {
1348
+ class Ie extends h {
1342
1349
  constructor(e, E, l = {}) {
1343
1350
  super(l);
1344
1351
  L(this, "apiUrl");
@@ -1360,7 +1367,7 @@ class ie extends h {
1360
1367
  }
1361
1368
  fetchData(e = {}, E) {
1362
1369
  return this.getHeaders().pipe(
1363
- I(
1370
+ i(
1364
1371
  (l) => c(
1365
1372
  this.apiUrl,
1366
1373
  {
@@ -1379,7 +1386,7 @@ class ie extends h {
1379
1386
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
1380
1387
  ), new C().get("default", E);
1381
1388
  }),
1382
- I((N) => (this.logDebug(
1389
+ i((N) => (this.logDebug(
1383
1390
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1384
1391
  l
1385
1392
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
@@ -1394,11 +1401,11 @@ class ie extends h {
1394
1401
  fetchCustomData(e = {}, E, l) {
1395
1402
  const N = {
1396
1403
  "Content-Type": "application/json"
1397
- }, A = V.stringify(
1404
+ }, A = Q.stringify(
1398
1405
  e
1399
1406
  ), R = `${this.apiUrl}?${A}`, s = this.method === "GET" ? R : this.apiUrl;
1400
1407
  return this.getHeaders(N, l).pipe(
1401
- I(
1408
+ i(
1402
1409
  (T) => c(s, {
1403
1410
  method: this.method,
1404
1411
  headers: T,
@@ -1414,7 +1421,7 @@ class ie extends h {
1414
1421
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)} \x1B[33m`
1415
1422
  ), new C().get("default", E);
1416
1423
  }),
1417
- I((a) => (this.logDebug(
1424
+ i((a) => (this.logDebug(
1418
1425
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${s} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1419
1426
  T
1420
1427
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
@@ -1514,7 +1521,7 @@ function z(t) {
1514
1521
  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];
1515
1522
  }
1516
1523
  const q = j("v5", 80, z), p = q;
1517
- class Ce extends Q {
1524
+ class Ce extends V {
1518
1525
  constructor(e, E = "POST", l = {}) {
1519
1526
  super();
1520
1527
  L(this, "apiUrl");
@@ -1543,11 +1550,11 @@ class Ce extends Q {
1543
1550
  body: N,
1544
1551
  selector: (s) => s.json()
1545
1552
  }).pipe(
1546
- I((s) => O(this.decode(s))),
1547
- I((s) => s.code && (s.type === "modal" || s.type === "message") ? (this.logError(
1553
+ i((s) => O(this.decode(s))),
1554
+ i((s) => s.code && (s.type === "modal" || s.type === "message") ? (this.logError(
1548
1555
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1549
1556
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(s), this.errorResponse ? O(this.errorResponse) : P) : O(s)),
1550
- I((s) => (g.getInstance().setSubject(!1), this.logDebug(
1557
+ i((s) => (g.getInstance().setSubject(!1), this.logDebug(
1551
1558
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1552
1559
  ), O(s))),
1553
1560
  S((s) => (this.logError(
@@ -1559,9 +1566,9 @@ class Ce extends Q {
1559
1566
  }
1560
1567
  }
1561
1568
  export {
1562
- Ie as ApiMiddleware,
1569
+ ie as ApiMiddleware,
1563
1570
  C as ErrorCatalog,
1564
- ie as FetchServiceBE,
1571
+ Ie as FetchServiceBE,
1565
1572
  Ce as FetchServiceFE,
1566
1573
  g as LoadingHandler,
1567
1574
  M as MessageHandler,
@@ -1,4 +1,4 @@
1
- import { t } from "./i18n-b5bc087a.js";
1
+ import { t } from "./i18n-26612b30.js";
2
2
  import { default as i } from "i18next";
3
3
  const e = {
4
4
  errors: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.136",
3
+ "version": "0.0.138",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {