apps/recallassess/recallassess-api/src/api/client/participant-group/dto/participant-group-update.dto.ts
DTO for updating a participant group
Properties |
|
| Optional color_code |
Type : string
|
Decorators :
@Expose()
|
| Optional description |
Type : string
|
Decorators :
@Expose()
|
| Optional name |
Type : string
|
Decorators :
@Expose()
|
import { ApiPropertyOptional } from "@nestjs/swagger";
import { IsOptional, IsString } from "class-validator";
import { Exclude, Expose } from "class-transformer";
/**
* DTO for updating a participant group
*/
@Exclude()
export class UpdateParticipantGroupDto {
@Expose()
@ApiPropertyOptional({
description: "Team name",
example: "Sales Team",
})
@IsOptional()
@IsString()
name?: string;
@Expose()
@ApiPropertyOptional({
description: "Team description",
example: "Sales department team members",
})
@IsOptional()
@IsString()
description?: string;
@Expose()
@ApiPropertyOptional({
description: "Color code for UI (hex format)",
example: "#8b5cf6",
})
@IsOptional()
@IsString()
color_code?: string;
}