feat(logs): add workspace activity log api
This commit is contained in:
54
apps/logs/services/__init__.py
Normal file
54
apps/logs/services/__init__.py
Normal file
@@ -0,0 +1,54 @@
|
||||
from apps.logs.services.constants import (
|
||||
EVENT_ACTIVATE,
|
||||
EVENT_ARCHIVE,
|
||||
EVENT_CREATE,
|
||||
EVENT_DEACTIVATE,
|
||||
EVENT_DELETE,
|
||||
EVENT_RESTORE,
|
||||
EVENT_UNARCHIVE,
|
||||
EVENT_UPDATE,
|
||||
LOG_EVENTS,
|
||||
LOG_SECTIONS,
|
||||
WORKSPACE_LOGS_VIEW,
|
||||
)
|
||||
from apps.logs.services.metadata import build_workspace_log_metadata
|
||||
from apps.logs.services.query import (
|
||||
WorkspaceLogFilters,
|
||||
build_log_target_payload,
|
||||
filter_workspace_logs,
|
||||
get_log_change_rows,
|
||||
get_log_section,
|
||||
get_log_workspace_id,
|
||||
is_visible_workspace_log,
|
||||
normalize_log_event,
|
||||
parse_filter_datetime,
|
||||
serialize_workspace_log_detail,
|
||||
serialize_workspace_log_list_item,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"WORKSPACE_LOGS_VIEW",
|
||||
"LOG_SECTIONS",
|
||||
"LOG_EVENTS",
|
||||
"EVENT_CREATE",
|
||||
"EVENT_UPDATE",
|
||||
"EVENT_DELETE",
|
||||
"EVENT_RESTORE",
|
||||
"EVENT_ARCHIVE",
|
||||
"EVENT_UNARCHIVE",
|
||||
"EVENT_ACTIVATE",
|
||||
"EVENT_DEACTIVATE",
|
||||
"WorkspaceLogFilters",
|
||||
"build_workspace_log_metadata",
|
||||
"get_log_section",
|
||||
"get_log_workspace_id",
|
||||
"normalize_log_event",
|
||||
"get_log_change_rows",
|
||||
"build_log_target_payload",
|
||||
"filter_workspace_logs",
|
||||
"is_visible_workspace_log",
|
||||
"serialize_workspace_log_list_item",
|
||||
"serialize_workspace_log_detail",
|
||||
"parse_filter_datetime",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user