export type Job = {
    id: number;
    name: string;
    description: string;
    is_active: boolean;

    job_infos: JobInfo[];

    created_at: Date;
}

export type JobInfo = {
    id: number;

    name: string;
    description: string;
    placeholder: string;

    value: string | boolean;
    is_required: boolean;
    job_info_type: JobInfoType;

    job_id: number;
}

export type JobInfoType = {
    id: number;
    name: string;
    created_at: Date;
}

export type JobRunArtifact = {
    jobId: number;
    artifacts: JobArtifact[];
    success: boolean;
}

export type JobArtifact = {
    name: string;
    content: string;
}
