Dattavani Backend: Notifications and Email

Dattavani Backend: Notifications and Email A data-flow diagram generated by Archify. 01 / Triggers 02 / Gate and content 03 / Deliver and record 04 / Send 05 / Reaches Kid triggers · cron jobs + kid API · 01 / Triggers · LOG, STR, LDR Kid triggers cron jobs + kid API LOG, STR, LDR Active-kid gate · is_active + consent · 02 / Gate and content · kid side only Active-kid gate is_active + consent kid side only Message catalog · title, body, channels · 02 / Gate and content · constants Message catalog title, body, channels constants Kid delivery · dedup kid + type · 03 / Deliver and record · per UTC day Kid delivery dedup kid + type per UTC day notifications · inbox, push_only, parent · 03 / Deliver and record · GET /api/notifications notifications inbox, push_only, parent GET /api/notifications Parent triggers · cron jobs + parent API · 01 / Triggers · TRL, EML Parent triggers cron jobs + parent API TRL, EML Parent delivery · dedup type or key · 03 / Deliver and record · row, push, email Parent delivery dedup type or key row, push, email Kid push · send_kid_push · 04 / Send Kid push send_kid_push device_sessions · FCM token per device · 04 / Send · set by app device_sessions FCM token per device set by app Parent push · send_parent_push · 04 / Send Parent push send_parent_push Email renderer · layout + EML body · 04 / Send · email_templates/ Email renderer layout + EML body email_templates/ Firebase FCM · HTTP v1 messages:send · 05 / Reaches · FCM_ENABLED Firebase FCM HTTP v1 messages:send FCM_ENABLED SMTP server · STARTTLS + login · 05 / Reaches · EMAIL_ENABLED SMTP server STARTTLS + login EMAIL_ENABLED candidate kids active kid kid entry TRL / EML entry inbox row title, body, data kid token parent token HTTP v1 send HTTP v1 send parent + entry parent row if push channel EML id + context text + HTML MIME Legend primary data policy / PII data store data flow