feat(platform): add audit logs and activity feed

This commit is contained in:
Schubert Ferenc 2026-07-03 00:04:44 +02:00
parent 92cb8d1286
commit c816e9869d
34 changed files with 1592 additions and 43 deletions

View 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;
};