Service Layer medium complexity mobile
1
Dependencies
2
Dependents
1
Entities
0
Integrations

Description

Business logic layer that fetches referral summary data and detailed referral lists from the backend API. Handles RBAC enforcement so peer mentors see only their own referrals while coordinators see aggregated data for their local association.

Feature: Recruitment Tracking

referral-tracking-service

Responsibilities

  • Fetch referral summary (counts by status) for the authenticated user from the REST API
  • Fetch paginated referral list with optional status filter
  • Enforce RBAC so coordinator queries are scoped to their local association
  • Handle webhook-triggered status updates (invited → registered → active)

Interfaces

getReferralSummary(userId: String): Future<ReferralSummary>
getReferrals(userId: String, filter: ReferralFilter, page: int): Future<PagedResult<Referral>>
getCoordinatorReferralStats(associationId: String): Future<CoordinatorReferralStats>

Relationships

Dependencies (1)

Components this component depends on

Dependents (2)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component