mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
17 lines
485 B
Python
17 lines
485 B
Python
"""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",
|
|
),
|
|
}
|