mp-front-cli 0.0.36 → 0.0.38

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
- import { CustomCatchError } from "../utils/custom-catch-error";
4
- export declare class ApiMiddleware<TRes, TData = {}> extends CustomCatchError {
3
+ import { CustomValidator } from "../utils/custom-validator";
4
+ export declare class ApiMiddleware<TRes, TData = {}> extends CustomValidator {
5
5
  private uuid;
6
6
  private returnData;
7
7
  private returnError;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAA6B,MAAM,MAAM,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAI9D,qBAAa,aAAa,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,gBAAgB;IACnE,OAAO,CAAC,IAAI,CAAa;IAEzB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAKnB,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC,IAAI,CAAC,SAG/C,cAAc,OAAO,eAAe;CAoCpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAA6B,MAAM,MAAM,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBAAa,aAAa,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,eAAe;IAClE,OAAO,CAAC,IAAI,CAAa;IAEzB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAKnB,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC,IAAI,CAAC,SAG/C,cAAc,OAAO,eAAe;CAoCpD"}
@@ -1,10 +1,12 @@
1
1
  import { Observable } from "rxjs";
2
2
  import { Method } from "../../interfaces/method";
3
- import { CustomCatchError } from "../custom-catch-error";
4
- export declare class FetchServiceFE<TRes, TData = {}> extends CustomCatchError {
3
+ import { CustomValidator } from "../custom-validator";
4
+ export declare class FetchServiceFE<TRes, TData = {}> extends CustomValidator {
5
5
  private apiUrl;
6
6
  private method;
7
7
  private headers;
8
+ private isLoadingEnabled;
9
+ setIsLoadingEnabled(isLoadingEnabled: boolean): void;
8
10
  constructor(apiUrl: string, method?: Method, headers?: HeadersInit);
9
11
  private errorHandler;
10
12
  fetchData(params?: TData): Observable<TRes>;
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-service-fe.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-fe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,UAAU,EAAE,MAAM,MAAM,CAAA;AAGpE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAGxD,qBAAa,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,gBAAgB;IACpE,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAa;gBAG1B,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAe,EACvB,OAAO,GAAE,WAAgB;IAW3B,OAAO,CAAC,YAAY;IAQpB,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,IAAI,CAAC;CA8BzD"}
1
+ {"version":3,"file":"fetch-service-fe.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-fe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,UAAU,EAAS,MAAM,MAAM,CAAA;AAG3E,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAKhD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,qBAAa,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,eAAe;IACnE,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,gBAAgB,CAAgB;IAExC,mBAAmB,CAAC,gBAAgB,EAAE,OAAO;gBAK3C,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAe,EACvB,OAAO,GAAE,WAAgB;IAW3B,OAAO,CAAC,YAAY;IAQpB,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,IAAI,CAAC;CAiCzD"}
@@ -1,5 +1,5 @@
1
- import { CustomLogger } from "./custom-logger";
2
- export declare class CustomEncoder extends CustomLogger {
1
+ import { CustomEncrypter } from "./custom-encrypter";
2
+ export declare class CustomEncoder extends CustomEncrypter {
3
3
  encode<T>(data: T, uuid?: string): string;
4
4
  decode<T>(data: string | T | {
5
5
  info: string;
@@ -1 +1 @@
1
- {"version":3,"file":"custom-encoder.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-encoder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,qBAAa,aAAc,SAAQ,YAAY;IAC7C,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM;IAahC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;CAkB9C"}
1
+ {"version":3,"file":"custom-encoder.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-encoder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,qBAAa,aAAc,SAAQ,eAAe;IAChD,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM;IAahC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;CAkB9C"}
@@ -0,0 +1,12 @@
1
+ import { CustomLogger } from "./custom-logger";
2
+ export declare class CustomEncrypter extends CustomLogger {
3
+ private signatureKey;
4
+ constructor();
5
+ private isJSON;
6
+ private generateKey;
7
+ protected encrypt<T>(payload: T): Promise<string>;
8
+ protected decrypt<T>(encrypted: string): Promise<T>;
9
+ protected isEncrypted(value: string | null): Promise<boolean>;
10
+ protected generateSHA<T>(value: T): string;
11
+ }
12
+ //# sourceMappingURL=custom-encrypter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-encrypter.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-encrypter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,CAAC,YAAY,CAAqB;;IAOzC,OAAO,CAAC,MAAM;YASA,WAAW;cAgBT,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;cAgBrB,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM;cAS5B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAahD,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;CAIlC"}
@@ -1,6 +1,6 @@
1
1
  import { Observable } from "rxjs";
2
- import { CustomCatchError } from "./custom-catch-error";
3
- export declare class CustomHeader extends CustomCatchError {
2
+ import { CustomValidator } from "./custom-validator";
3
+ export declare class CustomHeader extends CustomValidator {
4
4
  private headers;
5
5
  constructor();
6
6
  addTokenBackend(headers: HeadersInit): Observable<HeadersInit>;
@@ -1 +1 @@
1
- {"version":3,"file":"custom-header.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,MAAM,CAAA;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,OAAO,CAAC,OAAO,CAAa;;IAU5B,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAS9D,OAAO,CAAC,sBAAsB;IAgB9B,UAAU,IAAI,UAAU,CAAC,WAAW,CAAC;CAStC"}
1
+ {"version":3,"file":"custom-header.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,MAAM,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,qBAAa,YAAa,SAAQ,eAAe;IAC/C,OAAO,CAAC,OAAO,CAAa;;IAU5B,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAS9D,OAAO,CAAC,sBAAsB;IAgB9B,UAAU,IAAI,UAAU,CAAC,WAAW,CAAC;CAStC"}