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

/** Starts invitation-link flow: creates OrganizationInvitation + PENDING OrganizationLink. */
export class InviteOrganizationDto {
  @IsString()
  @MinLength(1)
  organizationName: string;

  @IsEmail()
  ownerEmail: string;

  @IsOptional()
  @IsString()
  phone?: string;
}
