import { IsBoolean, IsNumber, IsOptional, IsString, IsUrl, Min } from 'class-validator';

export class UpdateWebBidDto {
  @IsUrl()
  @IsOptional()
  origin_url: string;

  @IsUrl()
  @IsOptional()
  url: string;

  @IsNumber()
  @Min(60)
  @IsOptional()
  arrival_offset_seconds: number;
  
  @IsNumber()
  @Min(600)
  @IsOptional()
  early_tracking_seconds: number;

  @IsString()
  @IsOptional()
  username: string;

  @IsString()
  @IsOptional()
  password: string;

  @IsBoolean()
  @IsOptional()
  active: boolean;
}
