Require a stage-move reason and record it on the lead timeline.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-18 18:18:52 +03:30
co-authored by Cursor
parent cd51439353
commit c185348c2d
7 changed files with 278 additions and 23 deletions
+4
View File
@@ -63,6 +63,8 @@ export class UpdateLeadDto {
@IsOptional() @IsString() notes?: string | null;
@IsOptional() @IsNumber() estimatedValue?: number | null;
@IsOptional() @IsString() stageId?: string;
/** الزامی هنگام تغییر ستون؛ در جدول زمانی لید ثبت می‌شود */
@IsOptional() @IsString() @MaxLength(1000) reason?: string | null;
@IsOptional() @IsString() assigneeId?: string | null;
@IsOptional() @IsString() nextFollowUpAt?: string | null;
@IsOptional() @IsString() lastContactAt?: string | null;
@@ -71,6 +73,7 @@ export class UpdateLeadDto {
export class MoveLeadDto {
@IsString() stageId!: string;
@IsOptional() @IsNumber() position?: number;
@IsOptional() @IsString() @MaxLength(1000) reason?: string | null;
}
export class AssignLeadsDto {
@@ -81,6 +84,7 @@ export class AssignLeadsDto {
export class BulkLeadStageDto {
@IsArray() @IsString({ each: true }) leadIds!: string[];
@IsString() stageId!: string;
@IsOptional() @IsString() @MaxLength(1000) reason?: string | null;
}
export class AutoAssignLeadsDto {