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

Description

Repository for persisting per-organization external portal configuration, including encrypted API credentials, data-sharing rule sets, sync preferences, and current connection state. All credential fields stored in encrypted form.

Feature: External Portal Integration

portal-integration-config-store

Responsibilities

  • CRUD operations for portal integration configuration per organization
  • Store and retrieve encrypted API credential blobs
  • Persist data-sharing rule definitions and field mapping overrides
  • Track enabled/disabled sync state per organization

Interfaces

getConfig(orgId: string): Promise<PortalConfig | null>
saveConfig(orgId: string, config: PortalConfig): Promise<void>
updateCredentials(orgId: string, encrypted: EncryptedCredentials): Promise<void>
updateSharingRules(orgId: string, rules: SharingRule[]): Promise<void>
setSyncEnabled(orgId: string, enabled: boolean): Promise<void>
deleteConfig(orgId: string): Promise<void>

Relationships

Dependents (3)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component