PhiloMind / src /courses /dto /update-node.dto.ts
github-actions[bot]
Deploy Backend from GitHub Actions Commit: c89dec07198e3d623d9f3e33a3a42f954d0970c2
98629af
Raw
History Blame Contribute Delete
835 Bytes
import {
IsBoolean,
IsIn,
IsString,
IsOptional,
IsNumber,
} from "class-validator";
export class UpdateNodeDto {
@IsString()
@IsOptional()
title?: string;
@IsString()
@IsOptional()
summary?: string;
@IsString()
@IsOptional()
originalText?: string;
@IsString()
@IsOptional()
quickTake?: string;
@IsString()
@IsOptional()
difficulty?: string;
@IsString()
@IsOptional()
timeToRead?: string;
@IsString()
@IsOptional()
videoUrl?: string;
@IsNumber()
@IsOptional()
orderIndex?: number;
@IsString()
@IsOptional()
lessonType?: string;
@IsOptional()
lessonFlow?: any;
@IsOptional()
lessonMedia?: any;
@IsBoolean()
@IsOptional()
contentReady?: boolean;
@IsString()
@IsIn(["draft", "published", "archived"])
@IsOptional()
lessonStatus?: string;
}