mp-front-cli 0.0.13 → 0.0.15

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 (37) hide show
  1. package/dist/core/services/ServiceToken/index.d.ts +1 -1
  2. package/dist/core/services/ServiceToken/index.d.ts.map +1 -1
  3. package/dist/core/services/ServiceToken/index.js +1 -1
  4. package/dist/core/utils/ApiMiddleware/index.d.ts +2 -2
  5. package/dist/core/utils/ApiMiddleware/index.d.ts.map +1 -1
  6. package/dist/core/utils/ApiMiddleware/index.js +2 -1
  7. package/dist/core/utils/CustomEncoder/index.d.ts +1 -1
  8. package/dist/core/utils/CustomEncoder/index.d.ts.map +1 -1
  9. package/dist/core/utils/CustomEncoder/index.js +1 -1
  10. package/dist/core/utils/CustomHeader/index.d.ts +1 -1
  11. package/dist/core/utils/CustomHeader/index.d.ts.map +1 -1
  12. package/dist/core/utils/CustomHeader/index.js +2 -1
  13. package/dist/core/utils/CustomValidator/index.d.ts +1 -1
  14. package/dist/core/utils/CustomValidator/index.d.ts.map +1 -1
  15. package/dist/core/utils/CustomValidator/index.js +2 -1
  16. package/dist/core/utils/ErrorCatalog/index.d.ts +3 -3
  17. package/dist/core/utils/ErrorCatalog/index.d.ts.map +1 -1
  18. package/dist/core/utils/ErrorCatalog/index.js +1 -1
  19. package/dist/core/utils/MessageErrorBFF/index.d.ts +2 -1
  20. package/dist/core/utils/MessageErrorBFF/index.d.ts.map +1 -1
  21. package/dist/core/utils/MessageErrorBFF/index.js +1 -1
  22. package/dist/core/utils/apiRequest/FetchServiceBE.d.ts +3 -2
  23. package/dist/core/utils/apiRequest/FetchServiceBE.d.ts.map +1 -1
  24. package/dist/core/utils/apiRequest/FetchServiceBE.js +3 -1
  25. package/dist/core/utils/apiRequest/FetchServiceFE.d.ts +3 -2
  26. package/dist/core/utils/apiRequest/FetchServiceFE.d.ts.map +1 -1
  27. package/dist/core/utils/apiRequest/FetchServiceFE.js +3 -1
  28. package/dist/core/utils/rxSubjects/ErrorHandler/index.d.ts +2 -2
  29. package/dist/core/utils/rxSubjects/ErrorHandler/index.d.ts.map +1 -1
  30. package/dist/core/utils/rxSubjects/ErrorHandler/index.js +1 -1
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +0 -1
  34. package/package.json +2 -2
  35. package/dist/types/index.d.ts +0 -4
  36. package/dist/types/index.d.ts.map +0 -1
  37. package/dist/types/index.js +0 -3
@@ -1,4 +1,4 @@
1
- import { CustomLogger } from "../../../core";
1
+ import CustomLogger from "../../utils/CustomLogger";
2
2
  declare class ServiceToken extends CustomLogger {
3
3
  private API_AUTH_BACK_URL;
4
4
  private API_AUTH_BACK_USERNAME_AUTH;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/services/ServiceToken/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,cAAM,YAAa,SAAQ,YAAY;IACrC,OAAO,CAAC,iBAAiB,CAAQ;IACjC,OAAO,CAAC,2BAA2B,CAAQ;IAC3C,OAAO,CAAC,2BAA2B,CAAQ;IAC3C,OAAO,CAAC,kBAAkB,CAAQ;IAClC,OAAO,CAAC,mBAAmB,CAAQ;IACnC,OAAO,CAAC,sBAAsB,CAAQ;IACtC,OAAO,CAAC,OAAO,CAAa;;IAqB5B,GAAG;CAsBJ;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/services/ServiceToken/index.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,0BAA0B,CAAA;AAEnD,cAAM,YAAa,SAAQ,YAAY;IACrC,OAAO,CAAC,iBAAiB,CAAQ;IACjC,OAAO,CAAC,2BAA2B,CAAQ;IAC3C,OAAO,CAAC,2BAA2B,CAAQ;IAC3C,OAAO,CAAC,kBAAkB,CAAQ;IAClC,OAAO,CAAC,mBAAmB,CAAQ;IACnC,OAAO,CAAC,sBAAsB,CAAQ;IACtC,OAAO,CAAC,OAAO,CAAa;;IAqB5B,GAAG;CAsBJ;AAED,eAAe,YAAY,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { catchError, of, switchMap } from "rxjs";
2
2
  import { fromFetch } from "rxjs/fetch";
3
- import { CustomLogger } from "../../../core";
3
+ import CustomLogger from "../../utils/CustomLogger";
4
4
  class ServiceToken extends CustomLogger {
5
5
  API_AUTH_BACK_URL;
6
6
  API_AUTH_BACK_USERNAME_AUTH;
@@ -1,7 +1,7 @@
1
1
  import { Observable } from "rxjs";
2
2
  import type { NextApiRequest, NextApiResponse } from "next";
3
- import { CustomValidator } from "../../../core";
4
- import type { ApiResponse } from "../../../types";
3
+ import CustomValidator from "../CustomValidator";
4
+ import type { ApiResponse } from "../../../types/ApiResponse";
5
5
  declare class ApiMiddleware<TRes, TData> extends CustomValidator {
6
6
  get(handle: (params: TData) => Observable<ApiResponse<TRes>>): (req: NextApiRequest, res: NextApiResponse) => void;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/ApiMiddleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA6B,MAAM,MAAM,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAgB,MAAM,UAAU,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,cAAM,aAAa,CAAC,IAAI,EAAE,KAAK,CAAE,SAAQ,eAAe;IACtD,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,SAG7C,cAAc,OAAO,eAAe;CA+BpD;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/ApiMiddleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA6B,MAAM,MAAM,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAC3D,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,cAAM,aAAa,CAAC,IAAI,EAAE,KAAK,CAAE,SAAQ,eAAe;IACtD,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,SAG7C,cAAc,OAAO,eAAe;CA+BpD;AAED,eAAe,aAAa,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { catchError, of, switchMap } from "rxjs";
2
- import { CustomValidator, ErrorHandler } from "../../../core";
2
+ import CustomValidator from "../CustomValidator";
3
+ import ErrorHandler from "../rxSubjects/ErrorHandler";
3
4
  class ApiMiddleware extends CustomValidator {
4
5
  get(handle) {
5
6
  this.logDebug("get ApiMiddleware");
@@ -1,4 +1,4 @@
1
- import { CustomLogger } from '../../../core';
1
+ import CustomLogger from '../CustomLogger';
2
2
  declare class CustomEncoder extends CustomLogger {
3
3
  encode<T>(data: T): string;
4
4
  decode<T>(data: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomEncoder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,cAAM,aAAc,SAAQ,YAAY;IACtC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IAajB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE;CAiBjE;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomEncoder/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAG3C,cAAM,aAAc,SAAQ,YAAY;IACtC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IAajB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE;CAiBjE;AAED,eAAe,aAAa,CAAA"}
@@ -1,4 +1,4 @@
1
- import { CustomLogger } from '../../../core';
1
+ import CustomLogger from '../CustomLogger';
2
2
  import { isString } from 'lodash';
3
3
  class CustomEncoder extends CustomLogger {
4
4
  encode(data) {
@@ -1,4 +1,4 @@
1
- import { CustomValidator } from "../../../core";
1
+ import CustomValidator from "../CustomValidator";
2
2
  declare class CustomHeader extends CustomValidator {
3
3
  private headers;
4
4
  constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomHeader/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,eAAe,EAAE,MAAM,UAAU,CAAA;AAExD,cAAM,YAAa,SAAQ,eAAe;IACxC,OAAO,CAAC,OAAO,CAAa;;IAU5B,eAAe,CAAC,OAAO,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASpC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMX;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomHeader/index.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAGhD,cAAM,YAAa,SAAQ,eAAe;IACxC,OAAO,CAAC,OAAO,CAAa;;IAU5B,eAAe,CAAC,OAAO,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASpC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMX;AAED,eAAe,YAAY,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { of, switchMap } from "rxjs";
2
- import { ServiceToken, CustomValidator } from "../../../core";
2
+ import CustomValidator from "../CustomValidator";
3
+ import ServiceToken from "../../services/ServiceToken";
3
4
  class CustomHeader extends CustomValidator {
4
5
  headers;
5
6
  constructor() {
@@ -1,4 +1,4 @@
1
- import { CustomEncoder } from "../../../core";
1
+ import CustomEncoder from "../CustomEncoder";
2
2
  import type { NextApiRequest } from "next";
3
3
  import type { NextRequest } from "next/server";
4
4
  declare class CustomValidator extends CustomEncoder {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomValidator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAmB,MAAM,UAAU,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,cAAM,eAAgB,SAAQ,aAAa;IACnC,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,WAAW;CAS3D;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomValidator/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,cAAM,eAAgB,SAAQ,aAAa;IACnC,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,WAAW;CAS3D;AAED,eAAe,eAAe,CAAA"}
@@ -1,4 +1,5 @@
1
- import { CustomEncoder, MessageErrorBFF } from "../../../core";
1
+ import CustomEncoder from "../CustomEncoder";
2
+ import MessageErrorBFF from "../MessageErrorBFF";
2
3
  import { getToken } from "next-auth/jwt";
3
4
  class CustomValidator extends CustomEncoder {
4
5
  async validateTokenFront(req) {
@@ -1,12 +1,12 @@
1
- import type { ApiError } from "../../../types";
2
- import { CustomLogger } from "../../../core";
1
+ import type { ApiError } from "../../../types/ApiResponse";
2
+ import CustomLogger from "../CustomLogger";
3
3
  declare class ErrorCatalog extends CustomLogger {
4
4
  get(error?: string | Error | ApiError): {
5
5
  title: string;
6
6
  message: string;
7
7
  code?: number | undefined;
8
8
  type: "modal" | "message";
9
- level: "error" | "success" | "warning" | "info";
9
+ level: "error" | "info" | "success" | "warning";
10
10
  payload?: {} | undefined;
11
11
  clearCookieSession?: boolean | undefined;
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/ErrorCatalog/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AA2CvC,cAAM,YAAa,SAAQ,YAAY;IACrC,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB;;;;;;;;;CA0BjD;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/ErrorCatalog/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,YAAY,MAAM,iBAAiB,CAAA;AA2C1C,cAAM,YAAa,SAAQ,YAAY;IACrC,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB;;;;;;;;;CA0BjD;AAED,eAAe,YAAY,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { t } from "i18next";
2
- import { CustomLogger } from "../../../core";
2
+ import CustomLogger from "../CustomLogger";
3
3
  const errorCatalog = {
4
4
  // EXAMPLE ERROR
5
5
  "MP-001": {
@@ -1,4 +1,5 @@
1
- import type { ApiError, IMessageErrorBFF } from "../../../types";
1
+ import type { ApiError } from "../../../types/ApiResponse";
2
+ import type { IMessageErrorBFF } from "../../../types/messageError";
2
3
  import CustomLogger from "../CustomLogger";
3
4
  /**
4
5
  * clase para manejar los errores de la aplicación
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/MessageErrorBFF/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAG1C;;;;;;GAMG;AAEH,cAAM,eAAgB,SAAQ,YAAY;IACxC,OAAO,CAAC,YAAY,CAAkB;gBAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ;IAO7C,GAAG;CAGJ;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/MessageErrorBFF/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAG1C;;;;;;GAMG;AAEH,cAAM,eAAgB,SAAQ,YAAY;IACxC,OAAO,CAAC,YAAY,CAAkB;gBAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ;IAO7C,GAAG;CAGJ;AAED,eAAe,eAAe,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import CustomLogger from "../CustomLogger";
2
- import { ErrorCatalog } from "../../../core";
2
+ import ErrorCatalog from "../ErrorCatalog";
3
3
  /**
4
4
  * clase para manejar los errores de la aplicación
5
5
  *
@@ -1,6 +1,7 @@
1
- import { CustomHeader } from "../../../core";
1
+ import CustomHeader from "../CustomHeader";
2
2
  import { Observable } from "rxjs";
3
- import type { Method, ApiResponse } from "../../../types";
3
+ import type { Method } from "../../../types/method";
4
+ import type { ApiResponse } from "../../../types/ApiResponse";
4
5
  declare abstract class FetchServiceBE<TRes, TData = {}> extends CustomHeader {
5
6
  private apiUrl;
6
7
  private method;
@@ -1 +1 @@
1
- {"version":3,"file":"FetchServiceBE.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/apiRequest/FetchServiceBE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiC,MAAM,UAAU,CAAA;AACtE,OAAO,EAAa,UAAU,EAA0B,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEpD,uBAAe,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,YAAY;IAClE,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAM3C,QAAQ,CAAC,UAAU,IAAI,MAAM;IAE7B,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;IASxC,gBAAgB,CAAC,KAAK,EAAE,KAAK;;;IAK7B,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;CA0BtE;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"FetchServiceBE.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/apiRequest/FetchServiceBE.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAG1C,OAAO,EAAa,UAAU,EAA0B,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,uBAAe,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,YAAY;IAClE,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAM3C,QAAQ,CAAC,UAAU,IAAI,MAAM;IAE7B,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;IASxC,gBAAgB,CAAC,KAAK,EAAE,KAAK;;;IAK7B,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;CA0BtE;AAED,eAAe,cAAc,CAAA"}
@@ -1,4 +1,6 @@
1
- import { CustomHeader, ErrorHandler, MessageErrorBFF } from "../../../core";
1
+ import CustomHeader from "../CustomHeader";
2
+ import ErrorHandler from "../rxSubjects/ErrorHandler";
3
+ import MessageErrorBFF from "../MessageErrorBFF";
2
4
  import { switchMap, of, catchError, filter } from "rxjs";
3
5
  import { fromFetch } from "rxjs/fetch";
4
6
  class FetchServiceBE extends CustomHeader {
@@ -1,6 +1,7 @@
1
- import { CustomValidator } from "../../../core";
1
+ import CustomValidator from "../CustomValidator";
2
2
  import { Observable } from "rxjs";
3
- import type { Method, IMessageErrorBFF } from "../../../types";
3
+ import type { Method } from "../../../types/method";
4
+ import type { IMessageErrorBFF } from "../../../types/messageError";
4
5
  declare class FetchServiceFE<TRes, TData = {}> extends CustomValidator {
5
6
  private apiUrl;
6
7
  private method;
@@ -1 +1 @@
1
- {"version":3,"file":"FetchServiceFE.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/apiRequest/FetchServiceFE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiC,MAAM,UAAU,CAAA;AACzE,OAAO,EAAqC,UAAU,EAAE,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAEzD,cAAM,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,eAAe;IAC5D,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAa;gBAEhB,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAS3C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,gBAAgB;IAK1C,gBAAgB,CAAC,KAAK,EAAE,KAAK;IAO7B,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,IAAI,CAAC;CAkBzD;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"FetchServiceFE.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/apiRequest/FetchServiceFE.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,oBAAoB,CAAA;AAGhD,OAAO,EAAqC,UAAU,EAAE,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,cAAM,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,eAAe;IAC5D,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAa;gBAEhB,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAS3C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,gBAAgB;IAK1C,gBAAgB,CAAC,KAAK,EAAE,KAAK;IAO7B,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,IAAI,CAAC;CAkBzD;AAED,eAAe,cAAc,CAAA"}
@@ -1,4 +1,6 @@
1
- import { CustomValidator, ErrorHandler, MessageErrorBFF } from "../../../core";
1
+ import CustomValidator from "../CustomValidator";
2
+ import ErrorHandler from "../rxSubjects/ErrorHandler";
3
+ import MessageErrorBFF from "../MessageErrorBFF";
2
4
  import { switchMap, catchError, of, filter } from "rxjs";
3
5
  import { fromFetch } from "rxjs/fetch";
4
6
  class FetchServiceFE extends CustomValidator {
@@ -1,5 +1,5 @@
1
- import type { IMessageErrorBFF } from "../../../../types";
2
- import { RxSubjectManager } from "../../../../core";
1
+ import type { IMessageErrorBFF } from "../../../../types/messageError";
2
+ import RxSubjectManager from "../RxSubjectManager";
3
3
  declare class ErrorHandler extends RxSubjectManager<IMessageErrorBFF> {
4
4
  private static instance;
5
5
  private constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/utils/rxSubjects/ErrorHandler/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAG3C,cAAM,YAAa,SAAQ,gBAAgB,CAAC,gBAAgB,CAAC;IAC3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAc;IAErC,OAAO;IAIP,MAAM,CAAC,WAAW;CAMnB;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/utils/rxSubjects/ErrorHandler/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAGlD,cAAM,YAAa,SAAQ,gBAAgB,CAAC,gBAAgB,CAAC;IAC3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAc;IAErC,OAAO;IAIP,MAAM,CAAC,WAAW;CAMnB;AAED,eAAe,YAAY,CAAA"}
@@ -1,4 +1,4 @@
1
- import { RxSubjectManager } from "../../../../core";
1
+ import RxSubjectManager from "../RxSubjectManager";
2
2
  class ErrorHandler extends RxSubjectManager {
3
3
  static instance;
4
4
  constructor() {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./core";
2
2
  export * from "./lang";
3
- export * from "./types";
3
+ export type { ApiResponse } from "./types/ApiResponse";
4
+ export type { IMessageErrorBFF } from "./types/messageError";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA"}
package/dist/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./core";
2
2
  export * from "./lang";
3
- export * from "./types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "/dist"
10
10
  ],
11
11
  "scripts": {
12
- "build": "tsc && tsc-alias"
12
+ "build": "tsc"
13
13
  },
14
14
  "author": "",
15
15
  "license": "ISC",
@@ -1,4 +0,0 @@
1
- export * from "./ApiResponse";
2
- export * from "./messageError";
3
- export * from "./method";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from "./ApiResponse";
2
- export * from "./messageError";
3
- export * from "./method";