@rovi-tickets/common 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/build/events/order-cancelled-event.d.ts +10 -0
- package/build/events/order-cancelled-event.js +2 -0
- package/build/events/order-created-event.d.ts +15 -0
- package/build/events/order-created-event.js +2 -0
- package/build/events/subjects.d.ts +2 -0
- package/build/events/subjects.js +2 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/package.json +1 -1
@@ -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
|
+
}
|
package/build/events/subjects.js
CHANGED
@@ -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/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
@@ -29,3 +29,4 @@ __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-event"), exports);
|
32
|
+
__exportStar(require("./events/types/order-status"), exports);
|