Data Layer medium complexity backend
0
Dependencies
2
Dependents
2
Entities
0
Integrations

Description

Data layer responsible for persisting per-organization accounting integration configurations, including encrypted API credentials, field mappings, and transfer records. Ensures credentials are stored encrypted at rest and provides query access to transfer history for audit and status monitoring.

Feature: Accounting System Integration

accounting-config-store

Responsibilities

  • Store and retrieve encrypted API credentials per organization
  • Persist field mapping configurations between Meander and target systems
  • Record all transfer attempts with status, timestamps, and error details
  • Provide query interface for transfer history and audit logs

Interfaces

saveCredentials(orgId: string, provider: AccountingProvider, credentials: EncryptedCredentials)
getCredentials(orgId: string, provider: AccountingProvider)
saveFieldMapping(orgId: string, provider: AccountingProvider, mappings: FieldMapping[])
getFieldMapping(orgId: string, provider: AccountingProvider)
recordTransfer(transfer: TransferRecord)
updateTransferStatus(transferId: string, status: TransferStatus, error?: string)
getTransferHistory(orgId: string, filters: TransferFilters)
getFailedTransfers(orgId: string)
deleteCredentials(orgId: string, provider: AccountingProvider)

Relationships

Dependents (2)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component