@helm-ai/cli 1.4.0 → 1.5.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/dist/cli.js +7 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -25,7 +25,7 @@ function renderSplash(ctx) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// src/version.ts
|
|
28
|
-
var version = "1.
|
|
28
|
+
var version = "1.5.0";
|
|
29
29
|
|
|
30
30
|
// src/commands/auth.ts
|
|
31
31
|
import prompts from "prompts";
|
|
@@ -2689,11 +2689,13 @@ function registerInvoiceCommands(parent) {
|
|
|
2689
2689
|
return;
|
|
2690
2690
|
}
|
|
2691
2691
|
});
|
|
2692
|
-
cmd.command("create").description("Create an invoice").requiredOption("-t, --title <title>", "invoice title (required)").option("-d, --description <text>").option("-C, --company <id>").option("--deal <id>", "deal this invoice bills against").option("-i, --item <item>", LINE_ITEM_HELP, collectLineItem).option("--items <path>", LINE_ITEMS_FILE_HELP).option("--tax-rate <pct>", "tax rate %", parseFloat).option("--issue-date <date>", "ISO 8601").option("--due-date <date>", "ISO 8601").option("--notes <text>", "client-visible notes").option("--internal-notes <text>").option("-p, --profile <name>").addHelpText("after", `
|
|
2692
|
+
cmd.command("create").description("Create an invoice").requiredOption("-t, --title <title>", "invoice title (required)").option("-d, --description <text>").option("-C, --company <id>").option("--deal <id>", "deal this invoice bills against").option("-i, --item <item>", LINE_ITEM_HELP, collectLineItem).option("--items <path>", LINE_ITEMS_FILE_HELP).option("--tax-rate <pct>", "tax rate %", parseFloat).option("--issue-date <date>", "ISO 8601").option("--due-date <date>", "ISO 8601").option("--notes <text>", "client-visible notes").option("--internal-notes <text>").option("--already-billed", "record a bill the client already got another way (text, paper); saved as open, so it counts as owed. Nothing is sent").option("-p, --profile <name>").addHelpText("after", `
|
|
2693
2693
|
Examples:
|
|
2694
2694
|
helm-ai invoice create -t "October retainer" -C <company-id> \\
|
|
2695
2695
|
--item "Development|10|150" --item "Hosting|49"
|
|
2696
|
-
helm-ai invoice create -t "October retainer" -C <company-id> --items items.json
|
|
2696
|
+
helm-ai invoice create -t "October retainer" -C <company-id> --items items.json
|
|
2697
|
+
helm-ai invoice create -t "October pool service" -C <company-id> \\
|
|
2698
|
+
--item "Weekly service|1|180" --due-date 2026-11-01 --already-billed`).action(async (opts) => {
|
|
2697
2699
|
try {
|
|
2698
2700
|
const client = HelmClient.fromProfile(resolveProfile(opts.profile));
|
|
2699
2701
|
const invoice = await client.invoices.create({
|
|
@@ -2706,7 +2708,8 @@ Examples:
|
|
|
2706
2708
|
issue_date: opts.issueDate,
|
|
2707
2709
|
due_date: opts.dueDate,
|
|
2708
2710
|
notes: opts.notes,
|
|
2709
|
-
internal_notes: opts.internalNotes
|
|
2711
|
+
internal_notes: opts.internalNotes,
|
|
2712
|
+
...opts.alreadyBilled ? { already_billed: true } : {}
|
|
2710
2713
|
});
|
|
2711
2714
|
console.log(JSON.stringify(invoice, null, 2));
|
|
2712
2715
|
} catch (err) {
|