Generated
Executes constructor.
The db value.
The function result.
Generated
Returns the result of findByRequestId.
The requestId value.
The tenantId value.
The function result.
Generated
Returns the result of findLatestAcceptedByEntity.
The entityType value.
The entityId value.
The capabilityId value.
The tenantId value.
The function result.
Objective: In module packages/db/src/repositories/ai-assistance-audit.repository.ts, retrieve data through findLatestAcceptedByEntity.
Behavior: Async; accepts entityType and entityId and capabilityId and tenantId; returns a value; invokes this.db .select() .from(aiAssistanceAudit) .where( and( eq(a.
Generated
Executes record.
The entry value.
The function result.
Generated
Updates data through updateAcceptance.
The requestId value.
The accepted value.
The function result.
Generated
Updates data through updateAcceptanceForTenant.
The requestId value.
The tenantId value.
The accepted value.
The function result.
Persistent AssistanceAudit backed by ai_assistance_audit table. Idempotent on requestId+tenantId (unique constraint).