fiscalia_bo-nest-helpers 0.0.29 → 0.0.31
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/ms-geojson/dto/ms-geojson.dto.d.ts +6 -0
- package/dist/ms-geojson/dto/ms-geojson.dto.js +33 -0
- package/dist/ms-geojson/dto/ms-geojson.dto.js.map +1 -0
- package/dist/ms-geojson/index.d.ts +2 -0
- package/dist/ms-geojson/index.js +8 -0
- package/dist/ms-geojson/index.js.map +1 -0
- package/dist/ms-geojson/ms-geojson.module.d.ts +9 -0
- package/dist/ms-geojson/ms-geojson.module.js +37 -0
- package/dist/ms-geojson/ms-geojson.module.js.map +1 -0
- package/dist/ms-geojson/ms-geojson.service.d.ts +5 -0
- package/dist/ms-geojson/ms-geojson.service.js +51 -0
- package/dist/ms-geojson/ms-geojson.service.js.map +1 -0
- package/dist/ms-seguridad/Seguridad.pb.d.ts +28 -0
- package/dist/ms-seguridad/Seguridad.pb.js +1 -0
- package/dist/ms-seguridad/Seguridad.pb.js.map +1 -1
- package/dist/ms-seguridad/Seguridad.proto +37 -0
- package/dist/ms-seguridad/ms-seguridad.controller.d.ts +3 -1
- package/dist/ms-seguridad/ms-seguridad.controller.js +5 -2
- package/dist/ms-seguridad/ms-seguridad.controller.js.map +1 -1
- package/dist/ms-seguridad/ms-seguridad.module.js +6 -3
- package/dist/ms-seguridad/ms-seguridad.module.js.map +1 -1
- package/dist/ms-seguridad/rpa-agetic/rpa-agetic.input.d.ts +4 -0
- package/dist/ms-seguridad/rpa-agetic/rpa-agetic.input.js +26 -0
- package/dist/ms-seguridad/rpa-agetic/rpa-agetic.input.js.map +1 -0
- package/dist/ms-seguridad/rpa-agetic/rpa-agetic.service.d.ts +9 -0
- package/dist/ms-seguridad/rpa-agetic/rpa-agetic.service.js +36 -0
- package/dist/ms-seguridad/rpa-agetic/rpa-agetic.service.js.map +1 -0
- package/package.json +2 -1
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.ValidateCoordinatesPolygonDTO = exports.Coordinates = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
class Coordinates {
|
16
|
+
}
|
17
|
+
__decorate([
|
18
|
+
(0, class_transformer_1.Type)(() => Number),
|
19
|
+
(0, class_validator_1.IsArray)(),
|
20
|
+
(0, class_validator_1.IsNumber)({}, { each: true }),
|
21
|
+
__metadata("design:type", Array)
|
22
|
+
], Coordinates.prototype, "coordinates", void 0);
|
23
|
+
exports.Coordinates = Coordinates;
|
24
|
+
class ValidateCoordinatesPolygonDTO {
|
25
|
+
}
|
26
|
+
__decorate([
|
27
|
+
(0, class_transformer_1.Type)(() => Coordinates),
|
28
|
+
(0, class_validator_1.IsArray)(),
|
29
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
30
|
+
__metadata("design:type", Array)
|
31
|
+
], ValidateCoordinatesPolygonDTO.prototype, "polygonCoordinates", void 0);
|
32
|
+
exports.ValidateCoordinatesPolygonDTO = ValidateCoordinatesPolygonDTO;
|
33
|
+
//# sourceMappingURL=ms-geojson.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ms-geojson.dto.js","sourceRoot":"","sources":["../../../src/ms-geojson/dto/ms-geojson.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAoE;AAEpE,MAAa,WAAW;CAKvB;AAJC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;gDACC;AAJhC,kCAKC;AAED,MAAa,6BAA6B;CAKzC;AAJC;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAW,CAAC;IACvB,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yEACG;AAJpC,sEAKC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MsGeoJsonModule = exports.MsGeoJsonService = void 0;
|
4
|
+
var ms_geojson_service_1 = require("./ms-geojson.service");
|
5
|
+
Object.defineProperty(exports, "MsGeoJsonService", { enumerable: true, get: function () { return ms_geojson_service_1.MsGeoJsonService; } });
|
6
|
+
var ms_geojson_module_1 = require("./ms-geojson.module");
|
7
|
+
Object.defineProperty(exports, "MsGeoJsonModule", { enumerable: true, get: function () { return ms_geojson_module_1.MsGeoJsonModule; } });
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ms-geojson/index.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { DynamicModule } from '@nestjs/common';
|
2
|
+
interface msModuleGeoJson {
|
3
|
+
global?: boolean;
|
4
|
+
}
|
5
|
+
export declare class MsGeoJsonModule {
|
6
|
+
static register(options: msModuleGeoJson): DynamicModule;
|
7
|
+
static registerAsync(options: msModuleGeoJson): Promise<DynamicModule>;
|
8
|
+
}
|
9
|
+
export {};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var MsGeoJsonModule_1;
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.MsGeoJsonModule = void 0;
|
11
|
+
const common_1 = require("@nestjs/common");
|
12
|
+
const ms_geojson_service_1 = require("./ms-geojson.service");
|
13
|
+
let MsGeoJsonModule = MsGeoJsonModule_1 = class MsGeoJsonModule {
|
14
|
+
static register(options) {
|
15
|
+
return {
|
16
|
+
global: options.global,
|
17
|
+
module: MsGeoJsonModule_1,
|
18
|
+
imports: [],
|
19
|
+
providers: [ms_geojson_service_1.MsGeoJsonService],
|
20
|
+
exports: [ms_geojson_service_1.MsGeoJsonService],
|
21
|
+
};
|
22
|
+
}
|
23
|
+
static async registerAsync(options) {
|
24
|
+
return {
|
25
|
+
global: options.global,
|
26
|
+
module: MsGeoJsonModule_1,
|
27
|
+
imports: [],
|
28
|
+
providers: [ms_geojson_service_1.MsGeoJsonService],
|
29
|
+
exports: [ms_geojson_service_1.MsGeoJsonService],
|
30
|
+
};
|
31
|
+
}
|
32
|
+
};
|
33
|
+
MsGeoJsonModule = MsGeoJsonModule_1 = __decorate([
|
34
|
+
(0, common_1.Module)({})
|
35
|
+
], MsGeoJsonModule);
|
36
|
+
exports.MsGeoJsonModule = MsGeoJsonModule;
|
37
|
+
//# sourceMappingURL=ms-geojson.module.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ms-geojson.module.js","sourceRoot":"","sources":["../../src/ms-geojson/ms-geojson.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,6DAAwD;AAOjD,IAAM,eAAe,uBAArB,MAAM,eAAe;IAI1B,MAAM,CAAC,QAAQ,CAAC,OAAwB;QACtC,OAAO;YACL,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,iBAAe;YACvB,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,CAAC,qCAAgB,CAAC;YAC7B,OAAO,EAAE,CAAC,qCAAgB,CAAC;SAC5B,CAAC;IACJ,CAAC;IAKD,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,OAAwB;QACjD,OAAO;YACL,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,iBAAe;YACvB,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,CAAC,qCAAgB,CAAC;YAC7B,OAAO,EAAE,CAAC,qCAAgB,CAAC;SAC5B,CAAC;IACJ,CAAC;CACF,CAAA;AA1BY,eAAe;IAD3B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,eAAe,CA0B3B;AA1BY,0CAAe"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { Coordinates, ValidateCoordinatesPolygonDTO } from './dto/ms-geojson.dto';
|
2
|
+
export declare class MsGeoJsonService {
|
3
|
+
validateJson(input: any): ValidateCoordinatesPolygonDTO;
|
4
|
+
validateArrayCoordinatesGeoJson(coordinatesPolygon: any, { coordinates }: Coordinates, reverseCoordinates: Boolean): Promise<any>;
|
5
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
+
exports.MsGeoJsonService = void 0;
|
10
|
+
const common_1 = require("@nestjs/common");
|
11
|
+
const ms_geojson_dto_1 = require("./dto/ms-geojson.dto");
|
12
|
+
const class_validator_1 = require("class-validator");
|
13
|
+
const turf = require("@turf/turf");
|
14
|
+
let MsGeoJsonService = class MsGeoJsonService {
|
15
|
+
validateJson(input) {
|
16
|
+
var _a;
|
17
|
+
const dto = new ms_geojson_dto_1.ValidateCoordinatesPolygonDTO();
|
18
|
+
if (input && ((_a = input.geometry) === null || _a === void 0 ? void 0 : _a.coordinates) && Array.isArray(input.geometry.coordinates[0])) {
|
19
|
+
const arrayCoordinates = input.geometry.coordinates[0];
|
20
|
+
dto.polygonCoordinates = arrayCoordinates === null || arrayCoordinates === void 0 ? void 0 : arrayCoordinates.map((coords) => ({ coordinates: coords }));
|
21
|
+
}
|
22
|
+
const errors = (0, class_validator_1.validateSync)(dto);
|
23
|
+
if (errors.length > 0) {
|
24
|
+
throw new Error('La entrada de datos es inválida.');
|
25
|
+
}
|
26
|
+
return dto;
|
27
|
+
}
|
28
|
+
;
|
29
|
+
async validateArrayCoordinatesGeoJson(coordinatesPolygon, { coordinates }, reverseCoordinates) {
|
30
|
+
try {
|
31
|
+
this.validateJson(coordinatesPolygon);
|
32
|
+
let dataCoordinates = coordinatesPolygon.geometry.coordinates[0];
|
33
|
+
if (reverseCoordinates) {
|
34
|
+
dataCoordinates = dataCoordinates.map(e => [e[1], e[0]]);
|
35
|
+
}
|
36
|
+
const pointCoordinates = coordinates;
|
37
|
+
const pointGeoJSON = turf.point(pointCoordinates);
|
38
|
+
const polygonGeoJSON = turf.polygon([dataCoordinates]);
|
39
|
+
const isPointInside = turf.booleanPointInPolygon(pointGeoJSON, polygonGeoJSON);
|
40
|
+
return { isValid: isPointInside };
|
41
|
+
}
|
42
|
+
catch (error) {
|
43
|
+
throw error.message;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
};
|
47
|
+
MsGeoJsonService = __decorate([
|
48
|
+
(0, common_1.Injectable)()
|
49
|
+
], MsGeoJsonService);
|
50
|
+
exports.MsGeoJsonService = MsGeoJsonService;
|
51
|
+
//# sourceMappingURL=ms-geojson.service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ms-geojson.service.js","sourceRoot":"","sources":["../../src/ms-geojson/ms-geojson.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAkF;AAClF,qDAA+C;AAC/C,mCAAmC;AAG5B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAMzB,YAAY,CAAC,KAAU;;QACnB,MAAM,GAAG,GAAG,IAAI,8CAA6B,EAAE,CAAC;QAChD,IAAG,KAAK,KAAI,MAAA,KAAK,CAAC,QAAQ,0CAAE,WAAW,CAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAC;YACpF,MAAM,gBAAgB,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;YACtD,GAAG,CAAC,kBAAkB,GAAG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,GAAG,CAAC,CAAC,MAAwB,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CA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export interface RpaAgeticInput {
|
7
|
+
numeroDocumento: string;
|
8
|
+
}
|
6
9
|
export interface LoginRequest {
|
7
10
|
usuario: string;
|
8
11
|
password: string;
|
@@ -70,6 +73,29 @@ export interface LogoutResponse {
|
|
70
73
|
message: string;
|
71
74
|
status: number;
|
72
75
|
}
|
76
|
+
export interface RpaServiceResponse {
|
77
|
+
error: boolean;
|
78
|
+
message: string;
|
79
|
+
status: number;
|
80
|
+
response?: RpaServiceResponse_RpaResponse | undefined;
|
81
|
+
}
|
82
|
+
export interface RpaServiceResponse_RpaResponse {
|
83
|
+
codigoPeticion?: string | undefined;
|
84
|
+
abogado?: RpaServiceResponse_Abogado | undefined;
|
85
|
+
}
|
86
|
+
export interface RpaServiceResponse_Abogado {
|
87
|
+
matricula?: string | undefined;
|
88
|
+
fechaRegistro?: string | undefined;
|
89
|
+
estadoRegistro?: string | undefined;
|
90
|
+
numeroDocumento?: string | undefined;
|
91
|
+
fechaNacimiento?: string | undefined;
|
92
|
+
nombres?: string | undefined;
|
93
|
+
primerApellido?: string | undefined;
|
94
|
+
segundoApellido?: string | undefined;
|
95
|
+
buzonElectronico?: string | undefined;
|
96
|
+
foto?: string | undefined;
|
97
|
+
fechaVencimientoMatricula?: string | undefined;
|
98
|
+
}
|
73
99
|
export interface LoginResponse {
|
74
100
|
error: boolean;
|
75
101
|
message: string;
|
@@ -138,6 +164,7 @@ export interface SeguridadControllerClient {
|
|
138
164
|
tokenInformation(request: TokenBody): Observable<LoginResponse>;
|
139
165
|
logout(request: TokenBody): Observable<LogoutResponse>;
|
140
166
|
userDataByToken(request: TokenBody): Observable<ResponseUserData>;
|
167
|
+
getRpaData(request: RpaAgeticInput): Observable<RpaServiceResponse>;
|
141
168
|
}
|
142
169
|
export interface SeguridadControllerController {
|
143
170
|
listPermissions(request: TokenBody): Promise<ResponseListPermissions> | Observable<ResponseListPermissions> | ResponseListPermissions;
|
@@ -147,6 +174,7 @@ export interface SeguridadControllerController {
|
|
147
174
|
tokenInformation(request: TokenBody): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
|
148
175
|
logout(request: TokenBody): Promise<LogoutResponse> | Observable<LogoutResponse> | LogoutResponse;
|
149
176
|
userDataByToken(request: TokenBody): Promise<ResponseUserData> | Observable<ResponseUserData> | ResponseUserData;
|
177
|
+
getRpaData(request: RpaAgeticInput): Promise<RpaServiceResponse> | Observable<RpaServiceResponse> | RpaServiceResponse;
|
150
178
|
}
|
151
179
|
export declare function SeguridadControllerControllerMethods(): (constructor: Function) => void;
|
152
180
|
export declare const SEGURIDAD_CONTROLLER_SERVICE_NAME = "SeguridadController";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Seguridad.pb.js","sourceRoot":"","sources":["../../src/ms-seguridad/Seguridad.pb.ts"],"names":[],"mappings":";;;AACA,yDAAqE;AAGxD,QAAA,eAAe,GAAG,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"Seguridad.pb.js","sourceRoot":"","sources":["../../src/ms-seguridad/Seguridad.pb.ts"],"names":[],"mappings":";;;AACA,yDAAqE;AAGxD,QAAA,eAAe,GAAG,qBAAqB,CAAC;AAsLxC,QAAA,iCAAiC,GAAG,qBAAqB,CAAC;AAgDvE,SAAgB,oCAAoC;IAClD,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa;YAC5B,iBAAiB;YACjB,cAAc;YACd,YAAY;YACZ,OAAO;YACP,kBAAkB;YAClB,QAAQ;YACR,iBAAiB;YACjB,YAAY;SACb,CAAC;QACF,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;YAChC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,IAAA,0BAAU,EAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SAC9F;QACD,MAAM,iBAAiB,GAAa,EAAE,CAAC;QACvC,KAAK,MAAM,MAAM,IAAI,iBAAiB,EAAE;YACtC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,IAAA,gCAAgB,EAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SACpG;IACH,CAAC,CAAC;AACJ,CAAC;AAtBD,oFAsBC;AAEY,QAAA,iCAAiC,GAAG,qBAAqB,CAAC"}
|
@@ -11,12 +11,18 @@ service SeguridadController {
|
|
11
11
|
rpc TokenInformation (TokenBody) returns (LoginResponse) {}
|
12
12
|
rpc Logout (TokenBody) returns (LogoutResponse) {}
|
13
13
|
rpc UserDataByToken (TokenBody) returns (ResponseUserData) {}
|
14
|
+
rpc GetRpaData (RpaAgeticInput) returns (RpaServiceResponse) {}
|
14
15
|
}
|
15
16
|
|
17
|
+
//SECTION - input a data para servicios
|
16
18
|
message TokenBody {
|
17
19
|
string token = 1;
|
18
20
|
}
|
19
21
|
|
22
|
+
message RpaAgeticInput {
|
23
|
+
string numeroDocumento = 1;
|
24
|
+
}
|
25
|
+
|
20
26
|
message LoginRequest {
|
21
27
|
string usuario = 1;
|
22
28
|
string password = 2;
|
@@ -26,6 +32,8 @@ message LoginRequest {
|
|
26
32
|
optional string codigoDispositivo = 6;
|
27
33
|
}
|
28
34
|
|
35
|
+
//!SECTION
|
36
|
+
|
29
37
|
message ResponseListPermissions {
|
30
38
|
bool error = 1;
|
31
39
|
string message = 2;
|
@@ -98,6 +106,35 @@ message LogoutResponse {
|
|
98
106
|
int32 status = 3;
|
99
107
|
}
|
100
108
|
|
109
|
+
/* ---------------------------------------------------------------------------------------------- */
|
110
|
+
|
111
|
+
message RpaServiceResponse {
|
112
|
+
bool error = 1;
|
113
|
+
string message = 2;
|
114
|
+
int32 status = 3;
|
115
|
+
optional RpaResponse response = 4;
|
116
|
+
|
117
|
+
message RpaResponse {
|
118
|
+
optional string codigoPeticion = 1;
|
119
|
+
optional Abogado abogado = 2;
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
message Abogado {
|
124
|
+
optional string matricula = 1;
|
125
|
+
optional string fechaRegistro = 2;
|
126
|
+
optional string estadoRegistro = 3;
|
127
|
+
optional string numeroDocumento = 4;
|
128
|
+
optional string fechaNacimiento = 5;
|
129
|
+
optional string nombres = 6;
|
130
|
+
optional string primerApellido = 7;
|
131
|
+
optional string segundoApellido = 8;
|
132
|
+
optional string buzonElectronico = 9;
|
133
|
+
optional string foto = 10;
|
134
|
+
optional string fechaVencimientoMatricula = 11;
|
135
|
+
|
136
|
+
}
|
137
|
+
}
|
101
138
|
/* ---------------------------------------------------------------------------------------------- */
|
102
139
|
message LoginResponse {
|
103
140
|
bool error = 1;
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { MsSeguridadService } from './ms-seguridad.service';
|
2
2
|
import { LoginDto } from './dto/ms-seguridad.input';
|
3
|
+
import { RpaAgeticService } from './rpa-agetic/rpa-agetic.service';
|
3
4
|
export declare class MsSeguridadController {
|
4
5
|
private readonly seguridadService;
|
5
|
-
|
6
|
+
private readonly rpaAgeticService;
|
7
|
+
constructor(seguridadService: MsSeguridadService, rpaAgeticService: RpaAgeticService);
|
6
8
|
login(req: Request, ip: any, body: LoginDto): Promise<import("./Seguridad.pb").LoginResponse>;
|
7
9
|
token(token: string): Promise<import("./Seguridad.pb").LoginResponse>;
|
8
10
|
logoutV2(token: string): Promise<import("./Seguridad.pb").LogoutResponse>;
|
@@ -20,9 +20,11 @@ const ms_seguridad_service_1 = require("./ms-seguridad.service");
|
|
20
20
|
const ms_seguridad_input_1 = require("./dto/ms-seguridad.input");
|
21
21
|
const uaParser = require("ua-parser-js");
|
22
22
|
const global_exception_filter_1 = require("../helpers/global-exception.filter");
|
23
|
+
const rpa_agetic_service_1 = require("./rpa-agetic/rpa-agetic.service");
|
23
24
|
let MsSeguridadController = class MsSeguridadController {
|
24
|
-
constructor(seguridadService) {
|
25
|
+
constructor(seguridadService, rpaAgeticService) {
|
25
26
|
this.seguridadService = seguridadService;
|
27
|
+
this.rpaAgeticService = rpaAgeticService;
|
26
28
|
}
|
27
29
|
async login(req, ip, body) {
|
28
30
|
try {
|
@@ -78,7 +80,8 @@ __decorate([
|
|
78
80
|
MsSeguridadController = __decorate([
|
79
81
|
(0, common_1.Controller)('auth'),
|
80
82
|
(0, swagger_1.ApiTags)('[MS-SEGURIDAD] AUTH'),
|
81
|
-
__metadata("design:paramtypes", [ms_seguridad_service_1.MsSeguridadService
|
83
|
+
__metadata("design:paramtypes", [ms_seguridad_service_1.MsSeguridadService,
|
84
|
+
rpa_agetic_service_1.RpaAgeticService])
|
82
85
|
], MsSeguridadController);
|
83
86
|
exports.MsSeguridadController = MsSeguridadController;
|
84
87
|
//# sourceMappingURL=ms-seguridad.controller.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ms-seguridad.controller.js","sourceRoot":"","sources":["../../src/ms-seguridad/ms-seguridad.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+E;AAC/E,6CAAuE;AACvE,qEAAqD;AACrD,iEAA4D;AAC5D,iEAAoD;AACpD,yCAAyC;AACzC,gFAAsE;
|
1
|
+
{"version":3,"file":"ms-seguridad.controller.js","sourceRoot":"","sources":["../../src/ms-seguridad/ms-seguridad.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+E;AAC/E,6CAAuE;AACvE,qEAAqD;AACrD,iEAA4D;AAC5D,iEAAoD;AACpD,yCAAyC;AACzC,gFAAsE;AACtE,wEAAmE;AAK5D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YACmB,gBAAoC,EACpC,gBAAkC;QADlC,qBAAgB,GAAhB,gBAAgB,CAAoB;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IASE,AAAN,KA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BAAa,GAAE;IACf,IAAA,gBAAO,EAAC,GAAG,CAAC;IACZ,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;IAC1D,WAAA,IAAA,kCAAS,GAAE,CAAA;;;;kDAGvB;AAOK;IAJL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACd,IAAA,uBAAa,GAAE;IACf,IAAA,gBAAO,EAAC,GAAG,CAAC;IACZ,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC,WAAA,IAAA,kCAAS,GAAE,CAAA;;;;qDAG1B;AA1CU,qBAAqB;IAFjC,IAAA,mBAAU,EAAC,MAAM,CAAC;IAClB,IAAA,iBAAO,EAAC,qBAAqB,CAAC;qCAGQ,yCAAkB;QAClB,qCAAgB;GAH1C,qBAAqB,CAsDjC;AAtDY,sDAAqB"}
|
@@ -16,6 +16,7 @@ const path_1 = require("path");
|
|
16
16
|
const chalk_1 = require("chalk");
|
17
17
|
const core_1 = require("@nestjs/core");
|
18
18
|
const ms_seguridad_controller_1 = require("./ms-seguridad.controller");
|
19
|
+
const rpa_agetic_service_1 = require("./rpa-agetic/rpa-agetic.service");
|
19
20
|
let MsSeguridadModule = MsSeguridadModule_1 = class MsSeguridadModule {
|
20
21
|
static register(options) {
|
21
22
|
const urlSeguridad = process.env.ENV_GRPC_MS_SEGURIDAD || (options && options.urlSeguridad);
|
@@ -41,8 +42,9 @@ let MsSeguridadModule = MsSeguridadModule_1 = class MsSeguridadModule {
|
|
41
42
|
providers: [
|
42
43
|
{ provide: 'PROVIDER_NAME_MS_SEGURIDAD', useValue: this.client },
|
43
44
|
ms_seguridad_service_1.MsSeguridadService,
|
45
|
+
rpa_agetic_service_1.RpaAgeticService,
|
44
46
|
],
|
45
|
-
exports: [ms_seguridad_service_1.MsSeguridadService, 'PROVIDER_NAME_MS_SEGURIDAD'],
|
47
|
+
exports: [ms_seguridad_service_1.MsSeguridadService, 'PROVIDER_NAME_MS_SEGURIDAD', rpa_agetic_service_1.RpaAgeticService],
|
46
48
|
};
|
47
49
|
}
|
48
50
|
static async registerAsync(options) {
|
@@ -68,8 +70,9 @@ let MsSeguridadModule = MsSeguridadModule_1 = class MsSeguridadModule {
|
|
68
70
|
providers: [
|
69
71
|
{ provide: 'PROVIDER_NAME_MS_SEGURIDAD', useValue: this.client },
|
70
72
|
ms_seguridad_service_1.MsSeguridadService,
|
73
|
+
rpa_agetic_service_1.RpaAgeticService,
|
71
74
|
],
|
72
|
-
exports: [ms_seguridad_service_1.MsSeguridadService, 'PROVIDER_NAME_MS_SEGURIDAD'],
|
75
|
+
exports: [ms_seguridad_service_1.MsSeguridadService, 'PROVIDER_NAME_MS_SEGURIDAD', rpa_agetic_service_1.RpaAgeticService],
|
73
76
|
};
|
74
77
|
}
|
75
78
|
static showError(text) {
|
@@ -78,7 +81,7 @@ let MsSeguridadModule = MsSeguridadModule_1 = class MsSeguridadModule {
|
|
78
81
|
};
|
79
82
|
MsSeguridadModule = MsSeguridadModule_1 = __decorate([
|
80
83
|
(0, common_1.Module)({
|
81
|
-
providers: [ms_seguridad_service_1.MsSeguridadService, core_1.Reflector],
|
84
|
+
providers: [ms_seguridad_service_1.MsSeguridadService, rpa_agetic_service_1.RpaAgeticService, core_1.Reflector],
|
82
85
|
})
|
83
86
|
], MsSeguridadModule);
|
84
87
|
exports.MsSeguridadModule = MsSeguridadModule;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ms-seguridad.module.js","sourceRoot":"","sources":["../../src/ms-seguridad/ms-seguridad.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,yDAAmF;AACnF,iEAA4D;AAC5D,iEAA6D;AAC7D,+BAA4B;AAC5B,iCAA6B;AAC7B,uCAAyC;AACzC,uEAAkE;
|
1
|
+
{"version":3,"file":"ms-seguridad.module.js","sourceRoot":"","sources":["../../src/ms-seguridad/ms-seguridad.module.ts"],"names":[],"mappings":";;;;;;;;;;AAA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AAC;IACJ,CAAC;IAEO,MAAM,CAAC,SAAS,CAAC,IAAY;QACnC,OAAO,CAAC,IAAI,CAAC,YAAI,CAAC,GAAG,CAAC,GAAG,IAAI,sCAAsC,CAAC,CAAC,CAAC;IACxE,CAAC;CACF,CAAA;AAzEY,iBAAiB;IAH7B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,yCAAkB,EAAE,qCAAgB,EAAE,gBAAS,CAAC;KAC7D,CAAC;GACW,iBAAiB,CAyE7B;AAzEY,8CAAiB"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.RpaAgeticDto = void 0;
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
class RpaAgeticDto {
|
16
|
+
}
|
17
|
+
__decorate([
|
18
|
+
(0, swagger_1.ApiProperty)(),
|
19
|
+
(0, class_validator_1.IsDefined)({ message: 'El campo `numeroDocumento` es obligatorio.' }),
|
20
|
+
(0, class_validator_1.MinLength)(5, {
|
21
|
+
message: 'El campo `numeroDocumento` debe contener al menos 5 carácter.',
|
22
|
+
}),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], RpaAgeticDto.prototype, "numeroDocumento", void 0);
|
25
|
+
exports.RpaAgeticDto = RpaAgeticDto;
|
26
|
+
//# sourceMappingURL=rpa-agetic.input.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rpa-agetic.input.js","sourceRoot":"","sources":["../../../src/ms-seguridad/rpa-agetic/rpa-agetic.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAuD;AAGvD,MAAa,YAAY;CAOxB;AANC;IAAC,IAAA,qBAAW,GAAE;IACb,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;IACpE,IAAA,2BAAS,EAAC,CAAC,EAAE;QACZ,OAAO,EAAE,+DAA+D;KACzE,CAAC;;qDACsB;AAN1B,oCAOC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ClientGrpc } from '@nestjs/microservices';
|
2
|
+
import { RpaAgeticInput, RpaServiceResponse } from '../Seguridad.pb';
|
3
|
+
export declare class RpaAgeticService {
|
4
|
+
private readonly client;
|
5
|
+
private seguridadService;
|
6
|
+
constructor(client: ClientGrpc);
|
7
|
+
private onModuleInit;
|
8
|
+
getRpaData(data: RpaAgeticInput): Promise<RpaServiceResponse>;
|
9
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.RpaAgeticService = void 0;
|
16
|
+
const common_1 = require("@nestjs/common");
|
17
|
+
const rxjs_1 = require("rxjs");
|
18
|
+
let RpaAgeticService = class RpaAgeticService {
|
19
|
+
constructor(client) {
|
20
|
+
this.client = client;
|
21
|
+
}
|
22
|
+
onModuleInit() {
|
23
|
+
this.seguridadService =
|
24
|
+
this.client.getService('SeguridadController');
|
25
|
+
}
|
26
|
+
getRpaData(data) {
|
27
|
+
return (0, rxjs_1.firstValueFrom)(this.seguridadService.getRpaData(data));
|
28
|
+
}
|
29
|
+
};
|
30
|
+
RpaAgeticService = __decorate([
|
31
|
+
(0, common_1.Injectable)(),
|
32
|
+
__param(0, (0, common_1.Inject)('PROVIDER_NAME_MS_SEGURIDAD')),
|
33
|
+
__metadata("design:paramtypes", [Object])
|
34
|
+
], RpaAgeticService);
|
35
|
+
exports.RpaAgeticService = RpaAgeticService;
|
36
|
+
//# sourceMappingURL=rpa-agetic.service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rpa-agetic.service.js","sourceRoot":"","sources":["../../../src/ms-seguridad/rpa-agetic/rpa-agetic.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AAIpD,+BAAsC;AAM/B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAG3B,YAAmE,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEjF,YAAY;QAClB,IAAI,CAAC,gBAAgB;YACnB,IAAI,CAAC,MAAM,CAAC,UAAU,CAA4B,qBAAqB,CAAC,CAAC;IAC7E,CAAC;IAMD,UAAU,CAAC,IAAoB;QAC7B,OAAO,IAAA,qBAAc,EAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAChE,CAAC;CACF,CAAA;AAjBY,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAIE,WAAA,IAAA,eAAM,EAAC,4BAA4B,CAAC,CAAA;;GAHtC,gBAAgB,CAiB5B;AAjBY,4CAAgB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "fiscalia_bo-nest-helpers",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.31",
|
4
4
|
"author": "UTIC",
|
5
5
|
"contact": {
|
6
6
|
"name": "Unidad de Tecnologías de la Información y Comunicación - Ministerio Público",
|
@@ -13,6 +13,7 @@
|
|
13
13
|
"dist/ms-personas/*",
|
14
14
|
"dist/http-service/*",
|
15
15
|
"dist/services/*",
|
16
|
+
"dist/ms-geojson/*",
|
16
17
|
"dist/helpers/*",
|
17
18
|
"dist/types/*",
|
18
19
|
"dist/index.d.ts",
|