@aristid/leav-types 1.2.0-9b00d2ab → 1.2.0-d98c03e0

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.
@@ -7,8 +7,8 @@ import * as Config from '_types/config';
7
7
  import { IQueryInfos } from '_types/queryInfos';
8
8
  import { IDbPayloadInternal } from '_types/events';
9
9
  export interface IEventsManagerDomain {
10
- sendDatabaseEvent<DBPayloadAction extends EventAction>(payload: IDbPayloadInternal<DBPayloadAction>, ctx: IQueryInfos): Promise<void>;
11
- sendPubSubEvent(payload: IPubSubPayload, ctx: IQueryInfos): Promise<void>;
10
+ sendDatabaseEvent<DBPayloadAction extends EventAction>(payload: IDbPayloadInternal<DBPayloadAction>, ctx: IQueryInfos): Promise<boolean>;
11
+ sendPubSubEvent(payload: IPubSubPayload, ctx: IQueryInfos): Promise<boolean>;
12
12
  subscribe(triggersName: string[]): AsyncIterator<any>;
13
13
  initPubSubEventsConsumer(): Promise<void>;
14
14
  initCustomConsumer(queueName: string, routinKey: string, onMessage: (msg: amqp.ConsumeMessage, channel: amqp.ConfirmChannel) => Promise<void>): Promise<void>;
@@ -2,14 +2,14 @@ import * as amqp from 'amqplib';
2
2
  import { IAmqp, onMessageFunc } from './types/amqp';
3
3
  export interface IAmqpService {
4
4
  publisher: {
5
- connection: amqp.ChannelModel;
5
+ connection: amqp.Connection;
6
6
  channel: amqp.ConfirmChannel;
7
7
  };
8
8
  consumer: {
9
- connection: amqp.ChannelModel;
9
+ connection: amqp.Connection;
10
10
  channel: amqp.ConfirmChannel;
11
11
  };
12
- publish(exchange: string, routingKey: string, msg: string, priority?: number): Promise<void>;
12
+ publish(exchange: string, routingKey: string, msg: string, priority?: number): Promise<boolean>;
13
13
  consume(queue: string, routingKey: string, onMessage: onMessageFunc, consumerTag?: string): Promise<amqp.Replies.Consume>;
14
14
  close(): Promise<void>;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.2.0-9b00d2ab",
3
+ "version": "1.2.0-d98c03e0",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",
@@ -15,10 +15,10 @@
15
15
  "repository": "https://github.com/leav-solutions/leav-engine",
16
16
  "dependencies": {
17
17
  "@leav/utils": "1.2.0",
18
- "@types/amqplib": "0.10.7",
18
+ "@types/amqplib": "^0",
19
19
  "@types/express": "5.0.0",
20
20
  "@types/jest": "29.5.14",
21
- "amqplib": "0.10.9",
21
+ "amqplib": "0.10.5",
22
22
  "arangojs": "8.1.0",
23
23
  "awilix": "12.0.4",
24
24
  "i18next": "24.2.0",