import { IsNotEmpty, IsString, MaxLength } from 'class-validator';

/**
 * Body for POST /trip-sources/placeholder (find-or-create by typed name).
 *
 * Separate from CreateTripSourceDto because the Query form auto-create
 * only needs a `name` — short_code / short_name / contact_name are
 * auto-derived in the service. A DTO ensures the global ValidationPipe
 * (whitelist + forbidNonWhitelisted) accepts the body cleanly.
 */
export class PlaceholderTripSourceDto {
  @IsString()
  @IsNotEmpty()
  @MaxLength(255)
  name: string;
}
