import type { ProposalStatus } from "@prisma/client";

export type ProposalDocumentView = {
  id: string;
  fileName: string;
  mimeType: string;
  sizeBytes: number;
  createdAt: string;
};

export type ProposalView = {
  id: string;
  title: string;
  issuingEntity: string;
  summary: string;
  currentStep: number;
  completionPercent: number;
  readyForSubmissionAt: string | null;
  status: ProposalStatus;
  sourceLicitationId: string | null;
  createdAt: string;
  updatedAt: string;
  documents: ProposalDocumentView[];
};

export type ProposalListPayload = {
  proposals: ProposalView[];
};
