@curviate/cli 0.48.0 → 0.49.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 +57 -0
- package/README.md +35 -1
- package/dist/{account-WKQHMM7P.js → account-2BH2Q6VG.js} +6 -6
- package/dist/{chunk-TSOIZBBU.js → chunk-3RCW7URJ.js} +1 -1
- package/dist/{chunk-OHXYFICP.js → chunk-5ZGTU4VD.js} +1 -1
- package/dist/{chunk-GQKC6E5K.js → chunk-D2S5OCYU.js} +2 -0
- package/dist/{chunk-Y7K4UBFC.js → chunk-JYKYD57J.js} +1 -1
- package/dist/chunk-MGB6FE4A.js +58 -0
- package/dist/{chunk-76SWLAZ6.js → chunk-RXWODUWA.js} +43 -1
- package/dist/{chunk-MKGVNDMJ.js → chunk-SA2QHAXG.js} +1 -1
- package/dist/{chunk-AYKKXGTR.js → chunk-TEAWYLPO.js} +353 -1
- package/dist/{chunk-Q63IIPL2.js → chunk-V7FJWTZW.js} +2 -2
- package/dist/{chunk-CVMSQ3OF.js → chunk-Y7MZZRYR.js} +3 -1
- package/dist/{chunk-YFXLXION.js → chunk-Z7OQSWBD.js} +6 -6
- package/dist/cli.js +16 -14
- package/dist/{comment-7IQ6ZOJF.js → comment-MRDPDA33.js} +8 -8
- package/dist/{company-RD7RDGSA.js → company-2AEHSGHA.js} +8 -8
- package/dist/{config-EYBNYRGK.js → config-NRBKHXES.js} +3 -3
- package/dist/{connect-HVXT67A6.js → connect-4XEBV5V3.js} +12 -12
- package/dist/core-RGU2SCBN.js +46 -0
- package/dist/{doctor-HUXQERLQ.js → doctor-BZ4DA7DV.js} +5 -5
- package/dist/{document-AUUCGST2.js → document-RKHRWXNT.js} +1 -1
- package/dist/{draft-DFO22K6Q.js → draft-C5N6EOO5.js} +5 -5
- package/dist/enrollment-BNQOUKI7.js +472 -0
- package/dist/{examples-64YT5V5K.js → examples-NIMSIXMV.js} +2 -2
- package/dist/{exit-codes-AW6KHDDN.js → exit-codes-TLMKTLRI.js} +1 -1
- package/dist/{feed-JWP6ANPI.js → feed-DFUU7SUJ.js} +7 -7
- package/dist/{group-SIQFJEZV.js → group-CSD2OWOZ.js} +7 -7
- package/dist/{inbox-MMIMCA5O.js → inbox-SNSPWI7J.js} +7 -7
- package/dist/{inboxes-RND3D4C7.js → inboxes-RIRHPS4H.js} +7 -7
- package/dist/{job-ACFKBLFK.js → job-6PNXXZNF.js} +7 -7
- package/dist/{login-ZOB5KVKQ.js → login-Y7JBAHCW.js} +3 -3
- package/dist/{message-OFK6UVXR.js → message-2IK4MBBG.js} +7 -7
- package/dist/motion-7ATUXO6R.js +946 -0
- package/dist/{notification-KKGAZU7M.js → notification-VYK5NDEB.js} +7 -7
- package/dist/{post-A5SBCFB2.js → post-AN6T2OJF.js} +8 -8
- package/dist/{profile-4SOOQZ4K.js → profile-UQY64642.js} +17 -17
- package/dist/{recruiter-YN73STDP.js → recruiter-OY4RN5HH.js} +13 -13
- package/dist/{sales-nav-JXF5RY2K.js → sales-nav-KLODLYMW.js} +13 -13
- package/dist/{search-JAL242A2.js → search-NWP5S6CF.js} +17 -17
- package/dist/{setup-WICWH4JG.js → setup-YPPFLH2N.js} +5 -5
- package/dist/{webhook-UGKVYWBC.js → webhook-OHKBL3YS.js} +22 -24
- package/package.json +2 -2
- package/dist/core-6XYGUNAY.js +0 -46
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V7FJWTZW.js";
|
|
5
5
|
import {
|
|
6
6
|
buildPreviewOutput
|
|
7
7
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
resolveEffectiveConfig,
|
|
18
18
|
streamAll,
|
|
19
19
|
writeNdjsonItem
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-SA2QHAXG.js";
|
|
21
|
+
import "./chunk-RXWODUWA.js";
|
|
22
22
|
import {
|
|
23
23
|
createClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
25
25
|
import {
|
|
26
26
|
GLOBAL_FLAGS,
|
|
27
27
|
WRITE_SINGLE_FLAGS,
|
|
28
28
|
readOnly
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
30
30
|
import {
|
|
31
31
|
DESCRIPTIONS
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-D2S5OCYU.js";
|
|
33
33
|
import "./chunk-ZYURL5VK.js";
|
|
34
34
|
|
|
35
35
|
// src/commands/notification.ts
|
|
@@ -51,7 +51,7 @@ function resolveOutputOpts(flags) {
|
|
|
51
51
|
async function handleSdkError(err, outOpts, out) {
|
|
52
52
|
const { CurviateError } = await import("@curviate/sdk");
|
|
53
53
|
if (err instanceof CurviateError) {
|
|
54
|
-
const { getExitCode } = await import("./exit-codes-
|
|
54
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
55
55
|
renderError(err, outOpts, out);
|
|
56
56
|
process.exit(getExitCode(err));
|
|
57
57
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JYKYD57J.js";
|
|
5
5
|
import {
|
|
6
6
|
AttachError,
|
|
7
7
|
readAttachment,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import "./chunk-UEAX6KUB.js";
|
|
11
11
|
import {
|
|
12
12
|
requireAccount
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V7FJWTZW.js";
|
|
14
14
|
import {
|
|
15
15
|
buildPreviewOutput
|
|
16
16
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,21 +27,21 @@ import {
|
|
|
27
27
|
resolveEffectiveConfig,
|
|
28
28
|
streamAll,
|
|
29
29
|
writeNdjsonItem
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-SA2QHAXG.js";
|
|
31
|
+
import "./chunk-RXWODUWA.js";
|
|
32
32
|
import {
|
|
33
33
|
createClient
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
35
35
|
import {
|
|
36
36
|
GLOBAL_FLAGS,
|
|
37
37
|
READ_SINGLE_FLAGS,
|
|
38
38
|
WRITE_FLAGS,
|
|
39
39
|
WRITE_SINGLE_FLAGS,
|
|
40
40
|
readOnly
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
42
42
|
import {
|
|
43
43
|
DESCRIPTIONS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-D2S5OCYU.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveTextOrStdin
|
|
47
47
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -82,7 +82,7 @@ function normalizeAttachPaths(attach) {
|
|
|
82
82
|
async function handleSdkError(err, outOpts, out) {
|
|
83
83
|
const { CurviateError } = await import("@curviate/sdk");
|
|
84
84
|
if (err instanceof CurviateError) {
|
|
85
|
-
const { getExitCode } = await import("./exit-codes-
|
|
85
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
86
86
|
renderError(err, outOpts, out);
|
|
87
87
|
process.exit(getExitCode(err));
|
|
88
88
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
RETRIEVAL_FLAGS,
|
|
4
|
+
hasRetrievalFlags,
|
|
5
|
+
parseRetrievalFlags
|
|
6
|
+
} from "./chunk-PQWDDSV7.js";
|
|
2
7
|
import {
|
|
3
8
|
resolveMemberOrMeProviderId,
|
|
4
9
|
resolveMemberProviderId
|
|
5
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JYKYD57J.js";
|
|
6
11
|
import {
|
|
7
12
|
AttachError,
|
|
8
13
|
readAttachment,
|
|
9
14
|
toAttachmentPayload
|
|
10
15
|
} from "./chunk-5I6JJJIV.js";
|
|
11
|
-
import {
|
|
12
|
-
RETRIEVAL_FLAGS,
|
|
13
|
-
hasRetrievalFlags,
|
|
14
|
-
parseRetrievalFlags
|
|
15
|
-
} from "./chunk-PQWDDSV7.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveIdentifier
|
|
18
18
|
} from "./chunk-UEAX6KUB.js";
|
|
19
19
|
import {
|
|
20
20
|
requireAccount
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-V7FJWTZW.js";
|
|
22
22
|
import {
|
|
23
23
|
parseSectionsFlag,
|
|
24
24
|
slimProfile,
|
|
@@ -42,20 +42,20 @@ import {
|
|
|
42
42
|
resolveEffectiveConfig,
|
|
43
43
|
streamAll,
|
|
44
44
|
writeNdjsonItem
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-SA2QHAXG.js";
|
|
46
|
+
import "./chunk-RXWODUWA.js";
|
|
47
47
|
import {
|
|
48
48
|
createClient
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
50
50
|
import {
|
|
51
51
|
GLOBAL_FLAGS,
|
|
52
52
|
READ_SINGLE_FLAGS,
|
|
53
53
|
WRITE_SINGLE_FLAGS,
|
|
54
54
|
readOnly
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
56
56
|
import {
|
|
57
57
|
DESCRIPTIONS
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-D2S5OCYU.js";
|
|
59
59
|
import "./chunk-ZYURL5VK.js";
|
|
60
60
|
|
|
61
61
|
// src/commands/profile.ts
|
|
@@ -184,7 +184,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
184
184
|
} catch (err) {
|
|
185
185
|
const { CurviateError } = await import("@curviate/sdk");
|
|
186
186
|
if (err instanceof CurviateError) {
|
|
187
|
-
const { getExitCode } = await import("./exit-codes-
|
|
187
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
188
188
|
renderError(err, outOpts, out);
|
|
189
189
|
process.exit(getExitCode(err));
|
|
190
190
|
}
|
|
@@ -211,7 +211,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
211
211
|
} catch (err) {
|
|
212
212
|
const { CurviateError } = await import("@curviate/sdk");
|
|
213
213
|
if (err instanceof CurviateError) {
|
|
214
|
-
const { getExitCode } = await import("./exit-codes-
|
|
214
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
215
215
|
renderError(err, outOpts, out);
|
|
216
216
|
process.exit(getExitCode(err));
|
|
217
217
|
}
|
|
@@ -343,7 +343,7 @@ async function runProfileGet(client, flags, out) {
|
|
|
343
343
|
} catch (err) {
|
|
344
344
|
const { CurviateError } = await import("@curviate/sdk");
|
|
345
345
|
if (err instanceof CurviateError) {
|
|
346
|
-
const { getExitCode } = await import("./exit-codes-
|
|
346
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
347
347
|
renderError(err, outOpts, out);
|
|
348
348
|
process.exit(getExitCode(err));
|
|
349
349
|
}
|
|
@@ -381,7 +381,7 @@ async function runProfileRelations(client, flags, out) {
|
|
|
381
381
|
} catch (err) {
|
|
382
382
|
const { CurviateError } = await import("@curviate/sdk");
|
|
383
383
|
if (err instanceof CurviateError) {
|
|
384
|
-
const { getExitCode } = await import("./exit-codes-
|
|
384
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
385
385
|
renderError(err, outOpts, out);
|
|
386
386
|
process.exit(getExitCode(err));
|
|
387
387
|
}
|
|
@@ -421,7 +421,7 @@ async function runProfileEndorse(client, flags, out) {
|
|
|
421
421
|
async function handleSdkError(err, outOpts, out) {
|
|
422
422
|
const { CurviateError } = await import("@curviate/sdk");
|
|
423
423
|
if (err instanceof CurviateError) {
|
|
424
|
-
const { getExitCode } = await import("./exit-codes-
|
|
424
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
425
425
|
renderError(err, outOpts, out);
|
|
426
426
|
process.exit(getExitCode(err));
|
|
427
427
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_FILTER_READERS,
|
|
4
|
+
assembleFilters,
|
|
5
|
+
splitCsv
|
|
6
|
+
} from "./chunk-3RCW7URJ.js";
|
|
2
7
|
import {
|
|
3
8
|
AttachError,
|
|
4
9
|
readAttachment,
|
|
@@ -8,18 +13,13 @@ import {
|
|
|
8
13
|
BinaryOutputError,
|
|
9
14
|
writeBinaryOutput
|
|
10
15
|
} from "./chunk-UWO2D4HW.js";
|
|
11
|
-
import {
|
|
12
|
-
DEFAULT_FILTER_READERS,
|
|
13
|
-
assembleFilters,
|
|
14
|
-
splitCsv
|
|
15
|
-
} from "./chunk-TSOIZBBU.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveIdentifier,
|
|
18
18
|
resolveJobIdentifier
|
|
19
19
|
} from "./chunk-UEAX6KUB.js";
|
|
20
20
|
import {
|
|
21
21
|
requireAccount
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-V7FJWTZW.js";
|
|
23
23
|
import {
|
|
24
24
|
slimJob
|
|
25
25
|
} from "./chunk-LCGXJGPB.js";
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
resolveEffectiveConfig,
|
|
41
41
|
streamAll,
|
|
42
42
|
writeNdjsonItem
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-SA2QHAXG.js";
|
|
44
|
+
import "./chunk-RXWODUWA.js";
|
|
45
45
|
import {
|
|
46
46
|
createClient,
|
|
47
47
|
downloadBinary
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
49
49
|
import {
|
|
50
50
|
GLOBAL_FLAGS,
|
|
51
51
|
NON_STREAM_FLAGS,
|
|
@@ -53,17 +53,17 @@ import {
|
|
|
53
53
|
WRITE_FLAGS,
|
|
54
54
|
WRITE_SINGLE_FLAGS,
|
|
55
55
|
readOnly
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
57
57
|
import {
|
|
58
58
|
DESCRIPTIONS
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-D2S5OCYU.js";
|
|
60
60
|
import {
|
|
61
61
|
documentSchema,
|
|
62
62
|
parseDocument,
|
|
63
63
|
readFileFlag,
|
|
64
64
|
reportIssues,
|
|
65
65
|
validate
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-TEAWYLPO.js";
|
|
67
67
|
import "./chunk-FDJMAF7D.js";
|
|
68
68
|
import "./chunk-ZYURL5VK.js";
|
|
69
69
|
|
|
@@ -90,7 +90,7 @@ function normalizeAttachPaths(attach) {
|
|
|
90
90
|
async function handleSdkError(err, outOpts, out) {
|
|
91
91
|
const { CurviateError } = await import("@curviate/sdk");
|
|
92
92
|
if (err instanceof CurviateError) {
|
|
93
|
-
const { getExitCode } = await import("./exit-codes-
|
|
93
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
94
94
|
renderError(err, outOpts, out);
|
|
95
95
|
process.exit(getExitCode(err));
|
|
96
96
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_FILTER_READERS,
|
|
4
|
+
assembleFilters,
|
|
5
|
+
splitCsv
|
|
6
|
+
} from "./chunk-3RCW7URJ.js";
|
|
2
7
|
import {
|
|
3
8
|
AttachError,
|
|
4
9
|
readAttachment,
|
|
5
10
|
toAttachmentPayload
|
|
6
11
|
} from "./chunk-5I6JJJIV.js";
|
|
7
|
-
import {
|
|
8
|
-
DEFAULT_FILTER_READERS,
|
|
9
|
-
assembleFilters,
|
|
10
|
-
splitCsv
|
|
11
|
-
} from "./chunk-TSOIZBBU.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveIdentifier
|
|
14
14
|
} from "./chunk-UEAX6KUB.js";
|
|
15
15
|
import {
|
|
16
16
|
requireAccount
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-V7FJWTZW.js";
|
|
18
18
|
import {
|
|
19
19
|
buildPreviewOutput
|
|
20
20
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -31,21 +31,21 @@ import {
|
|
|
31
31
|
resolveEffectiveConfig,
|
|
32
32
|
streamAll,
|
|
33
33
|
writeNdjsonItem
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-SA2QHAXG.js";
|
|
35
|
+
import "./chunk-RXWODUWA.js";
|
|
36
36
|
import {
|
|
37
37
|
createClient
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
39
39
|
import {
|
|
40
40
|
GLOBAL_FLAGS,
|
|
41
41
|
READ_SINGLE_FLAGS,
|
|
42
42
|
WRITE_FLAGS,
|
|
43
43
|
readOnly
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
45
45
|
import {
|
|
46
46
|
DESCRIPTIONS
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-D2S5OCYU.js";
|
|
48
|
+
import "./chunk-TEAWYLPO.js";
|
|
49
49
|
import "./chunk-FDJMAF7D.js";
|
|
50
50
|
import "./chunk-ZYURL5VK.js";
|
|
51
51
|
|
|
@@ -71,7 +71,7 @@ function normalizeAttachPaths(attach) {
|
|
|
71
71
|
async function handleSdkError(err, outOpts, out) {
|
|
72
72
|
const { CurviateError } = await import("@curviate/sdk");
|
|
73
73
|
if (err instanceof CurviateError) {
|
|
74
|
-
const { getExitCode } = await import("./exit-codes-
|
|
74
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
75
75
|
renderError(err, outOpts, out);
|
|
76
76
|
process.exit(getExitCode(err));
|
|
77
77
|
}
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
DEFAULT_FILTER_READERS,
|
|
4
4
|
assembleFilters,
|
|
5
5
|
splitCsv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3RCW7URJ.js";
|
|
7
7
|
import {
|
|
8
8
|
requireAccount
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V7FJWTZW.js";
|
|
10
10
|
import {
|
|
11
11
|
slimSearchCompanies,
|
|
12
12
|
slimSearchCompaniesItem,
|
|
@@ -33,19 +33,19 @@ import {
|
|
|
33
33
|
resolveEffectiveConfig,
|
|
34
34
|
streamAll,
|
|
35
35
|
writeNdjsonItem
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-SA2QHAXG.js";
|
|
37
|
+
import "./chunk-RXWODUWA.js";
|
|
38
38
|
import {
|
|
39
39
|
createClient
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_FLAGS,
|
|
43
43
|
readOnly
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
45
45
|
import {
|
|
46
46
|
DESCRIPTIONS
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-D2S5OCYU.js";
|
|
48
|
+
import "./chunk-TEAWYLPO.js";
|
|
49
49
|
import "./chunk-FDJMAF7D.js";
|
|
50
50
|
import "./chunk-ZYURL5VK.js";
|
|
51
51
|
|
|
@@ -224,7 +224,7 @@ async function runSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READ
|
|
|
224
224
|
} catch (err) {
|
|
225
225
|
const { CurviateError } = await import("@curviate/sdk");
|
|
226
226
|
if (err instanceof CurviateError) {
|
|
227
|
-
const { getExitCode } = await import("./exit-codes-
|
|
227
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
228
228
|
renderError(err, outOpts, out);
|
|
229
229
|
process.exit(getExitCode(err));
|
|
230
230
|
}
|
|
@@ -266,7 +266,7 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
|
|
|
266
266
|
} catch (err) {
|
|
267
267
|
const { CurviateError } = await import("@curviate/sdk");
|
|
268
268
|
if (err instanceof CurviateError) {
|
|
269
|
-
const { getExitCode } = await import("./exit-codes-
|
|
269
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
270
270
|
renderError(err, outOpts, out);
|
|
271
271
|
process.exit(getExitCode(err));
|
|
272
272
|
}
|
|
@@ -308,7 +308,7 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
|
|
|
308
308
|
} catch (err) {
|
|
309
309
|
const { CurviateError } = await import("@curviate/sdk");
|
|
310
310
|
if (err instanceof CurviateError) {
|
|
311
|
-
const { getExitCode } = await import("./exit-codes-
|
|
311
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
312
312
|
renderError(err, outOpts, out);
|
|
313
313
|
process.exit(getExitCode(err));
|
|
314
314
|
}
|
|
@@ -350,7 +350,7 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
|
|
|
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-TLMKTLRI.js");
|
|
354
354
|
renderError(err, outOpts, out);
|
|
355
355
|
process.exit(getExitCode(err));
|
|
356
356
|
}
|
|
@@ -398,7 +398,7 @@ async function runSearchParameters(client, flags, out) {
|
|
|
398
398
|
} catch (err) {
|
|
399
399
|
const { CurviateError } = await import("@curviate/sdk");
|
|
400
400
|
if (err instanceof CurviateError) {
|
|
401
|
-
const { getExitCode } = await import("./exit-codes-
|
|
401
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
402
402
|
renderError(err, outOpts, out);
|
|
403
403
|
process.exit(getExitCode(err));
|
|
404
404
|
}
|
|
@@ -440,7 +440,7 @@ async function runSearchGroups(client, flags, out) {
|
|
|
440
440
|
} catch (err) {
|
|
441
441
|
const { CurviateError } = await import("@curviate/sdk");
|
|
442
442
|
if (err instanceof CurviateError) {
|
|
443
|
-
const { getExitCode } = await import("./exit-codes-
|
|
443
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
444
444
|
renderError(err, outOpts, out);
|
|
445
445
|
process.exit(getExitCode(err));
|
|
446
446
|
}
|
|
@@ -484,7 +484,7 @@ async function runSearchServices(client, flags, out) {
|
|
|
484
484
|
} catch (err) {
|
|
485
485
|
const { CurviateError } = await import("@curviate/sdk");
|
|
486
486
|
if (err instanceof CurviateError) {
|
|
487
|
-
const { getExitCode } = await import("./exit-codes-
|
|
487
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
488
488
|
renderError(err, outOpts, out);
|
|
489
489
|
process.exit(getExitCode(err));
|
|
490
490
|
}
|
|
@@ -526,7 +526,7 @@ async function runSearchServiceParameters(client, flags, out) {
|
|
|
526
526
|
} catch (err) {
|
|
527
527
|
const { CurviateError } = await import("@curviate/sdk");
|
|
528
528
|
if (err instanceof CurviateError) {
|
|
529
|
-
const { getExitCode } = await import("./exit-codes-
|
|
529
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
530
530
|
renderError(err, outOpts, out);
|
|
531
531
|
process.exit(getExitCode(err));
|
|
532
532
|
}
|
|
@@ -565,7 +565,7 @@ async function runSearchFromUrl(client, flags, out) {
|
|
|
565
565
|
} catch (err) {
|
|
566
566
|
const { CurviateError } = await import("@curviate/sdk");
|
|
567
567
|
if (err instanceof CurviateError) {
|
|
568
|
-
const { getExitCode } = await import("./exit-codes-
|
|
568
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
569
569
|
renderError(err, outOpts, out);
|
|
570
570
|
process.exit(getExitCode(err));
|
|
571
571
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readablePage,
|
|
4
4
|
resolveEffectiveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SA2QHAXG.js";
|
|
6
6
|
import {
|
|
7
7
|
getExitCode
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RXWODUWA.js";
|
|
9
9
|
import {
|
|
10
10
|
readlineSync
|
|
11
11
|
} from "./chunk-YLSJ4HKU.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
createClient,
|
|
14
14
|
getConfigPath,
|
|
15
15
|
writeProfile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
17
17
|
import {
|
|
18
18
|
GLOBAL_FLAGS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
20
20
|
import {
|
|
21
21
|
DESCRIPTIONS
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-D2S5OCYU.js";
|
|
23
23
|
import {
|
|
24
24
|
defaultReadStdin,
|
|
25
25
|
isStdinToken,
|
|
@@ -18,22 +18,22 @@ import {
|
|
|
18
18
|
resolveEffectiveConfig,
|
|
19
19
|
streamAll,
|
|
20
20
|
writeNdjsonItem
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SA2QHAXG.js";
|
|
22
22
|
import {
|
|
23
23
|
createClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
25
25
|
import {
|
|
26
26
|
GLOBAL_FLAGS,
|
|
27
27
|
READ_SINGLE_FLAGS,
|
|
28
28
|
WRITE_SINGLE_FLAGS,
|
|
29
29
|
readOnly
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
31
31
|
import {
|
|
32
32
|
DESCRIPTIONS
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-D2S5OCYU.js";
|
|
34
34
|
import {
|
|
35
35
|
readFileFlag
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TEAWYLPO.js";
|
|
37
37
|
import "./chunk-FDJMAF7D.js";
|
|
38
38
|
import "./chunk-ZYURL5VK.js";
|
|
39
39
|
|
|
@@ -61,7 +61,7 @@ function resolveOutputOpts(flags) {
|
|
|
61
61
|
async function handleError(err, outOpts, out) {
|
|
62
62
|
const { CurviateError } = await import("@curviate/sdk");
|
|
63
63
|
if (err instanceof CurviateError) {
|
|
64
|
-
const { getExitCode } = await import("./exit-codes-
|
|
64
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
65
65
|
renderError(err, outOpts, out);
|
|
66
66
|
process.exit(getExitCode(err));
|
|
67
67
|
}
|
|
@@ -70,7 +70,7 @@ async function handleError(err, outOpts, out) {
|
|
|
70
70
|
}
|
|
71
71
|
async function runWebhookCreate(client, flags, out) {
|
|
72
72
|
if (!flags.source) {
|
|
73
|
-
out.stderr.write("error: --source is required (messaging | user | account_status | post).\n");
|
|
73
|
+
out.stderr.write("error: --source is required (messaging | user | account_status | post | motion).\n");
|
|
74
74
|
process.exit(2);
|
|
75
75
|
}
|
|
76
76
|
if (!flags["request-url"]) {
|
|
@@ -81,20 +81,15 @@ async function runWebhookCreate(client, flags, out) {
|
|
|
81
81
|
source: flags.source,
|
|
82
82
|
request_url: flags["request-url"]
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
for (const [flag, key, omitted] of [["account-ids", "account_ids", "omit the flag to cover every account you can operate"], ["motion-ids", "motion_ids", "omit the flag for every Motion"]]) {
|
|
85
|
+
if (flags[flag] === void 0) continue;
|
|
86
|
+
const ids = flags[flag].split(",").map((s) => s.trim()).filter(Boolean);
|
|
87
|
+
if (ids.length === 0) {
|
|
88
|
+
out.stderr.write(`error: --${flag} was given an empty value. Pass ids, or ${omitted}.
|
|
89
|
+
`);
|
|
90
90
|
process.exit(2);
|
|
91
91
|
}
|
|
92
|
-
body[
|
|
93
|
-
} else if (flags.source !== "account_status") {
|
|
94
|
-
out.stderr.write(
|
|
95
|
-
"error: --account-ids is required when --source is messaging, user or post (comma-separated acc_... ids). Only an account_status webhook may omit it.\n"
|
|
96
|
-
);
|
|
97
|
-
process.exit(2);
|
|
92
|
+
body[key] = ids;
|
|
98
93
|
}
|
|
99
94
|
if (flags.name) body["name"] = flags.name;
|
|
100
95
|
if (flags.enabled !== void 0) body["enabled"] = flags.enabled;
|
|
@@ -273,17 +268,20 @@ var webhookCreateCommand = defineCommand({
|
|
|
273
268
|
description: "Register a new webhook endpoint.",
|
|
274
269
|
examples: [
|
|
275
270
|
"curviate webhook create --source messaging --request-url https://example.com/hooks/curviate --account-ids acc_YOUR_ACCOUNT_ID",
|
|
271
|
+
"curviate webhook create --source motion --request-url https://example.com/hooks/curviate --motion-ids mot_YOUR_MOTION_ID",
|
|
276
272
|
"curviate webhook create --source account_status --request-url https://example.com/hooks/curviate --name status"
|
|
277
|
-
],
|
|
278
|
-
requires: [
|
|
279
|
-
"--account-ids for --source messaging, user and post; omit it with --source account_status to cover every current and future account."
|
|
280
273
|
]
|
|
281
274
|
},
|
|
282
275
|
args: {
|
|
283
276
|
...WRITE_SINGLE_FLAGS,
|
|
284
|
-
source: {
|
|
277
|
+
source: {
|
|
278
|
+
type: "string",
|
|
279
|
+
description: "Event source: messaging | user | account_status | post (scheduled-post results: post.published, post.publish_failed) | motion (motion.status_changed, enrollment.started, enrollment.accepted, enrollment.replied, enrollment.skipped, enrollment.finished, step.failed, motion.custom_event; opt-in only, named in --events: step.executed, enrollment.seen, enrollment.reassigned).",
|
|
280
|
+
required: true
|
|
281
|
+
},
|
|
285
282
|
"request-url": { type: "string", description: "HTTPS URL to receive webhook deliveries.", required: true },
|
|
286
|
-
"account-ids": { type: "string", description: "Comma-separated account ids to target.
|
|
283
|
+
"account-ids": { type: "string", description: "Comma-separated account ids to target. Omit to cover every account you can operate, now and later." },
|
|
284
|
+
"motion-ids": { type: "string", description: "Comma-separated Motion ids (mot_...): only events of these Motions are delivered, and events that carry no Motion are not. Omit for no filter." },
|
|
287
285
|
name: { type: "string", description: "Human-readable name (1-100 chars)." },
|
|
288
286
|
enabled: { type: "boolean", description: "Create as enabled (default: true).", default: true },
|
|
289
287
|
events: { type: "string", description: "Comma-separated event names to subscribe to." },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curviate/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
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.
|
|
50
|
+
"@curviate/sdk": "0.44.0",
|
|
51
51
|
"citty": "^0.1.6",
|
|
52
52
|
"open": "^10.1.0"
|
|
53
53
|
},
|
package/dist/core-6XYGUNAY.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
DESCRIPTIONS,
|
|
4
|
-
lazy
|
|
5
|
-
} from "./chunk-GQKC6E5K.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-4SOOQZ4K.js").then((m) => m.profileCommand)),
|
|
23
|
-
company: lazy("company", () => import("./company-RD7RDGSA.js").then((m) => m.companyCommand)),
|
|
24
|
-
job: lazy("job", () => import("./job-ACFKBLFK.js").then((m) => m.jobCommand)),
|
|
25
|
-
connect: lazy("connect", () => import("./connect-HVXT67A6.js").then((m) => m.connectCommand)),
|
|
26
|
-
search: lazy("search", () => import("./search-JAL242A2.js").then((m) => m.searchCommand)),
|
|
27
|
-
inbox: lazy("inbox", () => import("./inbox-MMIMCA5O.js").then((m) => m.inboxCommand)),
|
|
28
|
-
inboxes: lazy("inboxes", () => import("./inboxes-RND3D4C7.js").then((m) => m.inboxesCommand)),
|
|
29
|
-
message: lazy("message", () => import("./message-OFK6UVXR.js").then((m) => m.messageCommand)),
|
|
30
|
-
post: lazy("post", () => import("./post-A5SBCFB2.js").then((m) => m.postCommand)),
|
|
31
|
-
comment: lazy("comment", () => import("./comment-7IQ6ZOJF.js").then((m) => m.commentCommand)),
|
|
32
|
-
"sales-nav": lazy("sales-nav", () => import("./sales-nav-JXF5RY2K.js").then((m) => m.salesNavCommand)),
|
|
33
|
-
recruiter: lazy("recruiter", () => import("./recruiter-YN73STDP.js").then((m) => m.recruiterCommand)),
|
|
34
|
-
group: lazy("group", () => import("./group-SIQFJEZV.js").then((m) => m.groupCommand)),
|
|
35
|
-
feed: lazy("feed", () => import("./feed-JWP6ANPI.js").then((m) => m.feedCommand)),
|
|
36
|
-
notification: lazy("notification", () => import("./notification-KKGAZU7M.js").then((m) => m.notificationCommand)),
|
|
37
|
-
draft: lazy("draft", () => import("./draft-DFO22K6Q.js").then((m) => m.draftCommand))
|
|
38
|
-
},
|
|
39
|
-
async run() {
|
|
40
|
-
const { showHelp } = await import("./examples-64YT5V5K.js");
|
|
41
|
-
await showHelp(coreCommand, ["curviate", "core"]);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
coreCommand
|
|
46
|
-
};
|