mp-front-cli 0.0.67 → 0.0.69

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.
@@ -13,7 +13,7 @@ const e = {
13
13
  message: "No se obtuvieron la configuración del sistema"
14
14
  },
15
15
  UnAuthorized: {
16
- title: "La sesión a caducado",
16
+ title: "La sesión ha caducado",
17
17
  message: "Inicia sesión nuevamente"
18
18
  },
19
19
  ErrorGeneral: {
@@ -304,6 +304,22 @@ const e = {
304
304
  "PERSONALDATA-GENERIC-ERROR": {
305
305
  title: "Error genérico",
306
306
  message: "Error genérico"
307
+ },
308
+ "PF-BIOMETRIC-001": {
309
+ title: "Campo inválido",
310
+ message: "Error en la biometría"
311
+ },
312
+ "PF-BIOMETRIC-002": {
313
+ title: "Inaceptable",
314
+ message: "Inaceptable"
315
+ },
316
+ "PF-BIOMETRIC-003": {
317
+ title: "Campo no válido",
318
+ message: "El campo 'idUser' es obligatorio."
319
+ },
320
+ "PF-BIOMETRIC-004": {
321
+ title: "Se encontró datos en Financing2",
322
+ message: "El cliente ha iniciado un proceso de financiación 2."
307
323
  }
308
324
  }
309
325
  };
@@ -300,6 +300,22 @@ declare const translation: {
300
300
  title: string;
301
301
  message: string;
302
302
  };
303
+ "PF-BIOMETRIC-001": {
304
+ title: string;
305
+ message: string;
306
+ };
307
+ "PF-BIOMETRIC-002": {
308
+ title: string;
309
+ message: string;
310
+ };
311
+ "PF-BIOMETRIC-003": {
312
+ title: string;
313
+ message: string;
314
+ };
315
+ "PF-BIOMETRIC-004": {
316
+ title: string;
317
+ message: string;
318
+ };
303
319
  };
304
320
  };
305
321
  export default translation;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsUhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsVhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -2,7 +2,7 @@ import { ApiMiddleware as S, ErrorCatalog as g, FetchServiceBE as l, FetchServic
2
2
  import { S as s } from "./custom-header-596dcd13.js";
3
3
  import { LoadingHandler as E, MessageHandler as F, RxSubjectManager as M } from "./mp-front-cli-utils-rxjs.es.js";
4
4
  import "i18next";
5
- import "./index-d30b1381.js";
5
+ import "./index-aea12e04.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -6,7 +6,7 @@ import { S as ut } from "./custom-header-596dcd13.js";
6
6
  import { MessageHandler as O, LoadingHandler as p } from "./mp-front-cli-utils-rxjs.es.js";
7
7
  import { RxSubjectManager as pt } from "./mp-front-cli-utils-rxjs.es.js";
8
8
  import P, { t as E } from "i18next";
9
- import { t as v } from "./index-d30b1381.js";
9
+ import { t as v } from "./index-aea12e04.js";
10
10
  import { CustomLogger as J } from "./mp-front-cli-logger.es.js";
11
11
  import { of as d, switchMap as m, forkJoin as A, catchError as b, EMPTY as D, filter as w } from "rxjs";
12
12
  import { CustomEncrypter as T } from "./mp-front-cli-encrypter.es.js";
@@ -1,12 +1,12 @@
1
1
  var o = Object.defineProperty;
2
2
  var c = (r, e, t) => e in r ? o(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var a = (r, e, t) => (c(r, typeof e != "symbol" ? e + "" : e, t), t);
4
- import i, { JWE as E } from "node-jose";
5
- import { createHash as y } from "crypto";
6
- import { CustomEncoder as p } from "./mp-front-cli-encoder.es.js";
4
+ import i from "node-jose";
5
+ import { createHash as E } from "crypto";
6
+ import { CustomEncoder as y } from "./mp-front-cli-encoder.es.js";
7
7
  import "./mp-front-cli-logger.es.js";
8
- const u = (r) => r.replace(/[\u00A0-\uffff]/gu, (e) => "\\u" + ("000" + e.charCodeAt(0).toString(16)).slice(-4));
9
- class T extends p {
8
+ const p = (r) => r.replace(/[\u00A0-\uffff]/gu, (e) => "\\u" + ("000" + e.charCodeAt(0).toString(16)).slice(-4));
9
+ class l extends y {
10
10
  constructor() {
11
11
  super(...arguments);
12
12
  a(this, "signatureKey");
@@ -23,8 +23,8 @@ class T extends p {
23
23
  async encrypt(t) {
24
24
  if (await this.generateKey(), !this.signatureKey)
25
25
  throw new Error("PLEASE CREATE A KEY TO ENCRYPT 🙂");
26
- const n = JSON.stringify(t), s = u(n);
27
- return await E.createEncrypt(
26
+ const n = JSON.stringify(t), s = p(n);
27
+ return await i.JWE.createEncrypt(
28
28
  { format: "compact" },
29
29
  this.signatureKey
30
30
  ).update(s).final();
@@ -47,9 +47,9 @@ class T extends p {
47
47
  }
48
48
  generateSHA(t) {
49
49
  const n = JSON.stringify(t);
50
- return y("sha256").update(n).digest("hex");
50
+ return E("sha256").update(n).digest("hex");
51
51
  }
52
52
  }
53
53
  export {
54
- T as CustomEncrypter
54
+ l as CustomEncrypter
55
55
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./index-d30b1381.js";
1
+ import { t } from "./index-aea12e04.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.67",
3
+ "version": "0.0.69",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {