forked from Cutlery/immich
* Added selection icon to thumbnail * Added micro-interaction and video file indication * Added page to add page * Added image viewer * navigate assets * Added separate component for viewing the video file * Added FFmpeg modules * Added correct content-type header for serving image file * Added loading spinner
21 lines
364 B
TypeScript
21 lines
364 B
TypeScript
import { Transform } from 'class-transformer';
|
|
import { IsBoolean, IsBooleanString, IsNotEmpty, IsOptional } from 'class-validator';
|
|
|
|
export class ServeFileDto {
|
|
//assetId
|
|
@IsNotEmpty()
|
|
aid: string;
|
|
|
|
//deviceId
|
|
@IsNotEmpty()
|
|
did: string;
|
|
|
|
@IsOptional()
|
|
@IsBooleanString()
|
|
isThumb: string;
|
|
|
|
@IsOptional()
|
|
@IsBooleanString()
|
|
isWeb: string;
|
|
}
|