import { ApiProperty } from '@nestjs/swagger';
import { IsIn, IsNotEmpty, IsString } from 'class-validator';

import { MEETING_SUMMARY_STATUS_CODES } from './meeting-summary-status-code';
import type { MeetingSummaryStatusCode } from './meeting-summary-status-code';

export class ChangeMeetingSummaryStatusDto {
  @ApiProperty({
    enum: MEETING_SUMMARY_STATUS_CODES,
    description: 'New status code for the meeting summary.',
    example: 'REVIEWED',
  })
  @IsString()
  @IsNotEmpty()
  @IsIn(MEETING_SUMMARY_STATUS_CODES)
  status!: MeetingSummaryStatusCode;
}
