@hyperline/cli 0.1.0-build.1.7a0d060 → 0.1.0-build.1.7dd9272
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 +33 -10
- package/package.json +1 -1
|
@@ -34894,10 +34894,10 @@ var require_shared = __commonJS({
|
|
|
34894
34894
|
ZodId: () => ZodId,
|
|
34895
34895
|
ZodTranslationsSchemaFn: () => ZodTranslationsSchemaFn
|
|
34896
34896
|
});
|
|
34897
|
-
var
|
|
34897
|
+
var import_zod19 = require_lib();
|
|
34898
34898
|
var countryIds2 = ["all", ...countries.map(({ id }) => id)];
|
|
34899
|
-
var ZodId =
|
|
34900
|
-
var ZodTranslationsSchemaFn = (schema) =>
|
|
34899
|
+
var ZodId = import_zod19.z.enum(countryIds2);
|
|
34900
|
+
var ZodTranslationsSchemaFn = (schema) => import_zod19.z.record(import_zod19.z.string(), schema.optional());
|
|
34901
34901
|
var UsStates = [
|
|
34902
34902
|
{ id: "AA", name: "Armed Forces Americas" },
|
|
34903
34903
|
{ id: "AE", name: "Armed Forces Europe" },
|
|
@@ -38752,7 +38752,11 @@ Customer type.
|
|
|
38752
38752
|
- \`corporate\`: The customer is a business entity.
|
|
38753
38753
|
- \`person\`: The customer is a natural person.
|
|
38754
38754
|
- \`automatically_created\`: The customer was automatically imported (e.g. from a data loader). This value cannot be used when creating/editing.
|
|
38755
|
-
`).option("--currency <value>", `Currency code. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).`).option("--is-government-affiliated", `Indicates if the customer is affiliated with a government entity.`).option("--tax-ids <value>", `Customer tax IDs.`).option("--tax-rate-custom <number>", `Customer custom tax rate. If not defined, the rate will be automatically determined based on the customer's country, your country, and applicable legal requirements.`).option("--
|
|
38755
|
+
`).option("--currency <value>", `Currency code. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).`).option("--is-government-affiliated", `Indicates if the customer is affiliated with a government entity.`).option("--tax-ids <value>", `Customer tax IDs.`).option("--tax-rate-custom <number>", `Customer custom tax rate. If not defined, the rate will be automatically determined based on the customer's country, your country, and applicable legal requirements.`).option("--taxability <value>", `Customer taxability.
|
|
38756
|
+
|
|
38757
|
+
- \`taxable\`: Taxes are automatically determined for the customer.
|
|
38758
|
+
- \`exempt\`: The customer is exempt from tax.
|
|
38759
|
+
`).option("--registration-number <value>", `Customer registration number.`).option("--external-id <value>", `ID of the customer in your system. This helps matching your customer with the one on Hyperline.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity this customer will be attached to.`).option("--billing-address <value>", `Customer billing address.`).option("--shipping-address <value>", `Customer shipping address.`).option("--billing-email <value>", `Email to which all communications will be sent.`).option("--invoice-emails <value>", `Emails to which invoices will be sent (e.g. payer, finance team, accounting firm). If not defined, invoices will be sent to the \`billing_email\`; otherwise, they won't be sent to the \`billing_email\`.`).option("--language <value>", `Language used for invoices, emails, and hosted pages.`).option("--timezone <value>", `Customer timezone.`).option("--available-payment-methods <value>", `List of payment methods you allow your customer to pay with. You customer will be able to select one of them in their portal page and those will be the default options when creating a checkout session.`).option("--payment-method-type <value>", `Default payment method type used to pay subscriptions and one-off invoices.`).option("--bank-account <value>", `Custom bank account for the customer. If not defined and customer paying by bank transfer, the bank accounts configured in your account settings will be used.`).option("--custom-payment-delay <number>", `Custom payment terms in days. If not defined, the default one defined on the related invoicing entity will be used.`).option("--custom-payment-initiation-delay <number>", `Custom initiation delay in days before triggering payment. If not defined, the default one defined on the related invoicing entity will be used.`).option("--organisation-id <value>", `Parent organization ID to which the client is attached.`).option("--organisation-invoicing <value>", `
|
|
38756
38760
|
How customer invoices are issued from the parent organisation.
|
|
38757
38761
|
|
|
38758
38762
|
- \`none\`: Invoices will keep being issued from this customer.
|
|
@@ -38777,6 +38781,8 @@ Examples:
|
|
|
38777
38781
|
args.currency = opts.currency;
|
|
38778
38782
|
if (opts.taxIds !== void 0)
|
|
38779
38783
|
args.tax_ids = opts.taxIds;
|
|
38784
|
+
if (opts.taxability !== void 0)
|
|
38785
|
+
args.taxability = opts.taxability;
|
|
38780
38786
|
if (opts.registrationNumber !== void 0)
|
|
38781
38787
|
args.registration_number = opts.registrationNumber;
|
|
38782
38788
|
if (opts.externalId !== void 0)
|
|
@@ -38871,7 +38877,11 @@ Customer type.
|
|
|
38871
38877
|
- \`corporate\`: The customer is a business entity.
|
|
38872
38878
|
- \`person\`: The customer is a natural person.
|
|
38873
38879
|
- \`automatically_created\`: The customer was automatically imported (e.g. from a data loader). This value cannot be used when creating/editing.
|
|
38874
|
-
`).option("--currency <value>", `Customer currency. Can only be changed if the customer doesn't have existing invoices, a wallet or a payment method saved.`).option("--tax-ids <value>", `Customer tax IDs.`).option("--tax-rate-custom <number>", `Customer custom tax rate. If not defined, the rate will be automatically determined based on the customer's country, your country, and applicable legal requirements.`).option("--
|
|
38880
|
+
`).option("--currency <value>", `Customer currency. Can only be changed if the customer doesn't have existing invoices, a wallet or a payment method saved.`).option("--tax-ids <value>", `Customer tax IDs.`).option("--tax-rate-custom <number>", `Customer custom tax rate. If not defined, the rate will be automatically determined based on the customer's country, your country, and applicable legal requirements.`).option("--taxability <value>", `Customer taxability.
|
|
38881
|
+
|
|
38882
|
+
- \`taxable\`: Taxes are automatically determined for the customer.
|
|
38883
|
+
- \`exempt\`: The customer is exempt from tax.
|
|
38884
|
+
`).option("--registration-number <value>", `Customer registration number.`).option("--is-government-affiliated", `Indicates if the customer is affiliated with a government entity.`).option("--external-id <value>", `ID of the customer in your system. This helps matching your customer with the one on Hyperline.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity this customer will be attached to.`).option("--billing-address <value>", `Customer billing address.`).option("--shipping-address <value>", `Customer shipping address.`).option("--billing-email <value>", `Email to which all communications will be sent.`).option("--invoice-emails <value>", `Emails to which invoices will be sent (e.g. payer, finance team, accounting firm). If not defined, invoices will be sent to the \`billing_email\`; otherwise, they won't be sent to the \`billing_email\`.`).option("--language <value>", `Language used for invoices, emails, and hosted pages.`).option("--timezone <value>", `Customer timezone.`).option("--available-payment-methods <value>", `List of payment methods you allow your customer to pay with. You customer will be able to select one of them in their portal page and those will be the default options when creating a checkout session.`).option("--payment-method-type <value>", `Default payment method type used to pay subscriptions and one-off invoices.`).option("--payment-method-id <value>", `ID of the default payment method of the customer. Only applies to card and direct debit.`).option("--bank-account <value>", `Custom bank account for the customer. If not defined and customer paying by bank transfer, the bank accounts configured in your account settings will be used.`).option("--custom-payment-delay <number>", `Custom payment terms in days. If not defined, the default one defined on the related invoicing entity will be used.`).option("--custom-payment-initiation-delay <number>", `Custom initiation delay in days before triggering payment. If not defined, the default one defined on the related invoicing entity will be used.`).option("--organisation-id <value>", `Parent organization ID to which the client is attached.`).option("--organisation-invoicing <value>", `
|
|
38875
38885
|
How customer invoices are issued from the parent organisation.
|
|
38876
38886
|
|
|
38877
38887
|
- \`none\`: Invoices will keep being issued from this customer.
|
|
@@ -38898,6 +38908,8 @@ Examples:
|
|
|
38898
38908
|
args.currency = opts.currency;
|
|
38899
38909
|
if (opts.taxIds !== void 0)
|
|
38900
38910
|
args.tax_ids = opts.taxIds;
|
|
38911
|
+
if (opts.taxability !== void 0)
|
|
38912
|
+
args.taxability = opts.taxability;
|
|
38901
38913
|
if (opts.registrationNumber !== void 0)
|
|
38902
38914
|
args.registration_number = opts.registrationNumber;
|
|
38903
38915
|
if (opts.externalId !== void 0)
|
|
@@ -41392,18 +41404,18 @@ Examples:
|
|
|
41392
41404
|
// build/commands/generated/quotes.js
|
|
41393
41405
|
function registerQuotesCommands(parent) {
|
|
41394
41406
|
const resource = parent.command("quotes").description("Manage quotes");
|
|
41395
|
-
resource.command("create").description(`Create a new quote for a customer
|
|
41407
|
+
resource.command("create").description(`Create a new quote for a customer. Use \`subscription\` (or \`template_id\`) for subscription quotes; use \`invoice\` for one-off quotes backed by a draft invoice with line items. Quotes can be sent for signature and converted to subscriptions or one-off invoices.`).option("--status <value>", `
|
|
41396
41408
|
Quote status.
|
|
41397
41409
|
|
|
41398
41410
|
- \`draft\`: The quote is a draft.
|
|
41399
41411
|
- \`approved\`: The quote is approved and ready to be sent to the customer.
|
|
41400
41412
|
- \`pending_signature\`: The quote is awaiting the customer's signature.
|
|
41401
|
-
`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner. If not specified, the Hyperline account owner will be assigned.`).requiredOption("--customer-id <value>", `ID of the customer.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity attached to the quote.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value.
|
|
41413
|
+
`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner. If not specified, the Hyperline account owner will be assigned.`).requiredOption("--customer-id <value>", `ID of the customer.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity attached to the quote.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value. For subscription quotes, defaults to the computed subscription value if not specified. For one-off quotes, this field is ignored \u2014 the amount is always derived from the linked invoice's \`amount_excluding_tax\`.`).option("--collect-payment-details <value>", `Collect customer payment method mandate during signature flow or not.`).option("--collect-custom-property-ids <value>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--require-tax-id <value>", `Require the customer to provide a tax ID during the signature flow.`).option("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-quote-value-with-tax <value>", `Display the total quote value including tax on the quote. Only applies to \`one_off\` quotes.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
41402
41414
|
|
|
41403
41415
|
- \`all\`: Display all pricing tiers.
|
|
41404
41416
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
41405
41417
|
- \`none\`: Hide all pricing tiers.
|
|
41406
|
-
`).option("--display-phase-value <value>", `Display per-phase value breakdown on the quote.`).option("--display-first-invoice-amount <value>", `Display the first invoice amount on the quote.`).option("--display-documents-in-preview <value>", `Display attached documents in the quote preview.`).option("--display-subscription-on-update <value>", `Display subscription details on subscription update quotes.`).option("--template-id <value>", `ID of the quote template. If not specified, a subscription configuration must be defined.`).option("--expires-at <value>", `Quote expiration date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--subscription <value>", `Subscription configuration constituting the quote.`).addHelpText("after", `
|
|
41418
|
+
`).option("--display-phase-value <value>", `Display per-phase value breakdown on the quote.`).option("--display-first-invoice-amount <value>", `Display the first invoice amount on the quote.`).option("--display-documents-in-preview <value>", `Display attached documents in the quote preview.`).option("--display-subscription-on-update <value>", `Display subscription details on subscription update quotes.`).option("--generate-draft-invoices <value>", `When \`true\`, the invoice issued after signature stays in \`draft\` status instead of being emitted for payment. Use this when you want to review the final invoice manually before sending it. Defaults to \`false\`.`).option("--template-id <value>", `ID of the quote template. If not specified, a subscription configuration or an \`invoice\` payload must be defined.`).option("--expires-at <value>", `Quote expiration date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--subscription <value>", `Subscription configuration constituting the quote.`).option("--invoice <value>", `Invoice configuration constituting the one-off quote. When provided, a draft invoice is created and linked to the quote. Cannot be combined with \`subscription\` or \`template_id\`.`).addHelpText("after", `
|
|
41407
41419
|
Examples:
|
|
41408
41420
|
hyperline quotes create --customer-id <customer_id>
|
|
41409
41421
|
hyperline quotes create --customer-id <customer_id> --status <status> --owner-email <owner_email>
|
|
@@ -41448,12 +41460,16 @@ Examples:
|
|
|
41448
41460
|
args.display_documents_in_preview = opts.displayDocumentsInPreview;
|
|
41449
41461
|
if (opts.displaySubscriptionOnUpdate !== void 0)
|
|
41450
41462
|
args.display_subscription_on_update = opts.displaySubscriptionOnUpdate;
|
|
41463
|
+
if (opts.generateDraftInvoices !== void 0)
|
|
41464
|
+
args.generate_draft_invoices = opts.generateDraftInvoices;
|
|
41451
41465
|
if (opts.templateId !== void 0)
|
|
41452
41466
|
args.template_id = opts.templateId;
|
|
41453
41467
|
if (opts.expiresAt !== void 0)
|
|
41454
41468
|
args.expires_at = opts.expiresAt;
|
|
41455
41469
|
if (opts.subscription !== void 0)
|
|
41456
41470
|
args.subscription = opts.subscription;
|
|
41471
|
+
if (opts.invoice !== void 0)
|
|
41472
|
+
args.invoice = opts.invoice;
|
|
41457
41473
|
if (opts.amount !== void 0)
|
|
41458
41474
|
args.amount = Number(opts.amount);
|
|
41459
41475
|
await ctx.execute({
|
|
@@ -41682,12 +41698,12 @@ Examples:
|
|
|
41682
41698
|
queryParamKeys: []
|
|
41683
41699
|
});
|
|
41684
41700
|
});
|
|
41685
|
-
resource.command("update").description(`Update quote-level fields before a quote is finalized. On draft quotes, pass subscription to create or replace the draft subscription configuration
|
|
41701
|
+
resource.command("update").description(`Update quote-level fields before a quote is finalized. On draft quotes, pass \`subscription\` to create or replace the draft subscription configuration, or pass \`invoice\` on a one-off quote to replace the linked draft invoice.`).requiredOption("--id <value>", `id parameter`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value. Set to \`null\` to clear the manually set value.`).option("--collect-payment-details <value>", `Collect customer payment method mandate during signature flow or not.`).option("--collect-custom-property-ids <value>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--require-tax-id <value>", `Require the customer to provide a tax ID during the signature flow.`).option("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-quote-value-with-tax <value>", `Display the total quote value including tax on the quote. Only applies to \`one_off\` quotes.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
41686
41702
|
|
|
41687
41703
|
- \`all\`: Display all pricing tiers.
|
|
41688
41704
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
41689
41705
|
- \`none\`: Hide all pricing tiers.
|
|
41690
|
-
`).option("--display-phase-value <value>", `Display per-phase value breakdown on the quote.`).option("--display-first-invoice-amount <value>", `Display the first invoice amount on the quote.`).option("--display-documents-in-preview <value>", `Display attached documents in the quote preview.`).option("--display-subscription-on-update <value>", `Display subscription details on subscription update quotes.`).option("--expires-at <value>", `Quote expiration date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Set to \`null\` to clear the expiration.`).option("--subscription <value>", `Subscription configuration constituting the quote. When provided on a draft quote, it creates or replaces the draft subscription attached to the quote.`).addHelpText("after", `
|
|
41706
|
+
`).option("--display-phase-value <value>", `Display per-phase value breakdown on the quote.`).option("--display-first-invoice-amount <value>", `Display the first invoice amount on the quote.`).option("--display-documents-in-preview <value>", `Display attached documents in the quote preview.`).option("--display-subscription-on-update <value>", `Display subscription details on subscription update quotes.`).option("--generate-draft-invoices <value>", `When \`true\`, the invoice issued after signature stays in \`draft\` status instead of being emitted for payment. Use this when you want to review the final invoice manually before sending it. Defaults to \`false\`.`).option("--expires-at <value>", `Quote expiration date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Set to \`null\` to clear the expiration.`).option("--subscription <value>", `Subscription configuration constituting the quote. When provided on a draft quote, it creates or replaces the draft subscription attached to the quote.`).option("--invoice <value>", `Invoice configuration constituting the one-off quote. When provided on a draft one-off quote, it deletes the previous draft invoice and creates a fresh one linked to the quote. \`invoice.invoicing_entity_id\` is ignored on update \u2014 the quote's existing invoicing entity is reused.`).addHelpText("after", `
|
|
41691
41707
|
Examples:
|
|
41692
41708
|
hyperline quotes update --id <id>
|
|
41693
41709
|
hyperline quotes update --id <id> --owner-email <owner_email> --comments <comments>
|
|
@@ -41728,10 +41744,14 @@ Examples:
|
|
|
41728
41744
|
args.display_documents_in_preview = opts.displayDocumentsInPreview;
|
|
41729
41745
|
if (opts.displaySubscriptionOnUpdate !== void 0)
|
|
41730
41746
|
args.display_subscription_on_update = opts.displaySubscriptionOnUpdate;
|
|
41747
|
+
if (opts.generateDraftInvoices !== void 0)
|
|
41748
|
+
args.generate_draft_invoices = opts.generateDraftInvoices;
|
|
41731
41749
|
if (opts.expiresAt !== void 0)
|
|
41732
41750
|
args.expires_at = opts.expiresAt;
|
|
41733
41751
|
if (opts.subscription !== void 0)
|
|
41734
41752
|
args.subscription = opts.subscription;
|
|
41753
|
+
if (opts.invoice !== void 0)
|
|
41754
|
+
args.invoice = opts.invoice;
|
|
41735
41755
|
if (opts.amount !== void 0)
|
|
41736
41756
|
args.amount = Number(opts.amount);
|
|
41737
41757
|
await ctx.execute({
|
|
@@ -62597,6 +62617,9 @@ import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/
|
|
|
62597
62617
|
|
|
62598
62618
|
// ../hyperline-mcp/build/server/server.js
|
|
62599
62619
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
62620
|
+
var defaultToolOutputSchema = {
|
|
62621
|
+
result: external_exports.unknown()
|
|
62622
|
+
};
|
|
62600
62623
|
|
|
62601
62624
|
// ../hyperline-mcp/build/session/sessionKey.js
|
|
62602
62625
|
import { createHmac } from "node:crypto";
|