import { UUID } from "crypto";

/* Backend enum */
export type BackendProjectStatus =
  | "ACTIVE"
  | "COMPLETED"
  | "ON_HOLD"
  | "AT_RISK";

// export interface Project {
//   projectIdentifier: string;
//   productIdentifier: string;
//   description:string;
//   projectName: string;
//   projectDescription: string | null;

//   projectStatus: BackendProjectStatus;

//   projectManager: string ;
//   projectTeam: string[] | null;

//   productType: string | null;

//   contractedStartDate: string;
//   contractedEndDate: string ;
//   projectClient:string;
 

//   source: string | null;
// }


export interface Project {
   projectIdentifier: string;
  projectManager: string; // UUID
  projectName: string;
  projectStatus: string;
  projectNumber: string;
  parentProjectNo: string;
  contractNumber: string;
  projectClient: string;
  projectCity: string;
  projectCountry: string;
  currency: string;
  projectImage: string;
  contractUpload: string;
  source: string;
  producutType: string;
  expenses: string;
  formattedActualRevenueIncludingVAT_deal: string;
  isCompleted: boolean;
  groupNotExist: boolean;
  isDebtRevenue_deal: boolean;
  projectDescription: string;

  updatedBy: string; // UUID
  projectManagerDelegates: string; // UUID

  projectStartDate: string; // LocalDate → "YYYY-MM-DD"
  contractedStartDate: string; // LocalDate
  contractedEndDate: string; // LocalDate

  projectTeam: string[]; // UUID[]
  projectTeamUnderProjectManager: string[]; // UUID[]
  projectTeamUnderProjectManagerDelegates: string[]; // UUID[]

  groupAssigneesEditStr: string;
  groupAssigneesViewStr: string;

  participants: Record<string, any>;
  contractedProductIdentifierWiseDataObj: Record<string, any>;
  productIdentifier:string;
}
