Scanyonero/static/js/model.d.ts
David Vogel 853a1bb58d Rework into FTP scanning server
- Rename to Scanyonero
- Add FTP server that ingests TIFF, PNG, JPEG or PDF files
- Add web interface to check and modify ingested files
- Rework how ocrmypdf is invoked

Basics are working, but the program is not in a usable state.
2025-05-14 12:08:38 +02:00

42 lines
777 B
TypeScript

export interface APIQueueEntry {
id: number;
name: string;
type: string;
page: string | undefined;
}
export type APIPacketQueueDelete = {
ids: number[];
}
export type APIPacketQueueDeleteAt = {
indexA: number;
indexB: number;
}
export type APIPacketQueueInsertAt = {
index: number;
documents: APIQueueEntry[];
}
export type APIPacketQueueReplace = {
documents: APIQueueEntry[];
}
export type APIPacketQueueShiftAt = {
index: number;
offset: number;
}
export type APIPacketQueueShift = {
ids: number[];
offset: number;
}
export type APIEvents = {
queuedeleteat: CustomEvent<APIPacketQueueDeleteAt>;
queueinsertat: CustomEvent<APIPacketQueueInsertAt>;
queuereplace: CustomEvent<APIPacketQueueReplace>;
queueshiftat: CustomEvent<APIPacketQueueShiftAt>;
}