2023-05-25 18:47:52 +02:00
|
|
|
import { ApiProperty } from '@nestjs/swagger';
|
2023-05-29 16:05:14 +02:00
|
|
|
import { Transform, Type } from 'class-transformer';
|
2023-09-01 12:40:00 -04:00
|
|
|
import { IsBoolean, IsDate } from 'class-validator';
|
2023-09-04 15:45:59 -04:00
|
|
|
import { Optional, toBoolean } from '../../domain.util';
|
2023-05-21 08:26:06 +02:00
|
|
|
|
|
|
|
|
export class MapMarkerDto {
|
2023-05-25 18:47:52 +02:00
|
|
|
@ApiProperty()
|
2023-09-01 12:40:00 -04:00
|
|
|
@Optional()
|
2023-05-21 08:26:06 +02:00
|
|
|
@IsBoolean()
|
|
|
|
|
@Transform(toBoolean)
|
|
|
|
|
isFavorite?: boolean;
|
2023-05-25 18:47:52 +02:00
|
|
|
|
2023-09-01 12:40:00 -04:00
|
|
|
@Optional()
|
2023-05-29 16:05:14 +02:00
|
|
|
@IsDate()
|
|
|
|
|
@Type(() => Date)
|
|
|
|
|
fileCreatedAfter?: Date;
|
2023-05-25 18:47:52 +02:00
|
|
|
|
2023-09-01 12:40:00 -04:00
|
|
|
@Optional()
|
2023-05-29 16:05:14 +02:00
|
|
|
@IsDate()
|
|
|
|
|
@Type(() => Date)
|
|
|
|
|
fileCreatedBefore?: Date;
|
2023-05-21 08:26:06 +02:00
|
|
|
}
|