import { IsObject, IsString } from 'class-validator'; /** * DTO for saving/updating the layout of one dashboard tab (quick-260923-ad9). * The layouts object contains responsive breakpoint layouts * (lg, md, sm, xs, xxs) as managed by react-grid-layout. * `dashboardId` selects the tab — the service verifies ownership before * writing (`assertOwnedDashboard`). */ export class SaveLayoutDto { @IsString() dashboardId!: string; @IsObject() layouts!: Record; }