import type { Entity, IEntity, ObjectSchema } from '@becomes/purple-cheetah'; import { Schema, Types } from 'mongoose'; export declare enum JobStatus { SUCCESS = "SUCCESS", FAIL = "FAIL", RUNNING = "RUNNING", QUEUE = "QUEUE" } export interface JobPipe { id: string; createdAt: number; timeToExec: number; title: string; cmd: string; ignoreIfFail: boolean; out: string; err: string; status: JobStatus; } export interface IJob extends IEntity { finishedAt: number; inQueueFor: number; repo: { name: string; branch: string; }; running: boolean; status: JobStatus; project: string; pipe: JobPipe[]; } export declare class Job implements Entity { _id: Types.ObjectId; createdAt: number; updatedAt: number; finishedAt: number; inQueueFor: number; repo: { name: string; branch: string; }; running: boolean; status: JobStatus; project: string; pipe: JobPipe[]; constructor(_id: Types.ObjectId, createdAt: number, updatedAt: number, finishedAt: number, inQueueFor: number, repo: { name: string; branch: string; }, running: boolean, status: JobStatus, project: string, pipe: JobPipe[]); static get schema(): Schema; } export declare const JobPipeSchema: ObjectSchema; export declare const JobSchema: ObjectSchema;