crm2
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user