forked from jappel/leistungsbilanz-ts
Add project device update history
This commit is contained in:
parent
2668fc2f16
commit
0bc6c7372f
14 changed files with 785 additions and 13 deletions
26
src/domain/ports/project-device-project-command.store.ts
Normal file
26
src/domain/ports/project-device-project-command.store.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import type { ProjectDeviceUpdateProjectCommand } from "../models/project-device-project-command.model.js";
|
||||
import type {
|
||||
AppendedProjectRevision,
|
||||
ProjectRevisionSource,
|
||||
} from "./project-revision.store.js";
|
||||
|
||||
export interface ExecuteProjectDeviceUpdateCommandInput {
|
||||
projectId: string;
|
||||
expectedRevision: number;
|
||||
source: ProjectRevisionSource;
|
||||
description?: string;
|
||||
actorId?: string;
|
||||
historyTargetChangeSetId?: string;
|
||||
command: ProjectDeviceUpdateProjectCommand;
|
||||
}
|
||||
|
||||
export interface ExecutedProjectDeviceUpdateCommand {
|
||||
revision: AppendedProjectRevision;
|
||||
inverse: ProjectDeviceUpdateProjectCommand;
|
||||
}
|
||||
|
||||
export interface ProjectDeviceProjectCommandStore {
|
||||
executeUpdate(
|
||||
input: ExecuteProjectDeviceUpdateCommandInput
|
||||
): ExecutedProjectDeviceUpdateCommand;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue