This commit is contained in:
2026-03-14 16:50:03 -05:00
parent a8d0533f4a
commit 70f55c98b5
12 changed files with 477 additions and 11 deletions

View File

@@ -1,6 +1,29 @@
export const crmRecordStatuses = ["LEAD", "ACTIVE", "ON_HOLD", "INACTIVE"] as const;
export const crmContactEntryTypes = ["NOTE", "CALL", "EMAIL", "MEETING"] as const;
export type CrmRecordStatus = (typeof crmRecordStatuses)[number];
export type CrmContactEntryType = (typeof crmContactEntryTypes)[number];
export interface CrmContactEntryDto {
id: string;
type: CrmContactEntryType;
summary: string;
body: string;
contactAt: string;
createdAt: string;
createdBy: {
id: string | null;
name: string;
email: string | null;
};
}
export interface CrmContactEntryInput {
type: CrmContactEntryType;
summary: string;
body: string;
contactAt: string;
}
export interface CrmRecordSummaryDto {
id: string;
@@ -20,6 +43,7 @@ export interface CrmRecordDetailDto extends CrmRecordSummaryDto {
postalCode: string;
notes: string;
createdAt: string;
contactHistory: CrmContactEntryDto[];
}
export interface CrmRecordInput {