import { OmitType, PartialType } from '@nestjs/swagger'; import { CreateApiaryRestrictionDto } from './create-apiary-restriction.dto'; /** * The apiary of a restriction is fixed: a restriction for another stand is a * new restriction. Omitted stays, null clears a nullable field (endsOn ends * the restriction as open again), null on disease or startsOn is a 400. */ export class UpdateApiaryRestrictionDto extends PartialType( OmitType(CreateApiaryRestrictionDto, ['apiaryIds'] as const), { skipNullProperties: false }, ) {}