Function: fetchFacilityContactCards()
fetchFacilityContactCards(
svc,companyId,facilityId?):Promise<SectionRead<ContactCard>>
Defined in: src/db/queries/ar.ts:698
Every active contact for the collections surfaces — name, role, phone, email — company-wide or for one facility. Unlike the recipient reads this does NOT require an email: a contact with only a phone number is exactly who a collections call needs. Failure is reported, not emptied — "no contacts on file" and "couldn't load contacts" demand different operator actions.
Parameters
svc
SupabaseClient
companyId
string
facilityId?
string
Returns
Promise<SectionRead<ContactCard>>