This commit is contained in:
2026-03-15 10:13:53 -05:00
parent 552d4e2844
commit 6644ba2932
30 changed files with 1768 additions and 64 deletions

View File

@@ -0,0 +1,72 @@
export const projectStatuses = ["PLANNED", "ACTIVE", "ON_HOLD", "AT_RISK", "COMPLETE"] as const;
export const projectPriorities = ["LOW", "MEDIUM", "HIGH", "CRITICAL"] as const;
export type ProjectStatus = (typeof projectStatuses)[number];
export type ProjectPriority = (typeof projectPriorities)[number];
export interface ProjectCustomerOptionDto {
id: string;
name: string;
email: string;
}
export interface ProjectDocumentOptionDto {
id: string;
documentNumber: string;
customerName: string;
status: string;
}
export interface ProjectShipmentOptionDto {
id: string;
shipmentNumber: string;
salesOrderNumber: string;
customerName: string;
status: string;
}
export interface ProjectOwnerOptionDto {
id: string;
fullName: string;
email: string;
}
export interface ProjectSummaryDto {
id: string;
projectNumber: string;
name: string;
status: ProjectStatus;
priority: ProjectPriority;
customerId: string;
customerName: string;
ownerId: string | null;
ownerName: string | null;
dueDate: string | null;
updatedAt: string;
}
export interface ProjectDetailDto extends ProjectSummaryDto {
notes: string;
createdAt: string;
salesQuoteId: string | null;
salesQuoteNumber: string | null;
salesOrderId: string | null;
salesOrderNumber: string | null;
shipmentId: string | null;
shipmentNumber: string | null;
customerEmail: string;
customerPhone: string;
}
export interface ProjectInput {
name: string;
status: ProjectStatus;
priority: ProjectPriority;
customerId: string;
salesQuoteId: string | null;
salesOrderId: string | null;
shipmentId: string | null;
ownerId: string | null;
dueDate: string | null;
notes: string;
}