1
0
silverbullet/plug-api/types.ts

27 lines
433 B
TypeScript
Raw Normal View History

2023-08-28 15:12:15 +00:00
export type MQMessage = {
2023-08-10 16:32:41 +00:00
id: string;
queue: string;
body: any;
retries?: number;
};
2023-08-11 18:37:13 +00:00
2023-08-28 15:12:15 +00:00
export type MQStats = {
2023-08-11 18:37:13 +00:00
queued: number;
processing: number;
dlq: number;
};
2023-08-20 15:51:00 +00:00
2023-08-28 15:12:15 +00:00
export type MQSubscribeOptions = {
batchSize?: number;
pollInterval?: number;
};
2023-08-20 15:51:00 +00:00
export type FileMeta = {
name: string;
lastModified: number;
contentType: string;
size: number;
perm: "ro" | "rw";
noSync?: boolean;
} & Record<string, any>;