Proxy Registration Service
Component Detail
Service Layer
high complexity
backend
4
Dependencies
2
Dependents
3
Entities
0
Integrations
Description
Backend-authoritative service that validates coordinator role claims, retrieves the coordinator's managed peer mentor list, and persists activity records with dual user references (performing mentor + submitting coordinator). Triggers server-side audit log creation on every proxy submission and preserves the proxy relationship in offline mutation outbox payloads.
proxy-registration-service
Responsibilities
- Validate coordinator role claim before accepting any proxy submission
- Fetch managed peer mentor list scoped to the coordinator's organisation membership
- Persist activity records with both performed_by_mentor_id and submitted_by_coordinator_id fields
- Trigger audit log entry on every successful proxy submission
- Serialize proxy relationship into offline mutation outbox payload for sync fidelity
Interfaces
getManagedMentors(coordinatorId: String): Future<List<UserSummary>>
submitProxyActivity(coordinatorId: String, mentorId: String, input: ActivityInput): Future<Activity>
validateProxyPermission(coordinatorId: String, mentorId: String): Future<bool>
getProxySubmissions(coordinatorId: String, filters: ActivityFilters): Future<List<Activity>>
Relationships
Dependencies (4)
Components this component depends on
Dependents (2)
Components that depend on this component
Related Data Entities (3)
Data entities managed by this component