π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
import { IsNumber, IsOptional, IsString, IsUrl, ValidateIf } from 'class-validator';
export class SaveMediaInformationDto {
@IsString()
id: string;
@IsString()
alt: string;
@IsUrl()
@ValidateIf((o) => !!o.thumbnail)
thumbnail: string;
@IsNumber()
@ValidateIf((o) => !!o.thumbnailTimestamp)
thumbnailTimestamp: number;
}