@curviate/cli 0.63.0 → 0.65.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 +18 -0
- package/dist/{account-4T7S3HZD.js → account-6IKQAGAX.js} +8 -8
- package/dist/{analytics-4Z4PKAJ3.js → analytics-5LYWN4RF.js} +5 -5
- package/dist/{beta-consent-HYJPCSJ4.js → beta-consent-PPI5IUSD.js} +4 -4
- package/dist/{billing-V65MIXTE.js → billing-R6TDVSMZ.js} +5 -5
- package/dist/{chunk-I6KOMJVE.js → chunk-3RACWVSE.js} +2 -2
- package/dist/{chunk-TU4IAQU7.js → chunk-4K34FHE5.js} +3 -3
- package/dist/{chunk-REUJDFUI.js → chunk-6EKWHAEH.js} +6 -6
- package/dist/{chunk-LJ4KKQX3.js → chunk-76OVMT7O.js} +1 -1
- package/dist/{chunk-OJI6MXDZ.js → chunk-AR34Y3V6.js} +2 -2
- package/dist/{chunk-VMYY6QVQ.js → chunk-CCBUB6WM.js} +5 -5
- package/dist/{chunk-4G46D4PW.js → chunk-EGNU7GKL.js} +11 -11
- package/dist/{chunk-EO42KWBI.js → chunk-KAMKNMDR.js} +111 -29
- package/dist/{chunk-DLYVUDNF.js → chunk-KU6ORZ5Z.js} +3 -1
- package/dist/{chunk-A36LF5KC.js → chunk-P5TGPTBV.js} +7 -7
- package/dist/{chunk-D6IQCQMP.js → chunk-U55AXO2J.js} +1 -1
- package/dist/{chunk-5GNACRVM.js → chunk-W524FTEO.js} +2 -2
- package/dist/{chunk-66HEPUAX.js → chunk-Z67TWG6W.js} +2 -0
- package/dist/cli.js +28 -28
- package/dist/{comment-HWQ2QKMC.js → comment-FDZMRASJ.js} +7 -7
- package/dist/{company-7IQVEW5C.js → company-6ZUDLEGL.js} +7 -7
- package/dist/{company-record-VKRYZT36.js → company-record-WAY2ASK6.js} +10 -10
- package/dist/{config-H42PGDKK.js → config-GJX2WLRX.js} +1 -1
- package/dist/{connect-WKZBF3HH.js → connect-VV5BEFAE.js} +11 -11
- package/dist/{contact-YNPRX24V.js → contact-LFXH5ROE.js} +8 -8
- package/dist/{contact-groups-3IKE27LP.js → contact-groups-AKCTZSAC.js} +10 -10
- package/dist/{contact-import-CNUUBV2G.js → contact-import-FBASQAJ4.js} +17 -11
- package/dist/{core-WYX2KPXO.js → core-7XJG4ISF.js} +17 -17
- package/dist/{do-not-contact-SK3X2GUZ.js → do-not-contact-2RKGOFIQ.js} +10 -10
- package/dist/{doctor-JXZ6IA7V.js → doctor-CUQZXWSI.js} +4 -4
- package/dist/{domain-3O3RRDDE.js → domain-2SRQNEK7.js} +5 -5
- package/dist/{draft-N25LUN3O.js → draft-IVPVFA5U.js} +4 -4
- package/dist/{enrollment-XVOTQJCW.js → enrollment-2NG5M63J.js} +6 -6
- package/dist/{examples-G4IC5TJU.js → examples-FGF6HIAN.js} +1 -1
- package/dist/{exit-codes-MMGNZCJ5.js → exit-codes-MSUALZX5.js} +1 -1
- package/dist/{export-WZURNCW4.js → export-DZLAEWWL.js} +4 -4
- package/dist/{feed-TQNYEIKA.js → feed-6DXIJPPF.js} +6 -6
- package/dist/{group-YH74XB2A.js → group-WVITK4FF.js} +6 -6
- package/dist/{inbox-ONG2WAQF.js → inbox-OLW6KMF7.js} +6 -6
- package/dist/{inboxes-2UUPV7YG.js → inboxes-HV6PXICA.js} +6 -6
- package/dist/{incoming-36FVTDLR.js → incoming-EF3LZGZA.js} +5 -5
- package/dist/{job-ZUXQNQWE.js → job-T5LNQACM.js} +6 -6
- package/dist/{login-2XMBLHXZ.js → login-GDCPVZKK.js} +1 -1
- package/dist/{mailbox-3SAHMUXD.js → mailbox-CVM5QZ7E.js} +36 -17
- package/dist/{message-6RXPM34Y.js → message-OWRSYEOB.js} +6 -6
- package/dist/{motion-H3VRJTMG.js → motion-SVE2L5WD.js} +8 -8
- package/dist/{network-TJNJ2KOZ.js → network-4CZJH4YY.js} +5 -5
- package/dist/{notification-3RCR3752.js → notification-VMN4OPZ7.js} +6 -6
- package/dist/{notifications-JLCI2HNY.js → notifications-76EAPG5B.js} +6 -6
- package/dist/{post-LFIOTRVB.js → post-3QLWHDU6.js} +7 -7
- package/dist/{profile-4AND35NT.js → profile-PCBKCXLO.js} +11 -11
- package/dist/{recruiter-WCD6QX6I.js → recruiter-JNVHS64B.js} +6 -6
- package/dist/{sales-nav-GNRI37BT.js → sales-nav-53AJYUUW.js} +6 -6
- package/dist/{search-EO42F7WY.js → search-DMWKN7TD.js} +15 -15
- package/dist/{setup-MXG4WJ3O.js → setup-2ZIFAXKZ.js} +4 -4
- package/dist/{signal-VWJ2AEIA.js → signal-XI3V5TM3.js} +5 -5
- package/dist/{team-JAW7XI3C.js → team-D4BGYY2L.js} +5 -5
- package/dist/{tier-DHUKMNWG.js → tier-SOYZZJBA.js} +4 -4
- package/dist/{unibox-JV2VN6TC.js → unibox-7TESM34K.js} +8 -8
- package/dist/{webhook-R4SR6TYR.js → webhook-WS5TOVSN.js} +5 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,24 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
6
6
|
Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html):
|
|
7
7
|
a new command or flag is a minor; a breaking command/flag/exit-code change is a major (before 1.0.0, a minor); a fix is a patch.
|
|
8
8
|
|
|
9
|
+
## [0.65.0] - 2026-11-21
|
|
10
|
+
|
|
11
|
+
Requires `@curviate/sdk` 0.60.0 (exact pin; the vendored fixture is re-copied from the SDK's and its hash recomputed). `commands.json` regenerated. No new command or flag; one error code mapped to an existing exit.
|
|
12
|
+
|
|
13
|
+
- **An order of Mailboxes from Curviate says what it waits for, in the dashboard's words.** `mailbox buy`, `mailbox purchase get` and `mailbox purchase check` print one line on stderr from `waiting_for`: `records` ("Add each record where your domain's DNS is managed... If they are not all found by December 3, the order ends with nothing charged."), `payment` (update the payment method in Billing, app.curviate.com/settings/billing, and the order continues by itself), `curviate` (nothing to do on yours), `charge` (being charged, a few minutes). An order that ended `payment_outstanding`, `held_by_curviate` or `domain_taken` says why and what the person can do (update the payment method, order again, name another domain). Nothing was charged on any of them.
|
|
14
|
+
- **The quote says what to do when an order cannot be placed**: `payment` (a payment outstanding: update the payment method in Billing, then order) and `capacity` (Curviate has no room for this many new Mailboxes at the moment: order fewer, or later). `charge_waits_for` (always null now) is no longer printed.
|
|
15
|
+
- **`MAILBOX_NO_ROOM`** exits `1`, as `MAILBOX_SALES_PAUSED`: nothing was ordered or charged; order fewer or later, never on a timer.
|
|
16
|
+
- **Search**: a refusal with budget `warm_up` reads "warm-up holds this Account's search at 0 pages for now (not a search setting)"; an import waiting on it reads "Warm-up holds this Account's search at 0 pages for now". `lead imports get` help names `warm_up` and the import's half share of the Account's search pages.
|
|
17
|
+
- Help: `mailbox buy` errors (`MAILBOX_PURCHASE_TRIAL` for a payment outstanding, `DOMAIN_IN_USE` for another Team's domain, `MAILBOX_NO_ROOM`), `mailbox purchase get` (`waiting_for`, every end reason), `mailbox quote` output; `core search companies --headcount`: 10001+ is not accepted.
|
|
18
|
+
|
|
19
|
+
## [0.64.0] - 2026-11-20
|
|
20
|
+
|
|
21
|
+
Requires `@curviate/sdk` 0.59.0 (exact pin; the vendored fixture is re-copied from the SDK's and its hash recomputed). `commands.json` regenerated. No new command, flag or exit code.
|
|
22
|
+
|
|
23
|
+
- **An import from a LinkedIn source says where it stands, in the dashboard's words.** `lead import --source`, `lead imports get` and `lead imports list` print a `progress` line after `status`: the wait with the time of the next page (`Next page in 2 minutes`, `Hourly search limit reached. Next page at 14:05`, `Daily search limit reached. Next page tomorrow at 09:00`, `Monthly search limit reached`, `Outside the Account's Active hours`, `Paused: LinkedIn slowed this search down`, `Starts after the import ahead of it (imp_...). First page in 3 minutes`, `Resumes once the Account is reconnected`), then how long is left (`About 8 to 11 minutes left`, from `estimate.seconds_min` and `seconds_max`: minutes under 90, hours under 36, then days; never a range with equal ends); a finished import says how long it took (`Done in 12 minutes: reached its maximum`). Times are local. With `--json` (or piped output) stdout is the API's object unchanged, and `lead imports get` writes the line to stderr.
|
|
24
|
+
- **The estimate's working days are no longer printed** (deprecated by the API; still in `--json`).
|
|
25
|
+
- `lead imports get` help: `next_page_at`, `waiting.budget` (hour, day, lines, month), `waiting.kind` `import_ahead` with `import_id`, `halt`, `account_unavailable`, `estimate` in seconds, and `counts.updated` (Leads the import filled at least one field on). No need to poll: look again at `next_page_at`.
|
|
26
|
+
|
|
9
27
|
## [0.63.0] - 2026-11-20
|
|
10
28
|
|
|
11
29
|
Requires `@curviate/sdk` 0.58.0 (exact pin; the vendored fixture is re-copied from the SDK's and its hash recomputed). `commands.json` regenerated. New flags, no new exit code: a search refusal is `BUDGET_EXHAUSTED`, exit 13; a search paused after LinkedIn server errors is `PLATFORM_ERROR`, exit 7.
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
grammarParams,
|
|
15
15
|
renderOverview,
|
|
16
16
|
windowParams
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6EKWHAEH.js";
|
|
18
18
|
import "./chunk-PPGKQJKU.js";
|
|
19
19
|
import {
|
|
20
20
|
print,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
outputOpts,
|
|
27
27
|
rootClient,
|
|
28
28
|
usage
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4K34FHE5.js";
|
|
30
30
|
import {
|
|
31
31
|
buildPreviewOutput
|
|
32
32
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
readablePage,
|
|
42
42
|
rejectPaginationModifiersWithoutAll,
|
|
43
43
|
streamAll
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3RACWVSE.js";
|
|
45
45
|
import {
|
|
46
46
|
isJsonMode,
|
|
47
47
|
renderError,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
renderSuccess,
|
|
50
50
|
renderUnexpectedError,
|
|
51
51
|
writeNdjsonItem
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-Z67TWG6W.js";
|
|
53
53
|
import {
|
|
54
54
|
readHiddenToEof,
|
|
55
55
|
readlineSync
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
createClient,
|
|
59
59
|
resolveEffectiveConfig
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-U55AXO2J.js";
|
|
61
61
|
import {
|
|
62
62
|
GLOBAL_FLAGS,
|
|
63
63
|
READ_SINGLE_FLAGS,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-ZYURL5VK.js";
|
|
80
80
|
import {
|
|
81
81
|
AUTH_NEEDED
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-KU6ORZ5Z.js";
|
|
83
83
|
|
|
84
84
|
// src/commands/account-insights.ts
|
|
85
85
|
import { defineCommand } from "citty";
|
|
@@ -781,7 +781,7 @@ var connectRequestCommand = defineCommand4({
|
|
|
781
781
|
meta: { name: "connect-request", description: "Connect a LinkedIn account without any credential passing through you: create a request, give the person its link, read it until done." },
|
|
782
782
|
subCommands: { create: createCmd, get: getCmd2, cancel: cancelCmd },
|
|
783
783
|
async run() {
|
|
784
|
-
const { showHelp } = await import("./examples-
|
|
784
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
785
785
|
await showHelp(connectRequestCommand, ["curviate", "account", "connect-request"]);
|
|
786
786
|
}
|
|
787
787
|
});
|
|
@@ -812,7 +812,7 @@ function resolveOutputOpts(flags) {
|
|
|
812
812
|
async function handleError(err, outOpts, out) {
|
|
813
813
|
const { CurviateError } = await import("@curviate/sdk");
|
|
814
814
|
if (err instanceof CurviateError) {
|
|
815
|
-
const { getExitCode } = await import("./exit-codes-
|
|
815
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
816
816
|
renderError(err, outOpts, out);
|
|
817
817
|
process.exit(getExitCode(err));
|
|
818
818
|
}
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
grammarParams,
|
|
7
7
|
renderOverview,
|
|
8
8
|
windowParams
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6EKWHAEH.js";
|
|
10
10
|
import "./chunk-PPGKQJKU.js";
|
|
11
11
|
import "./chunk-5S3MJVI5.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-4K34FHE5.js";
|
|
13
13
|
import "./chunk-NNV2OYEF.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-3RACWVSE.js";
|
|
15
|
+
import "./chunk-Z67TWG6W.js";
|
|
16
|
+
import "./chunk-U55AXO2J.js";
|
|
17
17
|
import "./chunk-65UYYCWD.js";
|
|
18
18
|
import "./chunk-Z647LR4F.js";
|
|
19
19
|
import "./chunk-ZYURL5VK.js";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4K34FHE5.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
11
11
|
import {
|
|
12
12
|
renderSuccess
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-Z67TWG6W.js";
|
|
14
|
+
import "./chunk-U55AXO2J.js";
|
|
15
15
|
import {
|
|
16
16
|
READ_SINGLE_FLAGS,
|
|
17
17
|
WRITE_SINGLE_FLAGS,
|
|
@@ -72,7 +72,7 @@ var betaCommand = defineCommand({
|
|
|
72
72
|
meta: { name: "beta", description: DESCRIPTIONS.beta },
|
|
73
73
|
subCommands: { status: statusCmd, update: updateCmd },
|
|
74
74
|
async run() {
|
|
75
|
-
const { showHelp } = await import("./examples-
|
|
75
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
76
76
|
await showHelp(betaCommand, ["curviate", "beta"]);
|
|
77
77
|
}
|
|
78
78
|
});
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
billingCommand,
|
|
4
4
|
confirmMoney
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-P5TGPTBV.js";
|
|
6
6
|
import "./chunk-GOICALYQ.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-4K34FHE5.js";
|
|
8
8
|
import "./chunk-TCUYH5GO.js";
|
|
9
9
|
import "./chunk-NNV2OYEF.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-3RACWVSE.js";
|
|
11
|
+
import "./chunk-Z67TWG6W.js";
|
|
12
|
+
import "./chunk-U55AXO2J.js";
|
|
13
13
|
import "./chunk-65UYYCWD.js";
|
|
14
14
|
import "./chunk-Z647LR4F.js";
|
|
15
15
|
import "./chunk-ZYURL5VK.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
renderNotices,
|
|
4
4
|
renderProvenanceNote
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z67TWG6W.js";
|
|
6
6
|
import {
|
|
7
7
|
isPlainObject
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U55AXO2J.js";
|
|
9
9
|
|
|
10
10
|
// src/lib/paginate.ts
|
|
11
11
|
import { CurviateError } from "@curviate/sdk";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
renderError,
|
|
4
4
|
renderUnexpectedError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z67TWG6W.js";
|
|
6
6
|
import {
|
|
7
7
|
createClient,
|
|
8
8
|
resolveEffectiveConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U55AXO2J.js";
|
|
10
10
|
|
|
11
11
|
// src/lib/root-command.ts
|
|
12
12
|
var outputOpts = (f) => ({
|
|
@@ -35,7 +35,7 @@ async function rootClient(f) {
|
|
|
35
35
|
async function fail(err, f) {
|
|
36
36
|
const { CurviateError } = await import("@curviate/sdk");
|
|
37
37
|
if (err instanceof CurviateError) {
|
|
38
|
-
const { getExitCode } = await import("./exit-codes-
|
|
38
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
39
39
|
renderError(err, outputOpts(f), process);
|
|
40
40
|
process.exit(getExitCode(err));
|
|
41
41
|
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4K34FHE5.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-3RACWVSE.js";
|
|
28
28
|
import {
|
|
29
29
|
renderSuccess,
|
|
30
30
|
writeNdjsonItem
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Z67TWG6W.js";
|
|
32
32
|
import {
|
|
33
33
|
downloadBinary
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-U55AXO2J.js";
|
|
35
35
|
import {
|
|
36
36
|
GLOBAL_FLAGS,
|
|
37
37
|
READ_SINGLE_FLAGS,
|
|
@@ -341,7 +341,7 @@ var eventsCommand = defineCommand({
|
|
|
341
341
|
meta: { name: "events", description: "The records behind the analytics numbers." },
|
|
342
342
|
subCommands: { list: eventsListCmd },
|
|
343
343
|
async run() {
|
|
344
|
-
const { showHelp } = await import("./examples-
|
|
344
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
345
345
|
await showHelp(eventsCommand, ["curviate", "analytics", "events"]);
|
|
346
346
|
}
|
|
347
347
|
});
|
|
@@ -445,7 +445,7 @@ var analyticsCommand = defineCommand({
|
|
|
445
445
|
export: exportCmd
|
|
446
446
|
},
|
|
447
447
|
async run() {
|
|
448
|
-
const { showHelp } = await import("./examples-
|
|
448
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
449
449
|
await showHelp(analyticsCommand, ["curviate", "analytics"]);
|
|
450
450
|
}
|
|
451
451
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readablePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3RACWVSE.js";
|
|
5
5
|
import {
|
|
6
6
|
assertNoStdinPlaceholder
|
|
7
7
|
} from "./chunk-ZYURL5VK.js";
|
|
8
8
|
import {
|
|
9
9
|
getExitCode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KU6ORZ5Z.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/path-safety.ts
|
|
13
13
|
var UNSAFE_CHARS = /[\u0000-\u0020\u007F/\\?#%]/;
|
|
@@ -21,24 +21,24 @@ import {
|
|
|
21
21
|
} from "./chunk-JY26SUNH.js";
|
|
22
22
|
import {
|
|
23
23
|
requireAccount
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AR34Y3V6.js";
|
|
25
25
|
import {
|
|
26
26
|
buildPreviewOutput
|
|
27
27
|
} from "./chunk-TCUYH5GO.js";
|
|
28
28
|
import {
|
|
29
29
|
readableId,
|
|
30
30
|
readableObject
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-3RACWVSE.js";
|
|
32
32
|
import {
|
|
33
33
|
renderError,
|
|
34
34
|
renderSuccess,
|
|
35
35
|
renderUnexpectedError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Z67TWG6W.js";
|
|
37
37
|
import {
|
|
38
38
|
createClient,
|
|
39
39
|
downloadBinary,
|
|
40
40
|
resolveEffectiveConfig
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-U55AXO2J.js";
|
|
42
42
|
import {
|
|
43
43
|
READ_SINGLE_FLAGS,
|
|
44
44
|
WRITE_FLAGS,
|
|
@@ -153,7 +153,7 @@ var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
|
|
|
153
153
|
async function handleSdkError(err, outOpts, out) {
|
|
154
154
|
const { CurviateError } = await import("@curviate/sdk");
|
|
155
155
|
if (err instanceof CurviateError) {
|
|
156
|
-
const { getExitCode } = await import("./exit-codes-
|
|
156
|
+
const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
|
|
157
157
|
renderError(err, outOpts, out);
|
|
158
158
|
process.exit(getExitCode(err));
|
|
159
159
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AR34Y3V6.js";
|
|
5
5
|
import {
|
|
6
6
|
writeAtomic
|
|
7
7
|
} from "./chunk-GOICALYQ.js";
|
|
8
8
|
import {
|
|
9
9
|
sendInChunks
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W524FTEO.js";
|
|
11
11
|
import {
|
|
12
12
|
fail,
|
|
13
13
|
listFlag,
|
|
14
14
|
outputOpts,
|
|
15
15
|
rootClient,
|
|
16
16
|
usage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4K34FHE5.js";
|
|
18
18
|
import {
|
|
19
19
|
buildPreviewOutput
|
|
20
20
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,14 +29,14 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3RACWVSE.js";
|
|
33
33
|
import {
|
|
34
34
|
renderSuccess,
|
|
35
35
|
writeNdjsonItem
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Z67TWG6W.js";
|
|
37
37
|
import {
|
|
38
38
|
downloadBinary
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-U55AXO2J.js";
|
|
40
40
|
import {
|
|
41
41
|
GLOBAL_FLAGS,
|
|
42
42
|
READ_SINGLE_FLAGS,
|
|
@@ -503,15 +503,15 @@ var contactCommand = defineCommand({
|
|
|
503
503
|
create: createCmd,
|
|
504
504
|
update: updateCmd,
|
|
505
505
|
delete: deleteCmd,
|
|
506
|
-
import: lazy("contactImport", () => import("./contact-import-
|
|
506
|
+
import: lazy("contactImport", () => import("./contact-import-FBASQAJ4.js").then((m) => m.contactImportCommand)),
|
|
507
507
|
export: exportCmd,
|
|
508
508
|
enrich: enrichCmd,
|
|
509
|
-
lists: lazy("contactLists", () => import("./contact-groups-
|
|
510
|
-
tags: lazy("contactTags", () => import("./contact-groups-
|
|
511
|
-
imports: lazy("contactImports", () => import("./contact-import-
|
|
509
|
+
lists: lazy("contactLists", () => import("./contact-groups-AKCTZSAC.js").then((m) => m.contactListsCommand)),
|
|
510
|
+
tags: lazy("contactTags", () => import("./contact-groups-AKCTZSAC.js").then((m) => m.contactTagsCommand)),
|
|
511
|
+
imports: lazy("contactImports", () => import("./contact-import-FBASQAJ4.js").then((m) => m.contactImportsCommand))
|
|
512
512
|
},
|
|
513
513
|
async run() {
|
|
514
|
-
const { showHelp } = await import("./examples-
|
|
514
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
515
515
|
await showHelp(contactCommand, ["curviate", "lead"]);
|
|
516
516
|
}
|
|
517
517
|
});
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
online,
|
|
4
4
|
preview
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EGNU7GKL.js";
|
|
6
6
|
import {
|
|
7
7
|
sendChunked
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W524FTEO.js";
|
|
9
9
|
import {
|
|
10
10
|
fail,
|
|
11
11
|
listFlag,
|
|
12
12
|
outputOpts,
|
|
13
13
|
usage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4K34FHE5.js";
|
|
15
15
|
import {
|
|
16
16
|
intFlag
|
|
17
17
|
} from "./chunk-NNV2OYEF.js";
|
|
@@ -23,14 +23,15 @@ import {
|
|
|
23
23
|
readablePage,
|
|
24
24
|
rejectPaginationModifiersWithoutAll,
|
|
25
25
|
streamAll
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3RACWVSE.js";
|
|
27
27
|
import {
|
|
28
|
+
isJsonMode,
|
|
28
29
|
renderSuccess,
|
|
29
30
|
writeNdjsonItem
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Z67TWG6W.js";
|
|
31
32
|
import {
|
|
32
33
|
withWireNotes
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-U55AXO2J.js";
|
|
34
35
|
import {
|
|
35
36
|
GLOBAL_FLAGS,
|
|
36
37
|
WRITE_SINGLE_FLAGS,
|
|
@@ -246,7 +247,7 @@ async function runSourceImport(c, f) {
|
|
|
246
247
|
if (f.preview) return preview("leads.imports.create", {}, body);
|
|
247
248
|
try {
|
|
248
249
|
const imp = await c.leads.imports.create(body);
|
|
249
|
-
renderSuccess(readableObject(imp),
|
|
250
|
+
renderSuccess(readableObject(imp), importOpts(f, importHuman), process);
|
|
250
251
|
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
|
`);
|
|
252
253
|
} catch (err) {
|
|
@@ -398,7 +399,7 @@ var importCmd = defineCommand({
|
|
|
398
399
|
});
|
|
399
400
|
var ID = { type: "positional", description: "Import id (imp_...)." };
|
|
400
401
|
var importsList = defineCommand({
|
|
401
|
-
meta: { name: "list", description: "List your Team's imports, newest first: status, counts and failure.", risk: "read", examples: ["curviate lead imports list"] },
|
|
402
|
+
meta: { name: "list", description: "List your Team's imports, newest first: status, counts and failure; an import from a LinkedIn source also its `progress` line without --json (the wait, when its next page is read, how long is left), and `next_page_at`, `waiting`, `estimate` as `lead imports get` describes.", risk: "read", examples: ["curviate lead imports list"] },
|
|
402
403
|
args: { ...readOnly(GLOBAL_FLAGS) },
|
|
403
404
|
run: online(async (c, f) => {
|
|
404
405
|
rejectPaginationModifiersWithoutAll(f, process);
|
|
@@ -411,34 +412,112 @@ var importsList = defineCommand({
|
|
|
411
412
|
const next = (p) => c.leads.imports.list(p);
|
|
412
413
|
for await (const item of streamAll(next, params, { maxPages: readMaxPagesFlag(f, process), out: process, pageDelayMs: pageDelayFromFlags(f) })) writeNdjsonItem(process, item, f.fields);
|
|
413
414
|
} else {
|
|
414
|
-
renderSuccess(readablePage(await c.leads.imports.list(params)),
|
|
415
|
+
renderSuccess(readablePage(await c.leads.imports.list(params)), importOpts(f, importsHuman), process);
|
|
415
416
|
}
|
|
416
417
|
} catch (err) {
|
|
417
418
|
await fail(err, f);
|
|
418
419
|
}
|
|
419
420
|
})
|
|
420
421
|
});
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
422
|
+
var UNITS = [["minute", 60, 90 * 60], ["hour", 3600, 36 * 3600], ["day", 86400, Infinity]];
|
|
423
|
+
var unitOf = (s) => UNITS.find(([, , below]) => s < below);
|
|
424
|
+
var plural = (n, unit) => `${n.toLocaleString("en-GB")} ${unit}${n === 1 ? "" : "s"}`;
|
|
425
|
+
var amount = (s, size) => Math.max(1, Math.round(s / size));
|
|
426
|
+
var HM = new Intl.DateTimeFormat("en-GB", { hour: "2-digit", minute: "2-digit" });
|
|
427
|
+
var WD = new Intl.DateTimeFormat("en-GB", { weekday: "short", day: "numeric", month: "short" });
|
|
428
|
+
var dayKey = (t) => new Date(t).toDateString();
|
|
429
|
+
function durationText(seconds) {
|
|
430
|
+
const [unit, size] = unitOf(seconds);
|
|
431
|
+
return plural(amount(seconds, size), unit);
|
|
432
|
+
}
|
|
433
|
+
function estimateText(min, max) {
|
|
434
|
+
if (max < 60) return "Less than a minute";
|
|
435
|
+
const [ua, sa] = unitOf(min), [ub, sb] = unitOf(max);
|
|
436
|
+
const a = amount(min, sa), b = amount(max, sb);
|
|
437
|
+
if (ua !== ub) return `About ${plural(a, ua)} to ${plural(b, ub)}`;
|
|
438
|
+
return a === b ? `About ${plural(a, ua)}` : `About ${a.toLocaleString("en-GB")} to ${plural(b, ub)}`;
|
|
439
|
+
}
|
|
440
|
+
function whenText(iso, now) {
|
|
441
|
+
const at = Date.parse(iso);
|
|
442
|
+
if (Number.isNaN(at)) return iso;
|
|
443
|
+
const ms = at - now;
|
|
444
|
+
if (ms < 6e4) return "in under a minute";
|
|
445
|
+
if (ms < 90 * 6e4) return `in ${durationText(ms / 1e3)}`;
|
|
446
|
+
if (dayKey(at) === dayKey(now)) return `at ${HM.format(at)}`;
|
|
447
|
+
if (dayKey(at) === dayKey(now + 864e5)) return `tomorrow at ${HM.format(at)}`;
|
|
448
|
+
return `on ${WD.format(at)} at ${HM.format(at)}`;
|
|
449
|
+
}
|
|
450
|
+
var LIMIT = { hour: "Hourly search limit reached", month: "Monthly search limit reached", warm_up: "Warm-up holds this Account's search at 0 pages for now" };
|
|
451
|
+
function importStatusLine(imp, now = Date.now()) {
|
|
452
|
+
const im = imp ?? {};
|
|
453
|
+
if (im.format !== "source") return null;
|
|
454
|
+
const w = im.waiting && typeof im.waiting === "object" ? im.waiting : null;
|
|
455
|
+
const iso = (v) => typeof v === "string" ? v : null;
|
|
456
|
+
const nextAt = iso(im.next_page_at), until = iso(w?.until);
|
|
457
|
+
const next = nextAt ? `Next page ${whenText(nextAt, now)}` : null;
|
|
458
|
+
const e = im.estimate;
|
|
459
|
+
const left = e && typeof e.seconds_min === "number" && typeof e.seconds_max === "number" && e.seconds_max > 0 ? `${estimateText(e.seconds_min, e.seconds_max)} left` : null;
|
|
460
|
+
const join = (...parts) => parts.filter(Boolean).join(". ");
|
|
461
|
+
const started = iso(im.started_at), finished = iso(im.finished_at);
|
|
462
|
+
const took = started && finished ? ` in ${durationText(Math.max(1, (Date.parse(finished) - Date.parse(started)) / 1e3))}` : "";
|
|
463
|
+
switch (im.status) {
|
|
464
|
+
case "queued":
|
|
465
|
+
if (w?.kind === "import_ahead") return join(`Starts after the import ahead of it${typeof w.import_id === "string" ? ` (${w.import_id})` : ""}`, nextAt ? `First page ${whenText(nextAt, now)}` : null, left);
|
|
466
|
+
return join("Starts in a moment", left);
|
|
467
|
+
case "running":
|
|
468
|
+
if (!w) return join(next, left) || "Reading";
|
|
469
|
+
switch (w.kind) {
|
|
470
|
+
case "account_unavailable":
|
|
471
|
+
return "Resumes once the Account is reconnected";
|
|
472
|
+
case "active_hours":
|
|
473
|
+
return join("Outside the Account's Active hours", next, left);
|
|
474
|
+
case "budget":
|
|
475
|
+
return join(LIMIT[String(w.budget)] ?? "Daily search limit reached", next, left);
|
|
476
|
+
case "pushback":
|
|
477
|
+
return join("Paused: LinkedIn slowed this search down", next, left);
|
|
478
|
+
case "search_limited":
|
|
479
|
+
return join(`LinkedIn shows this Account only a few search results for now. Resumes when that lifts${until ? `, at the latest ${whenText(until, now)}` : ""}`, left);
|
|
480
|
+
case "halt":
|
|
481
|
+
return join("Held by a safety pause", until ? `Resumes ${whenText(until, now)}` : null, left);
|
|
482
|
+
default:
|
|
483
|
+
return join(`Waiting (${String(w.kind)})`, next ?? (until ? `Resumes ${whenText(until, now)}` : null), left);
|
|
484
|
+
}
|
|
485
|
+
case "paused":
|
|
486
|
+
return "Paused. Nothing is read until you resume it";
|
|
487
|
+
case "stopped":
|
|
488
|
+
return `Stopped. The ${typeof im.counts?.found === "number" ? im.counts.found.toLocaleString("en-GB") : "people"} found stay in the list`;
|
|
489
|
+
case "completed":
|
|
490
|
+
return im.finish_reason === "max_reached" ? `Done${took}: reached its maximum` : im.finish_reason === "no_new_leads" ? `Done${took}: three pages in a row brought nobody new` : `Done${took}: read every result`;
|
|
491
|
+
case "failed":
|
|
492
|
+
return typeof im.failure?.message === "string" ? im.failure.message : "Failed";
|
|
434
493
|
default:
|
|
435
|
-
return
|
|
494
|
+
return null;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
function importHuman(imp) {
|
|
498
|
+
if (!imp || typeof imp !== "object" || Array.isArray(imp)) return imp;
|
|
499
|
+
const line = importStatusLine(imp);
|
|
500
|
+
const out = {};
|
|
501
|
+
for (const [k, v] of Object.entries(imp)) {
|
|
502
|
+
if (k === "estimate" && v && typeof v === "object") {
|
|
503
|
+
out[k] = Object.fromEntries(Object.entries(v).filter(([key]) => !key.startsWith("working_days_")));
|
|
504
|
+
} else out[k] = v;
|
|
505
|
+
if (k === "status" && line) out["progress"] = line;
|
|
436
506
|
}
|
|
507
|
+
return out;
|
|
437
508
|
}
|
|
509
|
+
var importsHuman = (page) => {
|
|
510
|
+
const p = page;
|
|
511
|
+
return Array.isArray(p?.items) ? { ...p, items: p.items.map(importHuman) } : page;
|
|
512
|
+
};
|
|
513
|
+
var importOpts = (f, slim) => {
|
|
514
|
+
const o = outputOpts(f);
|
|
515
|
+
return isJsonMode(o) ? o : { ...o, slim };
|
|
516
|
+
};
|
|
438
517
|
var importsGet = defineCommand({
|
|
439
518
|
meta: {
|
|
440
519
|
name: "get",
|
|
441
|
-
description: "One import: its status, counts, the columns it mapped or ignored, and its failure
|
|
520
|
+
description: "One import: its status, counts, the columns it mapped or ignored, and its failure. An import from a LinkedIn source also carries `next_page_at` (when its next page is read), `waiting` (why no page is read now, with `until`: active_hours, outside the Account's Active hours; budget, a search limit of the Account is reached, named by `budget`: hour, day, lines, month, or warm_up when warm-up holds the Account's search at 0 pages; while an import runs it and the Account's plain searches each are sure of half the hour's and the day's pages; pushback, LinkedIn slowed this search down; search_limited, LinkedIn shows this Account only a few search results for now; halt, a safety pause; account_unavailable, the Account needs reconnecting; import_ahead, queued behind `import_id`, another import of the same Account) and `estimate` (`seconds_min`, `seconds_max`: how long it still runs; `working_days_*` are deprecated). Without --json, `progress` says it in one line, for example \"Daily search limit reached. Next page tomorrow at 09:00. About 2 to 3 days left\". Nothing to retry and no need to poll: it resumes by itself; look again at `next_page_at`. Only a reconnect needs you, and a search limit you may raise with `curviate account safety update`. `counts.updated`: Leads the import filled at least one field on. 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.",
|
|
442
521
|
risk: "read",
|
|
443
522
|
examples: ["curviate lead imports get imp_YOUR_IMPORT_ID", "curviate lead imports get imp_YOUR_IMPORT_ID --outcome skipped"]
|
|
444
523
|
},
|
|
@@ -452,9 +531,9 @@ var importsGet = defineCommand({
|
|
|
452
531
|
try {
|
|
453
532
|
if (f.outcome === void 0) {
|
|
454
533
|
const imp = readableObject(await c.leads.imports.get(id));
|
|
455
|
-
renderSuccess(imp,
|
|
456
|
-
const
|
|
457
|
-
if (
|
|
534
|
+
renderSuccess(imp, importOpts(f, importHuman), process);
|
|
535
|
+
const line = importStatusLine(imp);
|
|
536
|
+
if (line && isJsonMode(outputOpts(f))) process.stderr.write(line + "\n");
|
|
458
537
|
return;
|
|
459
538
|
}
|
|
460
539
|
rejectPaginationModifiersWithoutAll(f, process);
|
|
@@ -503,7 +582,7 @@ var contactImportsCommand = defineCommand({
|
|
|
503
582
|
meta: { name: "imports", description: "Your Team's import records." },
|
|
504
583
|
subCommands: { list: importsList, get: importsGet, pause: importsPause, resume: importsResume, stop: importsStop },
|
|
505
584
|
async run() {
|
|
506
|
-
const { showHelp } = await import("./examples-
|
|
585
|
+
const { showHelp } = await import("./examples-FGF6HIAN.js");
|
|
507
586
|
await showHelp(contactImportsCommand, ["curviate", "lead", "imports"]);
|
|
508
587
|
}
|
|
509
588
|
});
|
|
@@ -514,7 +593,10 @@ export {
|
|
|
514
593
|
csvRecords,
|
|
515
594
|
chunkRows,
|
|
516
595
|
RETRY_AFTER_BOUND_S,
|
|
517
|
-
|
|
596
|
+
durationText,
|
|
597
|
+
estimateText,
|
|
598
|
+
whenText,
|
|
599
|
+
importStatusLine,
|
|
518
600
|
contactImportCommand,
|
|
519
601
|
contactImportsCommand
|
|
520
602
|
};
|
|
@@ -213,7 +213,8 @@ var EXIT_CODE_MAP = {
|
|
|
213
213
|
PLACEMENT_TESTS_UNAVAILABLE: 1,
|
|
214
214
|
// Mailboxes from Curviate: a missing order is 4; a domain refused as named never succeeds as sent (2); an order
|
|
215
215
|
// already waiting on the domain is a state (8); a Team without a paid plan cannot order (11, billing); orders paused is "not
|
|
216
|
-
// available" (1)
|
|
216
|
+
// available" (1), and so is no room for this many new Mailboxes (1: it was the pause's code until Sold 13; never 7, an
|
|
217
|
+
// order is not retried on a timer, the person orders fewer or later).
|
|
217
218
|
MAILBOX_PURCHASE_NOT_FOUND: 4,
|
|
218
219
|
DOMAIN_IN_USE: 2,
|
|
219
220
|
DOMAIN_IS_COMPANY_EMAIL: 2,
|
|
@@ -221,6 +222,7 @@ var EXIT_CODE_MAP = {
|
|
|
221
222
|
MAILBOX_PURCHASE_STATE_CONFLICT: 8,
|
|
222
223
|
MAILBOX_PURCHASE_TRIAL: 11,
|
|
223
224
|
MAILBOX_SALES_PAUSED: 1,
|
|
225
|
+
MAILBOX_NO_ROOM: 1,
|
|
224
226
|
// Seat calls: only an Owner raises the spending cap or cancels in the dashboard (5, someone else acts first).
|
|
225
227
|
SPENDING_CAP_REACHED: 5,
|
|
226
228
|
CANCEL_IN_DASHBOARD: 5,
|