@thantickets/common 1.0.25 → 1.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 });
@@ -0,0 +1,9 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface PaymentCreatedEvent {
3
+ subject: Subjects.PaymentCreated;
4
+ data: {
5
+ id: string;
6
+ ordeId: string;
7
+ stripeId: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,5 +2,7 @@ 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",
7
+ PaymentCreated = "payment:Created"
6
8
  }
@@ -7,4 +7,6 @@ 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";
11
+ Subjects["PaymentCreated"] = "payment:Created";
10
12
  })(Subjects || (exports.Subjects = Subjects = {}));
package/build/index.d.ts CHANGED
@@ -16,3 +16,5 @@ 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';
20
+ export * from './events/payment-created-event';
package/build/index.js CHANGED
@@ -32,3 +32,5 @@ __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);
36
+ __exportStar(require("./events/payment-created-event"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thantickets/common",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",