fiscalia_bo-nest-helpers 0.1.75 → 0.1.76
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,5 +1,5 @@
|
|
1
1
|
import { MsSeguridadService } from './ms-seguridad.service';
|
2
|
-
import {
|
2
|
+
import { LoginDto } from './dto/ms-seguridad.input';
|
3
3
|
import { RpaAgeticService } from './rpa-agetic/rpa-agetic.service';
|
4
4
|
export declare class MsSeguridadController {
|
5
5
|
private readonly seguridadService;
|
@@ -8,5 +8,4 @@ export declare class MsSeguridadController {
|
|
8
8
|
login(req: Request, ip: any, body: LoginDto): Promise<import("./seguridad.pb").LoginResponse>;
|
9
9
|
token(token: string): Promise<import("./seguridad.pb").LoginResponse>;
|
10
10
|
logoutV2(token: string): Promise<import("./seguridad.pb").LogoutResponse>;
|
11
|
-
rpaRequest(req: Request, ip: any, body: LoginCDRequestDto): Promise<import("./seguridad.pb").LoginResponse>;
|
12
11
|
}
|
@@ -46,19 +46,6 @@ let MsSeguridadController = class MsSeguridadController {
|
|
46
46
|
const response = await this.seguridadService.logout({ token });
|
47
47
|
return response;
|
48
48
|
}
|
49
|
-
async rpaRequest(req, ip, body) {
|
50
|
-
try {
|
51
|
-
const headers = req.headers;
|
52
|
-
const agent = new uaParser(`${headers['user-agent']}`);
|
53
|
-
const userAgent = agent.getResult();
|
54
|
-
body.ip = ip;
|
55
|
-
body.userAgent = JSON.stringify(userAgent);
|
56
|
-
return this.seguridadService.loginCiudadania(body);
|
57
|
-
}
|
58
|
-
catch (err) {
|
59
|
-
throw new global_exception_filter_1.MsSeguridadHttpError(err.message);
|
60
|
-
}
|
61
|
-
}
|
62
49
|
};
|
63
50
|
__decorate([
|
64
51
|
(0, common_1.Post)('login'),
|
@@ -92,17 +79,6 @@ __decorate([
|
|
92
79
|
__metadata("design:paramtypes", [String]),
|
93
80
|
__metadata("design:returntype", Promise)
|
94
81
|
], MsSeguridadController.prototype, "logoutV2", null);
|
95
|
-
__decorate([
|
96
|
-
(0, common_1.Post)('login-ciudadania'),
|
97
|
-
(0, common_1.Version)('1'),
|
98
|
-
(0, swagger_1.ApiOperation)({ summary: 'Servicio de login por cd.' }),
|
99
|
-
__param(0, (0, common_1.Req)()),
|
100
|
-
__param(1, (0, common_1.Ip)()),
|
101
|
-
__param(2, (0, common_1.Body)()),
|
102
|
-
__metadata("design:type", Function),
|
103
|
-
__metadata("design:paramtypes", [Request, Object, ms_seguridad_input_1.LoginCDRequestDto]),
|
104
|
-
__metadata("design:returntype", Promise)
|
105
|
-
], MsSeguridadController.prototype, "rpaRequest", null);
|
106
82
|
MsSeguridadController = __decorate([
|
107
83
|
(0, common_1.Controller)('auth'),
|
108
84
|
(0, swagger_1.ApiTags)('[MS-SEGURIDAD] AUTH'),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ms-seguridad.controller.js","sourceRoot":"","sources":["../../src/ms-seguridad/ms-seguridad.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,6CAAwD;AACxD,qEAA+D;AAC/D,qEAAqD;AACrD,iEAA4D;AAC5D,
|
1
|
+
{"version":3,"file":"ms-seguridad.controller.js","sourceRoot":"","sources":["../../src/ms-seguridad/ms-seguridad.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,6CAAwD;AACxD,qEAA+D;AAC/D,qEAAqD;AACrD,iEAA4D;AAC5D,iEAAoD;AACpD,yCAAyC;AACzC,gFAA2E;AAC3E,wEAAmE;AAI5D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YACmB,gBAAoC,EACpC,gBAAkC;QADlC,qBAAgB,GAAhB,gBAAgB,CAAoB;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IAUE,AAAN,KAAK,CAAC,KAAK,CAAQ,GAAY,EAAQ,EAAE,EAAU,IAAc;QAC/D,IAAI;YACF,MAAM,OAAO,GAAG,GA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