@letterstory/cli 0.174.2 → 0.174.3
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/lib/cli.mjs +2 -1
- package/lib/commands/admin.mjs +7 -1
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
} from "./commands.mjs";
|
|
76
76
|
|
|
77
77
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
78
|
-
export const VERSION = "0.174.
|
|
78
|
+
export const VERSION = "0.174.3";
|
|
79
79
|
|
|
80
80
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
81
81
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -1119,6 +1119,7 @@ Admin (STAFF key — --staff-key / LETTERSTORY_STAFF_API_KEY; acts before an org
|
|
|
1119
1119
|
| onboard-plan <account-id> [--refresh]
|
|
1120
1120
|
| prospect-org <account-id> [--start] [--domain acme.com] the org prepared for their booked call
|
|
1121
1121
|
| prospect-orgs [--status preparing|ready|failed|skipped|parked|converted] [--limit 50]
|
|
1122
|
+
| prospect-org-repost <prospect-org-id> post a ready org's summary to #ready-for-call again
|
|
1122
1123
|
| payment-link <account-id> [--amount-cents N] [--description "…"] [--plan starter] [--ratio N] [--why "…"] [--first-invoice-credit-cents N]
|
|
1123
1124
|
The staff CRM's pipeline: bulk-importing a
|
|
1124
1125
|
CSV of leads, the inbound signal
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -3822,6 +3822,12 @@ async function cmdAdminCrm(ctx) {
|
|
|
3822
3822
|
prospectOrgLines(x.prospectOrg)
|
|
3823
3823
|
);
|
|
3824
3824
|
}
|
|
3825
|
+
case "prospect-org-repost": {
|
|
3826
|
+
// admin crm prospect-org-repost <prospect-org-id> — post a ready org's summary to
|
|
3827
|
+
// #ready-for-call again. The key needs crm:write.
|
|
3828
|
+
if (!id) throw new CliError("Usage: admin crm prospect-org-repost <prospect-org-id>");
|
|
3829
|
+
return out(await staffPost(ctx, `${CRM}/prospect-orgs/${id}/repost`, {}), (x) => `Posted to ${x.channel}`);
|
|
3830
|
+
}
|
|
3825
3831
|
case "prospect-orgs": {
|
|
3826
3832
|
// admin crm prospect-orgs [--status ready] [--limit 50] — the orgs prepared for booked
|
|
3827
3833
|
// calls, newest first.
|
|
@@ -3878,7 +3884,7 @@ async function cmdAdminCrm(ctx) {
|
|
|
3878
3884
|
}
|
|
3879
3885
|
default:
|
|
3880
3886
|
throw new CliError(
|
|
3881
|
-
"Usage: admin crm import|capture|outreach|signals|record|signal|accounts|account|score|slack-channels|link-slack|white-glove|set-white-glove|churn|revenue|reach-outs|replies|record-churn|draft-churn-reason|undo-churn|outcomes|record-outcome|renewals|track-record|weekly-note|at-risk|expansion-signals|collections|delivery-flags|pulse|client-health|case|onboard|onboarding|retry-onboarding|onboard-plan|prospect-org|prospect-orgs|payment-link … (see --help)"
|
|
3887
|
+
"Usage: admin crm import|capture|outreach|signals|record|signal|accounts|account|score|slack-channels|link-slack|white-glove|set-white-glove|churn|revenue|reach-outs|replies|record-churn|draft-churn-reason|undo-churn|outcomes|record-outcome|renewals|track-record|weekly-note|at-risk|expansion-signals|collections|delivery-flags|pulse|client-health|case|onboard|onboarding|retry-onboarding|onboard-plan|prospect-org|prospect-orgs|prospect-org-repost|payment-link … (see --help)"
|
|
3882
3888
|
);
|
|
3883
3889
|
}
|
|
3884
3890
|
}
|