mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-08 01:33:01 +02:00
More e2e tests
This commit is contained in:
@@ -163,6 +163,22 @@ export function sendChannelMessage(
|
||||
});
|
||||
}
|
||||
|
||||
// --- Read state ---
|
||||
|
||||
export interface UnreadCounts {
|
||||
counts: Record<string, number>;
|
||||
mentions: Record<string, boolean>;
|
||||
last_message_times: Record<string, number>;
|
||||
}
|
||||
|
||||
export function getUnreads(): Promise<UnreadCounts> {
|
||||
return fetchJson('/read-state/unreads');
|
||||
}
|
||||
|
||||
export function markAllRead(): Promise<{ status: string; timestamp: number }> {
|
||||
return fetchJson('/read-state/mark-all-read', { method: 'POST' });
|
||||
}
|
||||
|
||||
// --- Settings ---
|
||||
|
||||
export interface BotConfig {
|
||||
|
||||
Reference in New Issue
Block a user