@curviate/cli 0.56.0 → 0.58.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 +129 -0
- package/README.md +9 -2
- package/dist/{account-ZF5NEMID.js → account-GSL6BCNX.js} +49 -13
- package/dist/{analytics-M7JWS67A.js → analytics-4FUMJSMC.js} +6 -6
- package/dist/{beta-consent-4Q2LZZQC.js → beta-consent-EC2QF6CM.js} +4 -4
- package/dist/billing-STRNXA4H.js +19 -0
- package/dist/{chunk-XP6S6E55.js → chunk-3IL3D5IZ.js} +2 -2
- package/dist/{chunk-UWRWZG4N.js → chunk-5OAJ4D65.js} +2 -2
- package/dist/{chunk-AMTKGO37.js → chunk-5Z3CCE5N.js} +1 -1
- package/dist/chunk-7F6B7P32.js +359 -0
- package/dist/{chunk-UOWOKEB2.js → chunk-CQHCPZ5I.js} +1 -1
- package/dist/{chunk-RDKTHFQ6.js → chunk-EWSOIFG2.js} +21 -0
- package/dist/{chunk-RKNW4UX4.js → chunk-JKOQX46J.js} +6 -0
- package/dist/{chunk-VHNF6OZD.js → chunk-JY26SUNH.js} +18 -2
- package/dist/{chunk-VEMK4MJM.js → chunk-KS4I4B3Z.js} +6 -6
- package/dist/{chunk-MIOEYSBQ.js → chunk-KUVJM5CP.js} +1 -1
- package/dist/{chunk-CRO7PJ4I.js → chunk-MLZSXQZC.js} +2 -2
- package/dist/{chunk-7PLTQHNO.js → chunk-PBJZQZPO.js} +1 -1
- package/dist/{chunk-J4SFOFMT.js → chunk-WGGZWJPO.js} +11 -11
- package/dist/{chunk-L3RJU7C3.js → chunk-WITIJCUU.js} +115 -14
- package/dist/{chunk-MWVTFTWV.js → chunk-XDPU2YAF.js} +8 -5
- package/dist/{chunk-EI64VFBE.js → chunk-XXB4MAX3.js} +121 -11
- package/dist/cli.js +30 -28
- package/dist/{comment-D6RSZTVK.js → comment-MUELYZYN.js} +8 -8
- package/dist/{company-3Z6PXGTW.js → company-5N7CXORR.js} +21 -10
- package/dist/company-record-HWLTP4TV.js +213 -0
- package/dist/{config-VY5MCJMN.js → config-PI7JMQ2L.js} +2 -2
- package/dist/{connect-G2RTLV7G.js → connect-NNZOOPWV.js} +11 -11
- package/dist/{contact-QSLJCBDE.js → contact-VNG7HRCN.js} +8 -8
- package/dist/{contact-groups-OITAD73K.js → contact-groups-6JF7VX6Q.js} +10 -10
- package/dist/{contact-import-LT7BKESC.js → contact-import-TMJWY2VD.js} +10 -10
- package/dist/core-ZRJY3HTF.js +46 -0
- package/dist/{do-not-contact-ZA7KS5WD.js → do-not-contact-GDVIUNMT.js} +19 -17
- package/dist/{doctor-JQT3DO6G.js → doctor-ZNAR5AZ2.js} +21 -4
- package/dist/{document-H65EXU4L.js → document-G6UND26L.js} +1 -1
- package/dist/{domain-7EX4E34B.js → domain-62YUYVDW.js} +8 -8
- package/dist/{draft-7U6H4BPF.js → draft-ED6RL67K.js} +5 -5
- package/dist/{enrollment-AZ6XGVVL.js → enrollment-LN3Z3RC5.js} +11 -7
- package/dist/{examples-IGQJCSNL.js → examples-5FJS47QF.js} +2 -2
- package/dist/{exit-codes-ZSOLAXQO.js → exit-codes-LQDMGDII.js} +1 -1
- package/dist/{export-OYMQXL62.js → export-S6D4FEAG.js} +4 -4
- package/dist/{feed-M5D4SJW7.js → feed-AC7HWUCD.js} +6 -6
- package/dist/{group-UTC3YBKE.js → group-6N37Q5ZS.js} +6 -6
- package/dist/{inbox-VSGNHSLG.js → inbox-JFRBROQ2.js} +6 -6
- package/dist/{inboxes-23C2MJK4.js → inboxes-IBZHZKSD.js} +6 -6
- package/dist/{incoming-QVPP32K7.js → incoming-YDRPPO24.js} +5 -5
- package/dist/{job-ZHVFFRWE.js → job-CSRHIFZM.js} +6 -6
- package/dist/{login-6OTNXEJZ.js → login-M7ZLOR2U.js} +2 -2
- package/dist/mailbox-E2K3I2VH.js +712 -0
- package/dist/{message-PIV77W47.js → message-SX6RDGWP.js} +7 -7
- package/dist/{motion-AHYF34DP.js → motion-4HH3OFI6.js} +118 -13
- package/dist/{network-RJHJFZEY.js → network-JQYLSQDH.js} +9 -9
- package/dist/{notification-XGR4NT3S.js → notification-ZAQM463D.js} +6 -6
- package/dist/{notifications-BHRWSHPR.js → notifications-N55F3DP3.js} +14 -9
- package/dist/{post-Z7AVDDKA.js → post-SIHHJX3P.js} +8 -8
- package/dist/{profile-YZNBX2RP.js → profile-VBHX3QGP.js} +12 -12
- package/dist/{recruiter-EXM4P7X7.js → recruiter-7AGFKQPI.js} +9 -9
- package/dist/{sales-nav-CKDSEXV2.js → sales-nav-ADVFBKWB.js} +9 -9
- package/dist/{search-B7FB6674.js → search-THJFPGOH.js} +16 -16
- package/dist/{setup-VZVPLJ4V.js → setup-D6D7SNND.js} +4 -4
- package/dist/signal-TGSF7WEP.js +438 -0
- package/dist/{team-PYABBUHO.js → team-MVNHCWJP.js} +59 -5
- package/dist/{tier-PRK4WQKR.js → tier-DAF7Y2HN.js} +6 -5
- package/dist/unibox-7B6B4SXB.js +741 -0
- package/dist/{webhook-V74EV4E2.js → webhook-NUVSTDXF.js} +9 -9
- package/package.json +3 -3
- package/dist/billing-LYPSX5SR.js +0 -196
- package/dist/core-RFTNNB6P.js +0 -46
- package/dist/mailbox-HD2UXZCA.js +0 -405
- package/dist/unibox-ZNKX2EKL.js +0 -410
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
online,
|
|
4
4
|
preview
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WGGZWJPO.js";
|
|
6
6
|
import {
|
|
7
7
|
sendChunked
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3IL3D5IZ.js";
|
|
9
9
|
import {
|
|
10
10
|
fail,
|
|
11
11
|
listFlag,
|
|
12
12
|
outputOpts,
|
|
13
13
|
usage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5OAJ4D65.js";
|
|
15
15
|
import {
|
|
16
16
|
intFlag
|
|
17
17
|
} from "./chunk-NNV2OYEF.js";
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
readablePage,
|
|
24
24
|
rejectPaginationModifiersWithoutAll,
|
|
25
25
|
streamAll
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KUVJM5CP.js";
|
|
27
27
|
import {
|
|
28
28
|
renderSuccess,
|
|
29
29
|
writeNdjsonItem
|
|
30
30
|
} from "./chunk-QM57YDJE.js";
|
|
31
31
|
import {
|
|
32
32
|
withWireNotes
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PBJZQZPO.js";
|
|
34
34
|
import {
|
|
35
35
|
GLOBAL_FLAGS,
|
|
36
36
|
WRITE_SINGLE_FLAGS,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-QLKGOIWS.js";
|
|
39
39
|
import {
|
|
40
40
|
readFileFlag
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JKOQX46J.js";
|
|
42
42
|
import {
|
|
43
43
|
isStdinToken
|
|
44
44
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -194,7 +194,67 @@ async function recover(c, body, rows, seen, started, notes, err, k, n) {
|
|
|
194
194
|
say(`Import ${k} of ${n}: the API did apply it. Import ${found.id} is ${found.status}${found.status === "completed" ? ` (${COUNTS.map((x) => `${x} ${found.counts?.[x] ?? 0}`).join(", ")})` : ""}.`);
|
|
195
195
|
return found;
|
|
196
196
|
}
|
|
197
|
+
var SOURCE_KINDS = ["people_search", "company_people", "sales_nav_search", "sales_nav_lead_list", "sales_nav_account_list", "sales_nav_company_people", "recruiter_search", "post_engagers", "group_members"];
|
|
198
|
+
function kindOfUrl(url) {
|
|
199
|
+
if (/linkedin\.com\/sales\/search\/compan/i.test(url)) return "sales_nav_company_people";
|
|
200
|
+
if (/linkedin\.com\/sales\//i.test(url)) return "sales_nav_search";
|
|
201
|
+
if (/linkedin\.com\/talent\//i.test(url)) return "recruiter_search";
|
|
202
|
+
if (/\/search\/results\/people/i.test(url)) return "people_search";
|
|
203
|
+
if (/\/search\/results\/companies/i.test(url)) return "company_people";
|
|
204
|
+
return void 0;
|
|
205
|
+
}
|
|
206
|
+
async function runSourceImport(c, f) {
|
|
207
|
+
if (f.file !== void 0) usage("--file and --source/--source-url cannot be combined: import a file, or a LinkedIn source.");
|
|
208
|
+
const url = f["source-url"];
|
|
209
|
+
const kind = f.source ?? (url !== void 0 ? kindOfUrl(url) : void 0);
|
|
210
|
+
if (kind === void 0) usage("--source is required: the URL names no kind it knows. One of " + SOURCE_KINDS.join(", ") + ".");
|
|
211
|
+
if (f.account === void 0 || f.account.trim() === "") usage("--account is required: the Account that reads the source (acc_...). Its limits and Active hours apply.");
|
|
212
|
+
if (f.continue !== void 0 && f.restart) usage("--continue and --restart cannot be combined.");
|
|
213
|
+
const source = { kind, account_id: f.account };
|
|
214
|
+
if (url !== void 0) source["url"] = url;
|
|
215
|
+
const pairs = listFlag("filter", f.filter);
|
|
216
|
+
if (pairs.length && f["filters-json"] !== void 0) usage("--filter and --filters-json cannot be combined.");
|
|
217
|
+
if (f["filters-json"] !== void 0) {
|
|
218
|
+
try {
|
|
219
|
+
source["filters"] = JSON.parse(f["filters-json"]);
|
|
220
|
+
} catch {
|
|
221
|
+
usage(`--filters-json is not valid JSON: pass an object, for example '{"keywords":"cto"}'.`);
|
|
222
|
+
}
|
|
223
|
+
} else if (pairs.length) {
|
|
224
|
+
const filters = {};
|
|
225
|
+
for (const p of pairs) {
|
|
226
|
+
const eq = p.indexOf("=");
|
|
227
|
+
if (eq <= 0) usage("--filter takes key=value, for example --filter keywords=cto.");
|
|
228
|
+
const k = p.slice(0, eq), v = p.slice(eq + 1);
|
|
229
|
+
filters[k] = k in filters ? [filters[k], v].flat() : v;
|
|
230
|
+
}
|
|
231
|
+
source["filters"] = filters;
|
|
232
|
+
}
|
|
233
|
+
if (f["list-id"] !== void 0) source["list_id"] = f["list-id"];
|
|
234
|
+
if (f["post-id"] !== void 0) source["post_id"] = f["post-id"];
|
|
235
|
+
if (f["group-id"] !== void 0) source["group_id"] = f["group-id"];
|
|
236
|
+
const titles = listFlag("titles", f.titles);
|
|
237
|
+
if (titles.length) source["titles"] = titles;
|
|
238
|
+
if (f.max !== void 0) source["max"] = intFlag("max", f.max, 1);
|
|
239
|
+
const body = { source };
|
|
240
|
+
if (f.continue !== void 0) body["continue_from"] = f.continue;
|
|
241
|
+
if (f.restart) body["restart"] = true;
|
|
242
|
+
if (f.list !== void 0) body["list_id"] = f.list;
|
|
243
|
+
if (f["list-name"] !== void 0) body["list_name"] = f["list-name"];
|
|
244
|
+
const tags = listFlag("tag", f.tag);
|
|
245
|
+
if (tags.length) body["tags"] = tags;
|
|
246
|
+
if (f.preview) return preview("leads.imports.create", {}, body);
|
|
247
|
+
try {
|
|
248
|
+
const imp = await c.leads.imports.create(body);
|
|
249
|
+
renderSuccess(readableObject(imp), outputOpts(f), process);
|
|
250
|
+
if (!outputOpts(f).json) process.stderr.write(`Follow it with \`curviate lead imports get ${String(imp["id"])}\`; pause, resume or stop it with \`curviate lead imports pause|resume|stop\`.
|
|
251
|
+
`);
|
|
252
|
+
} catch (err) {
|
|
253
|
+
await fail(err, f);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
197
256
|
async function runImport(c, f) {
|
|
257
|
+
if (f.source !== void 0 || f["source-url"] !== void 0) return runSourceImport(c, f);
|
|
198
258
|
const file = f.file;
|
|
199
259
|
if (file === void 0 || file.trim() === "") usage("--file is required: a CSV, JSON or NDJSON file, or - for stdin.");
|
|
200
260
|
const dash = isStdinToken(file);
|
|
@@ -294,19 +354,21 @@ var importCmd = defineCommand({
|
|
|
294
354
|
IMPORT_QUEUE_FULL: "too many imports are queued (429); wait, then run it again.",
|
|
295
355
|
RATE_LIMIT_TENANT: `the Team has other Lead or Campaign writes running (429, nothing imported); the CLI waits Retry-After (up to ${RETRY_AFTER_BOUND_S} s) and sends again, a longer wait stops the run. When an import holds the Team's write lock, the message and \`details.import_id\` name it: read it with \`curviate lead imports get\`.`,
|
|
296
356
|
CLIENT_TIMEOUT: "no answer within --timeout; the CLI reads the Team's newest imports (again for up to 30 s while none shows) and reports the import this request made. None found: nothing was imported so far, but read `curviate lead imports list` before running it again.",
|
|
297
|
-
NAME_TAKEN: "--list-name names a list that exists."
|
|
357
|
+
NAME_TAKEN: "--list-name names a list that exists.",
|
|
358
|
+
IMPORT_STATUS_CONFLICT: "an import of this source is still queued, running or paused: resume or stop it, or pass --restart.",
|
|
359
|
+
IMPORT_CANNOT_CONTINUE: "--continue names an import that read LinkedIn's last results for its search: narrow the search or split it."
|
|
298
360
|
},
|
|
299
361
|
output: ["With --json stdout is exactly one JSON document; progress and waits go to stderr. One report: `imports` (id and status each), `total_rows`, summed `counts` (created, updated, unchanged, skipped) and `skipped` rows with their number in the file, a reason and the field. With --async (or --no-wait): the imports' ids and statuses only, printed as soon as each is accepted; a queued one's progress is `curviate lead imports get IMPORT_ID` (stderr names it)."],
|
|
300
362
|
seeAlso: ["curviate lead imports get", "curviate lead list"],
|
|
301
363
|
examples: [
|
|
302
364
|
'curviate lead import --file prospects.csv --list-name "Q4 prospects" --tag conference',
|
|
303
|
-
|
|
304
|
-
"curviate lead import --
|
|
365
|
+
'curviate lead import --source-url "https://www.linkedin.com/search/results/people/?keywords=cto" --account acc_YOUR_ACCOUNT_ID --max 200 --list-name CTOs',
|
|
366
|
+
"curviate lead import --source company_people --filter keywords=fintech --titles CTO,VP Engineering --account acc_YOUR_ACCOUNT_ID"
|
|
305
367
|
]
|
|
306
368
|
},
|
|
307
369
|
args: {
|
|
308
370
|
...WRITE_SINGLE_FLAGS,
|
|
309
|
-
file: { type: "string", stdinArg: true,
|
|
371
|
+
file: { type: "string", stdinArg: true, description: "The file: a path, or - to read it from stdin (then --format is required). Not with --source." },
|
|
310
372
|
format: { type: "string", description: "csv | json | ndjson. Default: from the file extension (.csv, .json, .ndjson)." },
|
|
311
373
|
list: { type: "string", description: "Add every imported Lead to this Lead list (cl_...)." },
|
|
312
374
|
"list-name": { type: "string", description: "Add them to the list of this name (up to 100 characters), creating it. Not with --list." },
|
|
@@ -316,7 +378,21 @@ var importCmd = defineCommand({
|
|
|
316
378
|
map: { type: "string", description: 'Map a file header to a Lead field: header=target, for example "LinkedIn Profile=linkedin_url"; repeatable.' },
|
|
317
379
|
delimiter: { type: "string", description: "A CSV's separator: comma, semicolon or tab. Default: found by the server." },
|
|
318
380
|
async: { type: "boolean", description: "Print the imports' ids as soon as each is accepted and exit 0, without waiting for them to finish; follow one with `curviate lead imports get IMPORT_ID`. Stops only on a refused request." },
|
|
319
|
-
"no-wait": { type: "boolean", description: "Same as --async." }
|
|
381
|
+
"no-wait": { type: "boolean", description: "Same as --async." },
|
|
382
|
+
source: { type: "string", description: "Import from LinkedIn instead of a file: people_search, sales_nav_search, recruiter_search (a pasted --source-url or --filter), company_people (a company search plus --titles), sales_nav_lead_list (--list-id), sales_nav_account_list (--list-id, --titles optional), sales_nav_company_people (a Sales Navigator account search --source-url or --filter, plus --titles), post_engagers (--post-id) or group_members (--group-id). Default with --source-url: the kind the URL names." },
|
|
383
|
+
"source-url": { type: "string", description: "A pasted LinkedIn search URL (people, Sales Navigator lead or account, Recruiter or company search)." },
|
|
384
|
+
filter: {
|
|
385
|
+
type: "string",
|
|
386
|
+
description: "A built search instead of a URL: key=value, repeatable (a key given twice becomes a list). The keys each kind offers: people_search: keywords, advanced_keywords (job title as text, use --filters-json), location, current_company, past_company, school, industry, service, network_distance (location and network_distance exclude each other); company_people (the company step): keywords, industry, location, headcount, has_job_postings; recruiter_search: keywords, job_function, workplace_type (ON_SITE, HYBRID, REMOTE), group; sales_nav_search: the Sales Navigator lead search filters (job titles are lookup ids from `curviate core sales-nav search parameters`); sales_nav_company_people (the account step): the Sales Navigator account search filters. Any other key is refused naming it (connections_of and followers_of are not offered on people_search)."
|
|
387
|
+
},
|
|
388
|
+
"filters-json": { type: "string", description: "The built search as one JSON object. Not with --filter." },
|
|
389
|
+
"list-id": { type: "string", description: "The Sales Navigator lead list id (sales_nav_lead_list) or account list id (sales_nav_account_list)." },
|
|
390
|
+
"post-id": { type: "string", description: "The post id or URL (post_engagers)." },
|
|
391
|
+
"group-id": { type: "string", description: "A LinkedIn group id the Account belongs to (group_members)." },
|
|
392
|
+
titles: { type: "string", description: "Job titles to keep, repeatable or a comma list (company_people and sales_nav_company_people: required; sales_nav_account_list: optional). Only people with one of them are imported, never a whole company." },
|
|
393
|
+
max: { type: "string", description: "Stop after this many people (default and maximum: the kind's cap)." },
|
|
394
|
+
continue: { type: "string", description: "Continue this earlier import of the same source (imp_...) from where it stopped." },
|
|
395
|
+
restart: { type: "boolean", description: "Read the source from the beginning, even when an earlier import of it could continue." }
|
|
320
396
|
},
|
|
321
397
|
run: online(runImport)
|
|
322
398
|
});
|
|
@@ -345,7 +421,7 @@ var importsList = defineCommand({
|
|
|
345
421
|
var importsGet = defineCommand({
|
|
346
422
|
meta: {
|
|
347
423
|
name: "get",
|
|
348
|
-
description: "One import: its status, counts, the columns it mapped or ignored, and its failure
|
|
424
|
+
description: "One import: its status, counts, the columns it mapped or ignored, and its failure; an import from a LinkedIn source also carries `waiting` (why no page is read now: active_hours, budget or pushback, with `until`) and `estimate`. With --outcome, its rows instead: one per row of the file with what happened (created, updated, unchanged, skipped), the reason and the field. Import records are kept for a limited time.",
|
|
349
425
|
risk: "read",
|
|
350
426
|
examples: ["curviate lead imports get imp_YOUR_IMPORT_ID", "curviate lead imports get imp_YOUR_IMPORT_ID --outcome skipped"]
|
|
351
427
|
},
|
|
@@ -374,12 +450,37 @@ var importsGet = defineCommand({
|
|
|
374
450
|
}
|
|
375
451
|
})
|
|
376
452
|
});
|
|
453
|
+
var control = (name, description, changes, undo, conflict) => defineCommand({
|
|
454
|
+
meta: {
|
|
455
|
+
name,
|
|
456
|
+
description,
|
|
457
|
+
risk: "write",
|
|
458
|
+
rules: { changes, visible_to: "Your Team.", budget_rows: [], retry: "A repeat answers IMPORT_STATUS_CONFLICT; nothing changes.", undo },
|
|
459
|
+
errors: { IMPORT_STATUS_CONFLICT: conflict, TIER_REQUIRED: "your plan does not include imports from LinkedIn (Automate)." },
|
|
460
|
+
seeAlso: ["curviate lead imports get"],
|
|
461
|
+
examples: [`curviate lead imports ${name} imp_YOUR_IMPORT_ID`]
|
|
462
|
+
},
|
|
463
|
+
args: { ...WRITE_SINGLE_FLAGS, id: ID },
|
|
464
|
+
run: online(async (c, f) => {
|
|
465
|
+
const id = String(f.id ?? "");
|
|
466
|
+
if (id.trim() === "") usage("the import id is required (imp_...).");
|
|
467
|
+
if (f.preview) return preview(`leads.imports.${name}`, { id });
|
|
468
|
+
try {
|
|
469
|
+
renderSuccess(readableObject(await c.leads.imports[name](id)), outputOpts(f), process);
|
|
470
|
+
} catch (err) {
|
|
471
|
+
await fail(err, f);
|
|
472
|
+
}
|
|
473
|
+
})
|
|
474
|
+
});
|
|
475
|
+
var importsPause = control("pause", "Pause an import from a LinkedIn source: no page is read until it resumes; the Account is free for its next import meanwhile.", "The import stops reading pages until resumed.", "`curviate lead imports resume IMPORT_ID`.", "the import is not queued or running.");
|
|
476
|
+
var importsResume = control("resume", "Resume a paused import: it reads on from where it stopped, after the Account's running import if there is one, at the same pace.", "The import reads pages again.", "`curviate lead imports pause IMPORT_ID`.", "the import is not paused.");
|
|
477
|
+
var importsStop = control("stop", "Stop an import for good: the people found so far stay and the position is kept, so `curviate lead import --source ... --continue IMPORT_ID` reads on from there.", "The import ends; its Leads stay.", "None for this import; continue it with a new import and --continue.", "the import has finished.");
|
|
377
478
|
var contactImportCommand = importCmd;
|
|
378
479
|
var contactImportsCommand = defineCommand({
|
|
379
480
|
meta: { name: "imports", description: "Your Team's import records." },
|
|
380
|
-
subCommands: { list: importsList, get: importsGet },
|
|
481
|
+
subCommands: { list: importsList, get: importsGet, pause: importsPause, resume: importsResume, stop: importsStop },
|
|
381
482
|
async run() {
|
|
382
|
-
const { showHelp } = await import("./examples-
|
|
483
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
383
484
|
await showHelp(contactImportsCommand, ["curviate", "lead", "imports"]);
|
|
384
485
|
}
|
|
385
486
|
});
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
// src/commands/descriptions.ts
|
|
4
4
|
var DESCRIPTIONS = {
|
|
5
5
|
setup: "Connect this machine to your workspace: opens the dashboard, takes the code it shows you, and saves an API key.",
|
|
6
|
-
doctor: "Check that this machine can call the API: config, credential source, workspace, reachability
|
|
6
|
+
doctor: "Check that this machine can call the API: config, credential source, workspace, reachability, connected accounts and Mailboxes.",
|
|
7
7
|
login: "Save an API key to a local profile. Run `curviate core profile me` to verify.",
|
|
8
8
|
config: "Manage CLI profiles and settings.",
|
|
9
9
|
account: "LinkedIn account connection management.",
|
|
10
|
-
campaign: "Campaigns: one Sequence run for the Leads of your Team's Lead lists, from its sending Accounts, paced on a schedule. Create and edit drafts, preview, start, pause, resume, archive, add or remove Leads; lint a Sequence and write a template offline; upload the audio of a voice note step (`curviate campaign voice-clip`). Your Team's data: every role reads; writes need send access to each sending Account, and Campaigns need the Automate plan.",
|
|
10
|
+
campaign: "Campaigns: one Sequence run for the Leads of your Team's Lead lists, from its sending Accounts, paced on a schedule. Create and edit drafts, preview, start, pause, resume, archive, add or remove Leads; lint a Sequence and write a template offline; upload the audio of a voice note step (`curviate campaign voice-clip`) and the files of an email step (`curviate campaign attachment`). Your Team's data: every role reads; writes need send access to each sending Account, and Campaigns need the Automate plan.",
|
|
11
|
+
campaignAttachment: "Campaign attachments: the files an email step sends. Upload one file (up to 20 MiB), then put its id in the step's `attachment_ids`; read one back. Nothing is sent until a Campaign that uses it is started. Uploads need the Automate plan.",
|
|
11
12
|
campaignVoiceClip: "Voice clips: the audio a `voice.send` step plays. Upload one audio file (1 to 120 seconds, up to 20 MiB), then put its id in a Sequence as `clip_id`; read one back. Nothing reaches LinkedIn until a Campaign that uses it is started. Uploads need the Automate plan.",
|
|
12
13
|
enrollment: "Enrollments: one Lead in one Campaign on one Account. List and read them; pause, resume, retry a failed Step, stop, send a custom event, reassign, or act on many at once. Your Team's data: every role reads; writes need operate on the Enrollment's Account.",
|
|
13
14
|
lead: "Leads: the people in your Team's lists, not LinkedIn actions. List, read, add, change and delete them; import and export; enrich from LinkedIn profiles. Subgroups: `curviate lead lists` (Lead lists, including combining lists), `curviate lead tags`, `curviate lead imports`. Your Team's data: every role reads and writes; deleting is for Owners and Managers.",
|
|
14
15
|
"do-not-contact": "Do-not-contact: your Team's one list of people no Campaign contacts and no write reaches (a write toward them exits 10). List, read, add, change the reason, remove, export and import a file. Any member adds and imports; removing and exporting are for Owners and Managers.",
|
|
15
|
-
mailbox: "Mailboxes: your Team's own email Mailboxes, the addresses Campaigns send from. List, read, set who a Mailbox sends for, its daily cap and signature, pause, resume, remove, find the settings for an address (discover), connect and reconnect (a password goes in only through --password-stdin). Every role reads; Owners and Managers change any Mailbox, a Member the ones they connected.
|
|
16
|
+
mailbox: "Mailboxes: your Team's own email Mailboxes, the addresses Campaigns send from. List, read, set who a Mailbox sends for, its daily cap and signature, pause, resume, remove, find the settings for an address (discover), connect and reconnect (a password goes in only through --password-stdin), run a placement test (test, tests). Every role reads; Owners and Managers change any Mailbox, a Member the ones they connected. Your own Mailbox takes no seat and is never billed; Mailboxes from Curviate cost $5 a month each (buy, purchase; Owners only, and an order through an API key stays under the Team's cap on them).",
|
|
16
17
|
domain: "Domains: the DNS health of a sending domain (MX, SPF, DKIM, DMARC, tracking). `curviate domain check`, with --now to run the checks now.",
|
|
17
|
-
billing: "Billing: the price of seats, the spending cap, the change log
|
|
18
|
+
billing: "Billing: the price of seats, the spending cap, the change log, your Team's invoices (listed and downloaded as PDFs), and moving a previous price to the current one (`price move`, charges money). Owners only. Seats and the Tier are under `curviate account seats`, `curviate team` and `curviate tier`.",
|
|
18
19
|
contactImport: "Import Leads from a CSV, JSON or NDJSON file into a Lead list, splitting a large file into several imports.",
|
|
19
20
|
contactImports: "Read your Team's import records: the counts, the failure, and the rows an import skipped and why.",
|
|
20
21
|
contactLists: "Lead lists: named sets of Leads a Campaign enrolls from. List, read, create, combine lists into a new one, rename, delete, add and remove Leads.",
|
|
@@ -23,7 +24,7 @@ var DESCRIPTIONS = {
|
|
|
23
24
|
network: "Network: each Account's LinkedIn Connections, synced and stored by Curviate. List, export, read the sync status, ask for a resync. Your Team's data, for the Accounts you may operate.",
|
|
24
25
|
analytics: "Campaign outcomes and the budget your Accounts used. Read-only; Campaign numbers cover your Accounts and your team's shared Accounts, core activity the Accounts you may operate.",
|
|
25
26
|
export: "Background export jobs started by `curviate analytics export --job`: read the status, download the file. Only the person who started one can.",
|
|
26
|
-
tier: "Your Team's Tier now, what it bought, any trial or override, and the features it includes. Every role may read it.",
|
|
27
|
+
tier: "Your Team's Tier now, what it bought, any trial or override, and the features it includes. Email is part of the plan and sends once a Mailbox is connected: `curviate mailbox list`. Every role may read it.",
|
|
27
28
|
team: "Teams: list yours and switch the one calls act in, read or rename it, manage members and invites, set its logo, create a Team, lend seats between your Teams. Owners and Managers manage (a Manager invites Members only); every role reads.",
|
|
28
29
|
incoming: "Incoming events: a private URL any tool posts to. Curviate finds the Lead in the post and moves the Enrollments waiting for that event (`until event.<name>`). Your Team's data.",
|
|
29
30
|
beta: "Beta consent for your Team: whether beta operations run without --beta on each call. Owners change it.",
|
|
@@ -31,6 +32,8 @@ var DESCRIPTIONS = {
|
|
|
31
32
|
core: "Curviate core: LinkedIn building blocks. Each command runs one action now, from one Account, and counts against that Account's budgets. Nothing is queued, paced or retried for you, except a Draft scheduled with `--schedule-at`, which Curviate publishes at that time (`curviate core draft create`).",
|
|
32
33
|
profile: "LinkedIn profile operations.",
|
|
33
34
|
company: "Fetch a company profile by URL, slug, or numeric id, and its sub-resources.",
|
|
35
|
+
companyRecord: "Your Team's own record of a company, by LinkedIn's numeric company id: what Curviate stored and your company fields ({{company.extra.<key>}} in a Sequence). No LinkedIn call. The LinkedIn company page is `curviate core company`.",
|
|
36
|
+
signal: "Signals: what people did around your Accounts in the last 7 days (reacted, commented, viewed a profile, followed, mentioned, reposted, posted, connected), each Account's Signal watch and its switch, and the rules that add those people to a Lead list, enroll them in a Campaign or send `signal.matched` to your webhooks, with what each rule did. Reads Curviate's own store: no LinkedIn call.",
|
|
34
37
|
job: "Classic LinkedIn job-posting operations.",
|
|
35
38
|
connect: "Send or manage connection invitations. Connection requests may take 10-30 seconds to appear in the recipient's received list (LinkedIn propagation delay).",
|
|
36
39
|
search: "Search people, companies, posts, and jobs. Also runs a pasted search URL directly.",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
writeExport
|
|
4
|
+
} from "./chunk-PPGKQJKU.js";
|
|
2
5
|
import {
|
|
3
6
|
print,
|
|
4
7
|
rate,
|
|
5
8
|
table
|
|
6
9
|
} from "./chunk-5S3MJVI5.js";
|
|
7
|
-
import {
|
|
8
|
-
writeExport
|
|
9
|
-
} from "./chunk-PPGKQJKU.js";
|
|
10
10
|
import {
|
|
11
11
|
fail,
|
|
12
12
|
listFlag,
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5OAJ4D65.js";
|
|
17
17
|
import {
|
|
18
18
|
intFlag
|
|
19
19
|
} from "./chunk-NNV2OYEF.js";
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
readablePage,
|
|
25
25
|
rejectPaginationModifiersWithoutAll,
|
|
26
26
|
streamAll
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KUVJM5CP.js";
|
|
28
28
|
import {
|
|
29
29
|
renderSuccess,
|
|
30
30
|
writeNdjsonItem
|
|
31
31
|
} from "./chunk-QM57YDJE.js";
|
|
32
32
|
import {
|
|
33
33
|
downloadBinary
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PBJZQZPO.js";
|
|
35
35
|
import {
|
|
36
36
|
GLOBAL_FLAGS,
|
|
37
37
|
READ_SINGLE_FLAGS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-QLKGOIWS.js";
|
|
40
40
|
import {
|
|
41
41
|
DESCRIPTIONS
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-XDPU2YAF.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/analytics.ts
|
|
45
45
|
import { defineCommand } from "citty";
|
|
@@ -189,10 +189,30 @@ var JOB_ENTITIES = ["campaign_activity", "account_activity", "account_metrics"];
|
|
|
189
189
|
async function runExport(c, f) {
|
|
190
190
|
if (f.json) usage("export commands take no --json: pass --format json.");
|
|
191
191
|
const tables = f.table === void 0 ? [] : listFlag("table", f.table);
|
|
192
|
+
if (tables.includes("email")) {
|
|
193
|
+
if (tables.length > 1) usage("--table email is one table of its own: pass it alone.");
|
|
194
|
+
if (f.origin !== void 0) usage("--table email takes no --origin: it counts Campaign email only.");
|
|
195
|
+
const format2 = f.format ?? "csv";
|
|
196
|
+
const filters2 = { ...windowParams(f), ...filterParams(f, ["campaigns", "accounts"]) };
|
|
197
|
+
try {
|
|
198
|
+
if (f.job) {
|
|
199
|
+
const exp = await c.exports.create({ entity: "email_daily", format: format2, filters: filters2 });
|
|
200
|
+
renderSuccess(exp, outputOpts(f), process);
|
|
201
|
+
process.stderr.write(`Export ${exp["id"]} is ${exp["status"]}. Read it with \`curviate export get ${exp["id"]}\`, then \`curviate export download ${exp["id"]} -o <file>\` once ready.
|
|
202
|
+
`);
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const bytes = await downloadBinary(() => c.analytics.export({ ...filters2, format: format2, entity: "email_daily" }));
|
|
206
|
+
await writeExport(f.output, new Uint8Array(bytes));
|
|
207
|
+
} catch (err) {
|
|
208
|
+
await fail(err, f);
|
|
209
|
+
}
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
192
212
|
const entity = tables.length === 1 && JOB_ENTITIES.includes(tables[0]) ? tables[0] : "analytics";
|
|
193
213
|
if (entity !== "analytics" && !f.job) usage(`--table ${entity} is built by a background job: add --job.`);
|
|
194
214
|
const unknown = tables.find((t) => !ANALYTICS_TABLES.includes(t) && t !== entity);
|
|
195
|
-
if (unknown !== void 0) usage(`--table takes ${ANALYTICS_TABLES.join(", ")}, or one of ${JOB_ENTITIES.join(", ")} with --job.`);
|
|
215
|
+
if (unknown !== void 0) usage(`--table takes ${ANALYTICS_TABLES.join(", ")} or email, or one of ${JOB_ENTITIES.join(", ")} with --job.`);
|
|
196
216
|
const format = f.format ?? "csv";
|
|
197
217
|
const filters = { ...windowParams(f), ...filterParams(f, ["campaigns", "accounts", "origin"]) };
|
|
198
218
|
try {
|
|
@@ -306,7 +326,7 @@ var exportCmd = defineCommand({
|
|
|
306
326
|
team: GLOBAL_FLAGS.team,
|
|
307
327
|
"base-url": GLOBAL_FLAGS["base-url"],
|
|
308
328
|
timeout: GLOBAL_FLAGS.timeout,
|
|
309
|
-
table: { type: "string", description: "Comma list of daily, accounts, campaigns, enrollments (default all four); or, with --job, one of campaign_activity, account_activity, account_metrics." },
|
|
329
|
+
table: { type: "string", description: "Comma list of daily, accounts, campaigns, enrollments (default all four); or email alone: your Campaign email's daily counts per Mailbox, Account, Campaign, step, variant and receiving provider (at most 366 days); or, with --job, one of campaign_activity, account_activity, account_metrics." },
|
|
310
330
|
format: { type: "string", description: "csv (default), json or ndjson (ndjson takes one table)." },
|
|
311
331
|
output: { type: "string", alias: "o", description: "File to write (mode 0600), or - for stdout (default)." },
|
|
312
332
|
job: { type: "boolean", description: "Build it in the background and print the export record instead of streaming it." },
|
|
@@ -321,19 +341,109 @@ var eventsCommand = defineCommand({
|
|
|
321
341
|
meta: { name: "events", description: "The records behind the analytics numbers." },
|
|
322
342
|
subCommands: { list: eventsListCmd },
|
|
323
343
|
async run() {
|
|
324
|
-
const { showHelp } = await import("./examples-
|
|
344
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
325
345
|
await showHelp(eventsCommand, ["curviate", "analytics", "events"]);
|
|
326
346
|
}
|
|
327
347
|
});
|
|
348
|
+
async function runEmail(c, f) {
|
|
349
|
+
const q = { ...windowParams(f), ...filterParams(f, ["campaigns", "accounts"]) };
|
|
350
|
+
const include = f.include === void 0 ? [] : listFlag("include", f.include);
|
|
351
|
+
const EMAIL_INCLUDES = ["weeks", "breakdowns", "mailboxes", "domains", "forecast"];
|
|
352
|
+
const bad = include.find((i) => !EMAIL_INCLUDES.includes(i));
|
|
353
|
+
if (bad !== void 0) usage(`--include takes ${EMAIL_INCLUDES.join(", ")} (got ${bad}).`);
|
|
354
|
+
if (f.forecast && !include.includes("forecast")) include.push("forecast");
|
|
355
|
+
if (include.length) q["include"] = include;
|
|
356
|
+
try {
|
|
357
|
+
const body = await c.analytics.email(q);
|
|
358
|
+
if (outputOpts(f).json) return renderSuccess(body, outputOpts(f), process);
|
|
359
|
+
const today = body["today"];
|
|
360
|
+
print(`sent ${String(body["sent"] ?? "-")} \xB7 reply ${rate(body["reply"], "replied", "first_emailed")} \xB7 open ${body["open"] == null ? "not tracked" : rate(body["open"], "opened", "tracked")} \xB7 bounce ${rate(body["bounce"], "bounced", "sent")} \xB7 opt-out ${rate(body["opt_out"], "opted_out", "first_emailed")}`);
|
|
361
|
+
if (today) print(`today: ${String(today["sent"])} sent of a ${String(today["cap"])} daily cap`);
|
|
362
|
+
if (body["tracking"] !== "set_up") print(`open tracking: ${String(body["tracking"])} (set it up on the Mailboxes for an open rate over every email)`);
|
|
363
|
+
for (const m of body["mailboxes"] ?? []) print(`mailbox ${String(m["address"])}: ${String(m["state"])}, sent ${String(m["sent"] ?? 0)}, cap ${String(m["cap_lowered_to"] ?? m["daily_cap"])}`);
|
|
364
|
+
for (const d of body["domains"] ?? []) {
|
|
365
|
+
const checks = d["checks"] ?? {};
|
|
366
|
+
print(`domain ${String(d["name"])}: ${Object.entries(checks).map(([k, v]) => `${k} ${String(v)}`).join(", ")}`);
|
|
367
|
+
}
|
|
368
|
+
const breakdowns = body["breakdowns"];
|
|
369
|
+
if (breakdowns) for (const [by, rows] of Object.entries(breakdowns)) print(`by ${by}: ${rows.length} row${rows.length === 1 ? "" : "s"} (--json for the figures)`);
|
|
370
|
+
const forecast = body["forecast"];
|
|
371
|
+
if (forecast) {
|
|
372
|
+
if (forecast["status"] === "computing") print("forecast: computing; read again in a few minutes");
|
|
373
|
+
else for (const day of forecast["daily"] ?? []) print(`forecast ${String(day["date"])}: ${String(day["emails_sent"])} emails`);
|
|
374
|
+
}
|
|
375
|
+
} catch (err) {
|
|
376
|
+
await fail(err, f);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
async function runAttention(c, f) {
|
|
380
|
+
const q = {};
|
|
381
|
+
if (f.campaign !== void 0) q["campaign_id"] = f.campaign;
|
|
382
|
+
if (f["account-id"] !== void 0) q["account_id"] = f["account-id"];
|
|
383
|
+
try {
|
|
384
|
+
const body = await c.analytics.emailAttention(q);
|
|
385
|
+
if (outputOpts(f).json) return renderSuccess(body, outputOpts(f), process);
|
|
386
|
+
const items = body.items ?? [];
|
|
387
|
+
if (!items.length) return void print("Nothing needs a fix.");
|
|
388
|
+
print(table(["PROBLEM", "ON", "SINCE", "FIX"], items.map((i) => {
|
|
389
|
+
const on = i["subject"];
|
|
390
|
+
return [i["kind"], on ? `${String(on["type"])} ${String(on["id"])}` : "", i["since"], i["next"]];
|
|
391
|
+
})));
|
|
392
|
+
} catch (err) {
|
|
393
|
+
await fail(err, f);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
var attentionCmd = defineCommand({
|
|
397
|
+
meta: {
|
|
398
|
+
name: "attention",
|
|
399
|
+
description: "Needs a fix: what to fix in your email sending now, one row per problem, what stops sending first: paused or disconnected Mailboxes, failing DMARC or DKIM, mail landing in spam, Accounts without a Mailbox, and advice. Each row names the call that leads to its fix; a row leaves once its problem ends. Read-only.",
|
|
400
|
+
risk: "read",
|
|
401
|
+
output: ["A table of problem (a Notification type), what it is on, since when, and the fix command; --json (or piped) prints the API body (`values` carries the problem's codes and numbers)."],
|
|
402
|
+
seeAlso: ["curviate analytics email", "curviate mailbox list", "curviate notification list --channel email"],
|
|
403
|
+
examples: ["curviate analytics attention", "curviate analytics attention --campaign mot_YOUR_CAMPAIGN_ID --json"]
|
|
404
|
+
},
|
|
405
|
+
args: {
|
|
406
|
+
...readOnly(READ_SINGLE_FLAGS),
|
|
407
|
+
campaign: { type: "string", description: "Only problems that touch this Campaign (mot_...)." },
|
|
408
|
+
"account-id": { type: "string", description: "Only problems that touch this Account (acc_...)." }
|
|
409
|
+
},
|
|
410
|
+
run: online(runAttention)
|
|
411
|
+
});
|
|
412
|
+
var emailCmd = defineCommand({
|
|
413
|
+
meta: {
|
|
414
|
+
name: "email",
|
|
415
|
+
description: "Email results of your Campaigns over a window: emails sent, and the reply, open, bounce and opt-out rates with their counts, today's sending against the Mailboxes' daily caps and the daily series. Read from what Curviate recorded per send: no email or inbox is read.",
|
|
416
|
+
risk: "read",
|
|
417
|
+
output: [
|
|
418
|
+
"reply: Leads first emailed in the window whose first reply, by email or on LinkedIn, came after that email, so far; an out-of-office reply is never a reply.",
|
|
419
|
+
"open: opened over tracked emails; null when no Mailbox in scope tracks opens (`tracking`).",
|
|
420
|
+
"bounce: bounced over sent. opt-out: Leads who opted out over Leads first emailed.",
|
|
421
|
+
"--include weeks adds the reply rate by week of first email. A compact line by default; --json (or piped) prints the API body."
|
|
422
|
+
],
|
|
423
|
+
seeAlso: ["curviate analytics get", "curviate mailbox list"],
|
|
424
|
+
examples: ["curviate analytics email --range 30d", "curviate analytics email --campaigns mot_YOUR_CAMPAIGN_ID --include weeks --json", "curviate analytics email --include mailboxes,domains --forecast"]
|
|
425
|
+
},
|
|
426
|
+
args: {
|
|
427
|
+
...readOnly(READ_SINGLE_FLAGS),
|
|
428
|
+
campaigns: { type: "string", description: "Only these Campaigns, comma list (mot_...)." },
|
|
429
|
+
...WINDOW_ARGS,
|
|
430
|
+
accounts: FILTER_ARGS.accounts,
|
|
431
|
+
include: { type: "string", description: "Sections to add, comma list: weeks (the reply rate by week of first email), breakdowns (by Campaign, step, variant, receiving provider, thread setting, Mailbox and Account), mailboxes, domains (their checks), forecast." },
|
|
432
|
+
forecast: { type: "boolean", description: "Add the emails your Campaigns are expected to send each day from today (include=forecast): a simulation of their email steps, each Mailbox counting its daily cap." }
|
|
433
|
+
},
|
|
434
|
+
run: online(runEmail)
|
|
435
|
+
});
|
|
328
436
|
var analyticsCommand = defineCommand({
|
|
329
437
|
meta: { name: "analytics", description: DESCRIPTIONS.analytics },
|
|
330
438
|
subCommands: {
|
|
331
439
|
get: getCmd,
|
|
440
|
+
email: emailCmd,
|
|
441
|
+
attention: attentionCmd,
|
|
332
442
|
events: eventsCommand,
|
|
333
443
|
export: exportCmd
|
|
334
444
|
},
|
|
335
445
|
async run() {
|
|
336
|
-
const { showHelp } = await import("./examples-
|
|
446
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
337
447
|
await showHelp(analyticsCommand, ["curviate", "analytics"]);
|
|
338
448
|
}
|
|
339
449
|
});
|
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-QLKGOIWS.js";
|
|
16
16
|
import {
|
|
17
17
|
lazy
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XDPU2YAF.js";
|
|
19
19
|
import {
|
|
20
20
|
editDistance
|
|
21
21
|
} from "./chunk-FDJMAF7D.js";
|
|
@@ -45,35 +45,37 @@ var main = defineCommand({
|
|
|
45
45
|
// Subcommand registry, names and descriptions are static for help rendering;
|
|
46
46
|
// the handler implementation is loaded lazily on first invocation.
|
|
47
47
|
subCommands: {
|
|
48
|
-
setup: lazy("setup", () => import("./setup-
|
|
49
|
-
doctor: lazy("doctor", () => import("./doctor-
|
|
50
|
-
login: lazy("login", () => import("./login-
|
|
51
|
-
config: lazy("config", () => import("./config-
|
|
52
|
-
account: lazy("account", () => import("./account-
|
|
53
|
-
campaign: lazy("campaign", () => import("./motion-
|
|
54
|
-
enrollment: lazy("enrollment", () => import("./enrollment-
|
|
55
|
-
lead: lazy("lead", () => import("./contact-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
48
|
+
setup: lazy("setup", () => import("./setup-D6D7SNND.js").then((m) => m.setupCommand)),
|
|
49
|
+
doctor: lazy("doctor", () => import("./doctor-ZNAR5AZ2.js").then((m) => m.doctorCommand)),
|
|
50
|
+
login: lazy("login", () => import("./login-M7ZLOR2U.js").then((m) => m.loginCommand)),
|
|
51
|
+
config: lazy("config", () => import("./config-PI7JMQ2L.js").then((m) => m.configCommand)),
|
|
52
|
+
account: lazy("account", () => import("./account-GSL6BCNX.js").then((m) => m.accountCommand)),
|
|
53
|
+
campaign: lazy("campaign", () => import("./motion-4HH3OFI6.js").then((m) => m.campaignCommand)),
|
|
54
|
+
enrollment: lazy("enrollment", () => import("./enrollment-LN3Z3RC5.js").then((m) => m.enrollmentCommand)),
|
|
55
|
+
lead: lazy("lead", () => import("./contact-VNG7HRCN.js").then((m) => m.contactCommand)),
|
|
56
|
+
company: lazy("companyRecord", () => import("./company-record-HWLTP4TV.js").then((m) => m.companyRecordCommand)),
|
|
57
|
+
signal: lazy("signal", () => import("./signal-TGSF7WEP.js").then((m) => m.signalCommand)),
|
|
58
|
+
"do-not-contact": lazy("do-not-contact", () => import("./do-not-contact-GDVIUNMT.js").then((m) => m.doNotContactCommand)),
|
|
59
|
+
mailbox: lazy("mailbox", () => import("./mailbox-E2K3I2VH.js").then((m) => m.mailboxCommand)),
|
|
60
|
+
domain: lazy("domain", () => import("./domain-62YUYVDW.js").then((m) => m.domainCommand)),
|
|
61
|
+
unibox: lazy("unibox", () => import("./unibox-7B6B4SXB.js").then((m) => m.uniboxCommand)),
|
|
62
|
+
network: lazy("network", () => import("./network-JQYLSQDH.js").then((m) => m.networkCommand)),
|
|
63
|
+
analytics: lazy("analytics", () => import("./analytics-4FUMJSMC.js").then((m) => m.analyticsCommand)),
|
|
64
|
+
notification: lazy("notification", () => import("./notifications-N55F3DP3.js").then((m) => m.notificationsCommand)),
|
|
65
|
+
export: lazy("export", () => import("./export-S6D4FEAG.js").then((m) => m.exportCommand)),
|
|
66
|
+
billing: lazy("billing", () => import("./billing-STRNXA4H.js").then((m) => m.billingCommand)),
|
|
67
|
+
tier: lazy("tier", () => import("./tier-DAF7Y2HN.js").then((m) => m.tierCommand)),
|
|
68
|
+
team: lazy("team", () => import("./team-MVNHCWJP.js").then((m) => m.teamCommand)),
|
|
69
|
+
incoming: lazy("incoming", () => import("./incoming-YDRPPO24.js").then((m) => m.incomingCommand)),
|
|
70
|
+
beta: lazy("beta", () => import("./beta-consent-EC2QF6CM.js").then((m) => m.betaCommand)),
|
|
71
|
+
webhook: lazy("webhook", () => import("./webhook-NUVSTDXF.js").then((m) => m.webhookCommand)),
|
|
70
72
|
// The LinkedIn building blocks. Reserved product groups
|
|
71
73
|
// (unibox, network, analytics, team) land
|
|
72
74
|
// between `enrollment` and `webhook` with their owning specs.
|
|
73
|
-
core: lazy("core", () => import("./core-
|
|
75
|
+
core: lazy("core", () => import("./core-ZRJY3HTF.js").then((m) => m.coreCommand))
|
|
74
76
|
},
|
|
75
77
|
async run() {
|
|
76
|
-
const { showHelp } = await import("./examples-
|
|
78
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
77
79
|
await showHelp(main, ["curviate"]);
|
|
78
80
|
}
|
|
79
81
|
});
|
|
@@ -365,7 +367,7 @@ async function dispatch(root, rawArgs) {
|
|
|
365
367
|
helpFor = "curviate";
|
|
366
368
|
if (rawArgs.includes("--help") || rawArgs.includes("-h")) {
|
|
367
369
|
const { leaf, path } = await resolveLeaf(root, rawArgs.filter((a) => a !== "--help" && a !== "-h"));
|
|
368
|
-
const { showHelp } = await import("./examples-
|
|
370
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
369
371
|
await showHelp(leaf, path);
|
|
370
372
|
await new Promise((done) => process.stdout.write("", () => done()));
|
|
371
373
|
process.exit(0);
|
|
@@ -389,7 +391,7 @@ async function dispatch(root, rawArgs) {
|
|
|
389
391
|
const inline = (end === -1 ? argsAfterBeta : argsAfterBeta.slice(0, end)).find((a) => /^--[a-z-]+-stdin=/.test(a));
|
|
390
392
|
if (inline !== void 0) {
|
|
391
393
|
const flag = inline.slice(0, inline.indexOf("="));
|
|
392
|
-
usageError(`${flag} takes no value: the secret is read from
|
|
394
|
+
usageError(`${flag} takes no value: the secret is read from standard input, typed by the person at their own terminal.`, "nothing was sent; a secret never passes through an agent: use a Connect request link instead (curviate account connect-request create, or the command without the flag)");
|
|
393
395
|
}
|
|
394
396
|
let hintLeaf;
|
|
395
397
|
try {
|
|
@@ -453,7 +455,7 @@ async function dispatch(root, rawArgs) {
|
|
|
453
455
|
if (code === "EARG") process.stderr.write(helpPointer());
|
|
454
456
|
const { CurviateError } = await import("@curviate/sdk");
|
|
455
457
|
if (err instanceof CurviateError) {
|
|
456
|
-
const { getExitCode } = await import("./exit-codes-
|
|
458
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
457
459
|
process.exit(getExitCode(err));
|
|
458
460
|
}
|
|
459
461
|
process.exit(code === "EARG" ? 2 : 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CQHCPZ5I.js";
|
|
5
5
|
import "./chunk-UEAX6KUB.js";
|
|
6
6
|
import {
|
|
7
7
|
AS_ACCOUNT,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
describeAttachment,
|
|
14
14
|
readAttachment,
|
|
15
15
|
toAttachmentPayload
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JY26SUNH.js";
|
|
17
17
|
import {
|
|
18
18
|
requireAccount
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MLZSXQZC.js";
|
|
20
20
|
import {
|
|
21
21
|
buildPreviewOutput
|
|
22
22
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
readablePage,
|
|
28
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
29
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KUVJM5CP.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-PBJZQZPO.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_FLAGS,
|
|
43
43
|
WRITE_SINGLE_FLAGS,
|
|
@@ -45,11 +45,11 @@ import {
|
|
|
45
45
|
} from "./chunk-QLKGOIWS.js";
|
|
46
46
|
import {
|
|
47
47
|
DESCRIPTIONS
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-XDPU2YAF.js";
|
|
49
49
|
import {
|
|
50
50
|
resolveTextOrStdin
|
|
51
51
|
} from "./chunk-ZYURL5VK.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-EWSOIFG2.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/comment.ts
|
|
55
55
|
import { defineCommand } from "citty";
|
|
@@ -78,7 +78,7 @@ function buildListQuery(flags, out) {
|
|
|
78
78
|
async function handleSdkError(err, outOpts, out) {
|
|
79
79
|
const { CurviateError } = await import("@curviate/sdk");
|
|
80
80
|
if (err instanceof CurviateError) {
|
|
81
|
-
const { getExitCode } = await import("./exit-codes-
|
|
81
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
82
82
|
renderError(err, outOpts, out);
|
|
83
83
|
process.exit(getExitCode(err));
|
|
84
84
|
}
|