"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuditLog = void 0; const Entity_1 = require("../../../../shared/domain/Entity"); const UniqueId_1 = require("../../../../shared/domain/UniqueId"); class AuditLog extends Entity_1.Entity { static create(props, id) { return new AuditLog(props, id ?? UniqueId_1.UniqueId.create()); } static reconstitute(props, id) { return new AuditLog(props, id); } get userId() { return this.props.userId; } get organizationId() { return this.props.organizationId; } get action() { return this.props.action; } get resource() { return this.props.resource; } get resourceId() { return this.props.resourceId; } get ipAddress() { return this.props.ipAddress; } get userAgent() { return this.props.userAgent; } get details() { return this.props.details; } get occurredAt() { return this.props.occurredAt; } } exports.AuditLog = AuditLog;