mp-front-cli 2.1.0-next-5 → 2.1.1

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.
@@ -11,7 +11,7 @@ import { CustomEncoder as M } from "./mp-front-cli-encoder.es.js";
11
11
  import { u as Q } from "./stringify-93tp0umt.js";
12
12
  import { CustomLogger as G } from "./mp-front-cli-logger.es.js";
13
13
  import B from "i18next";
14
- import { t as V } from "./index-B_86KXmg.js";
14
+ import { t as V } from "./index-Dy5KNkhq.js";
15
15
  const f = (t) => (B.init({
16
16
  resources: {
17
17
  es: {
@@ -636,7 +636,7 @@ const f = (t) => (B.init({
636
636
  message: "errors.JOURNEY-CANCEL-01.message",
637
637
  code: 310,
638
638
  type: "modal",
639
- level: "warning"
639
+ level: "info"
640
640
  },
641
641
  "JOURNEY-INVALIDATEDATA-01": {
642
642
  title: "errors.JOURNEY-INVALIDATEDATA-01.title",
@@ -946,7 +946,7 @@ const f = (t) => (B.init({
946
946
  },
947
947
  ...Y
948
948
  };
949
- class L extends G {
949
+ class n extends G {
950
950
  constructor() {
951
951
  super(...arguments);
952
952
  N(this, "errorCatalog", { ...X });
@@ -999,7 +999,7 @@ class Oe extends v {
999
999
  this.session = e;
1000
1000
  }
1001
1001
  getSession() {
1002
- if (!this.session) throw new L().get("SESSION_NOT_FOUND");
1002
+ if (!this.session) throw new n().get("SESSION_NOT_FOUND");
1003
1003
  return this.session;
1004
1004
  }
1005
1005
  returnData(e, r, s) {
@@ -1007,7 +1007,7 @@ class Oe extends v {
1007
1007
  e.status(200).json(o);
1008
1008
  }
1009
1009
  returnError(e, r) {
1010
- return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new L().get(r, this.uuid));
1010
+ return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new n().get(r, this.uuid));
1011
1011
  }
1012
1012
  get(e) {
1013
1013
  return this.logDebug("get ApiMiddleware"), (r, s) => {
@@ -1053,7 +1053,7 @@ class Ce extends y {
1053
1053
  }
1054
1054
  errorHandler(e, r) {
1055
1055
  if (e != null && e.errors)
1056
- throw new L().get(e.errors[0], r);
1056
+ throw new n().get(e.errors[0], r);
1057
1057
  return !(e != null && e.errors);
1058
1058
  }
1059
1059
  formatParams(e) {
@@ -1083,7 +1083,7 @@ class Ce extends y {
1083
1083
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1084
1084
  this.formatParams(e)
1085
1085
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)} \x1B[33m`
1086
- ), new L().get("default", r);
1086
+ ), new n().get("default", r);
1087
1087
  }),
1088
1088
  C((o) => (this.logDebug(
1089
1089
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
@@ -1118,7 +1118,7 @@ class Ce extends y {
1118
1118
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1119
1119
  this.formatParams(e)
1120
1120
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(i)} \x1B[33m`
1121
- ), new L().get("default", r);
1121
+ ), new n().get("default", r);
1122
1122
  }),
1123
1123
  C((i) => (this.logDebug(
1124
1124
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
@@ -1209,17 +1209,17 @@ function q(t) {
1209
1209
  A[T] = o[l][T];
1210
1210
  for (let T = 16; T < 80; ++T)
1211
1211
  A[T] = U(A[T - 3] ^ A[T - 8] ^ A[T - 14] ^ A[T - 16], 1);
1212
- let a = e[0], R = e[1], i = e[2], m = e[3], n = e[4];
1212
+ let a = e[0], R = e[1], i = e[2], m = e[3], L = e[4];
1213
1213
  for (let T = 0; T < 80; ++T) {
1214
- const D = Math.floor(T / 20), x = U(a, 5) + z(D, R, i, m) + n + E[D] + A[T] >>> 0;
1215
- n = m, m = i, i = U(R, 30) >>> 0, R = a, a = x;
1214
+ const D = Math.floor(T / 20), x = U(a, 5) + z(D, R, i, m) + L + E[D] + A[T] >>> 0;
1215
+ L = m, m = i, i = U(R, 30) >>> 0, R = a, a = x;
1216
1216
  }
1217
- e[0] = e[0] + a >>> 0, e[1] = e[1] + R >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + n >>> 0;
1217
+ e[0] = e[0] + a >>> 0, e[1] = e[1] + R >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + L >>> 0;
1218
1218
  }
1219
1219
  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];
1220
1220
  }
1221
1221
  const p = Z("v5", 80, q);
1222
- class ne extends M {
1222
+ class Le extends M {
1223
1223
  constructor(e, r = "POST", s = {}) {
1224
1224
  super();
1225
1225
  N(this, "apiUrl");
@@ -1258,18 +1258,18 @@ class ne extends M {
1258
1258
  I((a) => (this.logError(
1259
1259
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(a)}`
1260
1260
  ), S.getInstance().setSubject(!1), P.getInstance().setSubject(
1261
- new L().get(a, s)
1261
+ new n().get(a, s)
1262
1262
  ), this.errorResponse ? O(this.errorResponse) : c))
1263
1263
  );
1264
1264
  }
1265
1265
  }
1266
1266
  const ee = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1267
- class Le extends y {
1267
+ class ne extends y {
1268
1268
  constructor(e, r, s = {}) {
1269
1269
  super(s);
1270
1270
  N(this, "apiUrl");
1271
1271
  N(this, "method");
1272
- N(this, "errorCatalog", new L());
1272
+ N(this, "errorCatalog", new n());
1273
1273
  this.apiUrl = e, this.method = r ?? "POST";
1274
1274
  }
1275
1275
  errorHandler(e, r) {
@@ -1305,7 +1305,7 @@ class Le extends y {
1305
1305
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1306
1306
  this.formatParams(e)
1307
1307
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)} \x1B[33m`
1308
- ), new L().get("default", r);
1308
+ ), new n().get("default", r);
1309
1309
  }),
1310
1310
  C((A) => (this.logDebug(
1311
1311
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
@@ -1333,24 +1333,24 @@ class Le extends y {
1333
1333
  method: this.method,
1334
1334
  headers: m,
1335
1335
  body: this.method === "GET" ? null : JSON.stringify(e),
1336
- selector: (n) => n.json()
1336
+ selector: (L) => L.json()
1337
1337
  }).pipe(
1338
- I((n) => {
1339
- throw this.logError(JSON.stringify(n)), this.logError(
1338
+ I((L) => {
1339
+ throw this.logError(JSON.stringify(L)), this.logError(
1340
1340
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${i} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1341
1341
  m
1342
1342
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1343
1343
  this.formatParams(e)
1344
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
1345
- ), new L().get("default", r);
1344
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(L)} \x1B[33m`
1345
+ ), new n().get("default", r);
1346
1346
  }),
1347
- C((n) => (this.logDebug(
1347
+ C((L) => (this.logDebug(
1348
1348
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${i} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1349
1349
  m
1350
1350
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1351
1351
  e
1352
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
1353
- ), O(n)))
1352
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(L)} \x1B[33m`
1353
+ ), O(L)))
1354
1354
  )
1355
1355
  )
1356
1356
  );
@@ -1358,8 +1358,8 @@ class Le extends y {
1358
1358
  }
1359
1359
  export {
1360
1360
  Oe as A,
1361
- L as E,
1361
+ n as E,
1362
1362
  Ce as F,
1363
- ne as a,
1364
- Le as b
1363
+ Le as a,
1364
+ ne as b
1365
1365
  };
@@ -284,8 +284,8 @@ const e = {
284
284
  message: "Es necesario asignar una clave de vendedor al usuario. Por favor comunícate con nuestra mesa de ayuda para solucionar el problema."
285
285
  },
286
286
  "JOURNEY-CANCEL-01": {
287
- title: "Pre-solicitud o Solicitud cancelada",
288
- message: "La PR o SL ha sido cancelada. Por favor comunícate con nuestra mesa de ayuda."
287
+ title: "Solicitud cancelada",
288
+ message: "La solicitud ha sido cancelada. NO ES NECESARIO comunicarse con Mesa de Ayuda."
289
289
  },
290
290
  //Calculator & Apartadito
291
291
  ...e,
@@ -1,4 +1,4 @@
1
- import { A as r, E as s, F as o, a as t, b as c } from "./fetch-service-parent-be-B9aQqRUg.js";
1
+ import { A as r, E as s, F as o, a as t, b as c } from "./fetch-service-parent-be-CqCxXrf0.js";
2
2
  import { L as n, M as S, R as d } from "./loading-handler-Br21zGTA.js";
3
3
  import { S as F } from "./service-token-DceocCHP.js";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { A as r, E as s, F as o, a as t, b as c } from "./fetch-service-parent-be-B9aQqRUg.js";
1
+ import { A as r, E as s, F as o, a as t, b as c } from "./fetch-service-parent-be-CqCxXrf0.js";
2
2
  import { L as n, M as S, R as d } from "./loading-handler-Br21zGTA.js";
3
3
  import { S as F } from "./service-token-DceocCHP.js";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { t } from "./index-B_86KXmg.js";
1
+ import { t } from "./index-Dy5KNkhq.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": "2.1.0-next-5",
3
+ "version": "2.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {