mp-front-cli 0.0.73 → 0.0.74

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.
@@ -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;AA+WrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAAE,IAAI,CAAC,EAAE,MAAM;;;;;;;;;;;CA6BhE"}
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;AAwjBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAAE,IAAI,CAAC,EAAE,MAAM;;;;;;;;;;;CA6BhE"}
@@ -163,6 +163,27 @@ const e = {
163
163
  "CALCULATOR-GENERIC-001": {
164
164
  title: "Error genérico",
165
165
  message: "Error genérico"
166
+ },
167
+ //Apartadito
168
+ "SAVING_NOT_FOUND-01": {
169
+ title: "Verificar la identificación de guardado",
170
+ message: "Guardando no encontrado"
171
+ },
172
+ "SAVING-BAD-REQUEST-01": {
173
+ title: "Verifica el monto a ahorrar",
174
+ message: "El monto excede el saldo"
175
+ },
176
+ "SAVING-BAD-REQUEST-02": {
177
+ title: "Verificar la identificación del cliente",
178
+ message: "El cliente no coincide"
179
+ },
180
+ "SAVING-BAD-REQUEST-03": {
181
+ title: "Completa el proceso de guardado actual",
182
+ message: "El cliente tiene ahorros en proceso."
183
+ },
184
+ "SAVING-GENERIC-01": {
185
+ title: "Contacta con el equipo de soporte",
186
+ message: "Error de servicio"
166
187
  }
167
188
  }
168
189
  }, a = {
@@ -195,29 +216,8 @@ const e = {
195
216
  title: "Error en la configuración del usuario",
196
217
  message: "Es necesario asignar una clave de vendedor al usuario. Por favor comunícate con nuestra mesa de ayuda para solucionar el problema."
197
218
  },
198
- // Calculator
219
+ // Calculator & Apartadito
199
220
  ...e,
200
- //Apartadito
201
- "SAVING_NOT_FOUND-01": {
202
- title: "Verificar la identificación de guardado",
203
- message: "Guardando no encontrado"
204
- },
205
- "SAVING-BAD-REQUEST-01": {
206
- title: "Verifica el monto a ahorrar",
207
- message: "El monto excede el saldo"
208
- },
209
- "SAVING-BAD-REQUEST-02": {
210
- title: "Verificar la identificación del cliente",
211
- message: "El cliente no coincide"
212
- },
213
- "SAVING-BAD-REQUEST-03": {
214
- title: "Completa el proceso de guardado actual",
215
- message: "El cliente tiene ahorros en proceso."
216
- },
217
- "SAVING-GENERIC-01": {
218
- title: "Contacta con el equipo de soporte",
219
- message: "Error de servicio"
220
- },
221
221
  //JORNADA
222
222
  "JOURNEY-INVALIDATEDATA-01": {
223
223
  title: "Por favor verifique su estructura y los valores de sus atributos.",
@@ -313,6 +313,7 @@ const e = {
313
313
  title: "Error genérico",
314
314
  message: "Error genérico"
315
315
  },
316
+ //BIOMETRIC
316
317
  "PF-BIOMETRIC-001": {
317
318
  title: "Campo inválido",
318
319
  message: "Error en la biometría"
@@ -164,6 +164,26 @@ declare const translation: {
164
164
  title: string;
165
165
  message: string;
166
166
  };
167
+ "SAVING_NOT_FOUND-01": {
168
+ title: string;
169
+ message: string;
170
+ };
171
+ "SAVING-BAD-REQUEST-01": {
172
+ title: string;
173
+ message: string;
174
+ };
175
+ "SAVING-BAD-REQUEST-02": {
176
+ title: string;
177
+ message: string;
178
+ };
179
+ "SAVING-BAD-REQUEST-03": {
180
+ title: string;
181
+ message: string;
182
+ };
183
+ "SAVING-GENERIC-01": {
184
+ title: string;
185
+ message: string;
186
+ };
167
187
  };
168
188
  };
169
189
  export default translation;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4KhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/calculator/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkMhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,25 +1,5 @@
1
1
  declare const translation: {
2
2
  errors: {
3
- "SAVING_NOT_FOUND-01": {
4
- title: string;
5
- message: string;
6
- };
7
- "SAVING-BAD-REQUEST-01": {
8
- title: string;
9
- message: string;
10
- };
11
- "SAVING-BAD-REQUEST-02": {
12
- title: string;
13
- message: string;
14
- };
15
- "SAVING-BAD-REQUEST-03": {
16
- title: string;
17
- message: string;
18
- };
19
- "SAVING-GENERIC-01": {
20
- title: string;
21
- message: string;
22
- };
23
3
  "JOURNEY-INVALIDATEDATA-01": {
24
4
  title: string;
25
5
  message: string;
@@ -297,6 +277,26 @@ declare const translation: {
297
277
  title: string;
298
278
  message: string;
299
279
  };
280
+ "SAVING_NOT_FOUND-01": {
281
+ title: string;
282
+ message: string;
283
+ };
284
+ "SAVING-BAD-REQUEST-01": {
285
+ title: string;
286
+ message: string;
287
+ };
288
+ "SAVING-BAD-REQUEST-02": {
289
+ title: string;
290
+ message: string;
291
+ };
292
+ "SAVING-BAD-REQUEST-03": {
293
+ title: string;
294
+ message: string;
295
+ };
296
+ "SAVING-GENERIC-01": {
297
+ title: string;
298
+ message: string;
299
+ };
300
300
  };
301
301
  default: {
302
302
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -2,7 +2,7 @@ import { ApiMiddleware as S, ErrorCatalog as g, FetchServiceBE as l, FetchServic
2
2
  import { S as s } from "./custom-header-596dcd13.js";
3
3
  import { LoadingHandler as E, MessageHandler as F, RxSubjectManager as M } from "./mp-front-cli-utils-rxjs.es.js";
4
4
  import "i18next";
5
- import "./index-a0e4df41.js";
5
+ import "./index-83f54780.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -1,28 +1,28 @@
1
- var N = Object.defineProperty;
2
- var w = (l, t, e) => t in l ? N(l, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[t] = e;
3
- var L = (l, t, e) => (w(l, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { C as Q, f } from "./custom-header-596dcd13.js";
5
- import { S as Ue } from "./custom-header-596dcd13.js";
6
- import { MessageHandler as B, LoadingHandler as m } from "./mp-front-cli-utils-rxjs.es.js";
7
- import { RxSubjectManager as me } from "./mp-front-cli-utils-rxjs.es.js";
8
- import P, { t as g } from "i18next";
9
- import { t as v } from "./index-a0e4df41.js";
10
- import { CustomLogger as M } from "./mp-front-cli-logger.es.js";
11
- import { of as R, switchMap as E, forkJoin as D, catchError as h, EMPTY as I, filter as y } from "rxjs";
12
- import { CustomEncrypter as b } from "./mp-front-cli-encrypter.es.js";
13
- import { CustomEncoder as F } from "./mp-front-cli-encoder.es.js";
14
- import { u as $ } from "./stringify-788d71a0.js";
1
+ var Q = Object.defineProperty;
2
+ var h = (l, t, e) => t in l ? Q(l, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[t] = e;
3
+ var L = (l, t, e) => (h(l, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { C as w, f as D } from "./custom-header-596dcd13.js";
5
+ import { S as me } from "./custom-header-596dcd13.js";
6
+ import { MessageHandler as u, LoadingHandler as U } from "./mp-front-cli-utils-rxjs.es.js";
7
+ import { RxSubjectManager as Ue } from "./mp-front-cli-utils-rxjs.es.js";
8
+ import v, { t as C } from "i18next";
9
+ import { t as x } from "./index-83f54780.js";
10
+ import { CustomLogger as G } from "./mp-front-cli-logger.es.js";
11
+ import { of as T, switchMap as c, forkJoin as I, catchError as B, EMPTY as p, filter as P } from "rxjs";
12
+ import { CustomEncrypter as M } from "./mp-front-cli-encrypter.es.js";
13
+ import { CustomEncoder as V } from "./mp-front-cli-encoder.es.js";
14
+ import { u as F } from "./stringify-788d71a0.js";
15
15
  import "node-jose";
16
16
  import "crypto";
17
- const H = {
17
+ const J = {
18
18
  es: {
19
19
  translation: {
20
- ...v
20
+ ...x
21
21
  }
22
22
  }
23
23
  };
24
- P.init({
25
- resources: H,
24
+ v.init({
25
+ resources: J,
26
26
  lng: "es",
27
27
  // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
28
28
  // you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage
@@ -34,7 +34,7 @@ P.init({
34
34
  },
35
35
  debug: !1
36
36
  });
37
- const U = {
37
+ const m = {
38
38
  "MP-001": {
39
39
  code: 400,
40
40
  type: "modal",
@@ -110,7 +110,7 @@ const U = {
110
110
  "SCORE-CLIENTREJECTED-01": {
111
111
  title: "errors.calculator.SCORE-CLIENTREJECTED-01.title",
112
112
  message: "errors.calculator.SCORE-CLIENTREJECTED-01.message",
113
- code: 420,
113
+ code: 310,
114
114
  type: "modal",
115
115
  level: "warning"
116
116
  },
@@ -393,34 +393,234 @@ const U = {
393
393
  code: 420,
394
394
  type: "modal",
395
395
  level: "warning"
396
+ },
397
+ //Apartadito
398
+ "SAVING_NOT_FOUND-01": {
399
+ title: "errors.calculator.SAVING_NOT_FOUND-01.title",
400
+ message: "errors.calculator.SAVING_NOT_FOUND-01.message",
401
+ code: 420,
402
+ type: "modal",
403
+ level: "warning"
404
+ },
405
+ "SAVING-BAD-REQUEST-01": {
406
+ title: "errors.calculator.SAVING-BAD-REQUEST-01.title",
407
+ message: "errors.calculator.SAVING-BAD-REQUEST-01.message",
408
+ code: 420,
409
+ type: "modal",
410
+ level: "warning"
411
+ },
412
+ "SAVING-BAD-REQUEST-02": {
413
+ title: "errors.calculator.SAVING-BAD-REQUEST-02.title",
414
+ message: "errors.calculator.SAVING-BAD-REQUEST-02.message",
415
+ code: 420,
416
+ type: "modal",
417
+ level: "warning"
418
+ },
419
+ "SAVING-BAD-REQUEST-03": {
420
+ title: "errors.calculator.SAVING-BAD-REQUEST-03.title",
421
+ message: "errors.calculator.SAVING-BAD-REQUEST-03.message",
422
+ code: 420,
423
+ type: "modal",
424
+ level: "warning"
425
+ },
426
+ "SAVING-GENERIC-01": {
427
+ title: "errors.calculator.SAVING-GENERIC-01.title",
428
+ message: "errors.calculator.SAVING-GENERIC-01.message",
429
+ code: 420,
430
+ type: "modal",
431
+ level: "warning"
432
+ },
433
+ //JORNADA
434
+ "JOURNEY-INVALIDATEDATA-01": {
435
+ title: "errors.JOURNEY-INVALIDATEDATA-01.title",
436
+ message: "errors.JOURNEY-INVALIDATEDATA-01.message",
437
+ code: 420,
438
+ type: "modal",
439
+ level: "warning"
440
+ },
441
+ "JOURNEY-DATANOTFOUND-02": {
442
+ title: "errors.JOURNEY-DATANOTFOUND-02.title",
443
+ message: "errors.JOURNEY-DATANOTFOUND-02.message",
444
+ code: 420,
445
+ type: "modal",
446
+ level: "warning"
447
+ },
448
+ "JOURNEY-FLOWEND-03": {
449
+ title: "errors.JOURNEY-FLOWEND-03.title",
450
+ message: "errors.JOURNEY-FLOWEND-03.message",
451
+ code: 420,
452
+ type: "modal",
453
+ level: "warning"
454
+ },
455
+ "PF-ERROR-GENERIC": {
456
+ title: "errors.PF-ERROR-GENERIC.title",
457
+ message: "errors.PF-ERROR-GENERIC.message",
458
+ code: 420,
459
+ type: "modal",
460
+ level: "warning"
461
+ },
462
+ "JOURNEY-IDSTATEINCORRECT-04": {
463
+ title: "errors.JOURNEY-IDSTATEINCORRECT-04.title",
464
+ message: "errors.JOURNEY-IDSTATEINCORRECT-04.message",
465
+ code: 420,
466
+ type: "modal",
467
+ level: "warning"
468
+ },
469
+ "JOURNEY-HEADERS-05": {
470
+ title: "errors.JOURNEY-HEADERS-05.title",
471
+ message: "errors.JOURNEY-HEADERS-05.message",
472
+ code: 420,
473
+ type: "modal",
474
+ level: "warning"
475
+ },
476
+ //INITIAL
477
+ "INITIAL-INVALIDATEDATA-01": {
478
+ title: "errors.INITIAL-INVALIDATEDATA-01.title",
479
+ message: "errors.INITIAL-INVALIDATEDATA-01.message",
480
+ code: 420,
481
+ type: "modal",
482
+ level: "warning"
483
+ },
484
+ "INITIAL-DATANOTFOUND-02": {
485
+ title: "errors.INITIAL-DATANOTFOUND-02.title",
486
+ message: "errors.INITIAL-DATANOTFOUND-02.message",
487
+ code: 420,
488
+ type: "modal",
489
+ level: "warning"
490
+ },
491
+ "INITIAL-HEADERS-03": {
492
+ title: "errors.INITIAL-HEADERS-03.title",
493
+ message: "errors.INITIAL-HEADERS-03.message",
494
+ code: 420,
495
+ type: "modal",
496
+ level: "warning"
497
+ },
498
+ //PERSONAL DATA
499
+ "PERSONALDATA-INVALID-MEDIA-TYPE": {
500
+ title: "errors.PERSONALDATA-INVALID-MEDIA-TYPE.title",
501
+ message: "errors.PERSONALDATA-INVALID-MEDIA-TYPE.message",
502
+ code: 420,
503
+ type: "modal",
504
+ level: "warning"
505
+ },
506
+ "PERSONALDATA-INVALID-CONTENT-TYPE": {
507
+ title: "errors.PERSONALDATA-INVALID-CONTENT-TYPE.title",
508
+ message: "errors.PERSONALDATA-INVALID-CONTENT-TYPE.message",
509
+ code: 420,
510
+ type: "modal",
511
+ level: "warning"
512
+ },
513
+ "PERSONALDATA-INVALID-DATA-TYPE": {
514
+ title: "errors.PERSONALDATA-INVALID-DATA-TYPE.title",
515
+ message: "errors.PERSONALDATA-INVALID-DATA-TYPE.message",
516
+ code: 420,
517
+ type: "modal",
518
+ level: "warning"
519
+ },
520
+ "PERSONALDATA-UNKNOWN-REGISTER-01": {
521
+ title: "errors.PERSONALDATA-UNKNOWN-REGISTER-01.title",
522
+ message: "errors.PERSONALDATA-UNKNOWN-REGISTER-01.message",
523
+ code: 420,
524
+ type: "modal",
525
+ level: "warning"
526
+ },
527
+ "PERSONALDATA-UNKNOWN-REGISTER-02": {
528
+ title: "errors.PERSONALDATA-UNKNOWN-REGISTER-02.title",
529
+ message: "errors.PERSONALDATA-UNKNOWN-REGISTER-02.message",
530
+ code: 420,
531
+ type: "modal",
532
+ level: "warning"
533
+ },
534
+ "PERSONALDATA-BAD-REQUEST-01": {
535
+ title: "errors.PERSONALDATA-BAD-REQUEST-01.title",
536
+ message: "errors.PERSONALDATA-BAD-REQUEST-01.message",
537
+ code: 420,
538
+ type: "modal",
539
+ level: "warning"
540
+ },
541
+ "PERSONALDATA-BAD-REQUEST-02": {
542
+ title: "errors.PERSONALDATA-BAD-REQUEST-02.title",
543
+ message: "errors.PERSONALDATA-BAD-REQUEST-02.message",
544
+ code: 420,
545
+ type: "modal",
546
+ level: "warning"
547
+ },
548
+ "PERSONALDATA-BAD-REQUEST-03": {
549
+ title: "errors.PERSONALDATA-BAD-REQUEST-03.title",
550
+ message: "errors.PERSONALDATA-BAD-REQUEST-03.message",
551
+ code: 420,
552
+ type: "modal",
553
+ level: "warning"
554
+ },
555
+ "PERSONALDATA-BAD-REQUEST-04": {
556
+ title: "errors.PERSONALDATA-BAD-REQUEST-04.title",
557
+ message: "errors.PERSONALDATA-BAD-REQUEST-04.message",
558
+ code: 420,
559
+ type: "modal",
560
+ level: "warning"
561
+ },
562
+ "PERSONALDATA-BAD-REQUEST-05": {
563
+ title: "errors.PERSONALDATA-BAD-REQUEST-05.title",
564
+ message: "errors.PERSONALDATA-BAD-REQUEST-05.message",
565
+ code: 420,
566
+ type: "modal",
567
+ level: "warning"
568
+ },
569
+ "PERSONALDATA-BAD-REQUEST-06": {
570
+ title: "errors.PERSONALDATA-BAD-REQUEST-06.title",
571
+ message: "errors.PERSONALDATA-BAD-REQUEST-06.message",
572
+ code: 420,
573
+ type: "modal",
574
+ level: "warning"
575
+ },
576
+ "PERSONALDATA-BAD-REQUEST-07": {
577
+ title: "errors.PERSONALDATA-BAD-REQUEST-07.title",
578
+ message: "errors.PERSONALDATA-BAD-REQUEST-07.message",
579
+ code: 420,
580
+ type: "modal",
581
+ level: "warning"
582
+ },
583
+ "PERSONALDATA-BAD-REQUEST-08": {
584
+ title: "errors.PERSONALDATA-BAD-REQUEST-08.title",
585
+ message: "errors.PERSONALDATA-BAD-REQUEST-08.message",
586
+ code: 420,
587
+ type: "modal",
588
+ level: "warning"
589
+ },
590
+ "PERSONALDATA-GENERIC-ERROR": {
591
+ title: "errors.PERSONALDATA-GENERIC-ERROR.title",
592
+ message: "errors.PERSONALDATA-GENERIC-ERROR.message",
593
+ code: 420,
594
+ type: "modal",
595
+ level: "warning"
396
596
  }
397
597
  };
398
- class d extends M {
598
+ class O extends G {
399
599
  get(t = "default", e) {
400
- var o, s;
600
+ var A, a;
401
601
  if (t instanceof Error)
402
602
  return this.logError(t.message), {
403
- ...U.internalError,
404
- title: g(U.internalError.title),
405
- message: g(U.internalError.message),
603
+ ...m.internalError,
604
+ title: C(m.internalError.title),
605
+ message: C(m.internalError.message),
406
606
  uuid: e
407
607
  };
408
- const r = typeof t == "string" ? t : t.code ?? t.errorType, a = typeof t == "string" ? {} : { ...t };
608
+ const r = typeof t == "string" ? t : t.code ?? t.errorType, s = typeof t == "string" ? {} : { ...t };
409
609
  return {
410
- ...U[r] ?? U.default,
411
- title: g(
412
- ((o = U[r]) == null ? void 0 : o.title) ?? U.default.title,
413
- a
610
+ ...m[r] ?? m.default,
611
+ title: C(
612
+ ((A = m[r]) == null ? void 0 : A.title) ?? m.default.title,
613
+ s
414
614
  ),
415
- message: g(
416
- ((s = U[r]) == null ? void 0 : s.message) ?? U.default.message,
417
- a
615
+ message: C(
616
+ ((a = m[r]) == null ? void 0 : a.message) ?? m.default.message,
617
+ s
418
618
  ),
419
619
  uuid: e
420
620
  };
421
621
  }
422
622
  }
423
- class ne extends b {
623
+ class Re extends M {
424
624
  constructor() {
425
625
  super(...arguments);
426
626
  L(this, "uuid", "");
@@ -431,156 +631,156 @@ class ne extends b {
431
631
  }
432
632
  getSession() {
433
633
  if (!this.session)
434
- throw new d().get("SESSION_NOT_FOUND");
634
+ throw new O().get("SESSION_NOT_FOUND");
435
635
  return this.session;
436
636
  }
437
- returnData(e, r, a) {
438
- const o = this.encode(r, a);
439
- e.status(200).json(o);
637
+ returnData(e, r, s) {
638
+ const A = this.encode(r, s);
639
+ e.status(200).json(A);
440
640
  }
441
641
  returnError(e, r) {
442
- return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new d().get(r, this.uuid));
642
+ return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new O().get(r, this.uuid));
443
643
  }
444
644
  get(e) {
445
- return this.logDebug("get ApiMiddleware"), (r, a) => {
446
- var o;
447
- this.logDebug("return ApiMiddleware"), this.uuid = (o = r == null ? void 0 : r.body) == null ? void 0 : o.uuid, R(r).pipe(
448
- E(
449
- (s) => D({
450
- params: R(this.decode(s.body)),
451
- headers: R(s.headers)
645
+ return this.logDebug("get ApiMiddleware"), (r, s) => {
646
+ var A;
647
+ this.logDebug("return ApiMiddleware"), this.uuid = (A = r == null ? void 0 : r.body) == null ? void 0 : A.uuid, T(r).pipe(
648
+ c(
649
+ (a) => I({
650
+ params: T(this.decode(a.body)),
651
+ headers: T(a.headers)
452
652
  })
453
653
  ),
454
- E(
455
- ({ params: s, headers: A }) => D({
456
- response: e(s, this.uuid, A),
457
- headers: R(A),
458
- params: R(s)
654
+ c(
655
+ ({ params: a, headers: o }) => I({
656
+ response: e(a, this.uuid, o),
657
+ headers: T(o),
658
+ params: T(a)
459
659
  })
460
660
  ),
461
- E(({ params: s, response: A, headers: i }) => (this.logDebug(
462
- `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(i)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(s)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)}`
463
- ), R(A))),
464
- h((s) => {
465
- var A;
661
+ c(({ params: a, response: o, headers: E }) => (this.logDebug(
662
+ `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(E)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(a)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)}`
663
+ ), T(o))),
664
+ B((a) => {
665
+ var o;
466
666
  return this.logError(
467
- `ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(A = r == null ? void 0 : r.body) == null ? void 0 : A.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(s)}`
468
- ), this.returnError(a, s), I;
667
+ `ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(o = r == null ? void 0 : r.body) == null ? void 0 : o.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(a)}`
668
+ ), this.returnError(s, a), p;
469
669
  })
470
670
  ).subscribe({
471
- next: (s) => {
472
- this.logDebug("ApiMiddleware subscribe next", JSON.stringify(s)), this.returnData(a, s, this.uuid);
671
+ next: (a) => {
672
+ this.logDebug("ApiMiddleware subscribe next", JSON.stringify(a)), this.returnData(s, a, this.uuid);
473
673
  }
474
674
  });
475
675
  };
476
676
  }
477
677
  }
478
- const J = process.env.ID_FRONT ?? "NOT_AVAILABLE";
479
- class Re extends Q {
480
- constructor(e, r, a = {}) {
481
- super(a);
678
+ const b = process.env.ID_FRONT ?? "NOT_AVAILABLE";
679
+ class Te extends w {
680
+ constructor(e, r, s = {}) {
681
+ super(s);
482
682
  L(this, "apiUrl");
483
683
  L(this, "method");
484
684
  this.apiUrl = e, this.method = r ?? "POST";
485
685
  }
486
686
  errorHandler(e, r) {
487
687
  if (e != null && e.errors)
488
- throw new d().get(e.errors[0], r);
688
+ throw new O().get(e.errors[0], r);
489
689
  return !(e != null && e.errors);
490
690
  }
491
691
  formatParams(e) {
492
692
  return JSON.stringify({
493
693
  data: {
494
- type: J,
694
+ type: b,
495
695
  attributes: e
496
696
  }
497
697
  });
498
698
  }
499
699
  fetchData(e = {}, r) {
500
700
  return this.getHeaders().pipe(
501
- E(
502
- (a) => f(
701
+ c(
702
+ (s) => D(
503
703
  this.apiUrl,
504
704
  {
505
705
  method: "POST",
506
- headers: a,
706
+ headers: s,
507
707
  body: this.formatParams(e),
508
- selector: (o) => o.json()
708
+ selector: (A) => A.json()
509
709
  }
510
710
  ).pipe(
511
- E((o) => (this.logDebug(
711
+ c((A) => (this.logDebug(
512
712
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
513
- a
713
+ s
514
714
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
515
715
  this.formatParams(e)
516
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)} \x1B[33m`
517
- ), R(o)))
716
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)} \x1B[33m`
717
+ ), T(A)))
518
718
  )
519
719
  ),
520
- y((a) => this.errorHandler(a, r))
720
+ P((s) => this.errorHandler(s, r))
521
721
  );
522
722
  }
523
723
  fetchCustomData(e = {}, r) {
524
724
  return this.getHeaders().pipe(
525
- E(
526
- (a) => f(this.apiUrl, {
725
+ c(
726
+ (s) => D(this.apiUrl, {
527
727
  method: this.method,
528
- headers: a,
728
+ headers: s,
529
729
  body: this.method === "GET" ? null : JSON.stringify(e),
530
- selector: (o) => o.json()
730
+ selector: (A) => A.json()
531
731
  }).pipe(
532
- E((o) => (this.logDebug(
732
+ c((A) => (this.logDebug(
533
733
  `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(
534
- a
734
+ s
535
735
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
536
736
  e
537
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)} \x1B[33m`
538
- ), R(o)))
737
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)} \x1B[33m`
738
+ ), T(A)))
539
739
  )
540
740
  )
541
741
  );
542
742
  }
543
743
  }
544
- const G = /^(?:[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;
545
- function V(l) {
546
- return typeof l == "string" && G.test(l);
744
+ const Y = /^(?:[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;
745
+ function H(l) {
746
+ return typeof l == "string" && Y.test(l);
547
747
  }
548
- function j(l) {
549
- if (!V(l))
748
+ function $(l) {
749
+ if (!H(l))
550
750
  throw TypeError("Invalid UUID");
551
751
  let t;
552
752
  const e = new Uint8Array(16);
553
753
  return e[0] = (t = parseInt(l.slice(0, 8), 16)) >>> 24, e[1] = t >>> 16 & 255, e[2] = t >>> 8 & 255, e[3] = t & 255, e[4] = (t = parseInt(l.slice(9, 13), 16)) >>> 8, e[5] = t & 255, e[6] = (t = parseInt(l.slice(14, 18), 16)) >>> 8, e[7] = t & 255, e[8] = (t = parseInt(l.slice(19, 23), 16)) >>> 8, e[9] = t & 255, e[10] = (t = parseInt(l.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = t / 4294967296 & 255, e[12] = t >>> 24 & 255, e[13] = t >>> 16 & 255, e[14] = t >>> 8 & 255, e[15] = t & 255, e;
554
754
  }
555
- function Y(l) {
755
+ function j(l) {
556
756
  l = unescape(encodeURIComponent(l));
557
757
  const t = [];
558
758
  for (let e = 0; e < l.length; ++e)
559
759
  t.push(l.charCodeAt(e));
560
760
  return t;
561
761
  }
562
- const Z = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", _ = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
563
- function k(l, t, e) {
564
- function r(a, o, s, A) {
565
- var i;
566
- if (typeof a == "string" && (a = Y(a)), typeof o == "string" && (o = j(o)), ((i = o) === null || i === void 0 ? void 0 : i.length) !== 16)
762
+ const _ = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", W = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
763
+ function K(l, t, e) {
764
+ function r(s, A, a, o) {
765
+ var E;
766
+ if (typeof s == "string" && (s = j(s)), typeof A == "string" && (A = $(A)), ((E = A) === null || E === void 0 ? void 0 : E.length) !== 16)
567
767
  throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
568
- let n = new Uint8Array(16 + a.length);
569
- if (n.set(o), n.set(a, o.length), n = e(n), n[6] = n[6] & 15 | t, n[8] = n[8] & 63 | 128, s) {
570
- A = A || 0;
571
- for (let C = 0; C < 16; ++C)
572
- s[A + C] = n[C];
573
- return s;
768
+ let R = new Uint8Array(16 + s.length);
769
+ if (R.set(A), R.set(s, A.length), R = e(R), R[6] = R[6] & 15 | t, R[8] = R[8] & 63 | 128, a) {
770
+ o = o || 0;
771
+ for (let n = 0; n < 16; ++n)
772
+ a[o + n] = R[n];
773
+ return a;
574
774
  }
575
- return $(n);
775
+ return F(R);
576
776
  }
577
777
  try {
578
778
  r.name = l;
579
779
  } catch {
580
780
  }
581
- return r.DNS = Z, r.URL = _, r;
781
+ return r.DNS = _, r.URL = W, r;
582
782
  }
583
- function K(l, t, e, r) {
783
+ function Z(l, t, e, r) {
584
784
  switch (l) {
585
785
  case 0:
586
786
  return t & e ^ ~t & r;
@@ -592,45 +792,45 @@ function K(l, t, e, r) {
592
792
  return t ^ e ^ r;
593
793
  }
594
794
  }
595
- function u(l, t) {
795
+ function d(l, t) {
596
796
  return l << t | l >>> 32 - t;
597
797
  }
598
- function W(l) {
798
+ function k(l) {
599
799
  const t = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
600
800
  if (typeof l == "string") {
601
- const s = unescape(encodeURIComponent(l));
801
+ const a = unescape(encodeURIComponent(l));
602
802
  l = [];
603
- for (let A = 0; A < s.length; ++A)
604
- l.push(s.charCodeAt(A));
803
+ for (let o = 0; o < a.length; ++o)
804
+ l.push(a.charCodeAt(o));
605
805
  } else
606
806
  Array.isArray(l) || (l = Array.prototype.slice.call(l));
607
807
  l.push(128);
608
- const r = l.length / 4 + 2, a = Math.ceil(r / 16), o = new Array(a);
609
- for (let s = 0; s < a; ++s) {
610
- const A = new Uint32Array(16);
611
- for (let i = 0; i < 16; ++i)
612
- A[i] = l[s * 64 + i * 4] << 24 | l[s * 64 + i * 4 + 1] << 16 | l[s * 64 + i * 4 + 2] << 8 | l[s * 64 + i * 4 + 3];
613
- o[s] = A;
808
+ const r = l.length / 4 + 2, s = Math.ceil(r / 16), A = new Array(s);
809
+ for (let a = 0; a < s; ++a) {
810
+ const o = new Uint32Array(16);
811
+ for (let E = 0; E < 16; ++E)
812
+ o[E] = l[a * 64 + E * 4] << 24 | l[a * 64 + E * 4 + 1] << 16 | l[a * 64 + E * 4 + 2] << 8 | l[a * 64 + E * 4 + 3];
813
+ A[a] = o;
614
814
  }
615
- o[a - 1][14] = (l.length - 1) * 8 / Math.pow(2, 32), o[a - 1][14] = Math.floor(o[a - 1][14]), o[a - 1][15] = (l.length - 1) * 8 & 4294967295;
616
- for (let s = 0; s < a; ++s) {
617
- const A = new Uint32Array(80);
618
- for (let c = 0; c < 16; ++c)
619
- A[c] = o[s][c];
620
- for (let c = 16; c < 80; ++c)
621
- A[c] = u(A[c - 3] ^ A[c - 8] ^ A[c - 14] ^ A[c - 16], 1);
622
- let i = e[0], n = e[1], C = e[2], T = e[3], O = e[4];
623
- for (let c = 0; c < 80; ++c) {
624
- const S = Math.floor(c / 20), x = u(i, 5) + K(S, n, C, T) + O + t[S] + A[c] >>> 0;
625
- O = T, T = C, C = u(n, 30) >>> 0, n = i, i = x;
815
+ A[s - 1][14] = (l.length - 1) * 8 / Math.pow(2, 32), A[s - 1][14] = Math.floor(A[s - 1][14]), A[s - 1][15] = (l.length - 1) * 8 & 4294967295;
816
+ for (let a = 0; a < s; ++a) {
817
+ const o = new Uint32Array(80);
818
+ for (let i = 0; i < 16; ++i)
819
+ o[i] = A[a][i];
820
+ for (let i = 16; i < 80; ++i)
821
+ o[i] = d(o[i - 3] ^ o[i - 8] ^ o[i - 14] ^ o[i - 16], 1);
822
+ let E = e[0], R = e[1], n = e[2], g = e[3], S = e[4];
823
+ for (let i = 0; i < 80; ++i) {
824
+ const N = Math.floor(i / 20), y = d(E, 5) + Z(N, R, n, g) + S + t[N] + o[i] >>> 0;
825
+ S = g, g = n, n = d(R, 30) >>> 0, R = E, E = y;
626
826
  }
627
- e[0] = e[0] + i >>> 0, e[1] = e[1] + n >>> 0, e[2] = e[2] + C >>> 0, e[3] = e[3] + T >>> 0, e[4] = e[4] + O >>> 0;
827
+ e[0] = e[0] + E >>> 0, e[1] = e[1] + R >>> 0, e[2] = e[2] + n >>> 0, e[3] = e[3] + g >>> 0, e[4] = e[4] + S >>> 0;
628
828
  }
629
829
  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];
630
830
  }
631
- const X = k("v5", 80, W), p = X;
632
- class Ee extends F {
633
- constructor(e, r = "POST", a = {}) {
831
+ const X = K("v5", 80, k), f = X;
832
+ class ce extends V {
833
+ constructor(e, r = "POST", s = {}) {
634
834
  super();
635
835
  L(this, "apiUrl");
636
836
  L(this, "method");
@@ -638,44 +838,44 @@ class Ee extends F {
638
838
  L(this, "isLoadingEnabled", !0);
639
839
  this.apiUrl = e, this.method = r, this.headers = {
640
840
  "Content-Type": "application/json",
641
- ...a
841
+ ...s
642
842
  };
643
843
  }
644
844
  setIsLoadingEnabled(e) {
645
845
  this.isLoadingEnabled = e;
646
846
  }
647
847
  errorHandler(e) {
648
- return e.code && (e.type === "modal" || e.type === "message") && (B.getInstance().setSubject(e), m.getInstance().setSubject(!1)), !e.code;
848
+ return e.code && (e.type === "modal" || e.type === "message") && (u.getInstance().setSubject(e), U.getInstance().setSubject(!1)), !e.code;
649
849
  }
650
850
  fetchData(e = {}) {
651
- const r = (/* @__PURE__ */ new Date()).toISOString(), a = p(r, p.URL), o = this.encode({ ...e }, a);
652
- m.getInstance().setSubject(this.isLoadingEnabled);
653
- const A = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
654
- return f(this.apiUrl, {
851
+ const r = (/* @__PURE__ */ new Date()).toISOString(), s = f(r, f.URL), A = this.encode({ ...e }, s);
852
+ U.getInstance().setSubject(this.isLoadingEnabled);
853
+ const o = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
854
+ return D(this.apiUrl, {
655
855
  method: this.method,
656
- headers: { ...this.headers, flow: A },
657
- body: o,
658
- selector: (i) => i.json()
856
+ headers: { ...this.headers, flow: o },
857
+ body: A,
858
+ selector: (E) => E.json()
659
859
  }).pipe(
660
- E((i) => R(this.decode(i))),
661
- E((i) => (this.logDebug(
662
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(i)}`
663
- ), R(i))),
664
- y(this.errorHandler),
665
- E((i) => (m.getInstance().setSubject(!1), R(i))),
666
- h((i) => (m.getInstance().setSubject(!1), B.getInstance().setSubject(
667
- new d().get(i, a)
668
- ), I))
860
+ c((E) => T(this.decode(E))),
861
+ c((E) => (this.logDebug(
862
+ `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${A} <RESPONSE>: ${JSON.stringify(E)}`
863
+ ), T(E))),
864
+ P(this.errorHandler),
865
+ c((E) => (U.getInstance().setSubject(!1), T(E))),
866
+ B((E) => (U.getInstance().setSubject(!1), u.getInstance().setSubject(
867
+ new O().get(E, s)
868
+ ), p))
669
869
  );
670
870
  }
671
871
  }
672
872
  export {
673
- ne as ApiMiddleware,
674
- d as ErrorCatalog,
675
- Re as FetchServiceBE,
676
- Ee as FetchServiceFE,
677
- m as LoadingHandler,
678
- B as MessageHandler,
679
- me as RxSubjectManager,
680
- Ue as ServiceToken
873
+ Re as ApiMiddleware,
874
+ O as ErrorCatalog,
875
+ Te as FetchServiceBE,
876
+ ce as FetchServiceFE,
877
+ U as LoadingHandler,
878
+ u as MessageHandler,
879
+ Ue as RxSubjectManager,
880
+ me as ServiceToken
681
881
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./index-a0e4df41.js";
1
+ import { t } from "./index-83f54780.js";
2
2
  const e = {
3
3
  errors: {}
4
4
  }, a = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {