src/albums/dto/fetch.dto.ts
Properties |
| album |
Type : string
|
Decorators :
@IsNotEmpty()
|
|
Defined in src/albums/dto/fetch.dto.ts:8
|
| extQuery |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/albums/dto/fetch.dto.ts:20
|
| pathQuery |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/albums/dto/fetch.dto.ts:17
|
| skip |
Type : number
|
Decorators :
@IsNumber()
|
|
Defined in src/albums/dto/fetch.dto.ts:11
|
| take |
Type : number
|
Decorators :
@IsNumber()
|
|
Defined in src/albums/dto/fetch.dto.ts:13
|
import { IsAlbumValid } from '../../common/decorators/albumvalid.decorator';
import { IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';
export class FetchDto {
@IsNotEmpty()
@IsString()
@IsAlbumValid()
album: string;
@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)
@IsString()
@IsOptional()
pathQuery: string; //path (upload name) search query
@IsString()
@IsOptional()
extQuery: string; //extension/mime search query
}