games_app/backend/dist/repositories/auditLogRepository.d.ts
2026-06-29 15:01:23 +02:00

26 lines
1.1 KiB
TypeScript

/**
* Repository for persisting audit log entries to the database.
* Records user actions and system events for security and compliance tracking.
*/
/**
* Creates a new audit log entry.
* @param data - Audit log fields to persist.
* @param data.userId - Optional ID of the user who performed the action.
* @param data.action - Action identifier (e.g. login, withdrawal).
* @param data.resourceType - Optional type of resource affected.
* @param data.resourceId - Optional ID of the resource affected.
* @param data.ipAddress - Optional client IP address.
* @param data.userAgent - Optional client user-agent string.
* @param data.metadata - Optional additional context as key-value pairs.
* @returns Resolves when the row has been inserted.
*/
export declare function create(data: {
userId?: string | null;
action: string;
resourceType?: string | null;
resourceId?: string | null;
ipAddress?: string | null;
userAgent?: string | null;
metadata?: Record<string, unknown> | null;
}): Promise<void>;
//# sourceMappingURL=auditLogRepository.d.ts.map