mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 14:43:06 +08:00
33 lines
435 B
TypeScript
33 lines
435 B
TypeScript
import {
|
|
IsBoolean,
|
|
IsNumber,
|
|
IsOptional,
|
|
IsPositive,
|
|
IsString,
|
|
Max,
|
|
Min,
|
|
} from 'class-validator';
|
|
|
|
export class PaginationOptions {
|
|
@IsOptional()
|
|
@IsNumber()
|
|
@Min(1)
|
|
page = 1;
|
|
|
|
@IsOptional()
|
|
@IsNumber()
|
|
@IsPositive()
|
|
@Min(1)
|
|
@Max(100)
|
|
limit = 20;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
query: string;
|
|
|
|
//for space endpoint workspace owners
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
includeAllSpaces?: boolean;
|
|
}
|