mp-front-cli 0.0.6 → 0.0.8

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.d.ts +1 -1
  2. package/dist/core/services/ServiceToken.d.ts.map +1 -1
  3. package/dist/core/services/ServiceToken.js +1 -1
  4. package/dist/core/utils/ApiMiddleware/index.d.ts +1 -1
  5. package/dist/core/utils/ApiMiddleware/index.d.ts.map +1 -1
  6. package/dist/core/utils/ApiMiddleware/index.js +1 -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 -2
  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 +1 -1
  16. package/dist/core/utils/ErrorCatalog/index.d.ts +2 -2
  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 -2
  20. package/dist/core/utils/MessageErrorBFF/index.d.ts.map +1 -1
  21. package/dist/core/utils/MessageErrorBFF/index.js +2 -1
  22. package/dist/core/utils/apiRequest/FetchServiceBE.d.ts +2 -2
  23. package/dist/core/utils/apiRequest/FetchServiceBE.d.ts.map +1 -1
  24. package/dist/core/utils/apiRequest/FetchServiceBE.js +1 -1
  25. package/dist/core/utils/apiRequest/FetchServiceFE.d.ts +2 -2
  26. package/dist/core/utils/apiRequest/FetchServiceFE.d.ts.map +1 -1
  27. package/dist/core/utils/apiRequest/FetchServiceFE.js +1 -1
  28. package/dist/core/utils/rxSubjects/ErrorHandler.d.ts +2 -2
  29. package/dist/core/utils/rxSubjects/ErrorHandler.d.ts.map +1 -1
  30. package/dist/core/utils/rxSubjects/ErrorHandler.js +1 -1
  31. package/package.json +1 -1
  32. package/dist/core/utils/interfaces/ApiResponse.d.ts +0 -40
  33. package/dist/core/utils/interfaces/ApiResponse.d.ts.map +0 -1
  34. package/dist/core/utils/interfaces/ApiResponse.js +0 -1
  35. package/dist/core/utils/interfaces/messageError.d.ts +0 -14
  36. package/dist/core/utils/interfaces/messageError.d.ts.map +0 -1
  37. package/dist/core/utils/interfaces/messageError.js +0 -1
@@ -1,4 +1,4 @@
1
- import { CustomLogger } from "@mp-front/core";
1
+ import CustomLogger from "../utils/CustomLogger";
2
2
  export 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":"ServiceToken.d.ts","sourceRoot":"","sources":["../../../src/core/services/ServiceToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAI7C,qBAAa,YAAa,SAAQ,YAAY;IAC5C,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"}
1
+ {"version":3,"file":"ServiceToken.d.ts","sourceRoot":"","sources":["../../../src/core/services/ServiceToken.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,uBAAuB,CAAA;AAEhD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,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"}
@@ -1,6 +1,6 @@
1
- import { CustomLogger } from "@mp-front/core";
2
1
  import { catchError, of, switchMap } from "rxjs";
3
2
  import { fromFetch } from "rxjs/fetch";
3
+ import CustomLogger from "../utils/CustomLogger";
4
4
  export class ServiceToken extends CustomLogger {
5
5
  API_AUTH_BACK_URL;
6
6
  API_AUTH_BACK_USERNAME_AUTH;
@@ -1,6 +1,6 @@
1
1
  import { Observable } from "rxjs";
2
2
  import type { NextApiRequest, NextApiResponse } from "next";
3
- import { ApiResponse, CustomValidator } from "@mp-front/core";
3
+ import { ApiResponse, CustomValidator } from "..";
4
4
  export declare class ApiMiddleware<TRes, TData> extends CustomValidator {
5
5
  get(handle: (params: TData) => Observable<ApiResponse<TRes>>): (req: NextApiRequest, res: NextApiResponse) => void;
6
6
  }
@@ -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,WAAW,EAAE,eAAe,EAAgB,MAAM,gBAAgB,CAAA;AAE3E,qBAAa,aAAa,CAAC,IAAI,EAAE,KAAK,CAAE,SAAQ,eAAe;IAC7D,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,SAG7C,cAAc,OAAO,eAAe;CA+BpD"}
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,WAAW,EAAE,eAAe,EAAgB,MAAM,IAAI,CAAA;AAE/D,qBAAa,aAAa,CAAC,IAAI,EAAE,KAAK,CAAE,SAAQ,eAAe;IAC7D,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,KAAK,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,SAG7C,cAAc,OAAO,eAAe;CA+BpD"}
@@ -1,5 +1,5 @@
1
1
  import { catchError, of, switchMap } from "rxjs";
2
- import { CustomValidator, ErrorHandler } from "@mp-front/core";
2
+ import { CustomValidator, ErrorHandler } from "..";
3
3
  export class ApiMiddleware extends CustomValidator {
4
4
  get(handle) {
5
5
  this.logDebug("get ApiMiddleware");
@@ -1,4 +1,4 @@
1
- import { CustomLogger } from '@mp-front/core';
1
+ import { CustomLogger } from '..';
2
2
  export 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,gBAAgB,CAAC;AAG9C,qBAAa,aAAc,SAAQ,YAAY;IAC7C,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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomEncoder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAGlC,qBAAa,aAAc,SAAQ,YAAY;IAC7C,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"}
@@ -1,4 +1,4 @@
1
- import { CustomLogger } from '@mp-front/core';
1
+ import { CustomLogger } from '..';
2
2
  import { isString } from 'lodash';
3
3
  export class CustomEncoder extends CustomLogger {
4
4
  encode(data) {
@@ -1,4 +1,4 @@
1
- import { CustomValidator } from "@mp-front/core";
1
+ import { CustomValidator } from "..";
2
2
  export default 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":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGhD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,eAAe;IACvD,OAAO,CAAC,OAAO,CAAa;;IAU5B,eAAe,CAAC,OAAO,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASpC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMX"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomHeader/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAGpC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,eAAe;IACvD,OAAO,CAAC,OAAO,CAAa;;IAU5B,eAAe,CAAC,OAAO,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASpC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMX"}
@@ -1,6 +1,6 @@
1
- import { ServiceToken } from "@mp-front/core";
2
- import { CustomValidator } from "@mp-front/core";
3
1
  import { of, switchMap } from "rxjs";
2
+ import { CustomValidator } from "..";
3
+ import { ServiceToken } from "../../services";
4
4
  export default class CustomHeader extends CustomValidator {
5
5
  headers;
6
6
  constructor() {
@@ -1,4 +1,4 @@
1
- import { CustomEncoder } from "@mp-front/core";
1
+ import { CustomEncoder } from "..";
2
2
  import type { NextApiRequest } from "next";
3
3
  import type { NextRequest } from "next/server";
4
4
  export default 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,gBAAgB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,aAAa;IAClD,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,WAAW;CAS3D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/CustomValidator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAmB,MAAM,IAAI,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,aAAa;IAClD,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,WAAW;CAS3D"}
@@ -1,4 +1,4 @@
1
- import { CustomEncoder, MessageErrorBFF } from "@mp-front/core";
1
+ import { CustomEncoder, MessageErrorBFF } from "..";
2
2
  import { getToken } from "next-auth/jwt";
3
3
  export default class CustomValidator extends CustomEncoder {
4
4
  async validateTokenFront(req) {
@@ -1,5 +1,5 @@
1
- import { CustomLogger } from "@mp-front/core";
2
- import { ApiError } from "@mp-front/types";
1
+ import { ApiError } from "../../../types";
2
+ import CustomLogger from "../CustomLogger";
3
3
  export declare class ErrorCatalog extends CustomLogger {
4
4
  get(error?: string | Error | ApiError): {
5
5
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/ErrorCatalog/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAoB,MAAM,iBAAiB,CAAA;AA4C5D,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB;;;;;;;;;CA0BjD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/ErrorCatalog/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAoB,MAAM,gBAAgB,CAAA;AAC3D,OAAO,YAAY,MAAM,iBAAiB,CAAA;AA2C1C,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CAAC,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB;;;;;;;;;CA0BjD"}
@@ -1,5 +1,5 @@
1
- import { CustomLogger } from "@mp-front/core";
2
1
  import { t } from "i18next";
2
+ import CustomLogger from "../CustomLogger";
3
3
  const errorCatalog = {
4
4
  // EXAMPLE ERROR
5
5
  "MP-001": {
@@ -1,5 +1,5 @@
1
- import { CustomLogger } from "@mp-front/core";
2
- import { ApiError, IMessageErrorBFF } from "@mp-front/types";
1
+ import { ApiError, IMessageErrorBFF } from "../../../types";
2
+ import CustomLogger from "../CustomLogger";
3
3
  /**
4
4
  * clase para manejar los errores de la aplicación
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/MessageErrorBFF/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAE5D;;;;;;GAMG;AAEH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,YAAY;IACvD,OAAO,CAAC,YAAY,CAAkB;gBAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ;IAO7C,GAAG;CAGJ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/MessageErrorBFF/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAG1C;;;;;;GAMG;AAEH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,YAAY;IACvD,OAAO,CAAC,YAAY,CAAkB;gBAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ;IAO7C,GAAG;CAGJ"}
@@ -1,4 +1,5 @@
1
- import { CustomLogger, ErrorCatalog } from "@mp-front/core";
1
+ import CustomLogger from "../CustomLogger";
2
+ import { ErrorCatalog } from "../ErrorCatalog";
2
3
  /**
3
4
  * clase para manejar los errores de la aplicación
4
5
  *
@@ -1,6 +1,6 @@
1
- import { ApiResponse, CustomHeader } from "@mp-front/core";
2
- import { Method } from "@mp-front/types";
1
+ import { ApiResponse, CustomHeader } from "..";
3
2
  import { Observable } from "rxjs";
3
+ import { Method } from "../../../types";
4
4
  declare abstract class FetchServiceBE<TRes, TData = {}> extends CustomHeader {
5
5
  private apiUrl;
6
6
  private method;
@@ -1 +1 @@
1
- {"version":3,"file":"FetchServiceBE.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/apiRequest/FetchServiceBE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAiC,MAAM,gBAAgB,CAAA;AACzF,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAa,UAAU,EAA0B,MAAM,MAAM,CAAA;AAGpE,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,EAAE,WAAW,EAAE,YAAY,EAAiC,MAAM,IAAI,CAAA;AAC7E,OAAO,EAAa,UAAU,EAA0B,MAAM,MAAM,CAAA;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC,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,4 @@
1
- import { CustomHeader, ErrorHandler, MessageErrorBFF } from "@mp-front/core";
1
+ import { CustomHeader, ErrorHandler, MessageErrorBFF } from "..";
2
2
  import { switchMap, of, catchError, filter } from "rxjs";
3
3
  import { fromFetch } from "rxjs/fetch";
4
4
  class FetchServiceBE extends CustomHeader {
@@ -1,6 +1,6 @@
1
- import { CustomValidator } from "@mp-front/core";
1
+ import { CustomValidator } from "..";
2
2
  import { Observable } from "rxjs";
3
- import { IMessageErrorBFF, Method } from "@mp-front/types";
3
+ import { IMessageErrorBFF, Method } from "../../../types";
4
4
  declare class FetchServiceFE<TRes, TData = {}> extends CustomValidator {
5
5
  private apiUrl;
6
6
  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,gBAAgB,CAAA;AAC/E,OAAO,EAAqC,UAAU,EAAE,MAAM,MAAM,CAAA;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE1D,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,eAAe,EAAiC,MAAM,IAAI,CAAA;AACnE,OAAO,EAAqC,UAAU,EAAE,MAAM,MAAM,CAAA;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,gBAAgB,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,4 +1,4 @@
1
- import { CustomValidator, ErrorHandler, MessageErrorBFF } from "@mp-front/core";
1
+ import { CustomValidator, ErrorHandler, MessageErrorBFF } from "..";
2
2
  import { switchMap, catchError, of, filter } from "rxjs";
3
3
  import { fromFetch } from "rxjs/fetch";
4
4
  class FetchServiceFE extends CustomValidator {
@@ -1,5 +1,5 @@
1
- import { RxSubjectManager } from "@mp-front/core";
2
- import { IMessageErrorBFF } from "@mp-front/types";
1
+ import { IMessageErrorBFF } from "../../../types";
2
+ import RxSubjectManager from "./RxSubjectManager";
3
3
  export declare class ErrorHandler extends RxSubjectManager<IMessageErrorBFF> {
4
4
  private static instance;
5
5
  private constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorHandler.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/rxSubjects/ErrorHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElD,qBAAa,YAAa,SAAQ,gBAAgB,CAAC,gBAAgB,CAAC;IAClE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAc;IAErC,OAAO;IAIP,MAAM,CAAC,WAAW;CAMnB"}
1
+ {"version":3,"file":"ErrorHandler.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/rxSubjects/ErrorHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AAGjD,qBAAa,YAAa,SAAQ,gBAAgB,CAAC,gBAAgB,CAAC;IAClE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAc;IAErC,OAAO;IAIP,MAAM,CAAC,WAAW;CAMnB"}
@@ -1,4 +1,4 @@
1
- import { RxSubjectManager } from "@mp-front/core";
1
+ import RxSubjectManager from "./RxSubjectManager";
2
2
  export class ErrorHandler extends RxSubjectManager {
3
3
  static instance;
4
4
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,40 +0,0 @@
1
- export interface ApiResponse<T> {
2
- data: Data<T>[];
3
- links?: Links;
4
- errors?: ApiError[];
5
- }
6
- export interface Data<T> {
7
- type: string;
8
- id: string;
9
- attributes: T;
10
- relationships: Relationships;
11
- links: Pick<Links, "self">;
12
- }
13
- export interface Relationships {
14
- user: User;
15
- }
16
- export interface User {
17
- data: UserData;
18
- }
19
- export interface UserData {
20
- [key: string]: string | number | boolean | null;
21
- }
22
- export interface ApiError {
23
- code: string;
24
- status: string;
25
- source: Source;
26
- title: string;
27
- detail: string;
28
- suggestedActions: string;
29
- }
30
- export interface Source {
31
- pointer: string;
32
- }
33
- export interface Links {
34
- self: string;
35
- first: string;
36
- prev: string;
37
- next: string;
38
- last: string;
39
- }
40
- //# sourceMappingURL=ApiResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApiResponse.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/interfaces/ApiResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,IAAI,CAAC,CAAC;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,CAAC,CAAA;IACb,aAAa,EAAE,aAAa,CAAA;IAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAA;CACX;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,QAAQ,CAAA;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CAChD;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- type MessageType = "modal" | "message";
2
- type MessageLevel = "error" | "success" | "warning" | "info";
3
- export interface IMessageErrorBFF {
4
- code?: number;
5
- message: string;
6
- type: MessageType;
7
- level: MessageLevel;
8
- title: string;
9
- payload?: {};
10
- clearCookieSession?: boolean;
11
- }
12
- export type messageManagerFn = (type: MessageType, level: MessageLevel, message: string, title: string, onOk?: () => void) => void;
13
- export {};
14
- //# sourceMappingURL=messageError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messageError.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/interfaces/messageError.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,OAAO,GAAG,SAAS,CAAA;AACtC,KAAK,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAA;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,YAAY,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,EAAE,CAAA;IACZ,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,MAAM,MAAM,gBAAgB,GAAG,CAC7B,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,IAAI,KACd,IAAI,CAAA"}
@@ -1 +0,0 @@
1
- export {};