import { Transform } from 'class-transformer' import { CountryCode } from '../utils/countries/country-code.type' import { parseISO } from '../utils/date' export class Video { id: string playlist_id: string title: string thumb_url: string description?: string featured: boolean featured_main: boolean country_code: CountryCode external_id: string @Transform(value => parseISO(value), { toClassOnly: true }) uploaded_at: Date constructor(args?: Partial