mp-front-cli 0.0.71 → 0.0.72
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;
|
|
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;AAiDrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAAE,IAAI,CAAC,EAAE,MAAM;;;;;;;;;;;CA6BhE"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var h = (s, r, t) => (
|
|
4
|
-
import { C as
|
|
1
|
+
var $ = Object.defineProperty;
|
|
2
|
+
var M = (s, r, t) => r in s ? $(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
|
|
3
|
+
var h = (s, r, t) => (M(s, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
|
+
import { C as P, f as R } from "./custom-header-596dcd13.js";
|
|
5
5
|
import { S as ut } from "./custom-header-596dcd13.js";
|
|
6
6
|
import { MessageHandler as O, LoadingHandler as p } from "./mp-front-cli-utils-rxjs.es.js";
|
|
7
7
|
import { RxSubjectManager as pt } from "./mp-front-cli-utils-rxjs.es.js";
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
10
|
-
import { CustomLogger as
|
|
11
|
-
import { of as d, switchMap as m, forkJoin as A, catchError as b, EMPTY as D, filter as
|
|
12
|
-
import { CustomEncrypter as
|
|
13
|
-
import { CustomEncoder as
|
|
14
|
-
import { u as
|
|
8
|
+
import L, { t as E } from "i18next";
|
|
9
|
+
import { t as T } from "./index-fccce407.js";
|
|
10
|
+
import { CustomLogger as v } from "./mp-front-cli-logger.es.js";
|
|
11
|
+
import { of as d, switchMap as m, forkJoin as A, catchError as b, EMPTY as D, filter as I } from "rxjs";
|
|
12
|
+
import { CustomEncrypter as J } from "./mp-front-cli-encrypter.es.js";
|
|
13
|
+
import { CustomEncoder as C } from "./mp-front-cli-encoder.es.js";
|
|
14
|
+
import { u as H } from "./stringify-788d71a0.js";
|
|
15
15
|
import "node-jose";
|
|
16
16
|
import "crypto";
|
|
17
|
-
const
|
|
17
|
+
const j = {
|
|
18
18
|
es: {
|
|
19
19
|
translation: {
|
|
20
|
-
...
|
|
20
|
+
...T
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
resources:
|
|
24
|
+
L.init({
|
|
25
|
+
resources: j,
|
|
26
26
|
lng: "es",
|
|
27
27
|
// language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
|
|
28
28
|
// you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
|
|
@@ -35,7 +35,6 @@ P.init({
|
|
|
35
35
|
debug: !1
|
|
36
36
|
});
|
|
37
37
|
const u = {
|
|
38
|
-
// EXAMPLE ERROR
|
|
39
38
|
"MP-001": {
|
|
40
39
|
code: 400,
|
|
41
40
|
type: "modal",
|
|
@@ -70,9 +69,16 @@ const u = {
|
|
|
70
69
|
message: "errors.default.message",
|
|
71
70
|
title: "errors.default.title",
|
|
72
71
|
level: "warning"
|
|
72
|
+
},
|
|
73
|
+
"PF-BIOMETRIC-004": {
|
|
74
|
+
message: "errors.PF-BIOMETRIC-004.message",
|
|
75
|
+
title: "errors.PF-BIOMETRIC-004.title",
|
|
76
|
+
code: 521,
|
|
77
|
+
level: "warning",
|
|
78
|
+
type: "modal"
|
|
73
79
|
}
|
|
74
80
|
};
|
|
75
|
-
class S extends
|
|
81
|
+
class S extends v {
|
|
76
82
|
get(r = "default", t) {
|
|
77
83
|
var o, n;
|
|
78
84
|
if (r instanceof Error)
|
|
@@ -97,7 +103,7 @@ class S extends J {
|
|
|
97
103
|
};
|
|
98
104
|
}
|
|
99
105
|
}
|
|
100
|
-
class ct extends
|
|
106
|
+
class ct extends J {
|
|
101
107
|
constructor() {
|
|
102
108
|
super(...arguments);
|
|
103
109
|
h(this, "uuid", "");
|
|
@@ -153,7 +159,7 @@ class ct extends T {
|
|
|
153
159
|
}
|
|
154
160
|
}
|
|
155
161
|
const F = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
156
|
-
class dt extends
|
|
162
|
+
class dt extends P {
|
|
157
163
|
constructor(t, e, i = {}) {
|
|
158
164
|
super(i);
|
|
159
165
|
h(this, "apiUrl");
|
|
@@ -176,7 +182,7 @@ class dt extends M {
|
|
|
176
182
|
fetchData(t = {}, e) {
|
|
177
183
|
return this.getHeaders().pipe(
|
|
178
184
|
m(
|
|
179
|
-
(i) =>
|
|
185
|
+
(i) => R(
|
|
180
186
|
this.apiUrl,
|
|
181
187
|
{
|
|
182
188
|
method: "POST",
|
|
@@ -194,13 +200,13 @@ class dt extends M {
|
|
|
194
200
|
), d(o)))
|
|
195
201
|
)
|
|
196
202
|
),
|
|
197
|
-
|
|
203
|
+
I((i) => this.errorHandler(i, e))
|
|
198
204
|
);
|
|
199
205
|
}
|
|
200
206
|
fetchCustomData(t = {}, e) {
|
|
201
207
|
return this.getHeaders().pipe(
|
|
202
208
|
m(
|
|
203
|
-
(i) =>
|
|
209
|
+
(i) => R(this.apiUrl, {
|
|
204
210
|
method: this.method,
|
|
205
211
|
headers: i,
|
|
206
212
|
body: this.method === "GET" ? null : JSON.stringify(t),
|
|
@@ -249,7 +255,7 @@ function W(s, r, t) {
|
|
|
249
255
|
n[a + g] = c[g];
|
|
250
256
|
return n;
|
|
251
257
|
}
|
|
252
|
-
return
|
|
258
|
+
return H(c);
|
|
253
259
|
}
|
|
254
260
|
try {
|
|
255
261
|
e.name = s;
|
|
@@ -269,7 +275,7 @@ function X(s, r, t, e) {
|
|
|
269
275
|
return r ^ t ^ e;
|
|
270
276
|
}
|
|
271
277
|
}
|
|
272
|
-
function
|
|
278
|
+
function y(s, r) {
|
|
273
279
|
return s << r | s >>> 32 - r;
|
|
274
280
|
}
|
|
275
281
|
function Z(s) {
|
|
@@ -295,18 +301,18 @@ function Z(s) {
|
|
|
295
301
|
for (let l = 0; l < 16; ++l)
|
|
296
302
|
a[l] = o[n][l];
|
|
297
303
|
for (let l = 16; l < 80; ++l)
|
|
298
|
-
a[l] =
|
|
299
|
-
let f = t[0], c = t[1], g = t[2], x = t[3],
|
|
304
|
+
a[l] = y(a[l - 3] ^ a[l - 8] ^ a[l - 14] ^ a[l - 16], 1);
|
|
305
|
+
let f = t[0], c = t[1], g = t[2], x = t[3], B = t[4];
|
|
300
306
|
for (let l = 0; l < 80; ++l) {
|
|
301
|
-
const
|
|
302
|
-
|
|
307
|
+
const U = Math.floor(l / 20), w = y(f, 5) + X(U, c, g, x) + B + r[U] + a[l] >>> 0;
|
|
308
|
+
B = x, x = g, g = y(c, 30) >>> 0, c = f, f = w;
|
|
303
309
|
}
|
|
304
|
-
t[0] = t[0] + f >>> 0, t[1] = t[1] + c >>> 0, t[2] = t[2] + g >>> 0, t[3] = t[3] + x >>> 0, t[4] = t[4] +
|
|
310
|
+
t[0] = t[0] + f >>> 0, t[1] = t[1] + c >>> 0, t[2] = t[2] + g >>> 0, t[3] = t[3] + x >>> 0, t[4] = t[4] + B >>> 0;
|
|
305
311
|
}
|
|
306
312
|
return [t[0] >> 24 & 255, t[0] >> 16 & 255, t[0] >> 8 & 255, t[0] & 255, t[1] >> 24 & 255, t[1] >> 16 & 255, t[1] >> 8 & 255, t[1] & 255, t[2] >> 24 & 255, t[2] >> 16 & 255, t[2] >> 8 & 255, t[2] & 255, t[3] >> 24 & 255, t[3] >> 16 & 255, t[3] >> 8 & 255, t[3] & 255, t[4] >> 24 & 255, t[4] >> 16 & 255, t[4] >> 8 & 255, t[4] & 255];
|
|
307
313
|
}
|
|
308
314
|
const Q = W("v5", 80, Z), N = Q;
|
|
309
|
-
class mt extends
|
|
315
|
+
class mt extends C {
|
|
310
316
|
constructor(t, e = "POST", i = {}) {
|
|
311
317
|
super();
|
|
312
318
|
h(this, "apiUrl");
|
|
@@ -328,7 +334,7 @@ class mt extends H {
|
|
|
328
334
|
const e = (/* @__PURE__ */ new Date()).toISOString(), i = N(e, N.URL), o = this.encode({ ...t }, i);
|
|
329
335
|
p.getInstance().setSubject(this.isLoadingEnabled);
|
|
330
336
|
const a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
331
|
-
return
|
|
337
|
+
return R(this.apiUrl, {
|
|
332
338
|
method: this.method,
|
|
333
339
|
headers: { ...this.headers, flow: a },
|
|
334
340
|
body: o,
|
|
@@ -338,7 +344,7 @@ class mt extends H {
|
|
|
338
344
|
m((f) => (this.logDebug(
|
|
339
345
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(t)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(f)}`
|
|
340
346
|
), d(f))),
|
|
341
|
-
|
|
347
|
+
I(this.errorHandler),
|
|
342
348
|
m((f) => (p.getInstance().setSubject(!1), d(f))),
|
|
343
349
|
b((f) => (p.getInstance().setSubject(!1), O.getInstance().setSubject(
|
|
344
350
|
new S().get(f, i)
|