synology_apm_repo.sdk.units.content.saas_contact module

Content Layer — Contact’s M365 CSV assembly. Pure bytes -> bytes JSON-to-CSV translation; the tree-navigation and object-fetching logic that calls this lives in units/saas/contact.py.

synology_apm_repo.sdk.units.content.saas_contact.build_contact_csv(meta_bytes)

M365 only: an Outlook-compatible CSV (UTF-8 BOM, header plus one row) from a contact META object’s client_metadata (Graph API contact fields): names, the first e-mail address and phone of each list, job, company, business address and notes. M365 contacts carry no photo, so the export has none.

Raises:

DataCorruptError – meta_bytes is not a JSON object.