mp-front-cli 0.0.13 → 0.0.14

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,7 +1,7 @@
1
1
  import { Observable } from "rxjs";
2
2
  import type { NextApiRequest, NextApiResponse } from "next";
3
3
  import { CustomValidator } from "../../../core";
4
- import type { ApiResponse } from "../../../types";
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,eAAe,EAAgB,MAAM,UAAU,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,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,4 +1,4 @@
1
- import type { ApiError } from "../../../types";
1
+ import type { ApiError } from "../../../types/ApiResponse";
2
2
  import { CustomLogger } from "../../../core";
3
3
  declare class ErrorCatalog extends CustomLogger {
4
4
  get(error?: string | Error | ApiError): {
@@ -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,uBAAuB,CAAA;AAErD,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,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,uBAAuB,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,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,6 +1,7 @@
1
1
  import { CustomHeader } from "../../../core";
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,UA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AAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;CA0BtE;AAED,eAAe,cAAc,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { CustomValidator } from "../../../core";
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,eAAe,EAAiC,MAAM,UAAU,CAAA;AACzE,OAAO,EAAqC,UAAU,EAAE,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,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 type { IMessageErrorBFF } from "../../../../types";
1
+ import type { IMessageErrorBFF } from "../../../../types/messageError";
2
2
  import { RxSubjectManager } from "../../../../core";
3
3
  declare class ErrorHandler extends RxSubjectManager<IMessageErrorBFF> {
4
4
  private static instance;
@@ -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,wBAAwB,CAAA;AAC9D,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"}
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.14",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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";