@sportsbroker/firebase-structure 3.55.3 → 3.55.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.
@@ -3,6 +3,7 @@ import { MatchPeriod } from "./match";
3
3
  export interface MatchCommentary {
4
4
  commentaryId: string;
5
5
  period: MatchPeriod;
6
+ timestamp: string;
6
7
  content: string;
7
8
  type: CommentaryType;
8
9
  time: {
@@ -1,5 +1,6 @@
1
1
  export interface CommentaryItem {
2
2
  period: number;
3
+ timestamp: string;
3
4
  content: string;
4
5
  type: CommentaryType;
5
6
  time: {
@@ -10,20 +11,20 @@ export interface CommentaryItem {
10
11
  }
11
12
 
12
13
  export type CommentaryType =
13
- | 'assist'
14
- | 'comment'
15
- | 'full time'
16
- | 'goal'
17
- | 'half time'
18
- | 'comment_important'
19
- | 'kick off'
20
- | 'penalty'
21
- | 'red card'
22
- | 'second_yellow red card'
23
- | 'secondyellow card'
24
- | 'substitution'
25
- | 'var'
26
- | 'yellow card';
14
+ | "assist"
15
+ | "comment"
16
+ | "full time"
17
+ | "goal"
18
+ | "half time"
19
+ | "comment_important"
20
+ | "kick off"
21
+ | "penalty"
22
+ | "red card"
23
+ | "second_yellow red card"
24
+ | "secondyellow card"
25
+ | "substitution"
26
+ | "var"
27
+ | "yellow card";
27
28
 
28
29
  export interface Commentaries {
29
30
  [sportID: string]: {
@@ -41,6 +41,7 @@ export interface Order {
41
41
  totalPrice: number;
42
42
  preciseSharesValue: number;
43
43
  abortReason: OrderAbortReason | null;
44
+ sportId?: string; // TODO to be removed
44
45
  vatPercentage?: number;
45
46
  vatProcessed?: number;
46
47
  childId?: OrderID;
@@ -7,6 +7,7 @@ export interface UserOwnedShares {
7
7
  processedTotalMoney: number;
8
8
  averagePricePerShare: number;
9
9
  fee: number;
10
+ sportId?: string; // TODO to be removed
10
11
  splits?: OwnedSharesSplits;
11
12
  }
12
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.55.3",
3
+ "version": "3.55.5",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {