module cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { RaceViewModel } from './RaceViewModel';
|
||||
import { RaceViewModel } from '@core/racing/application/presenters/IGetAllRacesPresenter';
|
||||
|
||||
export class AllRacesPageDTO {
|
||||
@ApiProperty({ type: [RaceViewModel] })
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString, IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class GetRaceDetailParamsDTODTO {
|
||||
export class GetRaceDetailParamsDTO {
|
||||
@ApiProperty()
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsBoolean, IsString, IsNumber } from 'class-validator';
|
||||
|
||||
export class ImportRaceResultsSummaryDTOViewModel {
|
||||
export class ImportRaceResultsSummaryDTO {
|
||||
@ApiProperty()
|
||||
@IsBoolean()
|
||||
success!: boolean;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { RaceProtestDto } from './RaceProtestDto';
|
||||
import { RaceProtestDTO } from './RaceProtestDTO';
|
||||
|
||||
export class RaceProtestsDTO {
|
||||
@ApiProperty({ type: [RaceProtestDto] })
|
||||
protests!: RaceProtestDto[];
|
||||
@ApiProperty({ type: [RaceProtestDTO] })
|
||||
protests!: RaceProtestDTO[];
|
||||
|
||||
@ApiProperty()
|
||||
driverMap!: Record<string, string>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsString } from 'class-validator';
|
||||
import { RaceResultDto } from './RaceResultDto';
|
||||
import { RaceResultDTO } from './RaceResultDTO';
|
||||
|
||||
export class RaceResultsDetailDTO {
|
||||
@ApiProperty()
|
||||
@@ -11,6 +11,6 @@ export class RaceResultsDetailDTO {
|
||||
@IsString()
|
||||
track!: string;
|
||||
|
||||
@ApiProperty({ type: [RaceResultDto] })
|
||||
results!: RaceResultDto[];
|
||||
@ApiProperty({ type: [RaceResultDTO] })
|
||||
results!: RaceResultDTO[];
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { RacesPageDataRaceDto } from './RacesPageDataRaceDto';
|
||||
import { RacesPageDataRaceDTO } from './RacesPageDataRaceDTO';
|
||||
|
||||
export class RacesPageDataDTO {
|
||||
@ApiProperty({ type: [RacesPageDataRaceDto] })
|
||||
races!: RacesPageDataRaceDto[];
|
||||
@ApiProperty({ type: [RacesPageDataRaceDTO] })
|
||||
races!: RacesPageDataRaceDTO[];
|
||||
}
|
||||
Reference in New Issue
Block a user