mp-front-cli 0.0.127 → 0.0.129

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,6 +11,20 @@ export declare class ErrorCatalog extends CustomLogger {
11
11
  payload?: {} | undefined;
12
12
  clearCookieSession?: boolean | undefined;
13
13
  onOk?: (() => void) | undefined;
14
+ } | {
15
+ title: string;
16
+ message: string;
17
+ payload: {
18
+ errorCode: string;
19
+ } | {
20
+ errorCode?: undefined;
21
+ };
22
+ uuid: string;
23
+ type: "modal" | "message";
24
+ level: "error" | "success" | "warning" | "info";
25
+ code?: number | undefined;
26
+ clearCookieSession?: boolean | undefined;
27
+ onOk?: (() => void) | undefined;
14
28
  };
15
29
  }
16
30
  //# sourceMappingURL=error-catalog.d.ts.map
@@ -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;AAq0BrD,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;AA40BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
@@ -694,6 +694,10 @@ const e = {
694
694
  title: "Referencias no válidas",
695
695
  message: "No se puede tener de referencia más de un Padre o Madre a la vez"
696
696
  },
697
+ "PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001": {
698
+ title: "Referencias no válidas",
699
+ message: "No se puede usar los datos del cliente como referencia"
700
+ },
697
701
  //PAYMENTS
698
702
  "SALES-SUMMARY-GENERIC-ERROR-001": {
699
703
  title: "Ocurrió un error resumen de venta",
@@ -28,6 +28,10 @@ declare const translation: {
28
28
  title: string;
29
29
  message: string;
30
30
  };
31
+ "PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001": {
32
+ title: string;
33
+ message: string;
34
+ };
31
35
  "SALES-SUMMARY-GENERIC-ERROR-001": {
32
36
  title: string;
33
37
  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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e,WAAW,CAAA"}
@@ -2,7 +2,7 @@ import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServic
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
4
  import "i18next";
5
- import "./index-935aeed1.js";
5
+ import "./index-16adcad8.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -5,10 +5,10 @@ import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-r
5
5
  import { RxSubjectManager as De } from "./mp-front-cli-utils-rxjs.es.js";
6
6
  import { f as c } from "./index-def0b487.js";
7
7
  import { S as Pe } from "./index-def0b487.js";
8
- import v, { t as n } from "i18next";
9
- import { t as w } from "./index-935aeed1.js";
10
- import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
11
- import { of as o, switchMap as L, forkJoin as p, catchError as U, EMPTY as P, filter as h } from "rxjs";
8
+ import F, { t as n } from "i18next";
9
+ import { t as v } from "./index-16adcad8.js";
10
+ import { CustomLogger as w } from "./mp-front-cli-logger.es.js";
11
+ import { of as o, switchMap as L, forkJoin as p, catchError as S, 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 H from "querystring";
@@ -19,11 +19,11 @@ import "crypto";
19
19
  const Y = {
20
20
  es: {
21
21
  translation: {
22
- ...w
22
+ ...v
23
23
  }
24
24
  }
25
25
  };
26
- v.init({
26
+ F.init({
27
27
  resources: Y,
28
28
  lng: "es",
29
29
  // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
@@ -366,7 +366,7 @@ const K = {
366
366
  title: "errors.ENROLLMENT-THEREISNTIMEI-0048.title",
367
367
  level: "warning"
368
368
  }
369
- }, J = {
369
+ }, X = {
370
370
  "SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
371
371
  code: 400,
372
372
  type: "modal",
@@ -423,7 +423,7 @@ const K = {
423
423
  title: "errors.helpdesk.UNEXCEPTED-ERROR.title",
424
424
  level: "error"
425
425
  }
426
- }, _ = {
426
+ }, J = {
427
427
  "PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
428
428
  code: 400,
429
429
  type: "modal",
@@ -431,9 +431,9 @@ const K = {
431
431
  title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
432
432
  level: "error"
433
433
  }
434
- }, X = {
435
- ..._,
436
- ...J
434
+ }, _ = {
435
+ ...J,
436
+ ...X
437
437
  }, i = {
438
438
  "MP-001": {
439
439
  code: 400,
@@ -1220,6 +1220,13 @@ const K = {
1220
1220
  type: "modal",
1221
1221
  level: "warning"
1222
1222
  },
1223
+ "PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001": {
1224
+ title: "errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.title",
1225
+ message: "errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.message",
1226
+ code: 422,
1227
+ type: "modal",
1228
+ level: "warning"
1229
+ },
1223
1230
  //PAYMENTS
1224
1231
  "SALES-SUMMARY-GENERIC-ERROR-001": {
1225
1232
  title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
@@ -1251,9 +1258,9 @@ const K = {
1251
1258
  level: "warning"
1252
1259
  },
1253
1260
  ...K,
1254
- ...X
1261
+ ..._
1255
1262
  };
1256
- class C extends F {
1263
+ class C extends w {
1257
1264
  get(r = "default", e = "NOT_FOUND") {
1258
1265
  var N, A;
1259
1266
  if (r instanceof Error)
@@ -1276,6 +1283,7 @@ class C extends F {
1276
1283
  ((A = i[E]) == null ? void 0 : A.message) ?? i.default.message,
1277
1284
  l
1278
1285
  ),
1286
+ payload: typeof r != "string" ? { errorCode: r.code } : {},
1279
1287
  uuid: e
1280
1288
  };
1281
1289
  }
@@ -1321,7 +1329,7 @@ class me extends V {
1321
1329
  L(({ params: A, response: R, headers: s }) => (this.logDebug(
1322
1330
  `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)}`
1323
1331
  ), o(R))),
1324
- U((A) => {
1332
+ S((A) => {
1325
1333
  var R;
1326
1334
  return this.logError(
1327
1335
  `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)}`
@@ -1368,7 +1376,7 @@ class ge extends Q {
1368
1376
  selector: (N) => N.json()
1369
1377
  }
1370
1378
  ).pipe(
1371
- U((N) => {
1379
+ S((N) => {
1372
1380
  throw this.logError(JSON.stringify(N)), this.logError(
1373
1381
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1374
1382
  l
@@ -1403,7 +1411,7 @@ class ge extends Q {
1403
1411
  body: this.method === "GET" ? null : JSON.stringify(e),
1404
1412
  selector: (T) => T.json()
1405
1413
  }).pipe(
1406
- U((T) => {
1414
+ S((T) => {
1407
1415
  throw this.logError(JSON.stringify(T)), this.logError(
1408
1416
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1409
1417
  s
@@ -1502,12 +1510,12 @@ function Ee(t) {
1502
1510
  R[a] = N[A][a];
1503
1511
  for (let a = 16; a < 80; ++a)
1504
1512
  R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
1505
- let s = e[0], T = e[1], I = e[2], m = e[3], S = e[4];
1513
+ let s = e[0], T = e[1], I = e[2], m = e[3], U = e[4];
1506
1514
  for (let a = 0; a < 80; ++a) {
1507
- const d = Math.floor(a / 20), y = D(s, 5) + ee(d, T, I, m) + S + r[d] + R[a] >>> 0;
1508
- S = m, m = I, I = D(T, 30) >>> 0, T = s, s = y;
1515
+ const d = Math.floor(a / 20), y = D(s, 5) + ee(d, T, I, m) + U + r[d] + R[a] >>> 0;
1516
+ U = m, m = I, I = D(T, 30) >>> 0, T = s, s = y;
1509
1517
  }
1510
- e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + I >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + S >>> 0;
1518
+ e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + I >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + U >>> 0;
1511
1519
  }
1512
1520
  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];
1513
1521
  }
@@ -1548,7 +1556,7 @@ class ne extends x {
1548
1556
  L((s) => (g.getInstance().setSubject(!1), this.logDebug(
1549
1557
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1550
1558
  ), o(s))),
1551
- U((s) => (this.logError(
1559
+ S((s) => (this.logError(
1552
1560
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1553
1561
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1554
1562
  new C().get(s, l)
@@ -1,4 +1,4 @@
1
- import { t } from "./index-935aeed1.js";
1
+ import { t } from "./index-16adcad8.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.127",
3
+ "version": "0.0.129",
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
+ }