From b8fde4c32dd9d690230b2e4d668004866331f855 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Mon, 7 Sep 2026 20:56:27 -0300 Subject: [PATCH] feat(f4): add editable INF narrative DTO --- .../dto/update-inspection-report.dto.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 api-v3/src/inspection-reports/dto/update-inspection-report.dto.ts diff --git a/api-v3/src/inspection-reports/dto/update-inspection-report.dto.ts b/api-v3/src/inspection-reports/dto/update-inspection-report.dto.ts new file mode 100644 index 0000000..dc73883 --- /dev/null +++ b/api-v3/src/inspection-reports/dto/update-inspection-report.dto.ts @@ -0,0 +1,16 @@ +import { Transform } from 'class-transformer'; +import { IsOptional, IsString, MaxLength } from 'class-validator'; + +export class UpdateInspectionReportDto { + @IsOptional() + @Transform(({ value }) => typeof value === 'string' ? value.trim() || null : value) + @IsString() + @MaxLength(20000) + executiveSummary?: string | null; + + @IsOptional() + @Transform(({ value }) => typeof value === 'string' ? value.trim() || null : value) + @IsString() + @MaxLength(40000) + description?: string | null; +}