mp-front-cli 0.0.135 → 0.0.137

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;AAm1BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
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;AA01BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
@@ -9,6 +9,6 @@ export declare class FetchServiceBE<TRes, TData = {}, TypeDataResponse extends T
9
9
  private errorHandler;
10
10
  private formatParams;
11
11
  fetchData(params?: TData, uuid?: string): Observable<ApiResponse<TRes, TypeDataResponse, Relationships>>;
12
- fetchCustomData(params?: TData, uuid?: string): Observable<TRes>;
12
+ fetchCustomData(params?: TData, uuid?: string, useToken?: boolean): Observable<TRes>;
13
13
  }
14
14
  //# sourceMappingURL=fetch-service-be.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-service-be.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-be.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAA0B,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EAClB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAM/C,qBAAa,cAAc,CACzB,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,gBAAgB,SAAS,iBAAiB,GAAG,QAAQ,EACrD,aAAa,GAAG,EAAE,CAClB,SAAQ,YAAY;IACpB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB;IAMtE,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,YAAY;IASpB,SAAS,CACP,MAAM,GAAE,KAAmB,EAC3B,IAAI,CAAC,EAAE,MAAM,GACZ,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;IA2CjE,eAAe,CACb,MAAM,GAAE,KAAmB,EAC3B,IAAI,CAAC,EAAE,MAAM,GACZ,UAAU,CAAC,IAAI,CAAC;CA8CpB"}
1
+ {"version":3,"file":"fetch-service-be.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-be.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAA0B,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EAClB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAM/C,qBAAa,cAAc,CACzB,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,gBAAgB,SAAS,iBAAiB,GAAG,QAAQ,EACrD,aAAa,GAAG,EAAE,CAClB,SAAQ,YAAY;IACpB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB;IAMtE,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,YAAY;IASpB,SAAS,CACP,MAAM,GAAE,KAAmB,EAC3B,IAAI,CAAC,EAAE,MAAM,GACZ,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;IA2CjE,eAAe,CACb,MAAM,GAAE,KAAmB,EAC3B,IAAI,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,OAAO,GACjB,UAAU,CAAC,IAAI,CAAC;CA8CpB"}
@@ -4,6 +4,6 @@ export declare class CustomHeader extends CustomEncrypter {
4
4
  private headers;
5
5
  constructor(headers?: HeadersInit);
6
6
  addTokenBackend(headers: HeadersInit): Observable<HeadersInit>;
7
- getHeaders(headers?: HeadersInit): Observable<HeadersInit>;
7
+ getHeaders(headers?: HeadersInit, useToken?: boolean): Observable<HeadersInit>;
8
8
  }
9
9
  //# sourceMappingURL=custom-header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-header.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,MAAM,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAGpD,qBAAa,YAAa,SAAQ,eAAe;IAC/C,OAAO,CAAC,OAAO,CAAa;gBAEhB,OAAO,GAAE,WAAgB;IASrC,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAS9D,UAAU,CAAC,OAAO,GAAE,WAAgB,GAAG,UAAU,CAAC,WAAW,CAAC;CAM/D"}
1
+ {"version":3,"file":"custom-header.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,MAAM,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAGpD,qBAAa,YAAa,SAAQ,eAAe;IAC/C,OAAO,CAAC,OAAO,CAAa;gBAEhB,OAAO,GAAE,WAAgB;IASrC,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAS9D,UAAU,CACR,OAAO,GAAE,WAAgB,EACzB,QAAQ,UAAO,GACd,UAAU,CAAC,WAAW,CAAC;CAW3B"}
@@ -182,13 +182,17 @@ const o = {
182
182
  message: "Consulta el tipo de crédito"
183
183
  },
184
184
  "CALCULATOR-BAD-REQUEST-31": {
185
- title: "No hay existencias",
186
- message: "Por el momento no pudimos encontrar productos para ti, intenta más tarde"
185
+ title: "Enganche requerido",
186
+ message: "El enganche es menor al requerido."
187
187
  },
188
188
  "CALCULATOR-BAD-REQUEST-34": {
189
189
  title: "Crédito Insuficiente",
190
190
  message: "Lamentamos informarte que tu línea de crédito no es suficiente para adquirir los productos de esta marca. Intenta con otra marca o regresa de nuevo en 90 días."
191
191
  },
192
+ "CALCULATOR-BAD-REQUEST-35": {
193
+ title: "No hay existencias",
194
+ message: "Por el momento no pudimos encontrar productos para ti, intenta más tarde"
195
+ },
192
196
  //Apartadito
193
197
  "SAVING_NOT_FOUND-01": {
194
198
  title: "Verificar la identificación de guardado",
@@ -188,6 +188,10 @@ declare const translation: {
188
188
  title: string;
189
189
  message: string;
190
190
  };
191
+ "CALCULATOR-BAD-REQUEST-35": {
192
+ title: string;
193
+ message: string;
194
+ };
191
195
  "SAVING_NOT_FOUND-01": {
192
196
  title: string;
193
197
  message: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6NhB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiOhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -659,6 +659,10 @@ declare const translation: {
659
659
  title: string;
660
660
  message: string;
661
661
  };
662
+ "CALCULATOR-BAD-REQUEST-35": {
663
+ title: string;
664
+ message: string;
665
+ };
662
666
  "SAVING_NOT_FOUND-01": {
663
667
  title: string;
664
668
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ShB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ShB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServiceFE as s } from "./mp-front-cli-core.es.js";
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
- import "./i18n-b5bc087a.js";
4
+ import "./i18n-aa631beb.js";
5
5
  import "i18next";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
@@ -1,18 +1,18 @@
1
1
  var u = Object.defineProperty;
2
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);
3
+ var L = (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 Ue } from "./mp-front-cli-utils-rxjs.es.js";
6
6
  import { f as c } from "./index-def0b487.js";
7
7
  import { S as ne } from "./index-def0b487.js";
8
- import "./i18n-b5bc087a.js";
8
+ import "./i18n-aa631beb.js";
9
9
  import { t as U } from "i18next";
10
10
  import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
11
- import { of as o, switchMap as L, forkJoin as B, catchError as S, EMPTY as P, filter as w } from "rxjs";
11
+ import { of as O, switchMap as i, forkJoin as B, catchError as S, EMPTY as P, filter as w } from "rxjs";
12
12
  import { CustomEncrypter as v } from "./mp-front-cli-encrypter.es.js";
13
13
  import { CustomHeader as h } from "./mp-front-cli-header.es.js";
14
- import V from "querystring";
15
- import { CustomEncoder as Q } from "./mp-front-cli-encoder.es.js";
14
+ import Q from "querystring";
15
+ import { CustomEncoder as V } from "./mp-front-cli-encoder.es.js";
16
16
  import { u as H } from "./stringify-788d71a0.js";
17
17
  import "node-jose";
18
18
  import "crypto";
@@ -421,7 +421,7 @@ const x = {
421
421
  }, K = {
422
422
  ...Y,
423
423
  ...G
424
- }, i = {
424
+ }, I = {
425
425
  "MP-001": {
426
426
  code: 400,
427
427
  type: "modal",
@@ -915,6 +915,13 @@ const x = {
915
915
  type: "modal",
916
916
  level: "warning"
917
917
  },
918
+ "CALCULATOR-BAD-REQUEST-35": {
919
+ title: "errors.calculator.CALCULATOR-BAD-REQUEST-35.title",
920
+ message: "errors.calculator.CALCULATOR-BAD-REQUEST-35.message",
921
+ code: 420,
922
+ type: "modal",
923
+ level: "warning"
924
+ },
918
925
  //Apartadito
919
926
  "SAVING_NOT_FOUND-01": {
920
927
  title: "errors.calculator.SAVING_NOT_FOUND-01.title",
@@ -1259,22 +1266,22 @@ class C extends F {
1259
1266
  var N, A;
1260
1267
  if (r instanceof Error)
1261
1268
  return this.logError(r.message), {
1262
- ...i.internalError,
1263
- title: U(i.internalError.title),
1264
- message: U(i.internalError.message),
1269
+ ...I.internalError,
1270
+ title: U(I.internalError.title),
1271
+ message: U(I.internalError.message),
1265
1272
  uuid: e
1266
1273
  };
1267
1274
  const E = typeof r == "string" ? r : r.code ?? r.errorType;
1268
1275
  this.logDebug("statusCode", E);
1269
1276
  const l = typeof r == "string" ? {} : { ...r };
1270
1277
  return {
1271
- ...i[E] ?? i.default,
1278
+ ...I[E] ?? I.default,
1272
1279
  title: U(
1273
- ((N = i[E]) == null ? void 0 : N.title) ?? i.default.title,
1280
+ ((N = I[E]) == null ? void 0 : N.title) ?? I.default.title,
1274
1281
  l
1275
1282
  ),
1276
1283
  message: U(
1277
- ((A = i[E]) == null ? void 0 : A.message) ?? i.default.message,
1284
+ ((A = I[E]) == null ? void 0 : A.message) ?? I.default.message,
1278
1285
  l
1279
1286
  ),
1280
1287
  payload: typeof r != "string" ? { errorCode: r.code } : {},
@@ -1282,11 +1289,11 @@ class C extends F {
1282
1289
  };
1283
1290
  }
1284
1291
  }
1285
- class Ie extends v {
1292
+ class ie extends v {
1286
1293
  constructor() {
1287
1294
  super(...arguments);
1288
- O(this, "uuid", "");
1289
- O(this, "session", null);
1295
+ L(this, "uuid", "");
1296
+ L(this, "session", null);
1290
1297
  }
1291
1298
  setSession(e) {
1292
1299
  this.session = e;
@@ -1306,23 +1313,23 @@ class Ie extends v {
1306
1313
  get(e) {
1307
1314
  return this.logDebug("get ApiMiddleware"), (E, l) => {
1308
1315
  var N;
1309
- this.logDebug("return ApiMiddleware"), this.uuid = (N = E == null ? void 0 : E.body) == null ? void 0 : N.uuid, o(E).pipe(
1310
- L(
1316
+ this.logDebug("return ApiMiddleware"), this.uuid = (N = E == null ? void 0 : E.body) == null ? void 0 : N.uuid, O(E).pipe(
1317
+ i(
1311
1318
  (A) => B({
1312
- params: o(this.decode(A.body)),
1313
- headers: o(A.headers)
1319
+ params: O(this.decode(A.body)),
1320
+ headers: O(A.headers)
1314
1321
  })
1315
1322
  ),
1316
- L(
1323
+ i(
1317
1324
  ({ params: A, headers: R }) => B({
1318
1325
  response: e(A, this.uuid, R),
1319
- headers: o(R),
1320
- params: o(A)
1326
+ headers: O(R),
1327
+ params: O(A)
1321
1328
  })
1322
1329
  ),
1323
- L(({ params: A, response: R, headers: s }) => (this.logDebug(
1330
+ i(({ params: A, response: R, headers: s }) => (this.logDebug(
1324
1331
  `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)}`
1325
- ), o(R))),
1332
+ ), O(R))),
1326
1333
  S((A) => {
1327
1334
  var R;
1328
1335
  return this.logError(
@@ -1338,11 +1345,11 @@ class Ie extends v {
1338
1345
  }
1339
1346
  }
1340
1347
  const X = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1341
- class ie extends h {
1348
+ class Ie extends h {
1342
1349
  constructor(e, E, l = {}) {
1343
1350
  super(l);
1344
- O(this, "apiUrl");
1345
- O(this, "method");
1351
+ L(this, "apiUrl");
1352
+ L(this, "method");
1346
1353
  this.apiUrl = e, this.method = E ?? "POST";
1347
1354
  }
1348
1355
  errorHandler(e, E) {
@@ -1360,7 +1367,7 @@ class ie extends h {
1360
1367
  }
1361
1368
  fetchData(e = {}, E) {
1362
1369
  return this.getHeaders().pipe(
1363
- L(
1370
+ i(
1364
1371
  (l) => c(
1365
1372
  this.apiUrl,
1366
1373
  {
@@ -1379,48 +1386,48 @@ class ie extends h {
1379
1386
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
1380
1387
  ), new C().get("default", E);
1381
1388
  }),
1382
- L((N) => (this.logDebug(
1389
+ i((N) => (this.logDebug(
1383
1390
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1384
1391
  l
1385
1392
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1386
1393
  this.formatParams(e)
1387
1394
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
1388
- ), o(N)))
1395
+ ), O(N)))
1389
1396
  )
1390
1397
  ),
1391
1398
  w((l) => this.errorHandler(l, E))
1392
1399
  );
1393
1400
  }
1394
- fetchCustomData(e = {}, E) {
1395
- const l = {
1401
+ fetchCustomData(e = {}, E, l) {
1402
+ const N = {
1396
1403
  "Content-Type": "application/json"
1397
- }, N = V.stringify(
1404
+ }, A = Q.stringify(
1398
1405
  e
1399
- ), A = `${this.apiUrl}?${N}`, R = this.method === "GET" ? A : this.apiUrl;
1400
- return this.getHeaders(l).pipe(
1401
- L(
1402
- (s) => c(R, {
1406
+ ), R = `${this.apiUrl}?${A}`, s = this.method === "GET" ? R : this.apiUrl;
1407
+ return this.getHeaders(N, l).pipe(
1408
+ i(
1409
+ (T) => c(s, {
1403
1410
  method: this.method,
1404
- headers: s,
1411
+ headers: T,
1405
1412
  body: this.method === "GET" ? null : JSON.stringify(e),
1406
- selector: (T) => T.json()
1413
+ selector: (a) => a.json()
1407
1414
  }).pipe(
1408
- S((T) => {
1409
- throw this.logError(JSON.stringify(T)), this.logError(
1410
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1411
- s
1415
+ S((a) => {
1416
+ throw this.logError(JSON.stringify(a)), this.logError(
1417
+ `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${s} \x1B[37m <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1418
+ T
1412
1419
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1413
1420
  this.formatParams(e)
1414
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(T)} \x1B[33m`
1421
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)} \x1B[33m`
1415
1422
  ), new C().get("default", E);
1416
1423
  }),
1417
- L((T) => (this.logDebug(
1418
- `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(
1419
- s
1424
+ i((a) => (this.logDebug(
1425
+ `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${s} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${E} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1426
+ T
1420
1427
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1421
1428
  e
1422
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(T)} \x1B[33m`
1423
- ), o(T)))
1429
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)} \x1B[33m`
1430
+ ), O(a)))
1424
1431
  )
1425
1432
  )
1426
1433
  );
@@ -1453,8 +1460,8 @@ function j(t, r, e) {
1453
1460
  let T = new Uint8Array(16 + l.length);
1454
1461
  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) {
1455
1462
  R = R || 0;
1456
- for (let I = 0; I < 16; ++I)
1457
- A[R + I] = T[I];
1463
+ for (let a = 0; a < 16; ++a)
1464
+ A[R + a] = T[a];
1458
1465
  return A;
1459
1466
  }
1460
1467
  return H(T);
@@ -1500,28 +1507,28 @@ function z(t) {
1500
1507
  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;
1501
1508
  for (let A = 0; A < l; ++A) {
1502
1509
  const R = new Uint32Array(80);
1503
- for (let a = 0; a < 16; ++a)
1504
- R[a] = N[A][a];
1505
- for (let a = 16; a < 80; ++a)
1506
- R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
1507
- let s = e[0], T = e[1], I = e[2], m = e[3], n = e[4];
1508
- for (let a = 0; a < 80; ++a) {
1509
- const d = Math.floor(a / 20), y = D(s, 5) + Z(d, T, I, m) + n + r[d] + R[a] >>> 0;
1510
- n = m, m = I, I = D(T, 30) >>> 0, T = s, s = y;
1510
+ for (let o = 0; o < 16; ++o)
1511
+ R[o] = N[A][o];
1512
+ for (let o = 16; o < 80; ++o)
1513
+ R[o] = D(R[o - 3] ^ R[o - 8] ^ R[o - 14] ^ R[o - 16], 1);
1514
+ let s = e[0], T = e[1], a = e[2], m = e[3], n = e[4];
1515
+ for (let o = 0; o < 80; ++o) {
1516
+ const d = Math.floor(o / 20), y = D(s, 5) + Z(d, T, a, m) + n + r[d] + R[o] >>> 0;
1517
+ n = m, m = a, a = D(T, 30) >>> 0, T = s, s = y;
1511
1518
  }
1512
- 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] + n >>> 0;
1519
+ e[0] = e[0] + s >>> 0, e[1] = e[1] + T >>> 0, e[2] = e[2] + a >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + n >>> 0;
1513
1520
  }
1514
1521
  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];
1515
1522
  }
1516
1523
  const q = j("v5", 80, z), p = q;
1517
- class Ce extends Q {
1524
+ class Ce extends V {
1518
1525
  constructor(e, E = "POST", l = {}) {
1519
1526
  super();
1520
- O(this, "apiUrl");
1521
- O(this, "method");
1522
- O(this, "headers");
1523
- O(this, "isLoadingEnabled", !0);
1524
- O(this, "errorResponse");
1527
+ L(this, "apiUrl");
1528
+ L(this, "method");
1529
+ L(this, "headers");
1530
+ L(this, "isLoadingEnabled", !0);
1531
+ L(this, "errorResponse");
1525
1532
  this.apiUrl = e, this.method = E, this.headers = {
1526
1533
  "Content-Type": "application/json",
1527
1534
  ...l
@@ -1543,25 +1550,25 @@ class Ce extends Q {
1543
1550
  body: N,
1544
1551
  selector: (s) => s.json()
1545
1552
  }).pipe(
1546
- L((s) => o(this.decode(s))),
1547
- L((s) => s.code && (s.type === "modal" || s.type === "message") ? (this.logError(
1553
+ i((s) => O(this.decode(s))),
1554
+ i((s) => s.code && (s.type === "modal" || s.type === "message") ? (this.logError(
1548
1555
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1549
- ), g.getInstance().setSubject(!1), M.getInstance().setSubject(s), this.errorResponse ? o(this.errorResponse) : P) : o(s)),
1550
- L((s) => (g.getInstance().setSubject(!1), this.logDebug(
1556
+ ), g.getInstance().setSubject(!1), M.getInstance().setSubject(s), this.errorResponse ? O(this.errorResponse) : P) : O(s)),
1557
+ i((s) => (g.getInstance().setSubject(!1), this.logDebug(
1551
1558
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1552
- ), o(s))),
1559
+ ), O(s))),
1553
1560
  S((s) => (this.logError(
1554
1561
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1555
1562
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1556
1563
  new C().get(s, l)
1557
- ), this.errorResponse ? o(this.errorResponse) : P))
1564
+ ), this.errorResponse ? O(this.errorResponse) : P))
1558
1565
  );
1559
1566
  }
1560
1567
  }
1561
1568
  export {
1562
- Ie as ApiMiddleware,
1569
+ ie as ApiMiddleware,
1563
1570
  C as ErrorCatalog,
1564
- ie as FetchServiceBE,
1571
+ Ie as FetchServiceBE,
1565
1572
  Ce as FetchServiceFE,
1566
1573
  g as LoadingHandler,
1567
1574
  M as MessageHandler,
@@ -1,17 +1,17 @@
1
1
  var n = Object.defineProperty;
2
- var p = (r, t, e) => t in r ? n(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var i = (r, t, e) => (p(r, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { switchMap as a, of as s } from "rxjs";
5
- import { CustomEncrypter as d } from "./mp-front-cli-encrypter.es.js";
6
- import { S as m } from "./index-def0b487.js";
2
+ var d = (r, t, e) => t in r ? n(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var a = (r, t, e) => (d(r, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { switchMap as s, of as o } from "rxjs";
5
+ import { CustomEncrypter as m } from "./mp-front-cli-encrypter.es.js";
6
+ import { S as c } from "./index-def0b487.js";
7
7
  import "node-jose";
8
8
  import "crypto";
9
9
  import "./mp-front-cli-encoder.es.js";
10
10
  import "./mp-front-cli-logger.es.js";
11
- class H extends d {
11
+ class T extends m {
12
12
  constructor(e = {}) {
13
13
  super();
14
- i(this, "headers");
14
+ a(this, "headers");
15
15
  this.headers = {
16
16
  Accept: "application/json",
17
17
  "Content-Type": "application/vnd.api+json",
@@ -19,16 +19,18 @@ class H extends d {
19
19
  };
20
20
  }
21
21
  addTokenBackend(e) {
22
- return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new m().get().pipe(
23
- a((o) => s({ ...e, Authorization: `Bearer ${o}` }))
22
+ return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new c().get().pipe(
23
+ s((i) => o({ ...e, Authorization: `Bearer ${i}` }))
24
24
  );
25
25
  }
26
- getHeaders(e = {}) {
27
- return this.logDebug("getHeaders CustomHeader"), this.addTokenBackend(e).pipe(
28
- a((o) => s({ ...o, ...this.headers }))
26
+ getHeaders(e = {}, i = !0) {
27
+ return this.logDebug("getHeaders CustomHeader"), i ? this.addTokenBackend(e).pipe(
28
+ s((p) => o({ ...p, ...this.headers }))
29
+ ) : o(e).pipe(
30
+ s((p) => o({ ...p, ...this.headers }))
29
31
  );
30
32
  }
31
33
  }
32
34
  export {
33
- H as CustomHeader
35
+ T as CustomHeader
34
36
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./i18n-b5bc087a.js";
1
+ import { t } from "./i18n-aa631beb.js";
2
2
  import { default as i } from "i18next";
3
3
  const e = {
4
4
  errors: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.135",
3
+ "version": "0.0.137",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {