@rkticket/common 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ export declare enum OrderStatus {
2
+ Created = "created",
3
+ Cancelled = "cancelled",
4
+ AwaitingPayment = "awaiting:payment",
5
+ Complete = "complete"
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderStatus = void 0;
4
+ var OrderStatus;
5
+ (function (OrderStatus) {
6
+ // when the order has been created , but
7
+ // the ticket it is trying to order has not been reserved
8
+ OrderStatus["Created"] = "created";
9
+ // the ticket the order is trying to reserve has already been reserved
10
+ // or when the user has cancelled the oerder
11
+ // the order exspires before payment
12
+ OrderStatus["Cancelled"] = "cancelled";
13
+ // the order has successfully reserved the ticket
14
+ OrderStatus["AwaitingPayment"] = "awaiting:payment";
15
+ //the order has reserved the ticket and the user has
16
+ // provided payment successfully
17
+ OrderStatus["Complete"] = "complete";
18
+ })(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
package/build/index.d.ts CHANGED
@@ -13,3 +13,4 @@ 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-event';
16
+ export * from './events/types/order-status';
package/build/index.js CHANGED
@@ -30,3 +30,4 @@ __exportStar(require("./events/base-publisher"), exports);
30
30
  __exportStar(require("./events/subjects"), exports);
31
31
  __exportStar(require("./events/ticket-created-event"), exports);
32
32
  __exportStar(require("./events/ticket-updated-event"), exports);
33
+ __exportStar(require("./events/types/order-status"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkticket/common",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [