import { IsIn, IsOptional, IsString } from 'class-validator';

const STATES = ['OPEN', 'SNOOZED', 'DONE', 'ARCHIVED', 'CANCELLED', 'STALE'] as const;

export class PatchInboxDto {
  @IsIn(STATES) state!: (typeof STATES)[number];
  @IsOptional() @IsString() reason?: string;
}
