@curviate/cli 0.50.0-next.4 → 0.50.0-next.6
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 +9 -0
- package/README.md +43 -0
- package/dist/{account-7KKJEHAM.js → account-TBPPGZME.js} +8 -8
- package/dist/{analytics-XBAFRYSC.js → analytics-ECRDJRTF.js} +5 -5
- package/dist/{beta-consent-FP2QGN6M.js → beta-consent-7RLD2CJU.js} +4 -4
- package/dist/{billing-AQ5VNIYA.js → billing-6AJ4AB77.js} +5 -5
- package/dist/{chunk-73DJ3KNE.js → chunk-FBBZVIFJ.js} +2 -1
- package/dist/{chunk-RRSWFGXM.js → chunk-K26JD5NC.js} +6 -6
- package/dist/{chunk-3SF6JIMA.js → chunk-LTPME424.js} +2 -2
- package/dist/{chunk-56JSZNRW.js → chunk-N7UA24IK.js} +1 -1
- package/dist/{chunk-2MWTZLAG.js → chunk-NKB4RJUH.js} +129 -45
- package/dist/{chunk-JYCNHE72.js → chunk-QFUZCTD7.js} +2 -2
- package/dist/{chunk-COYDNWKF.js → chunk-QOVYLEUY.js} +2 -2
- package/dist/{chunk-2W4RN5ON.js → chunk-QW5K5DTC.js} +2 -0
- package/dist/{chunk-5I6JJJIV.js → chunk-VHNF6OZD.js} +8 -3
- package/dist/{chunk-QL6VKMTA.js → chunk-XJOWMIW2.js} +11 -11
- package/dist/{chunk-FO54X4T2.js → chunk-XPQP2FZX.js} +1 -1
- package/dist/{chunk-Q5GVXN7Z.js → chunk-YGNDS4CW.js} +1 -1
- package/dist/cli.js +25 -25
- package/dist/{comment-OZZGWNIV.js → comment-7QCABJ53.js} +13 -13
- package/dist/{company-HM23JZT4.js → company-LH56TXM6.js} +12 -12
- package/dist/{config-KHXQZD6F.js → config-YBFTZASA.js} +2 -2
- package/dist/{connect-HBQ4PLTS.js → connect-5X5VIQOO.js} +11 -11
- package/dist/{contact-325QZ5IB.js → contact-6GSXKSL7.js} +8 -8
- package/dist/{contact-groups-TXPUYQYC.js → contact-groups-6S6AM5WV.js} +10 -10
- package/dist/{contact-import-6G2DUCIN.js → contact-import-CQW3RQGN.js} +9 -9
- package/dist/core-5NYENM4A.js +46 -0
- package/dist/{do-not-contact-CP6WKW5T.js → do-not-contact-6DFZYGRI.js} +5 -5
- package/dist/{doctor-GDBH2PH7.js → doctor-OUDGTEYR.js} +4 -4
- package/dist/{draft-IWI7E5VJ.js → draft-AETHWRIX.js} +9 -9
- package/dist/{enrollment-2JVHRUNI.js → enrollment-KXLN32RT.js} +6 -6
- package/dist/{examples-74FXGJ7X.js → examples-ICAGL2S5.js} +1 -1
- package/dist/{exit-codes-7DBETBDT.js → exit-codes-CYQHN4NE.js} +1 -1
- package/dist/{export-URIKCSIO.js → export-XOAHDY7W.js} +4 -4
- package/dist/{feed-ZBATBTD2.js → feed-W3LMXJHQ.js} +6 -6
- package/dist/{group-D43R5JQU.js → group-TLC75WME.js} +6 -6
- package/dist/{inbox-6DTW4XJE.js → inbox-ID4EFMTQ.js} +6 -6
- package/dist/{inboxes-TFZQ57MK.js → inboxes-SRBQ3FAI.js} +6 -6
- package/dist/{incoming-RHKXXZQE.js → incoming-I3TNXHDV.js} +5 -5
- package/dist/{job-ARXJVJID.js → job-V5BVH6EN.js} +6 -6
- package/dist/{login-CH75UC6I.js → login-TRGTHHB3.js} +2 -2
- package/dist/{message-WTGOJZGL.js → message-CAAOJEYQ.js} +7 -7
- package/dist/{motion-TQU6ZS6N.js → motion-NQKMLNH4.js} +90 -7
- package/dist/{network-JUQA3X5S.js → network-CDMKWOZG.js} +5 -5
- package/dist/{notification-GN5Y25GL.js → notification-SC4SHB5F.js} +6 -6
- package/dist/{notifications-C5CBK574.js → notifications-VN2MDDPZ.js} +6 -6
- package/dist/{post-HT2UWXXO.js → post-TWHMSQP4.js} +12 -12
- package/dist/{profile-ZSBAZPFQ.js → profile-4J3RB7US.js} +16 -16
- package/dist/{recruiter-CSG4XSZ4.js → recruiter-QUNXM3CY.js} +11 -11
- package/dist/{sales-nav-LDI7MTGU.js → sales-nav-4U6F7GPN.js} +11 -11
- package/dist/{search-NLIL5SXI.js → search-7HD2X2WX.js} +14 -14
- package/dist/{setup-UGELD4FZ.js → setup-YH5DNST4.js} +4 -4
- package/dist/{team-LWDBXG4K.js → team-G5C3LDYA.js} +5 -5
- package/dist/{tier-LOI4ZOVV.js → tier-N7CENZXH.js} +4 -4
- package/dist/{unibox-IL6SRMK2.js → unibox-I7VDPY6A.js} +13 -6
- package/dist/{webhook-TAXMQNEK.js → webhook-OPXGVBFW.js} +5 -5
- package/package.json +2 -2
- package/dist/core-HXREJJCJ.js +0 -46
|
@@ -7,12 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
resolveMemberOrMeProviderId,
|
|
9
9
|
resolveMemberProviderId
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
AttachError,
|
|
13
|
-
readAttachment,
|
|
14
|
-
toAttachmentPayload
|
|
15
|
-
} from "./chunk-5I6JJJIV.js";
|
|
10
|
+
} from "./chunk-YGNDS4CW.js";
|
|
16
11
|
import {
|
|
17
12
|
AS_ACCOUNT,
|
|
18
13
|
BUDGET,
|
|
@@ -27,9 +22,14 @@ import {
|
|
|
27
22
|
slimProfileMe,
|
|
28
23
|
withRequestedSections
|
|
29
24
|
} from "./chunk-XDG3TOKG.js";
|
|
25
|
+
import {
|
|
26
|
+
AttachError,
|
|
27
|
+
readAttachment,
|
|
28
|
+
toAttachmentPayload
|
|
29
|
+
} from "./chunk-VHNF6OZD.js";
|
|
30
30
|
import {
|
|
31
31
|
requireAccount
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QFUZCTD7.js";
|
|
33
33
|
import {
|
|
34
34
|
buildPreviewOutput
|
|
35
35
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
readablePage,
|
|
43
43
|
rejectPaginationModifiersWithoutAll,
|
|
44
44
|
streamAll
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-XPQP2FZX.js";
|
|
46
46
|
import {
|
|
47
47
|
renderError,
|
|
48
48
|
renderSuccess,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
createClient,
|
|
54
54
|
resolveEffectiveConfig
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-N7UA24IK.js";
|
|
56
56
|
import {
|
|
57
57
|
GLOBAL_FLAGS,
|
|
58
58
|
READ_SINGLE_FLAGS,
|
|
@@ -61,9 +61,9 @@ import {
|
|
|
61
61
|
} from "./chunk-RYWWSZUH.js";
|
|
62
62
|
import {
|
|
63
63
|
DESCRIPTIONS
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
65
65
|
import "./chunk-ZYURL5VK.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-QW5K5DTC.js";
|
|
67
67
|
|
|
68
68
|
// src/commands/profile.ts
|
|
69
69
|
import { defineCommand } from "citty";
|
|
@@ -191,7 +191,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
191
191
|
} catch (err) {
|
|
192
192
|
const { CurviateError } = await import("@curviate/sdk");
|
|
193
193
|
if (err instanceof CurviateError) {
|
|
194
|
-
const { getExitCode } = await import("./exit-codes-
|
|
194
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
195
195
|
renderError(err, outOpts, out);
|
|
196
196
|
process.exit(getExitCode(err));
|
|
197
197
|
}
|
|
@@ -218,7 +218,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
218
218
|
} catch (err) {
|
|
219
219
|
const { CurviateError } = await import("@curviate/sdk");
|
|
220
220
|
if (err instanceof CurviateError) {
|
|
221
|
-
const { getExitCode } = await import("./exit-codes-
|
|
221
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
222
222
|
renderError(err, outOpts, out);
|
|
223
223
|
process.exit(getExitCode(err));
|
|
224
224
|
}
|
|
@@ -350,7 +350,7 @@ async function runProfileGet(client, flags, out) {
|
|
|
350
350
|
} catch (err) {
|
|
351
351
|
const { CurviateError } = await import("@curviate/sdk");
|
|
352
352
|
if (err instanceof CurviateError) {
|
|
353
|
-
const { getExitCode } = await import("./exit-codes-
|
|
353
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
354
354
|
renderError(err, outOpts, out);
|
|
355
355
|
process.exit(getExitCode(err));
|
|
356
356
|
}
|
|
@@ -388,7 +388,7 @@ async function runProfileRelations(client, flags, out) {
|
|
|
388
388
|
} catch (err) {
|
|
389
389
|
const { CurviateError } = await import("@curviate/sdk");
|
|
390
390
|
if (err instanceof CurviateError) {
|
|
391
|
-
const { getExitCode } = await import("./exit-codes-
|
|
391
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
392
392
|
renderError(err, outOpts, out);
|
|
393
393
|
process.exit(getExitCode(err));
|
|
394
394
|
}
|
|
@@ -428,7 +428,7 @@ async function runProfileEndorse(client, flags, out) {
|
|
|
428
428
|
async function handleSdkError(err, outOpts, out) {
|
|
429
429
|
const { CurviateError } = await import("@curviate/sdk");
|
|
430
430
|
if (err instanceof CurviateError) {
|
|
431
|
-
const { getExitCode } = await import("./exit-codes-
|
|
431
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
432
432
|
renderError(err, outOpts, out);
|
|
433
433
|
process.exit(getExitCode(err));
|
|
434
434
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
AttachError,
|
|
4
|
-
readAttachment,
|
|
5
|
-
toAttachmentPayload
|
|
6
|
-
} from "./chunk-5I6JJJIV.js";
|
|
7
2
|
import {
|
|
8
3
|
BinaryOutputError,
|
|
9
4
|
writeBinaryOutput
|
|
@@ -25,9 +20,14 @@ import {
|
|
|
25
20
|
import {
|
|
26
21
|
slimJob
|
|
27
22
|
} from "./chunk-XDG3TOKG.js";
|
|
23
|
+
import {
|
|
24
|
+
AttachError,
|
|
25
|
+
readAttachment,
|
|
26
|
+
toAttachmentPayload
|
|
27
|
+
} from "./chunk-VHNF6OZD.js";
|
|
28
28
|
import {
|
|
29
29
|
requireAccount
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QFUZCTD7.js";
|
|
31
31
|
import {
|
|
32
32
|
buildPreviewOutput
|
|
33
33
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
readablePage,
|
|
40
40
|
rejectPaginationModifiersWithoutAll,
|
|
41
41
|
streamAll
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-XPQP2FZX.js";
|
|
43
43
|
import {
|
|
44
44
|
isJsonMode,
|
|
45
45
|
renderError,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
createClient,
|
|
52
52
|
downloadBinary,
|
|
53
53
|
resolveEffectiveConfig
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-N7UA24IK.js";
|
|
55
55
|
import {
|
|
56
56
|
GLOBAL_FLAGS,
|
|
57
57
|
NON_STREAM_FLAGS,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
} from "./chunk-RYWWSZUH.js";
|
|
63
63
|
import {
|
|
64
64
|
DESCRIPTIONS
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
66
66
|
import {
|
|
67
67
|
documentSchema,
|
|
68
68
|
parseDocument,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
} from "./chunk-PHKICMO7.js";
|
|
73
73
|
import "./chunk-FDJMAF7D.js";
|
|
74
74
|
import "./chunk-ZYURL5VK.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-QW5K5DTC.js";
|
|
76
76
|
|
|
77
77
|
// src/commands/recruiter.ts
|
|
78
78
|
import { defineCommand } from "citty";
|
|
@@ -97,7 +97,7 @@ function normalizeAttachPaths(attach) {
|
|
|
97
97
|
async function handleSdkError(err, outOpts, out) {
|
|
98
98
|
const { CurviateError } = await import("@curviate/sdk");
|
|
99
99
|
if (err instanceof CurviateError) {
|
|
100
|
-
const { getExitCode } = await import("./exit-codes-
|
|
100
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
101
101
|
renderError(err, outOpts, out);
|
|
102
102
|
process.exit(getExitCode(err));
|
|
103
103
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
AttachError,
|
|
4
|
-
readAttachment,
|
|
5
|
-
toAttachmentPayload
|
|
6
|
-
} from "./chunk-5I6JJJIV.js";
|
|
7
2
|
import {
|
|
8
3
|
AS_ACCOUNT,
|
|
9
4
|
BUDGET,
|
|
@@ -17,9 +12,14 @@ import {
|
|
|
17
12
|
assembleFilters,
|
|
18
13
|
splitCsv
|
|
19
14
|
} from "./chunk-6SBO4WXA.js";
|
|
15
|
+
import {
|
|
16
|
+
AttachError,
|
|
17
|
+
readAttachment,
|
|
18
|
+
toAttachmentPayload
|
|
19
|
+
} from "./chunk-VHNF6OZD.js";
|
|
20
20
|
import {
|
|
21
21
|
requireAccount
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QFUZCTD7.js";
|
|
23
23
|
import {
|
|
24
24
|
buildPreviewOutput
|
|
25
25
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
readablePage,
|
|
32
32
|
rejectPaginationModifiersWithoutAll,
|
|
33
33
|
streamAll
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XPQP2FZX.js";
|
|
35
35
|
import {
|
|
36
36
|
renderError,
|
|
37
37
|
renderSuccess,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
createClient,
|
|
43
43
|
resolveEffectiveConfig
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-N7UA24IK.js";
|
|
45
45
|
import {
|
|
46
46
|
GLOBAL_FLAGS,
|
|
47
47
|
READ_SINGLE_FLAGS,
|
|
@@ -50,11 +50,11 @@ import {
|
|
|
50
50
|
} from "./chunk-RYWWSZUH.js";
|
|
51
51
|
import {
|
|
52
52
|
DESCRIPTIONS
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
54
54
|
import "./chunk-PHKICMO7.js";
|
|
55
55
|
import "./chunk-FDJMAF7D.js";
|
|
56
56
|
import "./chunk-ZYURL5VK.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-QW5K5DTC.js";
|
|
58
58
|
|
|
59
59
|
// src/commands/sales-nav.ts
|
|
60
60
|
import { defineCommand } from "citty";
|
|
@@ -78,7 +78,7 @@ function normalizeAttachPaths(attach) {
|
|
|
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-CYQHN4NE.js");
|
|
82
82
|
renderError(err, outOpts, out);
|
|
83
83
|
process.exit(getExitCode(err));
|
|
84
84
|
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-XDG3TOKG.js";
|
|
17
17
|
import {
|
|
18
18
|
requireAccount
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QFUZCTD7.js";
|
|
20
20
|
import {
|
|
21
21
|
intFlag,
|
|
22
22
|
intListFlag
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
readablePage,
|
|
29
29
|
rejectPaginationModifiersWithoutAll,
|
|
30
30
|
streamAll
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XPQP2FZX.js";
|
|
32
32
|
import {
|
|
33
33
|
renderError,
|
|
34
34
|
renderSuccess,
|
|
@@ -38,18 +38,18 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
createClient,
|
|
40
40
|
resolveEffectiveConfig
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-N7UA24IK.js";
|
|
42
42
|
import {
|
|
43
43
|
GLOBAL_FLAGS,
|
|
44
44
|
readOnly
|
|
45
45
|
} from "./chunk-RYWWSZUH.js";
|
|
46
46
|
import {
|
|
47
47
|
DESCRIPTIONS
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
49
49
|
import "./chunk-PHKICMO7.js";
|
|
50
50
|
import "./chunk-FDJMAF7D.js";
|
|
51
51
|
import "./chunk-ZYURL5VK.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-QW5K5DTC.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/search.ts
|
|
55
55
|
import { defineCommand } from "citty";
|
|
@@ -226,7 +226,7 @@ async function runSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READ
|
|
|
226
226
|
} catch (err) {
|
|
227
227
|
const { CurviateError } = await import("@curviate/sdk");
|
|
228
228
|
if (err instanceof CurviateError) {
|
|
229
|
-
const { getExitCode } = await import("./exit-codes-
|
|
229
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
230
230
|
renderError(err, outOpts, out);
|
|
231
231
|
process.exit(getExitCode(err));
|
|
232
232
|
}
|
|
@@ -268,7 +268,7 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
|
|
|
268
268
|
} catch (err) {
|
|
269
269
|
const { CurviateError } = await import("@curviate/sdk");
|
|
270
270
|
if (err instanceof CurviateError) {
|
|
271
|
-
const { getExitCode } = await import("./exit-codes-
|
|
271
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
272
272
|
renderError(err, outOpts, out);
|
|
273
273
|
process.exit(getExitCode(err));
|
|
274
274
|
}
|
|
@@ -310,7 +310,7 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
|
|
|
310
310
|
} catch (err) {
|
|
311
311
|
const { CurviateError } = await import("@curviate/sdk");
|
|
312
312
|
if (err instanceof CurviateError) {
|
|
313
|
-
const { getExitCode } = await import("./exit-codes-
|
|
313
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
314
314
|
renderError(err, outOpts, out);
|
|
315
315
|
process.exit(getExitCode(err));
|
|
316
316
|
}
|
|
@@ -352,7 +352,7 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
|
|
|
352
352
|
} catch (err) {
|
|
353
353
|
const { CurviateError } = await import("@curviate/sdk");
|
|
354
354
|
if (err instanceof CurviateError) {
|
|
355
|
-
const { getExitCode } = await import("./exit-codes-
|
|
355
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
356
356
|
renderError(err, outOpts, out);
|
|
357
357
|
process.exit(getExitCode(err));
|
|
358
358
|
}
|
|
@@ -400,7 +400,7 @@ async function runSearchParameters(client, flags, out) {
|
|
|
400
400
|
} catch (err) {
|
|
401
401
|
const { CurviateError } = await import("@curviate/sdk");
|
|
402
402
|
if (err instanceof CurviateError) {
|
|
403
|
-
const { getExitCode } = await import("./exit-codes-
|
|
403
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
404
404
|
renderError(err, outOpts, out);
|
|
405
405
|
process.exit(getExitCode(err));
|
|
406
406
|
}
|
|
@@ -442,7 +442,7 @@ async function runSearchGroups(client, flags, out) {
|
|
|
442
442
|
} catch (err) {
|
|
443
443
|
const { CurviateError } = await import("@curviate/sdk");
|
|
444
444
|
if (err instanceof CurviateError) {
|
|
445
|
-
const { getExitCode } = await import("./exit-codes-
|
|
445
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
446
446
|
renderError(err, outOpts, out);
|
|
447
447
|
process.exit(getExitCode(err));
|
|
448
448
|
}
|
|
@@ -486,7 +486,7 @@ async function runSearchServices(client, flags, out) {
|
|
|
486
486
|
} catch (err) {
|
|
487
487
|
const { CurviateError } = await import("@curviate/sdk");
|
|
488
488
|
if (err instanceof CurviateError) {
|
|
489
|
-
const { getExitCode } = await import("./exit-codes-
|
|
489
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
490
490
|
renderError(err, outOpts, out);
|
|
491
491
|
process.exit(getExitCode(err));
|
|
492
492
|
}
|
|
@@ -528,7 +528,7 @@ async function runSearchServiceParameters(client, flags, out) {
|
|
|
528
528
|
} catch (err) {
|
|
529
529
|
const { CurviateError } = await import("@curviate/sdk");
|
|
530
530
|
if (err instanceof CurviateError) {
|
|
531
|
-
const { getExitCode } = await import("./exit-codes-
|
|
531
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
532
532
|
renderError(err, outOpts, out);
|
|
533
533
|
process.exit(getExitCode(err));
|
|
534
534
|
}
|
|
@@ -567,7 +567,7 @@ async function runSearchFromUrl(client, flags, out) {
|
|
|
567
567
|
} catch (err) {
|
|
568
568
|
const { CurviateError } = await import("@curviate/sdk");
|
|
569
569
|
if (err instanceof CurviateError) {
|
|
570
|
-
const { getExitCode } = await import("./exit-codes-
|
|
570
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
571
571
|
renderError(err, outOpts, out);
|
|
572
572
|
process.exit(getExitCode(err));
|
|
573
573
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readablePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XPQP2FZX.js";
|
|
5
5
|
import "./chunk-QM57YDJE.js";
|
|
6
6
|
import {
|
|
7
7
|
readlineSync
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
isPlainObject,
|
|
13
13
|
resolveEffectiveConfig,
|
|
14
14
|
writeProfile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N7UA24IK.js";
|
|
16
16
|
import {
|
|
17
17
|
GLOBAL_FLAGS,
|
|
18
18
|
getTeamFlag
|
|
19
19
|
} from "./chunk-RYWWSZUH.js";
|
|
20
20
|
import {
|
|
21
21
|
DESCRIPTIONS
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
23
23
|
import {
|
|
24
24
|
defaultReadStdin,
|
|
25
25
|
isStdinToken,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-ZYURL5VK.js";
|
|
28
28
|
import {
|
|
29
29
|
getExitCode
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QW5K5DTC.js";
|
|
31
31
|
|
|
32
32
|
// src/commands/setup.ts
|
|
33
33
|
import { defineCommand } from "citty";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
outputOpts,
|
|
6
6
|
rootClient,
|
|
7
7
|
usage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LTPME424.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPreviewOutput
|
|
11
11
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
readablePage,
|
|
21
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
22
|
streamAll
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XPQP2FZX.js";
|
|
24
24
|
import {
|
|
25
25
|
renderSuccess,
|
|
26
26
|
writeNdjsonItem
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
readConfig,
|
|
31
31
|
resolveEffectiveConfig,
|
|
32
32
|
writeProfile
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-N7UA24IK.js";
|
|
34
34
|
import {
|
|
35
35
|
GLOBAL_FLAGS,
|
|
36
36
|
READ_SINGLE_FLAGS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-RYWWSZUH.js";
|
|
40
40
|
import {
|
|
41
41
|
DESCRIPTIONS
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
43
43
|
import "./chunk-ZYURL5VK.js";
|
|
44
44
|
|
|
45
45
|
// src/commands/team.ts
|
|
@@ -441,7 +441,7 @@ var teamCommand = defineCommand({
|
|
|
441
441
|
seats: seatsCmd
|
|
442
442
|
},
|
|
443
443
|
async run() {
|
|
444
|
-
const { showHelp } = await import("./examples-
|
|
444
|
+
const { showHelp } = await import("./examples-ICAGL2S5.js");
|
|
445
445
|
await showHelp(teamCommand, ["curviate", "team"]);
|
|
446
446
|
}
|
|
447
447
|
});
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
fail,
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LTPME424.js";
|
|
7
7
|
import {
|
|
8
8
|
readableObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XPQP2FZX.js";
|
|
10
10
|
import {
|
|
11
11
|
renderSuccess
|
|
12
12
|
} from "./chunk-QM57YDJE.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-N7UA24IK.js";
|
|
14
14
|
import {
|
|
15
15
|
READ_SINGLE_FLAGS,
|
|
16
16
|
readOnly
|
|
17
17
|
} from "./chunk-RYWWSZUH.js";
|
|
18
18
|
import {
|
|
19
19
|
DESCRIPTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
21
21
|
import "./chunk-ZYURL5VK.js";
|
|
22
22
|
|
|
23
23
|
// src/commands/tier.ts
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
outputOpts,
|
|
10
10
|
rootClient,
|
|
11
11
|
usage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LTPME424.js";
|
|
13
13
|
import {
|
|
14
14
|
buildPreviewOutput
|
|
15
15
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
readablePage,
|
|
24
24
|
rejectPaginationModifiersWithoutAll,
|
|
25
25
|
streamAll
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XPQP2FZX.js";
|
|
27
27
|
import {
|
|
28
28
|
renderSuccess,
|
|
29
29
|
writeNdjsonItem
|
|
30
30
|
} from "./chunk-QM57YDJE.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-N7UA24IK.js";
|
|
32
32
|
import {
|
|
33
33
|
GLOBAL_FLAGS,
|
|
34
34
|
WRITE_SINGLE_FLAGS,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-RYWWSZUH.js";
|
|
37
37
|
import {
|
|
38
38
|
DESCRIPTIONS
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
40
40
|
import "./chunk-ZYURL5VK.js";
|
|
41
41
|
|
|
42
42
|
// src/commands/unibox.ts
|
|
@@ -56,6 +56,13 @@ async function paged(f, params, fetch, human) {
|
|
|
56
56
|
human(page);
|
|
57
57
|
if (page["cursor"]) print(`next page: --cursor ${String(page["cursor"])}`);
|
|
58
58
|
}
|
|
59
|
+
function chatWith(i) {
|
|
60
|
+
const g = i["group"];
|
|
61
|
+
if (!g) return i["counterpart"]?.["name"];
|
|
62
|
+
if (g["title"]) return g["title"];
|
|
63
|
+
const members = g["members"] ?? [];
|
|
64
|
+
return g["members_known"] && members.length ? members.map((m) => m["name"] ?? "Name pending").join(", ") : "Group chat";
|
|
65
|
+
}
|
|
59
66
|
async function runList(c, f) {
|
|
60
67
|
const q = {};
|
|
61
68
|
if (f.accounts !== void 0) q["account_ids"] = listFlag("accounts", f.accounts);
|
|
@@ -74,7 +81,7 @@ async function runList(c, f) {
|
|
|
74
81
|
const motion = (i) => i["motion_context"]?.["motion_name"];
|
|
75
82
|
print(table(
|
|
76
83
|
["ACCOUNT", "CHAT", "WITH", "UNREAD", "LAST", "FROM", "MOTION", "TAGS"],
|
|
77
|
-
page.items.map((i) => [i["account_id"], i["chat_id"], i
|
|
84
|
+
page.items.map((i) => [i["account_id"], i["chat_id"], chatWith(i), unread(i), i["last_activity_at"], i["last_message_from"], motion(i), i["tags"]?.join(", ")])
|
|
78
85
|
));
|
|
79
86
|
if (typeof page["total"] === "number") print(`total: ${page["total"]} chats match`);
|
|
80
87
|
});
|
|
@@ -393,7 +400,7 @@ var uniboxCommand = defineCommand({
|
|
|
393
400
|
consent: consentCmd
|
|
394
401
|
},
|
|
395
402
|
async run() {
|
|
396
|
-
const { showHelp } = await import("./examples-
|
|
403
|
+
const { showHelp } = await import("./examples-ICAGL2S5.js");
|
|
397
404
|
await showHelp(uniboxCommand, ["curviate", "unibox"]);
|
|
398
405
|
}
|
|
399
406
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
outputOpts,
|
|
6
6
|
rootClient,
|
|
7
7
|
usage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LTPME424.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPreviewOutput
|
|
11
11
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
readablePage,
|
|
21
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
22
|
streamAll
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XPQP2FZX.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-N7UA24IK.js";
|
|
34
34
|
import {
|
|
35
35
|
GLOBAL_FLAGS,
|
|
36
36
|
READ_SINGLE_FLAGS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-RYWWSZUH.js";
|
|
40
40
|
import {
|
|
41
41
|
DESCRIPTIONS
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
43
43
|
import {
|
|
44
44
|
readFileFlag
|
|
45
45
|
} from "./chunk-PHKICMO7.js";
|
|
@@ -259,7 +259,7 @@ function resolveOutputOpts(flags) {
|
|
|
259
259
|
async function handleError(err, outOpts, out) {
|
|
260
260
|
const { CurviateError } = await import("@curviate/sdk");
|
|
261
261
|
if (err instanceof CurviateError) {
|
|
262
|
-
const { getExitCode } = await import("./exit-codes-
|
|
262
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
263
263
|
renderError(err, outOpts, out);
|
|
264
264
|
process.exit(getExitCode(err));
|
|
265
265
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curviate/cli",
|
|
3
|
-
"version": "0.50.0-next.
|
|
3
|
+
"version": "0.50.0-next.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Official command-line interface for the Curviate API.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@curviate/sdk": "0.45.0-next.
|
|
50
|
+
"@curviate/sdk": "0.45.0-next.3",
|
|
51
51
|
"citty": "^0.1.6",
|
|
52
52
|
"open": "^10.1.0"
|
|
53
53
|
},
|
package/dist/core-HXREJJCJ.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
DESCRIPTIONS,
|
|
4
|
-
lazy
|
|
5
|
-
} from "./chunk-73DJ3KNE.js";
|
|
6
|
-
|
|
7
|
-
// src/commands/core.ts
|
|
8
|
-
import { defineCommand } from "citty";
|
|
9
|
-
var coreCommand = defineCommand({
|
|
10
|
-
meta: {
|
|
11
|
-
name: "core",
|
|
12
|
-
description: DESCRIPTIONS.core,
|
|
13
|
-
rules: {
|
|
14
|
-
notes: [
|
|
15
|
-
"Writes reach LinkedIn immediately and are seen by the people they touch.",
|
|
16
|
-
"A retry after a timeout can repeat a write: requests carry no idempotency key. Read the current state before retrying.",
|
|
17
|
-
"Budget rows, ceilings and what is left: `curviate account get <account_id>`."
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
subCommands: {
|
|
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
|
-
},
|
|
39
|
-
async run() {
|
|
40
|
-
const { showHelp } = await import("./examples-74FXGJ7X.js");
|
|
41
|
-
await showHelp(coreCommand, ["curviate", "core"]);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
coreCommand
|
|
46
|
-
};
|