mp-front-cli 0.0.103 → 0.0.104

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;AA0vBrD,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;AAkwBrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;CA8B7B"}
@@ -565,6 +565,10 @@ const e = {
565
565
  title: "Teléfono invalido",
566
566
  message: "Ingrese un número valido."
567
567
  },
568
+ "PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001": {
569
+ title: "Eliminar excepción de referencia",
570
+ message: "Ocurrió un error al eliminar la referencia."
571
+ },
568
572
  //PAYMENTS
569
573
  "SALES-SUMMARY-GENERIC-ERROR-001": {
570
574
  title: "Ocurrió un error resumen de venta",
@@ -16,6 +16,10 @@ declare const translation: {
16
16
  title: string;
17
17
  message: string;
18
18
  };
19
+ "PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001": {
20
+ title: string;
21
+ message: string;
22
+ };
19
23
  "SALES-SUMMARY-GENERIC-ERROR-001": {
20
24
  title: string;
21
25
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4PhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgQhB,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-6ac9fcde.js";
5
+ import "./index-d7b5f68b.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -1,12 +1,12 @@
1
1
  var f = Object.defineProperty;
2
- var y = (E, t, e) => t in E ? f(E, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : E[t] = e;
3
- var L = (E, t, e) => (y(E, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { LoadingHandler as C, MessageHandler as B } from "./mp-front-cli-utils-rxjs.es.js";
5
- import { RxSubjectManager as Ue } from "./mp-front-cli-utils-rxjs.es.js";
2
+ var y = (t, E, e) => E in t ? f(t, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[E] = e;
3
+ var L = (t, E, e) => (y(t, typeof E != "symbol" ? E + "" : E, e), e);
4
+ import { LoadingHandler as U, MessageHandler as B } from "./mp-front-cli-utils-rxjs.es.js";
5
+ import { RxSubjectManager as Ce } from "./mp-front-cli-utils-rxjs.es.js";
6
6
  import { f as n } from "./index-def0b487.js";
7
7
  import { S as ge } from "./index-def0b487.js";
8
8
  import v, { t as g } from "i18next";
9
- import { t as Q } from "./index-6ac9fcde.js";
9
+ import { t as Q } from "./index-d7b5f68b.js";
10
10
  import { CustomLogger as w } from "./mp-front-cli-logger.es.js";
11
11
  import { of as N, switchMap as O, forkJoin as M, catchError as c, EMPTY as d, filter as h } from "rxjs";
12
12
  import { CustomEncrypter as V } from "./mp-front-cli-encrypter.es.js";
@@ -997,6 +997,13 @@ const H = {
997
997
  type: "modal",
998
998
  level: "warning"
999
999
  },
1000
+ "PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001": {
1001
+ title: "errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.title",
1002
+ message: "errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.message",
1003
+ code: 400,
1004
+ type: "modal",
1005
+ level: "warning"
1006
+ },
1000
1007
  //PAYMENTS
1001
1008
  "SALES-SUMMARY-GENERIC-ERROR-001": {
1002
1009
  title: "errors.SALES-SUMMARY-GENERIC-ERROR-001.title",
@@ -1015,18 +1022,18 @@ const H = {
1015
1022
  ...H
1016
1023
  };
1017
1024
  class I extends w {
1018
- get(t = "default", e = "NOT_FOUND") {
1025
+ get(E = "default", e = "NOT_FOUND") {
1019
1026
  var s, A;
1020
- if (t instanceof Error)
1021
- return this.logError(t.message), {
1027
+ if (E instanceof Error)
1028
+ return this.logError(E.message), {
1022
1029
  ...m.internalError,
1023
1030
  title: g(m.internalError.title),
1024
1031
  message: g(m.internalError.message),
1025
1032
  uuid: e
1026
1033
  };
1027
- const r = typeof t == "string" ? t : t.code ?? t.errorType;
1034
+ const r = typeof E == "string" ? E : E.code ?? E.errorType;
1028
1035
  this.logDebug("statusCode", r);
1029
- const l = typeof t == "string" ? {} : { ...t };
1036
+ const l = typeof E == "string" ? {} : { ...E };
1030
1037
  return {
1031
1038
  ...m[r] ?? m.default,
1032
1039
  title: g(
@@ -1181,31 +1188,31 @@ class Oe extends F {
1181
1188
  }
1182
1189
  }
1183
1190
  const J = /^(?:[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;
1184
- function K(E) {
1185
- return typeof E == "string" && J.test(E);
1191
+ function K(t) {
1192
+ return typeof t == "string" && J.test(t);
1186
1193
  }
1187
- function $(E) {
1188
- if (!K(E))
1194
+ function $(t) {
1195
+ if (!K(t))
1189
1196
  throw TypeError("Invalid UUID");
1190
- let t;
1197
+ let E;
1191
1198
  const e = new Uint8Array(16);
1192
- return e[0] = (t = parseInt(E.slice(0, 8), 16)) >>> 24, e[1] = t >>> 16 & 255, e[2] = t >>> 8 & 255, e[3] = t & 255, e[4] = (t = parseInt(E.slice(9, 13), 16)) >>> 8, e[5] = t & 255, e[6] = (t = parseInt(E.slice(14, 18), 16)) >>> 8, e[7] = t & 255, e[8] = (t = parseInt(E.slice(19, 23), 16)) >>> 8, e[9] = t & 255, e[10] = (t = parseInt(E.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;
1199
+ return e[0] = (E = parseInt(t.slice(0, 8), 16)) >>> 24, e[1] = E >>> 16 & 255, e[2] = E >>> 8 & 255, e[3] = E & 255, e[4] = (E = parseInt(t.slice(9, 13), 16)) >>> 8, e[5] = E & 255, e[6] = (E = parseInt(t.slice(14, 18), 16)) >>> 8, e[7] = E & 255, e[8] = (E = parseInt(t.slice(19, 23), 16)) >>> 8, e[9] = E & 255, e[10] = (E = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = E / 4294967296 & 255, e[12] = E >>> 24 & 255, e[13] = E >>> 16 & 255, e[14] = E >>> 8 & 255, e[15] = E & 255, e;
1193
1200
  }
1194
- function X(E) {
1195
- E = unescape(encodeURIComponent(E));
1196
- const t = [];
1197
- for (let e = 0; e < E.length; ++e)
1198
- t.push(E.charCodeAt(e));
1199
- return t;
1201
+ function X(t) {
1202
+ t = unescape(encodeURIComponent(t));
1203
+ const E = [];
1204
+ for (let e = 0; e < t.length; ++e)
1205
+ E.push(t.charCodeAt(e));
1206
+ return E;
1200
1207
  }
1201
1208
  const b = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", W = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
1202
- function j(E, t, e) {
1209
+ function j(t, E, e) {
1203
1210
  function r(l, s, A, a) {
1204
1211
  var o;
1205
1212
  if (typeof l == "string" && (l = X(l)), typeof s == "string" && (s = $(s)), ((o = s) === null || o === void 0 ? void 0 : o.length) !== 16)
1206
1213
  throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
1207
1214
  let T = new Uint8Array(16 + l.length);
1208
- if (T.set(s), T.set(l, s.length), T = e(T), T[6] = T[6] & 15 | t, T[8] = T[8] & 63 | 128, A) {
1215
+ if (T.set(s), T.set(l, s.length), T = e(T), T[6] = T[6] & 15 | E, T[8] = T[8] & 63 | 128, A) {
1209
1216
  a = a || 0;
1210
1217
  for (let i = 0; i < 16; ++i)
1211
1218
  A[a + i] = T[i];
@@ -1214,56 +1221,56 @@ function j(E, t, e) {
1214
1221
  return Y(T);
1215
1222
  }
1216
1223
  try {
1217
- r.name = E;
1224
+ r.name = t;
1218
1225
  } catch {
1219
1226
  }
1220
1227
  return r.DNS = b, r.URL = W, r;
1221
1228
  }
1222
- function Z(E, t, e, r) {
1223
- switch (E) {
1229
+ function Z(t, E, e, r) {
1230
+ switch (t) {
1224
1231
  case 0:
1225
- return t & e ^ ~t & r;
1232
+ return E & e ^ ~E & r;
1226
1233
  case 1:
1227
- return t ^ e ^ r;
1234
+ return E ^ e ^ r;
1228
1235
  case 2:
1229
- return t & e ^ t & r ^ e & r;
1236
+ return E & e ^ E & r ^ e & r;
1230
1237
  case 3:
1231
- return t ^ e ^ r;
1238
+ return E ^ e ^ r;
1232
1239
  }
1233
1240
  }
1234
- function D(E, t) {
1235
- return E << t | E >>> 32 - t;
1241
+ function D(t, E) {
1242
+ return t << E | t >>> 32 - E;
1236
1243
  }
1237
- function k(E) {
1238
- const t = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
1239
- if (typeof E == "string") {
1240
- const A = unescape(encodeURIComponent(E));
1241
- E = [];
1244
+ function k(t) {
1245
+ const E = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
1246
+ if (typeof t == "string") {
1247
+ const A = unescape(encodeURIComponent(t));
1248
+ t = [];
1242
1249
  for (let a = 0; a < A.length; ++a)
1243
- E.push(A.charCodeAt(a));
1250
+ t.push(A.charCodeAt(a));
1244
1251
  } else
1245
- Array.isArray(E) || (E = Array.prototype.slice.call(E));
1246
- E.push(128);
1247
- const r = E.length / 4 + 2, l = Math.ceil(r / 16), s = new Array(l);
1252
+ Array.isArray(t) || (t = Array.prototype.slice.call(t));
1253
+ t.push(128);
1254
+ const r = t.length / 4 + 2, l = Math.ceil(r / 16), s = new Array(l);
1248
1255
  for (let A = 0; A < l; ++A) {
1249
1256
  const a = new Uint32Array(16);
1250
1257
  for (let o = 0; o < 16; ++o)
1251
- a[o] = E[A * 64 + o * 4] << 24 | E[A * 64 + o * 4 + 1] << 16 | E[A * 64 + o * 4 + 2] << 8 | E[A * 64 + o * 4 + 3];
1258
+ a[o] = t[A * 64 + o * 4] << 24 | t[A * 64 + o * 4 + 1] << 16 | t[A * 64 + o * 4 + 2] << 8 | t[A * 64 + o * 4 + 3];
1252
1259
  s[A] = a;
1253
1260
  }
1254
- s[l - 1][14] = (E.length - 1) * 8 / Math.pow(2, 32), s[l - 1][14] = Math.floor(s[l - 1][14]), s[l - 1][15] = (E.length - 1) * 8 & 4294967295;
1261
+ s[l - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), s[l - 1][14] = Math.floor(s[l - 1][14]), s[l - 1][15] = (t.length - 1) * 8 & 4294967295;
1255
1262
  for (let A = 0; A < l; ++A) {
1256
1263
  const a = new Uint32Array(80);
1257
1264
  for (let R = 0; R < 16; ++R)
1258
1265
  a[R] = s[A][R];
1259
1266
  for (let R = 16; R < 80; ++R)
1260
1267
  a[R] = D(a[R - 3] ^ a[R - 8] ^ a[R - 14] ^ a[R - 16], 1);
1261
- let o = e[0], T = e[1], i = e[2], U = e[3], S = e[4];
1268
+ let o = e[0], T = e[1], i = e[2], C = e[3], S = e[4];
1262
1269
  for (let R = 0; R < 80; ++R) {
1263
- const P = Math.floor(R / 20), u = D(o, 5) + Z(P, T, i, U) + S + t[P] + a[R] >>> 0;
1264
- S = U, U = i, i = D(T, 30) >>> 0, T = o, o = u;
1270
+ const P = Math.floor(R / 20), u = D(o, 5) + Z(P, T, i, C) + S + E[P] + a[R] >>> 0;
1271
+ S = C, C = i, i = D(T, 30) >>> 0, T = o, o = u;
1265
1272
  }
1266
- e[0] = e[0] + o >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + U >>> 0, e[4] = e[4] + S >>> 0;
1273
+ e[0] = e[0] + o >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + C >>> 0, e[4] = e[4] + S >>> 0;
1267
1274
  }
1268
1275
  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];
1269
1276
  }
@@ -1289,7 +1296,7 @@ class ie extends x {
1289
1296
  }
1290
1297
  fetchData(e = {}) {
1291
1298
  const r = (/* @__PURE__ */ new Date()).toISOString(), l = p(r, p.URL), s = this.encode({ ...e }, l);
1292
- C.getInstance().setSubject(this.isLoadingEnabled);
1299
+ U.getInstance().setSubject(this.isLoadingEnabled);
1293
1300
  const a = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
1294
1301
  return n(this.apiUrl, {
1295
1302
  method: this.method,
@@ -1300,13 +1307,13 @@ class ie extends x {
1300
1307
  O((o) => N(this.decode(o))),
1301
1308
  O((o) => o.code && (o.type === "modal" || o.type === "message") ? (this.logError(
1302
1309
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
1303
- ), C.getInstance().setSubject(!1), B.getInstance().setSubject(o), this.errorResponse ? N(this.errorResponse) : d) : N(o)),
1304
- O((o) => (C.getInstance().setSubject(!1), this.logDebug(
1310
+ ), U.getInstance().setSubject(!1), B.getInstance().setSubject(o), this.errorResponse ? N(this.errorResponse) : d) : N(o)),
1311
+ O((o) => (U.getInstance().setSubject(!1), this.logDebug(
1305
1312
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
1306
1313
  ), N(o))),
1307
1314
  c((o) => (this.logError(
1308
1315
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(o)}`
1309
- ), C.getInstance().setSubject(!1), B.getInstance().setSubject(
1316
+ ), U.getInstance().setSubject(!1), B.getInstance().setSubject(
1310
1317
  new I().get(o, l)
1311
1318
  ), this.errorResponse ? N(this.errorResponse) : d))
1312
1319
  );
@@ -1317,8 +1324,8 @@ export {
1317
1324
  I as ErrorCatalog,
1318
1325
  Oe as FetchServiceBE,
1319
1326
  ie as FetchServiceFE,
1320
- C as LoadingHandler,
1327
+ U as LoadingHandler,
1321
1328
  B as MessageHandler,
1322
- Ue as RxSubjectManager,
1329
+ Ce as RxSubjectManager,
1323
1330
  ge as ServiceToken
1324
1331
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./index-6ac9fcde.js";
1
+ import { t } from "./index-d7b5f68b.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.103",
3
+ "version": "0.0.104",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {