import { IsEnum, IsNumber, IsString, IsOptional } from "class-validator"
import { UserType, ChangeType } from "../interfaces/notification.interface"

export class TriggerNotificationDto {
  @IsNumber()
  actorId: number

  @IsEnum(UserType)
  actorType: UserType

  @IsEnum(ChangeType)
  changeType: ChangeType

  @IsNumber()
  entityId: number

  @IsString()
  @IsOptional()
  message?: string

  @IsString()
  @IsOptional()
  title?: string
}
