import { IsIn } from 'class-validator' import type { TimeRange } from '../../shared/types/user.types' const TIME_RANGES: TimeRange[] = ['1d', '7d', '30d', '90d', '1y'] export class UpdateMarketPreferencesDto { @IsIn(TIME_RANGES) range!: TimeRange }