import { describeNullContracts, NullContract, } from '../common/validation/null-contract.spec-helper'; import { UpdateColonyDto } from '../colonies/dto/update-colony.dto'; import { UpdateApiaryRestrictionDto } from './dto/update-apiary-restriction.dto'; const contracts: Record = { UpdateApiaryRestrictionDto: { dto: UpdateApiaryRestrictionDto, notNull: ['disease', 'startsOn'], clearable: ['endsOn', 'authority', 'reference', 'notes'], }, // The reason is only read, never stored: null means "no override". UpdateColonyDto: { dto: UpdateColonyDto, notNull: ['status'], clearable: ['restrictionOverrideReason'], }, }; describeNullContracts('Apiary restriction DTOs', contracts);