@curviate/cli 0.55.0 → 0.56.0
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/CHANGELOG.md +33 -0
- package/README.md +5 -4
- package/dist/{account-6L33JFZS.js → account-ZF5NEMID.js} +42 -17
- package/dist/{analytics-HGJGXRAM.js → analytics-M7JWS67A.js} +5 -5
- package/dist/{beta-consent-LIND4PPN.js → beta-consent-4Q2LZZQC.js} +4 -4
- package/dist/{billing-QKPP5NPR.js → billing-LYPSX5SR.js} +78 -6
- package/dist/{chunk-S234PC5E.js → chunk-7PLTQHNO.js} +1 -1
- package/dist/{chunk-EA5LJ4CS.js → chunk-AMTKGO37.js} +1 -1
- package/dist/{chunk-Z3RPQ5K4.js → chunk-CRO7PJ4I.js} +1 -1
- package/dist/{chunk-J34JU27C.js → chunk-DENWYJK2.js} +2 -2
- package/dist/{chunk-BC4N5X3N.js → chunk-EI64VFBE.js} +6 -6
- package/dist/{chunk-ENBIMEKS.js → chunk-IB6ARI3R.js} +1 -1
- package/dist/{chunk-OYZ27Q3B.js → chunk-J4SFOFMT.js} +14 -12
- package/dist/{chunk-AMMAA62Z.js → chunk-L3RJU7C3.js} +7 -7
- package/dist/{chunk-R7USRN52.js → chunk-MIOEYSBQ.js} +1 -1
- package/dist/{chunk-QBY6L77D.js → chunk-MWVTFTWV.js} +1 -1
- package/dist/{chunk-JKXGL7PT.js → chunk-RKNW4UX4.js} +42 -0
- package/dist/{chunk-KLXDFFHT.js → chunk-UOWOKEB2.js} +1 -1
- package/dist/{chunk-LGUZ52BU.js → chunk-UWRWZG4N.js} +1 -1
- package/dist/{chunk-FHSGANM6.js → chunk-VEMK4MJM.js} +4 -4
- package/dist/{chunk-Q5Z7FMXI.js → chunk-XP6S6E55.js} +1 -1
- package/dist/cli.js +32 -26
- package/dist/{comment-IIKLEAEK.js → comment-D6RSZTVK.js} +5 -5
- package/dist/{company-CX5TZNB5.js → company-3Z6PXGTW.js} +5 -5
- package/dist/{config-Y4FC7QKM.js → config-VY5MCJMN.js} +2 -2
- package/dist/{connect-GUUBX23F.js → connect-G2RTLV7G.js} +4 -4
- package/dist/{contact-OCYSFRTS.js → contact-QSLJCBDE.js} +7 -7
- package/dist/{contact-groups-HWJSYRFJ.js → contact-groups-OITAD73K.js} +9 -9
- package/dist/{contact-import-CTWSFT64.js → contact-import-LT7BKESC.js} +9 -9
- package/dist/core-RFTNNB6P.js +46 -0
- package/dist/{do-not-contact-6UVY3UKT.js → do-not-contact-ZA7KS5WD.js} +42 -16
- package/dist/{doctor-6CB6DCY3.js → doctor-JQT3DO6G.js} +3 -3
- package/dist/{document-ADK4GZA7.js → document-H65EXU4L.js} +1 -1
- package/dist/{domain-BUJMHYIV.js → domain-7EX4E34B.js} +5 -5
- package/dist/{draft-SII6E6Z6.js → draft-7U6H4BPF.js} +3 -3
- package/dist/{enrollment-OXGR5WVI.js → enrollment-AZ6XGVVL.js} +7 -5
- package/dist/{examples-77WVMKZQ.js → examples-IGQJCSNL.js} +1 -1
- package/dist/{export-D32J5GRN.js → export-OYMQXL62.js} +4 -4
- package/dist/{feed-HOFHCP6W.js → feed-M5D4SJW7.js} +4 -4
- package/dist/{group-AMYOAGNS.js → group-UTC3YBKE.js} +4 -4
- package/dist/{inbox-NS2LB2WQ.js → inbox-VSGNHSLG.js} +4 -4
- package/dist/{inboxes-XWUZJ5PN.js → inboxes-23C2MJK4.js} +4 -4
- package/dist/{incoming-UIWRL6QS.js → incoming-QVPP32K7.js} +5 -5
- package/dist/{job-TKGPXU26.js → job-ZHVFFRWE.js} +4 -4
- package/dist/{login-B2YWX2JP.js → login-6OTNXEJZ.js} +4 -4
- package/dist/{mailbox-LLSGX2FF.js → mailbox-HD2UXZCA.js} +9 -10
- package/dist/{message-M4THMNRZ.js → message-PIV77W47.js} +5 -5
- package/dist/{motion-2OUGYR3O.js → motion-AHYF34DP.js} +98 -23
- package/dist/{network-MFWKXTEV.js → network-RJHJFZEY.js} +5 -5
- package/dist/{notification-5K4TCYQA.js → notification-XGR4NT3S.js} +4 -4
- package/dist/{notifications-2GKUJB7C.js → notifications-BHRWSHPR.js} +5 -5
- package/dist/{post-BHH7YKGM.js → post-Z7AVDDKA.js} +5 -5
- package/dist/{profile-GKMRRKZF.js → profile-YZNBX2RP.js} +5 -5
- package/dist/{recruiter-J53ZSD4P.js → recruiter-EXM4P7X7.js} +6 -6
- package/dist/{sales-nav-6I5SYTRX.js → sales-nav-CKDSEXV2.js} +6 -6
- package/dist/{search-HS2YAA33.js → search-B7FB6674.js} +6 -6
- package/dist/{setup-IYVOGVC6.js → setup-VZVPLJ4V.js} +4 -4
- package/dist/{team-N6ILUHAD.js → team-PYABBUHO.js} +5 -5
- package/dist/{tier-QWXKFESB.js → tier-PRK4WQKR.js} +4 -4
- package/dist/{unibox-D4WIHIZX.js → unibox-ZNKX2EKL.js} +5 -5
- package/dist/{webhook-PKWGZZO2.js → webhook-V74EV4E2.js} +5 -5
- package/package.json +2 -2
- package/dist/core-37XZS2RG.js +0 -46
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveSecret
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DENWYJK2.js";
|
|
5
5
|
import {
|
|
6
6
|
fail,
|
|
7
7
|
outputOpts,
|
|
8
8
|
rootClient,
|
|
9
9
|
usage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UWRWZG4N.js";
|
|
11
11
|
import {
|
|
12
12
|
buildPreviewOutput
|
|
13
13
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
readablePage,
|
|
23
23
|
rejectPaginationModifiersWithoutAll,
|
|
24
24
|
streamAll
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
26
26
|
import {
|
|
27
27
|
renderSuccess,
|
|
28
28
|
writeNdjsonItem
|
|
29
29
|
} from "./chunk-QM57YDJE.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-IB6ARI3R.js";
|
|
31
|
+
import "./chunk-7PLTQHNO.js";
|
|
32
32
|
import {
|
|
33
33
|
GLOBAL_FLAGS,
|
|
34
34
|
READ_SINGLE_FLAGS,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
} from "./chunk-QLKGOIWS.js";
|
|
38
38
|
import {
|
|
39
39
|
DESCRIPTIONS
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-MWVTFTWV.js";
|
|
41
41
|
import {
|
|
42
42
|
readFileFlag
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RKNW4UX4.js";
|
|
44
44
|
import "./chunk-FDJMAF7D.js";
|
|
45
45
|
import "./chunk-ZYURL5VK.js";
|
|
46
46
|
import {
|
|
@@ -51,9 +51,8 @@ import {
|
|
|
51
51
|
import { defineCommand } from "citty";
|
|
52
52
|
var STATES = ["connected", "ramping", "paused", "paused_by_bounces", "paused_by_provider", "reconnect_needed"];
|
|
53
53
|
var SIGNATURE_MAX_BYTES = 64 * 1024;
|
|
54
|
-
var online = (fn) => async ({ args
|
|
54
|
+
var online = (fn) => async ({ args }) => {
|
|
55
55
|
const f = args;
|
|
56
|
-
if ((rawArgs ?? []).some((t) => t.startsWith("--password-stdin="))) usage("--password-stdin takes no value: the password is read from stdin.");
|
|
57
56
|
await fn(await rootClient(f), f);
|
|
58
57
|
};
|
|
59
58
|
var preview = (method, args, body = {}) => void process.stdout.write(JSON.stringify(buildPreviewOutput({ method, args, body })) + "\n");
|
|
@@ -395,7 +394,7 @@ var mailboxCommand = defineCommand({
|
|
|
395
394
|
meta: { name: "mailbox", description: DESCRIPTIONS["mailbox"] },
|
|
396
395
|
subCommands: { list: listCmd, get: getCmd, update: updateCmd, pause: pauseCmd, resume: resumeCmd, remove: removeCmd, discover: discoverCmd, connect: connectCmd, reconnect: reconnectCmd },
|
|
397
396
|
async run() {
|
|
398
|
-
const { showHelp } = await import("./examples-
|
|
397
|
+
const { showHelp } = await import("./examples-IGQJCSNL.js");
|
|
399
398
|
await showHelp(mailboxCommand, ["curviate", "mailbox"]);
|
|
400
399
|
}
|
|
401
400
|
});
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VEMK4MJM.js";
|
|
17
17
|
import "./chunk-UWO2D4HW.js";
|
|
18
18
|
import "./chunk-UEAX6KUB.js";
|
|
19
19
|
import "./chunk-Q3ZPRFUX.js";
|
|
20
20
|
import "./chunk-VHNF6OZD.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-CRO7PJ4I.js";
|
|
22
22
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-MIOEYSBQ.js";
|
|
24
24
|
import "./chunk-QM57YDJE.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-7PLTQHNO.js";
|
|
26
26
|
import "./chunk-QLKGOIWS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-MWVTFTWV.js";
|
|
28
28
|
import "./chunk-FDJMAF7D.js";
|
|
29
29
|
import "./chunk-ZYURL5VK.js";
|
|
30
30
|
import "./chunk-RDKTHFQ6.js";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
} from "./chunk-VHNF6OZD.js";
|
|
6
6
|
import {
|
|
7
7
|
sendInChunks
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XP6S6E55.js";
|
|
9
9
|
import {
|
|
10
10
|
fail,
|
|
11
11
|
listFlag,
|
|
12
12
|
outputOpts,
|
|
13
13
|
rootClient,
|
|
14
14
|
usage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UWRWZG4N.js";
|
|
16
16
|
import {
|
|
17
17
|
buildPreviewOutput
|
|
18
18
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
intFlag
|
|
21
21
|
} from "./chunk-NNV2OYEF.js";
|
|
22
22
|
import {
|
|
23
|
+
DEFAULT_PAGE_DELAY_MS,
|
|
23
24
|
pageDelayFromFlags,
|
|
24
25
|
readCursorFlag,
|
|
25
26
|
readMaxPagesFlag,
|
|
@@ -27,12 +28,12 @@ import {
|
|
|
27
28
|
readablePage,
|
|
28
29
|
rejectPaginationModifiersWithoutAll,
|
|
29
30
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
31
32
|
import {
|
|
32
33
|
renderSuccess,
|
|
33
34
|
writeNdjsonItem
|
|
34
35
|
} from "./chunk-QM57YDJE.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-7PLTQHNO.js";
|
|
36
37
|
import {
|
|
37
38
|
GLOBAL_FLAGS,
|
|
38
39
|
READ_SINGLE_FLAGS,
|
|
@@ -41,14 +42,14 @@ import {
|
|
|
41
42
|
} from "./chunk-QLKGOIWS.js";
|
|
42
43
|
import {
|
|
43
44
|
DESCRIPTIONS
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MWVTFTWV.js";
|
|
45
46
|
import {
|
|
46
47
|
documentSchema,
|
|
47
48
|
parseDocument,
|
|
48
49
|
readFileFlag,
|
|
49
50
|
reportIssues,
|
|
50
51
|
validate
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-RKNW4UX4.js";
|
|
52
53
|
import "./chunk-FDJMAF7D.js";
|
|
53
54
|
import {
|
|
54
55
|
isStdinToken
|
|
@@ -525,20 +526,55 @@ async function runUpdate(c, f) {
|
|
|
525
526
|
}
|
|
526
527
|
}
|
|
527
528
|
var lifecycle = (method) => async (c, f) => {
|
|
528
|
-
|
|
529
|
+
const body = f["skip-missing-email"] ? { skip_missing_email: true } : void 0;
|
|
530
|
+
if (f.preview) return preview(`campaigns.${method}`, { id: f.id }, body);
|
|
529
531
|
try {
|
|
530
|
-
|
|
532
|
+
const id = f.id ?? "";
|
|
533
|
+
renderSuccess(await (method === "start" || method === "resume" ? c.campaigns[method](id, body) : c.campaigns[method](id)), outputOpts(f), process);
|
|
531
534
|
} catch (err) {
|
|
532
535
|
await fail(err, f);
|
|
533
536
|
}
|
|
534
537
|
};
|
|
538
|
+
async function previewAll(c, f, params) {
|
|
539
|
+
const maxPages = readMaxPagesFlag(f, process);
|
|
540
|
+
const delay = pageDelayFromFlags(f) ?? DEFAULT_PAGE_DELAY_MS;
|
|
541
|
+
let merged;
|
|
542
|
+
for (let pages = 1; ; pages++) {
|
|
543
|
+
const page = await c.campaigns.preview(f.id ?? "", params);
|
|
544
|
+
merged = merged ? { ...merged, samples: [...merged["samples"], ...page["samples"] ?? []], next_cursor: page["next_cursor"] } : page;
|
|
545
|
+
const next = page["next_cursor"];
|
|
546
|
+
if (typeof next !== "string" || !next) return merged;
|
|
547
|
+
if (pages >= maxPages) {
|
|
548
|
+
process.stderr.write(`warning: stopped after ${maxPages} pages (--max-pages); next_cursor resumes it.
|
|
549
|
+
`);
|
|
550
|
+
return merged;
|
|
551
|
+
}
|
|
552
|
+
params = { ...params, cursor: next };
|
|
553
|
+
if (delay > 0) await new Promise((r) => setTimeout(r, delay));
|
|
554
|
+
}
|
|
555
|
+
}
|
|
535
556
|
async function runPreview(c, f) {
|
|
536
557
|
const params = {};
|
|
537
558
|
if (f.sample !== void 0) params["sample"] = intFlag("sample", f.sample, 1, 20);
|
|
559
|
+
if (f.limit !== void 0) params["limit"] = intFlag("limit", f.limit, 1, 20);
|
|
538
560
|
if (f.lead !== void 0) params["lead_ids"] = listFlag("lead", f.lead);
|
|
539
|
-
if (params["sample"] !== void 0 && params["
|
|
561
|
+
if (params["sample"] !== void 0 && params["limit"] !== void 0) usage("--sample is an alias of --limit: pass one.");
|
|
562
|
+
if ((params["sample"] ?? params["limit"]) !== void 0 && params["lead_ids"] !== void 0) usage("--limit and --lead cannot be combined: name the Leads, or let Curviate page.");
|
|
563
|
+
if (f.all && params["lead_ids"] !== void 0) usage("--all pages over every Lead; with --lead there is one page.");
|
|
564
|
+
rejectPaginationModifiersWithoutAll(f, process);
|
|
565
|
+
const cursor = readCursorFlag(f, process);
|
|
566
|
+
if (cursor) params["cursor"] = cursor;
|
|
567
|
+
try {
|
|
568
|
+
const result = f.all ? await previewAll(c, f, params) : await c.campaigns.preview(f.id ?? "", params);
|
|
569
|
+
renderSuccess(readableObject(result), outputOpts(f), process);
|
|
570
|
+
} catch (err) {
|
|
571
|
+
await fail(err, f);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
async function runCheck(c, f) {
|
|
575
|
+
if (f.preview) return preview("campaigns.check", { id: f.id });
|
|
540
576
|
try {
|
|
541
|
-
renderSuccess(
|
|
577
|
+
renderSuccess(await c.campaigns.check(f.id ?? ""), outputOpts(f), process);
|
|
542
578
|
} catch (err) {
|
|
543
579
|
await fail(err, f);
|
|
544
580
|
}
|
|
@@ -727,13 +763,23 @@ EOF`
|
|
|
727
763
|
},
|
|
728
764
|
run: online(runUpdate)
|
|
729
765
|
});
|
|
766
|
+
var SKIP_MISSING_EMAIL = {
|
|
767
|
+
"skip-missing-email": {
|
|
768
|
+
type: "boolean",
|
|
769
|
+
description: "With an email step: start even though some Leads have no email address (`curviate campaign check` counts them). They are never enrolled either way."
|
|
770
|
+
}
|
|
771
|
+
};
|
|
730
772
|
var lifecycleCmd = (name, meta) => defineCommand({
|
|
731
|
-
meta: {
|
|
732
|
-
|
|
773
|
+
meta: {
|
|
774
|
+
name,
|
|
775
|
+
...meta,
|
|
776
|
+
examples: [`curviate campaign ${name} mot_YOUR_CAMPAIGN_ID`, ...name === "start" ? ["curviate campaign start mot_YOUR_CAMPAIGN_ID --skip-missing-email"] : []]
|
|
777
|
+
},
|
|
778
|
+
args: { ...WRITE_SINGLE_FLAGS, id: ID, ...name === "start" || name === "resume" ? SKIP_MISSING_EMAIL : {} },
|
|
733
779
|
run: online(lifecycle(name))
|
|
734
780
|
});
|
|
735
781
|
var startCmd = lifecycleCmd("start", {
|
|
736
|
-
description: "Start a draft: scheduled when its start time is ahead, else active. Freezes Sequence version 1. A Campaign missing what it needs is refused with every gap listed. Needs Automate.",
|
|
782
|
+
description: "Start a draft: scheduled when its start time is ahead, else active. Freezes Sequence version 1. A Campaign missing what it needs is refused with every gap listed. With an email step it needs `curviate campaign check` at the current Sequence revision, and is refused while Leads have no email address unless --skip-missing-email. Needs Automate.",
|
|
737
783
|
risk: "high",
|
|
738
784
|
rules: {
|
|
739
785
|
changes: "The Campaign starts enrolling its Leads and running its Steps from its sending Accounts, paced on its schedule.",
|
|
@@ -743,8 +789,13 @@ var startCmd = lifecycleCmd("start", {
|
|
|
743
789
|
undo: "`curviate campaign pause <campaign_id>` stops new Steps; what was sent stays sent.",
|
|
744
790
|
blast_radius: "Every Lead of its Lead lists, from every sending Account, each Step spending that Account's budgets (`curviate account get <account_id>`)."
|
|
745
791
|
},
|
|
746
|
-
errors: {
|
|
747
|
-
|
|
792
|
+
errors: {
|
|
793
|
+
CAMPAIGN_NOT_STARTABLE: "a gap stops it (Lead list, sending Account, Sequence, with an email step the Lead check and Leads without an address); each is listed.",
|
|
794
|
+
CAMPAIGN_STATUS_CONFLICT: "only a draft starts.",
|
|
795
|
+
...ROLE_ERRORS,
|
|
796
|
+
TIER_REQUIRED: "Campaigns need the Automate plan."
|
|
797
|
+
},
|
|
798
|
+
seeAlso: ["curviate campaign check", "curviate campaign preview", "curviate campaign pause"]
|
|
748
799
|
});
|
|
749
800
|
var pauseCmd = lifecycleCmd("pause", {
|
|
750
801
|
description: "Pause an active or scheduled Campaign: no Step runs until it is resumed. Waits keep their time.",
|
|
@@ -760,7 +811,7 @@ var pauseCmd = lifecycleCmd("pause", {
|
|
|
760
811
|
seeAlso: SEE_LIFECYCLE
|
|
761
812
|
});
|
|
762
813
|
var resumeCmd = lifecycleCmd("resume", {
|
|
763
|
-
description: "Resume a paused Campaign. Runs the start checks again. Needs Automate.",
|
|
814
|
+
description: "Resume a paused Campaign. Runs the start checks again, the Lead check and --skip-missing-email included. Needs Automate.",
|
|
764
815
|
risk: "high",
|
|
765
816
|
rules: {
|
|
766
817
|
changes: "The Campaign's Steps run again from its sending Accounts.",
|
|
@@ -804,18 +855,41 @@ var deleteCmd = lifecycleCmd("delete", {
|
|
|
804
855
|
var previewCmd = defineCommand({
|
|
805
856
|
meta: {
|
|
806
857
|
name: "preview",
|
|
807
|
-
description: "What the Campaign would do, in any status: every path through its Sequence, rendered messages for
|
|
858
|
+
description: "What the Campaign would do, in any status: every path through its Sequence, rendered messages for its Leads a page at a time (--limit, 1 to 20, default 5; --cursor the previous page's next_cursor; --all every page, merged) or for named Leads, and the budget projection on the first page: per Account the pool that binds its pace, the expected actions a day (a draft: the mean daily invitations, messages and InMails of the first 7 days of its forecast, as if turned on now), and warnings (hours_below_share, no_sending_account). A read: never reaches LinkedIn, spends nothing.",
|
|
808
859
|
risk: "read",
|
|
809
|
-
examples: [
|
|
860
|
+
examples: [
|
|
861
|
+
"curviate campaign preview mot_YOUR_CAMPAIGN_ID",
|
|
862
|
+
"curviate campaign preview mot_YOUR_CAMPAIGN_ID --limit 3",
|
|
863
|
+
"curviate campaign preview mot_YOUR_CAMPAIGN_ID --all"
|
|
864
|
+
]
|
|
810
865
|
},
|
|
811
866
|
args: {
|
|
812
|
-
...readOnly(
|
|
867
|
+
...readOnly(GLOBAL_FLAGS),
|
|
813
868
|
id: ID,
|
|
814
|
-
sample: { type: "string", description: "
|
|
815
|
-
lead: { type: "string", description: "A Lead id (con_...) to render; repeatable, or a comma list. Not with --
|
|
869
|
+
sample: { type: "string", description: "Alias of --limit." },
|
|
870
|
+
lead: { type: "string", description: "A Lead id (con_...) to render; repeatable, or a comma list. Not with --limit or --all." }
|
|
816
871
|
},
|
|
817
872
|
run: online(runPreview)
|
|
818
873
|
});
|
|
874
|
+
var checkCmd = defineCommand({
|
|
875
|
+
meta: {
|
|
876
|
+
name: "check",
|
|
877
|
+
description: "Run the Lead check: one count over every Lead the Campaign would enroll (no usable email address, a bounced one, on the Do-not-contact list for email only) and the Lead variables without a fallback they lack. Stored as lead_check on the Campaign; starting a Campaign with an email step needs one at the current Sequence revision. Any status; sends nothing.",
|
|
878
|
+
risk: "write",
|
|
879
|
+
rules: {
|
|
880
|
+
changes: "Stores the check as the Campaign's lead_check, replacing the previous one. Nothing is sent.",
|
|
881
|
+
visible_to: "Your Team.",
|
|
882
|
+
budget_rows: [],
|
|
883
|
+
retry: "Safe: a retry runs the check again.",
|
|
884
|
+
undo: "Not needed: it changes no Lead and no Step."
|
|
885
|
+
},
|
|
886
|
+
output: ["The check: leads, without_email, email_bounced, no_email, fields[] (variable, steps, on_missing, missing), checked_at, sequence_revision."],
|
|
887
|
+
seeAlso: ["curviate campaign start", "curviate campaign preview"],
|
|
888
|
+
examples: ["curviate campaign check mot_YOUR_CAMPAIGN_ID"]
|
|
889
|
+
},
|
|
890
|
+
args: { ...WRITE_SINGLE_FLAGS, id: ID },
|
|
891
|
+
run: online(runCheck)
|
|
892
|
+
});
|
|
819
893
|
var membershipCmd = (kind) => defineCommand({
|
|
820
894
|
meta: {
|
|
821
895
|
name: kind,
|
|
@@ -929,7 +1003,7 @@ var voiceClipCommand = defineCommand({
|
|
|
929
1003
|
meta: { name: "voice-clip", description: DESCRIPTIONS.campaignVoiceClip },
|
|
930
1004
|
subCommands: { upload: voiceClipUploadCmd, get: voiceClipGetCmd },
|
|
931
1005
|
async run() {
|
|
932
|
-
const { showHelp } = await import("./examples-
|
|
1006
|
+
const { showHelp } = await import("./examples-IGQJCSNL.js");
|
|
933
1007
|
await showHelp(voiceClipCommand, ["curviate", "campaign", "voice-clip"]);
|
|
934
1008
|
}
|
|
935
1009
|
});
|
|
@@ -946,6 +1020,7 @@ var campaignCommand = defineCommand({
|
|
|
946
1020
|
archive: archiveCmd,
|
|
947
1021
|
delete: deleteCmd,
|
|
948
1022
|
preview: previewCmd,
|
|
1023
|
+
check: checkCmd,
|
|
949
1024
|
add: membershipCmd("add"),
|
|
950
1025
|
remove: membershipCmd("remove"),
|
|
951
1026
|
lint: lintCmd,
|
|
@@ -953,7 +1028,7 @@ var campaignCommand = defineCommand({
|
|
|
953
1028
|
"voice-clip": voiceClipCommand
|
|
954
1029
|
},
|
|
955
1030
|
async run() {
|
|
956
|
-
const { showHelp } = await import("./examples-
|
|
1031
|
+
const { showHelp } = await import("./examples-IGQJCSNL.js");
|
|
957
1032
|
await showHelp(campaignCommand, ["curviate", "campaign"]);
|
|
958
1033
|
}
|
|
959
1034
|
});
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UWRWZG4N.js";
|
|
17
17
|
import {
|
|
18
18
|
buildPreviewOutput
|
|
19
19
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
readablePage,
|
|
28
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
29
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
31
31
|
import {
|
|
32
32
|
renderSuccess,
|
|
33
33
|
writeNdjsonItem
|
|
34
34
|
} from "./chunk-QM57YDJE.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-7PLTQHNO.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
WRITE_SINGLE_FLAGS,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-QLKGOIWS.js";
|
|
41
41
|
import {
|
|
42
42
|
DESCRIPTIONS
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MWVTFTWV.js";
|
|
44
44
|
import "./chunk-ZYURL5VK.js";
|
|
45
45
|
|
|
46
46
|
// src/commands/network.ts
|
|
@@ -225,7 +225,7 @@ var networkCommand = defineCommand({
|
|
|
225
225
|
meta: { name: "network", description: DESCRIPTIONS.network },
|
|
226
226
|
subCommands: { list: listCmd, status: statusCmd, export: exportCmd, resync: resyncCmd },
|
|
227
227
|
async run() {
|
|
228
|
-
const { showHelp } = await import("./examples-
|
|
228
|
+
const { showHelp } = await import("./examples-IGQJCSNL.js");
|
|
229
229
|
await showHelp(networkCommand, ["curviate", "network"]);
|
|
230
230
|
}
|
|
231
231
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-Q3ZPRFUX.js";
|
|
6
6
|
import {
|
|
7
7
|
requireAccount
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CRO7PJ4I.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPreviewOutput
|
|
11
11
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readablePage,
|
|
17
17
|
rejectPaginationModifiersWithoutAll,
|
|
18
18
|
streamAll
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
20
20
|
import {
|
|
21
21
|
renderError,
|
|
22
22
|
renderSuccess,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
createClient,
|
|
28
28
|
resolveEffectiveConfig
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7PLTQHNO.js";
|
|
30
30
|
import {
|
|
31
31
|
GLOBAL_FLAGS,
|
|
32
32
|
WRITE_SINGLE_FLAGS,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "./chunk-QLKGOIWS.js";
|
|
35
35
|
import {
|
|
36
36
|
DESCRIPTIONS
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-MWVTFTWV.js";
|
|
38
38
|
import "./chunk-ZYURL5VK.js";
|
|
39
39
|
import "./chunk-RDKTHFQ6.js";
|
|
40
40
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UWRWZG4N.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
readablePage,
|
|
20
20
|
rejectPaginationModifiersWithoutAll,
|
|
21
21
|
streamAll
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
23
23
|
import {
|
|
24
24
|
renderSuccess,
|
|
25
25
|
writeNdjsonItem
|
|
26
26
|
} from "./chunk-QM57YDJE.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-7PLTQHNO.js";
|
|
28
28
|
import {
|
|
29
29
|
GLOBAL_FLAGS,
|
|
30
30
|
READ_SINGLE_FLAGS,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-QLKGOIWS.js";
|
|
34
34
|
import {
|
|
35
35
|
DESCRIPTIONS
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MWVTFTWV.js";
|
|
37
37
|
import "./chunk-ZYURL5VK.js";
|
|
38
38
|
|
|
39
39
|
// src/commands/notifications.ts
|
|
@@ -222,7 +222,7 @@ var notificationsCommand = defineCommand({
|
|
|
222
222
|
meta: { name: "notification", description: DESCRIPTIONS.notification },
|
|
223
223
|
subCommands: { list: listCmd, count: countCmd, read: readCmd, "read-all": readAllCmd, archive: archiveCmd, unarchive: unarchiveCmd },
|
|
224
224
|
async run() {
|
|
225
|
-
const { showHelp } = await import("./examples-
|
|
225
|
+
const { showHelp } = await import("./examples-IGQJCSNL.js");
|
|
226
226
|
await showHelp(notificationsCommand, ["curviate", "notification"]);
|
|
227
227
|
}
|
|
228
228
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UOWOKEB2.js";
|
|
5
5
|
import "./chunk-UEAX6KUB.js";
|
|
6
6
|
import {
|
|
7
7
|
AS_ACCOUNT,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-VHNF6OZD.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CRO7PJ4I.js";
|
|
19
19
|
import {
|
|
20
20
|
buildPreviewOutput
|
|
21
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
readablePage,
|
|
28
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
29
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
31
31
|
import {
|
|
32
32
|
renderError,
|
|
33
33
|
renderSuccess,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
createClient,
|
|
39
39
|
resolveEffectiveConfig
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7PLTQHNO.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_FLAGS,
|
|
43
43
|
READ_SINGLE_FLAGS,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-QLKGOIWS.js";
|
|
48
48
|
import {
|
|
49
49
|
DESCRIPTIONS
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-MWVTFTWV.js";
|
|
51
51
|
import {
|
|
52
52
|
resolveTextOrStdin
|
|
53
53
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
resolveMemberOrMeProviderId,
|
|
9
9
|
resolveMemberProviderId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UOWOKEB2.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveIdentifier
|
|
13
13
|
} from "./chunk-UEAX6KUB.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-VHNF6OZD.js";
|
|
30
30
|
import {
|
|
31
31
|
requireAccount
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CRO7PJ4I.js";
|
|
33
33
|
import {
|
|
34
34
|
buildPreviewOutput
|
|
35
35
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
readablePage,
|
|
43
43
|
rejectPaginationModifiersWithoutAll,
|
|
44
44
|
streamAll
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
46
46
|
import {
|
|
47
47
|
renderError,
|
|
48
48
|
renderSuccess,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
createClient,
|
|
54
54
|
resolveEffectiveConfig
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7PLTQHNO.js";
|
|
56
56
|
import {
|
|
57
57
|
GLOBAL_FLAGS,
|
|
58
58
|
READ_SINGLE_FLAGS,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
} from "./chunk-QLKGOIWS.js";
|
|
62
62
|
import {
|
|
63
63
|
DESCRIPTIONS
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-MWVTFTWV.js";
|
|
65
65
|
import "./chunk-ZYURL5VK.js";
|
|
66
66
|
import "./chunk-RDKTHFQ6.js";
|
|
67
67
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DEFAULT_FILTER_READERS,
|
|
4
4
|
assembleFilters,
|
|
5
5
|
splitCsv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AMTKGO37.js";
|
|
7
7
|
import {
|
|
8
8
|
BinaryOutputError,
|
|
9
9
|
writeBinaryOutput
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-VHNF6OZD.js";
|
|
28
28
|
import {
|
|
29
29
|
requireAccount
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CRO7PJ4I.js";
|
|
31
31
|
import {
|
|
32
32
|
buildPreviewOutput
|
|
33
33
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
readablePage,
|
|
40
40
|
rejectPaginationModifiersWithoutAll,
|
|
41
41
|
streamAll
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
43
43
|
import {
|
|
44
44
|
isJsonMode,
|
|
45
45
|
renderError,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
createClient,
|
|
52
52
|
downloadBinary,
|
|
53
53
|
resolveEffectiveConfig
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7PLTQHNO.js";
|
|
55
55
|
import {
|
|
56
56
|
GLOBAL_FLAGS,
|
|
57
57
|
NON_STREAM_FLAGS,
|
|
@@ -62,14 +62,14 @@ import {
|
|
|
62
62
|
} from "./chunk-QLKGOIWS.js";
|
|
63
63
|
import {
|
|
64
64
|
DESCRIPTIONS
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-MWVTFTWV.js";
|
|
66
66
|
import {
|
|
67
67
|
documentSchema,
|
|
68
68
|
parseDocument,
|
|
69
69
|
readFileFlag,
|
|
70
70
|
reportIssues,
|
|
71
71
|
validate
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-RKNW4UX4.js";
|
|
73
73
|
import "./chunk-FDJMAF7D.js";
|
|
74
74
|
import "./chunk-ZYURL5VK.js";
|
|
75
75
|
import "./chunk-RDKTHFQ6.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DEFAULT_FILTER_READERS,
|
|
4
4
|
assembleFilters,
|
|
5
5
|
splitCsv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AMTKGO37.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveIdentifier
|
|
9
9
|
} from "./chunk-UEAX6KUB.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-VHNF6OZD.js";
|
|
20
20
|
import {
|
|
21
21
|
requireAccount
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CRO7PJ4I.js";
|
|
23
23
|
import {
|
|
24
24
|
buildPreviewOutput
|
|
25
25
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
readablePage,
|
|
32
32
|
rejectPaginationModifiersWithoutAll,
|
|
33
33
|
streamAll
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MIOEYSBQ.js";
|
|
35
35
|
import {
|
|
36
36
|
renderError,
|
|
37
37
|
renderSuccess,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
createClient,
|
|
43
43
|
resolveEffectiveConfig
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-7PLTQHNO.js";
|
|
45
45
|
import {
|
|
46
46
|
GLOBAL_FLAGS,
|
|
47
47
|
READ_SINGLE_FLAGS,
|
|
@@ -50,8 +50,8 @@ import {
|
|
|
50
50
|
} from "./chunk-QLKGOIWS.js";
|
|
51
51
|
import {
|
|
52
52
|
DESCRIPTIONS
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-MWVTFTWV.js";
|
|
54
|
+
import "./chunk-RKNW4UX4.js";
|
|
55
55
|
import "./chunk-FDJMAF7D.js";
|
|
56
56
|
import "./chunk-ZYURL5VK.js";
|
|
57
57
|
import "./chunk-RDKTHFQ6.js";
|