Files
image-platform/apps/backend/src/internal-images/ensure-image-variant.dto.ts

22 lines
533 B
TypeScript
Raw Normal View History

import { ApiProperty } from "@nestjs/swagger"
export class EnsureImageVariantRequestDto {
@ApiProperty({ example: "asset_123" })
assetId!: string
@ApiProperty({ example: 4, minimum: 1 })
version!: number
@ApiProperty({ example: "card" })
preset!: string
@ApiProperty({ example: 640, minimum: 1 })
width!: number
@ApiProperty({ example: 80, minimum: 1 })
quality!: number
@ApiProperty({ enum: ["auto", "avif", "webp", "jpg", "png"], example: "auto" })
format!: "auto" | "avif" | "jpg" | "png" | "webp"
}