mp-front-cli 0.0.107 → 0.0.109
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/enrollment/error-catalog-enrollment.d.ts.map +1 -1
- package/dist/{index-58ea5a82.js → index-45a42ab0.js} +12 -0
- package/dist/lang/common/errors/enrollment/{en_MX → es_MX}/index.d.ts +12 -0
- package/dist/lang/common/errors/enrollment/{en_MX → es_MX}/index.d.ts.map +1 -1
- package/dist/lang/common/errors/enrollment/index.d.ts +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 +36 -15
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-catalog-enrollment.d.ts","sourceRoot":"","sources":["../../../../src/core/errors/enrollment/error-catalog-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,eAAO,MAAM,sBAAsB,EAAE;IACnC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"error-catalog-enrollment.d.ts","sourceRoot":"","sources":["../../../../src/core/errors/enrollment/error-catalog-enrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,eAAO,MAAM,sBAAsB,EAAE;IACnC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CA0PnC,CAAA"}
|
|
@@ -339,6 +339,18 @@ const e = {
|
|
|
339
339
|
"ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031": {
|
|
340
340
|
title: "Autenticación invalida Trustonic",
|
|
341
341
|
message: "Por favor asegúrese de tener permisos para acceder a este recurso."
|
|
342
|
+
},
|
|
343
|
+
"ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035": {
|
|
344
|
+
title: "Contacta con el equipo de soporte",
|
|
345
|
+
message: "Por favor comunícate con mesa de ayuda, ID:ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035"
|
|
346
|
+
},
|
|
347
|
+
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036": {
|
|
348
|
+
title: "Contacta con el equipo de soporte",
|
|
349
|
+
message: "Por favor comunícate con mesa de ayuda, ID:ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036"
|
|
350
|
+
},
|
|
351
|
+
"ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037": {
|
|
352
|
+
title: "Contacta con el equipo de soporte",
|
|
353
|
+
message: "Por favor comunícate con mesa de ayuda, ID:ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037"
|
|
342
354
|
}
|
|
343
355
|
}
|
|
344
356
|
}, a = {
|
|
@@ -128,6 +128,18 @@ declare const translation: {
|
|
|
128
128
|
title: string;
|
|
129
129
|
message: string;
|
|
130
130
|
};
|
|
131
|
+
"ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035": {
|
|
132
|
+
title: string;
|
|
133
|
+
message: string;
|
|
134
|
+
};
|
|
135
|
+
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036": {
|
|
136
|
+
title: string;
|
|
137
|
+
message: string;
|
|
138
|
+
};
|
|
139
|
+
"ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037": {
|
|
140
|
+
title: string;
|
|
141
|
+
message: string;
|
|
142
|
+
};
|
|
131
143
|
};
|
|
132
144
|
};
|
|
133
145
|
export default translation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiKhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -160,6 +160,18 @@ declare const translation: {
|
|
|
160
160
|
title: string;
|
|
161
161
|
message: string;
|
|
162
162
|
};
|
|
163
|
+
"ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035": {
|
|
164
|
+
title: string;
|
|
165
|
+
message: string;
|
|
166
|
+
};
|
|
167
|
+
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036": {
|
|
168
|
+
title: string;
|
|
169
|
+
message: string;
|
|
170
|
+
};
|
|
171
|
+
"ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037": {
|
|
172
|
+
title: string;
|
|
173
|
+
message: string;
|
|
174
|
+
};
|
|
163
175
|
"JOURNEY-INVALIDATEDATA-01": {
|
|
164
176
|
title: string;
|
|
165
177
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqQhB,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-45a42ab0.js";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
import "./mp-front-cli-encrypter.es.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var y = (t, E, e) => E in t ? f(t, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[E] = e;
|
|
3
3
|
var L = (t, E, e) => (y(t, typeof E != "symbol" ? E + "" : E, e), e);
|
|
4
|
-
import { LoadingHandler as U, MessageHandler as
|
|
4
|
+
import { LoadingHandler as U, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
|
|
5
5
|
import { RxSubjectManager as me } 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-
|
|
10
|
-
import { CustomLogger as
|
|
11
|
-
import { of as T, switchMap as O, forkJoin as
|
|
12
|
-
import { CustomEncrypter as
|
|
13
|
-
import { CustomHeader as
|
|
9
|
+
import { t as Q } from "./index-45a42ab0.js";
|
|
10
|
+
import { CustomLogger as V } from "./mp-front-cli-logger.es.js";
|
|
11
|
+
import { of as T, switchMap as O, forkJoin as B, catchError as S, EMPTY as d, filter as w } from "rxjs";
|
|
12
|
+
import { CustomEncrypter as F } from "./mp-front-cli-encrypter.es.js";
|
|
13
|
+
import { CustomHeader as h } 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 Y } from "./stringify-788d71a0.js";
|
|
16
16
|
import "node-jose";
|
|
@@ -259,6 +259,27 @@ const G = {
|
|
|
259
259
|
message: "errors.ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031.message",
|
|
260
260
|
title: "errors.ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031.title",
|
|
261
261
|
level: "error"
|
|
262
|
+
},
|
|
263
|
+
"ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035": {
|
|
264
|
+
code: 400,
|
|
265
|
+
type: "modal",
|
|
266
|
+
message: "errors.ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035.message",
|
|
267
|
+
title: "errors.ENROLLMENT-IMEIFOUNDINSAPINVENTORY-0035.title",
|
|
268
|
+
level: "error"
|
|
269
|
+
},
|
|
270
|
+
"ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036": {
|
|
271
|
+
code: 400,
|
|
272
|
+
type: "modal",
|
|
273
|
+
message: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036.message",
|
|
274
|
+
title: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0036.title",
|
|
275
|
+
level: "error"
|
|
276
|
+
},
|
|
277
|
+
"ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037": {
|
|
278
|
+
code: 400,
|
|
279
|
+
type: "modal",
|
|
280
|
+
message: "errors.ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037.message",
|
|
281
|
+
title: "errors.ENROLLMENT-MAXIMUMIMEIUSAGEREACHED-0037.title",
|
|
282
|
+
level: "error"
|
|
262
283
|
}
|
|
263
284
|
}, I = {
|
|
264
285
|
"MP-001": {
|
|
@@ -1035,7 +1056,7 @@ const G = {
|
|
|
1035
1056
|
},
|
|
1036
1057
|
...G
|
|
1037
1058
|
};
|
|
1038
|
-
class C extends
|
|
1059
|
+
class C extends V {
|
|
1039
1060
|
get(E = "default", e = "NOT_FOUND") {
|
|
1040
1061
|
var s, A;
|
|
1041
1062
|
if (E instanceof Error)
|
|
@@ -1062,7 +1083,7 @@ class C extends w {
|
|
|
1062
1083
|
};
|
|
1063
1084
|
}
|
|
1064
1085
|
}
|
|
1065
|
-
class Le extends
|
|
1086
|
+
class Le extends F {
|
|
1066
1087
|
constructor() {
|
|
1067
1088
|
super(...arguments);
|
|
1068
1089
|
L(this, "uuid", "");
|
|
@@ -1088,13 +1109,13 @@ class Le extends h {
|
|
|
1088
1109
|
var s;
|
|
1089
1110
|
this.logDebug("return ApiMiddleware"), this.uuid = (s = r == null ? void 0 : r.body) == null ? void 0 : s.uuid, T(r).pipe(
|
|
1090
1111
|
O(
|
|
1091
|
-
(A) =>
|
|
1112
|
+
(A) => B({
|
|
1092
1113
|
params: T(this.decode(A.body)),
|
|
1093
1114
|
headers: T(A.headers)
|
|
1094
1115
|
})
|
|
1095
1116
|
),
|
|
1096
1117
|
O(
|
|
1097
|
-
({ params: A, headers: a }) =>
|
|
1118
|
+
({ params: A, headers: a }) => B({
|
|
1098
1119
|
response: e(A, this.uuid, a),
|
|
1099
1120
|
headers: T(a),
|
|
1100
1121
|
params: T(A)
|
|
@@ -1118,7 +1139,7 @@ class Le extends h {
|
|
|
1118
1139
|
}
|
|
1119
1140
|
}
|
|
1120
1141
|
const _ = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
1121
|
-
class Oe extends
|
|
1142
|
+
class Oe extends h {
|
|
1122
1143
|
constructor(e, r, l = {}) {
|
|
1123
1144
|
super(l);
|
|
1124
1145
|
L(this, "apiUrl");
|
|
@@ -1168,7 +1189,7 @@ class Oe extends F {
|
|
|
1168
1189
|
), T(s)))
|
|
1169
1190
|
)
|
|
1170
1191
|
),
|
|
1171
|
-
|
|
1192
|
+
w((l) => this.errorHandler(l, r))
|
|
1172
1193
|
);
|
|
1173
1194
|
}
|
|
1174
1195
|
fetchCustomData(e = {}, r) {
|
|
@@ -1321,13 +1342,13 @@ class ie extends x {
|
|
|
1321
1342
|
O((o) => T(this.decode(o))),
|
|
1322
1343
|
O((o) => o.code && (o.type === "modal" || o.type === "message") ? (this.logError(
|
|
1323
1344
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1324
|
-
), U.getInstance().setSubject(!1),
|
|
1345
|
+
), U.getInstance().setSubject(!1), M.getInstance().setSubject(o), this.errorResponse ? T(this.errorResponse) : d) : T(o)),
|
|
1325
1346
|
O((o) => (U.getInstance().setSubject(!1), this.logDebug(
|
|
1326
1347
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1327
1348
|
), T(o))),
|
|
1328
1349
|
S((o) => (this.logError(
|
|
1329
1350
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
|
|
1330
|
-
), U.getInstance().setSubject(!1),
|
|
1351
|
+
), U.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1331
1352
|
new C().get(o, l)
|
|
1332
1353
|
), this.errorResponse ? T(this.errorResponse) : d))
|
|
1333
1354
|
);
|
|
@@ -1339,7 +1360,7 @@ export {
|
|
|
1339
1360
|
Oe as FetchServiceBE,
|
|
1340
1361
|
ie as FetchServiceFE,
|
|
1341
1362
|
U as LoadingHandler,
|
|
1342
|
-
|
|
1363
|
+
M as MessageHandler,
|
|
1343
1364
|
me as RxSubjectManager,
|
|
1344
1365
|
ge as ServiceToken
|
|
1345
1366
|
};
|