@sportsbroker/firebase-structure 7.0.0 → 7.1.0
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,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(npx standard-version *)",
|
|
5
|
+
"Bash(npm view *)",
|
|
6
|
+
"Bash(git checkout *)",
|
|
7
|
+
"Bash(npx tsc *)",
|
|
8
|
+
"Bash(echo \"exit: $?\")",
|
|
9
|
+
"Bash(git --no-pager diff)",
|
|
10
|
+
"Bash(git add *)",
|
|
11
|
+
"Bash(git commit *)",
|
|
12
|
+
"Bash(git --no-pager log --oneline -2)",
|
|
13
|
+
"Bash(echo \"tsc exit: $?\")",
|
|
14
|
+
"Bash(git --no-pager show --stat --oneline HEAD)",
|
|
15
|
+
"Bash(npm pack *)",
|
|
16
|
+
"Bash(git --no-pager log --oneline --decorate -3)",
|
|
17
|
+
"Bash(node -p \"require\\('./package.json'\\).version\")",
|
|
18
|
+
"Bash(node -p \"require\\('./package-lock.json'\\).version\")",
|
|
19
|
+
"Bash(gh auth *)",
|
|
20
|
+
"Bash(git --no-pager log --oneline -1 origin/master)",
|
|
21
|
+
"Bash(git fetch *)",
|
|
22
|
+
"Bash(git ls-remote *)",
|
|
23
|
+
"Bash(git --no-pager log --oneline --decorate -1)",
|
|
24
|
+
"Bash(git --no-pager log --oneline --decorate --graph -6)",
|
|
25
|
+
"Bash(git --no-pager reflog -12)",
|
|
26
|
+
"Bash(git --no-pager log -1 --format='%H%n parent: %p%n author: %an %ad%n committer: %cn %cd%n subject: %s' 5c39828)",
|
|
27
|
+
"Bash(git --no-pager log -1 --format='%H%n parent: %p%n committer: %cn %cd%n subject: %s' 0d7cbf5)",
|
|
28
|
+
"Bash(git --no-pager log -1 --format='%H%n parent: %p%n committer: %cn %cd%n subject: %s' master)",
|
|
29
|
+
"Bash(git tag *)",
|
|
30
|
+
"Bash(git check-ignore *)",
|
|
31
|
+
"Bash(git --no-pager log --oneline -- .claude/)"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -36,15 +36,28 @@ export enum BetStatusEnum {
|
|
|
36
36
|
|
|
37
37
|
export type BetPredictionType = Prediction;
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* A prediction is in exactly one of two shapes: pending or settled.
|
|
41
|
+
* Pending = no final result yet, or a doc projected before the settlement fields existed.
|
|
42
|
+
* Consumers MUST treat the pending shape as pending, never as "wrong".
|
|
43
|
+
*/
|
|
44
|
+
export type Prediction = PendingPrediction | SettledPrediction;
|
|
45
|
+
|
|
46
|
+
export type BasePrediction = {
|
|
40
47
|
eventQuestionId: UUID;
|
|
41
48
|
predictionValue: QuestionResultValue;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type PendingPrediction = BasePrediction & {
|
|
52
|
+
correct?: never;
|
|
53
|
+
pointsAwarded?: never;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type SettledPrediction = BasePrediction & {
|
|
57
|
+
/** Whether this answer was correct. Set only once the bet is settled (won/lost). */
|
|
58
|
+
correct: boolean;
|
|
59
|
+
/** Points this answer contributed to the bet score. */
|
|
60
|
+
pointsAwarded: number;
|
|
48
61
|
};
|
|
49
62
|
|
|
50
63
|
export enum MatchSideResultEnum {
|