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

Description

Tracks and records delivery and read receipt events for encrypted assignments. Emits a delivery event when the encrypted payload is successfully downloaded to the recipient's device, and a read receipt event when the content is decrypted and rendered. Updates the coordinator's status overview in real time.

Feature: Encrypted Task Assignment to Peer Mentors

delivery-confirmation-service

Responsibilities

  • Record delivery confirmation when encrypted payload is downloaded
  • Record read receipt when plaintext content is rendered to recipient
  • Notify coordinator in real time via Supabase real-time channel
  • Expose delivery and read status per assignment for status overview

Interfaces

recordDeliveryConfirmation(assignmentId, userId)
recordReadReceipt(assignmentId, userId)
getDeliveryStatus(assignmentId)
subscribeToStatusChanges(coordinatorId, callback)
listUnacknowledgedAssignments(afterDays)

Related Data Entities (2)

Data entities managed by this component