Add named project snapshots
This commit is contained in:
parent
5a0c9019af
commit
7c670fece3
21 changed files with 3076 additions and 7 deletions
26
src/domain/ports/project-snapshot.store.ts
Normal file
26
src/domain/ports/project-snapshot.store.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
export interface ProjectSnapshotMetadata {
|
||||
id: string;
|
||||
projectId: string;
|
||||
sourceRevision: number;
|
||||
schemaVersion: number;
|
||||
name: string;
|
||||
description: string | null;
|
||||
payloadSha256: string;
|
||||
createdAtIso: string;
|
||||
createdByActorId: string | null;
|
||||
}
|
||||
|
||||
export interface CreateNamedProjectSnapshotInput {
|
||||
projectId: string;
|
||||
expectedRevision: number;
|
||||
name: string;
|
||||
description?: string;
|
||||
actorId?: string;
|
||||
}
|
||||
|
||||
export interface ProjectSnapshotStore {
|
||||
createNamed(
|
||||
input: CreateNamedProjectSnapshotInput
|
||||
): ProjectSnapshotMetadata | null;
|
||||
listByProject(projectId: string): ProjectSnapshotMetadata[] | null;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue