@hyperline/cli 0.1.0-build.1.b02fd71 → 0.1.0-build.1.b32bf22
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/bin/hyperline-main.js +19 -0
- package/package.json +1 -1
|
@@ -41801,6 +41801,25 @@ Examples:
|
|
|
41801
41801
|
queryParamKeys: []
|
|
41802
41802
|
});
|
|
41803
41803
|
});
|
|
41804
|
+
resource.command("finalize").description(`Finalize a draft quote. The quote is submitted for approval when approval is required, otherwise it becomes approved and ready to be sent for signature.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
41805
|
+
Examples:
|
|
41806
|
+
hyperline quotes finalize --id <id>
|
|
41807
|
+
hyperline quotes finalize --id <id> --output json`).action(async (opts) => {
|
|
41808
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
41809
|
+
if (!ctx) {
|
|
41810
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
41811
|
+
process.exit(1);
|
|
41812
|
+
}
|
|
41813
|
+
const args = {};
|
|
41814
|
+
if (opts.id !== void 0)
|
|
41815
|
+
args.id = opts.id;
|
|
41816
|
+
await ctx.execute({
|
|
41817
|
+
method: "POST",
|
|
41818
|
+
path: "/v1/quotes/{id}/finalize",
|
|
41819
|
+
args,
|
|
41820
|
+
queryParamKeys: []
|
|
41821
|
+
});
|
|
41822
|
+
});
|
|
41804
41823
|
resource.command("send").description(`Send a quote by email for customer signature. Requires the quote to be approved first.`).requiredOption("--id <value>", `id parameter`).requiredOption("--email <value>", `Email address to which the quote will be sent for signature.`).option("--message <value>", `Custom message used in the email content.`).addHelpText("after", `
|
|
41805
41824
|
Examples:
|
|
41806
41825
|
hyperline quotes send --id <id> --email <email>
|