21 lines
582 B
TypeScript
21 lines
582 B
TypeScript
|
|
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||
|
|
import { IsISO8601, IsOptional } from 'class-validator';
|
||
|
|
|
||
|
|
export class TodaySummaryQueryDto {
|
||
|
|
@ApiPropertyOptional({
|
||
|
|
description: 'Start of the local day range (ISO 8601). Defaults to UTC midnight today.',
|
||
|
|
example: '2026-07-10T00:00:00.000Z',
|
||
|
|
})
|
||
|
|
@IsOptional()
|
||
|
|
@IsISO8601()
|
||
|
|
from?: string;
|
||
|
|
|
||
|
|
@ApiPropertyOptional({
|
||
|
|
description: 'End of the local day range (ISO 8601, exclusive). Defaults to next UTC midnight.',
|
||
|
|
example: '2026-07-11T00:00:00.000Z',
|
||
|
|
})
|
||
|
|
@IsOptional()
|
||
|
|
@IsISO8601()
|
||
|
|
to?: string;
|
||
|
|
}
|