import { autoserializeAs, Command, inheritSerialization, serializable, Validators } from '@my-devkit/core'; import { UpdateDevelopmentPolicyCommand } from './update-development-policy-command'; import { UpdateDevelopmentPolicyMatchingRulesCommand } from './update-development-policy-matching-rules-command'; @serializable @inheritSerialization(Command) export class BulkUpdateDevelopmentPolicyCommand extends Command { @Validators.IsNotEmpty() @Validators.IsInstance(UpdateDevelopmentPolicyMatchingRulesCommand) @autoserializeAs(UpdateDevelopmentPolicyMatchingRulesCommand) public updateMatchingRulesCommand: UpdateDevelopmentPolicyMatchingRulesCommand = null; @Validators.IsNotEmpty() @Validators.IsInstance(UpdateDevelopmentPolicyCommand) @autoserializeAs(UpdateDevelopmentPolicyCommand) public updateCommand: UpdateDevelopmentPolicyCommand = null; constructor() { super('BulkUpdateDevelopmentPolicyCommand'); } }