mp-front-cli 0.0.99 → 0.0.101

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;AA4uBrD,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;AAmvBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
@@ -461,7 +461,7 @@ const e = {
461
461
  message: "El cliente tiene una solicitud activa."
462
462
  },
463
463
  "PERSONALDATA-GENERIC-ERROR": {
464
- title: "Ocurrio un error interno",
464
+ title: "Ocurrió un error interno",
465
465
  message: "Favor de contactar a soporte para brindarle una mayor atención"
466
466
  },
467
467
  "PERSONALDATA-ODATA-ERROR-01": {
@@ -513,6 +513,10 @@ const e = {
513
513
  title: "Saldo pendiente por pagar",
514
514
  message: "Notamos que tu historial presenta un saldo vencido, por esa razón, en este momento no será posible continuar con tu crédito."
515
515
  },
516
+ "PF-VALIDATE-CLIENTTYPE-006": {
517
+ title: "Rechazado",
518
+ message: "No se le puede otorgar un crédito al cliente."
519
+ },
516
520
  //TERMINOS Y CONDICIONES
517
521
  "COMMUNICATIONS-INVALIDCODEEXCEPTION-001": {
518
522
  title: "Código incorrecto",
@@ -288,6 +288,10 @@ declare const translation: {
288
288
  title: string;
289
289
  message: string;
290
290
  };
291
+ "PF-VALIDATE-CLIENTTYPE-006": {
292
+ title: string;
293
+ message: string;
294
+ };
291
295
  "COMMUNICATIONS-INVALIDCODEEXCEPTION-001": {
292
296
  title: string;
293
297
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoPhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwPhB,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-7040e1eb.js";
5
+ import "./index-f4377060.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -6,9 +6,9 @@ import { RxSubjectManager as z } from "./mp-front-cli-utils-rxjs.es.js";
6
6
  import { f as C } from "./index-def0b487.js";
7
7
  import { S as ee } from "./index-def0b487.js";
8
8
  import d, { t as m } from "i18next";
9
- import { t as P } from "./index-7040e1eb.js";
9
+ import { t as P } from "./index-f4377060.js";
10
10
  import { CustomLogger as B } from "./mp-front-cli-logger.es.js";
11
- import { of as o, switchMap as T, forkJoin as S, catchError as U, EMPTY as I, filter as M } from "rxjs";
11
+ import { of as o, switchMap as T, forkJoin as S, catchError as I, EMPTY as U, filter as M } from "rxjs";
12
12
  import { CustomEncrypter as u } from "./mp-front-cli-encrypter.es.js";
13
13
  import { CustomHeader as p } from "./mp-front-cli-header.es.js";
14
14
  import { CustomEncoder as y } from "./mp-front-cli-encoder.es.js";
@@ -332,6 +332,13 @@ const Q = {
332
332
  code: 420,
333
333
  type: "modal"
334
334
  },
335
+ "PF-VALIDATE-CLIENTTYPE-006": {
336
+ title: "errors.PF-VALIDATE-CLIENTTYPE-006.title",
337
+ message: "errors.PF-VALIDATE-CLIENTTYPE-006.message",
338
+ level: "warning",
339
+ code: 420,
340
+ type: "modal"
341
+ },
335
342
  //Terms and conditions
336
343
  "COMMUNICATIONS-INVALIDCODEEXCEPTION-001": {
337
344
  title: "errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-001.title",
@@ -1068,11 +1075,11 @@ class X extends u {
1068
1075
  T(({ params: l, response: a, headers: A }) => (this.logDebug(
1069
1076
  `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(A)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(l)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)}`
1070
1077
  ), o(a))),
1071
- U((l) => {
1078
+ I((l) => {
1072
1079
  var a;
1073
1080
  return this.logError(
1074
1081
  `ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(a = r == null ? void 0 : r.body) == null ? void 0 : a.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(l)}`
1075
- ), this.returnError(t, l), I;
1082
+ ), this.returnError(t, l), U;
1076
1083
  })
1077
1084
  ).subscribe({
1078
1085
  next: (l) => {
@@ -1115,7 +1122,7 @@ class W extends p {
1115
1122
  selector: (E) => E.json()
1116
1123
  }
1117
1124
  ).pipe(
1118
- U((E) => {
1125
+ I((E) => {
1119
1126
  throw this.logError(JSON.stringify(E)), this.logError(
1120
1127
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1121
1128
  t
@@ -1145,7 +1152,7 @@ class W extends p {
1145
1152
  body: this.method === "GET" ? null : JSON.stringify(e),
1146
1153
  selector: (E) => E.json()
1147
1154
  }).pipe(
1148
- U((E) => {
1155
+ I((E) => {
1149
1156
  throw this.logError(JSON.stringify(E)), this.logError(
1150
1157
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1151
1158
  t
@@ -1198,15 +1205,15 @@ class j extends y {
1198
1205
  T((A) => o(this.decode(A))),
1199
1206
  T((A) => A.code && (A.type === "modal" || A.type === "message") ? (this.logError(
1200
1207
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${E} <RESPONSE>: ${JSON.stringify(A)}`
1201
- ), i.getInstance().setSubject(!1), g.getInstance().setSubject(A), this.errorResponse ? o(this.errorResponse) : I) : o(A)),
1208
+ ), i.getInstance().setSubject(!1), g.getInstance().setSubject(A), this.errorResponse ? o(this.errorResponse) : U) : o(A)),
1202
1209
  T((A) => (i.getInstance().setSubject(!1), this.logDebug(
1203
1210
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${E} <RESPONSE>: ${JSON.stringify(A)}`
1204
1211
  ), o(A))),
1205
- U((A) => (this.logError(
1212
+ I((A) => (this.logError(
1206
1213
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${E} <RESPONSE>: ${JSON.stringify(A)}`
1207
1214
  ), i.getInstance().setSubject(!1), g.getInstance().setSubject(
1208
1215
  new O().get(A, t)
1209
- ), this.errorResponse ? o(this.errorResponse) : I))
1216
+ ), this.errorResponse ? o(this.errorResponse) : U))
1210
1217
  );
1211
1218
  }
1212
1219
  }
@@ -1,4 +1,4 @@
1
- import { t } from "./index-7040e1eb.js";
1
+ import { t } from "./index-f4377060.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.99",
3
+ "version": "0.0.101",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {