From 65c5bb11b8b0c606fb23c83ba539369d8c978bdd Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sat, 18 Apr 2026 16:29:02 +0100 Subject: [PATCH] feat(base): add DeleteRowsDto for batch row delete --- apps/server/src/core/base/dto/update-row.dto.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/server/src/core/base/dto/update-row.dto.ts b/apps/server/src/core/base/dto/update-row.dto.ts index 55368791..4dd020e1 100644 --- a/apps/server/src/core/base/dto/update-row.dto.ts +++ b/apps/server/src/core/base/dto/update-row.dto.ts @@ -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; +}