import { IsOptional, IsString, MinLength } from "class-validator";

export class ProviderDto {
  @IsString() @MinLength(1) name!: string;
}
export class UpdateProviderDto {
  @IsOptional() @IsString() @MinLength(1) name?: string;
}

export class PolicyTypeDto {
  @IsString() @MinLength(1) name!: string;
  @IsOptional() @IsString() shortDescription?: string;
}
export class UpdatePolicyTypeDto {
  @IsOptional() @IsString() @MinLength(1) name?: string;
  @IsOptional() @IsString() shortDescription?: string;
}

export class AdjusterDto {
  @IsOptional() @IsString() company?: string;
  @IsOptional() @IsString() city?: string;
  @IsOptional() @IsString() name?: string;
  @IsOptional() @IsString() phone?: string;
  @IsOptional() @IsString() beeper?: string;
}
export class UpdateAdjusterDto extends AdjusterDto {}
