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

    job_infos: JobInfo[];
    job_runs: JobRunArtifact[];

    created_at: string;
}

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: string;
}

export type JobRunArtifact = {
    id: number;
    job_id: number;
    artifacts: JobArtifact[];
    success: boolean;

    created_at: string;
}

export type JobArtifact = {
    id: number;
    name: string;
    content: string;

    created_at: string;
}
