mp-front-cli 2.0.1-next-0 → 2.1.0-next-5

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.
Files changed (31) hide show
  1. package/dist/core/errors/error-catalog.d.ts +5 -2
  2. package/dist/core/errors/error-catalog.d.ts.map +1 -1
  3. package/dist/core/interfaces/api-response.d.ts +6 -0
  4. package/dist/core/interfaces/api-response.d.ts.map +1 -1
  5. package/dist/core/interfaces/index.d.ts +1 -1
  6. package/dist/core/interfaces/index.d.ts.map +1 -1
  7. package/dist/core/utils/api-request/fetch-service-parent-be.d.ts +4 -4
  8. package/dist/core/utils/api-request/fetch-service-parent-be.d.ts.map +1 -1
  9. package/dist/fetch-service-parent-be-B9aQqRUg.js +1365 -0
  10. package/dist/{i18n-1X2In6k5.js → index-B_86KXmg.js} +5 -226
  11. package/dist/lang/common/errors/es_MX/index.d.ts +52 -248
  12. package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -1
  13. package/dist/lang/i18n.d.ts +2 -2
  14. package/dist/lang/i18n.d.ts.map +1 -1
  15. package/dist/lang/index.d.ts +0 -1
  16. package/dist/lang/index.d.ts.map +1 -1
  17. package/dist/mp-front-cli-all.es.js +1 -1
  18. package/dist/mp-front-cli-core.es.js +1 -1
  19. package/dist/mp-front-cli-locale.es.js +1 -3
  20. package/package.json +5 -2
  21. package/dist/core/errors/enrollment/error-catalog-enrollment.d.ts +0 -5
  22. package/dist/core/errors/enrollment/error-catalog-enrollment.d.ts.map +0 -1
  23. package/dist/core/errors/message-error.d.ts +0 -16
  24. package/dist/core/errors/message-error.d.ts.map +0 -1
  25. package/dist/fetch-service-parent-be-BIP14Z1m.js +0 -452
  26. package/dist/lang/common/errors/enrollment/en_EN/index.d.ts +0 -5
  27. package/dist/lang/common/errors/enrollment/en_EN/index.d.ts.map +0 -1
  28. package/dist/lang/common/errors/enrollment/es_MX/index.d.ts +0 -202
  29. package/dist/lang/common/errors/enrollment/es_MX/index.d.ts.map +0 -1
  30. package/dist/lang/common/errors/enrollment/index.d.ts +0 -3
  31. package/dist/lang/common/errors/enrollment/index.d.ts.map +0 -1
@@ -1,16 +0,0 @@
1
- import { ApiError } from '../interfaces/api-response';
2
- import { IMessage } from '../interfaces/message';
3
- import { CustomLogger } from '../utils/custom-logger';
4
- /**
5
- * clase para manejar los errores de la aplicación
6
- *
7
- * @export
8
- * @class MessageErrorBFF
9
- * @extends {Error}
10
- */
11
- export declare class MessageErrorBFF extends CustomLogger {
12
- private messageError;
13
- constructor(error?: string | Error | ApiError);
14
- get(): IMessage;
15
- }
16
- //# sourceMappingURL=message-error.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-error.d.ts","sourceRoot":"","sources":["../../../src/core/errors/message-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAGrD;;;;;;GAMG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,CAAC,YAAY,CAAU;gBAElB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ;IAO7C,GAAG;CAGJ"}
@@ -1,452 +0,0 @@
1
- var b = Object.defineProperty;
2
- var I = (i, o, t) => o in i ? b(i, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[o] = t;
3
- var c = (i, o, t) => I(i, typeof o != "symbol" ? o + "" : o, t);
4
- import { of as g, switchMap as x, forkJoin as U, catchError as S, EMPTY as N, filter as A } from "rxjs";
5
- import { CustomEncrypter as L } from "./mp-front-cli-encrypter.es.js";
6
- import { CustomHeader as J } from "./mp-front-cli-header.es.js";
7
- import w from "querystring";
8
- import { f as E } from "./service-token-DceocCHP.js";
9
- import { L as u, M as $ } from "./loading-handler-Br21zGTA.js";
10
- import { CustomEncoder as H } from "./mp-front-cli-encoder.es.js";
11
- import { u as C } from "./stringify-93tp0umt.js";
12
- import "./i18n-1X2In6k5.js";
13
- import { t as O } from "i18next";
14
- import { CustomLogger as T } from "./mp-front-cli-logger.es.js";
15
- const v = {
16
- UNAUTHORIZED: {
17
- level: "warning",
18
- type: "modal",
19
- message: "errors.UnAuthorized.message",
20
- title: "errors.UnAuthorized.title",
21
- code: 310
22
- },
23
- "ERR-GENERAL-01": {
24
- level: "warning",
25
- type: "modal",
26
- message: "errors.ERR-GENERAL-01.message",
27
- title: "errors.ERR-GENERAL-01.title",
28
- code: 400
29
- },
30
- internalError: {
31
- level: "warning",
32
- type: "modal",
33
- message: "errors.internalError.message",
34
- title: "errors.internalError.title",
35
- code: 420
36
- },
37
- default: {
38
- code: 420,
39
- type: "modal",
40
- message: "errors.default.message",
41
- title: "errors.default.title",
42
- level: "warning"
43
- }
44
- };
45
- class B extends T {
46
- constructor() {
47
- super(...arguments);
48
- c(this, "errorCatalog", { ...v });
49
- }
50
- get(t = "default", r = "NOT_FOUND") {
51
- var f, a;
52
- const { errorCatalog: e } = this;
53
- if (t instanceof Error)
54
- return this.logError(t.message), {
55
- ...e.internalError,
56
- title: O(e.internalError.title),
57
- message: O(e.internalError.message),
58
- uuid: r
59
- };
60
- const n = typeof t == "string" ? t : t.code ?? t.errorType;
61
- this.logDebug("statusCode", n);
62
- const s = typeof t == "string" ? {} : { ...t };
63
- return {
64
- ...e[n] ?? e.default,
65
- title: O(
66
- ((f = e[n]) == null ? void 0 : f.title) ?? e.default.title,
67
- s
68
- ),
69
- message: O(
70
- ((a = e[n]) == null ? void 0 : a.message) ?? e.default.message,
71
- s
72
- ),
73
- payload: typeof t != "string" ? { errorCode: t.code } : {},
74
- uuid: r
75
- };
76
- }
77
- setCatalog(t) {
78
- this.errorCatalog = { ...this.errorCatalog, ...t };
79
- }
80
- }
81
- class ft extends L {
82
- constructor() {
83
- super(...arguments);
84
- c(this, "uuid", "");
85
- c(this, "session", null);
86
- }
87
- setSession(t) {
88
- this.session = t;
89
- }
90
- getSession() {
91
- if (!this.session) throw new B().get("SESSION_NOT_FOUND");
92
- return this.session;
93
- }
94
- returnData(t, r, e) {
95
- const n = this.encode(r, e);
96
- t.status(200).json(n);
97
- }
98
- returnError(t, r) {
99
- return r != null && r.uuid ? t.status(520).json(r) : t.status(520).json(new B().get(r, this.uuid));
100
- }
101
- get(t) {
102
- return this.logDebug("get ApiMiddleware"), (r, e) => {
103
- var n;
104
- this.logDebug("return ApiMiddleware"), this.uuid = (n = r == null ? void 0 : r.body) == null ? void 0 : n.uuid, g(r).pipe(
105
- x(
106
- (s) => U({
107
- params: g(this.decode(s.body)),
108
- headers: g(s.headers)
109
- })
110
- ),
111
- x(
112
- ({ params: s, headers: f }) => U({
113
- response: t(s, this.uuid, f),
114
- headers: g(f),
115
- params: g(s)
116
- })
117
- ),
118
- x(({ params: s, response: f, headers: a }) => (this.logDebug(
119
- `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(a)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(s)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(f)}`
120
- ), g(f))),
121
- S((s) => {
122
- var f;
123
- return this.logError(
124
- `ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(f = r == null ? void 0 : r.body) == null ? void 0 : f.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(s)}`
125
- ), this.returnError(e, s), N;
126
- })
127
- ).subscribe({
128
- next: (s) => {
129
- this.logDebug("ApiMiddleware subscribe next", JSON.stringify(s)), this.returnData(e, s, this.uuid);
130
- }
131
- });
132
- };
133
- }
134
- }
135
- const F = process.env.ID_FRONT ?? "NOT_AVAILABLE";
136
- class lt extends J {
137
- constructor(t, r, e = {}) {
138
- super(e);
139
- c(this, "apiUrl");
140
- c(this, "method");
141
- this.apiUrl = t, this.method = r ?? "POST";
142
- }
143
- errorHandler(t, r) {
144
- if (t != null && t.errors)
145
- throw new B().get(t.errors[0], r);
146
- return !(t != null && t.errors);
147
- }
148
- formatParams(t) {
149
- return JSON.stringify({
150
- data: {
151
- type: F,
152
- attributes: t
153
- }
154
- });
155
- }
156
- fetchData(t = {}, r) {
157
- return this.getHeaders().pipe(
158
- x(
159
- (e) => E(
160
- this.apiUrl,
161
- {
162
- method: "POST",
163
- headers: e,
164
- body: this.formatParams(t),
165
- selector: (n) => n.json()
166
- }
167
- ).pipe(
168
- S((n) => {
169
- throw this.logError(JSON.stringify(n)), this.logError(
170
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
171
- e
172
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
173
- this.formatParams(t)
174
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
175
- ), new B().get("default", r);
176
- }),
177
- x((n) => (this.logDebug(
178
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
179
- e
180
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
181
- this.formatParams(t)
182
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
183
- ), g(n)))
184
- )
185
- ),
186
- A((e) => this.errorHandler(e, r))
187
- );
188
- }
189
- fetchCustomData(t = {}, r, e) {
190
- const n = {
191
- "Content-Type": "application/json"
192
- }, s = w.stringify(
193
- t
194
- ), f = `${this.apiUrl}?${s}`, a = this.method === "GET" ? f : this.apiUrl;
195
- return this.getHeaders(n, e).pipe(
196
- x(
197
- (m) => E(a, {
198
- method: this.method,
199
- headers: m,
200
- body: this.method === "GET" ? null : JSON.stringify(t),
201
- selector: (l) => l.json()
202
- }).pipe(
203
- S((l) => {
204
- throw this.logError(JSON.stringify(l)), this.logError(
205
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
206
- m
207
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
208
- this.formatParams(t)
209
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(l)} \x1B[33m`
210
- ), new B().get("default", r);
211
- }),
212
- x((l) => (this.logDebug(
213
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
214
- m
215
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
216
- t
217
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(l)} \x1B[33m`
218
- ), g(l)))
219
- )
220
- )
221
- );
222
- }
223
- }
224
- const M = /^(?:[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;
225
- function j(i) {
226
- return typeof i == "string" && M.test(i);
227
- }
228
- function Y(i) {
229
- if (!j(i))
230
- throw TypeError("Invalid UUID");
231
- let o;
232
- const t = new Uint8Array(16);
233
- return t[0] = (o = parseInt(i.slice(0, 8), 16)) >>> 24, t[1] = o >>> 16 & 255, t[2] = o >>> 8 & 255, t[3] = o & 255, t[4] = (o = parseInt(i.slice(9, 13), 16)) >>> 8, t[5] = o & 255, t[6] = (o = parseInt(i.slice(14, 18), 16)) >>> 8, t[7] = o & 255, t[8] = (o = parseInt(i.slice(19, 23), 16)) >>> 8, t[9] = o & 255, t[10] = (o = parseInt(i.slice(24, 36), 16)) / 1099511627776 & 255, t[11] = o / 4294967296 & 255, t[12] = o >>> 24 & 255, t[13] = o >>> 16 & 255, t[14] = o >>> 8 & 255, t[15] = o & 255, t;
234
- }
235
- function G(i) {
236
- i = unescape(encodeURIComponent(i));
237
- const o = [];
238
- for (let t = 0; t < i.length; ++t)
239
- o.push(i.charCodeAt(t));
240
- return o;
241
- }
242
- const _ = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", W = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
243
- function k(i, o, t) {
244
- function r(e, n, s, f) {
245
- var a;
246
- if (typeof e == "string" && (e = G(e)), typeof n == "string" && (n = Y(n)), ((a = n) === null || a === void 0 ? void 0 : a.length) !== 16)
247
- throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
248
- let m = new Uint8Array(16 + e.length);
249
- if (m.set(n), m.set(e, n.length), m = t(m), m[6] = m[6] & 15 | o, m[8] = m[8] & 63 | 128, s) {
250
- f = f || 0;
251
- for (let l = 0; l < 16; ++l)
252
- s[f + l] = m[l];
253
- return s;
254
- }
255
- return C(m);
256
- }
257
- try {
258
- r.name = i;
259
- } catch {
260
- }
261
- return r.DNS = _, r.URL = W, r;
262
- }
263
- function V(i, o, t, r) {
264
- switch (i) {
265
- case 0:
266
- return o & t ^ ~o & r;
267
- case 1:
268
- return o ^ t ^ r;
269
- case 2:
270
- return o & t ^ o & r ^ t & r;
271
- case 3:
272
- return o ^ t ^ r;
273
- }
274
- }
275
- function p(i, o) {
276
- return i << o | i >>> 32 - o;
277
- }
278
- function K(i) {
279
- const o = [1518500249, 1859775393, 2400959708, 3395469782], t = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
280
- if (typeof i == "string") {
281
- const s = unescape(encodeURIComponent(i));
282
- i = [];
283
- for (let f = 0; f < s.length; ++f)
284
- i.push(s.charCodeAt(f));
285
- } else Array.isArray(i) || (i = Array.prototype.slice.call(i));
286
- i.push(128);
287
- const r = i.length / 4 + 2, e = Math.ceil(r / 16), n = new Array(e);
288
- for (let s = 0; s < e; ++s) {
289
- const f = new Uint32Array(16);
290
- for (let a = 0; a < 16; ++a)
291
- f[a] = i[s * 64 + a * 4] << 24 | i[s * 64 + a * 4 + 1] << 16 | i[s * 64 + a * 4 + 2] << 8 | i[s * 64 + a * 4 + 3];
292
- n[s] = f;
293
- }
294
- n[e - 1][14] = (i.length - 1) * 8 / Math.pow(2, 32), n[e - 1][14] = Math.floor(n[e - 1][14]), n[e - 1][15] = (i.length - 1) * 8 & 4294967295;
295
- for (let s = 0; s < e; ++s) {
296
- const f = new Uint32Array(80);
297
- for (let h = 0; h < 16; ++h)
298
- f[h] = n[s][h];
299
- for (let h = 16; h < 80; ++h)
300
- f[h] = p(f[h - 3] ^ f[h - 8] ^ f[h - 14] ^ f[h - 16], 1);
301
- let a = t[0], m = t[1], l = t[2], d = t[3], y = t[4];
302
- for (let h = 0; h < 80; ++h) {
303
- const R = Math.floor(h / 20), P = p(a, 5) + V(R, m, l, d) + y + o[R] + f[h] >>> 0;
304
- y = d, d = l, l = p(m, 30) >>> 0, m = a, a = P;
305
- }
306
- t[0] = t[0] + a >>> 0, t[1] = t[1] + m >>> 0, t[2] = t[2] + l >>> 0, t[3] = t[3] + d >>> 0, t[4] = t[4] + y >>> 0;
307
- }
308
- 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];
309
- }
310
- const D = k("v5", 80, K);
311
- class mt extends H {
312
- constructor(t, r = "POST", e = {}) {
313
- super();
314
- c(this, "apiUrl");
315
- c(this, "method");
316
- c(this, "headers");
317
- c(this, "isLoadingEnabled", !0);
318
- c(this, "errorResponse");
319
- this.apiUrl = t, this.method = r, this.headers = {
320
- "Content-Type": "application/json",
321
- ...e
322
- };
323
- }
324
- setIsLoadingEnabled(t) {
325
- this.isLoadingEnabled = t;
326
- }
327
- setErrorResponse(t) {
328
- this.errorResponse = t;
329
- }
330
- fetchData(t = {}) {
331
- const r = (/* @__PURE__ */ new Date()).toISOString(), e = D(r, D.URL), n = this.encode({ ...t }, e);
332
- u.getInstance().setSubject(this.isLoadingEnabled);
333
- const f = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
334
- return E(this.apiUrl, {
335
- method: this.method,
336
- headers: { ...this.headers, flow: f },
337
- body: n,
338
- selector: (a) => a.json()
339
- }).pipe(
340
- x((a) => g(this.decode(a))),
341
- x((a) => a.code && (a.type === "modal" || a.type === "message") ? (this.logError(
342
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(t)} <BODY> ${n} <RESPONSE>: ${JSON.stringify(a)}`
343
- ), u.getInstance().setSubject(!1), $.getInstance().setSubject(a), this.errorResponse ? g(this.errorResponse) : N) : g(a)),
344
- x((a) => (u.getInstance().setSubject(!1), this.logDebug(
345
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(t)} <BODY> ${n} <RESPONSE>: ${JSON.stringify(a)}`
346
- ), g(a))),
347
- S((a) => (this.logError(
348
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(t)} <BODY> ${n} <RESPONSE>: ${JSON.stringify(a)}`
349
- ), u.getInstance().setSubject(!1), $.getInstance().setSubject(
350
- new B().get(a, e)
351
- ), this.errorResponse ? g(this.errorResponse) : N))
352
- );
353
- }
354
- }
355
- const X = process.env.ID_FRONT ?? "NOT_AVAILABLE";
356
- class ht extends J {
357
- constructor(t, r, e = {}) {
358
- super(e);
359
- c(this, "apiUrl");
360
- c(this, "method");
361
- c(this, "errorCatalog", new B());
362
- this.apiUrl = t, this.method = r ?? "POST";
363
- }
364
- errorHandler(t, r) {
365
- if (t != null && t.errors)
366
- throw this.errorCatalog.get(t.errors[0], r);
367
- return !(t != null && t.errors);
368
- }
369
- formatParams(t) {
370
- return JSON.stringify({
371
- data: {
372
- type: X,
373
- attributes: t
374
- }
375
- });
376
- }
377
- fetchData(t = {}, r) {
378
- const e = this.initErrorCatalog === void 0 ? {} : this.initErrorCatalog();
379
- return this.errorCatalog.setCatalog(e), this.getHeaders().pipe(
380
- x(
381
- (n) => E(
382
- this.apiUrl,
383
- {
384
- method: "POST",
385
- headers: n,
386
- body: this.formatParams(t),
387
- selector: (s) => s.json()
388
- }
389
- ).pipe(
390
- S((s) => {
391
- throw this.logError(JSON.stringify(s)), this.logError(
392
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
393
- n
394
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
395
- this.formatParams(t)
396
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
397
- ), new B().get("default", r);
398
- }),
399
- x((s) => (this.logDebug(
400
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
401
- n
402
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
403
- this.formatParams(t)
404
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
405
- ), g(s)))
406
- )
407
- ),
408
- A((n) => this.errorHandler(n, r))
409
- );
410
- }
411
- fetchCustomData(t = {}, r, e) {
412
- const n = {
413
- "Content-Type": "application/json"
414
- }, s = w.stringify(
415
- t
416
- ), f = `${this.apiUrl}?${s}`, a = this.method === "GET" ? f : this.apiUrl;
417
- return this.getHeaders(n, e).pipe(
418
- x(
419
- (m) => E(a, {
420
- method: this.method,
421
- headers: m,
422
- body: this.method === "GET" ? null : JSON.stringify(t),
423
- selector: (l) => l.json()
424
- }).pipe(
425
- S((l) => {
426
- throw this.logError(JSON.stringify(l)), this.logError(
427
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
428
- m
429
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
430
- this.formatParams(t)
431
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(l)} \x1B[33m`
432
- ), new B().get("default", r);
433
- }),
434
- x((l) => (this.logDebug(
435
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
436
- m
437
- )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
438
- t
439
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(l)} \x1B[33m`
440
- ), g(l)))
441
- )
442
- )
443
- );
444
- }
445
- }
446
- export {
447
- ft as A,
448
- B as E,
449
- lt as F,
450
- mt as a,
451
- ht as b
452
- };
@@ -1,5 +0,0 @@
1
- declare const translation: {
2
- enrollment: {};
3
- };
4
- export default translation;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/en_EN/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;CAEhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,202 +0,0 @@
1
- declare const translation: {
2
- enrollment: {
3
- "ENROLLMENT-INVALIDCONFIGURATION-0000": {
4
- title: string;
5
- message: string;
6
- };
7
- "ENROLLMENT-INVALIDDEVICEDID-0001": {
8
- title: string;
9
- message: string;
10
- };
11
- "ENROLLMENT-INVALIDIMEI-0002": {
12
- title: string;
13
- message: string;
14
- };
15
- "ENROLLMENT-INVALIDLOCKTYPE-0003": {
16
- title: string;
17
- message: string;
18
- };
19
- "ENROLLMENT-INVALIDTOKENSUPPLIERS-0004": {
20
- title: string;
21
- message: string;
22
- };
23
- "ENROLLMENT-IMEIDOESNTMATCH-0005": {
24
- title: string;
25
- message: string;
26
- };
27
- "ENROLLMENT-QRMACROLOCKNOTGENERATE-0006": {
28
- title: string;
29
- message: string;
30
- };
31
- "ENROLLMENT-IMEINOTVALIDATED-0007": {
32
- title: string;
33
- message: string;
34
- };
35
- "ENROLLMENT-DEVICESNOTFOUNDINSAPINVENTORY-0008": {
36
- title: string;
37
- message: string;
38
- };
39
- "ENROLLMENT-JOURNEYERROR-0009": {
40
- title: string;
41
- message: string;
42
- };
43
- "ENROLLMENT-APPLICATIONSNOTFOUND-0010": {
44
- title: string;
45
- message: string;
46
- };
47
- "ENROLLMENT-LOCKTYPENOTFOUND-0011": {
48
- title: string;
49
- message: string;
50
- };
51
- "ENROLLMENT-PREAPPLICATIONNOTFOUND-0012": {
52
- title: string;
53
- message: string;
54
- };
55
- "ENROLLMENT-UNSUPPORTED_MEDIA_TYPE-0013": {
56
- title: string;
57
- message: string;
58
- };
59
- "ENROLLMENT-NOT_ACCEPTABLE-0014": {
60
- title: string;
61
- message: string;
62
- };
63
- "ENROLLMENT-RESOURCENOTFOUND-0015": {
64
- title: string;
65
- message: string;
66
- };
67
- "ENROLLMENT-BADREQUEST-0016": {
68
- title: string;
69
- message: string;
70
- };
71
- "ENROLLMENT-METHODNOTIMPLEMENT-0017": {
72
- title: string;
73
- message: string;
74
- };
75
- "ENROLLMENT-PRODUCTNOTFOUNDINSAPINVENTORY-0018": {
76
- title: string;
77
- message: string;
78
- };
79
- "ENROLLMENT-PRODUCTKEYNOTFOUND-0019": {
80
- title: string;
81
- message: string;
82
- };
83
- "ENROLLMENT-FAILEDTORETRIEVEIMEI-0020": {
84
- title: string;
85
- message: string;
86
- };
87
- "ENROLLMENT-LOCKTYPENOTFOUND-0021": {
88
- title: string;
89
- message: string;
90
- };
91
- "ENROLLMENT-AUTH_HEADER_MISSING-0022": {
92
- title: string;
93
- message: string;
94
- };
95
- "ENROLLMENT-AUTH_HEADER_INVALID_FORMAT-0023": {
96
- title: string;
97
- message: string;
98
- };
99
- "ENROLLMENT-AUTH_TOKEN_MISSING-0024": {
100
- title: string;
101
- message: string;
102
- };
103
- "ENROLLMENT-AUTH_TOKEN_INVALID-0025": {
104
- title: string;
105
- message: string;
106
- };
107
- "ENROLLMENT-AUTH_UNSUPPORTED_MEDIA_TYPE-0026": {
108
- title: string;
109
- message: string;
110
- };
111
- "ENROLLMENT-AUTH_UNKNOWN_ERROR-0027": {
112
- title: string;
113
- message: string;
114
- };
115
- "ENROLLMENT-APISAPNOTAVAILABLE-0028": {
116
- title: string;
117
- message: string;
118
- };
119
- "ENROLLMENT-APIAUTHSUPPLIERNOTAVAILABLE-0029": {
120
- title: string;
121
- message: string;
122
- };
123
- "ENROLLMENT-APIAPISTATUSLOCKTYPEBYSUPPLIERNOTAVAILABLE-0030": {
124
- title: string;
125
- message: string;
126
- };
127
- "ENROLLMENT-INVALIDTOKENTRUSTONICSUPPLIER-0031": {
128
- title: string;
129
- message: string;
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
- };
143
- "ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041": {
144
- title: string;
145
- message: string;
146
- };
147
- "ENROLLMENT-THEREISNOSTOCKFORTHEMATERIALINSAP-0042": {
148
- title: string;
149
- message: string;
150
- };
151
- "ENROLLMENT-NOTALLOWEDBRAND-0044": {
152
- title: string;
153
- message: string;
154
- };
155
- "ENROLLMENT-THEREARENTMATERIALS-0055": {
156
- title: string;
157
- message: string;
158
- };
159
- "ENROLLMENT-THEREARENTMATERIALS-0056": {
160
- title: string;
161
- message: string;
162
- };
163
- "ENROLLMENT-THEREARENTMATERIALS-0049": {
164
- title: string;
165
- message: string;
166
- };
167
- "ENROLLMENT-MATERIALNOTFOUND-0052": {
168
- title: string;
169
- message: string;
170
- };
171
- "ENROLLMENT-THEREARENTMATERIALS-0053": {
172
- title: string;
173
- message: string;
174
- };
175
- "ENROLLMENT-THEREARENTMATERIALS-0054": {
176
- title: string;
177
- message: string;
178
- };
179
- "ENROLLMENT-THEREARENTMATERIALS-0058": {
180
- title: string;
181
- message: string;
182
- };
183
- "ENROLLMENT-THEREARENTMATERIALS-0060": {
184
- title: string;
185
- message: string;
186
- };
187
- "ENROLLMENT-THEREISNTIMEI-0048": {
188
- title: string;
189
- message: string;
190
- };
191
- "ENROLLMENT-LOANBALANCE-0062": {
192
- title: string;
193
- message: string;
194
- };
195
- "ENROLLMENT-USED-IMEI-0001": {
196
- title: string;
197
- message: string;
198
- };
199
- };
200
- };
201
- export default translation;
202
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,3 +0,0 @@
1
- export { default as enrollmentEN_EN } from './en_EN';
2
- export { default as enrollmentES_MX } from './es_MX';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/enrollment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,SAAS,CAAA"}