File

src/uploads/dto/upload-getter.dto.ts

Index

Properties

Properties

extQuery
Type : string
Decorators :
@IsString()
@IsOptional()
favs
Type : boolean
Decorators :
@IsOptional()
pathQuery
Type : string
Decorators :
@IsString()
@IsOptional()
skip
Type : number
Decorators :
@IsNumber()
take
Type : number
Decorators :
@IsNumber()
import { IsNumber, IsOptional, IsString } from 'class-validator';

export class UploadGetterDto {
  @IsString()
  @IsOptional()
  pathQuery: string; //path (upload name) search query
  @IsString()
  @IsOptional()
  extQuery: string; //extension/mime search query
  @IsOptional()
  favs: boolean; //fetch only the favorites/all
  @IsNumber()
  skip: number; //amount of entries to skip (defaults to 0, set by the client)
  @IsNumber()
  take: number; //amount of entries to take (usually 12, set by the client)
}

results matching ""

    No results matching ""