@wrcb/cb-common 1.0.4 → 1.0.5

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,7 @@
1
+ export declare enum EventStatus {
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.EventStatus = void 0;
4
+ var EventStatus;
5
+ (function (EventStatus) {
6
+ EventStatus["Pending"] = "pending";
7
+ // Confirmed = 'confirmed', // aposta que foi confirmada mas não iniciou o evento (preciso disso?)
8
+ EventStatus["Started"] = "started";
9
+ EventStatus["Cancelled"] = "cancelled";
10
+ EventStatus["Finished"] = "finished";
11
+ EventStatus["PaymentProcessed"] = "payment:processed";
12
+ })(EventStatus || (exports.EventStatus = EventStatus = {}));
@@ -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 = {}));
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/eventStatus';
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/eventStatus"), 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.5",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",