src/histogram/dtos/member.dto.ts
Properties |
|
| Optional org |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Org name', type: 'string', example: 'open-sauced'})
|
|
Defined in src/histogram/dtos/member.dto.ts:15
|
| Readonly Optional contributor |
Type : string
|
Decorators :
@ApiPropertyOptional({type: 'string', example: 'bdougie'})
|
|
Inherited from
BaseHistogramDto
|
|
Defined in
BaseHistogramDto:54
|
| Readonly Optional orderDirection |
Type : OrderDirectionEnum
|
Default value : OrderDirectionEnum.DESC
|
Decorators :
@ApiPropertyOptional({enum: OrderDirectionEnum, enumName: 'OrderDirectionEnum', default: undefined})
|
|
Inherited from
BaseHistogramDto
|
|
Defined in
BaseHistogramDto:64
|
| 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
BaseHistogramDto
|
|
Defined in
BaseHistogramDto:26
|
| Readonly range |
Type : number
|
Default value : 30
|
Decorators :
@ApiProperty({description: 'Range in days', default: 30, type: 'integer'})
|
|
Inherited from
BaseHistogramDto
|
|
Defined in
BaseHistogramDto:15
|
| Readonly Optional repo |
Type : string
|
Decorators :
@ApiPropertyOptional({description: 'Repo name', type: 'string', example: 'open-sauced/app'})
|
|
Inherited from
BaseHistogramDto
|
|
Defined in
BaseHistogramDto:46
|
| Readonly Optional repoIds |
Type : string
|
Decorators :
@ApiPropertyOptional()
|
|
Inherited from
BaseHistogramDto
|
|
Defined in
BaseHistogramDto:59
|
| Readonly Optional width |
Type : number
|
Default value : 1
|
Decorators :
@ApiPropertyOptional({description: 'Day width of histogram buckets', default: 1, type: 'integer'})
|
|
Inherited from
BaseHistogramDto
|
|
Defined in
BaseHistogramDto:36
|
import { ApiPropertyOptional } from "@nestjs/swagger";
import { Type } from "class-transformer";
import { IsOptional, IsString } from "class-validator";
import { BaseHistogramDto } from "./base.dto";
export class MemberHistogramDto extends BaseHistogramDto {
@ApiPropertyOptional({
description: "Org name",
type: "string",
example: "open-sauced",
})
@Type(() => String)
@IsString()
@IsOptional()
org?: string;
}