easywork-common-lib 1.0.474 → 1.0.477
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.
|
@@ -5,5 +5,5 @@ export declare class EasyEventService {
|
|
|
5
5
|
private readonly exchangeName;
|
|
6
6
|
private readonly routingKey;
|
|
7
7
|
constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
|
|
8
|
-
createEvent(event: calendar_v3.Schema$Event): Promise<void>;
|
|
8
|
+
createEvent(event: calendar_v3.Schema$Event, userInfo: object): Promise<void>;
|
|
9
9
|
}
|
|
@@ -25,9 +25,9 @@ let EasyEventService = class EasyEventService {
|
|
|
25
25
|
this.exchangeName = exchangeName;
|
|
26
26
|
this.routingKey = routingKey;
|
|
27
27
|
}
|
|
28
|
-
async createEvent(event) {
|
|
28
|
+
async createEvent(event, userInfo) {
|
|
29
29
|
logger.debug(`Creando un nuevo evento...`);
|
|
30
|
-
await this.amqpConnection.publish(this.exchangeName, this.routingKey, event);
|
|
30
|
+
await this.amqpConnection.publish(this.exchangeName, this.routingKey, event, userInfo);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
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,CAAC;IAEJ,KAAK,CAAC,WAAW,
|
|
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,CAAC;IAEJ,KAAK,CAAC,WAAW,CACf,KAA+B,EAC/B,QAAgB;QAEhB,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAC3C,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAC/B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,UAAU,EACf,KAAK,EACL,QAAQ,CACT,CAAC;IACJ,CAAC;CACF,CAAA;AAnBY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;IACvB,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAFK,gCAAc;GAFtC,gBAAgB,CAmB5B"}
|