feat(notes): let organizations define their own note fields
The note form was fixed. Owners can add fields and each note keeps those values. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1797,7 +1797,7 @@ export interface ReorderActivityTypesRequest {
|
||||
typeIds: string[];
|
||||
}
|
||||
|
||||
export type CustomFieldEntity = "person" | "company" | "deal";
|
||||
export type CustomFieldEntity = "person" | "company" | "deal" | "note";
|
||||
export type CustomFieldType = "text" | "number" | "date" | "boolean" | "select";
|
||||
|
||||
export interface CustomFieldDefinitionDto {
|
||||
@@ -1992,6 +1992,7 @@ export interface NoteDto {
|
||||
checklist: NoteChecklistItemDto[];
|
||||
locationText: string | null;
|
||||
analyzeEnabled: boolean;
|
||||
customFields: Record<string, unknown>;
|
||||
person: PersonSummaryDto | null;
|
||||
company: CompanySummaryDto | null;
|
||||
deal: DealSummaryDto | null;
|
||||
@@ -2041,6 +2042,7 @@ export interface CreateNoteRequest {
|
||||
companyId?: string | null;
|
||||
dealId?: string | null;
|
||||
activityId?: string | null;
|
||||
customFields?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface UpdateNoteRequest {
|
||||
@@ -2059,6 +2061,7 @@ export interface UpdateNoteRequest {
|
||||
companyId?: string | null;
|
||||
dealId?: string | null;
|
||||
activityId?: string | null;
|
||||
customFields?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export type NoteAiSuggestionStatus =
|
||||
|
||||
Reference in New Issue
Block a user