From 1c85a4c117a9137718bb24612cebd1d6680b203f Mon Sep 17 00:00:00 2001 From: SiFalorSum Date: Thu, 17 Oct 2024 17:23:39 +0200 Subject: [PATCH] Suggested audit types --- Audit.ts | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Audit.ts b/Audit.ts index 51dcd44f..4ac76e38 100644 --- a/Audit.ts +++ b/Audit.ts @@ -3,10 +3,28 @@ import { isly } from "isly" export type Audit = storage.AuditLogger.Entry export namespace Audit { - export type Type = { rule: "change" | "add"; user: "login" | "change" } + export type Type = { + rule: "change" | "add" + user: "login" | "change" + organization: "change" | "add" + account: "change" | "add" | "status" + card: "change" | "add" + transaction: "status" | "add" + operation: "manual" + label: "change" | "add" + } export type Resource = typeof Resource.values[number] export namespace Resource { - export const values = ["rule", "user"] as const + export const values = [ + "rule", + "user", + "organization", + "account", + "card", + "transaction", + "operation", + "label", + ] as const export const type = isly.string(values) } }