import { Expose } from 'class-transformer';
import { IsEnum, IsOptional } from 'class-validator';
import { CategorizedHoursSortBy, SortOrder } from '../../../infrastructure/constants/timeTracking/categorizedHoursSort';
import { CategorizedHoursFiltersVC } from './categorizedHoursFiltersVC';

export class GetCategorizedHoursVC extends CategorizedHoursFiltersVC {
    @IsOptional()
    @IsEnum(CategorizedHoursSortBy)
    @Expose()
    sortBy?: CategorizedHoursSortBy;

    @IsOptional()
    @IsEnum(SortOrder)
    @Expose()
    sortOrder?: SortOrder;
}
