File

src/project/dto/update-project.dto.ts

Extends

PartialType(CreateProjectDto)

Index

Properties

Properties

Optional budget
Type : number
Decorators :
@IsOptional()
@IsNumber()
@ApiPropertyOptional()
Optional businessObjective
Type : string
Decorators :
@IsOptional()
@IsString()
@ApiPropertyOptional()
Optional businessUnit
Type : string
Decorators :
@IsOptional()
@ApiPropertyOptional()
Optional description
Type : string
Decorators :
@IsOptional()
@IsString()
@ApiPropertyOptional()
Optional estimatedRevenue
Type : number
Decorators :
@IsOptional()
@IsNumber()
@ApiPropertyOptional()
Optional impactNotes
Type : string
Decorators :
@IsString()
@IsOptional()
@ApiPropertyOptional()
Optional isPublic
Type : boolean
Decorators :
@IsBoolean()
@IsOptional()
@ApiPropertyOptional()
Optional keyResults
Type : string
Decorators :
@IsOptional()
@IsString()
@ApiPropertyOptional()
Optional kpis
Type : string
Decorators :
@IsOptional()
@IsString()
@ApiPropertyOptional()
Optional stage
Type : ProjectStages
Decorators :
@IsOptional()
@IsEnum(ProjectStages, {each: true})
Optional targetVariable
Type : string
Decorators :
@IsOptional()
@IsString()
@ApiPropertyOptional()
Optional teamMembers
Type : string
Decorators :
@IsOptional()
@IsString()
@ApiPropertyOptional()
Optional useCaseType
Type : ProjectUseCaseType
Decorators :
@IsOptional()
@ApiPropertyOptional()
@IsEnum(ProjectUseCaseType, {each: true})
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;
}

results matching ""

    No results matching ""