@sportsbroker/firebase-structure 3.0.9 → 3.0.11

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.
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.0.9",
3
+ "version": "3.0.11",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {