mp-front-cli 0.0.124 → 0.0.126

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-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;CA+QnC,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;CAsRnC,CAAA"}
@@ -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;AAK/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;CAwCpB"}
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"}
@@ -360,9 +360,9 @@ 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-USED-IMEI-0001": {
364
- title: "Validación de IMEI",
365
- message: "No puedes usar este IMEI nuevamente"
363
+ "ENROLLMENT-FAILEDTOCHECKSTOCKINSAP-0042": {
364
+ title: "IMEI Incorrecto",
365
+ message: "El IMEI no corresponde al material seleccionado. Por favor valida que el IMEI capturado este correcto."
366
366
  }
367
367
  }
368
368
  }, a = {
@@ -152,7 +152,7 @@ declare const translation: {
152
152
  title: string;
153
153
  message: string;
154
154
  };
155
- "ENROLLMENT-USED-IMEI-0001": {
155
+ "ENROLLMENT-FAILEDTOCHECKSTOCKINSAP-0042": {
156
156
  title: string;
157
157
  message: string;
158
158
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoLhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqLhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -196,7 +196,7 @@ declare const translation: {
196
196
  title: string;
197
197
  message: string;
198
198
  };
199
- "ENROLLMENT-USED-IMEI-0001": {
199
+ "ENROLLMENT-FAILEDTOCHECKSTOCKINSAP-0042": {
200
200
  title: string;
201
201
  message: string;
202
202
  };
@@ -1,8 +1,8 @@
1
- import { ApiMiddleware as g, ErrorCatalog as l, FetchServiceBE as x, FetchServiceFE as f } from "./mp-front-cli-core.es.js";
2
- import { LoadingHandler as v, MessageHandler as E, RxSubjectManager as F } from "./mp-front-cli-utils-rxjs.es.js";
3
- import { S as h } from "./index-def0b487.js";
1
+ import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServiceFE as s } from "./mp-front-cli-core.es.js";
2
+ import { LoadingHandler as E, MessageHandler as F, RxSubjectManager as M } from "./mp-front-cli-utils-rxjs.es.js";
3
+ import { S as H } from "./index-def0b487.js";
4
4
  import "i18next";
5
- import "./index-0cc7a8bb.js";
5
+ import "./index-991c08e5.js";
6
6
  import "./mp-front-cli-logger.es.js";
7
7
  import "rxjs";
8
8
  import "./mp-front-cli-encrypter.es.js";
@@ -10,14 +10,15 @@ import "node-jose";
10
10
  import "crypto";
11
11
  import "./mp-front-cli-encoder.es.js";
12
12
  import "./mp-front-cli-header.es.js";
13
+ import "querystring";
13
14
  import "./stringify-788d71a0.js";
14
15
  export {
15
- g as ApiMiddleware,
16
- l as ErrorCatalog,
17
- x as FetchServiceBE,
18
- f as FetchServiceFE,
19
- v as LoadingHandler,
20
- E as MessageHandler,
21
- F as RxSubjectManager,
22
- h as ServiceToken
16
+ l as ApiMiddleware,
17
+ x as ErrorCatalog,
18
+ f as FetchServiceBE,
19
+ s as FetchServiceFE,
20
+ E as LoadingHandler,
21
+ F as MessageHandler,
22
+ M as RxSubjectManager,
23
+ H as ServiceToken
23
24
  };
@@ -2,17 +2,18 @@ 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 Se } from "./mp-front-cli-utils-rxjs.es.js";
5
+ import { RxSubjectManager as De } from "./mp-front-cli-utils-rxjs.es.js";
6
6
  import { f as c } from "./index-def0b487.js";
7
- import { S as De } from "./index-def0b487.js";
7
+ import { S as Pe } from "./index-def0b487.js";
8
8
  import F, { t as U } from "i18next";
9
- import { t as v } from "./index-0cc7a8bb.js";
9
+ import { t as v } from "./index-991c08e5.js";
10
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";
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";
13
13
  import { CustomHeader as Q } from "./mp-front-cli-header.es.js";
14
- import { CustomEncoder as x } from "./mp-front-cli-encoder.es.js";
15
- import { u as G } from "./stringify-788d71a0.js";
14
+ import x from "querystring";
15
+ import { CustomEncoder as G } from "./mp-front-cli-encoder.es.js";
16
+ import { u as H } from "./stringify-788d71a0.js";
16
17
  import "node-jose";
17
18
  import "crypto";
18
19
  const Y = {
@@ -35,7 +36,7 @@ F.init({
35
36
  },
36
37
  debug: !1
37
38
  });
38
- const H = {
39
+ const K = {
39
40
  "ENROLLMENT-INVALIDCONFIGURATION-0000": {
40
41
  code: 400,
41
42
  type: "modal",
@@ -301,8 +302,15 @@ const H = {
301
302
  message: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.message",
302
303
  title: "errors.ENROLLMENT-IMEIFOUNDINACTIVEAPPLICATION-0041.title",
303
304
  level: "warning"
305
+ },
306
+ "ENROLLMENT-FAILEDTOCHECKSTOCKINSAP-0042": {
307
+ code: 400,
308
+ type: "modal",
309
+ message: "errors.ENROLLMENT-FAILEDTOCHECKSTOCKINSAP-0042.message",
310
+ title: "errors.ENROLLMENT-FAILEDTOCHECKSTOCKINSAP-0042.title",
311
+ level: "warning"
304
312
  }
305
- }, K = {
313
+ }, J = {
306
314
  "SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01": {
307
315
  code: 400,
308
316
  type: "modal",
@@ -359,7 +367,7 @@ const H = {
359
367
  title: "errors.helpdesk.UNEXCEPTED-ERROR.title",
360
368
  level: "error"
361
369
  }
362
- }, J = {
370
+ }, _ = {
363
371
  "PF-CANCEL-APPLICATION-GENERIC-ERROR-001": {
364
372
  code: 400,
365
373
  type: "modal",
@@ -367,10 +375,10 @@ const H = {
367
375
  title: "errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",
368
376
  level: "error"
369
377
  }
370
- }, _ = {
371
- ...J,
372
- ...K
373
- }, i = {
378
+ }, X = {
379
+ ..._,
380
+ ...J
381
+ }, I = {
374
382
  "MP-001": {
375
383
  code: 400,
376
384
  type: "modal",
@@ -1186,37 +1194,37 @@ const H = {
1186
1194
  type: "modal",
1187
1195
  level: "warning"
1188
1196
  },
1189
- ...H,
1190
- ..._
1197
+ ...K,
1198
+ ...X
1191
1199
  };
1192
1200
  class C extends w {
1193
1201
  get(E = "default", e = "NOT_FOUND") {
1194
- var s, A;
1202
+ var N, l;
1195
1203
  if (E instanceof Error)
1196
1204
  return this.logError(E.message), {
1197
- ...i.internalError,
1198
- title: U(i.internalError.title),
1199
- message: U(i.internalError.message),
1205
+ ...I.internalError,
1206
+ title: U(I.internalError.title),
1207
+ message: U(I.internalError.message),
1200
1208
  uuid: e
1201
1209
  };
1202
1210
  const r = typeof E == "string" ? E : E.code ?? E.errorType;
1203
1211
  this.logDebug("statusCode", r);
1204
- const l = typeof E == "string" ? {} : { ...E };
1212
+ const A = typeof E == "string" ? {} : { ...E };
1205
1213
  return {
1206
- ...i[r] ?? i.default,
1214
+ ...I[r] ?? I.default,
1207
1215
  title: U(
1208
- ((s = i[r]) == null ? void 0 : s.title) ?? i.default.title,
1209
- l
1216
+ ((N = I[r]) == null ? void 0 : N.title) ?? I.default.title,
1217
+ A
1210
1218
  ),
1211
1219
  message: U(
1212
- ((A = i[r]) == null ? void 0 : A.message) ?? i.default.message,
1213
- l
1220
+ ((l = I[r]) == null ? void 0 : l.message) ?? I.default.message,
1221
+ A
1214
1222
  ),
1215
1223
  uuid: e
1216
1224
  };
1217
1225
  }
1218
1226
  }
1219
- class ie extends h {
1227
+ class me extends V {
1220
1228
  constructor() {
1221
1229
  super(...arguments);
1222
1230
  O(this, "uuid", "");
@@ -1230,51 +1238,51 @@ class ie extends h {
1230
1238
  throw new C().get("SESSION_NOT_FOUND");
1231
1239
  return this.session;
1232
1240
  }
1233
- returnData(e, r, l) {
1234
- const s = this.encode(r, l);
1235
- e.status(200).json(s);
1241
+ returnData(e, r, A) {
1242
+ const N = this.encode(r, A);
1243
+ e.status(200).json(N);
1236
1244
  }
1237
1245
  returnError(e, r) {
1238
1246
  return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new C().get(r, this.uuid));
1239
1247
  }
1240
1248
  get(e) {
1241
- return this.logDebug("get ApiMiddleware"), (r, l) => {
1242
- var s;
1243
- this.logDebug("return ApiMiddleware"), this.uuid = (s = r == null ? void 0 : r.body) == null ? void 0 : s.uuid, T(r).pipe(
1249
+ return this.logDebug("get ApiMiddleware"), (r, A) => {
1250
+ var N;
1251
+ this.logDebug("return ApiMiddleware"), this.uuid = (N = r == null ? void 0 : r.body) == null ? void 0 : N.uuid, T(r).pipe(
1244
1252
  L(
1245
- (A) => B({
1246
- params: T(this.decode(A.body)),
1247
- headers: T(A.headers)
1253
+ (l) => B({
1254
+ params: T(this.decode(l.body)),
1255
+ headers: T(l.headers)
1248
1256
  })
1249
1257
  ),
1250
1258
  L(
1251
- ({ params: A, headers: R }) => B({
1252
- response: e(A, this.uuid, R),
1259
+ ({ params: l, headers: R }) => B({
1260
+ response: e(l, this.uuid, R),
1253
1261
  headers: T(R),
1254
- params: T(A)
1262
+ params: T(l)
1255
1263
  })
1256
1264
  ),
1257
- L(({ params: A, response: R, headers: N }) => (this.logDebug(
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)}`
1265
+ L(({ params: l, response: R, headers: s }) => (this.logDebug(
1266
+ `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(s)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(l)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(R)}`
1259
1267
  ), T(R))),
1260
- S((A) => {
1268
+ n((l) => {
1261
1269
  var R;
1262
1270
  return this.logError(
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)}`
1264
- ), this.returnError(l, A), P;
1271
+ `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(l)}`
1272
+ ), this.returnError(A, l), P;
1265
1273
  })
1266
1274
  ).subscribe({
1267
- next: (A) => {
1268
- this.logDebug("ApiMiddleware subscribe next", JSON.stringify(A)), this.returnData(l, A, this.uuid);
1275
+ next: (l) => {
1276
+ this.logDebug("ApiMiddleware subscribe next", JSON.stringify(l)), this.returnData(A, l, this.uuid);
1269
1277
  }
1270
1278
  });
1271
1279
  };
1272
1280
  }
1273
1281
  }
1274
- const X = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1275
- class Ce extends Q {
1276
- constructor(e, r, l = {}) {
1277
- super(l);
1282
+ const $ = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1283
+ class ge extends Q {
1284
+ constructor(e, r, A = {}) {
1285
+ super(A);
1278
1286
  O(this, "apiUrl");
1279
1287
  O(this, "method");
1280
1288
  this.apiUrl = e, this.method = r ?? "POST";
@@ -1287,7 +1295,7 @@ class Ce extends Q {
1287
1295
  formatParams(e) {
1288
1296
  return JSON.stringify({
1289
1297
  data: {
1290
- type: X,
1298
+ type: $,
1291
1299
  attributes: e
1292
1300
  }
1293
1301
  });
@@ -1295,106 +1303,111 @@ class Ce extends Q {
1295
1303
  fetchData(e = {}, r) {
1296
1304
  return this.getHeaders().pipe(
1297
1305
  L(
1298
- (l) => c(
1306
+ (A) => c(
1299
1307
  this.apiUrl,
1300
1308
  {
1301
1309
  method: "POST",
1302
- headers: l,
1310
+ headers: A,
1303
1311
  body: this.formatParams(e),
1304
- selector: (s) => s.json()
1312
+ selector: (N) => N.json()
1305
1313
  }
1306
1314
  ).pipe(
1307
- S((s) => {
1308
- throw this.logError(JSON.stringify(s)), this.logError(
1315
+ n((N) => {
1316
+ throw this.logError(JSON.stringify(N)), this.logError(
1309
1317
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1310
- l
1318
+ A
1311
1319
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1312
1320
  this.formatParams(e)
1313
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
1321
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
1314
1322
  ), new C().get("default", r);
1315
1323
  }),
1316
- L((s) => (this.logDebug(
1324
+ L((N) => (this.logDebug(
1317
1325
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1318
- l
1326
+ A
1319
1327
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1320
1328
  this.formatParams(e)
1321
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
1322
- ), T(s)))
1329
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(N)} \x1B[33m`
1330
+ ), T(N)))
1323
1331
  )
1324
1332
  ),
1325
- V((l) => this.errorHandler(l, r))
1333
+ h((A) => this.errorHandler(A, r))
1326
1334
  );
1327
1335
  }
1328
1336
  fetchCustomData(e = {}, r) {
1329
- return this.getHeaders().pipe(
1337
+ const A = {
1338
+ "Content-Type": "application/json"
1339
+ }, N = x.stringify(
1340
+ e
1341
+ ), l = `${this.apiUrl}?${N}`, R = this.method === "GET" ? l : this.apiUrl;
1342
+ return this.getHeaders(A).pipe(
1330
1343
  L(
1331
- (l) => c(this.apiUrl, {
1344
+ (s) => c(R, {
1332
1345
  method: this.method,
1333
- headers: l,
1346
+ headers: s,
1334
1347
  body: this.method === "GET" ? null : JSON.stringify(e),
1335
- selector: (s) => s.json()
1348
+ selector: (a) => a.json()
1336
1349
  }).pipe(
1337
- S((s) => {
1338
- throw this.logError(JSON.stringify(s)), this.logError(
1339
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1340
- l
1350
+ n((a) => {
1351
+ throw this.logError(JSON.stringify(a)), this.logError(
1352
+ `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1353
+ s
1341
1354
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1342
1355
  this.formatParams(e)
1343
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
1356
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)} \x1B[33m`
1344
1357
  ), new C().get("default", r);
1345
1358
  }),
1346
- L((s) => (this.logDebug(
1347
- `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(
1348
- l
1359
+ L((a) => (this.logDebug(
1360
+ `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${R} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1361
+ s
1349
1362
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1350
1363
  e
1351
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(s)} \x1B[33m`
1352
- ), T(s)))
1364
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(a)} \x1B[33m`
1365
+ ), T(a)))
1353
1366
  )
1354
1367
  )
1355
1368
  );
1356
1369
  }
1357
1370
  }
1358
- const $ = /^(?:[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;
1359
- function b(t) {
1360
- return typeof t == "string" && $.test(t);
1361
- }
1371
+ const b = /^(?:[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;
1362
1372
  function W(t) {
1363
- if (!b(t))
1373
+ return typeof t == "string" && b.test(t);
1374
+ }
1375
+ function k(t) {
1376
+ if (!W(t))
1364
1377
  throw TypeError("Invalid UUID");
1365
1378
  let E;
1366
1379
  const e = new Uint8Array(16);
1367
1380
  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;
1368
1381
  }
1369
- function k(t) {
1382
+ function j(t) {
1370
1383
  t = unescape(encodeURIComponent(t));
1371
1384
  const E = [];
1372
1385
  for (let e = 0; e < t.length; ++e)
1373
1386
  E.push(t.charCodeAt(e));
1374
1387
  return E;
1375
1388
  }
1376
- const j = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Z = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
1377
- function z(t, E, e) {
1378
- function r(l, s, A, R) {
1379
- var N;
1380
- if (typeof l == "string" && (l = k(l)), typeof s == "string" && (s = W(s)), ((N = s) === null || N === void 0 ? void 0 : N.length) !== 16)
1389
+ const Z = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", z = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
1390
+ function q(t, E, e) {
1391
+ function r(A, N, l, R) {
1392
+ var s;
1393
+ if (typeof A == "string" && (A = j(A)), typeof N == "string" && (N = k(N)), ((s = N) === null || s === void 0 ? void 0 : s.length) !== 16)
1381
1394
  throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
1382
- let o = new Uint8Array(16 + l.length);
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) {
1395
+ let a = new Uint8Array(16 + A.length);
1396
+ if (a.set(N), a.set(A, N.length), a = e(a), a[6] = a[6] & 15 | E, a[8] = a[8] & 63 | 128, l) {
1384
1397
  R = R || 0;
1385
- for (let I = 0; I < 16; ++I)
1386
- A[R + I] = o[I];
1387
- return A;
1398
+ for (let i = 0; i < 16; ++i)
1399
+ l[R + i] = a[i];
1400
+ return l;
1388
1401
  }
1389
- return G(o);
1402
+ return H(a);
1390
1403
  }
1391
1404
  try {
1392
1405
  r.name = t;
1393
1406
  } catch {
1394
1407
  }
1395
- return r.DNS = j, r.URL = Z, r;
1408
+ return r.DNS = Z, r.URL = z, r;
1396
1409
  }
1397
- function q(t, E, e, r) {
1410
+ function ee(t, E, e, r) {
1398
1411
  switch (t) {
1399
1412
  case 0:
1400
1413
  return E & e ^ ~E & r;
@@ -1409,42 +1422,42 @@ function q(t, E, e, r) {
1409
1422
  function D(t, E) {
1410
1423
  return t << E | t >>> 32 - E;
1411
1424
  }
1412
- function ee(t) {
1425
+ function re(t) {
1413
1426
  const E = [1518500249, 1859775393, 2400959708, 3395469782], e = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
1414
1427
  if (typeof t == "string") {
1415
- const A = unescape(encodeURIComponent(t));
1428
+ const l = unescape(encodeURIComponent(t));
1416
1429
  t = [];
1417
- for (let R = 0; R < A.length; ++R)
1418
- t.push(A.charCodeAt(R));
1430
+ for (let R = 0; R < l.length; ++R)
1431
+ t.push(l.charCodeAt(R));
1419
1432
  } else
1420
1433
  Array.isArray(t) || (t = Array.prototype.slice.call(t));
1421
1434
  t.push(128);
1422
- const r = t.length / 4 + 2, l = Math.ceil(r / 16), s = new Array(l);
1423
- for (let A = 0; A < l; ++A) {
1435
+ const r = t.length / 4 + 2, A = Math.ceil(r / 16), N = new Array(A);
1436
+ for (let l = 0; l < A; ++l) {
1424
1437
  const R = new Uint32Array(16);
1425
- for (let N = 0; N < 16; ++N)
1426
- R[N] = t[A * 64 + N * 4] << 24 | t[A * 64 + N * 4 + 1] << 16 | t[A * 64 + N * 4 + 2] << 8 | t[A * 64 + N * 4 + 3];
1427
- s[A] = R;
1438
+ for (let s = 0; s < 16; ++s)
1439
+ R[s] = t[l * 64 + s * 4] << 24 | t[l * 64 + s * 4 + 1] << 16 | t[l * 64 + s * 4 + 2] << 8 | t[l * 64 + s * 4 + 3];
1440
+ N[l] = R;
1428
1441
  }
1429
- 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;
1430
- for (let A = 0; A < l; ++A) {
1442
+ N[A - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), N[A - 1][14] = Math.floor(N[A - 1][14]), N[A - 1][15] = (t.length - 1) * 8 & 4294967295;
1443
+ for (let l = 0; l < A; ++l) {
1431
1444
  const R = new Uint32Array(80);
1432
- for (let a = 0; a < 16; ++a)
1433
- R[a] = s[A][a];
1434
- for (let a = 16; a < 80; ++a)
1435
- R[a] = D(R[a - 3] ^ R[a - 8] ^ R[a - 14] ^ R[a - 16], 1);
1436
- let N = e[0], o = e[1], I = e[2], m = e[3], n = e[4];
1437
- for (let a = 0; a < 80; ++a) {
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;
1445
+ for (let o = 0; o < 16; ++o)
1446
+ R[o] = N[l][o];
1447
+ for (let o = 16; o < 80; ++o)
1448
+ R[o] = D(R[o - 3] ^ R[o - 8] ^ R[o - 14] ^ R[o - 16], 1);
1449
+ let s = e[0], a = e[1], i = e[2], m = e[3], S = e[4];
1450
+ for (let o = 0; o < 80; ++o) {
1451
+ const d = Math.floor(o / 20), y = D(s, 5) + ee(d, a, i, m) + S + E[d] + R[o] >>> 0;
1452
+ S = m, m = i, i = D(a, 30) >>> 0, a = s, s = y;
1440
1453
  }
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;
1454
+ e[0] = e[0] + s >>> 0, e[1] = e[1] + a >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + S >>> 0;
1442
1455
  }
1443
1456
  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];
1444
1457
  }
1445
- const re = z("v5", 80, ee), p = re;
1446
- class me extends x {
1447
- constructor(e, r = "POST", l = {}) {
1458
+ const Ee = q("v5", 80, re), p = Ee;
1459
+ class Ue extends G {
1460
+ constructor(e, r = "POST", A = {}) {
1448
1461
  super();
1449
1462
  O(this, "apiUrl");
1450
1463
  O(this, "method");
@@ -1453,7 +1466,7 @@ class me extends x {
1453
1466
  O(this, "errorResponse");
1454
1467
  this.apiUrl = e, this.method = r, this.headers = {
1455
1468
  "Content-Type": "application/json",
1456
- ...l
1469
+ ...A
1457
1470
  };
1458
1471
  }
1459
1472
  setIsLoadingEnabled(e) {
@@ -1463,37 +1476,37 @@ class me extends x {
1463
1476
  this.errorResponse = e;
1464
1477
  }
1465
1478
  fetchData(e = {}) {
1466
- const r = (/* @__PURE__ */ new Date()).toISOString(), l = p(r, p.URL), s = this.encode({ ...e }, l);
1479
+ const r = (/* @__PURE__ */ new Date()).toISOString(), A = p(r, p.URL), N = this.encode({ ...e }, A);
1467
1480
  g.getInstance().setSubject(this.isLoadingEnabled);
1468
1481
  const R = new URLSearchParams(window.location.search).get("flow") ?? "N/A";
1469
1482
  return c(this.apiUrl, {
1470
1483
  method: this.method,
1471
1484
  headers: { ...this.headers, flow: R },
1472
- body: s,
1473
- selector: (N) => N.json()
1485
+ body: N,
1486
+ selector: (s) => s.json()
1474
1487
  }).pipe(
1475
- L((N) => T(this.decode(N))),
1476
- L((N) => N.code && (N.type === "modal" || N.type === "message") ? (this.logError(
1477
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
1478
- ), g.getInstance().setSubject(!1), M.getInstance().setSubject(N), this.errorResponse ? T(this.errorResponse) : P) : T(N)),
1479
- L((N) => (g.getInstance().setSubject(!1), this.logDebug(
1480
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
1481
- ), T(N))),
1482
- S((N) => (this.logError(
1483
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(N)}`
1488
+ L((s) => T(this.decode(s))),
1489
+ L((s) => s.code && (s.type === "modal" || s.type === "message") ? (this.logError(
1490
+ `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 ? T(this.errorResponse) : P) : T(s)),
1492
+ L((s) => (g.getInstance().setSubject(!1), this.logDebug(
1493
+ `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1494
+ ), T(s))),
1495
+ n((s) => (this.logError(
1496
+ `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${N} <RESPONSE>: ${JSON.stringify(s)}`
1484
1497
  ), g.getInstance().setSubject(!1), M.getInstance().setSubject(
1485
- new C().get(N, l)
1498
+ new C().get(s, A)
1486
1499
  ), this.errorResponse ? T(this.errorResponse) : P))
1487
1500
  );
1488
1501
  }
1489
1502
  }
1490
1503
  export {
1491
- ie as ApiMiddleware,
1504
+ me as ApiMiddleware,
1492
1505
  C as ErrorCatalog,
1493
- Ce as FetchServiceBE,
1494
- me as FetchServiceFE,
1506
+ ge as FetchServiceBE,
1507
+ Ue as FetchServiceFE,
1495
1508
  g as LoadingHandler,
1496
1509
  M as MessageHandler,
1497
- Se as RxSubjectManager,
1498
- De as ServiceToken
1510
+ De as RxSubjectManager,
1511
+ Pe as ServiceToken
1499
1512
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./index-0cc7a8bb.js";
1
+ import { t } from "./index-991c08e5.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.124",
3
+ "version": "0.0.126",
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
+ }