Summary Share Asset Service
Component Detail
Service Layer
high complexity
backend
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Backend service responsible for generating static shareable assets (PNG image card or PDF) from a peer mentor's annual summary. Renders a privacy-safe, visually branded output server-side and returns a temporary signed URL for download by the mobile client. Ensures no sensitive contact or personal data leaks into the shareable output.
summary-share-asset-service
Responsibilities
- Render a branded summary image or PDF from summary data
- Enforce privacy rules to exclude sensitive personal data from shared output
- Generate a temporary signed download URL for the asset
- Cache generated assets keyed by summaryId and format to avoid redundant regeneration
Interfaces
generateAsset(summaryId, format, privacySettings)
getAssetUrl(summaryId, format)
invalidateAsset(summaryId)
renderSummaryCard(summaryData)
renderSummaryPdf(summaryData)