Calendar settings page changes

This commit is contained in:
Milan Paunovic
2024-10-19 18:54:01 +02:00
parent 3f7fc92952
commit 043b80baa9
3 changed files with 522 additions and 436 deletions

View File

@ -1,39 +1,43 @@
import { ProfileType } from "@/contexts/AuthContext";
import {ProfileType} from "@/contexts/AuthContext";
export interface User {
uid: string;
email: string | null;
uid: string;
email: string | null;
}
export interface UserProfile {
userType: ProfileType;
firstName: string;
lastName: string;
childrenIds?: string[];
birthday?: Date;
parentId?: string;
contact?: string;
email: string;
password: string;
familyId?: string;
uid?: string;
googleToken?: string;
microsoftToken?: string;
eventColor?: string
userType: ProfileType;
firstName: string;
lastName: string;
childrenIds?: string[];
birthday?: Date;
parentId?: string;
contact?: string;
email: string;
password: string;
familyId?: string;
uid?: string;
googleToken?: string | null;
microsoftToken?: string | null;
appleToken?: string | null;
eventColor?: string | null;
googleMail?: string | null;
outlookMail?: string | null;
appleMail?: string | null;
}
export interface ParentProfile extends UserProfile {
userType: ProfileType.PARENT;
childrenIds: string[];
userType: ProfileType.PARENT;
childrenIds: string[];
}
export interface ChildProfile extends UserProfile {
userType: ProfileType.CHILD;
birthday: Date;
parentId: string;
userType: ProfileType.CHILD;
birthday: Date;
parentId: string;
}
export interface CaregiverProfile extends UserProfile {
userType: ProfileType.CAREGIVER;
contact: string;
userType: ProfileType.CAREGIVER;
contact: string;
}