easywork-common-lib 1.0.475 → 1.0.479

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,9 +1,19 @@
1
1
  import { AmqpConnection } from "@golevelup/nestjs-rabbitmq";
2
2
  import type { calendar_v3 } from "googleapis";
3
+ interface Data {
4
+ userInfo: {
5
+ userId: string;
6
+ token: string;
7
+ oauthId: string;
8
+ };
9
+ event: calendar_v3.Schema$Event;
10
+ }
3
11
  export declare class EasyEventService {
4
12
  private readonly amqpConnection;
5
13
  private readonly exchangeName;
6
14
  private readonly routingKey;
7
15
  constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
8
- createEvent(event: calendar_v3.Schema$Event): Promise<void>;
16
+ interface: any;
17
+ createEvent(data: Data): Promise<void>;
9
18
  }
19
+ export {};
@@ -25,9 +25,10 @@ let EasyEventService = class EasyEventService {
25
25
  this.exchangeName = exchangeName;
26
26
  this.routingKey = routingKey;
27
27
  }
28
- async createEvent(event) {
28
+ interface;
29
+ async createEvent(data) {
29
30
  logger.debug(`Creando un nuevo evento...`);
30
- await this.amqpConnection.publish(this.exchangeName, this.routingKey, event);
31
+ await this.amqpConnection.publish(this.exchangeName, this.routingKey, data);
31
32
  }
32
33
  };
33
34
  exports.EasyEventService = EasyEventService;
@@ -1 +1 @@
1
- {"version":3,"file":"event.service.js","sourceRoot":"","sources":["../../../src/modules/queue/event.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,2CAA4D;AAG5D,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,kBAAkB,CAAC,CAAC;AAGvC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAER;IACyB;IACI;IAHhD,YACmB,cAA8B,EACL,YAAoB,EAChB,UAAkB;QAF/C,mBAAc,GAAd,cAAc,CAAgB;QACL,iBAAY,GAAZ,YAAY,CAAQ;QAChB,eAAU,GAAV,UAAU,CAAQ;IAC/D,CA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qCAFK,gCAAc;GAFtC,gBAAgB,CAa5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.475",
3
+ "version": "1.0.479",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {