mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-08 20:25:19 +02:00
refactor: add notifications module
This commit is contained in:
parent
309bd9a2dd
commit
9575b9d4db
17 changed files with 1555 additions and 0 deletions
17
surfsense_backend/app/notifications/constants.py
Normal file
17
surfsense_backend/app/notifications/constants.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"""Notification policy constants."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
# Notifications newer than this are live-synced; older ones load via the list endpoint.
|
||||
SYNC_WINDOW_DAYS = 14
|
||||
|
||||
# Maps an inbox tab to the notification types it shows.
|
||||
CATEGORY_TYPES: dict[str, tuple[str, ...]] = {
|
||||
"comments": ("new_mention", "comment_reply"),
|
||||
"status": (
|
||||
"connector_indexing",
|
||||
"connector_deletion",
|
||||
"document_processing",
|
||||
"page_limit_exceeded",
|
||||
),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue