@curviate/cli 0.47.0 → 0.48.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 +174 -1
- package/README.md +101 -87
- package/dist/{account-RFJ63QYL.js → account-WKQHMM7P.js} +39 -29
- package/dist/chunk-AYKKXGTR.js +1141 -0
- package/dist/{chunk-TC4ZPUWI.js → chunk-CVMSQ3OF.js} +19 -80
- package/dist/{chunk-HOQ7EUHJ.js → chunk-FDJMAF7D.js} +1 -0
- package/dist/chunk-GQKC6E5K.js +36 -0
- package/dist/{chunk-V3MVOVQT.js → chunk-MKGVNDMJ.js} +8 -1
- package/dist/chunk-NNV2OYEF.js +23 -0
- package/dist/{chunk-UJOTQPL6.js → chunk-OHXYFICP.js} +47 -14
- package/dist/{chunk-PD2I5TYC.js → chunk-Q63IIPL2.js} +2 -2
- package/dist/chunk-TSOIZBBU.js +41 -0
- package/dist/{chunk-ERBYEC5P.js → chunk-Y7K4UBFC.js} +1 -1
- package/dist/{chunk-FXYK2GTO.js → chunk-YFXLXION.js} +37 -32
- package/dist/chunk-ZYURL5VK.js +83 -0
- package/dist/cli.js +76 -97
- package/dist/{comment-MCXE7B7V.js → comment-7IQ6ZOJF.js} +27 -22
- package/dist/{company-EUUN372H.js → company-RD7RDGSA.js} +55 -50
- package/dist/{config-K4G3VSBA.js → config-EYBNYRGK.js} +13 -5
- package/dist/{connect-2AL7XVJO.js → connect-HVXT67A6.js} +35 -31
- package/dist/core-6XYGUNAY.js +46 -0
- package/dist/{doctor-WPYI7X2T.js → doctor-HUXQERLQ.js} +8 -4
- package/dist/document-AUUCGST2.js +27 -0
- package/dist/{draft-G65DVXT7.js → draft-DFO22K6Q.js} +26 -21
- package/dist/examples-64YT5V5K.js +53 -0
- package/dist/{feed-HV24WME4.js → feed-JWP6ANPI.js} +13 -9
- package/dist/{group-HADXNVJW.js → group-SIQFJEZV.js} +15 -11
- package/dist/{inbox-G3EE54OB.js → inbox-MMIMCA5O.js} +21 -17
- package/dist/{inboxes-237XOBTP.js → inboxes-RND3D4C7.js} +16 -12
- package/dist/{job-LIN6RWD7.js → job-ACFKBLFK.js} +29 -25
- package/dist/{login-OHAHNBRW.js → login-ZOB5KVKQ.js} +10 -5
- package/dist/{message-U2O2JQSW.js → message-OFK6UVXR.js} +9 -7
- package/dist/{notification-3VG32LWM.js → notification-KKGAZU7M.js} +17 -13
- package/dist/{post-ECDK2KJL.js → post-A5SBCFB2.js} +33 -28
- package/dist/{profile-JOHS6SDW.js → profile-4SOOQZ4K.js} +45 -41
- package/dist/{recruiter-7VXEIXN3.js → recruiter-YN73STDP.js} +123 -120
- package/dist/{sales-nav-K4BMBH7R.js → sales-nav-JXF5RY2K.js} +38 -32
- package/dist/{search-C2UYO6PI.js → search-JAL242A2.js} +58 -48
- package/dist/{setup-GYEZFDEN.js → setup-WICWH4JG.js} +13 -8
- package/dist/{webhook-KCOQOH7D.js → webhook-UGKVYWBC.js} +34 -36
- package/package.json +1 -1
- package/dist/chunk-KJ24DIAJ.js +0 -60
- package/dist/examples-IJL3A6SZ.js +0 -18
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
slimJob
|
|
4
|
-
} from "./chunk-LCGXJGPB.js";
|
|
5
2
|
import {
|
|
6
3
|
BinaryOutputError,
|
|
7
4
|
writeBinaryOutput
|
|
@@ -11,7 +8,10 @@ import {
|
|
|
11
8
|
} from "./chunk-UEAX6KUB.js";
|
|
12
9
|
import {
|
|
13
10
|
requireAccount
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q63IIPL2.js";
|
|
12
|
+
import {
|
|
13
|
+
slimJob
|
|
14
|
+
} from "./chunk-LCGXJGPB.js";
|
|
15
15
|
import {
|
|
16
16
|
buildPreviewOutput
|
|
17
17
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -30,18 +30,22 @@ import {
|
|
|
30
30
|
resolveEffectiveConfig,
|
|
31
31
|
streamAll,
|
|
32
32
|
writeNdjsonItem
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MKGVNDMJ.js";
|
|
34
34
|
import "./chunk-76SWLAZ6.js";
|
|
35
35
|
import {
|
|
36
36
|
createClient,
|
|
37
37
|
downloadBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OHXYFICP.js";
|
|
39
39
|
import {
|
|
40
40
|
GLOBAL_FLAGS,
|
|
41
41
|
READ_SINGLE_FLAGS,
|
|
42
42
|
WRITE_SINGLE_FLAGS,
|
|
43
43
|
readOnly
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
45
|
+
import {
|
|
46
|
+
DESCRIPTIONS
|
|
47
|
+
} from "./chunk-GQKC6E5K.js";
|
|
48
|
+
import "./chunk-ZYURL5VK.js";
|
|
45
49
|
|
|
46
50
|
// src/commands/job.ts
|
|
47
51
|
import { defineCommand } from "citty";
|
|
@@ -478,7 +482,7 @@ var JOB_BODY_FLAGS = {
|
|
|
478
482
|
company: { type: "string", description: "Hiring company as free text (or use --company-id)." },
|
|
479
483
|
"company-id": { type: "string", description: "Existing company id." },
|
|
480
484
|
"workplace-type": { type: "string", description: "Workplace arrangement: ON_SITE|HYBRID|REMOTE." },
|
|
481
|
-
location: { type: "string", description: "A LOCATION parameter id (from search parameters)." },
|
|
485
|
+
location: { type: "string", description: "A LOCATION parameter id (from `curviate core search parameters --type LOCATION --keywords <place>`)." },
|
|
482
486
|
"employment-status": { type: "string", description: "Employment type: FULL_TIME|PART_TIME|CONTRACT|TEMPORARY|OTHER|VOLUNTEER|INTERNSHIP." },
|
|
483
487
|
description: { type: "string", description: "Full job description (required; minimum 200 characters, enforced server-side)." },
|
|
484
488
|
"apply-method": { type: "string", description: "How candidates apply: linkedin|external." },
|
|
@@ -491,8 +495,8 @@ var jobGetCommand = defineCommand({
|
|
|
491
495
|
name: "get",
|
|
492
496
|
description: "Retrieve one public LinkedIn job posting's full detail.",
|
|
493
497
|
examples: [
|
|
494
|
-
"curviate job get 4100000000",
|
|
495
|
-
"curviate job get https://www.linkedin.com/jobs/view/4100000000"
|
|
498
|
+
"curviate core job get 4100000000",
|
|
499
|
+
"curviate core job get https://www.linkedin.com/jobs/view/4100000000"
|
|
496
500
|
]
|
|
497
501
|
},
|
|
498
502
|
args: {
|
|
@@ -508,8 +512,8 @@ var jobListCommand = defineCommand({
|
|
|
508
512
|
name: "list",
|
|
509
513
|
description: "List your own classic job postings by state.",
|
|
510
514
|
examples: [
|
|
511
|
-
"curviate job list --state OPEN",
|
|
512
|
-
"curviate job list --state DRAFT --all"
|
|
515
|
+
"curviate core job list --state OPEN",
|
|
516
|
+
"curviate core job list --state DRAFT --all"
|
|
513
517
|
],
|
|
514
518
|
requires: [
|
|
515
519
|
"--max-pages and --page-delay only with --all."
|
|
@@ -528,7 +532,7 @@ var jobCreateCommand = defineCommand({
|
|
|
528
532
|
name: "create",
|
|
529
533
|
description: "Create a classic job-posting draft (never publishes, never spends).",
|
|
530
534
|
examples: [
|
|
531
|
-
'curviate job create --job-title "Staff Engineer" --company "Acme" --workplace-type REMOTE --location 106967730 --employment-status FULL_TIME --apply-method external --website-url https://acme.example/jobs/1 --description "$(cat description.txt)"'
|
|
535
|
+
'curviate core job create --job-title "Staff Engineer" --company "Acme" --workplace-type REMOTE --location 106967730 --employment-status FULL_TIME --apply-method external --website-url https://acme.example/jobs/1 --description "$(cat description.txt)"'
|
|
532
536
|
],
|
|
533
537
|
requires: [
|
|
534
538
|
"--job-title or --job-title-id.",
|
|
@@ -556,8 +560,8 @@ var jobUpdateCommand = defineCommand({
|
|
|
556
560
|
name: "update",
|
|
557
561
|
description: "Apply a partial update to a job posting you own.",
|
|
558
562
|
examples: [
|
|
559
|
-
"curviate job update 4100000000 --workplace-type HYBRID",
|
|
560
|
-
'curviate job update 4100000000 --description "$(cat description.txt)"'
|
|
563
|
+
"curviate core job update 4100000000 --workplace-type HYBRID",
|
|
564
|
+
'curviate core job update 4100000000 --description "$(cat description.txt)"'
|
|
561
565
|
],
|
|
562
566
|
requires: [
|
|
563
567
|
"--notification-email with --apply-method linkedin; --website-url with --apply-method external."
|
|
@@ -577,7 +581,7 @@ var jobBudgetCommand = defineCommand({
|
|
|
577
581
|
name: "budget",
|
|
578
582
|
description: "Price a publish before committing any money.",
|
|
579
583
|
examples: [
|
|
580
|
-
"curviate job budget 4100000000"
|
|
584
|
+
"curviate core job budget 4100000000"
|
|
581
585
|
]
|
|
582
586
|
},
|
|
583
587
|
args: {
|
|
@@ -593,7 +597,7 @@ var jobPublishCommand = defineCommand({
|
|
|
593
597
|
name: "publish",
|
|
594
598
|
description: "Publish a draft. PROMOTED/PROMOTED_PLUS spend real money and require --budget-amount, --budget-currency, and --budget-scope.",
|
|
595
599
|
examples: [
|
|
596
|
-
"curviate job publish 4100000000 --mode FREE"
|
|
600
|
+
"curviate core job publish 4100000000 --mode FREE"
|
|
597
601
|
],
|
|
598
602
|
requires: [
|
|
599
603
|
"--budget-currency, --budget-amount and --budget-scope with --mode PROMOTED or PROMOTED_PLUS."
|
|
@@ -616,7 +620,7 @@ var jobCloseCommand = defineCommand({
|
|
|
616
620
|
name: "close",
|
|
617
621
|
description: "Stop a posting from accepting applications (irreversible once LISTED).",
|
|
618
622
|
examples: [
|
|
619
|
-
"curviate job close 4100000000"
|
|
623
|
+
"curviate core job close 4100000000"
|
|
620
624
|
]
|
|
621
625
|
},
|
|
622
626
|
args: {
|
|
@@ -632,8 +636,8 @@ var jobApplicantsCommand = defineCommand({
|
|
|
632
636
|
name: "applicants",
|
|
633
637
|
description: "List applicants to a posting you own (POST-as-search).",
|
|
634
638
|
examples: [
|
|
635
|
-
"curviate job applicants 4100000000",
|
|
636
|
-
"curviate job applicants 4100000000 --ratings GOOD_FIT,MAYBE"
|
|
639
|
+
"curviate core job applicants 4100000000",
|
|
640
|
+
"curviate core job applicants 4100000000 --ratings GOOD_FIT,MAYBE"
|
|
637
641
|
]
|
|
638
642
|
},
|
|
639
643
|
args: {
|
|
@@ -650,7 +654,7 @@ var jobApplicantGetCommand = defineCommand({
|
|
|
650
654
|
name: "get",
|
|
651
655
|
description: "Get one applicant's full detail, including contact info.",
|
|
652
656
|
examples: [
|
|
653
|
-
"curviate job applicant get 4100000000 APPLICANT_ID"
|
|
657
|
+
"curviate core job applicant get 4100000000 APPLICANT_ID"
|
|
654
658
|
]
|
|
655
659
|
},
|
|
656
660
|
args: {
|
|
@@ -667,7 +671,7 @@ var jobApplicantResumeCommand = defineCommand({
|
|
|
667
671
|
name: "resume",
|
|
668
672
|
description: "Download an applicant's r\xE9sum\xE9 (binary).",
|
|
669
673
|
examples: [
|
|
670
|
-
"curviate job applicant resume 4100000000 APPLICANT_ID -o resume.pdf"
|
|
674
|
+
"curviate core job applicant resume 4100000000 APPLICANT_ID -o resume.pdf"
|
|
671
675
|
]
|
|
672
676
|
},
|
|
673
677
|
args: {
|
|
@@ -689,12 +693,12 @@ var jobApplicantCommand = defineCommand({
|
|
|
689
693
|
},
|
|
690
694
|
async run() {
|
|
691
695
|
process.stderr.write(
|
|
692
|
-
"Usage: curviate job applicant get <job_id> <applicant_id>\n curviate job applicant resume <job_id> <applicant_id> -o <file>\n"
|
|
696
|
+
"Usage: curviate core job applicant get <job_id> <applicant_id>\n curviate core job applicant resume <job_id> <applicant_id> -o <file>\n"
|
|
693
697
|
);
|
|
694
698
|
}
|
|
695
699
|
});
|
|
696
700
|
var jobCommand = defineCommand({
|
|
697
|
-
meta: { name: "job", description:
|
|
701
|
+
meta: { name: "job", description: DESCRIPTIONS.job },
|
|
698
702
|
args: { ...READ_SINGLE_FLAGS },
|
|
699
703
|
subCommands: {
|
|
700
704
|
get: jobGetCommand,
|
|
@@ -709,7 +713,7 @@ var jobCommand = defineCommand({
|
|
|
709
713
|
},
|
|
710
714
|
async run() {
|
|
711
715
|
process.stderr.write(
|
|
712
|
-
"Usage: curviate job get <url|id>\n curviate job list --state <DRAFT|OPEN|CLOSED|REVIEW|SUSPENDED|ALL>\n curviate job create --job-title <t> --company <c> --workplace-type <w> --location <id> --employment-status <e> --description <d> --apply-method <linkedin|external>\n curviate job update <id> [<flags>]\n curviate job budget <id>\n curviate job publish <id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate job close <id>\n curviate job applicants <id>\n curviate job applicant get <id> <applicant_id>\n curviate job applicant resume <id> <applicant_id> -o <file>\n"
|
|
716
|
+
"Usage: curviate core job get <url|id>\n curviate core job list --state <DRAFT|OPEN|CLOSED|REVIEW|SUSPENDED|ALL>\n curviate core job create --job-title <t> --company <c> --workplace-type <w> --location <id> --employment-status <e> --description <d> --apply-method <linkedin|external>\n curviate core job update <id> [<flags>]\n curviate core job budget <id>\n curviate core job publish <id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate core job close <id>\n curviate core job applicants <id>\n curviate core job applicant get <id> <applicant_id>\n curviate core job applicant resume <id> <applicant_id> -o <file>\n"
|
|
713
717
|
);
|
|
714
718
|
}
|
|
715
719
|
});
|
|
@@ -5,12 +5,17 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
baseUrlProblem,
|
|
7
7
|
writeProfile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OHXYFICP.js";
|
|
9
|
+
import {
|
|
10
|
+
GLOBAL_FLAGS
|
|
11
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
12
|
+
import {
|
|
13
|
+
DESCRIPTIONS
|
|
14
|
+
} from "./chunk-GQKC6E5K.js";
|
|
9
15
|
import {
|
|
10
|
-
GLOBAL_FLAGS,
|
|
11
16
|
defaultReadStdin,
|
|
12
17
|
resolveTextOrStdin
|
|
13
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZYURL5VK.js";
|
|
14
19
|
|
|
15
20
|
// src/commands/login.ts
|
|
16
21
|
import { defineCommand } from "citty";
|
|
@@ -42,14 +47,14 @@ async function runLogin(args, out) {
|
|
|
42
47
|
}
|
|
43
48
|
await writeProfile(profileName, entry);
|
|
44
49
|
out.stderr.write(
|
|
45
|
-
`Saved to profile "${profileName}". Run \`curviate profile me\` to verify.
|
|
50
|
+
`Saved to profile "${profileName}". Run \`curviate core profile me\` to verify.
|
|
46
51
|
`
|
|
47
52
|
);
|
|
48
53
|
}
|
|
49
54
|
var loginCommand = defineCommand({
|
|
50
55
|
meta: {
|
|
51
56
|
name: "login",
|
|
52
|
-
description:
|
|
57
|
+
description: DESCRIPTIONS.login,
|
|
53
58
|
examples: [
|
|
54
59
|
"curviate login",
|
|
55
60
|
"curviate login --api-key - --profile work"
|
|
@@ -13,17 +13,19 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-UWO2D4HW.js";
|
|
18
|
-
import "./chunk-HOQ7EUHJ.js";
|
|
16
|
+
} from "./chunk-YFXLXION.js";
|
|
19
17
|
import "./chunk-5I6JJJIV.js";
|
|
18
|
+
import "./chunk-UWO2D4HW.js";
|
|
20
19
|
import "./chunk-UEAX6KUB.js";
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-Q63IIPL2.js";
|
|
22
21
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MKGVNDMJ.js";
|
|
24
23
|
import "./chunk-76SWLAZ6.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-OHXYFICP.js";
|
|
25
|
+
import "./chunk-CVMSQ3OF.js";
|
|
26
|
+
import "./chunk-GQKC6E5K.js";
|
|
27
|
+
import "./chunk-FDJMAF7D.js";
|
|
28
|
+
import "./chunk-ZYURL5VK.js";
|
|
27
29
|
export {
|
|
28
30
|
guardBareMessageForm,
|
|
29
31
|
messageCommand,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q63IIPL2.js";
|
|
5
5
|
import {
|
|
6
6
|
buildPreviewOutput
|
|
7
7
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -17,16 +17,20 @@ import {
|
|
|
17
17
|
resolveEffectiveConfig,
|
|
18
18
|
streamAll,
|
|
19
19
|
writeNdjsonItem
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MKGVNDMJ.js";
|
|
21
21
|
import "./chunk-76SWLAZ6.js";
|
|
22
22
|
import {
|
|
23
23
|
createClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OHXYFICP.js";
|
|
25
25
|
import {
|
|
26
26
|
GLOBAL_FLAGS,
|
|
27
27
|
WRITE_SINGLE_FLAGS,
|
|
28
28
|
readOnly
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
30
|
+
import {
|
|
31
|
+
DESCRIPTIONS
|
|
32
|
+
} from "./chunk-GQKC6E5K.js";
|
|
33
|
+
import "./chunk-ZYURL5VK.js";
|
|
30
34
|
|
|
31
35
|
// src/commands/notification.ts
|
|
32
36
|
import { defineCommand } from "citty";
|
|
@@ -124,8 +128,8 @@ var notificationListCommand = defineCommand({
|
|
|
124
128
|
name: "list",
|
|
125
129
|
description: "List the connected account's notification cards, newest first, plus the unread badge and a poll watermark.",
|
|
126
130
|
examples: [
|
|
127
|
-
"curviate notification list",
|
|
128
|
-
"curviate notification list --filter mentions"
|
|
131
|
+
"curviate core notification list",
|
|
132
|
+
"curviate core notification list --filter mentions"
|
|
129
133
|
]
|
|
130
134
|
},
|
|
131
135
|
args: {
|
|
@@ -156,14 +160,14 @@ var notificationListCommand = defineCommand({
|
|
|
156
160
|
var notificationDeleteCommand = defineCommand({
|
|
157
161
|
meta: {
|
|
158
162
|
name: "delete",
|
|
159
|
-
description: "Delete one of your notification cards by its card urn. Self-action, safe to repeat, cannot be undone. An injected card (injected: true) has no card urn and cannot be deleted. LinkedIn may bring editorial and promotional cards back after a delete; `show-less` is the reliable way to suppress those.",
|
|
163
|
+
description: "Delete one of your notification cards by its card urn. Self-action, safe to repeat, cannot be undone. An injected card (injected: true) has no card urn and cannot be deleted. LinkedIn may bring editorial and promotional cards back after a delete; `curviate core notification show-less` is the reliable way to suppress those.",
|
|
160
164
|
examples: [
|
|
161
|
-
'curviate notification delete "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
|
|
165
|
+
'curviate core notification delete "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
|
|
162
166
|
]
|
|
163
167
|
},
|
|
164
168
|
args: {
|
|
165
169
|
...WRITE_SINGLE_FLAGS,
|
|
166
|
-
cardUrn: { type: "positional", description: "The card_urn field of a `notification list` item (not object_urn)." }
|
|
170
|
+
cardUrn: { type: "positional", description: "The card_urn field of a `curviate core notification list` item (not object_urn)." }
|
|
167
171
|
},
|
|
168
172
|
async run({ args }) {
|
|
169
173
|
const flags = args;
|
|
@@ -188,12 +192,12 @@ var notificationShowLessCommand = defineCommand({
|
|
|
188
192
|
name: "show-less",
|
|
189
193
|
description: "Apply 'show less like this' to the source of one of your notification cards. For network-activity cards this removes the card, same as delete. Self-action, safe to repeat, cannot be undone.",
|
|
190
194
|
examples: [
|
|
191
|
-
'curviate notification show-less "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
|
|
195
|
+
'curviate core notification show-less "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
|
|
192
196
|
]
|
|
193
197
|
},
|
|
194
198
|
args: {
|
|
195
199
|
...WRITE_SINGLE_FLAGS,
|
|
196
|
-
cardUrn: { type: "positional", description: "The card_urn field of a `notification list` item (not object_urn)." }
|
|
200
|
+
cardUrn: { type: "positional", description: "The card_urn field of a `curviate core notification list` item (not object_urn)." }
|
|
197
201
|
},
|
|
198
202
|
async run({ args }) {
|
|
199
203
|
const flags = args;
|
|
@@ -214,7 +218,7 @@ var notificationShowLessCommand = defineCommand({
|
|
|
214
218
|
}
|
|
215
219
|
});
|
|
216
220
|
var notificationCommand = defineCommand({
|
|
217
|
-
meta: { name: "notification", description:
|
|
221
|
+
meta: { name: "notification", description: DESCRIPTIONS.notification },
|
|
218
222
|
subCommands: {
|
|
219
223
|
list: notificationListCommand,
|
|
220
224
|
delete: notificationDeleteCommand,
|
|
@@ -222,7 +226,7 @@ var notificationCommand = defineCommand({
|
|
|
222
226
|
},
|
|
223
227
|
async run() {
|
|
224
228
|
process.stderr.write(
|
|
225
|
-
"Usage: curviate notification <subcommand>\n list [--filter <f>]\n delete <card_urn>\n show-less <card_urn>\n"
|
|
229
|
+
"Usage: curviate core notification <subcommand>\n list [--filter <f>]\n delete <card_urn>\n show-less <card_urn>\n"
|
|
226
230
|
);
|
|
227
231
|
}
|
|
228
232
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Y7K4UBFC.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-Q63IIPL2.js";
|
|
14
14
|
import {
|
|
15
15
|
buildPreviewOutput
|
|
16
16
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,19 +27,24 @@ import {
|
|
|
27
27
|
resolveEffectiveConfig,
|
|
28
28
|
streamAll,
|
|
29
29
|
writeNdjsonItem
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MKGVNDMJ.js";
|
|
31
31
|
import "./chunk-76SWLAZ6.js";
|
|
32
32
|
import {
|
|
33
33
|
createClient
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OHXYFICP.js";
|
|
35
35
|
import {
|
|
36
36
|
GLOBAL_FLAGS,
|
|
37
37
|
READ_SINGLE_FLAGS,
|
|
38
38
|
WRITE_FLAGS,
|
|
39
39
|
WRITE_SINGLE_FLAGS,
|
|
40
|
-
readOnly
|
|
40
|
+
readOnly
|
|
41
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
42
|
+
import {
|
|
43
|
+
DESCRIPTIONS
|
|
44
|
+
} from "./chunk-GQKC6E5K.js";
|
|
45
|
+
import {
|
|
41
46
|
resolveTextOrStdin
|
|
42
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ZYURL5VK.js";
|
|
43
48
|
|
|
44
49
|
// src/commands/post.ts
|
|
45
50
|
import { defineCommand } from "citty";
|
|
@@ -382,21 +387,21 @@ async function runPostUserReactions(client, flags, out) {
|
|
|
382
387
|
await handleSdkError(err, outOpts, out);
|
|
383
388
|
}
|
|
384
389
|
}
|
|
385
|
-
var POST_ID_FORMS = "Post id in any form the CLI returns: the `id` from search posts or a post read, a bare numeric activity id, urn:li:activity|ugcPost|share:N, or a full LinkedIn post URL (activity-, ugcPost- or share- slug).";
|
|
390
|
+
var POST_ID_FORMS = "Post id in any form the CLI returns: the `id` from `curviate core search posts` or a post read, a bare numeric activity id, urn:li:activity|ugcPost|share:N, or a full LinkedIn post URL (activity-, ugcPost- or share- slug).";
|
|
386
391
|
var postGetCommand = defineCommand({
|
|
387
392
|
meta: {
|
|
388
393
|
name: "get",
|
|
389
394
|
description: "Get a post by id.",
|
|
390
395
|
examples: [
|
|
391
|
-
"curviate post get 7290000000000000000",
|
|
392
|
-
"curviate post get urn:li:activity:7290000000000000000"
|
|
396
|
+
"curviate core post get 7290000000000000000",
|
|
397
|
+
"curviate core post get urn:li:activity:7290000000000000000"
|
|
393
398
|
]
|
|
394
399
|
},
|
|
395
400
|
args: {
|
|
396
401
|
...readOnly(READ_SINGLE_FLAGS),
|
|
397
402
|
postId: {
|
|
398
403
|
type: "positional",
|
|
399
|
-
description: POST_ID_FORMS + " POSTID is always the post's id. To list comments on a post, use
|
|
404
|
+
description: POST_ID_FORMS + " POSTID is always the post's id. To list comments on a post, use `curviate core comment list <post_id>`."
|
|
400
405
|
}
|
|
401
406
|
},
|
|
402
407
|
async run({ args }) {
|
|
@@ -422,8 +427,8 @@ var postCreateCommand = defineCommand({
|
|
|
422
427
|
name: "create",
|
|
423
428
|
description: "Create a new post.",
|
|
424
429
|
examples: [
|
|
425
|
-
'curviate post create "We just shipped webhooks for inbox events."',
|
|
426
|
-
'curviate post create "Our latest product update." --attach screenshot.png'
|
|
430
|
+
'curviate core post create "We just shipped webhooks for inbox events."',
|
|
431
|
+
'curviate core post create "Our latest product update." --attach screenshot.png'
|
|
427
432
|
]
|
|
428
433
|
},
|
|
429
434
|
args: {
|
|
@@ -458,8 +463,8 @@ var postReactCommand = defineCommand({
|
|
|
458
463
|
name: "react",
|
|
459
464
|
description: "React to a post.",
|
|
460
465
|
examples: [
|
|
461
|
-
"curviate post react 7290000000000000000 like",
|
|
462
|
-
"curviate post react 7290000000000000000 celebrate --as-organization 1234567"
|
|
466
|
+
"curviate core post react 7290000000000000000 like",
|
|
467
|
+
"curviate core post react 7290000000000000000 celebrate --as-organization 1234567"
|
|
463
468
|
]
|
|
464
469
|
},
|
|
465
470
|
args: {
|
|
@@ -507,8 +512,8 @@ var postReactionsCommand = defineCommand({
|
|
|
507
512
|
name: "reactions",
|
|
508
513
|
description: "List reactions on a post.",
|
|
509
514
|
examples: [
|
|
510
|
-
"curviate post reactions 7290000000000000000",
|
|
511
|
-
"curviate post reactions 7290000000000000000 --all"
|
|
515
|
+
"curviate core post reactions 7290000000000000000",
|
|
516
|
+
"curviate core post reactions 7290000000000000000 --all"
|
|
512
517
|
]
|
|
513
518
|
},
|
|
514
519
|
args: {
|
|
@@ -557,7 +562,7 @@ var postDeleteCommand = defineCommand({
|
|
|
557
562
|
name: "delete",
|
|
558
563
|
description: "Delete a post you own.",
|
|
559
564
|
examples: [
|
|
560
|
-
"curviate post delete 7290000000000000000"
|
|
565
|
+
"curviate core post delete 7290000000000000000"
|
|
561
566
|
]
|
|
562
567
|
},
|
|
563
568
|
args: {
|
|
@@ -573,7 +578,7 @@ var postUnreactCommand = defineCommand({
|
|
|
573
578
|
name: "unreact",
|
|
574
579
|
description: "Remove your reaction from a post.",
|
|
575
580
|
examples: [
|
|
576
|
-
"curviate post unreact 7290000000000000000 like"
|
|
581
|
+
"curviate core post unreact 7290000000000000000 like"
|
|
577
582
|
]
|
|
578
583
|
},
|
|
579
584
|
args: {
|
|
@@ -590,7 +595,7 @@ var postSavedCommand = defineCommand({
|
|
|
590
595
|
name: "saved",
|
|
591
596
|
description: "List your own saved posts (a private bookmark list, newest-saved-first). Each item is a preview (snippet capped at 140 chars).",
|
|
592
597
|
examples: [
|
|
593
|
-
"curviate post saved"
|
|
598
|
+
"curviate core post saved"
|
|
594
599
|
]
|
|
595
600
|
},
|
|
596
601
|
args: { ...readOnly(GLOBAL_FLAGS) },
|
|
@@ -603,7 +608,7 @@ var postSaveCommand = defineCommand({
|
|
|
603
608
|
name: "save",
|
|
604
609
|
description: "Save a post to your private bookmark list. Never notifies the author, never visible to third parties. Saving a saved post changes nothing.",
|
|
605
610
|
examples: [
|
|
606
|
-
"curviate post save 7290000000000000000"
|
|
611
|
+
"curviate core post save 7290000000000000000"
|
|
607
612
|
]
|
|
608
613
|
},
|
|
609
614
|
args: {
|
|
@@ -619,7 +624,7 @@ var postUnsaveCommand = defineCommand({
|
|
|
619
624
|
name: "unsave",
|
|
620
625
|
description: "Remove a post from your saved-posts bookmark list. Unsaving a post that is not saved changes nothing.",
|
|
621
626
|
examples: [
|
|
622
|
-
"curviate post unsave 7290000000000000000"
|
|
627
|
+
"curviate core post unsave 7290000000000000000"
|
|
623
628
|
]
|
|
624
629
|
},
|
|
625
630
|
args: {
|
|
@@ -633,10 +638,10 @@ var postUnsaveCommand = defineCommand({
|
|
|
633
638
|
var postUserPostsCommand = defineCommand({
|
|
634
639
|
meta: {
|
|
635
640
|
name: "user-posts",
|
|
636
|
-
description: "List a member's own posts (accepts 'me'). A very recent create/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `post get <post_id>` reflects it immediately.",
|
|
641
|
+
description: "List a member's own posts (accepts 'me'). A very recent create/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `curviate core post get <post_id>` reflects it immediately.",
|
|
637
642
|
examples: [
|
|
638
|
-
"curviate post user-posts me",
|
|
639
|
-
"curviate post user-posts janesmith --limit 10"
|
|
643
|
+
"curviate core post user-posts me",
|
|
644
|
+
"curviate core post user-posts janesmith --limit 10"
|
|
640
645
|
]
|
|
641
646
|
},
|
|
642
647
|
args: {
|
|
@@ -652,8 +657,8 @@ var postUserReactionsCommand = defineCommand({
|
|
|
652
657
|
name: "user-reactions",
|
|
653
658
|
description: "List a member's own reactions (accepts 'me'). Items carry no time of the reaction: `parent_post.created_at` is when the post was created, not when it was reacted to, so the listing cannot be filtered by date; without `--all`, `--limit` caps the read at one page.",
|
|
654
659
|
examples: [
|
|
655
|
-
"curviate post user-reactions me",
|
|
656
|
-
"curviate post user-reactions me --all"
|
|
660
|
+
"curviate core post user-reactions me",
|
|
661
|
+
"curviate core post user-reactions me --all"
|
|
657
662
|
]
|
|
658
663
|
},
|
|
659
664
|
args: {
|
|
@@ -665,7 +670,7 @@ var postUserReactionsCommand = defineCommand({
|
|
|
665
670
|
}
|
|
666
671
|
});
|
|
667
672
|
var postCommand = defineCommand({
|
|
668
|
-
meta: { name: "post", description:
|
|
673
|
+
meta: { name: "post", description: DESCRIPTIONS.post },
|
|
669
674
|
subCommands: {
|
|
670
675
|
get: postGetCommand,
|
|
671
676
|
create: postCreateCommand,
|
|
@@ -681,7 +686,7 @@ var postCommand = defineCommand({
|
|
|
681
686
|
},
|
|
682
687
|
async run() {
|
|
683
688
|
process.stderr.write(
|
|
684
|
-
'Usage: curviate post <subcommand>\n get <post_id>\n create "<text>" [--attach <file>...]\n react <post_id> <reaction> [--as-organization <org_id>]\n reactions <post_id>\n delete <post_id>\n unreact <post_id> <reaction>\n saved\n save <post_id>\n unsave <post_id>\n user-posts <user_id>\n user-reactions <user_id>\n\nComment operations moved to the `comment` command group.\n'
|
|
689
|
+
'Usage: curviate core post <subcommand>\n get <post_id>\n create "<text>" [--attach <file>...]\n react <post_id> <reaction> [--as-organization <org_id>]\n reactions <post_id>\n delete <post_id>\n unreact <post_id> <reaction>\n saved\n save <post_id>\n unsave <post_id>\n user-posts <user_id>\n user-reactions <user_id>\n\nComment operations moved to the `curviate core comment` command group.\n'
|
|
685
690
|
);
|
|
686
691
|
}
|
|
687
692
|
});
|