Persist circuit protection updates
This commit is contained in:
parent
0c92fbd09e
commit
18ca5eb3d4
12 changed files with 501 additions and 2 deletions
24
src/domain/ports/circuit-protection-project-command.store.ts
Normal file
24
src/domain/ports/circuit-protection-project-command.store.ts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import type {
|
||||
CircuitProtectionUpdateProjectCommand,
|
||||
} from "../models/circuit-protection-project-command.model.js";
|
||||
import type {
|
||||
AppendedProjectRevision,
|
||||
ProjectRevisionSource,
|
||||
} from "./project-revision.store.js";
|
||||
|
||||
export interface ExecuteCircuitProtectionCommandInput {
|
||||
projectId: string;
|
||||
expectedRevision: number;
|
||||
source: ProjectRevisionSource;
|
||||
description?: string;
|
||||
actorId?: string;
|
||||
historyTargetChangeSetId?: string;
|
||||
command: CircuitProtectionUpdateProjectCommand;
|
||||
}
|
||||
|
||||
export interface CircuitProtectionProjectCommandStore {
|
||||
execute(input: ExecuteCircuitProtectionCommandInput): {
|
||||
revision: AppendedProjectRevision;
|
||||
inverse: CircuitProtectionUpdateProjectCommand;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue