mp-front-cli 0.0.116 → 0.0.117
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/mp-front-cli-core.es.js +30 -30
- package/package.json +1 -1
|
@@ -8,9 +8,9 @@ import { S as De } from "./index-def0b487.js";
|
|
|
8
8
|
import v, { t as U } from "i18next";
|
|
9
9
|
import { t as w } from "./index-2423783f.js";
|
|
10
10
|
import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
|
|
11
|
-
import { of as T, switchMap as L, forkJoin as B, catchError as n, EMPTY as
|
|
12
|
-
import { CustomEncrypter as
|
|
13
|
-
import { CustomHeader as
|
|
11
|
+
import { of as T, switchMap as L, forkJoin as B, catchError as n, EMPTY as d, filter as h } from "rxjs";
|
|
12
|
+
import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
|
|
13
|
+
import { CustomHeader as Q } from "./mp-front-cli-header.es.js";
|
|
14
14
|
import { CustomEncoder as x } from "./mp-front-cli-encoder.es.js";
|
|
15
15
|
import { u as G } from "./stringify-788d71a0.js";
|
|
16
16
|
import "node-jose";
|
|
@@ -285,57 +285,57 @@ const H = {
|
|
|
285
285
|
"SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
|
|
286
286
|
code: 400,
|
|
287
287
|
type: "modal",
|
|
288
|
-
message: "errors.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.message",
|
|
289
|
-
title: "errors.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.title",
|
|
288
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.message",
|
|
289
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.title",
|
|
290
290
|
level: "error"
|
|
291
291
|
},
|
|
292
292
|
"SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01": {
|
|
293
293
|
code: 400,
|
|
294
294
|
type: "modal",
|
|
295
|
-
message: "errors.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.message",
|
|
296
|
-
title: "errors.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.title",
|
|
295
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.message",
|
|
296
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.title",
|
|
297
297
|
level: "error"
|
|
298
298
|
},
|
|
299
299
|
"SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01": {
|
|
300
300
|
code: 400,
|
|
301
301
|
type: "modal",
|
|
302
|
-
message: "errors.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.message",
|
|
303
|
-
title: "errors.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.title",
|
|
302
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.message",
|
|
303
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.title",
|
|
304
304
|
level: "error"
|
|
305
305
|
},
|
|
306
306
|
"SKIPFINGERPRINT-UNEXCEPTED-ERROR-01": {
|
|
307
307
|
code: 400,
|
|
308
308
|
type: "modal",
|
|
309
|
-
message: "errors.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.message",
|
|
310
|
-
title: "errors.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.title",
|
|
309
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.message",
|
|
310
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.title",
|
|
311
311
|
level: "error"
|
|
312
312
|
},
|
|
313
313
|
"SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02": {
|
|
314
314
|
code: 400,
|
|
315
315
|
type: "modal",
|
|
316
|
-
message: "errors.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.message",
|
|
317
|
-
title: "errors.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.title",
|
|
316
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.message",
|
|
317
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.title",
|
|
318
318
|
level: "error"
|
|
319
319
|
},
|
|
320
320
|
"SKIPFINGERPRINT-CLIENT-NOT-FOUND": {
|
|
321
321
|
code: 400,
|
|
322
322
|
type: "modal",
|
|
323
|
-
message: "errors.SKIPFINGERPRINT-CLIENT-NOT-FOUND.message",
|
|
324
|
-
title: "errors.SKIPFINGERPRINT-CLIENT-NOT-FOUND.title",
|
|
323
|
+
message: "errors.helpdesk.SKIPFINGERPRINT-CLIENT-NOT-FOUND.message",
|
|
324
|
+
title: "errors.helpdesk.SKIPFINGERPRINT-CLIENT-NOT-FOUND.title",
|
|
325
325
|
level: "error"
|
|
326
326
|
},
|
|
327
327
|
"DUPLICATE-KEY-DATABASE-POSTGRES": {
|
|
328
328
|
code: 400,
|
|
329
329
|
type: "modal",
|
|
330
|
-
message: "errors.DUPLICATE-KEY-DATABASE-POSTGRES.message",
|
|
331
|
-
title: "errors.DUPLICATE-KEY-DATABASE-POSTGRES.title",
|
|
330
|
+
message: "errors.helpdesk.DUPLICATE-KEY-DATABASE-POSTGRES.message",
|
|
331
|
+
title: "errors.helpdesk.DUPLICATE-KEY-DATABASE-POSTGRES.title",
|
|
332
332
|
level: "error"
|
|
333
333
|
},
|
|
334
334
|
"UNEXCEPTED-ERROR": {
|
|
335
335
|
code: 400,
|
|
336
336
|
type: "modal",
|
|
337
|
-
message: "errors.UNEXCEPTED-ERROR.message",
|
|
338
|
-
title: "errors.UNEXCEPTED-ERROR.title",
|
|
337
|
+
message: "errors.helpdesk.UNEXCEPTED-ERROR.message",
|
|
338
|
+
title: "errors.helpdesk.UNEXCEPTED-ERROR.title",
|
|
339
339
|
level: "error"
|
|
340
340
|
}
|
|
341
341
|
}, J = {
|
|
@@ -1174,7 +1174,7 @@ class C extends F {
|
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
|
-
class Ie extends
|
|
1177
|
+
class Ie extends V {
|
|
1178
1178
|
constructor() {
|
|
1179
1179
|
super(...arguments);
|
|
1180
1180
|
O(this, "uuid", "");
|
|
@@ -1219,7 +1219,7 @@ class Ie extends Q {
|
|
|
1219
1219
|
var R;
|
|
1220
1220
|
return this.logError(
|
|
1221
1221
|
`ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(R = r == null ? void 0 : r.body) == null ? void 0 : R.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(A)}`
|
|
1222
|
-
), this.returnError(l, A),
|
|
1222
|
+
), this.returnError(l, A), d;
|
|
1223
1223
|
})
|
|
1224
1224
|
).subscribe({
|
|
1225
1225
|
next: (A) => {
|
|
@@ -1230,7 +1230,7 @@ class Ie extends Q {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
const X = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
1233
|
-
class Ce extends
|
|
1233
|
+
class Ce extends Q {
|
|
1234
1234
|
constructor(e, r, l = {}) {
|
|
1235
1235
|
super(l);
|
|
1236
1236
|
O(this, "apiUrl");
|
|
@@ -1280,7 +1280,7 @@ class Ce extends h {
|
|
|
1280
1280
|
), T(s)))
|
|
1281
1281
|
)
|
|
1282
1282
|
),
|
|
1283
|
-
|
|
1283
|
+
h((l) => this.errorHandler(l, r))
|
|
1284
1284
|
);
|
|
1285
1285
|
}
|
|
1286
1286
|
fetchCustomData(e = {}, r) {
|
|
@@ -1324,18 +1324,18 @@ function W(t) {
|
|
|
1324
1324
|
const e = new Uint8Array(16);
|
|
1325
1325
|
return e[0] = (E = parseInt(t.slice(0, 8), 16)) >>> 24, e[1] = E >>> 16 & 255, e[2] = E >>> 8 & 255, e[3] = E & 255, e[4] = (E = parseInt(t.slice(9, 13), 16)) >>> 8, e[5] = E & 255, e[6] = (E = parseInt(t.slice(14, 18), 16)) >>> 8, e[7] = E & 255, e[8] = (E = parseInt(t.slice(19, 23), 16)) >>> 8, e[9] = E & 255, e[10] = (E = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = E / 4294967296 & 255, e[12] = E >>> 24 & 255, e[13] = E >>> 16 & 255, e[14] = E >>> 8 & 255, e[15] = E & 255, e;
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function k(t) {
|
|
1328
1328
|
t = unescape(encodeURIComponent(t));
|
|
1329
1329
|
const E = [];
|
|
1330
1330
|
for (let e = 0; e < t.length; ++e)
|
|
1331
1331
|
E.push(t.charCodeAt(e));
|
|
1332
1332
|
return E;
|
|
1333
1333
|
}
|
|
1334
|
-
const
|
|
1334
|
+
const j = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Z = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1335
1335
|
function z(t, E, e) {
|
|
1336
1336
|
function r(l, s, A, R) {
|
|
1337
1337
|
var a;
|
|
1338
|
-
if (typeof l == "string" && (l =
|
|
1338
|
+
if (typeof l == "string" && (l = k(l)), typeof s == "string" && (s = W(s)), ((a = s) === null || a === void 0 ? void 0 : a.length) !== 16)
|
|
1339
1339
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
1340
1340
|
let N = new Uint8Array(16 + l.length);
|
|
1341
1341
|
if (N.set(s), N.set(l, s.length), N = e(N), N[6] = N[6] & 15 | E, N[8] = N[8] & 63 | 128, A) {
|
|
@@ -1350,7 +1350,7 @@ function z(t, E, e) {
|
|
|
1350
1350
|
r.name = t;
|
|
1351
1351
|
} catch {
|
|
1352
1352
|
}
|
|
1353
|
-
return r.DNS =
|
|
1353
|
+
return r.DNS = j, r.URL = Z, r;
|
|
1354
1354
|
}
|
|
1355
1355
|
function q(t, E, e, r) {
|
|
1356
1356
|
switch (t) {
|
|
@@ -1393,7 +1393,7 @@ function ee(t) {
|
|
|
1393
1393
|
R[o] = D(R[o - 3] ^ R[o - 8] ^ R[o - 14] ^ R[o - 16], 1);
|
|
1394
1394
|
let a = e[0], N = e[1], i = e[2], m = e[3], S = e[4];
|
|
1395
1395
|
for (let o = 0; o < 80; ++o) {
|
|
1396
|
-
const
|
|
1396
|
+
const P = Math.floor(o / 20), y = D(a, 5) + q(P, N, i, m) + S + E[P] + R[o] >>> 0;
|
|
1397
1397
|
S = m, m = i, i = D(N, 30) >>> 0, N = a, a = y;
|
|
1398
1398
|
}
|
|
1399
1399
|
e[0] = e[0] + a >>> 0, e[1] = e[1] + N >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + S >>> 0;
|
|
@@ -1433,7 +1433,7 @@ class me extends x {
|
|
|
1433
1433
|
L((a) => T(this.decode(a))),
|
|
1434
1434
|
L((a) => a.code && (a.type === "modal" || a.type === "message") ? (this.logError(
|
|
1435
1435
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1436
|
-
), g.getInstance().setSubject(!1), M.getInstance().setSubject(a), this.errorResponse ? T(this.errorResponse) :
|
|
1436
|
+
), g.getInstance().setSubject(!1), M.getInstance().setSubject(a), this.errorResponse ? T(this.errorResponse) : d) : T(a)),
|
|
1437
1437
|
L((a) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1438
1438
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1439
1439
|
), T(a))),
|
|
@@ -1441,7 +1441,7 @@ class me extends x {
|
|
|
1441
1441
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(a)}`
|
|
1442
1442
|
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1443
1443
|
new C().get(a, l)
|
|
1444
|
-
), this.errorResponse ? T(this.errorResponse) :
|
|
1444
|
+
), this.errorResponse ? T(this.errorResponse) : d))
|
|
1445
1445
|
);
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|