- Added googleToken attribute to the user profile interface

This commit is contained in:
Dejan
2024-10-05 15:53:54 +02:00
parent 7eb040a8a9
commit d4b5ebcb80

View File

@ -1,11 +1,11 @@
import {ProfileType} from "@/contexts/AuthContext"; import { ProfileType } from "@/contexts/AuthContext";
export interface User { export interface User {
uid: string; uid: string;
email: string | null; email: string | null;
} }
export interface UserProfile { export interface UserProfile {
userType: ProfileType; userType: ProfileType;
firstName: string; firstName: string;
lastName: string; lastName: string;
@ -13,24 +13,25 @@ export interface User {
birthday?: Date; birthday?: Date;
parentId?: string; parentId?: string;
contact?: string; contact?: string;
email: string email: string;
password: string password: string;
familyId?: string familyId?: string;
uid?: string uid?: string;
} googleToken?: string;
}
export interface ParentProfile extends UserProfile { export interface ParentProfile extends UserProfile {
userType: ProfileType.PARENT; userType: ProfileType.PARENT;
childrenIds: string[]; childrenIds: string[];
} }
export interface ChildProfile extends UserProfile { export interface ChildProfile extends UserProfile {
userType: ProfileType.CHILD; userType: ProfileType.CHILD;
birthday: Date; birthday: Date;
parentId: string; parentId: string;
} }
export interface CaregiverProfile extends UserProfile { export interface CaregiverProfile extends UserProfile {
userType: ProfileType.CAREGIVER; userType: ProfileType.CAREGIVER;
contact: string; contact: string;
} }