import { autoserializeAs, Command, inheritSerialization, serializable, Validators } from '@my-devkit/core'; import { ProgressStatus } from '@we-scrum/enums'; @serializable @inheritSerialization(Command) export class UpdateStoryDevelopmentStatusCommand extends Command { @Validators.IsNotEmpty() @Validators.IsString() @autoserializeAs(String) public storyId: string = null; @Validators.IsNotEmpty() @Validators.IsEnum(ProgressStatus) @autoserializeAs(ProgressStatus) public developmentStatus: ProgressStatus = null; constructor() { super('UpdateStoryDevelopmentStatusCommand'); } }