import { BaseEntityClass } from '../../base/base.entity'; import { DeviceEntity } from '../..'; import { PROCESS_STATUS } from '../../general'; export interface DeviceRunnerJobCommand { id: string; command: string; path: string; user: string; timeout: number; forceReboot: boolean; } export interface DeviceRunnerJobResult { id: string; returncode: number; result: string; error: string; timestamp: number; } export declare class DeviceRunnerJobEntity extends BaseEntityClass { id: string; purpose: string; commands: DeviceRunnerJobCommand[]; results: DeviceRunnerJobResult[]; status: PROCESS_STATUS; /** * This task should not be run before this time */ notBefore: Date; /** * Device this task belongs to */ device: DeviceEntity; constructor(partial: Partial); }