mp-front-cli 0.0.100 → 0.0.102

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;AA0vBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
@@ -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",
@@ -557,6 +561,10 @@ const e = {
557
561
  title: "Intentar con otra referencia",
558
562
  message: "El número telefónico se encuentra en listas negras"
559
563
  },
564
+ "PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01": {
565
+ title: "Teléfono invalido",
566
+ message: "Ingrese un número valido."
567
+ },
560
568
  //PAYMENTS
561
569
  "SALES-SUMMARY-GENERIC-ERROR-001": {
562
570
  title: "Ocurrió un error resumen de venta",
@@ -12,6 +12,10 @@ declare const translation: {
12
12
  title: string;
13
13
  message: string;
14
14
  };
15
+ "PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01": {
16
+ title: string;
17
+ message: string;
18
+ };
15
19
  "SALES-SUMMARY-GENERIC-ERROR-001": {
16
20
  title: string;
17
21
  message: string;
@@ -288,6 +292,10 @@ declare const translation: {
288
292
  title: string;
289
293
  message: string;
290
294
  };
295
+ "PF-VALIDATE-CLIENTTYPE-006": {
296
+ title: string;
297
+ message: string;
298
+ };
291
299
  "COMMUNICATIONS-INVALIDCODEEXCEPTION-001": {
292
300
  title: string;
293
301
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4PhB,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-8769a3b2.js";
5
+ import "./index-6ac9fcde.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -6,11 +6,11 @@ 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-8769a3b2.js";
9
+ import { t as P } from "./index-6ac9fcde.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";
12
- import { CustomEncrypter as u } from "./mp-front-cli-encrypter.es.js";
13
- import { CustomHeader as p } from "./mp-front-cli-header.es.js";
11
+ import { of as o, switchMap as T, forkJoin as S, catchError as I, EMPTY as U, filter as M } from "rxjs";
12
+ import { CustomEncrypter as p } from "./mp-front-cli-encrypter.es.js";
13
+ import { CustomHeader as u } from "./mp-front-cli-header.es.js";
14
14
  import { CustomEncoder as y } from "./mp-front-cli-encoder.es.js";
15
15
  import { a as D } from "./v5-cbd101aa.js";
16
16
  import "node-jose";
@@ -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",
@@ -983,6 +990,13 @@ const Q = {
983
990
  type: "modal",
984
991
  level: "warning"
985
992
  },
993
+ "PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01": {
994
+ title: "errors.PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01.title",
995
+ message: "errors.PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01.message",
996
+ code: 400,
997
+ type: "modal",
998
+ level: "warning"
999
+ },
986
1000
  //PAYMENTS
987
1001
  "SALES-SUMMARY-GENERIC-ERROR-001": {
988
1002
  title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
@@ -1027,7 +1041,7 @@ class O extends B {
1027
1041
  };
1028
1042
  }
1029
1043
  }
1030
- class X extends u {
1044
+ class b extends p {
1031
1045
  constructor() {
1032
1046
  super(...arguments);
1033
1047
  R(this, "uuid", "");
@@ -1068,11 +1082,11 @@ class X extends u {
1068
1082
  T(({ params: l, response: a, headers: A }) => (this.logDebug(
1069
1083
  `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
1084
  ), o(a))),
1071
- U((l) => {
1085
+ I((l) => {
1072
1086
  var a;
1073
1087
  return this.logError(
1074
1088
  `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;
1089
+ ), this.returnError(t, l), U;
1076
1090
  })
1077
1091
  ).subscribe({
1078
1092
  next: (l) => {
@@ -1083,7 +1097,7 @@ class X extends u {
1083
1097
  }
1084
1098
  }
1085
1099
  const V = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1086
- class W extends p {
1100
+ class W extends u {
1087
1101
  constructor(e, r, t = {}) {
1088
1102
  super(t);
1089
1103
  R(this, "apiUrl");
@@ -1115,7 +1129,7 @@ class W extends p {
1115
1129
  selector: (E) => E.json()
1116
1130
  }
1117
1131
  ).pipe(
1118
- U((E) => {
1132
+ I((E) => {
1119
1133
  throw this.logError(JSON.stringify(E)), this.logError(
1120
1134
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1121
1135
  t
@@ -1145,7 +1159,7 @@ class W extends p {
1145
1159
  body: this.method === "GET" ? null : JSON.stringify(e),
1146
1160
  selector: (E) => E.json()
1147
1161
  }).pipe(
1148
- U((E) => {
1162
+ I((E) => {
1149
1163
  throw this.logError(JSON.stringify(E)), this.logError(
1150
1164
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1151
1165
  t
@@ -1198,20 +1212,20 @@ class j extends y {
1198
1212
  T((A) => o(this.decode(A))),
1199
1213
  T((A) => A.code && (A.type === "modal" || A.type === "message") ? (this.logError(
1200
1214
  `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)),
1215
+ ), i.getInstance().setSubject(!1), g.getInstance().setSubject(A), this.errorResponse ? o(this.errorResponse) : U) : o(A)),
1202
1216
  T((A) => (i.getInstance().setSubject(!1), this.logDebug(
1203
1217
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${E} <RESPONSE>: ${JSON.stringify(A)}`
1204
1218
  ), o(A))),
1205
- U((A) => (this.logError(
1219
+ I((A) => (this.logError(
1206
1220
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${E} <RESPONSE>: ${JSON.stringify(A)}`
1207
1221
  ), i.getInstance().setSubject(!1), g.getInstance().setSubject(
1208
1222
  new O().get(A, t)
1209
- ), this.errorResponse ? o(this.errorResponse) : I))
1223
+ ), this.errorResponse ? o(this.errorResponse) : U))
1210
1224
  );
1211
1225
  }
1212
1226
  }
1213
1227
  export {
1214
- X as ApiMiddleware,
1228
+ b as ApiMiddleware,
1215
1229
  O as ErrorCatalog,
1216
1230
  W as FetchServiceBE,
1217
1231
  j as FetchServiceFE,
@@ -1,4 +1,4 @@
1
- import { t } from "./index-8769a3b2.js";
1
+ import { t } from "./index-6ac9fcde.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.100",
3
+ "version": "0.0.102",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {