forked from Cutlery/immich
20 lines
481 B
TypeScript
20 lines
481 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsOptional } from 'class-validator';
|
|
|
|
export enum GetAssetThumbnailFormatEnum {
|
|
JPEG = 'JPEG',
|
|
WEBP = 'WEBP',
|
|
}
|
|
|
|
export class GetAssetThumbnailDto {
|
|
@IsOptional()
|
|
@ApiProperty({
|
|
type: String,
|
|
enum: GetAssetThumbnailFormatEnum,
|
|
default: GetAssetThumbnailFormatEnum.WEBP,
|
|
required: false,
|
|
enumName: 'ThumbnailFormat',
|
|
})
|
|
format: GetAssetThumbnailFormatEnum = GetAssetThumbnailFormatEnum.WEBP;
|
|
}
|