mp-front-cli 0.0.122 → 0.0.124

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;AA6zBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
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;AAq0BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
@@ -633,7 +633,7 @@ const e = {
633
633
  },
634
634
  //ENROLLMENT
635
635
  ...o.enrollment,
636
- //Personal References
636
+ //PERSONAL REFERENCES
637
637
  "PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
638
638
  title: "Intentar con otra referencia",
639
639
  message: "La referencia se encuentra con creditos activos"
@@ -658,6 +658,10 @@ const e = {
658
658
  title: "Referencias no válidas",
659
659
  message: "El cliente debe tener al menos una referencia con parentesco directo"
660
660
  },
661
+ "PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001": {
662
+ title: "Referencias no válidas",
663
+ message: "No se puede tener de referencia más de un Padre o Madre a la vez"
664
+ },
661
665
  //PAYMENTS
662
666
  "SALES-SUMMARY-GENERIC-ERROR-001": {
663
667
  title: "Ocurrió un error resumen de venta",
@@ -24,6 +24,10 @@ declare const translation: {
24
24
  title: string;
25
25
  message: string;
26
26
  };
27
+ "PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001": {
28
+ title: string;
29
+ message: string;
30
+ };
27
31
  "SALES-SUMMARY-GENERIC-ERROR-001": {
28
32
  title: string;
29
33
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmShB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwShB,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-9216d4b1.js";
5
+ import "./index-0cc7a8bb.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -2,14 +2,14 @@ var u = Object.defineProperty;
2
2
  var f = (t, E, e) => E in t ? u(t, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[E] = e;
3
3
  var O = (t, E, e) => (f(t, typeof E != "symbol" ? E + "" : E, e), e);
4
4
  import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
5
- import { RxSubjectManager as ne } 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 De } from "./index-def0b487.js";
8
8
  import F, { t as U } from "i18next";
9
- import { t as v } from "./index-9216d4b1.js";
9
+ import { t as v } from "./index-0cc7a8bb.js";
10
10
  import { CustomLogger as w } from "./mp-front-cli-logger.es.js";
11
- import { of as T, switchMap as L, forkJoin as B, catchError as n, EMPTY as P, filter as h } from "rxjs";
12
- import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
11
+ import { of as T, switchMap as L, forkJoin as B, catchError as S, EMPTY as P, filter as V } from "rxjs";
12
+ import { CustomEncrypter as h } 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";
15
15
  import { u as G } from "./stringify-788d71a0.js";
@@ -370,7 +370,7 @@ const H = {
370
370
  }, _ = {
371
371
  ...J,
372
372
  ...K
373
- }, I = {
373
+ }, i = {
374
374
  "MP-001": {
375
375
  code: 400,
376
376
  type: "modal",
@@ -453,7 +453,7 @@ const H = {
453
453
  title: "errors.PF-VALIDATE-CLIENTTYPE-006.title",
454
454
  message: "errors.PF-VALIDATE-CLIENTTYPE-006.message",
455
455
  level: "warning",
456
- code: 420,
456
+ code: 310,
457
457
  type: "modal"
458
458
  },
459
459
  ERROR_LOCATION: {
@@ -1106,7 +1106,7 @@ const H = {
1106
1106
  type: "modal",
1107
1107
  level: "warning"
1108
1108
  },
1109
- //Personal references
1109
+ //PERSONAL REFERENCES
1110
1110
  "PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
1111
1111
  title: "errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.title",
1112
1112
  message: "errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.message",
@@ -1149,6 +1149,13 @@ const H = {
1149
1149
  type: "modal",
1150
1150
  level: "warning"
1151
1151
  },
1152
+ "PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001": {
1153
+ title: "errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.title",
1154
+ message: "errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.message",
1155
+ code: 422,
1156
+ type: "modal",
1157
+ level: "warning"
1158
+ },
1152
1159
  //PAYMENTS
1153
1160
  "SALES-SUMMARY-GENERIC-ERROR-001": {
1154
1161
  title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
@@ -1187,29 +1194,29 @@ class C extends w {
1187
1194
  var s, A;
1188
1195
  if (E instanceof Error)
1189
1196
  return this.logError(E.message), {
1190
- ...I.internalError,
1191
- title: U(I.internalError.title),
1192
- message: U(I.internalError.message),
1197
+ ...i.internalError,
1198
+ title: U(i.internalError.title),
1199
+ message: U(i.internalError.message),
1193
1200
  uuid: e
1194
1201
  };
1195
1202
  const r = typeof E == "string" ? E : E.code ?? E.errorType;
1196
1203
  this.logDebug("statusCode", r);
1197
1204
  const l = typeof E == "string" ? {} : { ...E };
1198
1205
  return {
1199
- ...I[r] ?? I.default,
1206
+ ...i[r] ?? i.default,
1200
1207
  title: U(
1201
- ((s = I[r]) == null ? void 0 : s.title) ?? I.default.title,
1208
+ ((s = i[r]) == null ? void 0 : s.title) ?? i.default.title,
1202
1209
  l
1203
1210
  ),
1204
1211
  message: U(
1205
- ((A = I[r]) == null ? void 0 : A.message) ?? I.default.message,
1212
+ ((A = i[r]) == null ? void 0 : A.message) ?? i.default.message,
1206
1213
  l
1207
1214
  ),
1208
1215
  uuid: e
1209
1216
  };
1210
1217
  }
1211
1218
  }
1212
- class Ie extends V {
1219
+ class ie extends h {
1213
1220
  constructor() {
1214
1221
  super(...arguments);
1215
1222
  O(this, "uuid", "");
@@ -1250,7 +1257,7 @@ class Ie extends V {
1250
1257
  L(({ params: A, response: R, headers: N }) => (this.logDebug(
1251
1258
  `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)}`
1252
1259
  ), T(R))),
1253
- n((A) => {
1260
+ S((A) => {
1254
1261
  var R;
1255
1262
  return this.logError(
1256
1263
  `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)}`
@@ -1297,7 +1304,7 @@ class Ce extends Q {
1297
1304
  selector: (s) => s.json()
1298
1305
  }
1299
1306
  ).pipe(
1300
- n((s) => {
1307
+ S((s) => {
1301
1308
  throw this.logError(JSON.stringify(s)), this.logError(
1302
1309
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1303
1310
  l
@@ -1315,7 +1322,7 @@ class Ce extends Q {
1315
1322
  ), T(s)))
1316
1323
  )
1317
1324
  ),
1318
- h((l) => this.errorHandler(l, r))
1325
+ V((l) => this.errorHandler(l, r))
1319
1326
  );
1320
1327
  }
1321
1328
  fetchCustomData(e = {}, r) {
@@ -1327,7 +1334,7 @@ class Ce extends Q {
1327
1334
  body: this.method === "GET" ? null : JSON.stringify(e),
1328
1335
  selector: (s) => s.json()
1329
1336
  }).pipe(
1330
- n((s) => {
1337
+ S((s) => {
1331
1338
  throw this.logError(JSON.stringify(s)), this.logError(
1332
1339
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1333
1340
  l
@@ -1375,8 +1382,8 @@ function z(t, E, e) {
1375
1382
  let o = new Uint8Array(16 + l.length);
1376
1383
  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) {
1377
1384
  R = R || 0;
1378
- for (let i = 0; i < 16; ++i)
1379
- A[R + i] = o[i];
1385
+ for (let I = 0; I < 16; ++I)
1386
+ A[R + I] = o[I];
1380
1387
  return A;
1381
1388
  }
1382
1389
  return G(o);
@@ -1426,12 +1433,12 @@ function ee(t) {
1426
1433
  R[a] = s[A][a];
1427
1434
  for (let a = 16; a < 80; ++a)
1428
1435
  R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
1429
- let N = e[0], o = e[1], i = e[2], m = e[3], S = e[4];
1436
+ let N = e[0], o = e[1], I = e[2], m = e[3], n = e[4];
1430
1437
  for (let a = 0; a < 80; ++a) {
1431
- const d = Math.floor(a / 20), y = D(N, 5) + q(d, o, i, m) + S + E[d] + R[a] >>> 0;
1432
- S = m, m = i, i = D(o, 30) >>> 0, o = N, N = y;
1438
+ const d = Math.floor(a / 20), y = D(N, 5) + q(d, o, I, m) + n + E[d] + R[a] >>> 0;
1439
+ n = m, m = I, I = D(o, 30) >>> 0, o = N, N = y;
1433
1440
  }
1434
- 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;
1441
+ 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] + n >>> 0;
1435
1442
  }
1436
1443
  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];
1437
1444
  }
@@ -1472,7 +1479,7 @@ class me extends x {
1472
1479
  L((N) => (g.getInstance().setSubject(!1), this.logDebug(
1473
1480
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
1474
1481
  ), T(N))),
1475
- n((N) => (this.logError(
1482
+ S((N) => (this.logError(
1476
1483
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
1477
1484
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1478
1485
  new C().get(N, l)
@@ -1481,12 +1488,12 @@ class me extends x {
1481
1488
  }
1482
1489
  }
1483
1490
  export {
1484
- Ie as ApiMiddleware,
1491
+ ie as ApiMiddleware,
1485
1492
  C as ErrorCatalog,
1486
1493
  Ce as FetchServiceBE,
1487
1494
  me as FetchServiceFE,
1488
1495
  g as LoadingHandler,
1489
1496
  M as MessageHandler,
1490
- ne as RxSubjectManager,
1497
+ Se as RxSubjectManager,
1491
1498
  De as ServiceToken
1492
1499
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./index-9216d4b1.js";
1
+ import { t } from "./index-0cc7a8bb.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.122",
3
+ "version": "0.0.124",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {