export type TPipelineStatus =
  | 'pending'
  | 'running'
  | 'success'
  | 'failed'
  | 'canceled'
  | 'skipped'
  | 'waiting'
  | 'manual';

export interface IPipeline {
  id: string;
  projectId: string;
  projectName: string;
  connectionId: string;
  status: TPipelineStatus;
  ref: string;
  sha: string;
  webUrl: string;
  duration: number;
  createdAt: string;
  source: string;
}

export interface IPipelineJob {
  id: string;
  pipelineId: string;
  name: string;
  stage: string;
  status: TPipelineStatus;
  duration: number;
}
