69 lines
1.1 KiB
TypeScript
69 lines
1.1 KiB
TypeScript
import { Expose, Type } from 'class-transformer';
|
|
import { TipoCuestionarioOutputDto } from 'src/tipo_cuestionario/dto/outputs.dto';
|
|
|
|
export class CuestionarioConCupoDto {
|
|
@Expose()
|
|
id_cuestionario: number;
|
|
|
|
@Expose()
|
|
nombre_form: string;
|
|
|
|
@Expose()
|
|
descripcion?: string;
|
|
|
|
@Expose()
|
|
banner: string;
|
|
|
|
@Expose()
|
|
fecha_inicio: Date;
|
|
|
|
@Expose()
|
|
fecha_fin: Date;
|
|
|
|
@Expose()
|
|
cupo_maximo: number | null;
|
|
|
|
@Expose()
|
|
cupos_usados: number;
|
|
|
|
@Expose()
|
|
cupos_disponibles: number | null;
|
|
|
|
@Expose()
|
|
id_evento: number;
|
|
|
|
@Expose()
|
|
@Type(() => TipoCuestionarioOutputDto)
|
|
tipoCuestionario: TipoCuestionarioOutputDto;
|
|
}
|
|
|
|
export class EventoConCuestionariosDto {
|
|
@Expose()
|
|
id_evento: number;
|
|
|
|
@Expose()
|
|
tipo_evento: string;
|
|
|
|
@Expose()
|
|
nombre_evento: string;
|
|
|
|
@Expose()
|
|
descripcion_evento: string;
|
|
|
|
@Expose()
|
|
fecha_inicio: Date;
|
|
|
|
@Expose()
|
|
fecha_fin: Date;
|
|
|
|
@Expose()
|
|
asistencias: any;
|
|
|
|
@Expose()
|
|
banner: string | null;
|
|
|
|
@Expose()
|
|
@Type(() => CuestionarioConCupoDto) // <- Esto es lo que faltaba
|
|
cuestionarios: CuestionarioConCupoDto[];
|
|
}
|