fiscalia_bo-nest-helpers 1.6.3 → 1.6.5

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,8 +1,8 @@
1
1
  import { Type } from '@nestjs/common';
2
2
  import { OperationObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
3
3
  type ApiOperationOptions = Omit<Partial<OperationObject>, 'description' | 'summary'>;
4
- export declare const VersionDescription: (version: string, summary: string, permissions?: string[], options?: ApiOperationOptions) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
5
- export declare const ApiBodyDto: (dto: any) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
4
+ export declare const VersionDescription: (version: string, summary: string, permissions?: string[], options?: ApiOperationOptions) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
5
+ export declare const ApiBodyDto: (dto: any) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
6
6
  export declare const MsRedisCache: (cacheOptions?: {
7
7
  key?: string;
8
8
  ttl: number;
@@ -12,7 +12,7 @@ export declare const MsRedisCache: (cacheOptions?: {
12
12
  ignoreExceptions?: boolean;
13
13
  responseHttp?: boolean;
14
14
  db?: number;
15
- }) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
15
+ }) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
16
16
  export declare const DtoResponse: (options?: {
17
17
  success?: Type<unknown>;
18
18
  error?: Type<unknown>;
@@ -1,3 +1,3 @@
1
1
  import { ClassTransformOptions } from '@nestjs/common/interfaces/external/class-transform-options.interface';
2
2
  export declare const DTO_PIPE_PLAIN_TO_CLASS_OPTIONS = "dto-pipe-class-transform-options";
3
- export declare const DtoPipePlainToClassOptions: (plainToClassOptions?: ClassTransformOptions) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
3
+ export declare const DtoPipePlainToClassOptions: (plainToClassOptions?: ClassTransformOptions) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
@@ -6,3 +6,8 @@ export declare class CorrespondenceBase64Pdf {
6
6
  correspondenciaId: number;
7
7
  rrhhFuncionarioId: number;
8
8
  }
9
+ export declare class ExisteHojaRutaDto {
10
+ codigoStr: string;
11
+ rrhhFuncionarioId: number;
12
+ numeroDocumento: string;
13
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CorrespondenceBase64Pdf = exports.CorrespondencePdf = void 0;
12
+ exports.ExisteHojaRutaDto = exports.CorrespondenceBase64Pdf = exports.CorrespondencePdf = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
@@ -47,4 +47,7 @@ __decorate([
47
47
  (0, class_transformer_1.Transform)(({ value }) => (value ? parseInt(value) : value)),
48
48
  __metadata("design:type", Number)
49
49
  ], CorrespondenceBase64Pdf.prototype, "rrhhFuncionarioId", void 0);
50
+ class ExisteHojaRutaDto {
51
+ }
52
+ exports.ExisteHojaRutaDto = ExisteHojaRutaDto;
50
53
  //# sourceMappingURL=gdv1.input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gdv1.input.js","sourceRoot":"","sources":["../../../../src/modules/ms-correspondencia/dto/gdv1.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6C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Q,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;;kEAClC;AAM1B;IAJC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;IACzD,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;;kEAClC;AAG5B,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
@@ -11,8 +11,8 @@ declare class ItemCorrespondencia {
11
11
  referencia: string;
12
12
  cite?: string;
13
13
  descripcion: string;
14
- departamento: string;
15
- entidad: string;
14
+ departamento?: string;
15
+ entidad?: string;
16
16
  }
17
17
  export declare class BuscarCorrespondenciasData {
18
18
  correspondencias: ItemCorrespondencia[];
@@ -26,6 +26,18 @@ export declare class BuscarCorrespondenciasOk {
26
26
  status: number;
27
27
  response: BuscarCorrespondenciasResponse;
28
28
  }
29
+ export declare class ExisteHojaRutaData {
30
+ correspondencia: ItemCorrespondencia;
31
+ }
32
+ export declare class ExisteHojaRutaResponse {
33
+ data?: ExisteHojaRutaData;
34
+ }
35
+ export declare class ExisteHojaRutaOk {
36
+ error: boolean;
37
+ message: string;
38
+ status: number;
39
+ response: ExisteHojaRutaResponse;
40
+ }
29
41
  export declare class Base64CorrespondenciaResponse {
30
42
  base64: string;
31
43
  }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Base64CorrespondenciasOk = exports.Base64CorrespondenciaResponse = exports.BuscarCorrespondenciasOk = exports.BuscarCorrespondenciasResponse = exports.BuscarCorrespondenciasData = exports.VerifyCorrespondenciaOk = void 0;
12
+ exports.Base64CorrespondenciasOk = exports.Base64CorrespondenciaResponse = exports.ExisteHojaRutaOk = exports.ExisteHojaRutaResponse = exports.ExisteHojaRutaData = exports.BuscarCorrespondenciasOk = exports.BuscarCorrespondenciasResponse = exports.BuscarCorrespondenciasData = exports.VerifyCorrespondenciaOk = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  class VerifyCorrespondenciaOk {
15
15
  }
@@ -97,6 +97,39 @@ __decorate([
97
97
  (0, swagger_1.ApiProperty)({ type: BuscarCorrespondenciasResponse }),
98
98
  __metadata("design:type", BuscarCorrespondenciasResponse)
99
99
  ], BuscarCorrespondenciasOk.prototype, "response", void 0);
100
+ class ExisteHojaRutaData {
101
+ }
102
+ exports.ExisteHojaRutaData = ExisteHojaRutaData;
103
+ __decorate([
104
+ (0, swagger_1.ApiProperty)({ type: ItemCorrespondencia }),
105
+ __metadata("design:type", ItemCorrespondencia)
106
+ ], ExisteHojaRutaData.prototype, "correspondencia", void 0);
107
+ class ExisteHojaRutaResponse {
108
+ }
109
+ exports.ExisteHojaRutaResponse = ExisteHojaRutaResponse;
110
+ __decorate([
111
+ (0, swagger_1.ApiProperty)({ type: ExisteHojaRutaData }),
112
+ __metadata("design:type", ExisteHojaRutaData)
113
+ ], ExisteHojaRutaResponse.prototype, "data", void 0);
114
+ class ExisteHojaRutaOk {
115
+ }
116
+ exports.ExisteHojaRutaOk = ExisteHojaRutaOk;
117
+ __decorate([
118
+ (0, swagger_1.ApiProperty)(),
119
+ __metadata("design:type", Boolean)
120
+ ], ExisteHojaRutaOk.prototype, "error", void 0);
121
+ __decorate([
122
+ (0, swagger_1.ApiProperty)(),
123
+ __metadata("design:type", String)
124
+ ], ExisteHojaRutaOk.prototype, "message", void 0);
125
+ __decorate([
126
+ (0, swagger_1.ApiProperty)(),
127
+ __metadata("design:type", Number)
128
+ ], ExisteHojaRutaOk.prototype, "status", void 0);
129
+ __decorate([
130
+ (0, swagger_1.ApiProperty)({ type: ExisteHojaRutaResponse }),
131
+ __metadata("design:type", ExisteHojaRutaResponse)
132
+ ], ExisteHojaRutaOk.prototype, "response", void 0);
100
133
  class Base64CorrespondenciaResponse {
101
134
  }
102
135
  exports.Base64CorrespondenciaResponse = Base64CorrespondenciaResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"gdv1.resp.js","sourceRoot":"","sources":["../../../../src/modules/ms-correspondencia/dto/gdv1.resp.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAG9C,MAAa,uBAAuB;CASnC;AATD,0DASC;AAPC;IADC,IAAA,qBAAW,GAAE;;sDACC;AAEf;IADC,IAAA,qBAAW,GAAE;;wDACE;AAEhB;IADC,IAAA,qBAAW,GAAE;;uDACC;AAEf;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;yDACb;AAGpB,MAAM,mBAAmB;CAwBxB;AAtBC;IADC,IAAA,qBAAW,GAAE;;8DACY;AAG1B;IADC,IAAA,qBAAW,GAAE;;sDACI;AAGlB;IADC,IAAA,qBAAW,GAAE;;qDACG;AAGjB;IADC,IAAA,qBAAW,GAAE;;uDACK;AAGnB;IADC,IAAA,qBAAW,GAAE;;iDACA;AAGd;IADC,IAAA,qBAAW,GAAE;;wDACM;AAGpB;IADC,IAAA,qBAAW,GAAE;;yDACO;AAGrB;IADC,IAAA,qBAAW,GAAE;;oDACE;AAGlB,MAAa,0BAA0B;CAGtC;AAHD,gEAGC;AADC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC;;oEACL;AAE1C,MAAa,8BAA8B;CAG1C;AAHD,wEAGC;AADC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;8BAC3C,0BAA0B;4DAAC;AAGpC,MAAa,wBAAwB;CASpC;AATD,4DASC;AAPC;IADC,IAAA,qBAAW,GAAE;;uDACC;AAEf;IADC,IAAA,qBAAW,GAAE;;yDACE;AAEhB;IADC,IAAA,qBAAW,GAAE;;wDACC;AAEf;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;8BAC5C,8BAA8B;0DAAC;AAI3C,MAAa,6BAA6B;CAGzC;AAHD,sEAGC;AADC;IADC,IAAA,qBAAW,GAAE;;6DACC;AAGjB,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AARC;IADC,IAAA,qBAAW,GAAE;;uDACC;AAEf;IADC,IAAA,qBAAW,GAAE;;yDACE;AAEhB;IADC,IAAA,qBAAW,GAAE;;wDACC;AAGf;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;8BAC3C,6BAA6B;0DAAC"}
1
+ {"version":3,"file":"gdv1.resp.js","sourceRoot":"","sources":["../../../../src/modules/ms-correspondencia/dto/gdv1.resp.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAG9C,MAAa,uBAAuB;CASnC;AATD,0DASC;AAPC;IADC,IAAA,qBAAW,GAAE;;sDACC;AAEf;IADC,IAAA,qBAAW,GAAE;;wDACE;AAEhB;IADC,IAAA,qBAAW,GAAE;;uDACC;AAEf;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;yDACb;AAGpB,MAAM,mBAAmB;CAwBxB;AAtBC;IADC,IAAA,qBAAW,GAAE;;8DACY;AAG1B;IADC,IAAA,qBAAW,GAAE;;sDACI;AAGlB;IADC,IAAA,qBAAW,GAAE;;qDACG;AAGjB;IADC,IAAA,qBAAW,GAAE;;uDACK;AAGnB;IADC,IAAA,qBAAW,GAAE;;iDACA;AAGd;IADC,IAAA,qBAAW,GAAE;;wDACM;AAGpB;IADC,IAAA,qBAAW,GAAE;;yDACQ;AAGtB;IADC,IAAA,qBAAW,GAAE;;oDACG;AAGnB,MAAa,0BAA0B;CAGtC;AAHD,gEAGC;AADC;IADC,IAAA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,EAAE,6BAA6B,EAAE,CAAC;8BAC3C,6BAA6B;0DAAC"}
@@ -1,7 +1,7 @@
1
1
  import 'dotenv/config';
2
2
  import { HttpService } from '@nestjs/axios';
3
- import { CorrespondenceBase64Pdf, CorrespondencePdf } from './dto/gdv1.input';
4
- import { Base64CorrespondenciasOk, BuscarCorrespondenciasOk, VerifyCorrespondenciaOk } from './dto/gdv1.resp';
3
+ import { CorrespondenceBase64Pdf, CorrespondencePdf, ExisteHojaRutaDto } from './dto/gdv1.input';
4
+ import { Base64CorrespondenciasOk, BuscarCorrespondenciasOk, ExisteHojaRutaOk, VerifyCorrespondenciaOk } from './dto/gdv1.resp';
5
5
  export declare class GestionDocumentalService {
6
6
  private readonly httpService;
7
7
  private readonly urlApi;
@@ -9,6 +9,7 @@ export declare class GestionDocumentalService {
9
9
  constructor(httpService: HttpService, urlApi: string);
10
10
  verificarAccesoHojaRuta(data: CorrespondencePdf): Promise<VerifyCorrespondenciaOk>;
11
11
  buscarCorrespondencia(data: CorrespondencePdf): Promise<BuscarCorrespondenciasOk>;
12
+ existeHojaRuta(data: ExisteHojaRutaDto): Promise<ExisteHojaRutaOk>;
12
13
  base64Correspondencia(data: CorrespondencePdf): Promise<Base64CorrespondenciasOk>;
13
14
  base64CorrespondenciaV2(data: CorrespondenceBase64Pdf): Promise<Base64CorrespondenciasOk>;
14
15
  }
@@ -44,6 +44,18 @@ let GestionDocumentalService = class GestionDocumentalService {
44
44
  .pipe(http_service_1.FilterHttpServiceResponse));
45
45
  return response;
46
46
  }
47
+ async existeHojaRuta(data) {
48
+ const config = {
49
+ timeout: 5000,
50
+ headers: { 'Content-Type': 'application/json', 'Cache-Control': 'no-cache' },
51
+ };
52
+ const url = `${this.urlApi}/v1/external-services/correspondencia/verificar/existencia`;
53
+ const response = await (0, rxjs_1.firstValueFrom)(this.httpService
54
+ .post(url, data, config)
55
+ .pipe(http_service_1.TransformHttpServiceResponse)
56
+ .pipe(http_service_1.FilterHttpServiceResponse));
57
+ return response;
58
+ }
47
59
  async base64Correspondencia(data) {
48
60
  const response = await this.requestHttpService({
49
61
  url: `v1/external-services/correspondence`,
@@ -1 +1 @@
1
- {"version":3,"file":"gdv1.service.js","sourceRoot":"","sources":["../../../src/modules/ms-correspondencia/gdv1.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yBAAuB;AACvB,2CAAoD;AACpD,yCAA4C;AAC5C,qDAI2B;AAE3B,+BAAsC;AAS/B,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAGnC,YACmB,WAAwB,EACc,MAAc;QADpD,gBAAW,GAAX,WAAW,CAAa;QACc,WAAM,GAAN,MAAM,CAAQ;QAErE,IAAI,CAAC,kBAAkB,GAAG,IAAA,oCAAqB,EAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;IAQD,KAAK,CAAC,uBAAuB,CAAC,IAAuB;QACnD,MAAM,QAAQ,GAA4B,MAAM,IAAI,CAAC,kBAAkB,CAAC;YACtE,GAAG,EAAE,6BAA6B;YAClC,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IAClB,CAAC;IAQD,KAAK,CAAC,qBAAqB,CAAC,IAAuB;QACjD,MAAM,MAAM,GAAuB;YACjC,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAE,UAAU,EAAE;SAC7E,CAAC;QAEF,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,MAAM,+CAA+C,CAAC;QAE1E,MAAM,QAAQ,GAA6B,MAAM,IAAA,qBAAc,EAC7D,IAAI,CAAC,WAAW;aACb,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC;aACvB,IAAI,CAAC,2CAA4B,CAAC;aAClC,IAAI,CAAC,wCAAyB,CAAC,CACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,IAAuB;QACj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AAE,MAAM;YACd,IAAI;SACL,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AAvFY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,4BAA4B,CAAC,CAAA;qCADP,mBAAW;GAJhC,wBAAwB,CAuFpC"}
@@ -44,6 +44,7 @@ export declare class RRHHFuncionarioData {
44
44
  unidadOrganizacionalId: number;
45
45
  cargoId: number;
46
46
  esResponsableUnidad: number;
47
+ esFuncionarioIdif: number;
47
48
  divisionNombre: string;
48
49
  oficinaNombre: string;
49
50
  entidadNombre: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/ms-rrhh-lite/types/types.ts"],"names":[],"mappings":";;;AAAA,MAAa,IAAI;CAMhB;AAND,oBAMC;AAED,MAAa,uBAAuB;CAOnC;AAPD,0DAOC;AAED,MAAa,eAAe;CAmB3B;AAnBD,0CAmBC;AAED,MAAa,mBAAmB;CA0C/B;AA1CD,kDA0CC;AAED,MAAa,oBAAoB;CAYhC;AAZD,oDAYC;AAED,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED,MAAa,kBAAkB;CAyC9B;AAzCD,gDAyCC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/ms-rrhh-lite/types/types.ts"],"names":[],"mappings":";;;AAAA,MAAa,IAAI;CAMhB;AAND,oBAMC;AAED,MAAa,uBAAuB;CAOnC;AAPD,0DAOC;AAED,MAAa,eAAe;CAmB3B;AAnBD,0CAmBC;AAED,MAAa,mBAAmB;CA2C/B;AA3CD,kDA2CC;AAED,MAAa,oBAAoB;CAYhC;AAZD,oDAYC;AAED,MAAa,eAAe;CAY3B;AAZD,0CAYC;AAED,MAAa,kBAAkB;CAyC9B;AAzCD,gDAyCC"}
@@ -1,6 +1,6 @@
1
1
  import { ValidateTokenOptions } from './guards/token-auth.guard';
2
2
  import { ResponseUserData_UserPayload } from './types/seguridad.pb';
3
- export declare const BearerAuthPermision: (permissions?: string[], options?: ValidateTokenOptions) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
3
+ export declare const BearerAuthPermision: (permissions?: string[], options?: ValidateTokenOptions) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
4
4
  export declare class UserPayload implements ResponseUserData_UserPayload {
5
5
  ci: string;
6
6
  aplicacionId: number;
@@ -1,5 +1,5 @@
1
1
  import { InformacionConvenioResponse } from '../ms-seguridad/types/seguridad.pb';
2
- export declare const BearerConvenioPermision: (permissions?: string[]) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
2
+ export declare const BearerConvenioPermision: (permissions?: string[]) => <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
3
3
  export type ConvenioPayload = InformacionConvenioResponse['data'];
4
4
  export declare const ConvenioSesion: (...dataOrPipes: unknown[]) => ParameterDecorator;
5
5
  export declare const ConvenioToken: (...dataOrPipes: unknown[]) => ParameterDecorator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiscalia_bo-nest-helpers",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "Helpers y servicios para NestJS",
5
5
  "author": "DNTIC - Ministerio Público",
6
6
  "contact": {
@@ -92,6 +92,7 @@
92
92
  "rxjs": "^7.8.1"
93
93
  },
94
94
  "dependencies": {
95
+ "@nestjs/microservices": "^10.0.0",
95
96
  "@turf/turf": "^6.5.0",
96
97
  "amqplib": "^0.10.3",
97
98
  "ua-parser-js": "^1.0.35",