se agregaron cambios

This commit is contained in:
evenegas
2026-01-20 10:33:30 -06:00
parent ea14bfc96c
commit 29fdbee734
@@ -1,143 +1,142 @@
import {
IsNotEmpty,
IsNumber,
IsOptional,
IsString,
Length,
} from 'class-validator';
export class CreateCuestionarioPrograma2Dto {
IsNotEmpty,
IsNumber,
IsOptional,
IsString,
Length,
} from 'class-validator';
@IsNumber()
@IsNotEmpty()
idServicio:number
export class CreateCuestionarioPrograma2Dto {
@IsNumber()
@IsNotEmpty()
idServicio: number
// p1, p2, p4, p5, p6
@IsString()
@IsNotEmpty()
@Length(1, 100)
p1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p2: string;
@IsString()
@IsNotEmpty()
@Length(1, 100)
p4: string;
@IsString()
@IsNotEmpty()
@Length(1, 5)
p5: string;
@IsOptional()
@IsString()
@Length(1, 100)
p6?: string;
// Sección p3_A
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_A_1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_A_2: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_A_3: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_A_4: string;
// Sección p3_B
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_B_1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_B_2: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_B_3: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_B_4: string;
// Sección p3_C
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_2: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_3: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_4: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_5: string;
// Sección p3_D
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_2: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_3: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_4: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_5: string;
// Elimine esta tabla por que no existe en el cuestionario => Verificar si se ocupa en otro cuestionario ?
// Sección p3_E
// @IsString()
// @IsNotEmpty()
// @Length(1, 50)
// p3_E_1: string;
}
// p1, p2, p4, p5, p6
@IsString()
@IsNotEmpty()
@Length(1, 500)
p1: string;
@IsString()
@IsNotEmpty()
@Length(1, 200)
p2: string;
@IsString()
@IsNotEmpty()
@Length(1, 500)
p4: string;
@IsString()
@IsNotEmpty()
@Length(1, 200)
p5: string;
@IsOptional()
@IsString()
@Length(1, 500)
p6?: string;
// Sección p3_A
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_A_1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_A_2: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_A_3: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_A_4: string;
// Sección p3_B
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_B_1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_B_2: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_B_3: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_B_4: string;
// Sección p3_C
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_2: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_3: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_4: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_C_5: string;
// Sección p3_D
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_1: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_2: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_3: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_4: string;
@IsString()
@IsNotEmpty()
@Length(1, 50)
p3_D_5: string;
// Elimine esta tabla por que no existe en el cuestionario => Verificar si se ocupa en otro cuestionario ?
// Sección p3_E
// @IsString()
// @IsNotEmpty()
// @Length(1, 50)
// p3_E_1: string;
}