Scanyonero/static/js/model.d.ts
David Vogel b5ecf95a7b Add split function
- Add ServerWebsocketPacketQueueSplit
- Add Split method to Queue
- Correct automatic separator insertion for newly ingested documents
- Rework UI so that entries have their own set of buttons
- Refactor occurrences of "document" to "queueEntry"
2025-05-19 12:03:40 +02:00

46 lines
832 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 APIPacketQueueSplit = {
ids: number[];
}
export type APIEvents = {
queuedeleteat: CustomEvent<APIPacketQueueDeleteAt>;
queueinsertat: CustomEvent<APIPacketQueueInsertAt>;
queuereplace: CustomEvent<APIPacketQueueReplace>;
queueshiftat: CustomEvent<APIPacketQueueShiftAt>;
}