mp-front-cli 0.0.35 → 0.0.37

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.
Files changed (33) hide show
  1. package/dist/core/errors/error-catalog.d.ts +2 -1
  2. package/dist/core/errors/error-catalog.d.ts.map +1 -1
  3. package/dist/core/errors/index.d.ts +0 -1
  4. package/dist/core/errors/index.d.ts.map +1 -1
  5. package/dist/core/interfaces/message.d.ts +1 -0
  6. package/dist/core/interfaces/message.d.ts.map +1 -1
  7. package/dist/core/middleware/index.d.ts +6 -4
  8. package/dist/core/middleware/index.d.ts.map +1 -1
  9. package/dist/core/utils/api-request/fetch-service-be.d.ts +2 -5
  10. package/dist/core/utils/api-request/fetch-service-be.d.ts.map +1 -1
  11. package/dist/core/utils/api-request/fetch-service-fe.d.ts +5 -5
  12. package/dist/core/utils/api-request/fetch-service-fe.d.ts.map +1 -1
  13. package/dist/core/utils/custom-catch-error.d.ts +5 -0
  14. package/dist/core/utils/custom-catch-error.d.ts.map +1 -0
  15. package/dist/core/utils/custom-encoder.d.ts +1 -1
  16. package/dist/core/utils/custom-encoder.d.ts.map +1 -1
  17. package/dist/core/utils/custom-header.d.ts +5 -237
  18. package/dist/core/utils/custom-header.d.ts.map +1 -1
  19. package/dist/{custom-encoder-b2078b5c.js → custom-encoder-6737c6cb.js} +244 -245
  20. package/dist/{custom-header-9a9c64e2.js → custom-header-4aec1dac.js} +109 -99
  21. package/dist/{custom-validator-16ec563a.js → custom-validator-ae5da0a7.js} +436 -449
  22. package/dist/{index-6f6eb615.js → index-df4e0539.js} +4 -0
  23. package/dist/lang/common/errors/es_MX/index.d.ts +4 -0
  24. package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -1
  25. package/dist/message-handler-d90f2bb6.js +35 -0
  26. package/dist/mp-front-cli-all.es.js +13 -13
  27. package/dist/mp-front-cli-core.es.js +196 -92
  28. package/dist/mp-front-cli-encoder.es.js +1 -1
  29. package/dist/mp-front-cli-header.es.js +6 -5
  30. package/dist/mp-front-cli-locale.es.js +1 -1
  31. package/dist/mp-front-cli-utils-rxjs.es.js +11 -36
  32. package/dist/mp-front-cli-validator.es.js +3 -3
  33. package/package.json +4 -2
@@ -19,6 +19,10 @@ const e = {
19
19
  ErrorGeneral: {
20
20
  title: "",
21
21
  message: "{{ message }}"
22
+ },
23
+ internalError: {
24
+ title: "Error interno",
25
+ message: "Ocurrió un error interno"
22
26
  }
23
27
  }
24
28
  };
@@ -20,6 +20,10 @@ declare const translation: {
20
20
  title: string;
21
21
  message: string;
22
22
  };
23
+ internalError: {
24
+ title: string;
25
+ message: string;
26
+ };
23
27
  };
24
28
  };
25
29
  export default translation;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;CAwBhB,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lang/common/errors/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BhB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,35 @@
1
+ var i = Object.defineProperty;
2
+ var r = (c, e, t) => e in c ? i(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t;
3
+ var u = (c, e, t) => (r(c, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { Observable as j, Subject as n } from "rxjs";
5
+ class a extends j {
6
+ constructor() {
7
+ super((t) => {
8
+ this.subject$.subscribe(t);
9
+ });
10
+ u(this, "subject$", new n());
11
+ }
12
+ setSubject(t) {
13
+ this.subject$.next(t);
14
+ }
15
+ completeSubject() {
16
+ this.subject$.complete();
17
+ }
18
+ unsubscribeSubject() {
19
+ return this.subject$.unsubscribe(), this.subject$ = new n(), this.subject$;
20
+ }
21
+ }
22
+ const s = class s extends a {
23
+ constructor() {
24
+ super();
25
+ }
26
+ static getInstance() {
27
+ return s.instance || (s.instance = new s()), s.instance;
28
+ }
29
+ };
30
+ u(s, "instance");
31
+ let b = s;
32
+ export {
33
+ b as M,
34
+ a as R
35
+ };
@@ -1,19 +1,19 @@
1
- import { E as p, M as m } from "./custom-validator-16ec563a.js";
2
- import { ApiMiddleware as c, FetchServiceBE as d, FetchServiceFE as g } from "./mp-front-cli-core.es.js";
3
- import { S as x } from "./custom-header-9a9c64e2.js";
4
- import { LoadingHandler as F, MessageHandler as M, RxSubjectManager as S } from "./mp-front-cli-utils-rxjs.es.js";
5
- import "./custom-encoder-b2078b5c.js";
1
+ import { E as p } from "./custom-validator-ae5da0a7.js";
2
+ import { ApiMiddleware as c, FetchServiceBE as s, FetchServiceFE as x } from "./mp-front-cli-core.es.js";
3
+ import { S as f } from "./custom-header-4aec1dac.js";
4
+ import { M as S, R as g } from "./message-handler-d90f2bb6.js";
5
+ import { LoadingHandler as E } from "./mp-front-cli-utils-rxjs.es.js";
6
+ import "./custom-encoder-6737c6cb.js";
6
7
  import "./mp-front-cli-logger.es.js";
7
- import "./index-6f6eb615.js";
8
+ import "./index-df4e0539.js";
8
9
  import "rxjs";
9
10
  export {
10
11
  c as ApiMiddleware,
11
12
  p as ErrorCatalog,
12
- d as FetchServiceBE,
13
- g as FetchServiceFE,
14
- F as LoadingHandler,
15
- m as MessageErrorBFF,
16
- M as MessageHandler,
17
- S as RxSubjectManager,
18
- x as ServiceToken
13
+ s as FetchServiceBE,
14
+ x as FetchServiceFE,
15
+ E as LoadingHandler,
16
+ S as MessageHandler,
17
+ g as RxSubjectManager,
18
+ f as ServiceToken
19
19
  };
@@ -1,126 +1,230 @@
1
- var p = Object.defineProperty;
2
- var b = (a, s, t) => s in a ? p(a, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[s] = t;
3
- var c = (a, s, t) => (b(a, typeof s != "symbol" ? s + "" : s, t), t);
4
- import { C as l, M as g } from "./custom-validator-16ec563a.js";
5
- import { E as N } from "./custom-validator-16ec563a.js";
6
- import { C as f, f as S } from "./custom-header-9a9c64e2.js";
7
- import { S as J } from "./custom-header-9a9c64e2.js";
8
- import { MessageHandler as n, LoadingHandler as u } from "./mp-front-cli-utils-rxjs.es.js";
9
- import { RxSubjectManager as v } from "./mp-front-cli-utils-rxjs.es.js";
10
- import { of as o, switchMap as i, catchError as m, filter as d } from "rxjs";
11
- import "./custom-encoder-b2078b5c.js";
1
+ var w = Object.defineProperty;
2
+ var I = (e, i, t) => i in e ? w(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
+ var g = (e, i, t) => (I(e, typeof i != "symbol" ? i + "" : i, t), t);
4
+ import { E as y } from "./custom-validator-ae5da0a7.js";
5
+ import { C as A, a as $, f as B } from "./custom-header-4aec1dac.js";
6
+ import { S as rt } from "./custom-header-4aec1dac.js";
7
+ import { M } from "./message-handler-d90f2bb6.js";
8
+ import { R as st } from "./message-handler-d90f2bb6.js";
9
+ import { LoadingHandler as m } from "./mp-front-cli-utils-rxjs.es.js";
10
+ import { of as u, switchMap as d, catchError as R, EMPTY as N, filter as D } from "rxjs";
11
+ import "./custom-encoder-6737c6cb.js";
12
12
  import "./mp-front-cli-logger.es.js";
13
- import "./index-6f6eb615.js";
14
- class H extends l {
15
- returnData(s, t) {
16
- n.getInstance().unsubscribeSubject();
17
- const e = this.encode(t);
18
- s.status(200).json(e);
19
- }
20
- get(s) {
21
- return this.logDebug("get ApiMiddleware"), (t, e) => {
22
- this.logDebug("return ApiMiddleware"), n.getInstance().subscribe({
23
- next: (r) => (this.logError(
24
- `ApiMiddleware MessageHandler ${JSON.stringify(r)}`
25
- ), n.getInstance().unsubscribeSubject(), e.status(r.code ?? 520).json(r))
26
- }), o(t).pipe(
27
- i((r) => this.validateTokenFront(r)),
28
- i((r) => o(this.decode(r.body))),
29
- i((r) => s(r)),
30
- m((r) => (n.getInstance().setSubject(r), o({})))
13
+ import "./index-df4e0539.js";
14
+ class q extends A {
15
+ constructor() {
16
+ super(...arguments);
17
+ g(this, "uuid", "");
18
+ }
19
+ returnData(t, r, o) {
20
+ const s = this.encode(r, o);
21
+ t.status(200).json(s);
22
+ }
23
+ returnError(t, r) {
24
+ return r != null && r.uuid ? t.status(520).json(r) : t.status(520).json(new y().get(r, this.uuid));
25
+ }
26
+ get(t) {
27
+ return this.logDebug("get ApiMiddleware"), (r, o) => {
28
+ var s;
29
+ this.logDebug("return ApiMiddleware"), this.uuid = (s = r == null ? void 0 : r.body) == null ? void 0 : s.uuid, u(r).pipe(
30
+ d((n) => this.validateTokenFront(n)),
31
+ d((n) => u(this.decode(n.body))),
32
+ d(
33
+ (n) => t(n, this.uuid).pipe(
34
+ d((f) => u({ params: n, response: f }))
35
+ )
36
+ ),
37
+ d(({ params: n, response: f }) => (this.logDebug(
38
+ `ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(n)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(f)}`
39
+ ), u(f))),
40
+ R((n) => {
41
+ var f;
42
+ return this.logError(
43
+ `ApiMiddleware <URL>: ${r == null ? void 0 : r.url} <UUID> ${(f = r == null ? void 0 : r.body) == null ? void 0 : f.uuid} <PARAMS> ${JSON.stringify(r == null ? void 0 : r.body)} <ERROR>: ${JSON.stringify(n)}`
44
+ ), this.returnError(o, n), N;
45
+ })
31
46
  ).subscribe({
32
- next: (r) => {
33
- this.returnData(e, r);
47
+ next: (n) => {
48
+ this.logDebug("ApiMiddleware subscribe next", JSON.stringify(n)), this.returnData(o, n, this.uuid);
34
49
  }
35
50
  });
36
51
  };
37
52
  }
38
53
  }
39
- class C extends f {
40
- constructor(t, e) {
54
+ class tt extends $ {
55
+ constructor(t, r) {
41
56
  super();
42
- c(this, "apiUrl");
43
- c(this, "method");
44
- this.apiUrl = t, this.method = e ?? "POST";
57
+ g(this, "apiUrl");
58
+ g(this, "method");
59
+ this.apiUrl = t, this.method = r ?? "POST";
45
60
  }
46
- errorHandler(t) {
47
- return t != null && t.errors && n.getInstance().setSubject(
48
- new g(t.errors[0]).get()
49
- ), !(t != null && t.errors);
50
- }
51
- customCatchError(t) {
52
- return n.getInstance().setSubject(new g(t).get()), o({ error: !0 }).pipe(d(({ error: e }) => !e));
61
+ errorHandler(t, r) {
62
+ if (t != null && t.errors)
63
+ throw new y().get(t.errors[0], r);
64
+ return !(t != null && t.errors);
53
65
  }
54
- fetchData(t = {}) {
55
- return this.logDebug("fetchData", JSON.stringify(t)), o(t).pipe(
56
- i(
57
- (e) => this.getHeaders().pipe(i((r) => o({ params: e, headers: r })))
66
+ fetchData(t = {}, r) {
67
+ return u(t).pipe(
68
+ d(
69
+ (o) => this.getHeaders().pipe(d((s) => u({ params: o, headers: s })))
58
70
  ),
59
- i(
60
- ({ params: e, headers: r }) => S(this.apiUrl, {
71
+ d(
72
+ ({ params: o, headers: s }) => B(this.apiUrl, {
61
73
  method: this.method,
62
- headers: r,
63
- body: this.method === "GET" ? null : JSON.stringify(e)
74
+ headers: s,
75
+ body: this.method === "GET" ? null : JSON.stringify(o),
76
+ selector: (n) => n.json()
64
77
  }).pipe(
65
- i((h) => h.json()),
66
- i((h) => (this.logDebug(
67
- `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
68
- r
78
+ d((n) => (this.logDebug(
79
+ `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
80
+ s
69
81
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
70
- e
71
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(h)} \x1B[33m`
72
- ), o(h)))
82
+ o
83
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
84
+ ), u(n)))
73
85
  )
74
86
  ),
75
- m(this.customCatchError),
76
- d(this.errorHandler)
87
+ D((o) => this.errorHandler(o, r))
77
88
  );
78
89
  }
79
90
  }
80
- class F extends l {
81
- constructor(t, e = "POST", r = {}) {
91
+ 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;
92
+ function v(e) {
93
+ return typeof e == "string" && j.test(e);
94
+ }
95
+ const a = [];
96
+ for (let e = 0; e < 256; ++e)
97
+ a.push((e + 256).toString(16).slice(1));
98
+ function L(e, i = 0) {
99
+ return a[e[i + 0]] + a[e[i + 1]] + a[e[i + 2]] + a[e[i + 3]] + "-" + a[e[i + 4]] + a[e[i + 5]] + "-" + a[e[i + 6]] + a[e[i + 7]] + "-" + a[e[i + 8]] + a[e[i + 9]] + "-" + a[e[i + 10]] + a[e[i + 11]] + a[e[i + 12]] + a[e[i + 13]] + a[e[i + 14]] + a[e[i + 15]];
100
+ }
101
+ function T(e) {
102
+ if (!v(e))
103
+ throw TypeError("Invalid UUID");
104
+ let i;
105
+ const t = new Uint8Array(16);
106
+ return t[0] = (i = parseInt(e.slice(0, 8), 16)) >>> 24, t[1] = i >>> 16 & 255, t[2] = i >>> 8 & 255, t[3] = i & 255, t[4] = (i = parseInt(e.slice(9, 13), 16)) >>> 8, t[5] = i & 255, t[6] = (i = parseInt(e.slice(14, 18), 16)) >>> 8, t[7] = i & 255, t[8] = (i = parseInt(e.slice(19, 23), 16)) >>> 8, t[9] = i & 255, t[10] = (i = parseInt(e.slice(24, 36), 16)) / 1099511627776 & 255, t[11] = i / 4294967296 & 255, t[12] = i >>> 24 & 255, t[13] = i >>> 16 & 255, t[14] = i >>> 8 & 255, t[15] = i & 255, t;
107
+ }
108
+ function H(e) {
109
+ e = unescape(encodeURIComponent(e));
110
+ const i = [];
111
+ for (let t = 0; t < e.length; ++t)
112
+ i.push(e.charCodeAt(t));
113
+ return i;
114
+ }
115
+ const J = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", C = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
116
+ function P(e, i, t) {
117
+ function r(o, s, n, f) {
118
+ var l;
119
+ if (typeof o == "string" && (o = H(o)), typeof s == "string" && (s = T(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16)
120
+ throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
121
+ let h = new Uint8Array(16 + o.length);
122
+ if (h.set(s), h.set(o, s.length), h = t(h), h[6] = h[6] & 15 | i, h[8] = h[8] & 63 | 128, n) {
123
+ f = f || 0;
124
+ for (let x = 0; x < 16; ++x)
125
+ n[f + x] = h[x];
126
+ return n;
127
+ }
128
+ return L(h);
129
+ }
130
+ try {
131
+ r.name = e;
132
+ } catch {
133
+ }
134
+ return r.DNS = J, r.URL = C, r;
135
+ }
136
+ function F(e, i, t, r) {
137
+ switch (e) {
138
+ case 0:
139
+ return i & t ^ ~i & r;
140
+ case 1:
141
+ return i ^ t ^ r;
142
+ case 2:
143
+ return i & t ^ i & r ^ t & r;
144
+ case 3:
145
+ return i ^ t ^ r;
146
+ }
147
+ }
148
+ function E(e, i) {
149
+ return e << i | e >>> 32 - i;
150
+ }
151
+ function k(e) {
152
+ const i = [1518500249, 1859775393, 2400959708, 3395469782], t = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
153
+ if (typeof e == "string") {
154
+ const n = unescape(encodeURIComponent(e));
155
+ e = [];
156
+ for (let f = 0; f < n.length; ++f)
157
+ e.push(n.charCodeAt(f));
158
+ } else
159
+ Array.isArray(e) || (e = Array.prototype.slice.call(e));
160
+ e.push(128);
161
+ const r = e.length / 4 + 2, o = Math.ceil(r / 16), s = new Array(o);
162
+ for (let n = 0; n < o; ++n) {
163
+ const f = new Uint32Array(16);
164
+ for (let l = 0; l < 16; ++l)
165
+ f[l] = e[n * 64 + l * 4] << 24 | e[n * 64 + l * 4 + 1] << 16 | e[n * 64 + l * 4 + 2] << 8 | e[n * 64 + l * 4 + 3];
166
+ s[n] = f;
167
+ }
168
+ s[o - 1][14] = (e.length - 1) * 8 / Math.pow(2, 32), s[o - 1][14] = Math.floor(s[o - 1][14]), s[o - 1][15] = (e.length - 1) * 8 & 4294967295;
169
+ for (let n = 0; n < o; ++n) {
170
+ const f = new Uint32Array(80);
171
+ for (let c = 0; c < 16; ++c)
172
+ f[c] = s[n][c];
173
+ for (let c = 16; c < 80; ++c)
174
+ f[c] = E(f[c - 3] ^ f[c - 8] ^ f[c - 14] ^ f[c - 16], 1);
175
+ let l = t[0], h = t[1], x = t[2], p = t[3], S = t[4];
176
+ for (let c = 0; c < 80; ++c) {
177
+ const U = Math.floor(c / 20), O = E(l, 5) + F(U, h, x, p) + S + i[U] + f[c] >>> 0;
178
+ S = p, p = x, x = E(h, 30) >>> 0, h = l, l = O;
179
+ }
180
+ t[0] = t[0] + l >>> 0, t[1] = t[1] + h >>> 0, t[2] = t[2] + x >>> 0, t[3] = t[3] + p >>> 0, t[4] = t[4] + S >>> 0;
181
+ }
182
+ return [t[0] >> 24 & 255, t[0] >> 16 & 255, t[0] >> 8 & 255, t[0] & 255, t[1] >> 24 & 255, t[1] >> 16 & 255, t[1] >> 8 & 255, t[1] & 255, t[2] >> 24 & 255, t[2] >> 16 & 255, t[2] >> 8 & 255, t[2] & 255, t[3] >> 24 & 255, t[3] >> 16 & 255, t[3] >> 8 & 255, t[3] & 255, t[4] >> 24 & 255, t[4] >> 16 & 255, t[4] >> 8 & 255, t[4] & 255];
183
+ }
184
+ const Y = P("v5", 80, k), b = Y;
185
+ class et extends A {
186
+ constructor(t, r = "POST", o = {}) {
82
187
  super();
83
- c(this, "apiUrl");
84
- c(this, "method");
85
- c(this, "headers");
86
- this.apiUrl = t, this.method = e, this.headers = {
188
+ g(this, "apiUrl");
189
+ g(this, "method");
190
+ g(this, "headers");
191
+ g(this, "isLoadingEnabled", !0);
192
+ this.apiUrl = t, this.method = r, this.headers = {
87
193
  "Content-Type": "application/json",
88
- ...r
194
+ ...o
89
195
  };
90
196
  }
91
- errorHandler(t) {
92
- return t.code && (n.getInstance().setSubject(t), u.getInstance().setSubject(!1)), !t.code;
197
+ setIsLoadingEnabled(t) {
198
+ this.isLoadingEnabled = t;
93
199
  }
94
- customCatchError(t) {
95
- return n.getInstance().setSubject(new g(t).get()), u.getInstance().setSubject(!1), o({ error: !0 }).pipe(
96
- d(({ error: e }) => !e)
97
- );
200
+ errorHandler(t) {
201
+ return t.code && (M.getInstance().setSubject(t), m.getInstance().setSubject(!1)), !t.code;
98
202
  }
99
203
  fetchData(t = {}) {
100
- return u.getInstance().setSubject(!0), S(this.apiUrl, {
204
+ const r = (/* @__PURE__ */ new Date()).toISOString(), o = b(r, b.URL), s = this.encode({ ...t }, o);
205
+ return m.getInstance().setSubject(this.isLoadingEnabled), B(this.apiUrl, {
101
206
  method: this.method,
102
207
  headers: this.headers,
103
- body: this.encode(t)
208
+ body: s,
209
+ selector: (n) => n.json()
104
210
  }).pipe(
105
- i((e) => e.json()),
106
- i((e) => (this.logDebug(
107
- `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <BODY>: ${JSON.stringify(e)}`
108
- ), o(e))),
109
- d(this.errorHandler),
110
- i((e) => o(this.decode(e))),
111
- i((e) => (u.getInstance().setSubject(!1), o(e))),
112
- m(this.customCatchError)
211
+ d((n) => u(this.decode(n))),
212
+ d((n) => (this.logDebug(
213
+ `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(t)} <BODY> ${s} <RESPONSE>: ${JSON.stringify(n)}`
214
+ ), u(n))),
215
+ D(this.errorHandler),
216
+ d((n) => (m.getInstance().setSubject(!1), u(n))),
217
+ R((n) => (m.getInstance().setSubject(!1), this.catch(n, o)))
113
218
  );
114
219
  }
115
220
  }
116
221
  export {
117
- H as ApiMiddleware,
118
- N as ErrorCatalog,
119
- C as FetchServiceBE,
120
- F as FetchServiceFE,
121
- u as LoadingHandler,
122
- g as MessageErrorBFF,
123
- n as MessageHandler,
124
- v as RxSubjectManager,
125
- J as ServiceToken
222
+ q as ApiMiddleware,
223
+ y as ErrorCatalog,
224
+ tt as FetchServiceBE,
225
+ et as FetchServiceFE,
226
+ m as LoadingHandler,
227
+ M as MessageHandler,
228
+ st as RxSubjectManager,
229
+ rt as ServiceToken
126
230
  };
@@ -1,4 +1,4 @@
1
- import { C as t } from "./custom-encoder-b2078b5c.js";
1
+ import { C as t } from "./custom-encoder-6737c6cb.js";
2
2
  import "./mp-front-cli-logger.es.js";
3
3
  export {
4
4
  t as CustomEncoder
@@ -1,9 +1,10 @@
1
1
  import "rxjs";
2
- import { C as a } from "./custom-header-9a9c64e2.js";
3
- import "./custom-validator-16ec563a.js";
2
+ import { a as s } from "./custom-header-4aec1dac.js";
4
3
  import "./mp-front-cli-logger.es.js";
5
- import "./custom-encoder-b2078b5c.js";
6
- import "./index-6f6eb615.js";
4
+ import "./custom-validator-ae5da0a7.js";
5
+ import "./custom-encoder-6737c6cb.js";
6
+ import "./index-df4e0539.js";
7
+ import "./message-handler-d90f2bb6.js";
7
8
  export {
8
- a as CustomHeader
9
+ s as CustomHeader
9
10
  };
@@ -1,4 +1,4 @@
1
- import { t } from "./index-6f6eb615.js";
1
+ import { t } from "./index-df4e0539.js";
2
2
  const e = {
3
3
  errors: {}
4
4
  }, a = {
@@ -1,25 +1,10 @@
1
- var j = Object.defineProperty;
2
- var o = (n, s, t) => s in n ? j(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
3
- var u = (n, s, t) => (o(n, typeof s != "symbol" ? s + "" : s, t), t);
4
- import { Observable as p, Subject as i } from "rxjs";
5
- class a extends p {
6
- constructor() {
7
- super((t) => {
8
- this.subject$.subscribe(t);
9
- });
10
- u(this, "subject$", new i());
11
- }
12
- setSubject(t) {
13
- this.subject$.next(t);
14
- }
15
- completeSubject() {
16
- this.subject$.complete();
17
- }
18
- unsubscribeSubject() {
19
- return this.subject$.unsubscribe(), this.subject$ = new i(), this.subject$;
20
- }
21
- }
22
- const e = class e extends a {
1
+ var a = Object.defineProperty;
2
+ var i = (s, t, n) => t in s ? a(s, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : s[t] = n;
3
+ var c = (s, t, n) => (i(s, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { R as o } from "./message-handler-d90f2bb6.js";
5
+ import { M } from "./message-handler-d90f2bb6.js";
6
+ import "rxjs";
7
+ const e = class e extends o {
23
8
  constructor() {
24
9
  super();
25
10
  }
@@ -27,20 +12,10 @@ const e = class e extends a {
27
12
  return e.instance || (e.instance = new e()), e.instance;
28
13
  }
29
14
  };
30
- u(e, "instance");
31
- let b = e;
32
- const c = class c extends a {
33
- constructor() {
34
- super();
35
- }
36
- static getInstance() {
37
- return c.instance || (c.instance = new c()), c.instance;
38
- }
39
- };
40
- u(c, "instance");
41
- let r = c;
15
+ c(e, "instance");
16
+ let r = e;
42
17
  export {
43
18
  r as LoadingHandler,
44
- b as MessageHandler,
45
- a as RxSubjectManager
19
+ M as MessageHandler,
20
+ o as RxSubjectManager
46
21
  };
@@ -1,7 +1,7 @@
1
- import { C as p } from "./custom-validator-16ec563a.js";
2
- import "./custom-encoder-b2078b5c.js";
1
+ import { C as p } from "./custom-validator-ae5da0a7.js";
2
+ import "./custom-encoder-6737c6cb.js";
3
+ import "./index-df4e0539.js";
3
4
  import "./mp-front-cli-logger.es.js";
4
- import "./index-6f6eb615.js";
5
5
  export {
6
6
  p as CustomValidator
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -48,11 +48,13 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
+ "@types/uuid": "^9.0.8",
51
52
  "i18next": "23.7.20",
52
53
  "lodash": "^4.17.21",
53
54
  "next": "14.1.0",
54
55
  "next-auth": "^4.24.5",
55
- "rxjs": "^7.8.1"
56
+ "rxjs": "^7.8.1",
57
+ "uuid": "^9.0.1"
56
58
  },
57
59
  "devDependencies": {
58
60
  "@types/lodash": "^4.14.202",