export interface ProcessExceptionInterface { message: string file: string line: number code: number trace: any[] } export interface ProcessProgressInterface { total: number progress: number memory: string remaining: string percent: number } export interface ProcessInterface { id: string lock: string | null containerUuid: string | null pid: bigint | null name: string options: Record arguments: Record exception: ProcessExceptionInterface | null progress: ProcessProgressInterface | null outputId: string | null createdAt: string updatedAt: string | null startedAt: string | null pausedAt: string | null cancelledAt: string | null completedAt: string | null status: Status canPlay: boolean canPause: boolean canRepeat: boolean canStop: boolean canKill: boolean canApprove: boolean canUnlock: boolean } export enum Status { Wait = 'wait', Running = 'running', Cancelled = 'cancelled', Error = 'error', Success = 'success', }