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,36 +1,37 @@
|
|||||||
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;
|
||||||
childrenIds?: string[];
|
childrenIds?: string[];
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user