mp-front-cli 0.0.70 → 0.0.72

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;AA2CrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAAE,IAAI,CAAC,EAAE,MAAM;;;;;;;;;;;CA6BhE"}
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;AAiDrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAAE,IAAI,CAAC,EAAE,MAAM;;;;;;;;;;;CA6BhE"}
@@ -324,6 +324,10 @@ const e = {
324
324
  "PF-BIOMETRIC-004": {
325
325
  title: "Se encontró datos en Financing2",
326
326
  message: "El cliente ha iniciado un proceso de financiación 2."
327
+ },
328
+ "PF-VALIDATE-CLIENTTYPE-003": {
329
+ title: "Saldo pendiente por pagar",
330
+ message: "Notamos que tu historial presenta un saldo vencido, por esa razón, en este momento no será posible continuar con tu crédito."
327
331
  }
328
332
  }
329
333
  };
@@ -320,6 +320,10 @@ declare const translation: {
320
320
  title: string;
321
321
  message: string;
322
322
  };
323
+ "PF-VALIDATE-CLIENTTYPE-003": {
324
+ title: string;
325
+ message: string;
326
+ };
323
327
  };
324
328
  };
325
329
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2VhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgWhB,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-f71c6c4a.js";
5
+ import "./index-fccce407.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -1,28 +1,28 @@
1
- var I = Object.defineProperty;
2
- var L = (s, r, t) => r in s ? I(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
3
- var h = (s, r, t) => (L(s, typeof r != "symbol" ? r + "" : r, t), t);
4
- import { C as M, f as U } from "./custom-header-596dcd13.js";
1
+ var $ = Object.defineProperty;
2
+ var M = (s, r, t) => r in s ? $(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
3
+ var h = (s, r, t) => (M(s, typeof r != "symbol" ? r + "" : r, t), t);
4
+ import { C as P, f as R } from "./custom-header-596dcd13.js";
5
5
  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
- import P, { t as E } from "i18next";
9
- import { t as v } from "./index-f71c6c4a.js";
10
- import { CustomLogger as J } from "./mp-front-cli-logger.es.js";
11
- import { of as d, switchMap as m, forkJoin as A, catchError as b, EMPTY as D, filter as w } from "rxjs";
12
- import { CustomEncrypter as T } from "./mp-front-cli-encrypter.es.js";
13
- import { CustomEncoder as H } from "./mp-front-cli-encoder.es.js";
14
- import { u as j } from "./stringify-788d71a0.js";
8
+ import L, { t as E } from "i18next";
9
+ import { t as T } from "./index-fccce407.js";
10
+ import { CustomLogger as v } from "./mp-front-cli-logger.es.js";
11
+ import { of as d, switchMap as m, forkJoin as A, catchError as b, EMPTY as D, filter as I } from "rxjs";
12
+ import { CustomEncrypter as J } from "./mp-front-cli-encrypter.es.js";
13
+ import { CustomEncoder as C } from "./mp-front-cli-encoder.es.js";
14
+ import { u as H } from "./stringify-788d71a0.js";
15
15
  import "node-jose";
16
16
  import "crypto";
17
- const C = {
17
+ const j = {
18
18
  es: {
19
19
  translation: {
20
- ...v
20
+ ...T
21
21
  }
22
22
  }
23
23
  };
24
- P.init({
25
- resources: C,
24
+ L.init({
25
+ resources: j,
26
26
  lng: "es",
27
27
  // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
28
28
  // you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
@@ -35,7 +35,6 @@ P.init({
35
35
  debug: !1
36
36
  });
37
37
  const u = {
38
- // EXAMPLE ERROR
39
38
  "MP-001": {
40
39
  code: 400,
41
40
  type: "modal",
@@ -70,9 +69,16 @@ const u = {
70
69
  message: "errors.default.message",
71
70
  title: "errors.default.title",
72
71
  level: "warning"
72
+ },
73
+ "PF-BIOMETRIC-004": {
74
+ message: "errors.PF-BIOMETRIC-004.message",
75
+ title: "errors.PF-BIOMETRIC-004.title",
76
+ code: 521,
77
+ level: "warning",
78
+ type: "modal"
73
79
  }
74
80
  };
75
- class S extends J {
81
+ class S extends v {
76
82
  get(r = "default", t) {
77
83
  var o, n;
78
84
  if (r instanceof Error)
@@ -97,7 +103,7 @@ class S extends J {
97
103
  };
98
104
  }
99
105
  }
100
- class ct extends T {
106
+ class ct extends J {
101
107
  constructor() {
102
108
  super(...arguments);
103
109
  h(this, "uuid", "");
@@ -153,7 +159,7 @@ class ct extends T {
153
159
  }
154
160
  }
155
161
  const F = process.env.ID_FRONT ?? "NOT_AVAILABLE";
156
- class dt extends M {
162
+ class dt extends P {
157
163
  constructor(t, e, i = {}) {
158
164
  super(i);
159
165
  h(this, "apiUrl");
@@ -176,7 +182,7 @@ class dt extends M {
176
182
  fetchData(t = {}, e) {
177
183
  return this.getHeaders().pipe(
178
184
  m(
179
- (i) => U(
185
+ (i) => R(
180
186
  this.apiUrl,
181
187
  {
182
188
  method: "POST",
@@ -194,13 +200,13 @@ class dt extends M {
194
200
  ), d(o)))
195
201
  )
196
202
  ),
197
- w((i) => this.errorHandler(i, e))
203
+ I((i) => this.errorHandler(i, e))
198
204
  );
199
205
  }
200
206
  fetchCustomData(t = {}, e) {
201
207
  return this.getHeaders().pipe(
202
208
  m(
203
- (i) => U(this.apiUrl, {
209
+ (i) => R(this.apiUrl, {
204
210
  method: this.method,
205
211
  headers: i,
206
212
  body: this.method === "GET" ? null : JSON.stringify(t),
@@ -249,7 +255,7 @@ function W(s, r, t) {
249
255
  n[a + g] = c[g];
250
256
  return n;
251
257
  }
252
- return j(c);
258
+ return H(c);
253
259
  }
254
260
  try {
255
261
  e.name = s;
@@ -269,7 +275,7 @@ function X(s, r, t, e) {
269
275
  return r ^ t ^ e;
270
276
  }
271
277
  }
272
- function B(s, r) {
278
+ function y(s, r) {
273
279
  return s << r | s >>> 32 - r;
274
280
  }
275
281
  function Z(s) {
@@ -295,18 +301,18 @@ function Z(s) {
295
301
  for (let l = 0; l < 16; ++l)
296
302
  a[l] = o[n][l];
297
303
  for (let l = 16; l < 80; ++l)
298
- a[l] = B(a[l - 3] ^ a[l - 8] ^ a[l - 14] ^ a[l - 16], 1);
299
- let f = t[0], c = t[1], g = t[2], x = t[3], y = t[4];
304
+ a[l] = y(a[l - 3] ^ a[l - 8] ^ a[l - 14] ^ a[l - 16], 1);
305
+ let f = t[0], c = t[1], g = t[2], x = t[3], B = t[4];
300
306
  for (let l = 0; l < 80; ++l) {
301
- const R = Math.floor(l / 20), $ = B(f, 5) + X(R, c, g, x) + y + r[R] + a[l] >>> 0;
302
- y = x, x = g, g = B(c, 30) >>> 0, c = f, f = $;
307
+ const U = Math.floor(l / 20), w = y(f, 5) + X(U, c, g, x) + B + r[U] + a[l] >>> 0;
308
+ B = x, x = g, g = y(c, 30) >>> 0, c = f, f = w;
303
309
  }
304
- t[0] = t[0] + f >>> 0, t[1] = t[1] + c >>> 0, t[2] = t[2] + g >>> 0, t[3] = t[3] + x >>> 0, t[4] = t[4] + y >>> 0;
310
+ t[0] = t[0] + f >>> 0, t[1] = t[1] + c >>> 0, t[2] = t[2] + g >>> 0, t[3] = t[3] + x >>> 0, t[4] = t[4] + B >>> 0;
305
311
  }
306
312
  return [t[0] >> 24 & 255, t[0] >> 16 & 255, t[0] >> 8 & 255, t[0] & 255, t[1] >> 24 & 255, t[1] >> 16 & 255, t[1] >> 8 & 255, t[1] & 255, t[2] >> 24 & 255, t[2] >> 16 & 255, t[2] >> 8 & 255, t[2] & 255, t[3] >> 24 & 255, t[3] >> 16 & 255, t[3] >> 8 & 255, t[3] & 255, t[4] >> 24 & 255, t[4] >> 16 & 255, t[4] >> 8 & 255, t[4] & 255];
307
313
  }
308
314
  const Q = W("v5", 80, Z), N = Q;
309
- class mt extends H {
315
+ class mt extends C {
310
316
  constructor(t, e = "POST", i = {}) {
311
317
  super();
312
318
  h(this, "apiUrl");
@@ -328,7 +334,7 @@ class mt extends H {
328
334
  const e = (/* @__PURE__ */ new Date()).toISOString(), i = N(e, N.URL), o = this.encode({ ...t }, i);
329
335
  p.getInstance().setSubject(this.isLoadingEnabled);
330
336
  const a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
331
- return U(this.apiUrl, {
337
+ return R(this.apiUrl, {
332
338
  method: this.method,
333
339
  headers: { ...this.headers, flow: a },
334
340
  body: o,
@@ -338,7 +344,7 @@ class mt extends H {
338
344
  m((f) => (this.logDebug(
339
345
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(t)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(f)}`
340
346
  ), d(f))),
341
- w(this.errorHandler),
347
+ I(this.errorHandler),
342
348
  m((f) => (p.getInstance().setSubject(!1), d(f))),
343
349
  b((f) => (p.getInstance().setSubject(!1), O.getInstance().setSubject(
344
350
  new S().get(f, i)
@@ -1,4 +1,4 @@
1
- import { t } from "./index-f71c6c4a.js";
1
+ import { t } from "./index-fccce407.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.70",
3
+ "version": "0.0.72",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {