src/repo/dtos/repo-release.dto.ts
Properties |
|
| Optional contributor |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Filter for contributor who cut release', type: String, example: 'bdougie'})
|
|
Defined in src/repo/dtos/repo-release.dto.ts:13
|
| Optional not_contributor |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Filter out contributor who cut release', type: String, example: 'bdougie'})
|
|
Defined in src/repo/dtos/repo-release.dto.ts:22
|
| Readonly Optional limit |
Type : number
|
Default value : 50
|
Decorators :
@ApiPropertyOptional({minimum: 1, maximum: 1000, default: 10, type: 'integer'})
|
|
Inherited from
PageOptionsDto
|
|
Defined in
PageOptionsDto:30
|
| 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 { ApiPropertyOptional } from "@nestjs/swagger";
import { IsOptional, IsString } from "class-validator";
import { PageOptionsDto } from "../../common/dtos/page-options.dto";
export class RepoReleaseDto extends PageOptionsDto {
@ApiPropertyOptional({
description: "Filter for contributor who cut release",
type: String,
example: "bdougie",
})
@IsString()
@IsOptional()
contributor?: string;
@ApiPropertyOptional({
description: "Filter out contributor who cut release",
type: String,
example: "bdougie",
})
@IsString()
@IsOptional()
not_contributor?: string;
}