mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
22 lines
484 B
TypeScript
22 lines
484 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { Transform, Type } from 'class-transformer';
|
|
import { IsBoolean, IsDate } from 'class-validator';
|
|
import { Optional, toBoolean } from '../../domain.util';
|
|
|
|
export class MapMarkerDto {
|
|
@ApiProperty()
|
|
@Optional()
|
|
@IsBoolean()
|
|
@Transform(toBoolean)
|
|
isFavorite?: boolean;
|
|
|
|
@Optional()
|
|
@IsDate()
|
|
@Type(() => Date)
|
|
fileCreatedAfter?: Date;
|
|
|
|
@Optional()
|
|
@IsDate()
|
|
@Type(() => Date)
|
|
fileCreatedBefore?: Date;
|
|
}
|