- Shipped
- November 11, 2026 at 8:22 AM UTC
- Author
- Kamo
- Commit
- c0344da
Extends LeadAudienceFilter with status/sub status (include or exclude), assignment, source, created/assigned/last-activity date rules, callback, birthday, loan purpose, occupancy, grid custom fields and campaign/drip exclusions; adds AccountAudienceFilter and LoanAudienceFilter. All compile into the existing hash-ranged AudienceQueries shapes as parameterised, index-seeking predicates, so they narrow AudienceScope and never widen it. Campaign selections persist the account/loan filters, excluded saved audiences and the saved audience they came from; gathering, estimating and browsing apply them. POST estimate/browse variants take the whole selection. Saved Audiences live at /api/email/audiences (table created on startup when missing), and /audiences/options plus the drip options carry the org's statuses, sources, fields, tiers, loan options and the capabilities actually applied.
