Display in a chip the number of unmatched inbox entries

This commit is contained in:
2025-05-12 18:46:40 +02:00
parent 0b586039c3
commit 1e8064946a
5 changed files with 138 additions and 41 deletions

View File

@ -21,6 +21,17 @@ export interface InboxEntryUpdate {
}
export class InboxApi {
/**
* Get the number of unmatched entries
*/
static async CountUnmatched(): Promise<number> {
return (
await APIClient.exec({
uri: `/inbox/count?include_attached=false`,
method: "GET",
})
).data.count;
}
/**
* Create a new inbox entry
*/