Files
schedule-parser-next/src/schedule/dto/v2/v2-group-schedule.dto.ts
n08i40k 5fe5d56ca9 2.0.0
Я пока перечислю - умру.
Надо научиться писать changelog постепенно.
2024-10-19 02:12:37 +04:00

23 lines
636 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { PickType } from "@nestjs/swagger";
import { IsArray, IsObject, ValidateNested } from "class-validator";
import { Type } from "class-transformer";
import { V2ScheduleDto } from "./v2-schedule.dto";
import { V2GroupDto } from "./v2-group.dto";
export class V2GroupScheduleDto extends PickType(V2ScheduleDto, ["updatedAt"]) {
/**
* Расписание группы
*/
@IsObject()
group: V2GroupDto;
/**
* Обновлённые дни с последнего изменения расписания
* @example [5, 6]
*/
@IsArray()
@ValidateNested({ each: true })
@Type(() => Number)
updated: Array<number>;
}