@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
17 lines (16 loc) • 729 B
TypeScript
import { RestDocument } from "./RestDocument";
import { DocumentFile, HistoryEntry } from "../../../generated-sources";
import { DocumentManager } from "./DocumentManager";
export interface RestDocumentState<T_DOCUMENT extends RestDocument> {
getDocumentId(): string;
getDocumentFile(): DocumentFile;
setDocumentFile(documentFile: DocumentFile): void;
getHistory(): Array<HistoryEntry>;
setHistory(historyEntries: Array<HistoryEntry>): void;
getHistoryEntry(historyId: number): HistoryEntry;
updateHistoryEntry(historyEntry: HistoryEntry): void;
lastHistory(): HistoryEntry;
getHistorySize(): number;
activeHistory(): HistoryEntry;
getDocumentManager(): DocumentManager<T_DOCUMENT>;
}