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

Description

Data access layer that persists portal integration configuration, deep link mappings, feature ownership flags, and sync logs. Provides typed CRUD operations for all portal coordination state and is the single source of truth for which features belong to the app versus the Dynamics portal for each organization.

Feature: External Portal Coordination

portal-integration-repository

Responsibilities

  • Store and retrieve feature ownership configuration per organization
  • Persist deep link URL mappings for portal handoff points
  • Record sync log entries including success, failure, and retry state
  • Support transactional updates when portal config changes are applied

Interfaces

getIntegrationConfig(orgId)
saveIntegrationConfig(orgId, config)
getFeatureOwnershipMap(orgId)
updateFeatureOwnership(orgId, featureKey, owner)
getDeepLinkMapping(orgId, featureKey)
upsertDeepLinkMapping(orgId, featureKey, url)
insertSyncLog(log)
getSyncLogs(orgId, limit)
getLastSuccessfulSync(orgId)

Related Data Entities (2)

Data entities managed by this component