@sportsbroker/firebase-structure 3.0.10 → 3.1.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,6 +1,6 @@
1
1
  import { Image } from "../../global";
2
2
 
3
- export interface ITableTeam {
3
+ export interface TableTeam {
4
4
  name: string;
5
5
  abbreviation: string;
6
6
  logo?: Image;
@@ -9,7 +9,7 @@ export interface ITableTeam {
9
9
  export interface Teams {
10
10
  [sportID: string]: {
11
11
  [seasonID: string]: {
12
- [teamID: string]: ITableTeam
12
+ [teamID: string]: TableTeam
13
13
  };
14
14
  };
15
15
  }
@@ -6,33 +6,41 @@ import { UserID } from "../../global";
6
6
  */
7
7
  type IDVerification = "SUBMITTED" | "VERIFIED" | "REJECTED";
8
8
 
9
+ export interface UserStatus {
10
+ emailVerified: boolean;
11
+ idVerification: IDVerification | null;
12
+ phoneVerified: boolean;
13
+ banned: boolean;
14
+ deactivated: boolean;
15
+ }
16
+
17
+ export interface UserProfile {
18
+ firstName?: string;
19
+ lastName?: string;
20
+ birthdate?: string;
21
+ }
22
+
23
+ export interface UserAddress {
24
+ addressLine1?: string;
25
+ addressLine2?: string;
26
+ county?: string;
27
+ city?: string;
28
+ postalCode?: string;
29
+ countryCode: string;
30
+ }
31
+
32
+ export interface User {
33
+ username: string;
34
+ email: string;
35
+ id: UserID;
36
+ status: UserStatus;
37
+ profile?: UserProfile;
38
+ address: UserAddress;
39
+ }
40
+
9
41
  /**
10
42
  * userID: UserID
11
43
  */
12
44
  export interface Overviews {
13
- [userID: string]: {
14
- username: string;
15
- email: string;
16
- id: UserID;
17
- status: {
18
- emailVerified: boolean;
19
- idVerification: IDVerification | null;
20
- phoneVerified: boolean;
21
- banned: boolean;
22
- deactivated: boolean;
23
- };
24
- profile?: {
25
- firstName?: string;
26
- lastName?: string;
27
- birthdate?: string;
28
- };
29
- address: {
30
- addressLine1?: string;
31
- addressLine2?: string;
32
- county?: string;
33
- city?: string;
34
- postalCode?: string;
35
- countryCode: string;
36
- };
37
- };
45
+ [userID: string]: User;
38
46
  }
@@ -41,7 +41,7 @@ export type MatchPeriod =
41
41
  /**
42
42
  * PENDING means that match hasn't started yet
43
43
  */
44
- export type MatchStatus = "PENDING" | "STARTED" | "FINISHED";
44
+ export type MatchStatus = "PENDING" | "STARTED" | "FINISHED" | "POSTPONED";
45
45
 
46
46
  export interface WithSeasons {
47
47
  seasons: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.0.10",
3
+ "version": "3.1.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {