import { IImage } from "../common/image.js"; import { IExercise } from "./exercise.js"; import { IPlan } from "./plan.js"; interface IUser { id: number; plan: IPlan; purchases: { purchaseId: number; exercise: IExercise; }[]; planTerm?: 'month' | 'year'; username?: string; email?: string; phone?: string | null; provider?: string; confirmed?: boolean; blocked?: boolean; name?: string; gender?: string; birthDay?: string | null; weight?: number | null; height?: string | null; mainGoals?: string; distanceUnit?: 'kilometers' | 'miles'; language?: string; photoUrl?: string | null; photo?: ({ id: number; } & IImage['attributes']) | null; isPremium?: boolean; isAffiliate?: boolean; isTrial?: boolean; subscriptionExpiresAt?: string | null; revenueCartId?: string; pushToken?: string; createdAt?: string; updatedAt?: string; } export { IUser };