From 73eb6fc192553195d655b0424dfbbe3a269caf5f Mon Sep 17 00:00:00 2001 From: enlineawork Date: Mon, 7 Sep 2026 23:16:24 -0300 Subject: [PATCH] F4: remove survey planning DTOs --- .../dto/update-survey-campaign.dto.ts | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 api-v3/src/survey-planning/dto/update-survey-campaign.dto.ts diff --git a/api-v3/src/survey-planning/dto/update-survey-campaign.dto.ts b/api-v3/src/survey-planning/dto/update-survey-campaign.dto.ts deleted file mode 100644 index 5beed45..0000000 --- a/api-v3/src/survey-planning/dto/update-survey-campaign.dto.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { Transform } from 'class-transformer'; -import { - IsISO8601, - IsOptional, - IsString, - IsUUID, - Matches, - MaxLength, - MinLength, -} from 'class-validator'; - -export class UpdateSurveyCampaignDto { - @IsOptional() - @Transform(({ value }) => - typeof value === 'string' ? value.trim().toUpperCase() : value, - ) - @IsString() - @MinLength(1) - @MaxLength(80) - @Matches(/^[A-Z0-9][A-Z0-9._/-]*$/) - code?: string; - - @IsOptional() - @Transform(({ value }) => (typeof value === 'string' ? value.trim() : value)) - @IsString() - @MinLength(1) - @MaxLength(200) - name?: string; - - @IsOptional() - @Transform(({ value }) => - typeof value === 'string' && value.trim() ? value.trim() : null, - ) - @IsString() - @MaxLength(4000) - description?: string | null; - - @IsOptional() - @IsISO8601({ strict: true }) - plannedStartAt?: string | null; - - @IsOptional() - @IsISO8601({ strict: true }) - plannedEndAt?: string | null; - - @IsOptional() - @IsUUID('4') - scopeAssetId?: string | null; - - @IsOptional() - @IsUUID('4') - coordinatorUserId?: string | null; -}