mp-front-cli 0.0.121 → 0.0.123

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;AA4yBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
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;AAq0BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
@@ -599,6 +599,14 @@ const e = {
599
599
  title: "Código incorrecto",
600
600
  message: "Código invalido, por favor de generar uno nuevo"
601
601
  },
602
+ "COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001": {
603
+ title: "Clave de presolicitud no identificada",
604
+ message: "Por favor vuelve a intentarlo o contacta al administrador"
605
+ },
606
+ "COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002": {
607
+ title: "Clave de presolicitud no identificada",
608
+ message: "Por favor vuelve a intentarlo o contacta al administrador"
609
+ },
602
610
  "COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001": {
603
611
  title: "Código expirado",
604
612
  message: "Por favor de generar otro código"
@@ -625,7 +633,7 @@ const e = {
625
633
  },
626
634
  //ENROLLMENT
627
635
  ...o.enrollment,
628
- //Personal References
636
+ //PERSONAL REFERENCES
629
637
  "PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
630
638
  title: "Intentar con otra referencia",
631
639
  message: "La referencia se encuentra con creditos activos"
@@ -650,6 +658,10 @@ const e = {
650
658
  title: "Referencias no válidas",
651
659
  message: "El cliente debe tener al menos una referencia con parentesco directo"
652
660
  },
661
+ "PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001": {
662
+ title: "Referencias no válidas",
663
+ message: "No se puede tener de referencia más de un Padre o Madre a la vez"
664
+ },
653
665
  //PAYMENTS
654
666
  "SALES-SUMMARY-GENERIC-ERROR-001": {
655
667
  title: "Ocurrió un error resumen de venta",
@@ -24,6 +24,10 @@ declare const translation: {
24
24
  title: string;
25
25
  message: string;
26
26
  };
27
+ "PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001": {
28
+ title: string;
29
+ message: string;
30
+ };
27
31
  "SALES-SUMMARY-GENERIC-ERROR-001": {
28
32
  title: string;
29
33
  message: string;
@@ -352,6 +356,14 @@ declare const translation: {
352
356
  title: string;
353
357
  message: string;
354
358
  };
359
+ "COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001": {
360
+ title: string;
361
+ message: string;
362
+ };
363
+ "COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002": {
364
+ title: string;
365
+ message: string;
366
+ };
355
367
  "COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001": {
356
368
  title: string;
357
369
  message: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwShB,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-db8a4e91.js";
5
+ import "./index-0cc7a8bb.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -2,14 +2,14 @@ var u = Object.defineProperty;
2
2
  var f = (t, E, e) => E in t ? u(t, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[E] = e;
3
3
  var O = (t, E, e) => (f(t, typeof E != "symbol" ? E + "" : E, e), e);
4
4
  import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-rxjs.es.js";
5
- import { RxSubjectManager as ne } from "./mp-front-cli-utils-rxjs.es.js";
5
+ import { RxSubjectManager as Se } from "./mp-front-cli-utils-rxjs.es.js";
6
6
  import { f as c } from "./index-def0b487.js";
7
7
  import { S as De } from "./index-def0b487.js";
8
- import v, { t as U } from "i18next";
9
- import { t as w } from "./index-db8a4e91.js";
10
- import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
11
- import { of as T, switchMap as L, forkJoin as B, catchError as n, EMPTY as P, filter as h } from "rxjs";
12
- import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
8
+ import F, { t as U } from "i18next";
9
+ import { t as v } from "./index-0cc7a8bb.js";
10
+ import { CustomLogger as w } from "./mp-front-cli-logger.es.js";
11
+ import { of as T, switchMap as L, forkJoin as B, catchError as S, EMPTY as P, filter as V } from "rxjs";
12
+ import { CustomEncrypter as h } from "./mp-front-cli-encrypter.es.js";
13
13
  import { CustomHeader as Q } 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 G } from "./stringify-788d71a0.js";
@@ -18,11 +18,11 @@ import "crypto";
18
18
  const Y = {
19
19
  es: {
20
20
  translation: {
21
- ...w
21
+ ...v
22
22
  }
23
23
  }
24
24
  };
25
- v.init({
25
+ F.init({
26
26
  resources: Y,
27
27
  lng: "es",
28
28
  // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
@@ -370,7 +370,7 @@ const H = {
370
370
  }, _ = {
371
371
  ...J,
372
372
  ...K
373
- }, I = {
373
+ }, i = {
374
374
  "MP-001": {
375
375
  code: 400,
376
376
  type: "modal",
@@ -471,6 +471,20 @@ const H = {
471
471
  type: "modal",
472
472
  level: "warning"
473
473
  },
474
+ "COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001": {
475
+ title: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001.title",
476
+ message: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001.message",
477
+ code: 310,
478
+ type: "modal",
479
+ level: "warning"
480
+ },
481
+ "COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002": {
482
+ title: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002.title",
483
+ message: "errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002.message",
484
+ code: 310,
485
+ type: "modal",
486
+ level: "warning"
487
+ },
474
488
  "COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001": {
475
489
  title: "errors.COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001.title",
476
490
  message: "errors.COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001.message",
@@ -1092,7 +1106,7 @@ const H = {
1092
1106
  type: "modal",
1093
1107
  level: "warning"
1094
1108
  },
1095
- //Personal references
1109
+ //PERSONAL REFERENCES
1096
1110
  "PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01": {
1097
1111
  title: "errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.title",
1098
1112
  message: "errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.message",
@@ -1135,6 +1149,13 @@ const H = {
1135
1149
  type: "modal",
1136
1150
  level: "warning"
1137
1151
  },
1152
+ "PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001": {
1153
+ title: "errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.title",
1154
+ message: "errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.message",
1155
+ code: 422,
1156
+ type: "modal",
1157
+ level: "warning"
1158
+ },
1138
1159
  //PAYMENTS
1139
1160
  "SALES-SUMMARY-GENERIC-ERROR-001": {
1140
1161
  title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
@@ -1168,34 +1189,34 @@ const H = {
1168
1189
  ...H,
1169
1190
  ..._
1170
1191
  };
1171
- class C extends F {
1192
+ class C extends w {
1172
1193
  get(E = "default", e = "NOT_FOUND") {
1173
1194
  var s, A;
1174
1195
  if (E instanceof Error)
1175
1196
  return this.logError(E.message), {
1176
- ...I.internalError,
1177
- title: U(I.internalError.title),
1178
- message: U(I.internalError.message),
1197
+ ...i.internalError,
1198
+ title: U(i.internalError.title),
1199
+ message: U(i.internalError.message),
1179
1200
  uuid: e
1180
1201
  };
1181
1202
  const r = typeof E == "string" ? E : E.code ?? E.errorType;
1182
1203
  this.logDebug("statusCode", r);
1183
1204
  const l = typeof E == "string" ? {} : { ...E };
1184
1205
  return {
1185
- ...I[r] ?? I.default,
1206
+ ...i[r] ?? i.default,
1186
1207
  title: U(
1187
- ((s = I[r]) == null ? void 0 : s.title) ?? I.default.title,
1208
+ ((s = i[r]) == null ? void 0 : s.title) ?? i.default.title,
1188
1209
  l
1189
1210
  ),
1190
1211
  message: U(
1191
- ((A = I[r]) == null ? void 0 : A.message) ?? I.default.message,
1212
+ ((A = i[r]) == null ? void 0 : A.message) ?? i.default.message,
1192
1213
  l
1193
1214
  ),
1194
1215
  uuid: e
1195
1216
  };
1196
1217
  }
1197
1218
  }
1198
- class Ie extends V {
1219
+ class ie extends h {
1199
1220
  constructor() {
1200
1221
  super(...arguments);
1201
1222
  O(this, "uuid", "");
@@ -1236,7 +1257,7 @@ class Ie extends V {
1236
1257
  L(({ params: A, response: R, headers: N }) => (this.logDebug(
1237
1258
  `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(N)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(A)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(R)}`
1238
1259
  ), T(R))),
1239
- n((A) => {
1260
+ S((A) => {
1240
1261
  var R;
1241
1262
  return this.logError(
1242
1263
  `ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <HEADERS>: ${JSON.stringify(r == null ? void 0 : r.headers)} <UUID> ${(R = r == null ? void 0 : r.body) == null ? void 0 : R.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(A)}`
@@ -1283,7 +1304,7 @@ class Ce extends Q {
1283
1304
  selector: (s) => s.json()
1284
1305
  }
1285
1306
  ).pipe(
1286
- n((s) => {
1307
+ S((s) => {
1287
1308
  throw this.logError(JSON.stringify(s)), this.logError(
1288
1309
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1289
1310
  l
@@ -1301,7 +1322,7 @@ class Ce extends Q {
1301
1322
  ), T(s)))
1302
1323
  )
1303
1324
  ),
1304
- h((l) => this.errorHandler(l, r))
1325
+ V((l) => this.errorHandler(l, r))
1305
1326
  );
1306
1327
  }
1307
1328
  fetchCustomData(e = {}, r) {
@@ -1313,7 +1334,7 @@ class Ce extends Q {
1313
1334
  body: this.method === "GET" ? null : JSON.stringify(e),
1314
1335
  selector: (s) => s.json()
1315
1336
  }).pipe(
1316
- n((s) => {
1337
+ S((s) => {
1317
1338
  throw this.logError(JSON.stringify(s)), this.logError(
1318
1339
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1319
1340
  l
@@ -1361,8 +1382,8 @@ function z(t, E, e) {
1361
1382
  let o = new Uint8Array(16 + l.length);
1362
1383
  if (o.set(s), o.set(l, s.length), o = e(o), o[6] = o[6] & 15 | E, o[8] = o[8] & 63 | 128, A) {
1363
1384
  R = R || 0;
1364
- for (let i = 0; i < 16; ++i)
1365
- A[R + i] = o[i];
1385
+ for (let I = 0; I < 16; ++I)
1386
+ A[R + I] = o[I];
1366
1387
  return A;
1367
1388
  }
1368
1389
  return G(o);
@@ -1412,12 +1433,12 @@ function ee(t) {
1412
1433
  R[a] = s[A][a];
1413
1434
  for (let a = 16; a < 80; ++a)
1414
1435
  R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
1415
- let N = e[0], o = e[1], i = e[2], m = e[3], S = e[4];
1436
+ let N = e[0], o = e[1], I = e[2], m = e[3], n = e[4];
1416
1437
  for (let a = 0; a < 80; ++a) {
1417
- const d = Math.floor(a / 20), y = D(N, 5) + q(d, o, i, m) + S + E[d] + R[a] >>> 0;
1418
- S = m, m = i, i = D(o, 30) >>> 0, o = N, N = y;
1438
+ const d = Math.floor(a / 20), y = D(N, 5) + q(d, o, I, m) + n + E[d] + R[a] >>> 0;
1439
+ n = m, m = I, I = D(o, 30) >>> 0, o = N, N = y;
1419
1440
  }
1420
- e[0] = e[0] + N >>> 0, e[1] = e[1] + o >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + S >>> 0;
1441
+ e[0] = e[0] + N >>> 0, e[1] = e[1] + o >>> 0, e[2] = e[2] + I >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + n >>> 0;
1421
1442
  }
1422
1443
  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];
1423
1444
  }
@@ -1458,7 +1479,7 @@ class me extends x {
1458
1479
  L((N) => (g.getInstance().setSubject(!1), this.logDebug(
1459
1480
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
1460
1481
  ), T(N))),
1461
- n((N) => (this.logError(
1482
+ S((N) => (this.logError(
1462
1483
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
1463
1484
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1464
1485
  new C().get(N, l)
@@ -1467,12 +1488,12 @@ class me extends x {
1467
1488
  }
1468
1489
  }
1469
1490
  export {
1470
- Ie as ApiMiddleware,
1491
+ ie as ApiMiddleware,
1471
1492
  C as ErrorCatalog,
1472
1493
  Ce as FetchServiceBE,
1473
1494
  me as FetchServiceFE,
1474
1495
  g as LoadingHandler,
1475
1496
  M as MessageHandler,
1476
- ne as RxSubjectManager,
1497
+ Se as RxSubjectManager,
1477
1498
  De as ServiceToken
1478
1499
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./index-db8a4e91.js";
1
+ import { t } from "./index-0cc7a8bb.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.121",
3
+ "version": "0.0.123",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -88,4 +88,4 @@
88
88
  "vite-plugin-dts": "3.7.1",
89
89
  "vite-tsconfig-paths": "4.2.2"
90
90
  }
91
- }
91
+ }