feat(platform): add audit logs and activity feed
This commit is contained in:
parent
92cb8d1286
commit
c816e9869d
34 changed files with 1592 additions and 43 deletions
38
frontend/athena/types/audit.ts
Normal file
38
frontend/athena/types/audit.ts
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
export type ApiSuccess<T> = {
|
||||
success: boolean;
|
||||
data: T;
|
||||
message: string;
|
||||
};
|
||||
|
||||
export type AuditLog = {
|
||||
id: number;
|
||||
actor_user_id: number | null;
|
||||
actor_username: string;
|
||||
action: string;
|
||||
entity_type: string;
|
||||
entity_id: number | null;
|
||||
entity_label: string;
|
||||
ip_address: string;
|
||||
user_agent: string;
|
||||
before_data: unknown;
|
||||
after_data: unknown;
|
||||
metadata_data: Record<string, unknown>;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type AuditLogListResponse = {
|
||||
items: AuditLog[];
|
||||
total: number;
|
||||
page: number;
|
||||
page_size: number;
|
||||
};
|
||||
|
||||
export type ActivityFeedItem = {
|
||||
id: number;
|
||||
title: string;
|
||||
description: string;
|
||||
actor: string;
|
||||
entity_type: string;
|
||||
entity_id: number | null;
|
||||
created_at: string;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue