Files
lolympus-tournament-support/apps/api/src/modules/tournament-result/dto/manual-result-collection.dto.ts
T

20 lines
395 B
TypeScript

import { Type } from 'class-transformer';
import { IsDate, IsString, MaxLength, MinLength } from 'class-validator';
export class CollectTournamentResultWindowDto {
@IsDate()
@Type(() => Date)
startTime!: Date;
@IsDate()
@Type(() => Date)
endTime!: Date;
}
export class CollectTournamentResultRiotMatchDto {
@IsString()
@MinLength(1)
@MaxLength(96)
riotMatchId!: string;
}