- 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 {
uid: string;
email: string | null;
}
}
export interface UserProfile {
export interface UserProfile {
userType: ProfileType;
firstName: string;
lastName: string;
@ -13,24 +13,25 @@ export interface User {
birthday?: Date;
parentId?: string;
contact?: string;
email: string
password: string
familyId?: string
uid?: string
}
email: string;
password: string;
familyId?: string;
uid?: string;
googleToken?: string;
}
export interface ParentProfile extends UserProfile {
export interface ParentProfile extends UserProfile {
userType: ProfileType.PARENT;
childrenIds: string[];
}
}
export interface ChildProfile extends UserProfile {
export interface ChildProfile extends UserProfile {
userType: ProfileType.CHILD;
birthday: Date;
parentId: string;
}
}
export interface CaregiverProfile extends UserProfile {
export interface CaregiverProfile extends UserProfile {
userType: ProfileType.CAREGIVER;
contact: string;
}
}