export type Modes = 'getActive' | 'getAll' | 'getHistory' | 'create' | 'edit' | 'editConfig' | 'startRun' | 'stopRun' | 'status' | 'exit' | 'delete'; export interface FeaturesResponse { status: boolean; features: Feature[]; lastActiveFeatureIndex?: number | null; lastActiveScenarioIndex?: number | null; allTags: string[]; loaded: boolean; } export interface Feature { name: string; content: string; scenarios: Scenario[]; } export interface Scenario { type: string; name: string; content: string; tags: string[]; } export type InputSchedule = { time: string; // "HH:mm" days: string[]; repeat?: "daily" | "weekly"; timezoneOffset: string; // e.g. "-02:30" or "+05:30" } export type RunnningExecution = { name: string; executionStatus: { totalScenarios: number; scenariosPassed: number; scenariosFailed: number; verboseStatus: string; startedAt: Date; }, running: boolean; instanceId: string; reportLink: string; } export type ExecutionHistory = { instanceId: string; name: string; executionId: string; reportLink: string; startedAt: Date; endedAt: Date; projectId: string; finalStatus: { totalScenarios: number; scenariosPassed: number; scenariosFailed: number; verboseStatus: string; } }