@sportsbroker/firebase-structure 3.69.28 → 3.69.30

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.
@@ -1 +1,2 @@
1
1
  export * from "./match-predictor";
2
+ export * from "./match-predictor-question";
@@ -0,0 +1,27 @@
1
+ export type MPQuestion = {
2
+ key: MPQuestionKey;
3
+ points: number;
4
+ resultValueType: MPQuestionResultType;
5
+ displayOrder: number;
6
+ };
7
+
8
+ export type MPQuestionKey =
9
+ | "match-score"
10
+ | "total-shots-on-target"
11
+ | "total-cards"
12
+ | "match-result"
13
+ | "red-card-is-given"
14
+ | "penalty-awarded"
15
+ | "both-team-score"
16
+ | "goal-in-both-halves";
17
+
18
+ export type MPQuestionResultType =
19
+ | "both-sides-positive-integer"
20
+ | "positive-integer"
21
+ | "match-result"
22
+ | "yes-no";
23
+
24
+ export type MatchResult = "home" | "away" | "draw";
25
+ export type YesNoResultEnum = "yes" | "no";
26
+ export type BothSidesPositiveInteger = { home: 0; away: 0 };
27
+ export type PositiveInteger = number;
@@ -1,5 +1,6 @@
1
1
  import { Doc, ISODate, UUID } from "../common";
2
2
  import { MatchTime } from "../matches";
3
+ import { MPQuestion } from "./match-predictor-question";
3
4
 
4
5
  export type MPEventDoc = MPEvent & Doc;
5
6
 
@@ -9,6 +10,7 @@ export interface MPEvent {
9
10
  eventName: string;
10
11
  startDate: Date;
11
12
  matchData: MPMatchesData;
13
+ questions: MPQuestion[];
12
14
  pools: { [key: string]: MPEventPool };
13
15
  createdAt: ISODate;
14
16
  updatedAt: ISODate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.69.28",
3
+ "version": "3.69.30",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {