26 lines
507 B
TypeScript
26 lines
507 B
TypeScript
import { Type } from "class-transformer";
|
|
import { IsDateString, IsInt, IsOptional, IsString } from "class-validator";
|
|
|
|
export class SearchExpensesDto {
|
|
@IsOptional()
|
|
@Type(()=> Number)
|
|
@IsInt()
|
|
timesheet_id?: number;
|
|
|
|
@IsOptional()
|
|
@Type(()=> Number)
|
|
@IsInt()
|
|
bank_code_id?: number;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
comment_contains?: string;
|
|
|
|
@IsOptional()
|
|
@IsDateString()
|
|
start_date: string;
|
|
|
|
@IsOptional()
|
|
@IsDateString()
|
|
end_date: string;
|
|
} |