mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-26 14:57:42 +00:00
* refactor: tags * chore: open api * chore: unused import * feat: add/remove/get tag assets * chore: open api * chore: finish tag tests for add/remove assets
22 lines
526 B
TypeScript
22 lines
526 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { Transform, Type } from 'class-transformer';
|
|
import { IsBoolean, IsDate, IsOptional } from 'class-validator';
|
|
import { toBoolean } from '../../../../../apps/immich/src/utils/transform.util';
|
|
|
|
export class MapMarkerDto {
|
|
@ApiProperty()
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
@Transform(toBoolean)
|
|
isFavorite?: boolean;
|
|
|
|
@IsOptional()
|
|
@IsDate()
|
|
@Type(() => Date)
|
|
fileCreatedAfter?: Date;
|
|
|
|
@IsOptional()
|
|
@IsDate()
|
|
@Type(() => Date)
|
|
fileCreatedBefore?: Date;
|
|
}
|