forked from jappel/leistungsbilanz-ts
Add placeholder move history
This commit is contained in:
parent
0a51703315
commit
53282e8c7c
12 changed files with 1106 additions and 160 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import { ProjectHistoryOperationUnavailableError } from "../errors/project-history-operation-unavailable.error.js";
|
||||
import {
|
||||
assertCircuitDeviceRowMoveProjectCommand,
|
||||
assertCircuitDeviceRowMoveWithNewCircuitProjectCommand,
|
||||
circuitDeviceRowMoveCommandType,
|
||||
circuitDeviceRowMoveWithNewCircuitCommandType,
|
||||
} from "../models/circuit-device-row-move-project-command.model.js";
|
||||
import {
|
||||
assertCircuitDeviceRowUpdateProjectCommand,
|
||||
|
|
@ -161,6 +163,15 @@ export class ProjectCommandService implements ProjectCommandExecutor {
|
|||
command: input.command,
|
||||
}).revision;
|
||||
}
|
||||
case circuitDeviceRowMoveWithNewCircuitCommandType: {
|
||||
assertCircuitDeviceRowMoveWithNewCircuitProjectCommand(
|
||||
input.command
|
||||
);
|
||||
return this.deviceRowMoveStore.execute({
|
||||
...input,
|
||||
command: input.command,
|
||||
}).revision;
|
||||
}
|
||||
case circuitInsertCommandType: {
|
||||
assertCircuitInsertProjectCommand(input.command);
|
||||
return this.circuitStructureStore.execute({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue