@sportsbroker/firebase-structure 2.1.0 → 2.3.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.
@@ -1,3 +1,6 @@
1
+ import { UserID } from "../../global";
2
+
3
+ //First 100 users
1
4
  export interface Ranking {
2
5
  [userId: string]: {
3
6
  change: number;
@@ -12,6 +12,9 @@ export interface Overviews {
12
12
  id: TeamID;
13
13
  logo?: Image;
14
14
  isCurrentlyPlaying: Boolean;
15
+ seasons: {
16
+ [seasonId: string]: boolean; // Firebase will treat it as an array. Available: "BUND2018" | "EPL2018"
17
+ };
15
18
  };
16
19
  };
17
20
  }
@@ -13,7 +13,6 @@ export interface Overviews {
13
13
  [userID: string]: {
14
14
  username: string;
15
15
  email: string;
16
- rank: number;
17
16
  id: UserID;
18
17
  status: {
19
18
  emailVerified: boolean;
@@ -27,13 +26,13 @@ export interface Overviews {
27
26
  lastName?: string;
28
27
  birthdate?: string;
29
28
  };
30
- address?: {
29
+ address: {
31
30
  addressLine1?: string;
32
31
  addressLine2?: string;
33
32
  county?: string;
34
33
  city?: string;
35
34
  postalCode?: string;
36
- country?: string;
35
+ countryCode: string;
37
36
  };
38
37
  };
39
38
  }
@@ -0,0 +1,11 @@
1
+ import { UserID } from "../../global";
2
+
3
+ //Restricted access only to own data
4
+ export interface Ranking {
5
+ [userId: UserID]: {
6
+ change: number;
7
+ equity: number;
8
+ position: number;
9
+ username: string;
10
+ };
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {