fiscalia_bo-nest-helpers 0.1.46 → 0.1.48

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,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "seguridad.Seguridad";
3
3
  export interface TokenBody {
4
4
  token: string;
@@ -64,10 +64,11 @@ export interface ResponseUserData {
64
64
  export interface ResponseUserData_UserPayload {
65
65
  usuarioId: number;
66
66
  aplicacionId: number;
67
- funcionarioId: number;
67
+ funcionarioId?: number | undefined;
68
68
  msPersonaId: number;
69
69
  perfilPersonaId: number;
70
70
  ci: string;
71
+ institucionId?: number | undefined;
71
72
  }
72
73
  export interface LogoutResponse {
73
74
  error: boolean;
@@ -160,6 +161,10 @@ export interface LoginResponse_Funcionario {
160
161
  oficinaId: number;
161
162
  municipio: string;
162
163
  departamentoId: number;
164
+ entidad: string;
165
+ entidadId: number;
166
+ institucionId: number;
167
+ institucion: string;
163
168
  }
164
169
  export interface LoginResponse_App {
165
170
  nombre: string;
@@ -2,31 +2,31 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SEGURIDAD_CONTROLLER_SERVICE_NAME = exports.SeguridadControllerControllerMethods = exports.SEGURIDAD__SEGURIDAD_PACKAGE_NAME = exports.protobufPackage = void 0;
4
4
  const microservices_1 = require("@nestjs/microservices");
5
- exports.protobufPackage = 'seguridad.Seguridad';
6
- exports.SEGURIDAD__SEGURIDAD_PACKAGE_NAME = 'seguridad.Seguridad';
5
+ exports.protobufPackage = "seguridad.Seguridad";
6
+ exports.SEGURIDAD__SEGURIDAD_PACKAGE_NAME = "seguridad.Seguridad";
7
7
  function SeguridadControllerControllerMethods() {
8
8
  return function (constructor) {
9
9
  const grpcMethods = [
10
- 'listPermissions',
11
- 'listServices',
12
- 'validToken',
13
- 'login',
14
- 'tokenInformation',
15
- 'logout',
16
- 'userDataByToken',
17
- 'getRpaData',
10
+ "listPermissions",
11
+ "listServices",
12
+ "validToken",
13
+ "login",
14
+ "tokenInformation",
15
+ "logout",
16
+ "userDataByToken",
17
+ "getRpaData",
18
18
  ];
19
19
  for (const method of grpcMethods) {
20
20
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
21
- (0, microservices_1.GrpcMethod)('SeguridadController', method)(constructor.prototype[method], method, descriptor);
21
+ (0, microservices_1.GrpcMethod)("SeguridadController", method)(constructor.prototype[method], method, descriptor);
22
22
  }
23
23
  const grpcStreamMethods = [];
24
24
  for (const method of grpcStreamMethods) {
25
25
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
26
- (0, microservices_1.GrpcStreamMethod)('SeguridadController', method)(constructor.prototype[method], method, descriptor);
26
+ (0, microservices_1.GrpcStreamMethod)("SeguridadController", method)(constructor.prototype[method], method, descriptor);
27
27
  }
28
28
  };
29
29
  }
30
30
  exports.SeguridadControllerControllerMethods = SeguridadControllerControllerMethods;
31
- exports.SEGURIDAD_CONTROLLER_SERVICE_NAME = 'SeguridadController';
31
+ exports.SEGURIDAD_CONTROLLER_SERVICE_NAME = "SeguridadController";
32
32
  //# sourceMappingURL=Seguridad.pb.js.map
@@ -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;AAyMxC,QAAA,iCAAiC,GAAG,qBAAqB,CAAC;AAyDvE,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,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ACD,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"}
@@ -92,10 +92,11 @@ message ResponseUserData {
92
92
  message UserPayload {
93
93
  int32 usuarioId= 1;
94
94
  int32 aplicacionId= 2;
95
- int32 funcionarioId= 3;
95
+ optional int32 funcionarioId= 3;
96
96
  int32 msPersonaId= 4;
97
97
  int32 perfilPersonaId= 5;
98
98
  string ci = 6;
99
+ optional int32 institucionId = 7;
99
100
  }
100
101
  }
101
102
 
@@ -202,6 +203,10 @@ message LoginResponse {
202
203
  int32 oficinaId = 20;
203
204
  string municipio = 21;
204
205
  int32 departamentoId = 22;
206
+ string entidad = 23;
207
+ int32 entidadId = 24;
208
+ int32 institucionId = 25;
209
+ string institucion = 26;
205
210
  }
206
211
 
207
212
  message App {
@@ -218,4 +223,4 @@ message LoginResponse {
218
223
  int32 situacion = 5;
219
224
  int32 estado = 6;
220
225
  }
221
- }
226
+ }
@@ -1,14 +1,15 @@
1
1
  import 'dotenv/config';
2
2
  import { HttpService } from '@nestjs/axios';
3
- import { CreateShortLinkDto, CreateTemporalLinkDTO } from './types';
3
+ import { IResponseDTO } from 'src/types';
4
+ import { ObjectLinkResponse, CreateShortLinkDto, CreateTemporalLinkDTO, LinkTempResponse } from './types';
4
5
  export declare class MsShortLinkService {
5
6
  private readonly httpService;
6
7
  private requestHttpService;
7
8
  constructor(httpService: HttpService);
8
- create(data: CreateShortLinkDto): any;
9
+ create(data: CreateShortLinkDto): Promise<IResponseDTO<ObjectLinkResponse>>;
9
10
  sl(hash: string): any;
10
- view(linkId: string): any;
11
- delete(linkId: string): any;
12
- createTemporalLink(data: CreateTemporalLinkDTO): any;
11
+ view(linkId: string): Promise<IResponseDTO<ObjectLinkResponse>>;
12
+ delete(linkId: string): Promise<IResponseDTO<ObjectLinkResponse>>;
13
+ createTemporalLink(data: CreateTemporalLinkDTO): Promise<IResponseDTO<LinkTempResponse>>;
13
14
  slTemp(hash: string): any;
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ms-shortlink.service.js","sourceRoot":"","sources":["../../src/ms-shortlink/ms-shortlink.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yBAAuB;AACvB,2CAA4C;AAC5C,yCAA4C;AAI5C,8DAAmE;AAG5D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAE7B,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QACnD,IAAI,CAAC,kBAAkB,GAAG,IAAA,sCAAqB,EAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,IAAwB;QAC7B,OAAO,IAAI,CAAC,kBAAkB,CAAC;YAC7B,GAAG,EAAE,eAAe;YACpB,MAAM,EAAE,MAAM;YACd,IAAI,oBAAO,IAAI,CAAE;SAClB,CAAC,CAAC;IACL,CAAC;IAED,EAAE,CAAC,IAAY;QACb,OAAO,IAAI,CAAC,kBAAkB,CAAC;YAC7B,GAAG,EAAE,OAAO,IAAI,EAAE;YAClB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CAAC,MAAc;QACjB,OAAO,IAAI,CAAC,kBAAkB,CAAC;YAC7B,GAAG,EAAE,mBAAmB,MAAM,EAAE;YAChC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAc;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC;YAC7B,GAA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AC7B,GAAG,EAAE,mBAAmB,MAAM,EAAE;YAChC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAOD,MAAM,CAAC,MAAc;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC;YAC7B,GAAG,EAAE,qBAAqB,MAAM,EAAE;YAClC,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAOD,kBAAkB,CAAC,IAA2B;QAC5C,OAAO,IAAI,CAAC,kBAAkB,CAAC;YAC7B,GAAG,EAAE,eAAe;YACpB,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAOD,MAAM,CAAC,IAAY;QACjB,OAAO,IAAI,CAAC,kBAAkB,CAAC;YAC7B,GAAG,EAAE,YAAY,IAAI,EAAE;YACvB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA/EY,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAG+B,mBAAW;GAF1C,kBAAkB,CA+E9B;AA/EY,gDAAkB"}
@@ -9,7 +9,7 @@ export type CreateTemporalLinkDTO = {
9
9
  appID: string;
10
10
  time: number;
11
11
  };
12
- export type CreateLinkResponse = {
12
+ export type ObjectLinkResponse = {
13
13
  link: string;
14
14
  appID: string;
15
15
  hash: string;
@@ -20,3 +20,9 @@ export type CreateLinkResponse = {
20
20
  updatedAt: string;
21
21
  __v: number;
22
22
  };
23
+ export type LinkTempResponse = {
24
+ link: string;
25
+ appID: string;
26
+ time: number;
27
+ hash: string;
28
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiscalia_bo-nest-helpers",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "description": "Helpers y servicios para NestJS",
5
5
  "author": "UTIC - Ministerio Público",
6
6
  "contact": {