From 5b22dde1c6c0389c748b64959208c6a064e4221b Mon Sep 17 00:00:00 2001 From: enlineawork Date: Mon, 7 Sep 2026 23:16:07 -0300 Subject: [PATCH] F4: remove survey planning DTOs --- .../dto/create-survey-campaign.dto.ts | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 api-v3/src/survey-planning/dto/create-survey-campaign.dto.ts diff --git a/api-v3/src/survey-planning/dto/create-survey-campaign.dto.ts b/api-v3/src/survey-planning/dto/create-survey-campaign.dto.ts deleted file mode 100644 index dcea6a9..0000000 --- a/api-v3/src/survey-planning/dto/create-survey-campaign.dto.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Transform } from 'class-transformer'; -import { - IsISO8601, - IsOptional, - IsString, - IsUUID, - Matches, - MaxLength, - MinLength, -} from 'class-validator'; - -export class CreateSurveyCampaignDto { - @Transform(({ value }) => - typeof value === 'string' ? value.trim().toUpperCase() : value, - ) - @IsString() - @MinLength(1) - @MaxLength(80) - @Matches(/^[A-Z0-9][A-Z0-9._/-]*$/) - code!: string; - - @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; -}