Annual Summary Service
Component Detail
Service Layer
high complexity
mobile
1
Dependencies
2
Dependents
7
Entities
0
Integrations
Description
Core business logic service that fetches pre-computed annual summary data from the backend REST API. Manages the summary lifecycle including checking data sufficiency (at least one full calendar year of activity), requesting server-side aggregation, and caching results locally. Coordinates with the feature flag system to gate access.
annual-summary-service
Responsibilities
- Fetch annual summary from REST API for a given user and year
- Check data sufficiency before requesting summary generation
- Cache summary results locally to avoid redundant API calls
- Coordinate with feature flag to determine feature availability
- Provide structured summary data to UI components
Interfaces
getSummary(userId, year)
isSummaryAvailable(userId, year)
refreshSummary(userId, year)
checkDataSufficiency(userId)
isFeatureEnabled()
getAvailableYears(userId)
invalidateCache(userId, year)
Relationships
Dependents (2)
Components that depend on this component
Related Data Entities (7)
Data entities managed by this component