@sportsbroker/firebase-structure 3.22.0-RC2 → 3.24.0-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,13 @@
1
+ types:
2
+ - build
3
+ - chore
4
+ - ci
5
+ - docs
6
+ - feat
7
+ - fix
8
+ - improvement
9
+ - perf
10
+ - refactor
11
+ - revert
12
+ - style
13
+ - test
package/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [3.24.0-0](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.22.0...v3.24.0-0) (2021-04-09)
6
+
7
+
8
+ ### Features
9
+
10
+ * OPTA firebase structure adjustments [ch14108] ([e02fbe1](https://github.com/SportsBroker-HQ/firebase-structure/commit/e02fbe12e02f9f1f4a5639a0672de07a0845057b))
11
+
12
+ ## [3.22.0](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.21.0-2...v3.22.0) (2021-03-17)
13
+
14
+
15
+ ### Features
16
+
17
+ * added currentlyPlayedMatch to TeamOverview ([#134](https://github.com/SportsBroker-HQ/firebase-structure/issues/134)) ([f9dced3](https://github.com/SportsBroker-HQ/firebase-structure/commit/f9dced39b0d5f4019da97ecd308871fa1d917baa))
18
+ * added player shirt name to match events ([e8ba9a6](https://github.com/SportsBroker-HQ/firebase-structure/commit/e8ba9a685d90ee825438add9794b0c058044cb1b))
19
+ * new firebase structure for notifications ([4ffa0c0](https://github.com/SportsBroker-HQ/firebase-structure/commit/4ffa0c08d55289ab1b8711e65142f963e357bcbe))
20
+
21
+ ## [3.21.0-2](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.21.0-1...v3.21.0-2) (2021-03-08)
22
+
23
+
24
+ ### Features
25
+
26
+ * decouple split div from match ([322aa09](https://github.com/SportsBroker-HQ/firebase-structure/commit/322aa098af8c7809d0e246c35435ac89a9623466))
27
+
28
+ ## [3.21.0-1](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.21.0-0...v3.21.0-1) (2021-02-04)
29
+
30
+ ## [3.21.0-0](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.19.0...v3.21.0-0) (2021-02-04)
31
+
32
+
33
+ ### Features
34
+
35
+ * change split div to scope ([eb8111d](https://github.com/SportsBroker-HQ/firebase-structure/commit/eb8111d2e2ba62b1bd234da9ffe8179b54a506f5))
36
+ * new match centre [ch11877] ([#133](https://github.com/SportsBroker-HQ/firebase-structure/issues/133)) ([2d9d499](https://github.com/SportsBroker-HQ/firebase-structure/commit/2d9d499eb85c92e59cdb7e36f3fd3b15da8771eb))
37
+
5
38
  ## [3.19.0](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.18.0...v3.19.0) (2020-09-02)
6
39
 
7
40
 
@@ -20,6 +20,7 @@ interface RedCardEvent extends BaseEvent {
20
20
  isSecondYellow?: boolean;
21
21
  playerId: NumericID;
22
22
  playerName: string;
23
+ playerShirtName: string;
23
24
  playerUniform: string;
24
25
  }
25
26
 
@@ -27,6 +28,7 @@ interface YellowCardEvent extends BaseEvent {
27
28
  type: "YELLOW_CARD";
28
29
  playerId: NumericID;
29
30
  playerName: string;
31
+ playerShirtName: string;
30
32
  playerUniform: string;
31
33
  }
32
34
 
@@ -34,12 +36,14 @@ interface GoalEvent extends BaseEvent {
34
36
  type: "GOAL";
35
37
  assistingPlayerId?: NumericID;
36
38
  assistingPlayerName?: string;
39
+ assistingPlayerShirtName?: string;
37
40
  assistingPlayerUniform?: string;
38
41
  goalNumber: number;
39
42
  penalty?: boolean;
40
43
  ownGoal?: boolean;
41
44
  playerId: NumericID;
42
45
  playerName: string;
46
+ playerShirtName: string;
43
47
  playerUniform: string;
44
48
  }
45
49
 
@@ -47,9 +51,11 @@ interface SubstitutionEvent extends BaseEvent {
47
51
  type: "SUBSTITUTION";
48
52
  playerInId: NumericID;
49
53
  playerInName: string;
54
+ playerInShirtName: string;
50
55
  playerInUniform: string;
51
56
  playerOutId: NumericID;
52
57
  playerOutName: string;
58
+ playerOutShirtName: string;
53
59
  playerOutUniform: string;
54
60
  }
55
61
 
@@ -23,14 +23,16 @@ export interface OwnedShares {
23
23
  }
24
24
 
25
25
  export interface OwnedSharesSplits {
26
- [matchId: string]: OwnedSharesSplit;
26
+ [splitId: string]: OwnedSharesSplit;
27
27
  }
28
28
 
29
29
  export interface OwnedSharesSplit {
30
- matchId: MatchID;
31
- teamType: TeamSide;
30
+ splitId: string;
32
31
  date: ISODate;
33
- sharesAmountAfterSplit: number;
32
+ postSplitAmount: number;
33
+ preSplitAmount: number;
34
34
  sharesAmountDiff: number;
35
- profit: number;
35
+ preSplitPrice: number;
36
+ postSplitPrice: number;
37
+ balanceAdjustment: number
36
38
  }
@@ -1,24 +1,9 @@
1
- import {Image, MatchResult} from "../global";
2
- import { Team } from "./matchOverviews";
3
1
  import { TeamRanking } from "../details/tables/ranking";
4
2
 
5
- export interface MatchOutcome {
6
- vsTeam: Team;
7
- result?: MatchResult;
8
- matchId: number;
9
- startDate: string;
10
- }
11
-
12
3
  export interface TeamTable {
13
- name: string;
14
- abbreviation: string;
15
- logo: Image;
16
4
  ranking: TeamRanking;
17
- lastMatchesResults: {
18
- [matchId: string]: MatchOutcome;
19
- };
20
- previousMatch: MatchOutcome;
21
- nextMatch: MatchOutcome;
5
+ previousMatchId?: string;
6
+ nextMatchId?: string;
22
7
  }
23
8
 
24
9
  export interface TableSummary {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.22.0-RC2",
3
+ "version": "3.24.0-0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {