mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
feat(web+server): map date filters + small changes (#2565)
This commit is contained in:
@@ -15,6 +15,8 @@ export interface LivePhotoSearchOptions {
|
||||
|
||||
export interface MapMarkerSearchOptions {
|
||||
isFavorite?: boolean;
|
||||
fileCreatedBefore?: string;
|
||||
fileCreatedAfter?: string;
|
||||
}
|
||||
|
||||
export interface MapMarker {
|
||||
|
||||
@@ -1,10 +1,22 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { toBoolean } from 'apps/immich/src/utils/transform.util';
|
||||
import { Transform } from 'class-transformer';
|
||||
import { IsBoolean, IsOptional } from 'class-validator';
|
||||
import { IsBoolean, IsISO8601, IsOptional } from 'class-validator';
|
||||
|
||||
export class MapMarkerDto {
|
||||
@ApiProperty()
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
@Transform(toBoolean)
|
||||
isFavorite?: boolean;
|
||||
|
||||
@ApiProperty({ format: 'date-time' })
|
||||
@IsOptional()
|
||||
@IsISO8601({ strict: true, strictSeparator: true })
|
||||
fileCreatedAfter?: string;
|
||||
|
||||
@ApiProperty({ format: 'date-time' })
|
||||
@IsOptional()
|
||||
@IsISO8601({ strict: true, strictSeparator: true })
|
||||
fileCreatedBefore?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user