eightsleep
Version:
eightsleep api client
30 lines (29 loc) • 931 B
TypeScript
import { Levels } from './EightSleepAppApi';
export declare type SideStatusType = {
currentActivity: 'off' | 'on';
currentLevel: number;
currentTargetLevel: Levels;
version: number;
} | {
currentActivity: 'schedule';
currentLevel: number;
currentTargetLevel: Levels;
smartTemperature: {
bedLocalTime: string;
bedTimeLevel: Levels;
currentPhase: string;
finalSleepLevel: Levels;
initialSleepLevel: Levels;
};
version: number;
};
export declare type CoupleDeviceStatusType = {
left: SideStatusType;
right: SideStatusType;
};
export declare type SoloDeviceStatusType = {
solo: SideStatusType;
};
export declare type DeviceStatusType = CoupleDeviceStatusType | SoloDeviceStatusType;
export default function validateDeviceStatus(deviceStatus: any): DeviceStatusType;
export declare function validateSideStatus(sideStatus: any): SideStatusType;