mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
- Added googleToken attribute to the user profile interface
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user