@thantickets/common 1.0.24 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,6 @@ export declare abstract class Listener<T extends Event> {
11
11
  protected client: Stan;
12
12
  protected actWait: number;
13
13
  constructor(client: Stan);
14
- protected getClient(): Stan;
15
14
  subscriptionOptions(): import("node-nats-streaming").SubscriptionOptions;
16
15
  listen(): void;
17
16
  parseMessage(msg: Message): any;
@@ -6,9 +6,6 @@ class Listener {
6
6
  this.actWait = 5 * 1000;
7
7
  this.client = client;
8
8
  }
9
- getClient() {
10
- return this.client;
11
- }
12
9
  subscriptionOptions() {
13
10
  return this.client
14
11
  .subscriptionOptions()
@@ -0,0 +1,7 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface ExpirationCompleteEvent {
3
+ subject: Subjects.ExpirationComplete;
4
+ data: {
5
+ orderId: string;
6
+ };
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,5 +2,6 @@ export declare enum Subjects {
2
2
  TicketCreated = "ticket:created",
3
3
  TicketUpdated = "ticket:updated",
4
4
  OrderCreated = "order:created",
5
- OrderCancelled = "order:cancelled"
5
+ OrderCancelled = "order:cancelled",
6
+ ExpirationComplete = "expiration:complete"
6
7
  }
@@ -7,4 +7,5 @@ var Subjects;
7
7
  Subjects["TicketUpdated"] = "ticket:updated";
8
8
  Subjects["OrderCreated"] = "order:created";
9
9
  Subjects["OrderCancelled"] = "order:cancelled";
10
+ Subjects["ExpirationComplete"] = "expiration:complete";
10
11
  })(Subjects || (exports.Subjects = Subjects = {}));
package/build/index.d.ts CHANGED
@@ -16,3 +16,4 @@ export * from './events/ticket-updated-events';
16
16
  export * from './events/types/order-status';
17
17
  export * from './events/order-created-event';
18
18
  export * from './events/order-cancelled-event';
19
+ export * from './events/expiration-complete-event';
package/build/index.js CHANGED
@@ -32,3 +32,4 @@ __exportStar(require("./events/ticket-updated-events"), exports);
32
32
  __exportStar(require("./events/types/order-status"), exports);
33
33
  __exportStar(require("./events/order-created-event"), exports);
34
34
  __exportStar(require("./events/order-cancelled-event"), exports);
35
+ __exportStar(require("./events/expiration-complete-event"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thantickets/common",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",