import { ArrayMinSize, IsArray, IsEnum, IsOptional } from "class-validator";
import { CompanyNationality, CompanyType } from "../entities/company.entity";
import { ProfileType } from "../entities/company-profile.entity";

export class StartOnboardingDto {
  @IsEnum(CompanyType)
  companyType!: CompanyType;

  @IsArray()
  @ArrayMinSize(1)
  @IsEnum(ProfileType, { each: true })
  roles!: ProfileType[];

  @IsOptional()
  @IsEnum(CompanyNationality)
  nationality?: CompanyNationality;
}
