@thantickets/common 1.0.19 → 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ export interface OrderCancelledEvent {
3
3
  subject: Subjects.OrderCancelled;
4
4
  data: {
5
5
  id: string;
6
+ version: number;
6
7
  ticket: {
7
8
  id: string;
8
9
  };
@@ -1,9 +1,10 @@
1
1
  import { Subjects } from "./subjects";
2
- import { OrderStatus } from "./order-status";
2
+ import { OrderStatus } from "./types/order-status";
3
3
  export interface OrderCreatedEvent {
4
4
  subject: Subjects.OrderCreated;
5
5
  data: {
6
6
  id: string;
7
+ version: number;
7
8
  status: OrderStatus;
8
9
  userId: string;
9
10
  expiresAt: string;
@@ -3,6 +3,7 @@ export interface TicketCreatedEvent {
3
3
  subject: Subjects.TicketCreated;
4
4
  data: {
5
5
  id: string;
6
+ version: number;
6
7
  title: string;
7
8
  price: number;
8
9
  userId: string;
@@ -3,6 +3,7 @@ export interface TicketUpdatedEvent {
3
3
  subject: Subjects.TicketUpdated;
4
4
  data: {
5
5
  id: string;
6
+ version: number;
6
7
  title: string;
7
8
  price: number;
8
9
  userId: string;
package/build/index.d.ts CHANGED
@@ -13,6 +13,6 @@ export * from './events/base-publisher';
13
13
  export * from './events/subjects';
14
14
  export * from './events/ticket-created-event';
15
15
  export * from './events/ticket-updated-events';
16
+ export * from './events/types/order-status';
16
17
  export * from './events/order-created-event';
17
18
  export * from './events/order-cancelled-event';
18
- export * from './events/order-status';
package/build/index.js CHANGED
@@ -29,7 +29,6 @@ __exportStar(require("./events/base-publisher"), exports);
29
29
  __exportStar(require("./events/subjects"), exports);
30
30
  __exportStar(require("./events/ticket-created-event"), exports);
31
31
  __exportStar(require("./events/ticket-updated-events"), exports);
32
- //export * from './events/types/order-status';
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/order-status"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thantickets/common",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",