@ajayjbtickets/common 1.0.45 → 1.0.47

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.
package/dist/index.d.cts CHANGED
@@ -204,7 +204,7 @@ declare abstract class Listener<T extends Event> {
204
204
  abstract queueGroupName: string;
205
205
  abstract onMessage(data: T["data"], msg: Message): void;
206
206
  protected ackWait: number;
207
- private client;
207
+ protected client: Stan;
208
208
  constructor(client: Stan);
209
209
  subscriptionOptions(): node_nats_streaming.SubscriptionOptions;
210
210
  listen(): void;
@@ -213,7 +213,7 @@ declare abstract class Listener<T extends Event> {
213
213
 
214
214
  declare abstract class Publisher<T extends Event> {
215
215
  abstract subject: T["subject"];
216
- private client;
216
+ protected client: Stan;
217
217
  constructor(client: Stan);
218
218
  publish(data: T["data"]): Promise<string>;
219
219
  }
@@ -225,6 +225,7 @@ interface Ticket {
225
225
  price: number;
226
226
  createdBy: string;
227
227
  version: number;
228
+ orderId?: string;
228
229
  }
229
230
  interface TicketCreatedEvent {
230
231
  subject: Subjects.TicketCreated;
package/dist/index.d.ts CHANGED
@@ -204,7 +204,7 @@ declare abstract class Listener<T extends Event> {
204
204
  abstract queueGroupName: string;
205
205
  abstract onMessage(data: T["data"], msg: Message): void;
206
206
  protected ackWait: number;
207
- private client;
207
+ protected client: Stan;
208
208
  constructor(client: Stan);
209
209
  subscriptionOptions(): node_nats_streaming.SubscriptionOptions;
210
210
  listen(): void;
@@ -213,7 +213,7 @@ declare abstract class Listener<T extends Event> {
213
213
 
214
214
  declare abstract class Publisher<T extends Event> {
215
215
  abstract subject: T["subject"];
216
- private client;
216
+ protected client: Stan;
217
217
  constructor(client: Stan);
218
218
  publish(data: T["data"]): Promise<string>;
219
219
  }
@@ -225,6 +225,7 @@ interface Ticket {
225
225
  price: number;
226
226
  createdBy: string;
227
227
  version: number;
228
+ orderId?: string;
228
229
  }
229
230
  interface TicketCreatedEvent {
230
231
  subject: Subjects.TicketCreated;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ajayjbtickets/common",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",