src/project/dto/update-project.dto.ts
PartialType(CreateProjectDto)
Properties |
|
| Optional budget |
Type : number
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:53
|
| Optional businessObjective |
Type : string
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:28
|
| Optional businessUnit |
Type : string
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:71
|
| Optional description |
Type : string
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:23
|
| Optional estimatedRevenue |
Type : number
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:43
|
| Optional impactNotes |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/project/dto/update-project.dto.ts:48
|
| Optional isPublic |
Type : boolean
|
Decorators :
@IsBoolean()
|
|
Defined in src/project/dto/update-project.dto.ts:18
|
| Optional keyResults |
Type : string
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:33
|
| Optional kpis |
Type : string
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:38
|
| Optional stage |
Type : ProjectStages
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:67
|
| Optional targetVariable |
Type : string
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:58
|
| Optional teamMembers |
Type : string
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:63
|
| Optional useCaseType |
Type : ProjectUseCaseType
|
Decorators :
@IsOptional()
|
|
Defined in src/project/dto/update-project.dto.ts:76
|
import { PartialType } from "@nestjs/mapped-types";
import { ApiPropertyOptional } from "@nestjs/swagger";
import {
IsBoolean,
IsEnum,
IsNumber,
IsOptional,
IsString,
} from "class-validator";
import { CreateProjectDto } from "./create-project.dto";
import { ProjectStages } from "../entities/project.entity";
import { ProjectUseCaseType } from "../entities/project.entity";
export class UpdateProjectDto extends PartialType(CreateProjectDto) {
@IsBoolean()
@IsOptional()
@ApiPropertyOptional()
isPublic?: boolean;
@IsOptional()
@IsString()
@ApiPropertyOptional()
description?: string;
@IsOptional()
@IsString()
@ApiPropertyOptional()
businessObjective?: string;
@IsOptional()
@IsString()
@ApiPropertyOptional()
keyResults?: string;
@IsOptional()
@IsString()
@ApiPropertyOptional()
kpis?: string;
@IsOptional()
@IsNumber()
@ApiPropertyOptional()
estimatedRevenue?: number;
@IsString()
@IsOptional()
@ApiPropertyOptional()
impactNotes?: string;
@IsOptional()
@IsNumber()
@ApiPropertyOptional()
budget?: number;
@IsOptional()
@IsString()
@ApiPropertyOptional()
targetVariable?: string;
@IsOptional()
@IsString()
@ApiPropertyOptional()
teamMembers?: string;
@IsOptional()
@IsEnum(ProjectStages, { each: true })
stage?: ProjectStages;
@IsOptional()
@ApiPropertyOptional()
businessUnit?: string;
@IsOptional()
@ApiPropertyOptional()
@IsEnum(ProjectUseCaseType, { each: true })
useCaseType?: ProjectUseCaseType;
}