easywork-common-lib 1.0.483 → 1.0.485
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.
|
@@ -6,14 +6,17 @@ interface Data {
|
|
|
6
6
|
token: string;
|
|
7
7
|
oauthId: string;
|
|
8
8
|
};
|
|
9
|
-
event:
|
|
9
|
+
event: {
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
eventGoogle: calendar_v3.Schema$Event;
|
|
10
13
|
}
|
|
11
14
|
export declare class EasyEventService {
|
|
12
15
|
private readonly amqpConnection;
|
|
13
16
|
private readonly exchangeName;
|
|
14
17
|
private readonly routingKey;
|
|
15
18
|
constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
|
|
16
|
-
interface: any;
|
|
17
19
|
createEvent(data: Data): Promise<void>;
|
|
20
|
+
updateEvent(data: Data): Promise<void>;
|
|
18
21
|
}
|
|
19
22
|
export {};
|
|
@@ -25,9 +25,12 @@ let EasyEventService = class EasyEventService {
|
|
|
25
25
|
this.exchangeName = exchangeName;
|
|
26
26
|
this.routingKey = routingKey;
|
|
27
27
|
}
|
|
28
|
-
interface;
|
|
29
28
|
async createEvent(data) {
|
|
30
|
-
logger.debug(`
|
|
29
|
+
logger.debug(`Creating a new event...`, this.exchangeName, this.routingKey);
|
|
30
|
+
await this.amqpConnection.publish(this.exchangeName, this.routingKey, data);
|
|
31
|
+
}
|
|
32
|
+
async updateEvent(data) {
|
|
33
|
+
logger.debug(`Updating event...`, this.exchangeName, this.routingKey);
|
|
31
34
|
await this.amqpConnection.publish(this.exchangeName, this.routingKey, data);
|
|
32
35
|
}
|
|
33
36
|
};
|
|
@@ -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,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