mp-front-cli 0.0.98 → 0.0.100
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.
- package/dist/core/errors/error-catalog.d.ts.map +1 -1
- package/dist/{index-dd1f8b8a.js → index-8769a3b2.js} +14 -1
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts +4 -0
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts.map +1 -1
- package/dist/lang/common/errors/es_MX/index.d.ts +12 -0
- package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -1
- package/dist/mp-front-cli-all.es.js +1 -1
- package/dist/mp-front-cli-core.es.js +55 -33
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
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",
|
|
@@ -457,7 +461,7 @@ const e = {
|
|
|
457
461
|
message: "El cliente tiene una solicitud activa."
|
|
458
462
|
},
|
|
459
463
|
"PERSONALDATA-GENERIC-ERROR": {
|
|
460
|
-
title: "
|
|
464
|
+
title: "Ocurrió un error interno",
|
|
461
465
|
message: "Favor de contactar a soporte para brindarle una mayor atención"
|
|
462
466
|
},
|
|
463
467
|
"PERSONALDATA-ODATA-ERROR-01": {
|
|
@@ -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
|
};
|
|
@@ -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
|
|
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
|
|
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-
|
|
5
|
+
import "./index-8769a3b2.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
|
|
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
|
|
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-
|
|
9
|
+
import { t as P } from "./index-8769a3b2.js";
|
|
10
10
|
import { CustomLogger as B } from "./mp-front-cli-logger.es.js";
|
|
11
|
-
import { of as o, switchMap as
|
|
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
|
-
|
|
1012
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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),
|
|
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
|
-
|
|
1068
|
-
|
|
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
|
-
|
|
1087
|
-
(t) =>
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1120
|
-
(t) =>
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
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
|
|
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
|
-
|
|
1177
|
-
|
|
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) :
|
|
1180
|
-
|
|
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
|
-
|
|
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) :
|
|
1209
|
+
), this.errorResponse ? o(this.errorResponse) : I))
|
|
1188
1210
|
);
|
|
1189
1211
|
}
|
|
1190
1212
|
}
|