2023-05-25 18:47:52 +02:00
|
|
|
import { ApiProperty } from '@nestjs/swagger';
|
2023-05-21 08:26:06 +02:00
|
|
|
import { toBoolean } from 'apps/immich/src/utils/transform.util';
|
|
|
|
|
import { Transform } from 'class-transformer';
|
2023-05-25 18:47:52 +02:00
|
|
|
import { IsBoolean, IsISO8601, IsOptional } from 'class-validator';
|
2023-05-21 08:26:06 +02:00
|
|
|
|
|
|
|
|
export class MapMarkerDto {
|
2023-05-25 18:47:52 +02:00
|
|
|
@ApiProperty()
|
2023-05-21 08:26:06 +02:00
|
|
|
@IsOptional()
|
|
|
|
|
@IsBoolean()
|
|
|
|
|
@Transform(toBoolean)
|
|
|
|
|
isFavorite?: boolean;
|
2023-05-25 18:47:52 +02:00
|
|
|
|
|
|
|
|
@ApiProperty({ format: 'date-time' })
|
|
|
|
|
@IsOptional()
|
|
|
|
|
@IsISO8601({ strict: true, strictSeparator: true })
|
|
|
|
|
fileCreatedAfter?: string;
|
|
|
|
|
|
|
|
|
|
@ApiProperty({ format: 'date-time' })
|
|
|
|
|
@IsOptional()
|
|
|
|
|
@IsISO8601({ strict: true, strictSeparator: true })
|
|
|
|
|
fileCreatedBefore?: string;
|
2023-05-21 08:26:06 +02:00
|
|
|
}
|