Service Layer medium complexity mobilebackend
0
Dependencies
0
Dependents
3
Entities
0
Integrations

Description

Core business logic service for reading, creating, and updating contact records. Orchestrates interactions between the UI, contact repository, and organisation labels system, enforcing RLS-aware data access and applying field-level validation rules before persistence.

Feature: Contact Detail & Management

contact-management-service

Responsibilities

  • Fetch full contact profile with custom fields resolved
  • Validate and persist contact edits
  • Enforce organisation-scoped access rules
  • Coordinate with labels service for custom field definitions

Interfaces

getContact(contactId: String)
updateContact(contactId: String, data: ContactUpdatePayload)
getCustomFieldDefinitions(orgId: String)
validateContactData(data: ContactUpdatePayload)
getRelatedAssignments(contactId: String)
saveDraftLocally(contactId: String, draft: Map)

Related Data Entities (3)

Data entities managed by this component