Integration Repository
Component Detail
Data Layer
medium complexity
backend
0
Dependencies
2
Dependents
1
Entities
0
Integrations
Description
Data access layer for the integrations table, managing CRUD operations for per-organization integration configurations including credentials, endpoints, sync schedules, and execution history. All sensitive credential data is stored encrypted.
integration-repository
Responsibilities
- Persist and retrieve integration configuration records per organization
- Store and query sync history and error logs
- Manage integration enabled/disabled state per organization
- Provide paginated query for sync history
Interfaces
getIntegrationsByOrganization(organizationId)
getIntegrationById(integrationId)
createIntegration(data)
updateIntegration(integrationId, data)
deleteIntegration(integrationId)
recordSyncResult(integrationId, result)
getSyncHistory(integrationId, pagination)
getLastSuccessfulSync(integrationId)
clearSyncHistory(integrationId)
Relationships
Dependents (2)
Components that depend on this component