mp-front-cli 0.0.98 → 0.0.99

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;AAstBrD,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;AA4uBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
@@ -180,6 +180,10 @@ const e = {
180
180
  title: "SAP: No se determinarán plazos para el tipo de crédito",
181
181
  message: "Consulta el tipo de crédito"
182
182
  },
183
+ "CALCULATOR-BAD-REQUEST-31": {
184
+ title: "No hay existencias",
185
+ message: "Por el momento no pudimos encontrar productos para ti, intenta más tarde"
186
+ },
183
187
  //Apartadito
184
188
  "SAVING_NOT_FOUND-01": {
185
189
  title: "Verificar la identificación de guardado",
@@ -552,6 +556,15 @@ const e = {
552
556
  "PERSONALREFERENCE-BLACKLISTEXCEPTION-01": {
553
557
  title: "Intentar con otra referencia",
554
558
  message: "El número telefónico se encuentra en listas negras"
559
+ },
560
+ //PAYMENTS
561
+ "SALES-SUMMARY-GENERIC-ERROR-001": {
562
+ title: "Ocurrió un error resumen de venta",
563
+ message: "Por favor contactar con el administrador"
564
+ },
565
+ "PF-SALES-SUMMARY-GENERIC-ERROR-001": {
566
+ title: "Error al cerrar la venta",
567
+ message: "Por favor de revisar los datos enviados"
555
568
  }
556
569
  }
557
570
  };
@@ -180,6 +180,10 @@ declare const translation: {
180
180
  title: string;
181
181
  message: string;
182
182
  };
183
+ "CALCULATOR-BAD-REQUEST-31": {
184
+ title: string;
185
+ message: string;
186
+ };
183
187
  "SAVING_NOT_FOUND-01": {
184
188
  title: string;
185
189
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmNhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwNhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -12,6 +12,14 @@ declare const translation: {
12
12
  title: string;
13
13
  message: string;
14
14
  };
15
+ "SALES-SUMMARY-GENERIC-ERROR-001": {
16
+ title: string;
17
+ message: string;
18
+ };
19
+ "PF-SALES-SUMMARY-GENERIC-ERROR-001": {
20
+ title: string;
21
+ message: string;
22
+ };
15
23
  "ENROLLMENT-INVALIDCONFIGURATION-0000": {
16
24
  title: string;
17
25
  message: string;
@@ -489,6 +497,10 @@ declare const translation: {
489
497
  title: string;
490
498
  message: string;
491
499
  };
500
+ "CALCULATOR-BAD-REQUEST-31": {
501
+ title: string;
502
+ message: string;
503
+ };
492
504
  "SAVING_NOT_FOUND-01": {
493
505
  title: string;
494
506
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2OhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoPhB,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-dd1f8b8a.js";
5
+ import "./index-7040e1eb.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -1,14 +1,14 @@
1
1
  var c = Object.defineProperty;
2
2
  var n = (N, s, e) => s in N ? c(N, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : N[s] = e;
3
- var T = (N, s, e) => (n(N, typeof s != "symbol" ? s + "" : s, e), e);
3
+ var R = (N, s, e) => (n(N, typeof s != "symbol" ? s + "" : s, e), e);
4
4
  import { LoadingHandler as i, MessageHandler as g } from "./mp-front-cli-utils-rxjs.es.js";
5
5
  import { RxSubjectManager as z } from "./mp-front-cli-utils-rxjs.es.js";
6
- import { f as U } from "./index-def0b487.js";
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-dd1f8b8a.js";
9
+ import { t as P } from "./index-7040e1eb.js";
10
10
  import { CustomLogger as B } from "./mp-front-cli-logger.es.js";
11
- import { of as o, switchMap as R, forkJoin as S, catchError as I, EMPTY as C, filter as M } from "rxjs";
11
+ import { of as o, switchMap as T, forkJoin as S, catchError as U, EMPTY as I, 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";
@@ -705,6 +705,13 @@ const Q = {
705
705
  type: "modal",
706
706
  level: "warning"
707
707
  },
708
+ "CALCULATOR-BAD-REQUEST-31": {
709
+ title: "errors.calculator.CALCULATOR-BAD-REQUEST-31.title",
710
+ message: "errors.calculator.CALCULATOR-BAD-REQUEST-31.message",
711
+ code: 420,
712
+ type: "modal",
713
+ level: "info"
714
+ },
708
715
  //Apartadito
709
716
  "SAVING_NOT_FOUND-01": {
710
717
  title: "errors.calculator.SAVING_NOT_FOUND-01.title",
@@ -976,6 +983,21 @@ const Q = {
976
983
  type: "modal",
977
984
  level: "warning"
978
985
  },
986
+ //PAYMENTS
987
+ "SALES-SUMMARY-GENERIC-ERROR-001": {
988
+ title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
989
+ message: "errors.SALES-SUMMARY-GENERIC-ERROR-001.message",
990
+ code: 420,
991
+ type: "modal",
992
+ level: "warning"
993
+ },
994
+ "PF-SALES-SUMMARY-GENERIC-ERROR-001": {
995
+ title: "errors.PF-SALES-SUMMARY-GENERIC-ERROR-001.title",
996
+ message: "errors.PF-SALES-SUMMARY-GENERIC-ERROR-001.message",
997
+ code: 420,
998
+ type: "modal",
999
+ level: "warning"
1000
+ },
979
1001
  ...Q
980
1002
  };
981
1003
  class O extends B {
@@ -1008,8 +1030,8 @@ class O extends B {
1008
1030
  class X extends u {
1009
1031
  constructor() {
1010
1032
  super(...arguments);
1011
- T(this, "uuid", "");
1012
- T(this, "session", null);
1033
+ R(this, "uuid", "");
1034
+ R(this, "session", null);
1013
1035
  }
1014
1036
  setSession(e) {
1015
1037
  this.session = e;
@@ -1030,27 +1052,27 @@ class X extends u {
1030
1052
  return this.logDebug("get ApiMiddleware"), (r, t) => {
1031
1053
  var E;
1032
1054
  this.logDebug("return ApiMiddleware"), this.uuid = (E = r == null ? void 0 : r.body) == null ? void 0 : E.uuid, o(r).pipe(
1033
- R(
1055
+ T(
1034
1056
  (l) => S({
1035
1057
  params: o(this.decode(l.body)),
1036
1058
  headers: o(l.headers)
1037
1059
  })
1038
1060
  ),
1039
- R(
1061
+ T(
1040
1062
  ({ params: l, headers: a }) => S({
1041
1063
  response: e(l, this.uuid, a),
1042
1064
  headers: o(a),
1043
1065
  params: o(l)
1044
1066
  })
1045
1067
  ),
1046
- R(({ params: l, response: a, headers: A }) => (this.logDebug(
1068
+ T(({ params: l, response: a, headers: A }) => (this.logDebug(
1047
1069
  `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)}`
1048
1070
  ), o(a))),
1049
- I((l) => {
1071
+ U((l) => {
1050
1072
  var a;
1051
1073
  return this.logError(
1052
1074
  `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)}`
1053
- ), this.returnError(t, l), C;
1075
+ ), this.returnError(t, l), I;
1054
1076
  })
1055
1077
  ).subscribe({
1056
1078
  next: (l) => {
@@ -1064,8 +1086,8 @@ const V = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1064
1086
  class W extends p {
1065
1087
  constructor(e, r, t = {}) {
1066
1088
  super(t);
1067
- T(this, "apiUrl");
1068
- T(this, "method");
1089
+ R(this, "apiUrl");
1090
+ R(this, "method");
1069
1091
  this.apiUrl = e, this.method = r ?? "POST";
1070
1092
  }
1071
1093
  errorHandler(e, r) {
@@ -1083,8 +1105,8 @@ class W extends p {
1083
1105
  }
1084
1106
  fetchData(e = {}, r) {
1085
1107
  return this.getHeaders().pipe(
1086
- R(
1087
- (t) => U(
1108
+ T(
1109
+ (t) => C(
1088
1110
  this.apiUrl,
1089
1111
  {
1090
1112
  method: "POST",
@@ -1093,7 +1115,7 @@ class W extends p {
1093
1115
  selector: (E) => E.json()
1094
1116
  }
1095
1117
  ).pipe(
1096
- I((E) => {
1118
+ U((E) => {
1097
1119
  throw this.logError(JSON.stringify(E)), this.logError(
1098
1120
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1099
1121
  t
@@ -1102,7 +1124,7 @@ class W extends p {
1102
1124
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(E)} \x1B[33m`
1103
1125
  ), new O().get("default", r);
1104
1126
  }),
1105
- R((E) => (this.logDebug(
1127
+ T((E) => (this.logDebug(
1106
1128
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1107
1129
  t
1108
1130
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
@@ -1116,14 +1138,14 @@ class W extends p {
1116
1138
  }
1117
1139
  fetchCustomData(e = {}, r) {
1118
1140
  return this.getHeaders().pipe(
1119
- R(
1120
- (t) => U(this.apiUrl, {
1141
+ T(
1142
+ (t) => C(this.apiUrl, {
1121
1143
  method: this.method,
1122
1144
  headers: t,
1123
1145
  body: this.method === "GET" ? null : JSON.stringify(e),
1124
1146
  selector: (E) => E.json()
1125
1147
  }).pipe(
1126
- I((E) => {
1148
+ U((E) => {
1127
1149
  throw this.logError(JSON.stringify(E)), this.logError(
1128
1150
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1129
1151
  t
@@ -1132,7 +1154,7 @@ class W extends p {
1132
1154
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(E)} \x1B[33m`
1133
1155
  ), new O().get("default", r);
1134
1156
  }),
1135
- R((E) => (this.logDebug(
1157
+ T((E) => (this.logDebug(
1136
1158
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1137
1159
  t
1138
1160
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
@@ -1147,11 +1169,11 @@ class W extends p {
1147
1169
  class j extends y {
1148
1170
  constructor(e, r = "POST", t = {}) {
1149
1171
  super();
1150
- T(this, "apiUrl");
1151
- T(this, "method");
1152
- T(this, "headers");
1153
- T(this, "isLoadingEnabled", !0);
1154
- T(this, "errorResponse");
1172
+ R(this, "apiUrl");
1173
+ R(this, "method");
1174
+ R(this, "headers");
1175
+ R(this, "isLoadingEnabled", !0);
1176
+ R(this, "errorResponse");
1155
1177
  this.apiUrl = e, this.method = r, this.headers = {
1156
1178
  "Content-Type": "application/json",
1157
1179
  ...t
@@ -1167,24 +1189,24 @@ class j extends y {
1167
1189
  const r = (/* @__PURE__ */ new Date()).toISOString(), t = D(r, D.URL), E = this.encode({ ...e }, t);
1168
1190
  i.getInstance().setSubject(this.isLoadingEnabled);
1169
1191
  const a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
1170
- return U(this.apiUrl, {
1192
+ return C(this.apiUrl, {
1171
1193
  method: this.method,
1172
1194
  headers: { ...this.headers, flow: a },
1173
1195
  body: E,
1174
1196
  selector: (A) => A.json()
1175
1197
  }).pipe(
1176
- R((A) => o(this.decode(A))),
1177
- R((A) => A.code && (A.type === "modal" || A.type === "message") ? (this.logError(
1198
+ T((A) => o(this.decode(A))),
1199
+ T((A) => A.code && (A.type === "modal" || A.type === "message") ? (this.logError(
1178
1200
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${E} <RESPONSE>: ${JSON.stringify(A)}`
1179
- ), i.getInstance().setSubject(!1), g.getInstance().setSubject(A), this.errorResponse ? o(this.errorResponse) : C) : o(A)),
1180
- R((A) => (i.getInstance().setSubject(!1), this.logDebug(
1201
+ ), i.getInstance().setSubject(!1), g.getInstance().setSubject(A), this.errorResponse ? o(this.errorResponse) : I) : o(A)),
1202
+ T((A) => (i.getInstance().setSubject(!1), this.logDebug(
1181
1203
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${E} <RESPONSE>: ${JSON.stringify(A)}`
1182
1204
  ), o(A))),
1183
- I((A) => (this.logError(
1205
+ U((A) => (this.logError(
1184
1206
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${E} <RESPONSE>: ${JSON.stringify(A)}`
1185
1207
  ), i.getInstance().setSubject(!1), g.getInstance().setSubject(
1186
1208
  new O().get(A, t)
1187
- ), this.errorResponse ? o(this.errorResponse) : C))
1209
+ ), this.errorResponse ? o(this.errorResponse) : I))
1188
1210
  );
1189
1211
  }
1190
1212
  }
@@ -1,4 +1,4 @@
1
- import { t } from "./index-dd1f8b8a.js";
1
+ import { t } from "./index-7040e1eb.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.98",
3
+ "version": "0.0.99",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {