src/pull-requests/dtos/pull-request-contributor-insights.dto.ts
Properties |
|
Optional limit |
Type : number
|
Default value : 50
|
Decorators :
@ApiPropertyOptional({minimum: 1, maximum: 1000, default: 10, type: 'integer'})
|
Inherited from
PageOptionsDto
|
Defined in
PageOptionsDto:23
|
Readonly repos |
Type : string
|
Decorators :
@ApiProperty()
|
Readonly Optional orderDirection |
Type : OrderDirectionEnum
|
Default value : OrderDirectionEnum.DESC
|
Decorators :
@ApiPropertyOptional({enum: OrderDirectionEnum, enumName: 'OrderDirectionEnum', default: undefined})
|
Inherited from
PageOptionsDto
|
Defined in
PageOptionsDto:35
|
Readonly Optional page |
Type : number
|
Default value : 1
|
Decorators :
@ApiPropertyOptional({minimum: 1, default: 1, type: 'integer'})
|
Inherited from
PageOptionsDto
|
Defined in
PageOptionsDto:17
|
Readonly Optional prev_days_start_date |
Type : number
|
Default value : 0
|
Decorators :
@ApiPropertyOptional({description: 'Number of days in the past to start range block', default: 0, type: 'integer'})
|
Inherited from
PageOptionsDto
|
Defined in
PageOptionsDto:57
|
Readonly Optional range |
Type : number
|
Default value : 30
|
Decorators :
@ApiPropertyOptional({description: 'Range in days', default: 30, type: 'integer'})
|
Inherited from
PageOptionsDto
|
Defined in
PageOptionsDto:46
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsInt, IsOptional, IsString, Max, Min } from "class-validator";
import { Type } from "class-transformer";
import { PageOptionsDto } from "../../common/dtos/page-options.dto";
export class PullRequestContributorInsightsDto extends PageOptionsDto {
@ApiProperty()
@IsString()
readonly repos: string;
@ApiPropertyOptional({
minimum: 1,
maximum: 1000,
default: 10,
type: "integer",
})
@Type(() => Number)
@IsInt()
@Min(1)
@Max(10000)
@IsOptional()
limit?: number = 50;
}