TypeScript module that parses campaign send options and plans message delivery.
// Source: https://github.com/babyvibe/deplao-builder | License: MIT | Copyright 2026 babyvibe
// Provided via justclaw.it.com; keep this notice with the code.
/**
* How one CRM campaign block (text + images) is sent to one recipient — shared by the queue
* (`services/crm/campaignBlockSender`) and the campaign screens, so the preview shows exactly
* what will be sent. Options live in the template JSON next to `mode` / `blocks`:
* `{ mode, blocks, order?: 'text_first' | 'images_first', combine?: boolean }`.
*
* Defaults (`text_first`, no combine) keep the historical behaviour: text message, then images.
*/
export type CampaignSendOrder = 'text_first' | 'images_first';
export interface CampaignSendOptions {
/** Which part goes first when text and images are sent as separate messag
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key