export type JobStatus = 'queued' | 'running' | 'completed' | 'failed';

export interface JobError {
  message?: string;
}

export interface JobResult {
  ok?: boolean;
  mensaje?: string;
  activos?: number | null;
  antiguos?: number | null;
  referencia?: number | null;
  cubiertosActivos?: number | null;
  downloadUrl?: string;
  fileName?: string;
  contentType?: string;
}

export interface JobResponse {
  id: string;
  type: string;
  status: JobStatus;
  createdAt?: string;
  startedAt?: string;
  finishedAt?: string;
  result?: JobResult | null;
  error?: JobError | null;
}
