import { OmitType, PartialType } from '@nestjs/swagger'; import { CreateInspectionDto } from './create-inspection.dto'; /** * Every field stays correctable, `colonyId` included: a record filed against * the wrong colony is a data-entry error, and re-filing it is the only way to * repair the colony's history without deleting the record. `applyToColony` is * not part of a correction: a correction takes nothing over to the colony. */ export class UpdateInspectionDto extends PartialType( OmitType(CreateInspectionDto, ['applyToColony', 'hiveChange'] as const), { skipNullProperties: false }, ) {}