mp-front-cli 0.0.137 → 0.0.139

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;AA01BrD,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;AAi2BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
@@ -406,8 +406,8 @@ const o = {
406
406
  message: "El IMEI / Núm. de serie especificado no existe."
407
407
  },
408
408
  "ENROLLMENT-LOANBALANCE-0062": {
409
- title: "Contacta con el equipo de soporte",
410
- 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."
411
411
  },
412
412
  "ENROLLMENT-USED-IMEI-0001": {
413
413
  title: "Validación de IMEI",
@@ -724,6 +724,11 @@ const o = {
724
724
  title: "Error al cerrar la venta",
725
725
  message: "Por favor de revisar los datos enviados"
726
726
  },
727
+ "SALES-SUMMARY-ERROR-005": {
728
+ title: "Stock insuficiente",
729
+ message: "Los productos seleccionados en accesorios no cuentan con unidades disponibles en stock"
730
+ },
731
+ //R
727
732
  //REPRINT
728
733
  "PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001": {
729
734
  title: "Error al cancelar la solicitud",
@@ -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"}
@@ -40,6 +40,10 @@ declare const translation: {
40
40
  title: string;
41
41
  message: string;
42
42
  };
43
+ "SALES-SUMMARY-ERROR-005": {
44
+ title: string;
45
+ message: string;
46
+ };
43
47
  "PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001": {
44
48
  title: string;
45
49
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkThB,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-aa631beb.js";
4
+ import "./i18n-3dcfe704.js";
5
5
  import "i18next";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
@@ -2,13 +2,13 @@ var u = Object.defineProperty;
2
2
  var f = (t, r, e) => r in t ? u(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
3
  var L = (t, r, e) => (f(t, typeof r != "symbol" ? r + "" : r, e), e);
4
4
  import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
5
- import { RxSubjectManager as Ue } from "./mp-front-cli-utils-rxjs.es.js";
5
+ import { RxSubjectManager as Se } 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-aa631beb.js";
9
- import { t as U } from "i18next";
8
+ import "./i18n-3dcfe704.js";
9
+ import { t as S } 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 U, 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
14
  import Q from "querystring";
@@ -1243,6 +1243,13 @@ const x = {
1243
1243
  type: "modal",
1244
1244
  level: "warning"
1245
1245
  },
1246
+ "SALES-SUMMARY-ERROR-005": {
1247
+ title: "errors.SALES-SUMMARY-ERROR-005.title",
1248
+ message: "errors.SALES-SUMMARY-ERROR-005.message",
1249
+ code: 420,
1250
+ type: "modal",
1251
+ level: "warning"
1252
+ },
1246
1253
  //REPRINT
1247
1254
  "PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001": {
1248
1255
  title: "errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.title",
@@ -1267,8 +1274,8 @@ class C extends F {
1267
1274
  if (r instanceof Error)
1268
1275
  return this.logError(r.message), {
1269
1276
  ...I.internalError,
1270
- title: U(I.internalError.title),
1271
- message: U(I.internalError.message),
1277
+ title: S(I.internalError.title),
1278
+ message: S(I.internalError.message),
1272
1279
  uuid: e
1273
1280
  };
1274
1281
  const E = typeof r == "string" ? r : r.code ?? r.errorType;
@@ -1276,11 +1283,11 @@ class C extends F {
1276
1283
  const l = typeof r == "string" ? {} : { ...r };
1277
1284
  return {
1278
1285
  ...I[E] ?? I.default,
1279
- title: U(
1286
+ title: S(
1280
1287
  ((N = I[E]) == null ? void 0 : N.title) ?? I.default.title,
1281
1288
  l
1282
1289
  ),
1283
- message: U(
1290
+ message: S(
1284
1291
  ((A = I[E]) == null ? void 0 : A.message) ?? I.default.message,
1285
1292
  l
1286
1293
  ),
@@ -1330,7 +1337,7 @@ class ie extends v {
1330
1337
  i(({ params: A, response: R, headers: s }) => (this.logDebug(
1331
1338
  `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)}`
1332
1339
  ), O(R))),
1333
- S((A) => {
1340
+ U((A) => {
1334
1341
  var R;
1335
1342
  return this.logError(
1336
1343
  `ApiMiddleware <URL>: ${E == null ? void 0 : E.url} <HEADERS>: ${JSON.stringify(E == null ? void 0 : E.headers)} <UUID> ${(R = E == null ? void 0 : E.body) == null ? void 0 : R.uuid} <PARAMS> ${JSON.stringify(E == null ? void 0 : E.body)} <ERROR>: ${JSON.stringify(A)}`
@@ -1377,7 +1384,7 @@ class Ie extends h {
1377
1384
  selector: (N) => N.json()
1378
1385
  }
1379
1386
  ).pipe(
1380
- S((N) => {
1387
+ U((N) => {
1381
1388
  throw this.logError(JSON.stringify(N)), this.logError(
1382
1389
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1383
1390
  l
@@ -1412,7 +1419,7 @@ class Ie extends h {
1412
1419
  body: this.method === "GET" ? null : JSON.stringify(e),
1413
1420
  selector: (a) => a.json()
1414
1421
  }).pipe(
1415
- S((a) => {
1422
+ U((a) => {
1416
1423
  throw this.logError(JSON.stringify(a)), this.logError(
1417
1424
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${s} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1418
1425
  T
@@ -1557,7 +1564,7 @@ class Ce extends V {
1557
1564
  i((s) => (g.getInstance().setSubject(!1), this.logDebug(
1558
1565
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1559
1566
  ), O(s))),
1560
- S((s) => (this.logError(
1567
+ U((s) => (this.logError(
1561
1568
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1562
1569
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1563
1570
  new C().get(s, l)
@@ -1572,6 +1579,6 @@ export {
1572
1579
  Ce as FetchServiceFE,
1573
1580
  g as LoadingHandler,
1574
1581
  M as MessageHandler,
1575
- Ue as RxSubjectManager,
1582
+ Se as RxSubjectManager,
1576
1583
  ne as ServiceToken
1577
1584
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./i18n-aa631beb.js";
1
+ import { t } from "./i18n-3dcfe704.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.137",
3
+ "version": "0.0.139",
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
+ }