Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions Audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,28 @@ import { isly } from "isly"

export type Audit = storage.AuditLogger.Entry<Audit.Type>
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)
}
}