import { IsObject, IsOptional, IsString } from "class-validator"; /** * PATCH .../draft body (eden.md §1.2 step 2) — every field optional and * independently omit-able; an omitted field keeps the draft's current * value (see documents.ts's updateDraft `patch.field !== undefined` * semantics). `editorContent` is accepted as generic JSONB — this leva * does not validate the Tiptap tree shape. */ export class UpdateDraftDto { @IsOptional() @IsObject() editorContent?: Record; @IsOptional() @IsString() cssContent?: string; @IsOptional() @IsObject() pageConfig?: Record; }