@curviate/cli 0.50.0-next.2 → 0.50.0-next.4
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 +10 -0
- package/dist/{account-O2P6V2VZ.js → account-7KKJEHAM.js} +10 -10
- package/dist/{analytics-54LKQCRK.js → analytics-XBAFRYSC.js} +4 -4
- package/dist/{beta-consent-UJOG5NTW.js → beta-consent-FP2QGN6M.js} +3 -3
- package/dist/{billing-SG556BMY.js → billing-AQ5VNIYA.js} +4 -4
- package/dist/{chunk-4BJIDUCV.js → chunk-2MWTZLAG.js} +3 -3
- package/dist/{chunk-BOI6T4FI.js → chunk-3SF6JIMA.js} +1 -1
- package/dist/{chunk-PEUUJ5NG.js → chunk-56JSZNRW.js} +1 -1
- package/dist/{chunk-A57ZILRU.js → chunk-6SBO4WXA.js} +1 -1
- package/dist/{chunk-MPGYLZI6.js → chunk-COYDNWKF.js} +1 -1
- package/dist/{chunk-UDWAZ6SK.js → chunk-FO54X4T2.js} +1 -1
- package/dist/{chunk-2VVJAHSU.js → chunk-JYCNHE72.js} +1 -1
- package/dist/{chunk-TYNVJDYK.js → chunk-PHKICMO7.js} +14 -0
- package/dist/{chunk-BK3TDBUQ.js → chunk-Q5GVXN7Z.js} +1 -1
- package/dist/{chunk-I24IVJVR.js → chunk-QL6VKMTA.js} +10 -10
- package/dist/{chunk-22WLAZTX.js → chunk-RRSWFGXM.js} +5 -5
- package/dist/{chunk-GHMRPX5H.js → chunk-XDG3TOKG.js} +2 -0
- package/dist/cli.js +23 -23
- package/dist/{comment-KBD4AMUZ.js → comment-OZZGWNIV.js} +4 -4
- package/dist/{company-5F2MOIX2.js → company-HM23JZT4.js} +5 -5
- package/dist/{config-NIPXQQDQ.js → config-KHXQZD6F.js} +1 -1
- package/dist/{connect-JA44YS6F.js → connect-HBQ4PLTS.js} +5 -5
- package/dist/{contact-CVHOW7CC.js → contact-325QZ5IB.js} +6 -6
- package/dist/{contact-groups-U24LLLTL.js → contact-groups-TXPUYQYC.js} +8 -8
- package/dist/{contact-import-MWZUDQIQ.js → contact-import-6G2DUCIN.js} +8 -8
- package/dist/{core-5G2GMBUS.js → core-HXREJJCJ.js} +17 -17
- package/dist/{do-not-contact-SVF6MEU3.js → do-not-contact-CP6WKW5T.js} +4 -4
- package/dist/{doctor-2ER265SH.js → doctor-GDBH2PH7.js} +2 -2
- package/dist/{document-GFRWPQFV.js → document-RXBOZG6M.js} +1 -1
- package/dist/{draft-BWE6LV7U.js → draft-IWI7E5VJ.js} +2 -2
- package/dist/{enrollment-BOO7UAJQ.js → enrollment-2JVHRUNI.js} +5 -5
- package/dist/{examples-JJB4DZKK.js → examples-74FXGJ7X.js} +1 -1
- package/dist/{export-65NMK6AZ.js → export-URIKCSIO.js} +3 -3
- package/dist/{feed-V2LCBCY4.js → feed-ZBATBTD2.js} +3 -3
- package/dist/{group-AFRY5UD3.js → group-D43R5JQU.js} +3 -3
- package/dist/{inbox-QHTUG2KO.js → inbox-6DTW4XJE.js} +3 -3
- package/dist/{inboxes-PBARKLJU.js → inboxes-TFZQ57MK.js} +3 -3
- package/dist/{incoming-TQV4ZEPR.js → incoming-RHKXXZQE.js} +4 -4
- package/dist/{job-GVQJCZNV.js → job-ARXJVJID.js} +4 -4
- package/dist/{login-5CXZF2YG.js → login-CH75UC6I.js} +1 -1
- package/dist/{message-AN3MEFWM.js → message-WTGOJZGL.js} +4 -4
- package/dist/{motion-BYBPOKEI.js → motion-TQU6ZS6N.js} +23 -12
- package/dist/{network-US5Y4CHT.js → network-JUQA3X5S.js} +4 -4
- package/dist/{notification-DXY2T6PU.js → notification-GN5Y25GL.js} +3 -3
- package/dist/{notifications-Q6MMYALR.js → notifications-C5CBK574.js} +4 -4
- package/dist/{post-VREJUZ2X.js → post-HT2UWXXO.js} +4 -4
- package/dist/{profile-EVS2V2L7.js → profile-ZSBAZPFQ.js} +5 -5
- package/dist/{recruiter-VIMZPX5I.js → recruiter-CSG4XSZ4.js} +6 -6
- package/dist/{sales-nav-O3M5I7PZ.js → sales-nav-LDI7MTGU.js} +5 -5
- package/dist/{search-N6TUF4HD.js → search-NLIL5SXI.js} +6 -6
- package/dist/{setup-5RBTOOIX.js → setup-UGELD4FZ.js} +2 -2
- package/dist/{team-KLTVYIXR.js → team-LWDBXG4K.js} +4 -4
- package/dist/{tier-4GNKK55U.js → tier-LOI4ZOVV.js} +3 -3
- package/dist/{unibox-LPS3M2A5.js → unibox-IL6SRMK2.js} +4 -4
- package/dist/{webhook-EJSVVIPS.js → webhook-TAXMQNEK.js} +4 -4
- package/package.json +2 -2
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
online,
|
|
9
9
|
preview,
|
|
10
10
|
readFilter
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QL6VKMTA.js";
|
|
12
|
+
import "./chunk-JYCNHE72.js";
|
|
13
13
|
import "./chunk-GOICALYQ.js";
|
|
14
14
|
import {
|
|
15
15
|
sendInChunks
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-COYDNWKF.js";
|
|
17
17
|
import {
|
|
18
18
|
fail,
|
|
19
19
|
listFlag,
|
|
20
20
|
outputOpts,
|
|
21
21
|
usage
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3SF6JIMA.js";
|
|
23
23
|
import "./chunk-TCUYH5GO.js";
|
|
24
24
|
import {
|
|
25
25
|
intFlag
|
|
@@ -32,12 +32,12 @@ import {
|
|
|
32
32
|
readablePage,
|
|
33
33
|
rejectPaginationModifiersWithoutAll,
|
|
34
34
|
streamAll
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FO54X4T2.js";
|
|
36
36
|
import {
|
|
37
37
|
renderSuccess,
|
|
38
38
|
writeNdjsonItem
|
|
39
39
|
} from "./chunk-QM57YDJE.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-56JSZNRW.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_FLAGS,
|
|
43
43
|
READ_SINGLE_FLAGS,
|
|
@@ -292,7 +292,7 @@ var contactListsCommand = defineCommand({
|
|
|
292
292
|
meta: { name: "lists", description: "Contact lists: named sets of Contacts a Motion enrolls from." },
|
|
293
293
|
subCommands: { list: listsList, get: listsGet, create: listsCreate, combine: listsCombine, update: listsUpdate, delete: listsDelete, add: membership("add"), remove: membership("remove") },
|
|
294
294
|
async run() {
|
|
295
|
-
const { showHelp } = await import("./examples-
|
|
295
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
296
296
|
await showHelp(contactListsCommand, ["curviate", "contact", "lists"]);
|
|
297
297
|
}
|
|
298
298
|
});
|
|
@@ -389,7 +389,7 @@ var contactTagsCommand = defineCommand({
|
|
|
389
389
|
meta: { name: "tags", description: "Tags: labels on Contacts." },
|
|
390
390
|
subCommands: { list: tagsList, update: tagsUpdate, delete: tagsDelete, add: tagging("add"), remove: tagging("remove") },
|
|
391
391
|
async run() {
|
|
392
|
-
const { showHelp } = await import("./examples-
|
|
392
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
393
393
|
await showHelp(contactTagsCommand, ["curviate", "contact", "tags"]);
|
|
394
394
|
}
|
|
395
395
|
});
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
online,
|
|
4
4
|
preview
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-QL6VKMTA.js";
|
|
6
|
+
import "./chunk-JYCNHE72.js";
|
|
7
7
|
import "./chunk-GOICALYQ.js";
|
|
8
8
|
import {
|
|
9
9
|
sendChunked
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-COYDNWKF.js";
|
|
11
11
|
import {
|
|
12
12
|
fail,
|
|
13
13
|
listFlag,
|
|
14
14
|
outputOpts,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3SF6JIMA.js";
|
|
17
17
|
import "./chunk-TCUYH5GO.js";
|
|
18
18
|
import {
|
|
19
19
|
intFlag
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
readablePage,
|
|
27
27
|
rejectPaginationModifiersWithoutAll,
|
|
28
28
|
streamAll
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FO54X4T2.js";
|
|
30
30
|
import {
|
|
31
31
|
renderSuccess,
|
|
32
32
|
writeNdjsonItem
|
|
33
33
|
} from "./chunk-QM57YDJE.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-56JSZNRW.js";
|
|
35
35
|
import {
|
|
36
36
|
GLOBAL_FLAGS,
|
|
37
37
|
WRITE_SINGLE_FLAGS,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
import "./chunk-73DJ3KNE.js";
|
|
41
41
|
import {
|
|
42
42
|
readFileFlag
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-PHKICMO7.js";
|
|
44
44
|
import "./chunk-FDJMAF7D.js";
|
|
45
45
|
import {
|
|
46
46
|
isStdinToken
|
|
@@ -322,7 +322,7 @@ var contactImportsCommand = defineCommand({
|
|
|
322
322
|
meta: { name: "imports", description: "Your Team's import records." },
|
|
323
323
|
subCommands: { list: importsList, get: importsGet },
|
|
324
324
|
async run() {
|
|
325
|
-
const { showHelp } = await import("./examples-
|
|
325
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
326
326
|
await showHelp(contactImportsCommand, ["curviate", "contact", "imports"]);
|
|
327
327
|
}
|
|
328
328
|
});
|
|
@@ -19,25 +19,25 @@ var coreCommand = defineCommand({
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
subCommands: {
|
|
22
|
-
profile: lazy("profile", () => import("./profile-
|
|
23
|
-
company: lazy("company", () => import("./company-
|
|
24
|
-
job: lazy("job", () => import("./job-
|
|
25
|
-
connect: lazy("connect", () => import("./connect-
|
|
26
|
-
search: lazy("search", () => import("./search-
|
|
27
|
-
inbox: lazy("inbox", () => import("./inbox-
|
|
28
|
-
inboxes: lazy("inboxes", () => import("./inboxes-
|
|
29
|
-
message: lazy("message", () => import("./message-
|
|
30
|
-
post: lazy("post", () => import("./post-
|
|
31
|
-
comment: lazy("comment", () => import("./comment-
|
|
32
|
-
"sales-nav": lazy("sales-nav", () => import("./sales-nav-
|
|
33
|
-
recruiter: lazy("recruiter", () => import("./recruiter-
|
|
34
|
-
group: lazy("group", () => import("./group-
|
|
35
|
-
feed: lazy("feed", () => import("./feed-
|
|
36
|
-
notification: lazy("coreNotification", () => import("./notification-
|
|
37
|
-
draft: lazy("draft", () => import("./draft-
|
|
22
|
+
profile: lazy("profile", () => import("./profile-ZSBAZPFQ.js").then((m) => m.profileCommand)),
|
|
23
|
+
company: lazy("company", () => import("./company-HM23JZT4.js").then((m) => m.companyCommand)),
|
|
24
|
+
job: lazy("job", () => import("./job-ARXJVJID.js").then((m) => m.jobCommand)),
|
|
25
|
+
connect: lazy("connect", () => import("./connect-HBQ4PLTS.js").then((m) => m.connectCommand)),
|
|
26
|
+
search: lazy("search", () => import("./search-NLIL5SXI.js").then((m) => m.searchCommand)),
|
|
27
|
+
inbox: lazy("inbox", () => import("./inbox-6DTW4XJE.js").then((m) => m.inboxCommand)),
|
|
28
|
+
inboxes: lazy("inboxes", () => import("./inboxes-TFZQ57MK.js").then((m) => m.inboxesCommand)),
|
|
29
|
+
message: lazy("message", () => import("./message-WTGOJZGL.js").then((m) => m.messageCommand)),
|
|
30
|
+
post: lazy("post", () => import("./post-HT2UWXXO.js").then((m) => m.postCommand)),
|
|
31
|
+
comment: lazy("comment", () => import("./comment-OZZGWNIV.js").then((m) => m.commentCommand)),
|
|
32
|
+
"sales-nav": lazy("sales-nav", () => import("./sales-nav-LDI7MTGU.js").then((m) => m.salesNavCommand)),
|
|
33
|
+
recruiter: lazy("recruiter", () => import("./recruiter-CSG4XSZ4.js").then((m) => m.recruiterCommand)),
|
|
34
|
+
group: lazy("group", () => import("./group-D43R5JQU.js").then((m) => m.groupCommand)),
|
|
35
|
+
feed: lazy("feed", () => import("./feed-ZBATBTD2.js").then((m) => m.feedCommand)),
|
|
36
|
+
notification: lazy("coreNotification", () => import("./notification-GN5Y25GL.js").then((m) => m.notificationCommand)),
|
|
37
|
+
draft: lazy("draft", () => import("./draft-IWI7E5VJ.js").then((m) => m.draftCommand))
|
|
38
38
|
},
|
|
39
39
|
async run() {
|
|
40
|
-
const { showHelp } = await import("./examples-
|
|
40
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
41
41
|
await showHelp(coreCommand, ["curviate", "core"]);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3SF6JIMA.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-FO54X4T2.js";
|
|
23
23
|
import {
|
|
24
24
|
renderSuccess,
|
|
25
25
|
writeNdjsonItem
|
|
26
26
|
} from "./chunk-QM57YDJE.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-56JSZNRW.js";
|
|
28
28
|
import {
|
|
29
29
|
GLOBAL_FLAGS,
|
|
30
30
|
READ_SINGLE_FLAGS,
|
|
@@ -191,7 +191,7 @@ var doNotContactCommand = defineCommand({
|
|
|
191
191
|
meta: { name: "do-not-contact", description: DESCRIPTIONS["do-not-contact"] },
|
|
192
192
|
subCommands: { list: listCmd, get: getCmd, add: addCmd, update: updateCmd, remove: removeCmd },
|
|
193
193
|
async run() {
|
|
194
|
-
const { showHelp } = await import("./examples-
|
|
194
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
195
195
|
await showHelp(doNotContactCommand, ["curviate", "do-not-contact"]);
|
|
196
196
|
}
|
|
197
197
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readablePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FO54X4T2.js";
|
|
5
5
|
import "./chunk-QM57YDJE.js";
|
|
6
6
|
import {
|
|
7
7
|
createClient,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
readConfigFile,
|
|
11
11
|
resolveEffectiveConfig,
|
|
12
12
|
withoutUserinfo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-56JSZNRW.js";
|
|
14
14
|
import {
|
|
15
15
|
GLOBAL_FLAGS
|
|
16
16
|
} from "./chunk-RYWWSZUH.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
readablePage,
|
|
21
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
22
|
streamAll
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FO54X4T2.js";
|
|
24
24
|
import {
|
|
25
25
|
renderError,
|
|
26
26
|
renderSuccess,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
createClient,
|
|
32
32
|
resolveEffectiveConfig
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-56JSZNRW.js";
|
|
34
34
|
import {
|
|
35
35
|
GLOBAL_FLAGS,
|
|
36
36
|
READ_SINGLE_FLAGS,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
outputOpts,
|
|
6
6
|
rootClient,
|
|
7
7
|
usage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3SF6JIMA.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPreviewOutput
|
|
11
11
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
readablePage,
|
|
21
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
22
|
streamAll
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FO54X4T2.js";
|
|
24
24
|
import {
|
|
25
25
|
renderSuccess,
|
|
26
26
|
writeNdjsonItem
|
|
27
27
|
} from "./chunk-QM57YDJE.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-56JSZNRW.js";
|
|
29
29
|
import {
|
|
30
30
|
GLOBAL_FLAGS,
|
|
31
31
|
READ_SINGLE_FLAGS,
|
|
@@ -236,7 +236,7 @@ var FILTER_ARGS = {
|
|
|
236
236
|
var listCmd = defineCommand({
|
|
237
237
|
meta: {
|
|
238
238
|
name: "list",
|
|
239
|
-
description: "List Enrollments, newest first, filtered by Motion, Contact, status, current Step, or how a Step ended. Each counts once per Contact, Motion and Account.",
|
|
239
|
+
description: "List Enrollments, newest first, filtered by Motion, Contact, status, current Step, or how a Step ended. Each counts once per Contact, Motion and Account. A pending Enrollment waiting in its Motion's pool has no account_id (null) until an Account takes it; --accounts leaves such Enrollments out.",
|
|
240
240
|
risk: "read",
|
|
241
241
|
output: ["Each reason code comes with its sentence beside it (`skip_reason` and `skip_message`, `finish_reason` and `finish_message`)."],
|
|
242
242
|
examples: [
|
|
@@ -473,7 +473,7 @@ var enrollmentCommand = defineCommand({
|
|
|
473
473
|
bulk: bulkCmd
|
|
474
474
|
},
|
|
475
475
|
async run() {
|
|
476
|
-
const { showHelp } = await import("./examples-
|
|
476
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
477
477
|
await showHelp(enrollmentCommand, ["curviate", "enrollment"]);
|
|
478
478
|
}
|
|
479
479
|
});
|
|
@@ -22,7 +22,7 @@ function renderRules(rules) {
|
|
|
22
22
|
}
|
|
23
23
|
async function renderSections(cmd) {
|
|
24
24
|
const meta = typeof cmd.meta === "function" ? await cmd.meta() : await cmd.meta;
|
|
25
|
-
const { renderDocument } = meta?.document ? await import("./document-
|
|
25
|
+
const { renderDocument } = meta?.document ? await import("./document-RXBOZG6M.js") : { renderDocument: () => [] };
|
|
26
26
|
const body = {
|
|
27
27
|
DOCUMENT: meta?.document ? renderDocument(meta.document) : void 0,
|
|
28
28
|
RULES: renderRules(meta?.rules),
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
outputOpts,
|
|
8
8
|
rootClient,
|
|
9
9
|
usage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3SF6JIMA.js";
|
|
11
11
|
import {
|
|
12
12
|
renderSuccess
|
|
13
13
|
} from "./chunk-QM57YDJE.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-56JSZNRW.js";
|
|
17
17
|
import {
|
|
18
18
|
GLOBAL_FLAGS,
|
|
19
19
|
READ_SINGLE_FLAGS,
|
|
@@ -87,7 +87,7 @@ var exportCommand = defineCommand({
|
|
|
87
87
|
meta: { name: "export", description: DESCRIPTIONS.export },
|
|
88
88
|
subCommands: { get: getCmd, download: downloadCmd },
|
|
89
89
|
async run() {
|
|
90
|
-
const { showHelp } = await import("./examples-
|
|
90
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
91
91
|
await showHelp(exportCommand, ["curviate", "export"]);
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JYCNHE72.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
readablePage,
|
|
10
10
|
rejectPaginationModifiersWithoutAll,
|
|
11
11
|
streamAll
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FO54X4T2.js";
|
|
13
13
|
import {
|
|
14
14
|
renderError,
|
|
15
15
|
renderSuccess,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
createClient,
|
|
21
21
|
resolveEffectiveConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-56JSZNRW.js";
|
|
23
23
|
import {
|
|
24
24
|
GLOBAL_FLAGS,
|
|
25
25
|
readOnly
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UEAX6KUB.js";
|
|
5
5
|
import {
|
|
6
6
|
requireAccount
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JYCNHE72.js";
|
|
8
8
|
import {
|
|
9
9
|
pageDelayFromFlags,
|
|
10
10
|
readCursorFlag,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
readablePage,
|
|
14
14
|
rejectPaginationModifiersWithoutAll,
|
|
15
15
|
streamAll
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FO54X4T2.js";
|
|
17
17
|
import {
|
|
18
18
|
renderError,
|
|
19
19
|
renderSuccess,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
createClient,
|
|
25
25
|
resolveEffectiveConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-56JSZNRW.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-UEAX6KUB.js";
|
|
13
13
|
import {
|
|
14
14
|
requireAccount
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JYCNHE72.js";
|
|
16
16
|
import {
|
|
17
17
|
buildPreviewOutput
|
|
18
18
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
readablePage,
|
|
25
25
|
rejectPaginationModifiersWithoutAll,
|
|
26
26
|
streamAll
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FO54X4T2.js";
|
|
28
28
|
import {
|
|
29
29
|
renderError,
|
|
30
30
|
renderSuccess,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
createClient,
|
|
36
36
|
resolveEffectiveConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-56JSZNRW.js";
|
|
38
38
|
import {
|
|
39
39
|
GLOBAL_FLAGS,
|
|
40
40
|
READ_SINGLE_FLAGS,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JYCNHE72.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
readablePage,
|
|
11
11
|
rejectPaginationModifiersWithoutAll,
|
|
12
12
|
streamAll
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FO54X4T2.js";
|
|
14
14
|
import {
|
|
15
15
|
renderError,
|
|
16
16
|
renderSuccess,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
createClient,
|
|
22
22
|
resolveEffectiveConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-56JSZNRW.js";
|
|
24
24
|
import {
|
|
25
25
|
GLOBAL_FLAGS,
|
|
26
26
|
READ_SINGLE_FLAGS,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3SF6JIMA.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readablePage,
|
|
19
19
|
rejectPaginationModifiersWithoutAll,
|
|
20
20
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FO54X4T2.js";
|
|
22
22
|
import {
|
|
23
23
|
renderSuccess,
|
|
24
24
|
writeNdjsonItem
|
|
25
25
|
} from "./chunk-QM57YDJE.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-56JSZNRW.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -209,7 +209,7 @@ var incomingCommand = defineCommand({
|
|
|
209
209
|
meta: { name: "incoming", description: DESCRIPTIONS.incoming },
|
|
210
210
|
subCommands: { create: createCmd, list: listCmd, get: getCmd, update: updateCmd, delete: deleteCmd, rotate: rotateCmd, capture: captureCmd, arrivals: arrivalsCmd },
|
|
211
211
|
async run() {
|
|
212
|
-
const { showHelp } = await import("./examples-
|
|
212
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
213
213
|
await showHelp(incomingCommand, ["curviate", "incoming"]);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-UEAX6KUB.js";
|
|
13
13
|
import {
|
|
14
14
|
slimJob
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XDG3TOKG.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JYCNHE72.js";
|
|
19
19
|
import {
|
|
20
20
|
buildPreviewOutput
|
|
21
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FO54X4T2.js";
|
|
33
33
|
import {
|
|
34
34
|
renderError,
|
|
35
35
|
renderSuccess,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
createClient,
|
|
41
41
|
downloadBinary,
|
|
42
42
|
resolveEffectiveConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-56JSZNRW.js";
|
|
44
44
|
import {
|
|
45
45
|
GLOBAL_FLAGS,
|
|
46
46
|
READ_SINGLE_FLAGS,
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2MWTZLAG.js";
|
|
17
17
|
import "./chunk-5I6JJJIV.js";
|
|
18
18
|
import "./chunk-UWO2D4HW.js";
|
|
19
19
|
import "./chunk-Q3ZPRFUX.js";
|
|
20
20
|
import "./chunk-UEAX6KUB.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-JYCNHE72.js";
|
|
22
22
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-FO54X4T2.js";
|
|
24
24
|
import "./chunk-QM57YDJE.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-56JSZNRW.js";
|
|
26
26
|
import "./chunk-RYWWSZUH.js";
|
|
27
27
|
import "./chunk-73DJ3KNE.js";
|
|
28
28
|
import "./chunk-FDJMAF7D.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sendInChunks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-COYDNWKF.js";
|
|
5
5
|
import {
|
|
6
6
|
fail,
|
|
7
7
|
listFlag,
|
|
8
8
|
outputOpts,
|
|
9
9
|
rootClient,
|
|
10
10
|
usage
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3SF6JIMA.js";
|
|
12
12
|
import {
|
|
13
13
|
buildPreviewOutput
|
|
14
14
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
readablePage,
|
|
24
24
|
rejectPaginationModifiersWithoutAll,
|
|
25
25
|
streamAll
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FO54X4T2.js";
|
|
27
27
|
import {
|
|
28
28
|
renderSuccess,
|
|
29
29
|
writeNdjsonItem
|
|
30
30
|
} from "./chunk-QM57YDJE.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-56JSZNRW.js";
|
|
32
32
|
import {
|
|
33
33
|
GLOBAL_FLAGS,
|
|
34
34
|
READ_SINGLE_FLAGS,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
readFileFlag,
|
|
45
45
|
reportIssues,
|
|
46
46
|
validate
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-PHKICMO7.js";
|
|
48
48
|
import "./chunk-FDJMAF7D.js";
|
|
49
49
|
import {
|
|
50
50
|
isStdinToken
|
|
@@ -394,9 +394,20 @@ function preview(method, args, body = {}) {
|
|
|
394
394
|
process.stdout.write(JSON.stringify(buildPreviewOutput({ method, args, body })) + "\n");
|
|
395
395
|
}
|
|
396
396
|
var shownFile = (f) => f.file === void 0 || isStdinToken(f.file) ? "-" : f.file;
|
|
397
|
-
|
|
397
|
+
function assignWarning(sequence, assign) {
|
|
398
|
+
if (assign !== "already_connected" || !sequence || typeof sequence !== "object") return [];
|
|
399
|
+
const steps = sequence["steps"];
|
|
400
|
+
if (!Array.isArray(steps)) return [];
|
|
401
|
+
const at = steps.findIndex((s) => s?.["do"] === "invite.send" && typeof s["id"] === "string");
|
|
402
|
+
if (at < 0) return [];
|
|
403
|
+
const rule = "settings.assign is already_connected, so anyone not already connected to a sending Account is skipped and this invitation never runs for them; use assign: auto";
|
|
404
|
+
const hint = "Set settings.assign to auto, the default: it prefers an Account already connected and invites everyone else. Keep already_connected only for a Motion that writes to existing Connections.";
|
|
405
|
+
return [{ code: "W17", path: `${steps[at]["id"]}.do`, rule, message: rule, pointer: `/steps/${at}/do`, hint, docs_url: "https://docs.curviate.com/reference/sequence-rules#w17", severity: "warning" }];
|
|
406
|
+
}
|
|
407
|
+
async function checkSequence(f, text, sequence, prefix, settings) {
|
|
398
408
|
const { validateSequence } = await import("@curviate/sdk");
|
|
399
409
|
const verdict = validateSequence(sequence);
|
|
410
|
+
verdict.warnings.push(...assignWarning(sequence, settings?.["assign"]));
|
|
400
411
|
const lines = compilerLines(shownFile(f), text, verdict, prefix);
|
|
401
412
|
if (verdict.errors.length) {
|
|
402
413
|
const first = verdict.errors[0];
|
|
@@ -426,7 +437,7 @@ async function readMotionFile(f, command) {
|
|
|
426
437
|
}
|
|
427
438
|
const issues = validate(schema, body);
|
|
428
439
|
if (issues.length) reportIssues(issues, outputOpts(f).json);
|
|
429
|
-
if (body["sequence"] != null) await checkSequence(f, text, body["sequence"], "/sequence");
|
|
440
|
+
if (body["sequence"] != null) await checkSequence(f, text, body["sequence"], "/sequence", body["settings"]);
|
|
430
441
|
return { body, text };
|
|
431
442
|
}
|
|
432
443
|
function explain(err, f, text) {
|
|
@@ -546,7 +557,7 @@ async function runLint(f) {
|
|
|
546
557
|
const doc = parseDocument("file", text);
|
|
547
558
|
const motionFile = !!doc && typeof doc === "object" && !Array.isArray(doc) && !("steps" in doc) && ("sequence" in doc || "name" in doc);
|
|
548
559
|
if (motionFile && doc["sequence"] == null) usage("--file: the Motion file has no sequence; there is nothing to lint.");
|
|
549
|
-
const verdict = await checkSequence(f, text, motionFile ? doc["sequence"] : doc, motionFile ? "/sequence" : "");
|
|
560
|
+
const verdict = await checkSequence(f, text, motionFile ? doc["sequence"] : doc, motionFile ? "/sequence" : "", motionFile ? doc["settings"] : void 0);
|
|
550
561
|
if (outputOpts(f).json) process.stdout.write(JSON.stringify({ errors: [], warnings: verdict.warnings }) + "\n");
|
|
551
562
|
}
|
|
552
563
|
async function runInit(f) {
|
|
@@ -620,7 +631,7 @@ var MOTION_DOC = `{
|
|
|
620
631
|
var createCmd = defineCommand({
|
|
621
632
|
meta: {
|
|
622
633
|
name: "create",
|
|
623
|
-
description: "Create a Motion from a Motion file, always as a draft: nothing runs until `curviate motion start`. The file is checked before anything is sent, its Sequence as `curviate motion lint` checks it. Needs Automate.",
|
|
634
|
+
description: "Create a Motion from a Motion file, always as a draft: nothing runs until `curviate motion start`. The file is checked before anything is sent, its Sequence as `curviate motion lint` checks it. settings.priority (normal or prioritized) sets the Motion's share of each Account's daily allowance. Needs Automate.",
|
|
624
635
|
risk: "write",
|
|
625
636
|
rules: {
|
|
626
637
|
changes: "Creates a draft Motion. No Contact is enrolled and nothing reaches LinkedIn until it is started.",
|
|
@@ -648,7 +659,7 @@ EOF`
|
|
|
648
659
|
var updateCmd = defineCommand({
|
|
649
660
|
meta: {
|
|
650
661
|
name: "update",
|
|
651
|
-
description: "Change a Motion from a Motion file: objects (schedule, settings) merge by key, arrays and the Sequence replace whole, null clears. After start, a structural Sequence change makes a new version; running Enrollments keep theirs. With --if-revision the save is refused when someone saved the Sequence since. Needs Automate.",
|
|
662
|
+
description: "Change a Motion from a Motion file: objects (schedule, settings) merge by key, arrays and the Sequence replace whole, null clears. settings.priority (normal or prioritized) gives the Motion twice a normal Motion's share of each Account's daily allowance; settings.new_enrollments_per_account_per_day and settings.assign even are retired (accepted and ignored until 2027-01-28, with a notice). After start, a structural Sequence change makes a new version; running Enrollments keep theirs. With --if-revision the save is refused when someone saved the Sequence since. Needs Automate.",
|
|
652
663
|
risk: "write",
|
|
653
664
|
rules: {
|
|
654
665
|
changes: "Changes the Motion. A running Motion picks the change up at each Enrollment's next Step.",
|
|
@@ -757,7 +768,7 @@ var deleteCmd = lifecycleCmd("delete", {
|
|
|
757
768
|
var previewCmd = defineCommand({
|
|
758
769
|
meta: {
|
|
759
770
|
name: "preview",
|
|
760
|
-
description: "What the Motion would do, in any status: every path through its Sequence, rendered messages for sampled or named Contacts, and the budget projection. A read: never reaches LinkedIn, spends nothing.",
|
|
771
|
+
description: "What the Motion would do, in any status: every path through its Sequence, rendered messages for sampled or named Contacts, and the budget projection: per Account the pool that binds its pace, the expected actions a day, and warnings (hours_below_share, no_sending_account). A read: never reaches LinkedIn, spends nothing.",
|
|
761
772
|
risk: "read",
|
|
762
773
|
examples: ["curviate motion preview mot_YOUR_MOTION_ID", "curviate motion preview mot_YOUR_MOTION_ID --sample 3"]
|
|
763
774
|
},
|
|
@@ -855,7 +866,7 @@ var motionCommand = defineCommand({
|
|
|
855
866
|
init: initCmd
|
|
856
867
|
},
|
|
857
868
|
async run() {
|
|
858
|
-
const { showHelp } = await import("./examples-
|
|
869
|
+
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
859
870
|
await showHelp(motionCommand, ["curviate", "motion"]);
|
|
860
871
|
}
|
|
861
872
|
});
|