import {
  IsEnum,
  IsNotEmpty,
  IsNumber,
  IsOptional,
  IsString,
} from 'class-validator';
import { QuoteStatusEnum } from '../schemas/quote.schema';

export class UpdateQuoteDto {
  @IsString()
  @IsNotEmpty()
  @IsEnum(QuoteStatusEnum)
  readonly status: QuoteStatusEnum;

  @IsString()
  readonly comment;

  @IsString()
  @IsOptional()
  readonly innerprice?: string;

  @IsString()
  @IsOptional()
  readonly projectName?: string;

  @IsOptional()
  readonly project?: any;

  @IsOptional()
  readonly order?: any[];

  @IsOptional()
  readonly colors?: { label: string; name: string }[];

  @IsOptional()
  @IsNumber()
  readonly totalPrice?: number;

  @IsOptional()
  readonly profile?: any;
}
