mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
23 lines
492 B
TypeScript
23 lines
492 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { Transform, Type } from 'class-transformer';
|
|
import { IsBoolean, IsDate, IsOptional } from 'class-validator';
|
|
import { toBoolean } from '../../domain.util';
|
|
|
|
export class MapMarkerDto {
|
|
@ApiProperty()
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
@Transform(toBoolean)
|
|
isFavorite?: boolean;
|
|
|
|
@IsOptional()
|
|
@IsDate()
|
|
@Type(() => Date)
|
|
fileCreatedAfter?: Date;
|
|
|
|
@IsOptional()
|
|
@IsDate()
|
|
@Type(() => Date)
|
|
fileCreatedBefore?: Date;
|
|
}
|