From 0c35e801eb6c3795c25a2dd6060774537060f6a0 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Mon, 7 Sep 2026 20:56:32 -0300 Subject: [PATCH] feat(f4): add GEDO officialization DTO --- .../dto/officialize-inspection-report.dto.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 api-v3/src/inspection-reports/dto/officialize-inspection-report.dto.ts diff --git a/api-v3/src/inspection-reports/dto/officialize-inspection-report.dto.ts b/api-v3/src/inspection-reports/dto/officialize-inspection-report.dto.ts new file mode 100644 index 0000000..d11e599 --- /dev/null +++ b/api-v3/src/inspection-reports/dto/officialize-inspection-report.dto.ts @@ -0,0 +1,13 @@ +import { Transform } from 'class-transformer'; +import { IsISO8601, IsString, MaxLength, MinLength } from 'class-validator'; + +export class OfficializeInspectionReportDto { + @Transform(({ value }) => typeof value === 'string' ? value.trim() : value) + @IsString() + @MinLength(2) + @MaxLength(255) + gedoIfIdentifier!: string; + + @IsISO8601({ strict: true }) + gedoOfficializedAt!: string; +}