Each colony can now hold its hive setup (Ist-Zustand) as validated JSON with an append-only change log: - catalog: hive systems and part types with dimensions, placement rules and state fields; Liebig-Zander 10 seeded with fixed ids (owner's equipment incl. Bausperre, Futterzarge, Nassenheider) - pure domain module (operations, validator, derived facts) with shared JSON fixtures the frontend runs too - API: catalog (hive-systems:manage), setup create/change/history/ state at a day (colonies:read/update), 409 HIVE_CONFLICT with the current state, idempotent writes, HiveChanged event - inspections can carry hive ops saved in the same transaction - backup export/import of the new tables (backup wins per colony) - docs: ARCHITECTURE section 13, Annahmen 95-100 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
14 lines
608 B
TypeScript
14 lines
608 B
TypeScript
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 },
|
|
) {}
|