Require a stage-move reason and record it on the lead timeline.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user