import type { Contact, TrialNewRequestPublications } from "@/lib/api/types.gen";

export const NONE_SELECT_VALUE = "__none__";

export interface SelectOption {
  value: string;
  label: string;
}

export type TrialContactRow = Contact & {
  contactDbId: string;
};

export type TrialPublicationRow = TrialNewRequestPublications;

export interface TrialRecord {
  id: string;
  trialDbId: string;
  trialName: string | null;
  trial_name: string | null;
  trialDescription: string | null;
  trial_description: string | null;
  trialPUI: string | null;
  trialpui: string | null;
  documentationURL: string | null;
  documentationurl: string | null;
  startDate: string | null;
  start_date: string | null;
  endDate: string | null;
  end_date: string | null;
  active: boolean | null;
  cropDbId: string | null;
  crop_id: string | null;
  cropName: string | null;
  crop_name: string | null;
  programDbId: string | null;
  program_id: string | null;
  programName: string | null;
  program_name: string | null;
  contacts?: TrialContactRow[];
  publications?: TrialPublicationRow[];
  trialContacts?: TrialContactRow[];
  trialPublications?: TrialPublicationRow[];
}
