mp-front-cli 0.0.88 → 0.0.89
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-f87c2b26.js → index-d4f88744.js} +8 -0
- package/dist/lang/common/errors/calculator/es_MX/index.d.ts +8 -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 +8 -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 +35 -21
- 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;AA0rBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
|
|
@@ -176,6 +176,14 @@ const e = {
|
|
|
176
176
|
title: "Error al consumir el servicio de amortización de SAP",
|
|
177
177
|
message: "Verificar el estado o las credenciales del servicio SAP"
|
|
178
178
|
},
|
|
179
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
180
|
+
title: "Error al obtener token de seguridad en SAP",
|
|
181
|
+
message: "Solicitud para verificar credenciales o estado del servicio"
|
|
182
|
+
},
|
|
183
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
184
|
+
title: "SAP: No se determinarán plazos para el tipo de crédito",
|
|
185
|
+
message: "Consulta el tipo de crédito"
|
|
186
|
+
},
|
|
179
187
|
//Apartadito
|
|
180
188
|
"SAVING_NOT_FOUND-01": {
|
|
181
189
|
title: "Verificar la identificación de guardado",
|
|
@@ -176,6 +176,14 @@ declare const translation: {
|
|
|
176
176
|
title: string;
|
|
177
177
|
message: string;
|
|
178
178
|
};
|
|
179
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
180
|
+
title: string;
|
|
181
|
+
message: string;
|
|
182
|
+
};
|
|
183
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
184
|
+
title: string;
|
|
185
|
+
message: string;
|
|
186
|
+
};
|
|
179
187
|
"SAVING_NOT_FOUND-01": {
|
|
180
188
|
title: string;
|
|
181
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
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsNhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -469,6 +469,14 @@ declare const translation: {
|
|
|
469
469
|
title: string;
|
|
470
470
|
message: string;
|
|
471
471
|
};
|
|
472
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
473
|
+
title: string;
|
|
474
|
+
message: string;
|
|
475
|
+
};
|
|
476
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
477
|
+
title: string;
|
|
478
|
+
message: string;
|
|
479
|
+
};
|
|
472
480
|
"SAVING_NOT_FOUND-01": {
|
|
473
481
|
title: string;
|
|
474
482
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0NhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiMiddleware as n, ErrorCatalog as x, FetchServiceBE as E, FetchServiceFE as F } from "./mp-front-cli-core.es.js";
|
|
2
2
|
import { LoadingHandler as S, MessageHandler as f, RxSubjectManager as h } from "./mp-front-cli-utils-rxjs.es.js";
|
|
3
3
|
import "i18next";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-d4f88744.js";
|
|
5
5
|
import "./mp-front-cli-logger.es.js";
|
|
6
6
|
import "rxjs";
|
|
7
7
|
import "./mp-front-cli-encrypter.es.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var y = (E, t, e) => t in E ? f(E, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : E[t] = e;
|
|
3
3
|
var L = (E, t, e) => (y(E, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { LoadingHandler as
|
|
4
|
+
import { LoadingHandler as g, MessageHandler as B } from "./mp-front-cli-utils-rxjs.es.js";
|
|
5
5
|
import { RxSubjectManager as Ue } from "./mp-front-cli-utils-rxjs.es.js";
|
|
6
|
-
import v, { t as
|
|
7
|
-
import { t as Q } from "./index-
|
|
6
|
+
import v, { t as C } from "i18next";
|
|
7
|
+
import { t as Q } from "./index-d4f88744.js";
|
|
8
8
|
import { CustomLogger as h } from "./mp-front-cli-logger.es.js";
|
|
9
|
-
import { of as N, switchMap as O, forkJoin as M, catchError as
|
|
9
|
+
import { of as N, switchMap as O, forkJoin as M, catchError as I, EMPTY as S, filter as w } from "rxjs";
|
|
10
10
|
import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
|
|
11
11
|
import { C as x, f as d } from "./custom-header-b6432556.js";
|
|
12
12
|
import { CustomEncoder as F } from "./mp-front-cli-encoder.es.js";
|
|
@@ -661,6 +661,20 @@ const G = {
|
|
|
661
661
|
type: "modal",
|
|
662
662
|
level: "warning"
|
|
663
663
|
},
|
|
664
|
+
"CALCULATOR-BAD-REQUEST-29": {
|
|
665
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-29.title",
|
|
666
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-29.message",
|
|
667
|
+
code: 420,
|
|
668
|
+
type: "modal",
|
|
669
|
+
level: "warning"
|
|
670
|
+
},
|
|
671
|
+
"CALCULATOR-BAD-REQUEST-30": {
|
|
672
|
+
title: "errors.calculator.CALCULATOR-BAD-REQUEST-30.title",
|
|
673
|
+
message: "errors.calculator.CALCULATOR-BAD-REQUEST-30.message",
|
|
674
|
+
code: 420,
|
|
675
|
+
type: "modal",
|
|
676
|
+
level: "warning"
|
|
677
|
+
},
|
|
664
678
|
//Apartadito
|
|
665
679
|
"SAVING_NOT_FOUND-01": {
|
|
666
680
|
title: "errors.calculator.SAVING_NOT_FOUND-01.title",
|
|
@@ -940,8 +954,8 @@ class U extends h {
|
|
|
940
954
|
if (t instanceof Error)
|
|
941
955
|
return this.logError(t.message), {
|
|
942
956
|
...m.internalError,
|
|
943
|
-
title:
|
|
944
|
-
message:
|
|
957
|
+
title: C(m.internalError.title),
|
|
958
|
+
message: C(m.internalError.message),
|
|
945
959
|
uuid: e
|
|
946
960
|
};
|
|
947
961
|
const r = typeof t == "string" ? t : t.code ?? t.errorType;
|
|
@@ -949,11 +963,11 @@ class U extends h {
|
|
|
949
963
|
const l = typeof t == "string" ? {} : { ...t };
|
|
950
964
|
return {
|
|
951
965
|
...m[r] ?? m.default,
|
|
952
|
-
title:
|
|
966
|
+
title: C(
|
|
953
967
|
((s = m[r]) == null ? void 0 : s.title) ?? m.default.title,
|
|
954
968
|
l
|
|
955
969
|
),
|
|
956
|
-
message:
|
|
970
|
+
message: C(
|
|
957
971
|
((A = m[r]) == null ? void 0 : A.message) ?? m.default.message,
|
|
958
972
|
l
|
|
959
973
|
),
|
|
@@ -1002,7 +1016,7 @@ class Ne extends V {
|
|
|
1002
1016
|
O(({ params: A, response: a, headers: o }) => (this.logDebug(
|
|
1003
1017
|
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(o)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)}`
|
|
1004
1018
|
), N(a))),
|
|
1005
|
-
|
|
1019
|
+
I((A) => {
|
|
1006
1020
|
var a;
|
|
1007
1021
|
return this.logError(
|
|
1008
1022
|
`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(A)}`
|
|
@@ -1049,7 +1063,7 @@ class Le extends x {
|
|
|
1049
1063
|
selector: (s) => s.json()
|
|
1050
1064
|
}
|
|
1051
1065
|
).pipe(
|
|
1052
|
-
|
|
1066
|
+
I((s) => {
|
|
1053
1067
|
throw this.logError(JSON.stringify(s)), this.logError(
|
|
1054
1068
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1055
1069
|
l
|
|
@@ -1079,7 +1093,7 @@ class Le extends x {
|
|
|
1079
1093
|
body: this.method === "GET" ? null : JSON.stringify(e),
|
|
1080
1094
|
selector: (s) => s.json()
|
|
1081
1095
|
}).pipe(
|
|
1082
|
-
|
|
1096
|
+
I((s) => {
|
|
1083
1097
|
throw this.logError(JSON.stringify(s)), this.logError(
|
|
1084
1098
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1085
1099
|
l
|
|
@@ -1178,12 +1192,12 @@ function k(E) {
|
|
|
1178
1192
|
a[R] = s[A][R];
|
|
1179
1193
|
for (let R = 16; R < 80; ++R)
|
|
1180
1194
|
a[R] = n(a[R - 3] ^ a[R - 8] ^ a[R - 14] ^ a[R - 16], 1);
|
|
1181
|
-
let o = e[0], T = e[1], i = e[2],
|
|
1195
|
+
let o = e[0], T = e[1], i = e[2], c = e[3], D = e[4];
|
|
1182
1196
|
for (let R = 0; R < 80; ++R) {
|
|
1183
|
-
const P = Math.floor(R / 20), u = n(o, 5) + Z(P, T, i,
|
|
1184
|
-
D =
|
|
1197
|
+
const P = Math.floor(R / 20), u = n(o, 5) + Z(P, T, i, c) + D + t[P] + a[R] >>> 0;
|
|
1198
|
+
D = c, c = i, i = n(T, 30) >>> 0, T = o, o = u;
|
|
1185
1199
|
}
|
|
1186
|
-
e[0] = e[0] + o >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] +
|
|
1200
|
+
e[0] = e[0] + o >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + c >>> 0, e[4] = e[4] + D >>> 0;
|
|
1187
1201
|
}
|
|
1188
1202
|
return [e[0] >> 24 & 255, e[0] >> 16 & 255, e[0] >> 8 & 255, e[0] & 255, e[1] >> 24 & 255, e[1] >> 16 & 255, e[1] >> 8 & 255, e[1] & 255, e[2] >> 24 & 255, e[2] >> 16 & 255, e[2] >> 8 & 255, e[2] & 255, e[3] >> 24 & 255, e[3] >> 16 & 255, e[3] >> 8 & 255, e[3] & 255, e[4] >> 24 & 255, e[4] >> 16 & 255, e[4] >> 8 & 255, e[4] & 255];
|
|
1189
1203
|
}
|
|
@@ -1209,7 +1223,7 @@ class Oe extends F {
|
|
|
1209
1223
|
}
|
|
1210
1224
|
fetchData(e = {}) {
|
|
1211
1225
|
const r = (/* @__PURE__ */ new Date()).toISOString(), l = p(r, p.URL), s = this.encode({ ...e }, l);
|
|
1212
|
-
|
|
1226
|
+
g.getInstance().setSubject(this.isLoadingEnabled);
|
|
1213
1227
|
const a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
1214
1228
|
return d(this.apiUrl, {
|
|
1215
1229
|
method: this.method,
|
|
@@ -1220,13 +1234,13 @@ class Oe extends F {
|
|
|
1220
1234
|
O((o) => N(this.decode(o))),
|
|
1221
1235
|
O((o) => o.code && (o.type === "modal" || o.type === "message") ? (this.logError(
|
|
1222
1236
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1223
|
-
),
|
|
1224
|
-
O((o) => (
|
|
1237
|
+
), g.getInstance().setSubject(!1), B.getInstance().setSubject(o), this.errorResponse ? N(this.errorResponse) : S) : N(o)),
|
|
1238
|
+
O((o) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1225
1239
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1226
1240
|
), N(o))),
|
|
1227
|
-
|
|
1241
|
+
I((o) => (this.logError(
|
|
1228
1242
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1229
|
-
),
|
|
1243
|
+
), g.getInstance().setSubject(!1), B.getInstance().setSubject(
|
|
1230
1244
|
new U().get(o, l)
|
|
1231
1245
|
), this.errorResponse ? N(this.errorResponse) : S))
|
|
1232
1246
|
);
|
|
@@ -1237,7 +1251,7 @@ export {
|
|
|
1237
1251
|
U as ErrorCatalog,
|
|
1238
1252
|
Le as FetchServiceBE,
|
|
1239
1253
|
Oe as FetchServiceFE,
|
|
1240
|
-
|
|
1254
|
+
g as LoadingHandler,
|
|
1241
1255
|
B as MessageHandler,
|
|
1242
1256
|
Ue as RxSubjectManager
|
|
1243
1257
|
};
|