forked from jappel/leistungsbilanz-ts
Expose project version history
This commit is contained in:
parent
384a5769ab
commit
d00ae30bda
13 changed files with 759 additions and 10 deletions
|
|
@ -15,6 +15,49 @@ export interface ProjectHistoryStateDto {
|
|||
redoChangeSetId: string | null;
|
||||
}
|
||||
|
||||
export type ProjectRevisionSourceDto =
|
||||
| "user"
|
||||
| "undo"
|
||||
| "redo"
|
||||
| "restore"
|
||||
| "migration";
|
||||
|
||||
export interface ProjectRevisionSummaryDto {
|
||||
revisionId: string;
|
||||
changeSetId: string;
|
||||
revisionNumber: number;
|
||||
createdAtIso: string;
|
||||
actorId: string | null;
|
||||
source: ProjectRevisionSourceDto;
|
||||
description: string | null;
|
||||
commandType: string;
|
||||
payloadSchemaVersion: number;
|
||||
}
|
||||
|
||||
export interface ProjectRevisionPageDto {
|
||||
projectId: string;
|
||||
currentRevision: number;
|
||||
revisions: ProjectRevisionSummaryDto[];
|
||||
nextBeforeRevision: number | null;
|
||||
}
|
||||
|
||||
export interface ProjectSnapshotMetadataDto {
|
||||
id: string;
|
||||
projectId: string;
|
||||
sourceRevision: number;
|
||||
schemaVersion: number;
|
||||
name: string;
|
||||
description: string | null;
|
||||
payloadSha256: string;
|
||||
createdAtIso: string;
|
||||
createdByActorId: string | null;
|
||||
}
|
||||
|
||||
export interface ProjectSnapshotRestoreResultDto
|
||||
extends ProjectCommandResultDto {
|
||||
snapshot: ProjectSnapshotMetadataDto;
|
||||
}
|
||||
|
||||
export interface ProjectCommandDto {
|
||||
schemaVersion: number;
|
||||
type: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue