Add named project snapshots
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user