mp-front-cli 0.0.133 → 0.0.134
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/middleware/index.d.ts +4 -3
- package/dist/core/middleware/index.d.ts.map +1 -1
- package/dist/{i18n-fd68fbe0.js → i18n-9949c669.js} +1 -1
- package/dist/lang/common/errors/enrollment/es_MX/index.d.ts.map +1 -1
- package/dist/mp-front-cli-all.es.js +1 -1
- package/dist/mp-front-cli-core.es.js +1 -1
- package/dist/mp-front-cli-locale.es.js +1 -1
- package/package.json +90 -90
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import type { NextApiRequest, NextApiResponse } from "next";
|
|
3
|
+
import type { IMessage } from "../interfaces/message";
|
|
3
4
|
import { CustomEncrypter } from "../utils/custom-encrypter";
|
|
4
5
|
import type { Session } from "next-auth";
|
|
5
6
|
export declare class ApiMiddleware<TRes, TData = {}> extends CustomEncrypter {
|
|
6
|
-
|
|
7
|
+
protected uuid: string;
|
|
7
8
|
private session;
|
|
8
9
|
setSession(session: Session): void;
|
|
9
10
|
getSession(): Session;
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
protected returnData(res: NextApiResponse, resp: TRes, uuid?: string): void;
|
|
12
|
+
protected returnError(res: NextApiResponse, err: IMessage & Error): void;
|
|
12
13
|
get(handle: (params: TData, uuid: string, headers?: {
|
|
13
14
|
flow?: string;
|
|
14
15
|
[x: string]: string | string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAuC,MAAM,MAAM,CAAA;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAuC,MAAM,MAAM,CAAA;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAE3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAExC,qBAAa,aAAa,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAE,SAAQ,eAAe;IAClE,SAAS,CAAC,IAAI,EAAE,MAAM,CAAK;IAC3B,OAAO,CAAC,OAAO,CAAuB;IAE/B,UAAU,CAAC,OAAO,EAAE,OAAO;IAI3B,UAAU;IAKjB,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM;IAKpE,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,QAAQ,GAAG,KAAK;IAKjE,GAAG,CACD,MAAM,EAAE,CACN,MAAM,EAAE,KAAK,EACb,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,KACpE,UAAU,CAAC,IAAI,CAAC,SAIR,cAAc,OAAO,eAAe;CA0CpD"}
|
|
@@ -399,7 +399,7 @@ const o = {
|
|
|
399
399
|
},
|
|
400
400
|
"ENROLLMENT-LOANBALANCE-0062": {
|
|
401
401
|
title: "Contacta con el equipo de soporte",
|
|
402
|
-
message: "
|
|
402
|
+
message: "El IMEI se encuentra en una venta activa en el sistema"
|
|
403
403
|
},
|
|
404
404
|
"ENROLLMENT-USED-IMEI-0001": {
|
|
405
405
|
title: "Validación de IMEI",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lang/common/errors/enrollment/es_MX/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6NhB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiMiddleware as l, ErrorCatalog as x, FetchServiceBE as f, FetchServiceFE as s } from "./mp-front-cli-core.es.js";
|
|
2
2
|
import { LoadingHandler as E, MessageHandler as F, RxSubjectManager as M } from "./mp-front-cli-utils-rxjs.es.js";
|
|
3
3
|
import { S as H } from "./index-def0b487.js";
|
|
4
|
-
import "./i18n-
|
|
4
|
+
import "./i18n-9949c669.js";
|
|
5
5
|
import "i18next";
|
|
6
6
|
import "./mp-front-cli-logger.es.js";
|
|
7
7
|
import "rxjs";
|
|
@@ -5,7 +5,7 @@ import { LoadingHandler as g, MessageHandler as M } from "./mp-front-cli-utils-r
|
|
|
5
5
|
import { RxSubjectManager as Se } from "./mp-front-cli-utils-rxjs.es.js";
|
|
6
6
|
import { f as c } from "./index-def0b487.js";
|
|
7
7
|
import { S as ne } from "./index-def0b487.js";
|
|
8
|
-
import "./i18n-
|
|
8
|
+
import "./i18n-9949c669.js";
|
|
9
9
|
import { t as S } from "i18next";
|
|
10
10
|
import { CustomLogger as F } from "./mp-front-cli-logger.es.js";
|
|
11
11
|
import { of as o, switchMap as L, forkJoin as p, catchError as U, EMPTY as P, filter as w } from "rxjs";
|
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mp-front-cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc && vite build",
|
|
8
|
-
"package": "npm pack",
|
|
9
|
-
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
|
|
10
|
-
"snyk": "snyk test",
|
|
11
|
-
"husky:prepare": "husky install"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
],
|
|
16
|
-
"engines": {
|
|
17
|
-
"node": ">=20.0.0"
|
|
18
|
-
},
|
|
19
|
-
"exports": {
|
|
20
|
-
".": {
|
|
21
|
-
"types": "./dist/index.d.ts",
|
|
22
|
-
"import": "./dist/mp-front-cli-all.es.js"
|
|
23
|
-
},
|
|
24
|
-
"./core": {
|
|
25
|
-
"types": "./dist/core/index.d.ts",
|
|
26
|
-
"import": "./dist/mp-front-cli-core.es.js"
|
|
27
|
-
},
|
|
28
|
-
"./core/rxjs": {
|
|
29
|
-
"types": "./dist/core/utils/rxjs/index.d.ts",
|
|
30
|
-
"import": "./dist/mp-front-cli-utils-rxjs.es.js"
|
|
31
|
-
},
|
|
32
|
-
"./core/encoder": {
|
|
33
|
-
"types": "./dist/core/utils/custom-encoder.d.ts",
|
|
34
|
-
"import": "./dist/mp-front-cli-encoder.es.js"
|
|
35
|
-
},
|
|
36
|
-
"./core/header": {
|
|
37
|
-
"types": "./dist/core/utils/custom-header.d.ts",
|
|
38
|
-
"import": "./dist/mp-front-cli-header.es.js"
|
|
39
|
-
},
|
|
40
|
-
"./core/logger": {
|
|
41
|
-
"types": "./dist/core/utils/custom-logger.d.ts",
|
|
42
|
-
"import": "./dist/mp-front-cli-logger.es.js"
|
|
43
|
-
},
|
|
44
|
-
"./core/encrypter": {
|
|
45
|
-
"types": "./dist/core/utils/custom-encrypter.d.ts",
|
|
46
|
-
"import": "./dist/mp-front-cli-encrypter.es.js"
|
|
47
|
-
},
|
|
48
|
-
"./core/cache": {
|
|
49
|
-
"types": "./dist/core/utils/custom-cache.d.ts",
|
|
50
|
-
"import": "./dist/mp-front-cli-cache.es.js"
|
|
51
|
-
},
|
|
52
|
-
"./core/adapter": {
|
|
53
|
-
"types": "./dist/core/utils/custom-adapter.d.ts",
|
|
54
|
-
"import": "./dist/mp-front-cli-adapter.es.js"
|
|
55
|
-
},
|
|
56
|
-
"./core/services": {
|
|
57
|
-
"types": "./dist/core/services/index.d.ts",
|
|
58
|
-
"import": "./dist/mp-front-cli-services.es.js"
|
|
59
|
-
},
|
|
60
|
-
"./locale": {
|
|
61
|
-
"types": "./dist/lang/index.d.ts",
|
|
62
|
-
"import": "./dist/mp-front-cli-locale.es.js"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"peerDependencies": {
|
|
66
|
-
"i18next": "23.10.0",
|
|
67
|
-
"ioredis": "5.3.2",
|
|
68
|
-
"next-auth": "4.24.10",
|
|
69
|
-
"node-jose": "2.2.0",
|
|
70
|
-
"rxjs": "7.8.1"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"@types/node-jose": "1.1.13",
|
|
74
|
-
"@types/uuid": "9.0.8",
|
|
75
|
-
"husky": "^9.0.11",
|
|
76
|
-
"lodash": "4.17.21",
|
|
77
|
-
"uuid": "9.0.1"
|
|
78
|
-
},
|
|
79
|
-
"devDependencies": {
|
|
80
|
-
"@types/lodash": "4.14.202",
|
|
81
|
-
"@types/node": "20.10.6",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "6.19.0",
|
|
83
|
-
"eslint": "8.56.0",
|
|
84
|
-
"eslint-config-prettier": "9.1.0",
|
|
85
|
-
"eslint-plugin-prettier": "5.1.3",
|
|
86
|
-
"typescript": "5.3.3",
|
|
87
|
-
"vite": "^4.5.3",
|
|
88
|
-
"vite-plugin-dts": "3.7.1",
|
|
89
|
-
"vite-tsconfig-paths": "4.2.2"
|
|
90
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mp-front-cli",
|
|
3
|
+
"version": "0.0.134",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc && vite build",
|
|
8
|
+
"package": "npm pack",
|
|
9
|
+
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
|
|
10
|
+
"snyk": "snyk test",
|
|
11
|
+
"husky:prepare": "husky install"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=20.0.0"
|
|
18
|
+
},
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/mp-front-cli-all.es.js"
|
|
23
|
+
},
|
|
24
|
+
"./core": {
|
|
25
|
+
"types": "./dist/core/index.d.ts",
|
|
26
|
+
"import": "./dist/mp-front-cli-core.es.js"
|
|
27
|
+
},
|
|
28
|
+
"./core/rxjs": {
|
|
29
|
+
"types": "./dist/core/utils/rxjs/index.d.ts",
|
|
30
|
+
"import": "./dist/mp-front-cli-utils-rxjs.es.js"
|
|
31
|
+
},
|
|
32
|
+
"./core/encoder": {
|
|
33
|
+
"types": "./dist/core/utils/custom-encoder.d.ts",
|
|
34
|
+
"import": "./dist/mp-front-cli-encoder.es.js"
|
|
35
|
+
},
|
|
36
|
+
"./core/header": {
|
|
37
|
+
"types": "./dist/core/utils/custom-header.d.ts",
|
|
38
|
+
"import": "./dist/mp-front-cli-header.es.js"
|
|
39
|
+
},
|
|
40
|
+
"./core/logger": {
|
|
41
|
+
"types": "./dist/core/utils/custom-logger.d.ts",
|
|
42
|
+
"import": "./dist/mp-front-cli-logger.es.js"
|
|
43
|
+
},
|
|
44
|
+
"./core/encrypter": {
|
|
45
|
+
"types": "./dist/core/utils/custom-encrypter.d.ts",
|
|
46
|
+
"import": "./dist/mp-front-cli-encrypter.es.js"
|
|
47
|
+
},
|
|
48
|
+
"./core/cache": {
|
|
49
|
+
"types": "./dist/core/utils/custom-cache.d.ts",
|
|
50
|
+
"import": "./dist/mp-front-cli-cache.es.js"
|
|
51
|
+
},
|
|
52
|
+
"./core/adapter": {
|
|
53
|
+
"types": "./dist/core/utils/custom-adapter.d.ts",
|
|
54
|
+
"import": "./dist/mp-front-cli-adapter.es.js"
|
|
55
|
+
},
|
|
56
|
+
"./core/services": {
|
|
57
|
+
"types": "./dist/core/services/index.d.ts",
|
|
58
|
+
"import": "./dist/mp-front-cli-services.es.js"
|
|
59
|
+
},
|
|
60
|
+
"./locale": {
|
|
61
|
+
"types": "./dist/lang/index.d.ts",
|
|
62
|
+
"import": "./dist/mp-front-cli-locale.es.js"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"i18next": "23.10.0",
|
|
67
|
+
"ioredis": "5.3.2",
|
|
68
|
+
"next-auth": "4.24.10",
|
|
69
|
+
"node-jose": "2.2.0",
|
|
70
|
+
"rxjs": "7.8.1"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@types/node-jose": "1.1.13",
|
|
74
|
+
"@types/uuid": "9.0.8",
|
|
75
|
+
"husky": "^9.0.11",
|
|
76
|
+
"lodash": "4.17.21",
|
|
77
|
+
"uuid": "9.0.1"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@types/lodash": "4.14.202",
|
|
81
|
+
"@types/node": "20.10.6",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "6.19.0",
|
|
83
|
+
"eslint": "8.56.0",
|
|
84
|
+
"eslint-config-prettier": "9.1.0",
|
|
85
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
86
|
+
"typescript": "5.3.3",
|
|
87
|
+
"vite": "^4.5.3",
|
|
88
|
+
"vite-plugin-dts": "3.7.1",
|
|
89
|
+
"vite-tsconfig-paths": "4.2.2"
|
|
90
|
+
}
|
|
91
91
|
}
|