Restore named project snapshots
This commit is contained in:
parent
7c670fece3
commit
384a5769ab
25 changed files with 1315 additions and 206 deletions
26
src/domain/ports/project-state-restore-command.store.ts
Normal file
26
src/domain/ports/project-state-restore-command.store.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import type { ProjectStateRestoreCommand } from "../models/project-state-restore-command.model.js";
|
||||
import type {
|
||||
AppendedProjectRevision,
|
||||
ProjectRevisionSource,
|
||||
} from "./project-revision.store.js";
|
||||
|
||||
export interface ExecuteProjectStateRestoreCommandInput {
|
||||
projectId: string;
|
||||
expectedRevision: number;
|
||||
source: ProjectRevisionSource;
|
||||
description?: string;
|
||||
actorId?: string;
|
||||
historyTargetChangeSetId?: string;
|
||||
command: ProjectStateRestoreCommand;
|
||||
}
|
||||
|
||||
export interface ExecutedProjectStateRestoreCommand {
|
||||
revision: AppendedProjectRevision;
|
||||
inverse: ProjectStateRestoreCommand;
|
||||
}
|
||||
|
||||
export interface ProjectStateRestoreCommandStore {
|
||||
execute(
|
||||
input: ExecuteProjectStateRestoreCommandInput
|
||||
): ExecutedProjectStateRestoreCommand;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue