import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsDateString, IsOptional, IsUUID } from 'class-validator';

export class TransactionPerformanceQueryDto {

    @ApiProperty({
        example: '2026-03-01',
        description: 'Start date (YYYY-MM-DD)'
    })
    @IsDateString()
    startDate: string;

    @ApiProperty({
        example: '2026-03-31',
        description: 'End date (YYYY-MM-DD)'
    })
    @IsDateString()
    endDate: string;

    @ApiPropertyOptional({
        example: 'branch-uuid'
    })
    @IsOptional()
    @IsUUID()
    branchId?: string;
}