43 lines
743 B
TypeScript
43 lines
743 B
TypeScript
import { Transform } from 'class-transformer';
|
|
import { IsBoolean, IsDateString, IsInt, IsOptional, IsString, IsUUID, Max, Min } from 'class-validator';
|
|
|
|
export class UpdateLabCaseImportantDto {
|
|
@IsBoolean()
|
|
isImportant: boolean;
|
|
}
|
|
|
|
export class ListLabCasesDto {
|
|
@IsOptional()
|
|
@IsString()
|
|
q?: string;
|
|
|
|
@IsOptional()
|
|
@IsUUID()
|
|
clinicOrganizationId?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
treatmentType?: string;
|
|
|
|
@IsOptional()
|
|
@IsDateString()
|
|
sentFrom?: string;
|
|
|
|
@IsOptional()
|
|
@IsDateString()
|
|
sentTo?: string;
|
|
|
|
@IsOptional()
|
|
@Transform(({ value }) => Number(value))
|
|
@IsInt()
|
|
@Min(1)
|
|
page = 1;
|
|
|
|
@IsOptional()
|
|
@Transform(({ value }) => Number(value))
|
|
@IsInt()
|
|
@Min(1)
|
|
@Max(100)
|
|
limit = 20;
|
|
}
|