Data Layer low complexity backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Provides read and write access to the sync_logs table, recording all outbound sync attempts with their status, payload hashes, and error details. Supports audit queries and retry identification for the sync orchestrator and integration status screen.

Feature: Accounting System Integration

sync-log-repository

Responsibilities

  • Write new sync log entries for every outbound sync attempt
  • Update log status on success, failure, or retry
  • Query recent logs by organization, connector type, and date range
  • Identify records eligible for retry based on failure state and backoff schedule
  • Support compliance audit exports of sync history

Interfaces

createLogEntry(entry)
updateLogStatus(logId, status, message)
getLogsByOrgId(orgId, options)
getPendingRetries(orgId)
getFailedRecords(orgId, since)
markAsRetrying(logId)
getLogById(logId)
exportAuditLog(orgId, dateRange)

Related Data Entities (1)

Data entities managed by this component