@thantickets/common 1.0.21 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ export declare abstract class Listener<T extends Event> {
8
8
  abstract subject: T['subject'];
9
9
  abstract queueGroupName: string;
10
10
  abstract onMessage(data: T['data'], msg: Message): void;
11
- private client;
11
+ protected client: Stan;
12
12
  protected actWait: number;
13
13
  constructor(client: Stan);
14
14
  subscriptionOptions(): import("node-nats-streaming").SubscriptionOptions;
@@ -6,7 +6,7 @@ interface Event {
6
6
  }
7
7
  export declare abstract class Publisher<T extends Event> {
8
8
  abstract subject: T['subject'];
9
- private client;
9
+ protected client: Stan;
10
10
  constructor(client: Stan);
11
11
  publish(data: T['data']): Promise<void>;
12
12
  }
@@ -7,5 +7,6 @@ export interface TicketUpdatedEvent {
7
7
  title: string;
8
8
  price: number;
9
9
  userId: string;
10
+ orderId?: string;
10
11
  };
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thantickets/common",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",