@dench.com/cli 3.11.12-staging.525 → 3.11.13-staging.526
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/campaign-agent.ts +3 -1
- package/package.json +1 -1
package/lib/campaign-agent.ts
CHANGED
|
@@ -1509,6 +1509,7 @@ async function draft(ctx: Context) {
|
|
|
1509
1509
|
// The draft starts with the caller's own accounts. A channel with none of
|
|
1510
1510
|
// their own takes the accounts teammates shared with them, named, rather
|
|
1511
1511
|
// than leaving a campaign that can't launch.
|
|
1512
|
+
let usesShared = false;
|
|
1512
1513
|
if (
|
|
1513
1514
|
campaign.status === "draft" &&
|
|
1514
1515
|
!senderPools.emailMailboxAccountIds &&
|
|
@@ -1524,6 +1525,7 @@ async function draft(ctx: Context) {
|
|
|
1524
1525
|
try {
|
|
1525
1526
|
await invoke(ctx, "campaigns.update", { sequenceId, ...fill });
|
|
1526
1527
|
campaign = await readCampaign(ctx, sequenceId);
|
|
1528
|
+
usesShared = true;
|
|
1527
1529
|
for (const line of [
|
|
1528
1530
|
...(fill.emailMailboxAccountIds
|
|
1529
1531
|
? sharedSenderNotes(senders.mailboxes, "email")
|
|
@@ -1551,7 +1553,7 @@ async function draft(ctx: Context) {
|
|
|
1551
1553
|
!senderPools.linkedinAccountIds
|
|
1552
1554
|
)
|
|
1553
1555
|
notice(
|
|
1554
|
-
|
|
1556
|
+
`${usesShared ? "Sending from" : "Sending from every connected account you own:"} ${plural(emailMailboxAccountIds.length, "mailbox", "mailboxes")} and ${plural(linkedinAccountIds.length, "LinkedIn account", "LinkedIn accounts")}${usesShared ? ", including the shared ones above" : ""}. Choose with --email-mailboxes / --linkedin-accounts (ids from dench campaign accounts).`,
|
|
1555
1557
|
);
|
|
1556
1558
|
const sendSchedules = campaign.sendSchedules ?? [];
|
|
1557
1559
|
const windows = sendSchedules
|