@rovi-tickets/common 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ import { Subjects } from './subjects';
2
+ export interface OrderCancelledEvent {
3
+ subject: Subjects.OrderCancelled;
4
+ data: {
5
+ id: string;
6
+ ticket: {
7
+ id: string;
8
+ };
9
+ };
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { Subjects } from './subjects';
2
+ import { OrderStatus } from './types/order-status';
3
+ export interface OrderCreatedEvent {
4
+ subject: Subjects.OrderCreated;
5
+ data: {
6
+ id: string;
7
+ status: OrderStatus;
8
+ userId: string;
9
+ expiresAt: string;
10
+ ticket: {
11
+ id: string;
12
+ price: number;
13
+ };
14
+ };
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,7 @@
1
1
  export declare enum Subjects {
2
2
  TicketCreated = "ticket:created",
3
3
  TicketUpdated = "ticket:updated",
4
+ OrderCreated = "order:created",
5
+ OrderCancelled = "order:cancelled",
4
6
  OrderUpdated = "order:updated"
5
7
  }
@@ -5,5 +5,7 @@ var Subjects;
5
5
  (function (Subjects) {
6
6
  Subjects["TicketCreated"] = "ticket:created";
7
7
  Subjects["TicketUpdated"] = "ticket:updated";
8
+ Subjects["OrderCreated"] = "order:created";
9
+ Subjects["OrderCancelled"] = "order:cancelled";
8
10
  Subjects["OrderUpdated"] = "order:updated";
9
11
  })(Subjects || (exports.Subjects = Subjects = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rovi-tickets/common",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",