@cfticketing/common 1.0.31 → 1.0.35

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.
@@ -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 ackWait: 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
  }
@@ -6,7 +6,7 @@ exports.Publisher = void 0;
6
6
  class Publisher {
7
7
  // Constructor: must provide a NATS client when creating a subclass
8
8
  constructor(client) {
9
- this.client = client; // store client in private property
9
+ this.client = client; // store client in protected property
10
10
  }
11
11
  // Method to publish an event to NATS
12
12
  publish(data) {
@@ -1 +1 @@
1
- {"version":3,"file":"base-publisher.js","sourceRoot":"","sources":["../../src/events/base-publisher.ts"],"names":[],"mappings":";;;AAQA,4CAA4C;AAC5C,mEAAmE;AACnE,MAAsB,SAAS;IAO7B,mEAAmE;IACnE,YAAY,MAAY;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,mCAAmC;IAC3D,CAAC;IAED,qCAAqC;IACrC,OAAO,CAAC,IAAe;QACrB,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE;gBAC9D,IAAI,GAAG,EAAE,CAAC;oBACR,OAAO,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAC,OAAO,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;oBAClE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;gBACrB,CAAC;gBACD,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;gBACzD,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,8BAyBC"}
1
+ {"version":3,"file":"base-publisher.js","sourceRoot":"","sources":["../../src/events/base-publisher.ts"],"names":[],"mappings":";;;AAQA,4CAA4C;AAC5C,mEAAmE;AACnE,MAAsB,SAAS;IAO7B,mEAAmE;IACnE,YAAY,MAAY;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,qCAAqC;IAC7D,CAAC;IAED,qCAAqC;IACrC,OAAO,CAAC,IAAe;QACrB,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE;gBAC9D,IAAI,GAAG,EAAE,CAAC;oBACR,OAAO,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAC,OAAO,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;oBAClE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;gBACrB,CAAC;gBACD,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;gBACzD,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,8BAyBC"}
@@ -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": "@cfticketing/common",
3
- "version": "1.0.31",
3
+ "version": "1.0.35",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",