bff6914a73
* feat: lint rule for organize imports * chore: organize imports
23 lines
507 B
TypeScript
23 lines
507 B
TypeScript
import { toBoolean } from '@app/immich/utils/transform.util';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
import { Transform, Type } from 'class-transformer';
|
|
import { IsBoolean, IsDate, IsOptional } from 'class-validator';
|
|
|
|
export class MapMarkerDto {
|
|
@ApiProperty()
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
@Transform(toBoolean)
|
|
isFavorite?: boolean;
|
|
|
|
@IsOptional()
|
|
@IsDate()
|
|
@Type(() => Date)
|
|
fileCreatedAfter?: Date;
|
|
|
|
@IsOptional()
|
|
@IsDate()
|
|
@Type(() => Date)
|
|
fileCreatedBefore?: Date;
|
|
}
|