@thantickets/common 1.0.26 → 1.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 });
@@ -3,5 +3,6 @@ export declare enum Subjects {
3
3
  TicketUpdated = "ticket:updated",
4
4
  OrderCreated = "order:created",
5
5
  OrderCancelled = "order:cancelled",
6
- ExpirationComplete = "expiration:complete"
6
+ ExpirationComplete = "expiration:complete",
7
+ PaymentCreated = "payment:Created"
7
8
  }
@@ -8,4 +8,5 @@ var Subjects;
8
8
  Subjects["OrderCreated"] = "order:created";
9
9
  Subjects["OrderCancelled"] = "order:cancelled";
10
10
  Subjects["ExpirationComplete"] = "expiration:complete";
11
+ Subjects["PaymentCreated"] = "payment:Created";
11
12
  })(Subjects || (exports.Subjects = Subjects = {}));
package/build/index.d.ts CHANGED
@@ -17,3 +17,4 @@ export * from './events/types/order-status';
17
17
  export * from './events/order-created-event';
18
18
  export * from './events/order-cancelled-event';
19
19
  export * from './events/expiration-complete-event';
20
+ export * from './events/payment-created-event';
package/build/index.js CHANGED
@@ -33,3 +33,4 @@ __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
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.26",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",