@wrcb/cb-common 1.0.67 → 1.0.68
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.
- package/build/events/predictionDeletedEvent.d.ts +8 -0
- package/build/events/predictionDeletedEvent.js +2 -0
- package/build/events/predictionUpdatedEvent.d.ts +23 -0
- package/build/events/predictionUpdatedEvent.js +2 -0
- package/build/events/subjects.d.ts +2 -0
- package/build/events/subjects.js +2 -0
- package/build/index.d.ts +3 -1
- package/build/index.js +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Subjects } from './subjects';
|
|
2
|
+
import { OddConfiguration } from './types/oddConfiguration';
|
|
3
|
+
import { PredictionOptions } from './types/predictions';
|
|
4
|
+
export interface PredictionUpdatedEvent {
|
|
5
|
+
subject: Subjects.PredictionUpdated;
|
|
6
|
+
data: {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
details: string;
|
|
10
|
+
rules: string;
|
|
11
|
+
slug: string;
|
|
12
|
+
image: string;
|
|
13
|
+
version: number;
|
|
14
|
+
deadLine: Date;
|
|
15
|
+
oddConfiguration: OddConfiguration;
|
|
16
|
+
predictionOptions: PredictionOptions[];
|
|
17
|
+
market: {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -7,6 +7,8 @@ export declare enum Subjects {
|
|
|
7
7
|
PredictionStarted = "prediction:started",
|
|
8
8
|
PredictionPaused = "prediction:paused",
|
|
9
9
|
PredictionFinished = "prediction:finished",
|
|
10
|
+
PredictionDeleted = "prediction:deleted",
|
|
11
|
+
PredictionUpdated = "prediction:updated",
|
|
10
12
|
PredictionResultProcessed = "prediction:result:processed",
|
|
11
13
|
BetMade = "bet:made",
|
|
12
14
|
BetClaimMade = "bet:claim:made",
|
package/build/events/subjects.js
CHANGED
|
@@ -11,6 +11,8 @@ var Subjects;
|
|
|
11
11
|
Subjects["PredictionStarted"] = "prediction:started";
|
|
12
12
|
Subjects["PredictionPaused"] = "prediction:paused";
|
|
13
13
|
Subjects["PredictionFinished"] = "prediction:finished";
|
|
14
|
+
Subjects["PredictionDeleted"] = "prediction:deleted";
|
|
15
|
+
Subjects["PredictionUpdated"] = "prediction:updated";
|
|
14
16
|
Subjects["PredictionResultProcessed"] = "prediction:result:processed";
|
|
15
17
|
Subjects["BetMade"] = "bet:made";
|
|
16
18
|
Subjects["BetClaimMade"] = "bet:claim:made";
|
package/build/index.d.ts
CHANGED
|
@@ -24,9 +24,11 @@ export * from './events/types/oddConfiguration';
|
|
|
24
24
|
export * from './events/types/predictions';
|
|
25
25
|
export * from './events/commentCreatedEvent';
|
|
26
26
|
export * from './events/commentUpdatedEvent';
|
|
27
|
-
export * from './events/predictionFinishedEvent';
|
|
28
27
|
export * from './events/predictionStartedEvent';
|
|
29
28
|
export * from './events/predictionPausedEvent';
|
|
29
|
+
export * from './events/predictionFinishedEvent';
|
|
30
|
+
export * from './events/predictionDeletedEvent';
|
|
31
|
+
export * from './events/predictionUpdatedEvent';
|
|
30
32
|
export * from './events/betMadeEvent';
|
|
31
33
|
export * from './events/betClaimMadeEvent';
|
|
32
34
|
export * from './events/depositMadeEvent';
|
package/build/index.js
CHANGED
|
@@ -40,9 +40,11 @@ __exportStar(require("./events/types/oddConfiguration"), exports);
|
|
|
40
40
|
__exportStar(require("./events/types/predictions"), exports);
|
|
41
41
|
__exportStar(require("./events/commentCreatedEvent"), exports);
|
|
42
42
|
__exportStar(require("./events/commentUpdatedEvent"), exports);
|
|
43
|
-
__exportStar(require("./events/predictionFinishedEvent"), exports);
|
|
44
43
|
__exportStar(require("./events/predictionStartedEvent"), exports);
|
|
45
44
|
__exportStar(require("./events/predictionPausedEvent"), exports);
|
|
45
|
+
__exportStar(require("./events/predictionFinishedEvent"), exports);
|
|
46
|
+
__exportStar(require("./events/predictionDeletedEvent"), exports);
|
|
47
|
+
__exportStar(require("./events/predictionUpdatedEvent"), exports);
|
|
46
48
|
__exportStar(require("./events/betMadeEvent"), exports);
|
|
47
49
|
__exportStar(require("./events/betClaimMadeEvent"), exports);
|
|
48
50
|
__exportStar(require("./events/depositMadeEvent"), exports);
|