mp-front-cli 0.0.103 → 0.0.105
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/core/utils/custom-cache.d.ts +1 -0
- package/dist/core/utils/custom-cache.d.ts.map +1 -1
- package/dist/{index-6ac9fcde.js → index-9490465f.js} +8 -0
- 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 +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-cache.es.js +15 -12
- package/dist/mp-front-cli-core.es.js +76 -62
- 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;AAywBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
|
|
@@ -53,6 +53,7 @@ export declare class CustomCache<T> extends CustomEncrypter {
|
|
|
53
53
|
simpleGet(key: string): Promise<string | null>;
|
|
54
54
|
simpleHGet(key: string, field: string): Promise<string | null>;
|
|
55
55
|
simpleHSet(key: string, field: string, value: string): Promise<number>;
|
|
56
|
+
simpleHGetAll(key: string): Promise<Record<string, string>>;
|
|
56
57
|
}
|
|
57
58
|
export {};
|
|
58
59
|
//# sourceMappingURL=custom-cache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-cache.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAIpD,oBAAY,YAAY;IACtB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;CACpB;AACD,UAAU,oBAAoB,CAAC,CAAC;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAA;IACP;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AAED,qBAAa,WAAW,CAAC,CAAC,CAAE,SAAQ,eAAe;IACjD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAc;IAEzC,OAAO,CAAC,WAAW;YAIL,aAAa;IAS3B,OAAO,CAAC,aAAa;IAKR,aAAa,CAAC,CAAC,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC;IAgBvB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK9C,aAAa,CAAC,EACzB,KAAK,EACL,MAAM,EACN,IAAI,EACJ,MAAM,EACN,SAAiB,EACjB,OAA8B,GAC/B,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAc/B,UAAU,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC;IAYjC,SAAS;IAIT,SAAS,CAAC,GAAG,EAAE,MAAM;IAIrB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAI7B,SAAS,CAAC,GAAG,EAAE,MAAM;IAKrB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAKrC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"custom-cache.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAIpD,oBAAY,YAAY;IACtB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;CACpB;AACD,UAAU,oBAAoB,CAAC,CAAC;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAA;IACP;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AAED,qBAAa,WAAW,CAAC,CAAC,CAAE,SAAQ,eAAe;IACjD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAc;IAEzC,OAAO,CAAC,WAAW;YAIL,aAAa;IAS3B,OAAO,CAAC,aAAa;IAKR,aAAa,CAAC,CAAC,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC;IAgBvB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK9C,aAAa,CAAC,EACzB,KAAK,EACL,MAAM,EACN,IAAI,EACJ,MAAM,EACN,SAAiB,EACjB,OAA8B,GAC/B,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAc/B,UAAU,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC;IAYjC,SAAS;IAIT,SAAS,CAAC,GAAG,EAAE,MAAM;IAIrB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAI7B,SAAS,CAAC,GAAG,EAAE,MAAM;IAKrB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAKrC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAIpD,aAAa,CAAC,GAAG,EAAE,MAAM;CAGjC"}
|
|
@@ -4,6 +4,10 @@ const e = {
|
|
|
4
4
|
title: "Cliente no aprobado",
|
|
5
5
|
message: "Pronto tendremos una nueva oportunidad para gestionar la aprobación de tu crédito Macropay. En 90 días podemos volver a intentar."
|
|
6
6
|
},
|
|
7
|
+
"SCORE-CLIENTREJECTED-02": {
|
|
8
|
+
title: "Por el momento no será posible continuar con tu solicitud porque ya has utilizado toda tu línea de crédito con nosotros.",
|
|
9
|
+
message: "¡Pronto tendremos buenas noticias para ti!"
|
|
10
|
+
},
|
|
7
11
|
"CALCULATOR-MAPPING-01": {
|
|
8
12
|
title: "Verifique si los nombres de los campos son correctos",
|
|
9
13
|
message: "Error al asignar la solicitud a la entidad o DTO"
|
|
@@ -565,6 +569,10 @@ const e = {
|
|
|
565
569
|
title: "Teléfono invalido",
|
|
566
570
|
message: "Ingrese un número valido."
|
|
567
571
|
},
|
|
572
|
+
"PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001": {
|
|
573
|
+
title: "Eliminar excepción de referencia",
|
|
574
|
+
message: "Ocurrió un error al eliminar la referencia."
|
|
575
|
+
},
|
|
568
576
|
//PAYMENTS
|
|
569
577
|
"SALES-SUMMARY-GENERIC-ERROR-001": {
|
|
570
578
|
title: "Ocurrió un error resumen de venta",
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6NhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -16,6 +16,10 @@ declare const translation: {
|
|
|
16
16
|
title: string;
|
|
17
17
|
message: string;
|
|
18
18
|
};
|
|
19
|
+
"PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001": {
|
|
20
|
+
title: string;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
19
23
|
"SALES-SUMMARY-GENERIC-ERROR-001": {
|
|
20
24
|
title: string;
|
|
21
25
|
message: string;
|
|
@@ -329,6 +333,10 @@ declare const translation: {
|
|
|
329
333
|
title: string;
|
|
330
334
|
message: string;
|
|
331
335
|
};
|
|
336
|
+
"SCORE-CLIENTREJECTED-02": {
|
|
337
|
+
title: string;
|
|
338
|
+
message: string;
|
|
339
|
+
};
|
|
332
340
|
"CALCULATOR-MAPPING-01": {
|
|
333
341
|
title: string;
|
|
334
342
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgQhB,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-9490465f.js";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
import "./mp-front-cli-encrypter.es.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var S = (n, r, t) => r in n ?
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var S = (n, r, t) => r in n ? y(n, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[r] = t;
|
|
3
3
|
var E = (n, r, t) => (S(n, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
4
|
import { CustomEncrypter as m } from "./mp-front-cli-encrypter.es.js";
|
|
5
|
-
import { C as
|
|
5
|
+
import { C as u } from "./custom-redis-bee66564.js";
|
|
6
6
|
import "node-jose";
|
|
7
7
|
import "crypto";
|
|
8
8
|
import "./mp-front-cli-encoder.es.js";
|
|
9
9
|
import "./mp-front-cli-logger.es.js";
|
|
10
10
|
import "ioredis";
|
|
11
11
|
const a = process.env.TIMEOUT_SESSION_MINUTES;
|
|
12
|
-
var
|
|
12
|
+
var R = /* @__PURE__ */ ((n) => (n.NOT_REFRESH = "NOT_REFRESH", n.REFRESH = "REFRESH", n))(R || {});
|
|
13
13
|
class O extends m {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
|
-
E(this, "initClient",
|
|
16
|
+
E(this, "initClient", u);
|
|
17
17
|
}
|
|
18
18
|
getRootNode(t) {
|
|
19
19
|
return this.initClient.get(t);
|
|
@@ -42,16 +42,16 @@ class O extends m {
|
|
|
42
42
|
idData: i,
|
|
43
43
|
body: e,
|
|
44
44
|
expire: s,
|
|
45
|
-
encrypted:
|
|
45
|
+
encrypted: l = !1,
|
|
46
46
|
refresh: c = "REFRESH"
|
|
47
47
|
/* REFRESH */
|
|
48
48
|
}) {
|
|
49
|
-
const o = `${t}:${this.generateSHA(i)}`,
|
|
50
|
-
if (
|
|
51
|
-
const
|
|
52
|
-
return this.setEntryPoint(o,
|
|
49
|
+
const o = `${t}:${this.generateSHA(i)}`, h = { expires_in: c === "REFRESH" ? s : 0, ...e };
|
|
50
|
+
if (l) {
|
|
51
|
+
const p = await this.encrypt(h);
|
|
52
|
+
return this.setEntryPoint(o, p, s), o;
|
|
53
53
|
}
|
|
54
|
-
return this.setEntryPoint(o,
|
|
54
|
+
return this.setEntryPoint(o, h, s), o;
|
|
55
55
|
}
|
|
56
56
|
async statusHost() {
|
|
57
57
|
return new Promise((t, i) => {
|
|
@@ -80,8 +80,11 @@ class O extends m {
|
|
|
80
80
|
simpleHSet(t, i, e) {
|
|
81
81
|
return this.initClient.hset(t, i, e);
|
|
82
82
|
}
|
|
83
|
+
simpleHGetAll(t) {
|
|
84
|
+
return this.initClient.hgetall(t);
|
|
85
|
+
}
|
|
83
86
|
}
|
|
84
87
|
export {
|
|
85
88
|
O as CustomCache,
|
|
86
|
-
|
|
89
|
+
R as RefreshState
|
|
87
90
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var y = (
|
|
3
|
-
var L = (
|
|
4
|
-
import { LoadingHandler as
|
|
5
|
-
import { RxSubjectManager as
|
|
2
|
+
var y = (t, E, e) => E in t ? f(t, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[E] = e;
|
|
3
|
+
var L = (t, E, e) => (y(t, typeof E != "symbol" ? E + "" : E, e), e);
|
|
4
|
+
import { LoadingHandler as U, MessageHandler as B } from "./mp-front-cli-utils-rxjs.es.js";
|
|
5
|
+
import { RxSubjectManager as Ie } from "./mp-front-cli-utils-rxjs.es.js";
|
|
6
6
|
import { f as n } from "./index-def0b487.js";
|
|
7
7
|
import { S as ge } from "./index-def0b487.js";
|
|
8
8
|
import v, { t as g } from "i18next";
|
|
9
|
-
import { t as Q } from "./index-
|
|
9
|
+
import { t as Q } from "./index-9490465f.js";
|
|
10
10
|
import { CustomLogger as w } from "./mp-front-cli-logger.es.js";
|
|
11
11
|
import { of as N, switchMap as O, forkJoin as M, catchError as c, EMPTY as d, filter as h } from "rxjs";
|
|
12
12
|
import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
|
|
@@ -397,6 +397,13 @@ const H = {
|
|
|
397
397
|
type: "modal",
|
|
398
398
|
level: "info"
|
|
399
399
|
},
|
|
400
|
+
"SCORE-CLIENTREJECTED-02": {
|
|
401
|
+
title: "errors.calculator.SCORE-CLIENTREJECTED-02.title",
|
|
402
|
+
message: "errors.calculator.SCORE-CLIENTREJECTED-02.message",
|
|
403
|
+
code: 310,
|
|
404
|
+
type: "modal",
|
|
405
|
+
level: "info"
|
|
406
|
+
},
|
|
400
407
|
"CALCULATOR-MAPPING-01": {
|
|
401
408
|
title: "errors.calculator.CALCULATOR-MAPPING-01.title",
|
|
402
409
|
message: "errors.calculator.CALCULATOR-MAPPING-01.message",
|
|
@@ -997,6 +1004,13 @@ const H = {
|
|
|
997
1004
|
type: "modal",
|
|
998
1005
|
level: "warning"
|
|
999
1006
|
},
|
|
1007
|
+
"PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001": {
|
|
1008
|
+
title: "errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.title",
|
|
1009
|
+
message: "errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.message",
|
|
1010
|
+
code: 400,
|
|
1011
|
+
type: "modal",
|
|
1012
|
+
level: "warning"
|
|
1013
|
+
},
|
|
1000
1014
|
//PAYMENTS
|
|
1001
1015
|
"SALES-SUMMARY-GENERIC-ERROR-001": {
|
|
1002
1016
|
title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
|
|
@@ -1014,19 +1028,19 @@ const H = {
|
|
|
1014
1028
|
},
|
|
1015
1029
|
...H
|
|
1016
1030
|
};
|
|
1017
|
-
class
|
|
1018
|
-
get(
|
|
1031
|
+
class C extends w {
|
|
1032
|
+
get(E = "default", e = "NOT_FOUND") {
|
|
1019
1033
|
var s, A;
|
|
1020
|
-
if (
|
|
1021
|
-
return this.logError(
|
|
1034
|
+
if (E instanceof Error)
|
|
1035
|
+
return this.logError(E.message), {
|
|
1022
1036
|
...m.internalError,
|
|
1023
1037
|
title: g(m.internalError.title),
|
|
1024
1038
|
message: g(m.internalError.message),
|
|
1025
1039
|
uuid: e
|
|
1026
1040
|
};
|
|
1027
|
-
const r = typeof
|
|
1041
|
+
const r = typeof E == "string" ? E : E.code ?? E.errorType;
|
|
1028
1042
|
this.logDebug("statusCode", r);
|
|
1029
|
-
const l = typeof
|
|
1043
|
+
const l = typeof E == "string" ? {} : { ...E };
|
|
1030
1044
|
return {
|
|
1031
1045
|
...m[r] ?? m.default,
|
|
1032
1046
|
title: g(
|
|
@@ -1052,7 +1066,7 @@ class Le extends V {
|
|
|
1052
1066
|
}
|
|
1053
1067
|
getSession() {
|
|
1054
1068
|
if (!this.session)
|
|
1055
|
-
throw new
|
|
1069
|
+
throw new C().get("SESSION_NOT_FOUND");
|
|
1056
1070
|
return this.session;
|
|
1057
1071
|
}
|
|
1058
1072
|
returnData(e, r, l) {
|
|
@@ -1060,7 +1074,7 @@ class Le extends V {
|
|
|
1060
1074
|
e.status(200).json(s);
|
|
1061
1075
|
}
|
|
1062
1076
|
returnError(e, r) {
|
|
1063
|
-
return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new
|
|
1077
|
+
return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new C().get(r, this.uuid));
|
|
1064
1078
|
}
|
|
1065
1079
|
get(e) {
|
|
1066
1080
|
return this.logDebug("get ApiMiddleware"), (r, l) => {
|
|
@@ -1106,7 +1120,7 @@ class Oe extends F {
|
|
|
1106
1120
|
}
|
|
1107
1121
|
errorHandler(e, r) {
|
|
1108
1122
|
if (e != null && e.errors)
|
|
1109
|
-
throw new
|
|
1123
|
+
throw new C().get(e.errors[0], r);
|
|
1110
1124
|
return !(e != null && e.errors);
|
|
1111
1125
|
}
|
|
1112
1126
|
formatParams(e) {
|
|
@@ -1136,7 +1150,7 @@ class Oe extends F {
|
|
|
1136
1150
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1137
1151
|
this.formatParams(e)
|
|
1138
1152
|
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
|
|
1139
|
-
), new
|
|
1153
|
+
), new C().get("default", r);
|
|
1140
1154
|
}),
|
|
1141
1155
|
O((s) => (this.logDebug(
|
|
1142
1156
|
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
@@ -1166,7 +1180,7 @@ class Oe extends F {
|
|
|
1166
1180
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1167
1181
|
this.formatParams(e)
|
|
1168
1182
|
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
|
|
1169
|
-
), new
|
|
1183
|
+
), new C().get("default", r);
|
|
1170
1184
|
}),
|
|
1171
1185
|
O((s) => (this.logDebug(
|
|
1172
1186
|
`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(
|
|
@@ -1181,31 +1195,31 @@ class Oe extends F {
|
|
|
1181
1195
|
}
|
|
1182
1196
|
}
|
|
1183
1197
|
const J = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
1184
|
-
function K(
|
|
1185
|
-
return typeof
|
|
1198
|
+
function K(t) {
|
|
1199
|
+
return typeof t == "string" && J.test(t);
|
|
1186
1200
|
}
|
|
1187
|
-
function $(
|
|
1188
|
-
if (!K(
|
|
1201
|
+
function $(t) {
|
|
1202
|
+
if (!K(t))
|
|
1189
1203
|
throw TypeError("Invalid UUID");
|
|
1190
|
-
let
|
|
1204
|
+
let E;
|
|
1191
1205
|
const e = new Uint8Array(16);
|
|
1192
|
-
return e[0] = (
|
|
1206
|
+
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;
|
|
1193
1207
|
}
|
|
1194
|
-
function X(
|
|
1195
|
-
|
|
1196
|
-
const
|
|
1197
|
-
for (let e = 0; e <
|
|
1198
|
-
|
|
1199
|
-
return
|
|
1208
|
+
function X(t) {
|
|
1209
|
+
t = unescape(encodeURIComponent(t));
|
|
1210
|
+
const E = [];
|
|
1211
|
+
for (let e = 0; e < t.length; ++e)
|
|
1212
|
+
E.push(t.charCodeAt(e));
|
|
1213
|
+
return E;
|
|
1200
1214
|
}
|
|
1201
1215
|
const b = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", W = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1202
|
-
function j(
|
|
1216
|
+
function j(t, E, e) {
|
|
1203
1217
|
function r(l, s, A, a) {
|
|
1204
1218
|
var o;
|
|
1205
1219
|
if (typeof l == "string" && (l = X(l)), typeof s == "string" && (s = $(s)), ((o = s) === null || o === void 0 ? void 0 : o.length) !== 16)
|
|
1206
1220
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
1207
1221
|
let T = new Uint8Array(16 + l.length);
|
|
1208
|
-
if (T.set(s), T.set(l, s.length), T = e(T), T[6] = T[6] & 15 |
|
|
1222
|
+
if (T.set(s), T.set(l, s.length), T = e(T), T[6] = T[6] & 15 | E, T[8] = T[8] & 63 | 128, A) {
|
|
1209
1223
|
a = a || 0;
|
|
1210
1224
|
for (let i = 0; i < 16; ++i)
|
|
1211
1225
|
A[a + i] = T[i];
|
|
@@ -1214,56 +1228,56 @@ function j(E, t, e) {
|
|
|
1214
1228
|
return Y(T);
|
|
1215
1229
|
}
|
|
1216
1230
|
try {
|
|
1217
|
-
r.name =
|
|
1231
|
+
r.name = t;
|
|
1218
1232
|
} catch {
|
|
1219
1233
|
}
|
|
1220
1234
|
return r.DNS = b, r.URL = W, r;
|
|
1221
1235
|
}
|
|
1222
|
-
function Z(
|
|
1223
|
-
switch (
|
|
1236
|
+
function Z(t, E, e, r) {
|
|
1237
|
+
switch (t) {
|
|
1224
1238
|
case 0:
|
|
1225
|
-
return
|
|
1239
|
+
return E & e ^ ~E & r;
|
|
1226
1240
|
case 1:
|
|
1227
|
-
return
|
|
1241
|
+
return E ^ e ^ r;
|
|
1228
1242
|
case 2:
|
|
1229
|
-
return
|
|
1243
|
+
return E & e ^ E & r ^ e & r;
|
|
1230
1244
|
case 3:
|
|
1231
|
-
return
|
|
1245
|
+
return E ^ e ^ r;
|
|
1232
1246
|
}
|
|
1233
1247
|
}
|
|
1234
|
-
function D(
|
|
1235
|
-
return
|
|
1248
|
+
function D(t, E) {
|
|
1249
|
+
return t << E | t >>> 32 - E;
|
|
1236
1250
|
}
|
|
1237
|
-
function k(
|
|
1238
|
-
const
|
|
1239
|
-
if (typeof
|
|
1240
|
-
const A = unescape(encodeURIComponent(
|
|
1241
|
-
|
|
1251
|
+
function k(t) {
|
|
1252
|
+
const E = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
1253
|
+
if (typeof t == "string") {
|
|
1254
|
+
const A = unescape(encodeURIComponent(t));
|
|
1255
|
+
t = [];
|
|
1242
1256
|
for (let a = 0; a < A.length; ++a)
|
|
1243
|
-
|
|
1257
|
+
t.push(A.charCodeAt(a));
|
|
1244
1258
|
} else
|
|
1245
|
-
Array.isArray(
|
|
1246
|
-
|
|
1247
|
-
const r =
|
|
1259
|
+
Array.isArray(t) || (t = Array.prototype.slice.call(t));
|
|
1260
|
+
t.push(128);
|
|
1261
|
+
const r = t.length / 4 + 2, l = Math.ceil(r / 16), s = new Array(l);
|
|
1248
1262
|
for (let A = 0; A < l; ++A) {
|
|
1249
1263
|
const a = new Uint32Array(16);
|
|
1250
1264
|
for (let o = 0; o < 16; ++o)
|
|
1251
|
-
a[o] =
|
|
1265
|
+
a[o] = t[A * 64 + o * 4] << 24 | t[A * 64 + o * 4 + 1] << 16 | t[A * 64 + o * 4 + 2] << 8 | t[A * 64 + o * 4 + 3];
|
|
1252
1266
|
s[A] = a;
|
|
1253
1267
|
}
|
|
1254
|
-
s[l - 1][14] = (
|
|
1268
|
+
s[l - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), s[l - 1][14] = Math.floor(s[l - 1][14]), s[l - 1][15] = (t.length - 1) * 8 & 4294967295;
|
|
1255
1269
|
for (let A = 0; A < l; ++A) {
|
|
1256
1270
|
const a = new Uint32Array(80);
|
|
1257
1271
|
for (let R = 0; R < 16; ++R)
|
|
1258
1272
|
a[R] = s[A][R];
|
|
1259
1273
|
for (let R = 16; R < 80; ++R)
|
|
1260
1274
|
a[R] = D(a[R - 3] ^ a[R - 8] ^ a[R - 14] ^ a[R - 16], 1);
|
|
1261
|
-
let o = e[0], T = e[1], i = e[2],
|
|
1275
|
+
let o = e[0], T = e[1], i = e[2], I = e[3], S = e[4];
|
|
1262
1276
|
for (let R = 0; R < 80; ++R) {
|
|
1263
|
-
const P = Math.floor(R / 20), u = D(o, 5) + Z(P, T, i,
|
|
1264
|
-
S =
|
|
1277
|
+
const P = Math.floor(R / 20), u = D(o, 5) + Z(P, T, i, I) + S + E[P] + a[R] >>> 0;
|
|
1278
|
+
S = I, I = i, i = D(T, 30) >>> 0, T = o, o = u;
|
|
1265
1279
|
}
|
|
1266
|
-
e[0] = e[0] + o >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] +
|
|
1280
|
+
e[0] = e[0] + o >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + I >>> 0, e[4] = e[4] + S >>> 0;
|
|
1267
1281
|
}
|
|
1268
1282
|
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];
|
|
1269
1283
|
}
|
|
@@ -1289,7 +1303,7 @@ class ie extends x {
|
|
|
1289
1303
|
}
|
|
1290
1304
|
fetchData(e = {}) {
|
|
1291
1305
|
const r = (/* @__PURE__ */ new Date()).toISOString(), l = p(r, p.URL), s = this.encode({ ...e }, l);
|
|
1292
|
-
|
|
1306
|
+
U.getInstance().setSubject(this.isLoadingEnabled);
|
|
1293
1307
|
const a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
1294
1308
|
return n(this.apiUrl, {
|
|
1295
1309
|
method: this.method,
|
|
@@ -1300,25 +1314,25 @@ class ie extends x {
|
|
|
1300
1314
|
O((o) => N(this.decode(o))),
|
|
1301
1315
|
O((o) => o.code && (o.type === "modal" || o.type === "message") ? (this.logError(
|
|
1302
1316
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1303
|
-
),
|
|
1304
|
-
O((o) => (
|
|
1317
|
+
), U.getInstance().setSubject(!1), B.getInstance().setSubject(o), this.errorResponse ? N(this.errorResponse) : d) : N(o)),
|
|
1318
|
+
O((o) => (U.getInstance().setSubject(!1), this.logDebug(
|
|
1305
1319
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1306
1320
|
), N(o))),
|
|
1307
1321
|
c((o) => (this.logError(
|
|
1308
1322
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1309
|
-
),
|
|
1310
|
-
new
|
|
1323
|
+
), U.getInstance().setSubject(!1), B.getInstance().setSubject(
|
|
1324
|
+
new C().get(o, l)
|
|
1311
1325
|
), this.errorResponse ? N(this.errorResponse) : d))
|
|
1312
1326
|
);
|
|
1313
1327
|
}
|
|
1314
1328
|
}
|
|
1315
1329
|
export {
|
|
1316
1330
|
Le as ApiMiddleware,
|
|
1317
|
-
|
|
1331
|
+
C as ErrorCatalog,
|
|
1318
1332
|
Oe as FetchServiceBE,
|
|
1319
1333
|
ie as FetchServiceFE,
|
|
1320
|
-
|
|
1334
|
+
U as LoadingHandler,
|
|
1321
1335
|
B as MessageHandler,
|
|
1322
|
-
|
|
1336
|
+
Ie as RxSubjectManager,
|
|
1323
1337
|
ge as ServiceToken
|
|
1324
1338
|
};
|