import { Type } from 'class-transformer'; import { IsArray, IsInt, IsOptional, IsString, Min } from 'class-validator'; export class UpdatesQueryDto { @IsString() doc_id?: string; @IsOptional() @Type(() => Number) @IsInt() @Min(0) after_seq?: number; } export class PushUpdatesDto { @IsString() doc_id?: string; @IsOptional() @IsString() device_id?: string; @IsArray() @IsString({ each: true }) updates?: string[]; }