mp-front-cli 0.0.126 → 0.0.127
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-991c08e5.js → index-935aeed1.js} +35 -3
- package/dist/lang/common/errors/enrollment/es_MX/index.d.ts +33 -1
- package/dist/lang/common/errors/enrollment/es_MX/index.d.ts.map +1 -1
- package/dist/lang/common/errors/es_MX/index.d.ts +33 -1
- 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 +197 -141
- 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;CA8UnC,CAAA"}
|
|
@@ -360,9 +360,41 @@ const e = {
|
|
|
360
360
|
title: "Contacta con el equipo de soporte",
|
|
361
361
|
message: "Tu dispositivo no cuenta con las características solicitadas. Por favor intenta con otro dispositivo, ID:ENROLLMENT-NOTALLOWEDBRAND-0044"
|
|
362
362
|
},
|
|
363
|
-
"ENROLLMENT-
|
|
364
|
-
title: "
|
|
365
|
-
message: "
|
|
363
|
+
"ENROLLMENT-THEREARENTMATERIALS-0055": {
|
|
364
|
+
title: "Contacta con el equipo de soporte",
|
|
365
|
+
message: "No existen materiales para el tipo de crédito seleccionado."
|
|
366
|
+
},
|
|
367
|
+
"ENROLLMENT-THEREARENTMATERIALS-0056": {
|
|
368
|
+
title: "Contacta con el equipo de soporte",
|
|
369
|
+
message: "No existen materiales de el tipo de crédito seleccionado."
|
|
370
|
+
},
|
|
371
|
+
"ENROLLMENT-THEREARENTMATERIALS-0049": {
|
|
372
|
+
title: "Contacta con el equipo de soporte",
|
|
373
|
+
message: "No se encontraron materiales con la descripción especificada."
|
|
374
|
+
},
|
|
375
|
+
"ENROLLMENT-MATERIALNOTFOUND-0052": {
|
|
376
|
+
title: "Contacta con el equipo de soporte",
|
|
377
|
+
message: "No se encontraron materiales con la clave especificada especificada."
|
|
378
|
+
},
|
|
379
|
+
"ENROLLMENT-THEREARENTMATERIALS-0053": {
|
|
380
|
+
title: "Contacta con el equipo de soporte",
|
|
381
|
+
message: "No existen materiales con el color seleccionado."
|
|
382
|
+
},
|
|
383
|
+
"ENROLLMENT-THEREARENTMATERIALS-0054": {
|
|
384
|
+
title: "Contacta con el equipo de soporte",
|
|
385
|
+
message: "No existen materiales con el color seleccionado."
|
|
386
|
+
},
|
|
387
|
+
"ENROLLMENT-THEREARENTMATERIALS-0058": {
|
|
388
|
+
title: "Contacta con el equipo de soporte",
|
|
389
|
+
message: "No existen materiales de la marca seleccionada."
|
|
390
|
+
},
|
|
391
|
+
"ENROLLMENT-THEREARENTMATERIALS-0060": {
|
|
392
|
+
title: "Contacta con el equipo de soporte",
|
|
393
|
+
message: "No existe ningún material con los parámetros especificados."
|
|
394
|
+
},
|
|
395
|
+
"ENROLLMENT-THEREISNTIMEI-0048": {
|
|
396
|
+
title: "Contacta con el equipo de soporte",
|
|
397
|
+
message: "El IMEI / Núm. de serie especificado no existe."
|
|
366
398
|
}
|
|
367
399
|
}
|
|
368
400
|
}, a = {
|
|
@@ -152,7 +152,39 @@ declare const translation: {
|
|
|
152
152
|
title: string;
|
|
153
153
|
message: string;
|
|
154
154
|
};
|
|
155
|
-
"ENROLLMENT-
|
|
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": {
|
|
156
188
|
title: string;
|
|
157
189
|
message: string;
|
|
158
190
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqNhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -196,7 +196,39 @@ declare const translation: {
|
|
|
196
196
|
title: string;
|
|
197
197
|
message: string;
|
|
198
198
|
};
|
|
199
|
-
"ENROLLMENT-
|
|
199
|
+
"ENROLLMENT-THEREARENTMATERIALS-0055": {
|
|
200
|
+
title: string;
|
|
201
|
+
message: string;
|
|
202
|
+
};
|
|
203
|
+
"ENROLLMENT-THEREARENTMATERIALS-0056": {
|
|
204
|
+
title: string;
|
|
205
|
+
message: string;
|
|
206
|
+
};
|
|
207
|
+
"ENROLLMENT-THEREARENTMATERIALS-0049": {
|
|
208
|
+
title: string;
|
|
209
|
+
message: string;
|
|
210
|
+
};
|
|
211
|
+
"ENROLLMENT-MATERIALNOTFOUND-0052": {
|
|
212
|
+
title: string;
|
|
213
|
+
message: string;
|
|
214
|
+
};
|
|
215
|
+
"ENROLLMENT-THEREARENTMATERIALS-0053": {
|
|
216
|
+
title: string;
|
|
217
|
+
message: string;
|
|
218
|
+
};
|
|
219
|
+
"ENROLLMENT-THEREARENTMATERIALS-0054": {
|
|
220
|
+
title: string;
|
|
221
|
+
message: string;
|
|
222
|
+
};
|
|
223
|
+
"ENROLLMENT-THEREARENTMATERIALS-0058": {
|
|
224
|
+
title: string;
|
|
225
|
+
message: string;
|
|
226
|
+
};
|
|
227
|
+
"ENROLLMENT-THEREARENTMATERIALS-0060": {
|
|
228
|
+
title: string;
|
|
229
|
+
message: string;
|
|
230
|
+
};
|
|
231
|
+
"ENROLLMENT-THEREISNTIMEI-0048": {
|
|
200
232
|
title: string;
|
|
201
233
|
message: string;
|
|
202
234
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwShB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServic
|
|
|
2
2
|
import { LoadingHandler as E, MessageHandler as F, RxSubjectManager as M } 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-935aeed1.js";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
import "./mp-front-cli-encrypter.es.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
|
-
var f = (t,
|
|
3
|
-
var O = (t,
|
|
2
|
+
var f = (t, r, e) => r in t ? u(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
|
+
var O = (t, r, e) => (f(t, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
4
|
import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
|
|
5
5
|
import { RxSubjectManager as De } from "./mp-front-cli-utils-rxjs.es.js";
|
|
6
6
|
import { f as c } from "./index-def0b487.js";
|
|
7
7
|
import { S as Pe } from "./index-def0b487.js";
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
10
|
-
import { CustomLogger as
|
|
11
|
-
import { of as
|
|
8
|
+
import v, { t as n } from "i18next";
|
|
9
|
+
import { t as w } from "./index-935aeed1.js";
|
|
10
|
+
import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
|
|
11
|
+
import { of as o, switchMap as L, forkJoin as p, catchError as U, EMPTY as P, filter as h } from "rxjs";
|
|
12
12
|
import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
|
|
13
13
|
import { CustomHeader as Q } from "./mp-front-cli-header.es.js";
|
|
14
|
-
import
|
|
15
|
-
import { CustomEncoder as
|
|
16
|
-
import { u as
|
|
14
|
+
import H from "querystring";
|
|
15
|
+
import { CustomEncoder as x } from "./mp-front-cli-encoder.es.js";
|
|
16
|
+
import { u as G } from "./stringify-788d71a0.js";
|
|
17
17
|
import "node-jose";
|
|
18
18
|
import "crypto";
|
|
19
19
|
const Y = {
|
|
20
20
|
es: {
|
|
21
21
|
translation: {
|
|
22
|
-
...
|
|
22
|
+
...w
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
v.init({
|
|
27
27
|
resources: Y,
|
|
28
28
|
lng: "es",
|
|
29
29
|
// language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
|
|
@@ -303,11 +303,67 @@ const K = {
|
|
|
303
303
|
title: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.title",
|
|
304
304
|
level: "warning"
|
|
305
305
|
},
|
|
306
|
-
"ENROLLMENT-
|
|
306
|
+
"ENROLLMENT-THEREARENTMATERIALS-0055": {
|
|
307
307
|
code: 400,
|
|
308
308
|
type: "modal",
|
|
309
|
-
message: "errors.ENROLLMENT-
|
|
310
|
-
title: "errors.ENROLLMENT-
|
|
309
|
+
message: "errors.ENROLLMENT-THEREARENTMATERIALS-0055.message",
|
|
310
|
+
title: "errors.ENROLLMENT-THEREARENTMATERIALS-0055.title",
|
|
311
|
+
level: "warning"
|
|
312
|
+
},
|
|
313
|
+
"ENROLLMENT-THEREARENTMATERIALS-0056": {
|
|
314
|
+
code: 400,
|
|
315
|
+
type: "modal",
|
|
316
|
+
message: "errors.ENROLLMENT-THEREARENTMATERIALS-0056.message",
|
|
317
|
+
title: "errors.ENROLLMENT-THEREARENTMATERIALS-0056.title",
|
|
318
|
+
level: "warning"
|
|
319
|
+
},
|
|
320
|
+
"ENROLLMENT-THEREARENTMATERIALS-0049": {
|
|
321
|
+
code: 400,
|
|
322
|
+
type: "modal",
|
|
323
|
+
message: "errors.ENROLLMENT-THEREARENTMATERIALS-0049.message",
|
|
324
|
+
title: "errors.ENROLLMENT-THEREARENTMATERIALS-0049.title",
|
|
325
|
+
level: "warning"
|
|
326
|
+
},
|
|
327
|
+
"ENROLLMENT-MATERIALNOTFOUND-0052": {
|
|
328
|
+
code: 400,
|
|
329
|
+
type: "modal",
|
|
330
|
+
message: "errors.ENROLLMENT-MATERIALNOTFOUND-0052.message",
|
|
331
|
+
title: "errors.ENROLLMENT-MATERIALNOTFOUND-0052.title",
|
|
332
|
+
level: "warning"
|
|
333
|
+
},
|
|
334
|
+
"ENROLLMENT-THEREARENTMATERIALS-0053": {
|
|
335
|
+
code: 400,
|
|
336
|
+
type: "modal",
|
|
337
|
+
message: "errors.ENROLLMENT-THEREARENTMATERIALS-0053.message",
|
|
338
|
+
title: "errors.ENROLLMENT-THEREARENTMATERIALS-0053.title",
|
|
339
|
+
level: "warning"
|
|
340
|
+
},
|
|
341
|
+
"ENROLLMENT-THEREARENTMATERIALS-0054": {
|
|
342
|
+
code: 400,
|
|
343
|
+
type: "modal",
|
|
344
|
+
message: "errors.ENROLLMENT-THEREARENTMATERIALS-0054.message",
|
|
345
|
+
title: "errors.ENROLLMENT-THEREARENTMATERIALS-0054.title",
|
|
346
|
+
level: "warning"
|
|
347
|
+
},
|
|
348
|
+
"ENROLLMENT-THEREARENTMATERIALS-0058": {
|
|
349
|
+
code: 400,
|
|
350
|
+
type: "modal",
|
|
351
|
+
message: "errors.ENROLLMENT-THEREARENTMATERIALS-0058.message",
|
|
352
|
+
title: "errors.ENROLLMENT-THEREARENTMATERIALS-0058.title",
|
|
353
|
+
level: "warning"
|
|
354
|
+
},
|
|
355
|
+
"ENROLLMENT-THEREARENTMATERIALS-0060": {
|
|
356
|
+
code: 400,
|
|
357
|
+
type: "modal",
|
|
358
|
+
message: "errors.ENROLLMENT-THEREARENTMATERIALS-0060.message",
|
|
359
|
+
title: "errors.ENROLLMENT-THEREARENTMATERIALS-0060.title",
|
|
360
|
+
level: "warning"
|
|
361
|
+
},
|
|
362
|
+
"ENROLLMENT-THEREISNTIMEI-0048": {
|
|
363
|
+
code: 400,
|
|
364
|
+
type: "modal",
|
|
365
|
+
message: "errors.ENROLLMENT-THEREISNTIMEI-0048.message",
|
|
366
|
+
title: "errors.ENROLLMENT-THEREISNTIMEI-0048.title",
|
|
311
367
|
level: "warning"
|
|
312
368
|
}
|
|
313
369
|
}, J = {
|
|
@@ -378,7 +434,7 @@ const K = {
|
|
|
378
434
|
}, X = {
|
|
379
435
|
..._,
|
|
380
436
|
...J
|
|
381
|
-
},
|
|
437
|
+
}, i = {
|
|
382
438
|
"MP-001": {
|
|
383
439
|
code: 400,
|
|
384
440
|
type: "modal",
|
|
@@ -1197,28 +1253,28 @@ const K = {
|
|
|
1197
1253
|
...K,
|
|
1198
1254
|
...X
|
|
1199
1255
|
};
|
|
1200
|
-
class C extends
|
|
1201
|
-
get(
|
|
1202
|
-
var N,
|
|
1203
|
-
if (
|
|
1204
|
-
return this.logError(
|
|
1205
|
-
...
|
|
1206
|
-
title:
|
|
1207
|
-
message:
|
|
1256
|
+
class C extends F {
|
|
1257
|
+
get(r = "default", e = "NOT_FOUND") {
|
|
1258
|
+
var N, A;
|
|
1259
|
+
if (r instanceof Error)
|
|
1260
|
+
return this.logError(r.message), {
|
|
1261
|
+
...i.internalError,
|
|
1262
|
+
title: n(i.internalError.title),
|
|
1263
|
+
message: n(i.internalError.message),
|
|
1208
1264
|
uuid: e
|
|
1209
1265
|
};
|
|
1210
|
-
const
|
|
1211
|
-
this.logDebug("statusCode",
|
|
1212
|
-
const
|
|
1266
|
+
const E = typeof r == "string" ? r : r.code ?? r.errorType;
|
|
1267
|
+
this.logDebug("statusCode", E);
|
|
1268
|
+
const l = typeof r == "string" ? {} : { ...r };
|
|
1213
1269
|
return {
|
|
1214
|
-
...
|
|
1215
|
-
title:
|
|
1216
|
-
((N =
|
|
1217
|
-
|
|
1270
|
+
...i[E] ?? i.default,
|
|
1271
|
+
title: n(
|
|
1272
|
+
((N = i[E]) == null ? void 0 : N.title) ?? i.default.title,
|
|
1273
|
+
l
|
|
1218
1274
|
),
|
|
1219
|
-
message:
|
|
1220
|
-
((
|
|
1221
|
-
|
|
1275
|
+
message: n(
|
|
1276
|
+
((A = i[E]) == null ? void 0 : A.message) ?? i.default.message,
|
|
1277
|
+
l
|
|
1222
1278
|
),
|
|
1223
1279
|
uuid: e
|
|
1224
1280
|
};
|
|
@@ -1238,42 +1294,42 @@ class me extends V {
|
|
|
1238
1294
|
throw new C().get("SESSION_NOT_FOUND");
|
|
1239
1295
|
return this.session;
|
|
1240
1296
|
}
|
|
1241
|
-
returnData(e,
|
|
1242
|
-
const N = this.encode(
|
|
1297
|
+
returnData(e, E, l) {
|
|
1298
|
+
const N = this.encode(E, l);
|
|
1243
1299
|
e.status(200).json(N);
|
|
1244
1300
|
}
|
|
1245
|
-
returnError(e,
|
|
1246
|
-
return
|
|
1301
|
+
returnError(e, E) {
|
|
1302
|
+
return E != null && E.uuid ? e.status(520).json(E) : e.status(520).json(new C().get(E, this.uuid));
|
|
1247
1303
|
}
|
|
1248
1304
|
get(e) {
|
|
1249
|
-
return this.logDebug("get ApiMiddleware"), (
|
|
1305
|
+
return this.logDebug("get ApiMiddleware"), (E, l) => {
|
|
1250
1306
|
var N;
|
|
1251
|
-
this.logDebug("return ApiMiddleware"), this.uuid = (N =
|
|
1307
|
+
this.logDebug("return ApiMiddleware"), this.uuid = (N = E == null ? void 0 : E.body) == null ? void 0 : N.uuid, o(E).pipe(
|
|
1252
1308
|
L(
|
|
1253
|
-
(
|
|
1254
|
-
params:
|
|
1255
|
-
headers:
|
|
1309
|
+
(A) => p({
|
|
1310
|
+
params: o(this.decode(A.body)),
|
|
1311
|
+
headers: o(A.headers)
|
|
1256
1312
|
})
|
|
1257
1313
|
),
|
|
1258
1314
|
L(
|
|
1259
|
-
({ params:
|
|
1260
|
-
response: e(
|
|
1261
|
-
headers:
|
|
1262
|
-
params:
|
|
1315
|
+
({ params: A, headers: R }) => p({
|
|
1316
|
+
response: e(A, this.uuid, R),
|
|
1317
|
+
headers: o(R),
|
|
1318
|
+
params: o(A)
|
|
1263
1319
|
})
|
|
1264
1320
|
),
|
|
1265
|
-
L(({ params:
|
|
1266
|
-
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${
|
|
1267
|
-
),
|
|
1268
|
-
|
|
1321
|
+
L(({ params: A, response: R, headers: s }) => (this.logDebug(
|
|
1322
|
+
`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${E.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(s)} \x1B[37m <UUID> \x1B[33m ${E.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(R)}`
|
|
1323
|
+
), o(R))),
|
|
1324
|
+
U((A) => {
|
|
1269
1325
|
var R;
|
|
1270
1326
|
return this.logError(
|
|
1271
|
-
`ApiMiddleware <URL>: ${
|
|
1272
|
-
), this.returnError(
|
|
1327
|
+
`ApiMiddleware <URL>: ${E == null ? void 0 : E.url} <HEADERS>: ${JSON.stringify(E == null ? void 0 : E.headers)} <UUID> ${(R = E == null ? void 0 : E.body) == null ? void 0 : R.uuid} <PARAMS> ${JSON.stringify(E == null ? void 0 : E.body)} <ERROR>: ${JSON.stringify(A)}`
|
|
1328
|
+
), this.returnError(l, A), P;
|
|
1273
1329
|
})
|
|
1274
1330
|
).subscribe({
|
|
1275
|
-
next: (
|
|
1276
|
-
this.logDebug("ApiMiddleware subscribe next", JSON.stringify(
|
|
1331
|
+
next: (A) => {
|
|
1332
|
+
this.logDebug("ApiMiddleware subscribe next", JSON.stringify(A)), this.returnData(l, A, this.uuid);
|
|
1277
1333
|
}
|
|
1278
1334
|
});
|
|
1279
1335
|
};
|
|
@@ -1281,15 +1337,15 @@ class me extends V {
|
|
|
1281
1337
|
}
|
|
1282
1338
|
const $ = process.env.ID_FRONT ?? "NOT_AVAILABLE";
|
|
1283
1339
|
class ge extends Q {
|
|
1284
|
-
constructor(e,
|
|
1285
|
-
super(
|
|
1340
|
+
constructor(e, E, l = {}) {
|
|
1341
|
+
super(l);
|
|
1286
1342
|
O(this, "apiUrl");
|
|
1287
1343
|
O(this, "method");
|
|
1288
|
-
this.apiUrl = e, this.method =
|
|
1344
|
+
this.apiUrl = e, this.method = E ?? "POST";
|
|
1289
1345
|
}
|
|
1290
|
-
errorHandler(e,
|
|
1346
|
+
errorHandler(e, E) {
|
|
1291
1347
|
if (e != null && e.errors)
|
|
1292
|
-
throw new C().get(e.errors[0],
|
|
1348
|
+
throw new C().get(e.errors[0], E);
|
|
1293
1349
|
return !(e != null && e.errors);
|
|
1294
1350
|
}
|
|
1295
1351
|
formatParams(e) {
|
|
@@ -1300,69 +1356,69 @@ class ge extends Q {
|
|
|
1300
1356
|
}
|
|
1301
1357
|
});
|
|
1302
1358
|
}
|
|
1303
|
-
fetchData(e = {},
|
|
1359
|
+
fetchData(e = {}, E) {
|
|
1304
1360
|
return this.getHeaders().pipe(
|
|
1305
1361
|
L(
|
|
1306
|
-
(
|
|
1362
|
+
(l) => c(
|
|
1307
1363
|
this.apiUrl,
|
|
1308
1364
|
{
|
|
1309
1365
|
method: "POST",
|
|
1310
|
-
headers:
|
|
1366
|
+
headers: l,
|
|
1311
1367
|
body: this.formatParams(e),
|
|
1312
1368
|
selector: (N) => N.json()
|
|
1313
1369
|
}
|
|
1314
1370
|
).pipe(
|
|
1315
|
-
|
|
1371
|
+
U((N) => {
|
|
1316
1372
|
throw this.logError(JSON.stringify(N)), this.logError(
|
|
1317
|
-
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${
|
|
1318
|
-
|
|
1373
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1374
|
+
l
|
|
1319
1375
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1320
1376
|
this.formatParams(e)
|
|
1321
1377
|
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
|
|
1322
|
-
), new C().get("default",
|
|
1378
|
+
), new C().get("default", E);
|
|
1323
1379
|
}),
|
|
1324
1380
|
L((N) => (this.logDebug(
|
|
1325
|
-
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${
|
|
1326
|
-
|
|
1381
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1382
|
+
l
|
|
1327
1383
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1328
1384
|
this.formatParams(e)
|
|
1329
1385
|
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
|
|
1330
|
-
),
|
|
1386
|
+
), o(N)))
|
|
1331
1387
|
)
|
|
1332
1388
|
),
|
|
1333
|
-
h((
|
|
1389
|
+
h((l) => this.errorHandler(l, E))
|
|
1334
1390
|
);
|
|
1335
1391
|
}
|
|
1336
|
-
fetchCustomData(e = {},
|
|
1337
|
-
const
|
|
1392
|
+
fetchCustomData(e = {}, E) {
|
|
1393
|
+
const l = {
|
|
1338
1394
|
"Content-Type": "application/json"
|
|
1339
|
-
}, N =
|
|
1395
|
+
}, N = H.stringify(
|
|
1340
1396
|
e
|
|
1341
|
-
),
|
|
1342
|
-
return this.getHeaders(
|
|
1397
|
+
), A = `${this.apiUrl}?${N}`, R = this.method === "GET" ? A : this.apiUrl;
|
|
1398
|
+
return this.getHeaders(l).pipe(
|
|
1343
1399
|
L(
|
|
1344
1400
|
(s) => c(R, {
|
|
1345
1401
|
method: this.method,
|
|
1346
1402
|
headers: s,
|
|
1347
1403
|
body: this.method === "GET" ? null : JSON.stringify(e),
|
|
1348
|
-
selector: (
|
|
1404
|
+
selector: (T) => T.json()
|
|
1349
1405
|
}).pipe(
|
|
1350
|
-
|
|
1351
|
-
throw this.logError(JSON.stringify(
|
|
1352
|
-
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m <UUID>: \x1B[33m ${
|
|
1406
|
+
U((T) => {
|
|
1407
|
+
throw this.logError(JSON.stringify(T)), this.logError(
|
|
1408
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1353
1409
|
s
|
|
1354
1410
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1355
1411
|
this.formatParams(e)
|
|
1356
|
-
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(
|
|
1357
|
-
), new C().get("default",
|
|
1412
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(T)} \x1B[33m`
|
|
1413
|
+
), new C().get("default", E);
|
|
1358
1414
|
}),
|
|
1359
|
-
L((
|
|
1360
|
-
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${
|
|
1415
|
+
L((T) => (this.logDebug(
|
|
1416
|
+
`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
|
|
1361
1417
|
s
|
|
1362
1418
|
)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
|
|
1363
1419
|
e
|
|
1364
|
-
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(
|
|
1365
|
-
), T
|
|
1420
|
+
)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(T)} \x1B[33m`
|
|
1421
|
+
), o(T)))
|
|
1366
1422
|
)
|
|
1367
1423
|
)
|
|
1368
1424
|
);
|
|
@@ -1375,98 +1431,98 @@ function W(t) {
|
|
|
1375
1431
|
function k(t) {
|
|
1376
1432
|
if (!W(t))
|
|
1377
1433
|
throw TypeError("Invalid UUID");
|
|
1378
|
-
let
|
|
1434
|
+
let r;
|
|
1379
1435
|
const e = new Uint8Array(16);
|
|
1380
|
-
return e[0] = (
|
|
1436
|
+
return e[0] = (r = parseInt(t.slice(0, 8), 16)) >>> 24, e[1] = r >>> 16 & 255, e[2] = r >>> 8 & 255, e[3] = r & 255, e[4] = (r = parseInt(t.slice(9, 13), 16)) >>> 8, e[5] = r & 255, e[6] = (r = parseInt(t.slice(14, 18), 16)) >>> 8, e[7] = r & 255, e[8] = (r = parseInt(t.slice(19, 23), 16)) >>> 8, e[9] = r & 255, e[10] = (r = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = r / 4294967296 & 255, e[12] = r >>> 24 & 255, e[13] = r >>> 16 & 255, e[14] = r >>> 8 & 255, e[15] = r & 255, e;
|
|
1381
1437
|
}
|
|
1382
1438
|
function j(t) {
|
|
1383
1439
|
t = unescape(encodeURIComponent(t));
|
|
1384
|
-
const
|
|
1440
|
+
const r = [];
|
|
1385
1441
|
for (let e = 0; e < t.length; ++e)
|
|
1386
|
-
|
|
1387
|
-
return
|
|
1442
|
+
r.push(t.charCodeAt(e));
|
|
1443
|
+
return r;
|
|
1388
1444
|
}
|
|
1389
1445
|
const Z = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", z = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1390
|
-
function q(t,
|
|
1391
|
-
function
|
|
1446
|
+
function q(t, r, e) {
|
|
1447
|
+
function E(l, N, A, R) {
|
|
1392
1448
|
var s;
|
|
1393
|
-
if (typeof
|
|
1449
|
+
if (typeof l == "string" && (l = j(l)), typeof N == "string" && (N = k(N)), ((s = N) === null || s === void 0 ? void 0 : s.length) !== 16)
|
|
1394
1450
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
1395
|
-
let
|
|
1396
|
-
if (
|
|
1451
|
+
let T = new Uint8Array(16 + l.length);
|
|
1452
|
+
if (T.set(N), T.set(l, N.length), T = e(T), T[6] = T[6] & 15 | r, T[8] = T[8] & 63 | 128, A) {
|
|
1397
1453
|
R = R || 0;
|
|
1398
|
-
for (let
|
|
1399
|
-
|
|
1400
|
-
return
|
|
1454
|
+
for (let I = 0; I < 16; ++I)
|
|
1455
|
+
A[R + I] = T[I];
|
|
1456
|
+
return A;
|
|
1401
1457
|
}
|
|
1402
|
-
return
|
|
1458
|
+
return G(T);
|
|
1403
1459
|
}
|
|
1404
1460
|
try {
|
|
1405
|
-
|
|
1461
|
+
E.name = t;
|
|
1406
1462
|
} catch {
|
|
1407
1463
|
}
|
|
1408
|
-
return
|
|
1464
|
+
return E.DNS = Z, E.URL = z, E;
|
|
1409
1465
|
}
|
|
1410
|
-
function ee(t,
|
|
1466
|
+
function ee(t, r, e, E) {
|
|
1411
1467
|
switch (t) {
|
|
1412
1468
|
case 0:
|
|
1413
|
-
return
|
|
1469
|
+
return r & e ^ ~r & E;
|
|
1414
1470
|
case 1:
|
|
1415
|
-
return
|
|
1471
|
+
return r ^ e ^ E;
|
|
1416
1472
|
case 2:
|
|
1417
|
-
return
|
|
1473
|
+
return r & e ^ r & E ^ e & E;
|
|
1418
1474
|
case 3:
|
|
1419
|
-
return
|
|
1475
|
+
return r ^ e ^ E;
|
|
1420
1476
|
}
|
|
1421
1477
|
}
|
|
1422
|
-
function D(t,
|
|
1423
|
-
return t <<
|
|
1478
|
+
function D(t, r) {
|
|
1479
|
+
return t << r | t >>> 32 - r;
|
|
1424
1480
|
}
|
|
1425
|
-
function
|
|
1426
|
-
const
|
|
1481
|
+
function Ee(t) {
|
|
1482
|
+
const r = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
1427
1483
|
if (typeof t == "string") {
|
|
1428
|
-
const
|
|
1484
|
+
const A = unescape(encodeURIComponent(t));
|
|
1429
1485
|
t = [];
|
|
1430
|
-
for (let R = 0; R <
|
|
1431
|
-
t.push(
|
|
1486
|
+
for (let R = 0; R < A.length; ++R)
|
|
1487
|
+
t.push(A.charCodeAt(R));
|
|
1432
1488
|
} else
|
|
1433
1489
|
Array.isArray(t) || (t = Array.prototype.slice.call(t));
|
|
1434
1490
|
t.push(128);
|
|
1435
|
-
const
|
|
1436
|
-
for (let
|
|
1491
|
+
const E = t.length / 4 + 2, l = Math.ceil(E / 16), N = new Array(l);
|
|
1492
|
+
for (let A = 0; A < l; ++A) {
|
|
1437
1493
|
const R = new Uint32Array(16);
|
|
1438
1494
|
for (let s = 0; s < 16; ++s)
|
|
1439
|
-
R[s] = t[
|
|
1440
|
-
N[
|
|
1495
|
+
R[s] = t[A * 64 + s * 4] << 24 | t[A * 64 + s * 4 + 1] << 16 | t[A * 64 + s * 4 + 2] << 8 | t[A * 64 + s * 4 + 3];
|
|
1496
|
+
N[A] = R;
|
|
1441
1497
|
}
|
|
1442
|
-
N[
|
|
1443
|
-
for (let
|
|
1498
|
+
N[l - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), N[l - 1][14] = Math.floor(N[l - 1][14]), N[l - 1][15] = (t.length - 1) * 8 & 4294967295;
|
|
1499
|
+
for (let A = 0; A < l; ++A) {
|
|
1444
1500
|
const R = new Uint32Array(80);
|
|
1445
|
-
for (let
|
|
1446
|
-
R[
|
|
1447
|
-
for (let
|
|
1448
|
-
R[
|
|
1449
|
-
let s = e[0],
|
|
1450
|
-
for (let
|
|
1451
|
-
const d = Math.floor(
|
|
1452
|
-
S = m, m =
|
|
1501
|
+
for (let a = 0; a < 16; ++a)
|
|
1502
|
+
R[a] = N[A][a];
|
|
1503
|
+
for (let a = 16; a < 80; ++a)
|
|
1504
|
+
R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
|
|
1505
|
+
let s = e[0], T = e[1], I = e[2], m = e[3], S = e[4];
|
|
1506
|
+
for (let a = 0; a < 80; ++a) {
|
|
1507
|
+
const d = Math.floor(a / 20), y = D(s, 5) + ee(d, T, I, m) + S + r[d] + R[a] >>> 0;
|
|
1508
|
+
S = m, m = I, I = D(T, 30) >>> 0, T = s, s = y;
|
|
1453
1509
|
}
|
|
1454
|
-
e[0] = e[0] + s >>> 0, e[1] = e[1] +
|
|
1510
|
+
e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + I >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + S >>> 0;
|
|
1455
1511
|
}
|
|
1456
1512
|
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];
|
|
1457
1513
|
}
|
|
1458
|
-
const
|
|
1459
|
-
class
|
|
1460
|
-
constructor(e,
|
|
1514
|
+
const re = q("v5", 80, Ee), B = re;
|
|
1515
|
+
class ne extends x {
|
|
1516
|
+
constructor(e, E = "POST", l = {}) {
|
|
1461
1517
|
super();
|
|
1462
1518
|
O(this, "apiUrl");
|
|
1463
1519
|
O(this, "method");
|
|
1464
1520
|
O(this, "headers");
|
|
1465
1521
|
O(this, "isLoadingEnabled", !0);
|
|
1466
1522
|
O(this, "errorResponse");
|
|
1467
|
-
this.apiUrl = e, this.method =
|
|
1523
|
+
this.apiUrl = e, this.method = E, this.headers = {
|
|
1468
1524
|
"Content-Type": "application/json",
|
|
1469
|
-
...
|
|
1525
|
+
...l
|
|
1470
1526
|
};
|
|
1471
1527
|
}
|
|
1472
1528
|
setIsLoadingEnabled(e) {
|
|
@@ -1476,7 +1532,7 @@ class Ue extends G {
|
|
|
1476
1532
|
this.errorResponse = e;
|
|
1477
1533
|
}
|
|
1478
1534
|
fetchData(e = {}) {
|
|
1479
|
-
const
|
|
1535
|
+
const E = (/* @__PURE__ */ new Date()).toISOString(), l = B(E, B.URL), N = this.encode({ ...e }, l);
|
|
1480
1536
|
g.getInstance().setSubject(this.isLoadingEnabled);
|
|
1481
1537
|
const R = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
|
|
1482
1538
|
return c(this.apiUrl, {
|
|
@@ -1485,18 +1541,18 @@ class Ue extends G {
|
|
|
1485
1541
|
body: N,
|
|
1486
1542
|
selector: (s) => s.json()
|
|
1487
1543
|
}).pipe(
|
|
1488
|
-
L((s) =>
|
|
1544
|
+
L((s) => o(this.decode(s))),
|
|
1489
1545
|
L((s) => s.code && (s.type === "modal" || s.type === "message") ? (this.logError(
|
|
1490
1546
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
|
|
1491
|
-
), g.getInstance().setSubject(!1), M.getInstance().setSubject(s), this.errorResponse ?
|
|
1547
|
+
), g.getInstance().setSubject(!1), M.getInstance().setSubject(s), this.errorResponse ? o(this.errorResponse) : P) : o(s)),
|
|
1492
1548
|
L((s) => (g.getInstance().setSubject(!1), this.logDebug(
|
|
1493
1549
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
|
|
1494
|
-
),
|
|
1495
|
-
|
|
1550
|
+
), o(s))),
|
|
1551
|
+
U((s) => (this.logError(
|
|
1496
1552
|
`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
|
|
1497
1553
|
), g.getInstance().setSubject(!1), M.getInstance().setSubject(
|
|
1498
|
-
new C().get(s,
|
|
1499
|
-
), this.errorResponse ?
|
|
1554
|
+
new C().get(s, l)
|
|
1555
|
+
), this.errorResponse ? o(this.errorResponse) : P))
|
|
1500
1556
|
);
|
|
1501
1557
|
}
|
|
1502
1558
|
}
|
|
@@ -1504,7 +1560,7 @@ export {
|
|
|
1504
1560
|
me as ApiMiddleware,
|
|
1505
1561
|
C as ErrorCatalog,
|
|
1506
1562
|
ge as FetchServiceBE,
|
|
1507
|
-
|
|
1563
|
+
ne as FetchServiceFE,
|
|
1508
1564
|
g as LoadingHandler,
|
|
1509
1565
|
M as MessageHandler,
|
|
1510
1566
|
De as RxSubjectManager,
|