@wrcb/cb-common 1.0.4 → 1.0.6

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,4 @@
1
+ export declare enum MarketStatus {
2
+ Active = "active",
3
+ Inactive = "inactive"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketStatus = void 0;
4
+ var MarketStatus;
5
+ (function (MarketStatus) {
6
+ MarketStatus["Active"] = "active";
7
+ MarketStatus["Inactive"] = "inactive";
8
+ })(MarketStatus || (exports.MarketStatus = MarketStatus = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum PredictionStatus {
2
+ Pending = "pending",
3
+ Started = "started",
4
+ Cancelled = "cancelled",
5
+ Finished = "finished",
6
+ PaymentProcessed = "payment:processed"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PredictionStatus = void 0;
4
+ var PredictionStatus;
5
+ (function (PredictionStatus) {
6
+ PredictionStatus["Pending"] = "pending";
7
+ // Confirmed = 'confirmed', // aposta que foi confirmada mas não iniciou o evento (preciso disso?)
8
+ PredictionStatus["Started"] = "started";
9
+ PredictionStatus["Cancelled"] = "cancelled";
10
+ PredictionStatus["Finished"] = "finished";
11
+ PredictionStatus["PaymentProcessed"] = "payment:processed";
12
+ })(PredictionStatus || (exports.PredictionStatus = PredictionStatus = {}));
package/build/index.d.ts CHANGED
@@ -13,3 +13,5 @@ export * from './events/basePublisher';
13
13
  export * from './events/subjects';
14
14
  export * from './events/commentCreatedEvent';
15
15
  export * from './events/commentUpdatedEvent';
16
+ export * from './events/types/predictionStatus';
17
+ export * from './events/types/marketStatus';
package/build/index.js CHANGED
@@ -29,3 +29,5 @@ __exportStar(require("./events/basePublisher"), exports);
29
29
  __exportStar(require("./events/subjects"), exports);
30
30
  __exportStar(require("./events/commentCreatedEvent"), exports);
31
31
  __exportStar(require("./events/commentUpdatedEvent"), exports);
32
+ __exportStar(require("./events/types/predictionStatus"), exports);
33
+ __exportStar(require("./events/types/marketStatus"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",