mp-front-cli 0.0.140 → 1.0.1-rc.0
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.
- package/dist/core/errors/enrollment/error-catalog-enrollment.d.ts +1 -1
- package/dist/core/errors/error-catalog.d.ts +2 -2
- package/dist/core/errors/error-catalog.d.ts.map +1 -1
- package/dist/core/errors/helpdesk/cancelPr.d.ts +1 -1
- package/dist/core/errors/helpdesk/index.d.ts +1 -1
- package/dist/core/errors/helpdesk/skipFingerprint.d.ts +1 -1
- package/dist/core/errors/index.d.ts +1 -1
- package/dist/core/errors/message-error.d.ts +3 -3
- package/dist/core/index.d.ts +5 -5
- package/dist/core/interfaces/index.d.ts +3 -3
- package/dist/core/middleware/index.d.ts +5 -5
- package/dist/core/services/index.d.ts +1 -1
- package/dist/core/services/service-token.d.ts +2 -2
- package/dist/core/utils/Terminal/index.d.ts +2 -2
- package/dist/core/utils/api-request/fetch-service-be.d.ts +4 -4
- package/dist/core/utils/api-request/fetch-service-fe.d.ts +3 -3
- package/dist/core/utils/api-request/index.d.ts +2 -2
- package/dist/core/utils/custom-adapter.d.ts +1 -1
- package/dist/core/utils/custom-cache.d.ts +1 -1
- package/dist/core/utils/custom-encoder.d.ts +1 -1
- package/dist/core/utils/custom-encrypter.d.ts +1 -1
- package/dist/core/utils/custom-header.d.ts +2 -2
- package/dist/core/utils/custom-redis.d.ts +1 -1
- package/dist/core/utils/func/index.d.ts +1 -1
- package/dist/core/utils/index.d.ts +2 -2
- package/dist/core/utils/rxjs/index.d.ts +3 -3
- package/dist/core/utils/rxjs/loading-handler.d.ts +1 -1
- package/dist/core/utils/rxjs/message-handler.d.ts +2 -2
- package/dist/core/utils/rxjs/rx-subject-manager.d.ts +1 -1
- package/dist/{i18n-3dcfe704.js → i18n-7a2f696e.js} +9 -5
- package/dist/{index-def0b487.js → index-a6a5a26e.js} +204 -199
- package/dist/index.d.ts +1 -1
- package/dist/lang/common/errors/calculator/index.d.ts +2 -2
- package/dist/lang/common/errors/enrollment/index.d.ts +2 -2
- package/dist/lang/common/errors/es_MX/index.d.ts +4 -0
- package/dist/lang/common/errors/es_MX/index.d.ts.map +1 -1
- package/dist/lang/common/errors/helpdesk/index.d.ts +2 -2
- package/dist/lang/common/errors/index.d.ts +2 -2
- package/dist/lang/common/index.d.ts +1 -1
- package/dist/lang/i18n.d.ts +1 -1
- package/dist/lang/index.d.ts +4 -4
- package/dist/lang/validator/index.d.ts +2 -2
- package/dist/mp-front-cli-all.es.js +2 -2
- package/dist/mp-front-cli-core.es.js +26 -19
- package/dist/mp-front-cli-header.es.js +1 -1
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/dist/mp-front-cli-services.es.js +1 -1
- package/package.json +6 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiError } from
|
|
2
|
-
import { CustomLogger } from
|
|
1
|
+
import { ApiError } from '../interfaces/api-response';
|
|
2
|
+
import { CustomLogger } from '../utils/custom-logger';
|
|
3
3
|
export declare class ErrorCatalog extends CustomLogger {
|
|
4
4
|
get(error?: string | Error | ApiError, uuid?: string): {
|
|
5
5
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAw2BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ErrorCatalog } from
|
|
1
|
+
export { ErrorCatalog } from './error-catalog';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiError } from
|
|
2
|
-
import { IMessage } from
|
|
3
|
-
import { CustomLogger } from
|
|
1
|
+
import { ApiError } from '../interfaces/api-response';
|
|
2
|
+
import { IMessage } from '../interfaces/message';
|
|
3
|
+
import { CustomLogger } from '../utils/custom-logger';
|
|
4
4
|
/**
|
|
5
5
|
* clase para manejar los errores de la aplicación
|
|
6
6
|
*
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './errors';
|
|
2
|
+
export * from './interfaces';
|
|
3
|
+
export * from './middleware';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './services';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ApiResponse } from
|
|
2
|
-
export type { IMessage } from
|
|
3
|
-
export type { RefreshState } from
|
|
1
|
+
export type { ApiResponse } from './api-response';
|
|
2
|
+
export type { IMessage } from './message';
|
|
3
|
+
export type { RefreshState } from '../../core/utils/custom-cache';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { CustomEncrypter } from
|
|
5
|
-
import
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { NextApiRequest, NextApiResponse } from 'next';
|
|
3
|
+
import { IMessage } from '../interfaces/message';
|
|
4
|
+
import { CustomEncrypter } from '../utils/custom-encrypter';
|
|
5
|
+
import { Session } from 'next-auth';
|
|
6
6
|
export declare class ApiMiddleware<TRes, TData = {}> extends CustomEncrypter {
|
|
7
7
|
protected uuid: string;
|
|
8
8
|
private session;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './service-token';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomLogger } from
|
|
1
|
+
import { CustomLogger } from '../utils/custom-logger';
|
|
2
2
|
export declare class ServiceToken extends CustomLogger {
|
|
3
3
|
private API_AUTH_BACK_URL;
|
|
4
4
|
private API_AUTH_BACK_USERNAME_AUTH;
|
|
@@ -6,6 +6,6 @@ export declare class ServiceToken extends CustomLogger {
|
|
|
6
6
|
private headers;
|
|
7
7
|
private ID;
|
|
8
8
|
constructor();
|
|
9
|
-
get(): import(
|
|
9
|
+
get(): import('rxjs').Observable<any>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=service-token.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ITerminal } from
|
|
2
|
-
import { CustomEncrypter } from
|
|
1
|
+
import { ITerminal } from './interfaces';
|
|
2
|
+
import { CustomEncrypter } from '../custom-encrypter';
|
|
3
3
|
declare class Terminal extends CustomEncrypter {
|
|
4
4
|
private readonly redisCacheHandler;
|
|
5
5
|
private getIdApi;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import
|
|
3
|
-
import { Method } from
|
|
4
|
-
import { CustomHeader } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ApiResponse, TypesDataResponse } from '../../interfaces/api-response';
|
|
3
|
+
import { Method } from '../../interfaces/method';
|
|
4
|
+
import { CustomHeader } from '../custom-header';
|
|
5
5
|
export declare class FetchServiceBE<TRes, TData = {}, TypeDataResponse extends TypesDataResponse = "OBJECT", Relationships = {}> extends CustomHeader {
|
|
6
6
|
private apiUrl;
|
|
7
7
|
private method;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { Method } from
|
|
3
|
-
import { CustomEncoder } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Method } from '../../interfaces/method';
|
|
3
|
+
import { CustomEncoder } from '../custom-encoder';
|
|
4
4
|
export declare class FetchServiceFE<TRes, TData = {}> extends CustomEncoder {
|
|
5
5
|
private apiUrl;
|
|
6
6
|
private method;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FetchServiceBE } from
|
|
2
|
-
export { FetchServiceFE } from
|
|
1
|
+
export { FetchServiceBE } from './fetch-service-be';
|
|
2
|
+
export { FetchServiceFE } from './fetch-service-fe';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { CustomEncrypter } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CustomEncrypter } from './custom-encrypter';
|
|
3
3
|
export declare class CustomHeader extends CustomEncrypter {
|
|
4
4
|
private headers;
|
|
5
5
|
constructor(headers?: HeadersInit);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './escape_unicode';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './api-request';
|
|
2
|
+
export * from './rxjs';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MessageHandler } from
|
|
2
|
-
export { RxSubjectManager } from
|
|
3
|
-
export { LoadingHandler } from
|
|
1
|
+
export { MessageHandler } from './message-handler';
|
|
2
|
+
export { RxSubjectManager } from './rx-subject-manager';
|
|
3
|
+
export { LoadingHandler } from './loading-handler';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IMessage } from
|
|
2
|
-
import { RxSubjectManager } from
|
|
1
|
+
import { IMessage } from 'src/core/interfaces/message';
|
|
2
|
+
import { RxSubjectManager } from './rx-subject-manager';
|
|
3
3
|
export declare class MessageHandler extends RxSubjectManager<IMessage> {
|
|
4
4
|
private static instance;
|
|
5
5
|
private constructor();
|
|
@@ -483,6 +483,10 @@ const o = {
|
|
|
483
483
|
title: "Error en la configuración del usuario",
|
|
484
484
|
message: "Es necesario asignar una clave de vendedor al usuario. Por favor comunícate con nuestra mesa de ayuda para solucionar el problema."
|
|
485
485
|
},
|
|
486
|
+
"JOURNEY-CANCEL-01": {
|
|
487
|
+
title: "Pre-solicitud o Solicitud cancelada",
|
|
488
|
+
message: "La PR o SL ha sido cancelada. Por favor comunícate con nuestra mesa de ayuda."
|
|
489
|
+
},
|
|
486
490
|
//Calculator & Apartadito
|
|
487
491
|
...o,
|
|
488
492
|
//#region helpdesk
|
|
@@ -599,16 +603,16 @@ const o = {
|
|
|
599
603
|
message: "El rfc es un rfc no válido"
|
|
600
604
|
},
|
|
601
605
|
"PERSONALDATA-BAD-REQUEST-09": {
|
|
602
|
-
title: "La
|
|
603
|
-
message: "por favor intenta con otro
|
|
606
|
+
title: "La CURP ya está asociada a un proceso iniciado",
|
|
607
|
+
message: "por favor intenta con otro CURP"
|
|
604
608
|
},
|
|
605
609
|
"PERSONALDATA-BAD-REQUEST-10": {
|
|
606
|
-
title: "La
|
|
607
|
-
message: "por favor intenta con otro
|
|
610
|
+
title: "La CURP ya tiene proceso iniciado",
|
|
611
|
+
message: "por favor intenta con otro CURP"
|
|
608
612
|
},
|
|
609
613
|
"PERSONALDATA-BAD-REQUEST-WHITE-LIST-11": {
|
|
610
614
|
title: "Lista blanca devuelve nulo",
|
|
611
|
-
message: "por favor intenta con otro
|
|
615
|
+
message: "por favor intenta con otro CURP"
|
|
612
616
|
},
|
|
613
617
|
//BIOMETRIC
|
|
614
618
|
"PF-BIOMETRIC-001": {
|