Audit log table and modal

This commit is contained in:
Jamie Curnow
2025-09-14 14:00:00 +10:00
parent e44748e46f
commit 2b88f56d22
24 changed files with 425 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
import * as api from "./base";
import type { AuditLog } from "./models";
export type AuditLogExpansion = "user";
export async function getAuditLogs(expand?: AuditLogExpansion[], params = {}): Promise<AuditLog[]> {
return await api.get({
url: "/audit-log",
params: {
expand: expand?.join(","),
...params,
},
});
}