Add Smart Notes AI analysis and Mento Memory with user approval.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -168,3 +168,54 @@ export class UpdateNoteDto {
|
||||
@IsString()
|
||||
dealId?: string | null;
|
||||
}
|
||||
|
||||
class NoteAiNextActionDtoClass {
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
@MaxLength(200)
|
||||
title!: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(2000)
|
||||
description?: string;
|
||||
|
||||
@IsOptional()
|
||||
@ValidateIf((_, v) => v !== '' && v != null)
|
||||
@IsDateString()
|
||||
dueAt?: string | null;
|
||||
}
|
||||
|
||||
class ApplyMemoryEditDto {
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
index!: number;
|
||||
|
||||
@IsString()
|
||||
@MinLength(2)
|
||||
@MaxLength(500)
|
||||
content!: string;
|
||||
}
|
||||
|
||||
export class ApplyNoteAiSuggestionDto {
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
applyNextAction?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@Type(() => Number)
|
||||
@IsInt({ each: true })
|
||||
@Min(0, { each: true })
|
||||
memoryIndices?: number[];
|
||||
|
||||
@IsOptional()
|
||||
@Type(() => NoteAiNextActionDtoClass)
|
||||
nextAction?: NoteAiNextActionDtoClass;
|
||||
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
@Type(() => ApplyMemoryEditDto)
|
||||
memoryItems?: ApplyMemoryEditDto[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user