UNPKG

eightsleep

Version:
38 lines (37 loc) 872 B
import { Features } from './validateDevice'; declare enum Genders { 'MALE' = "male", 'FEMALE' = "female" } declare enum Sides { 'LEFT' = "left", 'RIGHT' = "right", 'SOLO' = "solo" } declare type UserIdType = string; declare type DeviceIdType = string; export declare type UserType = { userId: UserIdType; email: string; firstName: string; lastName: string; gender: Genders; dob: Date; zip: number; devices: DeviceIdType[]; emailVerified: boolean; sharingMetricsTo: UserIdType[]; sharingMetricsFrom: UserIdType[]; timezone: string; notifications: { weeklyReportEmail: boolean; sessionProcessed: boolean; }; features: Features[]; currentDevice: { id: DeviceIdType; side: Sides; }; }; export default function validateUser(user: any): UserType; export {};