50b120e184
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
31 lines
584 B
TypeScript
31 lines
584 B
TypeScript
/** Shared domain types for the CRM. Extend as features are added. */
|
|
|
|
export type ID = string;
|
|
|
|
export type Lead = {
|
|
id: ID;
|
|
name: string;
|
|
email: string;
|
|
phone?: string;
|
|
company?: string;
|
|
status: "new" | "contacted" | "qualified" | "lost" | "won";
|
|
createdAt: string;
|
|
};
|
|
|
|
export type Contact = {
|
|
id: ID;
|
|
name: string;
|
|
email: string;
|
|
phone?: string;
|
|
company?: string;
|
|
};
|
|
|
|
export type Deal = {
|
|
id: ID;
|
|
title: string;
|
|
amount: number;
|
|
stage: "prospect" | "negotiation" | "proposal" | "closed-won" | "closed-lost";
|
|
contactId?: ID;
|
|
createdAt: string;
|
|
};
|