@sportsbroker/firebase-structure 3.3.0 → 3.3.1

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,4 +1,4 @@
1
- import {ISODate, SportID, TeamID} from "../../global";
1
+ import {ISODate, SportID, TeamID, Percentage} from "../../global";
2
2
 
3
3
  export type OrderActionType = "BUY" | "SELL";
4
4
 
@@ -21,7 +21,7 @@ export interface Order {
21
21
  processedTotalMoney: number; // processedMoney + processedFee
22
22
  sportId: SportID;
23
23
  teamId: TeamID;
24
- transactionFee: number;
24
+ transactionFee: Percentage;
25
25
  type: OrderTransactionType;
26
26
  updatedAt: ISODate;
27
27
  status: OrderStatus;
@@ -8,7 +8,7 @@ export interface UserOwnedShares {
8
8
  profit: number;
9
9
  invested: number;
10
10
  averagePricePerShare: number;
11
- splits?: OwnedSharesSplit[];
11
+ splits?: OwnedSharesSplits;
12
12
  }
13
13
 
14
14
  /**
@@ -20,3 +20,7 @@ export interface OwnedShares {
20
20
  [teamID: string]: UserOwnedShares;
21
21
  };
22
22
  }
23
+
24
+ export interface OwnedSharesSplits {
25
+ [matchId: string]: OwnedSharesSplit
26
+ }
@@ -1,7 +1,6 @@
1
1
  import { MatchID, ISODate } from "../../global";
2
2
 
3
3
  export interface OwnedSharesSplit {
4
- id: string;
5
4
  matchId: MatchID;
6
5
  date: ISODate;
7
6
  sharesAmountAfterSplit: number;
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/SportsBroker-HQ/firebase-structure"
9
9
  },
10
- "author": "Lukasz Ostrowski <lukasz.ostrowski@sportsbroker.com>",
11
- "contributors": ["Mikolaj :)"],
10
+ "author": "SportsBroker",
12
11
  "license": "ISC",
13
12
  "bugs": {
14
13
  "url": "https://github.com/BonFireITLTD/firebase-structure/issues"