feat(base): add DeleteRowsDto for batch row delete

This commit is contained in:
Philipinho
2026-04-18 16:29:02 +01:00
parent 1466d95078
commit 65c5bb11b8
@@ -6,6 +6,8 @@ import {
IsString,
IsUUID,
IsArray,
ArrayMinSize,
ArrayMaxSize,
ValidateNested,
} from 'class-validator';
import { Type } from 'class-transformer';
@@ -96,3 +98,18 @@ export class ReorderRowDto {
@IsString()
requestId?: string;
}
export class DeleteRowsDto {
@IsUUID()
baseId: string;
@IsArray()
@ArrayMinSize(1)
@ArrayMaxSize(500)
@IsUUID('all', { each: true })
rowIds: string[];
@IsOptional()
@IsString()
requestId?: string;
}